Hi Dan

You were right .. I was getting an old version of DynamicClientFactory from one 
of the jars GroovyWS-all.jar

I removed it from the class path and it worked. 

Thanks very much for your help.

Also do I need to have the same version of CXF (2.1.4) at the cleint side coz 
the team which develops the webservices uses 2.1.4


Best Regards

Shahul Hameed




> From: [email protected]
> To: [email protected]
> Subject: Re: java.lang.VerifyError: Cannot inherit from final class
> Date: Wed, 2 Dec 2009 15:19:29 -0500
> CC: [email protected]
> 
> 
> Check for other versions of:
> org.apache.cxf.endpoint.dynamic.DynamicClientFactory
> 
> The OLD OLD versions of DynamicClientFactory were final.   When the 
> JaxWsDynamicClientFactory class was added, the final restriction was taken 
> off.   Thus, it kind of sounds like you are getting a new 
> JaxWsDynamicClientFactory, but somehow getting an old DynamicClientFactory.
> 
> That all said, consider upgrading everything to a newer version of CXF.  
> 2.1.7 
> or 2.2.5.   :-)
> 
> Dan
> 
> 
> On Wed December 2 2009 8:18:57 am Shahul Hameed wrote:
> > Hi
> > 
> > I am getting the following exception when my application starts up
> > 
> > Caused by: java.lang.VerifyError: Cannot inherit from final class
> >         at java.lang.ClassLoader.defineClass1(Native Method)
> >         at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
> >         at
> >  java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12 4)
> >         at
> >  org.apache.catalina.loader.WebappClassLoader.findClassInternal(Webapp
> >  ClassLoader.java:1817)
> >         at
> >  org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoa
> >  der.java:872)
> >         at
> >  org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
> >  der.java:1325)
> >         at
> >  org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
> >  der.java:1204)
> >         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> >         at
> >  uk.co.and.commons.services.soap.AbstractSOAPService.afterPropertiesSe
> >  t(AbstractSOAPService.java:231)
> >         at
> >  uk.co.and.tin.service.RegistrationService.afterPropertiesSet(Registra
> >  tionService.java:46)
> >         at
> >  org.springframework.beans.factory.support.AbstractAutowireCapableBean
> >  Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369) at
> >  org.springframework.beans.factory.support.AbstractAutowireCapableBean
> >  Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335) ...
> >  39 more
> > 
> > 
> > AbstractSOAPService.java:231 (where this exception is thrown )contains this
> >  line :
> > 
> > JaxWsDynamicClientFactory factory =
> >  JaxWsDynamicClientFactory.newInstance();
> > 
> > I am using dynamic client to make web service calls ..
> > 
> > I
> > have checked if there are any references to the cxf-bundle-2.1.4 jar
> > but there is only one and thats in the WEB-INF lib directory.
> > 
> > Any help would be much appreciated.
> > 
> > 
> > Best Regards
> > 
> > Shahul Hameed
> > 
> 
> -- 
> Daniel Kulp
> [email protected]
> http://www.dankulp.com/blog
                                          

Reply via email to