Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Running Ivan's SAAJExamples from the study guide

 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic