Solved

WSDL2Java problem

Posted on 2004-09-04
4
422 Views
Last Modified: 2008-03-17
Hi,

I'm trying to run  WSDL2Java using a WSDL ( in order to consume a web service)  from within the Websphere Application Development (5.1.1)environment and I get the following error.


Can someone please point me to the missing jars or problem?

java.lang.NoClassDefFoundError: org/eclipse/emf/ecore/resource/Resource$Factory
at com.ibm.ws.webservices.wsdl.mapping.MappingMetaData.<init>(MappingMetaData.java:133)
at com.ibm.ws.webservices.wsdl.toJava.Emitter.<init>(Emitter.java:164)
at com.ibm.ws.webservices.tools.WSDL2Java.createParser(WSDL2Java.java:239)
at com.ibm.ws.webservices.wsdl.WSDL2.<init>(WSDL2.java:129)
at com.ibm.ws.webservices.tools.WSDL2Java.<init>(WSDL2Java.java:228)
at com.ibm.ws.webservices.tools.WSDL2Java.main(WSDL2Java.java:355)
Exception in thread "main"

Thanks.
0
Comment
Question by:azsat
  • 3
4 Comments
 
LVL 35

Expert Comment

by:girionis
ID: 11981058
Unfortunatelly the Java application you try to run was written using proprietary classes (the Eclipse) and now it fails. You will need either to change the source code, get rid of the class in question, recompile and run it, or get the Eclipse jar file in your classpath and run the applicaiton again.
0
 

Author Comment

by:azsat
ID: 11983667
As you are aware  WSDL2Java is a (elipse?) plug-in to generate client-side bindings to a Web service.  

ie creating Java classes from a WSDL file to consumme the web service. WSDL2Java, I am told can be run from with the Websphere IDE.  

I simply followed the instrunctions given at

http://www.websphereworld.com/static_html/was502series/part3.html

I would have thought that the suggested webservices.jar file (included in classpath) contains the desired class, but obviously it does not.

I need to find out what class it can't find and which jar this class sits in.  Help!  Thanks.


0
 
LVL 35

Accepted Solution

by:
girionis earned 500 total points
ID: 11989253
I am not sure in which file the class in question resides. You will have to find out yourself, perhaps looking at the classpath you used to compile the class. If you need to find out if the class is in the webservices.jar file simply do:

jar -tvf webservices.jar | grep 'Factory'

and see if it will come up with the Factory class.
0
 
LVL 35

Expert Comment

by:girionis
ID: 12041692
:)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
advertisement module in core php 4 144
ArrayIndexOutOfBoundException 9 66
replace a word with other 1 40
java jdbc batch example 8 17
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now