File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Getting Exeption while calling web service from registry Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Getting Exeption while calling web service from registry" Watch "Getting Exeption while calling web service from registry" New topic
Author

Getting Exeption while calling web service from registry

bikkie bansal
Greenhorn

Joined: Oct 14, 2008
Posts: 17
Hello All,

By following this link-http://developers.sun.com/appserver/reference/techart/ws_mgmt3.html
I have published simple calculator web service using JWSDP1.6 from GLASSFISH.It's working fine and I am able to invoke it successfully.Till here everythings goes fine but problem comes when I want to publish another web service which consists of "hibbernate annotation".Although It is being published without any issue but while trying to invoke it shows error,like:


I am just wondering..... cann't we invoke those web services which consists of hibernate annotation or Axis Lib.
One more thing I would like to add that when I undeploy Soar.rar and restart the glassfish and redeploy the services than services starts working again...I am simple stuck over here,not finding any way where to go.

Please help me out.

regards,
vikas
Duc Vo
Ranch Hand

Joined: Nov 20, 2008
Posts: 254
The problem is here

Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Logger

Put the log4j library to your class path.


“Everything should be as simple as it is, but not simpler.” Albert Einstein
bikkie bansal
Greenhorn

Joined: Oct 14, 2008
Posts: 17
Hello Duc vo,

Thanks for the reply.log4j-1.2.14.jar is already present in my service classpath.One more thing i would like to add that the problem occurs when i deploy soar.rar(which I used to publish web service as instructed by following documenthttp://developers.sun.com/appserver/reference/techart/ws_mgmt3.html )in my glassfish.Before that they work fine.Also if I undeploy that soar.rar my services get start working again.

regards,
vikas
Duc Vo
Ranch Hand

Joined: Nov 20, 2008
Posts: 254
Originally posted by vikas kumar bansal:
Hello Duc vo,

Thanks for the reply.log4j-1.2.14.jar is already present in my service classpath.One more thing i would like to add that the problem occurs when i deploy soar.rar(which I used to publish web service as instructed by following documenthttp://developers.sun.com/appserver/reference/techart/ws_mgmt3.html )in my glassfish.Before that they work fine.Also if I undeploy that soar.rar my services get start working again.

regards,
vikas


It's because soar.rar doesn't have log4j library file. Where do you put the log4j-1.2.14.jar file? It should be in the ext folder of the server library for this to work. Somehow, there is some configuration in your classpath which configures commons logging to use log4j.
bikkie bansal
Greenhorn

Joined: Oct 14, 2008
Posts: 17
Thanks Duc Vo. It's working. thank you very much
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Getting Exeption while calling web service from registry