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

JSP are not compiling

0 views
Skip to first unread message

Roger Zamon

unread,
May 16, 2001, 9:46:14 PM5/16/01
to

HI,
I am trying to deploy my jsp's as Web Appplication (in a directory & not as a war
file)on Weblogic 5.1 on Solaris 8. Weblogic throws following exception when I try
to invoke the jsp:

Failed to parse compiler output:
java.io.IOException: javac: not found
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.(UNIXProcess.java:54)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:551)
at java.lang.Runtime.exec(Runtime.java:477)
at java.lang.Runtime.exec(Runtime.java:443)
at weblogic.utils.Executable.exec(Executable.java:170)
at weblogic.utils.Executable.exec(Executable.java:107)
at

weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:423)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:245)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:337)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:217)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:164)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:101)
at

weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:907)
at

weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:851)
at

weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:252

)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:364)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)

I set the Env before starting Weblogic and the PATH point to jdk\bin and the CLASSPATH
is set to the java libraries. I can invoke javac from the command shell. I have no
idea what the problem is ?

Any clues..

Thanks a lot

Roger

James McGovern

unread,
May 17, 2001, 9:24:08 AM5/17/01
to
This sounds like a problem with weblogic.properties in how you specified the
JSP process.


"Roger Zamon" <alpha...@excite.com> wrote in message
news:3b031f56$1...@newsgroups2.bea.com...

Roger Zamon

unread,
May 17, 2001, 5:13:26 PM5/17/01
to

Thanks James.. I found that when weblogic.jsp.compilecommand is specified in the context
parameter in web.xml file and path to javac is specified it seems to work. It is
not clear why Weblogic does not read the location of javac from the PATH !

Thanks once again..

Sam He

unread,
May 23, 2001, 3:22:30 PM5/23/01
to

I had the same problem on NT when it runs as a service. However, it runs fine
with my W2K development box.

Peter Chang

unread,
May 23, 2001, 8:34:39 PM5/23/01
to
Hi, Roger,
Could you please add the %JAVA_HOME%\bin into your "System Variables" (not
the "User Variables") and reboot your Windows 2000 box. This way, NT
services should be able to pick up JDK executables.
Cheers,
--
Peter Chang
BEA Systems Inc.
"Sam He" <sam...@ps.ge.com> wrote in message
news:3b0bffe6$1...@newsgroups.bea.com...
0 new messages