|
Replies:
7
-
Last Post:
Nov 7, 2008 11:07 AM
by: Ludovic Champen...
|
|
|
|
|
|
|
can't deploy two set of JPAs into the glassfish?
Posted:
Nov 4, 2008 12:52 PM
|
|
|
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!
|
|
|
|
|
|
|
Re: can't deploy two set of JPAs into the glassfish?
Posted:
Nov 4, 2008 5:21 PM
in response to: bobxu
|
|
|
You can deploy as many JPA apps as you like, but those PUs will be deployed as part of a WAR or EAR or an EJB jar. How do you deploy an Java SE JPA app?
thanks, -marina
|
|
|
|
|
|
|
|
Re: can't deploy two set of JPAs into the glassfish?
Posted:
Nov 5, 2008 8:13 AM
in response to: mvatkina
|
|
|
Ok, I have two persistence PUs. one for java SE, let's call it jsePU, another let's call webPU. I included the Java SE project jar in the web project. And the jar is in the built war file, more specifically, war file/web-inf/lib. Is it possible to do this? I mean one web project, one java SE project. They each has a separate JPA PU, and web project needs to call methods in SE project.
I would very much appreciate it if anyone can give me a help!
Message was edited by: bobxu
|
|
|
|
|
|
|
|
Re: can't deploy two set of JPAs into the glassfish?
Posted:
Nov 6, 2008 12:14 AM
in response to: bobxu
|
|
|
How do you access the PU under web-inf/lib? What kind of problems do you see?
thanks, -marina
glassfish@javadesktop.org wrote: > Ok, I have two persistence PUs. one for java SE, let's call it jsePU, another let's call webPU. > I included the Java SE project jar in the web project. And the jar is in the built war file, more specifically, war file/web-inf/lib. > > I would very much appreciate it if anyone can give me a help! > [Message sent by forum member 'bobxu' (bobxu)] > > http://forums.java.net/jive/thread.jspa?messageID=315038 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net > For additional commands, e-mail: users-help@glassfish.dev.java.net >
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net For additional commands, e-mail: users-help@glassfish.dev.java.net
|
|
|
|
|
|
|
|
Re: can't deploy two set of JPAs into the glassfish?
Posted:
Nov 6, 2008 6:59 AM
in response to: Marina Vatkina
|
|
|
Thank you for your reply.
In deployment time, I get:
Could not resolve a persistence unit corresponding to the persistence-unit-ref-name [x] in scope of the module called [y]. Please verify your application.
The only programs need to access the PU under web-inf/lib is in the same jar file as the PU. The web application has it own PU and all codes use that PU.
|
|
|
|
|
|
|
|
Re: can't deploy two set of JPAs into the glassfish?
Posted:
Nov 6, 2008 10:57 AM
in response to: bobxu
|
|
|
Are you deploying with --verify=true? If yes, it might be a bug in verifier, and you should be fine without this flag. Otherwise it means something is not packaged as you thought it is - GF doesn't process PUs that are not referenced by an application.
HTH, -marina
glassfish@javadesktop.org wrote: > Thank you for your reply. > > In deployment time, I get: > > Could not resolve a persistence unit corresponding to the persistence-unit-ref-name [x] in scope of the module called [y]. Please verify your application. > > The only programs need to access the PU under web-inf/lib is in the same jar file as the PU. The web application has it own PU and all codes use that PU. > [Message sent by forum member 'bobxu' (bobxu)] > > http://forums.java.net/jive/thread.jspa?messageID=315267 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net > For additional commands, e-mail: users-help@glassfish.dev.java.net >
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net For additional commands, e-mail: users-help@glassfish.dev.java.net
|
|
|
|
|
|
|
|
Re: can't deploy two set of JPAs into the glassfish?
Posted:
Nov 7, 2008 8:09 AM
in response to: Marina Vatkina
|
|
|
I am using NetBeans, so I have no ideal whether "--verify=true". Is it the default setting? How to set it ? Thanks.
|
|
|
|
|
|
|
|
Re: can't deploy two set of JPAs into the glassfish?
Posted:
Nov 7, 2008 11:07 AM
in response to: bobxu
|
|
|
glassfish@javadesktop.org wrote: > I am using NetBeans, so I have no ideal whether "--verify=true". Is it the default setting? How to set it ? Thanks. > No, it's not and there is no way to set it up via the IDE... Would need to file a RFE or bug...
Ludo > [Message sent by forum member 'bobxu' (bobxu)] > > http://forums.java.net/jive/thread.jspa?messageID=315482 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net > For additional commands, e-mail: users-help@glassfish.dev.java.net > >
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net For additional commands, e-mail: users-help@glassfish.dev.java.net
|
|
|
|
|