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 閱讀(536) 評論(0)  編輯  收藏 所屬分類: WebService
          <2025年8月>
          272829303112
          3456789
          10111213141516
          17181920212223
          24252627282930
          31123456

          常用鏈接

          留言簿(3)

          隨筆檔案

          文章分類

          文章檔案

          相冊

          搜索

          •  

          最新評論

          主站蜘蛛池模板: 麻栗坡县| 海安县| 金昌市| 绿春县| 陵水| 福泉市| 宝应县| 施秉县| 富阳市| 东安县| 景谷| 咸丰县| 沅陵县| 苍梧县| 龙陵县| 莫力| 军事| 元谋县| 普定县| 从江县| 鄂州市| 遂平县| 乌拉特后旗| 苏州市| 金坛市| 桦甸市| 曲阳县| 延川县| 句容市| 奇台县| 天等县| 缙云县| 临城县| 瓮安县| 沁源县| 富锦市| 北海市| 普格县| 工布江达县| 桐乡市| 灌南县|