You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by tcs <ta...@hotmail.com> on 2007/12/14 18:12:28 UTC
AegisDataBinding and Spring - Web Service fails to deploy
When I deploy my web service app that uses Spring on Tomcat, the web app does
not deploy and I see the following messsage :
SEVERE: Error listenerStart
14-Dec-2007 12:05:35 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/SampleWebService] startup failed due to previous errors
My web.xml file is:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>WEB-INF/beans.xml</param-value>
</context-param>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
<servlet>
<servlet-name>CXFServlet</servlet-name>
<display-name>CXF Servlet</display-name>
<servlet-class>
org.apache.cxf.transport.servlet.CXFServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>CXFServlet</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>
My beans.xml file is:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jaxws="http://cxf.apache.org/jaxws"
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">
<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" />
<bean id="aegisBean"
class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
<bean id="jaxws-and-aegis-service-factory"
class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean">
<property name="dataBinding" ref="aegisBean"/>
<property name="serviceConfigurations">
<list>
<bean class="org.apache.cxf.jaxws.support.JaxWsServiceConfiguration"/>
<bean
class="org.apache.cxf.aegis.databinding.AegisServiceConfiguration"/>
<bean
class="org.apache.cxf.service.factory.DefaultServiceConfiguration"/>
</list>
</property>
</bean>
<bean id="actService" class="server.ActServiceEndPointImpl" />
<jaxws:endpoint id="actServiceEndPoint" implementor="#actService"
address="/actService">
<jaxws:serviceFactory>
<ref bean="jaxws-and-aegis-service-factory" />
</jaxws:serviceFactory>
</jaxws:endpoint>
</beans>
--
View this message in context: http://www.nabble.com/AegisDataBinding-and-Spring---Web-Service-fails-to-deploy-tp14339694p14339694.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: AegisDataBinding and Spring - Web Service fails to deploy
Posted by tcs <ta...@hotmail.com>.
Attached are the localhost and the catalina log file. I didn't spot anything
useful in either.
thanks
http://www.nabble.com/file/p14402086/catalina.2007-12-18.log
catalina.2007-12-18.log
http://www.nabble.com/file/p14402086/localhost.2007-12-18.log
localhost.2007-12-18.log
--
View this message in context: http://www.nabble.com/AegisDataBinding-and-Spring---Web-Service-fails-to-deploy-tp14339694p14402086.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: AegisDataBinding and Spring - Web Service fails to deploy
Posted by Daniel Kulp <dk...@apache.org>.
We would need the full log and/or the stuff in logs/localhost.*.log.
There should be a stack trace or something above that error that would
describe what the "failed due to previous errors" thing points at.
Dan
On Friday 14 December 2007, tcs wrote:
> When I deploy my web service app that uses Spring on Tomcat, the web
> app does not deploy and I see the following messsage :
>
> SEVERE: Error listenerStart
> 14-Dec-2007 12:05:35 PM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/SampleWebService] startup failed due to previous
> errors
>
>
> My web.xml file is:
> <?xml version="1.0" encoding="ISO-8859-1"?>
>
> <!DOCTYPE web-app
> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> "http://java.sun.com/dtd/web-app_2_3.dtd">
>
> <web-app>
> <context-param>
> <param-name>contextConfigLocation</param-name>
> <param-value>WEB-INF/beans.xml</param-value>
> </context-param>
>
> <listener>
> <listener-class>
> org.springframework.web.context.ContextLoaderListener
> </listener-class>
> </listener>
>
> <servlet>
> <servlet-name>CXFServlet</servlet-name>
> <display-name>CXF Servlet</display-name>
> <servlet-class>
> org.apache.cxf.transport.servlet.CXFServlet
> </servlet-class>
> <load-on-startup>1</load-on-startup>
> </servlet>
>
> <servlet-mapping>
> <servlet-name>CXFServlet</servlet-name>
> <url-pattern>/*</url-pattern>
> </servlet-mapping>
> </web-app>
>
> My beans.xml file is:
> <beans xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:jaxws="http://cxf.apache.org/jaxws"
> 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">
>
> <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" />
>
> <bean id="aegisBean"
> class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
> <bean id="jaxws-and-aegis-service-factory"
> class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean">
> <property name="dataBinding" ref="aegisBean"/>
> <property name="serviceConfigurations">
> <list>
> <bean
> class="org.apache.cxf.jaxws.support.JaxWsServiceConfiguration"/> <bean
> class="org.apache.cxf.aegis.databinding.AegisServiceConfiguration"/>
> <bean
> class="org.apache.cxf.service.factory.DefaultServiceConfiguration"/>
> </list>
> </property>
> </bean>
>
> <bean id="actService" class="server.ActServiceEndPointImpl" />
> <jaxws:endpoint id="actServiceEndPoint" implementor="#actService"
> address="/actService">
> <jaxws:serviceFactory>
> <ref bean="jaxws-and-aegis-service-factory" />
> </jaxws:serviceFactory>
> </jaxws:endpoint>
> </beans>
--
J. Daniel Kulp
Principal Engineer, IONA
dkulp@apache.org
http://www.dankulp.com/blog
Re: AegisDataBinding and Spring - Web Service fails to deploy
Posted by tcs <ta...@hotmail.com>.
After following the instructions posted in the thread at:
http://forum.springframework.org/showthread.php?t=27967
I was able to debug the application startup in tomcat. I found out the issue
was the 'schemaLocation' attribute value in my spring 'beans.xml' file was
incorrect.
The correct xml is:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
....
</beans>
thanks
--
View this message in context: http://www.nabble.com/AegisDataBinding-and-Spring---Web-Service-fails-to-deploy-tp14339694p14420938.html
Sent from the cxf-user mailing list archive at Nabble.com.