[JBoss Web Services] - AS 4.3.1 to 6.0.0 M2 WS Migration problem
by Jorge Montero
Jorge Montero [http://community.jboss.org/people/jorge.montero] created the discussion
"AS 4.3.1 to 6.0.0 M2 WS Migration problem"
To view the discussion, visit: http://community.jboss.org/message/533845#533845
--------------------------------------------------------------
I am migrating an EJB3 app from JBoss 4.3.1 to 6.0.0. On deployment of an ejb3 bean, I get the following:
Caused by: javax.xml.ws.WebServiceException: @XmlType missing from fault bean: com.knights.camelot.generalreporting.ejbs.jaxws.ExceptionBean
at org.jboss.ws.metadata.umdm.FaultMetaData.initializeFaultBean(FaultMetaData.java:255)
at org.jboss.ws.metadata.umdm.FaultMetaData.eagerInitialize(FaultMetaData.java:225)
at org.jboss.ws.metadata.umdm.OperationMetaData.eagerInitialize(OperationMetaData.java:469)
at org.jboss.ws.metadata.umdm.EndpointMetaData.eagerInitializeOperations(EndpointMetaData.java:564)
at org.jboss.ws.metadata.umdm.EndpointMetaData.initializeInternal(EndpointMetaData.java:548)
at org.jboss.ws.metadata.umdm.EndpointMetaData.eagerInitialize(EndpointMetaData.java:538)
at org.jboss.ws.metadata.umdm.ServiceMetaData.eagerInitialize(ServiceMetaData.java:433)
Based on the code in generalreporting.ejbs, the problem is that there is a webService that throws Exception:
void addPOSummaryData(@WebParam(name = "date")Date date,@WebParam(name = "summaryData")List<PendingPOSummary> rows) throws Exception;
In the version of JbossWebServices/EJB3 that 4.3.1 comes with by default, this was deploying and generating a WSDL with no problems at all:
<message name='Exception'>
<part element='tns:Exception' name='Exception'></part>
</message>
.......
<binding name='PendingPOSummaryWSBeanBinding' type='tns:PendingPOSummaryWSBean'>
<soap:binding style='document' transport='http://schemas.xmlsoap.org/soap/http'/>
<operation name='addPOSummaryData'>
<soap:operation soapAction=''/>
<input>
<soap:body use='literal'/>
</input>
<output>
<soap:body use='literal'/>
</output>
<fault name='Exception'>
<soap:fault name='Exception' use='literal'/>
</fault>
</operation>
</binding>
Is the fact the latest version is not deploying such an ejb3 web service correctly a bug or a feature?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/533845#533845]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years, 3 months
Re: [jboss-user] [JBoss Microcontainer Development] - Servlet Scanner plugin
by Ales Justin
Ales Justin [http://community.jboss.org/people/alesj] replied to the discussion
"Servlet Scanner plugin"
To view the discussion, visit: http://community.jboss.org/message/533807#533807
--------------------------------------------------------------
> This would translate to something like:- public Set<Class<?>> getClasses(VirtualFile classpathItem, Set<Class<? extends Annotation>> annotationsToLookFor) (from the Hibernate plugin, assuming it looks for annotation on fields, methods and type), or return a Map<Class<? extends Annotation>>, Class<?>>
Hibernate plugin only checks for class annotations.
I would not re-use it, better writting new behavior in separate plugin.
> - public Set<Class<?>> getClasses(List<VirtualFile> classpath, Set<Class<? extends Annotation>> annotationsToLookFor, Set<Class<?>> supertypesToLookFor) (note: in case there are multiple SCIs with HandlesType, this could be less efficient than using a map to pass the annotations/types to look for, and getting a map back; of course, it is simpler too)
Can you explain this one a bit more.
Or, why mix the parameters; annotation and supertypes?
We already have the annotations method, simply adding the supertypes, and the use Set intersection to get both?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/533807#533807]
Start a new discussion in JBoss Microcontainer Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years, 3 months