• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help me resolve this: java.lang.NoSuchMethodError

 
Jennifer Bhamoo
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am at a loss. I am really really new to this whole web service thing and have been struggling with this all week.

I have deployed a webservice for Adobe LiveCycle product that I developing an application for (http://www.adobe.com/devnet/livecycle/articles/leveraging_reader_extensions_coldfusion.html) Since I am not using cold fusion (used in this sample), I am trying to create my own java servlet to pass my data back and forth to this web service (getting the data isn't an issue, it just getting this web service developed properly.

The webservice is showing up just fine when I view it in Axis and I can see the WSDL, so I assume there are no issues there.

I am just trying to follow the tutorials I find online, right now I am working with this one here: http://java.sun.com/webservices/docs/2.0/tutorial/doc/SAAJ4.html

I am using the saaj-api.jar that I downloaded online (from Sun's site, I cannot find the link now..)

Here is a snippet of my code - since the last line below is the one throwing the error, I have commented out all my other code and have not included that here:



The last line is where I am getting the error at, here is the complete error shown on the page:



So, barely anything has even been done yet when I get this error, so I am sure there is something screwed up with the way I have my environment set up. I am using Eclipse v3.0.1, imported the saaj-api.jar into my WEB-INF folder and then imported that for my project as an external JAR, so it is showing up in my buildpath for my servlet (sorry, I am probably using all the wrong terms, just trying to provide the steps I used).

(edited to remove the WSDL copy - it showed up all funny in the post!)

I hope it is something silly on my part, like I said, I am very knew to this and have stepped through some tutorials and online training, but just started learning this past week.

Thank you,
Jennifer
[ February 02, 2007: Message edited by: Jennifer Bhamoo ]
 
Jennifer Bhamoo
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, after staring at this for 3 days and finally posting here, I think I realized what my issue is.... I am guessing it's because I am using the SAAJ-API.JAR and it wants the latest java sdk and I am still using 1.4.2_11

Because when I tried going back to using the SAAJ.JAR I found with my Axis install (I am using the same versions of JBoss and Java SDK where Axis is and where my servlet is), I get an error for the GetSoapHeader from the line inj question above.

ok, back to the drawing board...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!