posts - 1,  comments - 25,  trackbacks - 0

使用Eclipse 将EJB 和 调用此EJB的JSP或Servlet部署到JBoss4.0.2中,使用LOMBOZ EJB Test Client Wizard 创建的Java客户端可以正常调用EJB,但使用Servlet和JSP调用时出错:
04:03:33,714 INFO [STDOUT] java.rmi.ServerException: EJBException:; nested exception is:
javax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=public abstract test.ejb.TestEJBInterface test.ejb.TestEJBHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException

解决办法:

1] Edit conf/jboss-service.XML and make CallByValue as 'true' in NamingService as below

<mbean code="org.jboss.naming.NamingService"
name="jboss:service=Naming"
xmbean-dd="resource:xmdesc/NamingService-xmbean.xml">
true


2] Edit deploy/ear-deployer.xml, and set Isloated and CallByValue as true

3]Edit deploy\jbossweb-tomcat55.sar\META-INF\jboss-service.xml , and set Java2ClassLoadingCompilance and UseJbossWebLoader attributes as false

posted on 2008-08-14 10:14 Daniel 阅读(515) 评论(0)  编辑  收藏 所属分类: WebService

只有注册用户登录后才能发表评论。


网站导航:
 
<2024年11月>
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567

常用链接

留言簿(3)

随笔档案

文章分类

文章档案

相册

搜索

  •  

最新评论