Eclipse中导入Web项目报错,求解救!

robin_jh robin_jh 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我在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。

请教如何解决!!



...全文

相关推荐

Eclipse导入web项目(报错问题解决包含数据库的详细介绍)

记得第一次导入一个web项目时总会报各种莫名的错误,可能是因为我们下载别人缺少了项目所需的jar包,也可能使数据库没有配置好. 首先打开我们下载的一个项目打开目录,有这样的一个结构我们就可以导入我们的Eclipse中了.下面打开Eclipse 选择导入选择General中的Existing Projects into Workspace然后点击next 点击Browse打开你保存文件的地址然后就可以点击finish.当我们导入后就会可能会发现我们的项目上面会有红色的叉叉 这时候我们右键点击项目Build Path打开配置 可能会出现下面的问题 JRE后面是none,导入别人的项目但是jdk

weixin_38734269

Eclipse导入项目报错问题解决方案

主要介绍了Eclipse导入项目报错问题解决方案,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友可以参考下

weixin_38602982

Eclipse导入Myeclipse web项目运行

Eclipse导入Myeclipse编写的web项目时,需要进行设置才可以正常使用,进行编译,此文档对此进行了简单的归纳总结!

wwswws20122008

Eclipse中导入Maven Web项目并配置其在Tomcat中运行图文详解

主要介绍了Eclipse中导入Maven Web项目并配置其在Tomcat中运行图文详解,需要的朋友可以参考下

weixin_38540819

myeclipse和eclipse的web项目导入

myeclipse和eclipse的web项目导入

qq_16921041
评论 3
收藏 已收藏
分享
返回顶部
robin_jh
Eclipse 58,439 成员 49,457 内容