File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting Exeption while calling web service from registry

 
bikkie bansal
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 254
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is here

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

Put the log4j library to your class path.
 
bikkie bansal
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 254
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Duc Vo. It's working. thank you very much
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic