deploy « Glassfish « JPA Q&A





1. Can't deploy EJB3 app based on Hibernate?    java.net

ADM1006:Uploading the file to:[C:\Documents and Settings\vjenks\Local Settings\Temp\s1astempdomain1server-867837786\GFTest.ear] deployed with moduleid = GFTest ADM1041:Sent the event to instance:[ApplicationDeployEvent -- enable GFTest] WEB0100: Loading web module [GFTest:GFTestWEB.war] in virtual server [server] at [/GFTestWEB] File "C:\Program Files\glassfish\domains\domain1\docroot\GFTest\index.jsp" not found ADM1041:Sent the event to instance:[ResourceDeployEvent -- reference-added jdbc/NorthwindDS] CORE5004: Resource Deployed: [jdbc:NorthwindDS]. ADM1064:The upload file at [C:\Documents and Settings\vjenks\Local Settings\Temp\s1astempdomain1server-867837786\GFTest.ear] exists and will be overwritten. ...

2. Error deploying web app using JPA    java.net


DPL8011: autodeployment failure while deploying the application : Deployment Error -- The persistence-context-ref-name [StocksBean/em] in module
[/var/lib/java/glassfish/domains/domain1/applications/j2ee-modules/StocksWeb] resolves to a persistence unit
called [stockfoo] 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.
"|#]

3. Newbie Question--EJB 3.0/JPA deployment not working    java.net

I am using Eclipse Europa to develop the application. I have an Enteripse application that includes a EJB project and a Web project. I am using ANT to build the application. In the Web project I have placed an index.html file to ensure I can hit the web application berfore I go any farther. The web project has two servlets. In ...

4. Deployment issues with Grails and JPA    java.net

#|2008-02-29T20:24:36.678+0000|SEVERE|sun-appserver9.1| javax.enterprise.system.container.web|_ThreadID ;_ThreadName=Timer-5;_RequestID=da9e7d3e-57db-454d-8ba8-8dc7ad5aed64;| WebModule[/CustomerJPA-0.1]PWC1275: Exception sending context initialized event to listener instance of class org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.hibernate.MappingException: An AnnotationConfiguration instance is required to use java.security.AccessController.doPrivileged(Native Method) ...

6. Disabling JPA deployment    java.net

While deploying a WAR file that includes a persistence.xml Glassfish starts the JPA deployment. I'd like to use Spring JPA support instead this time (because the production server does not support JEE yet..). This would be no problem (other than an increased deployment time) if it wasn't for a log4j init error that happens and leaves me with no traces. This ...

7. can't deploy two set of JPAs into the glassfish?    java.net

hi guys, I have a standalone java SE netbeans project which uses JPA. and I also have a java EE web project which needs to call the java se project. the java ee web project itself uses JPA. But I found I can't deploy two set of JPAs into the glassfish. How to solve this problem? Thanks a million!

8. V2 directory deployment of EJB3 - JPA    java.net

And here is the error CLI171 Command deploydir failed : Deploying application in domain failed; Error loading deployment descriptors for module [EApp-ear-1.0] -- Invalid ejb jar [EApp-ejb-1.0.jar]: it contains zero ejb. Note: 1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message driven bean. 2. EJB3+ entity beans (@Entity) are POJOs and please package them as ...





10. Open JPA2 with GlasFish v2.1 deployment error in getValidationMode()    java.net

1. Grab a JPA 2.0 Specification JAR from somewhere. JPA 2.0 specifcation jar is not only a set of interface classes but also has concrete implementation classes. The errors reported in this issue can be traced to the fact that a) Glassfish V2.x includes EclipseLink library which in turn includes JPA spec classes b) those spec classes are JPA 1.0