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

2009-03-14 Thread white_bastion

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 )
from the Node class everything works fine and i am able to get all the data
on the client side.) 



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 code for Node.java


public class Node {


private String nodeId;  
private String screenTerm;
private List associations;
private String toolName;
private String nodeType;

public Node(){

}

public Node(String screenTerm,String nodeId,String toolName,String 
nodeType
) {
this.screenTerm=screenTerm;
this.nodeId=nodeId;
this.toolName=toolName;
this.nodeType=nodeType;
}

public Node(String screenTerm,String nodeId,ArrayList 
associations,String
toolName, String nodeType) {

this.screenTerm=screenTerm;
this.nodeId=nodeId;
this.toolName=toolName;
this.nodeType=nodeType;
this.associations=associations;
}

public String getNodeId() {
return nodeId;
}

public void setNodeId(String nodeId) {
this.nodeId = nodeId;
}

public String getScreenTerm() {
return screenTerm;
}

public void setScreenTerm(String screenTerm) {
this.screenTerm = screenTerm;
}

public List getAssociations() {
return associations;
}

public void setAssociations(List associations) {
this.associations = associations;
}

public String getToolName() {
return toolName;
}

public void setToolName(String toolName) {
this.toolName = toolName;
}

public String getNodeType() {
return nodeType;
}

public void setNodeType(String nodeType) {
this.nodeType = nodeType;
}
}


Here is the error log :
Mar 4, 2009 8:25:26 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performanc
e in production environments was not found on the java.library.path:
C:\Program
Files\Java\jdk1.6.0_06\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Wind
ows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program
Files\ATI
 Technologies\ATI.ACE\Core-Static;C:\Program Files\Common Files\Roxio
Shared\DLL
Shared\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program
Files\C
ommon Files\Roxio
Shared\9.0\DLLShared\jre1.6.0_05;C:\axis2-1.4.1\bin;C:\Program
 Files\Java\jdk1.6.0_06\bin;C:\Program Files\MySQL\MySQL Server 5.1\bin
Mar 4, 2009 8:25:26 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Mar 4, 2009 8:25:26 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 352 ms
Mar 4, 2009 8:25:26 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 4, 2009 8:25:26 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Mar 4, 2009 8:25:26 PM org.apache.catalina.loader.WebappClassLoader
validateJarF
ile
INFO:
validateJarFile(C:\apache-tomcat-6.0.18\webapps\axis2\WEB-INF\lib\servlet-
api-2.3.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2.
Offending cl
ass: javax/servlet/Servlet.class
[INFO] Deploying module: addressing-1.4 -
file:/C:/apache-tomcat-6.0.18/webapps/
axis2/WEB-INF/modules/addressing-1.4.mar
[INFO] Deploying module: script-1.4 -
file:/C:/apache-tomcat-6.0.18/webapps/axis
2/WEB-INF/modules/axis2-scripting-1.4.mar
[INFO] Deploying module: metadataExchange-1.4 -
file:/C:/apache-tomcat-6.0.18/we
bapps/axis2/WEB-INF/modules/mex-1.4.mar
[INFO] Deploying module: ping-1.4 -

RE: Axis2 Codegen Wizard

2009-03-14 Thread Martin Gainty

Mike-

can you Include the java class contents so we can test it here?

thanks,
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 




Date: Sat, 14 Mar 2009 18:06:21 -0400
From: mtarullo...@optonline.net
Subject: Axis2 Codegen Wizard
To: axis-user@ws.apache.org










I am having a problem generating a WSDL file from 
my Java code.
 
The Java source/classpath selection page of the 
Axis2 Codegen Wizard appears to have several bugs.
 
1) when I enter the fully qualified class name an 
error message stating that the class name is not properly terminated is 
displayed; even after I finish entering the fully quilified name the error 
message remains displayed
 
2) after adding the folder containing the class 
files and clicking the Test Class Loading button I get an error message that 
says a java.lang.ClassNotFoundException was thrown
 
Is there a fix for this?
 
I have added the stax-api-1.0.1.jar and 
backport-util-concurrent-3.1.jar file to the Axis2 Codegen Wizard \lib folder 
in 
Eclipse\plugins.  This did not solve the problem for me.
 
This fix was for a target invocation exception, if 
I recall.  Is this all related to the same problem or are there two 
different problems here?
 
Any workarounds until this gets fixed?  Is 
using Maven2 an alternative?
 
Any help would be greatly appreciated.
 
BTW: I'm using Eclipse Ganymede(v3.4.1), Axis2 
v1.4.1 and Axis2 Codegen Wizard v1.3.0
_
Windows Live™ Contacts: Organize your contact list. 
http://windowslive.com/connect/post/marcusatmicrosoft.spaces.live.com-Blog-cns!503D1D86EBB2B53C!2285.entry?ocid=TXT_TAGLM_WL_UGC_Contacts_032009

Re: Axis2 Codegen Wizard

2009-03-14 Thread Michael
Martin,

First, thank you for your reply.

I most certainly can supply the source.

Do you need just the class that I am try to generate the WSDL for, supporting 
classes or the entire project?

Let me know and I'll get it to you right away.

Mike
  - Original Message - 
  From: Martin Gainty 
  To: axis-user@ws.apache.org 
  Sent: Saturday, March 14, 2009 9:59 PM
  Subject: RE: Axis2 Codegen Wizard


  Mike-

  can you Include the java class contents so we can test it here?

  thanks,
  Martin 
  __ 
  Disclaimer and confidentiality note 
  Everything in this e-mail and any attachments relates to the official 
business of Sender. This transmission is of a confidential nature and Sender 
does not endorse distribution to any party other than intended recipient. 
Sender does not necessarily endorse content contained within this transmission. 





--
  Date: Sat, 14 Mar 2009 18:06:21 -0400
  From: mtarullo...@optonline.net
  Subject: Axis2 Codegen Wizard
  To: axis-user@ws.apache.org


  I am having a problem generating a WSDL file from my Java code.

  The Java source/classpath selection page of the Axis2 Codegen Wizard appears 
to have several bugs.

  1) when I enter the fully qualified class name an error message stating that 
the class name is not properly terminated is displayed; even after I finish 
entering the fully quilified name the error message remains displayed

  2) after adding the folder containing the class files and clicking the Test 
Class Loading button I get an error message that says a 
java.lang.ClassNotFoundException was thrown

  Is there a fix for this?

  I have added the stax-api-1.0.1.jar and backport-util-concurrent-3.1.jar file 
to the Axis2 Codegen Wizard \lib folder in Eclipse\plugins.  This did not solve 
the problem for me.

  This fix was for a target invocation exception, if I recall.  Is this all 
related to the same problem or are there two different problems here?

  Any workarounds until this gets fixed?  Is using Maven2 an alternative?

  Any help would be greatly appreciated.

  BTW: I'm using Eclipse Ganymede(v3.4.1), Axis2 v1.4.1 and Axis2 Codegen 
Wizard v1.3.0


--
  Windows Live™ Contacts: Organize your contact list. Check it out. 


--



  No virus found in this incoming message.
  Checked by AVG - www.avg.com 
  Version: 8.0.237 / Virus Database: 270.11.13/2001 - Release Date: 03/14/09 
06:54:00