Please do not use the M3 version of geronimo. It really doesn't
exactly work.
thanks
david jencks
On Jul 29, 2005, at 7:13 PM, Sami Dalouche wrote:
Oh, BTW, I also tried with the 1.0M3 version of geronimo :
when I try to deploy my topics configuration, I get the following
exception :
Deployment failed
Server reports: Could not set ResourceAdapterClass
org.apache.geronimo.deployment.DeploymentException: Could not set
ResourceAdapterClass
at
org.apache.geronimo.connector.deployment.ConnectorModuleBuilder.initCon
text(ConnectorModuleBuilder.java:281)
at
org.apache.geronimo.connector.deployment.ConnectorModuleBuilder$$FastCl
assByCGLIB$$a535b6aa.invoke(<generated>)
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:87)
at
org.apache.geronimo.gbean.jmx.FastMethodInvoker.invoke(FastMethodInvoke
r.java:38)
at
org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOper
ation.java:142)
at
org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:823)
at org.apache.geronimo.gbean.jmx.RawInvoker.invoke(RawInvoker.java:89)
at
org.apache.geronimo.gbean.jmx.RawOperationInvoker.invoke(RawOperationIn
voker.java:34)
at
org.apache.geronimo.gbean.jmx.CGLibMethodInterceptor.intercept(CGLibMet
hodInterceptor.java:112)
at
org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$9e4
5a280.initContext(<generated>)
at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration
(EARConfigBuilder.java:323)
at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$
$38e56ec6.invoke(<generated>)
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:87)
at
org.apache.geronimo.gbean.jmx.FastMethodInvoker.invoke(FastMethodInvoke
r.java:38)
at
org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOper
ation.java:142)
at
org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:823)
at org.apache.geronimo.gbean.jmx.RawInvoker.invoke(RawInvoker.java:89)
at
org.apache.geronimo.gbean.jmx.RawOperationInvoker.invoke(RawOperationIn
voker.java:34)
at
org.apache.geronimo.gbean.jmx.CGLibMethodInterceptor.intercept(CGLibMet
hodInterceptor.java:112)
at
org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$7
a1ca0ae.buildConfiguration(<generated>)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:174)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:60)
at
org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.inv
oke(<generated>)
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:87)
at
org.apache.geronimo.gbean.jmx.FastMethodInvoker.invoke(FastMethodInvoke
r.java:38)
at
org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOper
ation.java:142)
at
org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:844)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown Source)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown
Source)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
at org.apache.geronimo.kernel.Kernel.invoke(Kernel.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown Source)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown
Source)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(Unknown
Source)
at javax.management.remote.rmi.RMIConnectionImpl.access$100(Unknown
Source)
at
javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(U
nknown
Source)
at java.security.AccessController.doPrivileged(Native Method)
at
javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(Unk
nown
Source)
at javax.management.remote.rmi.RMIConnectionImpl.invoke(Unknown
Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
at sun.rmi.transport.Transport$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown
Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.geronimo.gbean.InvalidConfigurationException:
Could not
load class org.apache.geronimo.connector.ActivationSpecWrapper
at org.apache.geronimo.gbean.GBeanInfo.getGBeanInfo(GBeanInfo.java:51)
at
org.apache.geronimo.gbean.GBeanInfoBuilder.<init>(GBeanInfoBuilder.java
:75)
at
org.apache.geronimo.connector.deployment.ConnectorModuleBuilder.getActi
vationSpecInfoMap(ConnectorModuleBuilder.java:543)
at
org.apache.geronimo.connector.deployment.ConnectorModuleBuilder.initCon
text(ConnectorModuleBuilder.java:274)
... 56 more
Caused by: java.lang.ClassNotFoundException:
org.apache.geronimo.connector.ActivationSpecWrapper
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.apache.geronimo.gbean.GBeanInfo.getGBeanInfo(GBeanInfo.java:49)
... 59 more
Selon Sami Dalouche <skoobi-GANU6spQydw@xxxxxxxxxxxxxxxx>:
Hi,
I'm currently trying to
1) Create some JMS Topics
2) Expose a ConnectionFactory + the Topics through JNDI
->
I'm using the following RA
<connector
xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector"
version="1.5"
configId="weather/jms/TopicsConfiguration"
parentId="org/apache/geronimo/System">
<resourceadapter>
<!-- how to connect to the JMS Server -->
<resourceadapter-instance>
<resourceadapter-name>My JMS Resources</resourceadapter-name>
<config-property-setting
name="ServerUrl">tcp://localhost:61616</config-property-setting>
<config-property-setting
name="UserName">system</config-property-setting>
<config-property-setting
name="Password">manager</config-property-setting>
<workmanager-name>DefaultWorkManager</workmanager-name>
</resourceadapter-instance>
<!-- defines a ConnectionFactory -->
<outbound-resourceadapter>
<connection-definition>
<connectionfactory-interface>javax.jms.ConnectionFactory</
connectionfactory-interface>
<connectiondefinition-instance>
<name>ConnectionFactory</name>
<implemented-interface>javax.jms.QueueConnectionFactory</implemented-
interface>
<implemented-interface>javax.jms.TopicConnectionFactory</implemented-
interface>
<connectionmanager>
<xa-transaction>
<transaction-caching />
</xa-transaction>
<single-pool>
<max-size>10</max-size>
<min-size>0</min-size>
<blocking-timeout-milliseconds>
5000
</blocking-timeout-milliseconds>
<idle-timeout-minutes>
0
</idle-timeout-minutes>
<match-one/>
</single-pool>
</connectionmanager>
<global-jndi-name>
jms/ConnectionFactory
</global-jndi-name>
</connectiondefinition-instance>
</connection-definition>
</outbound-resourceadapter>
</resourceadapter>
<!-- defines a Topic -->
<adminobject>
<adminobject-interface>
javax.jms.Topic
</adminobject-interface>
<adminobject-class>
org.codehaus.activemq.message.ActiveMQTopic
</adminobject-class>
<adminobject-instance>
<message-destination-name>jms/weatherTopic</message-destination-name>
<config-property-setting
name="PhysicalName">jms/weatherTopic</config-property-setting>
</adminobject-instance>
</adminobject>
<adminobject>
<adminobject-interface>
javax.jms.Topic
</adminobject-interface>
<adminobject-class>org.codehaus.activemq.message.ActiveMQTopic</
adminobject-class>
<adminobject-instance>
<message-destination-name>jms/weatherRequestsTopic</message-
destination-name>
<config-property-setting
name="PhysicalName">jms/weatherRequestsTopic</config-property-setting>
</adminobject-instance>
</adminobject>
</connector>
and deploy it using :
D:\geronimo>java -jar bin\deployer.jar deploy
d:\projects\weather\src\resources\
geronimo-activemq.xml
repository\activemq\rars\activemq-ra-3.1-SNAPSHOT.rar
Username: system
Password: manager
Nothing appears in the Geronimo logs. I tried to brows Geronimo's JMX
with
MC4J,
and the only thing I could find was a DefaultActiveMQConnectionFactory
My factory + topics don't seem to appear through JMX.
I also wrote a client :
I'm using Spring to get a reference to the Factory and get
javax.naming.NameNotFoundException: /jms/weatherRequestsTopic not
found
at org.openejb.client.JNDIContext.lookup(JNDIContext.java:257)
at javax.naming.InitialContext.lookup(Unknown Source)
at
org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:
123)
so, it looks like my topic is not exposed through JNDI ? Or even not
created
?
I'm using the latest geronimo snapshot, and use the openejb 2.0
snapshot for
my
client library (only this jar). Do I need something else ?
Thank you very much for your help,
Sami Dalouche
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
Thanks,
Sami Dalouche
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
|