users@glassfish.java.net

Re: Getting error IncompatibleClassChangeError

From: Vijay Ramachandran <Vijay.Ramachandran_at_Sun.COM>
Date: Fri, 31 Mar 2006 08:30:40 -0800

Hi Larry,

I think you filed an issue for this problem in the issue tracker (issue
#509).

I have already updated that issue. Basically, I asked you to try with
the latest GF build available (build #42).

I followed the steps in my blog on build #42 and I am not able to
reproduce this problem - everything works as expected.

If this problem still recurs, give us more info on your environment
(like JDK version, OS etc etc)

Thanks

Vijay

On Thu, 2006-03-30 at 18:08, Carla Mott wrote:
> Larry Cryderman wrote:
> > Sorry if this is not the appropriate way to report this, if this is not
> > correct, please direct me to the correct reporting site.
> Your best bet is to use the mailing lists and forums on GlassFish.
>
> I searched the forum for this issue and the users mailing list but did not see
> anything that might help. I searched the dev list just in case too.
>
> It would help to have more information about your app. Is it
> jax-ws web service? What does the web.xml look like.
>
> I have cc'd Vijay as he is the web services expert. In the future
> post to the forum
> http://forums.java.net/jive/forum.jspa?forumID=56&start=0
>
> >
> > (I'd give my best dog to get a simple java web service to run!)
> That is very generous and as much as my son would love to have a
> dog there is no need to part with yours. We'll just help you because
> we like to.
>
> >
> > I just downloaded and installed GlassFish build 32g.
> >
> > When I compile/deploy a simple java web service is get the following:
> >
> >
> >
> >
> > [#|2006-03-30T11:58:34.110-0500|INFO|sun-appserver-pe9.0|javax.enterprise.system.tools.deployment|_ThreadID=12;_ThreadName=Timer-3;|[AutoDeploy]
> > Selecting file
> > C:\GlassFish\domains\domain1\autodeploy\endpoint\AddNumbers.class for
> > autodeployment.|#]
> >
> > [#|2006-03-30T11:58:34.924-0500|INFO|sun-appserver-pe9.0|javax.enterprise.system.tools.deployment|_ThreadID=12;_ThreadName=Timer-3;file:/C:/GlassFish/domains/domain1/applications/j2ee-modules/endpoint_AddNumbers/;|archive
> > =
> > _file:/C:/GlassFish/domains/domain1/applications/j2ee-modules/endpoint_AddNumbers/|#_]
> >
> > [#|2006-03-30T11:59:05.563-0500|INFO|sun-appserver-pe9.0|javax.enterprise.system.tools.deployment|_ThreadID=12;_ThreadName=Timer-3;|Total
> > Deployment Time: 30847 msec, Total EJB Compiler Module Time: 0 msec,
> > Portion spent EJB Compiling: 0%|#]
> >
> > [#|2006-03-30T11:59:05.581-0500|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.tools.deployment|_ThreadID=12;_ThreadName=Timer-3;_RequestID=4b22eec7-f546-4da5-8b6a-f54bda0f8eac;|Exception
> > occured in J2EEC Phase
> >
> > java.lang.IncompatibleClassChangeError: Implementing class
> > at java.lang.ClassLoader.defineClass1(Native Method)
> > at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> > at
> > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
> > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
> > at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
> > at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> > at
> > com.sun.appserv.server.util.ASURLClassLoader.loadClass(ASURLClassLoader.java:100)
> >
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> > at java.lang.ClassLoader.defineClass1(Native Method)
> > at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> > at
> > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
> > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
> > at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
> > at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> > at
> > com.sun.appserv.server.util.ASURLClassLoader.loadClass(ASURLClassLoader.java:100)
> >
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> > at
> > com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:76)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >
> > at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >
> > at java.lang.reflect.Method.invoke(Method.java:585)
> > at
> > com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:72)
> > at com.sun.xml.ws.model.RuntimeModel$1.run(RuntimeModel.java:194)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at
> > com.sun.xml.ws.model.RuntimeModel.createJAXBContext(RuntimeModel.java:191)
> > at
> > com.sun.xml.ws.model.RuntimeModel.postProcess(RuntimeModel.java:77)
> > at
> > com.sun.xml.ws.modeler.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:253)
> >
> > at
> > com.sun.tools.ws.wscompile.CompileTool.buildModel(CompileTool.java:588)
> > at com.sun.tools.ws.wscompile.CompileTool.run(CompileTool.java:492)
> > at com.sun.tools.ws.util.ToolBase.run(ToolBase.java:54)
> > at
> > com.sun.tools.ws.util.WSToolsObjectFactoryImpl.wsgen(WSToolsObjectFactoryImpl.java:42)
> >
> > at com.sun.enterprise.webservice.WsUtil.runWsGen(WsUtil.java:1657)
> > at com.sun.enterprise.webservice.WsUtil.genWSInfo(WsUtil.java:1839)
> > at
> > com.sun.enterprise.deployment.backend.ModuleDeployer.loadDescriptors(ModuleDeployer.java:395)
> >
> > at
> > com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java:158)
> >
> > at
> > com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:160)
> >
> > at
> > com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:169)
> >
> > at
> > com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
> >
> > at
> > com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:842)
> >
> > at
> > com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:257)
> >
> > at
> > com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:275)
> >
> > at
> > com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsConfigMBean.java:534)
> >
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >
> > at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >
> > at java.lang.reflect.Method.invoke(Method.java:585)
> > at
> > com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:342)
> >
> > at
> > com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:325)
> >
> > at
> > com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:407)
> >
> > at
> > com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
> >
> > at
> > com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
> > at
> > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
> >
> > at
> > com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
> > at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
> > at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >
> > at java.lang.reflect.Method.invoke(Method.java:585)
> > at
> > com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:77)
> > at $Proxy1.invoke(Unknown Source)
> > at
> > com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:297)
> >
> > at
> > com.sun.enterprise.deployment.autodeploy.AutoDeployer.invokeDeploymentService(AutoDeployer.java:413)
> >
> > at
> > com.sun.enterprise.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:394)
> >
> > at
> > com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:253)
> >
> > at
> > com.sun.enterprise.deployment.autodeploy.AutoDeployControllerImpl$AutoDeployTask.run(AutoDeployControllerImpl.java:370)
> >
> > at java.util.TimerThread.mainLoop(Timer.java:512)
> > at java.util.TimerThread.run(Timer.java:462)
> > |#]
> >
> > [#|2006-03-30T11:59:05.581-0500|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.tools.deployment|_ThreadID=12;_ThreadName=Timer-3;Implementing
> > class
> >
> > ;_RequestID=4b22eec7-f546-4da5-8b6a-f54bda0f8eac;|"DPL8011:
> > autodeployment failure while deploying the application : Implementing class
> >
> > "|#]
> >
> > [#|2006-03-30T11:59:05.581-0500|INFO|sun-appserver-pe9.0|javax.enterprise.system.tools.deployment|_ThreadID=12;_ThreadName=Timer-3;|[AutoDeploy]
> > Autodeploy failed :
> > C:\GlassFish\domains\domain1\autodeploy\endpoint\AddNumbers.class.|#]
> >
>
>
> --
> Carla Mott
> Sun Microsystems
> carla.mott_at_sun.com
>