cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tom.klaa...@the-ecorp.com
Subject RE: weird build problem - seems to be dependent on jar name
Date Tue, 07 Aug 2001 08:59:59 GMT
Seems like you have some sax classes in your catalog.jar. Probably another
version than the ones cocoon uses, and thus missing some methods (like
getName in org.xml.sax.helpers.XMLReaderAdapter$AttributesAdapter). Putting
a 'z' in front of the jar name causes the jar to be loaded lastly, and thus
allowing cocoon to load the right version of the classes.

To make a long story short: don't provide more than 1 class definition of
the same class in your libs directory. It causes trouble.

hth,
tomK

-----Original Message-----
From: David Crossley [mailto:crossley@indexgeo.com.au]
Sent: dinsdag 7 augustus 2001 4:23
To: cocoon-dev@xml.apache.org
Subject: weird build problem - seems to be dependent on jar name


We have successfully added some new functionality into
our copy of the public release of Apache Cocoon 2.0b2
This involved some tweaks to core code to hook in another
Java package. All went smoothly (adding our jar file
into $COCOON_HOME/lib and edits to src/org/...). Re-build
is fine and our new functionality works as expected.

However, then i CVS checkout the whole cocoon_20_branch
and try to verify that our changes work with the most
recent code. The initial build is fine. Then i make the
exact same mods and try to re-build. Ant bombs with the
following obscure error and does not even get through
init phase. ant -v or ant -debug do not shed any light.

A workaround solution is to rename our jar file so that
it begins with "z" i.e. zcatalog.jar
Now re-build runs perfectly. Why is that hack needed?

Linux RedHat 7.1
java.vm.version=Blackdown-1.3.1-FCS
jakarta-tomcat-3.2.2

Help please, days have been wasted trying to get past this.
thanks, David Crossley

=================================================
Apache Cocoon 2 Build System
----------------------------
Buildfile: build.xml

BUILD FAILED

java.lang.NoSuchMethodError
at
org.xml.sax.helpers.XMLReaderAdapter$AttributesAdapter.getName(XMLReaderAdap
ter.java:470)
at
org.apache.tools.ant.ProjectHelper$ProjectHandler.init(ProjectHelper.java:28
8)
at
org.apache.tools.ant.ProjectHelper$RootHandler.startElement(ProjectHelper.ja
va:262)
at
org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329)
at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
or.java:1191)
at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne
r.java:1862)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java:1005)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:117)
at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:85) 
at org.apache.tools.ant.Main.runBuild(Main.java:403)
at org.apache.tools.ant.Main.main(Main.java:149)
=================================================

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message