geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prasad Kashyap" <goyathlay.geron...@gmail.com>
Subject Re: Exceptions during deployment of testsupport EARs
Date Tue, 13 Feb 2007 18:26:21 GMT
    org.apache.geronimo.testsupport/test-ear-j2ee_1.4/2.0-SNAPSHOT/ear
    failed to start due to the following reasons:
      The service
EJBModule=ejb.jar,J2EEApplication=org.apache.geronimo.testsupport/test-ear-j2ee_1.4/2.0-SNAPSHOT/ear,j2eeType=StatefulSessionBean,name=SimpleStatefulSession
    did not start because
org.apache.geronimo.testsupport/test-ear-j2ee_1.4/2.0-SNAPSHOT/ear?J2EEApplication=org.apache.geronimo.testsupport/test-ear-j2ee_1.4/2.0-SNAPSHOT/ear,j2eeType=EJBModule,name=ejb.jar
    did not start.
      The service
J2EEApplication=org.apache.geronimo.testsupport/test-ear-j2ee_1.4/2.0-SNAPSHOT/ear,j2eeType=EJBModule,name=ejb.jar
    did not start because the doStart method threw an exception.

    org.apache.openejb.OpenEJBException: Error building bean
'SimpleCMPEntity'.  Exception: class
java.lang.IllegalArgumentException: Persistence unit cmp for
persistence-context-ref openejb/cmp not found: Persistence unit cmp
for persistence-context-ref openejb/cmp not found

    	at
    org.apache.openejb.assembler.classic.EjbJarBuilder.build(EjbJarBuilder.java:61)
    	at    org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:379)
    	at
    org.apache.openejb.assembler.classic.Assembler.createEjbJar(Assembler.java:303)
    	at    org.apache.geronimo.openejb.OpenEjbSystemGBean.createEjbJar(OpenEjbSystemGBean.java:184)

Full stack trace here :
http://rifers.org/paste/show/3534

Messages as seen in the server 'startup' window or 'geronimo run'
[severity=ERROR,message=unexpected element
(uri:"http://www.openejb.org/openejb-jar/1.1",
local:"cmp-connection-factory"). Expected elements are
<{http://www.openejb.org/openejb-jar/1.1}ejb-deployment>,locator=[node=null,object=null,url=null,line=25,col=29,offset=-1]]


Here are some exceptions in the geronimo.log
13:10:48,203 INFO  [OpenEJB] Using directory
C:\Apache\geronimo-jetty6-jee5-2.0-SNAPSHOT\var\temp for stateful
session passivation
13:11:20,890 WARN  [OpenEJB] Auto-deploying ejb
SimpleStatelessSession:
EjbDeployment(deployment-id=geronimo-deploymentUtil23155.tmpdir/SimpleStatelessSession,
container-id=Default Stateless Container)
13:11:20,890 WARN  [OpenEJB] Auto-deploying ejb SimpleStatefulSession:
EjbDeployment(deployment-id=geronimo-deploymentUtil23155.tmpdir/SimpleStatefulSession,
container-id=Default Stateful Container)
13:11:20,890 WARN  [OpenEJB] Auto-deploying ejb SimpleBMPEntity:
EjbDeployment(deployment-id=geronimo-deploymentUtil23155.tmpdir/SimpleBMPEntity,
container-id=Default BMP Container)
13:11:20,890 WARN  [OpenEJB] Auto-deploying ejb SimpleCMPEntity:
EjbDeployment(deployment-id=geronimo-deploymentUtil23155.tmpdir/SimpleCMPEntity,
container-id=Default CMP Container)
13:11:31,255 ERROR [GBeanInstance] Problem in doFail of
org.apache.geronimo.testsupport/test-ear-j2ee_1.4/2.0-SNAPSHOT/ear?J2EEApplication=org.apache.geronimo.testsupport/test-ear-j2ee_1.4/2.0-SNAPSHOT/ear,j2eeType=EJBModule,name=ejb.jar
java.lang.NullPointerException
	at org.apache.openejb.assembler.classic.Assembler.destroyApplication(Assembler.java:455)
	at org.apache.openejb.assembler.classic.Assembler.destroyApplication(Assembler.java:427)
	at org.apache.geronimo.openejb.OpenEjbSystemGBean.removeEjbJar(OpenEjbSystemGBean.java:191)

Cheers
Prasad


On 2/13/07, David Blevins <david.blevins@visi.com> wrote:
>
> On Feb 12, 2007, at 7:29 PM, Prasad Kashyap wrote:
>
> > Jenck's patch seeems to have fixed the persistence bugs. However these
> > are the new exceptions seen when the same 2 test ears are deployed.
> >
> > Background Context:
> > -------------------------------
> > The deployment-testsuite/test-deployments deploys the following 2 ears
> > in succession, hits the context-root URL in a browser and then
> > undeploys it again.
> >
> > org.apache.geronimo.testsupport/test-ear-j2ee_1.3/2.0-SNAPSHOT/ear
> > org.apache.geronimo.testsupport/test-ear-j2ee_1.4/2.0-SNAPSHOT/ear
> >
> > This used to work fine until recently.
>
> So for problem #1 I checked in a fix which should at least not result
> in a null pointer exception.  We'll see what it throws next :)
>
> For #2 that'll take some debugging, but I think I may have an idea of
> how to fix.
>
> Quick question, how do I run the deployment-testsuite/test-deployments ?
>
> -David
>
>
> >
> >
> > Problem #1: Starting an app with EJBs
> > --------------------------------------------------------
> >    Error: Operation failed: start of
> >    org.apache.geronimo.testsupport/test-ear-j2ee_1.4/2.0-SNAPSHOT/ear
> >    failed
> >       Unknown start exception
> >
> >       Configuration
> > org.apache.geronimo.testsupport/test-ear-j2ee_1.4/2.0-SNAPSHOT/ear
> >    failed to start due to the following reasons:
> >      The service
> > EJBModule=ejb.jar,J2EEApplication=org.apache.geronimo.testsupport/
> > test-ear-j2ee_1.4/2.0-SNAPSHOT/
> > ear,j2eeType=StatefulSessionBean,name=SimpleStatefulSession
> >    did not start because
> > org.apache.geronimo.testsupport/test-ear-j2ee_1.4/2.0-SNAPSHOT/ear?
> > J2EEApplication=org.apache.geronimo.testsupport/test-ear-
> > j2ee_1.4/2.0-SNAPSHOT/ear,j2eeType=EJBModule,name=ejb.jar
> >    did not start.
> >      The service
> > J2EEApplication=org.apache.geronimo.testsupport/test-ear-
> > j2ee_1.4/2.0-SNAPSHOT/ear,j2eeType=EJBModule,name=ejb.jar
> >    did not start because the doStart method threw an exception.
> >
> >    org.apache.openejb.OpenEJBException: Error building bean
> >    'SimpleCMPEntity'.  Exception: class
> > java.lang.NullPointerException:
> >    null: null
> >
> >       at org.apache.openejb.assembler.classic.EjbJarBuilder.build
> > (EjbJarBuilder.java:61)
> >       at
> > org.apache.openejb.assembler.classic.Assembler.createApplication
> > (Assembler.java:379)
> >       at org.apache.openejb.assembler.classic.Assembler.createEjbJar
> > (Assembler.java:303)
> >       at org.apache.geronimo.openejb.OpenEjbSystemGBean.createEjbJar
> > (OpenEjbSystemGBean.java:184)
> >
> >
> > Full stack traces here -
> > http://rifers.org/paste/show/3524
> > http://rifers.org/paste/show/3525
> >
> > Problem # 2: Undeploy
> > -----------------------------------
> > The apps distribute but fail to start. Undeploying them leaves behind
> > ejb.jar and ejb-cmp2.jar which are locked by the running server. The
> > server has to be stopped, these files deleted and only then can the
> > app be re-installed again.
> >
> > Cheers
> > Prasad
> >
> >
> > On 2/8/07, Prasad Kashyap <goyathlay.geronimo@gmail.com> wrote:
> >> Dain was referring to this -
> >> http://www.nabble.com/Persistence-deployer-bugs--tf3189760.html
> >>
> >> Will wait on David Jencks to fix this soon :-)
> >>
> >> Cheers
> >> Prasad
> >>
> >> On 2/8/07, Dain Sundstrom <dain@iq80.com> wrote:
> >> > On Feb 8, 2007, at 6:17 PM, Prasad Kashyap wrote:
> >> >
> >> > > org.apache.geronimo.kernel.GBeanAlreadyExistsException: GBean
> >> already
> >> > > registered: geronimo:J2EEServer=geronimo,name=cmp,j2eeType=GBean
> >> >
> >> > This the PersistenceUnit naming problem I pointed out
> >> yesterday.  The
> >> > JPA deployer is not picking a very unique names and we quickly run
> >> > into conflicts.
> >> >
> >> > -dain
> >> >
> >>
> >
>
>

Mime
View raw message