I am getting the following error message, when I start Tomcat 4.0 server from Tomcat's bin directory. --------------------------------------------------- C:\tomcat\jakarta-tomcat-4.0-m5\bin>startup Using CLASSPATH: ..\bin\bootstrap.jar;c:\jdk1.2.2\bin;\lib\tools.jar Cannot find file 'c:\jdk1.2.2\bin;\bin\java' (or one of its components). Check to ensure the path and filename are correct and that all required libraries are available. ---------------------------------------------------- It looks like the error is related to JDK1.2.2 But I could't find out the problem. The following is my autoexec.bat file ---------------------------------------------------- C:\PROGRA~1\NETWOR~1\MCAFEE~1\SCAN.EXE C:\ @IF ERRORLEVEL 1 PAUSE @echo off
REM To make a DOS Boot Diskette; See the file C:\DOSBOOT\DOSBOOT.TXT path C:\WINDOWS;C:\WINDOWS\COMMAND;c:\jdk1.2.2\bin; set JAVA_HOME=c:\jdk1.2.2\bin; set CLASSPATH=c:\jdk1.2.2\lib\tools.jar; set TOMCAT_HOME=c:\tomcat; doskey/insert @REM SetPower.exe will initialize the USB Keyboard. @c:\windows\system\setpower.exe ----------------------------------------------------- Please help me Thanks Balaji
Anonymous
Ranch Hand
Joined: Nov 22, 2008
Posts: 18944
posted
0
Modify Autoexec.bat to have Java Home set to jdk1.2.2 not bin
[This message has been edited by Uday Kotla (edited January 19, 2001).]
Balaji Sadasivam
Greenhorn
Joined: Nov 16, 2000
Posts: 25
posted
0
Thanks for your reply. It worked!! But, I have another issue. After the startup, the second window pops-up and after few seconds it closes automatically. What can I do now?? Thanks Balaji
Madhav Lakkapragada
Ranch Hand
Joined: Jun 03, 2000
Posts: 5040
posted
0
I would first replace this line in your autoexec.bat file set CLASSPATH=c:\jdk1.2.2\lib\tools.jar; with the line: set CLASSPATH=%CLASSPATH%;c:\jdk1.2.2\lib\tools.jar - add %CLASSPATH%; in the beginning and then - remove the semi-colon at the end of the line. hope this works. regds - satya
No. It is not working. I made the following the change to startup.bat file to find out the problem. (to prevent the execution of second DOS window, I commented out the 'start' in startup.bat file) rem "%CATALINA_HOME%\bin\catalina" start %1 %2 %3 %4 %5 %6 %7 %8 %9 "%CATALINA_HOME%\bin\catalina" %1 %2 %3 %4 %5 %6 %7 %8 %9 Then I realized that it is expecting some parameters and I tried the follwoing one. C:\tomcat\jakarta-tomcat-4.0-m5\bin>startup run After trying with the above command, I am getting bunch of errors. I am reaaaaaally going mad about this tomcat setup. Can someone help me to fix this problem. -Balaji The following are SOME of the errors. -------------------------------------------------------------- at org.apache.crimson.parser.Parser2.parse(Parser2.java:304) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:300) at javax.xml.parsers.SAXParser.parse(SAXParser.java:245) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228) at org.apache.catalina.startup.Catalina.start(Catalina.java:648) at org.apache.catalina.startup.Catalina.execute(Catalina.java:618) at org.apache.catalina.startup.Catalina.process(Catalina.java:175) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:134)
Balaji Sadasivam
Greenhorn
Joined: Nov 16, 2000
Posts: 25
posted
0
This is related to my previous posting... If I use startup without any parameters, I am getting the following error message. -------------------------------------------------------------- Using CLASSPATH: ..\bin\bootstrap.jar;c:\jdk1.2.2\lib\tools.jar Bad command or file name Runs a Windows program or an MS-DOS program. START [options] program [arg...] START [options] document.ext /m[inimized] Run the new program minimized (in the background). /max[imized] Run the new program maximized (in the foreground). /r[estored] Run the new program restored (in the foreground). [default] /w[ait] Does not return until the other program exits. Bad command or file name Commands: env - Set up environment variables that Catalina would use run - Start Catalina in the current window start - Start Catalina in a separate window stop - Stop Catalina -------------------------------------------------------------- Can someone help me to fix these problems??? Thanks Regds Balaji
Adrian Yan
Ranch Hand
Joined: Oct 02, 2000
Posts: 688
posted
0
I also got this problem, instead of using :\>tomcat start, use :\>tomcat run (Running it in the same window).
Balaji Sadasivam
Greenhorn
Joined: Nov 16, 2000
Posts: 25
posted
0
I tried that also. If I try to run in the same window, I am getting set od errors, Which I listed in one of my previous postings (Scroll up) If I run in the same window - set of errors If I run in different window - set of errors and the window closes automatically. Any comments??? -Balaji
Madhav Lakkapragada
Ranch Hand
Joined: Jun 03, 2000
Posts: 5040
posted
0
Balaji: there are a few things I can suggest....... (also, this is from what I have seen from other posting here for tomcat help and my own experience.) tomcat may run into a memory issue To get arround this, use the properties from the MS dos window and set the memory to a high value say select from the drop down menu window pops-up and dies From what I have seen, this could happen for more than one reason. Check the TOMCAT_HOME and JAVA_HOME definition. Then the tools.jar in the CLASSPATH. Tomcat may not be installed properly.
While the above are just some of the many thing that can go wrong, pl note that you might have done eveything correct. One of the BEST ways to get help is from the USers Guide which comes with your copy of tomcat. Generally you can find it at the following URL: TOMCAT_HOME\doc\uguide\tomcat_ug.html The other document which will be helpful is: TOMCAT_HOME\doc\appdev\index.html for developing applications. Also, note that the users guide includes common pitfalls and how to avoid them. Personally, I would not go around and change the original conf settings. regds. - satya
Balaji Sadasivam
Greenhorn
Joined: Nov 16, 2000
Posts: 25
posted
0
Thanks for your reply.
I made several attempts to fix the problems with Tomcat 4.0. All my efforts are ended in vain. Finally, I tried with Tomcat 3.2.1, it is working perfect and I am able to run Servlets examples.!!! I will take a look at the user guide to find out where I made a mistake with 4.0 Thanks guys for your help. Regds Balaji
Madhav Lakkapragada
Ranch Hand
Joined: Jun 03, 2000
Posts: 5040
posted
0
One thing I have noticed is that in an effort to improve the funcationality a lot of changes are going on and each release may need a little tweaking in the config. for obvious reasons. Also, config for Tomcat 3.1 was a little different from v3.2 So IMHO, its always helps when you read the UG. Anyways good to know that you could get started. regds. - satya
Alan Rushforth
Greenhorn
Joined: Nov 15, 2002
Posts: 5
posted
0
Hi. This is just a thought becuase i had a similair error. Did you download the LE(lightweight edition) version of tomcat 4. This version apparently does not come with the jndi and xml parser files required. Try to download a verison of tomcat that does end in LE. Just a thought though not 100% sure it will work. Cheers
Alan Rushforth
Greenhorn
Joined: Nov 15, 2002
Posts: 5
posted
0
Sorry forgot to add. If you update to version 1.4 of the java sdk the files are present there this is why they are not in tomcat 4 but if you want to use j2sdk1.2 you will need to download full edition of tomcat.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.