aspose file tools*
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Running Ivan's SAAJExamples from the study guide Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "Running Ivan Watch "Running Ivan New topic
Author

Running Ivan's SAAJExamples from the study guide

Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1180
Good Day,

I'm using the saaj-api-1.3.1.jar from maven download.

The following is not being resolved -


I'm also getting compilation errors on -



Any help would be appreciated.

Regards,
Dan

William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Click this link to learn where to find the DataHandler class: http://www.jarfinder.com/index.php/java/info/javax.activation.DataHandler
For the second question, what kind of compilation errors do you get?
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1180
Ivan,

Great, ended up downloading geronimo-spec-j2ee-1.4-rc3.jar and I also found the SAAJExampleUtils in the study guide.
However, when running main(), I get the following error message -


Regards,
Dan

Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
I recommend using JavaSE 6, which contains all you need for the SAAJ example.
If you download libraries from misc. sources, I fear you will end up with mismatches and a big mess.
Best wishes!
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1180
Ok, ended up installing java_ee_sdk-6u1-jdk-windows.exe - glassfishv3. Still can't find these jar files.

Regards,
Dan
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
With the JDK 6 in place, you do not need any additional JARs. Everything is in the JDK/JRE.
I checked my SAAJ project when you asked the question and it has no external dependencies, not even anything from GlassFish.
Please supply a page or section number from the study guide and I will double-check and make sure I haven't looked at the wrong example!
Best wishes!
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1180
Ivan, I'm working with - "SCDJWS 5 Study Notes Version: September 13, 2009", referring to the SAAJ example, starting on page 200 and going to page 209.

Regards,
Dan
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Dan Drillich wrote:Ok, ended up installing java_ee_sdk-6u1-jdk-windows.exe - glassfishv3. Still can't find these jar files.

First of all, I recommended the Java SE 1.6 (or just 6 - I am a little confused in this area) JDK or JRE, NOT the JavaEE JDK.
I just double-checked the example in question and it needs NO additional JARs or libraries, except for the Java SE 1.6 JRE libraries.

Second, the version of the study notes you are reading is over a year old now. The last version I have published is from September 2, 2010.
If you are interested, click on the link in my signature and download the latest version.
Best wishes!
 
wood burning stoves
 
subject: Running Ivan's SAAJExamples from the study guide