Discussion:
how to create cxf-servlet.xml or bean.xml using java2ws plugin in maven?
s***@gmail.com
2018-08-28 12:22:42 UTC
Permalink
Hey i am using maven from building the war file for deploying the project on tomcat.
I am using apache cxf java2ws plugin for generating wsdl and xsd file
I am able to generate the jaxws files, wsdl and xsd file
but i am not able to generate cxf-servlet.xml or bean.xml which is required by tomcat server.
And when i am manually creating the cxf-servlet.xml and placing it in WebContent folder and deploying
it on tomcat I am getting an "javax.servlet.ServletException: Servlet.init()" exception.
Colm O hEigeartaigh
2018-08-28 14:52:53 UTC
Permalink
You could take a look at some of the samples to see how they are written,
for example:

https://github.com/apache/cxf/tree/master/distribution/src/main/release/samples/java_first_jaxws/src/main/webapp/WEB-INF

Colm.
Post by s***@gmail.com
Hey i am using maven from building the war file for deploying the project on tomcat.
I am using apache cxf java2ws plugin for generating wsdl and xsd file
I am able to generate the jaxws files, wsdl and xsd file
but i am not able to generate cxf-servlet.xml or bean.xml which is
required by tomcat server.
And when i am manually creating the cxf-servlet.xml and placing it in
WebContent folder and deploying
Servlet.init()" exception.
--
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com
Loading...