cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Schroeder <mschroe...@rationalizer.com>
Subject Re: compliation error
Date Tue, 13 Feb 2001 13:21:45 GMT
On Tue, Feb 13, 2001 at 12:52:49AM -0500, Donald Ball wrote:
> On Mon, 12 Feb 2001, Markus Schroeder wrote:
> 
> > Hi all !
> >
> > Last week we updated our cocoon version from 1.7.2 to 1.8.2
> >
> > after the installation i try to recompile the cocoon.jar file from
> > the cocoon sources and the following error messages was shown on my screen:
> >
> > ####################
> > /org/apache/tools/DOMWriter.java:91: cannot resolve symbol
> > symbol  : method createElementNS  (java.lang.String,java.lang.String)
> > location: interface org.w3c.dom.Document
> >     Element e = doc.createElementNS (namespaceURI, name);
> >                    ^
> > /org/apache/tools/DOMWriter.java:130: org.w3c.dom.DOMException is abstract; cannot
be instantiated
> >       throw new DOMException
> >             ^
> > Note: Some input files use or override a deprecated API.
> > Note: Recompile with -deprecation for details.
> > 2 errors
> > make: *** [cocoon] Error 1
> > #####################
> 
> that indicates that there's a jar file with dom1 classes ahead of xerces
> in your classpath. my $50 says openxml.jar. nuke it or move it.
> 
> - donald
> 

OK i have found the error !

its a little bit strange but hey it works =)
ok normally i try to compile the cocoon sources this way

generall classpath was set to:

- echo $CLASSPATH
- .:/home/staff/mschroeder/jar-bin/xerces/xerces_1_3_0.jar:/home/staff/mschroeder/jar-bin/xalan/xalan_1_2D02.jar:/home/staff/mschroeder/jar-bin/turbine/turbine-pool.jar:/home/staff/mschroeder/jar-bin/servlet/servlet_2_2.jar:/home/staff/mschroeder/jar-bin/fop/fop_0_15_0.jar:/home/staff/mschroeder/jar-bin/ant/ant_1_1.jar:/home/staff/mschroeder/jar-bin/w3c/w3c.jar:/home/staff/mschroeder/jar-bin/stylebook/stylebook_1_0_b2.jar:/home/staff/mschroeder/jar-bin/tools/tools.jar:/home/staff/mschroeder/jar-bin/openxml/openxml.jar

then i try to compile with:

- cd cocoon/src/
- javac -d bin/ org/apache/cocoon/Cocoon.java 

this has produce the errormessage above ....
then after some hour of searching & trying ...
ok maybe more trying than searching !

but finally i try this:

- javac -classpath $CLASSPATH -d bin/ org/apache/cocoon/Cocoon.java

AND IT WORKS .... dont ask we why u need to declare the classpath
to the compiler directly when its allready set in ur system config
but this way it works fine ;)


-- 
Schroeder, Markus
mschroeder@rationalizer.com
The Ratonalizer Intelligent Software AG
Rudower Chausee 29, 12489 Berlin, Germany




Mime
View raw message