aspose file tools*
The moose likes Websphere and the fly likes JSP error in Websphere test environment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "JSP error in Websphere test environment" Watch "JSP error in Websphere test environment" New topic
Author

JSP error in Websphere test environment

Sylvia Wang
Ranch Hand

Joined: Apr 10, 2001
Posts: 53
Anybody help !
the JSP file is under defaut_app directory, but stopped at very beginning, looks like compile problem. the websphere test environment is from my VAJ ent3.5 version...Thanks.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unhandled error! You might want to consider having an error page to report such errors more gracefully
com.sun.jsp.JspException: D:\Program Files\IBM\VisualAge for Java\ide\project_resources\IBM WebSphere Test Environment\temp\JSP1_0\default_app\_main__display_xjsp_debug_jspsrc_476594170.java:3: Package javax.servlet.jsp not found in import.
import javax.servlet.jsp.*;
^
D:\Program Files\IBM\VisualAge for Java\ide\project_resources\IBM WebSphere Test Environment\temp\JSP1_0\default_app\_main__display_xjsp_debug_jspsrc_476594170.java:9: Package com.sun.jsp.runtime not found in import.
import com.sun.jsp.runtime.*;
^
D:\Program Files\IBM\VisualAge for Java\ide\project_resources\IBM WebSphere Test Environment\temp\JSP1_0\default_app\_main__display_xjsp_debug_jspsrc_476594170.java:13: Package com.sun.jsp.compiler.ibmtsx not found in import.
import com.sun.jsp.compiler.ibmtsx.*;
^
D:\Program Files\IBM\VisualAge for Java\ide\project_resources\IBM WebSphere Test Environment\temp\JSP1_0\default_app\_main__display_xjsp_debug_jspsrc_476594170.java:14: Package com.sun.jsp.compiler.db not found in import.
import com.sun.jsp.compiler.db.*;
^
4 errors

Caroline Iux
Ranch Hand

Joined: May 14, 2001
Posts: 103
It looks like Visual Age can't find those packages. Import Servlet 2.2 to your workspace and also make sure you have websphere test environment feature added.
Amy Smith
Greenhorn

Joined: Jul 26, 2001
Posts: 24
Also, be sure the projects with those packages are in the classpath for WTE. Classpath set from the WTE Tool window.


Amy Smith<br />Java Developer<br />Haworth, Inc.<br />amy.smith@haworth.com
Gary Craig
Author
Greenhorn

Joined: Aug 10, 2001
Posts: 16
This is a known defect associated with the JSP Execution Monitor. It was fixed with VAJ 3.5.2 but reappeared in VAJ 4.0.
You get this error if JSP Execution monitor is enabled to "Retrieve Syntax Errors".
A work around (other than disabling the JSP EM) is add empty directories in the WTE project folder corresponding to the "Packages" which are not resolved.
For example:
For "import javax.servlet.jsp.*"
Be sure there is an "empty" directory on your system at:
<VAJ Install Dir>/ide/project_resources/IBM WebSphere Test Environment/javax/servlet/jsp
Cheers!

------------------
Gary Craig,
Author of Enterprise Java (tm) Programming with IBM Websphere


Gary Craig,<br />Author of <a href="http://www.amazon.com/exec/obidos/tg/detail/-/032118579X/qid=1060361076/sr=1-11/ref=sr_1_11/102-0063041-4226517?v=glance&s=books" target="_blank" rel="nofollow">Enterprise Java (tm) Programming with IBM Websphere, 2nd edition</a><br /><a href="http://www.amazon.com/exec/obidos/tg/detail/-/1931182116/qid=1060361262/sr=1-30/ref=sr_1_30/102-0063041-4226517?v=glance&s=books" target="_blank" rel="nofollow">Introduction to Web Application Development with IBM Websphere Studio (Certification Guide, Test 285)</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP error in Websphere test environment