aspose file tools*
The moose likes Web Services and the fly likes Web Service Deployment. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web Service Deployment." Watch "Web Service Deployment." New topic
Author

Web Service Deployment.

Brian M Smith
Ranch Hand

Joined: Aug 13, 2009
Posts: 35
So I'm attempting to deploy a web service project into a tomcat server and getting the following error.



Now as I understand it, the problem is in com.gcc.openconnect.jaxws.ExceptionBean. As I can tell this class is generated from a wsgen command when I build my application, so I can't really go in and edit it. From what I can tell ExceptionBean is being generated because some of my endpoints are throwing java.lang.Exception. This code base works on various other tomcat instances but will not work on mine.

So I'm curious what the issue could be. I don't think it's a coding problem since this code base works elsewhere. I'm wondering if this sort of problem could happen because of differences between the JRE, wsgen command, or some other environmental difference.

Sorry if this isn't very detailed, but I'm not sure what information would be relevant to answer my question.
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Have you downloaded and installed Metro into you Tomcat, as described here:
http://metro.java.net/2.1.1/
I would guess that your application is lacking a JAR file. Such a JAR file may be deployed to the Tomcat instance or in the web application in which you deploy your web service, in accord with the instructions for the web service stack in question. Metro will deploy the required JAR files to the Tomcat instance.
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
Brian M Smith
Ranch Hand

Joined: Aug 13, 2009
Posts: 35
Ivan,

Thanks for the response. I did not have Metro installed, but I don't think that is the problem. I installed Metro, but I'm still getting the same error. I think this has to do with JAXB or some component that is out of sync with the other servers. Does anyone know if JAXB or JAXWS components significantly differ from JRE6 to JRE7, or has anyone found issues where automatically generated classes via wsgen would not generate correctly?

-Brian
H Paul
Ranch Hand

Joined: Jul 26, 2011
Posts: 381



Read the exception: missing default constructor. Need to add this default constructor

Brian M Smith
Ranch Hand

Joined: Aug 13, 2009
Posts: 35
Again guys. Not to sound like an ass here, but this isn't a class that I created. This is a project that is working in production, but when I pull it down to a local environment it won't deploy. The class that is causing the exception is a class that is automatically generated via the wsgen command. This isn't a class that I created. Again, this is a project that will actually deploy but won't work locally for me. I'm very certain that this is a JRE or configuration issue.

Again, thanks for the responses but has anyone encountered issues where wsgen is creating "incorrect" classes?
H Paul
Ranch Hand

Joined: Jul 26, 2011
Posts: 381
This is JAXB related issue. And it's a BIG topic on its own.

So Google for the nature of the exception mentioned. Post your finding that I may learn from it too. Go luck.
 
 
subject: Web Service Deployment.
 
Similar Threads
web services - web logic 10.3.3.0 - spring
Which Annotation should be used for @Embedded class when used as primary key ?
Unable to create JAXBContext - Don't know why
SAAJ - javax.xml.ws.WebServiceException: Unable to create JAXBContext
Unable to create JAXBContext