Eclipse中导入Web项目报错,求解救!
我在Eclipse中导入Web项目,在JSP文件中调用SCA服务,它的 sca-contribution.xml文件是
<?xml version="1.0" encoding="GBK"?>
<contribution xmlns="http://www.osoa.org/xmlns/sca/1.0"
xmlns:Calculator="http://Calculator">
<deployable composite="Calculator:Calculator"/>
</contribution>
第一行出现警告:
Referenced file contains errors (http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd).
The errors below were detected when validating the file "oasis-200401-wss-wssecurity-secext-1.0.xsd" via the file "sca-contribution.xml". In most cases these errors can be detected by validating "oasis-200401-wss-wssecurity-secext-1.0.xsd" directly. However it is possible that errors will only occur when oasis-200401-wss-wssecurity-secext-1.0.xsd is validated in the context of sca-contribution.xml.
第三行报错:
cvc-elt.1: Cannot find the declaration of element 'contribution'.
它的JSP文件,calc.jsp 代码是:
<%@ page contentType="text/html;charset=GBK" language="java" %>
<%@ taglib uri="http://www.osoa.org/sca/sca_jsp.tld" prefix="sca" %>
<sca:reference name="CalculatorServiceComponent" type="server.Calculator" />
<html>
<head><title>访问计算器服务</title></head>
<body>
<table border="1" width="300">
<tr>
<th>表达式</th><th>结果</th>
</tr>
<tr>
<td>2 + 3 =</td><td><%= CalculatorServiceComponent.add(2, 3) %></td> 这里报错了
</tr>
<tr>
<td>3 - 2 =</td><td><%= CalculatorServiceComponent.subtract(3, 2) %></td> 这里报错了
</tr>
<tr>
<td>3 * 2 =</td><td><%= CalculatorServiceComponent.multiply(3, 2) %></td> 这里报错了
</tr>
<tr>
<td>3 / 2 =</td><td><%= CalculatorServiceComponent.divide(3, 2) %></td> 这里报错了
</tr>
</table>
</body>
</html>
在第三行出现警告:
Classpath entry org.eclipse.jdt.USER_LIBRARY/TUSCANY will not be exported or published. Runtime ClassNotFoundExceptions may result.
第15 18 21 24 行出现错误:
CalculatorServiceComponent cannot be resolved。
请教如何解决!!