cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dinesh (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-5991) ClassCastException: com.ctc.wst x.stax.WstxInputFactory cannot be cast to javax.xml.stream.XMLInputFactory
Date Mon, 08 Sep 2014 20:23:28 GMT

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

Dinesh commented on CXF-5991:
-----------------------------


When loading the below file then above given error observed:
<!-- $Header:$ $Log:$ -->
<!-- This file is used to configure the cxf configuration like interceptors 
	and validations. -->
<beans xmlns='http://www.springframework.org/schema/beans'
	xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:beans='http://www.springframework.org/schema/beans'
	xmlns:jaxws='http://cxf.apache.org/jaxws' xmlns:sec="http://cxf.apache.org/configuration/security"
	xmlns:http="http://cxf.apache.org/transports/http/configuration"
	xsi:schemaLocation='http://www.springframework.org/schema/beans
  http://www.springframework.org/schema/beans/spring-beans.xsd
  http://cxf.apache.org/jaxws
  http://cxf.apache.org/schemas/jaxws.xsd
  http://cxf.apache.org/configuration/security
  		      http://cxf.apache.org/schemas/configuration/security.xsd
			  http://www.springframework.org/schema/web-services/web-services-2.0.xsd
           http://cxf.apache.org/transports/http/configuration
              http://cxf.apache.org/schemas/configuration/http-conf.xsd'>

	<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" />

	<!-- one or more jaxws:endpoint POJO declarations -->
	<jaxws:endpoint id='CPGService'
		implementor='com.bankserv.cpg.ws.service.CPGServiceImpl' address="/CPGService"
		serviceName="tns:CPGService" endpointName="tns:CPGServiceImplPort12"
		xmlns:tns="http://service.ws.cpg.bankserv.com/">
		<jaxws:features>
			<bean class="org.apache.cxf.feature.LoggingFeature" />
		</jaxws:features>
		<!-- <jaxws:invoker>
			<bean class='org.jboss.wsf.stack.cxf.InvokerJSE' />
		</jaxws:invoker> -->
		<!-- Interceptors declaration starts here -->
		<jaxws:inInterceptors>
			<bean class="com.bankserv.cpg.ws.interceptor.CPGValidationInterceptor" />
		</jaxws:inInterceptors>
	</jaxws:endpoint>
	<!-- <jaxws:invoker> <bean class="org.apache.cxf.service.invoker.BeanInvoker">

		<constructor-arg> <bean class="com.bankserv.cpg.ws.service.CPGServiceImpl" 
		/> </constructor-arg> </bean> </jaxws:invoker> -->


	<!-- Interceptors declaration starts here -->
	<!-- <jaxws:inInterceptors> <bean class="com.bankserv.cpg.ws.interceptor.CPGValidationInterceptor"

		/> </jaxws:inInterceptors> -->
	<!-- Interceptors declaration ends here -->

	<!-- <jaxws:features> <bean class="org.apache.cxf.feature.LoggingFeature" 
		/> </jaxws:features> </jaxws:endpoint> -->
</beans>

> ClassCastException: com.ctc.wst x.stax.WstxInputFactory cannot be cast to javax.xml.stream.XMLInputFactory
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-5991
>                 URL: https://issues.apache.org/jira/browse/CXF-5991
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.3
>         Environment: Weblogic12.1.3, Jdk1.7 and CXF2.3 and Windows env
>            Reporter: Dinesh
>            Priority: Blocker
>             Fix For: Invalid
>
>
> Hi,
> When trying to deploy the CXF2.3 service  on weblogic 12.1.3 and jdk1.7 so causing thje
below issue.
> weblogic.management.DeploymentException: com.sun.xml.ws.transport.http.servlet.WSServletException:
WSSERVLET11: failed to parse runtime descriptor: java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory
cannot be cast to javax.xml.stream.XMLInputFactory
> After going through few forum site not got exact solution. After doing any changes in
application like in weblogic.mxl class loader false  or removing anb suggested jar from project
getting the below error:
> 	  weblogic.management.DeploymentException: com.sun.xml.ws.transport.http.servlet.WSServletException:
WSSERVLET11: failed to parse runtime descriptor: invalid element "{http://www.springframework.org/schema/beans}beans"
in runtime descriptor (line 4)
> 	  
> Please share yopur input on 
> Note: Same Project is working fine on weblogic 12C and jdk1.6 . But not on latest version
of weblogic 12.1.3 and jdk1.7



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message