[jboss-user] [Beginner's Corner] - Re: invoking an EJB over iiop
Yves Martin
do-not-reply at jboss.com
Thu Feb 7 07:23:32 EST 2013
Yves Martin [https://community.jboss.org/people/ymartin] created the discussion
"Re: invoking an EJB over iiop"
To view the discussion, visit: https://community.jboss.org/message/796506#796506
--------------------------------------------------------------
With @Stateless, @RemoteHome, @Remote and @IIOP annotations, my EJB3 no longer deploys in JBoss 6.1:
12:30:01,495 WARN [Ejb3AnnotationHandler] JBMETA-4: did not find any bean meta data for annotation bean ServiceBean, will create some
12:30:01,584 ERROR [RedirectingBeanInstantiatorDeployer] Error during undeploy: SNAPSHOT.jar/: java.lang.IllegalStateException: Not installed: org.jboss.ejb.bean.instantiator/EAR/SNAPSHOT/ServiceBean
Caused by: java.lang.ClassNotFoundException: Null class name
at org.jboss.classloader.plugins.ClassLoaderUtils.checkClassName(ClassLoaderUtils.java:53) [jboss-classloader.jar:2.2.1.GA]
at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:425) [jboss-classloader.jar:2.2.1.GA]
at java.lang.ClassLoader.loadClass(ClassLoader.java:247) [:1.6.0_39]
at org.jboss.ejb3.effigy.common.JBossEnterpriseBeanEffigy.<init>(JBossEnterpriseBeanEffigy.java:52) [:0.2.0]
at org.jboss.ejb3.effigy.common.JBossSessionBeanEffigy.<init>(JBossSessionBeanEffigy.java:40) [:0.2.0]
at org.jboss.ejb3.effigy.int2.JBossBeanEffigyFactory.create(JBossBeanEffigyFactory.java:52) [:0.2.0]
at org.jboss.ejb3.effigy.int2.JBossBeanEffigyFactory.create(JBossBeanEffigyFactory.java:37) [:0.2.0]
at org.jboss.ejb3.EJBContainer.effigy(EJBContainer.java:466) [:1.7.21]
Have you got any idea about the mistake I did ? Do you recommend me to remove ejb-jar.xml and jboss.xml ?
My ejb-jar.xml
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar xmlns=" http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=" http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
version="3.0">
<enterprise-beans>
<session>
<ejb-name>ServiceBean</ejb-name>
<business-remote>my.Service</business-remote>
<ejb-class>my.ServiceBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
<interceptors>
<interceptor>
<interceptor-class>org.springframework.ejb.interceptor.SpringBeanAutowiringInterceptor</interceptor-class>
</interceptor>
<interceptor>
<interceptor-class>my.RollbackExceptionInterceptor</interceptor-class>
</interceptor>
</interceptors>
<assembly-descriptor>
<interceptor-binding>
<ejb-name>*</ejb-name>
<interceptor-class>org.springframework.ejb.interceptor.SpringBeanAutowiringInterceptor</interceptor-class>
<interceptor-class>my.RollbackExceptionInterceptor</interceptor-class>
</interceptor-binding>
</assembly-descriptor>
</ejb-jar>
My jboss.xml
<?xml version="1.0" encoding="UTF-8"?>
<jboss xmlns=" http://www.jboss.com/xml/ns/javaee http://www.jboss.com/xml/ns/javaee" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=" http://www.jboss.com/xml/ns/javaee http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss_5_1.xsd http://www.jboss.org/j2ee/schema/jboss_5_1.xsd" version="5.1">
<enterprise-beans>
<session>
<ejb-name>ServiceBean</ejb-name>
<jndi-name>my.service</jndi-name>
</session>
</jboss>
Many thanks for your help
Yves
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/796506#796506]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130207/978ae6bd/attachment-0001.html
More information about the jboss-user
mailing list