Skip to main content



      Home
Home » Newcomers » Newcomers » JSP cannot be parsed in org.eclipse.tomcat_4.1.130.v20060601?
JSP cannot be parsed in org.eclipse.tomcat_4.1.130.v20060601? [message #222925] Fri, 20 July 2007 02:36
Eclipse UserFriend
Originally posted by: kintasylvi.yahoo.com.sg

Hi,

I use the org.eclipse.tomcat_4.1.130.v20060601 to start tomcat from my
eclipse application (it's a plugin project) in the same way as opening
Help browser from Eclipse. This means I use the AppserverPlugin.java to
start up my appserver (in this case the eclipse.tomcat), and I just change
the index.html to index.jsp that only suppose to print 'hello' to the
browser for testing.

However, once I open the tomcat url:
http:localhost:<portnumber>/index.jsp, it returns me:
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file
[javac]
D:\eclipse-3.2\runtime-New_configuration\.metadata\.plugins\ org.eclipse.tomcat\ROOT\index_jsp.java:3:
package javax.servlet does not exist
[javac] import javax.servlet.*;

And servlet.jar is actually already there by default (comes in eclispe3.2
package)in the webapps/ROOT

Anyone can advice me on how to set the library in the
D:\eclipse-3.2\plugins\org.eclipse.tomcat_4.1.130.v20060601 for it to
recognize that javax.servlet?

And should I edit the
D:\eclipse-3.2\plugins\org.eclipse.tomcat_4.1.130.v20060601\ META-INF\MANIFEST/MF
file?

Please help me. Thank you very much.
Previous Topic:Eclipse + Tomcat + AXIS2
Next Topic:Problems regarding cursor and listener
Goto Forum:
  


Current Time: Fri Jul 25 19:36:52 EDT 2025

Powered by FUDForum. Page generated in 0.08735 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top