This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Mapping qname not fond for the package: org.hibernate.collection  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings,

I am using Axis2-1.4.1, Hibernate(3.2), apache-tomcat-6.0.18.

I am able to persist java objects using Hibernate (REFER : Node.java and nodemapping.hbm) . (I have checked it, it works fine as a standalone stuff : DATA IS INSERTED IN TABLES).

Now, I am trying to integrate Hibernate with Axis2 by :
* placing all the .class files , .hbm.xml , hibernate.cfg files in the:
Tomcat\webapps\axis2\WEB-INF\classes folder
* placing all the hibernate related .jar in the:
Tomcat\webapps\axis2\WEB-INF\lib folder


Now when i run my application ,I am getting the error:
" java.lang.RuntimeException: Mapping qname not fond for the package: org.hibernate.collection"

(If, I remove the instance variable associations (which is of type List<String> ) from the Node class everything works fine and i am able to get all the data on the client side.)







Mapping:






I have a hunch that as the WebServices are meant to be cross platform; one should not send Java-specific data types(List, ArrayList, HashMap etc etc), I should try to use an Array instead of list.
OR
I have not placed all the hibernate related .jars in the container ?



Here is the errorLog for your reference:




I created the .aar file using the eclipse plugin and the following server code:


Here is the code which pulls the data from the data base:





Here is the client code :











Please guide me on the direction in which I should proceed, I have searched quite a lot on net but not able to figure it out.

Thanks and regards
WB>
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!