[jboss-user] [JBoss Messaging] - Re: NoClassDefFound Exception from Sun AS 8.2 to JBM 1.4.0

2009-04-16 Thread dkuanwang
Hi JBM experts: After change the security policy setting from permission java.util.PropertyPermission "*", "read"; to permission java.util.PropertyPermission "*", "read,write"; The NoClassDefFoundError is gone and now I am getting the following exception when trying to do: connection = connec

[jboss-user] [JBoss Messaging] - Re: NoClassDefFound Exception from Sun AS 8.2 to JBM 1.4.0

2009-04-14 Thread dkuanwang
InvokerLocator (jboss-remoting.jar 2.2.2SP9) has the following code: static Class _mthclass$(String x0){ try{ return Class.forName(x0); } catch(ClassNotFoundException x1){ throw (new NoClassDefFoundError()).initCause(x1); }} I am guessing this is where the No

[jboss-user] [JBoss Messaging] - Re: NoClassDefFound Exception from Sun AS 8.2 to JBM 1.4.0

2009-04-14 Thread dkuanwang
Thanks again for all your suggestions and help...I am able to narrow the problem down to org.jboss.remoting.InvokeLocator. Apparently when I try to instantiate this class, I will get a NoClassDefFound exception (without indicating what class is missing). I am able to create the org.jboss.logg

[jboss-user] [JBoss Messaging] - Re: NoClassDefFound Exception from Sun AS 8.2 to JBM 1.4.0

2009-04-14 Thread clebert.suco...@jboss.com
Any pointer on how to debug such issue would be appreciated, too. (the verbose:class option didn't help me much) Thanks for your inputs! The only thing I can think of is doing a real debug by attaching a debugger or looking a log4j.trace logs. I would also look if Sun AS is setting Thread.cur

[jboss-user] [JBoss Messaging] - Re: NoClassDefFound Exception from Sun AS 8.2 to JBM 1.4.0

2009-04-13 Thread dkuanwang
I tried building the JBoss jars within EAR but same exception happens. :( Since the JBAS I am trying to connect to is 4.2.2 and I have successfully connected to it with the standalone remote client, I am staying with the list of JARs in the previous post (including jbossall-client.jar). I am

[jboss-user] [JBoss Messaging] - Re: NoClassDefFound Exception from Sun AS 8.2 to JBM 1.4.0

2009-04-13 Thread clebert.suco...@jboss.com
jbossall-client.jar is deprecated after JBoss5 only. The reasoning for the deprecation is this: - Think about when a customer or user found a trivial bug. We then change the class and recompile it. Now we have to update at least two jars: -jboss-messaging.jar and jbossall-client.jar. - Now th

[jboss-user] [JBoss Messaging] - Re: NoClassDefFound Exception from Sun AS 8.2 to JBM 1.4.0

2009-04-12 Thread gaohoward
If Clebert is right about jbossall-client.jar being deprecated, then you shouldn't use that with your app. This is because the jbossall-client.jar (only from JBM perspect) contains JBM classes and may not be updated since it is deprecated. View the original post : http://www.jboss.org/index.h

[jboss-user] [JBoss Messaging] - Re: NoClassDefFound Exception from Sun AS 8.2 to JBM 1.4.0

2009-04-10 Thread clebert.suco...@jboss.com
anonymous wrote : I have tried putting the jboss jars in Sun AS classpath perfix but the same exception happens: What about isolatin the classes on the EAR application? I'm a little rusty now about this... I believe there is a place somewhere on /WEB-INF/classes... /EAR-whatever. don't know..

[jboss-user] [JBoss Messaging] - Re: NoClassDefFound Exception from Sun AS 8.2 to JBM 1.4.0

2009-04-10 Thread clebert.suco...@jboss.com
"dkuanwang" wrote : Hi Clebert/Tim, | | I did check the class dependencies and found all the classes in jboss-remoting.jar or jbossall-client.jar. | | I have tried putting the jboss jars in Sun AS classpath perfix but the same exception happens: | I don't know how ClassLoader would

[jboss-user] [JBoss Messaging] - Re: NoClassDefFound Exception from Sun AS 8.2 to JBM 1.4.0

2009-04-10 Thread dkuanwang
Hi Clebert/Tim, I did check the class dependencies and found all the classes in jboss-remoting.jar or jbossall-client.jar. I have tried putting the jboss jars in Sun AS classpath perfix but the same exception happens: /logicalhost/is/lib/jboss/jboss-aop.jar /logicalhost/is/lib/jboss/jboss-rem

[jboss-user] [JBoss Messaging] - Re: NoClassDefFound Exception from Sun AS 8.2 to JBM 1.4.0

2009-04-09 Thread clebert.suco...@jboss.com
"clebert.suco...@jboss.com" wrote : Yes.. it is. jboss-5 has deprecated jboss-all-client though. I'm not sure if dkuanwang is using JBAS 4 or 5 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224796#4224796 Reply to the post : http://www.jboss.org/index.ht

[jboss-user] [JBoss Messaging] - Re: NoClassDefFound Exception from Sun AS 8.2 to JBM 1.4.0

2009-04-09 Thread clebert.suco...@jboss.com
Yes.. it is. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224795#4224795 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224795 ___ jboss-user mailing list jboss-user@lists.j

[jboss-user] [JBoss Messaging] - Re: NoClassDefFound Exception from Sun AS 8.2 to JBM 1.4.0

2009-04-09 Thread timfox
Isn't that in jboss-all-client.jar? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224783#4224783 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224783 ___ jboss-user mailing

[jboss-user] [JBoss Messaging] - Re: NoClassDefFound Exception from Sun AS 8.2 to JBM 1.4.0

2009-04-09 Thread clebert.suco...@jboss.com
Looking at the line code, it seems you're missing org.jboss.logging.Logger: 298 @ one revison back> client = new Client(new InvokerLocator(serverLocatorURI), configuration); And I see a dependency from both Client and InvokerLocator to org.jboss.logging.Logger. That class is avail