• 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 not running JSPs

 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am new to J2EE and have just installed both Orion and Tomcat on my machine. Orion is working fine, I have been able to run both test servlets and JSPs without a problem. Tomcat is only running servlets and even their example JSPs are giving this error:


Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error
--------------------------------------------------------------------------------
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception......


Is there something more I need to do to implement JSP processing for Tomcat?
Thanks,
Liz
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tomcat is only running servlets and even their example JSPs are giving this error:
Internal server errors...
Its not you its me.
Thats what Tomcat is trying to tell you, I guess.
I hate these when there are no helpful msgs.
Anyways, could you elaborate on your installation/settings.
Also, please verify the URL for the example you are trying to
access and the existance of the correct file in the sub-dir's.
Personally I haven't moved to Tomcat 4.0 so I haven't had
much experience with it.
The least I can suggest is (if you haven't tried it)
restart Tomcat. Other things would be to change something in
the JSP source file (like adding a new blank line) and so
forcing Tomcat to compile the page again.
Sorry without having tried it, I can't suggest anything better.
Good luck.
- satya
 
Elizabeth Lester
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Satya,
Thanks for the response. I have experimented a fair amount and talked with some of the guys in the SCWCD forum (link to our conversation here)--the general result has been that it seems like my setup is correct (all subdirectories are there, I have tried restarting, reinstalling, installing a different 4.x version, etc.) but Tomcat is not even compiling the JSPs into servlets.
It also seems like I am not the only one with this problem, which is encouraging, but still a bummer since no one has a solution yet!
Let me know if you see anything enlightening in the other thread?
Thanks a lot,
Liz
[This message has been edited by Elizabeth Lester (edited October 26, 2001).]
 
Elizabeth Lester
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I just wanted to let everyone know that I have solved the problem. If you have one similar, you can read this thread.
Thanks for the help!
--liz
 
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please tell us HOW you solved the problem. I am using instructions I got off a website, and even following those instructions *to the T* on my Windows NT Server machine has not provided me with a working server that serves JSP and Servlets.
Thank you,
Thomas
 
Ranch Hand
Posts: 3143
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I know this problem has been solved but I thought I'd move this thread to our new Apache/Tomcat forum so it can be useful to folks over there too.
 
Elizabeth Lester
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Thomas,
As I mentioned above, I described what I did that got things working in another thread here.
Basically I started over from scratch, removed both servers and the JDK from my machine, and reinstalled everything cleanly.
Hope it works for you too!
--liz

[This message has been edited by Elizabeth Lester (edited November 28, 2001).]
reply
    Bookmark Topic Watch Topic
  • New Topic