[jboss-user] [EJB 3.0] - Re: Deployment Descriptor Overriding Not Working?
chanurahemal
do-not-reply at jboss.com
Tue Jul 7 09:58:18 EDT 2009
hi.
i am also got the same problem when i use remote and local tags in ejb-jar.xml. but i followed your way and i added business-local and business-remote tags and now that error is gone. but it is not still deployed in jboss. i didn't use jboss.xml to bind jndi name, even i use jboss. i am using jboss 5. should i use jboss.xml for this case to bind jndi. i got error is
DEPLOYMENTS IN ERROR:
Deployment "vfszip:/C:/WORK_SPACE/MyJboss5/jboss-5.1.0.GA/server/default/deploy/JavaEEwithMyJboss5.ear/" is in error due to the following reason(s): java.lang.ClassNotFoundException: NewSession2Local from BaseClassLoader at 1de3998{VFSClassLoaderPolicy at 974bf0{name=vfszip:/C:/WORK_SPACE/MyJboss5/jboss-5.1.0.GA/server/default/deploy/JavaEEwithMyJboss5.ear/ domain=ClassLoaderDomain at d8ca48{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.bootstrap.NoAnnotationURLClassLoader at 186db54} roots=[MemoryContextHandler at 16428328[path= context=vfsmemory://5c4o145-1rjfkg-fwuo5h4z-1-fwuo8n55-9o real=vfsmemory://5c4o145-1rjfkg-fwuo5h4z-1-fwuo8n55-9o], DelegatingHandler at 25043379[path=JavaEEwithMyJboss5.ear context=file:/C:/WORK_SPACE/MyJboss5/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/WORK_SPACE/MyJboss5/jboss-5.1.0.GA/server/default/deploy/JavaEEwithMyJboss5.ear], DelegatingHandler at 30830472[path=JavaEEwithMyJboss5.ear/JavaEEwithMyJboss5-ejb.jar context=file:/C:/WORK_SPACE/MyJboss5/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/WORK_SPACE/MyJboss5/jboss-5.1.0.GA/server/default/deploy/JavaEEwithMyJboss5.ear/JavaEEwithMyJboss5-ejb.jar]] delegates=null exported=[META-INF, ejb] <IMPORT-ALL>NON_EMPTY}}
my ejb-jar.xml like this
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
version="3.0">
<enterprise-beans>
<ejb-name>NewSessionBean</ejb-name>
<business-local>ejb.NewSessionLocal</business-local>
<business-remote>ejb.NewSessionRemote</business-remote>
<ejb-class>ejb.NewSessionBean</ejb-class>
<session-type>Stateless</session-type>
<env-entry>
<env-entry-name>min2</env-entry-name>
<env-entry-type>java.lang.Integer</env-entry-type>
<env-entry-value>10</env-entry-value>
<injection-target>
<injection-target-class>
ejb.NewSessionBean
</injection-target-class>
<injection-target-name>minCheckNumber</injection-target-name>
</injection-target>
</env-entry>
<ejb-local-ref>
<ejb-ref-name>ejb/NewSession2Local</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
NewSession2Local
<injection-target>
<injection-target-class>
ejb.NewSessionBean
</injection-target-class>
<injection-target-name>newSession2Bean</injection-target-name>
</injection-target>
</ejb-local-ref>
</enterprise-beans>
</ejb-jar>
pls help me
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242219#4242219
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4242219
More information about the jboss-user
mailing list