I was able to get around the error by creating an openjpa.xml file in my 
META-INF dir.  This file declares a single property.  For example:

<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence";  
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
             xsi:schemaLocation="http://java.sun.com/xml/ns/persistence 
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd";
             version="1.0">
    <persistence-unit name="all" transaction-type="RESOURCE_LOCAL">
        <properties>
            <property name="openjpa.jdbc.DBDictionary" value="oracle" />
        </properties>
    </persistence-unit>
</persistence>

After setting this property it stopped complaining and I am now able to 
deploy/undeploy etc. 

Phil

-----Original Message-----
From: Luciano Resende [mailto:[email protected]] 
Sent: Monday, January 19, 2009 2:04 PM
To: [email protected]
Subject: Re: How to get rid of openjpa

If you are not using BPEL, try removing implementation-bpel and
implementation-bpel-ode jars from your web application and let me know
if that helps. As for using BPEL support with JPA versus Hibernate,
this is something we will need to ask the ODE guys.

On Mon, Jan 19, 2009 at 9:58 AM, Sykes, Phil <[email protected]> wrote:
> This one is coming from activemq but if I remove activemq from the classpath 
> then I get the same thing from ode.  The instructions for deploying as a 
> webapp says " All the Tuscany jar's and dependencies must be included in the 
> WEB-INF/lib folder" so its not clear to me what I can remove.  We are using 
> hibernate for persistence so I'd like to remove OpenJPA altogether.  We're 
> not currently using the BPEl extension but we may want to in the future.
>
> Phil
>
> -----Original Message-----
> From: Luciano Resende [mailto:[email protected]]
> Sent: Monday, January 19, 2009 12:49 PM
> To: [email protected]
> Subject: Re: How to get rid of openjpa
>
> Are you using Tuscany BPEL extension ? I think I recall seeing
> something like this in the past coming from ODE.
> Please confirm this is your case and I'll take a look.
>
> On Mon, Jan 19, 2009 at 5:37 AM, Sykes, Phil <[email protected]> wrote:
>> I have been trying to run Tuscany on the OC4J app server.  When I attempt to
>> undeploy my application I always get the following error and the undeploy
>> operation hangs:
>>
>>
>>
>> 09/01/19 08:32:30 645968  activemq  INFO   [UnDeployerRunnable Thread for
>> banstu
>>
>> dent] openjpa.jdbc.JDBC - OpenJPA will now connect to the database to
>> attempt to
>>
>>  determine what type of database dictionary to use.  To prevent this
>> connection
>>
>> in the future, set your openjpa.jdbc.DBDictionary configuration property to
>> the
>>
>> appropriate value for your database (see the documentation for available
>> values)
>>
>>
>>
>> I'm not using OpenJPA so I'd like to get rid of it if possible.  If it is
>> required I'd at least like to get rid of the error.  Any suggestions?
>>
>>
>>
>> Thanks,
>>
>>
>>
>> Phil
>>
>>
>>
>>
>>
>> Philip Sykes * Principal Java Developer, Banner Product Engineering *
>> SunGard Higher Education * 3 Country View Road, Malvern PA 19335 * Tel 610
>> 578 5185 * [email protected] * www.sungardhe.com
>>
>>
>
>
>
> --
> Luciano Resende
> Apache Tuscany, Apache PhotArk
> http://people.apache.org/~lresende
> http://lresende.blogspot.com/
>



-- 
Luciano Resende
Apache Tuscany, Apache PhotArk
http://people.apache.org/~lresende
http://lresende.blogspot.com/

Reply via email to