-
servlet.jar/jsp/orion app server problem
Hi,
I was using Orion 1.5.3 as my application server and everything was
working fine. However recently I upgraded and started using Orion 2.0.2.
I then found out I had problems with one of my jsp pages. It includes
import errors, HttpSession, JspWriter, HttpServletRequest and
HttpServletResponse.
I thought I replace the servlet.jar file with a newer one and the
problem is still there. Maybe the new one I replaced isn't new
enough???
Can anyone help me resolve this problem. I am running out of ideas.
SEE THE ERROR MESSAGE THE PAGE DISPLAYS BELOW.
500 Internal Server Error
Syntax error in source/lcr/pgPage1.jsp.java:5: 'class' or 'interface'
expected
import javax.servlet.*;
^
/lcr/pgPage1.jsp.java:6: 'class' or 'interface' expected
import javax.servlet.http.*;
^
/lcr/pgPage1.jsp.java:7: 'class' or 'interface' expected
import javax.servlet.jsp.*;
^
/lcr/pgPage1.jsp.java:8: 'class' or 'interface' expected
import javax.servlet.jsp.tagext.*;
^
/lcr/pgPage1.jsp.java:14: cannot resolve symbol
symbol : class HttpServletRequest
location: class /lcr/pgPage1.jsp
public void _jspService(HttpServletRequest request,
HttpServletResponse response) throws java.io.IOException,
ServletException
^
/lcr/pgPage1.jsp.java:14: cannot resolve symbol
symbol : class HttpServletResponse
location: class /lcr/pgPage1.jsp
public void _jspService(HttpServletRequest request,
HttpServletResponse response) throws java.io.IOException,
ServletException
^
/lcr/pgPage1.jsp.java:20: cannot resolve symbol
symbol : class HttpSession
location: class /lcr/pgPage1.jsp
HttpSession session = request.getSession(true);
^
/lcr/pgPage1.jsp.java:21: cannot resolve symbol
symbol : class PageContext
location: class /lcr/pgPage1.jsp
PageContext pageContext =
com.orionserver.http.OrionHttpJspPage.__jspFactory.getPageContext(this,
request, response, "/lcr/error.jsp", true, 8192, true);
^
/lcr/pgPage1.jsp.java:23: cannot resolve symbol
symbol : class JspWriter
location: class /lcr/pgPage1.jsp
JspWriter out = __coreOut;
^
9 errors
-
Hi,
As far as I know you might have set the classpath settings for the previous version of your server and you might have forgotten to change them to the new version of the server. If thats not the problem then something might be missing. I guess you need to place it correctly in the lib directory of the server.
I'm not sure of what the problem is but mine is just an assumption that you might have forgotten to change the entry in the classpath related to the new version.
Good Luck :-)
Narayana.
-
Originally posted by NarayanaBuddepu
Hi,
As far as I know you might have set the classpath settings for the previous version of your server and you might have forgotten to change them to the new version of the server. If thats not the problem then something might be missing. I guess you need to place it correctly in the lib directory of the server.
I'm not sure of what the problem is but mine is just an assumption that you might have forgotten to change the entry in the classpath related to the new version.
Good Luck :-)
Narayana.
The class path is set correctly as I set it in a batch file when I start the Orion server.
Everything was working ok until the new version of Orion.
The servlet.jar file is in the lib driectory as I replace the old one.
Any more ideas?
Regards
W
-
Did you make the corresponding changes in the batch file?
Just confirming whether the changes are done or not.
Naa
-
Originally posted by NarayanaBuddepu
Did you make the corresponding changes in the batch file?
Just confirming whether the changes are done or not.
Naa
Well I think the batch file does not need to change. It sets the path as it should and the directory names are all the same, exactly the same as the old Orion set up.
Originally I had 11 errors, now I have 9. I believe replacing it with the new servlet.jar file removed 2 of the errors.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks