Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP question  RSS feed

 
Sean Casey
Ranch Hand
Posts: 625
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm using Tomcat, and that works fine for servlets. However, when I create a jsp page, or try to run the examples, I get an
Error 500:
sun/tools/javac/Main
I'm not sure what this is. I imagine perhaps I have to adjust something in my classpath. IF anyone has any ideas, please let me know.
 
Sean Casey
Ranch Hand
Posts: 625
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone???
 
Sean Casey
Ranch Hand
Posts: 625
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need a little help over here.
 
mocca az
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you running .jsp examples? Give us a little more on how and what are you doing?
 
Sean Casey
Ranch Hand
Posts: 625
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using tomcat, and they're stored in /foo/jakarta-tomcat/webapps/examples/WEB-INF/classes
Then I call them up by the following: http://localhost:8080/examples/servlet/(servlet here).
This works fine, but it doesn't work for jsp. I get the error message that I mentioned above.
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't put the JSP as deep as that.
Place a very simple hello world JSP in the examples directory (not in the WEB-INF/classes under the examples). You should get it like this: http://localhost:8080/examples/Hello.jsp
 
Sean Casey
Ranch Hand
Posts: 625
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that worked. Thanks for your help. That was easier than I thought.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!