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

robin_jh 2012-03-30 09:42:50
我在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。

请教如何解决!!



...全文
942 3 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
梦途坚强 2012-07-11
  • 打赏
  • 举报
回复
如果你用的Tuscany2.x的版本,
xmlns="http://www.osoa.org/xmlns/sca/1.0"改成
xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
就ok了....

详情请见:https://cwiki.apache.org/confluence/display/TUSCANYxDOCx2x/Converting+Tuscany+1.x+Extensions
香蕉猪 2012-04-01
  • 打赏
  • 举报
回复
少包了吧。。
wumingguoke 2012-03-31
  • 打赏
  • 举报
回复
应该是缺少jar包吧,把jar包放进去就好了
资源下载链接为: https://pan.quark.cn/s/9e7ef05254f8 【久久在线FLASH系统】是一款专为久久在线网站打造的交互式Flash平台,集成了前台展示与后台管理功能,满足内容发布、管理和用户互动的需求。Flash技术曾广泛应用于网页动画和互动内容,尤其在早期互联网时代,在游戏、广告和多媒体教学等领域发挥了重要作用。该系统的核心包括以下几个关键方面: Flash技术:系统利用Flash创建动态图形、动画和交互内容,依赖Adobe Flash Player运行。其编程语言ActionScript支持面向对象开发,便于实现复杂逻辑和交互效果。 后台管理系统:作为系统的控制心,后台支持内容上传、编辑、分类、权限设置、用户管理及数据分析,确保内容的有序更新与发布。 产品演示模块:用户可在线预览和体验产品功能,无需下载,通过交互式演示了解产品操作流程和优势。 数据库集成:系统与数据库紧密结合,用于存储Flash文件信息、用户数据及访问记录,实现高效的数据管理与检索。 安全性与优化:系统具备防止非法访问和数据泄露的安全机制,并对Flash内容进行优化,提升加载速度与用户体验。 响应式设计:尽管Flash主要用于桌面端,系统仍考虑多设备兼容性,通过响应式设计适配不同屏幕尺寸,提供一致体验。 API接口:系统支持与其他平台或服务通过API进行数据交互,如社交媒体分享、数据分析等,拓展功能边界。 用户体验:界面设计注重交互性与视觉效果,提升用户满意度和停留时间,增强平台吸引力。 版本控制:系统支持内容版本管理,便于追踪更新历史,方便内容维护与回滚。 性能监控:内置性能监控工具,实时跟踪系统负载与资源使用情况,及时发现并解决问题,保障系统稳定运行。 【久久在线FLASH系统】是一个综合性解决方案,融合了前端展示、后台管理、互动体验和数据分析等功能,体现了当时Web

58,452

社区成员

发帖
与我相关
我的任务
社区描述
Java Eclipse
社区管理员
  • Eclipse
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧