[JBoss Messaging Users] - Exception DynamicAOPStrateg
by sacauskis
I get the following exception when I try to run a simple JMS client example. I've googled various phrases in attempt to find required jar files to no avail. I currently have the following in my environment:
F:\jboss-messaging-1.4.5.GA\jboss-messaging.jar
F:\jboss-4.2.3.GA\client\jboss-j2ee.jar
F:\jboss-4.2.3.GA\client\jbossall-client.jar
F:\jboss-4.2.3.GA\client\jboss-client.jar
F:\javassist-3.3\javassist.jar
F:\jboss-4.2.3.GA\client\jboss-ejb3-client.jar
F:\jboss-4.2.3.GA\client\jboss-aop-jdk50-client.jar
F:\jboss-4.2.3.GA\client\jboss-aspect-jdk50-client.jar
What are the others that I need and where can I find them?
Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/aop/DynamicAOPStrategy
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.(ClientConnectionFactoryDelegate.java)
at sun.misc.Unsafe.ensureClassInitialized(Native Method)
at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918)
at java.lang.reflect.Field.getFieldAccessor(Field.java:899)
at java.lang.reflect.Field.getLong(Field.java:528)
at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1614)
at java.io.ObjectStreamClass.access$700(ObjectStreamClass.java:52)
at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:425)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.ObjectStreamClass.(ObjectStreamClass.java:413)
at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:310)
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:547)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at java.rmi.MarshalledObject.get(MarshalledObject.java:142)
at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:710)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at com.gdit.listener.JMSExample.testMessage(JMSExample.java:35)
at com.gdit.listener.JMSExample.main(JMSExample.java:20)
Caused by: java.lang.ClassNotFoundException: org.jboss.aop.DynamicAOPStrategy
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 30 more
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267091#4267091
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267091
16 years, 5 months
[JNDI and Naming] - Re: automate jboss jndi creation
by PeterJ
OK, now I see what you are saying. When using the admin console:
* if you create a new data source, it is places in server/xxx/deploy as jndiname-ds.xml
* if you edit an existing data source (including one you just created a few seconds ago) then the modifications (or actually, a whole new set of config settings) is placed in server/xxx/data/attachment/datasourcename-ds.xml-randomid/org.jboss.resource.metadata.mcf.ManagedConnectionFactoryDeploymentGroup.attachment.xml
What you would like to do is merge the changes that appear in the org.jboss.resource.metadata.mcf.ManagedConnectionFactoryDeploymentGroup.attachment.xml file into the server/xxx/deploy/*-ds.xml file.
I would hate to tell you to write an XSLT to convert org.jboss.resource.metadata.mcf.ManagedConnectionFactoryDeploymentGroup.attachment.xml into *-ds.xml. Perhaps the embedded jopr developers would have a better idea, or you could suggest this functionality as a desired enhancement (who knows, they may already have something like this planned). You could ask in the embedded jopr forum: http://www.jboss.org/index.html?module=bb&op=viewforum&f=294
I suspect that Jopr and JON operate the same ways as they share this admin code.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267087#4267087
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267087
16 years, 5 months