I am trying out the CarRental example that comes with the Web AS 6.30 (from the CD distributed during Tech Ed Las Vegas).
I took the following steps in order to publish the Car Rental as a "Web service"
- Created the entity bean (QuickBookingBean) and the stateless session bean (QuickOrderProcessorBean)
- Created a Web service definition for the stateless session bean
- Created a Jar archive for the bean (the archive now also includes the Web services related deployment descriptor, I think)
- Created an enterprise application archive
- Tried to Deploy
I am getting an error during the deployment - Complex type for the QuickCarRentalService could not be handled.
Question:
- Do I have to also create and include a Web application in order to deploy the Web service? Please note that in my steps above, I have not created a Servlet, JSP pages, etc. Would that be causing the problem?
Hello Sanjay,
you do not have to include a Web application in order to deploy a web service.
Did you follow the tutorial developing and deploying this web service? If yes, you could download the prebuild project for this tutorial from SDN and try to deploy it.
If you are developing and deploying own Web Services we recommend that you first build and deploy the EJB without Web Services definitions. If this works than add the Web Services definition and try deployment again. In this case we will at least know if the problem is related to the Web Service (the error message indicates that) or to deployment in general.
Cheers
Ivo
Add a comment