struts的问题,初学者请各位帮忙

03-03-05 niky

我是用JBuilder8+Weblogic7开发Struts的,但编译jsp文件不能通过,整个项目进行编译时忽略jsp文件,程序运行都很正常,请问各位,是哪里的配置有问题吗?错误提示如下:

共有3个:

"customer.jsp": java.lang.ClassNotFoundException: com.borland.jbuilder.webserverglue.weblogic.jsp.NadaJavac

"customer.jsp": Error: compilation of jsp file /customer.jsp (java file D:\strutsDemo\classes\Temporary_Files\.jsp\strutsDemo\jsp_servlet\__customer.java failed):

null

"customer.jsp": java.io.IOException: Compiler failed executable.exec(java.lang.String[-classpath, "D:\bea\weblogic700\server\lib\weblogic_sp.jar;D:\bea\weblogic700\server\lib\weblogic.jar;D:\bea\weblogic700\server\lib\webservices.jar;D:\Program%20Files\JBuilder8\lib\webserverglue.jar;D:\strutsDemo\classes;D:\bea\weblogic700\server\lib\weblogic.jar;D:\bea\weblogic700\server\lib\webservices.jar;D:\Program Files\JBuilder8\thirdparty\jakarta-struts-1.0.2\lib\struts.jar;D:\bea\jdk131_03\jre\lib\i18n.jar;D:\bea\jdk131_03\jre\lib\jaws.jar;D:\bea\jdk131_03\jre\lib\rt.jar;D:\bea\jdk131_03\jre\lib\sunrsasign.jar;D:\bea\jdk131_03\lib\dt.jar;D:\bea\jdk131_03\lib\htmlconverter.jar;D:\bea\jdk131_03\lib\tools.jar;D:\strutsDemo\WEB-INF\classes;D:\strutsDemo\WEB-INF\lib\struts.jar;D:/strutsDemo/classes/Temporary_Files/.jsp/strutsDemo;D:\bea\weblogic700\server\lib\webservices.jar;D:\bea\weblogic700\server\lib\xmlx.jar;D:\bea\weblogic700\server\lib\classes12.zip;D:\bea\weblogic700\server\lib\jconn2.jar;D:\bea\weblogic700\server\lib\jConnect.jar;D:\bea\weblogic700\server\lib\ant\ant.jar;D:\bea\weblogic700\server\lib\ant\jakarta-ant-1.4-optional.jar;D:\bea\weblogic700\server\lib\ant\jakarta-oro-2.0.1.jar;D:\bea\weblogic700\server\lib\ant\jaxp.jar;D:\bea\weblogic700\server\lib\ant\parser.jar;D:\bea\weblogic700\server\lib\ant\crimson.jar;D:\bea\weblogic700\server\lib\ant\optional.jar;D:\bea\weblogic700\server\lib\ant\xalan.jar;D:\bea\weblogic700\server\lib\webservices.jar;D:\bea\weblogic700\server\lib\xmlx.jar;D:\bea\weblogic700\server\lib\classes12.zip;D:\bea\weblogic700\server\lib\jconn2.jar;D:\bea\weblogic700\server\lib\jConnect.jar;D:\bea\weblogic700\server\lib\ant\ant.jar;D:\bea\weblogic700\server\lib\ant\jakarta-ant-1.4-optional.jar;D:\bea\weblogic700\server\lib\ant\jakarta-oro-2.0.1.jar;D:\bea\jdk131_03\jre\lib\rt.jar;D:\bea\jdk131_03\jre\lib\i18n.jar;D:\bea\jdk131_03\jre\lib\sunrsasign.jar;D:\bea\jdk131_03\jre\classes;D:\bea\weblogic700\server\lib\weblogic_sp.jar;D:\bea\weblogic700\server\lib\weblogic.jar;D:\bea\weblogic700\server\lib\webservices.jar;D:\Program%20Files\JBuilder8\lib\webserverglue.jar;D:\strutsDemo\classes;D:\bea\weblogic700\server\lib\weblogic.jar;D:\bea\weblogic700\server\lib\webservices.jar;D:\Program Files\JBuilder8\thirdparty\jakarta-struts-1.0.2\lib\struts.jar;D:\bea\jdk131_03\jre\lib\i18n.jar;D:\bea\jdk131_03\jre\lib\jaws.jar;D:\bea\jdk131_03\jre\lib\rt.jar;D:\bea\jdk131_03\jre\lib\sunrsasign.jar;D:\bea\jdk131_03\lib\dt.jar;D:\bea\jdk131_03\lib\htmlconverter.jar;D:\bea\jdk131_03\lib\tools.jar", -d, D:/strutsDemo/classes/Temporary_Files/.jsp/strutsDemo, -encoding, GBK, D:\strutsDemo\classes\Temporary_Files\.jsp\strutsDemo\jsp_servlet\__customer.java])

niky
2003-03-05 10:57

<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

<%@ page contentType="text/html; charset=GBK" %>

<html:html locale="true">

<head>

<title>

customer

</title>

</head>

<body>

<h1>JBuilder Generated Struts JSP for ActionForm customer.customerForm</h1>

<p>

<html:form action="/customerAction.do" method="POST">

<html:text property="customerId"/>

<br>

<html:text property="customerName"/>

<br>

<html:submit property="submit" value="Submit"/><br>

<html:reset value ="Reset"/>

</html:form>

</body>

</html:html>

niky
2003-03-05 10:58

<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ page contentType="text/html; charset=GBK" %>
<html:html locale="true">
<head>
<title>
customer
</title>
</head>
<body>
<h1>JBuilder Generated Struts JSP for ActionForm customer.customerForm</h1>
<p>
<html:form action="/customerAction.do" method="POST">
<html:text property="customerId"/>
<br>
<html:text property="customerName"/>
<br>
<html:submit property="submit" value="Submit"/><br>
<html:reset value ="Reset"/>
</html:form>
</body>
</html:html>

redpine
2003-05-18 19:28

那是因为你用的是weblogic7 sp1去borland网站下载webserverglue.jar然后加到pack中去,应该就可以了,解决问题后告诉我一声

我的信箱:ares2000cn@163.com