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

Jsp compile exception in WL 8.1

0 views
Skip to first unread message

Manjunath B

unread,
Sep 25, 2003, 7:57:29 AM9/25/03
to

Hi all

i was trying to deploy the external war(jstl.war from www.manning.com) file in
my weblogic server .

I just copied the *.war file into C:\TestDrive\MyDomain\mydomain\application
directory and restarted the weblogic server.

i got following error.

**********************************************************
Compilation of 'C:\TestDrive\MyDomain\mydomain\.\myserver\.wlnotdelete\extract\myserver__appsdir_jstlbook_war_jstlbook\jsp_servlet\__index.java'
failed:
--------------------------------------------------------------------------------
C:\TestDrive\MyDomain\mydomain\.\myserver\.wlnotdelete\extract\myserver__appsdir_jstlbook_war_jstlbook\jsp_servlet\__index.java:142:
'try' without 'catch' or 'finally'
probably occurred due to an error in /index.jsp line 3:
<c:import url="header.jsp"/>

C:\TestDrive\MyDomain\mydomain\.\myserver\.wlnotdelete\extract\myserver__appsdir_jstlbook_war_jstlbook\jsp_servlet\__index.java:132:
'try' without 'catch' or 'finally'
(No more information available, probably caused by another error)

C:\TestDrive\MyDomain\mydomain\.\myserver\.wlnotdelete\extract\myserver__appsdir_jstlbook_war_jstlbook\jsp_servlet\__index.java:178:
'}' expected
(No more information available, probably caused by another error)


--------------------------------------------------------------------------------
Full compiler error(s):
C:\TestDrive\MyDomain\mydomain\.\myserver\.wlnotdelete\extract\myserver__appsdir_jstlbook_war_jstlbook\jsp_servlet\__index.java:142:
'try' without 'catch' or 'finally'
try { // TryCatchFinally begin //[ /index.jsp; Line: 3]
^
C:\TestDrive\MyDomain\mydomain\.\myserver\.wlnotdelete\extract\myserver__appsdir_jstlbook_war_jstlbook\jsp_servlet\__index.java:132:
'try' without 'catch' or 'finally'
try { // error page try block
^
C:\TestDrive\MyDomain\mydomain\.\myserver\.wlnotdelete\extract\myserver__appsdir_jstlbook_war_jstlbook\jsp_servlet\__index.java:178:
'}' expected
}
^
3 errors


--------------------------------------------------------------------------------
Thu Sep 25 15:59:58 GMT+05:30 2003
*******************************************************************


Same file when i deployed in Tomcat4.1 was working fine i.e. copying the *.war
into <tomcathome>/webapps directory. I got index page without touching the code!

Is there any extra settings has to be done for running jsp's from war files in
WL?

THanks in advance

Manjunath

manjunath

unread,
Sep 26, 2003, 3:32:39 AM9/26/03
to

further to my previous mail here's the log

weblogic.servlet.jsp.CompilationException: Compilation of C:\TestDrive\MyDomain\mydomain\.\myserver\.wlnotdelete\extract\myserver__appsdir_jstlbook_war_jstlbook\jsp_servlet\__index.java
failed.
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:446)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:220)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:172)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:504)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:349)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:431)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6310)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
Caused by: java.io.IOException: Compiler failed executable.exec
at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:470)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:329)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:337)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:322)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:419)
... 13 more

Here's my weblogic.xml file

<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN"
"http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">
<weblogic-web-app>
<jsp-descriptor>
<jsp-param>
<param-name>
compileFlags
</param-name>
<param-value>
-g
</param-value>
</jsp-param>


<jsp-param>
<param-name>
keepgenerated
</param-name>
<param-value>
true
</param-value>
</jsp-param>


</jsp-descriptor>
</weblogic-web-app>

In this URL http://e-docs.bea.com/wls/docs81/jsp/reference.html#57794 there's
option to use -webapp for jsp compiler. How to implement same in weblogic.xml
<jsp-descriptor> file?

Thanks

Nagesh Susarla

unread,
Sep 26, 2003, 8:06:45 PM9/26/03
to
Please contact customer support sup...@bea.com and request a patch for
CR112789. AT_END tags do not work correctly in 81sp1

EJ

unread,
Oct 9, 2003, 5:36:23 AM10/9/03
to

I experience exactly the same error in WL 6.1 SP 5 using the c:import tag from
the jstl (impl apache 1.0.3). I Noticed this testing the upgrade of WL 6.1 SP3
-> WL 6.1 SP 5, so assume this got introduced either in SP4 or SP5. Does patch
CR112789 also solve this problem on 6.1 SP5?

Regards,
EJ

Nagesh Susarla

unread,
Oct 15, 2003, 12:30:52 AM10/15/03
to
Yes, you can contact support and ask for a patch for 61sp5.

"EJ" <ejsp...@kluwer.nl> wrote in message
news:3f852c17$1...@newsgroups.bea.com...

Ruta Thakkar

unread,
Oct 27, 2003, 11:14:10 PM10/27/03
to

Hi,

I have got the same compilation error in JSP while upgrading to Weblogic 8.1sp1

Can anybody tell me if the patch CR112789 helped resolve the problem.
I have requested the same from bea support but havent received it yet.

Can anyone throw light on why this patch is not included with 8.1 sp1. Will be
a part of sp2?

Thanks and regds
Ruta

0 new messages