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

Unable to register handlers in JAF command map

 
Sayantan Auddy
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on a simple application which consumes web services using links to wsdl files. I am using netbeans 6.0.1 and jdk 1.5.

The web service is there in the web service references folder.
I have also added the JAX-WS 2.1 library to my project.

The code is given below.

The build process is going fine.
However,I am getting the following errors when I run it :

Sep 7, 2009 12:52:19 PM com.sun.xml.messaging.saaj.soap.AttachmentPartImpl <clinit>
SEVERE: SAAJ050: Unable to register handlers in JAF command map
java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport
at javax.activation.MailcapCommandMap.<init>(MailcapCommandMap.java:153)
at javax.activation.CommandMap.getDefaultCommandMap(CommandMap.java:74)
at com.sun.xml.messaging.saaj.soap.AttachmentPartImpl.<clinit>(AttachmentPartImpl.java:77)
at com.sun.xml.ws.message.AttachmentUnmarshallerImpl.<clinit>(AttachmentUnmarshallerImpl.java:91)
at com.sun.xml.ws.client.sei.ResponseBuilder$DocLit.readResponse(ResponseBuilder.java:515)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:256)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:224)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:117)
at $Proxy33.login(Unknown Source)
at traversegui.Main.main(Main.java:49)
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.sun.xml.ws.message.AttachmentUnmarshallerImpl.<clinit>(AttachmentUnmarshallerImpl.java:91)
at com.sun.xml.ws.client.sei.ResponseBuilder$DocLit.readResponse(ResponseBuilder.java:515)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:256)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:224)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:117)
at $Proxy33.login(Unknown Source)
at traversegui.Main.main(Main.java:49)
Caused by: java.lang.RuntimeException: com/sun/activation/registries/LogSupport
at com.sun.xml.messaging.saaj.soap.AttachmentPartImpl.<clinit>(AttachmentPartImpl.java:124)
... 7 more
Java Result: 1



Somebody please help
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Using the http://www.jarfinder.com, you will find that you (probably) lack the activation.jar JAR file in your classpath.
The complete result can be found at: http://www.jarfinder.com/index.php/java/info/com.sun.activation.registries.LogSupport
Best wishes!
 
Sayantan Auddy
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You so much Ivan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic