Hi Elena,
Do you have persistence unit in your spring application? The exception
in my case is related to JPA:
[#|2009-08-18T19:30:25.187-0700|SEVERE|glassfish|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=30;_ThreadName=Thread-2;|Exception while invoking class org.glassfish.persistence.jpa.JPADeployer prepare method
java.lang.RuntimeException: The persistence-context-ref-name [org.springframework.samples.petclinic.jpa.EntityManagerClinic/em] in module [petclinic] resolves to a persistence unit called [PetClinic] which is of type RESOURCE_LOCAL. Only persistence units with transaction type JTA can be used as a container managed entity manager. Please verify your application.
at com.sun.enterprise.deployment.BundleDescriptor.findReferencedPUsViaPCRefs(BundleDescriptor.java:646)
at com.sun.enterprise.deployment.WebBundleDescriptor.findReferencedPUs(WebBundleDescriptor.java:865)
at org.glassfish.persistence.jpa.JPADeployer.prepare(JPADeployer.java:100)
Thanks,
Ming
Elena Asarina wrote:
> Hello Ming,
>
> I've excluded a sprint application (sprint-annotations.war) from the
> automatic deployment test, because the size of these archive is too
> big and after several deployment actions it crashes or delays or
> hangs up appserver.
>
> I'm deploying this application, when I'm executing manual deployment
> test cases. I did not execute manual deployment test cases for b59.
>
> Thank you,
>
> Elena
>
> Ming Zhang wrote:
>
>> Greetings,
>>
>> I tried to deploy a spring source app to v3 promoted b59 and run into
>> some issues during the deployment:
>> https://glassfish.dev.java.net/issues/show_bug.cgi?id=9201
>> The same app worked on the Java preview build (b47d).
>>
>> I remember there were some discussions about deploying spring source
>> apps on V3 in this alias. Has anyone here tried to run spring app on
>> recent v3 build? If you have, can you share your experience?
>>
>> Thanks,
>> Ming
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>