Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problems with WSIF

843833May 14 2006 — edited Aug 30 2006
Hello,

Sorry, but my english is �.

So, I need to in my project uses a WSIF and WSDL4J, for a dynamic invocation of community of Web services; but, I don�t come to instantiate a WSIFService from description (WSDL) of the Web services, and I don�t have locate the problems.

here my source code:
package mainPack;

import javax.wsdl.Definition;
import javax.wsdl.WSDLException;

import org.apache.wsif.WSIFException;
import org.apache.wsif.WSIFService;
import org.apache.wsif.WSIFServiceFactory;
import com.ibm.wsdl.xml.WSDLReaderImpl;

public class MainClass {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Raccord de m�thode auto-g�n�r�
		WSDLReaderImpl _WSDLReader = new WSDLReaderImpl();
		Definition _WSDLDef = null;
		try {
			_WSDLDef = _WSDLReader.readWSDL("http://localhost:8080/axis/services/allo?wsdl");
		} catch (WSDLException e) {
			// TODO Bloc catch auto-g�n�r�
			e.printStackTrace();
		}
		try {
			WSIFService sq = WSIFServiceFactory.newInstance().getService(_WSDLDef);
		} catch (WSIFException e) {
			// TODO Bloc catch auto-g�n�r�
			e.printStackTrace();
		}
	}

}
and here Error Message:
Retrieving document at 'http://localhost:8080/axis/services/allo?wsdl'.
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
	at org.apache.wsif.logging.Trc.<clinit>(Unknown Source)
	at org.apache.wsif.WSIFServiceFactory.newInstance(Unknown Source)
	at mainPack.MainClass.main(MainClass.java:27)
Can you help me.

Note: I use
* wsdl4j v1.5
* wsif v2.0
* Tomcat v5.5.17
* axis v1.4
* JDK v1.5.0-b64
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 27 2006
Added on May 14 2006
1 comment
222 views