发帖    主题    评论    推荐    标签    作者    订阅    查搜    注册   登陆   关注
 
面向对象 设计模式 领域驱动设计 企业架构 框架 开发教程 微服务 大数据 扩展性 并发编程 事件驱动 分布式 SOA

请教:在eclipse中通过JBossIDE将1.1的SessionBean改为2.0时出错.

2003-09-29 12:08
赞助商链接

出错点是.war文件布署,具体位置应该是ComputeServlet.java的XDoclet描述符错.下面是XDoclet描述串:

/**
*
* @web.servlet name = "ComputeServlet"
* display-name = "Compute Servlet"
* description = "Compute Servlet Suite"
* @web.servlet-mapping url-pattern = "/Compute"
*
* @web.env-entry name = "Title"
* type = "java.lang.String"
* value = "This is a Test Entry Can not using Chinese!"
* description = "Fibonacci Example"
*
* @web.ejb-local-ref name = "ejb/Fibo"
* type = "Session"
* home = "tutorial.interfaces.FiboLocalHome"
* local = "tutorial.interfaces.FiboLocal"
* description = "Refrence to Fibo EJB"
*
* @jboss.ejb-ref-jndi ref-name = "ejb/Fibo"
* jndi-name = "ejb/tutorial/Fibo"
*
*/


出错信息:

12:13:43,168 WARN [EmbeddedTomcatService] Failed to parse descriptors for war(file:/D:/jboss/server/default/tmp/deploy/tmp53868FiboApp.ear-contents/FiboWeb.war/)
org.jboss.deployment.DeploymentException: Failed to parse WEB-INF/jboss-web.xml; - nested throwable: (org.jboss.deployment.DeploymentException: ejb-ref ejb/Fibo found in jboss-web.xml but not in web.xml)
at org.jboss.web.AbstractWebContainer.parseMetaData(AbstractWebContainer.java:993)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:425)

源程序及教程[url=upload/caigaonjo7P4D4a5.zip]修改后的代码[/url]

2003-09-29 12:12

出错点是.war文件布署,具体位置应该是ComputeServlet.java的XDoclet描述符错.下面是XDoclet描述串:

/**
*
* @web.servlet name = "ComputeServlet"
* display-name = "Compute Servlet"
* description = "Compute Servlet Suite"
* @web.servlet-mapping url-pattern = "/Compute"
*
* @web.env-entry name = "Title"
* type = "java.lang.String"
* value = "This is a Test Entry Can not using Chinese!"
* description = "Fibonacci Example"
*
* @web.ejb-local-ref name = "ejb/Fibo"
* type = "Session"
* home = "tutorial.interfaces.FiboLocalHome"
* local = "tutorial.interfaces.FiboLocal"
* description = "Refrence to Fibo EJB"
*
* @jboss.ejb-ref-jndi ref-name = "ejb/Fibo"
* jndi-name = "ejb/tutorial/Fibo"
*
*/


出错信息:

12:13:43,168 WARN [EmbeddedTomcatService] Failed to parse descriptors for war(file:/D:/jboss/server/default/tmp/deploy/tmp53868FiboApp.ear-contents/FiboWeb.war/)
org.jboss.deployment.DeploymentException: Failed to parse WEB-INF/jboss-web.xml; - nested throwable: (org.jboss.deployment.DeploymentException: ejb-ref ejb/Fibo found in jboss-web.xml but not in web.xml)
at org.jboss.web.AbstractWebContainer.parseMetaData(AbstractWebContainer.java:993)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:425)

<br>
<font color=red size=26>源程序及教程</font><br><br><font color=red size=26>修改后的代码</font>

赞助商链接

赞助商链接

返回顶部

移动版 关于本站 使用帮助 联系管理员 最佳分辨率1366x768
OpenSource JIVEJDON Powered by JdonFramework Code © 2002-20 jdon.com