请教:web logic 6.1 ,不能执行*.jsp文件(200分)

  • 主题发起人 主题发起人 阿魁
  • 开始时间 开始时间

阿魁

Unregistered / Unconfirmed
GUEST, unregistred user!
jsp文件内容如下:
================ index.jsp ============================
<h1>welcome</h1>
===============================================
就这么一行,在浏览器输入地址,返回如下错误
=============== error (index.jsp) ======================
Compilation of 'C:/bea/wlserver6.1/config/dev/applications/ROOT/WEB-INF/_tmp_war_admin_admin_ROOT_APP/jsp_servlet/_index.java' failed:
--------------------------------------------------------------------------------
C:/bea/wlserver6.1/config/dev/applications/ROOT/WEB-INF/_tmp_war_admin_admin_ROOT_APP/jsp_servlet/_index.java error=2
--------------------------------------------------------------------------------
Full compiler error(s):
java.io.IOException: CreateProcess: javac -classpath C:/bea/wlserver6.1/config/dev/applications/ROOT;C:/bea/wlserver6.1/config/dev/applications/ROOT/WEB-INF/_tmp_war_admin_admin_ROOT_APP;C:/bea/jdk131/jre/lib/rt.jar;C:/bea/jdk131/jre/lib/i18n.jar;C:/bea/jdk131/jre/lib/sunrsasign.jar;C:/bea/jdk131/jre/classes;.;C:/bea/wlserver6.1/lib/weblogic_sp.jar;C:/bea/wlserver6.1/lib/weblogic.jar -d C:/bea/wlserver6.1/config/dev/applications/ROOT/WEB-INF/_tmp_war_admin_admin_ROOT_APP C:/bea/wlserver6.1/config/dev/applications/ROOT/WEB-INF/_tmp_war_admin_admin_ROOT_APP/jsp_servlet/_index.java 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: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)

--------------------------------------------------------------------------------
Thu Oct 16 01:14:36 GMT 2003
=============================================================================
检查编译jsp后的*.java文件,如下:
============================= _index.java ===================================
/* compiled from JSP: /index.jsp
*
* This code was automatically generated at 1:14:36 on 2003-10-16
* by weblogic.servlet.jsp.Jsp2Java --do
not edit.
*/
package jsp_servlet;
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
// User imports

// built-in init parameters:
// boolean _verbose -- wants debugging
// Well-known variables:
// JspWriter out -- to write to the browser
// HttpServletRequest request -- the request object.
// HttpServletResponse response -- the response object.
// PageContext pageContext -- the page context for this JSP
// HttpSession session -- the session object for the client (if any)
// ServletContext application -- The servlet (application) context
// ServletConfig config -- The ServletConfig for this JSP
// Object page -- the instance of this page's implementation class (i.e., 'this')
/**
* This code was automatically generated at 1:14:36 on 2003-10-16
* by weblogic.servlet.jsp.Jsp2Java --do
not edit.
*
* Copyright (c) 2003 by BEA Systems, Inc. All Rights Reserved.
*/
public final class _index
extends
weblogic.servlet.jsp.JspBase
implements weblogic.servlet.jsp.StaleIndicator
{

// StaleIndicator interface
public boolean _isStale() {
weblogic.servlet.jsp.StaleChecker sci =(weblogic.servlet.jsp.StaleChecker)(getServletConfig().getServletContext());
java.io.File f = null;
long lastModWhenBuilt = 0L;
if (sci.isResourceStale("/index.jsp", 1066265512000L, "WebLogic Server 6.1 07/23/2001 22:31:20 #129251 ")) return true;
return false;
}

public static boolean _staticIsStale(weblogic.servlet.jsp.StaleChecker sci) {
java.io.File f = null;
long lastModWhenBuilt = 0L;
if (sci.isResourceStale("/index.jsp", 1066265512000L, "WebLogic Server 6.1 07/23/2001 22:31:20 #129251 ")) return true;
return false;
}




public void _jspService(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
{

// declare and set well-known variables:
javax.servlet.ServletConfig config = getServletConfig();
javax.servlet.ServletContext application = config.getServletContext();
javax.servlet.jsp.tagext.Tag _activeTag = null;
// variables for Tag extension protocol

Object page = this;
javax.servlet.jsp.JspWriter out;
javax.servlet.jsp.PageContext pageContext =
javax.servlet.jsp.JspFactory.getDefaultFactory().getPageContext(this, request, response, null, true, 8192, true);

out = pageContext.getOut();
JspWriter _originalOut = out;

javax.servlet.http.HttpSession session = request.getSession(true);



try { // error page try block

out.print("/r/n<h1>welcome</h1>");
} catch (Exception __ee) {
while (out != null &amp;&amp;
out != _originalOut) out = pageContext.popBody();
pageContext.handlePageException(__ee);
}


//before final close brace...
}


}
发现,一些原本是正常的语句,被注释掉了,请问如何解决这个问题。
 
我发现在_index.java文件中,既有windows下的换行,又有unix下的换行,这是不是产生错误的原因?
 
*.html文件可以正常查看
 
你放一个空的文件
index.jsp里面什么也不写看看 有没有错误呀
如果还有 你就重装你的weblogic
还有你的jdk配置是否正确?
 
你用weblogic的jdk,不要用sun下的jdk。可能是你的jdk有问题。
象7syw说的,你看一下你的jdk是不是有问题。
 
如果确定程序没有问题,那么这种情况大多数是编译环境的问题,或许是jdk问题,或许是一些类包问题。你可以试着查一下。
 
后退
顶部