[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Issue with deploying to JBoss 5.0.0Beta4
jaikiran
do-not-reply at jboss.com
Sat Mar 15 05:22:32 EDT 2008
anonymous wrote : Caused by: java.lang.IllegalArgumentException: Null local
| at org.jboss.metadata.javaee.spec.EJBLocalReferenceMetaData.setLocal(EJBLocalReferenceMetaDa
| ta.java:96)
I could reproduce this with a sample application on JBoss-5.0 Beta4. Seems to happen when you have a ejb-local-ref defined in the web.xml file but none in the jboss-web.xml:
| <?xml version="1.0" encoding="UTF-8"?>
|
| <web-app>
| <display-name>EJB3 Persistence</display-name>
|
| <ejb-local-ref>
| <ejb-ref-name>test</ejb-ref-name>
| <ejb-ref-type>Session</ejb-ref-type>
| <local-home>org.myapp.ejb2x.HelloWorldLocalHome</local-home>
| <local>org.myapp.ejb2x.HelloWorldLocal</local>
| <ejb-link>HelloWorldBean</ejb-link>
| </ejb-local-ref>
|
| </web-app>
I did not have a jboss-web.xml and started seeing these errors:
2008-03-15 14:08:24,666 DEBUG [org.jboss.deployment.JBossWebAppParsingDeployer] Error during deploy: vfsfile:/D:/jboss-5.0.0.Beta4/server/jaikiran/deploy/ZEJB3Persistence.ear/myapp.war/
| java.lang.IllegalArgumentException: Null local
| at org.jboss.metadata.javaee.spec.EJBLocalReferenceMetaData.setLocal(EJBLocalReferenceMetaData.java:96)
| at org.jboss.metadata.javaee.spec.EJBLocalReferenceMetaData.merge(EJBLocalReferenceMetaData.java:142)
| at org.jboss.metadata.javaee.spec.EJBLocalReferenceMetaData.merge(EJBLocalReferenceMetaData.java:120)
|
Adding a jboss-web.xml with the following contents, solved the issue for me:
|
| <?xml version="1.0" encoding="UTF-8"?>
|
| <!DOCTYPE jboss-web PUBLIC
| "-//JBoss//DTD Web Application 5.0//EN"
| "http://www.jboss.org/j2ee/dtd/jboss-web_5_0.dtd">
|
| <jboss-web>
|
|
|
| <ejb-local-ref>
| <ejb-ref-name>test</ejb-ref-name>
| <local-jndi-name>test/HelloWorld</local-jndi-name>
| </ejb-local-ref>
|
| </jboss-web>
Do you have a jboss-web.xml? If not, try adding one with the appropriate contents and see if it works.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136880#4136880
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136880
More information about the jboss-user
mailing list