OK. I stopped Tomcat and removed the entire $TOMCAT_HOME/work folder and restarted Tomcat. Everything looked fine in the Cocoon log files after starting Tomcat until I attempt the first access of the main Cocoon start page, then the log files start showing the following error lines (not all are shown for brevity and bandwidth's sake):
in access.log: ======================================== ERROR (2002-07-25) 13:44.38:280 [access](/cocoon/) Thread-13/CocoonServlet: Problem with servlet org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org/apache/cocoon/www/sitemap_xmap' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR esource(ProgramGeneratorImpl.java:335) ... remaining (mostly duplicate-type) lines removed ... in core.log: ======================================== DEBUG (2002-07-25) 13:44.30:392 [core.language.java](/cocoon/) Thread-13/JavaLanguage: Compiling /usr/local/jakarta-tomcat-3.2.2/work/localhost_8080%2Fcocoon/cocoon-files/or g/apache/cocoon/www/sitemap_xmap.java DEBUG (2002-07-25) 13:44.38:122 [core.program-generator](/cocoon/) Thread-13/ProgramGeneratorImpl: Language Exception org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org/apache/cocoon/www/sitemap_xmap' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap at org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProg ram(JavaLanguage.java:186) in error.log: ======================================== ERROR (2002-07-25) 13:44.38:215[sitemap](/cocoon/) Thread-13/Handler: Error compiling sitemap org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org/apache/cocoon/www/sitemap_xmap' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR esource(ProgramGeneratorImpl.java:335) ... remaining (mostly duplicate-type) lines removed ... in sitemap.log: ======================================== DEBUG (2002-07-25) 13:44.20:938 [sitemap](/cocoon/) Thread-13/Handler: Beginning sitemap regeneration ERROR (2002-07-25) 13:44.38:151 [sitemap](/cocoon/) Thread-13/Handler: Error compiling sitemap org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org/apache/cocoon/www/sitemap_xmap' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR esource(ProgramGeneratorImpl.java:335) ... remaining (mostly duplicate-type) lines removed ... Obviously these error messages in the log files are related to one another. I double-checked the 'work/localhost_8080%2Fcocoon/cocoon-files/org/apache/cocoon/www' folder for the sitemap_xmap files and found: 79221 Jul 25 13:44 sitemap_xmap.class 15470 Jul 25 13:44 sitemap_xmap$Configurer.class 339625 Jul 25 13:44 sitemap_xmap.java These file appear to be fine. The file sizes are maintained through delete/restarts. I've commented out the X server stuff in sitemap.xmap. I've followed the installation instructions on the Cocoon for 'Installing on Tomcat 3.2.X' adding/removing lib files in Tomcat. My $TOMCAT_HOME/lib folder has: ========================================== 330474 May 28 2001 ant.jar 217923 May 28 2001 jasper.jar 40810 May 28 2001 servlet.jar 4096 Jul 25 09:05 test 430434 May 28 2001 webserver.jar 1730053 Apr 11 14:30 xercesImpl-2.0.0.jar 108484 Apr 9 09:20 xml-apis.jar 136133 May 28 2001 zparser.jar I've tried using a "unpackaged" Cocoon set of files as well as just copying over the cocoon.war file (removing the /work/cocoon folder in between each time). The only file I've changed is the sitemap.xmap to comment out the SVG stuff (for now). What else can I try? It has to be something simple at this point or a conflicting pathname/library/jar with an existing app. *sigh* Setup: Cocoon 2.0.2 Tomcat 3.2.2 (with Apache) JBoss 2.4.3 RedHat 7.1 IBM JDK 1.3.0 mark -----Original Message----- From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 1:11 PM To: [EMAIL PROTECTED]; Mark Kent Subject: RE: LanguageException errors on startup > From: Mark S. Kent [mailto:[EMAIL PROTECTED]] > > Sorry about the previous post with a misleading subject... I'm re-posting > this with a 'proper' subject line... > > I got sidetracked and am now trying (once again) to get Cocoon2 running on > our Linux server. We are using Cocoon 2.0.2, Tomcat 3.2.2 (with Apache), > RedHat 7.1, and IBM JDK 1.3.0. > > My last post (12 Apr 2002) left me with this error message on Cocoon > startup: > > message Language Exception > > description org.apache.cocoon.ProcessingException: Language Exception: > org.apache.cocoon.components.language.LanguageException: Could not load > class for program 'org/apache/cocoon/www/sitemap_xmap' due to a > java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap > > sender org.apache.cocoon.servlet.CocoonServlet > > Vadim suggested to check for the existence of the > 'org/apache/cocoon/www/sitemap.xmap' files, of which I have: > 79221 Jul 25 10:44 sitemap_xmap.class > 15470 Jul 25 10:44 sitemap_xmap$Configurer.class > 339625 Jul 25 10:44 sitemap_xmap.java > > He then suggested I also try to compile the sitemap_xmap.java file to ensure > that it is not damaged. I'm not sure how to do this. > > To test the "validity" of the cocoon files I'm trying, I took the cocoon.war > file from the 2.0.2 build folder and ran it with Tomcat 3.2.2 on my Windows > laptop with success (less "headless" head-aches), so I feel confident that > the code within the .war file on the Linux server is fine. However, I'm > still getting the 'Language Exception' error on startup. Then do rm -rf $TOMCAT_HOME/work and try again. Vadim > I regards to the "X display" stuff, I commented out the SVG stuff in > sitemap.xmap but ALL OTHER files are in their original state (no changes by > me). i.e. cocoon.xconf, web.xml, etc. > > Any other suggestions? > > mark --------------------------------------------------------------------- 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]> --------------------------------------------------------------------- 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]>