Lee Turner wrote:
> 
> Don't you need to put 'Default Stateless SessionBean' in the
> <configuration-name> section in the jboss.xml file ??
> 

<good_catch/>

my! my! my!

we really need the sanity checker in these tools, otherwise you can
really shoot yourself in the foot.

marc

> Lee
> 
> > -----Original Message-----
> > From: marc fleury [SMTP:[EMAIL PROTECTED]]
> > Sent: Tuesday, May 09, 2000 5:02 PM
> > To:   EJBoss
> > Subject:      Re: deployment throws NullPointerException on jBoss 2.0
> >
> > Then I have no idea, jBoss 2.0 is right off the press... can you field a
> > bug report?
> > We will try to look at it, thanks
> >
> > marc
> >
> >
> > Benjamin Geer wrote:
> > >
> > > Just to clarify, I did put it through EJX, but it still throws the
> > > NullPointerException.  Here are the ejb-jar.xml and jboss.xml files:
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > >
> > > <ejb-jar>
> > >         <description>
> > >         A simple 'Hello, world!' bean.
> > >         </description>
> > >
> > >         <enterprise-beans>
> > >                 <session>
> > >                         <description>
> > >                         A simple 'Hello, world!' bean.
> > >                         </description>
> > >                         <ejb-name>Hello</ejb-name>
> > >                         <home>uk.co.pentacom.hello.HelloHome</home>
> > >                         <remote>uk.co.pentacom.hello.Hello</remote>
> > >
> > <ejb-class>uk.co.pentacom.hello.HelloBean</ejb-class>
> > >                         <session-type>Stateless</session-type>
> > >                         <transaction-type>Bean</transaction-type>
> > >                 </session>
> > >         </enterprise-beans>
> > >         <assembly-descriptor>
> > >                 <container-transaction>
> > >                         <method>
> > >                                 <ejb-name>Hello</ejb-name>
> > >                                 <method-name>*</method-name>
> > >                         </method>
> > >                         <trans-attribute>Required</trans-attribute>
> > >                 </container-transaction>
> > >         </assembly-descriptor>
> > > </ejb-jar>
> > >
> > > <?xml version="1.0" encoding="Cp1252"?>
> > >
> > > <jboss>
> > >      <enterprise-beans>
> > >        <session>
> > >          <ejb-name>Hello</ejb-name>
> > >          <jndi-name>PHello</jndi-name>
> > >          <configuration-name></configuration-name>
> > >        </session>
> > >        <secure>true</secure>
> > >      </enterprise-beans>
> > >      <resource-managers />
> > >      <container-configurations>
> > >        <container-configuration
> > >
> > configuration-class="org.jboss.ejb.deployment.StatelessSessionContainerCon
> > figuration">
> > >          <container-name>Default Stateless SessionBean</container-name>
> > >
> > >
> > <container-invoker>org.jboss.ejb.plugins.jrmp12.server.JRMPContainerInvoke
> > r</container-invoker>
> > >
> > >
> > <instance-pool>org.jboss.ejb.plugins.SingletonStatelessSessionInstancePool
> > </instance-pool>
> > >          <instance-cache></instance-cache>
> > >          <persistence-manager></persistence-manager>
> > >          <transaction-manager></transaction-manager>
> > >          <container-invoker-conf>
> > >            <Optimized>False</Optimized>
> > >          </container-invoker-conf>
> > >        </container-configuration>
> > >        <container-configuration
> > >
> > configuration-class="org.jboss.ejb.deployment.StatelessSessionContainerCon
> > figuration">
> > >          <container-name>Singleton Stateless
> > SessionBean</container-name>
> > >
> > >
> > <container-invoker>org.jboss.ejb.plugins.jrmp12.server.JRMPContainerInvoke
> > r</container-invoker>
> > >
> > >
> > <instance-pool>org.jboss.ejb.plugins.SingletonStatelessSessionInstancePool
> > </instance-pool>
> > >          <instance-cache></instance-cache>
> > >          <persistence-manager></persistence-manager>
> > >          <transaction-manager></transaction-manager>
> > >          <container-invoker-conf>
> > >            <Optimized>False</Optimized>
> > >          </container-invoker-conf>
> > >        </container-configuration>
> > >        <container-configuration
> > >
> > configuration-class="org.jboss.ejb.deployment.EntityContainerConfiguration
> > ">
> > >          <container-name>BMP EntityBean</container-name>
> > >
> > >
> > <container-invoker>org.jboss.ejb.plugins.jrmp12.server.JRMPContainerInvoke
> > r</container-invoker>
> > >
> > > <instance-pool>org.jboss.ejb.plugins.EntityInstancePool</instance-pool>
> > >
> > >
> > <instance-cache>org.jboss.ejb.plugins.NoPassivationEntityInstanceCache</in
> > stance-cache>
> > >
> > >
> > <persistence-manager>org.jboss.ejb.plugins.BMPPersistenceManager</persiste
> > nce-manager>
> > >          <transaction-manager></transaction-manager>
> > >          <container-invoker-conf>
> > >            <Optimized>False</Optimized>
> > >          </container-invoker-conf>
> > >          <container-cache-conf />
> > >          <container-pool-conf>
> > >            <MinimumSize>10</MinimumSize>
> > >            <MaximumSize>100</MaximumSize>
> > >          </container-pool-conf>
> > >        </container-configuration>
> > >        <container-configuration
> > >
> > configuration-class="org.jboss.ejb.deployment.EntityContainerConfiguration
> > ">
> > >          <container-name>CMP EntityBean</container-name>
> > >
> > >
> > <container-invoker>org.jboss.ejb.plugins.jrmp12.server.JRMPContainerInvoke
> > r</container-invoker>
> > >
> > > <instance-pool>org.jboss.ejb.plugins.EntityInstancePool</instance-pool>
> > >
> > >
> > <instance-cache>org.jboss.ejb.plugins.NoPassivationEntityInstanceCache</in
> > stance-cache>
> > >
> > >
> > <persistence-manager>org.jboss.ejb.plugins.BMPPersistenceManager</persiste
> > nce-manager>
> > >          <transaction-manager></transaction-manager>
> > >          <container-invoker-conf>
> > >            <Optimized>False</Optimized>
> > >          </container-invoker-conf>
> > >          <container-cache-conf />
> > >          <container-pool-conf>
> > >            <MinimumSize>10</MinimumSize>
> > >            <MaximumSize>100</MaximumSize>
> > >          </container-pool-conf>
> > >        </container-configuration>
> > >      </container-configurations>
> > >    </jboss>
> > >
> > > marc fleury wrote:
> > > >
> > > > It needs to go through EJX for configuration
> > > >
> > > > marc
> > > >
> > > > Benjamin Geer wrote:
> > > > >
> > > > > Here's what happened when I dropped a simple "Hello, world!"
> > stateless
> > > > > session bean JAR file into the deploy directory of jBoss 2.0, and
> > > > > started the server:
> > > > >
> > > > > [Auto deploy] Watching C:\jboss2\deploy
> > > > > [Auto deploy] Auto deploy of file:/C:/jboss2/deploy/PHello.jar
> > > > > [Container factory] Deploying:file:/C:/jboss2/deploy/PHello.jar
> > > > > [Container factory] Deploying Hello
> > > > > [Container factory] java.lang.NullPointerException
> > > > > [Container factory]     at
> > > > > org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java,
> > Compiled
> > > > > Cod
> > > > > e)
> > > > > [Container factory]     at
> > > > > org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:84)
> > > > > [Container factory]     at java.lang.reflect.Method.invoke(Native
> > > > > Method)
> > > > > [Container factory]     at
> > > > > javax.management.MBeanServer.invoke(MBeanServer.java:1635)
> > > > > [Container factory]     at
> > > > > javax.management.MBeanServer.invoke(MBeanServer.java:1501)
> > > > > [Container factory]     at
> > > > > org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:139)
> > > > > [Container factory]     at
> > > > > org.jboss.ejb.AutoDeployer.run(AutoDeployer.java, Compiled Code)
> > > > > [Container factory]     at
> > > > > org.jboss.ejb.AutoDeployer.preRegister(AutoDeployer.java:156)
> > > > > [Container factory]     at java.lang.reflect.Method.invoke(Native
> > > > > Method)
> > > > > [Container factory]     at
> > > > >
> > javax.management.MBeanServer.preRegisterInvoker(MBeanServer.java:2253)
> > > > > [Container factory]     at
> > > > > javax.management.MBeanServer.createMBean(MBeanServer.java:721)
> > > > > [Container factory]     at
> > > > > javax.management.loading.MLet.getMBeansFromURL(MLet.java:385)
> > > > > [Container factory]     at
> > > > > javax.management.loading.MLet.getMBeansFromURL(MLet.java:208)
> > > > > [Container factory]     at org.jboss.Main.run(Main.java, Compiled
> > Code)
> > > > > [Container factory]     at org.jboss.Main$1.run(Main.java:62)
> > > > > [Container factory]     at
> > > > > java.security.AccessController.doPrivileged(Native Method)
> > > > > [Container factory]     at org.jboss.Main.main(Main.java:58)
> > > > > [Auto deploy] Deployment failed:file:/C:/jboss2/deploy/PHello.jar
> > > > > [Auto deploy] java.lang.NullPointerException
> > > > > [Auto deploy]   at
> > > > > org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java,
> > Compiled
> > > > > Code)
> > > > > [Auto deploy]   at
> > > > > org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:84)
> > > > > [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.deploy(AutoDeployer.java:139)
> > > > > [Auto deploy]   at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java,
> > > > > Compiled Code)
> > > > > [Auto deploy]   at
> > > > > org.jboss.ejb.AutoDeployer.preRegister(AutoDeployer.java:156)
> > > > > [Auto deploy]   at java.lang.reflect.Method.invoke(Native Method)
> > > > > [Auto deploy]   at
> > > > >
> > javax.management.MBeanServer.preRegisterInvoker(MBeanServer.java:2253)
> > > > > [Auto deploy]   at
> > > > > javax.management.MBeanServer.createMBean(MBeanServer.java:721)
> > > > > [Auto deploy]   at
> > > > > javax.management.loading.MLet.getMBeansFromURL(MLet.java:385)
> > > > > [Auto deploy]   at
> > > > > javax.management.loading.MLet.getMBeansFromURL(MLet.java:208)
> > > > > [Auto deploy]   at org.jboss.Main.run(Main.java, Compiled Code)
> > > > > [Auto deploy]   at org.jboss.Main$1.run(Main.java:62)
> > > > >
> > > > > Any ideas?
> > > > >
> > > > > I thought there might be a conflict with the helloworld example that
> > > > > jBoss comes with, so I deleted the latter, but that didn't help.
> > > > >
> > > > > I'm using Windows NT with JDK 1.2.2.
> > > > >
> > > > > Ben
> > > > >
> > > > > --
> > > > > --------------------------------------------------------------
> > > > > To subscribe:        [EMAIL PROTECTED]
> > > > > To unsubscribe:      [EMAIL PROTECTED]
> > > > > Problems?:           [EMAIL PROTECTED]
> > > >
> > > > --
> > > > --------------------------------------------------------------
> > > > To subscribe:        [EMAIL PROTECTED]
> > > > To unsubscribe:      [EMAIL PROTECTED]
> > > > Problems?:           [EMAIL PROTECTED]
> > >
> > > --
> > > --------------------------------------------------------------
> > > To subscribe:        [EMAIL PROTECTED]
> > > To unsubscribe:      [EMAIL PROTECTED]
> > > Problems?:           [EMAIL PROTECTED]
> >
> >
> > --
> > --------------------------------------------------------------
> > To subscribe:        [EMAIL PROTECTED]
> > To unsubscribe:      [EMAIL PROTECTED]
> > Problems?:           [EMAIL PROTECTED]
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]


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

Reply via email to