Re: Trying to set up a MDB

2009-10-31 Thread Antonio Fornié

Hello!

My ear structure:
root/car_web.war
root/car_ejb.jar
root/geronimo-activemq-ra-2.1.4.rar
root/META-INF/MANIFEST.MF
root/META-INF/application.xml
root/META-INF/jms-resources.xml

My application.xml is this:


http://www.w3.org/2001/XMLSchema-instance";
xmlns="http://java.sun.com/xml/ns/javaee";
xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd";
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/application_5.xsd"; id="Application_ID"
version="5">
  My MDB APP
  car_ear
  

  car_web.war
  car_web

  
  
car_ejb.jar
  
  
geronimo-activemq-ra-2.1.4.rar
  



My ejb-jar.xml is this:


http://java.sun.com/xml/ns/javaee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd";>
car_ejb 



My open-ejb-jar.xml is this:

http://openejb.apache.org/xml/ns/openejb-jar-2.2";>


OrderRecvMDB

jms-resources






My jms-resources is this:

http://geronimo.apache.org/xml/ns/j2ee/connector-1.2";>



jms-resources
http://geronimo.apache.org/xml/ns/naming-1.2";>

DefaultWorkManager





javax.jms.ConnectionFactory

CommonConnectionFactory

javax.jms.QueueConnectionFactory

javax.jms.TopicConnectionFactory













javax.jms.Queue

org.apache.activemq.command.ActiveMQQueue


OrderQueue
OrderQueue


 


After including the rar in the ear like you told I got this error message:

Deployment failed:
A connector module must be deployed using a Geronimo deployment plan (either
META-INF/geronimo-ra.xml in the RAR file or a standalone deployment plan
passed to the deployer). 


Any help?? Thank you very much!!
-- 
View this message in context: 
http://old.nabble.com/Trying-to-set-up-a-MDB-tp26137988s134p26146663.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Trying to set up a MDB

2009-10-31 Thread David Jencks

What is the structure of your ear file and what is your application.xml?

I'd guess that your application.xml lists geronimo-activemq-ra. 
2.1.4.rar as a module but you have not included it in your ear.


thanks
david jencks

On Oct 31, 2009, at 3:19 AM, Antonio Fornié wrote:



Thank you very much!

I'm having this error now:
Invalid moduleFile: geronimo-activemq-ra-2.1.4.rar
org.apache.geronimo.common.DeploymentException: Invalid moduleFile:
geronimo-activemq-ra-2.1.4.rar
at
org 
.apache 
.geronimo 
.j2ee.deployment.EARConfigBuilder.addModules(EARConfigBuilder.java: 
783)

at
org 
.apache 
.geronimo 
.j2ee.deployment.EARConfigBuilder.getEarPlan(EARConfigBuilder.java: 
402)

at
org 
.apache 
.geronimo 
.j2ee 
.deployment.EARConfigBuilder.getDeploymentPlan(EARConfigBuilder.java: 
295)

at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:227)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:134)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun 
.reflect 
.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at
sun 
.reflect 
.DelegatingMethodAccessorImpl 
.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)
at
org 
.apache 
.geronimo 
.gbean 
.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java: 
34)

at
org 
.apache 
.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)

at
org 
.apache 
.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867)

at
org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java: 
239)

at
org 
.apache 
.geronimo 
.deployment 
.plugin 
.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116)

at
org 
.apache 
.geronimo 
.deployment 
.plugin.local.DistributeCommand.run(DistributeCommand.java:61)

at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.IOException: Jar entry does not exist:
jarFile=C:\SERVIDORES\geronimo-tomcat6-javaee5-2.1.4\var\temp 
\geronimo-deployer142431723576948754.tmpdir\car_ear.ear,

path=geronimo-activemq-ra-2.1.4.rar
at
org 
.apache 
.geronimo.deployment.util.NestedJarFile.(NestedJarFile.java:51)

at
org 
.apache 
.geronimo 
.j2ee.deployment.EARConfigBuilder.addModules(EARConfigBuilder.java: 
781)

... 15 more


What should I do to make geronimo find it?
--
View this message in context: 
http://old.nabble.com/Trying-to-set-up-a-MDB-tp26137988s134p26141178.html
Sent from the Apache Geronimo - Users mailing list archive at  
Nabble.com.






Re: Trying to set up a MDB

2009-10-31 Thread Antonio Fornié

Thank you very much!

I'm having this error now:
Invalid moduleFile: geronimo-activemq-ra-2.1.4.rar
org.apache.geronimo.common.DeploymentException: Invalid moduleFile:
geronimo-activemq-ra-2.1.4.rar
at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.addModules(EARConfigBuilder.java:783)
at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getEarPlan(EARConfigBuilder.java:402)
at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan(EARConfigBuilder.java:295)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:227)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:134)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867)
at
org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
at
org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116)
at
org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:61)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.IOException: Jar entry does not exist:
jarFile=C:\SERVIDORES\geronimo-tomcat6-javaee5-2.1.4\var\temp\geronimo-deployer142431723576948754.tmpdir\car_ear.ear,
path=geronimo-activemq-ra-2.1.4.rar
at
org.apache.geronimo.deployment.util.NestedJarFile.(NestedJarFile.java:51)
at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.addModules(EARConfigBuilder.java:781)
... 15 more


What should I do to make geronimo find it?
-- 
View this message in context: 
http://old.nabble.com/Trying-to-set-up-a-MDB-tp26137988s134p26141178.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.