--------------------------------------------------------------------------------
Fri Nov 19 11:18:50 CET 2004
[/i]
can anyone help me to understand this issue ? thanks in advance.
P.S = is theres is a documentation which discribe the operations done when a request is sent to weblogic ? it's will help to understand thge process in a overall view .
This JSP will demonstrate:
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head><title> Copyright © - Blows up.</title></head>
<body>Hello</body>
</html>
The '©' (in HTML this is ©) makes the parser throw this exception when the contentType.charset of the page is set to "UTF-8".
Curiously, if you run the weblogic.jspc progam standalone, the jsp will compile; however, when run within the appserver, you get:
Error 500--Internal Server Error
weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamIOException
at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:965)
at weblogic.servlet.jsp.JspParser.doit(JspParser.java:106)
at weblogic.servlet.jsp.JspParser.parse(JspParser.java:232)
at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:125)
at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:258)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:388)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:238)
at weblogic.servlet.jsp.JspStub.checkForReload(JspStub.java:173)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:539)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:373)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6452)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
Tomcat versions 3.3.x, 4.x and 5.0.x have no problems with this - and I think it was fine in Weblogic 7.
can you tell me how the compile my jsp page using weblogic.jspc, let's say that the jsp page is mypage.jsp.
have i to use this command
dos-prompt>java -jar weblogic.jar
if yes, i have to create a manifest file to indicate, the jar's main class !!!! i am sure there is a simpler solution to use jspc.
thanks for your help again
regards,
saurabh