you have to link your ejb-refs in jboss.xml to their jndi name. (also
resource refs, etc)
jboss-web.xml does similar things in web apps.
----- Original Message -----
From: G.L. Grobe <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, July 01, 2001 5:29 PM
Subject: [JBoss-user] what is jboss-web.xml
> Why does auto deploy suggest I use the jboss-web.xml file. I don't know
this
> file nor can I find any docs on it.
>
> I've got a session that calls an entity and they are both packaged in the
> same ejb.jar file and run on the same JBoss server instance. So I've used
> the <ejb-link> tag inside the <ejb-ref>'s in my ejb-jar.xml file and
> dismissed any use of jboss.xml, but jboss-web.xml?.
>
> I've included the two bean descriptor sections from ejb-jar.xml and the
> error output.
>
> [Auto deploy] Linking ejb-ref:
>
> ejb/com.neuroquest.cais.ejb.session.initBuild.InitBuildHome
> to JNDI name: null
> [Auto deploy] javax.naming.NamingException: ejb-ref:
>
> ejb/com.neuroquest.cais.ejb.session.initBuild.InitBuildHome
> , expected jndi-name in jboss-web.xml
>
> ----------------- snip of ejb-jar.xml --------------------------
> <session>
> <ejb-name>InitBuild</ejb-name>
>
>
<ejb-class>com.neuroquest.cais.ejb.session.initBuild.InitBuildBean</ejb-clas
> s>
> <home>com.neuroquest.cais.ejb.session.initBuild.InitBuildHome</home>
> <remote>com.neuroquest.cais.ejb.session.initBuild.InitBuild</remote>
> <session-type>Stateful</session-type>
> <transaction-type>Container</transaction-type>
> <ejb-ref>
> <ejb-ref-name>ejb/Build</ejb-ref-name>
> <ejb-ref-type>Entity</ejb-ref-type>
> <home>com.neuroquest.cais.ejb.entity.build.BuildHome</home>
> <remote>com.neuroquest.cais.ejb.entity.build.Build</remote>
> <ejb-link>Build</ejb-link>
> </ejb-ref>
> </session>
>
> <entity>
> <ejb-name>Build</ejb-name>
> <ejb-class>com.neuroquest.cais.ejb.entity.build.BuildBean</ejb-class>
> <home>com.neuroquest.cais.ejb.entity.build.BuildHome</home>
> <remote>com.neuroquest.cais.ejb.entity.build.Build</remote>
> <persistence-type>Bean</persistence-type>
>
>
<prim-key-class>com.neuroquest.cais.ejb.entity.build.BuildPK</prim-key-class
> >
> <reentrant>False</reentrant>
> </entity>
> ---------------- snip of ejb.jar.xml ------------------------
> (More error output from JBoss...)
>
> [Container factory] Deploying Account
> [Container factory] Deploying Build
> [Container factory] Deploying ConfigBuild
> [Container factory] Deploying DBaseFetch
> [Container factory] Deploying ConfigTools
> [Container factory] Deploying InitBuild
> [Bean Cache] Cache policy scheduler started
> [Container factory] Deployed application:
>
file:/u/public/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Default/acais-1.0.e
> ar
> [J2EE Deployer Default] Starting module acais-web.war
> [Auto deploy] deploy, ctxPath=/acais,
>
warUrl=file:/u/public/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Default/acai
> s-1.0.ear/web1003/
> 2001-07-01 05:32:09 - ContextManager: Adding context Ctx( /acais )
> [Auto deploy] AbstractWebContainer.parseWebAppDescriptors, Begin
> [Auto deploy] addEnvEntries
> [Auto deploy] linkResourceRefs
> [Auto deploy] linkEjbRefs
> [Auto deploy] Linking ejb-ref:
>
> ejb/com.neuroquest.cais.ejb.session.initBuild.InitBuildHome
> to JNDI name: null
> [Auto deploy] javax.naming.NamingException: ejb-ref:
>
> ejb/com.neuroquest.cais.ejb.session.initBuild.InitBuildHome
> , expected jndi-name in jboss-web.xml
> [Auto deploy] at
>
org.jboss.web.AbstractWebContainer.linkEjbRefs(AbstractWebContainer.java:359
> )
> ...
>
>
> TIA
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user