• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Getting Exeption while calling web service from registry

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Duc Vo. It's working. thank you very much
 
"To do good, you actually have to do something." -- Yvon Chouinard
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic