当前位置: 技术问答>java相关
菜鸟请教各位大虾
来源: 互联网 发布时间:2015-08-28
本文导语: 各位大哥大姐,小弟初学jsp,我想问在weblogic6.1我为什么不能运行jsp, 我把jsp文件放在了d:weblogicwlserver6.configmydomainapplicationsDefaultWebApp 目录下,却不能在浏览器中运行,语法没有问题,可以在tomcat中运行。 是不是在we...
各位大哥大姐,小弟初学jsp,我想问在weblogic6.1我为什么不能运行jsp,
我把jsp文件放在了d:weblogicwlserver6.configmydomainapplicationsDefaultWebApp
目录下,却不能在浏览器中运行,语法没有问题,可以在tomcat中运行。
是不是在weblogic6.1中要设置什么的,servlet在applications下可以运行.
提示错误:
Compilation of 'D:Program Filesweblogicwlserver6.1configmydomainapplicationsDefaultWebAppWEB-INF_tmp_war_myserver_myserver_DefaultWebAppjsp_servlet_hello2.java' failed:
--------------------------------------------------------------------------------
D:Program Filesweblogicwlserver6.1configmydomainapplicationsDefaultWebAppWEB-INF_tmp_war_myserver_myserver_DefaultWebAppjsp_servlet_hello2.java" error=2
--------------------------------------------------------------------------------
Full compiler error(s):
java.io.IOException: CreateProcess: javac -classpath "D:Program Filesweblogicwlserver6.1configmydomainapplicationsDefaultWebApp;D:Program Filesweblogicwlserver6.1configmydomainapplicationsDefaultWebAppWEB-INF_tmp_war_myserver_myserver_DefaultWebApp;D:Program Filesweblogicjdk131jrelibrt.jar;D:Program Filesweblogicjdk131jrelibi18n.jar;D:Program Filesweblogicjdk131jrelibsunrsasign.jar;D:Program Filesweblogicjdk131jreclasses;.;D:Program Filesweblogicwlserver6.1libweblogic_sp.jar;D:Program Filesweblogicwlserver6.1libweblogic.jar" -d "D:Program Filesweblogicwlserver6.1configmydomainapplicationsDefaultWebAppWEB-INF_tmp_war_myserver_myserver_DefaultWebApp" "D:Program Filesweblogicwlserver6.1configmydomainapplicationsDefaultWebAppWEB-INF_tmp_war_myserver_myserver_DefaultWebAppjsp_servlet_hello2.java" error=2
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.(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:147)
at weblogic.utils.Executable.exec(Executable.java:111)
at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:550)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:359)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:381)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:189)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:154)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:366)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:240)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2390)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1959)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
--------------------------------------------------------------------------------
Mon Sep 09 16:02:53 CST 2002
真的急死人了
我把jsp文件放在了d:weblogicwlserver6.configmydomainapplicationsDefaultWebApp
目录下,却不能在浏览器中运行,语法没有问题,可以在tomcat中运行。
是不是在weblogic6.1中要设置什么的,servlet在applications下可以运行.
提示错误:
Compilation of 'D:Program Filesweblogicwlserver6.1configmydomainapplicationsDefaultWebAppWEB-INF_tmp_war_myserver_myserver_DefaultWebAppjsp_servlet_hello2.java' failed:
--------------------------------------------------------------------------------
D:Program Filesweblogicwlserver6.1configmydomainapplicationsDefaultWebAppWEB-INF_tmp_war_myserver_myserver_DefaultWebAppjsp_servlet_hello2.java" error=2
--------------------------------------------------------------------------------
Full compiler error(s):
java.io.IOException: CreateProcess: javac -classpath "D:Program Filesweblogicwlserver6.1configmydomainapplicationsDefaultWebApp;D:Program Filesweblogicwlserver6.1configmydomainapplicationsDefaultWebAppWEB-INF_tmp_war_myserver_myserver_DefaultWebApp;D:Program Filesweblogicjdk131jrelibrt.jar;D:Program Filesweblogicjdk131jrelibi18n.jar;D:Program Filesweblogicjdk131jrelibsunrsasign.jar;D:Program Filesweblogicjdk131jreclasses;.;D:Program Filesweblogicwlserver6.1libweblogic_sp.jar;D:Program Filesweblogicwlserver6.1libweblogic.jar" -d "D:Program Filesweblogicwlserver6.1configmydomainapplicationsDefaultWebAppWEB-INF_tmp_war_myserver_myserver_DefaultWebApp" "D:Program Filesweblogicwlserver6.1configmydomainapplicationsDefaultWebAppWEB-INF_tmp_war_myserver_myserver_DefaultWebAppjsp_servlet_hello2.java" error=2
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.(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:147)
at weblogic.utils.Executable.exec(Executable.java:111)
at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:550)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:359)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:381)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:189)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:154)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:366)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:240)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2390)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1959)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
--------------------------------------------------------------------------------
Mon Sep 09 16:02:53 CST 2002
真的急死人了
|
看看你的path中是否加了java的目录
|
把_hello2.java贴出来看看