Solved

WSDL2Java problem

Posted on 2004-09-04
4
446 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
numbers ascending pyramid 101 236
arguments to jar 5 39
Detect Closed Loops (circles, figure-8s, etc) in PNG Images 6 74
Running JavaFX on the Raspberry Pi 27 128
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

762 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