ok, deployed successfully .. but now I have another issue with TopLink:
Somehow, the database is not recreated after the application deployment.
with GF v2.1, after the deployment I have a fresh database
with GF v3, after the deployment the database remains intact - with
the old data in it.
please advise any modification required in the persistence.xml to work
with TopLink.
my persistence.xml:
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0"
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">
<persistence-unit name="arenapuj">
<jta-data-source>jdbc/arena</jta-data-source>
<properties>
<property name="toplink.ddl-generation" value="drop-and-create-tables" />
<property name="toplink.logging.level" value="FINEST" />
</properties>
</persistence-unit>
</persistence>
On Sat, Oct 10, 2009 at 1:22 PM, kedar <Kedar.Mhaswade_at_sun.com> wrote:
> See: https://glassfish.dev.java.net/issues/show_bug.cgi?id=9393
>
> So, for asadmin to behave, you need to do:
> asadmin redeploy --name arena-puj target/arena-puj.ear assuming your
> initial deploy did not override the application name using --name.
>
> I know it's rather weird, i.e. the point of 9393.
>
> -Kedar
>
> Felipe Gaścho wrote:
>>
>> great news, my old Java EE 5 application is running fast and furious
>> on the GFv3b66 ...
>>
>> I was forced to deploy using the Administration Console on the browser..
>> :(
>>
>> but: I was unable to deploy it using the asadmin command.. something
>> is broken with the redeploy option:
>>
>> asadmin --user admin deploy target/arena-puj.ear
>>
>> * and I tried with --force=true, with --target, etc.. nothing works..
>> if it is a bug, I will be happy to submit one, but first I would like
>> to hear if it is really a bug...
>>
>> [exec] Command deploy failed.
>> [exec] com.sun.enterprise.admin.cli.CommandException: remote
>> failure: Error during deployment : Application arena-puj already
>> registered; either specify that redeployment must be forced, or
>> redeploy the application. : java.lang.Exception: Application arena-puj
>> already registered; either specify that redeployment must be forced,
>> or redeploy the application.
>>
>>
>> [exec] Deprecated syntax, instead use:
>> [exec] asadmin --user admin deploy [options] ...
>> [exec] com.sun.enterprise.admin.cli.CommandException: remote
>> failure: Error during deployment : Application arena-puj already
>> registered; either specify that redeployment must be forced, or
>> redeploy the application. : java.lang.Exception: Application arena-puj
>> already registered; either specify that redeployment must be forced,
>> or redeploy the application.
>>
>>
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>
>
--
Looking for a client application for this service:
http://fgaucho.dyndns.org:8080/arena-http/wadl