Home | WebServices | Maven | SOA | REST | Agile & SCRUM | Java & JEE
Homepage

Enabling Local EJB Invocation in JBoss


Incase you have any difficulty in configuration please contact us.

In this tutorial you will learn how to enable JBoss 4.2.x to invoke Local EJBs.

Scenario: Let us assume your application contains a WAR and a JAR file containing EJBs. The components in the WAR is invoking one or more EJBs deployed using the JAR file. The WAR and JAR are deployed packaged as an EAR on a single JBoss 4.2.x server. When you run the application you get the following error.

Caused by: javax.ejb.EJBException: Invalid invocation, check your deployment packaging

To solve this, the following configuration changes are to be made. Let us assume your JBoss is located in E:\jboss422 and using the default server instance.
Step 1: Please change the value of the CallByValue attribute in E:\jboss422\server\default\conf\jboss-service.xml from true to false.[By default it is false. This step is to ensure ist is false]

Step 2: Please change the value of the attributes Java2ClassLoadingCompliance and UseJBossWebLoader from false to true in E:\jboss422\server\default\deploy\jboss-web.deployer\META-INF\jboss-service.xml as below.

chg2 (4K)

 

 











Copyrights 2008 Thea Solutions
All rights reserved
Powered by 4creativeweb Solutions