This problem occurs when <inverse-classloading> is set in a web
application.  I've raised a JIRA here:

https://issues.apache.org/jira/browse/GERONIMO-3233


Aman Nanner/MxI Technologies <[EMAIL PROTECTED]> wrote on 06-08-2007
02:10:17 PM:

> I tried deploying a small test.ear application, but I did not experience
> this problem with it.  It seems my main EAR application and this test EAR
> application use different instances of the "SystemInstance" singleton
(e.g.
> there are two singletons).  Presumably this is because each application's
> classloader loads a version of SystemInstance.  It seems that my test EAR
> application's SystemInstance is full of "components" in the HashMap of
> components, but my main EAR application's SystemInstance has no
components
> in its HashMap, which eventually results in the NullPointerException
> described below.
>
> I'll try to investigate more, but would anybody happen to know why this
> would happen?
>
> Thanks,
> Aman
>
> Aman Nanner/MxI Technologies <[EMAIL PROTECTED]> wrote on 06-07-2007
> 03:55:57 PM:
>
> >
> > I'm deploying a J2EE 1.4 application on Apache Geronimo 2.0-SNAPSHOT.
> This
> > application is not up to JEE 5 standards yet (i.e. it uses deployment
> > descriptors instead of annotations).  I am getting some errors during
the
> > resolution of EJB references.  I have my EJB references defined in the
> > ejb-jar.xml, but I'm getting a strange error during execution:
> >
> > 15:46:49,877 WARN  [EjbFactory] Unable to lookup up EJB by reference
name
> > 'ejb/common/SequenceGenerator'; you must define the EJB reference
> > javax.naming.NamingException: Could not look up :
> > ejb/common/SequenceGenerator [Root exception is
> > java.lang.NullPointerException]
> >       at org.apache.xbean.naming.context.ContextUtil.resolve(
> > ContextUtil.java:65)
> >       at org.apache.xbean.naming.context.AbstractContext.lookup(
> > AbstractContext.java:112)
> >       at org.apache.xbean.naming.context.AbstractContext.lookup(
> > AbstractContext.java:611)
> >       at org.apache.xbean.naming.context.AbstractContext.lookup(
> > AbstractContext.java:152)
> >       at org.apache.xbean.naming.context.AbstractContext.lookup(
> > AbstractContext.java:611)
> >       at org.apache.xbean.naming.context.AbstractContext.lookup(
> > AbstractContext.java:152)
> >       at org.apache.xbean.naming.context.AbstractContext.lookup(
> > AbstractContext.java:597)
> >       at javax.naming.InitialContext.lookup(InitialContext.java:351)
> > .....
> >       at org.apache.catalina.core.StandardEngineValve.invoke(
> > StandardEngineValve.java:109)
> >       at org.apache.catalina.valves.AccessLogValve.invoke(
> > AccessLogValve.java:563)
> >       at org.apache.catalina.connector.CoyoteAdapter.service(
> > CoyoteAdapter.java:261)
> >       at org.apache.coyote.http11.Http11Processor.process(
> > Http11Processor.java:844)
> >       at
> >
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
> > Http11Protocol.java:581)
> >       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(
> > JIoEndpoint.java:447)
> >       at java.lang.Thread.run(Thread.java:595)
> > Caused by: java.lang.NullPointerException
> >       at
> org.apache.openejb.core.ivm.naming.IntraVmJndiReference.getObject(
> > IntraVmJndiReference.java:38)
> >       at org.apache.openejb.core.ivm.naming.Reference.getContent(
> > Reference.java:40)
> >       at org.apache.xbean.naming.context.ContextUtil.resolve(
> > ContextUtil.java:61)
> >       ... 50 more
> >
> >
> > It seems that the "containerSystem" variable in IntraVmJndiReference is
> > null.  Does anybody know if this is an incomplete feature, or what the
> > problem could be?
> >
> > Thanks,
> > Aman
> >
> >
>
__________________________________________________________________________________

>
> > * This message is intended only for the use of the individual or
> > entity to which it is addressed, and may contain information that is
> > privileged, confidential and exempt from disclosure under applicable
> > law. Unless you are the addressee (or authorized to receive for the
> > addressee), you may not use, copy or disclose the message or any
> > information contained in the message. If you have received this
> > message in error, please advise the sender by reply e-mail , and
> > delete the message, or call (collect) 001 613 747 4698. *
> >
>
>
__________________________________________________________________________________

> * This message is intended only for the use of the individual or
> entity to which it is addressed, and may contain information that is
> privileged, confidential and exempt from disclosure under applicable
> law. Unless you are the addressee (or authorized to receive for the
> addressee), you may not use, copy or disclose the message or any
> information contained in the message. If you have received this
> message in error, please advise the sender by reply e-mail , and
> delete the message, or call (collect) 001 613 747 4698. *
>

__________________________________________________________________________________
* This message is intended only for the use of the individual or entity to 
which it is addressed, and may contain information that is privileged, 
confidential and exempt from disclosure under applicable law. Unless you are 
the addressee (or authorized to receive for the addressee), you may not use, 
copy or disclose the message or any information contained in the message. If 
you have received this message in error, please advise the sender by reply 
e-mail , and delete the message, or call (collect) 001 613 747 4698. *

Reply via email to