You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Sonam Samdupkhangsar <So...@imail.org> on 2014/03/21 22:41:31 UTC

linkage error : RuntimeDelegate.class

Hi

I have been seeing linkage errors when deploying CXF Jaxrs webapp on WebLogic 12c.  I read the migration to 3.x guideline but don't find any clues on it.

The following is the error:

-101216> <Servlet: "Jersey" failed to preload on startup in Web application: "enterprise-caching.war".
java.lang.LinkageError: ClassCastException: attempting to castzip:/home/swnepali/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/enterprise-caching/y2gltg/war/WEB-INF/lib/javax.ws.rs-api-2.0.jar!/javax/ws/rs/ext/RuntimeDelegate.classtojar:file:/home/swnepali/Oracle/Middleware/Oracle_Home/oracle_common/modules/jersey-core-1.17.1.jar!/javax/ws/rs/ext/RuntimeDelegate.class




thanks
-Sonam

Re: linkage error : RuntimeDelegate.class

Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi,

You probably need to exclude javax.ws.rs-api-2.0 when building a 
CXF-based war, 3.0.0-milestone2 is expected to completely support JAX-RS 
1.1 applications.

Sergey

On 21/03/14 21:41, Sonam Samdupkhangsar wrote:
> Hi
>
> I have been seeing linkage errors when deploying CXF Jaxrs webapp on WebLogic 12c.  I read the migration to 3.x guideline but don't find any clues on it.
>
> The following is the error:
>
> -101216> <Servlet: "Jersey" failed to preload on startup in Web application: "enterprise-caching.war".
> java.lang.LinkageError: ClassCastException: attempting to castzip:/home/swnepali/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/enterprise-caching/y2gltg/war/WEB-INF/lib/javax.ws.rs-api-2.0.jar!/javax/ws/rs/ext/RuntimeDelegate.classtojar:file:/home/swnepali/Oracle/Middleware/Oracle_Home/oracle_common/modules/jersey-core-1.17.1.jar!/javax/ws/rs/ext/RuntimeDelegate.class
>
>
>
>
> thanks
> -Sonam
>


-- 
Sergey Beryozkin

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

Blog: http://sberyozkin.blogspot.com