You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by James Taylor <gi...@yahoo.com> on 2006/06/02 02:44:05 UTC

Axis2 with Kodo JPA

I'm trying to implement a web service through Axis2 using the JPA implementation of Kodo.  If I package all the necessary Kodo libs into an aar file along with my web service implementation file and services.xml, I get an exception as soon as I attempt to do anything with Kodo.  For example, when I attempt to get an EntityManagerFactory through Persistence.createEntityManagerFactory(null), I get a PersistenceException stating that no persistence provider could be found.  I've verified that the Kodo classes are being found, but something is not being initialized the same was as in the standalone case.
 
The only workaround I've found is to put all of the Kodo jar files along with my data access POJOs into the axis2/WEB-INF/lib directory of TomCat instead of packaging these into my aar file.  Has anyone ever used the Kodo JPA implementation with Axis2?  Is this some kind of class loader initialization issue?
 
Thanks in advance for any help/tips.  Cheers,
 
    James

Re: Axis arrays and .NET problem

Posted by Kinichiro Inoguchi <in...@yahoo.com>.
Does your WSDL <schema> contains 
elementFormDefault="qualified" or not ?


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Axis arrays and .NET problem

Posted by Stanley Stanev <su...@stanev.com>.
I have deployed a web service under Axis 1.4 that returns an array to 
the consumers of the service

Axis clients work very well, however .NET clients does not get the 
elements of the array

I have tried both document and wrapped styles of the services in the WSDD:

...<service name="TestService" provider="java:RPC" style="document" 
use="literal">...

and

...<service name="TestService" provider="java:RPC" style="wrapped" 
use="literal">...

but still does NOT work

any ideas are greatly appreciated!!!

thanks,
Stanley Stanev

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Axis2 with Kodo JPA

Posted by Martin Gainty <mg...@hotmail.com>.
Good Morning James-
Just a thought but I usually find classes identified externally thru a properties file which are incorrectly pathed or non-existent cause this situation
I would take a look at META-INF/jdo.properties and make sure all your classes are configured correctly-paying particular attention to pathnames being on the CLASSPATH
Anyone else ??
Martin --
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



  ----- Original Message ----- 
  From: James Taylor 
  To: axis-user@ws.apache.org 
  Sent: Thursday, June 01, 2006 8:44 PM
  Subject: Axis2 with Kodo JPA


  I'm trying to implement a web service through Axis2 using the JPA implementation of Kodo.  If I package all the necessary Kodo libs into an aar file along with my web service implementation file and services.xml, I get an exception as soon as I attempt to do anything with Kodo.  For example, when I attempt to get an EntityManagerFactory through Persistence.createEntityManagerFactory(null), I get a PersistenceException stating that no persistence provider could be found.  I've verified that the Kodo classes are being found, but something is not being initialized the same was as in the standalone case.

  The only workaround I've found is to put all of the Kodo jar files along with my data access POJOs into the axis2/WEB-INF/lib directory of TomCat instead of packaging these into my aar file.  Has anyone ever used the Kodo JPA implementation with Axis2?  Is this some kind of class loader initialization issue?

  Thanks in advance for any help/tips.  Cheers,

      James