ejb deployment error

2007-03-25 Thread Jarek Gawor

In trunk I'm seeing the following error when deploying a jar file with
annotated ejbs:

20:51:36,711 ERROR [Deployer] Deployment failed due to
org.apache.geronimo.common.DeploymentException: Ejb jar configuration
passed but expected module jaxws-ejb-2.0-SNAPSHOT.jar was not found in
configured module list [jaxws-ejb-2.0-SNAPSHOT]
   at 
org.apache.geronimo.openejb.deployment.EjbModuleBuilder$EarData.getEjbJar(EjbModuleBuilder.java:709)
   at 
org.apache.geronimo.openejb.deployment.EjbModuleBuilder.getEjbJarInfo(EjbModuleBuilder.java:502)
   at 
org.apache.geronimo.openejb.deployment.EjbModuleBuilder.initContext(EjbModuleBuilder.java:402)
   at 
org.apache.geronimo.openejb.deployment.EjbModuleBuilder$$FastClassByCGLIB$$cd80af20.invoke(generated)

To replicate run mvn -P child in
./testsuite/webservices-testsuite/jaxws-tests/jaxws-ejb

Jarek


Re: EJB deployment error

2007-01-22 Thread Prasad Kashyap

Jarek,

I had the same error.

Try something like the following in your openejb-jar.xml

openejb-jar xmlns=http://www.openejb.org/openejb-jar/1.1;
ejb-deployment ejb-name=Calculator
 deployment-id=samples/calculator/stateless/CalculatorLocal
 container-id=Default Stateless Container/
/openejb-jar

Cheers
Prasad


On 1/19/07, Prasad Kashyap [EMAIL PROTECTED] wrote:

http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-ejb/

Cheers
Prasad

On 1/19/07, Jarek Gawor [EMAIL PROTECTED] wrote:
 David,

 It's a test case in Geronimo source code. See
 testsuite/webservices-testsuite/jaxb-tests/jaxb-ejb directory.

 Jarek

 On 1/19/07, David Blevins [EMAIL PROTECTED] wrote:
  Jarek, if you can send me the app I can take a look.
 
  -David
 
  On Jan 19, 2007, at 9:48 AM, Jarek Gawor wrote:
 
   Dain,
  
   This is just a simple EJB that tires to use JAXB or StAX API. It is
   not exposed (or deployed) as a web service.
  
   Jarek
  
   On 1/19/07, Dain Sundstrom [EMAIL PROTECTED] wrote:
   Please take a look at the M2 Status - branch on Wednesday thread.
   It contains a list of what works and what doesn't.  The webservices
   integration doesn't work yet.
  
   -dain
  
   On Jan 19, 2007, at 9:34 AM, Jarek Gawor wrote:
  
I get the following error after the openejb update:
   
Deployer operation failed: org.apache.openejb.OpenEJBException:
Cannot Load jar
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\geronimo-deployer34093.tmpdir
\jaxb-ejb-2.0-SN
APSHOT.jar.  The number of beans deployed (0) does not match the
number of beans
actually in the jar (1).  Please redeploy this jar.
   
I see this error after updating the openejb-jar.xml
(http://www.openejb.org/openejb-jar/1.1) and ejb-jar.xml
(http://java.sun.com/xml/ns/javaee) descriptors with right
   namespaces.
   
I'm running the testsuite/webservices-testsuite/jaxb-tests/jaxb-ejb
tests.
   
The ejbs are very simple and do not use any annotations.
   
Jarek
  
  
  
 
 




Re: EJB deployment error

2007-01-22 Thread Jarek Gawor

Ok, that did it! Thanks a lot! The tests deployed now and ran ok but
with small issues:

1) The module got deployed with a default moduleId instead of the one
I specified in the openejb-jar.xml file.

2) It looks like the ejb client support is now in a separate module
(used to be in openejb-core) so a new dependency is required:

   dependency
   groupIdorg.apache.openejb/groupId
   artifactIdopenejb-client/artifactId
   /dependency

Jarek

On 1/22/07, Prasad Kashyap [EMAIL PROTECTED] wrote:

Jarek,

I had the same error.

Try something like the following in your openejb-jar.xml

openejb-jar xmlns=http://www.openejb.org/openejb-jar/1.1;
ejb-deployment ejb-name=Calculator
  deployment-id=samples/calculator/stateless/CalculatorLocal
  container-id=Default Stateless Container/
/openejb-jar

Cheers
Prasad


On 1/19/07, Prasad Kashyap [EMAIL PROTECTED] wrote:
 
http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-ejb/

 Cheers
 Prasad

 On 1/19/07, Jarek Gawor [EMAIL PROTECTED] wrote:
  David,
 
  It's a test case in Geronimo source code. See
  testsuite/webservices-testsuite/jaxb-tests/jaxb-ejb directory.
 
  Jarek
 
  On 1/19/07, David Blevins [EMAIL PROTECTED] wrote:
   Jarek, if you can send me the app I can take a look.
  
   -David
  
   On Jan 19, 2007, at 9:48 AM, Jarek Gawor wrote:
  
Dain,
   
This is just a simple EJB that tires to use JAXB or StAX API. It is
not exposed (or deployed) as a web service.
   
Jarek
   
On 1/19/07, Dain Sundstrom [EMAIL PROTECTED] wrote:
Please take a look at the M2 Status - branch on Wednesday thread.
It contains a list of what works and what doesn't.  The webservices
integration doesn't work yet.
   
-dain
   
On Jan 19, 2007, at 9:34 AM, Jarek Gawor wrote:
   
 I get the following error after the openejb update:

 Deployer operation failed: org.apache.openejb.OpenEJBException:
 Cannot Load jar
 C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\geronimo-deployer34093.tmpdir
 \jaxb-ejb-2.0-SN
 APSHOT.jar.  The number of beans deployed (0) does not match the
 number of beans
 actually in the jar (1).  Please redeploy this jar.

 I see this error after updating the openejb-jar.xml
 (http://www.openejb.org/openejb-jar/1.1) and ejb-jar.xml
 (http://java.sun.com/xml/ns/javaee) descriptors with right
namespaces.

 I'm running the testsuite/webservices-testsuite/jaxb-tests/jaxb-ejb
 tests.

 The ejbs are very simple and do not use any annotations.

 Jarek
   
   
   
  
  
 




Re: EJB deployment error

2007-01-22 Thread David Blevins


On Jan 22, 2007, at 8:56 AM, Prasad Kashyap wrote:


Jarek,

I had the same error.

Try something like the following in your openejb-jar.xml

openejb-jar xmlns=http://www.openejb.org/openejb-jar/1.1;
ejb-deployment ejb-name=Calculator
 deployment-id=samples/calculator/stateless/ 
CalculatorLocal

 container-id=Default Stateless Container/
/openejb-jar



Aha, ok, well I think I may know what the problem is there.  Let me  
see if I can't fix it.


-David


Cheers
Prasad


On 1/19/07, Prasad Kashyap [EMAIL PROTECTED] wrote:
http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/ 
webservices-testsuite/jaxb-tests/jaxb-ejb/


Cheers
Prasad

On 1/19/07, Jarek Gawor [EMAIL PROTECTED] wrote:
 David,

 It's a test case in Geronimo source code. See
 testsuite/webservices-testsuite/jaxb-tests/jaxb-ejb directory.

 Jarek

 On 1/19/07, David Blevins [EMAIL PROTECTED] wrote:
  Jarek, if you can send me the app I can take a look.
 
  -David
 
  On Jan 19, 2007, at 9:48 AM, Jarek Gawor wrote:
 
   Dain,
  
   This is just a simple EJB that tires to use JAXB or StAX  
API. It is

   not exposed (or deployed) as a web service.
  
   Jarek
  
   On 1/19/07, Dain Sundstrom [EMAIL PROTECTED] wrote:
   Please take a look at the M2 Status - branch on Wednesday  
thread.
   It contains a list of what works and what doesn't.  The  
webservices

   integration doesn't work yet.
  
   -dain
  
   On Jan 19, 2007, at 9:34 AM, Jarek Gawor wrote:
  
I get the following error after the openejb update:
   
Deployer operation failed:  
org.apache.openejb.OpenEJBException:

Cannot Load jar
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\geronimo- 
deployer34093.tmpdir

\jaxb-ejb-2.0-SN
APSHOT.jar.  The number of beans deployed (0) does not  
match the

number of beans
actually in the jar (1).  Please redeploy this jar.
   
I see this error after updating the openejb-jar.xml
(http://www.openejb.org/openejb-jar/1.1) and ejb-jar.xml
(http://java.sun.com/xml/ns/javaee) descriptors with right
   namespaces.
   
I'm running the testsuite/webservices-testsuite/jaxb- 
tests/jaxb-ejb

tests.
   
The ejbs are very simple and do not use any annotations.
   
Jarek
  
  
  
 
 








Re: EJB deployment error

2007-01-22 Thread David Blevins


On Jan 22, 2007, at 3:21 PM, David Blevins wrote:



On Jan 22, 2007, at 8:56 AM, Prasad Kashyap wrote:


Jarek,

I had the same error.

Try something like the following in your openejb-jar.xml

openejb-jar xmlns=http://www.openejb.org/openejb-jar/1.1;
ejb-deployment ejb-name=Calculator
 deployment-id=samples/calculator/stateless/ 
CalculatorLocal

 container-id=Default Stateless Container/
/openejb-jar



Aha, ok, well I think I may know what the problem is there.  Let me  
see if I can't fix it.


And thank you *very much* for digging into this and finding the  
missing part.  It is a big help.


-David



-David


Cheers
Prasad


On 1/19/07, Prasad Kashyap [EMAIL PROTECTED] wrote:
http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/ 
webservices-testsuite/jaxb-tests/jaxb-ejb/


Cheers
Prasad

On 1/19/07, Jarek Gawor [EMAIL PROTECTED] wrote:
 David,

 It's a test case in Geronimo source code. See
 testsuite/webservices-testsuite/jaxb-tests/jaxb-ejb directory.

 Jarek

 On 1/19/07, David Blevins [EMAIL PROTECTED] wrote:
  Jarek, if you can send me the app I can take a look.
 
  -David
 
  On Jan 19, 2007, at 9:48 AM, Jarek Gawor wrote:
 
   Dain,
  
   This is just a simple EJB that tires to use JAXB or StAX  
API. It is

   not exposed (or deployed) as a web service.
  
   Jarek
  
   On 1/19/07, Dain Sundstrom [EMAIL PROTECTED] wrote:
   Please take a look at the M2 Status - branch on  
Wednesday thread.
   It contains a list of what works and what doesn't.  The  
webservices

   integration doesn't work yet.
  
   -dain
  
   On Jan 19, 2007, at 9:34 AM, Jarek Gawor wrote:
  
I get the following error after the openejb update:
   
Deployer operation failed:  
org.apache.openejb.OpenEJBException:

Cannot Load jar
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\geronimo- 
deployer34093.tmpdir

\jaxb-ejb-2.0-SN
APSHOT.jar.  The number of beans deployed (0) does not  
match the

number of beans
actually in the jar (1).  Please redeploy this jar.
   
I see this error after updating the openejb-jar.xml
(http://www.openejb.org/openejb-jar/1.1) and ejb-jar.xml
(http://java.sun.com/xml/ns/javaee) descriptors with right
   namespaces.
   
I'm running the testsuite/webservices-testsuite/jaxb- 
tests/jaxb-ejb

tests.
   
The ejbs are very simple and do not use any annotations.
   
Jarek
  
  
  
 
 










EJB deployment error

2007-01-19 Thread Jarek Gawor

I get the following error after the openejb update:

Deployer operation failed: org.apache.openejb.OpenEJBException: Cannot Load jar
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\geronimo-deployer34093.tmpdir\jaxb-ejb-2.0-SN
APSHOT.jar.  The number of beans deployed (0) does not match the number of beans
actually in the jar (1).  Please redeploy this jar.

I see this error after updating the openejb-jar.xml
(http://www.openejb.org/openejb-jar/1.1) and ejb-jar.xml
(http://java.sun.com/xml/ns/javaee) descriptors with right namespaces.

I'm running the testsuite/webservices-testsuite/jaxb-tests/jaxb-ejb tests.

The ejbs are very simple and do not use any annotations.

Jarek


Re: EJB deployment error

2007-01-19 Thread Dain Sundstrom
Please take a look at the M2 Status - branch on Wednesday thread.   
It contains a list of what works and what doesn't.  The webservices  
integration doesn't work yet.


-dain

On Jan 19, 2007, at 9:34 AM, Jarek Gawor wrote:


I get the following error after the openejb update:

Deployer operation failed: org.apache.openejb.OpenEJBException:  
Cannot Load jar
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\geronimo-deployer34093.tmpdir 
\jaxb-ejb-2.0-SN
APSHOT.jar.  The number of beans deployed (0) does not match the  
number of beans

actually in the jar (1).  Please redeploy this jar.

I see this error after updating the openejb-jar.xml
(http://www.openejb.org/openejb-jar/1.1) and ejb-jar.xml
(http://java.sun.com/xml/ns/javaee) descriptors with right namespaces.

I'm running the testsuite/webservices-testsuite/jaxb-tests/jaxb-ejb  
tests.


The ejbs are very simple and do not use any annotations.

Jarek




Re: EJB deployment error

2007-01-19 Thread Jarek Gawor

Dain,

This is just a simple EJB that tires to use JAXB or StAX API. It is
not exposed (or deployed) as a web service.

Jarek

On 1/19/07, Dain Sundstrom [EMAIL PROTECTED] wrote:

Please take a look at the M2 Status - branch on Wednesday thread.
It contains a list of what works and what doesn't.  The webservices
integration doesn't work yet.

-dain

On Jan 19, 2007, at 9:34 AM, Jarek Gawor wrote:

 I get the following error after the openejb update:

 Deployer operation failed: org.apache.openejb.OpenEJBException:
 Cannot Load jar
 C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\geronimo-deployer34093.tmpdir
 \jaxb-ejb-2.0-SN
 APSHOT.jar.  The number of beans deployed (0) does not match the
 number of beans
 actually in the jar (1).  Please redeploy this jar.

 I see this error after updating the openejb-jar.xml
 (http://www.openejb.org/openejb-jar/1.1) and ejb-jar.xml
 (http://java.sun.com/xml/ns/javaee) descriptors with right namespaces.

 I'm running the testsuite/webservices-testsuite/jaxb-tests/jaxb-ejb
 tests.

 The ejbs are very simple and do not use any annotations.

 Jarek




Re: EJB deployment error

2007-01-19 Thread David Blevins

Jarek, if you can send me the app I can take a look.

-David

On Jan 19, 2007, at 9:48 AM, Jarek Gawor wrote:


Dain,

This is just a simple EJB that tires to use JAXB or StAX API. It is
not exposed (or deployed) as a web service.

Jarek

On 1/19/07, Dain Sundstrom [EMAIL PROTECTED] wrote:

Please take a look at the M2 Status - branch on Wednesday thread.
It contains a list of what works and what doesn't.  The webservices
integration doesn't work yet.

-dain

On Jan 19, 2007, at 9:34 AM, Jarek Gawor wrote:

 I get the following error after the openejb update:

 Deployer operation failed: org.apache.openejb.OpenEJBException:
 Cannot Load jar
 C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\geronimo-deployer34093.tmpdir
 \jaxb-ejb-2.0-SN
 APSHOT.jar.  The number of beans deployed (0) does not match the
 number of beans
 actually in the jar (1).  Please redeploy this jar.

 I see this error after updating the openejb-jar.xml
 (http://www.openejb.org/openejb-jar/1.1) and ejb-jar.xml
 (http://java.sun.com/xml/ns/javaee) descriptors with right  
namespaces.


 I'm running the testsuite/webservices-testsuite/jaxb-tests/jaxb-ejb
 tests.

 The ejbs are very simple and do not use any annotations.

 Jarek








Re: EJB deployment error

2007-01-19 Thread Jarek Gawor

David,

It's a test case in Geronimo source code. See
testsuite/webservices-testsuite/jaxb-tests/jaxb-ejb directory.

Jarek

On 1/19/07, David Blevins [EMAIL PROTECTED] wrote:

Jarek, if you can send me the app I can take a look.

-David

On Jan 19, 2007, at 9:48 AM, Jarek Gawor wrote:

 Dain,

 This is just a simple EJB that tires to use JAXB or StAX API. It is
 not exposed (or deployed) as a web service.

 Jarek

 On 1/19/07, Dain Sundstrom [EMAIL PROTECTED] wrote:
 Please take a look at the M2 Status - branch on Wednesday thread.
 It contains a list of what works and what doesn't.  The webservices
 integration doesn't work yet.

 -dain

 On Jan 19, 2007, at 9:34 AM, Jarek Gawor wrote:

  I get the following error after the openejb update:
 
  Deployer operation failed: org.apache.openejb.OpenEJBException:
  Cannot Load jar
  C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\geronimo-deployer34093.tmpdir
  \jaxb-ejb-2.0-SN
  APSHOT.jar.  The number of beans deployed (0) does not match the
  number of beans
  actually in the jar (1).  Please redeploy this jar.
 
  I see this error after updating the openejb-jar.xml
  (http://www.openejb.org/openejb-jar/1.1) and ejb-jar.xml
  (http://java.sun.com/xml/ns/javaee) descriptors with right
 namespaces.
 
  I'm running the testsuite/webservices-testsuite/jaxb-tests/jaxb-ejb
  tests.
 
  The ejbs are very simple and do not use any annotations.
 
  Jarek







Re: EJB deployment error

2007-01-19 Thread Prasad Kashyap

http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-ejb/

Cheers
Prasad

On 1/19/07, Jarek Gawor [EMAIL PROTECTED] wrote:

David,

It's a test case in Geronimo source code. See
testsuite/webservices-testsuite/jaxb-tests/jaxb-ejb directory.

Jarek

On 1/19/07, David Blevins [EMAIL PROTECTED] wrote:
 Jarek, if you can send me the app I can take a look.

 -David

 On Jan 19, 2007, at 9:48 AM, Jarek Gawor wrote:

  Dain,
 
  This is just a simple EJB that tires to use JAXB or StAX API. It is
  not exposed (or deployed) as a web service.
 
  Jarek
 
  On 1/19/07, Dain Sundstrom [EMAIL PROTECTED] wrote:
  Please take a look at the M2 Status - branch on Wednesday thread.
  It contains a list of what works and what doesn't.  The webservices
  integration doesn't work yet.
 
  -dain
 
  On Jan 19, 2007, at 9:34 AM, Jarek Gawor wrote:
 
   I get the following error after the openejb update:
  
   Deployer operation failed: org.apache.openejb.OpenEJBException:
   Cannot Load jar
   C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\geronimo-deployer34093.tmpdir
   \jaxb-ejb-2.0-SN
   APSHOT.jar.  The number of beans deployed (0) does not match the
   number of beans
   actually in the jar (1).  Please redeploy this jar.
  
   I see this error after updating the openejb-jar.xml
   (http://www.openejb.org/openejb-jar/1.1) and ejb-jar.xml
   (http://java.sun.com/xml/ns/javaee) descriptors with right
  namespaces.
  
   I'm running the testsuite/webservices-testsuite/jaxb-tests/jaxb-ejb
   tests.
  
   The ejbs are very simple and do not use any annotations.
  
   Jarek