• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat installation problems!

 
Ranch Hand
Posts: 479
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 Essouabni
Ranch Hand
Posts: 479
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 479
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 479
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 479
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 479
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 479
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 479
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic