Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jsp Using Weblogic

 
Kalaiselvan Selvamani
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I'm new for Weblgoic. I want to compile jsp in Weblogic. But i found error when compile jsp like
error=2
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Win32Process.java:66)
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:151)
at weblogic.utils.Executable.exec(Executable.java:88)
at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:380)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:202)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:284)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:174)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:164)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:99)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:123)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:742)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:686)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:247)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
va.io.IOException: Compiler failed executable.exec([Ljava.lang.String;[D:/jdk1.3.1/binjavac.exe, -classpath, D:\jdk1.3
\jre\lib\rt.jar;D:\jdk1.3.1\jre\lib\i18n.jar;D:\jdk1.3.1\jre\lib\sunrsasign.jar;D:\jdk1.3.1\jre\classes;.\classes\boot
\eval\cloudscape\lib\cloudscape.jar;.\license;.\classes;.\lib\weblogicaux.jar;.\myserver\serverclasses;D:\weblogic\mys
ver\servletclasses;D:\weblogic\myserver\classfiles, -d, D:\weblogic\myserver\classfiles, D:\weblogic\myserver\classfil
\jsp_servlet\_hello.java])
at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:396)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:202)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:284)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:174)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:164)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:99)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:123)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:742)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:686)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:247)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
i Dec 01 11:49:38 IST 2000:<E> <ServletContext-General> Servlet failed with Exception
va.lang.NumberFormatException: error=2
at java.lang.Integer.parseInt(Integer.java:414)
at java.lang.Integer.parseInt(Integer.java:463)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:303)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:174)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:164)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:99)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:123)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:742)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:686)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:247)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
i already set
WEBLOGIC JSP PROPERTIES
weblogic.httpd.register.*.jsp=\
weblogic.servlet.JSPServlet
weblogic.httpd.initArgs.*.jsp=\
pageCheckSeconds=1,\
compileCommand=D:/jdk1.3.1/binjavac.exe,\
workingDir=D:/weblogic/myserver/classfiles,\
verbose=true
plz help
Thanx in Advance
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the Weblogic forum.
------------------
Tom
Sun Certified Programmer for the Java� 2 Platform
Moderator of the forums:
J2EE and EJB
Other Java APIs
 
Vijay Shrivastava
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Few things.
1. Your JSP properties are correct.
2. What is your document root?
3. what is the location of JSP file?
It looks like a numberFormatException in JSP code.
Try quickly putting one HTML file in the public-html directory. Rename that file by giving JSP extention. Try to load that file if it works it will verify your configuration.
Hope it helps,
------------------
Vijay shrivastava
Consultant - ObjectNetTechnologies ,Atlanta USA.
SCJP2, WLS5.1,SCJEA (Part I)
 
lesley evensen
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your WL 'compile' spec correct(not missing a slash after'bin'_)ie, you have binjavac.exe, not bin/javac.exe
 
Kalaiselvan Selvamani
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ya. ThanQ. I found that earlier. Anyway thanx to reply my queries.
 
Krishna Balanagu
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kalaiselvam!,
I am also facing the same problem. Could you please let me know how u solved it.
regards,
krishna
(krishna@readytestgo.com)
Originally posted by kalaiselvan:
Hi all,
I'm new for Weblgoic. I want to compile jsp in Weblogic. But i found error when compile jsp like
error=2
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Win32Process.java:66)
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:151)
at weblogic.utils.Executable.exec(Executable.java:88)
at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:380)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:202)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:284)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:174)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:164)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:99)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:123)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:742)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:686)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:247)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
va.io.IOException: Compiler failed executable.exec([Ljava.lang.String;[D:/jdk1.3.1/binjavac.exe, -classpath, D:\jdk1.3
\jre\lib\rt.jar;D:\jdk1.3.1\jre\lib\i18n.jar;D:\jdk1.3.1\jre\lib\sunrsasign.jar;D:\jdk1.3.1\jre\classes;.\classes\boot
\eval\cloudscape\lib\cloudscape.jar;.\license;.\classes;.\lib\weblogicaux.jar;.\myserver\serverclasses;D:\weblogic\mys
ver\servletclasses;D:\weblogic\myserver\classfiles, -d, D:\weblogic\myserver\classfiles, D:\weblogic\myserver\classfil
\jsp_servlet\_hello.java])
at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:396)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:202)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:284)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:174)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:164)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:99)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:123)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:742)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:686)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:247)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
i Dec 01 11:49:38 IST 2000:<E> <ServletContext-General> Servlet failed with Exception
va.lang.NumberFormatException: error=2
at java.lang.Integer.parseInt(Integer.java:414)
at java.lang.Integer.parseInt(Integer.java:463)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:303)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:174)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:164)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:99)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:123)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:742)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:686)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:247)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
i already set
WEBLOGIC JSP PROPERTIES
weblogic.httpd.register.*.jsp=\
weblogic.servlet.JSPServlet
weblogic.httpd.initArgs.*.jsp=\
pageCheckSeconds=1,\
compileCommand=D:/jdk1.3.1/binjavac.exe,\
workingDir=D:/weblogic/myserver/classfiles,\
verbose=true
plz help
Thanx in Advance
 
Vikalp Singh
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check your jdk path...
i think it is not getting the jdk\bin in the path
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic