[jboss-user] [JBossWS] - Re: Cannot obtain fault type for elemet

erahamim do-not-reply at jboss.com
Wed Mar 18 05:00:20 EDT 2009


Adding more details:

My exception is:


  | package com.company.Exceptions
  | public class TriggerException extends Exception{
  | 	private String msgName;
  | 	public TriggerException() {
  | 	}
  | public String getMsgName() {
  | 		return msgName;
  | 	}
  | 	public void setMsgName(String msgName) {
  | 		this.msgName = msgName;
  | 	}
  | }
  | 

My endpoint service (ejb 2.1) 


  | 
  | package com.company.rundownEx.ejb;
  | 
  | public interface RundownEx extends Remote{
  | 	Data getData(long Id) throws TriggerException, RemoteException;
  | }
  | 

implementation


  | package com.company.rundownEx.ejb;
  | 	
  | public class RundownExBean implements SessionBean {
  | 
  | 	public Data getData (long in) throws TriggerException{
  | 		try{
  | 
  | 			// do something
  | 		}
  | 		// ENTRY_POINT_CATCH_START
  | 		catch(Exception rte){
  | 		// ENTRY_POINT_CATCH_END
  | 
  | 			throw new TriggerException ();	}
  | 	}
  | }
  | 


My configuration xml for wstool:


  | <configuration>
  | 	<java-wsdl>
  | 		<service name="RundownExService" style="document" endpoint="com.company.rundownEx.ejb.RundownEx" />
  | 		<namespaces target-namespace="http://www.opentv.co.il" type-namespace="http://www.opentv.co.il/types" />
  | 		<mapping file="RundownEx-mapping.xml"/>
  | 		<webservices ejb-link="RundownExService" append="true"/>
  | 	</java-wsdl>
  | </configuration>
  | 

When I try to generate client with eclipse I'm getting the following error:

Error in generating Java from WSDL:  java.io.IOException: Element {http://www.opentv.co.il}TriggerException is referenced but not defined.
    java.io.IOException: Element {http://www.opentv.co.il}TriggerException is referenced but not defined.


Can anyone help?


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4218935#4218935

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4218935



More information about the jboss-user mailing list