Hey

[EMAIL PROTECTED] wrote:
> (1) When deploying my beans the server shows this exception
> 
> --------------------------------
> [Container factory] Deploying AreaSession
>      at org.jboss.ejb.Container.setupEnvironment(Container.java:373)
>      at org.jboss.ejb.Container.init(Container.java:157)
>      at org.jboss.ejb.EntityContainer.init(EntityContainer.java:85)
>      at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:226)
>         ..............
>         (more lines)
>         ..............
> 
> [Container factory] org.jboss.ejb.DeploymentException: No resource
> manager named , Cause:null
> --------------------------------
> 
>     In my entity beans I have this resource reference
> 
> --------------------------------
> <resource-ref>
>   <res-ref-name>jdbc/DBMS</res-ref-name>
>   <res-type>javax.sql.DataSource</res-type>
>   <res-auth>Container</res-auth>
> </resource-ref>
> --------------------------------
> 
>     And jboss.conf is the same as the last mail. JDBC driver
>     is loaded correctly.

Ok, here's how it work. The "res-ref-name" is the name jBoss is going to
bind to in java:comp/env. You *need* to make jboss.xml which maps this
to a global JNDI-name. I guess we could set this to default to
res-ref-name (uhm.. good idea, so, fixed in CVS now).

> (2) I have tried to deploy TestBeans.jar (from zola, updated today) and
>     I get this exception
> 
> --------------------------------
> [Container factory] Started: nextgen.EntityPK
>      at org.jboss.ejb.Container.setupEnvironment(Container.java:354)
>      at org.jboss.ejb.Container.init(Container.java:157)
>      at org.jboss.ejb.EntityContainer.init(EntityContainer.java:85)
>      at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:226)
>         ..........
>         (more lines)
>         ..........
> [Container factory] java.lang.NullPointerException
> --------------------------------
> 
>     I have modified the code to see what is null in Container.java:354.
>     Here is what I have seen...
> 
> --------------------------------
> reg.getName() -> ejb/myEJBRef
> reg.getLink() ->
> getApplication().getContainer(ref.getLink()) -> null
> --------------------------------
> 
>     And this is from the ejb-jar.xml of TestBeans.jar
> 
> --------------------------------
> <ejb-ref>
>   <description>An EJB ref for this bean to test</description>
>   <ejb-ref-name>ejb/myEJBRef</ejb-ref-name>
>   <ejb-ref-type>Stateless</ejb-ref-type>
>   <home>org.jboss.zol.testbean.interfaces.StatelessSessionHome</home>
>   <remote>org.jboss.zol.testbean.interfaces.StatelessSession</remote>
> </ejb-ref>
> --------------------------------
> 
>     And...   that's all :-)

Ok, no link set, then this is not surprising.. Ya need to set the
reference to link some bean, or otherwise it won't (of course) work.

/Rickard

-- 
Rickard �berg

@home: +46 13 177937
Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to