Apache cxf on wls 10.3

I have created an ear for wls using apache cxf 2.2 for web services.
It deploys and works properly on my development machine, windows & jdk 1.6
However when I try to get it to run in my production environment starting the application
fails with the stacktrace below. Production system is RHEL5 x86_64 with jdk 1.6.0_10
I'm at a loss on how to even start troubleshooting this.
Any help is much appreciated
weblogic-application.xml
<prefer-application-packages>
<package-name>antlr.*</package-name>
<package-name>javax.jws.*</package-name>
<package-name>javax.namespace.xml.*</package-name>
<package-name>javax.xml.soap.*</package-name>
</prefer-application-packages>
weblogic.xml
<container-descriptor>
<prefer-web-inf-classes>false</prefer-web-inf-classes>
</container-descriptor>
####<Apr 27, 2009 1:35:56 PM PDT> <Warning> <HTTP> <r01dvrappx01.r01.med.va.gov> <llvamc-web> <STANDBY ExecuteThread: '3' for queue: 'weblogic.kernel.Defau
lt (self-tuning)'> <<WLS Kernel>> <1240864556825> <BEA-101162> <User defined listener org.springframework.web.context.ContextLoaderListener failed: org
.springframework.beans.factory.BeanCreationException: Error creating bean with name 'wsPerformanceMeasureService': Invocation of init method failed; nested e
xception is java.lang.LinkageError: loader constraint violation: loader (instance of weblogic/utils/classloaders/GenericClassLoader) previously initiated loa
ding for a different type with name "javax/xml/soap/MessageFactory".
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'wsPerformanceMeasureService': Invocation of init method failed; neste
d exception is java.lang.LinkageError: loader constraint violation: loader (instance of weblogic/utils/classloaders/GenericClassLoader) previously initiated
loading for a different type with name "javax/xml/soap/MessageFactory"
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1337)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)

After research by Oracle Support it actually turns out that this problem was a combination of factors:
1) some clients were effectively using an invalid certificate so it is corrrect they got an error and everything worked fine when they started using the right certificate
2) it does, however, turn out that, in the case of an error the error handling has been obfuscated in WLS 10.3.6 as compared to WLS 10.3.4 which gives a more descriptive error stating the nature of the problem (missing certificate, invalid certificate, unknown user, ...). Apparently this was deemed a security issue and has thus been replaced by a generic "internal server error". It is however possible to re-activate this older behaviour using a couple of JAVA_OPTS that you pass during server startup:
-Dweblogic.wsee.security.debug=true -Dweblogic.wsee.security.verbose=true
The above reintroduced the behaviour we had in WLS 10.3.4 and thus solves our problem!

Similar Messages

  • Injest XML (JAXB) with Apache CXF on Weblogic 9.2.3

    I have tried all of the suggestions I can find out there, but still can not get Weblogic and CXF to play along when injesting XML.
    CXF is deployed and working in production.
    Now that I want add a method to XML results, I declared with JAX-RS like this:
    @POST
    @Consumes( "application/xml")
    @Path( "{order_id}/" + ANALYSE_PARAM )
    public void reportResult( @PathParam( "order_id") int orderId, AnalyseResults analyseResults ) {
    // NOTE: AnalyseResults is a JAXB object which we've created (i.e. mappings to Java provided)
    However, when this method is invoked, I get this:
    , I get this:
    2011-10-26 14:02:46,766 WARN org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper - WebApplicationException has been caught : no cause is available
    java.lang.IllegalArgumentException: Unable to access unsupported property javax.xml.stream.supportDTD
    at weblogic.xml.stax.ConfigurationContextBase.check(ConfigurationContextBase.java:60)
    at weblogic.xml.stax.ConfigurationContextBase.setProperty(ConfigurationContextBase.java:54)
    at weblogic.xml.stax.XMLStreamInputFactory.setProperty(XMLStreamInputFactory.java:280)
    at org.apache.cxf.staxutils.StaxUtils.createXMLInputFactory(StaxUtils.java:195)
    at org.apache.cxf.staxutils.StaxUtils.getXMLInputFactory(StaxUtils.java:166)
    at org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:1164)
    at org.apache.cxf.jaxrs.provider.JAXBElementProvider.unmarshalFromInputStream(JAXBElementProvider.java:214)
    at org.apache.cxf.jaxrs.provider.JAXBElementProvider.doUnmarshal(JAXBElementProvider.java:180)
    at org.apache.cxf.jaxrs.provider.JAXBElementProvider.readFrom(JAXBElementProvider.java:149)
    at org.apache.cxf.jaxrs.utils.JAXRSUtils.readFromMessageBody(JAXRSUtils.java:1013)
    at org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameter(JAXRSUtils.java:594)
    at org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameters(JAXRSUtils.java:559)
    at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:230)
    at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:88)
    at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
    at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:118)
    at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:208)
    at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
    at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:166)
    at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:113)
    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:184)
    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:107)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:163)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3244)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916)
    I've done all the reading out there and taken all the suggestions:
    - the woodstox and stax2 JARs are on my classpath
    - the weblogic-application.xml file has been modified to include (a number of varieties have been tried):
    <prefer-application-packages>
              <package-name>javax.jws.*</package-name>
              <package-name>javax.xml.*</package-name>
              <package-name>org.apache.*</package-name>
    </prefer-application-packages>
    I understand the root of the issue: the System properties / JAR files which are first read by Weblogic force the loading of the weblogic.xml.stax.XMLStreamInputFactory as "the way" to create StAX InputFactories.
    But ... that Factory (for whatever reason) is incompatible with the way that CXF invokes it.
    So ... is there ANY way to get WebLogic to allow CXF to use an alternate parser?

    A support ticket (SR 3-4866617511) with Oracle has confirmed that the Weblogic StAX parser has a defect. A patch is available for WLS 10mp2 (and possibly for 9.2.4).
    However, it is also possible to work around with a different StAX implementation.
    Our choice was Woodstox and after putting the JARs (Woodstox and StaX2 mentioned below plus the xml-apis.jar and a xerces implementation JAR) in WEB-INF/lib and removing the changes to weblogic-application.xml (below), the magic was changing WEB-INF/weblogic.xml file (as described in http://download.oracle.com/docs/cd/E13222_01/wls/docs92/programming/classloading.html )to include:
    <container-descriptor>
    <servlet-reload-check-secs>-1</servlet-reload-check-secs>
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
    Why does this work?
    By using the "prefer-web-inf-classes" node, the WL Classloader looks first in the JAR files of the Web Application (rather than it's own classes). In this case it finds the META-INF/services/javax.xml.stream.XMLInputFactory from the Woodstox JAR (rather than the one from weblogic.jar). Note how this is not just about loading classes from the WEB-INF/lib JARs first ... it also affects how Weblogic interacts with the JAR Service Provider Interface (SPI ... http://docs.oracle.com/javase/tutorial/sound/SPI-intro.html).
    However, the XercesImpl.jar is becomes necessary because when running without it, the following error occurs:
    javax.xml.datatype.FactoryFinder:Using context class loader: weblogic.utils.classloaders.ChangeAwareClassLoader@1a3c1d6 finder: weblogic.utils.classloaders.CodeGenClassFinder@488280 annotation: appsdirtbiis_dir@btb-ws/ic
    javax.xml.datatype.FactoryFinder:found null in $java.home/jaxp.properties
    javax.xml.datatype.FactoryFinder:loaded from fallback value: org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl
    <Nov 8, 2011 11:58:41 AM EST> <Error> <HTTP> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@e02837 - appName: '_appsdir_tbiis_dir', name: '/btb-ws/ic', context-path: '/btb-ws/ic'] Root cause of ServletException.
    java.lang.Error: javax.xml.datatype.DatatypeConfigurationException: Provider org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl not found
    Truncated. see log file for complete stacktrace
    >
    THAT issue is due to the fact that the javaee-5.0.5-api.jar's implementation of javax.xml.datatype.DatatypeFactory provides org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl (rather than com.sun.org.apache.xerces.internal.jaxp.datatype.DatatypeFactoryImpl which is the fallback for the JDK 1.5 implementation that ships with WL 9.2) as the fallback value.
    However, this mechanism is only used because none of the JARs (either in my app or in the standard WL distro) contain an file named "META-INF/services/java.xml.datatype.DatatypeFactory" which points to an existing Xerces implementation.
    The xml-apis.jar was necessary because of unit test I was running on the package. YMMV with the xml-apis.jar.

  • How to call Apache CXF webservice/Spring/jms from Oracle BPM 10g

    Hi , I am new to Oracle BPM and trying to develop simple POC. Can anybody give me some pointers on how to call a webservice whcich is based on Apache CXF/Spring/WSDL/jms as transport from oracle bpm 10g

    You should ask this question in the JDeveloper or BI Publisher forum.

  • Cómo desplegar Apache CXF Web Services en OC4J

    Hola a todos tengo este problema:
    He realizado una web service con apache CXF, al desplegarlo en tomcat todo funciona bien
    pero cuando lo despliego en oc4j 10g R2 no funciona, he estado leyendo y me dicen que tengo que configurar oc4j para cxf
    pero no se que configuraciones realizar, espero me ayuden...
    Saludos a todos

    The OC4J 10.1.3.4 release has moved the out of the box libraries OC4J supplies for JAX-RPC/WS into a named/versioned shared-library called "oracle.ws.jaxrpc".
    This means you can now easily "unimport" these out of the box implementation from the view of an application, and replace them with newer implementations such as that provided by the Apache CXF distribution by publishing it as a corresponding shared-library and importing that into the application.
    See the documentation for 10.1.3.4 which describes this: http://download.oracle.com/docs/cd/E12524_01/web.1013/e12290/opensrc.htm#BABDDAIF
    -steve-

  • JDeveloper 10.1.3 embeded OC4J can't host Apache CXF Service.

    I use JDeveloper 10.1.3 to created a test web application, which uses Spring and Apache CXF 2.0.3 hosting a sample web service, but when the application start the following error occurs:
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    **** Unable to obtain password from principals.xml. Using default.
    D:\Program Files\Oracle JDeveloper\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\config>
    "D:\Program Files\Oracle JDeveloper\jdk\bin\javaw.exe" -ojvm "-Doracle.home=D:\Program Files\Oracle JDeveloper" -classpath "D:\Program Files\Oracle JDeveloper\j2ee\home\oc4j.jar;D:\Program Files\Oracle JDeveloper\jdev\lib\jdev-oc4j-embedded.jar" -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config "D:\Program Files\Oracle JDeveloper\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\config\server.xml"
    [waiting for the server to complete its initialization...]
    2008-1-30 21:31:23 com.evermind.server.XMLDataSourcesConfig parseRootNode
    信息: Legacy datasource detected...attempting to convert to new syntax.
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 11953 ms.
    Target URL -- http://192.168.0.1:8988/wstest/servlet1
    08/01/30 21:31:31 Oracle Containers for J2EE 10g (10.1.3.0.0) initialized
    2008-1-30 21:31:38 org.springframework.web.context.ContextLoader initWebApplicationContext
    信息: Root WebApplicationContext: initialization started
    2008-1-30 21:31:38 org.springframework.context.support.AbstractApplicationContext prepareRefresh
    信息: Refreshing [email protected]1de: display name [Root WebApplicationContext]; startup date [Wed Jan 30 21:31:38 CST 2008]; root of context hierarchy
    2008-1-30 21:31:38 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
    信息: Loading XML bean definitions from ServletContext resource [WEB-INF/applicationContext.xml]
    2008-1-30 21:31:39 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
    信息: Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
    2008-1-30 21:31:39 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
    信息: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-soap.xml]
    2008-1-30 21:31:39 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
    信息: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-servlet.xml]
    2008-1-30 21:31:39 org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
    信息: Bean factory for application context [[email protected]1de]: org.springframework.beans.factory.support.DefaultListableBeanFactory@2b6
    2008-1-30 21:31:40 org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
    信息: Bean 'org.apache.cxf.bus.spring.Jsr250BeanPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    2008-1-30 21:31:40 org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
    信息: Bean 'org.apache.cxf.bus.spring.BusExtensionPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    2008-1-30 21:31:40 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
    信息: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@2b6: defining beans [cxf,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.transport.servlet.ServletTransportFactory,helloWorld]; root of factory hierarchy
    2008-1-30 21:31:40 org.apache.cxf.configuration.spring.ConfigurerImpl <init>
    信息: Could not find the configuration file cxf.xml on the classpath.
    2008-1-30 21:31:41 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons
    信息: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@2b6: defining beans [cxf,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.transport.servlet.ServletTransportFactory,helloWorld]; root of factory hierarchy
    2008-1-30 21:31:41 org.springframework.web.context.ContextLoader initWebApplicationContext
    严重: Context initialization failed
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.wsdl.WSDLManager' defined in class path resource [META-INF/cxf/cxf.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]: Constructor threw exception; nested exception is java.lang.ClassCastException: oracle.xml.parser.v2.DTD
    Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]: Constructor threw exception; nested exception is java.lang.ClassCastException: oracle.xml.parser.v2.DTD
    Caused by: java.lang.ClassCastException: oracle.xml.parser.v2.DTD
         at java.util.XMLUtils.load(XMLUtils.java:61)
         at java.util.Properties.loadFromXML(Properties.java:701)
         at org.apache.cxf.common.util.PropertiesLoaderUtils.loadAllProperties(PropertiesLoaderUtils.java:71)
         at org.apache.cxf.wsdl11.WSDLManagerImpl.registerInitialExtensions(WSDLManagerImpl.java:209)
         at org.apache.cxf.wsdl11.WSDLManagerImpl.<init>(WSDLManagerImpl.java:97)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85)
         at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:756)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:721)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:384)
         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
         at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
         at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
         at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:50)
         at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1015)
         at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:649)
         at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:428)
         at com.evermind.server.Application.getHttpApplication(Application.java:512)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1975)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1958)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.getHttpApplication(HttpSite.java:1910)
         at com.evermind.server.http.HttpSite.getApplication(HttpSite.java:427)
         at com.evermind.server.http.HttpRequestHandler.resolveApplication(HttpRequestHandler.java:395)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:437)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
         at java.lang.Thread.run(Thread.java:595)
    You can following the steps in http://cwiki.apache.org/CXF20DOC/writing-a-service-with-spring.html to reproduce the error.

    But services using direct Endpoint publishing can work, following the steps in:
    http://cwiki.apache.org/CXF20DOC/a-simple-jax-ws-service.html

  • Web services with Apache CXF

    :confused; Has anyone worked with apache CXF as a backend web
    service. I loaded the wsdl in with the data import tool and it did
    grab the wsdl correctly. I ended up running a network sniffer to
    see if the actual values being passwd to the backend were being
    done correctly. However my apache CXF puked with null values. Is
    the data import tool ready for prime time ? Anyone ?
    Thanks
    Here is the dump of the network.
    0x0350: 6164 6420 786d 6c6e 733a 746e 733d 2268
    add.xmlns:tns="h
    0x0360: 7474 703a 2f2f 4465 6661 756c 744e 616d
    ttp://DefaultNam
    0x0370: 6573 7061 6365 223e 0a20 2020 2020 203c
    espace">.......<
    0x0380: 746e 733a 6164 643e 0a20 2020 2020 2020
    tns:add>........
    0x0390: 203c 746e 733a 6172 6730 3e35 3c2f 746e
    .<tns:arg0>5</tn
    0x03a0: 733a 6172 6730 3e0a 2020 2020 2020 2020
    s:arg0>.........
    0x03b0: 3c74 6e73 3a61 7267 313e 363c 2f74 6e73
    <tns:arg1>6</tns
    0x03c0: 3a61 7267 313e 0a20 2020 2020 203c 2f74
    :arg1>.......</t
    0x03d0: 6e73 3a61 6464 3e0a 2020 2020 3c2f 746e
    ns:add>.....</tn
    0x03e0: 733a 6164 643e 0a20 203c 2f53 4f41 502d
    s:add>...</SOAP-
    0x03f0: 454e 563a 426f 6479 3e0a 3c2f 534f 4150
    ENV:Body>.</SOAP
    0x0400: 2d45 4e56 3a45 6e76 656c 6f70 653e
    -ENV:Envelope>

    :confused; Has anyone worked with apache CXF as a backend web
    service. I loaded the wsdl in with the data import tool and it did
    grab the wsdl correctly. I ended up running a network sniffer to
    see if the actual values being passwd to the backend were being
    done correctly. However my apache CXF puked with null values. Is
    the data import tool ready for prime time ? Anyone ?
    Thanks
    Here is the dump of the network.
    0x0350: 6164 6420 786d 6c6e 733a 746e 733d 2268
    add.xmlns:tns="h
    0x0360: 7474 703a 2f2f 4465 6661 756c 744e 616d
    ttp://DefaultNam
    0x0370: 6573 7061 6365 223e 0a20 2020 2020 203c
    espace">.......<
    0x0380: 746e 733a 6164 643e 0a20 2020 2020 2020
    tns:add>........
    0x0390: 203c 746e 733a 6172 6730 3e35 3c2f 746e
    .<tns:arg0>5</tn
    0x03a0: 733a 6172 6730 3e0a 2020 2020 2020 2020
    s:arg0>.........
    0x03b0: 3c74 6e73 3a61 7267 313e 363c 2f74 6e73
    <tns:arg1>6</tns
    0x03c0: 3a61 7267 313e 0a20 2020 2020 203c 2f74
    :arg1>.......</t
    0x03d0: 6e73 3a61 6464 3e0a 2020 2020 3c2f 746e
    ns:add>.....</tn
    0x03e0: 733a 6164 643e 0a20 203c 2f53 4f41 502d
    s:add>...</SOAP-
    0x03f0: 454e 563a 426f 6479 3e0a 3c2f 534f 4150
    ENV:Body>.</SOAP
    0x0400: 2d45 4e56 3a45 6e76 656c 6f70 653e
    -ENV:Envelope>

  • Org.apache.cxf

    I want to use org.apache.cxf.ws.security.wss4j.WSS4JOutIntercept or , org.apache.cxf.endpoint.Client, org.apache.cxf.endpoint.Endpoint. But i am not able to find out the jar files to make JAVA recognize this. I am not able to download Apache CXF Plugin for Eclipse too
    How will i work with it ?
    Please help me

    It's all on the Apache CXF website. Have you looked there?

  • Where is the Apache home for WLS 10.3.5.0?

    Hi everyone,
    Where is the ${APACHE_HOME} on WLS 10.3.5.0? Also how do I check the version of apache?
    -=Joe

    Hi John,
    Thanks for your response. I am talking Apache Server.
    I definitely get the feeling that Apache isn't installed with WebLogic out of the box.
    But then when I read through some of the WebLogic documentation, I keep seeing references to Apache Server Home.
    For example, http://download.oracle.com/docs/cd/E12840_01/wls/docs103/plugins/apache.html
    I want to do exactly what they have in that document, but since I don't have apache, I haven't gotten that far.
    Any idea why that document acts like I should already have apache installed? Was it part of an older build of WLS?
    Thanks for your help.
    -=Joe

  • Excluding types with Apache 1.3 WLS Plugin for 8.1

    We're running the Apache 1.3 plug in for WLS 8.1
    <IfModule mod_weblogic.c>
    WebLogicCluster pfate:7000,pfate2:7000
    MatchExpression *.jsp
    MatchExpression *.do
    </IfModule>
    <Location /eCMS>
    SetHandler weblogic-handler
    </Location>
    It's my understanding that this should basically only let WLS handle the JSP
    and Struts .DO actions.
    But, we have other files that all seem to be going to weblogic for
    servicing.
    Specifically, we have an Apache module that is tied to a different
    extension, but that module is not being called if the extension lives within
    our "/eCMS" Location.
    The module is called for files outside of the /eCMS Location.
    Can someone provide some examples on how we can get this integration to
    work?
    Thanx!
    Regards,
    Will Hartung
    ([email protected])

    You don't need the <Location /eMCS> block since you're proxying by mime type. Remove it and you should be ok.

  • Apache Plugin for WLS 6.1 - Timeout Problem

    Hi!
    We are discovering some problems in a WLS-Cluster setup at one of our customers.
    Environment: 2 x WebLogic Server 6.1 SP1 09/18/2001 14:28:44 #138716, running
    on Solaris 8 machines. (2 x Managed, 1 x Admin) The WLS are served by an Apache
    Server (Solaris8), running the DSO-Plugin from 6.1 SP1. (Build date/time: Sep
    4 2001 16:45:41)
    Our problem is as following: Due to other problems (network), we sometimes have
    timeouts when the Plugin tries to contact the WLS. As a result, the client is
    transferred to the next server in the cluster, which does not have the session.
    (The Session is not (yet) clusterable)
    Questions: How long is this timeout? Can it be configured?
    As a clarification: I am not talking about the 'ConnectTimeoutSecs', this one
    is 10 seconds. And the 'failover' to the next server in the cluster happens almost
    immediately. Also at this point there is no way for us to solve either the network-problems
    or make the session clusterable.
    We simply need a way to make a client 'sticky' to one Weblogic-Server.
    Any help would be greatly welcome!! Many thanx, Andreas Liebrich
    I will attach the Config as shown in __WebLogicBridgeConfig:
    WebLogic Cluster List:
    Host: 'x.y.z.128' Port: 7001 Primary
    General Server List:
    Host: 'x.y.z.145' Port: 7001 Status: OK
    Host: 'x.y.z.128' Port: 7001 Status: OK
    ConnectRetrySecs: '2'
    ConnectTimeoutSecs: '10'
    CookieName: JSESSIONID Debug: '0'
    DebugConfigInfo: 'ON'
    DefaultFileName: ''
    DisableCookie2Server: OFF
    DynamicServerList: 'ON'
    ErrorPage: ''
    FileCaching: ON
    HungServerRecoverSecs: '300'
    Idempotent: ON
    KeepAliveEnabled: OFF
    KeepAliveSecs: 0
    MaxPostSize: '0'
    MaxSkips: '10'
    PathPrepend: ''
    PathTrim: ''
    QueryFromRequest: OFF
    SecureProxy: 'OFF'
    StatPath: false
    WLLogFile: '/log/itest/www1.wlproxy.log'
    WLProxySSL: OFF

    Nope.
    If the plugin is unable to make a socket connection to WLS, it will try the
    next server in the list.
    I would suggest working on the WLS side and if a sessionId does come into
    the server and it does not exist, then reject that.
    Otherwise, you will have to either use clustering, or a single server in the
    httpd.conf for apache.
    Eric
    "Andreas Liebrich" <[email protected]> wrote in message
    news:[email protected]...
    >
    Hi!
    We are discovering some problems in a WLS-Cluster setup at one of ourcustomers.
    >
    >
    Environment: 2 x WebLogic Server 6.1 SP1 09/18/2001 14:28:44 #138716,running
    on Solaris 8 machines. (2 x Managed, 1 x Admin) The WLS are served by anApache
    Server (Solaris8), running the DSO-Plugin from 6.1 SP1. (Build date/time:Sep
    4 2001 16:45:41)
    Our problem is as following: Due to other problems (network), we sometimeshave
    timeouts when the Plugin tries to contact the WLS. As a result, the clientis
    transferred to the next server in the cluster, which does not have thesession.
    (The Session is not (yet) clusterable)
    Questions: How long is this timeout? Can it be configured?
    As a clarification: I am not talking about the 'ConnectTimeoutSecs', thisone
    is 10 seconds. And the 'failover' to the next server in the clusterhappens almost
    immediately. Also at this point there is no way for us to solve either thenetwork-problems
    or make the session clusterable.
    We simply need a way to make a client 'sticky' to one Weblogic-Server.
    Any help would be greatly welcome!! Many thanx, Andreas Liebrich
    I will attach the Config as shown in __WebLogicBridgeConfig:
    WebLogic Cluster List:
    Host: 'x.y.z.128' Port: 7001 Primary
    General Server List:
    Host: 'x.y.z.145' Port: 7001 Status: OK
    Host: 'x.y.z.128' Port: 7001 Status: OK
    ConnectRetrySecs: '2'
    ConnectTimeoutSecs: '10'
    CookieName: JSESSIONID Debug: '0'
    DebugConfigInfo: 'ON'
    DefaultFileName: ''
    DisableCookie2Server: OFF
    DynamicServerList: 'ON'
    ErrorPage: ''
    FileCaching: ON
    HungServerRecoverSecs: '300'
    Idempotent: ON
    KeepAliveEnabled: OFF
    KeepAliveSecs: 0
    MaxPostSize: '0'
    MaxSkips: '10'
    PathPrepend: ''
    PathTrim: ''
    QueryFromRequest: OFF
    SecureProxy: 'OFF'
    StatPath: false
    WLLogFile: '/log/itest/www1.wlproxy.log'
    WLProxySSL: OFF

  • Not able to start OHS Apache Server in WLS EM console....

    Hi all,
    WLS 10.3.5 with Web Tier 11g ( 11.1.1.5) installed.
    I installed it with OHS and Web Cache and associated with domain.
    Now I go to FMW control and try to start the OHS and it tells me:
    Could not get secure socket for host and port 6701. The remote OPMN server is probably not running or the OPMN mbean is not properly configured. See the adminserver log for more details."
    The ports are opened...and also AdminServer log shows nothing:
    Snippet:
    :44 AM CDT> <Info> <Health> <wd0847.us.oracle.com> <AdminServer> <weblogic.GCMonitor> <<anonymous>> <> <761b3eb9132b663d:-e7f2f3f:13339460297:-8000-0000000000000012> <1319693324886> <BEA-310002> <20% of the total memory in the server is free>
    ####<Oct 27, 2011 12:34:44 AM CDT> <Info> <Health> <wd0847.us.oracle.com> <AdminServer> <weblogic.GCMonitor> <<anonymous>> <> <761b3eb9132b663d:-e7f2f3f:13339460297:-8000-0000000000000012> <1319693684899> <BEA-310002> <43% of the total memory in the server is free>
    ####<Oct 27, 2011 12:46:44 AM CDT> <Info> <Health> <wd0847.us.oracle.com> <AdminServer> <weblogic.GCMonitor> <<anonymous>> <> <761b3eb9132b663d:-e7f2f3f:13339460297:-8000-0000000000000012> <1319694404922> <BEA-310002> <24% of the total memory in the server is free>
    ####<Oct 27, 2011 12:51:44 AM CDT> <Info> <Health> <wd0847.us.oracle.com> <AdminServer> <weblogic.GCMonitor> <<anonymous>> <> <761b3eb9132b663d:-e7f2f3f:13339460297:-8000-0000000000000012> <1319694704935> <BEA-310002> <38% of the total memory in the server is free>
    ####<Oct 27, 2011 12:53:44 AM CDT> <Info> <Health> <wd0847.us.oracle.com> <AdminServer> <weblogic.GCMonitor> <<anonymous>> <> <761b3eb9132b663d:-e7f2f3f:13339460297:-8000-0000000000000012> <1319694824939> <BEA-310002> <20% of the total memory in the server is free>
    ####<Oct 27, 2011 12:54:44 AM CDT> <Info> <Health> <wd0847.us.oracle.com> <AdminServer> <weblogic.GCMonitor> <<anonymous>> <> <761b3eb9132b663d:-e7f2f3f:13339460297:-8000-0000000000000012> <1319694884944> <BEA-310002> <33% of the total memory in the server is free>
    AdminServer-diagnostic:
    3d:-e7f2f3f:13339460297:-8000-0000000000003c3d,0] [APP: em] The region component with id: emTemplate:chartRegion1 has detected a page fragment with multiple root components. Fragments with more than one root component may not display correctly in a region and may have a negative impact on performance. It is recommended that you restructure the page fragment to have a single root component.
    [2011-10-27T00:55:23.769-05:00] [AdminServer] [WARNING] [ADF_FACES-60099] [oracle.adfinternal.view.faces.renderkit.rich.RegionRenderer] [tid: [ACTIVE].ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 761b3eb9132b663d:-e7f2f3f:13339460297:-8000-0000000000003c43,0] [APP: em] The region component with id: emTemplate:chartRegion has detected a page fragment with multiple root components. Fragments with more than one root component may not display correctly in a region and may have a negative impact on performance. It is recommended that you restructure the page fragment to have a single root component.
    [2011-10-27T00:55:23.794-05:00] [AdminServer] [WARNING] [ADF_FACES-60099] [oracle.adfinternal.view.faces.renderkit.rich.RegionRenderer] [tid: [ACTIVE].ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: *761b3eb9132b663d:-e7f2f3f:13339460297:-8000-0000000000003c43,0] [APP: em] The region component with id: emTemplate:chartRegion1 has detected a page fragment with multiple root components. Fragments with more than one root component may not display correctly in a region and may have a negative impact on performance. It is recommended that you restructure the page fragment to have a single root component.
    ******* OPMN Log********
    [2011-10-24T23:50:21][opmn][NOTIFICATION:1][522][OPMN]PM state directory exists: /u02/oracle/Oracle/Middleware/Oracle_WT1/instances/instance1/config/OPMN/opmn/states
    [2011-10-24T23:50:21][opmn][NOTIFICATION:1][675][OPMN][code:pm-internal]OPMN server ready.  Request handling enabled.
    [2011-10-24T23:50:23][opmn][NOTIFICATION:1][90][OPMN][code:ons-internal]ONS server initiated
    [2011-10-24T23:50:23][opmn][NOTIFICATION:1][522][OPMN][code:pm-internal]PM state directory exists: /u02/oracle/Oracle/Middleware/Oracle_WT1/instances/instance1/config/OPMN/opmn/states
    [2011-10-24T23:50:23][opmn][NOTIFICATION:1][675][OPMN][code:pm-internal]OPMN server ready.  Request handling enabled.
    [2011-10-24T23:50:24][opmn][NOTIFICATION:1][90][OPMN][code:ons-internal]ONS server initiated
    [2011-10-24T23:50:24][opmn][NOTIFICATION:1][522][OPMN][code:pm-internal]PM state directory exists: /u02/oracle/Oracle/Middleware/Oracle_WT1/instances/instance1/config/OPMN/opmn/states
    [2011-10-24T23:50:24][opmn][NOTIFICATION:1][675][OPMN][code:pm-internal]OPMN server ready.  Request handling enabled.
    OPMN.out *****
    ail -f opmn.out
    11/10/24 17:57:20 OPMN worker process exited with status 8b. Restarting.
    11/10/24 17:57:21 OPMN worker process exited with status 8b. Restarting.
    11/10/24 17:57:22 OPMN worker process terminated with signal 11 7 times in 7 seconds -- aborting!
    11/10/24 23:50:17 OPMN worker process exited with status 8b. Restarting.
    11/10/24 23:50:18 OPMN worker process exited with status 8b. Restarting.
    11/10/24 23:50:19 OPMN worker process exited with status 8b. Restarting.
    11/10/24 23:50:20 OPMN worker process exited with status 8b. Restarting.
    11/10/24 23:50:22 OPMN worker process exited with status 8b. Restarting.
    11/10/24 23:50:23 OPMN worker process exited with status 8b. Restarting.
    11/10/24 23:50:25 OPMN worker process terminated with signal 11 7 times in 8 seconds -- aborting!
    so you can see , not much there.....
    any ideas, please let me know....                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    As there may be multiple instance homes and each has its own opmn configuration on your host, you may need to try this from your terminal console
    export WT_HOME=/u02/oracle/Oracle/Middleware/Oracle_WT1
    export ORACLE_INSTANCE=$WT_HOME/instances/instance1
    export $ORACLE_HOME=$WT_HOME
    $ORACLE_HOME/opmn/bin/opmnctl status
    If you get the message
    opmnctl status: opmn is not running,
    then
    $ORACLE_HOME/opmn/bin/opmnctl start
    $ORACLE_HOME/opmn/bin/opmnctl status
    If you see that one or more components are "Down", then you will need to do:
    $ORACLE_HOME/opmn/bin/opmnctl startproc process-type=WebCache
    $ORACLE_HOME/opmn/bin/opmnctl startproc ias-component=ohs1
    $ORACLE_HOME/opmn/bin/opmnctl startproc process-type=WebCache-admin
    Finally, you should see something like:
    $ORACLE_HOME/opmn/bin/opmnctl status
    Processes in Instance: instance1
    --------------------------------------------------------------+---------
    ias-component | process-type | pid | status
    --------------------------------------------------------------+---------
    webcache1 | WebCache-admin | 21846 | Alive
    webcache1 | WebCache | 21796 | Alive
    ohs1 | OHS | 21806 | Alive
    Edited by: steve_newguy on Feb 27, 2012 12:53 PM

  • Problem faced deploying apache cxf restful webservice in weblogic 12c(12.1.3)

    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: "app.war". 
    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.
    Is there any way to tell weblogic to not look for Jersey jars that are already in its modules folder.
    Note: I have following weblogic.xml present in war file:
    <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>
      </container-descriptor>
    </weblogic-web-app>
    Please suggest!!
    Thanks, Puneet.

    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: "app.war". 
    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.
    Is there any way to tell weblogic to not look for Jersey jars that are already in its modules folder.
    Note: I have following weblogic.xml present in war file:
    <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>
      </container-descriptor>
    </weblogic-web-app>
    Please suggest!!
    Thanks, Puneet.

  • Unable to deploy CXF WebService WAR to Weblogic

    Hi,
    I tried creating a web service using Apache CXF library and deploying it to the weblogic server. Deployment failed with the following exception:
    java.lang.NoSuchMethodError: portName
    at org.apache.cxf.jaxws.support.JaxWsImplementorInfo.getEndpointName(Jax
    WsImplementorInfo.java:154)
    at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:290)
    at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:259)
    at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:209)
    at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:404)
    This seems to be because of the older version of geronimo jar ported with Weblogic 9.2.This has a work around to load the web-inf/lib classes rather than from the application server. This is placed in the WEB-INF/weblogic.xml of my WAR.
    <container-descriptor>
              <prefer-web-inf-classes>true</prefer-web-inf-classes>
         </container-descriptor>
    Even then I get the same error. Suggestions are welcome. How should I get rid of this error.
    - Arvind

    Arvind,
    Please add the following in the weblogic-application.xml under EAR/META-INF directory.
    I am not sure which apache package needs to be added. I presume geronimo class package
    <wls:prefer-application-packages>
        <wls:package-name>antlr.*</wls:package-name>
        <wls:package-name>org.apache.xml.security.*</wls:package-name>
      </wls:prefer-application-packages>Thanks and regards,
    Pazhanikanthan. P

  • CXF & WLS10 - InstantiationException

    Hi All,
    I'm facing the following exception when I build the webservice from the CXF sample hello_world.wsdl and try to deploy on WebLogic 10
    <Aug 15, 2008 12:20:34 PM BST> <Error> <HTTP> <BEA-101125> <[weblogic.servlet.internal.WebAppServletContext@14627f - appName: 'HelloWorld', name: 'HelloWorldWeb', context-path: '/HelloWorldWeb'] Error occurred while instantiating servlet: "org.apache.cxf.js.rhino.DOMPayloadProvider".
    java.lang.InstantiationException: org.apache.cxf.js.rhino.DOMPayloadProvider
    at java.lang.Class.newInstance0(Class.java:335)
    at java.lang.Class.newInstance(Class.java:303)
    at weblogic.servlet.internal.WebComponentContributor.getNewInstance(WebComponentContributor.java:187)
    at weblogic.servlet.internal.WebComponentContributor.createServletInstance(WebComponentContributor.java:203)
    at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:254)
    I've used CXF wsdl2java converter to build the server side code.
    My EAR model is as follows:
    HelloWorld.ear
    -META-INF
    -weblogic-application.xml
    -HelloWorldWeb.war
    -wsdl
    -hello_world.wsdl
    -WEB-INF
    -lib
    -classes
    -web.xml
    -bean.xml
    The bean XML has the following entry:
    <import resource="classpath:META-INF/cxf/cxf.xml" />
    <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
    <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
    <jaxws:endpoint id="HelloWorld"
    implementor="org.apache.hello_world_soap_http.GreeterImpl"
    address="/HelloWorld">
    </jaxws:endpoint>
    weblogic-application.xml has the following entry:
    <application-param>
    <param-name>webapp.encoding.default</param-name>
    <param-value>UTF-8</param-value>
    </application-param>
    <prefer-application-packages>
    <package-name>javax.jws.*</package-name>
    </prefer-application-packages>
    Workaround:
    I've modified the DOMPayloadProvider source to include default constructor, which allowed me to deploy the application on to WebLogic 10. However, CXF don't believe this is their problem, so won't make the same change in their code (see https://issues.apache.org/jira/browse/CXF-1750). Is this a WLS bug?
    P.S. The application works fine on Tomcat 6.0

  • Getting error in cxf web service with spring 3.0.

    I developed a web service using cxf. Implemented the client codes to invoke the web service.
    The client codes running fine through JUnit test case but whenever I try to invoke the client through another service (after actual UI integration),
    its throwing error while initializing the service. I'm using cxf 2.2.7 with spring 3.0
         // configuration stuffs
         public static final QName SERVICE_NAME = new QName("http://perksplus.com/WebServices/HealthPrize/Rewards/", "Rewards");
         //@Value("@{perks.api.wsdl.location}")
         private String wsdlLocation="https://www.perksplus.com/WebServices/HealthPrize/Rewards.asmx?wsdl";
         protected Rewards loadWSDL(){
            URL wsdlURL = null;
              try {               
                  setApplicationContext(applicationContext);
                  Resource lResource = getApplicationContext().getResource(wsdlLocation);
                   wsdlURL = lResource.getURL();
              } catch (MalformedURLException e) {
                   LOG.error("Invalid wsdl URL"+e);
              } catch (IOException e) {
                   LOG.error("Error while loading the file"+e);
              this.rewards = new Rewards(wsdlURL, SERVICE_NAME); *// ERROR THROWING AT THIS LINE*
              return this.rewards;
         }Error stacktrace
    javax.servlet.ServletException: org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.LinkageError: loader constraint violation: when resolving overridden method "org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.doLoadBeanDefinitions(Lorg/xml/sax/InputSource;Lorg/springframework/core/io/Resource;)I" the class loader (instance of org/apache/catalina/loader/WebappClassLoader) of the current class, org/apache/cxf/bus/spring/ControlledValidationXmlBeanDefinitionReader, and its superclass loader (instance of org/apache/catalina/loader/StandardClassLoader), have different Class objects for the type org/springframework/core/io/Resource used in the signature
    Can someone please help me here, to figure out whats wrong I'm doing or if I' m missing anything which causing this error?
    (Thanks in adv).

    My understanding of exception stack trace is that the two class loader are unable to match the argument type org/springframework/core/io/Resource in original method and its overridden method. And original method class loader and overridden method class loader are different.
    This normally happens due to class clashes.

Maybe you are looking for

  • Scene Graph traversal. Getting all the children of a node recursively

    Hi, Requirement: To resize all the controls of a scene (including controls that contain text like label, button) as per the scene size Approach: To implement the above requirement (see code snippet below), I added Listeners for width and height prope

  • Acknowledgement File receiver adapter

    Hi KP's, Is there a possibility to send an acknowledgement when the file adapter has processed the file succesfully or is there a possibility to send an error message when the file adapter has failed to process the message (when he is not able to pos

  • App Store badge count shows the wrong number in iOS 8.0.2

    Just updated to iOS 8.0.2 on both my iPhone 5 and iPad Air and the App Store badge app count still shows the number of apps that had updates even though they were updated when syncing with my Mac. When you launch the App Store it quickly shows "Updat

  • STO PGI error

    Dear Gurus, I am trying to do PGI for plant to plant stock transfer order, but I am getting an error message "the purchase order does not contain any items for stock transfer" The steps that I doing are, 1. Create a stock transfer order with document

  • Minimum Font Size doesn't work

    I've set Tools > Options > Content : Fonts & Colors > Advanced > Minimum Font Size to 10 pt, but when I use Zoom Out, I get smaller fonts: The relation between font sizes on a page is kept. What I want is FF 1.5 behavior: Minimum Font Size is honored