Wrox Home  
Search P2P Archive for: Go

  Return to Index  

j2ee thread: RE: Tomcat run error


Message #1 by Chanoch Wiggers <ChanochW@w...> on Thu, 6 Sep 2001 16:53:22 +0100
this usually happens if there is an alternate XML parser in your classpath
that is loading before the one Tomcat wants. I cant remember the exact
explanation but basically, a parser that doesnt do everything that tomcat
needs (or maybe does it different) is being loaded first and then tomcat
doesnt run propery.

The fix is a bit complex and requires you to edit the tomcat.bat file. I'll
try and show you how. Open the tomcat.bat file in a text editor and find the
following lines

rem ----- Set Up The Runtime Classpath
--------------------------------------

:setClasspath
set CP=%TOMCAT_HOME%\classes;c:\;			
set CP=%WSTK_HOME%\lib\xerces.jar;         //---->> I added this line here
and the following in order to make tomcat work after this problem
set CP=%CP%;%WSTK_HOME%\soap\lib\soap.jar
set CP=%CP%;%WSTK_HOME%\soap\lib\mail.jar
set CP=%CP%;%WSTK_HOME%\soap\lib\activation.jar;
set CP=%CP%;%WSTK_HOME%\lib\jmxc.jar
set CP=%CP%;%WSTK_HOME%\lib\jmxx.jar;
set CP=%CP%;%WSTK_HOME%\lib\jlog.jar
set CP=%CP%;%TOMCAT_HOME%\classes

rem Try to determine if TOMCAT_HOME contains spaces
if exist %TOMCAT_HOME%\lib\servlet.jar goto dynClasspath
echo Your TOMCAT_HOME appears to contain spaces.
echo Unable to set CLASSPATH dynamically.
goto staticClasspath

otherwise, take all other parsers off your classpath and try and run the
program again. Finally, if it doesnt matter to you whether you are using
Tomcat3.2.1 or 4, you might consider downloading the beta version of Tomcat
4.0 (the release version should be out shortly) - that tomcat has a windows
installer that is very good.

chanoch


-----Original Message-----
From: hmejia@m... [mailto:hmejia@m...]
Sent: 19 July 2001 01:08
To: Java 2 Enterprise Edition
Subject: [j2ee] Tomcat run error


Recently installed Tomcat, when I issue run command I get the following:
 Thread main JAVAX.XML.PARSER.FactoryConfigurationError 
JAVALANGUAGECLASSNOTFOUNDEXECUTION with some 
ORG.APACHE.CRIMSON.JAXP.SAXParserFactoryImp type errors.

Also,when I issue a start command a message 'TOMCAT STARTING IN NEW 
WINDOW' appears but nothing happens. 

Anybody have any ideas?  Thanks, Henry  
---
Search the best Java Web sites using CodeHound! http://www.codehound.com
Now it's easy to find Java source code on the Internet. CodeHound's free
search engines will categorize your results and even find source code in
Zip files on the Internet! They also have free Add-Ins so you can search
right from your favorite Java IDE.  Search the best Java sites now!

  Return to Index