• 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
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

How to using Hibernate with in Axis2 web services

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am developed a login checking web service program with hibernate.
I am following the same od axis-2 bin directory has, and i developed my program in samples directory as shown below.

axis2-1.3-bin
|
|___ axis2-1.3
|
|_______bin
|
|_______conf
|
|_______lib
|
|_______repository
|
|_______webapp
|
|________samples
|
|_______MySample
|
|_______resources
| |
| |________META-INF
| | |
| | |_____ service.xml
| | |
| | |_____ MySample.wsdl
| |
| |_________src
| |
| |________lib
|
|_______build.xml

lib directory contains jar files need by hibernate, src contains source code

In the path tag I given the path information about the lib jar for hibernate. Service is successfully generating but when trying to run client it is show the following message.
Buildfile: build.xml

compile:

run.client:
[java] log4j:WARN No appenders could be found for logger org.apache.axis2.
util.Loader).
[java] log4j:WARN Please initialize the log4j system properly.
[java] org.apache.axis2.AxisFault: java.lang.ClassNotFoundException: Class Not found : org.hibernate.Session
[java] at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext
(Utils.java:486)
[java] at org.apache.axis2.description.OutInAxisOperationClient.handleR
esponse(OutInAxisOperation.java:343)
[java] at org.apache.axis2.description.OutInAxisOperationClient.send(Ou
tInAxisOperation.java:389)
[java] at org.apache.axis2.description.OutInAxisOperationClient.execute
Impl(OutInAxisOperation.java:211)
[java] at org.apache.axis2.client.OperationClient.execute(OperationClie
nt.java:163)
[java] at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClie
nt.java:528)
[java] at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClie
nt.java:508)
[java] at com.ChampionsLeagueHib.client.ChampionsLeagueHibClient.main(C
hampionsLeagueHibClient.java:42)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:585)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.jav
a:217)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava
.java:152)
[java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:764)
[java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:218)

[java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:132)

[java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:105)
[java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:288)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:585)
[java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchU
tils.java:106)
[java] at org.apache.tools.ant.Task.perform(Task.java:348)
[java] at org.apache.tools.ant.Target.execute(Target.java:357)
[java] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[java] at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
a:1337)
[java] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De
faultExecutor.java:41)
[java] at org.apache.tools.ant.Project.executeTargets(Project.java:1189
)
[java] at org.apache.tools.ant.Main.runBuild(Main.java:758)
[java] at org.apache.tools.ant.Main.startAnt(Main.java:217)
[java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
[java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)


this is the out put that i am getting
can any body help me please
reply
    Bookmark Topic Watch Topic
  • New Topic