You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by sameh <sa...@synoran.com> on 2007/07/23 22:09:40 UTC
http:endpoint
Here is my beans.xml when I deploy my project to weblogic (9.2 - 10) I get
the exception below:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:http="http://cxf.apache.org/transports/http/configuration"
xmlns:ebx="http://www.synoran.com/sde/se"
xsi:schemaLocation="http://cxf.apache.org/transports/http/configuration
http://cxf.apache.org/schemas/configuration/http-conf.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd">
<http:endpoint service="ebx:SDEService"
endpoint="soap"
role="consumer"
locationURI="http://0.0.0.0:7001/SDEService/"
defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
soap="true"
soapAction="executeDocument"/>
</beans>
Exception:
<Jul 23, 2007 3:44:01 PM EDT> <Warning> <HTTP> <BEA-101162> <User defined
listener org.springframework.web.context.ContextLoaderListener failed:
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line
46 in XML document from ServletContext resource [/WEB-INF/beans.xml] is
invalid; nested exception is org.xml.sax.SAXParseException: src-resolve:
Cannot resolve the name 'wsdl:tExtensibilityElement' to a(n) 'type
definition' component..
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line
46 in XML document from ServletContext resource [/WEB-INF/beans.xml] is
invalid; nested exception is org.xml.sax.SAXParseException: src-resolve:
Cannot resolve the name 'wsdl:tExtensibilityElement' to a(n) 'type
definition' component.
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:359)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:280)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:131)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:147)
Truncated. see log file for complete stacktrace
org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name
'wsdl:tExtensibilityElement' to a(n) 'type definition' component.
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
at
com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaError(XSDHandler.java:2241)
at
com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getGlobalDecl(XSDHandler.java:1201)
Truncated. see log file for complete stacktrace
--
View this message in context: http://www.nabble.com/http%3Aendpoint-tf4132121.html#a11751734
Sent from the cxf-user mailing list archive at Nabble.com.
Re: http:endpoint
Posted by Freeman Fang <fr...@iona.com>.
Hi Sam,
Seems your beans.xml is servicemix style configuration which deploy
endpoint into servicemix http binding component, this configuration is
not recognized in cxf. If you want to deploy your service into servlet
container with spring, you should follow this wiki page.
http://cwiki.apache.org/CXF20DOC/writing-a-service-with-spring.html
Best Regards
Freeman
sameh wrote:
> When I deploy my project to weblogic (9.2 or 10) or tomcat-5.5.23 I get the
> exception below
>
> beans.xml:
>
> <beans xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:http="http://cxf.apache.org/transports/http/configuration"
> xmlns:ebx="http://www.synoran.com/sde/se"
>
> xsi:schemaLocation="http://cxf.apache.org/transports/http/configuration
>
> http://cxf.apache.org/schemas/configuration/http-conf.xsd
> http://www.springframework.org/schema/beans
>
> http://www.springframework.org/schema/beans/spring-beans.xsd">
>
> <http:endpoint service="ebx:SDEService"
> endpoint="soap"
> role="consumer"
> locationURI="http://0.0.0.0:7001/SDEService/"
> defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
> soap="true"
> soapAction="executeDocument"/>
>
> </beans>
>
> Exception:
>
> <Jul 23, 2007 3:44:01 PM EDT> <Warning> <HTTP> <BEA-101162> <User defined
> listener org.springframework.web.context.ContextLoaderListener failed:
> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line
> 46 in XML document from ServletContext resource [/WEB-INF/beans.xml] is
> invalid; nested exception is org.xml.sax.SAXParseException: src-resolve:
> Cannot resolve the name 'wsdl:tExtensibilityElement' to a(n) 'type
> definition' component..
> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line
> 46 in XML document from ServletContext resource [/WEB-INF/beans.xml] is
> invalid; nested exception is org.xml.sax.SAXParseException: src-resolve:
> Cannot resolve the name 'wsdl:tExtensibilityElement' to a(n) 'type
> definition' component.
> at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:359)
> at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
> at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:280)
> at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:131)
> at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:147)
> Truncated. see log file for complete stacktrace
> org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name
> 'wsdl:tExtensibilityElement' to a(n) 'type definition' component.
> at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
> at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172)
> at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
> at
> com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaError(XSDHandler.java:2241)
> at
> com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getGlobalDecl(XSDHandler.java:1201)
> Truncated. see log file for complete stacktrace
>
>
Re: http:endpoint
Posted by carmichs <sc...@yahoo.com>.
I get the exact same error using the HelloWorld example from the user
documentation. I am deploying to WL 10, and cxf, 2.1-incubator-SNAPSHOT
sameh wrote:
>
> When I deploy my project to weblogic (9.2 or 10) or tomcat-5.5.23 I get
> the exception below
>
> beans.xml:
>
> <beans xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:http="http://cxf.apache.org/transports/http/configuration"
> xmlns:ebx="http://www.synoran.com/sde/se"
>
> xsi:schemaLocation="http://cxf.apache.org/transports/http/configuration
>
> http://cxf.apache.org/schemas/configuration/http-conf.xsd
> http://www.springframework.org/schema/beans
>
> http://www.springframework.org/schema/beans/spring-beans.xsd">
>
> <http:endpoint service="ebx:SDEService"
> endpoint="soap"
> role="consumer"
> locationURI="http://0.0.0.0:7001/SDEService/"
> defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
> soap="true"
> soapAction="executeDocument"/>
>
> </beans>
>
> Exception:
>
> <Jul 23, 2007 3:44:01 PM EDT> <Warning> <HTTP> <BEA-101162> <User defined
> listener org.springframework.web.context.ContextLoaderListener failed:
> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
> Line 46 in XML document from ServletContext resource [/WEB-INF/beans.xml]
> is invalid; nested exception is org.xml.sax.SAXParseException:
> src-resolve: Cannot resolve the name 'wsdl:tExtensibilityElement' to a(n)
> 'type definition' component..
> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
> Line 46 in XML document from ServletContext resource [/WEB-INF/beans.xml]
> is invalid; nested exception is org.xml.sax.SAXParseException:
> src-resolve: Cannot resolve the name 'wsdl:tExtensibilityElement' to a(n)
> 'type definition' component.
> at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:359)
> at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
> at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:280)
> at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:131)
> at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:147)
> Truncated. see log file for complete stacktrace
> org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name
> 'wsdl:tExtensibilityElement' to a(n) 'type definition' component.
> at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
> at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172)
> at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
> at
> com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaError(XSDHandler.java:2241)
> at
> com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getGlobalDecl(XSDHandler.java:1201)
> Truncated. see log file for complete stacktrace
>
>
--
View this message in context: http://www.nabble.com/http%3Aendpoint-tf4132121.html#a11752776
Sent from the cxf-user mailing list archive at Nabble.com.