Deploying WebService services on Tomcat
catalogue
1. Add related reference package:
2. Configuration file: sun jaxws xml
3. Modify web XML configuration file
4. Export the web project as a war package
5. Put tomcat7 into Tomcat 0.88 \ webapps folder
6. Put the relevant referenced jar package into tomcat7.0 of the Tomcat server 0.88 \ lib folder
7. Start the Tomcat server and access the service through the port configured by Tomcat; My configured port is 8081
1. Add related reference package:
2. Configuration file: sun jaxws xml
In the WEB-INF directory of the web project, create sun jaxws XML configuration file, add the following contents: relevant class names and references, and modify them according to the name of your own project
3. Modify web XML configuration file
Modify web XML file, as shown in the figure below. Note that the listener listener and servlet references are from the jar package we added. If the jar package does not reference, an error will be reported when starting the service.
4. Export the web project as a war package
5. Put tomcat7 into Tomcat 0.88 \ webapps folder
6. Put the relevant referenced jar package into tomcat7.0 of the Tomcat server 0.88 \ lib folder
7. Start the Tomcat server and access the service through the port configured by Tomcat; My configured port is 8081
http://localhost:8081/JavaWebService/TestWebService?wsdl