Now I need some help on jboss.xml. Here's what I'm trying -- with no success.
<jboss>
<enterprise-beans>
<entity>
<ejb-name>CabinBean</ejb-name>
<jndi-name>CabinBean</jndi-name>
<configuration-name>Default EntityBean</configuration-name>
</entity>
<secure>false</secure>
</enterprise-beans>
(and the rest of the file, as documented at
<http://jboss.org/jboss_win32_3.html>).
It doesn't work. When including that jboss.xml in an otherwise-unmodified
cabin.jar, the auto-deploy fails. The container window shows this set of
messages:
[Auto deploy] Auto deploy of file:/C:/Program Files/jboss2/deploy/cabin.jar
[Container factory] Deploying:file:/C:/Program Files/jboss2/deploy/cabin.jar
[Container factory] Deploying CabinBean
at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:443)[Cont
ainer factory] No configuration chosen. Using default configuration
at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:183)[Cont
ainer factory] java.lang.NullPointerException
at java.lang.reflect.Method.invoke(Native Method)
at javax.management.MBeanServer.invoke(MBeanServer.java:1635)
at javax.management.MBeanServer.invoke(MBeanServer.java:1501)
at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:258)
at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:194)
at java.lang.Thread.run(Unknown Source)
[Auto deploy] Deployment failed:file:/C:/Program Files/jboss2/deploy/cabin.jar
[Auto deploy] org.jboss.ejb.DeploymentException: Could not deploy
file:/C:/Progr
am Files/jboss2/deploy/cabin.jar
[Auto deploy] at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:5
05)
[Auto deploy] at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:1
83)
[Auto deploy] at java.lang.reflect.Method.invoke(Native Method)
[Auto deploy] at javax.management.MBeanServer.invoke(MBeanServer.java:1635)
[Auto deploy] at javax.management.MBeanServer.invoke(MBeanServer.java:1501)
[Auto deploy] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:194)
[Auto deploy] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:258)
[Auto deploy] at java.lang.Thread.run(Unknown Source)
Any suggestions? Is there any documentation for jboss.xml? I've looked at
the source code.
>Ken Jenks <[EMAIL PROTECTED]> wrote:
>[..]
> >As promised, here's my first solution. It includes Windows batch files and
> >Linux shell scripts for compiling, deploying and running on the latest
> >jBoss binary. (Warning: will not work on last week's version of jBoss 2.0.)
> >
> >This is NOT the optimum jBoss solution. I revised the client code and even
> >the TravelAgentBean to use jBoss' local JNDI names. What I should have done
> >-- and what I'll do next week -- is to use jboss.xml to re-map the JNDI
> >names used in the examples to jBoss' local JNDI names without revising the
> >client code. (That's how jBoss is supposed to work. I think.)
> >
> >http://abiblion.com/products-jboss.html
Justin Forder <[EMAIL PROTECTED]> replied:
>... you need
>
><A HREF="http://www.oreilly.com/catalog/entjbeans2/chapter/examples.zip"
> >
> examples.zip
></A>
Thanks. Fixed.
-- Ken Jenks, http://abiblion.com/
Tools for reading.
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]