my dog learned polymorphism*
The moose likes Tomcat and the fly likes From JSP 1.2 to 2.0 problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "From JSP 1.2 to 2.0 problem" Watch "From JSP 1.2 to 2.0 problem" New topic
Author

From JSP 1.2 to 2.0 problem

Jenn Person
Ranch Hand

Joined: Jan 16, 2005
Posts: 89
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

Joined: Jan 10, 2002
Posts: 61103
    
  66

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?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Jenn Person
Ranch Hand

Joined: Jan 16, 2005
Posts: 89
JAVA_HOME is set to C:\j2sdk1.4.2_12

Is this not correct? Should it point to the bin directory?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

This looks more like a configuration issue than a problem with a specific version of any spec.

Which container are you using?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

Just in case, try setting tools.jar in your classpath.


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61103
    
  66

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

Joined: Jan 16, 2005
Posts: 89
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

Joined: Jan 10, 2002
Posts: 61103
    
  66

How have you set up your folder structure for the web app? The context entry?
Jenn Person
Ranch Hand

Joined: Jan 16, 2005
Posts: 89
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

Joined: Jan 16, 2005
Posts: 89
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: From JSP 1.2 to 2.0 problem