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
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
Regards,
EJ
"EJ" <ejsp...@kluwer.nl> wrote in message
news:3f852c17$1...@newsgroups.bea.com...
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