View Full Version : LPS on Weblogic 8.1
nitinzep
10-27-2004, 11:39 AM
hi
I installed LPS 2.2 on BEA Weblogic 8.1 SP3 running on Win2k. The Demos are just great but when click on "source" to view the code i get a "compilation failed" error (error.txt attached).
I can view the source from the files directly but am i missing out on any config param or some seting somewhere because of which i cant view it off the app server?
Nitin
bloch
10-27-2004, 01:31 PM
What JDK are you using?
I'd look for errors in the logs.
Could be a jar problem.
-Eric
nitinzep
10-28-2004, 10:31 AM
Hi eric
I am using jdk 1.4.2_04. I am posting the stack trace from the logs.
Note: D:\bea81\USER_P~1\domains\WORKSH~1\.\cgServer\.wln otdelete\extract\cgServer__appsdir_lazlo_dir_lazlo \jsp_servlet\_lps\_utils\_viewer\__viewer.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
6 errors
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.j ava:470)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStu b.java:238)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStu b.java:188)
at weblogic.servlet.internal.ServletStubImpl.getServl et(ServletStubImpl.java:535)
at weblogic.servlet.internal.ServletStubImpl.invokeSe rvlet(ServletStubImpl.java:373)
at weblogic.servlet.internal.ServletStubImpl.invokeSe rvlet(ServletStubImpl.java:463)
at weblogic.servlet.internal.ServletStubImpl.invokeSe rvlet(ServletStubImpl.java:315)
at weblogic.servlet.internal.WebAppServletContext$Ser vletInvocationAction.run(WebAppServletContext.java :6452)
at weblogic.security.acl.internal.AuthenticatedSubjec t.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Se curityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.inv okeServlet(WebAppServletContext.java:3661)
at weblogic.servlet.internal.ServletRequestImpl.execu te(ServletRequestImpl.java:2630)
at weblogic.kernel.ExecuteThread.execute(ExecuteThrea d.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.ja va:178)
Caused by: java.io.IOException: Compiler failed executable.exec
at weblogic.utils.compiler.CompilerInvoker.compileMay beExit(CompilerInvoker.java:469)
at weblogic.utils.compiler.CompilerInvoker.compile(Co mpilerInvoker.java:328)
at weblogic.utils.compiler.CompilerInvoker.compile(Co mpilerInvoker.java:336)
at weblogic.utils.compiler.CompilerInvoker.compile(Co mpilerInvoker.java:321)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.j ava:443)
... 13 more
>
I cannot run the tutorials for more than 10-15 mins. After that clicking on alink in the docs/tutorials generates no response. I found the following in the logs.
####<Oct 28, 2004 3:25:59 AM GMT+05:30> <Warning> <WebLogicServer> <dscp03686> <cgServer> <weblogic.health.CoreHealthMonitor> <<WLS Kernel>> <> <BEA-000337> <ExecuteThread: '12' for queue: 'weblogic.kernel.Default' has been busy for "1,311" seconds working on the request "Http Request: /lazlo/docs/guide/programs/text-tutorial-$3.lzx", which is more than the configured time (StuckThreadMaxTime) of "600" seconds.>
####<Oct 28, 2004 3:25:59 AM GMT+05:30> <Warning> <WebLogicServer> <dscp03686> <cgServer> <weblogic.health.CoreHealthMonitor> <<WLS Kernel>> <> <BEA-000337> <ExecuteThread: '14' for queue: 'weblogic.kernel.Default' has been busy for "1,311" seconds working on the request "Http Request: /lazlo/docs/guide/programs/text-tutorial-$4.lzx", which is more than the configured time (StuckThreadMaxTime) of "600" seconds.>
This is on a P4 2.8 GHz Machine with 1 GB RAM
Any Ideas?
Nitin
nitinzep
10-28-2004, 10:33 AM
Forgot to mention this. As far as the jars are concerned, i have PreferWebInfClasses set to "true".
bloch
10-28-2004, 11:05 AM
Looks like a bug in the jsp compiler, no?
How much memory did you give to the jvm?
-Eric
nitinzep
10-28-2004, 08:35 PM
JVM heap size is 512M
I do weblogic portal and general J2EE development on this machine.
By the way, is there any option with which we can have LPS compile *.lzx files on server startup instead of request time compilation. The first time u hit a lzx file, the wait feels a tad too long.
I couldnt understand what u meant by "...bug in the JSP compiler".
Nitin
bloch
10-28-2004, 09:06 PM
You can precompile and deploy a precompiled cache, with the compDependencyMgr set to never (see deployer's guide chapter of developers guide).
-Eric
jarah
12-02-2004, 12:02 AM
I had the same problem as this, and managed to track it down to the following file
lps-2.2.1-core\lps-2.2.1\lps\utils\viewer\viewer.jsp
I found that replacing all the calls to
getServletContext()
with
getServletConfig().getServletContext()
seemed to work. There was one call that already did this. Not sure why this is required on BEA as it seemed to work fine on a Tomcat installation. Perhaps someone who knows more about servlets can tell us.
I've attached a copy of my amended file, but I've had to add a .txt extension to enable me to upload to this site.
bloch
12-02-2004, 09:41 AM
If you look in the lps.log you may see the servlet spec version. It's possible that viewer.jsp assumes a version of the servlet spec that isn't provided by BEA.
-Eric
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.