[jira] [Comment Edited] (CXF-8040) Deployment to WL 12.2.1.3 fails when upgraded Apache CXF from 3.1.11 to 3.1.15 and higher

2021-07-27 Thread Karthik NS (Jira)


[ 
https://issues.apache.org/jira/browse/CXF-8040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17386195#comment-17386195
 ] 

Karthik NS edited comment on CXF-8040 at 7/27/21, 7:32 AM:
---

Am also facing the same issue. I did upgrading from 3.0.16 to 3.4.4 Any 
solution to fix this?


was (Author: karthikns2):
Am also facing the same issue. Any solution to fix this?

> Deployment to WL 12.2.1.3 fails when upgraded Apache CXF from 3.1.11 to 
> 3.1.15 and higher
> -
>
> Key: CXF-8040
> URL: https://issues.apache.org/jira/browse/CXF-8040
> Project: CXF
>  Issue Type: Bug
>Affects Versions: 3.1.15, 3.1.16, 3.1.17, 3.1.18
>Reporter: Srinivas Jannu
>Priority: Major
>
> Apache CXF upgrade to 3.1.15 or higher fails when deploying the Rest Service 
> application (ear) to WebLogic 12c (12.2.1.3).
> It has been working fine with version 3.1.11.
> Error details:
> WARNING: Unknown HK2 failure detected:
> MultiException stack 1 of 2
> java.lang.InstantiationException
>  at 
> sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:48)
>  at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
>  at 
> org.glassfish.hk2.utilities.reflection.ReflectionHelper.makeMe(ReflectionHelper.java:1375)
> MultiException stack 2 of 2
> java.lang.IllegalStateException: Unable to perform operation: create on 
> org.apache.cxf.jaxrs.provider.AbstractResponseViewProvider
>  
> MultiException stack 3 of 3
> java.lang.IllegalStateException: Unable to perform operation: create on 
> org.glassfish.jersey.message.internal.MessageBodyFactory
>  at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:387)
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Comment Edited] (CXF-8040) Deployment to WL 12.2.1.3 fails when upgraded Apache CXF from 3.1.11 to 3.1.15 and higher

2020-03-25 Thread spalmer (Jira)


[ 
https://issues.apache.org/jira/browse/CXF-8040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17067363#comment-17067363
 ] 

spalmer edited comment on CXF-8040 at 3/26/20, 5:21 AM:


I don't completely understand what's happening here. I was seeing this in an 
app that only had SOAP endpoints. My guess is that for whatever reason Weblogic 
12.2 insists on loading Jersey 1.1 which scans the classpath for annotations. 
It finds the @Provider annotation on AbstractResponseViewProvider and attempts 
to instantiate an abstract class.

I was able to workaround this by deploying jax-rs-2.0.war (Jersey 2) as a 
shared library in my domain prior to deploying my app.

Reference: 
[https://docs.oracle.com/middleware/1213/wls/RESTF/use-jersey20-ri.htm#RESTF296]


was (Author: spalmer):
I don't completely understand what's happening here. I was seeing this in an 
app that only had SOAP endpoints. My guess is that for whatever reason Weblogic 
12.2 insists on loading Jersey 1.0 which scans the classpath for annotations. 
It finds the @Provider annotation on AbstractResponseViewProvider and attempts 
to instantiate an abstract class.

I was able to workaround this by deploying jax-rs-2.0.war (Jersey 2) as a 
shared library in my domain prior to deploying my app.

Reference: 
[https://docs.oracle.com/middleware/1213/wls/RESTF/use-jersey20-ri.htm#RESTF296]

> Deployment to WL 12.2.1.3 fails when upgraded Apache CXF from 3.1.11 to 
> 3.1.15 and higher
> -
>
> Key: CXF-8040
> URL: https://issues.apache.org/jira/browse/CXF-8040
> Project: CXF
>  Issue Type: Bug
>Affects Versions: 3.1.15, 3.1.16, 3.1.17, 3.1.18
>Reporter: Srinivas Jannu
>Priority: Major
>
> Apache CXF upgrade to 3.1.15 or higher fails when deploying the Rest Service 
> application (ear) to WebLogic 12c (12.2.1.3).
> It has been working fine with version 3.1.11.
> Error details:
> WARNING: Unknown HK2 failure detected:
> MultiException stack 1 of 2
> java.lang.InstantiationException
>  at 
> sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:48)
>  at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
>  at 
> org.glassfish.hk2.utilities.reflection.ReflectionHelper.makeMe(ReflectionHelper.java:1375)
> MultiException stack 2 of 2
> java.lang.IllegalStateException: Unable to perform operation: create on 
> org.apache.cxf.jaxrs.provider.AbstractResponseViewProvider
>  
> MultiException stack 3 of 3
> java.lang.IllegalStateException: Unable to perform operation: create on 
> org.glassfish.jersey.message.internal.MessageBodyFactory
>  at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:387)
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)