GeeCON Prague 2014*
The moose likes Tomcat and the fly likes Tomcat installation problems! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat installation problems!" Watch "Tomcat installation problems!" New topic
Author

Tomcat installation problems!

Younes Essouabni
Ranch Hand

Joined: Jan 13, 2002
Posts: 479
Hello all,
I'll start by thanking all the people who read this topic. I know that this subject was debated often here, but I read a lot of suggestions and it seems like it is getting worse and worse.
I downloaded the Tomcat 4.1.12. Installing it was really easy. Now the problem is that I have differents suggestions for settings the environment variables. I tried many, but none succeeded.
So here is how my Environment variables are set:
CATALINA_HOME : D:\Program_Files\Apache Group\Tomcat 4.1;
JAVA_HOME : D:\j2sdk1.4.1_01;
PATH : D:\Program_Files\Oracle\bin;D:\Program_Files\Oracle\jre\1.1.7\bin;%SystemRoot%\system32;%SystemRoot%;D:\Program_Files\Oracle\orb\bin;D:\j2sdk1.4.1_01\bin; (Is there any problem with the JRE(oracle) set before the JDK?)
CLASSPATH: .\;D:\Program_Files\Oracle\orb\classes\yoj.jar;D:\Program_Files\Oracle\orb\classes\share.zip;D:\Program_files\apache group\Tomcat 4.1\common\lib\servlet.jar;D:\j2sdk1.4.1_01\Lib\tools.jar;D:\j2sdk1.4.1_01\Lib;
Now if I go to Catalina_home and type Startup, I get the following error message: The CATALINA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
But when I type echo %Catalina_HOME% I get this : D:\Program_Files\Apache Group\Tomcat 4.1; (Isn't it the good one, shall I include the bin?)
If I use the shortcut, I get an other error message: Can't find the java.exe
If I type in the browser http://localhost:8080/ I get another error message: HTTP STATUS 500
The server encountered an internal error () that prevented it from fulfilling this request.
It seems like the server is responding, but I can't get the normal page. If somebody has any idea to help me stopping scraching my head, it would be very nice.
Thanks in advance
[ December 10, 2002: Message edited by: Younes Essouabni ]

Younes
By constantly trying one ends up succeeding. Thus: the more one fails the more one has a chance to succeed.
Younes Essouabni
Ranch Hand

Joined: Jan 13, 2002
Posts: 479
Here is the complete error message provided by Tomcat:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
[javac] Compiling 1 source file
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:120)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:313)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:324)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:536)
Younes Essouabni
Ranch Hand

Joined: Jan 13, 2002
Posts: 479
Me again
This is a part of the startup.bat:

If I type echo%CATALINA_HOME% I get :
D:\Program_Files\Apache Group\Tomcat 4.1\bin>echo %CATALINA_HOME%
D:\Program_Files\Apache Group\Tomcat 4.1;
I type dir to check if catalina.bat is in there and I get :
D:\Program_Files\Apache Group\Tomcat 4.1\bin>dir

Directory of D:\Program_Files\Apache Group\Tomcat 4.1\bin
12/10/02 04:17p <DIR> .
12/10/02 04:17p <DIR> ..
09/23/02 10:23a 24,589 bootstrap.jar
09/23/02 10:23a 7,400 catalina.bat
09/23/02 10:23a 8,556 catalina.sh
.
.
.
23 File(s) 148,154 bytes
4,524,335,104 bytes free
since /bin/catalina.bat is in there, why do I get the error?
[ December 10, 2002: Message edited by: Younes Essouabni ]
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Try move your Tomcat installation to e.g. 'D:\tomcat\' - the idea here is to place the webserver in the file system - so there is no spaces in the URL
set CATALINE_HOME to 'D:\tomcat'
change your path entry 'D:\Program_Files\Oracle\jre\1.1.7\bin' to 'D:\j2sdk1.4.1_01\jre\bin'
Rene
[ December 10, 2002: Message edited by: Rene Larsen ]

Regards, Rene Larsen
Dropbox Invite
Tina Coleman
Ranch Hand

Joined: Dec 12, 2001
Posts: 150
If Tomcat isn't starting, how do you have a stack trace? I'm confused. . .
We've had some problems with the startup scripts on Windows machines, though in our case it was with the CATALINA_OPTS environment variable. Check something first: verify that the error message you think you're getting is the one you're actually getting (doesn't seem to make sense if you're getting a stack trace). Prepend the error message in the startup file with something obvious to let you know that that's the one that's executing.
Younes Essouabni
Ranch Hand

Joined: Jan 13, 2002
Posts: 479
Thanks Rene for your reply, I already thought to remove all the blank spaces, but it didn't help me.
I tried also your second suggestion, I changed my path, but successless too
Thanks for your help.
What I don't understand is: why the startup.bat don't find the CATALINA_HOME? I tried to set it in my environment variables and in the system variables. Which one is good?
Younes Essouabni
Ranch Hand

Joined: Jan 13, 2002
Posts: 479
Originally posted by Tina Coleman:
If Tomcat isn't starting, how do you have a stack trace? I'm confused. . .

Well I am confused too
I don't understand how I do this :"Check something first: verify that the error message you think you're getting is the one you're actually getting (doesn't seem to make sense if you're getting a stack trace). Prepend the error message in the startup file with something obvious to let you know that that's the one that's executing."
Could you explain more please.
Thx for your help
Younes Essouabni
Ranch Hand

Joined: Jan 13, 2002
Posts: 479
Well, like Rene suggested, I removed Tomcat and installed it again in D:\Tomcat. When I run startup.bat, I don't get anymore the error message about the CATALINA_HOME. But, I have a brand new error
The system cannot find the file -Djava.endorsed.dirs=.
I forgot to say that I am Using windows NT4 with latest patch, are there any well known issues about NT4? I also have apache Installed on this machine, but it is disabled (Is it a problem?)
Like my signature said I will go on until I succeed ,unless I have a heart attack
Thanks for all your helps !
Younes Essouabni
Ranch Hand

Joined: Jan 13, 2002
Posts: 479
I tried at home. My config at home is Win2k and Tomcat 4.0.3.
I set (sat?? soot?? how do we say?) the environment variables the same way.
And when I run in command prompt the startup.bat I have the same error: The system cannot find the file -Djava.endorsed.dirs=.
When I launch the shortcut it works fine, and I can see the nice tomcat.
I don't get why it is working at home and not at works, neither why the shortcut works fine and not the command prompt. If anybody has some explanations, I will listen carrefully.
Thanx in advance
Younes Essouabni
Ranch Hand

Joined: Jan 13, 2002
Posts: 479
I tried to make Tomcat 4.1.12 run at home but successless. Tomcat 4.0.3 and Tomcat 4.0.6 are working perfectly well for me. Is there any issues with Tomcat 4.1.12?
Now that it works, I won't come bother you anymore
Thx for the help provided
 
GeeCON Prague 2014
 
subject: Tomcat installation problems!