• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Help! Starting Apache Tomcat 4.1.31 Fails

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello.. new to Tomcat and I'm having a problem right out of the gate. Running Windows 2000 Professional and using j2sdk1.4.2_06. I don't seem to get any errors starting up, but when I get to the following lines:
nNull=true
May 20, 2005 12:14:06 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
May 20, 2005 12:14:07 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
May 20, 2005 12:14:07 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=20/120 config=C:\Program Files\Apache Group\Tomcat 4
.1\conf\jk2.properties

it just seems to hang.. no splash screen comes up, starting Tomcat Administration fils.. etc.. if I try and enter http://localhost:8080/ in my browser it fails with:

HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

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:85)

Help?
 
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What version of Tomcat are you using?
 
Craig Jackson
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ignore the previous post, I didn't see the version of Tomcat in the subject area.

Have you set the JAVA_HOME, TOMCAT_HOME environment variables correctly?

Do you have enough memory?
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you got that message, Tomcat is running.
You might want to look in the log files for further information on why it was unable to compile the index.jsp initial page.
I think Tomcat 4 uses CATLINA_HOME not TOMCAT_HOME
Bill
 
Richard Collins
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Craig,
JAVA_HOME was set correctly. I didn't think I needed to have TOMCAT_HOME set under Windows 2000 and so did not have it set. I've added it, but I am getting the same results.. consistently hangs when it gets to the lines:

May 20, 2005 7:53:43 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
May 20, 2005 7:53:43 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=40/60 config=C:\Program Files\Apache Group\Tomcat 4.
1\conf\jk2.properties

I believe I have enough memory, 384 mb in my system to start, and I'm hardly running anything else.

Ideas? I expected to have problems later as I start writing & deploying Jsp's etc.. but not yet!

Thanks..
 
Richard Collins
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Log files look fine.. I'll try changing TOMCAT_HOME to CATALINA_HOME and let you guys know what I get..
 
Richard Collins
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nope.. Changing the env var didn't do the trick.. Results are the same. And to clarify.. When Tomcat is started (as Bill pointed out it was) and only seems to be hung.. I check the log files and they look good, as in no errors. Then I enter http://localhost:8080/ in my browser and get the HTTP Status 500 - error, as in my first post. Now if I check the log files I see the compile errors:
2005-05-20 08:45:02 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
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:85)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:248)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:315)

I'll keep working at it but I'm kind of spinning my wheels now...

Thanks!
Rich
 
Richard Collins
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well.. couldn't waste more time with that.. I've uninstalled this version of Tomcat and I'm now going to try 5.5 and see what happens..
Thanks..
 
Craig Jackson
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not exactly sure about this, but I believe tomcat 5.5 requires JDK1.5?
 
I like tacos! And this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic