Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

From JSP 1.2 to 2.0 problem

 
Jenn Person
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm upgrading my webapp to use Servlet 2.4 specs and JSP 2.0. I'm able to compile my servlets, but when I try going to a JSP page, I get the following error:



This is my JSP page, which was ok using JSP 1.2:

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64629
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK


Does it?
 
Jenn Person
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JAVA_HOME is set to C:\j2sdk1.4.2_12

Is this not correct? Should it point to the bin directory?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This looks more like a configuration issue than a problem with a specific version of any spec.

Which container are you using?
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just in case, try setting tools.jar in your classpath.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64629
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by John Meyers:
Just in case, try setting tools.jar in your classpath.


That will not be necessary and will be ignored by the container.

Can you see any of the example apps that come with Tomcat?
 
Jenn Person
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ben Souther:
This looks more like a configuration issue than a problem with a specific version of any spec.

Which container are you using?


I'm using Tomcat 5.0

Originally posted by Bear Bibeault:


That will not be necessary and will be ignored by the container.

Can you see any of the example apps that come with Tomcat?


Yes, I can see all of the examples for both Servlets and JSP that were included with Tomcat.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64629
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How have you set up your folder structure for the web app? The context entry?
 
Jenn Person
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've placed my JSP files inside the root of my application. So it's Tomcat5.0/webapps/myapplication. This has always worked in the past, should they be placed elsewhere now?
 
Jenn Person
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just noticed that during installation, Tomcat asked for the location of my JVM and I put the path to my JDK... should it point to something else? I'm not clear on this. Maybe this is why my JSP files don't work?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic