users@jersey.java.net

RE: [Jersey] Deploying Jersey App on Weblogic 10.3

From: Rabick, Mark A (IS) <"Rabick,>
Date: Fri, 3 Apr 2009 15:35:09 -0500

>webservices-rt.jar
 
This is the JAX-WS runtime (rt) jar.
 

_______________________________________________
Mark A. Rabick - Software Engineer
Em: mark.rabick_at_ngc.com

 


________________________________

        From: karim Daher [mailto:karim2bib_at_hotmail.com]
        Sent: Friday, April 03, 2009 3:30 PM
        To: users_at_jersey.dev.java.net
        Subject: RE: [Jersey] Deploying Jersey App on Weblogic 10.3
        
        
        Thanks Paul
        My last problem was solved after removing the webservices-rt.jar and xmlsec.jar.
        I taught webservices-rt.jar was required by jersey.
        
        Thank you
        
> Date: Fri, 3 Apr 2009 20:14:47 +0200
> From: Paul.Sandoz_at_Sun.COM
> To: users_at_jersey.dev.java.net
> Subject: Re: [Jersey] Deploying Jersey App on Weblogic 10.3
>
>
> On Apr 3, 2009, at 6:53 PM, karim Daher wrote:
>
> > Hi
> > In fact the exception trace is:
> >
> > <Apr 3, 2009 12:40:18 PM EDT> <Error> <HTTP> <BEA-101216> <Servlet:
> > "com.sun.xml.ws.transport.tcp.servicechannel.ServiceChannel
> > WSImpl" failed to preload on startup in Web application: "evm.war".
> > java.lang.Error: javax.xml.soap.SOAPException: Unable to create SAAJ
> > meta-factorycom.sun.xml.messaging.saaj.soap.SAAJMetaFactor
> > yImpl cannot be cast to javax.xml.soap.SAAJMetaFactory
> > at com.sun.xml.ws.api.SOAPVersion.<init>(SOAPVersion.java:187)
> > at com.sun.xml.ws.api.SOAPVersion.<clinit>(SOAPVersion.java:
> > 85)
> > at com.sun.xml.ws.api.BindingID.<clinit>(BindingID.java:318)
> > at
> > weblogic
> > .wsee
> > .jaxws.JAXWSDeployedServlet.getEndpoint(JAXWSDeployedServlet.java:141)
> > at
> > weblogic.wsee.jaxws.JAXWSServlet.registerEndpoint(JAXWSServlet.java:
> > 164)
> > Truncated. see log file for complete stacktrace
> > javax.xml.soap.SOAPException: Unable to create SAAJ meta-
> > factorycom.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl cannot be c
> > ast to javax.xml.soap.SAAJMetaFactory
> > at
> > javax.xml.soap.SAAJMetaFactory.getInstance(SAAJMetaFactory.java:81)
> > at
> > javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:144)
> > at
> > com.sun.xml.ws.api.SAAJFactory.createMessageFactory(SAAJFactory.java:
> > 9)
> > at weblogic.wsee.jaxws.WLSContainer
> > $WLSSAAJFactory.createMessageFactory(WLSContainer.java:341)
> > at com.sun.xml.ws.api.SOAPVersion.<init>(SOAPVersion.java:182)
> >
> >
> > And by searching on the web, people are talking about jax-ws.xml. I
> > did not understand clearly the discussion, but I think that jersey
> > has its own jaxws files !!
>
> Jersey/JAX-RS is completely separate from JAX-WS and has no dependency
> on it or any JAX-WS specific files.
>
>
> >
> > Do you think that is something related to jersey project ?
> >
>
> No. I think it is due to additional jar files you are including.
>
>
>
> > To answer your previous question about the jars I am using, here is
> > the main ones:
> > WEB-INF/lib:
> > activation.jar
> > annotations-api.jar
> > asm-3.1.jar
> > some commonsxx.jar
> > jersey-core-1.0.2.jar
> > jersey-multipart-1.0.2.jar
> > jersey-server-1.0.1.jar
> > jsr311-api-1.0.jar
> > mail-1.4.jar
> > stax-api-1.0-2.jar
> > webservices-rt.jar
> > xmlsec.jar
> > an others jars for main application.
> >
>
> Do you require a dependency on the following?
>
> webservices-rt.jar, xmlsec.jar
>
> Jersey does not require the above jars. See here for the dependences:
>
> https://jersey.dev.java.net/source/browse/*checkout*/jersey/tags/jersey-1.0.2/jersey/dependencies.html
>
> See the following very simple maven web app to get started:
>
> http://download.java.net/maven/2/com/sun/jersey/samples/helloworld-webapp/1.0.2/helloworld-webapp-1.0.2-project.zip
>
> Paul.
>
> >
> > My web.xml is:
> > <?xml version="1.0" encoding="UTF-8"?>
> > <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd
> > ">
> > <servlet>
> > <servlet-name>Proxy services</servlet-name>
> > <servlet-
> > class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-
> > class>
> > <!-- init-param>
> > <param-
> > name>com.sun.jersey.spi.container.ContainerRequestFilters</param-name>
> > <param-
> > value>com.sun.jersey.api.container.filter.PostReplaceFilter</param-
> > value>
> > </init-param-->
> > <init-param>
> > <param-name>com.sun.jersey.config.property.packages</
> > param-name>
> > <param-value>com.rest.resource</param-value>
> > </init-param>
> >
> > <load-on-startup>1</load-on-startup>
> > </servlet>
> > <servlet-mapping>
> > <servlet-name>Proxy services</servlet-name>
> > <url-pattern>/services/*</url-pattern>
> > </servlet-mapping>
> > <session-config>
> > <session-timeout>30</session-timeout>
> > </session-config>
> > <welcome-file-list>
> > <welcome-file>index.jsp</welcome-file>
> > </welcome-file-list>
> > </web-app>
> > From: karim2bib_at_hotmail.com
> > To: users_at_jersey.dev.java.net
> > Date: Fri, 3 Apr 2009 12:33:34 -0400
> > Subject: RE: [Jersey] Deploying Jersey App on Weblogic 10.3
> >
> > Thank you for your quick response, I went one step further by adding
> > in the weblogic-application.xml the following lines to use the
> > asm-3.1.jar that I have and not WL one:
> > <prefer-application-packages>
> > <package-name>org.objectweb.*</package-name>
> > </prefer-application-packages>
> >
> > And now I have others issues related to Weblogic, that is unable to
> > create SAAJ meta-factory. I am trying to solve this issue now
> >
> > Than you.
> >
> > > Date: Fri, 3 Apr 2009 17:53:45 +0200
> > > From: Paul.Sandoz_at_Sun.COM
> > > To: users_at_jersey.dev.java.net
> > > Subject: Re: [Jersey] Deploying Jersey App on Weblogic 10.3
> > >
> > >
> > > On Apr 3, 2009, at 5:48 PM, karim Daher wrote:
> > > > And now I am receiving a new exception:
> > > >
> > > > <Apr 3, 2009 11:24:07 AM EDT> <Error> <HTTP> <BEA-101216>
> > <Servlet:
> > > > "com.sun.xml.ws.transport.tcp.servicechannel.ServiceChanne
> > > > WSImpl" failed to preload on startup in Web application:
> > "evm.war".
> > > > java.lang.AbstractMethodError
> > > > at
> > > > com
> > > > .sun
> > > > .xml
> > > > .ws
> > > > .policy
> > >
> > >
> > .jaxws.WSDLPolicyMapWrapper.configureModel(WSDLPolicyMapWrapper.java:
> > > > 167)
> > > > at
> > > > com
> > > > .sun
> > > > .xml
> > > > .ws
> > > > .policy
> > > > .jaxws
> > > > .PolicyWSDLParserExtension
> > > > .postFinished(PolicyWSDLParserExtension.java:1274)
> > > > at
> > > > com
> > > > .sun
> > > > .xml
> > > > .ws
> > > > .wsdl
> > > > .parser
> > > > .DelegatingParserExtension
> > > > .postFinished(DelegatingParserExtension.java:187)
> > > > at
> > > > com
> > > > .sun
> > > > .xml
> > > > .ws
> > > > .wsdl
> > > > .parser
> > > > .WSDLParserExtensionFacade
> > > > .postFinished(WSDLParserExtensionFacade.java:334)
> > > > at
> > > > com
> > > > .sun
> > >
> > > .xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:
> > > > 230)
> > > > Truncated. see log file for complete stacktrace
> > > >
> > > > Can any one help me to understand or solve this issue ?
> > > >
> > >
> > > That is an odd one that does not appear anything related to Jersey
> > and
> > > is instead something to do with Metro. What is your full web.xml and
> > > what do you have in your WEB-INF/lib ?
> > >
> > > Note that the JavaDoc of "java.lang.AbstractMethodError" states:
> > >
> > > this error can only occur at run time if the definition of some
> > > class has incompatibly changed since the currently
> > > executing method was last compiled.
> > >
> > > Paul.
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> > > For additional commands, e-mail: users-help_at_jersey.dev.java.net
> > >
> >
> > Racontez l'histoire au complet avec des photos, directement de votre
> > fenêtre Messenger. Apprenez comment.
> > Windows Live Messenger vous permet de rester en contact plus
> > facilement- apprenez comment!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
        
        
________________________________

        Créez un personnage à votre image pour votre WL Messenger Venez voir <http://go.microsoft.com/?linkid=9656622>