Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Exception thrown when invoking a jsp page

5 views
Skip to first unread message

Hicham BEKKALI

unread,
Nov 19, 2004, 5:37:10 AM11/19/04
to
hi,
an Exception has been throwen when trying to display a jsp page. here is the "stack trace"
[i]
Parsing of JSP File '/engineeringcentral/emxEngrSearchDialog.jsp' failed:
--------------------------------------------------------------------------------

java.lang.RuntimeException: Could not parse embedded JSP code: weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamIOException
at weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1364)
at weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1337)
at weblogic.servlet.jsp.JspLexer.buildTimeInclude(JspLexer.java:1088)
at weblogic.servlet.jsp.JspLexer.mINCLUDE_DIRECTIVE(JspLexer.java:5059)
at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:4817)
at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2233)
at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:2019)
at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1892)
at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1117)
at weblogic.servlet.jsp.JspParser.doit(JspParser.java:90)
at weblogic.servlet.jsp.JspParser.parse(JspParser.java:212)
at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:255)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:352)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:210)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:164)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:517)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:351)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:445)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5412)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:744)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3086)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2544)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)


--------------------------------------------------------------------------------
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 .

David Karr

unread,
Nov 19, 2004, 2:18:35 PM11/19/04
to
Without seeing the actual code, it would be impossible for anyone to tell you what the problem is. However, it's likely a problem with one of your JSP include directive lines.

Kent Spaulding

unread,
Nov 19, 2004, 2:35:06 PM11/19/04
to
You didn't give code, but I think I've run into the same problem with 8.1.3:

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 &copy;) 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.

Hicham BEKKALI

unread,
Nov 23, 2004, 7:20:10 AM11/23/04
to
thanks for your answer

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

Saurabh Arora

unread,
Nov 24, 2004, 1:52:42 AM11/24/04
to
For information on JSPC for 8.1 weblogic server.
please visit the following link.
http://e-docs.bea.com/wls/docs81/jsp/reference.html#65756

regards,
saurabh

0 new messages