RE: NoClassDefFoundErrors ins AXIS2 aar
Ok sorry for all the spam I have just been frustrated over all these classpath issues. It seems that I am loading most jars from with my aar file now. But some classes (related to hibernate) that are in the aar/lib/*.jar Still throw a NoClassDefFoundError. I read someones suggestion on using the proper classloader, but I may not have access to make Those changes in the offending classes. I am just really stuck here. _ From: Kahler, Jason J (US SSA) Sent: Monday, October 15, 2007 9:59 AM To: axis-user@ws.apache.org Subject: RE: NoClassDefFoundErrors ins AXIS2 aar If I copy all the needed jars over to AXIS2_HOME/WEB-INF/lib Most of my NoClassDefFoundErrors disappear and my Web Service Get much farther. Then I get another NoClassDefFoundError but this time it is a class Generated by my wsdl. It is in the same package as my generated server code in the aar. How is it possible that axis can't find it ? I mean the first call in the execution chain is in a Service class in the exact same package ? _ From: Kahler, Jason J (US SSA) Sent: Monday, October 15, 2007 8:15 AM To: axis-user@ws.apache.org Subject: RE: NoClassDefFoundErrors ins AXIS2 aar I found an article that explains using the ClassLoader loader = getClass().getClassLoader(); Then load the class using that loader. Problem is that I am using a large number of my own and Third Party jar files. Do I need to Do that for every class? I just wanted to add my jars to my aar/lib dir and be done with it. _ From: Kahler, Jason J (US SSA) Sent: Monday, October 15, 2007 7:13 AM To: axis-user@ws.apache.org Subject: RE: NoClassDefFoundErrors ins AXIS2 aar Can you elaborate, I am not sure how to do this. Also others have indicated what I am doing Should work fine. Thanks; _ From: Chad DeBauch [mailto:[EMAIL PROTECTED] Sent: Saturday, October 13, 2007 5:03 PM To: axis-user@ws.apache.org Subject: Re: NoClassDefFoundErrors ins AXIS2 aar The jars in your lib aar directory will be loaded in a separate classloader. So you must reference those classes using that classloader. You can do this by getting the MessageContext. Chad On 10/12/07, Kahler, Jason J (US SSA) <[EMAIL PROTECTED]> wrote: I am building my aar using the maven2 pluggin. Everything builds but when I deploy I get NoClassDefFound ERRORS all over. This was working as a war in tomcat using axis 1. All the required jars are in myArr.arr/lib what could be wrong ? Jay
RE: NoClassDefFoundErrors ins AXIS2 aar
If I copy all the needed jars over to AXIS2_HOME/WEB-INF/lib Most of my NoClassDefFoundErrors disappear and my Web Service Get much farther. Then I get another NoClassDefFoundError but this time it is a class Generated by my wsdl. It is in the same package as my generated server code in the aar. How is it possible that axis can't find it ? I mean the first call in the execution chain is in a Service class in the exact same package ? _ From: Kahler, Jason J (US SSA) Sent: Monday, October 15, 2007 8:15 AM To: axis-user@ws.apache.org Subject: RE: NoClassDefFoundErrors ins AXIS2 aar I found an article that explains using the ClassLoader loader = getClass().getClassLoader(); Then load the class using that loader. Problem is that I am using a large number of my own and Third Party jar files. Do I need to Do that for every class? I just wanted to add my jars to my aar/lib dir and be done with it. _ From: Kahler, Jason J (US SSA) Sent: Monday, October 15, 2007 7:13 AM To: axis-user@ws.apache.org Subject: RE: NoClassDefFoundErrors ins AXIS2 aar Can you elaborate, I am not sure how to do this. Also others have indicated what I am doing Should work fine. Thanks; _ From: Chad DeBauch [mailto:[EMAIL PROTECTED] Sent: Saturday, October 13, 2007 5:03 PM To: axis-user@ws.apache.org Subject: Re: NoClassDefFoundErrors ins AXIS2 aar The jars in your lib aar directory will be loaded in a separate classloader. So you must reference those classes using that classloader. You can do this by getting the MessageContext. Chad On 10/12/07, Kahler, Jason J (US SSA) <[EMAIL PROTECTED]> wrote: I am building my aar using the maven2 pluggin. Everything builds but when I deploy I get NoClassDefFound ERRORS all over. This was working as a war in tomcat using axis 1. All the required jars are in myArr.arr/lib what could be wrong ? Jay
RE: NoClassDefFoundErrors ins AXIS2 aar
I found an article that explains using the ClassLoader loader = getClass().getClassLoader(); Then load the class using that loader. Problem is that I am using a large number of my own and Third Party jar files. Do I need to Do that for every class? I just wanted to add my jars to my aar/lib dir and be done with it. _ From: Kahler, Jason J (US SSA) Sent: Monday, October 15, 2007 7:13 AM To: axis-user@ws.apache.org Subject: RE: NoClassDefFoundErrors ins AXIS2 aar Can you elaborate, I am not sure how to do this. Also others have indicated what I am doing Should work fine. Thanks; _ From: Chad DeBauch [mailto:[EMAIL PROTECTED] Sent: Saturday, October 13, 2007 5:03 PM To: axis-user@ws.apache.org Subject: Re: NoClassDefFoundErrors ins AXIS2 aar The jars in your lib aar directory will be loaded in a separate classloader. So you must reference those classes using that classloader. You can do this by getting the MessageContext. Chad On 10/12/07, Kahler, Jason J (US SSA) <[EMAIL PROTECTED]> wrote: I am building my aar using the maven2 pluggin. Everything builds but when I deploy I get NoClassDefFound ERRORS all over. This was working as a war in tomcat using axis 1. All the required jars are in myArr.arr/lib what could be wrong ? Jay
RE: NoClassDefFoundErrors ins AXIS2 aar
Can you elaborate, I am not sure how to do this. Also others have indicated what I am doing Should work fine. Thanks; _ From: Chad DeBauch [mailto:[EMAIL PROTECTED] Sent: Saturday, October 13, 2007 5:03 PM To: axis-user@ws.apache.org Subject: Re: NoClassDefFoundErrors ins AXIS2 aar The jars in your lib aar directory will be loaded in a separate classloader. So you must reference those classes using that classloader. You can do this by getting the MessageContext. Chad On 10/12/07, Kahler, Jason J (US SSA) <[EMAIL PROTECTED]> wrote: I am building my aar using the maven2 pluggin. Everything builds but when I deploy I get NoClassDefFound ERRORS all over. This was working as a war in tomcat using axis 1. All the required jars are in myArr.arr/lib what could be wrong ? Jay
Re: NoClassDefFoundErrors ins AXIS2 aar
Jason-- in your properties file (start in modules\kernel\project.properties) check out maven.compile.classpath when you compile check out the maven.runtime.classpath when you execute HTH/ Martin-- - Original Message - From: "Thilina Gunarathne" <[EMAIL PROTECTED]> To: Sent: Saturday, October 13, 2007 6:44 PM Subject: Re: NoClassDefFoundErrors ins AXIS2 aar > Hi, > Did you check the jars in lib folder for specific classes mentioned in > the ClassNotFound errors? If not try expanding the required jars and > check whether they are actually there or not... > > What's the Axis2 version you are using.. This worked fine for me using > Axis2 1.2 some time back.. Did not check in Axis2 1.3 yet.. > > thanks, > Thilina > > On 10/12/07, Kahler, Jason J (US SSA) <[EMAIL PROTECTED]> wrote: > > > > > > > > > > I am building my aar using the maven2 pluggin. Everything builds but when I > > deploy I get NoClassDefFound > > ERRORS all over. This was working as a war in tomcat using axis 1. All the > > required jars are in > > > > > > > > myArr.arr/lib what could be wrong ? > > > > > > > > Jay > > > -- > Thilina Gunarathne - http://thilinag.blogspot.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: NoClassDefFoundErrors ins AXIS2 aar
Hi, Did you check the jars in lib folder for specific classes mentioned in the ClassNotFound errors? If not try expanding the required jars and check whether they are actually there or not... What's the Axis2 version you are using.. This worked fine for me using Axis2 1.2 some time back.. Did not check in Axis2 1.3 yet.. thanks, Thilina On 10/12/07, Kahler, Jason J (US SSA) <[EMAIL PROTECTED]> wrote: > > > > > I am building my aar using the maven2 pluggin. Everything builds but when I > deploy I get NoClassDefFound > ERRORS all over. This was working as a war in tomcat using axis 1. All the > required jars are in > > > > myArr.arr/lib what could be wrong ? > > > > Jay -- Thilina Gunarathne - http://thilinag.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: NoClassDefFoundErrors ins AXIS2 aar
The jars in your lib aar directory will be loaded in a separate classloader. So you must reference those classes using that classloader. You can do this by getting the MessageContext. Chad On 10/12/07, Kahler, Jason J (US SSA) <[EMAIL PROTECTED]> wrote: > > I am building my aar using the maven2 pluggin. Everything builds but when > I deploy I get NoClassDefFound > ERRORS all over. This was working as a war in tomcat using axis 1. All the > required jars are in > > > > myArr.arr/lib what could be wrong ? > > > > Jay >