Weblogic 5.1 failing to compile JSP

Hi to everybody.

I'm experiencing a problem with JSP's and Bea Weblogic 5.1 SP8.

Weblogic fails to compile every JSP, throwing the following exception:

Servlet failed with Exception java.io.IOException: Compiler failed executable.exec([Ljava.lang.String;[javac, -classpath, /wls1/wlshome/jdk1.2.2/jre/lib/rt.jar:/wls1/wlshome/jdk1.2.2/jre/lib/i18n.jar:/wls1/wlshome/jdk1.2.2/jre/classes:/wls1/wlshome/weblogic/lib/weblogic510sp8boot.jar:./classes/boot:./eval/cloudscape/lib/cloudscape.jar:/lib/weblogic510sp8.jar:./license:./classes:./lib/weblogicaux.jar:./myserver/serverclasses:/wls1/wlshome/weblogic/lib/sndg_lib/iaik_jce_full_2_51.jar:/wls1/wlshome/weblogic/lib/sndg_lib/bbtools.jar:/wls1/wlshome/weblogic/lib/sndg_lib/oracle12_01.zip:/wls1/wlshome/weblogic/lib/sndg_lib/ecp1_0beta.zip:/wls1/wlshome/weblogic/lib/sndg_lib/jdbc2_0-stdext.jar:/wls1/wlshome/weblogic/msgplatform/ServiziEvoluti/WEB-INF/classes:/wls1/wlshome/weblogic/msgplatform/ServiziEvoluti/WEB-INF/lib/Televoto.jar:/wls1/wlshome/weblogic/msgplatform/ServiziEvoluti/WEB-INF/lib/SMSPlatform.jar:/wls1/wlshome/weblogic/msgplatform/ServiziEvoluti/WEB-INF/lib/CseltUtils.jar:/wls1/wlshome/weblogic/msgplatform/ServiziEvoluti/WEB-INF/lib/APIGeneral.jar:/wls1/wlshome/weblogic/msgplatform/ServiziEvoluti/WEB-INF/lib/UcpCommunication.jar:/wls1/wlshome/weblogic/msgplatform/ServiziEvoluti/WEB-INF/lib/Concorso_Premi.jar:

/wls1/wlshome/weblogic/msgplatform/ServiziEvoluti/_tmp_war, -d, /wls1/wlshome/weblogic/msgplatform/ServiziEvoluti/_tmp_war, /wls1/wlshome/weblogic/msgplatform/ServiziEvoluti/_tmp_war/jsp_servlet/_jsp/_numbrjsp/_creaNumBreve.java])

at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java, Compiled Code)

at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java, Compiled Code)

at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java, Compiled Code)

at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java, Compiled Code)

at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java, Compiled Code)

at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java, Compiled Code)

at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java, Compiled Code)

at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java, Compiled Code)

at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java, Compiled Code)

at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java, Compiled Code)

at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java, Compiled Code)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)

--

Anybody has an idea about what's causing this problem?

Marco.

[2906 byte] By [sambin] at [2007-9-26 3:17:12]
# 1

Hi check your weblogic.properties file.

There should be a part similar to this one:

weblogic.httpd.register.*.jsp=weblogic.servlet.JSPServlet

weblogic.httpd.initArgs.*.jsp=\

compileCommand=c:/jdk1.2.2/bin/javac.exe,\

workingDir=C:/weblogic/MRAEServer/public_html/WEB-INF/jspworkdir,\

verbose=true,\

keepgenerated=true,\

pageCheckSeconds=10

In your web.xml file shoule be following:

<context-param>

<param-name>weblogic.jsp.compileCommand</param-name>

<param-value>c:/jdk1.2.2/bin/javac.exe</param-value>

</context-param>

NOTE: ammend pathes.

Regards

Jan

pernica at 2007-6-29 11:30:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Thanks a lot for your suggestion, I will try it.

The strange thing is that another instance of Weblogic 5.1 with no Service Pack applied and with apparently the same configuration correctly compiles JSP's with no modifications to weblogic.properties and web.xml...

Do you have any ideas about the reason for this strange behavior? It looks like applying the Service Pack 8 to WLS 5.1 has caused problems with the compilation of JSP's...

Thanks a lot.

Regards,

Marco.

sambin at 2007-6-29 11:30:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...