<html><div style='background-color:'><DIV class=RTE>
<P>The problem is not the my-jms-resource-plan.xml. I undeployed the system--jms-plan.xml
and i redeployed with another topic, and so an i use the ques of the system-jms-plan.xml.
The problem has to be in another part, because i have deployed already jms applications, but
not all packed on a ear with a client.jar, a session bean and a message driven bean. any other
guess?</P>
<P>Thanks a lot!<BR><BR></P></DIV>
<DIV></DIV>>From: sissonj@insession.com
<DIV></DIV>>Reply-To: user@geronimo.apache.org
<DIV></DIV>>To: user@geronimo.apache.org
<DIV></DIV>>Subject: Re: JMS application problem when deploying into Geronimo
<DIV></DIV>>Date: Sun, 1 May 2005 15:32:58 +1100
<DIV></DIV>>
<DIV></DIV>>When deploying your JMS resource adapter, try specifying
<DIV></DIV>>parentId="org/apache/geronimo/ActiveMQServer" in your JMS resources
plan.
<DIV></DIV>>
<DIV></DIV>>Let us know whether this fixes your problem.
<DIV></DIV>>
<DIV></DIV>>Regards,
<DIV></DIV>>
<DIV></DIV>>John
<DIV></DIV>>
<DIV></DIV>>Here is an example JMS resources plan that can be deployed
with a command
<DIV></DIV>>like the following (note that you may need to adjust the name
of the rar
<DIV></DIV>>file in the example to suit what you have):
<DIV></DIV>>
<DIV></DIV>>java -jar bin/deployer.jar --user system --password manager
deploy
<DIV></DIV>>repository/activemq/rars/activemq-ra-1.3-SNAPSHOT.rar
<DIV></DIV>>my-jms-resource-plan.xml
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>><?xml version="1.0" encoding="UTF-8"?>
<DIV></DIV>>
<DIV></DIV>><connector
<DIV></DIV>> xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector"
<DIV></DIV>> version="1.5"
<DIV></DIV>> configId="com/myCompany/MyJMSResources"
<DIV></DIV>> parentId="org/apache/geronimo/ActiveMQServer">
<DIV></DIV>>
<DIV></DIV>> <resourceadapter>
<DIV></DIV>> <!-- how to
connect to the JMS Server -->
<DIV></DIV>> <resourceadapter-instance>
<DIV></DIV>>
<resourceadapter-name>MyJMSRA</resourceadapter-name>
<DIV></DIV>>
<config-property-setting
<DIV></DIV>>name="ServerUrl">tcp://localhost:61616</config-property-setting>
<DIV></DIV>>
<workmanager>
<DIV></DIV>>
<gbean-link>DefaultWorkManager</gbean-link>
<DIV></DIV>>
</workmanager>
<DIV></DIV>> </resourceadapter-instance>
<DIV></DIV>>
<DIV></DIV>> <!-- defines
a ConnectionFactory -->
<DIV></DIV>> <outbound-resourceadapter>
<DIV></DIV>>
<connection-definition>
<DIV></DIV>>
<DIV></DIV>><connectionfactory-interface>javax.jms.ConnectionFactory</connectionfactory-interface>
<DIV></DIV>>
<connectiondefinition-instance>
<DIV></DIV>>
<name>jms/wpConnectionFactory</name>
<DIV></DIV>>
<DIV></DIV>><implemented-interface>javax.jms.QueueConnectionFactory</implemented-interface>
<DIV></DIV>>
<DIV></DIV>><implemented-interface>javax.jms.TopicConnectionFactory</implemented-interface>
<DIV></DIV>>
<connectionmanager>
<DIV></DIV>>
<xa-transaction>
<DIV></DIV>>
<transaction-caching/>
<DIV></DIV>>
</xa-transaction>
<DIV></DIV>>
<single-pool>
<DIV></DIV>>
<max-size>10</max-size>
<DIV></DIV>>
<min-size>0</min-size>
<DIV></DIV>> <blocking-timeout-milliseconds>5000</blocking-timeout-milliseconds>
<DIV></DIV>>
<idle-timeout-minutes>0</idle-timeout-minutes>
<DIV></DIV>>
<match-one/>
<DIV></DIV>>
</single-pool>
<DIV></DIV>>
</connectionmanager>
<DIV></DIV>>
<global-jndi-name>jms/wpConnectionFactory</global-jndi-name>
<DIV></DIV>>
</connectiondefinition-instance>
<DIV></DIV>>
</connection-definition>
<DIV></DIV>> </outbound-resourceadapter>
<DIV></DIV>>
<DIV></DIV>> </resourceadapter>
<DIV></DIV>>
<DIV></DIV>> <adminobject>
<DIV></DIV>>
<adminobject-interface>javax.jms.Queue</adminobject-interface>
<DIV></DIV>>
<DIV></DIV>><adminobject-class>org.codehaus.activemq.message.ActiveMQQueue</adminobject-class>
<DIV></DIV>>
<adminobject-instance>
<DIV></DIV>> <message-destination-name>jms/myFirstQueue</message-destination-name>
<DIV></DIV>>
<config-property-setting
<DIV></DIV>>name="PhysicalName">myFirstQueue</config-property-setting>
<DIV></DIV>>
</adminobject-instance>
<DIV></DIV>> </adminobject>
<DIV></DIV>>
<DIV></DIV>> <adminobject>
<DIV></DIV>>
<adminobject-interface>javax.jms.Queue</adminobject-interface>
<DIV></DIV>>
<DIV></DIV>><adminobject-class>org.codehaus.activemq.message.ActiveMQQueue</adminobject-class>
<DIV></DIV>>
<adminobject-instance>
<DIV></DIV>> <message-destination-name>jms/my2ndQueue</message-destination-name>
<DIV></DIV>>
<config-property-setting
<DIV></DIV>>name="PhysicalName">my2ndQueue</config-property-setting>
<DIV></DIV>>
</adminobject-instance>
<DIV></DIV>> </adminobject>
<DIV></DIV>>
<DIV></DIV>></connector>
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>This e-mail message and any attachments may contain confidential,
<DIV></DIV>>proprietary or non-public information. This
information is intended
<DIV></DIV>>solely for the designated recipient(s). If
an addressing or transmission
<DIV></DIV>>error has misdirected this e-mail, please notify the sender
immediately
<DIV></DIV>>and destroy this e-mail. Any review, dissemination,
use or reliance upon
<DIV></DIV>>this information by unintended recipients is prohibited. Any
opinions
<DIV></DIV>>expressed in this e-mail are those of the author personally.
<DIV></DIV>>
<DIV></DIV>>"Katia Aresti Gonzalez" <kaaresti@hotmail.com>
wrote on 01/05/2005
<DIV></DIV>>11:26:34 AM:
<DIV></DIV>>
<DIV></DIV>> > Hi!
<DIV></DIV>> > Im trying to deploy the sample sun application about
JMS a Session
<DIV></DIV>> > Bean and a Client into Geronimo.
<DIV></DIV>> >
<DIV></DIV>> > Im just getting this error after deploying.
<DIV></DIV>> >
<DIV></DIV>> > Can somebody help with this? thank you!!!
<DIV></DIV>> >
<DIV></DIV>> > 03:14:06,625 INFO [LocalConfigStore:config-store]
Installed
<DIV></DIV>> > configuration Clien
<DIV></DIV>> > tSessionMDBApp/cliente in location 52
<DIV></DIV>> > 03:14:06,750 INFO [LocalConfigStore:config-store]
Installed
<DIV></DIV>> > configuration Clien
<DIV></DIV>> > tSessionMDBApp in location 51
<DIV></DIV>> > 03:14:06,843 INFO [ConfigurationManagerImpl]
Loaded Configuration
<DIV></DIV>> > geronimo.conf
<DIV></DIV>> > ig:name="ClientSessionMDBApp"
<DIV></DIV>> > 03:14:06,906 INFO [Configuration]
Started configuration
<DIV></DIV>>ClientSessionMDBApp
<DIV></DIV>> > 03:14:06,937 INFO [GenericEJBContainer]
GenericEJBContainer
<DIV></DIV>> > 'geronimo.server:EJ
<DIV></DIV>> > BModule=ejbs.jar,J2EEApplication=ClientSessionMDBApp,
<DIV></DIV>> > J2EEServer=geronimo,j2eeTyp
<DIV></DIV>> > e=StatelessSessionBean,name=PublisherBean' started
<DIV></DIV>> > 03:14:06,953 ERROR [GBeanInstanceState] Error while
starting; GBean
<DIV></DIV>> > is now in th
<DIV></DIV>> > e FAILED state: objectName="geronimo.server:EJBModule=ejbs.jar,
<DIV></DIV>> > J2EEApplication=C
<DIV></DIV>> > lientSessionMDBApp,J2EEServer=geronimo,j2eeType=JCAActivationSpec,
<DIV></DIV>> > name=MessageBe
<DIV></DIV>> > an"
<DIV></DIV>> > java.lang.ClassNotFoundException: org.activemq.ra.ActiveMQActivationSpec
<DIV></DIV>> >
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
<DIV></DIV>> >
at java.security.AccessController.doPrivileged(Native Method)
<DIV></DIV>> >
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
<DIV></DIV>> >
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
<DIV></DIV>> >
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
<DIV></DIV>> >
at org.apache.geronimo.connector.ActivationSpecWrapper.
<DIV></DIV>> > <init>(Activation
<DIV></DIV>> > SpecWrapper.java:72)
<DIV></DIV>> >
at sun.reflect.NativeConstructorAccessorImpl.
<DIV></DIV>> > newInstance0(Native Method)
<DIV></DIV>> >
at sun.reflect.NativeConstructorAccessorImpl.
<DIV></DIV>> > newInstance(NativeConstruct
<DIV></DIV>> > orAccessorImpl.java:39)
<DIV></DIV>> >
at sun.reflect.DelegatingConstructorAccessorImpl.
<DIV></DIV>> > newInstance(DelegatingC
<DIV></DIV>> > onstructorAccessorImpl.java:27)
<DIV></DIV>> >
at
<DIV></DIV>>java.lang.reflect.Constructor.newInstance(Constructor.java:274)
<DIV></DIV>> >
at org.apache.geronimo.gbean.runtime.GBeanInstance.
<DIV></DIV>> > createInstance(GBeanI
<DIV></DIV>> > nstance.java:806)
<DIV></DIV>> >
at org.apache.geronimo.gbean.runtime.GBeanInstanceState.
<DIV></DIV>> > attemptFullStart
<DIV></DIV>> > (GBeanInstanceState.java:331)
<DIV></DIV>> >
at org.apache.geronimo.gbean.runtime.GBeanInstanceState.
<DIV></DIV>> > start(GBeanInsta
<DIV></DIV>> > nceState.java:111)
<DIV></DIV>> >
at org.apache.geronimo.gbean.runtime.GBeanInstanceState.
<DIV></DIV>> > startRecursive(G
<DIV></DIV>> > BeanInstanceState.java:133)
<DIV></DIV>> >
at org.apache.geronimo.gbean.runtime.GBeanInstance.
<DIV></DIV>> > startRecursive(GBeanI
<DIV></DIV>> > nstance.java:494)
<DIV></DIV>> >
at org.apache.geronimo.kernel.Kernel.
<DIV></DIV>> > startRecursiveGBean(Kernel.java:339
<DIV></DIV>> > )
<DIV></DIV>> >
at org.apache.geronimo.gbean.runtime.GBeanInstanceState.
<DIV></DIV>> > startRecursive(G
<DIV></DIV>> > BeanInstanceState.java:141)
<DIV></DIV>> >
at org.apache.geronimo.gbean.runtime.GBeanInstance.
<DIV></DIV>> > startRecursive(GBeanI
<DIV></DIV>> > nstance.java:494)
<DIV></DIV>> >
at org.apache.geronimo.kernel.Kernel.
<DIV></DIV>> > startRecursiveGBean(Kernel.java:339
<DIV></DIV>> > )
<DIV></DIV>> >
at org.apache.geronimo.kernel.Kernel.
<DIV></DIV>> > startConfiguration(Kernel.java:386)
<DIV></DIV>> >
at org.apache.geronimo.kernel.KernelGBean.
<DIV></DIV>> > startConfiguration(KernelGBean
<DIV></DIV>> > .java:89)
<DIV></DIV>> >
at org.apache.geronimo.kernel.
<DIV></DIV>> > KernelGBean$$FastClassByCGLIB$$1cccefc9.in
<DIV></DIV>> > voke(<generated>)
<DIV></DIV>> >
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
<DIV></DIV>> >
at org.apache.geronimo.gbean.runtime.FastMethodInvoker.
<DIV></DIV>> > invoke(FastMethod
<DIV></DIV>> > Invoker.java:38)
<DIV></DIV>> >
at org.apache.geronimo.gbean.runtime.GBeanOperation.
<DIV></DIV>> > invoke(GBeanOperatio
<DIV></DIV>> > n.java:118)
<DIV></DIV>> >
at org.apache.geronimo.gbean.runtime.GBeanInstance.
<DIV></DIV>> > invoke(GBeanInstance.
<DIV></DIV>> > java:745)
<DIV></DIV>> >
at org.apache.geronimo.kernel.Kernel.invoke(Kernel.java:299)
<DIV></DIV>> >
at org.apache.geronimo.kernel.jmx.MBeanServerDelegate.
<DIV></DIV>> > invoke(MBeanServer
<DIV></DIV>> > Delegate.java:117)
<DIV></DIV>> >
at mx4j.remote.rmi.RMIConnectionInvoker.
<DIV></DIV>> > invoke(RMIConnectionInvoker.java
<DIV></DIV>> > :219)
<DIV></DIV>> >
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
<DIV></DIV>> >
at sun.reflect.NativeMethodAccessorImpl.
<DIV></DIV>> > invoke(NativeMethodAccessorImpl.
<DIV></DIV>> > java:39)
<DIV></DIV>> >
at sun.reflect.DelegatingMethodAccessorImpl.
<DIV></DIV>> > invoke(DelegatingMethodAcces
<DIV></DIV>> > sorImpl.java:25)
<DIV></DIV>> >
at java.lang.reflect.Method.invoke(Method.java:324)
<DIV></DIV>> >
at mx4j.remote.rmi.RMIConnectionProxy.
<DIV></DIV>> > invoke(RMIConnectionProxy.java:34)
<DIV></DIV>> >
at mx4j.remote.rmi.RMIConnectionSubjectInvoker.
<DIV></DIV>> > chain(RMIConnectionSubjec
<DIV></DIV>> > tInvoker.java:99)
<DIV></DIV>> >
at mx4j.remote.rmi.RMIConnectionSubjectInvoker.
<DIV></DIV>> > access$000(RMIConnectionS
<DIV></DIV>> > ubjectInvoker.java:31)
<DIV></DIV>> >
at mx4j.remote.rmi.RMIConnectionSubjectInvoker$1.
<DIV></DIV>> > run(RMIConnectionSubjec
<DIV></DIV>> > tInvoker.java:90)
<DIV></DIV>> >
at java.security.AccessController.doPrivileged(Native Method)
<DIV></DIV>> >
at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
<DIV></DIV>> >
at
<DIV></DIV>>mx4j.remote.MX4JRemoteUtils.subjectInvoke(MX4JRemoteUtils.java:163)
<DIV></DIV>> >
at mx4j.remote.rmi.RMIConnectionSubjectInvoker.
<DIV></DIV>> > subjectInvoke(RMIConnecti
<DIV></DIV>> > onSubjectInvoker.java:86)
<DIV></DIV>> >
at mx4j.remote.rmi.RMIConnectionSubjectInvoker.
<DIV></DIV>> > invoke(RMIConnectionSubje
<DIV></DIV>> > ctInvoker.java:80)
<DIV></DIV>> >
at $Proxy0.invoke(Unknown Source)
<DIV></DIV>> >
at javax.management.remote.rmi.RMIConnectionImpl.
<DIV></DIV>> > invoke(RMIConnectionImp
<DIV></DIV>> > l.java:221)
<DIV></DIV>> >
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
<DIV></DIV>> >
at sun.reflect.NativeMethodAccessorImpl.
<DIV></DIV>> > invoke(NativeMethodAccessorImpl.
<DIV></DIV>> > java:39)
<DIV></DIV>> >
at sun.reflect.DelegatingMethodAccessorImpl.
<DIV></DIV>> > invoke(DelegatingMethodAcces
<DIV></DIV>> > sorImpl.java:25)
<DIV></DIV>> >
at java.lang.reflect.Method.invoke(Method.java:324)
<DIV></DIV>> >
at
<DIV></DIV>>sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
<DIV></DIV>> >
at sun.rmi.transport.Transport$1.run(Transport.java:148)
<DIV></DIV>> >
at java.security.AccessController.doPrivileged(Native Method)
<DIV></DIV>> >
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
<DIV></DIV>> >
at sun.rmi.transport.tcp.TCPTransport.
<DIV></DIV>> > handleMessages(TCPTransport.java:4
<DIV></DIV>> > 60)
<DIV></DIV>> >
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.
<DIV></DIV>> > run(TCPTransport
<DIV></DIV>> > .java:701)
<DIV></DIV>> >
at java.lang.Thread.run(Thread.java:534)
<DIV></DIV>> >
<DIV></DIV>> > Acepta el reto MSN Premium: incluye Antivirus y Firewall
de McAffee.
<DIV></DIV>> > Descárgalo y pruébalo 2 meses gratis.
<DIV></DIV></div><br clear=all><hr>Descubre la descarga digital
segura. <a href="http://g.msn.com/8HMAESES/2755??PS=47575" target="_top">Medio millón
de canciones en MSN Music. </a> </html>
|