aspose file tools
The moose likes Web Services and the fly likes Unable to register handlers in JAF command map Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Unable to register handlers in JAF command map" Watch "Unable to register handlers in JAF command map" New topic
Author

Unable to register handlers in JAF command map

Sayantan Auddy
Ranch Hand

Joined: Dec 18, 2008
Posts: 35
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


Sayantan Auddy,SCJP 5.0
Ivan Krizsan
Bartender

Joined: Oct 04, 2006
Posts: 2193
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

Joined: Dec 18, 2008
Posts: 35
Thank You so much Ivan
 
I agree. Here's the link: http://zeroturnaround.com/jrebel
 
subject: Unable to register handlers in JAF command map
 
Similar Threads
unexpected XML tag in JAX-WS client
OpenESB::Web service Call via OpenESB
random xmlns attribute order causing unexpected XML tag exception
Error connecting Peoplesoft webservice from a JSF application over Integrated weblogic server
java.lang.LinkageError: loader constraints violation....