• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help - problem with a fresh install of tomcat and JSP - SOLVED

 
Oz Kron
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
I have just install Tomcat 6.0.14 on my pc
Than I just download a "simple" program made in JSP - the one they have on their site, and when trying to run it by doing
http://localhost:8080/sample/hello.jsp

I get this error page, what to do please ?? :

[ October 03, 2007: Message edited by: Oz Kron ]
 
Michael Ku
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
have you tried going to the Tomcat site and reading their documentation on getting started?
[ October 02, 2007: Message edited by: Michael Ku ]
 
Oz Kron
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yep!
the usually servelt does work!
And so is the "start" page you get after the install
But, the example JSP - not
What can I do to fix it up please ?
 
Stefan Evans
Bartender
Posts: 1780
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What version of Java are you running with this?
Have you created your own web application?

My favorite reference for getting started:
http://www.coreservlets.com/Apache-Tomcat-Tutorial/

This would seem to be a classpath issue. You're not including old versions of the jsp-api or servlet-api in the classpath (or WEB-INF/lib directory) are you?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oz Kron,
Please stop asking the same question in multiple threads.
This one has some comments and questions for you.
Keep the conversation to this one.
 
Oz Kron
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok
Like I have said
I have install the one you have given me from the link, done every thing according to the book
This is how my autoexe.bat looks a like


and I get this error


What to do now please?
 
Oz Kron
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
BTW
When running it from Eclips I get the same error
But, when doing some servlets like the ones Tomcat give on their example dir, it works
So I really can't figure out what is wrong, so any JSP (even a simple hello world) doesn't work
 
Oz Kron
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HERE
I have download this example from here
http://simple.souther.us/ar01s02.html
Put it, and every thing works
But
JSP still doesn't work
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm assuming this is the first time you have installed Tomcat?
Otherwise, what is your CATALINA_HOME set to?
 
Oz Kron
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well I didn't set the CATALINA_HOME
Do I need to set it up?
 
Oz Kron
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok I have set it up
Still can't use JSP
And yes this is a new install of the Tomcat - Servlets and HTML works fine!

What else can I do please?
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you checked in th tomcat/logs like the error suggests? It may have additional information.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would also fire up the Tomcat manager application and make sure that you're using the version of Java that you think you are.

There is a ServerStatus link near the top right hand side of the manager app's front page. The status page will tell you what version of Java Tomcat is using.
 
Oz Kron
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Problem solver guys!
It seem I had a thing in my path, where an older version of some api's like Servlet.api was casuing some mismatch!
Now Every thing work very nice!
Thank you guys
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks you for posting back with your solution.
 
Oz Kron
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure no problems
Any way
This thread can be closed now.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, leave it open so people like me can come in add our own "Thanks for coming back and reporting the solution"
 
Oz Kron
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure man!
What is more funny, that the only reason I had this problem was because in my university they told us to put those files in the JAVA dir - well I guess they didn't updated it like for years
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic