cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <sberyoz...@gmail.com>
Subject Re: java.lang.LinkageError: ClassCastException: attempting to castzip:
Date Fri, 21 Aug 2015 11:21:04 GMT
Please keep experimenting - WebLogic is an Oracle supported container so 
it is natural that Jersey is closely integrated, the trace shows Jersey 
is still loaded - you need to make sure somehow that Jersey is not loaded...

Thanks, Sergey
On 21/08/15 09:25, vineetkala11 wrote:
> Hi there,
>
> I am getting below exception at the time of deployment of my project . I am
> referring to link
> http://cxf.apache.org/docs/jax-rs-deployment.html#JAX-RSDeployment-WebLogic
> <http://cxf.apache.org/docs/jax-rs-deployment.html#JAX-RSDeployment-WebLogic>
>
> Its almost a week dealing with exception but didn't got any solution .
>
> WebLogic Server Version: 12.1.2.0.0
> CXF version : 2.7.0
> java version : 7
> OS : Linux
>
> I am getting 2 different type of exception .
> 1st exception occurs by adding  <package-name>javax.ws.rs.*</package-name>
> and
> 2nd exception occurs by adding
> <resource-name>META-INF/services/*</resource-name> .
>
> Didn't found any proper suggestion over internet for these exceptions .
>
> Please suggest is there any thing wrong I am doing .
>
>
> Below are same .
>
> My Weblogic.xml file :
>
> <weblogic-web-app>
>    <context-root>/emessaging</context-root>
>    <container-descriptor>
>      <prefer-web-inf-classes>false</prefer-web-inf-classes>
>          <prefer-application-packages>
>                  <package-name>javax.faces.*</package-name>
>                  <package-name>javax.ws.rs.*</package-name>
>          </prefer-application-packages>
>    </container-descriptor>
> </weblogic-web-app>
>
> Exception against it :
>
> ####<Aug 21, 2015 12:12:18 PM IST> <Error> <HTTP>
> <CCM32-Suse11.pbi.global.pvt> <myserver> <[ACTIVE] ExecuteThread: '3'
for
> queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <>
<>
> <1440139338781> <BEA-101216> <Servlet: &quot;Jersey&quot; failed
to preload
> on startup in Web application: &quot;core.war&quot;.
> java.lang.LinkageError: ClassCastException: attempting to
> castzip:/usr/vineetDir/em1.4M_install_JSF_NEW/core.war/WEB-INF/lib/javax.ws.rs-api-2.0-m10.jar!/javax/ws/rs/ext/RuntimeDelegate.classtojar:file:/software/wls12120/oracle_common/modules/jersey-core-1.17.1.jar!/javax/ws/rs/ext/RuntimeDelegate.class
>          at
> javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:116)
>          at
> javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:91)
>          at javax.ws.rs.core.EntityTag.&lt;clinit>(EntityTag.java:35)
>          at java.lang.Class.forName0(Native Method)
>          at java.lang.Class.forName(Class.java:190)
>          at com.sun.proxy.$Proxy238.<clinit>(Unknown Source)
>          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>          at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>          at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>          at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>          at java.lang.reflect.Proxy.newInstance(Proxy.java:764)
>          at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:755)
>          at
> com.sun.jersey.server.impl.application.WebApplicationImpl.createProxy(WebApplicationImpl.java:1592)
>          at
> com.sun.jersey.server.impl.application.WebApplicationImpl.<init>(WebApplicationImpl.java:320)
>          at
> com.sun.jersey.server.impl.container.WebApplicationProviderImpl.createWebApplication(WebApplicationProviderImpl.java:55)
>          at
> com.sun.jersey.spi.container.WebApplicationFactory.createWebApplication(WebApplicationFactory.java:66)
>          at
> com.sun.jersey.spi.container.servlet.ServletContainer.create(ServletContainer.java:392)
>          at
> com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent.create(ServletContainer.java:307)
>          at
> com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java:603)
>          at
> com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:210)
>          at
> com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:374)
>          at
> com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:557)
>          at javax.servlet.GenericServlet.init(GenericServlet.java:240)
>          at
> weblogic.jaxrs.server.portable.servlet.ServletContainer.init(ServletContainer.java:120)
>          at
> weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:337)
>          at
> weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:288)
>          at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
>          at
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
>          at
> weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
>          at
> weblogic.servlet.internal.StubSecurityHelper.initServletInstance(StubSecurityHelper.java:98)
>          at
> weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:86)
>          at
> weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:74)
>          at
> weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:60)
>          at
> weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:34)
>          at
> weblogic.servlet.internal.ServletStubImpl.initStubLifecycleHelper(ServletStubImpl.java:648)
>          at
> weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:593)
>          at
> weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1924)
>          at
> weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1901)
>          at
> weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1791)
>          at
> weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2807)
>          at
> weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1661)
>          at
> weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:822)
>          at
> weblogic.application.internal.ExtensibleModuleWrapper$StartStateChange.next(ExtensibleModuleWrapper.java:360)
>          at
> weblogic.application.internal.ExtensibleModuleWrapper$StartStateChange.next(ExtensibleModuleWrapper.java:356)
>          at
> weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
>          at
> weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:138)
>          at
> weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124)
>          at
> weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:213)
>          at
> weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:208)
>          at
> weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
>          at
> weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:70)
>          at
> weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:24)
>          at
> weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:729)
>          at
> weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
>          at
> weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:258)
>          at
> weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:48)
>          at
> weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165)
>          at
> weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
>          at
> weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:586)
>          at
> weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:148)
>          at
> weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:114)
>          at
> weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:339)
>          at
> weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:846)
>          at
> weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1275)
>          at
> weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:442)
>          at
> weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:176)
>          at
> weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
>          at
> weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
>          at
> weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
>          at
> weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:550)
>          at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)
>          at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)
>>
>
> My Weblogic.xml file :
>
> <weblogic-web-app>
>    <context-root>/emessaging</context-root>
>    <container-descriptor>
>      <prefer-web-inf-classes>false</prefer-web-inf-classes>
>          <prefer-application-packages>
>                  <package-name>javax.faces.*</package-name>
>                  <package-name>javax.ws.rs.*</package-name>
>          </prefer-application-packages>
>          <prefer-application-resources>
>          <resource-name>META-INF/services/*</resource-name>
>          </prefer-application-resources>
>    </container-descriptor>
> </weblogic-web-app>
>
> Exception againt it :
>
> ####<Aug 21, 2015 12:17:05 PM IST> <Error> <Deployer>
> <CCM32-Suse11.pbi.global.pvt> <myserver> <[ACTIVE] ExecuteThread: '3'
for
> queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <>
<>
> <1440139625170> <BEA-149265> <Failure occurred in the execution of
> deployment request with ID &quot;1440139613498&quot; for task &quot;0&quot;.
> Error is: &quot;weblogic.application.ModuleException:
> javax.validation.ValidationException: Unable to find a default
> provider&quot;
> weblogic.application.ModuleException: javax.validation.ValidationException:
> Unable to find a default provider
>          at
> weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:114)
>          at
> weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
>          at
> weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:172)
>          at
> weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:167)
>          at
> weblogic.application.utils.StateMachineDriver$ParallelChange.run(StateMachineDriver.java:80)
>          at weblogic.work.ContextWrap.run(ContextWrap.java:40)
>          at
> weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:550)
>          at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)
>          at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)
> Caused By: javax.validation.ValidationException: Unable to find a default
> provider
>          at
> javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:272)
>          at
> javax.validation.Validation.buildDefaultValidatorFactory(Validation.java:117)
>          at
> weblogic.servlet.internal.WebAppServletContext.initContextAttributes(WebAppServletContext.java:410)
>          at
> weblogic.servlet.internal.WebAppServletContext.prepare(WebAppServletContext.java:1023)
>          at
> weblogic.servlet.internal.HttpServer.doPostContextInit(HttpServer.java:394)
>          at
> weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:369)
>          at
> weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:1265)
>          at
> weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:769)
>          at
> weblogic.application.internal.ExtensibleModuleWrapper$PrepareStateChange.next(ExtensibleModuleWrapper.java:295)
>          at
> weblogic.application.internal.ExtensibleModuleWrapper$PrepareStateChange.next(ExtensibleModuleWrapper.java:285)
>          at
> weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
>          at
> weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:109)
>          at
> weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
>          at
> weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:172)
>          at
> weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:167)
>          at
> weblogic.application.utils.StateMachineDriver$ParallelChange.run(StateMachineDriver.java:80)
>          at weblogic.work.ContextWrap.run(ContextWrap.java:40)
>          at
> weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:550)
>          at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)
>          at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)
>>
>
>
>
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/java-lang-LinkageError-ClassCastException-attempting-to-castzip-tp5760329.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>


-- 
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Mime
View raw message