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 閱讀(531) 評論(0)  編輯  收藏 所屬分類: WebService
          <2025年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          常用鏈接

          留言簿(3)

          隨筆檔案

          文章分類

          文章檔案

          相冊

          搜索

          •  

          最新評論

          主站蜘蛛池模板: 宿松县| 和龙市| 天镇县| 疏勒县| 昭苏县| 大姚县| 新郑市| 灵丘县| 镇江市| 安义县| 嵩明县| 大竹县| 宁陕县| 兴文县| 田东县| 大渡口区| 湘阴县| 高唐县| 灌南县| 卓资县| 栾城县| 岚皋县| 禹州市| 明水县| 文山县| 上饶县| 栾城县| 衡阳市| 嘉义市| 通州市| 榆中县| 屯留县| 连云港市| 台山市| 辉南县| 海林市| 双峰县| 灵台县| 裕民县| 邮箱| 莎车县|