I've no idea really what can be done next, please continue experimenting,

Sergey
On 09/09/14 11:37, Puneet Gupta wrote:
Hi Sergey,

Thanks for your prompt response. When I have made changes as per the
suggested URL, and below is my weblogic.xml:

<weblogic-web-app>
<container-descriptor>
<show-archived-real-path-enabled>true</show-archived-real-path-enabled>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
<prefer-application-packages>
<package-name>javax.ws.rs.*</package-name>
</prefer-application-packages>
</container-descriptor>
</weblogic-web-app>

But when I go on for deploying my EAR then I am getting below mentioned
exception:

Neither <prefer-application-packages> nor <prefer-application-resources>
can be specified when <prefer-web-inf-classes> is turned on in weblogic.xml

As I have already had <prefer-web-inf-classes> configured, do I need to
configure <prefer-application-packages> also??

Thanks again for your response. Please suggest further.

Puneet.

On Tue, Sep 9, 2014 at 3:43 PM, Sergey Beryozkin <[email protected]>
wrote:

Hi

May be the following can help:
http://cxf.apache.org/docs/jax-rs-deployment.html#JAX-RSDeployment-
CXFRuntimeDelegate

Cheers, Sergey
On 09/09/14 10:48, Puneet Gupta wrote:

Hi All,

I am trying deploying my apache restful webservice in Weblogic12c
application server and I am facing below issue:

*<Sep 9, 2014 2:56:52 PM IST> <Error> <HTTP> <BEA-101216> <Servlet:
"Jersey" failed to preload on startup in Web application: "axis".*
*com.sun.jersey.spi.inject.Errors$ErrorMessagesException*
*        at
com.sun.jersey.spi.inject.Errors.processErrorMessages(Errors.java:170)*
*        at com.sun.jersey.spi.inject.Errors.postProcess(Errors.
java:136)*
*        at
com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:199)*
*        at
com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(
WebApplicationImpl.java:795)*
*        at
com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(
WebApplicationImpl.java:790)*
*        Truncated. see log file for complete stacktrace*



In my initial research I have found that with servlet version 3.0 in
web.xml JAX-RS
scanning is a key feature of Javaee 6. And weblogic uses jersey for it.

Can anyone suggest a work around for it??

Thanks, Puneet.





Reply via email to