You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Venkat Reddy <vr...@gmail.com> on 2005/02/24 07:56:52 UTC

Exception while deploying an EJB

hi all,

Can someone kindly hint me what could possibly be causing the
deployment to fail with the following stacktrace? My ejb-jar.xml
content follows the stack trace.

Caused by: java.lang.NullPointerException
        at org.openejb.deployment.OpenEJBModuleBuilder.initContext(OpenEJBModuleBuilder.java:308)
        at org.openejb.deployment.OpenEJBModuleBuilder$$FastClassByCGLIB$$11bd7b20.invoke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:87)
        at org.apache.geronimo.gbean.jmx.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
        at org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOperation.java:142)
        at org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:823)
        at org.apache.geronimo.gbean.jmx.RawInvoker.invoke(RawInvoker.java:89)
        at org.apache.geronimo.gbean.jmx.RawOperationInvoker.invoke(RawOperationInvoker.java:34)
        at org.apache.geronimo.gbean.jmx.CGLibMethodInterceptor.intercept(CGLibMethodInterceptor.java:112)
        at org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$9e45a280.initContext(<generated>)
        at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:323)
        at org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.invoke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:87)
        at org.apache.geronimo.gbean.jmx.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
        at org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOperation.java:142)
        at org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:823)
        at org.apache.geronimo.gbean.jmx.RawInvoker.invoke(RawInvoker.java:89)
        at org.apache.geronimo.gbean.jmx.RawOperationInvoker.invoke(RawOperationInvoker.java:34)
        at org.apache.geronimo.gbean.jmx.CGLibMethodInterceptor.intercept(CGLibMethodInterceptor.java:112)
        at org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$7a1ca0ae.buildConfiguration(<generated>
)
        at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:174)
        ... 55 more
----------------------------------------------
ejb-jar.xml
----------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
     http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"
     version="2.1">
  <enterprise-beans>
    <session>
      <display-name>Google Search</display-name>
      <ejb-name>GoogleBean</ejb-name>
      <home>org.objectweb.wssample.gen.google.GoogleSearchHome</home>
      <remote>org.objectweb.wssample.gen.google.GoogleSearchPortEJB</remote>
      <ejb-class>org.objectweb.wssample.gen.google.GoogleSearchPortBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Bean</transaction-type>
      <security-identity>
        <description></description>
        <use-caller-identity></use-caller-identity>
      </security-identity>
    </session>
  </enterprise-beans>
  <assembly-descriptor>
      <method-permission>
          <unchecked/>
          <method>
           <ejb-name>GoogleBean</ejb-name>
         <method-name>*</method-name>
      </method>
       </method-permission>
  </assembly-descriptor>
</ejb-jar>
------------------------------------------------
the jar file contained the ejb-jar.xml, and the classes for Home,
Remote Intf and Bean Impl, in addtion to other stuff.

I tried removing the <security-identity> element since it has empty
content, but that doesn't fix it.

thanks a ton for your time!
Venkat

Re: Exception while deploying an EJB

Posted by Aaron Mulder <am...@alumni.princeton.edu>.
	Are you using M3?  If so, this is probably the known bug where it 
blows up if CORBA isn't configured.  If not, what version of Geronimo are 
you using?

Aaron

On Thu, 24 Feb 2005, Venkat Reddy wrote:
> hi all,
> 
> Can someone kindly hint me what could possibly be causing the
> deployment to fail with the following stacktrace? My ejb-jar.xml
> content follows the stack trace.
> 
> Caused by: java.lang.NullPointerException
>         at org.openejb.deployment.OpenEJBModuleBuilder.initContext(OpenEJBModuleBuilder.java:308)
>         at org.openejb.deployment.OpenEJBModuleBuilder$$FastClassByCGLIB$$11bd7b20.invoke(<generated>)
>         at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:87)
>         at org.apache.geronimo.gbean.jmx.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
>         at org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOperation.java:142)
>         at org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:823)
>         at org.apache.geronimo.gbean.jmx.RawInvoker.invoke(RawInvoker.java:89)
>         at org.apache.geronimo.gbean.jmx.RawOperationInvoker.invoke(RawOperationInvoker.java:34)
>         at org.apache.geronimo.gbean.jmx.CGLibMethodInterceptor.intercept(CGLibMethodInterceptor.java:112)
>         at org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$9e45a280.initContext(<generated>)
>         at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:323)
>         at org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.invoke(<generated>)
>         at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:87)
>         at org.apache.geronimo.gbean.jmx.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
>         at org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOperation.java:142)
>         at org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:823)
>         at org.apache.geronimo.gbean.jmx.RawInvoker.invoke(RawInvoker.java:89)
>         at org.apache.geronimo.gbean.jmx.RawOperationInvoker.invoke(RawOperationInvoker.java:34)
>         at org.apache.geronimo.gbean.jmx.CGLibMethodInterceptor.intercept(CGLibMethodInterceptor.java:112)
>         at org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$7a1ca0ae.buildConfiguration(<generated>
> )
>         at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:174)
>         ... 55 more
> ----------------------------------------------
> ejb-jar.xml
> ----------------------------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee"
>      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>      xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
>      http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"
>      version="2.1">
>   <enterprise-beans>
>     <session>
>       <display-name>Google Search</display-name>
>       <ejb-name>GoogleBean</ejb-name>
>       <home>org.objectweb.wssample.gen.google.GoogleSearchHome</home>
>       <remote>org.objectweb.wssample.gen.google.GoogleSearchPortEJB</remote>
>       <ejb-class>org.objectweb.wssample.gen.google.GoogleSearchPortBean</ejb-class>
>       <session-type>Stateless</session-type>
>       <transaction-type>Bean</transaction-type>
>       <security-identity>
>         <description></description>
>         <use-caller-identity></use-caller-identity>
>       </security-identity>
>     </session>
>   </enterprise-beans>
>   <assembly-descriptor>
>       <method-permission>
>           <unchecked/>
>           <method>
>            <ejb-name>GoogleBean</ejb-name>
>          <method-name>*</method-name>
>       </method>
>        </method-permission>
>   </assembly-descriptor>
> </ejb-jar>
> ------------------------------------------------
> the jar file contained the ejb-jar.xml, and the classes for Home,
> Remote Intf and Bean Impl, in addtion to other stuff.
> 
> I tried removing the <security-identity> element since it has empty
> content, but that doesn't fix it.
> 
> thanks a ton for your time!
> Venkat
> 

Re: Exception while deploying an EJB

Posted by Jacek Laskowski <jl...@apache.org>.
Venkat Reddy wrote:
> hi all,
> 
> Can someone kindly hint me what could possibly be causing the
> deployment to fail with the following stacktrace? My ejb-jar.xml
> content follows the stack trace.

Share your configuration:

  o Geronimo version
  o Operating system
  o JDK version

It may be that you're working with Geronimo 1.0-M3 that was released 
quite a long time ago.

> Venkat

Jacek