-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 23 October 2002 00:54, Geoff Howard wrote: > Where is that being thrown? > What line number of what class?
Lets see. I can't claim to grok the error messages, so lets see if I can figure out the relevant parts: javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935) So, it is in line 935 of org.apache.catalina.core.StandardWrapper.loadServlet that the exception is thrown, right? If I look at the root cause, there may be more that can set us on the trail of something: java.lang.NoClassDefFoundError: javax/xml/transform/URIResolver at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:488) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1631) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:926) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1243) at org.apache.avalon.excalibur.component.ExcaliburComponentManager.configure(ExcaliburComponentManager.java:435) at org.apache.cocoon.Cocoon.configure(Cocoon.java:418) at org.apache.cocoon.Cocoon.initialize(Cocoon.java:284) at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1269) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:469) > Sure sounds like it's just a classpath issue - Yes, it does. > How did you move to SDK 1.3.1 (ie, were you on 1.4 > before?) Yes, both 1.4.1 and 1.4.0 was tried. I made the transition by unpacking in a different directory and set JAVA_HOME to the new directory in the shell where I did the compilation (owned by root) and in /etc/default/tomcat4 Come to think of it, I haven't done anything to /usr/lib/java* lately (i.e. links there point to binaries that no longer exist), but surely, with JAVA_HOME set, they should matter? > Did you rebuild cocoon using that new SDK? Yes, deleted the old cocoon.war and the unpacked contents. Even deleted the Tomcat work directory, then byte-compiled Cocoon. > (Make sure > the message reported by ant at the beginning of the > build thinks it's using the same JDK you think you > are) Yes. Actually, when building for 1.4 it says that the JDK is 1.4, whereas with 1.3 it says that it is for 1.2. This has however worked before, and I also heard that I shouldn't worry about it. Also, it might be relevant that I saw the same thing when I attempted to install Cocoon on a workstation that had never seen Cocoon, Tomcat nor Java before. > If so, did you do a "./build.sh clean" first? Yes. > What is in WEB-INF/lib? Tons of stuff...: pooh:/var/lib/tomcat4/webapps/cocoon/WEB-INF/lib> ls Jisp2.0.1.jar avalon-framework-20020627.jar batik-all-1.5b2.jar bsf-2.2.jar chaperon-1.3-dev.jar cocoon-2.1-dev.jar cocoon-authentication-fw-block.jar cocoon-batik-block.jar cocoon-chaperon-block.jar cocoon-databases-block.jar cocoon-fop-block.jar cocoon-hsqldb-block.jar cocoon-jfor-block.jar cocoon-portal-fw-block.jar cocoon-samples.jar cocoon-session-fw-block.jar cocoon-swf-block.jar commons-collections-1.0.jar commons-httpclient-20020909.jar commons-jxpath.jar commons-logging-1.0.jar deli-0.6.5.jar excalibur-altrmi-common-20020916.jar excalibur-altrmi-server-impl-20020916.jar excalibur-altrmi-server-interfaces-20020916.jar excalibur-cli-1.0.jar excalibur-collections-20020820.jar excalibur-component-20020916.jar excalibur-concurrent-20020820.jar excalibur-datasource-vm12-20020820.jar excalibur-i18n-1.0.jar excalibur-instrument-20020916.jar excalibur-instrument-manager-20020916.jar excalibur-instrument-manager-interfaces-20020916.jar excalibur-io-1.1.jar excalibur-logger-20020820.jar excalibur-monitor-20020820.jar excalibur-naming-1.0.jar excalibur-pool-20020820.jar excalibur-sourceresolve-20020820.jar excalibur-store-20020820.jar excalibur-xmlutil-20020820.jar fop-0.20.4.jar hsqldb-1.7.0.jar itext-0.93b.jar itext-xml-0.93.jar jakarta-poi-1.7.0-dev-20020624.jar jakarta-regexp-1.2.jar jena-1.3.0.jar jfor-0.7.0.jar jimi-1.0.jar jstyle.jar jtidy-04aug2000r7-dev.jar logkit-20020529.jar lucene-1.2.jar maybeupload_1-0-5pre3.jar pizza-1.1.jar rdffilter.jar resolver-20020130.jar rhino1.5r4-continuations-20020816.jar spark.jar velocity-1.2.jar xalan-2.3.1.jar xercesImpl-2.1.0.jar xml-apis.jar xmldb-api-20011111.jar xsltc-20020723.jar Best, Kjetil - -- Kjetil Kjernsmo Astrophysicist/IT Consultant/Skeptic/Ski-orienteer/Orienteer/Mountaineer [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Homepage: http://www.kjetil.kjernsmo.net/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9tuZ/lE/Gp2pqC7wRApQ5AJ4t92xKwplj5eyPGH26aqK1PR0RFwCeIzR8 EvW06LOm/RqB1S/cSB5TAGY= =VT4z -----END PGP SIGNATURE----- --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>