File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Help - problem with a fresh install of tomcat and JSP - SOLVED Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Help - problem with a fresh install of tomcat and JSP - SOLVED" Watch "Help - problem with a fresh install of tomcat and JSP - SOLVED" New topic
Author

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

Oz Kron
Ranch Hand

Joined: Feb 27, 2007
Posts: 41
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

Joined: Apr 20, 2002
Posts: 510
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

Joined: Feb 27, 2007
Posts: 41
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

Joined: Jul 06, 2005
Posts: 1016
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

Joined: Dec 11, 2004
Posts: 13410

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.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Oz Kron
Ranch Hand

Joined: Feb 27, 2007
Posts: 41
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

Joined: Feb 27, 2007
Posts: 41
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

Joined: Feb 27, 2007
Posts: 41
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

Joined: Mar 06, 2001
Posts: 13459

I'm assuming this is the first time you have installed Tomcat?
Otherwise, what is your CATALINA_HOME set to?
Oz Kron
Ranch Hand

Joined: Feb 27, 2007
Posts: 41
Well I didn't set the CATALINA_HOME
Do I need to set it up?
Oz Kron
Ranch Hand

Joined: Feb 27, 2007
Posts: 41
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

Joined: Mar 06, 2001
Posts: 13459

Have you checked in th tomcat/logs like the error suggests? It may have additional information.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

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

Joined: Feb 27, 2007
Posts: 41
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

Joined: Dec 11, 2004
Posts: 13410

Thanks you for posting back with your solution.
Oz Kron
Ranch Hand

Joined: Feb 27, 2007
Posts: 41
Sure no problems
Any way
This thread can be closed now.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

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

Joined: Feb 27, 2007
Posts: 41
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Help - problem with a fresh install of tomcat and JSP - SOLVED
 
Similar Threads
LinkedList Problems in JSP
compiling bean
Tomcat error 500?
Help - problem with a fresh install of tomcat and JSP
Unable to compile class for JSP