mark.venbrux_3 | 1 Sep 2004 13:11
Picon

Error while running regression tests.


Hi,

I tried to add all jars and extensions that I could find to the command, but I still get the error:
"java.lang.ClassNotFoundException: org.apache.oro.io.GlobFilenameFilter"
What did I miss?

C:\Temp\oxml\ObjectBox-1.0.2-src\regressor>java  -cp "obox.jar";"objectbox-1.0.2.jar";"C:\Temp\oxml\ObjectBox-
1.0.2-src\ant.jar";"C:\Temp\oxml\ObjectBox-1.0.2-src\bsf.jar";"C:\Temp\oxml\ObjectBox-1.0.2-src\jakarta-oro-2.
0.7.jar";"C:\Temp\oxml\ObjectBox-1.0.2-src\jcup-rt.jar";"C:\Temp\oxml\ObjectBox-1.0.2-src\jcup.jar";"C:\Temp\o
xml\ObjectBox-1.0.2-src\jlex.jar";"C:\Temp\oxml\ObjectBox-1.0.2-src\olib.jar";"C:\Temp\oxml\ObjectBox-1.0.2-sr
c\pack.jar";"C:\Temp\oxml\ObjectBox-1.0.2-src\servlet.jar";"C:\Temp\oxml\ObjectBox-1.0.2-src\tagbox-utils.jar"
;"C:\Temp\oxml\ObjectBox-1.0.2-src\xalan.jar";"C:\Temp\oxml\ObjectBox-1.0.2-src\xerces.jar";"C:\Temp\oxml\Obje
ctBox-1.0.2-src\xinclude.jar" org.oXML.engine.ObjectBox  -e org.oXML.extras.java.JavaExtensions  -e org.oXML.e
xtras.db.DatabaseExtensions  -e org.oXML.extras.reflection.ReflectionExtensions  -e org.oXML.extras.xinclude.X
IncludeExtensions  -v summary.oml
Wed Sep 01 13:10:11 CEST 2004   trace: adding language extension: org.oXML.extras.java.JavaExtensions
Wed Sep 01 13:10:11 CEST 2004   trace: adding language extension: org.oXML.extras.db.DatabaseExtensions
Wed Sep 01 13:10:11 CEST 2004   trace: adding language extension: org.oXML.extras.reflection.ReflectionExtensi
ons
Wed Sep 01 13:10:11 CEST 2004   trace: adding language extension: org.oXML.extras.xinclude.XIncludeExtensions
Wed Sep 01 13:10:11 CEST 2004   trace: compiling...
Wed Sep 01 13:10:11 CEST 2004   trace: importing: file:/C:/Temp/oxml/ObjectBox-1.0.2-src/regressor/file.oml
Wed Sep 01 13:10:11 CEST 2004   error: org.apache.oro.io.GlobFilenameFilter
java.lang.ClassNotFoundException: org.apache.oro.io.GlobFilenameFilter
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at org.oXML.extras.java.ResolveMapping.map(ResolveMapping.java:36)
        at org.oXML.engine.CompilationContext.getTemplate(CompilationContext.java:263)
        at org.oXML.engine.CompilationContext.getBody(CompilationContext.java:297)
        at org.oXML.engine.mapping.dom.TypeMapping.map(TypeMapping.java:126)
        at org.oXML.engine.CompilationContext.getTemplate(CompilationContext.java:263)
        at org.oXML.engine.CompilationContext.getBody(CompilationContext.java:297)
        at org.oXML.engine.mapping.dom.ElementMapping.map(ElementMapping.java:49)
        at org.oXML.engine.CompilationContext.getTemplate(CompilationContext.java:263)
        at org.oXML.engine.CompilationContext.getBody(CompilationContext.java:297)
        at org.oXML.engine.mapping.dom.DocumentMapping.map(DocumentMapping.java:27)
        at org.oXML.engine.CompilationContext.getTemplate(CompilationContext.java:281)
        at org.oXML.engine.CompilationContext.compile(CompilationContext.java:242)
        at org.oXML.engine.CompilationContext.importURL(CompilationContext.java:349)
        at org.oXML.engine.mapping.dom.ImportMapping.map(ImportMapping.java:42)
        at org.oXML.engine.CompilationContext.getTemplate(CompilationContext.java:263)


With kind regards,
         Mark

_______________________________________________
o-xml mailing list
o-xml@...
http://lists.pingdynasty.com/mailman/listinfo/o-xml
Dick Wyman | 9 Sep 2004 17:39

Build problem

My apologies in advance. I suspect this is a configuration problem, but I
don't do enough work in Java to be able to solve it.

I downloaded the latest source distribution and created an Eclipse project
for it. I'm using Eclipse 3.0 and Java version 1.4.2_05.

Eclipse reports 100 errors. The first is 'ElementNode cannot be resolved (or
is not a valid type)...

Have I missed something obvious?

Thanks

--RKW
Martin Klang | 9 Sep 2004 19:22
Picon
Favicon

Re: Error while running regression tests.

Hi Mark,

The class definitely is in jakarta-oro-2.0.7.jar.
You can verify this with eg
 > jar tf C:\Temp\oxml\ObjectBox-1.0.2-src\jakarta-oro-2.0.7.jar
which should show
org/apache/oro/io/GlobFilenameFilter.class

It seems however to be missing from objectbox-1.0.2.jar, which is a bug!

/m

On 1 Sep 2004, at 12:11, mark.venbrux_3@... wrote:

>
> Hi,
>
> I tried to add all jars and extensions that I could find to the 
> command, but I still get the error:
> "java.lang.ClassNotFoundException: 
> org.apache.oro.io.GlobFilenameFilter"
> What did I miss?

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
Martin Klang | 9 Sep 2004 19:12
Picon
Favicon

Re: Build problem

Hi,

The source distribution comes with an Ant build file (build.xml), and 
requires Apache Ant to build.
Some of the Java source files are generated either from JCup/JLex 
definitions (the expression parser) or by an XML transformation (the 
core o:XML type definitions, eg ElementNode). The build file generates 
these automatically.
I've no experience with Eclipse myself, and don't know if it comes with 
Ant. If not you can download Ant from here:
http://ant.apache.org/

 From the command line, with Ant installed, you can build with eg
 > ant all

other targets include 'docs', 'tests' etc.

hth,

/m

On 9 Sep 2004, at 16:39, Dick Wyman wrote:

> My apologies in advance. I suspect this is a configuration problem, 
> but I
> don't do enough work in Java to be able to solve it.
>
> I downloaded the latest source distribution and created an Eclipse 
> project
> for it. I'm using Eclipse 3.0 and Java version 1.4.2_05.
>
> Eclipse reports 100 errors. The first is 'ElementNode cannot be 
> resolved (or
> is not a valid type)...
>
> Have I missed something obvious?
>
> Thanks
>
> --RKW
>
> _______________________________________________
> o-xml mailing list
> o-xml@...
> http://lists.pingdynasty.com/mailman/listinfo/o-xml
>

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
chris_guenther | 14 Sep 2004 10:34
Picon
Favicon

(unknown)

Hi all,

I have just downloaded oxml, thus I am a real oxml-newbie (please forgive me if the question had been posted already plenty of times (I tried to "grep" the archive but could not find any hints))

I just tried the first example chapter-1.oml which failed because the variable dynamic is not defined. I actually expected this example to fail and thought it would be a good idea (as a starter) to enhance this file by introducing a parameter dynamic to the program and set this paramter via the -Ddynamic=FOO command line option.

This is how the example looks like after including the parameter to the program:


/////////////////////////////////////////////////////////////////////////////////////
xmlns:ex="http://www.o-xml.org/examples/">









coffee
this is a coffee bean




href="style.xsl" type="text/xsl"




leading and trailing whitespace might otherwise have been removed



here is some mixed static and content.


/////////////////////////////////////////////////////////////////////////////////////



and this is what the oxml interpreter thinks about it:


/tmp/oxml# java -jar objectbox-1.0.2.jar -Ddynamic="hallo" chapter-1.oml
Tue Sep 14 10:19:45 CEST 2004 warning: unhandled o:XML element: param
Tue Sep 14 10:19:45 CEST 2004 error: in program: file:/tmp/oxml/chapter-1.oml
Tue Sep 14 10:19:45 CEST 2004 error: undefined variable: dynamic



Besides warning about the "unhandled o:XML element: param" there is no difference compared to the execution of the original chapter-1.oml.

My question is: why is the parameter 'dynamic' not recognized by the oxml interpreter ?
In other words: what is wrong with '' ?

Thanks a lot in advance for your help.

best regards,
Christian


--
email (private): chris_guenther-KuiJ5kEpwI6ELgA04lAiVw@public.gmane.org

--

_______________________________________________
o-xml mailing list
o-xml@...
http://lists.pingdynasty.com/mailman/listinfo/o-xml
Martin Klang | 14 Sep 2004 13:03

Re:

Hi Chris!

The examples could be better, and yes it is a good idea if they run 
without modification!
At the moment they're generated from the document sources but a 
hand-revised set of examples is probably preferable.

In the code the 'param' is not recognised because the 'program' being a 
literal element rather than an o:XML directive - that is, it is not in 
the o:XML namespace. Just change it to '<o:program>' and it should 
work!

regards,

/m

On 14 Sep 2004, at 9:34, chris_guenther@... wrote:

> Hi all,
>
>  I have just downloaded oxml, thus I am a real oxml-newbie (please 
> forgive me if the question had been posted already plenty of times (I 
> tried to "grep" the archive but could not find any hints))
>
>  I just tried the first example chapter-1.oml which failed because the 
> variable dynamic is not defined. I actually expected this example to 
> fail and thought it would be a good idea (as a starter) to enhance 
> this file by introducing a parameter dynamic to the program and set 
> this paramter via the -Ddynamic=FOO command line option.

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

Gmane