Skip to main content

Persistence unit ref:

40 replies [Last post]
Anonymous

Hello,

Below is my persistence.xml-

<?xml version="1.0" encoding="UTF-8"?>

jdbc_/EnterpriseDB2
false

How do I find the name of my -persistence-unit-ref-name?

I use the following and I get deployment error

ENTERPRISE-ejbPU

Deploying application in domain failed; Could not resolve a persistence unit corresponding to the persistence-unit-ref-name [ENTERPRISE-ejbPU] in scope of the module called [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war]. Please verify your application.

I need to specify it within my web.xml in-order to use @Persistence in my spring JEE

application.

Thanking you.

eve

_________________________________________________________________
Use Hotmail to send and receive mail from your different email accounts
http://clk.atdmt.com/UKM/go/186394592/direct/01/
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Eve Pokua

Vince,

I created a java lib proj as follows-

1. New project in netbeans

2. chose java class library under project of java categories

3. created a META-INF folder in the src and cut the persistence.xml file

and pasted it into it.

4. Back to my project - right clicked my project ejb module/properties,

libraries, add library, Create, enter library name, Add Jar / Folder.

5. Added project created in step 2.

Repeated to for my war module.

I get the following error-

deployment started : 0%
Deploying application in domain failed; Could not resolve a
persistence unit corresponding to the persistence-context-ref-name
[entityJB.DeliveryBean/em] in the scope of the module called
[gfdeploy#C:\jee\KAKENTERPRISE\dist\gfdeploy\KAKENTERPRISE-ejb_jar]. Please verify your application.
C:\jee\KAKENTERPRISE\nbproject\build-impl.xml:275: The module has not been deployed.
BUILD FAILED (total time: 49 seconds)

On verification -

Fail For every entity manager referenced in the application,
there must be a matching persistence unit defined using META-INF/persistence.xml file.
Please refer to EJB 3.0 Persistence API Specification section #6.2 for further information.
For [ KAKENTERPRISE#KAKENTERPRISE-ejb.jar#BaleBean ]
There is no unique persistence unit found by name [ null ] in the scope of this component.
Persistence units that are visible to this component are [ ].

BUT

WHEN I copy my persistence.xml file into my src/conf of both

my ejb and war module it deploys.

I'm I on the right track by doing this. If not where I'm I going wrong in

the above?

Thanks

eve

> Date: Wed, 9 Dec 2009 07:57:36 -0800
> From: Vince.Kraemer@Sun.COM
> To: users@glassfish.dev.java.net
> Subject: Re: Persistence unit ref:
>
> Hmmm.
>
> I won't have time to do that for at least a couple days. I have a
> couple NB issues that require plugin code changes to resolve that have
> to take priority over helping someone restructure their app to resolve a
> Spring related issue.
>
> I think you will need to:
>
> I think you may be able to just;
> 1. create a Java Library project, then
> 2. create a META-INF folder in the Source Packages, then
> 3. Cut/Paste the persistence.xml file from the old ejb jar project into
> the project created at step 1...
> 4. Make the EJB and WEB app projects depenent on the JAR, using the
> project properties...
> 5. Deploy.
>
> vbk
>
> Eve Pokua wrote:
> > Vince,
> >
> > I need to add the per-unit-ref to my web.xml to make something in my
> > spring work. I already know it deploys if I comment it out. If you
> > could
> > get the application to deploy by doing below without commenting the
> > per-unit-ref out.
> > Please, attach it and I will deploy it.
> >
> > Thanks
> >
> > eve
> >
> > /------- Additional comments from mm110999
> > Wed Dec 9 00:36:18 +0000 2009 -------/
> > The PU defined at ejb-jar level is not visible to war. See section 6.2.2 of JSR
> > 220 specs for more details. If you want to share a PU between two components of
> > and ear, the best place to put it is under lib dir of the ear like as follows
> >
> > my.ear
> > my.war
> > my.ejb.jar
> > lib/mypu.jar
> > META-INF/persitence.xml
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

_________________________________________________________________
Use Hotmail to send and receive mail from your different email accounts
http://clk.atdmt.com/UKM/go/186394592/direct/01/
[att1.html]

Vince Kraemer

you may want to use the jar command to create the archive that you send

On 12/08/09 14:39, Eve Pokua wrote:
> Vince,
>
> I am trying to zip everything and send over. as nb.
> But I only have winra which will complete it as rar.
> they system will reject it.
>
> Will get back to you soon.
>
> thanks
>
> eve
>
> ------------------------------------------------------------------------
> Date: Tue, 8 Dec 2009 14:16:13 -0800
> From: Vince.Kraemer@Sun.COM
> To: users@glassfish.dev.java.net
> Subject: Re: Persistence unit ref:
>
> a zip file that has a cluster of NB projects that create a problematic
> ear file would be great.
>
> On 12/08/09 13:24, Eve Pokua wrote:
>
> Hi,
>
> Should I log a test application for you to see.
> I package and deploy everything in netbeans.
>
> eve
>
>

[att1.html]

Eve Pokua

Marina, Ralp,

I think I have found where the problem lies

I read this thread -

http://old.nabble.com/PersistenceContext-and-the-verifier-td15864706.html

and

"

Verifier is correct, thee message could be better though. Having said
that, where did you read that it is OK to put persistence.xml in
META-INF directory of the ear file. If you put persistence.xml in
META-INF of ear, it is simply ignored. If you want your
persistence-units to be visible all modules in the ear file, then put in
a library jar. The easiest way of doing it is add all entity classes and
META-INF/persistence.xml into a jar file (say) entities.jar and package
it in lib directory of the ear file.

Thanks,
Sahoo "

I checked my application and found that netbeans is packaging the per.xml

in a jar dir under build/jar/META-INF

which is ignored. This' why my war does not see my per.xml in my ear.

I will have to find out how to package per.xml so my war can see it.

I heard this is resolved in JEE6.

Thanks

eve

From: gorgeous65@msn.com
To: users@glassfish.dev.java.net
Date: Sat, 5 Dec 2009 00:23:48 +0000
Subject: RE: Persistence unit ref:

marina,

There is no problem with jdbc

reference as tables are created and application is deployed if
I take away this from my web.xml -

persistence/TestingUN TestingUN

As long as the above is in my web.xml, I have the error.

eve

> Date: Fri, 4 Dec 2009 15:56:34 -0800
> From: Marina.Vatkina@Sun.COM
> To: users@glassfish.dev.java.net
> Subject: Re: FW: Persistence unit ref:
>
> Check if the PU had been processed correctly - are you sure there is jdbc_/ not
> jdbc/ in the datasource name?
>
> -marina
>
> Eve Pokua wrote:
> > Marina, Ralph,
> >
> > I am reading this thread.
> >
> > http://forums.java.net/jive/message.jspa?messageID=207860
> >
> > It looks like the web is not seeing my persistence in my ear.
> >
> > But I also tested this in just a web application and placed
> > the per.xml in the web dir then in the web/web-inf
> >
> > still same error-
> >
> > Thanking you.
> >
> > eve
> > ------------------------------------------------------------------------
> > From: gorgeous65@msn.com
> > To: users@glassfish.dev.java.net
> > Date: Fri, 4 Dec 2009 23:28:54 +0000
> > Subject: FW: Persistence unit ref:
> >
> >
> >
> > Here,
> >
> > Deploying application in domain failed; Deployment Error -- Could not
> > resolve a persistence unit corresponding to the
> > persistence-unit-ref-name [persistence/TestingUN2] in scope of the
> > module called [C:\jee\WebApplication2\build\web]. Please verify your
> > application.
> >
> >
> >
> > ------------------------------------------------------------------------
> > From: gorgeous65@msn.com
> > To: users@glassfish.dev.java.net
> > Subject: RE: Persistence unit ref:
> > Date: Fri, 4 Dec 2009 23:26:23 +0000
> >
> > Marina,
> >
> > I am using Gv 2. gluster profile. I really don't understand why
> > I am having this problem. I have even created another test
> > war application. but still similar error.
> >
> > Thanking you.
> >
> > eve
> >
> > > Date: Fri, 4 Dec 2009 15:23:41 -0800
> > > From: Marina.Vatkina@Sun.COM
> > > To: users@glassfish.dev.java.net
> > > Subject: Re: Persistence unit ref:
> > >
> > > Eve,
> > >
> > > Are you deploying it to GF v2.x or v3? In v3 you need to package
> > shared parts
> > > into the ear's lib/myjar.jar to be available to all components.
> > >
> > > Regards,
> > > -marina
> > >
> > > Eve Pokua wrote:
> > > > Ralph,
> > > >
> > > > My application is a full enterprise application.
> > > > No the persistence.xml is in my ejb
> > > > mobule section where all my entity files are.
> > > >
> > > > eve
> > > >
> > ------------------------------------------------------------------------
> > > > From: ralph.winzinger@senacor.de
> > > > To: users@glassfish.dev.java.net
> > > > Date: Sat, 5 Dec 2009 00:01:29 +0100
> > > > Subject: Re: Persistence unit ref:
> > > >
> > > > but persistence.xml is not contained in your war, is it?
> > > >
> > > >
> > > > Am 04.12.2009 um 23:53 schrieb Eve Pokua:
> > > >
> > > > Ralph see attached
> > > >
> > > > Hope that helps. This testing is also giving error.
> > > >
> > > > Thanks
> > > >
> > > > eve
> > > >
> > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > > From: gorgeous65@msn.com
> > > > To: users@glassfish.dev.java.net
> > > > ; ejb@glassfish.dev.java.net
> > > > ; persistence@glassfish.dev.java.net
> > > >
> > > > Date: Fri, 4 Dec 2009 22:32:26 +0000
> > > > Subject: RE: Persistence unit ref:
> > > >
> > > > Ralph,
> > > >
> > > > My application is very big.
> > > >
> > > > Do you have spring?
> > > >
> > > > In Marina's example
> > > >
> > > > This is what the JavaEE spec gives as an example:
> > > > *
> > > >
> > > > persistence/InventoryAppDB
> > > > *
> > > >
> > > > InventoryManagement
> > > >
> > > > *
> > > > *
> > > >
> > > >
> > > > I do not have what is bold in my per.xml
> > > >
> > > > Shouldn't it be why I am getting an error? The web.xml can not
> > > > resolve -
> > > >
> > > > Deploying application in domain failed; Could not resolve a
> > > > persistence unit corresponding to the persistence-unit-ref-name
> > > > [persistence/ENTERPRISE-ejbPU] in scope of the module called
> > > > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > > > Please verify your application.
> > > >
> > > > IT's complaining about the per-unit-ref-name which is not in my
> > per.xml.
> > > >
> > > >
> > > > How do I put that in? I tried to add it in but has been getting error.
> > > > Could you add it in and send it over?
> > > >
> > > > I will try and see if I can send over a test app.
> > > >
> > > > Thanking you.
> > > >
> > > > eve
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > > From: ralph.winzinger@senacor.de
> > > > To: users@glassfish.dev.java.net
> > > > Date: Fri, 4 Dec 2009 23:00:35 +0100
> > > > Subject: Re: Persistence unit ref:
> > > >
> > > > well, I tried various constellations to test whether your error will
> > > > show up (renaming persistence.xml, changing the value
> > > > in
(web.xml), changing
> > > > name=...> (persistence.xml)). But the error only occurred when the
> > > > unit-names in persistence.xml and web.xml did not match.
> > > >
> > > > If your project is some kind of test-project, you might send your
> > > > WAR (if it is not too big of course) - I will try to throw it at my
> > > > container ...
> > > >
> > > >
> > > > Am 04.12.2009 um 22:51 schrieb Eve Pokua:
> > > >
> > > > Ralph,
> > > >
> > > > I have recreated my persistence.xml.
> > > >
> > > > Please, note that I am using netbeans 6.7 to create my
> > > > persistence.xml.
> > > >
> > > > Here is the new file-
> > > >
> > > >
> > > >
> > > > 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/persistencehttp://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
> > > >
> > > >
> > > >
oracle.toplink.essentials.PersistenceProvider > > > > jdbc_/EnterpriseDB2
> > > >
> > > >
> > > > value="create-tables"/>
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > My problem comes when I have to
> > > >
> > > > this to my web.xml-
> > > >
> > > >
> > > >
> > > >
> >
persistence/ENTERPRISE-ejbPU > > > >
> > > >
ENTERPRISE-ejbPU > > > >
> > > >
> > > > when I comment it out of my web.xml, my application deploys.
> > > >
> > > > Ralph, could you please, double check your per.xml to see if you
> > > > have the
> > > >
> > > > persistence-unit-ref>
> > > >
> > > >
> > > > tag and also please, do reproduce my error by changing the per.
> > > > name.
> > > >
> > > > I'm sure you will reproduce the error.
> > > >
> > > >
> > > > This is what the JavaEE spec gives as an example:
> > > >
> > > >
> > > > persistence/InventoryAppDB
> > > >
> > > >
> > > > InventoryManagement
> > > >
> > > >
> > > >
> > > > Mar. I am using netbeans to create the per.xml.
> > > >
> > > >
> > > >
> > > > Thanking you for all your help.
> > > >
> > > > eve
> > > >
> > > >
> > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > >
> > > > From: ralph.winzinger@senacor.de
> > > > To: users@glassfish.dev.java.net
> > > >
> > > > Date: Fri, 4 Dec 2009 22:05:39 +0100
> > > > Subject: Re: Persistence unit ref:
> > > >
> > > > Eve,
> > > >
> > > > the only way, how I can reproduce your error is to change the
> > > > value of
to something not matching the
> > > > name in the persistence.xml. But thatseems to be ok in the
> > > > snippets you sent. So I would go on and look for old files that
> > > > might be still around - maybe there's another persistence.xml
> > > > that is read by accident. Look inside the WAR and make sure that
> > > > everything is as expected.
> > > >
> > > > Bye,
> > > > Ralph
> > > >
> > > >
> > > >
> > > > Am 04.12.2009 um 19:48 schrieb Eve Pokua:
> > > >
> > > > Ralph,
> > > >
> > > > Here is my per.xml
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > 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">
> > > >
> > > > transaction-type="JTA">
> > > > jdbc_/EnterpriseDB2
> > > > false
> > > >
> > > > > > > >
> > > >
> > > >
> > > >
> > > > regards
> > > >
> > > > eve
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > > From: ralph.winzinger@senacor.de
> > > >
> > > > To: users@glassfish.dev.java.net
> > > >
> > > > Date: Fri, 4 Dec 2009 15:20:16 +0100
> > > > Subject: Re: Persistence unit ref:
> > > >
> > > > hi,
> > > >
> > > > what does your persistence.xml look like?
> > > >
> > > >
> > > > Am 04.12.2009 um 13:50 schrieb Eve Pokua:
> > > >
> > > > Ralph,
> > > >
> > > > Thank you for your reply.
> > > >
> > > > I did as you said.
> > > >
> > > > i added the following to my web.xml
> > > >
> > > >
> > > >
> > > >
> > > >
> >
persistence/ENTERPRISE-ejbPU > > > >
ENTERPRISE-ejbPU > > > >
> > > >
> > > >
> > > >
> > > > in my applicationContext.xml
> > > >
> > > > > > > >
> > class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"
> > > > >
> > > >
> > > >
> > > > > > > > value="persistence/ENTERPRISE-ejbPU"/>
> > > >

> > > >
> > > >
> > > >
> > > >

> > > >
> > > >

> > > >
> > > >
> > > >
> > > > But I still get the error -
> > > >
> > > >
> > [#|2009-12-04T12:34:05.536+0000|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=20;_ThreadName=Thread-48;_RequestID=3fb89f4d-e8ef-403f-a422-9e5442bf9b3a;|Exception
> > > > occured in J2EEC Phase
> > > > com.sun.enterprise.deployment.backend.IASDeploymentException:
> > > > Could not resolve a persistence unit corresponding to
> > > > the persistence-unit-ref-name
> > > > [persistence/ENTERPRISE-ejbPU] in scope of the module
> > > > called
> > > > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > > > Please verify your application.
> > > > at
> > > >
> > com.sun.enterprise.deployment.BundleDescriptor.findReferencedPUsViaPURefs(BundleDescriptor.java:711)
> > > > at
> > > >
> > com.sun.enterprise.deployment.WebBundleDescriptor.findReferencedPUs(WebBundleDescriptor.java:727)
> > > > at
> > > >
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.getAllPersistenceUnitDescriptors(PersistenceProcessor.java:214)
> > > > at
> > > >
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.processApplication(PersistenceProcessor.java:175)
> > > > at
> > > >
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processApplication(DeploymentEventListenerImpl.java:211)
> > > > at
> > > >
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processEvent(DeploymentEventListenerImpl.java:172)
> > > > at
> > > >
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.notifyDeploymentEvent(DeploymentEventListenerImpl.java:122)
> > > > at
> > > >
> > com.sun.enterprise.deployment.backend.DeploymentEventManager.notifyDeploymentEvent(DeploymentEventManager.java:79)
> > > > at
> > > >
> > com.sun.enterprise.deployment.backend.AppDeployer.postDeploy(AppDeployer.java:401)
> > > > at
> > > >
> > com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:260)
> > > > at
> > > >
> > com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
> > > > at
> > > >
> > com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
> > > > at
> > > >
> > com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
> > > > at
> > > >
> > com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
> > > > at
> > > >
> > com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
> > > > at
> > > >
> > com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
> > > > at
> > > >
> > com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
> > > > at
> > > >
> > com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
> > > > |#]
> > > >
> > [#|2009-12-04T12:37:03.074+0000|INFO|sun-appserver2.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;;|Initializing
> > > > Sun's JavaServer Faces implementation (1.2_04-b22-p05)
> > > > for context ''|#]
> > > >
> > [#|2009-12-04T12:37:58.729+0000|INFO|sun-appserver2.1|com.sun.jbi.framework|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;|JBIFW0012:
> > > > JBI framework startup complete.|#]
> > > >
> > > >
> > > > sO MY QUESTION AGAIN IS - WHERE CAN I FIND A REFERENCE
> > > > TO MY persistence-unit-ref-name????
> > > >
> > > > I'VE CHECKED MY domain.xml but no details.
> > > >
> > > > thanks
> > > >
> > > > eve
> > > >
> > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > > From: ralph.winzinger@senacor.com
> > > >
> > > > To: users@glassfish.dev.java.net
> > > >
> > > > Date: Fri, 4 Dec 2009 00:42:46 +0100
> > > > Subject: Re: Persistence unit ref:
> > > >
> > > > Hi,
> > > >
> > > > I got this working just about an ago ...
> > > >
> > > > web.xml:
> > > >
> > > >
> > > >
> > > >
persistence/hd > > > >
hd > > > >
> > > >
> > > > application-context.xml:
> > > >
> > > > > > class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"
> > >
> > > >
> > > >
> > > >
> > > >

> > > >
> > > >
> > > >
> > > >

> > > >
> > > >

> > > >
> > > >
> > > > Hope this helps ...
> > > >
> > > > Bye,
> > > > Ralph
> > > >
> > > >
> > > > Kurz gehalten, da vom iPhone gesendet
> > > >
> > > > Am 04.12.2009 um 00:16 schrieb "Eve Pokua"
> > > > >:
> > > >
> > > > Hello,
> > > >
> > > > Below is my persistence.xml-
> > > >
> > > >
> > > >
> > > > 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">
> > > >
> > > > transaction-type="JTA">
> > > >
> > > > jdbc_/EnterpriseDB2
> > > >
> > > > false
> > > >
> > > > > > > >
> > > >
> > > >
> > > >
> > > > How do I find the name of my -persistence-unit-ref-name?
> > > >
> > > > I use the following and I get deployment error
> > > >
> > > >
ENTERPRISE-ejbPU > > > >
> > > > Deploying application in domain failed; Could not
> > > > resolve a persistence unit corresponding to the
> > > > persistence-unit-ref-name [ENTERPRISE-ejbPU] in
> > > > scope of the module called
> > > > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > > > Please verify your application.
> > > >
> > > > I need to specify it within my web.xml in-order to
> > > > use @Persistence in my spring JEE
> > > > application.
> > > >
> > > > Thanking you.
> > > >
> > > > eve
> > > >
> > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > > Use Hotmail to send and receive mail from your
> > > > different email accounts. Find out how.
> > > >
> > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > > New! Receive and respond to mail from other email
> > > > accounts from within Hotmail Find out how.
> > > >
> > > >
> > > >
> > > > Ralph Winzinger
> > > > Principal Architect
> > > > ______________________________
> > > > Senacor Technologies AG
> > > > Vordere Cramergasse 11
> > > > 90478 Nürnberg
> > > >
> > > > Telefon: +49 (0)911 4244-202
> > > > Telefax: +49 (0)911 4244-100
> > > >
> > > > ralph.winzinger@senacor.com
> > > > www.senacor.com
> > > >
> > > > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> > > > Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> > > > Vorstand: Matthias Tomann, Marcus Purzer -
> > > > Aufsichtsratsvorsitzender: Mathias J. Lindermeir
> > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > > Add other email accounts to Hotmail in 3 easy steps. Find
> > > > out how.
> > > >
> > > >
> > > > Ralph Winzinger
> > > > Principal Architect
> > > > ______________________________
> > > > Senacor Technologies AG
> > > > Vordere Cramergasse 11
> > > > 90478 Nürnberg
> > > >
> > > > Telefon: +49 (0)911 4244-202
> > > > Telefax: +49 (0)911 4244-100
> > > >
> > > > ralph.winzinger@senacor.com
> > > > www.senacor.com
> > > >
> > > > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> > > > Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> > > > Vorstand: Matthias Tomann, Marcus Purzer -
> > > > Aufsichtsratsvorsitzender: Mathias J. Lindermeir
> > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > > View your other email accounts from your Hotmail inbox. Add them
> > > > now.
> > > >
> > > >
> > > > Ralph Winzinger
> > > > Principal Architect
> > > > ______________________________
> > > > Senacor Technologies AG
> > > > Vordere Cramergasse 11
> > > > 90478 Nürnberg
> > > >
> > > > Telefon: +49 (0)911 4244-202
> > > > Telefax: +49 (0)911 4244-100
> > > >
> > > > ralph.winzinger@senacor.com
> > > > www.senacor.com
> > > >
> > > > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> > > > Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> > > > Vorstand: Matthias Tomann, Marcus Purzer -
> > > > Aufsichtsratsvorsitzender: Mathias J. Lindermeir
> > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > > View your other email accounts from your Hotmail inbox. Add them
> > > > now.
> > > >
> > ------------------------------------------------------------------------
> > > > Have more than one Hotmail account? Link them together to easily
> > > > access
> > > > both.
> >
---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> > > >
> > > > For additional commands, e-mail: users-help@glassfish.dev.java.net
> > > >
> > > >
> > > >
> > > > Ralph Winzinger
> > > > Principal Architect
> > > > ______________________________
> > > > Senacor Technologies AG
> > > > Vordere Cramergasse 11
> > > > 90478 Nürnberg
> > > >
> > > > Telefon: +49 (0)911 4244-202
> > > > Telefax: +49 (0)911 4244-100
> > > >
> > > > ralph.winzinger@senacor.com
> > > > www.senacor.com
> > > >
> > > > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg - Amtsgericht
> > > > Nürnberg - Reg.-Nr.: HRB 23098
> > > > Vorstand: Matthias Tomann, Marcus Purzer - Aufsichtsratsvorsitzender:
> > > > Mathias J. Lindermeir
> > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > > Add other email accounts to Hotmail in 3 easy steps. Find out how.
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> > > For additional commands, e-mail: users-help@glassfish.dev.java.net
> > >
> >
> > ------------------------------------------------------------------------
> > Add other email accounts to Hotmail in 3 easy steps. Find out how.
> >
> > ------------------------------------------------------------------------
> > Have more than one Hotmail account? Link them together to easily access
> > both.
> > ------------------------------------------------------------------------
> > Have more than one Hotmail account? Link them together to easily access
> > both. < http://clk.atdmt.com/UKM/go/186394591/direct/01/>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

Use Hotmail to send and receive mail from your different email accounts. Find out how.
_________________________________________________________________
Use Hotmail to send and receive mail from your different email accounts
http://clk.atdmt.com/UKM/go/186394592/direct/01/
[att1.html]

Eve Pokua

marina,

Yes it does-

Deploying application in domain failed; Could not resolve a persistence unit corresponding to the persistence-context-ref-name [persistence/TestingUN] in the scope of the module called [gfdeploy#C:\jee\Testingapp2\dist\gfdeploy\Testingapp2-war_war]. Please verify your application.
C:\jee\Testingapp2\nbproject\build-impl.xml:275: The module has not been deployed.

Thanks

eve

From: gorgeous65@msn.com
To: users@glassfish.dev.java.net; persistence@glassfish.dev.java.net; ejb@glassfish.dev.java.net
Date: Sat, 5 Dec 2009 00:49:46 +0000
Subject: FW: Persistence unit ref:

Marina, Ralp,

I think I have found where the problem lies

I read this thread -

http://old.nabble.com/PersistenceContext-and-the-verifier-td15864706.html

and

"
Verifier is correct, thee message could be better though. Having said
that, where did you read that it is OK to put persistence.xml in
META-INF directory of the ear file. If you put persistence.xml in
META-INF of ear, it is simply ignored. If you want your
persistence-units to be visible all modules in the ear file, then put in
a library jar. The easiest way of doing it is add all entity classes and
META-INF/persistence.xml into a jar file (say) entities.jar and package
it in lib directory of the ear file.

Thanks,
Sahoo "

I checked my application and found that netbeans is packaging the per.xml
in a jar dir under build/jar/META-INF

which is ignored. This' why my war does not see my per.xml in my ear.

I will have to find out how to package per.xml so my war can see it.

I heard this is resolved in JEE6.

Thanks

eve

From: gorgeous65@msn.com
To: users@glassfish.dev.java.net
Date: Sat, 5 Dec 2009 00:23:48 +0000
Subject: RE: Persistence unit ref:

marina,

There is no problem with jdbc

reference as tables are created and application is deployed if
I take away this from my web.xml -

persistence/TestingUN TestingUN

As long as the above is in my web.xml, I have the error.

eve

> Date: Fri, 4 Dec 2009 15:56:34 -0800
> From: Marina.Vatkina@Sun.COM
> To: users@glassfish.dev.java.net
> Subject: Re: FW: Persistence unit ref:
>
> Check if the PU had been processed correctly - are you sure there is jdbc_/ not
> jdbc/ in the datasource name?
>
> -marina
>
> Eve Pokua wrote:
> > Marina, Ralph,
> >
> > I am reading this thread.
> >
> > http://forums.java.net/jive/message.jspa?messageID=207860
> >
> > It looks like the web is not seeing my persistence in my ear.
> >
> > But I also tested this in just a web application and placed
> > the per.xml in the web dir then in the web/web-inf
> >
> > still same error-
> >
> > Thanking you.
> >
> > eve
> > ------------------------------------------------------------------------
> > From: gorgeous65@msn.com
> > To: users@glassfish.dev.java.net
> > Date: Fri, 4 Dec 2009 23:28:54 +0000
> > Subject: FW: Persistence unit ref:
> >
> >
> >
> > Here,
> >
> > Deploying application in domain failed; Deployment Error -- Could not
> > resolve a persistence unit corresponding to the
> > persistence-unit-ref-name [persistence/TestingUN2] in scope of the
> > module called [C:\jee\WebApplication2\build\web]. Please verify your
> > application.
> >
> >
> >
> > ------------------------------------------------------------------------
> > From: gorgeous65@msn.com
> > To: users@glassfish.dev.java.net
> > Subject: RE: Persistence unit ref:
> > Date: Fri, 4 Dec 2009 23:26:23 +0000
> >
> > Marina,
> >
> > I am using Gv 2. gluster profile. I really don't understand why
> > I am having this problem. I have even created another test
> > war application. but still similar error.
> >
> > Thanking you.
> >
> > eve
> >
> > > Date: Fri, 4 Dec 2009 15:23:41 -0800
> > > From: Marina.Vatkina@Sun.COM
> > > To: users@glassfish.dev.java.net
> > > Subject: Re: Persistence unit ref:
> > >
> > > Eve,
> > >
> > > Are you deploying it to GF v2.x or v3? In v3 you need to package
> > shared parts
> > > into the ear's lib/myjar.jar to be available to all components.
> > >
> > > Regards,
> > > -marina
> > >
> > > Eve Pokua wrote:
> > > > Ralph,
> > > >
> > > > My application is a full enterprise application.
> > > > No the persistence.xml is in my ejb
> > > > mobule section where all my entity files are.
> > > >
> > > > eve
> > > >
> > ------------------------------------------------------------------------
> > > > From: ralph.winzinger@senacor.de
> > > > To: users@glassfish.dev.java.net
> > > > Date: Sat, 5 Dec 2009 00:01:29 +0100
> > > > Subject: Re: Persistence unit ref:
> > > >
> > > > but persistence.xml is not contained in your war, is it?
> > > >
> > > >
> > > > Am 04.12.2009 um 23:53 schrieb Eve Pokua:
> > > >
> > > > Ralph see attached
> > > >
> > > > Hope that helps. This testing is also giving error.
> > > >
> > > > Thanks
> > > >
> > > > eve
> > > >
> > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > > From: gorgeous65@msn.com
> > > > To: users@glassfish.dev.java.net
> > > > ; ejb@glassfish.dev.java.net
> > > > ; persistence@glassfish.dev.java.net
> > > >
> > > > Date: Fri, 4 Dec 2009 22:32:26 +0000
> > > > Subject: RE: Persistence unit ref:
> > > >
> > > > Ralph,
> > > >
> > > > My application is very big.
> > > >
> > > > Do you have spring?
> > > >
> > > > In Marina's example
> > > >
> > > > This is what the JavaEE spec gives as an example:
> > > > *
> > > >
> > > > persistence/InventoryAppDB
> > > > *
> > > >
> > > > InventoryManagement
> > > >
> > > > *
> > > > *
> > > >
> > > >
> > > > I do not have what is bold in my per.xml
> > > >
> > > > Shouldn't it be why I am getting an error? The web.xml can not
> > > > resolve -
> > > >
> > > > Deploying application in domain failed; Could not resolve a
> > > > persistence unit corresponding to the persistence-unit-ref-name
> > > > [persistence/ENTERPRISE-ejbPU] in scope of the module called
> > > > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > > > Please verify your application.
> > > >
> > > > IT's complaining about the per-unit-ref-name which is not in my
> > per.xml.
> > > >
> > > >
> > > > How do I put that in? I tried to add it in but has been getting error.
> > > > Could you add it in and send it over?
> > > >
> > > > I will try and see if I can send over a test app.
> > > >
> > > > Thanking you.
> > > >
> > > > eve
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > > From: ralph.winzinger@senacor.de
> > > > To: users@glassfish.dev.java.net
> > > > Date: Fri, 4 Dec 2009 23:00:35 +0100
> > > > Subject: Re: Persistence unit ref:
> > > >
> > > > well, I tried various constellations to test whether your error will
> > > > show up (renaming persistence.xml, changing the value
> > > > in
(web.xml), changing
> > > > name=...> (persistence.xml)). But the error only occurred when the
> > > > unit-names in persistence.xml and web.xml did not match.
> > > >
> > > > If your project is some kind of test-project, you might send your
> > > > WAR (if it is not too big of course) - I will try to throw it at my
> > > > container ...
> > > >
> > > >
> > > > Am 04.12.2009 um 22:51 schrieb Eve Pokua:
> > > >
> > > > Ralph,
> > > >
> > > > I have recreated my persistence.xml.
> > > >
> > > > Please, note that I am using netbeans 6.7 to create my
> > > > persistence.xml.
> > > >
> > > > Here is the new file-
> > > >
> > > >
> > > >
> > > > 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/persistencehttp://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
> > > >
> > > >
> > > >
oracle.toplink.essentials.PersistenceProvider > > > > jdbc_/EnterpriseDB2
> > > >
> > > >
> > > > value="create-tables"/>
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > My problem comes when I have to
> > > >
> > > > this to my web.xml-
> > > >
> > > >
> > > >
> > > >
> >
persistence/ENTERPRISE-ejbPU > > > >
> > > >
ENTERPRISE-ejbPU > > > >
> > > >
> > > > when I comment it out of my web.xml, my application deploys.
> > > >
> > > > Ralph, could you please, double check your per.xml to see if you
> > > > have the
> > > >
> > > > persistence-unit-ref>
> > > >
> > > >
> > > > tag and also please, do reproduce my error by changing the per.
> > > > name.
> > > >
> > > > I'm sure you will reproduce the error.
> > > >
> > > >
> > > > This is what the JavaEE spec gives as an example:
> > > >
> > > >
> > > > persistence/InventoryAppDB
> > > >
> > > >
> > > > InventoryManagement
> > > >
> > > >
> > > >
> > > > Mar. I am using netbeans to create the per.xml.
> > > >
> > > >
> > > >
> > > > Thanking you for all your help.
> > > >
> > > > eve
> > > >
> > > >
> > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > >
> > > > From: ralph.winzinger@senacor.de
> > > > To: users@glassfish.dev.java.net
> > > >
> > > > Date: Fri, 4 Dec 2009 22:05:39 +0100
> > > > Subject: Re: Persistence unit ref:
> > > >
> > > > Eve,
> > > >
> > > > the only way, how I can reproduce your error is to change the
> > > > value of
to something not matching the
> > > > name in the persistence.xml. But thatseems to be ok in the
> > > > snippets you sent. So I would go on and look for old files that
> > > > might be still around - maybe there's another persistence.xml
> > > > that is read by accident. Look inside the WAR and make sure that
> > > > everything is as expected.
> > > >
> > > > Bye,
> > > > Ralph
> > > >
> > > >
> > > >
> > > > Am 04.12.2009 um 19:48 schrieb Eve Pokua:
> > > >
> > > > Ralph,
> > > >
> > > > Here is my per.xml
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > 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">
> > > >
> > > > transaction-type="JTA">
> > > > jdbc_/EnterpriseDB2
> > > > false
> > > >
> > > > > > > >
> > > >
> > > >
> > > >
> > > > regards
> > > >
> > > > eve
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > > From: ralph.winzinger@senacor.de
> > > >
> > > > To: users@glassfish.dev.java.net
> > > >
> > > > Date: Fri, 4 Dec 2009 15:20:16 +0100
> > > > Subject: Re: Persistence unit ref:
> > > >
> > > > hi,
> > > >
> > > > what does your persistence.xml look like?
> > > >
> > > >
> > > > Am 04.12.2009 um 13:50 schrieb Eve Pokua:
> > > >
> > > > Ralph,
> > > >
> > > > Thank you for your reply.
> > > >
> > > > I did as you said.
> > > >
> > > > i added the following to my web.xml
> > > >
> > > >
> > > >
> > > >
> > > >
> >
persistence/ENTERPRISE-ejbPU > > > >
ENTERPRISE-ejbPU > > > >
> > > >
> > > >
> > > >
> > > > in my applicationContext.xml
> > > >
> > > > > > > >
> > class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"
> > > > >
> > > >
> > > >
> > > > > > > > value="persistence/ENTERPRISE-ejbPU"/>
> > > >

> > > >
> > > >
> > > >
> > > >

> > > >
> > > >

> > > >
> > > >
> > > >
> > > > But I still get the error -
> > > >
> > > >
> > [#|2009-12-04T12:34:05.536+0000|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=20;_ThreadName=Thread-48;_RequestID=3fb89f4d-e8ef-403f-a422-9e5442bf9b3a;|Exception
> > > > occured in J2EEC Phase
> > > > com.sun.enterprise.deployment.backend.IASDeploymentException:
> > > > Could not resolve a persistence unit corresponding to
> > > > the persistence-unit-ref-name
> > > > [persistence/ENTERPRISE-ejbPU] in scope of the module
> > > > called
> > > > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > > > Please verify your application.
> > > > at
> > > >
> > com.sun.enterprise.deployment.BundleDescriptor.findReferencedPUsViaPURefs(BundleDescriptor.java:711)
> > > > at
> > > >
> > com.sun.enterprise.deployment.WebBundleDescriptor.findReferencedPUs(WebBundleDescriptor.java:727)
> > > > at
> > > >
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.getAllPersistenceUnitDescriptors(PersistenceProcessor.java:214)
> > > > at
> > > >
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.processApplication(PersistenceProcessor.java:175)
> > > > at
> > > >
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processApplication(DeploymentEventListenerImpl.java:211)
> > > > at
> > > >
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processEvent(DeploymentEventListenerImpl.java:172)
> > > > at
> > > >
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.notifyDeploymentEvent(DeploymentEventListenerImpl.java:122)
> > > > at
> > > >
> > com.sun.enterprise.deployment.backend.DeploymentEventManager.notifyDeploymentEvent(DeploymentEventManager.java:79)
> > > > at
> > > >
> > com.sun.enterprise.deployment.backend.AppDeployer.postDeploy(AppDeployer.java:401)
> > > > at
> > > >
> > com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:260)
> > > > at
> > > >
> > com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
> > > > at
> > > >
> > com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
> > > > at
> > > >
> > com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
> > > > at
> > > >
> > com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
> > > > at
> > > >
> > com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
> > > > at
> > > >
> > com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
> > > > at
> > > >
> > com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
> > > > at
> > > >
> > com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
> > > > |#]
> > > >
> > [#|2009-12-04T12:37:03.074+0000|INFO|sun-appserver2.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;;|Initializing
> > > > Sun's JavaServer Faces implementation (1.2_04-b22-p05)
> > > > for context ''|#]
> > > >
> > [#|2009-12-04T12:37:58.729+0000|INFO|sun-appserver2.1|com.sun.jbi.framework|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;|JBIFW0012:
> > > > JBI framework startup complete.|#]
> > > >
> > > >
> > > > sO MY QUESTION AGAIN IS - WHERE CAN I FIND A REFERENCE
> > > > TO MY persistence-unit-ref-name????
> > > >
> > > > I'VE CHECKED MY domain.xml but no details.
> > > >
> > > > thanks
> > > >
> > > > eve
> > > >
> > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > > From: ralph.winzinger@senacor.com
> > > >
> > > > To: users@glassfish.dev.java.net
> > > >
> > > > Date: Fri, 4 Dec 2009 00:42:46 +0100
> > > > Subject: Re: Persistence unit ref:
> > > >
> > > > Hi,
> > > >
> > > > I got this working just about an ago ...
> > > >
> > > > web.xml:
> > > >
> > > >
> > > >
> > > >
persistence/hd > > > >
hd > > > >
> > > >
> > > > application-context.xml:
> > > >
> > > > > > class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"
> > >
> > > >
> > > >
> > > >
> > > >

> > > >
> > > >
> > > >
> > > >

> > > >
> > > >

> > > >
> > > >
> > > > Hope this helps ...
> > > >
> > > > Bye,
> > > > Ralph
> > > >
> > > >
> > > > Kurz gehalten, da vom iPhone gesendet
> > > >
> > > > Am 04.12.2009 um 00:16 schrieb "Eve Pokua"
> > > > >:
> > > >
> > > > Hello,
> > > >
> > > > Below is my persistence.xml-
> > > >
> > > >
> > > >
> > > > 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">
> > > >
> > > > transaction-type="JTA">
> > > >
> > > > jdbc_/EnterpriseDB2
> > > >
> > > > false
> > > >
> > > > > > > >
> > > >
> > > >
> > > >
> > > > How do I find the name of my -persistence-unit-ref-name?
> > > >
> > > > I use the following and I get deployment error
> > > >
> > > >
ENTERPRISE-ejbPU > > > >
> > > > Deploying application in domain failed; Could not
> > > > resolve a persistence unit corresponding to the
> > > > persistence-unit-ref-name [ENTERPRISE-ejbPU] in
> > > > scope of the module called
> > > > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > > > Please verify your application.
> > > >
> > > > I need to specify it within my web.xml in-order to
> > > > use @Persistence in my spring JEE
> > > > application.
> > > >
> > > > Thanking you.
> > > >
> > > > eve
> > > >
> > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > > Use Hotmail to send and receive mail from your
> > > > different email accounts. Find out how.
> > > >
> > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > > New! Receive and respond to mail from other email
> > > > accounts from within Hotmail Find out how.
> > > >
> > > >
> > > >
> > > > Ralph Winzinger
> > > > Principal Architect
> > > > ______________________________
> > > > Senacor Technologies AG
> > > > Vordere Cramergasse 11
> > > > 90478 Nürnberg
> > > >
> > > > Telefon: +49 (0)911 4244-202
> > > > Telefax: +49 (0)911 4244-100
> > > >
> > > > ralph.winzinger@senacor.com
> > > > www.senacor.com
> > > >
> > > > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> > > > Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> > > > Vorstand: Matthias Tomann, Marcus Purzer -
> > > > Aufsichtsratsvorsitzender: Mathias J. Lindermeir
> > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > > Add other email accounts to Hotmail in 3 easy steps. Find
> > > > out how.
> > > >
> > > >
> > > > Ralph Winzinger
> > > > Principal Architect
> > > > ______________________________
> > > > Senacor Technologies AG
> > > > Vordere Cramergasse 11
> > > > 90478 Nürnberg
> > > >
> > > > Telefon: +49 (0)911 4244-202
> > > > Telefax: +49 (0)911 4244-100
> > > >
> > > > ralph.winzinger@senacor.com
> > > > www.senacor.com
> > > >
> > > > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> > > > Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> > > > Vorstand: Matthias Tomann, Marcus Purzer -
> > > > Aufsichtsratsvorsitzender: Mathias J. Lindermeir
> > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > > View your other email accounts from your Hotmail inbox. Add them
> > > > now.
> > > >
> > > >
> > > > Ralph Winzinger
> > > > Principal Architect
> > > > ______________________________
> > > > Senacor Technologies AG
> > > > Vordere Cramergasse 11
> > > > 90478 Nürnberg
> > > >
> > > > Telefon: +49 (0)911 4244-202
> > > > Telefax: +49 (0)911 4244-100
> > > >
> > > > ralph.winzinger@senacor.com
> > > > www.senacor.com
> > > >
> > > > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> > > > Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> > > > Vorstand: Matthias Tomann, Marcus Purzer -
> > > > Aufsichtsratsvorsitzender: Mathias J. Lindermeir
> > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > > View your other email accounts from your Hotmail inbox. Add them
> > > > now.
> > > >
> > ------------------------------------------------------------------------
> > > > Have more than one Hotmail account? Link them together to easily
> > > > access
> > > > both.
> >
---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> > > >
> > > > For additional commands, e-mail: users-help@glassfish.dev.java.net
> > > >
> > > >
> > > >
> > > > Ralph Winzinger
> > > > Principal Architect
> > > > ______________________________
> > > > Senacor Technologies AG
> > > > Vordere Cramergasse 11
> > > > 90478 Nürnberg
> > > >
> > > > Telefon: +49 (0)911 4244-202
> > > > Telefax: +49 (0)911 4244-100
> > > >
> > > > ralph.winzinger@senacor.com
> > > > www.senacor.com
> > > >
> > > > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg - Amtsgericht
> > > > Nürnberg - Reg.-Nr.: HRB 23098
> > > > Vorstand: Matthias Tomann, Marcus Purzer - Aufsichtsratsvorsitzender:
> > > > Mathias J. Lindermeir
> > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > > Add other email accounts to Hotmail in 3 easy steps. Find out how.
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> > > For additional commands, e-mail: users-help@glassfish.dev.java.net
> > >
> >
> > ------------------------------------------------------------------------
> > Add other email accounts to Hotmail in 3 easy steps. Find out how.
> >
> > ------------------------------------------------------------------------
> > Have more than one Hotmail account? Link them together to easily access
> > both.
> > ------------------------------------------------------------------------
> > Have more than one Hotmail account? Link them together to easily access
> > both. < http://clk.atdmt.com/UKM/go/186394591/direct/01/>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

Use Hotmail to send and receive mail from your different email accounts. Find out how.

Use Hotmail to send and receive mail from your different email accounts. Find out how.
_________________________________________________________________
Have more than one Hotmail account? Link them together to easily access both
http://clk.atdmt.com/UKM/go/186394591/direct/01/
[att1.html]

Marina Vatkina

If you are saying that the persistence.xml is not packaged correctly, then you
need to fix it. In v2 you can put it into META-INF directory of the ejb jar if
this is the place where your entities are packaged.

Regards,
-marina

Eve Pokua wrote:
> marina,
>
> Yes it does-
>
> Deploying application in domain failed; Could not resolve a persistence
> unit corresponding to the persistence-context-ref-name
> [persistence/TestingUN] in the scope of the module called
> [gfdeploy#C:\jee\Testingapp2\dist\gfdeploy\Testingapp2-war_war]. Please
> verify your application.
> C:\jee\Testingapp2\nbproject\build-impl.xml:275: The module has not been
> deployed.
>
> Thanks
>
> eve
> ------------------------------------------------------------------------
> From: gorgeous65@msn.com
> To: users@glassfish.dev.java.net; persistence@glassfish.dev.java.net;
> ejb@glassfish.dev.java.net
> Date: Sat, 5 Dec 2009 00:49:46 +0000
> Subject: FW: Persistence unit ref:
>
> Marina, Ralp,
>
> I think I have found where the problem lies
>
> I read this thread -
>
> http://old.nabble.com/PersistenceContext-and-the-verifier-td15864706.html
>
> and
>
> "
> Verifier is correct, *thee* message *could* be better though. Having said
> that, where did you read that it is OK *to* put *persistence*.xml in
> META-INF directory of *the* ear file. If you put *persistence*.xml in
> META-INF of ear, it is simply ignored. If you want your
> *persistence*-*units* *to* be visible *all* modules in *the* ear file,
> *then* put in
> *a* library jar. *The* easiest way of doing it is *add* *all* entity
> classes *and*
> META-INF/*persistence*.xml into *a* jar file (say) entities.jar *and*
> package
> it in lib directory of *the* ear file.
>
> Thanks,
> Sahoo "
>
> I checked my application and found that netbeans is packaging the per.xml
> in a jar dir under build/jar/META-INF
>
> which is ignored. This' why my war does not see my per.xml in my ear.
>
> I will have to find out how to package per.xml so my war can see it.
>
> I heard this is resolved in JEE6.
>
> Thanks
>
> eve
>
>
> ------------------------------------------------------------------------
> From: gorgeous65@msn.com
> To: users@glassfish.dev.java.net
> Date: Sat, 5 Dec 2009 00:23:48 +0000
> Subject: RE: Persistence unit ref:
>
> marina,
>
> There is no problem with jdbc
>
> reference as tables are created and application is deployed if
> I take away this from my web.xml -
>
>
>
>
persistence/TestingUN >
TestingUN >
>
> As long as the above is in my web.xml, I have the error.
>
> eve
>
>
>
> > Date: Fri, 4 Dec 2009 15:56:34 -0800
> > From: Marina.Vatkina@Sun.COM
> > To: users@glassfish.dev.java.net
> > Subject: Re: FW: Persistence unit ref:
> >
> > Check if the PU had been processed correctly - are you sure there is
> jdbc_/ not
> > jdbc/ in the datasource name?
> >
> > -marina
> >
> > Eve Pokua wrote:
> > > Marina, Ralph,
> > >
> > > I am reading this thread.
> > >
> > > http://forums.java.net/jive/message.jspa?messageID=207860
> > >
> > > It looks like the web is not seeing my persistence in my ear.
> > >
> > > But I also tested this in just a web application and placed
> > > the per.xml in the web dir then in the web/web-inf
> > >
> > > still same error-
> > >
> > > Thanking you.
> > >
> > > eve
> > >
> ------------------------------------------------------------------------
> > > From: gorgeous65@msn.com
> > > To: users@glassfish.dev.java.net
> > > Date: Fri, 4 Dec 2009 23:28:54 +0000
> > > Subject: FW: Persistence unit ref:
> > >
> > >
> > >
> > > Here,
> > >
> > > Deploying application in domain failed; Deployment Error -- Could not
> > > resolve a persistence unit corresponding to the
> > > persistence-unit-ref-name [persistence/TestingUN2] in scope of the
> > > module called [C:\jee\WebApplication2\build\web]. Please verify your
> > > application.
> > >
> > >
> > >
> > >
> ------------------------------------------------------------------------
> > > From: gorgeous65@msn.com
> > > To: users@glassfish.dev.java.net
> > > Subject: RE: Persistence unit ref:
> > > Date: Fri, 4 Dec 2009 23:26:23 +0000
> > >
> > > Marina,
> > >
> > > I am using Gv 2. gluster profile. I really don't understand why
> > > I am having this problem. I have even created another test
> > > war application. but still similar error.
> > >
> > > Thanking you.
> > >
> > > eve
> > >
> > > > Date: Fri, 4 Dec 2009 15:23:41 -0800
> > > > From: Marina.Vatkina@Sun.COM
> > > > To: users@glassfish.dev.java.net
> > > > Subject: Re: Persistence unit ref:
> > > >
> > > > Eve,
> > > >
> > > > Are you deploying it to GF v2.x or v3? In v3 you need to package
> > > shared parts
> > > > into the ear's lib/myjar.jar to be available to all components.
> > > >
> > > > Regards,
> > > > -marina
> > > >
> > > > Eve Pokua wrote:
> > > > > Ralph,
> > > > >
> > > > > My application is a full enterprise application.
> > > > > No the persistence.xml is in my ejb
> > > > > mobule section where all my entity files are.
> > > > >
> > > > > eve
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > From: ralph.winzinger@senacor.de
> > > > > To: users@glassfish.dev.java.net
> > > > > Date: Sat, 5 Dec 2009 00:01:29 +0100
> > > > > Subject: Re: Persistence unit ref:
> > > > >
> > > > > but persistence.xml is not contained in your war, is it?
> > > > >
> > > > >
> > > > > Am 04.12.2009 um 23:53 schrieb Eve Pokua:
> > > > >
> > > > > Ralph see attached
> > > > >
> > > > > Hope that helps. This testing is also giving error.
> > > > >
> > > > > Thanks
> > > > >
> > > > > eve
> > > > >
> > > > >
> > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > From: gorgeous65@msn.com
> > > > > To: users@glassfish.dev.java.net
> > > > > ; ejb@glassfish.dev.java.net
> > > > > ;
> persistence@glassfish.dev.java.net
> > > > >
> > > > > Date: Fri, 4 Dec 2009 22:32:26 +0000
> > > > > Subject: RE: Persistence unit ref:
> > > > >
> > > > > Ralph,
> > > > >
> > > > > My application is very big.
> > > > >
> > > > > Do you have spring?
> > > > >
> > > > > In Marina's example
> > > > >
> > > > > This is what the JavaEE spec gives as an example:
> > > > > *
> > > > >
> > > > > persistence/InventoryAppDB
> > > > > *
> > > > >
> > > > > InventoryManagement
> > > > >
> > > > > *
> > > > > *
> > > > >
> > > > >
> > > > > I do not have what is bold in my per.xml
> > > > >
> > > > > Shouldn't it be why I am getting an error? The web.xml can not
> > > > > resolve -
> > > > >
> > > > > Deploying application in domain failed; Could not resolve a
> > > > > persistence unit corresponding to the persistence-unit-ref-name
> > > > > [persistence/ENTERPRISE-ejbPU] in scope of the module called
> > > > > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > > > > Please verify your application.
> > > > >
> > > > > IT's complaining about the per-unit-ref-name which is not in my
> > > per.xml.
> > > > >
> > > > >
> > > > > How do I put that in? I tried to add it in but has been getting
> error.
> > > > > Could you add it in and send it over?
> > > > >
> > > > > I will try and see if I can send over a test app.
> > > > >
> > > > > Thanking you.
> > > > >
> > > > > eve
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > From: ralph.winzinger@senacor.de
>
> > > > > To: users@glassfish.dev.java.net
>
> > > > > Date: Fri, 4 Dec 2009 23:00:35 +0100
> > > > > Subject: Re: Persistence unit ref:
> > > > >
> > > > > well, I tried various constellations to test whether your error
> will
> > > > > show up (renaming persistence.xml, changing the value
> > > > > in
(web.xml), changing
>
> > > > > name=...> (persistence.xml)). But the error only occurred when the
> > > > > unit-names in persistence.xml and web.xml did not match.
> > > > >
> > > > > If your project is some kind of test-project, you might send your
> > > > > WAR (if it is not too big of course) - I will try to throw it at my
> > > > > container ...
> > > > >
> > > > >
> > > > > Am 04.12.2009 um 22:51 schrieb Eve Pokua:
> > > > >
> > > > > Ralph,
> > > > >
> > > > > I have recreated my persistence.xml.
> > > > >
> > > > > Please, note that I am using netbeans 6.7 to create my
> > > > > persistence.xml.
> > > > >
> > > > > Here is the new file-
> > > > >
> > > > >
> > > > >
> > > > > 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/persistencehttp://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
> > > > >
> > > > >
> > > > >
oracle.toplink.essentials.PersistenceProvider > > > > > jdbc_/EnterpriseDB2
> > > > >
> > > > >
> > > > > value="create-tables"/>
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > My problem comes when I have to
> > > > >
> > > > > this to my web.xml-
> > > > >
> > > > >
> > > > >
> > > > >
> > >
>
persistence/ENTERPRISE-ejbPU > > > > >
> > > > >
ENTERPRISE-ejbPU > > > > >
> > > > >
> > > > > when I comment it out of my web.xml, my application deploys.
> > > > >
> > > > > Ralph, could you please, double check your per.xml to see if you
> > > > > have the
> > > > >
> > > > > persistence-unit-ref>
> > > > >
> > > > >
> > > > > tag and also please, do reproduce my error by changing the per.
> > > > > name.
> > > > >
> > > > > I'm sure you will reproduce the error.
> > > > >
> > > > >
> > > > > This is what the JavaEE spec gives as an example:
> > > > >
> > > > >
> > > > > persistence/InventoryAppDB
> > > > >
> > > > >
> > > > > InventoryManagement
> > > > >
> > > > >
> > > > >
> > > > > Mar. I am using netbeans to create the per.xml.
> > > > >
> > > > >
> > > > >
> > > > > Thanking you for all your help.
> > > > >
> > > > > eve
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > >
> > > > > From: ralph.winzinger@senacor.de
>
> > > > > To: users@glassfish.dev.java.net
> > > > >
> > > > > Date: Fri, 4 Dec 2009 22:05:39 +0100
> > > > > Subject: Re: Persistence unit ref:
> > > > >
> > > > > Eve,
> > > > >
> > > > > the only way, how I can reproduce your error is to change the
> > > > > value of
to something not matching the
> > > > > name in the persistence.xml. But thatseems to be ok in the
> > > > > snippets you sent. So I would go on and look for old files that
> > > > > might be still around - maybe there's another persistence.xml
> > > > > that is read by accident. Look inside the WAR and make sure that
> > > > > everything is as expected.
> > > > >
> > > > > Bye,
> > > > > Ralph
> > > > >
> > > > >
> > > > >
> > > > > Am 04.12.2009 um 19:48 schrieb Eve Pokua:
> > > > >
> > > > > Ralph,
> > > > >
> > > > > Here is my per.xml
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > 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">
> > > > >
> > > > > transaction-type="JTA">
> > > > > jdbc_/EnterpriseDB2
> > > > > false
> > > > >
> > > > > > > > > >
> > > > >
> > > > >
> > > > >
> > > > > regards
> > > > >
> > > > > eve
> > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > From: ralph.winzinger@senacor.de
> > > > >
> > > > > To: users@glassfish.dev.java.net
> > > > >
> > > > > Date: Fri, 4 Dec 2009 15:20:16 +0100
> > > > > Subject: Re: Persistence unit ref:
> > > > >
> > > > > hi,
> > > > >
> > > > > what does your persistence.xml look like?
> > > > >
> > > > >
> > > > > Am 04.12.2009 um 13:50 schrieb Eve Pokua:
> > > > >
> > > > > Ralph,
> > > > >
> > > > > Thank you for your reply.
> > > > >
> > > > > I did as you said.
> > > > >
> > > > > i added the following to my web.xml
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > >
>
persistence/ENTERPRISE-ejbPU > > > > >
ENTERPRISE-ejbPU > > > > >
> > > > >
> > > > >
> > > > >
> > > > > in my applicationContext.xml
> > > > >
> > > > > > > > > >
> > >
> class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"
> > > > > >
> > > > >
> > > > >
> > > > > > > > > > value="persistence/ENTERPRISE-ejbPU"/>
> > > > >

> > > > >
> > > > >
> > > > >
> > > > >

> > > > >
> > > > >

> > > > >
> > > > >
> > > > >
> > > > > But I still get the error -
> > > > >
> > > > >
> > >
> [#|2009-12-04T12:34:05.536+0000|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=20;_ThreadName=Thread-48;_RequestID=3fb89f4d-e8ef-403f-a422-9e5442bf9b3a;|Exception
> > > > > occured in J2EEC Phase
> > > > > com.sun.enterprise.deployment.backend.IASDeploymentException:
> > > > > Could not resolve a persistence unit corresponding to
> > > > > the persistence-unit-ref-name
> > > > > [persistence/ENTERPRISE-ejbPU] in scope of the module
> > > > > called
> > > > > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > > > > Please verify your application.
> > > > > at
> > > > >
> > >
> com.sun.enterprise.deployment.BundleDescriptor.findReferencedPUsViaPURefs(BundleDescriptor.java:711)
> > > > > at
> > > > >
> > >
> com.sun.enterprise.deployment.WebBundleDescriptor.findReferencedPUs(WebBundleDescriptor.java:727)
> > > > > at
> > > > >
> > >
> com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.getAllPersistenceUnitDescriptors(PersistenceProcessor.java:214)
> > > > > at
> > > > >
> > >
> com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.processApplication(PersistenceProcessor.java:175)
> > > > > at
> > > > >
> > >
> com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processApplication(DeploymentEventListenerImpl.java:211)
> > > > > at
> > > > >
> > >
> com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processEvent(DeploymentEventListenerImpl.java:172)
> > > > > at
> > > > >
> > >
> com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.notifyDeploymentEvent(DeploymentEventListenerImpl.java:122)
> > > > > at
> > > > >
> > >
> com.sun.enterprise.deployment.backend.DeploymentEventManager.notifyDeploymentEvent(DeploymentEventManager.java:79)
> > > > > at
> > > > >
> > >
> com.sun.enterprise.deployment.backend.AppDeployer.postDeploy(AppDeployer.java:401)
> > > > > at
> > > > >
> > >
> com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:260)
> > > > > at
> > > > >
> > >
> com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
> > > > > at
> > > > >
> > >
> com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
> > > > > at
> > > > >
> > >
> com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
> > > > > at
> > > > >
> > >
> com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
> > > > > at
> > > > >
> > >
> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
> > > > > at
> > > > >
> > >
> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
> > > > > at
> > > > >
> > >
> com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
> > > > > at
> > > > >
> > >
> com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
> > > > > |#]
> > > > >
> > >
> [#|2009-12-04T12:37:03.074+0000|INFO|sun-appserver2.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;;|Initializing
> > > > > Sun's JavaServer Faces implementation (1.2_04-b22-p05)
> > > > > for context ''|#]
> > > > >
> > >
> [#|2009-12-04T12:37:58.729+0000|INFO|sun-appserver2.1|com.sun.jbi.framework|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;|JBIFW0012:
> > > > > JBI framework startup complete.|#]
> > > > >
> > > > >
> > > > > sO MY QUESTION AGAIN IS - WHERE CAN I FIND A REFERENCE
> > > > > TO MY persistence-unit-ref-name????
> > > > >
> > > > > I'VE CHECKED MY domain.xml but no details.
> > > > >
> > > > > thanks
> > > > >
> > > > > eve
> > > > >
> > > > >
> > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > From: ralph.winzinger@senacor.com
> > > > >
> > > > > To: users@glassfish.dev.java.net
> > > > >
> > > > > Date: Fri, 4 Dec 2009 00:42:46 +0100
> > > > > Subject: Re: Persistence unit ref:
> > > > >
> > > > > Hi,
> > > > >
> > > > > I got this working just about an ago ...
> > > > >
> > > > > web.xml:
> > > > >
> > > > >
> > > > >
> > > > >
>
persistence/hd > > > > >
hd > > > > >
> > > > >
> > > > > application-context.xml:
> > > > >
> > > > > > > >
> class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"
>
> > > >
> > > > >
> > > > >
> > > > >
> > > > >

> > > > >
> > > > >
> > > > >
> > > > >

> > > > >
> > > > >

> > > > >
> > > > >
> > > > > Hope this helps ...
> > > > >
> > > > > Bye,
> > > > > Ralph
> > > > >
> > > > >
> > > > > Kurz gehalten, da vom iPhone gesendet
> > > > >
> > > > > Am 04.12.2009 um 00:16 schrieb "Eve Pokua"
> > > > > >:
> > > > >
> > > > > Hello,
> > > > >
> > > > > Below is my persistence.xml-
> > > > >
> > > > >
> > > > >
> > > > > 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">
> > > > >
> > > > > transaction-type="JTA">
> > > > >
> > > > > jdbc_/EnterpriseDB2
> > > > >
> > > > > false
> > > > >
> > > > > > > > > >
> > > > >
> > > > >
> > > > >
> > > > > How do I find the name of my -persistence-unit-ref-name?
> > > > >
> > > > > I use the following and I get deployment error
> > > > >
> > > > >
>
ENTERPRISE-ejbPU > > > > >
> > > > > Deploying application in domain failed; Could not
> > > > > resolve a persistence unit corresponding to the
> > > > > persistence-unit-ref-name [ENTERPRISE-ejbPU] in
> > > > > scope of the module called
> > > > > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > > > > Please verify your application.
> > > > >
> > > > > I need to specify it within my web.xml in-order to
> > > > > use @Persistence in my spring JEE
> > > > > application.
> > > > >
> > > > > Thanking you.
> > > > >
> > > > > eve
> > > > >
> > > > >
> > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > Use Hotmail to send and receive mail from your
> > > > > different email accounts. Find out how.
> > > > >
> > > > >
> > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > New! Receive and respond to mail from other email
> > > > > accounts from within Hotmail Find out how.
> > > > >
> > > > >
> > > > >
> > > > > Ralph Winzinger
> > > > > Principal Architect
> > > > > ______________________________
> > > > > Senacor Technologies AG
> > > > > Vordere Cramergasse 11
> > > > > 90478 Nürnberg
> > > > >
> > > > > Telefon: +49 (0)911 4244-202
> > > > > Telefax: +49 (0)911 4244-100
> > > > >
> > > > > ralph.winzinger@senacor.com
> > > > > www.senacor.com
> > > > >
> > > > > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> > > > > Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> > > > > Vorstand: Matthias Tomann, Marcus Purzer -
> > > > > Aufsichtsratsvorsitzender: Mathias J. Lindermeir
> > > > >
> > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > Add other email accounts to Hotmail in 3 easy steps. Find
> > > > > out how.
> > > > >
> > > > >
> > > > > Ralph Winzinger
> > > > > Principal Architect
> > > > > ______________________________
> > > > > Senacor Technologies AG
> > > > > Vordere Cramergasse 11
> > > > > 90478 Nürnberg
> > > > >
> > > > > Telefon: +49 (0)911 4244-202
> > > > > Telefax: +49 (0)911 4244-100
> > > > >
> > > > > ralph.winzinger@senacor.com
> > > > > www.senacor.com
> > > > >
> > > > > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> > > > > Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> > > > > Vorstand: Matthias Tomann, Marcus Purzer -
> > > > > Aufsichtsratsvorsitzender: Mathias J. Lindermeir
> > > > >
> > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > View your other email accounts from your Hotmail inbox. Add them
> > > > > now.
> > > > >
> > > > >
> > > > > Ralph Winzinger
> > > > > Principal Architect
> > > > > ______________________________
> > > > > Senacor Technologies AG
> > > > > Vordere Cramergasse 11
> > > > > 90478 Nürnberg
> > > > >
> > > > > Telefon: +49 (0)911 4244-202
> > > > > Telefax: +49 (0)911 4244-100
> > > > >
> > > > > ralph.winzinger@senacor.com
> > > > > www.senacor.com
> > > > >
> > > > > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> > > > > Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> > > > > Vorstand: Matthias Tomann, Marcus Purzer -
> > > > > Aufsichtsratsvorsitzender: Mathias J. Lindermeir
> > > > >
> > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > View your other email accounts from your Hotmail inbox. Add them
> > > > > now.
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > Have more than one Hotmail account? Link them together to easily
> > > > > access
> > > > > both.
> > >
>
---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> > > > >
> > > > > For additional commands, e-mail: users-help@glassfish.dev.java.net
> > > > >
> > > > >
> > > > >
> > > > > Ralph Winzinger
> > > > > Principal Architect
> > > > > ______________________________
> > > > > Senacor Technologies AG
> > > > > Vordere Cramergasse 11
> > > > > 90478 Nürnberg
> > > > >
> > > > > Telefon: +49 (0)911 4244-202
> > > > > Telefax: +49 (0)911 4244-100
> > > > >
> > > > > ralph.winzinger@senacor.com
> > > > > www.senacor.com
> > > > >
> > > > > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> Amtsgericht
> > > > > Nürnberg - Reg.-Nr.: HRB 23098
> > > > > Vorstand: Matthias Tomann, Marcus Purzer -
> Aufsichtsratsvorsitzender:
> > > > > Mathias J. Lindermeir
> > > > >
> > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > Add other email accounts to Hotmail in 3 easy steps. Find out how.
> > > > >
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> > > > For additional commands, e-mail: users-help@glassfish.dev.java.net
> > > >
> > >
> > >
> ------------------------------------------------------------------------
> > > Add other email accounts to Hotmail in 3 easy steps. Find out how.
> > >
> > >
> ------------------------------------------------------------------------
> > > Have more than one Hotmail account? Link them together to easily
> access
> > > both.
> > >
> ------------------------------------------------------------------------
> > > Have more than one Hotmail account? Link them together to easily
> access
> > > both. < http://clk.atdmt.com/UKM/go/186394591/direct/01/>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> > For additional commands, e-mail: users-help@glassfish.dev.java.net
> >
>
> ------------------------------------------------------------------------
> Use Hotmail to send and receive mail from your different email accounts.
> Find out how.
> ------------------------------------------------------------------------
> Use Hotmail to send and receive mail from your different email accounts.
> Find out how.
> ------------------------------------------------------------------------
> Add other email accounts to Hotmail in 3 easy steps. Find out how.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Eve Pokua

Marina,

I am using netbeans to build and deploy my application. Netbeans

already packages entity classes as well as the per.xml inside the

META-INF dir. According to the following thread. When it's package

this way, it is ignored-

> http://old.nabble.com/PersistenceContext-and-the-verifier-td15864706.html
>
> and
>
> "
> Verifier is correct, *thee* message *could* be better though. Having said
> that, where did you read that it is OK *to* put *persistence*.xml in
> META-INF directory of *the* ear file. If you put *persistence*.xml in
> META-INF of ear, it is simply ignored. If you want your
> *persistence*-*units* *to* be visible *all* modules in *the* ear file,
> *then* put in
> *a* library jar. *The* easiest way of doing it is *add* *all* entity
> classes *and*
> META-INF/*persistence*.xml into *a* jar file (say) entities.jar *and*
> package
> it in lib directory of *the* ear file.
>
> Thanks,
> Sahoo "

Sahoo wrote this. Fixing such problem is in bold.

Thanking you.

eve

> Date: Fri, 4 Dec 2009 17:10:32 -0800
> From: Marina.Vatkina@Sun.COM
> To: users@glassfish.dev.java.net
> CC: persistence@glassfish.dev.java.net; ejb@glassfish.dev.java.net
> Subject: Re: Persistence unit ref:
>
> If you are saying that the persistence.xml is not packaged correctly, then you
> need to fix it. In v2 you can put it into META-INF directory of the ejb jar if
> this is the place where your entities are packaged.
>
> Regards,
> -marina
>
> Eve Pokua wrote:
> > marina,
> >
> > Yes it does-
> >
> > Deploying application in domain failed; Could not resolve a persistence
> > unit corresponding to the persistence-context-ref-name
> > [persistence/TestingUN] in the scope of the module called
> > [gfdeploy#C:\jee\Testingapp2\dist\gfdeploy\Testingapp2-war_war]. Please
> > verify your application.
> > C:\jee\Testingapp2\nbproject\build-impl.xml:275: The module has not been
> > deployed.
> >
> > Thanks
> >
> > eve
> > ------------------------------------------------------------------------
> > From: gorgeous65@msn.com
> > To: users@glassfish.dev.java.net; persistence@glassfish.dev.java.net;
> > ejb@glassfish.dev.java.net
> > Date: Sat, 5 Dec 2009 00:49:46 +0000
> > Subject: FW: Persistence unit ref:
> >
> > Marina, Ralp,
> >
> > I think I have found where the problem lies
> >
> > I read this thread -
> >
> > http://old.nabble.com/PersistenceContext-and-the-verifier-td15864706.html
> >
> > and
> >
> > "
> > Verifier is correct, *thee* message *could* be better though. Having said
> > that, where did you read that it is OK *to* put *persistence*.xml in
> > META-INF directory of *the* ear file. If you put *persistence*.xml in
> > META-INF of ear, it is simply ignored. If you want your
> > *persistence*-*units* *to* be visible *all* modules in *the* ear file,
> > *then* put in
> > *a* library jar. *The* easiest way of doing it is *add* *all* entity
> > classes *and*
> > META-INF/*persistence*.xml into *a* jar file (say) entities.jar *and*
> > package
> > it in lib directory of *the* ear file.
> >
> > Thanks,
> > Sahoo "
> >
> > I checked my application and found that netbeans is packaging the per.xml
> > in a jar dir under build/jar/META-INF
> >
> > which is ignored. This' why my war does not see my per.xml in my ear.
> >
> > I will have to find out how to package per.xml so my war can see it.
> >
> > I heard this is resolved in JEE6.
> >
> > Thanks
> >
> > eve
> >
> >
> > ------------------------------------------------------------------------
> > From: gorgeous65@msn.com
> > To: users@glassfish.dev.java.net
> > Date: Sat, 5 Dec 2009 00:23:48 +0000
> > Subject: RE: Persistence unit ref:
> >
> > marina,
> >
> > There is no problem with jdbc
> >
> > reference as tables are created and application is deployed if
> > I take away this from my web.xml -
> >
> >
> >
> >
persistence/TestingUN > >
TestingUN > >
> >
> > As long as the above is in my web.xml, I have the error.
> >
> > eve
> >
> >
> >
> > > Date: Fri, 4 Dec 2009 15:56:34 -0800
> > > From: Marina.Vatkina@Sun.COM
> > > To: users@glassfish.dev.java.net
> > > Subject: Re: FW: Persistence unit ref:
> > >
> > > Check if the PU had been processed correctly - are you sure there is
> > jdbc_/ not
> > > jdbc/ in the datasource name?
> > >
> > > -marina
> > >
> > > Eve Pokua wrote:
> > > > Marina, Ralph,
> > > >
> > > > I am reading this thread.
> > > >
> > > > http://forums.java.net/jive/message.jspa?messageID=207860
> > > >
> > > > It looks like the web is not seeing my persistence in my ear.
> > > >
> > > > But I also tested this in just a web application and placed
> > > > the per.xml in the web dir then in the web/web-inf
> > > >
> > > > still same error-
> > > >
> > > > Thanking you.
> > > >
> > > > eve
> > > >
> > ------------------------------------------------------------------------
> > > > From: gorgeous65@msn.com
> > > > To: users@glassfish.dev.java.net
> > > > Date: Fri, 4 Dec 2009 23:28:54 +0000
> > > > Subject: FW: Persistence unit ref:
> > > >
> > > >
> > > >
> > > > Here,
> > > >
> > > > Deploying application in domain failed; Deployment Error -- Could not
> > > > resolve a persistence unit corresponding to the
> > > > persistence-unit-ref-name [persistence/TestingUN2] in scope of the
> > > > module called [C:\jee\WebApplication2\build\web]. Please verify your
> > > > application.
> > > >
> > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > > From: gorgeous65@msn.com
> > > > To: users@glassfish.dev.java.net
> > > > Subject: RE: Persistence unit ref:
> > > > Date: Fri, 4 Dec 2009 23:26:23 +0000
> > > >
> > > > Marina,
> > > >
> > > > I am using Gv 2. gluster profile. I really don't understand why
> > > > I am having this problem. I have even created another test
> > > > war application. but still similar error.
> > > >
> > > > Thanking you.
> > > >
> > > > eve
> > > >
> > > > > Date: Fri, 4 Dec 2009 15:23:41 -0800
> > > > > From: Marina.Vatkina@Sun.COM
> > > > > To: users@glassfish.dev.java.net
> > > > > Subject: Re: Persistence unit ref:
> > > > >
> > > > > Eve,
> > > > >
> > > > > Are you deploying it to GF v2.x or v3? In v3 you need to package
> > > > shared parts
> > > > > into the ear's lib/myjar.jar to be available to all components.
> > > > >
> > > > > Regards,
> > > > > -marina
> > > > >
> > > > > Eve Pokua wrote:
> > > > > > Ralph,
> > > > > >
> > > > > > My application is a full enterprise application.
> > > > > > No the persistence.xml is in my ejb
> > > > > > mobule section where all my entity files are.
> > > > > >
> > > > > > eve
> > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > > From: ralph.winzinger@senacor.de
> > > > > > To: users@glassfish.dev.java.net
> > > > > > Date: Sat, 5 Dec 2009 00:01:29 +0100
> > > > > > Subject: Re: Persistence unit ref:
> > > > > >
> > > > > > but persistence.xml is not contained in your war, is it?
> > > > > >
> > > > > >
> > > > > > Am 04.12.2009 um 23:53 schrieb Eve Pokua:
> > > > > >
> > > > > > Ralph see attached
> > > > > >
> > > > > > Hope that helps. This testing is also giving error.
> > > > > >
> > > > > > Thanks
> > > > > >
> > > > > > eve
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > > From: gorgeous65@msn.com
> > > > > > To: users@glassfish.dev.java.net
> > > > > > ; ejb@glassfish.dev.java.net
> > > > > > ;
> > persistence@glassfish.dev.java.net
> > > > > >
> > > > > > Date: Fri, 4 Dec 2009 22:32:26 +0000
> > > > > > Subject: RE: Persistence unit ref:
> > > > > >
> > > > > > Ralph,
> > > > > >
> > > > > > My application is very big.
> > > > > >
> > > > > > Do you have spring?
> > > > > >
> > > > > > In Marina's example
> > > > > >
> > > > > > This is what the JavaEE spec gives as an example:
> > > > > > *
> > > > > >
> > > > > > persistence/InventoryAppDB
> > > > > > *
> > > > > >
> > > > > > InventoryManagement
> > > > > >
> > > > > > *
> > > > > > *
> > > > > >
> > > > > >
> > > > > > I do not have what is bold in my per.xml
> > > > > >
> > > > > > Shouldn't it be why I am getting an error? The web.xml can not
> > > > > > resolve -
> > > > > >
> > > > > > Deploying application in domain failed; Could not resolve a
> > > > > > persistence unit corresponding to the persistence-unit-ref-name
> > > > > > [persistence/ENTERPRISE-ejbPU] in scope of the module called
> > > > > > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > > > > > Please verify your application.
> > > > > >
> > > > > > IT's complaining about the per-unit-ref-name which is not in my
> > > > per.xml.
> > > > > >
> > > > > >
> > > > > > How do I put that in? I tried to add it in but has been getting
> > error.
> > > > > > Could you add it in and send it over?
> > > > > >
> > > > > > I will try and see if I can send over a test app.
> > > > > >
> > > > > > Thanking you.
> > > > > >
> > > > > > eve
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > > From: ralph.winzinger@senacor.de
> >
> > > > > > To: users@glassfish.dev.java.net
> >
> > > > > > Date: Fri, 4 Dec 2009 23:00:35 +0100
> > > > > > Subject: Re: Persistence unit ref:
> > > > > >
> > > > > > well, I tried various constellations to test whether your error
> > will
> > > > > > show up (renaming persistence.xml, changing the value
> > > > > > in
(web.xml), changing
> >
> > > > > > name=...> (persistence.xml)). But the error only occurred when the
> > > > > > unit-names in persistence.xml and web.xml did not match.
> > > > > >
> > > > > > If your project is some kind of test-project, you might send your
> > > > > > WAR (if it is not too big of course) - I will try to throw it at my
> > > > > > container ...
> > > > > >
> > > > > >
> > > > > > Am 04.12.2009 um 22:51 schrieb Eve Pokua:
> > > > > >
> > > > > > Ralph,
> > > > > >
> > > > > > I have recreated my persistence.xml.
> > > > > >
> > > > > > Please, note that I am using netbeans 6.7 to create my
> > > > > > persistence.xml.
> > > > > >
> > > > > > Here is the new file-
> > > > > >
> > > > > >
> > > > > >
> > > > > > 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/persistencehttp://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
> > > > > >
> > > > > >
> > > > > >
oracle.toplink.essentials.PersistenceProvider > > > > > > jdbc_/EnterpriseDB2
> > > > > >
> > > > > >
> > > > > > value="create-tables"/>
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > My problem comes when I have to
> > > > > >
> > > > > > this to my web.xml-
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > >
> >
persistence/ENTERPRISE-ejbPU > > > > > >
> > > > > >
ENTERPRISE-ejbPU > > > > > >
> > > > > >
> > > > > > when I comment it out of my web.xml, my application deploys.
> > > > > >
> > > > > > Ralph, could you please, double check your per.xml to see if you
> > > > > > have the
> > > > > >
> > > > > > persistence-unit-ref>
> > > > > >
> > > > > >
> > > > > > tag and also please, do reproduce my error by changing the per.
> > > > > > name.
> > > > > >
> > > > > > I'm sure you will reproduce the error.
> > > > > >
> > > > > >
> > > > > > This is what the JavaEE spec gives as an example:
> > > > > >
> > > > > >
> > > > > > persistence/InventoryAppDB
> > > > > >
> > > > > >
> > > > > > InventoryManagement
> > > > > >
> > > > > >
> > > > > >
> > > > > > Mar. I am using netbeans to create the per.xml.
> > > > > >
> > > > > >
> > > > > >
> > > > > > Thanking you for all your help.
> > > > > >
> > > > > > eve
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > >
> > > > > > From: ralph.winzinger@senacor.de
> >
> > > > > > To: users@glassfish.dev.java.net
> > > > > >
> > > > > > Date: Fri, 4 Dec 2009 22:05:39 +0100
> > > > > > Subject: Re: Persistence unit ref:
> > > > > >
> > > > > > Eve,
> > > > > >
> > > > > > the only way, how I can reproduce your error is to change the
> > > > > > value of
to something not matching the
> > > > > > name in the persistence.xml. But thatseems to be ok in the
> > > > > > snippets you sent. So I would go on and look for old files that
> > > > > > might be still around - maybe there's another persistence.xml
> > > > > > that is read by accident. Look inside the WAR and make sure that
> > > > > > everything is as expected.
> > > > > >
> > > > > > Bye,
> > > > > > Ralph
> > > > > >
> > > > > >
> > > > > >
> > > > > > Am 04.12.2009 um 19:48 schrieb Eve Pokua:
> > > > > >
> > > > > > Ralph,
> > > > > >
> > > > > > Here is my per.xml
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > 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">
> > > > > >
> > > > > > transaction-type="JTA">
> > > > > > jdbc_/EnterpriseDB2
> > > > > > false
> > > > > >
> > > > > > > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > regards
> > > > > >
> > > > > > eve
> > > > > >
> > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > > From: ralph.winzinger@senacor.de
> > > > > >
> > > > > > To: users@glassfish.dev.java.net
> > > > > >
> > > > > > Date: Fri, 4 Dec 2009 15:20:16 +0100
> > > > > > Subject: Re: Persistence unit ref:
> > > > > >
> > > > > > hi,
> > > > > >
> > > > > > what does your persistence.xml look like?
> > > > > >
> > > > > >
> > > > > > Am 04.12.2009 um 13:50 schrieb Eve Pokua:
> > > > > >
> > > > > > Ralph,
> > > > > >
> > > > > > Thank you for your reply.
> > > > > >
> > > > > > I did as you said.
> > > > > >
> > > > > > i added the following to my web.xml
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > >
> >
persistence/ENTERPRISE-ejbPU > > > > > >
ENTERPRISE-ejbPU > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > in my applicationContext.xml
> > > > > >
> > > > > > > > > > > >
> > > >
> > class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"
> > > > > > >
> > > > > >
> > > > > >
> > > > > > > > > > > > value="persistence/ENTERPRISE-ejbPU"/>
> > > > > >

> > > > > >
> > > > > >
> > > > > >
> > > > > >

> > > > > >
> > > > > >

> > > > > >
> > > > > >
> > > > > >
> > > > > > But I still get the error -
> > > > > >
> > > > > >
> > > >
> > [#|2009-12-04T12:34:05.536+0000|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=20;_ThreadName=Thread-48;_RequestID=3fb89f4d-e8ef-403f-a422-9e5442bf9b3a;|Exception
> > > > > > occured in J2EEC Phase
> > > > > > com.sun.enterprise.deployment.backend.IASDeploymentException:
> > > > > > Could not resolve a persistence unit corresponding to
> > > > > > the persistence-unit-ref-name
> > > > > > [persistence/ENTERPRISE-ejbPU] in scope of the module
> > > > > > called
> > > > > > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > > > > > Please verify your application.
> > > > > > at
> > > > > >
> > > >
> > com.sun.enterprise.deployment.BundleDescriptor.findReferencedPUsViaPURefs(BundleDescriptor.java:711)
> > > > > > at
> > > > > >
> > > >
> > com.sun.enterprise.deployment.WebBundleDescriptor.findReferencedPUs(WebBundleDescriptor.java:727)
> > > > > > at
> > > > > >
> > > >
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.getAllPersistenceUnitDescriptors(PersistenceProcessor.java:214)
> > > > > > at
> > > > > >
> > > >
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.processApplication(PersistenceProcessor.java:175)
> > > > > > at
> > > > > >
> > > >
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processApplication(DeploymentEventListenerImpl.java:211)
> > > > > > at
> > > > > >
> > > >
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processEvent(DeploymentEventListenerImpl.java:172)
> > > > > > at
> > > > > >
> > > >
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.notifyDeploymentEvent(DeploymentEventListenerImpl.java:122)
> > > > > > at
> > > > > >
> > > >
> > com.sun.enterprise.deployment.backend.DeploymentEventManager.notifyDeploymentEvent(DeploymentEventManager.java:79)
> > > > > > at
> > > > > >
> > > >
> > com.sun.enterprise.deployment.backend.AppDeployer.postDeploy(AppDeployer.java:401)
> > > > > > at
> > > > > >
> > > >
> > com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:260)
> > > > > > at
> > > > > >
> > > >
> > com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
> > > > > > at
> > > > > >
> > > >
> > com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
> > > > > > at
> > > > > >
> > > >
> > com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
> > > > > > at
> > > > > >
> > > >
> > com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
> > > > > > at
> > > > > >
> > > >
> > com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
> > > > > > at
> > > > > >
> > > >
> > com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
> > > > > > at
> > > > > >
> > > >
> > com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
> > > > > > at
> > > > > >
> > > >
> > com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
> > > > > > |#]
> > > > > >
> > > >
> > [#|2009-12-04T12:37:03.074+0000|INFO|sun-appserver2.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;;|Initializing
> > > > > > Sun's JavaServer Faces implementation (1.2_04-b22-p05)
> > > > > > for context ''|#]
> > > > > >
> > > >
> > [#|2009-12-04T12:37:58.729+0000|INFO|sun-appserver2.1|com.sun.jbi.framework|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;|JBIFW0012:
> > > > > > JBI framework startup complete.|#]
> > > > > >
> > > > > >
> > > > > > sO MY QUESTION AGAIN IS - WHERE CAN I FIND A REFERENCE
> > > > > > TO MY persistence-unit-ref-name????
> > > > > >
> > > > > > I'VE CHECKED MY domain.xml but no details.
> > > > > >
> > > > > > thanks
> > > > > >
> > > > > > eve
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > > From: ralph.winzinger@senacor.com
> > > > > >
> > > > > > To: users@glassfish.dev.java.net
> > > > > >
> > > > > > Date: Fri, 4 Dec 2009 00:42:46 +0100
> > > > > > Subject: Re: Persistence unit ref:
> > > > > >
> > > > > > Hi,
> > > > > >
> > > > > > I got this working just about an ago ...
> > > > > >
> > > > > > web.xml:
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> >
persistence/hd > > > > > >
hd > > > > > >
> > > > > >
> > > > > > application-context.xml:
> > > > > >
> > > > > > > > > >
> > class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"
> >
> > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >

> > > > > >
> > > > > >
> > > > > >
> > > > > >

> > > > > >
> > > > > >

> > > > > >
> > > > > >
> > > > > > Hope this helps ...
> > > > > >
> > > > > > Bye,
> > > > > > Ralph
> > > > > >
> > > > > >
> > > > > > Kurz gehalten, da vom iPhone gesendet
> > > > > >
> > > > > > Am 04.12.2009 um 00:16 schrieb "Eve Pokua"
> > > > > > >:
> > > > > >
> > > > > > Hello,
> > > > > >
> > > > > > Below is my persistence.xml-
> > > > > >
> > > > > >
> > > > > >
> > > > > > 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">
> > > > > >
> > > > > > transaction-type="JTA">
> > > > > >
> > > > > > jdbc_/EnterpriseDB2
> > > > > >
> > > > > > false
> > > > > >
> > > > > > > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > How do I find the name of my -persistence-unit-ref-name?
> > > > > >
> > > > > > I use the following and I get deployment error
> > > > > >
> > > > > >
> >
ENTERPRISE-ejbPU > > > > > >
> > > > > > Deploying application in domain failed; Could not
> > > > > > resolve a persistence unit corresponding to the
> > > > > > persistence-unit-ref-name [ENTERPRISE-ejbPU] in
> > > > > > scope of the module called
> > > > > > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > > > > > Please verify your application.
> > > > > >
> > > > > > I need to specify it within my web.xml in-order to
> > > > > > use @Persistence in my spring JEE
> > > > > > application.
> > > > > >
> > > > > > Thanking you.
> > > > > >
> > > > > > eve
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > > Use Hotmail to send and receive mail from your
> > > > > > different email accounts. Find out how.
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > > New! Receive and respond to mail from other email
> > > > > > accounts from within Hotmail Find out how.
> > > > > >
> > > > > >
> > > > > >
> > > > > > Ralph Winzinger
> > > > > > Principal Architect
> > > > > > ______________________________
> > > > > > Senacor Technologies AG
> > > > > > Vordere Cramergasse 11
> > > > > > 90478 Nürnberg
> > > > > >
> > > > > > Telefon: +49 (0)911 4244-202
> > > > > > Telefax: +49 (0)911 4244-100
> > > > > >
> > > > > > ralph.winzinger@senacor.com
> > > > > > www.senacor.com
> > > > > >
> > > > > > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> > > > > > Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> > > > > > Vorstand: Matthias Tomann, Marcus Purzer -
> > > > > > Aufsichtsratsvorsitzender: Mathias J. Lindermeir
> > > > > >
> > > > > >
> > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > > Add other email accounts to Hotmail in 3 easy steps. Find
> > > > > > out how.
> > > > > >
> > > > > >
> > > > > > Ralph Winzinger
> > > > > > Principal Architect
> > > > > > ______________________________
> > > > > > Senacor Technologies AG
> > > > > > Vordere Cramergasse 11
> > > > > > 90478 Nürnberg
> > > > > >
> > > > > > Telefon: +49 (0)911 4244-202
> > > > > > Telefax: +49 (0)911 4244-100
> > > > > >
> > > > > > ralph.winzinger@senacor.com
> > > > > > www.senacor.com
> > > > > >
> > > > > > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> > > > > > Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> > > > > > Vorstand: Matthias Tomann, Marcus Purzer -
> > > > > > Aufsichtsratsvorsitzender: Mathias J. Lindermeir
> > > > > >
> > > > > >
> > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > > View your other email accounts from your Hotmail inbox. Add them
> > > > > > now.
> > > > > >
> > > > > >
> > > > > > Ralph Winzinger
> > > > > > Principal Architect
> > > > > > ______________________________
> > > > > > Senacor Technologies AG
> > > > > > Vordere Cramergasse 11
> > > > > > 90478 Nürnberg
> > > > > >
> > > > > > Telefon: +49 (0)911 4244-202
> > > > > > Telefax: +49 (0)911 4244-100
> > > > > >
> > > > > > ralph.winzinger@senacor.com
> > > > > > www.senacor.com
> > > > > >
> > > > > > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> > > > > > Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> > > > > > Vorstand: Matthias Tomann, Marcus Purzer -
> > > > > > Aufsichtsratsvorsitzender: Mathias J. Lindermeir
> > > > > >
> > > > > >
> > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > > View your other email accounts from your Hotmail inbox. Add them
> > > > > > now.
> > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > > Have more than one Hotmail account? Link them together to easily
> > > > > > access
> > > > > > both.
> > > >
> >
---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> > > > > >
> > > > > > For additional commands, e-mail: users-help@glassfish.dev.java.net
> > > > > >
> > > > > >
> > > > > >
> > > > > > Ralph Winzinger
> > > > > > Principal Architect
> > > > > > ______________________________
> > > > > > Senacor Technologies AG
> > > > > > Vordere Cramergasse 11
> > > > > > 90478 Nürnberg
> > > > > >
> > > > > > Telefon: +49 (0)911 4244-202
> > > > > > Telefax: +49 (0)911 4244-100
> > > > > >
> > > > > > ralph.winzinger@senacor.com
> > > > > > www.senacor.com
> > > > > >
> > > > > > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> > Amtsgericht
> > > > > > Nürnberg - Reg.-Nr.: HRB 23098
> > > > > > Vorstand: Matthias Tomann, Marcus Purzer -
> > Aufsichtsratsvorsitzender:
> > > > > > Mathias J. Lindermeir
> > > > > >
> > > > > >
> > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > > Add other email accounts to Hotmail in 3 easy steps. Find out how.
> > > > > >
> > > > >
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> > > > > For additional commands, e-mail: users-help@glassfish.dev.java.net
> > > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > > Add other email accounts to Hotmail in 3 easy steps. Find out how.
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > > Have more than one Hotmail account? Link them together to easily
> > access
> > > > both.
> > > >
> > ------------------------------------------------------------------------
> > > > Have more than one Hotmail account? Link them together to easily
> > access
> > > > both. < http://clk.atdmt.com/UKM/go/186394591/direct/01/>
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> > > For additional commands, e-mail: users-help@glassfish.dev.java.net
> > >
> >
> > ------------------------------------------------------------------------
> > Use Hotmail to send and receive mail from your different email accounts.
> > Find out how.
> > ------------------------------------------------------------------------
> > Use Hotmail to send and receive mail from your different email accounts.
> > Find out how.
> > ------------------------------------------------------------------------
> > Add other email accounts to Hotmail in 3 easy steps. Find out how.
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ejb-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: ejb-help@glassfish.dev.java.net
>

_________________________________________________________________
Add your Gmail and Yahoo! Mail email accounts into Hotmail - it's easy
http://clk.atdmt.com/UKM/go/186394592/direct/01/
[att1.html]

Vince Kraemer

I have never heard of NB putting the persistence.xml file ing to
META-INF directory of an EAR file.

I would be interested in seeing the cluster of projects that does
something like that.

Thanks,
vbk

On 12/05/09 06:43, Eve Pokua wrote:
> Marina,
>
> I am using netbeans to build and deploy my application. Netbeans
> already packages entity classes as well as the per.xml inside the
> META-INF dir. According to the following thread. When it's package
> this way, it is ignored-
>
> >
> http://old.nabble.com/PersistenceContext-and-the-verifier-td15864706.html
> >
> > and
> >
> > "
> > Verifier is correct, *thee* message *could* be better though. Having
> said
> > that, where did you read that it is OK *to* put *persistence*.xml in
> > META-INF directory of *the* ear file. If you put *persistence*.xml in
> > META-INF of ear, it is simply ignored. *If you want your
> > *persistence*-*units* *to* be visible *all* modules in *the* ear file,
> > *then* put in
> > *a* library jar. *The* easiest way of doing it is *add* *all* entity
> > classes *and*
> > META-INF/*persistence*.xml into *a* jar file (say) entities.jar *and*
> > package
> > it in lib directory of *the* ear file.
> *>
> > Thanks,
> > Sahoo "
>
>
> Sahoo wrote this. Fixing such problem is in bold.
>
> Thanking you.
>
> eve
>

[att1.html]

Eve Pokua

Hi,

Should I log a test application for you to see.

I package and deploy everything in netbeans.

eve

Date: Tue, 8 Dec 2009 12:40:45 -0800
From: Vince.Kraemer@Sun.COM
To: users@glassfish.dev.java.net
Subject: Re: Persistence unit ref:

I have never heard of NB putting the persistence.xml file ing to META-INF directory of an EAR file.

I would be interested in seeing the cluster of projects that does something like that.

Thanks,
vbk

On 12/05/09 06:43, Eve Pokua wrote:

Marina,

I am using netbeans to build and deploy my application. Netbeans
already packages entity classes as well as the per.xml inside the
META-INF dir. According to the following thread. When it's package
this way, it is ignored-

> http://old.nabble.com/PersistenceContext-and-the-verifier-td15864706.html
>
> and
>
> "
> Verifier is correct, *thee* message *could* be better though. Having said
> that, where did you read that it is OK *to* put *persistence*.xml in
> META-INF directory of *the* ear file. If you put *persistence*.xml in
> META-INF of ear, it is simply ignored. If you want your
> *persistence*-*units* *to* be visible *all* modules in *the* ear file,
> *then* put in
> *a* library jar. *The* easiest way of doing it is *add* *all* entity
> classes *and*
> META-INF/*persistence*.xml into *a* jar file (say) entities.jar *and*
> package
> it in lib directory of *the* ear file.
>
> Thanks,
> Sahoo "

Sahoo wrote this. Fixing such problem is in bold.

Thanking you.

eve

_________________________________________________________________
Got more than one Hotmail account? Save time by linking them together
http://clk.atdmt.com/UKM/go/186394591/direct/01/
[att1.html]

Vince Kraemer

a zip file that has a cluster of NB projects that create a problematic
ear file would be great.

On 12/08/09 13:24, Eve Pokua wrote:
> Hi,
>
> Should I log a test application for you to see.
> I package and deploy everything in netbeans.
>
> eve
>
> ------------------------------------------------------------------------
> Date: Tue, 8 Dec 2009 12:40:45 -0800
> From: Vince.Kraemer@Sun.COM
> To: users@glassfish.dev.java.net
> Subject: Re: Persistence unit ref:
>
> I have never heard of NB putting the persistence.xml file ing to
> META-INF directory of an EAR file.
>
> I would be interested in seeing the cluster of projects that does
> something like that.
>
> Thanks,
> vbk
>

[att1.html]

Eve Pokua

Vince,

I am trying to zip everything and send over. as nb.

But I only have winra which will complete it as rar.

they system will reject it.

Will get back to you soon.

thanks

eve

Date: Tue, 8 Dec 2009 14:16:13 -0800
From: Vince.Kraemer@Sun.COM
To: users@glassfish.dev.java.net
Subject: Re: Persistence unit ref:

a zip file that has a cluster of NB projects that create a problematic ear file would be great.

On 12/08/09 13:24, Eve Pokua wrote:

Hi,

Should I log a test application for you to see.
I package and deploy everything in netbeans.

eve

Date: Tue, 8 Dec 2009 12:40:45 -0800
From: Vince.Kraemer@Sun.COM
To: users@glassfish.dev.java.net
Subject: Re: Persistence unit ref:

I have never heard of NB putting the persistence.xml file ing to META-INF directory of an EAR file.

I would be interested in seeing the cluster of projects that does something like that.

Thanks,
vbk

_________________________________________________________________
View your other email accounts from your Hotmail inbox. Add them now.
http://clk.atdmt.com/UKM/go/186394592/direct/01/
[att1.html]

Marina Vatkina

Eve,

what is the structure of your ear file?

thanks,
-marina

Eve Pokua wrote:
> Vince,
>
> I am trying to zip everything and send over. as nb.
> But I only have winra which will complete it as rar.
> they system will reject it.
>
> Will get back to you soon.
>
> thanks
>
> eve
>
> ------------------------------------------------------------------------
> Date: Tue, 8 Dec 2009 14:16:13 -0800
> From: Vince.Kraemer@Sun.COM
> To: users@glassfish.dev.java.net
> Subject: Re: Persistence unit ref:
>
> a zip file that has a cluster of NB projects that create a problematic
> ear file would be great.
>
> On 12/08/09 13:24, Eve Pokua wrote:
>
> Hi,
>
> Should I log a test application for you to see.
> I package and deploy everything in netbeans.
>
> eve
>
> ------------------------------------------------------------------------
> Date: Tue, 8 Dec 2009 12:40:45 -0800
> From: Vince.Kraemer@Sun.COM
> To: users@glassfish.dev.java.net
> Subject: Re: Persistence unit ref:
>
> I have never heard of NB putting the persistence.xml file ing to
> META-INF directory of an EAR file.
>
> I would be interested in seeing the cluster of projects that does
> something like that.
>
> Thanks,
> vbk
>
>
>
> ------------------------------------------------------------------------
> View your other email accounts from your Hotmail inbox. Add them now.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Eve Pokua

Hi,

Attachment 4083 is a zip file of the whole nb application.

Thanks

eve

> Date: Tue, 8 Dec 2009 14:42:49 -0800
> From: Marina.Vatkina@Sun.COM
> To: users@glassfish.dev.java.net
> Subject: Re: Persistence unit ref:
>
> Eve,
>
> what is the structure of your ear file?
>
> thanks,
> -marina
>
> Eve Pokua wrote:
> > Vince,
> >
> > I am trying to zip everything and send over. as nb.
> > But I only have winra which will complete it as rar.
> > they system will reject it.
> >
> > Will get back to you soon.
> >
> > thanks
> >
> > eve
> >
> > ------------------------------------------------------------------------
> > Date: Tue, 8 Dec 2009 14:16:13 -0800
> > From: Vince.Kraemer@Sun.COM
> > To: users@glassfish.dev.java.net
> > Subject: Re: Persistence unit ref:
> >
> > a zip file that has a cluster of NB projects that create a problematic
> > ear file would be great.
> >
> > On 12/08/09 13:24, Eve Pokua wrote:
> >
> > Hi,
> >
> > Should I log a test application for you to see.
> > I package and deploy everything in netbeans.
> >
> > eve
> >
> > ------------------------------------------------------------------------
> > Date: Tue, 8 Dec 2009 12:40:45 -0800
> > From: Vince.Kraemer@Sun.COM
> > To: users@glassfish.dev.java.net
> > Subject: Re: Persistence unit ref:
> >
> > I have never heard of NB putting the persistence.xml file ing to
> > META-INF directory of an EAR file.
> >
> > I would be interested in seeing the cluster of projects that does
> > something like that.
> >
> > Thanks,
> > vbk
> >
> >
> >
> > ------------------------------------------------------------------------
> > View your other email accounts from your Hotmail inbox. Add them now.
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

_________________________________________________________________
Add your Gmail and Yahoo! Mail email accounts into Hotmail - it's easy
http://clk.atdmt.com/UKM/go/186394592/direct/01/
[att1.html]

Vince Kraemer

i do not see a persistence.xml file in the META-INF directory of the EAR...

There is one in the ejb jar file, though...

On 12/08/09 15:03, Eve Pokua wrote:
> Hi,
>
>
> Attachment 4083 is a zip file of the whole nb application.
>
> Thanks
>
> eve
>
> > Date: Tue, 8 Dec 2009 14:42:49 -0800
> > From: Marina.Vatkina@Sun.COM
> > To: users@glassfish.dev.java.net
> > Subject: Re: Persistence unit ref:
> >
> > Eve,
> >
> > what is the structure of your ear file?
> >
> > thanks,
> > -marina
> >
> > Eve Pokua wrote:
> > > Vince,
> > >
> > > I am trying to zip everything and send over. as nb.
> > > But I only have winra which will complete it as rar.
> > > they system will reject it.
> > >
> > > Will get back to you soon.
> > >
> > > thanks
> > >
> > > eve
> > >
> > >
> ------------------------------------------------------------------------
> > > Date: Tue, 8 Dec 2009 14:16:13 -0800
> > > From: Vince.Kraemer@Sun.COM
> > > To: users@glassfish.dev.java.net
> > > Subject: Re: Persistence unit ref:
> > >
> > > a zip file that has a cluster of NB projects that create a
> problematic
> > > ear file would be great.
> > >
> > > On 12/08/09 13:24, Eve Pokua wrote:
> > >
> > > Hi,
> > >
> > > Should I log a test application for you to see.
> > > I package and deploy everything in netbeans.
> > >
> > > eve
> > >
> > >
> ------------------------------------------------------------------------
> > > Date: Tue, 8 Dec 2009 12:40:45 -0800
> > > From: Vince.Kraemer@Sun.COM
> > > To: users@glassfish.dev.java.net
> > > Subject: Re: Persistence unit ref:
> > >
> > > I have never heard of NB putting the persistence.xml file ing to
> > > META-INF directory of an EAR file.
> > >
> > > I would be interested in seeing the cluster of projects that does
> > > something like that.
> > >
> > > Thanks,
> > > vbk
> > >
> > >
> > >
> > >
> ------------------------------------------------------------------------
> > > View your other email accounts from your Hotmail inbox. Add them now.
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> > For additional commands, e-mail: users-help@glassfish.dev.java.net
> >
>
> ------------------------------------------------------------------------
> Have more than one Hotmail account? Link them together to easily
> access both. <%20http://clk.atdmt.com/UKM/go/186394591/direct/01/>

[att1.html]

Eve Pokua

Hi,

NB packages it into Testingapp2/Testingapp2-ejb/build/jar/META-INF/persistence.xml

Well,

If you deploy the application, could you reproduce the error?

Thanks

eve

Date: Tue, 8 Dec 2009 15:20:12 -0800
From: Vince.Kraemer@Sun.COM
To: users@glassfish.dev.java.net
Subject: Re: Persistence unit ref:

i do not see a persistence.xml file in the META-INF directory of the EAR...

There is one in the ejb jar file, though...

On 12/08/09 15:03, Eve Pokua wrote:

Hi,

Attachment 4083 is a zip file of the whole nb application.

Thanks

eve

> Date: Tue, 8 Dec 2009 14:42:49 -0800
> From: Marina.Vatkina@Sun.COM
> To: users@glassfish.dev.java.net
> Subject: Re: Persistence unit ref:
>
> Eve,
>
> what is the structure of your ear file?
>
> thanks,
> -marina
>
> Eve Pokua wrote:
> > Vince,
> >
> > I am trying to zip everything and send over. as nb.
> > But I only have winra which will complete it as rar.
> > they system will reject it.
> >
> > Will get back to you soon.
> >
> > thanks
> >
> > eve
> >
> > ------------------------------------------------------------------------
> > Date: Tue, 8 Dec 2009 14:16:13 -0800
> > From: Vince.Kraemer@Sun.COM
> > To: users@glassfish.dev.java.net
> > Subject: Re: Persistence unit ref:
> >
> > a zip file that has a cluster of NB projects that create a problematic
> > ear file would be great.
> >
> > On 12/08/09 13:24, Eve Pokua wrote:
> >
> > Hi,
> >
> > Should I log a test application for you to see.
> > I package and deploy everything in netbeans.
> >
> > eve
> >
> > ------------------------------------------------------------------------
> > Date: Tue, 8 Dec 2009 12:40:45 -0800
> > From: Vince.Kraemer@Sun.COM
> > To: users@glassfish.dev.java.net
> > Subject: Re: Persistence unit ref:
> >
> > I have never heard of NB putting the persistence.xml file ing to
> > META-INF directory of an EAR file.
> >
> > I would be interested in seeing the cluster of projects that does
> > something like that.
> >
> > Thanks,
> > vbk
> >
> >
> >
> > ------------------------------------------------------------------------
> > View your other email accounts from your Hotmail inbox. Add them now.
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

Have more than one Hotmail account? Link them together to easily access both.

_________________________________________________________________
Use Hotmail to send and receive mail from your different email accounts
http://clk.atdmt.com/UKM/go/186394592/direct/01/
[att1.html]

Vince Kraemer

I can reproduce the error.

if i comment out

... ...

your app deploys but does not run on my system... i do not have
net.sourceforge.jtds.jdbcx.JtdsDataSource... so my server is not happy
with attempting to run the app...

vbk

On 12/08/09 15:31, Eve Pokua wrote:
> Hi,
>
> NB packages it
> into Testingapp2/Testingapp2-ejb/build/jar/META-INF/persistence.xml
>
> Well,
>
> If you deploy the application, could you reproduce the error?
>
> Thanks
>
> eve

[att1.html]

Eve Pokua

Vince,

I need to add the per-unit-ref to my web.xml to make something in my

spring work. I already know it deploys if I comment it out. If you could

get the application to deploy by doing below without commenting the per-unit-ref out.

Please, attach it and I will deploy it.

Thanks

eve

------- Additional comments from mm110999 Wed Dec 9 00:36:18 +0000 2009 -------
The PU defined at ejb-jar level is not visible to war. See section 6.2.2 of JSR
220 specs for more details. If you want to share a PU between two components of
and ear, the best place to put it is under lib dir of the ear like as follows

my.ear
my.war
my.ejb.jar
lib/mypu.jar
META-INF/persitence.xml

Date: Tue, 8 Dec 2009 15:39:34 -0800
From: Vince.Kraemer@Sun.COM
To: users@glassfish.dev.java.net
Subject: Re: Persistence unit ref:

I can reproduce the error.

if i comment out

... ...

your app deploys but does not run on my system... i do not have net.sourceforge.jtds.jdbcx.JtdsDataSource... so my server is not happy with attempting to run the app...

vbk

On 12/08/09 15:31, Eve Pokua wrote:

Hi,

NB packages it into Testingapp2/Testingapp2-ejb/build/jar/META-INF/persistence.xml

Well,

If you deploy the application, could you reproduce the error?

Thanks

eve

_________________________________________________________________
Have more than one Hotmail account? Link them together to easily access both
http://clk.atdmt.com/UKM/go/186394591/direct/01/
[att1.html]

vince kraemer

Hmmm.

I won't have time to do that for at least a couple days. I have a
couple NB issues that require plugin code changes to resolve that have
to take priority over helping someone restructure their app to resolve a
Spring related issue.

I think you will need to:

I think you may be able to just;
1. create a Java Library project, then
2. create a META-INF folder in the Source Packages, then
3. Cut/Paste the persistence.xml file from the old ejb jar project into
the project created at step 1...
4. Make the EJB and WEB app projects depenent on the JAR, using the
project properties...
5. Deploy.

vbk

Eve Pokua wrote:
> Vince,
>
> I need to add the per-unit-ref to my web.xml to make something in my
> spring work. I already know it deploys if I comment it out. If you
> could
> get the application to deploy by doing below without commenting the
> per-unit-ref out.
> Please, attach it and I will deploy it.
>
> Thanks
>
> eve
>
> /------- Additional comments from mm110999
> Wed Dec 9 00:36:18 +0000 2009 -------/
> The PU defined at ejb-jar level is not visible to war. See section 6.2.2 of JSR
> 220 specs for more details. If you want to share a PU between two components of
> and ear, the best place to put it is under lib dir of the ear like as follows
>
> my.ear
> my.war
> my.ejb.jar
> lib/mypu.jar
> META-INF/persitence.xml
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Eve Pokua

Thanks Vince.

I kind of tried everything it wasn't working. So I copied the

persistence.xml file to the src of the war. I kind of understand

it is not a good idea but it's running now. I will take the steps

below into consideration.

thanks

eve

> Date: Wed, 9 Dec 2009 07:57:36 -0800
> From: Vince.Kraemer@Sun.COM
> To: users@glassfish.dev.java.net
> Subject: Re: Persistence unit ref:
>
> Hmmm.
>
> I won't have time to do that for at least a couple days. I have a
> couple NB issues that require plugin code changes to resolve that have
> to take priority over helping someone restructure their app to resolve a
> Spring related issue.
>
> I think you will need to:
>
> I think you may be able to just;
> 1. create a Java Library project, then
> 2. create a META-INF folder in the Source Packages, then
> 3. Cut/Paste the persistence.xml file from the old ejb jar project into
> the project created at step 1...
> 4. Make the EJB and WEB app projects depenent on the JAR, using the
> project properties...
> 5. Deploy.
>
> vbk
>
> Eve Pokua wrote:
> > Vince,
> >
> > I need to add the per-unit-ref to my web.xml to make something in my
> > spring work. I already know it deploys if I comment it out. If you
> > could
> > get the application to deploy by doing below without commenting the
> > per-unit-ref out.
> > Please, attach it and I will deploy it.
> >
> > Thanks
> >
> > eve
> >
> > /------- Additional comments from mm110999
> > Wed Dec 9 00:36:18 +0000 2009 -------/
> > The PU defined at ejb-jar level is not visible to war. See section 6.2.2 of JSR
> > 220 specs for more details. If you want to share a PU between two components of
> > and ear, the best place to put it is under lib dir of the ear like as follows
> >
> > my.ear
> > my.war
> > my.ejb.jar
> > lib/mypu.jar
> > META-INF/persitence.xml
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

_________________________________________________________________
Have more than one Hotmail account? Link them together to easily access both
http://clk.atdmt.com/UKM/go/186394591/direct/01/
[att1.html]

Eve Pokua

Here,

Deploying application in domain failed; Deployment Error -- Could not resolve a persistence unit corresponding to the persistence-unit-ref-name [persistence/TestingUN2] in scope of the module called [C:\jee\WebApplication2\build\web]. Please verify your application.

From: gorgeous65@msn.com
To: users@glassfish.dev.java.net
Subject: RE: Persistence unit ref:
Date: Fri, 4 Dec 2009 23:26:23 +0000

Marina,

I am using Gv 2. gluster profile. I really don't understand why
I am having this problem. I have even created another test
war application. but still similar error.

Thanking you.

eve

> Date: Fri, 4 Dec 2009 15:23:41 -0800
> From: Marina.Vatkina@Sun.COM
> To: users@glassfish.dev.java.net
> Subject: Re: Persistence unit ref:
>
> Eve,
>
> Are you deploying it to GF v2.x or v3? In v3 you need to package shared parts
> into the ear's lib/myjar.jar to be available to all components.
>
> Regards,
> -marina
>
> Eve Pokua wrote:
> > Ralph,
> >
> > My application is a full enterprise application.
> > No the persistence.xml is in my ejb
> > mobule section where all my entity files are.
> >
> > eve
> > ------------------------------------------------------------------------
> > From: ralph.winzinger@senacor.de
> > To: users@glassfish.dev.java.net
> > Date: Sat, 5 Dec 2009 00:01:29 +0100
> > Subject: Re: Persistence unit ref:
> >
> > but persistence.xml is not contained in your war, is it?
> >
> >
> > Am 04.12.2009 um 23:53 schrieb Eve Pokua:
> >
> > Ralph see attached
> >
> > Hope that helps. This testing is also giving error.
> >
> > Thanks
> >
> > eve
> >
> >
> >
> > ------------------------------------------------------------------------
> > From: gorgeous65@msn.com
> > To: users@glassfish.dev.java.net
> > ; ejb@glassfish.dev.java.net
> > ; persistence@glassfish.dev.java.net
> >
> > Date: Fri, 4 Dec 2009 22:32:26 +0000
> > Subject: RE: Persistence unit ref:
> >
> > Ralph,
> >
> > My application is very big.
> >
> > Do you have spring?
> >
> > In Marina's example
> >
> > This is what the JavaEE spec gives as an example:
> > *
> >
> > persistence/InventoryAppDB
> > *
> >
> > InventoryManagement
> >
> > *
> > *
> >
> >
> > I do not have what is bold in my per.xml
> >
> > Shouldn't it be why I am getting an error? The web.xml can not
> > resolve -
> >
> > Deploying application in domain failed; Could not resolve a
> > persistence unit corresponding to the persistence-unit-ref-name
> > [persistence/ENTERPRISE-ejbPU] in scope of the module called
> > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > Please verify your application.
> >
> > IT's complaining about the per-unit-ref-name which is not in my per.xml.
> >
> >
> > How do I put that in? I tried to add it in but has been getting error.
> > Could you add it in and send it over?
> >
> > I will try and see if I can send over a test app.
> >
> > Thanking you.
> >
> > eve
> >
> >
> >
> >
> >
> >
> >
> >
> > ------------------------------------------------------------------------
> > From: ralph.winzinger@senacor.de
> > To: users@glassfish.dev.java.net
> > Date: Fri, 4 Dec 2009 23:00:35 +0100
> > Subject: Re: Persistence unit ref:
> >
> > well, I tried various constellations to test whether your error will
> > show up (renaming persistence.xml, changing the value
> > in
(web.xml), changing
> > name=...> (persistence.xml)). But the error only occurred when the
> > unit-names in persistence.xml and web.xml did not match.
> >
> > If your project is some kind of test-project, you might send your
> > WAR (if it is not too big of course) - I will try to throw it at my
> > container ...
> >
> >
> > Am 04.12.2009 um 22:51 schrieb Eve Pokua:
> >
> > Ralph,
> >
> > I have recreated my persistence.xml.
> >
> > Please, note that I am using netbeans 6.7 to create my
> > persistence.xml.
> >
> > Here is the new file-
> >
> >
> >
> > 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/persistencehttp://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
> >
> >
> >
oracle.toplink.essentials.PersistenceProvider > > jdbc_/EnterpriseDB2
> >
> >
> > value="create-tables"/>
> >
> >
> >
> >
> >
> > My problem comes when I have to
> >
> > this to my web.xml-
> >
> >
> >
> >
persistence/ENTERPRISE-ejbPU > >
> >
ENTERPRISE-ejbPU > >
> >
> > when I comment it out of my web.xml, my application deploys.
> >
> > Ralph, could you please, double check your per.xml to see if you
> > have the
> >
> > persistence-unit-ref>
> >
> >
> > tag and also please, do reproduce my error by changing the per.
> > name.
> >
> > I'm sure you will reproduce the error.
> >
> >
> > This is what the JavaEE spec gives as an example:
> >
> >
> > persistence/InventoryAppDB
> >
> >
> > InventoryManagement
> >
> >
> >
> > Mar. I am using netbeans to create the per.xml.
> >
> >
> >
> > Thanking you for all your help.
> >
> > eve
> >
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > From: ralph.winzinger@senacor.de
> > To: users@glassfish.dev.java.net
> >
> > Date: Fri, 4 Dec 2009 22:05:39 +0100
> > Subject: Re: Persistence unit ref:
> >
> > Eve,
> >
> > the only way, how I can reproduce your error is to change the
> > value of
to something not matching the
> > name in the persistence.xml. But thatseems to be ok in the
> > snippets you sent. So I would go on and look for old files that
> > might be still around - maybe there's another persistence.xml
> > that is read by accident. Look inside the WAR and make sure that
> > everything is as expected.
> >
> > Bye,
> > Ralph
> >
> >
> >
> > Am 04.12.2009 um 19:48 schrieb Eve Pokua:
> >
> > Ralph,
> >
> > Here is my per.xml
> >
> >
> >
> >
> >
> > 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">
> >
> > transaction-type="JTA">
> > jdbc_/EnterpriseDB2
> > false
> >
> > > >
> >
> >
> >
> > regards
> >
> > eve
> >
> > ------------------------------------------------------------------------
> > From: ralph.winzinger@senacor.de
> >
> > To: users@glassfish.dev.java.net
> >
> > Date: Fri, 4 Dec 2009 15:20:16 +0100
> > Subject: Re: Persistence unit ref:
> >
> > hi,
> >
> > what does your persistence.xml look like?
> >
> >
> > Am 04.12.2009 um 13:50 schrieb Eve Pokua:
> >
> > Ralph,
> >
> > Thank you for your reply.
> >
> > I did as you said.
> >
> > i added the following to my web.xml
> >
> >
> >
> >
> >
persistence/ENTERPRISE-ejbPU > >
ENTERPRISE-ejbPU > >
> >
> >
> >
> > in my applicationContext.xml
> >
> > > > class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"
> > >
> >
> >
> > > > value="persistence/ENTERPRISE-ejbPU"/>
> >

> >
> >
> >
> >

> >
> >

> >
> >
> >
> > But I still get the error -
> >
> > [#|2009-12-04T12:34:05.536+0000|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=20;_ThreadName=Thread-48;_RequestID=3fb89f4d-e8ef-403f-a422-9e5442bf9b3a;|Exception
> > occured in J2EEC Phase
> > com.sun.enterprise.deployment.backend.IASDeploymentException:
> > Could not resolve a persistence unit corresponding to
> > the persistence-unit-ref-name
> > [persistence/ENTERPRISE-ejbPU] in scope of the module
> > called
> > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > Please verify your application.
> > at
> > com.sun.enterprise.deployment.BundleDescriptor.findReferencedPUsViaPURefs(BundleDescriptor.java:711)
> > at
> > com.sun.enterprise.deployment.WebBundleDescriptor.findReferencedPUs(WebBundleDescriptor.java:727)
> > at
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.getAllPersistenceUnitDescriptors(PersistenceProcessor.java:214)
> > at
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.processApplication(PersistenceProcessor.java:175)
> > at
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processApplication(DeploymentEventListenerImpl.java:211)
> > at
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processEvent(DeploymentEventListenerImpl.java:172)
> > at
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.notifyDeploymentEvent(DeploymentEventListenerImpl.java:122)
> > at
> > com.sun.enterprise.deployment.backend.DeploymentEventManager.notifyDeploymentEvent(DeploymentEventManager.java:79)
> > at
> > com.sun.enterprise.deployment.backend.AppDeployer.postDeploy(AppDeployer.java:401)
> > at
> > com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:260)
> > at
> > com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
> > at
> > com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
> > at
> > com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
> > at
> > com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
> > at
> > com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
> > at
> > com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
> > at
> > com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
> > at
> > com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
> > |#]
> > [#|2009-12-04T12:37:03.074+0000|INFO|sun-appserver2.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;;|Initializing
> > Sun's JavaServer Faces implementation (1.2_04-b22-p05)
> > for context ''|#]
> > [#|2009-12-04T12:37:58.729+0000|INFO|sun-appserver2.1|com.sun.jbi.framework|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;|JBIFW0012:
> > JBI framework startup complete.|#]
> >
> >
> > sO MY QUESTION AGAIN IS - WHERE CAN I FIND A REFERENCE
> > TO MY persistence-unit-ref-name????
> >
> > I'VE CHECKED MY domain.xml but no details.
> >
> > thanks
> >
> > eve
> >
> >
> >
> > ------------------------------------------------------------------------
> > From: ralph.winzinger@senacor.com
> >
> > To: users@glassfish.dev.java.net
> >
> > Date: Fri, 4 Dec 2009 00:42:46 +0100
> > Subject: Re: Persistence unit ref:
> >
> > Hi,
> >
> > I got this working just about an ago ...
> >
> > web.xml:
> >
> >
> >
> >
persistence/hd > >
hd > >
> >
> > application-context.xml:
> >
> >
> >
> >
> >
> >

> >
> >

> >
> >

> >
> >

> >
> >
> > Hope this helps ...
> >
> > Bye,
> > Ralph
> >
> >
> > Kurz gehalten, da vom iPhone gesendet
> >
> > Am 04.12.2009 um 00:16 schrieb "Eve Pokua"
> > >:
> >
> > Hello,
> >
> > Below is my persistence.xml-
> >
> >
> >
> > 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">
> >
> > transaction-type="JTA">
> >
> > jdbc_/EnterpriseDB2
> >
> > false
> >
> > > >
> >
> >
> >
> > How do I find the name of my -persistence-unit-ref-name?
> >
> > I use the following and I get deployment error
> >
> >
ENTERPRISE-ejbPU > >
> > Deploying application in domain failed; Could not
> > resolve a persistence unit corresponding to the
> > persistence-unit-ref-name [ENTERPRISE-ejbPU] in
> > scope of the module called
> > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > Please verify your application.
> >
> > I need to specify it within my web.xml in-order to
> > use @Persistence in my spring JEE
> > application.
> >
> > Thanking you.
> >
> > eve
> >
> >
> >
> > ------------------------------------------------------------------------
> > Use Hotmail to send and receive mail from your
> > different email accounts. Find out how.
> >
> >
> >
> > ------------------------------------------------------------------------
> > New! Receive and respond to mail from other email
> > accounts from within Hotmail Find out how.
> >
> >
> >
> > Ralph Winzinger
> > Principal Architect
> > ______________________________
> > Senacor Technologies AG
> > Vordere Cramergasse 11
> > 90478 Nürnberg
> >
> > Telefon: +49 (0)911 4244-202
> > Telefax: +49 (0)911 4244-100
> >
> > ralph.winzinger@senacor.com
> > www.senacor.com
> >
> > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> > Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> > Vorstand: Matthias Tomann, Marcus Purzer -
> > Aufsichtsratsvorsitzender: Mathias J. Lindermeir
> >
> >
> > ------------------------------------------------------------------------
> > Add other email accounts to Hotmail in 3 easy steps. Find
> > out how.
> >
> >
> > Ralph Winzinger
> > Principal Architect
> > ______________________________
> > Senacor Technologies AG
> > Vordere Cramergasse 11
> > 90478 Nürnberg
> >
> > Telefon: +49 (0)911 4244-202
> > Telefax: +49 (0)911 4244-100
> >
> > ralph.winzinger@senacor.com
> > www.senacor.com
> >
> > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> > Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> > Vorstand: Matthias Tomann, Marcus Purzer -
> > Aufsichtsratsvorsitzender: Mathias J. Lindermeir
> >
> >
> > ------------------------------------------------------------------------
> > View your other email accounts from your Hotmail inbox. Add them
> > now.
> >
> >
> > Ralph Winzinger
> > Principal Architect
> > ______________________________
> > Senacor Technologies AG
> > Vordere Cramergasse 11
> > 90478 Nürnberg
> >
> > Telefon: +49 (0)911 4244-202
> > Telefax: +49 (0)911 4244-100
> >
> > ralph.winzinger@senacor.com
> > www.senacor.com
> >
> > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> > Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> > Vorstand: Matthias Tomann, Marcus Purzer -
> > Aufsichtsratsvorsitzender: Mathias J. Lindermeir
> >
> >
> > ------------------------------------------------------------------------
> > View your other email accounts from your Hotmail inbox. Add them
> > now.
> > ------------------------------------------------------------------------
> > Have more than one Hotmail account? Link them together to easily
> > access
> > both.
---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> >
> > For additional commands, e-mail: users-help@glassfish.dev.java.net
> >
> >
> >
> > Ralph Winzinger
> > Principal Architect
> > ______________________________
> > Senacor Technologies AG
> > Vordere Cramergasse 11
> > 90478 Nürnberg
> >
> > Telefon: +49 (0)911 4244-202
> > Telefax: +49 (0)911 4244-100
> >
> > ralph.winzinger@senacor.com
> > www.senacor.com
> >
> > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg - Amtsgericht
> > Nürnberg - Reg.-Nr.: HRB 23098
> > Vorstand: Matthias Tomann, Marcus Purzer - Aufsichtsratsvorsitzender:
> > Mathias J. Lindermeir
> >
> >
> > ------------------------------------------------------------------------
> > Add other email accounts to Hotmail in 3 easy steps. Find out how.
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

Add other email accounts to Hotmail in 3 easy steps. Find out how.
_________________________________________________________________
Add your Gmail and Yahoo! Mail email accounts into Hotmail - it's easy
http://clk.atdmt.com/UKM/go/186394592/direct/01/
[att1.html]
[persistence.xml]
[web.xml]
[dispatcher-servlet.xml]
[applicationContext.xml]
[sun-web.xml]
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Attachment not added (too many attachments): "dispatcher-servlet.xml"
Attachment not added (too many attachments): "applicationContext.xml"
Attachment not added (too many attachments): "sun-web.xml"

Eve Pokua

Marina, Ralph,

I am reading this thread.

http://forums.java.net/jive/message.jspa?messageID=207860

It looks like the web is not seeing my persistence in my ear.

But I also tested this in just a web application and placed

the per.xml in the web dir then in the web/web-inf

still same error-

Thanking you.

eve

From: gorgeous65@msn.com
To: users@glassfish.dev.java.net
Date: Fri, 4 Dec 2009 23:28:54 +0000
Subject: FW: Persistence unit ref:

Here,

Deploying application in domain failed; Deployment Error -- Could not resolve a persistence unit corresponding to the persistence-unit-ref-name [persistence/TestingUN2] in scope of the module called [C:\jee\WebApplication2\build\web]. Please verify your application.

From: gorgeous65@msn.com
To: users@glassfish.dev.java.net
Subject: RE: Persistence unit ref:
Date: Fri, 4 Dec 2009 23:26:23 +0000

Marina,

I am using Gv 2. gluster profile. I really don't understand why
I am having this problem. I have even created another test
war application. but still similar error.

Thanking you.

eve

> Date: Fri, 4 Dec 2009 15:23:41 -0800
> From: Marina.Vatkina@Sun.COM
> To: users@glassfish.dev.java.net
> Subject: Re: Persistence unit ref:
>
> Eve,
>
> Are you deploying it to GF v2.x or v3? In v3 you need to package shared parts
> into the ear's lib/myjar.jar to be available to all components.
>
> Regards,
> -marina
>
> Eve Pokua wrote:
> > Ralph,
> >
> > My application is a full enterprise application.
> > No the persistence.xml is in my ejb
> > mobule section where all my entity files are.
> >
> > eve
> > ------------------------------------------------------------------------
> > From: ralph.winzinger@senacor.de
> > To: users@glassfish.dev.java.net
> > Date: Sat, 5 Dec 2009 00:01:29 +0100
> > Subject: Re: Persistence unit ref:
> >
> > but persistence.xml is not contained in your war, is it?
> >
> >
> > Am 04.12.2009 um 23:53 schrieb Eve Pokua:
> >
> > Ralph see attached
> >
> > Hope that helps. This testing is also giving error.
> >
> > Thanks
> >
> > eve
> >
> >
> >
> > ------------------------------------------------------------------------
> > From: gorgeous65@msn.com
> > To: users@glassfish.dev.java.net
> > ; ejb@glassfish.dev.java.net
> > ; persistence@glassfish.dev.java.net
> >
> > Date: Fri, 4 Dec 2009 22:32:26 +0000
> > Subject: RE: Persistence unit ref:
> >
> > Ralph,
> >
> > My application is very big.
> >
> > Do you have spring?
> >
> > In Marina's example
> >
> > This is what the JavaEE spec gives as an example:
> > *
> >
> > persistence/InventoryAppDB
> > *
> >
> > InventoryManagement
> >
> > *
> > *
> >
> >
> > I do not have what is bold in my per.xml
> >
> > Shouldn't it be why I am getting an error? The web.xml can not
> > resolve -
> >
> > Deploying application in domain failed; Could not resolve a
> > persistence unit corresponding to the persistence-unit-ref-name
> > [persistence/ENTERPRISE-ejbPU] in scope of the module called
> > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > Please verify your application.
> >
> > IT's complaining about the per-unit-ref-name which is not in my per.xml.
> >
> >
> > How do I put that in? I tried to add it in but has been getting error.
> > Could you add it in and send it over?
> >
> > I will try and see if I can send over a test app.
> >
> > Thanking you.
> >
> > eve
> >
> >
> >
> >
> >
> >
> >
> >
> > ------------------------------------------------------------------------
> > From: ralph.winzinger@senacor.de
> > To: users@glassfish.dev.java.net
> > Date: Fri, 4 Dec 2009 23:00:35 +0100
> > Subject: Re: Persistence unit ref:
> >
> > well, I tried various constellations to test whether your error will
> > show up (renaming persistence.xml, changing the value
> > in
(web.xml), changing
> > name=...> (persistence.xml)). But the error only occurred when the
> > unit-names in persistence.xml and web.xml did not match.
> >
> > If your project is some kind of test-project, you might send your
> > WAR (if it is not too big of course) - I will try to throw it at my
> > container ...
> >
> >
> > Am 04.12.2009 um 22:51 schrieb Eve Pokua:
> >
> > Ralph,
> >
> > I have recreated my persistence.xml.
> >
> > Please, note that I am using netbeans 6.7 to create my
> > persistence.xml.
> >
> > Here is the new file-
> >
> >
> >
> > 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/persistencehttp://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
> >
> >
> >
oracle.toplink.essentials.PersistenceProvider > > jdbc_/EnterpriseDB2
> >
> >
> > value="create-tables"/>
> >
> >
> >
> >
> >
> > My problem comes when I have to
> >
> > this to my web.xml-
> >
> >
> >
> >
persistence/ENTERPRISE-ejbPU > >
> >
ENTERPRISE-ejbPU > >
> >
> > when I comment it out of my web.xml, my application deploys.
> >
> > Ralph, could you please, double check your per.xml to see if you
> > have the
> >
> > persistence-unit-ref>
> >
> >
> > tag and also please, do reproduce my error by changing the per.
> > name.
> >
> > I'm sure you will reproduce the error.
> >
> >
> > This is what the JavaEE spec gives as an example:
> >
> >
> > persistence/InventoryAppDB
> >
> >
> > InventoryManagement
> >
> >
> >
> > Mar. I am using netbeans to create the per.xml.
> >
> >
> >
> > Thanking you for all your help.
> >
> > eve
> >
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > From: ralph.winzinger@senacor.de
> > To: users@glassfish.dev.java.net
> >
> > Date: Fri, 4 Dec 2009 22:05:39 +0100
> > Subject: Re: Persistence unit ref:
> >
> > Eve,
> >
> > the only way, how I can reproduce your error is to change the
> > value of
to something not matching the
> > name in the persistence.xml. But thatseems to be ok in the
> > snippets you sent. So I would go on and look for old files that
> > might be still around - maybe there's another persistence.xml
> > that is read by accident. Look inside the WAR and make sure that
> > everything is as expected.
> >
> > Bye,
> > Ralph
> >
> >
> >
> > Am 04.12.2009 um 19:48 schrieb Eve Pokua:
> >
> > Ralph,
> >
> > Here is my per.xml
> >
> >
> >
> >
> >
> > 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">
> >
> > transaction-type="JTA">
> > jdbc_/EnterpriseDB2
> > false
> >
> > > >
> >
> >
> >
> > regards
> >
> > eve
> >
> > ------------------------------------------------------------------------
> > From: ralph.winzinger@senacor.de
> >
> > To: users@glassfish.dev.java.net
> >
> > Date: Fri, 4 Dec 2009 15:20:16 +0100
> > Subject: Re: Persistence unit ref:
> >
> > hi,
> >
> > what does your persistence.xml look like?
> >
> >
> > Am 04.12.2009 um 13:50 schrieb Eve Pokua:
> >
> > Ralph,
> >
> > Thank you for your reply.
> >
> > I did as you said.
> >
> > i added the following to my web.xml
> >
> >
> >
> >
> >
persistence/ENTERPRISE-ejbPU > >
ENTERPRISE-ejbPU > >
> >
> >
> >
> > in my applicationContext.xml
> >
> > > > class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"
> > >
> >
> >
> > > > value="persistence/ENTERPRISE-ejbPU"/>
> >

> >
> >
> >
> >

> >
> >

> >
> >
> >
> > But I still get the error -
> >
> > [#|2009-12-04T12:34:05.536+0000|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=20;_ThreadName=Thread-48;_RequestID=3fb89f4d-e8ef-403f-a422-9e5442bf9b3a;|Exception
> > occured in J2EEC Phase
> > com.sun.enterprise.deployment.backend.IASDeploymentException:
> > Could not resolve a persistence unit corresponding to
> > the persistence-unit-ref-name
> > [persistence/ENTERPRISE-ejbPU] in scope of the module
> > called
> > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > Please verify your application.
> > at
> > com.sun.enterprise.deployment.BundleDescriptor.findReferencedPUsViaPURefs(BundleDescriptor.java:711)
> > at
> > com.sun.enterprise.deployment.WebBundleDescriptor.findReferencedPUs(WebBundleDescriptor.java:727)
> > at
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.getAllPersistenceUnitDescriptors(PersistenceProcessor.java:214)
> > at
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.processApplication(PersistenceProcessor.java:175)
> > at
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processApplication(DeploymentEventListenerImpl.java:211)
> > at
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processEvent(DeploymentEventListenerImpl.java:172)
> > at
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.notifyDeploymentEvent(DeploymentEventListenerImpl.java:122)
> > at
> > com.sun.enterprise.deployment.backend.DeploymentEventManager.notifyDeploymentEvent(DeploymentEventManager.java:79)
> > at
> > com.sun.enterprise.deployment.backend.AppDeployer.postDeploy(AppDeployer.java:401)
> > at
> > com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:260)
> > at
> > com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
> > at
> > com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
> > at
> > com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
> > at
> > com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
> > at
> > com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
> > at
> > com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
> > at
> > com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
> > at
> > com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
> > |#]
> > [#|2009-12-04T12:37:03.074+0000|INFO|sun-appserver2.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;;|Initializing
> > Sun's JavaServer Faces implementation (1.2_04-b22-p05)
> > for context ''|#]
> > [#|2009-12-04T12:37:58.729+0000|INFO|sun-appserver2.1|com.sun.jbi.framework|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;|JBIFW0012:
> > JBI framework startup complete.|#]
> >
> >
> > sO MY QUESTION AGAIN IS - WHERE CAN I FIND A REFERENCE
> > TO MY persistence-unit-ref-name????
> >
> > I'VE CHECKED MY domain.xml but no details.
> >
> > thanks
> >
> > eve
> >
> >
> >
> > ------------------------------------------------------------------------
> > From: ralph.winzinger@senacor.com
> >
> > To: users@glassfish.dev.java.net
> >
> > Date: Fri, 4 Dec 2009 00:42:46 +0100
> > Subject: Re: Persistence unit ref:
> >
> > Hi,
> >
> > I got this working just about an ago ...
> >
> > web.xml:
> >
> >
> >
> >
persistence/hd > >
hd > >
> >
> > application-context.xml:
> >
> >
> >
> >
> >
> >

> >
> >

> >
> >

> >
> >

> >
> >
> > Hope this helps ...
> >
> > Bye,
> > Ralph
> >
> >
> > Kurz gehalten, da vom iPhone gesendet
> >
> > Am 04.12.2009 um 00:16 schrieb "Eve Pokua"
> > >:
> >
> > Hello,
> >
> > Below is my persistence.xml-
> >
> >
> >
> > 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">
> >
> > transaction-type="JTA">
> >
> > jdbc_/EnterpriseDB2
> >
> > false
> >
> > > >
> >
> >
> >
> > How do I find the name of my -persistence-unit-ref-name?
> >
> > I use the following and I get deployment error
> >
> >
ENTERPRISE-ejbPU > >
> > Deploying application in domain failed; Could not
> > resolve a persistence unit corresponding to the
> > persistence-unit-ref-name [ENTERPRISE-ejbPU] in
> > scope of the module called
> > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > Please verify your application.
> >
> > I need to specify it within my web.xml in-order to
> > use @Persistence in my spring JEE
> > application.
> >
> > Thanking you.
> >
> > eve
> >
> >
> >
> > ------------------------------------------------------------------------
> > Use Hotmail to send and receive mail from your
> > different email accounts. Find out how.
> >
> >
> >
> > ------------------------------------------------------------------------
> > New! Receive and respond to mail from other email
> > accounts from within Hotmail Find out how.
> >
> >
> >
> > Ralph Winzinger
> > Principal Architect
> > ______________________________
> > Senacor Technologies AG
> > Vordere Cramergasse 11
> > 90478 Nürnberg
> >
> > Telefon: +49 (0)911 4244-202
> > Telefax: +49 (0)911 4244-100
> >
> > ralph.winzinger@senacor.com
> > www.senacor.com
> >
> > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> > Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> > Vorstand: Matthias Tomann, Marcus Purzer -
> > Aufsichtsratsvorsitzender: Mathias J. Lindermeir
> >
> >
> > ------------------------------------------------------------------------
> > Add other email accounts to Hotmail in 3 easy steps. Find
> > out how.
> >
> >
> > Ralph Winzinger
> > Principal Architect
> > ______________________________
> > Senacor Technologies AG
> > Vordere Cramergasse 11
> > 90478 Nürnberg
> >
> > Telefon: +49 (0)911 4244-202
> > Telefax: +49 (0)911 4244-100
> >
> > ralph.winzinger@senacor.com
> > www.senacor.com
> >
> > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> > Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> > Vorstand: Matthias Tomann, Marcus Purzer -
> > Aufsichtsratsvorsitzender: Mathias J. Lindermeir
> >
> >
> > ------------------------------------------------------------------------
> > View your other email accounts from your Hotmail inbox. Add them
> > now.
> >
> >
> > Ralph Winzinger
> > Principal Architect
> > ______________________________
> > Senacor Technologies AG
> > Vordere Cramergasse 11
> > 90478 Nürnberg
> >
> > Telefon: +49 (0)911 4244-202
> > Telefax: +49 (0)911 4244-100
> >
> > ralph.winzinger@senacor.com
> > www.senacor.com
> >
> > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> > Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> > Vorstand: Matthias Tomann, Marcus Purzer -
> > Aufsichtsratsvorsitzender: Mathias J. Lindermeir
> >
> >
> > ------------------------------------------------------------------------
> > View your other email accounts from your Hotmail inbox. Add them
> > now.
> > ------------------------------------------------------------------------
> > Have more than one Hotmail account? Link them together to easily
> > access
> > both.
---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> >
> > For additional commands, e-mail: users-help@glassfish.dev.java.net
> >
> >
> >
> > Ralph Winzinger
> > Principal Architect
> > ______________________________
> > Senacor Technologies AG
> > Vordere Cramergasse 11
> > 90478 Nürnberg
> >
> > Telefon: +49 (0)911 4244-202
> > Telefax: +49 (0)911 4244-100
> >
> > ralph.winzinger@senacor.com
> > www.senacor.com
> >
> > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg - Amtsgericht
> > Nürnberg - Reg.-Nr.: HRB 23098
> > Vorstand: Matthias Tomann, Marcus Purzer - Aufsichtsratsvorsitzender:
> > Mathias J. Lindermeir
> >
> >
> > ------------------------------------------------------------------------
> > Add other email accounts to Hotmail in 3 easy steps. Find out how.
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

Add other email accounts to Hotmail in 3 easy steps. Find out how.

Have more than one Hotmail account? Link them together to easily access both.
_________________________________________________________________
Add your Gmail and Yahoo! Mail email accounts into Hotmail - it's easy
http://clk.atdmt.com/UKM/go/186394592/direct/01/
[att1.html]

Marina Vatkina

Check if the PU had been processed correctly - are you sure there is jdbc_/ not
jdbc/ in the datasource name?

-marina

Eve Pokua wrote:
> Marina, Ralph,
>
> I am reading this thread.
>
> http://forums.java.net/jive/message.jspa?messageID=207860
>
> It looks like the web is not seeing my persistence in my ear.
>
> But I also tested this in just a web application and placed
> the per.xml in the web dir then in the web/web-inf
>
> still same error-
>
> Thanking you.
>
> eve
> ------------------------------------------------------------------------
> From: gorgeous65@msn.com
> To: users@glassfish.dev.java.net
> Date: Fri, 4 Dec 2009 23:28:54 +0000
> Subject: FW: Persistence unit ref:
>
>
>
> Here,
>
> Deploying application in domain failed; Deployment Error -- Could not
> resolve a persistence unit corresponding to the
> persistence-unit-ref-name [persistence/TestingUN2] in scope of the
> module called [C:\jee\WebApplication2\build\web]. Please verify your
> application.
>
>
>
> ------------------------------------------------------------------------
> From: gorgeous65@msn.com
> To: users@glassfish.dev.java.net
> Subject: RE: Persistence unit ref:
> Date: Fri, 4 Dec 2009 23:26:23 +0000
>
> Marina,
>
> I am using Gv 2. gluster profile. I really don't understand why
> I am having this problem. I have even created another test
> war application. but still similar error.
>
> Thanking you.
>
> eve
>
> > Date: Fri, 4 Dec 2009 15:23:41 -0800
> > From: Marina.Vatkina@Sun.COM
> > To: users@glassfish.dev.java.net
> > Subject: Re: Persistence unit ref:
> >
> > Eve,
> >
> > Are you deploying it to GF v2.x or v3? In v3 you need to package
> shared parts
> > into the ear's lib/myjar.jar to be available to all components.
> >
> > Regards,
> > -marina
> >
> > Eve Pokua wrote:
> > > Ralph,
> > >
> > > My application is a full enterprise application.
> > > No the persistence.xml is in my ejb
> > > mobule section where all my entity files are.
> > >
> > > eve
> > >
> ------------------------------------------------------------------------
> > > From: ralph.winzinger@senacor.de
> > > To: users@glassfish.dev.java.net
> > > Date: Sat, 5 Dec 2009 00:01:29 +0100
> > > Subject: Re: Persistence unit ref:
> > >
> > > but persistence.xml is not contained in your war, is it?
> > >
> > >
> > > Am 04.12.2009 um 23:53 schrieb Eve Pokua:
> > >
> > > Ralph see attached
> > >
> > > Hope that helps. This testing is also giving error.
> > >
> > > Thanks
> > >
> > > eve
> > >
> > >
> > >
> > >
> ------------------------------------------------------------------------
> > > From: gorgeous65@msn.com
> > > To: users@glassfish.dev.java.net
> > > ; ejb@glassfish.dev.java.net
> > > ; persistence@glassfish.dev.java.net
> > >
> > > Date: Fri, 4 Dec 2009 22:32:26 +0000
> > > Subject: RE: Persistence unit ref:
> > >
> > > Ralph,
> > >
> > > My application is very big.
> > >
> > > Do you have spring?
> > >
> > > In Marina's example
> > >
> > > This is what the JavaEE spec gives as an example:
> > > *
> > >
> > > persistence/InventoryAppDB
> > > *
> > >
> > > InventoryManagement
> > >
> > > *
> > > *
> > >
> > >
> > > I do not have what is bold in my per.xml
> > >
> > > Shouldn't it be why I am getting an error? The web.xml can not
> > > resolve -
> > >
> > > Deploying application in domain failed; Could not resolve a
> > > persistence unit corresponding to the persistence-unit-ref-name
> > > [persistence/ENTERPRISE-ejbPU] in scope of the module called
> > > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > > Please verify your application.
> > >
> > > IT's complaining about the per-unit-ref-name which is not in my
> per.xml.
> > >
> > >
> > > How do I put that in? I tried to add it in but has been getting error.
> > > Could you add it in and send it over?
> > >
> > > I will try and see if I can send over a test app.
> > >
> > > Thanking you.
> > >
> > > eve
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> ------------------------------------------------------------------------
> > > From: ralph.winzinger@senacor.de
> > > To: users@glassfish.dev.java.net
> > > Date: Fri, 4 Dec 2009 23:00:35 +0100
> > > Subject: Re: Persistence unit ref:
> > >
> > > well, I tried various constellations to test whether your error will
> > > show up (renaming persistence.xml, changing the value
> > > in
(web.xml), changing
> > > name=...> (persistence.xml)). But the error only occurred when the
> > > unit-names in persistence.xml and web.xml did not match.
> > >
> > > If your project is some kind of test-project, you might send your
> > > WAR (if it is not too big of course) - I will try to throw it at my
> > > container ...
> > >
> > >
> > > Am 04.12.2009 um 22:51 schrieb Eve Pokua:
> > >
> > > Ralph,
> > >
> > > I have recreated my persistence.xml.
> > >
> > > Please, note that I am using netbeans 6.7 to create my
> > > persistence.xml.
> > >
> > > Here is the new file-
> > >
> > >
> > >
> > > 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/persistencehttp://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
> > >
> > >
> > >
oracle.toplink.essentials.PersistenceProvider > > > jdbc_/EnterpriseDB2
> > >
> > >
> > > value="create-tables"/>
> > >
> > >
> > >
> > >
> > >
> > > My problem comes when I have to
> > >
> > > this to my web.xml-
> > >
> > >
> > >
> > >
>
persistence/ENTERPRISE-ejbPU > > >
> > >
ENTERPRISE-ejbPU > > >
> > >
> > > when I comment it out of my web.xml, my application deploys.
> > >
> > > Ralph, could you please, double check your per.xml to see if you
> > > have the
> > >
> > > persistence-unit-ref>
> > >
> > >
> > > tag and also please, do reproduce my error by changing the per.
> > > name.
> > >
> > > I'm sure you will reproduce the error.
> > >
> > >
> > > This is what the JavaEE spec gives as an example:
> > >
> > >
> > > persistence/InventoryAppDB
> > >
> > >
> > > InventoryManagement
> > >
> > >
> > >
> > > Mar. I am using netbeans to create the per.xml.
> > >
> > >
> > >
> > > Thanking you for all your help.
> > >
> > > eve
> > >
> > >
> > >
> > >
> > >
> ------------------------------------------------------------------------
> > >
> > > From: ralph.winzinger@senacor.de
> > > To: users@glassfish.dev.java.net
> > >
> > > Date: Fri, 4 Dec 2009 22:05:39 +0100
> > > Subject: Re: Persistence unit ref:
> > >
> > > Eve,
> > >
> > > the only way, how I can reproduce your error is to change the
> > > value of
to something not matching the
> > > name in the persistence.xml. But thatseems to be ok in the
> > > snippets you sent. So I would go on and look for old files that
> > > might be still around - maybe there's another persistence.xml
> > > that is read by accident. Look inside the WAR and make sure that
> > > everything is as expected.
> > >
> > > Bye,
> > > Ralph
> > >
> > >
> > >
> > > Am 04.12.2009 um 19:48 schrieb Eve Pokua:
> > >
> > > Ralph,
> > >
> > > Here is my per.xml
> > >
> > >
> > >
> > >
> > >
> > > 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">
> > >
> > > transaction-type="JTA">
> > > jdbc_/EnterpriseDB2
> > > false
> > >
> > > > > >
> > >
> > >
> > >
> > > regards
> > >
> > > eve
> > >
> > >
> ------------------------------------------------------------------------
> > > From: ralph.winzinger@senacor.de
> > >
> > > To: users@glassfish.dev.java.net
> > >
> > > Date: Fri, 4 Dec 2009 15:20:16 +0100
> > > Subject: Re: Persistence unit ref:
> > >
> > > hi,
> > >
> > > what does your persistence.xml look like?
> > >
> > >
> > > Am 04.12.2009 um 13:50 schrieb Eve Pokua:
> > >
> > > Ralph,
> > >
> > > Thank you for your reply.
> > >
> > > I did as you said.
> > >
> > > i added the following to my web.xml
> > >
> > >
> > >
> > >
> > >
>
persistence/ENTERPRISE-ejbPU > > >
ENTERPRISE-ejbPU > > >
> > >
> > >
> > >
> > > in my applicationContext.xml
> > >
> > > > > >
> class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"
> > > >
> > >
> > >
> > > > > > value="persistence/ENTERPRISE-ejbPU"/>
> > >

> > >
> > >
> > >
> > >

> > >
> > >

> > >
> > >
> > >
> > > But I still get the error -
> > >
> > >
> [#|2009-12-04T12:34:05.536+0000|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=20;_ThreadName=Thread-48;_RequestID=3fb89f4d-e8ef-403f-a422-9e5442bf9b3a;|Exception
> > > occured in J2EEC Phase
> > > com.sun.enterprise.deployment.backend.IASDeploymentException:
> > > Could not resolve a persistence unit corresponding to
> > > the persistence-unit-ref-name
> > > [persistence/ENTERPRISE-ejbPU] in scope of the module
> > > called
> > > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > > Please verify your application.
> > > at
> > >
> com.sun.enterprise.deployment.BundleDescriptor.findReferencedPUsViaPURefs(BundleDescriptor.java:711)
> > > at
> > >
> com.sun.enterprise.deployment.WebBundleDescriptor.findReferencedPUs(WebBundleDescriptor.java:727)
> > > at
> > >
> com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.getAllPersistenceUnitDescriptors(PersistenceProcessor.java:214)
> > > at
> > >
> com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.processApplication(PersistenceProcessor.java:175)
> > > at
> > >
> com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processApplication(DeploymentEventListenerImpl.java:211)
> > > at
> > >
> com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processEvent(DeploymentEventListenerImpl.java:172)
> > > at
> > >
> com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.notifyDeploymentEvent(DeploymentEventListenerImpl.java:122)
> > > at
> > >
> com.sun.enterprise.deployment.backend.DeploymentEventManager.notifyDeploymentEvent(DeploymentEventManager.java:79)
> > > at
> > >
> com.sun.enterprise.deployment.backend.AppDeployer.postDeploy(AppDeployer.java:401)
> > > at
> > >
> com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:260)
> > > at
> > >
> com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
> > > at
> > >
> com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
> > > at
> > >
> com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
> > > at
> > >
> com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
> > > at
> > >
> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
> > > at
> > >
> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
> > > at
> > >
> com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
> > > at
> > >
> com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
> > > |#]
> > >
> [#|2009-12-04T12:37:03.074+0000|INFO|sun-appserver2.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;;|Initializing
> > > Sun's JavaServer Faces implementation (1.2_04-b22-p05)
> > > for context ''|#]
> > >
> [#|2009-12-04T12:37:58.729+0000|INFO|sun-appserver2.1|com.sun.jbi.framework|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;|JBIFW0012:
> > > JBI framework startup complete.|#]
> > >
> > >
> > > sO MY QUESTION AGAIN IS - WHERE CAN I FIND A REFERENCE
> > > TO MY persistence-unit-ref-name????
> > >
> > > I'VE CHECKED MY domain.xml but no details.
> > >
> > > thanks
> > >
> > > eve
> > >
> > >
> > >
> > >
> ------------------------------------------------------------------------
> > > From: ralph.winzinger@senacor.com
> > >
> > > To: users@glassfish.dev.java.net
> > >
> > > Date: Fri, 4 Dec 2009 00:42:46 +0100
> > > Subject: Re: Persistence unit ref:
> > >
> > > Hi,
> > >
> > > I got this working just about an ago ...
> > >
> > > web.xml:
> > >
> > >
> > >
> > >
persistence/hd > > >
hd > > >
> > >
> > > application-context.xml:
> > >
> > > > class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"
> >
> > >
> > >
> > >
> > >

> > >
> > >
> > >
> > >

> > >
> > >

> > >
> > >
> > > Hope this helps ...
> > >
> > > Bye,
> > > Ralph
> > >
> > >
> > > Kurz gehalten, da vom iPhone gesendet
> > >
> > > Am 04.12.2009 um 00:16 schrieb "Eve Pokua"
> > > >:
> > >
> > > Hello,
> > >
> > > Below is my persistence.xml-
> > >
> > >
> > >
> > > 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">
> > >
> > > transaction-type="JTA">
> > >
> > > jdbc_/EnterpriseDB2
> > >
> > > false
> > >
> > > > > >
> > >
> > >
> > >
> > > How do I find the name of my -persistence-unit-ref-name?
> > >
> > > I use the following and I get deployment error
> > >
> > >
ENTERPRISE-ejbPU > > >
> > > Deploying application in domain failed; Could not
> > > resolve a persistence unit corresponding to the
> > > persistence-unit-ref-name [ENTERPRISE-ejbPU] in
> > > scope of the module called
> > > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > > Please verify your application.
> > >
> > > I need to specify it within my web.xml in-order to
> > > use @Persistence in my spring JEE
> > > application.
> > >
> > > Thanking you.
> > >
> > > eve
> > >
> > >
> > >
> > >
> ------------------------------------------------------------------------
> > > Use Hotmail to send and receive mail from your
> > > different email accounts. Find out how.
> > >
> > >
> > >
> > >
> ------------------------------------------------------------------------
> > > New! Receive and respond to mail from other email
> > > accounts from within Hotmail Find out how.
> > >
> > >
> > >
> > > Ralph Winzinger
> > > Principal Architect
> > > ______________________________
> > > Senacor Technologies AG
> > > Vordere Cramergasse 11
> > > 90478 Nürnberg
> > >
> > > Telefon: +49 (0)911 4244-202
> > > Telefax: +49 (0)911 4244-100
> > >
> > > ralph.winzinger@senacor.com
> > > www.senacor.com
> > >
> > > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> > > Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> > > Vorstand: Matthias Tomann, Marcus Purzer -
> > > Aufsichtsratsvorsitzender: Mathias J. Lindermeir
> > >
> > >
> > >
> ------------------------------------------------------------------------
> > > Add other email accounts to Hotmail in 3 easy steps. Find
> > > out how.
> > >
> > >
> > > Ralph Winzinger
> > > Principal Architect
> > > ______________________________
> > > Senacor Technologies AG
> > > Vordere Cramergasse 11
> > > 90478 Nürnberg
> > >
> > > Telefon: +49 (0)911 4244-202
> > > Telefax: +49 (0)911 4244-100
> > >
> > > ralph.winzinger@senacor.com
> > > www.senacor.com
> > >
> > > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> > > Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> > > Vorstand: Matthias Tomann, Marcus Purzer -
> > > Aufsichtsratsvorsitzender: Mathias J. Lindermeir
> > >
> > >
> > >
> ------------------------------------------------------------------------
> > > View your other email accounts from your Hotmail inbox. Add them
> > > now.
> > >
> > >
> > > Ralph Winzinger
> > > Principal Architect
> > > ______________________________
> > > Senacor Technologies AG
> > > Vordere Cramergasse 11
> > > 90478 Nürnberg
> > >
> > > Telefon: +49 (0)911 4244-202
> > > Telefax: +49 (0)911 4244-100
> > >
> > > ralph.winzinger@senacor.com
> > > www.senacor.com
> > >
> > > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> > > Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> > > Vorstand: Matthias Tomann, Marcus Purzer -
> > > Aufsichtsratsvorsitzender: Mathias J. Lindermeir
> > >
> > >
> > >
> ------------------------------------------------------------------------
> > > View your other email accounts from your Hotmail inbox. Add them
> > > now.
> > >
> ------------------------------------------------------------------------
> > > Have more than one Hotmail account? Link them together to easily
> > > access
> > > both.
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> > >
> > > For additional commands, e-mail: users-help@glassfish.dev.java.net
> > >
> > >
> > >
> > > Ralph Winzinger
> > > Principal Architect
> > > ______________________________
> > > Senacor Technologies AG
> > > Vordere Cramergasse 11
> > > 90478 Nürnberg
> > >
> > > Telefon: +49 (0)911 4244-202
> > > Telefax: +49 (0)911 4244-100
> > >
> > > ralph.winzinger@senacor.com
> > > www.senacor.com
> > >
> > > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg - Amtsgericht
> > > Nürnberg - Reg.-Nr.: HRB 23098
> > > Vorstand: Matthias Tomann, Marcus Purzer - Aufsichtsratsvorsitzender:
> > > Mathias J. Lindermeir
> > >
> > >
> > >
> ------------------------------------------------------------------------
> > > Add other email accounts to Hotmail in 3 easy steps. Find out how.
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> > For additional commands, e-mail: users-help@glassfish.dev.java.net
> >
>
> ------------------------------------------------------------------------
> Add other email accounts to Hotmail in 3 easy steps. Find out how.
>
> ------------------------------------------------------------------------
> Have more than one Hotmail account? Link them together to easily access
> both.
> ------------------------------------------------------------------------
> Have more than one Hotmail account? Link them together to easily access
> both. < http://clk.atdmt.com/UKM/go/186394591/direct/01/>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Eve Pokua

marina,

There is no problem with jdbc

reference as tables are created and application is deployed if

I take away this from my web.xml -

persistence/TestingUN TestingUN

As long as the above is in my web.xml, I have the error.

eve

> Date: Fri, 4 Dec 2009 15:56:34 -0800
> From: Marina.Vatkina@Sun.COM
> To: users@glassfish.dev.java.net
> Subject: Re: FW: Persistence unit ref:
>
> Check if the PU had been processed correctly - are you sure there is jdbc_/ not
> jdbc/ in the datasource name?
>
> -marina
>
> Eve Pokua wrote:
> > Marina, Ralph,
> >
> > I am reading this thread.
> >
> > http://forums.java.net/jive/message.jspa?messageID=207860
> >
> > It looks like the web is not seeing my persistence in my ear.
> >
> > But I also tested this in just a web application and placed
> > the per.xml in the web dir then in the web/web-inf
> >
> > still same error-
> >
> > Thanking you.
> >
> > eve
> > ------------------------------------------------------------------------
> > From: gorgeous65@msn.com
> > To: users@glassfish.dev.java.net
> > Date: Fri, 4 Dec 2009 23:28:54 +0000
> > Subject: FW: Persistence unit ref:
> >
> >
> >
> > Here,
> >
> > Deploying application in domain failed; Deployment Error -- Could not
> > resolve a persistence unit corresponding to the
> > persistence-unit-ref-name [persistence/TestingUN2] in scope of the
> > module called [C:\jee\WebApplication2\build\web]. Please verify your
> > application.
> >
> >
> >
> > ------------------------------------------------------------------------
> > From: gorgeous65@msn.com
> > To: users@glassfish.dev.java.net
> > Subject: RE: Persistence unit ref:
> > Date: Fri, 4 Dec 2009 23:26:23 +0000
> >
> > Marina,
> >
> > I am using Gv 2. gluster profile. I really don't understand why
> > I am having this problem. I have even created another test
> > war application. but still similar error.
> >
> > Thanking you.
> >
> > eve
> >
> > > Date: Fri, 4 Dec 2009 15:23:41 -0800
> > > From: Marina.Vatkina@Sun.COM
> > > To: users@glassfish.dev.java.net
> > > Subject: Re: Persistence unit ref:
> > >
> > > Eve,
> > >
> > > Are you deploying it to GF v2.x or v3? In v3 you need to package
> > shared parts
> > > into the ear's lib/myjar.jar to be available to all components.
> > >
> > > Regards,
> > > -marina
> > >
> > > Eve Pokua wrote:
> > > > Ralph,
> > > >
> > > > My application is a full enterprise application.
> > > > No the persistence.xml is in my ejb
> > > > mobule section where all my entity files are.
> > > >
> > > > eve
> > > >
> > ------------------------------------------------------------------------
> > > > From: ralph.winzinger@senacor.de
> > > > To: users@glassfish.dev.java.net
> > > > Date: Sat, 5 Dec 2009 00:01:29 +0100
> > > > Subject: Re: Persistence unit ref:
> > > >
> > > > but persistence.xml is not contained in your war, is it?
> > > >
> > > >
> > > > Am 04.12.2009 um 23:53 schrieb Eve Pokua:
> > > >
> > > > Ralph see attached
> > > >
> > > > Hope that helps. This testing is also giving error.
> > > >
> > > > Thanks
> > > >
> > > > eve
> > > >
> > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > > From: gorgeous65@msn.com
> > > > To: users@glassfish.dev.java.net
> > > > ; ejb@glassfish.dev.java.net
> > > > ; persistence@glassfish.dev.java.net
> > > >
> > > > Date: Fri, 4 Dec 2009 22:32:26 +0000
> > > > Subject: RE: Persistence unit ref:
> > > >
> > > > Ralph,
> > > >
> > > > My application is very big.
> > > >
> > > > Do you have spring?
> > > >
> > > > In Marina's example
> > > >
> > > > This is what the JavaEE spec gives as an example:
> > > > *
> > > >
> > > > persistence/InventoryAppDB
> > > > *
> > > >
> > > > InventoryManagement
> > > >
> > > > *
> > > > *
> > > >
> > > >
> > > > I do not have what is bold in my per.xml
> > > >
> > > > Shouldn't it be why I am getting an error? The web.xml can not
> > > > resolve -
> > > >
> > > > Deploying application in domain failed; Could not resolve a
> > > > persistence unit corresponding to the persistence-unit-ref-name
> > > > [persistence/ENTERPRISE-ejbPU] in scope of the module called
> > > > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > > > Please verify your application.
> > > >
> > > > IT's complaining about the per-unit-ref-name which is not in my
> > per.xml.
> > > >
> > > >
> > > > How do I put that in? I tried to add it in but has been getting error.
> > > > Could you add it in and send it over?
> > > >
> > > > I will try and see if I can send over a test app.
> > > >
> > > > Thanking you.
> > > >
> > > > eve
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > > From: ralph.winzinger@senacor.de
> > > > To: users@glassfish.dev.java.net
> > > > Date: Fri, 4 Dec 2009 23:00:35 +0100
> > > > Subject: Re: Persistence unit ref:
> > > >
> > > > well, I tried various constellations to test whether your error will
> > > > show up (renaming persistence.xml, changing the value
> > > > in
(web.xml), changing
> > > > name=...> (persistence.xml)). But the error only occurred when the
> > > > unit-names in persistence.xml and web.xml did not match.
> > > >
> > > > If your project is some kind of test-project, you might send your
> > > > WAR (if it is not too big of course) - I will try to throw it at my
> > > > container ...
> > > >
> > > >
> > > > Am 04.12.2009 um 22:51 schrieb Eve Pokua:
> > > >
> > > > Ralph,
> > > >
> > > > I have recreated my persistence.xml.
> > > >
> > > > Please, note that I am using netbeans 6.7 to create my
> > > > persistence.xml.
> > > >
> > > > Here is the new file-
> > > >
> > > >
> > > >
> > > > 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/persistencehttp://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
> > > >
> > > >
> > > >
oracle.toplink.essentials.PersistenceProvider > > > > jdbc_/EnterpriseDB2
> > > >
> > > >
> > > > value="create-tables"/>
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > My problem comes when I have to
> > > >
> > > > this to my web.xml-
> > > >
> > > >
> > > >
> > > >
> >
persistence/ENTERPRISE-ejbPU > > > >
> > > >
ENTERPRISE-ejbPU > > > >
> > > >
> > > > when I comment it out of my web.xml, my application deploys.
> > > >
> > > > Ralph, could you please, double check your per.xml to see if you
> > > > have the
> > > >
> > > > persistence-unit-ref>
> > > >
> > > >
> > > > tag and also please, do reproduce my error by changing the per.
> > > > name.
> > > >
> > > > I'm sure you will reproduce the error.
> > > >
> > > >
> > > > This is what the JavaEE spec gives as an example:
> > > >
> > > >
> > > > persistence/InventoryAppDB
> > > >
> > > >
> > > > InventoryManagement
> > > >
> > > >
> > > >
> > > > Mar. I am using netbeans to create the per.xml.
> > > >
> > > >
> > > >
> > > > Thanking you for all your help.
> > > >
> > > > eve
> > > >
> > > >
> > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > >
> > > > From: ralph.winzinger@senacor.de
> > > > To: users@glassfish.dev.java.net
> > > >
> > > > Date: Fri, 4 Dec 2009 22:05:39 +0100
> > > > Subject: Re: Persistence unit ref:
> > > >
> > > > Eve,
> > > >
> > > > the only way, how I can reproduce your error is to change the
> > > > value of
to something not matching the
> > > > name in the persistence.xml. But thatseems to be ok in the
> > > > snippets you sent. So I would go on and look for old files that
> > > > might be still around - maybe there's another persistence.xml
> > > > that is read by accident. Look inside the WAR and make sure that
> > > > everything is as expected.
> > > >
> > > > Bye,
> > > > Ralph
> > > >
> > > >
> > > >
> > > > Am 04.12.2009 um 19:48 schrieb Eve Pokua:
> > > >
> > > > Ralph,
> > > >
> > > > Here is my per.xml
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > 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">
> > > >
> > > > transaction-type="JTA">
> > > > jdbc_/EnterpriseDB2
> > > > false
> > > >
> > > > > > > >
> > > >
> > > >
> > > >
> > > > regards
> > > >
> > > > eve
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > > From: ralph.winzinger@senacor.de
> > > >
> > > > To: users@glassfish.dev.java.net
> > > >
> > > > Date: Fri, 4 Dec 2009 15:20:16 +0100
> > > > Subject: Re: Persistence unit ref:
> > > >
> > > > hi,
> > > >
> > > > what does your persistence.xml look like?
> > > >
> > > >
> > > > Am 04.12.2009 um 13:50 schrieb Eve Pokua:
> > > >
> > > > Ralph,
> > > >
> > > > Thank you for your reply.
> > > >
> > > > I did as you said.
> > > >
> > > > i added the following to my web.xml
> > > >
> > > >
> > > >
> > > >
> > > >
> >
persistence/ENTERPRISE-ejbPU > > > >
ENTERPRISE-ejbPU > > > >
> > > >
> > > >
> > > >
> > > > in my applicationContext.xml
> > > >
> > > > > > > >
> > class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"
> > > > >
> > > >
> > > >
> > > > > > > > value="persistence/ENTERPRISE-ejbPU"/>
> > > >

> > > >
> > > >
> > > >
> > > >

> > > >
> > > >

> > > >
> > > >
> > > >
> > > > But I still get the error -
> > > >
> > > >
> > [#|2009-12-04T12:34:05.536+0000|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=20;_ThreadName=Thread-48;_RequestID=3fb89f4d-e8ef-403f-a422-9e5442bf9b3a;|Exception
> > > > occured in J2EEC Phase
> > > > com.sun.enterprise.deployment.backend.IASDeploymentException:
> > > > Could not resolve a persistence unit corresponding to
> > > > the persistence-unit-ref-name
> > > > [persistence/ENTERPRISE-ejbPU] in scope of the module
> > > > called
> > > > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > > > Please verify your application.
> > > > at
> > > >
> > com.sun.enterprise.deployment.BundleDescriptor.findReferencedPUsViaPURefs(BundleDescriptor.java:711)
> > > > at
> > > >
> > com.sun.enterprise.deployment.WebBundleDescriptor.findReferencedPUs(WebBundleDescriptor.java:727)
> > > > at
> > > >
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.getAllPersistenceUnitDescriptors(PersistenceProcessor.java:214)
> > > > at
> > > >
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.processApplication(PersistenceProcessor.java:175)
> > > > at
> > > >
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processApplication(DeploymentEventListenerImpl.java:211)
> > > > at
> > > >
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processEvent(DeploymentEventListenerImpl.java:172)
> > > > at
> > > >
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.notifyDeploymentEvent(DeploymentEventListenerImpl.java:122)
> > > > at
> > > >
> > com.sun.enterprise.deployment.backend.DeploymentEventManager.notifyDeploymentEvent(DeploymentEventManager.java:79)
> > > > at
> > > >
> > com.sun.enterprise.deployment.backend.AppDeployer.postDeploy(AppDeployer.java:401)
> > > > at
> > > >
> > com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:260)
> > > > at
> > > >
> > com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
> > > > at
> > > >
> > com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
> > > > at
> > > >
> > com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
> > > > at
> > > >
> > com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
> > > > at
> > > >
> > com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
> > > > at
> > > >
> > com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
> > > > at
> > > >
> > com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
> > > > at
> > > >
> > com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
> > > > |#]
> > > >
> > [#|2009-12-04T12:37:03.074+0000|INFO|sun-appserver2.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;;|Initializing
> > > > Sun's JavaServer Faces implementation (1.2_04-b22-p05)
> > > > for context ''|#]
> > > >
> > [#|2009-12-04T12:37:58.729+0000|INFO|sun-appserver2.1|com.sun.jbi.framework|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;|JBIFW0012:
> > > > JBI framework startup complete.|#]
> > > >
> > > >
> > > > sO MY QUESTION AGAIN IS - WHERE CAN I FIND A REFERENCE
> > > > TO MY persistence-unit-ref-name????
> > > >
> > > > I'VE CHECKED MY domain.xml but no details.
> > > >
> > > > thanks
> > > >
> > > > eve
> > > >
> > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > > From: ralph.winzinger@senacor.com
> > > >
> > > > To: users@glassfish.dev.java.net
> > > >
> > > > Date: Fri, 4 Dec 2009 00:42:46 +0100
> > > > Subject: Re: Persistence unit ref:
> > > >
> > > > Hi,
> > > >
> > > > I got this working just about an ago ...
> > > >
> > > > web.xml:
> > > >
> > > >
> > > >
> > > >
persistence/hd > > > >
hd > > > >
> > > >
> > > > application-context.xml:
> > > >
> > > > > > class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"
> > >
> > > >
> > > >
> > > >
> > > >

> > > >
> > > >
> > > >
> > > >

> > > >
> > > >

> > > >
> > > >
> > > > Hope this helps ...
> > > >
> > > > Bye,
> > > > Ralph
> > > >
> > > >
> > > > Kurz gehalten, da vom iPhone gesendet
> > > >
> > > > Am 04.12.2009 um 00:16 schrieb "Eve Pokua"
> > > > >:
> > > >
> > > > Hello,
> > > >
> > > > Below is my persistence.xml-
> > > >
> > > >
> > > >
> > > > 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">
> > > >
> > > > transaction-type="JTA">
> > > >
> > > > jdbc_/EnterpriseDB2
> > > >
> > > > false
> > > >
> > > > > > > >
> > > >
> > > >
> > > >
> > > > How do I find the name of my -persistence-unit-ref-name?
> > > >
> > > > I use the following and I get deployment error
> > > >
> > > >
ENTERPRISE-ejbPU > > > >
> > > > Deploying application in domain failed; Could not
> > > > resolve a persistence unit corresponding to the
> > > > persistence-unit-ref-name [ENTERPRISE-ejbPU] in
> > > > scope of the module called
> > > > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > > > Please verify your application.
> > > >
> > > > I need to specify it within my web.xml in-order to
> > > > use @Persistence in my spring JEE
> > > > application.
> > > >
> > > > Thanking you.
> > > >
> > > > eve
> > > >
> > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > > Use Hotmail to send and receive mail from your
> > > > different email accounts. Find out how.
> > > >
> > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > > New! Receive and respond to mail from other email
> > > > accounts from within Hotmail Find out how.
> > > >
> > > >
> > > >
> > > > Ralph Winzinger
> > > > Principal Architect
> > > > ______________________________
> > > > Senacor Technologies AG
> > > > Vordere Cramergasse 11
> > > > 90478 Nürnberg
> > > >
> > > > Telefon: +49 (0)911 4244-202
> > > > Telefax: +49 (0)911 4244-100
> > > >
> > > > ralph.winzinger@senacor.com
> > > > www.senacor.com
> > > >
> > > > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> > > > Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> > > > Vorstand: Matthias Tomann, Marcus Purzer -
> > > > Aufsichtsratsvorsitzender: Mathias J. Lindermeir
> > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > > Add other email accounts to Hotmail in 3 easy steps. Find
> > > > out how.
> > > >
> > > >
> > > > Ralph Winzinger
> > > > Principal Architect
> > > > ______________________________
> > > > Senacor Technologies AG
> > > > Vordere Cramergasse 11
> > > > 90478 Nürnberg
> > > >
> > > > Telefon: +49 (0)911 4244-202
> > > > Telefax: +49 (0)911 4244-100
> > > >
> > > > ralph.winzinger@senacor.com
> > > > www.senacor.com
> > > >
> > > > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> > > > Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> > > > Vorstand: Matthias Tomann, Marcus Purzer -
> > > > Aufsichtsratsvorsitzender: Mathias J. Lindermeir
> > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > > View your other email accounts from your Hotmail inbox. Add them
> > > > now.
> > > >
> > > >
> > > > Ralph Winzinger
> > > > Principal Architect
> > > > ______________________________
> > > > Senacor Technologies AG
> > > > Vordere Cramergasse 11
> > > > 90478 Nürnberg
> > > >
> > > > Telefon: +49 (0)911 4244-202
> > > > Telefax: +49 (0)911 4244-100
> > > >
> > > > ralph.winzinger@senacor.com
> > > > www.senacor.com
> > > >
> > > > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> > > > Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> > > > Vorstand: Matthias Tomann, Marcus Purzer -
> > > > Aufsichtsratsvorsitzender: Mathias J. Lindermeir
> > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > > View your other email accounts from your Hotmail inbox. Add them
> > > > now.
> > > >
> > ------------------------------------------------------------------------
> > > > Have more than one Hotmail account? Link them together to easily
> > > > access
> > > > both.
> >
---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> > > >
> > > > For additional commands, e-mail: users-help@glassfish.dev.java.net
> > > >
> > > >
> > > >
> > > > Ralph Winzinger
> > > > Principal Architect
> > > > ______________________________
> > > > Senacor Technologies AG
> > > > Vordere Cramergasse 11
> > > > 90478 Nürnberg
> > > >
> > > > Telefon: +49 (0)911 4244-202
> > > > Telefax: +49 (0)911 4244-100
> > > >
> > > > ralph.winzinger@senacor.com
> > > > www.senacor.com
> > > >
> > > > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg - Amtsgericht
> > > > Nürnberg - Reg.-Nr.: HRB 23098
> > > > Vorstand: Matthias Tomann, Marcus Purzer - Aufsichtsratsvorsitzender:
> > > > Mathias J. Lindermeir
> > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > > Add other email accounts to Hotmail in 3 easy steps. Find out how.
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> > > For additional commands, e-mail: users-help@glassfish.dev.java.net
> > >
> >
> > ------------------------------------------------------------------------
> > Add other email accounts to Hotmail in 3 easy steps. Find out how.
> >
> > ------------------------------------------------------------------------
> > Have more than one Hotmail account? Link them together to easily access
> > both.
> > ------------------------------------------------------------------------
> > Have more than one Hotmail account? Link them together to easily access
> > both. < http://clk.atdmt.com/UKM/go/186394591/direct/01/>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

_________________________________________________________________
Use Hotmail to send and receive mail from your different email accounts
http://clk.atdmt.com/UKM/go/186394592/direct/01/
[att1.html]

Marina Vatkina

Does it work if you use persistence-context-ref?

Eve Pokua wrote:
> marina,
>
> There is no problem with jdbc
>
> reference as tables are created and application is deployed if
> I take away this from my web.xml -
>
>
>
>
persistence/TestingUN >
TestingUN >
>
> As long as the above is in my web.xml, I have the error.
>
> eve
>
>
>
> > Date: Fri, 4 Dec 2009 15:56:34 -0800
> > From: Marina.Vatkina@Sun.COM
> > To: users@glassfish.dev.java.net
> > Subject: Re: FW: Persistence unit ref:
> >
> > Check if the PU had been processed correctly - are you sure there is
> jdbc_/ not
> > jdbc/ in the datasource name?
> >
> > -marina
> >
> > Eve Pokua wrote:
> > > Marina, Ralph,
> > >
> > > I am reading this thread.
> > >
> > > http://forums.java.net/jive/message.jspa?messageID=207860
> > >
> > > It looks like the web is not seeing my persistence in my ear.
> > >
> > > But I also tested this in just a web application and placed
> > > the per.xml in the web dir then in the web/web-inf
> > >
> > > still same error-
> > >
> > > Thanking you.
> > >
> > > eve
> > >
> ------------------------------------------------------------------------
> > > From: gorgeous65@msn.com
> > > To: users@glassfish.dev.java.net
> > > Date: Fri, 4 Dec 2009 23:28:54 +0000
> > > Subject: FW: Persistence unit ref:
> > >
> > >
> > >
> > > Here,
> > >
> > > Deploying application in domain failed; Deployment Error -- Could not
> > > resolve a persistence unit corresponding to the
> > > persistence-unit-ref-name [persistence/TestingUN2] in scope of the
> > > module called [C:\jee\WebApplication2\build\web]. Please verify your
> > > application.
> > >
> > >
> > >
> > >
> ------------------------------------------------------------------------
> > > From: gorgeous65@msn.com
> > > To: users@glassfish.dev.java.net
> > > Subject: RE: Persistence unit ref:
> > > Date: Fri, 4 Dec 2009 23:26:23 +0000
> > >
> > > Marina,
> > >
> > > I am using Gv 2. gluster profile. I really don't understand why
> > > I am having this problem. I have even created another test
> > > war application. but still similar error.
> > >
> > > Thanking you.
> > >
> > > eve
> > >
> > > > Date: Fri, 4 Dec 2009 15:23:41 -0800
> > > > From: Marina.Vatkina@Sun.COM
> > > > To: users@glassfish.dev.java.net
> > > > Subject: Re: Persistence unit ref:
> > > >
> > > > Eve,
> > > >
> > > > Are you deploying it to GF v2.x or v3? In v3 you need to package
> > > shared parts
> > > > into the ear's lib/myjar.jar to be available to all components.
> > > >
> > > > Regards,
> > > > -marina
> > > >
> > > > Eve Pokua wrote:
> > > > > Ralph,
> > > > >
> > > > > My application is a full enterprise application.
> > > > > No the persistence.xml is in my ejb
> > > > > mobule section where all my entity files are.
> > > > >
> > > > > eve
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > From: ralph.winzinger@senacor.de
> > > > > To: users@glassfish.dev.java.net
> > > > > Date: Sat, 5 Dec 2009 00:01:29 +0100
> > > > > Subject: Re: Persistence unit ref:
> > > > >
> > > > > but persistence.xml is not contained in your war, is it?
> > > > >
> > > > >
> > > > > Am 04.12.2009 um 23:53 schrieb Eve Pokua:
> > > > >
> > > > > Ralph see attached
> > > > >
> > > > > Hope that helps. This testing is also giving error.
> > > > >
> > > > > Thanks
> > > > >
> > > > > eve
> > > > >
> > > > >
> > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > From: gorgeous65@msn.com
> > > > > To: users@glassfish.dev.java.net
> > > > > ; ejb@glassfish.dev.java.net
> > > > > ;
> persistence@glassfish.dev.java.net
> > > > >
> > > > > Date: Fri, 4 Dec 2009 22:32:26 +0000
> > > > > Subject: RE: Persistence unit ref:
> > > > >
> > > > > Ralph,
> > > > >
> > > > > My application is very big.
> > > > >
> > > > > Do you have spring?
> > > > >
> > > > > In Marina's example
> > > > >
> > > > > This is what the JavaEE spec gives as an example:
> > > > > *
> > > > >
> > > > > persistence/InventoryAppDB
> > > > > *
> > > > >
> > > > > InventoryManagement
> > > > >
> > > > > *
> > > > > *
> > > > >
> > > > >
> > > > > I do not have what is bold in my per.xml
> > > > >
> > > > > Shouldn't it be why I am getting an error? The web.xml can not
> > > > > resolve -
> > > > >
> > > > > Deploying application in domain failed; Could not resolve a
> > > > > persistence unit corresponding to the persistence-unit-ref-name
> > > > > [persistence/ENTERPRISE-ejbPU] in scope of the module called
> > > > > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > > > > Please verify your application.
> > > > >
> > > > > IT's complaining about the per-unit-ref-name which is not in my
> > > per.xml.
> > > > >
> > > > >
> > > > > How do I put that in? I tried to add it in but has been getting
> error.
> > > > > Could you add it in and send it over?
> > > > >
> > > > > I will try and see if I can send over a test app.
> > > > >
> > > > > Thanking you.
> > > > >
> > > > > eve
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > From: ralph.winzinger@senacor.de
>
> > > > > To: users@glassfish.dev.java.net
>
> > > > > Date: Fri, 4 Dec 2009 23:00:35 +0100
> > > > > Subject: Re: Persistence unit ref:
> > > > >
> > > > > well, I tried various constellations to test whether your error
> will
> > > > > show up (renaming persistence.xml, changing the value
> > > > > in
(web.xml), changing
>
> > > > > name=...> (persistence.xml)). But the error only occurred when the
> > > > > unit-names in persistence.xml and web.xml did not match.
> > > > >
> > > > > If your project is some kind of test-project, you might send your
> > > > > WAR (if it is not too big of course) - I will try to throw it at my
> > > > > container ...
> > > > >
> > > > >
> > > > > Am 04.12.2009 um 22:51 schrieb Eve Pokua:
> > > > >
> > > > > Ralph,
> > > > >
> > > > > I have recreated my persistence.xml.
> > > > >
> > > > > Please, note that I am using netbeans 6.7 to create my
> > > > > persistence.xml.
> > > > >
> > > > > Here is the new file-
> > > > >
> > > > >
> > > > >
> > > > > 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/persistencehttp://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
> > > > >
> > > > >
> > > > >
oracle.toplink.essentials.PersistenceProvider > > > > > jdbc_/EnterpriseDB2
> > > > >
> > > > >
> > > > > value="create-tables"/>
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > My problem comes when I have to
> > > > >
> > > > > this to my web.xml-
> > > > >
> > > > >
> > > > >
> > > > >
> > >
>
persistence/ENTERPRISE-ejbPU > > > > >
> > > > >
ENTERPRISE-ejbPU > > > > >
> > > > >
> > > > > when I comment it out of my web.xml, my application deploys.
> > > > >
> > > > > Ralph, could you please, double check your per.xml to see if you
> > > > > have the
> > > > >
> > > > > persistence-unit-ref>
> > > > >
> > > > >
> > > > > tag and also please, do reproduce my error by changing the per.
> > > > > name.
> > > > >
> > > > > I'm sure you will reproduce the error.
> > > > >
> > > > >
> > > > > This is what the JavaEE spec gives as an example:
> > > > >
> > > > >
> > > > > persistence/InventoryAppDB
> > > > >
> > > > >
> > > > > InventoryManagement
> > > > >
> > > > >
> > > > >
> > > > > Mar. I am using netbeans to create the per.xml.
> > > > >
> > > > >
> > > > >
> > > > > Thanking you for all your help.
> > > > >
> > > > > eve
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > >
> > > > > From: ralph.winzinger@senacor.de
>
> > > > > To: users@glassfish.dev.java.net
> > > > >
> > > > > Date: Fri, 4 Dec 2009 22:05:39 +0100
> > > > > Subject: Re: Persistence unit ref:
> > > > >
> > > > > Eve,
> > > > >
> > > > > the only way, how I can reproduce your error is to change the
> > > > > value of
to something not matching the
> > > > > name in the persistence.xml. But thatseems to be ok in the
> > > > > snippets you sent. So I would go on and look for old files that
> > > > > might be still around - maybe there's another persistence.xml
> > > > > that is read by accident. Look inside the WAR and make sure that
> > > > > everything is as expected.
> > > > >
> > > > > Bye,
> > > > > Ralph
> > > > >
> > > > >
> > > > >
> > > > > Am 04.12.2009 um 19:48 schrieb Eve Pokua:
> > > > >
> > > > > Ralph,
> > > > >
> > > > > Here is my per.xml
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > 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">
> > > > >
> > > > > transaction-type="JTA">
> > > > > jdbc_/EnterpriseDB2
> > > > > false
> > > > >
> > > > > > > > > >
> > > > >
> > > > >
> > > > >
> > > > > regards
> > > > >
> > > > > eve
> > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > From: ralph.winzinger@senacor.de
> > > > >
> > > > > To: users@glassfish.dev.java.net
> > > > >
> > > > > Date: Fri, 4 Dec 2009 15:20:16 +0100
> > > > > Subject: Re: Persistence unit ref:
> > > > >
> > > > > hi,
> > > > >
> > > > > what does your persistence.xml look like?
> > > > >
> > > > >
> > > > > Am 04.12.2009 um 13:50 schrieb Eve Pokua:
> > > > >
> > > > > Ralph,
> > > > >
> > > > > Thank you for your reply.
> > > > >
> > > > > I did as you said.
> > > > >
> > > > > i added the following to my web.xml
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > >
>
persistence/ENTERPRISE-ejbPU > > > > >
ENTERPRISE-ejbPU > > > > >
> > > > >
> > > > >
> > > > >
> > > > > in my applicationContext.xml
> > > > >
> > > > > > > > > >
> > >
> class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"
> > > > > >
> > > > >
> > > > >
> > > > > > > > > > value="persistence/ENTERPRISE-ejbPU"/>
> > > > >

> > > > >
> > > > >
> > > > >
> > > > >

> > > > >
> > > > >

> > > > >
> > > > >
> > > > >
> > > > > But I still get the error -
> > > > >
> > > > >
> > >
> [#|2009-12-04T12:34:05.536+0000|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=20;_ThreadName=Thread-48;_RequestID=3fb89f4d-e8ef-403f-a422-9e5442bf9b3a;|Exception
> > > > > occured in J2EEC Phase
> > > > > com.sun.enterprise.deployment.backend.IASDeploymentException:
> > > > > Could not resolve a persistence unit corresponding to
> > > > > the persistence-unit-ref-name
> > > > > [persistence/ENTERPRISE-ejbPU] in scope of the module
> > > > > called
> > > > > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > > > > Please verify your application.
> > > > > at
> > > > >
> > >
> com.sun.enterprise.deployment.BundleDescriptor.findReferencedPUsViaPURefs(BundleDescriptor.java:711)
> > > > > at
> > > > >
> > >
> com.sun.enterprise.deployment.WebBundleDescriptor.findReferencedPUs(WebBundleDescriptor.java:727)
> > > > > at
> > > > >
> > >
> com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.getAllPersistenceUnitDescriptors(PersistenceProcessor.java:214)
> > > > > at
> > > > >
> > >
> com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.processApplication(PersistenceProcessor.java:175)
> > > > > at
> > > > >
> > >
> com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processApplication(DeploymentEventListenerImpl.java:211)
> > > > > at
> > > > >
> > >
> com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processEvent(DeploymentEventListenerImpl.java:172)
> > > > > at
> > > > >
> > >
> com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.notifyDeploymentEvent(DeploymentEventListenerImpl.java:122)
> > > > > at
> > > > >
> > >
> com.sun.enterprise.deployment.backend.DeploymentEventManager.notifyDeploymentEvent(DeploymentEventManager.java:79)
> > > > > at
> > > > >
> > >
> com.sun.enterprise.deployment.backend.AppDeployer.postDeploy(AppDeployer.java:401)
> > > > > at
> > > > >
> > >
> com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:260)
> > > > > at
> > > > >
> > >
> com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
> > > > > at
> > > > >
> > >
> com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
> > > > > at
> > > > >
> > >
> com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
> > > > > at
> > > > >
> > >
> com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
> > > > > at
> > > > >
> > >
> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
> > > > > at
> > > > >
> > >
> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
> > > > > at
> > > > >
> > >
> com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
> > > > > at
> > > > >
> > >
> com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
> > > > > |#]
> > > > >
> > >
> [#|2009-12-04T12:37:03.074+0000|INFO|sun-appserver2.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;;|Initializing
> > > > > Sun's JavaServer Faces implementation (1.2_04-b22-p05)
> > > > > for context ''|#]
> > > > >
> > >
> [#|2009-12-04T12:37:58.729+0000|INFO|sun-appserver2.1|com.sun.jbi.framework|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;|JBIFW0012:
> > > > > JBI framework startup complete.|#]
> > > > >
> > > > >
> > > > > sO MY QUESTION AGAIN IS - WHERE CAN I FIND A REFERENCE
> > > > > TO MY persistence-unit-ref-name????
> > > > >
> > > > > I'VE CHECKED MY domain.xml but no details.
> > > > >
> > > > > thanks
> > > > >
> > > > > eve
> > > > >
> > > > >
> > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > From: ralph.winzinger@senacor.com
> > > > >
> > > > > To: users@glassfish.dev.java.net
> > > > >
> > > > > Date: Fri, 4 Dec 2009 00:42:46 +0100
> > > > > Subject: Re: Persistence unit ref:
> > > > >
> > > > > Hi,
> > > > >
> > > > > I got this working just about an ago ...
> > > > >
> > > > > web.xml:
> > > > >
> > > > >
> > > > >
> > > > >
>
persistence/hd > > > > >
hd > > > > >
> > > > >
> > > > > application-context.xml:
> > > > >
> > > > > > > >
> class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"
>
> > > >
> > > > >
> > > > >
> > > > >
> > > > >

> > > > >
> > > > >
> > > > >
> > > > >

> > > > >
> > > > >

> > > > >
> > > > >
> > > > > Hope this helps ...
> > > > >
> > > > > Bye,
> > > > > Ralph
> > > > >
> > > > >
> > > > > Kurz gehalten, da vom iPhone gesendet
> > > > >
> > > > > Am 04.12.2009 um 00:16 schrieb "Eve Pokua"
> > > > > >:
> > > > >
> > > > > Hello,
> > > > >
> > > > > Below is my persistence.xml-
> > > > >
> > > > >
> > > > >
> > > > > 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">
> > > > >
> > > > > transaction-type="JTA">
> > > > >
> > > > > jdbc_/EnterpriseDB2
> > > > >
> > > > > false
> > > > >
> > > > > > > > > >
> > > > >
> > > > >
> > > > >
> > > > > How do I find the name of my -persistence-unit-ref-name?
> > > > >
> > > > > I use the following and I get deployment error
> > > > >
> > > > >
>
ENTERPRISE-ejbPU > > > > >
> > > > > Deploying application in domain failed; Could not
> > > > > resolve a persistence unit corresponding to the
> > > > > persistence-unit-ref-name [ENTERPRISE-ejbPU] in
> > > > > scope of the module called
> > > > > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > > > > Please verify your application.
> > > > >
> > > > > I need to specify it within my web.xml in-order to
> > > > > use @Persistence in my spring JEE
> > > > > application.
> > > > >
> > > > > Thanking you.
> > > > >
> > > > > eve
> > > > >
> > > > >
> > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > Use Hotmail to send and receive mail from your
> > > > > different email accounts. Find out how.
> > > > >
> > > > >
> > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > New! Receive and respond to mail from other email
> > > > > accounts from within Hotmail Find out how.
> > > > >
> > > > >
> > > > >
> > > > > Ralph Winzinger
> > > > > Principal Architect
> > > > > ______________________________
> > > > > Senacor Technologies AG
> > > > > Vordere Cramergasse 11
> > > > > 90478 Nürnberg
> > > > >
> > > > > Telefon: +49 (0)911 4244-202
> > > > > Telefax: +49 (0)911 4244-100
> > > > >
> > > > > ralph.winzinger@senacor.com
> > > > > www.senacor.com
> > > > >
> > > > > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> > > > > Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> > > > > Vorstand: Matthias Tomann, Marcus Purzer -
> > > > > Aufsichtsratsvorsitzender: Mathias J. Lindermeir
> > > > >
> > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > Add other email accounts to Hotmail in 3 easy steps. Find
> > > > > out how.
> > > > >
> > > > >
> > > > > Ralph Winzinger
> > > > > Principal Architect
> > > > > ______________________________
> > > > > Senacor Technologies AG
> > > > > Vordere Cramergasse 11
> > > > > 90478 Nürnberg
> > > > >
> > > > > Telefon: +49 (0)911 4244-202
> > > > > Telefax: +49 (0)911 4244-100
> > > > >
> > > > > ralph.winzinger@senacor.com
> > > > > www.senacor.com
> > > > >
> > > > > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> > > > > Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> > > > > Vorstand: Matthias Tomann, Marcus Purzer -
> > > > > Aufsichtsratsvorsitzender: Mathias J. Lindermeir
> > > > >
> > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > View your other email accounts from your Hotmail inbox. Add them
> > > > > now.
> > > > >
> > > > >
> > > > > Ralph Winzinger
> > > > > Principal Architect
> > > > > ______________________________
> > > > > Senacor Technologies AG
> > > > > Vordere Cramergasse 11
> > > > > 90478 Nürnberg
> > > > >
> > > > > Telefon: +49 (0)911 4244-202
> > > > > Telefax: +49 (0)911 4244-100
> > > > >
> > > > > ralph.winzinger@senacor.com
> > > > > www.senacor.com
> > > > >
> > > > > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> > > > > Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> > > > > Vorstand: Matthias Tomann, Marcus Purzer -
> > > > > Aufsichtsratsvorsitzender: Mathias J. Lindermeir
> > > > >
> > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > View your other email accounts from your Hotmail inbox. Add them
> > > > > now.
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > Have more than one Hotmail account? Link them together to easily
> > > > > access
> > > > > both.
> > >
>
---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> > > > >
> > > > > For additional commands, e-mail: users-help@glassfish.dev.java.net
> > > > >
> > > > >
> > > > >
> > > > > Ralph Winzinger
> > > > > Principal Architect
> > > > > ______________________________
> > > > > Senacor Technologies AG
> > > > > Vordere Cramergasse 11
> > > > > 90478 Nürnberg
> > > > >
> > > > > Telefon: +49 (0)911 4244-202
> > > > > Telefax: +49 (0)911 4244-100
> > > > >
> > > > > ralph.winzinger@senacor.com
> > > > > www.senacor.com
> > > > >
> > > > > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> Amtsgericht
> > > > > Nürnberg - Reg.-Nr.: HRB 23098
> > > > > Vorstand: Matthias Tomann, Marcus Purzer -
> Aufsichtsratsvorsitzender:
> > > > > Mathias J. Lindermeir
> > > > >
> > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > Add other email accounts to Hotmail in 3 easy steps. Find out how.
> > > > >
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> > > > For additional commands, e-mail: users-help@glassfish.dev.java.net
> > > >
> > >
> > >
> ------------------------------------------------------------------------
> > > Add other email accounts to Hotmail in 3 easy steps. Find out how.
> > >
> > >
> ------------------------------------------------------------------------
> > > Have more than one Hotmail account? Link them together to easily
> access
> > > both.
> > >
> ------------------------------------------------------------------------
> > > Have more than one Hotmail account? Link them together to easily
> access
> > > both. < http://clk.atdmt.com/UKM/go/186394591/direct/01/>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> > For additional commands, e-mail: users-help@glassfish.dev.java.net
> >
>
> ------------------------------------------------------------------------
> Use Hotmail to send and receive mail from your different email accounts.
> Find out how.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Eve Pokua

Ralph see attached

Hope that helps. This testing is also giving error.

Thanks

eve

From: gorgeous65@msn.com
To: users@glassfish.dev.java.net; ejb@glassfish.dev.java.net; persistence@glassfish.dev.java.net
Date: Fri, 4 Dec 2009 22:32:26 +0000
Subject: RE: Persistence unit ref:

Ralph,

My application is very big.

Do you have spring?

In Marina's example

This is what the JavaEE spec gives as an example:

persistence/InventoryAppDB
InventoryManagement

I do not have what is bold in my per.xml

Shouldn't it be why I am getting an error? The web.xml can not
resolve -

Deploying application in domain failed; Could not resolve a persistence unit corresponding to the persistence-unit-ref-name [persistence/ENTERPRISE-ejbPU] in scope of the module called [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war]. Please verify your application.

IT's complaining about the per-unit-ref-name which is not in my per.xml.

How do I put that in? I tried to add it in but has been getting error.
Could you add it in and send it over?

I will try and see if I can send over a test app.

Thanking you.

eve

From: ralph.winzinger@senacor.de
To: users@glassfish.dev.java.net
Date: Fri, 4 Dec 2009 23:00:35 +0100
Subject: Re: Persistence unit ref:

well, I tried various constellations to test whether your error will show up (renaming persistence.xml, changing the value in
(web.xml), changing
(persistence.xml)). But the error only occurred when the unit-names in persistence.xml and web.xml did not match.

If your project is some kind of test-project, you might send your WAR (if it is not too big of course) - I will try to throw it at my container ...

Am 04.12.2009 um 22:51 schrieb Eve Pokua:

Ralph,

I have recreated my persistence.xml.

Please, note that I am using netbeans 6.7 to create my persistence.xml.

Here is the new file-

oracle.toplink.essentials.PersistenceProvider jdbc_/EnterpriseDB2

My problem comes when I have to

this to my web.xml-

persistence/ENTERPRISE-ejbPU ENTERPRISE-ejbPU

when I comment it out of my web.xml, my application deploys.

Ralph, could you please, double check your per.xml to see if you have the

persistence-unit-ref>

tag and also please, do reproduce my error by changing the per. name.

I'm sure you will reproduce the error.

This is what the JavaEE spec gives as an example:

persistence/InventoryAppDB
InventoryManagement

Mar. I am using netbeans to create the per.xml.

Thanking you for all your help.

eve

From: ralph.winzinger@senacor.de
To: users@glassfish.dev.java.net
Date: Fri, 4 Dec 2009 22:05:39 +0100
Subject: Re: Persistence unit ref:

Eve,

the only way, how I can reproduce your error is to change the value of
to something not matching the name in the persistence.xml. But thatseems to be ok in the snippets you sent. So I would go on and look for old files that might be still around - maybe there's another persistence.xml that is read by accident. Look inside the WAR and make sure that everything is as expected.

Bye,
Ralph

Am 04.12.2009 um 19:48 schrieb Eve Pokua:

Ralph,

Here is my per.xml

jdbc_/EnterpriseDB2
false

regards

eve

From: ralph.winzinger@senacor.de
To: users@glassfish.dev.java.net
Date: Fri, 4 Dec 2009 15:20:16 +0100
Subject: Re: Persistence unit ref:

hi,

what does your persistence.xml look like?

Am 04.12.2009 um 13:50 schrieb Eve Pokua:

Ralph,

Thank you for your reply.

I did as you said.

i added the following to my web.xml

persistence/ENTERPRISE-ejbPU ENTERPRISE-ejbPU

in my applicationContext.xml




But I still get the error -

[#|2009-12-04T12:34:05.536+0000|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=20;_ThreadName=Thread-48;_RequestID=3fb89f4d-e8ef-403f-a422-9e5442bf9b3a;|Exception occured in J2EEC Phase
com.sun.enterprise.deployment.backend.IASDeploymentException: Could not resolve a persistence unit corresponding to the persistence-unit-ref-name [persistence/ENTERPRISE-ejbPU] in scope of the module called [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war]. Please verify your application.
at com.sun.enterprise.deployment.BundleDescriptor.findReferencedPUsViaPURefs(BundleDescriptor.java:711)
at com.sun.enterprise.deployment.WebBundleDescriptor.findReferencedPUs(WebBundleDescriptor.java:727)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.getAllPersistenceUnitDescriptors(PersistenceProcessor.java:214)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.processApplication(PersistenceProcessor.java:175)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processApplication(DeploymentEventListenerImpl.java:211)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processEvent(DeploymentEventListenerImpl.java:172)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.notifyDeploymentEvent(DeploymentEventListenerImpl.java:122)
at com.sun.enterprise.deployment.backend.DeploymentEventManager.notifyDeploymentEvent(DeploymentEventManager.java:79)
at com.sun.enterprise.deployment.backend.AppDeployer.postDeploy(AppDeployer.java:401)
at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:260)
at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
|#]
[#|2009-12-04T12:37:03.074+0000|INFO|sun-appserver2.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;;|Initializing Sun's JavaServer Faces implementation (1.2_04-b22-p05) for context ''|#]
[#|2009-12-04T12:37:58.729+0000|INFO|sun-appserver2.1|com.sun.jbi.framework|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;|JBIFW0012: JBI framework startup complete.|#]

sO MY QUESTION AGAIN IS - WHERE CAN I FIND A REFERENCE
TO MY persistence-unit-ref-name????

I'VE CHECKED MY domain.xml but no details.

thanks

eve

From: ralph.winzinger@senacor.com
To: users@glassfish.dev.java.net
Date: Fri, 4 Dec 2009 00:42:46 +0100
Subject: Re: Persistence unit ref:

Hi,

I got this working just about an ago ...

web.xml:

persistence/hd hd

application-context.xml:




Hope this helps ...

Bye,
Ralph

Kurz gehalten, da vom iPhone gesendet

Am 04.12.2009 um 00:16 schrieb "Eve Pokua" :

Hello,

Below is my persistence.xml-

jdbc_/EnterpriseDB2
false

How do I find the name of my -persistence-unit-ref-name?

I use the following and I get deployment error

ENTERPRISE-ejbPU

Deploying application in domain failed; Could not resolve a persistence unit corresponding to the persistence-unit-ref-name [ENTERPRISE-ejbPU] in scope of the module called [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war]. Please verify your application.

I need to specify it within my web.xml in-order to use @Persistence in my spring JEE
application.

Thanking you.

eve

Use Hotmail to send and receive mail from your different email accounts. Find out how.

New! Receive and respond to mail from other email accounts from within Hotmail Find out how.

Ralph Winzinger
Principal Architect
______________________________
Senacor Technologies AG
Vordere Cramergasse 11
90478 Nürnberg

Telefon: +49 (0)911 4244-202
Telefax: +49 (0)911 4244-100

ralph.winzinger@senacor.com
www.senacor.com

Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg - Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
Vorstand: Matthias Tomann, Marcus Purzer - Aufsichtsratsvorsitzender: Mathias J. Lindermeir

Add other email accounts to Hotmail in 3 easy steps. Find out how.

Ralph Winzinger
Principal Architect
______________________________
Senacor Technologies AG
Vordere Cramergasse 11
90478 Nürnberg

Telefon: +49 (0)911 4244-202
Telefax: +49 (0)911 4244-100

ralph.winzinger@senacor.com
www.senacor.com

Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg - Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
Vorstand: Matthias Tomann, Marcus Purzer - Aufsichtsratsvorsitzender: Mathias J. Lindermeir

View your other email accounts from your Hotmail inbox. Add them now.

Ralph Winzinger
Principal Architect
______________________________
Senacor Technologies AG
Vordere Cramergasse 11
90478 Nürnberg

Telefon: +49 (0)911 4244-202
Telefax: +49 (0)911 4244-100

ralph.winzinger@senacor.com
www.senacor.com

Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg - Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
Vorstand: Matthias Tomann, Marcus Purzer - Aufsichtsratsvorsitzender: Mathias J. Lindermeir

View your other email accounts from your Hotmail inbox. Add them now.
_________________________________________________________________
Add your Gmail and Yahoo! Mail email accounts into Hotmail - it's easy
http://clk.atdmt.com/UKM/go/186394592/direct/01/
[att1.html]
[persistence.xml]
[web.xml]
[BaleBean2.java]
[BaleBeanRemote2.java]
[Baleent2.java]
[Testingapp2-war.war]
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Attachment not added (too many attachments): "BaleBean2.java"
Attachment not added (too many attachments): "BaleBeanRemote2.java"
Attachment not added (too many attachments): "Baleent2.java"
Attachment not added (too many attachments): "Testingapp2-war.war"

Ralph Winzinger

but persistence.xml is not contained in your war, is it?

Am 04.12.2009 um 23:53 schrieb Eve Pokua:

> Ralph see attached
>
> Hope that helps. This testing is also giving error.
>
> Thanks
>
> eve
>
>
>
> From: gorgeous65@msn.com
> To: users@glassfish.dev.java.net; ejb@glassfish.dev.java.net; persistence@glassfish.dev.java.net
> Date: Fri, 4 Dec 2009 22:32:26 +0000
> Subject: RE: Persistence unit ref:
>
> Ralph,
>
> My application is very big.
>
> Do you have spring?
>
> In Marina's example
>
> This is what the JavaEE spec gives as an example:
>
>
> persistence/InventoryAppDB
>
>
> InventoryManagement
>
>
>
>
>
> I do not have what is bold in my per.xml
>
> Shouldn't it be why I am getting an error? The web.xml can not
> resolve -
>
> Deploying application in domain failed; Could not resolve a
> persistence unit corresponding to the persistence-unit-ref-name
> [persistence/ENTERPRISE-ejbPU] in scope of the module called
> [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> Please verify your application.
>
> IT's complaining about the per-unit-ref-name which is not in my
> per.xml.
>
>
> How do I put that in? I tried to add it in but has been getting error.
> Could you add it in and send it over?
>
> I will try and see if I can send over a test app.
>
> Thanking you.
>
> eve
>
>
>
>
>
>
>
>
> From: ralph.winzinger@senacor.de
> To: users@glassfish.dev.java.net
> Date: Fri, 4 Dec 2009 23:00:35 +0100
> Subject: Re: Persistence unit ref:
>
> well, I tried various constellations to test whether your error will
> show up (renaming persistence.xml, changing the value in
>
(web.xml), changing
> name=...> (persistence.xml)). But the error only occurred when the
> unit-names in persistence.xml and web.xml did not match.
>
> If your project is some kind of test-project, you might send your
> WAR (if it is not too big of course) - I will try to throw it at my
> container ...
>
>
> Am 04.12.2009 um 22:51 schrieb Eve Pokua:
>
> Ralph,
>
> I have recreated my persistence.xml.
>
> Please, note that I am using netbeans 6.7 to create my
> persistence.xml.
>
> Here is the new file-
>
>
>
> xsi:schemaLocation="http://java.sun.com/xml/ns/persistencehttp://java.sun.com/xml/ns/persistence/persistence_1_0.xsd
> ">
>
>
oracle.toplink.essentials.PersistenceProvider > jdbc_/EnterpriseDB2
>
>
>
>
>
>
>
> My problem comes when I have to
>
> this to my web.xml-
>
>
>
persistence/ENTERPRISE-
> ejbPU
>
ENTERPRISE-ejbPU > unit-name>
>
>
> when I comment it out of my web.xml, my application deploys.
>
> Ralph, could you please, double check your per.xml to see if you
> have the
>
> persistence-unit-ref>
>
>
> tag and also please, do reproduce my error by changing the per. name.
>
> I'm sure you will reproduce the error.
>
>
> This is what the JavaEE spec gives as an example:
>
>
> persistence/InventoryAppDB
>
>
> InventoryManagement
>
>
>
> Mar. I am using netbeans to create the per.xml.
>
>
>
> Thanking you for all your help.
>
> eve
>
>
>
>
>
> From: ralph.winzinger@senacor.de
> To: users@glassfish.dev.java.net
> Date: Fri, 4 Dec 2009 22:05:39 +0100
> Subject: Re: Persistence unit ref:
>
> Eve,
>
> the only way, how I can reproduce your error is to change the value
> of
to something not matching the name in the
> persistence.xml. But thatseems to be ok in the snippets you sent. So
> I would go on and look for old files that might be still around -
> maybe there's another persistence.xml that is read by accident. Look
> inside the WAR and make sure that everything is as expected.
>
> Bye,
> Ralph
>
>
>
> Am 04.12.2009 um 19:48 schrieb Eve Pokua:
>
> Ralph,
>
> Here is my per.xml
>
>
>
>
>
> xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd
> ">
>
> jdbc_/EnterpriseDB2
> false
>
> >
>
>
>
> regards
>
> eve
>
> From: ralph.winzinger@senacor.de
> To: users@glassfish.dev.java.net
> Date: Fri, 4 Dec 2009 15:20:16 +0100
> Subject: Re: Persistence unit ref:
>
> hi,
>
> what does your persistence.xml look like?
>
>
> Am 04.12.2009 um 13:50 schrieb Eve Pokua:
>
> Ralph,
>
> Thank you for your reply.
>
> I did as you said.
>
> i added the following to my web.xml
>
>
>
>
>
persistence/ENTERPRISE-ejbPU > persistence-unit-ref-name>
>
ENTERPRISE-ejbPU >
>
>
>
> in my applicationContext.xml
>
> > class
> =
> "org
> .springframework
> .orm.jpa.support.PersistenceAnnotationBeanPostProcessor" >
>
>
>
>

>
>
>
>

>
>

>
>
>
> But I still get the error -
>
> [#|2009-12-04T12:34:05.536+0000|SEVERE|sun-appserver2.1|
> javax.enterprise.system.tools.deployment|
> _ThreadID=20;_ThreadName=Thread-48;_RequestID=3fb89f4d-e8ef-403f-
> a422-9e5442bf9b3a;|Exception occured in J2EEC Phase
> com.sun.enterprise.deployment.backend.IASDeploymentException: Could
> not resolve a persistence unit corresponding to the persistence-unit-
> ref-name [persistence/ENTERPRISE-ejbPU] in scope of the module
> called [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-
> war_war]. Please verify your application.
> at
> com
> .sun
> .enterprise
> .deployment
> .BundleDescriptor.findReferencedPUsViaPURefs(BundleDescriptor.java:
> 711)
> at
> com
> .sun
> .enterprise
> .deployment
> .WebBundleDescriptor.findReferencedPUs(WebBundleDescriptor.java:727)
> at
> com
> .sun
> .jdo
> .spi
> .persistence
> .support
> .ejb
> .ejbc
> .PersistenceProcessor
> .getAllPersistenceUnitDescriptors(PersistenceProcessor.java:214)
> at
> com
> .sun
> .jdo
> .spi
> .persistence
> .support
> .ejb
> .ejbc
> .PersistenceProcessor.processApplication(PersistenceProcessor.java:
> 175)
> at
> com
> .sun
> .jdo
> .spi
> .persistence
> .support
> .ejb
> .ejbc
> .DeploymentEventListenerImpl
> .processApplication(DeploymentEventListenerImpl.java:211)
> at
> com
> .sun
> .jdo
> .spi
> .persistence
> .support
> .ejb
> .ejbc
> .DeploymentEventListenerImpl
> .processEvent(DeploymentEventListenerImpl.java:172)
> at
> com
> .sun
> .jdo
> .spi
> .persistence
> .support
> .ejb
> .ejbc
> .DeploymentEventListenerImpl
> .notifyDeploymentEvent(DeploymentEventListenerImpl.java:122)
> at
> com
> .sun
> .enterprise
> .deployment
> .backend
> .DeploymentEventManager
> .notifyDeploymentEvent(DeploymentEventManager.java:79)
> at
> com
> .sun
> .enterprise
> .deployment.backend.AppDeployer.postDeploy(AppDeployer.java:401)
> at
> com
> .sun
> .enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:
> 260)
> at
> com
> .sun
> .enterprise
> .deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
> at
> com
> .sun
> .enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:
> 208)
> at
> com
> .sun
> .enterprise
> .deployment
> .phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
> at
> com
> .sun
> .enterprise
> .deployment
> .phasing.PEDeploymentService.executePhases(PEDeploymentService.java:
> 966)
> at
> com
> .sun
> .enterprise
> .deployment
> .phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
> at
> com
> .sun
> .enterprise
> .deployment
> .phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
> at
> com
> .sun
> .enterprise.management.deploy.DeployThread.deploy(DeployThread.java:
> 187)
> at
> com
> .sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:
> 225)
> |#]
> [#|2009-12-04T12:37:03.074+0000|INFO|sun-appserver2.1|
> javax.enterprise.resource.webcontainer.jsf.config|
> _ThreadID=21;_ThreadName=httpWorkerThread-4848-1;;|Initializing
> Sun's JavaServer Faces implementation (1.2_04-b22-p05) for context
> ''|#]
> [#|2009-12-04T12:37:58.729+0000|INFO|sun-appserver2.1|
> com.sun.jbi.framework|
> _ThreadID=21;_ThreadName=httpWorkerThread-4848-1;|JBIFW0012: JBI
> framework startup complete.|#]
>
>
> sO MY QUESTION AGAIN IS - WHERE CAN I FIND A REFERENCE
> TO MY persistence-unit-ref-name????
>
> I'VE CHECKED MY domain.xml but no details.
>
> thanks
>
> eve
>
>
>
> From: ralph.winzinger@senacor.com
> To: users@glassfish.dev.java.net
> Date: Fri, 4 Dec 2009 00:42:46 +0100
> Subject: Re: Persistence unit ref:
>
> Hi,
>
> I got this working just about an ago ...
>
> web.xml:
>
>
>
persistence/hd > name>
>
hd >
>
> application-context.xml:
>
> > class
> =
> "org
> .springframework
> .orm.jpa.support.PersistenceAnnotationBeanPostProcessor" >
>
>
>
>

>
>
>
>

>
>

>
>
> Hope this helps ...
>
> Bye,
> Ralph
>
>
> Kurz gehalten, da vom iPhone gesendet
>
> Am 04.12.2009 um 00:16 schrieb "Eve Pokua" :
>
> Hello,
>
> Below is my persistence.xml-
>
>
>
> xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd
> ">
>
> jdbc_/EnterpriseDB2
> false
>
> >
>
>
>
> How do I find the name of my -persistence-unit-ref-name?
>
> I use the following and I get deployment error
>
>
ENTERPRISE-ejbPU > name>
>
> Deploying application in domain failed; Could not resolve a
> persistence unit corresponding to the persistence-unit-ref-name
> [ENTERPRISE-ejbPU] in scope of the module called [gfdeploy#C:\jee
> \ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war]. Please verify your
> application.
>
> I need to specify it within my web.xml in-order to use @Persistence
> in my spring JEE
> application.
>
> Thanking you.
>
> eve
>
>
>
> Use Hotmail to send and receive mail from your different email
> accounts. Find out how.
>
> New! Receive and respond to mail from other email accounts from
> within Hotmail Find out how.
>
> Ralph Winzinger
> Principal Architect
> ______________________________
> Senacor Technologies AG
> Vordere Cramergasse 11
> 90478 Nürnberg
>
> Telefon: +49 (0)911 4244-202
> Telefax: +49 (0)911 4244-100
>
> ralph.winzinger@senacor.com
> www.senacor.com
>
> Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> Vorstand: Matthias Tomann, Marcus Purzer -
> Aufsichtsratsvorsitzender: Mathias J. Lindermeir
>
>
> Add other email accounts to Hotmail in 3 easy steps. Find out how.
>
> Ralph Winzinger
> Principal Architect
> ______________________________
> Senacor Technologies AG
> Vordere Cramergasse 11
> 90478 Nürnberg
>
> Telefon: +49 (0)911 4244-202
> Telefax: +49 (0)911 4244-100
>
> ralph.winzinger@senacor.com
> www.senacor.com
>
> Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> Vorstand: Matthias Tomann, Marcus Purzer -
> Aufsichtsratsvorsitzender: Mathias J. Lindermeir
>
>
> View your other email accounts from your Hotmail inbox. Add them now.
>
> Ralph Winzinger
> Principal Architect
> ______________________________
> Senacor Technologies AG
> Vordere Cramergasse 11
> 90478 Nürnberg
>
> Telefon: +49 (0)911 4244-202
> Telefax: +49 (0)911 4244-100
>
> ralph.winzinger@senacor.com
> www.senacor.com
>
> Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> Vorstand: Matthias Tomann, Marcus Purzer -
> Aufsichtsratsvorsitzender: Mathias J. Lindermeir
>
>
> View your other email accounts from your Hotmail inbox. Add them now.
> Have more than one Hotmail account? Link them together to easily
> access both.
> <
> persistence
> .xml
> >
> <
> web
> .xml
> > > war
> .war
> >---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net

Ralph Winzinger
Principal Architect
______________________________
Senacor Technologies AG
Vordere Cramergasse 11
90478 Nürnberg

Telefon: +49 (0)911 4244-202
Telefax: +49 (0)911 4244-100

ralph.winzinger@senacor.com
www.senacor.com

Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg - Amtsgericht
Nürnberg - Reg.-Nr.: HRB 23098
Vorstand: Matthias Tomann, Marcus Purzer - Aufsichtsratsvorsitzender:
Mathias J. Lindermeir

[att1.html]

Eve Pokua

Ralph,

My application is a full enterprise application.

No the persistence.xml is in my ejb
mobule section where all my entity files are.

eve

From: ralph.winzinger@senacor.de
To: users@glassfish.dev.java.net
Date: Sat, 5 Dec 2009 00:01:29 +0100
Subject: Re: Persistence unit ref:

but persistence.xml is not contained in your war, is it?

Am 04.12.2009 um 23:53 schrieb Eve Pokua:

Ralph see attached

Hope that helps. This testing is also giving error.

Thanks

eve

From: gorgeous65@msn.com
To: users@glassfish.dev.java.net; ejb@glassfish.dev.java.net; persistence@glassfish.dev.java.net
Date: Fri, 4 Dec 2009 22:32:26 +0000
Subject: RE: Persistence unit ref:

Ralph,

My application is very big.

Do you have spring?

In Marina's example

This is what the JavaEE spec gives as an example:

persistence/InventoryAppDB
InventoryManagement

I do not have what is bold in my per.xml

Shouldn't it be why I am getting an error? The web.xml can not
resolve -

Deploying application in domain failed; Could not resolve a persistence unit corresponding to the persistence-unit-ref-name [persistence/ENTERPRISE-ejbPU] in scope of the module called [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war]. Please verify your application.

IT's complaining about the per-unit-ref-name which is not in my per.xml.

How do I put that in? I tried to add it in but has been getting error.
Could you add it in and send it over?

I will try and see if I can send over a test app.

Thanking you.

eve

From: ralph.winzinger@senacor.de
To: users@glassfish.dev.java.net
Date: Fri, 4 Dec 2009 23:00:35 +0100
Subject: Re: Persistence unit ref:

well, I tried various constellations to test whether your error will show up (renaming persistence.xml, changing the value in
(web.xml), changing
(persistence.xml)). But the error only occurred when the unit-names in persistence.xml and web.xml did not match.

If your project is some kind of test-project, you might send your WAR (if it is not too big of course) - I will try to throw it at my container ...

Am 04.12.2009 um 22:51 schrieb Eve Pokua:

Ralph,

I have recreated my persistence.xml.

Please, note that I am using netbeans 6.7 to create my persistence.xml.

Here is the new file-

oracle.toplink.essentials.PersistenceProvider jdbc_/EnterpriseDB2

My problem comes when I have to

this to my web.xml-

persistence/ENTERPRISE-ejbPU ENTERPRISE-ejbPU

when I comment it out of my web.xml, my application deploys.

Ralph, could you please, double check your per.xml to see if you have the

persistence-unit-ref>

tag and also please, do reproduce my error by changing the per. name.

I'm sure you will reproduce the error.

This is what the JavaEE spec gives as an example:

persistence/InventoryAppDB
InventoryManagement

Mar. I am using netbeans to create the per.xml.

Thanking you for all your help.

eve

From: ralph.winzinger@senacor.de
To: users@glassfish.dev.java.net
Date: Fri, 4 Dec 2009 22:05:39 +0100
Subject: Re: Persistence unit ref:

Eve,

the only way, how I can reproduce your error is to change the value of
to something not matching the name in the persistence.xml. But thatseems to be ok in the snippets you sent. So I would go on and look for old files that might be still around - maybe there's another persistence.xml that is read by accident. Look inside the WAR and make sure that everything is as expected.

Bye,
Ralph

Am 04.12.2009 um 19:48 schrieb Eve Pokua:

Ralph,

Here is my per.xml

jdbc_/EnterpriseDB2
false

regards

eve

From: ralph.winzinger@senacor.de
To: users@glassfish.dev.java.net
Date: Fri, 4 Dec 2009 15:20:16 +0100
Subject: Re: Persistence unit ref:

hi,

what does your persistence.xml look like?

Am 04.12.2009 um 13:50 schrieb Eve Pokua:

Ralph,

Thank you for your reply.

I did as you said.

i added the following to my web.xml

persistence/ENTERPRISE-ejbPU ENTERPRISE-ejbPU

in my applicationContext.xml




But I still get the error -

[#|2009-12-04T12:34:05.536+0000|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=20;_ThreadName=Thread-48;_RequestID=3fb89f4d-e8ef-403f-a422-9e5442bf9b3a;|Exception occured in J2EEC Phase
com.sun.enterprise.deployment.backend.IASDeploymentException: Could not resolve a persistence unit corresponding to the persistence-unit-ref-name [persistence/ENTERPRISE-ejbPU] in scope of the module called [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war]. Please verify your application.
at com.sun.enterprise.deployment.BundleDescriptor.findReferencedPUsViaPURefs(BundleDescriptor.java:711)
at com.sun.enterprise.deployment.WebBundleDescriptor.findReferencedPUs(WebBundleDescriptor.java:727)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.getAllPersistenceUnitDescriptors(PersistenceProcessor.java:214)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.processApplication(PersistenceProcessor.java:175)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processApplication(DeploymentEventListenerImpl.java:211)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processEvent(DeploymentEventListenerImpl.java:172)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.notifyDeploymentEvent(DeploymentEventListenerImpl.java:122)
at com.sun.enterprise.deployment.backend.DeploymentEventManager.notifyDeploymentEvent(DeploymentEventManager.java:79)
at com.sun.enterprise.deployment.backend.AppDeployer.postDeploy(AppDeployer.java:401)
at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:260)
at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
|#]
[#|2009-12-04T12:37:03.074+0000|INFO|sun-appserver2.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;;|Initializing Sun's JavaServer Faces implementation (1.2_04-b22-p05) for context ''|#]
[#|2009-12-04T12:37:58.729+0000|INFO|sun-appserver2.1|com.sun.jbi.framework|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;|JBIFW0012: JBI framework startup complete.|#]

sO MY QUESTION AGAIN IS - WHERE CAN I FIND A REFERENCE
TO MY persistence-unit-ref-name????

I'VE CHECKED MY domain.xml but no details.

thanks

eve

From: ralph.winzinger@senacor.com
To: users@glassfish.dev.java.net
Date: Fri, 4 Dec 2009 00:42:46 +0100
Subject: Re: Persistence unit ref:

Hi,

I got this working just about an ago ...

web.xml:

persistence/hd hd

application-context.xml:




Hope this helps ...

Bye,
Ralph

Kurz gehalten, da vom iPhone gesendet

Am 04.12.2009 um 00:16 schrieb "Eve Pokua" :

Hello,

Below is my persistence.xml-

jdbc_/EnterpriseDB2
false

How do I find the name of my -persistence-unit-ref-name?

I use the following and I get deployment error

ENTERPRISE-ejbPU

Deploying application in domain failed; Could not resolve a persistence unit corresponding to the persistence-unit-ref-name [ENTERPRISE-ejbPU] in scope of the module called [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war]. Please verify your application.

I need to specify it within my web.xml in-order to use @Persistence in my spring JEE
application.

Thanking you.

eve

Use Hotmail to send and receive mail from your different email accounts. Find out how.

New! Receive and respond to mail from other email accounts from within Hotmail Find out how.

Ralph Winzinger
Principal Architect
______________________________
Senacor Technologies AG
Vordere Cramergasse 11
90478 Nürnberg

Telefon: +49 (0)911 4244-202
Telefax: +49 (0)911 4244-100

ralph.winzinger@senacor.com
www.senacor.com

Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg - Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
Vorstand: Matthias Tomann, Marcus Purzer - Aufsichtsratsvorsitzender: Mathias J. Lindermeir

Add other email accounts to Hotmail in 3 easy steps. Find out how.

Ralph Winzinger
Principal Architect
______________________________
Senacor Technologies AG
Vordere Cramergasse 11
90478 Nürnberg

Telefon: +49 (0)911 4244-202
Telefax: +49 (0)911 4244-100

ralph.winzinger@senacor.com
www.senacor.com

Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg - Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
Vorstand: Matthias Tomann, Marcus Purzer - Aufsichtsratsvorsitzender: Mathias J. Lindermeir

View your other email accounts from your Hotmail inbox. Add them now.

Ralph Winzinger
Principal Architect
______________________________
Senacor Technologies AG
Vordere Cramergasse 11
90478 Nürnberg

Telefon: +49 (0)911 4244-202
Telefax: +49 (0)911 4244-100

ralph.winzinger@senacor.com
www.senacor.com

Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg - Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
Vorstand: Matthias Tomann, Marcus Purzer - Aufsichtsratsvorsitzender: Mathias J. Lindermeir

View your other email accounts from your Hotmail inbox. Add them now.

Have more than one Hotmail account? Link them together to easily access both.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Ralph Winzinger
Principal Architect
______________________________
Senacor Technologies AG
Vordere Cramergasse 11
90478 Nürnberg

Telefon: +49 (0)911 4244-202
Telefax: +49 (0)911 4244-100

ralph.winzinger@senacor.com
www.senacor.com

Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg - Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
Vorstand: Matthias Tomann, Marcus Purzer - Aufsichtsratsvorsitzender: Mathias J. Lindermeir

_________________________________________________________________
Have more than one Hotmail account? Link them together to easily access both
http://clk.atdmt.com/UKM/go/186394591/direct/01/
[att1.html]

Marina Vatkina

Eve,

Are you deploying it to GF v2.x or v3? In v3 you need to package shared parts
into the ear's lib/myjar.jar to be available to all components.

Regards,
-marina

Eve Pokua wrote:
> Ralph,
>
> My application is a full enterprise application.
> No the persistence.xml is in my ejb
> mobule section where all my entity files are.
>
> eve
> ------------------------------------------------------------------------
> From: ralph.winzinger@senacor.de
> To: users@glassfish.dev.java.net
> Date: Sat, 5 Dec 2009 00:01:29 +0100
> Subject: Re: Persistence unit ref:
>
> but persistence.xml is not contained in your war, is it?
>
>
> Am 04.12.2009 um 23:53 schrieb Eve Pokua:
>
> Ralph see attached
>
> Hope that helps. This testing is also giving error.
>
> Thanks
>
> eve
>
>
>
> ------------------------------------------------------------------------
> From: gorgeous65@msn.com
> To: users@glassfish.dev.java.net
> ; ejb@glassfish.dev.java.net
> ; persistence@glassfish.dev.java.net
>
> Date: Fri, 4 Dec 2009 22:32:26 +0000
> Subject: RE: Persistence unit ref:
>
> Ralph,
>
> My application is very big.
>
> Do you have spring?
>
> In Marina's example
>
> This is what the JavaEE spec gives as an example:
> *
>
> persistence/InventoryAppDB
> *
>
> InventoryManagement
>
> *
> *
>
>
> I do not have what is bold in my per.xml
>
> Shouldn't it be why I am getting an error? The web.xml can not
> resolve -
>
> Deploying application in domain failed; Could not resolve a
> persistence unit corresponding to the persistence-unit-ref-name
> [persistence/ENTERPRISE-ejbPU] in scope of the module called
> [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> Please verify your application.
>
> IT's complaining about the per-unit-ref-name which is not in my per.xml.
>
>
> How do I put that in? I tried to add it in but has been getting error.
> Could you add it in and send it over?
>
> I will try and see if I can send over a test app.
>
> Thanking you.
>
> eve
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
> From: ralph.winzinger@senacor.de
> To: users@glassfish.dev.java.net
> Date: Fri, 4 Dec 2009 23:00:35 +0100
> Subject: Re: Persistence unit ref:
>
> well, I tried various constellations to test whether your error will
> show up (renaming persistence.xml, changing the value
> in
(web.xml), changing
> name=...> (persistence.xml)). But the error only occurred when the
> unit-names in persistence.xml and web.xml did not match.
>
> If your project is some kind of test-project, you might send your
> WAR (if it is not too big of course) - I will try to throw it at my
> container ...
>
>
> Am 04.12.2009 um 22:51 schrieb Eve Pokua:
>
> Ralph,
>
> I have recreated my persistence.xml.
>
> Please, note that I am using netbeans 6.7 to create my
> persistence.xml.
>
> Here is the new file-
>
>
>
> 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/persistencehttp://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
>
>
>
oracle.toplink.essentials.PersistenceProvider > jdbc_/EnterpriseDB2
>
>
> value="create-tables"/>
>
>
>
>
>
> My problem comes when I have to
>
> this to my web.xml-
>
>
>
>
persistence/ENTERPRISE-ejbPU >
>
ENTERPRISE-ejbPU >
>
> when I comment it out of my web.xml, my application deploys.
>
> Ralph, could you please, double check your per.xml to see if you
> have the
>
> persistence-unit-ref>
>
>
> tag and also please, do reproduce my error by changing the per.
> name.
>
> I'm sure you will reproduce the error.
>
>
> This is what the JavaEE spec gives as an example:
>
>
> persistence/InventoryAppDB
>
>
> InventoryManagement
>
>
>
> Mar. I am using netbeans to create the per.xml.
>
>
>
> Thanking you for all your help.
>
> eve
>
>
>
>
> ------------------------------------------------------------------------
>
> From: ralph.winzinger@senacor.de
> To: users@glassfish.dev.java.net
>
> Date: Fri, 4 Dec 2009 22:05:39 +0100
> Subject: Re: Persistence unit ref:
>
> Eve,
>
> the only way, how I can reproduce your error is to change the
> value of
to something not matching the
> name in the persistence.xml. But thatseems to be ok in the
> snippets you sent. So I would go on and look for old files that
> might be still around - maybe there's another persistence.xml
> that is read by accident. Look inside the WAR and make sure that
> everything is as expected.
>
> Bye,
> Ralph
>
>
>
> Am 04.12.2009 um 19:48 schrieb Eve Pokua:
>
> Ralph,
>
> Here is my per.xml
>
>
>
>
>
> 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">
>
> transaction-type="JTA">
> jdbc_/EnterpriseDB2
> false
>
> >
>
>
>
> regards
>
> eve
>
> ------------------------------------------------------------------------
> From: ralph.winzinger@senacor.de
>
> To: users@glassfish.dev.java.net
>
> Date: Fri, 4 Dec 2009 15:20:16 +0100
> Subject: Re: Persistence unit ref:
>
> hi,
>
> what does your persistence.xml look like?
>
>
> Am 04.12.2009 um 13:50 schrieb Eve Pokua:
>
> Ralph,
>
> Thank you for your reply.
>
> I did as you said.
>
> i added the following to my web.xml
>
>
>
>
>
persistence/ENTERPRISE-ejbPU >
ENTERPRISE-ejbPU >
>
>
>
> in my applicationContext.xml
>
> > class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"
> >
>
>
> > value="persistence/ENTERPRISE-ejbPU"/>
>

>
>
>
>

>
>

>
>
>
> But I still get the error -
>
> [#|2009-12-04T12:34:05.536+0000|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=20;_ThreadName=Thread-48;_RequestID=3fb89f4d-e8ef-403f-a422-9e5442bf9b3a;|Exception
> occured in J2EEC Phase
> com.sun.enterprise.deployment.backend.IASDeploymentException:
> Could not resolve a persistence unit corresponding to
> the persistence-unit-ref-name
> [persistence/ENTERPRISE-ejbPU] in scope of the module
> called
> [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> Please verify your application.
> at
> com.sun.enterprise.deployment.BundleDescriptor.findReferencedPUsViaPURefs(BundleDescriptor.java:711)
> at
> com.sun.enterprise.deployment.WebBundleDescriptor.findReferencedPUs(WebBundleDescriptor.java:727)
> at
> com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.getAllPersistenceUnitDescriptors(PersistenceProcessor.java:214)
> at
> com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.processApplication(PersistenceProcessor.java:175)
> at
> com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processApplication(DeploymentEventListenerImpl.java:211)
> at
> com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processEvent(DeploymentEventListenerImpl.java:172)
> at
> com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.notifyDeploymentEvent(DeploymentEventListenerImpl.java:122)
> at
> com.sun.enterprise.deployment.backend.DeploymentEventManager.notifyDeploymentEvent(DeploymentEventManager.java:79)
> at
> com.sun.enterprise.deployment.backend.AppDeployer.postDeploy(AppDeployer.java:401)
> at
> com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:260)
> at
> com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
> at
> com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
> at
> com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
> at
> com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
> at
> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
> at
> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
> at
> com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
> at
> com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
> |#]
> [#|2009-12-04T12:37:03.074+0000|INFO|sun-appserver2.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;;|Initializing
> Sun's JavaServer Faces implementation (1.2_04-b22-p05)
> for context ''|#]
> [#|2009-12-04T12:37:58.729+0000|INFO|sun-appserver2.1|com.sun.jbi.framework|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;|JBIFW0012:
> JBI framework startup complete.|#]
>
>
> sO MY QUESTION AGAIN IS - WHERE CAN I FIND A REFERENCE
> TO MY persistence-unit-ref-name????
>
> I'VE CHECKED MY domain.xml but no details.
>
> thanks
>
> eve
>
>
>
> ------------------------------------------------------------------------
> From: ralph.winzinger@senacor.com
>
> To: users@glassfish.dev.java.net
>
> Date: Fri, 4 Dec 2009 00:42:46 +0100
> Subject: Re: Persistence unit ref:
>
> Hi,
>
> I got this working just about an ago ...
>
> web.xml:
>
>
>
>
persistence/hd >
hd >
>
> application-context.xml:
>
>
>
>
>
>

>
>

>
>

>
>

>
>
> Hope this helps ...
>
> Bye,
> Ralph
>
>
> Kurz gehalten, da vom iPhone gesendet
>
> Am 04.12.2009 um 00:16 schrieb "Eve Pokua"
> >:
>
> Hello,
>
> Below is my persistence.xml-
>
>
>
> 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">
>
> transaction-type="JTA">
>
> jdbc_/EnterpriseDB2
>
> false
>
> >
>
>
>
> How do I find the name of my -persistence-unit-ref-name?
>
> I use the following and I get deployment error
>
>
ENTERPRISE-ejbPU >
> Deploying application in domain failed; Could not
> resolve a persistence unit corresponding to the
> persistence-unit-ref-name [ENTERPRISE-ejbPU] in
> scope of the module called
> [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> Please verify your application.
>
> I need to specify it within my web.xml in-order to
> use @Persistence in my spring JEE
> application.
>
> Thanking you.
>
> eve
>
>
>
> ------------------------------------------------------------------------
> Use Hotmail to send and receive mail from your
> different email accounts. Find out how.
>
>
>
> ------------------------------------------------------------------------
> New! Receive and respond to mail from other email
> accounts from within Hotmail Find out how.
>
>
>
> Ralph Winzinger
> Principal Architect
> ______________________________
> Senacor Technologies AG
> Vordere Cramergasse 11
> 90478 Nürnberg
>
> Telefon: +49 (0)911 4244-202
> Telefax: +49 (0)911 4244-100
>
> ralph.winzinger@senacor.com
> www.senacor.com
>
> Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> Vorstand: Matthias Tomann, Marcus Purzer -
> Aufsichtsratsvorsitzender: Mathias J. Lindermeir
>
>
> ------------------------------------------------------------------------
> Add other email accounts to Hotmail in 3 easy steps. Find
> out how.
>
>
> Ralph Winzinger
> Principal Architect
> ______________________________
> Senacor Technologies AG
> Vordere Cramergasse 11
> 90478 Nürnberg
>
> Telefon: +49 (0)911 4244-202
> Telefax: +49 (0)911 4244-100
>
> ralph.winzinger@senacor.com
> www.senacor.com
>
> Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> Vorstand: Matthias Tomann, Marcus Purzer -
> Aufsichtsratsvorsitzender: Mathias J. Lindermeir
>
>
> ------------------------------------------------------------------------
> View your other email accounts from your Hotmail inbox. Add them
> now.
>
>
> Ralph Winzinger
> Principal Architect
> ______________________________
> Senacor Technologies AG
> Vordere Cramergasse 11
> 90478 Nürnberg
>
> Telefon: +49 (0)911 4244-202
> Telefax: +49 (0)911 4244-100
>
> ralph.winzinger@senacor.com
> www.senacor.com
>
> Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> Vorstand: Matthias Tomann, Marcus Purzer -
> Aufsichtsratsvorsitzender: Mathias J. Lindermeir
>
>
> ------------------------------------------------------------------------
> View your other email accounts from your Hotmail inbox. Add them
> now.
> ------------------------------------------------------------------------
> Have more than one Hotmail account? Link them together to easily
> access
> both.
---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
>
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>
>
> Ralph Winzinger
> Principal Architect
> ______________________________
> Senacor Technologies AG
> Vordere Cramergasse 11
> 90478 Nürnberg
>
> Telefon: +49 (0)911 4244-202
> Telefax: +49 (0)911 4244-100
>
> ralph.winzinger@senacor.com
> www.senacor.com
>
> Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg - Amtsgericht
> Nürnberg - Reg.-Nr.: HRB 23098
> Vorstand: Matthias Tomann, Marcus Purzer - Aufsichtsratsvorsitzender:
> Mathias J. Lindermeir
>
>
> ------------------------------------------------------------------------
> Add other email accounts to Hotmail in 3 easy steps. Find out how.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Eve Pokua

Marina,

I am using Gv 2. gluster profile. I really don't understand why

I am having this problem. I have even created another test

war application. but still similar error.

Thanking you.

eve

> Date: Fri, 4 Dec 2009 15:23:41 -0800
> From: Marina.Vatkina@Sun.COM
> To: users@glassfish.dev.java.net
> Subject: Re: Persistence unit ref:
>
> Eve,
>
> Are you deploying it to GF v2.x or v3? In v3 you need to package shared parts
> into the ear's lib/myjar.jar to be available to all components.
>
> Regards,
> -marina
>
> Eve Pokua wrote:
> > Ralph,
> >
> > My application is a full enterprise application.
> > No the persistence.xml is in my ejb
> > mobule section where all my entity files are.
> >
> > eve
> > ------------------------------------------------------------------------
> > From: ralph.winzinger@senacor.de
> > To: users@glassfish.dev.java.net
> > Date: Sat, 5 Dec 2009 00:01:29 +0100
> > Subject: Re: Persistence unit ref:
> >
> > but persistence.xml is not contained in your war, is it?
> >
> >
> > Am 04.12.2009 um 23:53 schrieb Eve Pokua:
> >
> > Ralph see attached
> >
> > Hope that helps. This testing is also giving error.
> >
> > Thanks
> >
> > eve
> >
> >
> >
> > ------------------------------------------------------------------------
> > From: gorgeous65@msn.com
> > To: users@glassfish.dev.java.net
> > ; ejb@glassfish.dev.java.net
> > ; persistence@glassfish.dev.java.net
> >
> > Date: Fri, 4 Dec 2009 22:32:26 +0000
> > Subject: RE: Persistence unit ref:
> >
> > Ralph,
> >
> > My application is very big.
> >
> > Do you have spring?
> >
> > In Marina's example
> >
> > This is what the JavaEE spec gives as an example:
> > *
> >
> > persistence/InventoryAppDB
> > *
> >
> > InventoryManagement
> >
> > *
> > *
> >
> >
> > I do not have what is bold in my per.xml
> >
> > Shouldn't it be why I am getting an error? The web.xml can not
> > resolve -
> >
> > Deploying application in domain failed; Could not resolve a
> > persistence unit corresponding to the persistence-unit-ref-name
> > [persistence/ENTERPRISE-ejbPU] in scope of the module called
> > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > Please verify your application.
> >
> > IT's complaining about the per-unit-ref-name which is not in my per.xml.
> >
> >
> > How do I put that in? I tried to add it in but has been getting error.
> > Could you add it in and send it over?
> >
> > I will try and see if I can send over a test app.
> >
> > Thanking you.
> >
> > eve
> >
> >
> >
> >
> >
> >
> >
> >
> > ------------------------------------------------------------------------
> > From: ralph.winzinger@senacor.de
> > To: users@glassfish.dev.java.net
> > Date: Fri, 4 Dec 2009 23:00:35 +0100
> > Subject: Re: Persistence unit ref:
> >
> > well, I tried various constellations to test whether your error will
> > show up (renaming persistence.xml, changing the value
> > in
(web.xml), changing
> > name=...> (persistence.xml)). But the error only occurred when the
> > unit-names in persistence.xml and web.xml did not match.
> >
> > If your project is some kind of test-project, you might send your
> > WAR (if it is not too big of course) - I will try to throw it at my
> > container ...
> >
> >
> > Am 04.12.2009 um 22:51 schrieb Eve Pokua:
> >
> > Ralph,
> >
> > I have recreated my persistence.xml.
> >
> > Please, note that I am using netbeans 6.7 to create my
> > persistence.xml.
> >
> > Here is the new file-
> >
> >
> >
> > 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/persistencehttp://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
> >
> >
> >
oracle.toplink.essentials.PersistenceProvider > > jdbc_/EnterpriseDB2
> >
> >
> > value="create-tables"/>
> >
> >
> >
> >
> >
> > My problem comes when I have to
> >
> > this to my web.xml-
> >
> >
> >
> >
persistence/ENTERPRISE-ejbPU > >
> >
ENTERPRISE-ejbPU > >
> >
> > when I comment it out of my web.xml, my application deploys.
> >
> > Ralph, could you please, double check your per.xml to see if you
> > have the
> >
> > persistence-unit-ref>
> >
> >
> > tag and also please, do reproduce my error by changing the per.
> > name.
> >
> > I'm sure you will reproduce the error.
> >
> >
> > This is what the JavaEE spec gives as an example:
> >
> >
> > persistence/InventoryAppDB
> >
> >
> > InventoryManagement
> >
> >
> >
> > Mar. I am using netbeans to create the per.xml.
> >
> >
> >
> > Thanking you for all your help.
> >
> > eve
> >
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > From: ralph.winzinger@senacor.de
> > To: users@glassfish.dev.java.net
> >
> > Date: Fri, 4 Dec 2009 22:05:39 +0100
> > Subject: Re: Persistence unit ref:
> >
> > Eve,
> >
> > the only way, how I can reproduce your error is to change the
> > value of
to something not matching the
> > name in the persistence.xml. But thatseems to be ok in the
> > snippets you sent. So I would go on and look for old files that
> > might be still around - maybe there's another persistence.xml
> > that is read by accident. Look inside the WAR and make sure that
> > everything is as expected.
> >
> > Bye,
> > Ralph
> >
> >
> >
> > Am 04.12.2009 um 19:48 schrieb Eve Pokua:
> >
> > Ralph,
> >
> > Here is my per.xml
> >
> >
> >
> >
> >
> > 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">
> >
> > transaction-type="JTA">
> > jdbc_/EnterpriseDB2
> > false
> >
> > > >
> >
> >
> >
> > regards
> >
> > eve
> >
> > ------------------------------------------------------------------------
> > From: ralph.winzinger@senacor.de
> >
> > To: users@glassfish.dev.java.net
> >
> > Date: Fri, 4 Dec 2009 15:20:16 +0100
> > Subject: Re: Persistence unit ref:
> >
> > hi,
> >
> > what does your persistence.xml look like?
> >
> >
> > Am 04.12.2009 um 13:50 schrieb Eve Pokua:
> >
> > Ralph,
> >
> > Thank you for your reply.
> >
> > I did as you said.
> >
> > i added the following to my web.xml
> >
> >
> >
> >
> >
persistence/ENTERPRISE-ejbPU > >
ENTERPRISE-ejbPU > >
> >
> >
> >
> > in my applicationContext.xml
> >
> > > > class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"
> > >
> >
> >
> > > > value="persistence/ENTERPRISE-ejbPU"/>
> >

> >
> >
> >
> >

> >
> >

> >
> >
> >
> > But I still get the error -
> >
> > [#|2009-12-04T12:34:05.536+0000|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=20;_ThreadName=Thread-48;_RequestID=3fb89f4d-e8ef-403f-a422-9e5442bf9b3a;|Exception
> > occured in J2EEC Phase
> > com.sun.enterprise.deployment.backend.IASDeploymentException:
> > Could not resolve a persistence unit corresponding to
> > the persistence-unit-ref-name
> > [persistence/ENTERPRISE-ejbPU] in scope of the module
> > called
> > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > Please verify your application.
> > at
> > com.sun.enterprise.deployment.BundleDescriptor.findReferencedPUsViaPURefs(BundleDescriptor.java:711)
> > at
> > com.sun.enterprise.deployment.WebBundleDescriptor.findReferencedPUs(WebBundleDescriptor.java:727)
> > at
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.getAllPersistenceUnitDescriptors(PersistenceProcessor.java:214)
> > at
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.processApplication(PersistenceProcessor.java:175)
> > at
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processApplication(DeploymentEventListenerImpl.java:211)
> > at
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processEvent(DeploymentEventListenerImpl.java:172)
> > at
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.notifyDeploymentEvent(DeploymentEventListenerImpl.java:122)
> > at
> > com.sun.enterprise.deployment.backend.DeploymentEventManager.notifyDeploymentEvent(DeploymentEventManager.java:79)
> > at
> > com.sun.enterprise.deployment.backend.AppDeployer.postDeploy(AppDeployer.java:401)
> > at
> > com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:260)
> > at
> > com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
> > at
> > com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
> > at
> > com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
> > at
> > com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
> > at
> > com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
> > at
> > com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
> > at
> > com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
> > at
> > com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
> > |#]
> > [#|2009-12-04T12:37:03.074+0000|INFO|sun-appserver2.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;;|Initializing
> > Sun's JavaServer Faces implementation (1.2_04-b22-p05)
> > for context ''|#]
> > [#|2009-12-04T12:37:58.729+0000|INFO|sun-appserver2.1|com.sun.jbi.framework|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;|JBIFW0012:
> > JBI framework startup complete.|#]
> >
> >
> > sO MY QUESTION AGAIN IS - WHERE CAN I FIND A REFERENCE
> > TO MY persistence-unit-ref-name????
> >
> > I'VE CHECKED MY domain.xml but no details.
> >
> > thanks
> >
> > eve
> >
> >
> >
> > ------------------------------------------------------------------------
> > From: ralph.winzinger@senacor.com
> >
> > To: users@glassfish.dev.java.net
> >
> > Date: Fri, 4 Dec 2009 00:42:46 +0100
> > Subject: Re: Persistence unit ref:
> >
> > Hi,
> >
> > I got this working just about an ago ...
> >
> > web.xml:
> >
> >
> >
> >
persistence/hd > >
hd > >
> >
> > application-context.xml:
> >
> >
> >
> >
> >
> >

> >
> >

> >
> >

> >
> >

> >
> >
> > Hope this helps ...
> >
> > Bye,
> > Ralph
> >
> >
> > Kurz gehalten, da vom iPhone gesendet
> >
> > Am 04.12.2009 um 00:16 schrieb "Eve Pokua"
> > >:
> >
> > Hello,
> >
> > Below is my persistence.xml-
> >
> >
> >
> > 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">
> >
> > transaction-type="JTA">
> >
> > jdbc_/EnterpriseDB2
> >
> > false
> >
> > > >
> >
> >
> >
> > How do I find the name of my -persistence-unit-ref-name?
> >
> > I use the following and I get deployment error
> >
> >
ENTERPRISE-ejbPU > >
> > Deploying application in domain failed; Could not
> > resolve a persistence unit corresponding to the
> > persistence-unit-ref-name [ENTERPRISE-ejbPU] in
> > scope of the module called
> > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > Please verify your application.
> >
> > I need to specify it within my web.xml in-order to
> > use @Persistence in my spring JEE
> > application.
> >
> > Thanking you.
> >
> > eve
> >
> >
> >
> > ------------------------------------------------------------------------
> > Use Hotmail to send and receive mail from your
> > different email accounts. Find out how.
> >
> >
> >
> > ------------------------------------------------------------------------
> > New! Receive and respond to mail from other email
> > accounts from within Hotmail Find out how.
> >
> >
> >
> > Ralph Winzinger
> > Principal Architect
> > ______________________________
> > Senacor Technologies AG
> > Vordere Cramergasse 11
> > 90478 Nürnberg
> >
> > Telefon: +49 (0)911 4244-202
> > Telefax: +49 (0)911 4244-100
> >
> > ralph.winzinger@senacor.com
> > www.senacor.com
> >
> > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> > Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> > Vorstand: Matthias Tomann, Marcus Purzer -
> > Aufsichtsratsvorsitzender: Mathias J. Lindermeir
> >
> >
> > ------------------------------------------------------------------------
> > Add other email accounts to Hotmail in 3 easy steps. Find
> > out how.
> >
> >
> > Ralph Winzinger
> > Principal Architect
> > ______________________________
> > Senacor Technologies AG
> > Vordere Cramergasse 11
> > 90478 Nürnberg
> >
> > Telefon: +49 (0)911 4244-202
> > Telefax: +49 (0)911 4244-100
> >
> > ralph.winzinger@senacor.com
> > www.senacor.com
> >
> > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> > Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> > Vorstand: Matthias Tomann, Marcus Purzer -
> > Aufsichtsratsvorsitzender: Mathias J. Lindermeir
> >
> >
> > ------------------------------------------------------------------------
> > View your other email accounts from your Hotmail inbox. Add them
> > now.
> >
> >
> > Ralph Winzinger
> > Principal Architect
> > ______________________________
> > Senacor Technologies AG
> > Vordere Cramergasse 11
> > 90478 Nürnberg
> >
> > Telefon: +49 (0)911 4244-202
> > Telefax: +49 (0)911 4244-100
> >
> > ralph.winzinger@senacor.com
> > www.senacor.com
> >
> > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> > Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> > Vorstand: Matthias Tomann, Marcus Purzer -
> > Aufsichtsratsvorsitzender: Mathias J. Lindermeir
> >
> >
> > ------------------------------------------------------------------------
> > View your other email accounts from your Hotmail inbox. Add them
> > now.
> > ------------------------------------------------------------------------
> > Have more than one Hotmail account? Link them together to easily
> > access
> > both.
---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> >
> > For additional commands, e-mail: users-help@glassfish.dev.java.net
> >
> >
> >
> > Ralph Winzinger
> > Principal Architect
> > ______________________________
> > Senacor Technologies AG
> > Vordere Cramergasse 11
> > 90478 Nürnberg
> >
> > Telefon: +49 (0)911 4244-202
> > Telefax: +49 (0)911 4244-100
> >
> > ralph.winzinger@senacor.com
> > www.senacor.com
> >
> > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg - Amtsgericht
> > Nürnberg - Reg.-Nr.: HRB 23098
> > Vorstand: Matthias Tomann, Marcus Purzer - Aufsichtsratsvorsitzender:
> > Mathias J. Lindermeir
> >
> >
> > ------------------------------------------------------------------------
> > Add other email accounts to Hotmail in 3 easy steps. Find out how.
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

_________________________________________________________________
Have more than one Hotmail account? Link them together to easily access both
http://clk.atdmt.com/UKM/go/186394591/direct/01/
[att1.html]

Ralph Winzinger

Eve,

the only way, how I can reproduce your error is to change the value of

to something not matching the name in the
persistence.xml. But thatseems to be ok in the snippets you sent. So I
would go on and look for old files that might be still around - maybe
there's another persistence.xml that is read by accident. Look inside
the WAR and make sure that everything is as expected.

Bye,
Ralph

Am 04.12.2009 um 19:48 schrieb Eve Pokua:

> Ralph,
>
> Here is my per.xml
>
>
>
>
>
> xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd
> ">
>
> jdbc_/EnterpriseDB2
> false
>
> >
>
>
>
> regards
>
> eve
>
> From: ralph.winzinger@senacor.de
> To: users@glassfish.dev.java.net
> Date: Fri, 4 Dec 2009 15:20:16 +0100
> Subject: Re: Persistence unit ref:
>
> hi,
>
> what does your persistence.xml look like?
>
>
> Am 04.12.2009 um 13:50 schrieb Eve Pokua:
>
> Ralph,
>
> Thank you for your reply.
>
> I did as you said.
>
> i added the following to my web.xml
>
>
>
>
>
persistence/ENTERPRISE-ejbPU > persistence-unit-ref-name>
>
ENTERPRISE-ejbPU >
>
>
>
> in my applicationContext.xml
>
> > class
> =
> "org
> .springframework
> .orm.jpa.support.PersistenceAnnotationBeanPostProcessor" >
>
>
>
>

>
>
>
>

>
>

>
>
>
> But I still get the error -
>
> [#|2009-12-04T12:34:05.536+0000|SEVERE|sun-appserver2.1|
> javax.enterprise.system.tools.deployment|
> _ThreadID=20;_ThreadName=Thread-48;_RequestID=3fb89f4d-e8ef-403f-
> a422-9e5442bf9b3a;|Exception occured in J2EEC Phase
> com.sun.enterprise.deployment.backend.IASDeploymentException: Could
> not resolve a persistence unit corresponding to the persistence-unit-
> ref-name [persistence/ENTERPRISE-ejbPU] in scope of the module
> called [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-
> war_war]. Please verify your application.
> at
> com
> .sun
> .enterprise
> .deployment
> .BundleDescriptor.findReferencedPUsViaPURefs(BundleDescriptor.java:
> 711)
> at
> com
> .sun
> .enterprise
> .deployment
> .WebBundleDescriptor.findReferencedPUs(WebBundleDescriptor.java:727)
> at
> com
> .sun
> .jdo
> .spi
> .persistence
> .support
> .ejb
> .ejbc
> .PersistenceProcessor
> .getAllPersistenceUnitDescriptors(PersistenceProcessor.java:214)
> at
> com
> .sun
> .jdo
> .spi
> .persistence
> .support
> .ejb
> .ejbc
> .PersistenceProcessor.processApplication(PersistenceProcessor.java:
> 175)
> at
> com
> .sun
> .jdo
> .spi
> .persistence
> .support
> .ejb
> .ejbc
> .DeploymentEventListenerImpl
> .processApplication(DeploymentEventListenerImpl.java:211)
> at
> com
> .sun
> .jdo
> .spi
> .persistence
> .support
> .ejb
> .ejbc
> .DeploymentEventListenerImpl
> .processEvent(DeploymentEventListenerImpl.java:172)
> at
> com
> .sun
> .jdo
> .spi
> .persistence
> .support
> .ejb
> .ejbc
> .DeploymentEventListenerImpl
> .notifyDeploymentEvent(DeploymentEventListenerImpl.java:122)
> at
> com
> .sun
> .enterprise
> .deployment
> .backend
> .DeploymentEventManager
> .notifyDeploymentEvent(DeploymentEventManager.java:79)
> at
> com
> .sun
> .enterprise
> .deployment.backend.AppDeployer.postDeploy(AppDeployer.java:401)
> at
> com
> .sun
> .enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:
> 260)
> at
> com
> .sun
> .enterprise
> .deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
> at
> com
> .sun
> .enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:
> 208)
> at
> com
> .sun
> .enterprise
> .deployment
> .phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
> at
> com
> .sun
> .enterprise
> .deployment
> .phasing.PEDeploymentService.executePhases(PEDeploymentService.java:
> 966)
> at
> com
> .sun
> .enterprise
> .deployment
> .phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
> at
> com
> .sun
> .enterprise
> .deployment
> .phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
> at
> com
> .sun
> .enterprise.management.deploy.DeployThread.deploy(DeployThread.java:
> 187)
> at
> com
> .sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:
> 225)
> |#]
> [#|2009-12-04T12:37:03.074+0000|INFO|sun-appserver2.1|
> javax.enterprise.resource.webcontainer.jsf.config|
> _ThreadID=21;_ThreadName=httpWorkerThread-4848-1;;|Initializing
> Sun's JavaServer Faces implementation (1.2_04-b22-p05) for context
> ''|#]
> [#|2009-12-04T12:37:58.729+0000|INFO|sun-appserver2.1|
> com.sun.jbi.framework|
> _ThreadID=21;_ThreadName=httpWorkerThread-4848-1;|JBIFW0012: JBI
> framework startup complete.|#]
>
>
> sO MY QUESTION AGAIN IS - WHERE CAN I FIND A REFERENCE
> TO MY persistence-unit-ref-name????
>
> I'VE CHECKED MY domain.xml but no details.
>
> thanks
>
> eve
>
>
>
> From: ralph.winzinger@senacor.com
> To: users@glassfish.dev.java.net
> Date: Fri, 4 Dec 2009 00:42:46 +0100
> Subject: Re: Persistence unit ref:
>
> Hi,
>
> I got this working just about an ago ...
>
> web.xml:
>
>
>
persistence/hd > name>
>
hd >
>
> application-context.xml:
>
> > class
> =
> "org
> .springframework
> .orm.jpa.support.PersistenceAnnotationBeanPostProcessor" >
>
>
>
>

>
>
>
>

>
>

>
>
> Hope this helps ...
>
> Bye,
> Ralph
>
>
> Kurz gehalten, da vom iPhone gesendet
>
> Am 04.12.2009 um 00:16 schrieb "Eve Pokua" :
>
> Hello,
>
> Below is my persistence.xml-
>
>
>
> xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd
> ">
>
> jdbc_/EnterpriseDB2
> false
>
> >
>
>
>
> How do I find the name of my -persistence-unit-ref-name?
>
> I use the following and I get deployment error
>
>
ENTERPRISE-ejbPU > name>
>
> Deploying application in domain failed; Could not resolve a
> persistence unit corresponding to the persistence-unit-ref-name
> [ENTERPRISE-ejbPU] in scope of the module called [gfdeploy#C:\jee
> \ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war]. Please verify your
> application.
>
> I need to specify it within my web.xml in-order to use @Persistence
> in my spring JEE
> application.
>
> Thanking you.
>
> eve
>
>
>
> Use Hotmail to send and receive mail from your different email
> accounts. Find out how.
>
> New! Receive and respond to mail from other email accounts from
> within Hotmail Find out how.
>
> Ralph Winzinger
> Principal Architect
> ______________________________
> Senacor Technologies AG
> Vordere Cramergasse 11
> 90478 Nürnberg
>
> Telefon: +49 (0)911 4244-202
> Telefax: +49 (0)911 4244-100
>
> ralph.winzinger@senacor.com
> www.senacor.com
>
> Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> Vorstand: Matthias Tomann, Marcus Purzer -
> Aufsichtsratsvorsitzender: Mathias J. Lindermeir
>
>
> Add other email accounts to Hotmail in 3 easy steps. Find out how.

Ralph Winzinger
Principal Architect
______________________________
Senacor Technologies AG
Vordere Cramergasse 11
90478 Nürnberg

Telefon: +49 (0)911 4244-202
Telefax: +49 (0)911 4244-100

ralph.winzinger@senacor.com
www.senacor.com

Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg - Amtsgericht
Nürnberg - Reg.-Nr.: HRB 23098
Vorstand: Matthias Tomann, Marcus Purzer - Aufsichtsratsvorsitzender:
Mathias J. Lindermeir

[att1.html]

Eve Pokua

Ralph,

I have recreated my persistence.xml.

Please, note that I am using netbeans 6.7 to create my persistence.xml.

Here is the new file-

oracle.toplink.essentials.PersistenceProvider jdbc_/EnterpriseDB2

My problem comes when I have to

this to my web.xml-

persistence/ENTERPRISE-ejbPU ENTERPRISE-ejbPU

when I comment it out of my web.xml, my application deploys.

Ralph, could you please, double check your per.xml to see if you have the

persistence-unit-ref>

tag and also please, do reproduce my error by changing the per. name.

I'm sure you will reproduce the error.

This is what the JavaEE spec gives as an example:

persistence/InventoryAppDB
InventoryManagement

Mar. I am using netbeans to create the per.xml.

Thanking you for all your help.

eve

From: ralph.winzinger@senacor.de
To: users@glassfish.dev.java.net
Date: Fri, 4 Dec 2009 22:05:39 +0100
Subject: Re: Persistence unit ref:

Eve,

the only way, how I can reproduce your error is to change the value of
to something not matching the name in the persistence.xml. But thatseems to be ok in the snippets you sent. So I would go on and look for old files that might be still around - maybe there's another persistence.xml that is read by accident. Look inside the WAR and make sure that everything is as expected.

Bye,
Ralph

Am 04.12.2009 um 19:48 schrieb Eve Pokua:

Ralph,

Here is my per.xml

jdbc_/EnterpriseDB2
false

regards

eve

From: ralph.winzinger@senacor.de
To: users@glassfish.dev.java.net
Date: Fri, 4 Dec 2009 15:20:16 +0100
Subject: Re: Persistence unit ref:

hi,

what does your persistence.xml look like?

Am 04.12.2009 um 13:50 schrieb Eve Pokua:

Ralph,

Thank you for your reply.

I did as you said.

i added the following to my web.xml

persistence/ENTERPRISE-ejbPU ENTERPRISE-ejbPU

in my applicationContext.xml




But I still get the error -

[#|2009-12-04T12:34:05.536+0000|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=20;_ThreadName=Thread-48;_RequestID=3fb89f4d-e8ef-403f-a422-9e5442bf9b3a;|Exception occured in J2EEC Phase
com.sun.enterprise.deployment.backend.IASDeploymentException: Could not resolve a persistence unit corresponding to the persistence-unit-ref-name [persistence/ENTERPRISE-ejbPU] in scope of the module called [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war]. Please verify your application.
at com.sun.enterprise.deployment.BundleDescriptor.findReferencedPUsViaPURefs(BundleDescriptor.java:711)
at com.sun.enterprise.deployment.WebBundleDescriptor.findReferencedPUs(WebBundleDescriptor.java:727)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.getAllPersistenceUnitDescriptors(PersistenceProcessor.java:214)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.processApplication(PersistenceProcessor.java:175)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processApplication(DeploymentEventListenerImpl.java:211)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processEvent(DeploymentEventListenerImpl.java:172)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.notifyDeploymentEvent(DeploymentEventListenerImpl.java:122)
at com.sun.enterprise.deployment.backend.DeploymentEventManager.notifyDeploymentEvent(DeploymentEventManager.java:79)
at com.sun.enterprise.deployment.backend.AppDeployer.postDeploy(AppDeployer.java:401)
at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:260)
at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
|#]
[#|2009-12-04T12:37:03.074+0000|INFO|sun-appserver2.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;;|Initializing Sun's JavaServer Faces implementation (1.2_04-b22-p05) for context ''|#]
[#|2009-12-04T12:37:58.729+0000|INFO|sun-appserver2.1|com.sun.jbi.framework|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;|JBIFW0012: JBI framework startup complete.|#]

sO MY QUESTION AGAIN IS - WHERE CAN I FIND A REFERENCE
TO MY persistence-unit-ref-name????

I'VE CHECKED MY domain.xml but no details.

thanks

eve

From: ralph.winzinger@senacor.com
To: users@glassfish.dev.java.net
Date: Fri, 4 Dec 2009 00:42:46 +0100
Subject: Re: Persistence unit ref:

Hi,

I got this working just about an ago ...

web.xml:

persistence/hd hd

application-context.xml:




Hope this helps ...

Bye,
Ralph

Kurz gehalten, da vom iPhone gesendet

Am 04.12.2009 um 00:16 schrieb "Eve Pokua" :

Hello,

Below is my persistence.xml-

jdbc_/EnterpriseDB2
false

How do I find the name of my -persistence-unit-ref-name?

I use the following and I get deployment error

ENTERPRISE-ejbPU

Deploying application in domain failed; Could not resolve a persistence unit corresponding to the persistence-unit-ref-name [ENTERPRISE-ejbPU] in scope of the module called [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war]. Please verify your application.

I need to specify it within my web.xml in-order to use @Persistence in my spring JEE
application.

Thanking you.

eve

Use Hotmail to send and receive mail from your different email accounts. Find out how.

New! Receive and respond to mail from other email accounts from within Hotmail Find out how.

Ralph Winzinger
Principal Architect
______________________________
Senacor Technologies AG
Vordere Cramergasse 11
90478 Nürnberg

Telefon: +49 (0)911 4244-202
Telefax: +49 (0)911 4244-100

ralph.winzinger@senacor.com
www.senacor.com

Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg - Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
Vorstand: Matthias Tomann, Marcus Purzer - Aufsichtsratsvorsitzender: Mathias J. Lindermeir

Add other email accounts to Hotmail in 3 easy steps. Find out how.

Ralph Winzinger
Principal Architect
______________________________
Senacor Technologies AG
Vordere Cramergasse 11
90478 Nürnberg

Telefon: +49 (0)911 4244-202
Telefax: +49 (0)911 4244-100

ralph.winzinger@senacor.com
www.senacor.com

Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg - Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
Vorstand: Matthias Tomann, Marcus Purzer - Aufsichtsratsvorsitzender: Mathias J. Lindermeir

_________________________________________________________________
View your other email accounts from your Hotmail inbox. Add them now.
http://clk.atdmt.com/UKM/go/186394592/direct/01/
[att1.html]

Ralph Winzinger

well, I tried various constellations to test whether your error will
show up (renaming persistence.xml, changing the value in
unit-ref-name> (web.xml), changing
(persistence.xml)). But the error only occurred when the unit-names in
persistence.xml and web.xml did not match.

If your project is some kind of test-project, you might send your WAR
(if it is not too big of course) - I will try to throw it at my
container ...

Am 04.12.2009 um 22:51 schrieb Eve Pokua:

> Ralph,
>
> I have recreated my persistence.xml.
>
> Please, note that I am using netbeans 6.7 to create my
> persistence.xml.
>
> Here is the new file-
>
>
>
> xsi:schemaLocation="http://java.sun.com/xml/ns/persistencehttp://java.sun.com/xml/ns/persistence/persistence_1_0.xsd
> ">
>
>
oracle.toplink.essentials.PersistenceProvider > jdbc_/EnterpriseDB2
>
>
>
>
>
>
>
> My problem comes when I have to
>
> this to my web.xml-
>
>
>
persistence/ENTERPRISE-
> ejbPU
>
ENTERPRISE-ejbPU > unit-name>
>
>
> when I comment it out of my web.xml, my application deploys.
>
> Ralph, could you please, double check your per.xml to see if you
> have the
>
> persistence-unit-ref>
>
>
> tag and also please, do reproduce my error by changing the per. name.
>
> I'm sure you will reproduce the error.
>
>
> This is what the JavaEE spec gives as an example:
>
>
> persistence/InventoryAppDB
>
>
> InventoryManagement
>
>
>
> Mar. I am using netbeans to create the per.xml.
>
>
>
> Thanking you for all your help.
>
> eve
>
>
>
>
>
> From: ralph.winzinger@senacor.de
> To: users@glassfish.dev.java.net
> Date: Fri, 4 Dec 2009 22:05:39 +0100
> Subject: Re: Persistence unit ref:
>
> Eve,
>
> the only way, how I can reproduce your error is to change the value
> of
to something not matching the name in the
> persistence.xml. But thatseems to be ok in the snippets you sent. So
> I would go on and look for old files that might be still around -
> maybe there's another persistence.xml that is read by accident. Look
> inside the WAR and make sure that everything is as expected.
>
> Bye,
> Ralph
>
>
>
> Am 04.12.2009 um 19:48 schrieb Eve Pokua:
>
> Ralph,
>
> Here is my per.xml
>
>
>
>
>
> xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd
> ">
>
> jdbc_/EnterpriseDB2
> false
>
> >
>
>
>
> regards
>
> eve
>
> From: ralph.winzinger@senacor.de
> To: users@glassfish.dev.java.net
> Date: Fri, 4 Dec 2009 15:20:16 +0100
> Subject: Re: Persistence unit ref:
>
> hi,
>
> what does your persistence.xml look like?
>
>
> Am 04.12.2009 um 13:50 schrieb Eve Pokua:
>
> Ralph,
>
> Thank you for your reply.
>
> I did as you said.
>
> i added the following to my web.xml
>
>
>
>
>
persistence/ENTERPRISE-ejbPU > persistence-unit-ref-name>
>
ENTERPRISE-ejbPU >
>
>
>
> in my applicationContext.xml
>
> > class
> =
> "org
> .springframework
> .orm.jpa.support.PersistenceAnnotationBeanPostProcessor" >
>
>
>
>

>
>
>
>

>
>

>
>
>
> But I still get the error -
>
> [#|2009-12-04T12:34:05.536+0000|SEVERE|sun-appserver2.1|
> javax.enterprise.system.tools.deployment|
> _ThreadID=20;_ThreadName=Thread-48;_RequestID=3fb89f4d-e8ef-403f-
> a422-9e5442bf9b3a;|Exception occured in J2EEC Phase
> com.sun.enterprise.deployment.backend.IASDeploymentException: Could
> not resolve a persistence unit corresponding to the persistence-unit-
> ref-name [persistence/ENTERPRISE-ejbPU] in scope of the module
> called [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-
> war_war]. Please verify your application.
> at
> com
> .sun
> .enterprise
> .deployment
> .BundleDescriptor.findReferencedPUsViaPURefs(BundleDescriptor.java:
> 711)
> at
> com
> .sun
> .enterprise
> .deployment
> .WebBundleDescriptor.findReferencedPUs(WebBundleDescriptor.java:727)
> at
> com
> .sun
> .jdo
> .spi
> .persistence
> .support
> .ejb
> .ejbc
> .PersistenceProcessor
> .getAllPersistenceUnitDescriptors(PersistenceProcessor.java:214)
> at
> com
> .sun
> .jdo
> .spi
> .persistence
> .support
> .ejb
> .ejbc
> .PersistenceProcessor.processApplication(PersistenceProcessor.java:
> 175)
> at
> com
> .sun
> .jdo
> .spi
> .persistence
> .support
> .ejb
> .ejbc
> .DeploymentEventListenerImpl
> .processApplication(DeploymentEventListenerImpl.java:211)
> at
> com
> .sun
> .jdo
> .spi
> .persistence
> .support
> .ejb
> .ejbc
> .DeploymentEventListenerImpl
> .processEvent(DeploymentEventListenerImpl.java:172)
> at
> com
> .sun
> .jdo
> .spi
> .persistence
> .support
> .ejb
> .ejbc
> .DeploymentEventListenerImpl
> .notifyDeploymentEvent(DeploymentEventListenerImpl.java:122)
> at
> com
> .sun
> .enterprise
> .deployment
> .backend
> .DeploymentEventManager
> .notifyDeploymentEvent(DeploymentEventManager.java:79)
> at
> com
> .sun
> .enterprise
> .deployment.backend.AppDeployer.postDeploy(AppDeployer.java:401)
> at
> com
> .sun
> .enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:
> 260)
> at
> com
> .sun
> .enterprise
> .deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
> at
> com
> .sun
> .enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:
> 208)
> at
> com
> .sun
> .enterprise
> .deployment
> .phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
> at
> com
> .sun
> .enterprise
> .deployment
> .phasing.PEDeploymentService.executePhases(PEDeploymentService.java:
> 966)
> at
> com
> .sun
> .enterprise
> .deployment
> .phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
> at
> com
> .sun
> .enterprise
> .deployment
> .phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
> at
> com
> .sun
> .enterprise.management.deploy.DeployThread.deploy(DeployThread.java:
> 187)
> at
> com
> .sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:
> 225)
> |#]
> [#|2009-12-04T12:37:03.074+0000|INFO|sun-appserver2.1|
> javax.enterprise.resource.webcontainer.jsf.config|
> _ThreadID=21;_ThreadName=httpWorkerThread-4848-1;;|Initializing
> Sun's JavaServer Faces implementation (1.2_04-b22-p05) for context
> ''|#]
> [#|2009-12-04T12:37:58.729+0000|INFO|sun-appserver2.1|
> com.sun.jbi.framework|
> _ThreadID=21;_ThreadName=httpWorkerThread-4848-1;|JBIFW0012: JBI
> framework startup complete.|#]
>
>
> sO MY QUESTION AGAIN IS - WHERE CAN I FIND A REFERENCE
> TO MY persistence-unit-ref-name????
>
> I'VE CHECKED MY domain.xml but no details.
>
> thanks
>
> eve
>
>
>
> From: ralph.winzinger@senacor.com
> To: users@glassfish.dev.java.net
> Date: Fri, 4 Dec 2009 00:42:46 +0100
> Subject: Re: Persistence unit ref:
>
> Hi,
>
> I got this working just about an ago ...
>
> web.xml:
>
>
>
persistence/hd > name>
>
hd >
>
> application-context.xml:
>
> > class
> =
> "org
> .springframework
> .orm.jpa.support.PersistenceAnnotationBeanPostProcessor" >
>
>
>
>

>
>
>
>

>
>

>
>
> Hope this helps ...
>
> Bye,
> Ralph
>
>
> Kurz gehalten, da vom iPhone gesendet
>
> Am 04.12.2009 um 00:16 schrieb "Eve Pokua" :
>
> Hello,
>
> Below is my persistence.xml-
>
>
>
> xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd
> ">
>
> jdbc_/EnterpriseDB2
> false
>
> >
>
>
>
> How do I find the name of my -persistence-unit-ref-name?
>
> I use the following and I get deployment error
>
>
ENTERPRISE-ejbPU > name>
>
> Deploying application in domain failed; Could not resolve a
> persistence unit corresponding to the persistence-unit-ref-name
> [ENTERPRISE-ejbPU] in scope of the module called [gfdeploy#C:\jee
> \ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war]. Please verify your
> application.
>
> I need to specify it within my web.xml in-order to use @Persistence
> in my spring JEE
> application.
>
> Thanking you.
>
> eve
>
>
>
> Use Hotmail to send and receive mail from your different email
> accounts. Find out how.
>
> New! Receive and respond to mail from other email accounts from
> within Hotmail Find out how.
>
> Ralph Winzinger
> Principal Architect
> ______________________________
> Senacor Technologies AG
> Vordere Cramergasse 11
> 90478 Nürnberg
>
> Telefon: +49 (0)911 4244-202
> Telefax: +49 (0)911 4244-100
>
> ralph.winzinger@senacor.com
> www.senacor.com
>
> Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> Vorstand: Matthias Tomann, Marcus Purzer -
> Aufsichtsratsvorsitzender: Mathias J. Lindermeir
>
>
> Add other email accounts to Hotmail in 3 easy steps. Find out how.
>
> Ralph Winzinger
> Principal Architect
> ______________________________
> Senacor Technologies AG
> Vordere Cramergasse 11
> 90478 Nürnberg
>
> Telefon: +49 (0)911 4244-202
> Telefax: +49 (0)911 4244-100
>
> ralph.winzinger@senacor.com
> www.senacor.com
>
> Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> Vorstand: Matthias Tomann, Marcus Purzer -
> Aufsichtsratsvorsitzender: Mathias J. Lindermeir
>
>
> View your other email accounts from your Hotmail inbox. Add them now.

Ralph Winzinger
Principal Architect
______________________________
Senacor Technologies AG
Vordere Cramergasse 11
90478 Nürnberg

Telefon: +49 (0)911 4244-202
Telefax: +49 (0)911 4244-100

ralph.winzinger@senacor.com
www.senacor.com

Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg - Amtsgericht
Nürnberg - Reg.-Nr.: HRB 23098
Vorstand: Matthias Tomann, Marcus Purzer - Aufsichtsratsvorsitzender:
Mathias J. Lindermeir

[att1.html]

Eve Pokua

Ralph,

My application is very big.

Do you have spring?

In Marina's example

This is what the JavaEE spec gives as an example:

persistence/InventoryAppDB
InventoryManagement

I do not have what is bold in my per.xml

Shouldn't it be why I am getting an error? The web.xml can not

resolve -

Deploying application in domain failed; Could not resolve a persistence unit corresponding to the persistence-unit-ref-name [persistence/ENTERPRISE-ejbPU] in scope of the module called [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war]. Please verify your application.

IT's complaining about the per-unit-ref-name which is not in my per.xml.

How do I put that in? I tried to add it in but has been getting error.

Could you add it in and send it over?

I will try and see if I can send over a test app.

Thanking you.

eve

From: ralph.winzinger@senacor.de
To: users@glassfish.dev.java.net
Date: Fri, 4 Dec 2009 23:00:35 +0100
Subject: Re: Persistence unit ref:

well, I tried various constellations to test whether your error will show up (renaming persistence.xml, changing the value in
(web.xml), changing
(persistence.xml)). But the error only occurred when the unit-names in persistence.xml and web.xml did not match.

If your project is some kind of test-project, you might send your WAR (if it is not too big of course) - I will try to throw it at my container ...

Am 04.12.2009 um 22:51 schrieb Eve Pokua:

Ralph,

I have recreated my persistence.xml.

Please, note that I am using netbeans 6.7 to create my persistence.xml.

Here is the new file-

oracle.toplink.essentials.PersistenceProvider jdbc_/EnterpriseDB2

My problem comes when I have to

this to my web.xml-

persistence/ENTERPRISE-ejbPU ENTERPRISE-ejbPU

when I comment it out of my web.xml, my application deploys.

Ralph, could you please, double check your per.xml to see if you have the

persistence-unit-ref>

tag and also please, do reproduce my error by changing the per. name.

I'm sure you will reproduce the error.

This is what the JavaEE spec gives as an example:

persistence/InventoryAppDB
InventoryManagement

Mar. I am using netbeans to create the per.xml.

Thanking you for all your help.

eve

From: ralph.winzinger@senacor.de
To: users@glassfish.dev.java.net
Date: Fri, 4 Dec 2009 22:05:39 +0100
Subject: Re: Persistence unit ref:

Eve,

the only way, how I can reproduce your error is to change the value of
to something not matching the name in the persistence.xml. But thatseems to be ok in the snippets you sent. So I would go on and look for old files that might be still around - maybe there's another persistence.xml that is read by accident. Look inside the WAR and make sure that everything is as expected.

Bye,
Ralph

Am 04.12.2009 um 19:48 schrieb Eve Pokua:

Ralph,

Here is my per.xml

jdbc_/EnterpriseDB2
false

regards

eve

From: ralph.winzinger@senacor.de
To: users@glassfish.dev.java.net
Date: Fri, 4 Dec 2009 15:20:16 +0100
Subject: Re: Persistence unit ref:

hi,

what does your persistence.xml look like?

Am 04.12.2009 um 13:50 schrieb Eve Pokua:

Ralph,

Thank you for your reply.

I did as you said.

i added the following to my web.xml

persistence/ENTERPRISE-ejbPU ENTERPRISE-ejbPU

in my applicationContext.xml




But I still get the error -

[#|2009-12-04T12:34:05.536+0000|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=20;_ThreadName=Thread-48;_RequestID=3fb89f4d-e8ef-403f-a422-9e5442bf9b3a;|Exception occured in J2EEC Phase
com.sun.enterprise.deployment.backend.IASDeploymentException: Could not resolve a persistence unit corresponding to the persistence-unit-ref-name [persistence/ENTERPRISE-ejbPU] in scope of the module called [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war]. Please verify your application.
at com.sun.enterprise.deployment.BundleDescriptor.findReferencedPUsViaPURefs(BundleDescriptor.java:711)
at com.sun.enterprise.deployment.WebBundleDescriptor.findReferencedPUs(WebBundleDescriptor.java:727)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.getAllPersistenceUnitDescriptors(PersistenceProcessor.java:214)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.processApplication(PersistenceProcessor.java:175)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processApplication(DeploymentEventListenerImpl.java:211)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processEvent(DeploymentEventListenerImpl.java:172)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.notifyDeploymentEvent(DeploymentEventListenerImpl.java:122)
at com.sun.enterprise.deployment.backend.DeploymentEventManager.notifyDeploymentEvent(DeploymentEventManager.java:79)
at com.sun.enterprise.deployment.backend.AppDeployer.postDeploy(AppDeployer.java:401)
at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:260)
at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
|#]
[#|2009-12-04T12:37:03.074+0000|INFO|sun-appserver2.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;;|Initializing Sun's JavaServer Faces implementation (1.2_04-b22-p05) for context ''|#]
[#|2009-12-04T12:37:58.729+0000|INFO|sun-appserver2.1|com.sun.jbi.framework|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;|JBIFW0012: JBI framework startup complete.|#]

sO MY QUESTION AGAIN IS - WHERE CAN I FIND A REFERENCE
TO MY persistence-unit-ref-name????

I'VE CHECKED MY domain.xml but no details.

thanks

eve

From: ralph.winzinger@senacor.com
To: users@glassfish.dev.java.net
Date: Fri, 4 Dec 2009 00:42:46 +0100
Subject: Re: Persistence unit ref:

Hi,

I got this working just about an ago ...

web.xml:

persistence/hd hd

application-context.xml:




Hope this helps ...

Bye,
Ralph

Kurz gehalten, da vom iPhone gesendet

Am 04.12.2009 um 00:16 schrieb "Eve Pokua" :

Hello,

Below is my persistence.xml-

jdbc_/EnterpriseDB2
false

How do I find the name of my -persistence-unit-ref-name?

I use the following and I get deployment error

ENTERPRISE-ejbPU

Deploying application in domain failed; Could not resolve a persistence unit corresponding to the persistence-unit-ref-name [ENTERPRISE-ejbPU] in scope of the module called [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war]. Please verify your application.

I need to specify it within my web.xml in-order to use @Persistence in my spring JEE
application.

Thanking you.

eve

Use Hotmail to send and receive mail from your different email accounts. Find out how.

New! Receive and respond to mail from other email accounts from within Hotmail Find out how.

Ralph Winzinger
Principal Architect
______________________________
Senacor Technologies AG
Vordere Cramergasse 11
90478 Nürnberg

Telefon: +49 (0)911 4244-202
Telefax: +49 (0)911 4244-100

ralph.winzinger@senacor.com
www.senacor.com

Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg - Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
Vorstand: Matthias Tomann, Marcus Purzer - Aufsichtsratsvorsitzender: Mathias J. Lindermeir

Add other email accounts to Hotmail in 3 easy steps. Find out how.

Ralph Winzinger
Principal Architect
______________________________
Senacor Technologies AG
Vordere Cramergasse 11
90478 Nürnberg

Telefon: +49 (0)911 4244-202
Telefax: +49 (0)911 4244-100

ralph.winzinger@senacor.com
www.senacor.com

Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg - Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
Vorstand: Matthias Tomann, Marcus Purzer - Aufsichtsratsvorsitzender: Mathias J. Lindermeir

View your other email accounts from your Hotmail inbox. Add them now.

Ralph Winzinger
Principal Architect
______________________________
Senacor Technologies AG
Vordere Cramergasse 11
90478 Nürnberg

Telefon: +49 (0)911 4244-202
Telefax: +49 (0)911 4244-100

ralph.winzinger@senacor.com
www.senacor.com

Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg - Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
Vorstand: Matthias Tomann, Marcus Purzer - Aufsichtsratsvorsitzender: Mathias J. Lindermeir

_________________________________________________________________
View your other email accounts from your Hotmail inbox. Add them now.
http://clk.atdmt.com/UKM/go/186394592/direct/01/
[att1.html]

Ralph Winzinger

No, I don't think that will help. As far as I know, the "ref" is just
a reference to your persistence unit defined in persistence.xml.
Within your web-application, the persistence unit can be used with
this reference. The reason for this is to provide some kind of
abstraction in your application.

Thus, if you define a persistence-unit-ref (with persistence-unit-ref-
name="xyz") the corresponding persisence-unit-name is expected to be
found in your persistence.xml.

My WAR is to big either, but check out my configuration files:

You said, your application would deploy if you leave out the
persistence-unit-ref - but does it also work? And exactly where (path)
in your WAR is your persistence.xml?

Bye,
Ralph

Am 04.12.2009 um 23:32 schrieb Eve Pokua:

> Ralph,
>
> My application is very big.
>
> Do you have spring?
>
> In Marina's example
>
> This is what the JavaEE spec gives as an example:
>
>
> persistence/InventoryAppDB
>
>
> InventoryManagement
>
>
>
>
>
> I do not have what is bold in my per.xml
>
> Shouldn't it be why I am getting an error? The web.xml can not
> resolve -
>
> Deploying application in domain failed; Could not resolve a
> persistence unit corresponding to the persistence-unit-ref-name
> [persistence/ENTERPRISE-ejbPU] in scope of the module called
> [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> Please verify your application.
>
> IT's complaining about the per-unit-ref-name which is not in my
> per.xml.
>
>
> How do I put that in? I tried to add it in but has been getting error.
> Could you add it in and send it over?
>
> I will try and see if I can send over a test app.
>
> Thanking you.
>
> eve
>
>
>
>
>
>
>
>
> From: ralph.winzinger@senacor.de
> To: users@glassfish.dev.java.net
> Date: Fri, 4 Dec 2009 23:00:35 +0100
> Subject: Re: Persistence unit ref:
>
> well, I tried various constellations to test whether your error will
> show up (renaming persistence.xml, changing the value in
>
(web.xml), changing
> name=...> (persistence.xml)). But the error only occurred when the
> unit-names in persistence.xml and web.xml did not match.
>
> If your project is some kind of test-project, you might send your
> WAR (if it is not too big of course) - I will try to throw it at my
> container ...
>
>
> Am 04.12.2009 um 22:51 schrieb Eve Pokua:
>
> Ralph,
>
> I have recreated my persistence.xml.
>
> Please, note that I am using netbeans 6.7 to create my
> persistence.xml.
>
> Here is the new file-
>
>
>
> xsi:schemaLocation="http://java.sun.com/xml/ns/persistencehttp://java.sun.com/xml/ns/persistence/persistence_1_0.xsd
> ">
>
>
oracle.toplink.essentials.PersistenceProvider > jdbc_/EnterpriseDB2
>
>
>
>
>
>
>
> My problem comes when I have to
>
> this to my web.xml-
>
>
>
persistence/ENTERPRISE-
> ejbPU
>
ENTERPRISE-ejbPU > unit-name>
>
>
> when I comment it out of my web.xml, my application deploys.
>
> Ralph, could you please, double check your per.xml to see if you
> have the
>
> persistence-unit-ref>
>
>
> tag and also please, do reproduce my error by changing the per. name.
>
> I'm sure you will reproduce the error.
>
>
> This is what the JavaEE spec gives as an example:
>
>
> persistence/InventoryAppDB
>
>
> InventoryManagement
>
>
>
> Mar. I am using netbeans to create the per.xml.
>
>
>
> Thanking you for all your help.
>
> eve
>
>
>
>
>
> From: ralph.winzinger@senacor.de
> To: users@glassfish.dev.java.net
> Date: Fri, 4 Dec 2009 22:05:39 +0100
> Subject: Re: Persistence unit ref:
>
> Eve,
>
> the only way, how I can reproduce your error is to change the value
> of
to something not matching the name in the
> persistence.xml. But thatseems to be ok in the snippets you sent. So
> I would go on and look for old files that might be still around -
> maybe there's another persistence.xml that is read by accident. Look
> inside the WAR and make sure that everything is as expected.
>
> Bye,
> Ralph
>
>
>
> Am 04.12.2009 um 19:48 schrieb Eve Pokua:
>
> Ralph,
>
> Here is my per.xml
>
>
>
>
>
> xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd
> ">
>
> jdbc_/EnterpriseDB2
> false
>
> >
>
>
>
> regards
>
> eve
>
> From: ralph.winzinger@senacor.de
> To: users@glassfish.dev.java.net
> Date: Fri, 4 Dec 2009 15:20:16 +0100
> Subject: Re: Persistence unit ref:
>
> hi,
>
> what does your persistence.xml look like?
>
>
> Am 04.12.2009 um 13:50 schrieb Eve Pokua:
>
> Ralph,
>
> Thank you for your reply.
>
> I did as you said.
>
> i added the following to my web.xml
>
>
>
>
>
persistence/ENTERPRISE-ejbPU > persistence-unit-ref-name>
>
ENTERPRISE-ejbPU >
>
>
>
> in my applicationContext.xml
>
> > class
> =
> "org
> .springframework
> .orm.jpa.support.PersistenceAnnotationBeanPostProcessor" >
>
>
>
>

>
>
>
>

>
>

>
>
>
> But I still get the error -
>
> [#|2009-12-04T12:34:05.536+0000|SEVERE|sun-appserver2.1|
> javax.enterprise.system.tools.deployment|
> _ThreadID=20;_ThreadName=Thread-48;_RequestID=3fb89f4d-e8ef-403f-
> a422-9e5442bf9b3a;|Exception occured in J2EEC Phase
> com.sun.enterprise.deployment.backend.IASDeploymentException: Could
> not resolve a persistence unit corresponding to the persistence-unit-
> ref-name [persistence/ENTERPRISE-ejbPU] in scope of the module
> called [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-
> war_war]. Please verify your application.
> at
> com
> .sun
> .enterprise
> .deployment
> .BundleDescriptor.findReferencedPUsViaPURefs(BundleDescriptor.java:
> 711)
> at
> com
> .sun
> .enterprise
> .deployment
> .WebBundleDescriptor.findReferencedPUs(WebBundleDescriptor.java:727)
> at
> com
> .sun
> .jdo
> .spi
> .persistence
> .support
> .ejb
> .ejbc
> .PersistenceProcessor
> .getAllPersistenceUnitDescriptors(PersistenceProcessor.java:214)
> at
> com
> .sun
> .jdo
> .spi
> .persistence
> .support
> .ejb
> .ejbc
> .PersistenceProcessor.processApplication(PersistenceProcessor.java:
> 175)
> at
> com
> .sun
> .jdo
> .spi
> .persistence
> .support
> .ejb
> .ejbc
> .DeploymentEventListenerImpl
> .processApplication(DeploymentEventListenerImpl.java:211)
> at
> com
> .sun
> .jdo
> .spi
> .persistence
> .support
> .ejb
> .ejbc
> .DeploymentEventListenerImpl
> .processEvent(DeploymentEventListenerImpl.java:172)
> at
> com
> .sun
> .jdo
> .spi
> .persistence
> .support
> .ejb
> .ejbc
> .DeploymentEventListenerImpl
> .notifyDeploymentEvent(DeploymentEventListenerImpl.java:122)
> at
> com
> .sun
> .enterprise
> .deployment
> .backend
> .DeploymentEventManager
> .notifyDeploymentEvent(DeploymentEventManager.java:79)
> at
> com
> .sun
> .enterprise
> .deployment.backend.AppDeployer.postDeploy(AppDeployer.java:401)
> at
> com
> .sun
> .enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:
> 260)
> at
> com
> .sun
> .enterprise
> .deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
> at
> com
> .sun
> .enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:
> 208)
> at
> com
> .sun
> .enterprise
> .deployment
> .phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
> at
> com
> .sun
> .enterprise
> .deployment
> .phasing.PEDeploymentService.executePhases(PEDeploymentService.java:
> 966)
> at
> com
> .sun
> .enterprise
> .deployment
> .phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
> at
> com
> .sun
> .enterprise
> .deployment
> .phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
> at
> com
> .sun
> .enterprise.management.deploy.DeployThread.deploy(DeployThread.java:
> 187)
> at
> com
> .sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:
> 225)
> |#]
> [#|2009-12-04T12:37:03.074+0000|INFO|sun-appserver2.1|
> javax.enterprise.resource.webcontainer.jsf.config|
> _ThreadID=21;_ThreadName=httpWorkerThread-4848-1;;|Initializing
> Sun's JavaServer Faces implementation (1.2_04-b22-p05) for context
> ''|#]
> [#|2009-12-04T12:37:58.729+0000|INFO|sun-appserver2.1|
> com.sun.jbi.framework|
> _ThreadID=21;_ThreadName=httpWorkerThread-4848-1;|JBIFW0012: JBI
> framework startup complete.|#]
>
>
> sO MY QUESTION AGAIN IS - WHERE CAN I FIND A REFERENCE
> TO MY persistence-unit-ref-name????
>
> I'VE CHECKED MY domain.xml but no details.
>
> thanks
>
> eve
>
>
>
> From: ralph.winzinger@senacor.com
> To: users@glassfish.dev.java.net
> Date: Fri, 4 Dec 2009 00:42:46 +0100
> Subject: Re: Persistence unit ref:
>
> Hi,
>
> I got this working just about an ago ...
>
> web.xml:
>
>
>
persistence/hd > name>
>
hd >
>
> application-context.xml:
>
> > class
> =
> "org
> .springframework
> .orm.jpa.support.PersistenceAnnotationBeanPostProcessor" >
>
>
>
>

>
>
>
>

>
>

>
>
> Hope this helps ...
>
> Bye,
> Ralph
>
>
> Kurz gehalten, da vom iPhone gesendet
>
> Am 04.12.2009 um 00:16 schrieb "Eve Pokua" :
>
> Hello,
>
> Below is my persistence.xml-
>
>
>
> xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd
> ">
>
> jdbc_/EnterpriseDB2
> false
>
> >
>
>
>
> How do I find the name of my -persistence-unit-ref-name?
>
> I use the following and I get deployment error
>
>
ENTERPRISE-ejbPU > name>
>
> Deploying application in domain failed; Could not resolve a
> persistence unit corresponding to the persistence-unit-ref-name
> [ENTERPRISE-ejbPU] in scope of the module called [gfdeploy#C:\jee
> \ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war]. Please verify your
> application.
>
> I need to specify it within my web.xml in-order to use @Persistence
> in my spring JEE
> application.
>
> Thanking you.
>
> eve
>
>
>
> Use Hotmail to send and receive mail from your different email
> accounts. Find out how.
>
> New! Receive and respond to mail from other email accounts from
> within Hotmail Find out how.
>
> Ralph Winzinger
> Principal Architect
> ______________________________
> Senacor Technologies AG
> Vordere Cramergasse 11
> 90478 Nürnberg
>
> Telefon: +49 (0)911 4244-202
> Telefax: +49 (0)911 4244-100
>
> ralph.winzinger@senacor.com
> www.senacor.com
>
> Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> Vorstand: Matthias Tomann, Marcus Purzer -
> Aufsichtsratsvorsitzender: Mathias J. Lindermeir
>
>
> Add other email accounts to Hotmail in 3 easy steps. Find out how.
>
> Ralph Winzinger
> Principal Architect
> ______________________________
> Senacor Technologies AG
> Vordere Cramergasse 11
> 90478 Nürnberg
>
> Telefon: +49 (0)911 4244-202
> Telefax: +49 (0)911 4244-100
>
> ralph.winzinger@senacor.com
> www.senacor.com
>
> Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> Vorstand: Matthias Tomann, Marcus Purzer -
> Aufsichtsratsvorsitzender: Mathias J. Lindermeir
>
>
> View your other email accounts from your Hotmail inbox. Add them now.
>
> Ralph Winzinger
> Principal Architect
> ______________________________
> Senacor Technologies AG
> Vordere Cramergasse 11
> 90478 Nürnberg
>
> Telefon: +49 (0)911 4244-202
> Telefax: +49 (0)911 4244-100
>
> ralph.winzinger@senacor.com
> www.senacor.com
>
> Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg -
> Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
> Vorstand: Matthias Tomann, Marcus Purzer -
> Aufsichtsratsvorsitzender: Mathias J. Lindermeir
>
>
> View your other email accounts from your Hotmail inbox. Add them now.

Ralph Winzinger
Principal Architect
______________________________
Senacor Technologies AG
Vordere Cramergasse 11
90478 Nürnberg

Telefon: +49 (0)911 4244-202
Telefax: +49 (0)911 4244-100

ralph.winzinger@senacor.com
www.senacor.com

Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg - Amtsgericht
Nürnberg - Reg.-Nr.: HRB 23098
Vorstand: Matthias Tomann, Marcus Purzer - Aufsichtsratsvorsitzender:
Mathias J. Lindermeir

[att1.html]
[persistence.xml]
[att1.html]
[applicationContext.xml]
[att1.html]
[web.xml]
[att1.html]

Attachment not added (too many attachments): "applicationContext.xml"
Attachment not added (too many attachments): "att1.html"
Attachment not added (too many attachments): "web.xml"
Attachment not added (too many attachments): "att1.html"

Winzinger, Ralph

Hi,

I got this working just about an ago ...

web.xml:

persistence/hd name>
hd

application-context.xml:

class=
"org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"
>




Hope this helps ...

Bye,
Ralph

Kurz gehalten, da vom iPhone gesendet

Am 04.12.2009 um 00:16 schrieb "Eve Pokua" :

> Hello,
>
> Below is my persistence.xml-
>
>
>
> xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd
> ">
>
> jdbc_/EnterpriseDB2
> false
>
> >
>
>
>
> How do I find the name of my -persistence-unit-ref-name?
>
> I use the following and I get deployment error
>
>
ENTERPRISE-ejbPU > name>
>
> Deploying application in domain failed; Could not resolve a
> persistence unit corresponding to the persistence-unit-ref-name
> [ENTERPRISE-ejbPU] in scope of the module called [gfdeploy#C:\jee
> \ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war]. Please verify your
> application.
>
> I need to specify it within my web.xml in-order to use @Persistence
> in my spring JEE
> application.
>
> Thanking you.
>
> eve
>
>
>
> Use Hotmail to send and receive mail from your different email
> accounts. Find out how.
[att1.html]

Eve Pokua

Ralph,

Thank you for your reply.

I did as you said.

i added the following to my web.xml

persistence/ENTERPRISE-ejbPU ENTERPRISE-ejbPU

in my applicationContext.xml




But I still get the error -

[#|2009-12-04T12:34:05.536+0000|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=20;_ThreadName=Thread-48;_RequestID=3fb89f4d-e8ef-403f-a422-9e5442bf9b3a;|Exception occured in J2EEC Phase
com.sun.enterprise.deployment.backend.IASDeploymentException: Could not resolve a persistence unit corresponding to the persistence-unit-ref-name [persistence/ENTERPRISE-ejbPU] in scope of the module called [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war]. Please verify your application.
at com.sun.enterprise.deployment.BundleDescriptor.findReferencedPUsViaPURefs(BundleDescriptor.java:711)
at com.sun.enterprise.deployment.WebBundleDescriptor.findReferencedPUs(WebBundleDescriptor.java:727)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.getAllPersistenceUnitDescriptors(PersistenceProcessor.java:214)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.processApplication(PersistenceProcessor.java:175)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processApplication(DeploymentEventListenerImpl.java:211)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processEvent(DeploymentEventListenerImpl.java:172)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.notifyDeploymentEvent(DeploymentEventListenerImpl.java:122)
at com.sun.enterprise.deployment.backend.DeploymentEventManager.notifyDeploymentEvent(DeploymentEventManager.java:79)
at com.sun.enterprise.deployment.backend.AppDeployer.postDeploy(AppDeployer.java:401)
at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:260)
at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
|#]

[#|2009-12-04T12:37:03.074+0000|INFO|sun-appserver2.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;;|Initializing Sun's JavaServer Faces implementation (1.2_04-b22-p05) for context ''|#]

[#|2009-12-04T12:37:58.729+0000|INFO|sun-appserver2.1|com.sun.jbi.framework|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;|JBIFW0012: JBI framework startup complete.|#]

sO MY QUESTION AGAIN IS - WHERE CAN I FIND A REFERENCE

TO MY persistence-unit-ref-name????

I'VE CHECKED MY domain.xml but no details.

thanks

eve

From: ralph.winzinger@senacor.com
To: users@glassfish.dev.java.net
Date: Fri, 4 Dec 2009 00:42:46 +0100
Subject: Re: Persistence unit ref:

Hi,

I got this working just about an ago ...

web.xml:

persistence/hd hd

application-context.xml:




Hope this helps ...

Bye,
Ralph

Kurz gehalten, da vom iPhone gesendet

Am 04.12.2009 um 00:16 schrieb "Eve Pokua" :

Hello,

Below is my persistence.xml-

jdbc_/EnterpriseDB2
false

How do I find the name of my -persistence-unit-ref-name?

I use the following and I get deployment error

ENTERPRISE-ejbPU

Deploying application in domain failed; Could not resolve a persistence unit corresponding to the persistence-unit-ref-name [ENTERPRISE-ejbPU] in scope of the module called [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war]. Please verify your application.

I need to specify it within my web.xml in-order to use @Persistence in my spring JEE
application.

Thanking you.

eve

Use Hotmail to send and receive mail from your different email accounts. Find out how.
_________________________________________________________________
Got more than one Hotmail account? Save time by linking them together
http://clk.atdmt.com/UKM/go/186394591/direct/01/
[att1.html]

Ralph Winzinger

hi,

what does your persistence.xml look like?

Am 04.12.2009 um 13:50 schrieb Eve Pokua:

> Ralph,
>
> Thank you for your reply.
>
> I did as you said.
>
> i added the following to my web.xml
>
>
>
>
>
persistence/ENTERPRISE-ejbPU > persistence-unit-ref-name>
>
ENTERPRISE-ejbPU >
>
>
>
> in my applicationContext.xml
>
> > class
> =
> "org
> .springframework
> .orm.jpa.support.PersistenceAnnotationBeanPostProcessor" >
>
>
>
>

>
>
>
>

>
>

>
>
>
> But I still get the error -
>
> [#|2009-12-04T12:34:05.536+0000|SEVERE|sun-appserver2.1|
> javax.enterprise.system.tools.deployment|
> _ThreadID=20;_ThreadName=Thread-48;_RequestID=3fb89f4d-e8ef-403f-
> a422-9e5442bf9b3a;|Exception occured in J2EEC Phase
> com.sun.enterprise.deployment.backend.IASDeploymentException: Could
> not resolve a persistence unit corresponding to the persistence-unit-
> ref-name [persistence/ENTERPRISE-ejbPU] in scope of the module
> called [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-
> war_war]. Please verify your application.
> at
> com
> .sun
> .enterprise
> .deployment
> .BundleDescriptor.findReferencedPUsViaPURefs(BundleDescriptor.java:
> 711)
> at
> com
> .sun
> .enterprise
> .deployment
> .WebBundleDescriptor.findReferencedPUs(WebBundleDescriptor.java:727)
> at
> com
> .sun
> .jdo
> .spi
> .persistence
> .support
> .ejb
> .ejbc
> .PersistenceProcessor
> .getAllPersistenceUnitDescriptors(PersistenceProcessor.java:214)
> at
> com
> .sun
> .jdo
> .spi
> .persistence
> .support
> .ejb
> .ejbc
> .PersistenceProcessor.processApplication(PersistenceProcessor.java:
> 175)
> at
> com
> .sun
> .jdo
> .spi
> .persistence
> .support
> .ejb
> .ejbc
> .DeploymentEventListenerImpl
> .processApplication(DeploymentEventListenerImpl.java:211)
> at
> com
> .sun
> .jdo
> .spi
> .persistence
> .support
> .ejb
> .ejbc
> .DeploymentEventListenerImpl
> .processEvent(DeploymentEventListenerImpl.java:172)
> at
> com
> .sun
> .jdo
> .spi
> .persistence
> .support
> .ejb
> .ejbc
> .DeploymentEventListenerImpl
> .notifyDeploymentEvent(DeploymentEventListenerImpl.java:122)
> at
> com
> .sun
> .enterprise
> .deployment
> .backend
> .DeploymentEventManager
> .notifyDeploymentEvent(DeploymentEventManager.java:79)
> at
> com
> .sun
> .enterprise
> .deployment.backend.AppDeployer.postDeploy(AppDeployer.java:401)
> at
> com
> .sun
> .enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:
> 260)
> at
> com
> .sun
> .enterprise
> .deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
> at
> com
> .sun
> .enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:
> 208)
> at
> com
> .sun
> .enterprise
> .deployment
> .phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
> at
> com
> .sun
> .enterprise
> .deployment
> .phasing.PEDeploymentService.executePhases(PEDeploymentService.java:
> 966)
> at
> com
> .sun
> .enterprise
> .deployment
> .phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
> at
> com
> .sun
> .enterprise
> .deployment
> .phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
> at
> com
> .sun
> .enterprise.management.deploy.DeployThread.deploy(DeployThread.java:
> 187)
> at
> com
> .sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:
> 225)
> |#]
> [#|2009-12-04T12:37:03.074+0000|INFO|sun-appserver2.1|
> javax.enterprise.resource.webcontainer.jsf.config|
> _ThreadID=21;_ThreadName=httpWorkerThread-4848-1;;|Initializing
> Sun's JavaServer Faces implementation (1.2_04-b22-p05) for context
> ''|#]
> [#|2009-12-04T12:37:58.729+0000|INFO|sun-appserver2.1|
> com.sun.jbi.framework|
> _ThreadID=21;_ThreadName=httpWorkerThread-4848-1;|JBIFW0012: JBI
> framework startup complete.|#]
>
>
> sO MY QUESTION AGAIN IS - WHERE CAN I FIND A REFERENCE
> TO MY persistence-unit-ref-name????
>
> I'VE CHECKED MY domain.xml but no details.
>
> thanks
>
> eve
>
>
>
> From: ralph.winzinger@senacor.com
> To: users@glassfish.dev.java.net
> Date: Fri, 4 Dec 2009 00:42:46 +0100
> Subject: Re: Persistence unit ref:
>
> Hi,
>
> I got this working just about an ago ...
>
> web.xml:
>
>
>
persistence/hd > name>
>
hd >
>
> application-context.xml:
>
> > class
> =
> "org
> .springframework
> .orm.jpa.support.PersistenceAnnotationBeanPostProcessor" >
>
>
>
>

>
>
>
>

>
>

>
>
> Hope this helps ...
>
> Bye,
> Ralph
>
>
> Kurz gehalten, da vom iPhone gesendet
>
> Am 04.12.2009 um 00:16 schrieb "Eve Pokua" :
>
> Hello,
>
> Below is my persistence.xml-
>
>
>
> xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd
> ">
>
> jdbc_/EnterpriseDB2
> false
>
> >
>
>
>
> How do I find the name of my -persistence-unit-ref-name?
>
> I use the following and I get deployment error
>
>
ENTERPRISE-ejbPU > name>
>
> Deploying application in domain failed; Could not resolve a
> persistence unit corresponding to the persistence-unit-ref-name
> [ENTERPRISE-ejbPU] in scope of the module called [gfdeploy#C:\jee
> \ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war]. Please verify your
> application.
>
> I need to specify it within my web.xml in-order to use @Persistence
> in my spring JEE
> application.
>
> Thanking you.
>
> eve
>
>
>
> Use Hotmail to send and receive mail from your different email
> accounts. Find out how.
>
> New! Receive and respond to mail from other email accounts from
> within Hotmail Find out how.

Ralph Winzinger
Principal Architect
______________________________
Senacor Technologies AG
Vordere Cramergasse 11
90478 Nürnberg

Telefon: +49 (0)911 4244-202
Telefax: +49 (0)911 4244-100

ralph.winzinger@senacor.com
www.senacor.com

Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg - Amtsgericht
Nürnberg - Reg.-Nr.: HRB 23098
Vorstand: Matthias Tomann, Marcus Purzer - Aufsichtsratsvorsitzender:
Mathias J. Lindermeir

[att1.html]

Eve Pokua

Ralph,

Here is my per.xml

jdbc_/EnterpriseDB2

false

regards

eve

From: ralph.winzinger@senacor.de
To: users@glassfish.dev.java.net
Date: Fri, 4 Dec 2009 15:20:16 +0100
Subject: Re: Persistence unit ref:

hi,

what does your persistence.xml look like?

Am 04.12.2009 um 13:50 schrieb Eve Pokua:

Ralph,

Thank you for your reply.

I did as you said.

i added the following to my web.xml

persistence/ENTERPRISE-ejbPU ENTERPRISE-ejbPU

in my applicationContext.xml




But I still get the error -

[#|2009-12-04T12:34:05.536+0000|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=20;_ThreadName=Thread-48;_RequestID=3fb89f4d-e8ef-403f-a422-9e5442bf9b3a;|Exception occured in J2EEC Phase
com.sun.enterprise.deployment.backend.IASDeploymentException: Could not resolve a persistence unit corresponding to the persistence-unit-ref-name [persistence/ENTERPRISE-ejbPU] in scope of the module called [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war]. Please verify your application.
at com.sun.enterprise.deployment.BundleDescriptor.findReferencedPUsViaPURefs(BundleDescriptor.java:711)
at com.sun.enterprise.deployment.WebBundleDescriptor.findReferencedPUs(WebBundleDescriptor.java:727)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.getAllPersistenceUnitDescriptors(PersistenceProcessor.java:214)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.processApplication(PersistenceProcessor.java:175)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processApplication(DeploymentEventListenerImpl.java:211)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processEvent(DeploymentEventListenerImpl.java:172)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.notifyDeploymentEvent(DeploymentEventListenerImpl.java:122)
at com.sun.enterprise.deployment.backend.DeploymentEventManager.notifyDeploymentEvent(DeploymentEventManager.java:79)
at com.sun.enterprise.deployment.backend.AppDeployer.postDeploy(AppDeployer.java:401)
at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:260)
at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
|#]
[#|2009-12-04T12:37:03.074+0000|INFO|sun-appserver2.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;;|Initializing Sun's JavaServer Faces implementation (1.2_04-b22-p05) for context ''|#]
[#|2009-12-04T12:37:58.729+0000|INFO|sun-appserver2.1|com.sun.jbi.framework|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;|JBIFW0012: JBI framework startup complete.|#]

sO MY QUESTION AGAIN IS - WHERE CAN I FIND A REFERENCE
TO MY persistence-unit-ref-name????

I'VE CHECKED MY domain.xml but no details.

thanks

eve

From: ralph.winzinger@senacor.com
To: users@glassfish.dev.java.net
Date: Fri, 4 Dec 2009 00:42:46 +0100
Subject: Re: Persistence unit ref:

Hi,

I got this working just about an ago ...

web.xml:

persistence/hd hd

application-context.xml:




Hope this helps ...

Bye,
Ralph

Kurz gehalten, da vom iPhone gesendet

Am 04.12.2009 um 00:16 schrieb "Eve Pokua" :

Hello,

Below is my persistence.xml-

jdbc_/EnterpriseDB2
false

How do I find the name of my -persistence-unit-ref-name?

I use the following and I get deployment error

ENTERPRISE-ejbPU

Deploying application in domain failed; Could not resolve a persistence unit corresponding to the persistence-unit-ref-name [ENTERPRISE-ejbPU] in scope of the module called [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war]. Please verify your application.

I need to specify it within my web.xml in-order to use @Persistence in my spring JEE
application.

Thanking you.

eve

Use Hotmail to send and receive mail from your different email accounts. Find out how.

New! Receive and respond to mail from other email accounts from within Hotmail Find out how.

Ralph Winzinger
Principal Architect
______________________________
Senacor Technologies AG
Vordere Cramergasse 11
90478 Nürnberg

Telefon: +49 (0)911 4244-202
Telefax: +49 (0)911 4244-100

ralph.winzinger@senacor.com
www.senacor.com

Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg - Amtsgericht Nürnberg - Reg.-Nr.: HRB 23098
Vorstand: Matthias Tomann, Marcus Purzer - Aufsichtsratsvorsitzender: Mathias J. Lindermeir

_________________________________________________________________
Have more than one Hotmail account? Link them together to easily access both
http://clk.atdmt.com/UKM/go/186394591/direct/01/
[att1.html]

Marina Vatkina

Can you ping jdbc_/EnterpriseDB2 resource?

thanks,
-marina

Eve Pokua wrote:
> Ralph,
>
> Here is my per.xml
>
>
>
>
>
> 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">
>
> jdbc_/EnterpriseDB2
> false
>
> >
>
>
>
> regards
>
> eve
>
> ------------------------------------------------------------------------
> From: ralph.winzinger@senacor.de
> To: users@glassfish.dev.java.net
> Date: Fri, 4 Dec 2009 15:20:16 +0100
> Subject: Re: Persistence unit ref:
>
> hi,
>
> what does your persistence.xml look like?
>
>
> Am 04.12.2009 um 13:50 schrieb Eve Pokua:
>
> Ralph,
>
> Thank you for your reply.
>
> I did as you said.
>
> i added the following to my web.xml
>
>
>
>
>
persistence/ENTERPRISE-ejbPU >
ENTERPRISE-ejbPU >
>
>
>
> in my applicationContext.xml
>
> > class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"
> >
>
>
>
>

>
>
>
>

>
>

>
>
>
> But I still get the error -
>
> [#|2009-12-04T12:34:05.536+0000|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=20;_ThreadName=Thread-48;_RequestID=3fb89f4d-e8ef-403f-a422-9e5442bf9b3a;|Exception
> occured in J2EEC Phase
> com.sun.enterprise.deployment.backend.IASDeploymentException: Could
> not resolve a persistence unit corresponding to the
> persistence-unit-ref-name [persistence/ENTERPRISE-ejbPU] in scope of
> the module called
> [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> Please verify your application.
> at
> com.sun.enterprise.deployment.BundleDescriptor.findReferencedPUsViaPURefs(BundleDescriptor.java:711)
> at
> com.sun.enterprise.deployment.WebBundleDescriptor.findReferencedPUs(WebBundleDescriptor.java:727)
> at
> com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.getAllPersistenceUnitDescriptors(PersistenceProcessor.java:214)
> at
> com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.processApplication(PersistenceProcessor.java:175)
> at
> com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processApplication(DeploymentEventListenerImpl.java:211)
> at
> com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processEvent(DeploymentEventListenerImpl.java:172)
> at
> com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.notifyDeploymentEvent(DeploymentEventListenerImpl.java:122)
> at
> com.sun.enterprise.deployment.backend.DeploymentEventManager.notifyDeploymentEvent(DeploymentEventManager.java:79)
> at
> com.sun.enterprise.deployment.backend.AppDeployer.postDeploy(AppDeployer.java:401)
> at
> com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:260)
> at
> com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
> at
> com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
> at
> com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
> at
> com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
> at
> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
> at
> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
> at
> com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
> at
> com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
> |#]
> [#|2009-12-04T12:37:03.074+0000|INFO|sun-appserver2.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;;|Initializing
> Sun's JavaServer Faces implementation (1.2_04-b22-p05) for context ''|#]
> [#|2009-12-04T12:37:58.729+0000|INFO|sun-appserver2.1|com.sun.jbi.framework|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;|JBIFW0012:
> JBI framework startup complete.|#]
>
>
> sO MY QUESTION AGAIN IS - WHERE CAN I FIND A REFERENCE
> TO MY persistence-unit-ref-name????
>
> I'VE CHECKED MY domain.xml but no details.
>
> thanks
>
> eve
>
>
>
> ------------------------------------------------------------------------
> From: ralph.winzinger@senacor.com
> To: users@glassfish.dev.java.net
> Date: Fri, 4 Dec 2009 00:42:46 +0100
> Subject: Re: Persistence unit ref:
>
> Hi,
>
> I got this working just about an ago ...
>
> web.xml:
>
>
>
>
persistence/hd >
hd >
>
> application-context.xml:
>
>
>
>
>
>

>
>

>
>

>
>

>
>
> Hope this helps ...
>
> Bye,
> Ralph
>
>
> Kurz gehalten, da vom iPhone gesendet
>
> Am 04.12.2009 um 00:16 schrieb "Eve Pokua" > >:
>
> Hello,
>
> Below is my persistence.xml-
>
>
>
> 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">
>
> jdbc_/EnterpriseDB2
> false
>
> >
>
>
>
> How do I find the name of my -persistence-unit-ref-name?
>
> I use the following and I get deployment error
>
>
ENTERPRISE-ejbPU >
> Deploying application in domain failed; Could not resolve a
> persistence unit corresponding to the persistence-unit-ref-name
> [ENTERPRISE-ejbPU] in scope of the module called
> [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> Please verify your application.
>
> I need to specify it within my web.xml in-order to use
> @Persistence in my spring JEE
> application.
>
> Thanking you.
>
> eve
>
>
>
> ------------------------------------------------------------------------
> Use Hotmail to send and receive mail from your different email
> accounts. Find out how.
>
>
>
> ------------------------------------------------------------------------
> New! Receive and respond to mail from other email accounts from
> within Hotmail Find out how.
>
>
>
> Ralph Winzinger
> Principal Architect
> ______________________________
> Senacor Technologies AG
> Vordere Cramergasse 11
> 90478 Nürnberg
>
> Telefon: +49 (0)911 4244-202
> Telefax: +49 (0)911 4244-100
>
> ralph.winzinger@senacor.com
> www.senacor.com
>
> Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg - Amtsgericht
> Nürnberg - Reg.-Nr.: HRB 23098
> Vorstand: Matthias Tomann, Marcus Purzer - Aufsichtsratsvorsitzender:
> Mathias J. Lindermeir
>
>
> ------------------------------------------------------------------------
> Add other email accounts to Hotmail in 3 easy steps. Find out how.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Eve Pokua

Yes,

I can ping.

I can input data into the DB and retrieve data too.

All I need to know is-

persistence-unit-ref-name??

Do I add this to my per.xml?

How do I do it?

I need to add the persistence-unit-ref-name to my web.xml.

regards

eve

> Date: Fri, 4 Dec 2009 12:03:51 -0800
> From: Marina.Vatkina@Sun.COM
> To: users@glassfish.dev.java.net
> Subject: Re: Persistence unit ref:
>
> Can you ping jdbc_/EnterpriseDB2 resource?
>
> thanks,
> -marina
>
> Eve Pokua wrote:
> > Ralph,
> >
> > Here is my per.xml
> >
> >
> >
> >
> >
> > 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">
> >
> > jdbc_/EnterpriseDB2
> > false
> >
> > > >
> >
> >
> >
> > regards
> >
> > eve
> >
> > ------------------------------------------------------------------------
> > From: ralph.winzinger@senacor.de
> > To: users@glassfish.dev.java.net
> > Date: Fri, 4 Dec 2009 15:20:16 +0100
> > Subject: Re: Persistence unit ref:
> >
> > hi,
> >
> > what does your persistence.xml look like?
> >
> >
> > Am 04.12.2009 um 13:50 schrieb Eve Pokua:
> >
> > Ralph,
> >
> > Thank you for your reply.
> >
> > I did as you said.
> >
> > i added the following to my web.xml
> >
> >
> >
> >
> >
persistence/ENTERPRISE-ejbPU > >
ENTERPRISE-ejbPU > >
> >
> >
> >
> > in my applicationContext.xml
> >
> > > > class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"
> > >
> >
> >
> >
> >

> >
> >
> >
> >

> >
> >

> >
> >
> >
> > But I still get the error -
> >
> > [#|2009-12-04T12:34:05.536+0000|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=20;_ThreadName=Thread-48;_RequestID=3fb89f4d-e8ef-403f-a422-9e5442bf9b3a;|Exception
> > occured in J2EEC Phase
> > com.sun.enterprise.deployment.backend.IASDeploymentException: Could
> > not resolve a persistence unit corresponding to the
> > persistence-unit-ref-name [persistence/ENTERPRISE-ejbPU] in scope of
> > the module called
> > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > Please verify your application.
> > at
> > com.sun.enterprise.deployment.BundleDescriptor.findReferencedPUsViaPURefs(BundleDescriptor.java:711)
> > at
> > com.sun.enterprise.deployment.WebBundleDescriptor.findReferencedPUs(WebBundleDescriptor.java:727)
> > at
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.getAllPersistenceUnitDescriptors(PersistenceProcessor.java:214)
> > at
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.processApplication(PersistenceProcessor.java:175)
> > at
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processApplication(DeploymentEventListenerImpl.java:211)
> > at
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processEvent(DeploymentEventListenerImpl.java:172)
> > at
> > com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.notifyDeploymentEvent(DeploymentEventListenerImpl.java:122)
> > at
> > com.sun.enterprise.deployment.backend.DeploymentEventManager.notifyDeploymentEvent(DeploymentEventManager.java:79)
> > at
> > com.sun.enterprise.deployment.backend.AppDeployer.postDeploy(AppDeployer.java:401)
> > at
> > com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:260)
> > at
> > com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
> > at
> > com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
> > at
> > com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
> > at
> > com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
> > at
> > com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
> > at
> > com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
> > at
> > com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
> > at
> > com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
> > |#]
> > [#|2009-12-04T12:37:03.074+0000|INFO|sun-appserver2.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;;|Initializing
> > Sun's JavaServer Faces implementation (1.2_04-b22-p05) for context ''|#]
> > [#|2009-12-04T12:37:58.729+0000|INFO|sun-appserver2.1|com.sun.jbi.framework|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;|JBIFW0012:
> > JBI framework startup complete.|#]
> >
> >
> > sO MY QUESTION AGAIN IS - WHERE CAN I FIND A REFERENCE
> > TO MY persistence-unit-ref-name????
> >
> > I'VE CHECKED MY domain.xml but no details.
> >
> > thanks
> >
> > eve
> >
> >
> >
> > ------------------------------------------------------------------------
> > From: ralph.winzinger@senacor.com
> > To: users@glassfish.dev.java.net
> > Date: Fri, 4 Dec 2009 00:42:46 +0100
> > Subject: Re: Persistence unit ref:
> >
> > Hi,
> >
> > I got this working just about an ago ...
> >
> > web.xml:
> >
> >
> >
> >
persistence/hd > >
hd > >
> >
> > application-context.xml:
> >
> >
> >
> >
> >
> >

> >
> >

> >
> >

> >
> >

> >
> >
> > Hope this helps ...
> >
> > Bye,
> > Ralph
> >
> >
> > Kurz gehalten, da vom iPhone gesendet
> >
> > Am 04.12.2009 um 00:16 schrieb "Eve Pokua" > > >:
> >
> > Hello,
> >
> > Below is my persistence.xml-
> >
> >
> >
> > 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">
> >
> > jdbc_/EnterpriseDB2
> > false
> >
> > > >
> >
> >
> >
> > How do I find the name of my -persistence-unit-ref-name?
> >
> > I use the following and I get deployment error
> >
> >
ENTERPRISE-ejbPU > >
> > Deploying application in domain failed; Could not resolve a
> > persistence unit corresponding to the persistence-unit-ref-name
> > [ENTERPRISE-ejbPU] in scope of the module called
> > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > Please verify your application.
> >
> > I need to specify it within my web.xml in-order to use
> > @Persistence in my spring JEE
> > application.
> >
> > Thanking you.
> >
> > eve
> >
> >
> >
> > ------------------------------------------------------------------------
> > Use Hotmail to send and receive mail from your different email
> > accounts. Find out how.
> >
> >
> >
> > ------------------------------------------------------------------------
> > New! Receive and respond to mail from other email accounts from
> > within Hotmail Find out how.
> >
> >
> >
> > Ralph Winzinger
> > Principal Architect
> > ______________________________
> > Senacor Technologies AG
> > Vordere Cramergasse 11
> > 90478 Nürnberg
> >
> > Telefon: +49 (0)911 4244-202
> > Telefax: +49 (0)911 4244-100
> >
> > ralph.winzinger@senacor.com
> > www.senacor.com
> >
> > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg - Amtsgericht
> > Nürnberg - Reg.-Nr.: HRB 23098
> > Vorstand: Matthias Tomann, Marcus Purzer - Aufsichtsratsvorsitzender:
> > Mathias J. Lindermeir
> >
> >
> > ------------------------------------------------------------------------
> > Add other email accounts to Hotmail in 3 easy steps. Find out how.
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

_________________________________________________________________
Add your Gmail and Yahoo! Mail email accounts into Hotmail - it's easy
http://clk.atdmt.com/UKM/go/186394592/direct/01/
[att1.html]

Marina Vatkina

This is what the JavaEE spec gives as an example:

persistence/InventoryAppDB
InventoryManagement

-marina

Eve Pokua wrote:
> Yes,
>
> I can ping.
>
> I can input data into the DB and retrieve data too.
>
> All I need to know is-
>
> persistence-unit-ref-name??
>
> Do I add this to my per.xml?
>
> How do I do it?
>
> I need to add the persistence-unit-ref-name to my web.xml.
>
> regards
>
> eve
>
>
>
>
> > Date: Fri, 4 Dec 2009 12:03:51 -0800
> > From: Marina.Vatkina@Sun.COM
> > To: users@glassfish.dev.java.net
> > Subject: Re: Persistence unit ref:
> >
> > Can you ping jdbc_/EnterpriseDB2 resource?
> >
> > thanks,
> > -marina
> >
> > Eve Pokua wrote:
> > > Ralph,
> > >
> > > Here is my per.xml
> > >
> > >
> > >
> > >
> > >
> > > 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">
> > >
> > > jdbc_/EnterpriseDB2
> > > false
> > >
> > > > > >
> > >
> > >
> > >
> > > regards
> > >
> > > eve
> > >
> > >
> ------------------------------------------------------------------------
> > > From: ralph.winzinger@senacor.de
> > > To: users@glassfish.dev.java.net
> > > Date: Fri, 4 Dec 2009 15:20:16 +0100
> > > Subject: Re: Persistence unit ref:
> > >
> > > hi,
> > >
> > > what does your persistence.xml look like?
> > >
> > >
> > > Am 04.12.2009 um 13:50 schrieb Eve Pokua:
> > >
> > > Ralph,
> > >
> > > Thank you for your reply.
> > >
> > > I did as you said.
> > >
> > > i added the following to my web.xml
> > >
> > >
> > >
> > >
> > >
>
persistence/ENTERPRISE-ejbPU > > >
ENTERPRISE-ejbPU > > >
> > >
> > >
> > >
> > > in my applicationContext.xml
> > >
> > > > > >
> class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"
> > > >
> > >
> > >
> > >
> > >

> > >
> > >
> > >
> > >

> > >
> > >

> > >
> > >
> > >
> > > But I still get the error -
> > >
> > >
> [#|2009-12-04T12:34:05.536+0000|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=20;_ThreadName=Thread-48;_RequestID=3fb89f4d-e8ef-403f-a422-9e5442bf9b3a;|Exception
> > > occured in J2EEC Phase
> > > com.sun.enterprise.deployment.backend.IASDeploymentException: Could
> > > not resolve a persistence unit corresponding to the
> > > persistence-unit-ref-name [persistence/ENTERPRISE-ejbPU] in scope of
> > > the module called
> > > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > > Please verify your application.
> > > at
> > >
> com.sun.enterprise.deployment.BundleDescriptor.findReferencedPUsViaPURefs(BundleDescriptor.java:711)
> > > at
> > >
> com.sun.enterprise.deployment.WebBundleDescriptor.findReferencedPUs(WebBundleDescriptor.java:727)
> > > at
> > >
> com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.getAllPersistenceUnitDescriptors(PersistenceProcessor.java:214)
> > > at
> > >
> com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.processApplication(PersistenceProcessor.java:175)
> > > at
> > >
> com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processApplication(DeploymentEventListenerImpl.java:211)
> > > at
> > >
> com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processEvent(DeploymentEventListenerImpl.java:172)
> > > at
> > >
> com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.notifyDeploymentEvent(DeploymentEventListenerImpl.java:122)
> > > at
> > >
> com.sun.enterprise.deployment.backend.DeploymentEventManager.notifyDeploymentEvent(DeploymentEventManager.java:79)
> > > at
> > >
> com.sun.enterprise.deployment.backend.AppDeployer.postDeploy(AppDeployer.java:401)
> > > at
> > >
> com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:260)
> > > at
> > >
> com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
> > > at
> > >
> com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
> > > at
> > >
> com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
> > > at
> > >
> com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
> > > at
> > >
> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
> > > at
> > >
> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
> > > at
> > >
> com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
> > > at
> > >
> com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
> > > |#]
> > >
> [#|2009-12-04T12:37:03.074+0000|INFO|sun-appserver2.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;;|Initializing
> > > Sun's JavaServer Faces implementation (1.2_04-b22-p05) for context
> ''|#]
> > >
> [#|2009-12-04T12:37:58.729+0000|INFO|sun-appserver2.1|com.sun.jbi.framework|_ThreadID=21;_ThreadName=httpWorkerThread-4848-1;|JBIFW0012:
> > > JBI framework startup complete.|#]
> > >
> > >
> > > sO MY QUESTION AGAIN IS - WHERE CAN I FIND A REFERENCE
> > > TO MY persistence-unit-ref-name????
> > >
> > > I'VE CHECKED MY domain.xml but no details.
> > >
> > > thanks
> > >
> > > eve
> > >
> > >
> > >
> > >
> ------------------------------------------------------------------------
> > > From: ralph.winzinger@senacor.com
> > > To: users@glassfish.dev.java.net
> > > Date: Fri, 4 Dec 2009 00:42:46 +0100
> > > Subject: Re: Persistence unit ref:
> > >
> > > Hi,
> > >
> > > I got this working just about an ago ...
> > >
> > > web.xml:
> > >
> > >
> > >
> > >
persistence/hd > > >
hd > > >
> > >
> > > application-context.xml:
> > >
> > > > class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"
> >
> > >
> > >
> > >
> > >

> > >
> > >
> > >
> > >

> > >
> > >

> > >
> > >
> > > Hope this helps ...
> > >
> > > Bye,
> > > Ralph
> > >
> > >
> > > Kurz gehalten, da vom iPhone gesendet
> > >
> > > Am 04.12.2009 um 00:16 schrieb "Eve Pokua" > > > >:
> > >
> > > Hello,
> > >
> > > Below is my persistence.xml-
> > >
> > >
> > >
> > > 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">
> > >
> > > jdbc_/EnterpriseDB2
> > > false
> > >
> > > > > >
> > >
> > >
> > >
> > > How do I find the name of my -persistence-unit-ref-name?
> > >
> > > I use the following and I get deployment error
> > >
> > >
ENTERPRISE-ejbPU > > >
> > > Deploying application in domain failed; Could not resolve a
> > > persistence unit corresponding to the persistence-unit-ref-name
> > > [ENTERPRISE-ejbPU] in scope of the module called
> > > [gfdeploy#C:\jee\ENTERPRISE\dist\gfdeploy\ENTERPRISE-war_war].
> > > Please verify your application.
> > >
> > > I need to specify it within my web.xml in-order to use
> > > @Persistence in my spring JEE
> > > application.
> > >
> > > Thanking you.
> > >
> > > eve
> > >
> > >
> > >
> > >
> ------------------------------------------------------------------------
> > > Use Hotmail to send and receive mail from your different email
> > > accounts. Find out how.
> > >
> > >
> > >
> > >
> ------------------------------------------------------------------------
> > > New! Receive and respond to mail from other email accounts from
> > > within Hotmail Find out how.
> > >
> > >
> > >
> > > Ralph Winzinger
> > > Principal Architect
> > > ______________________________
> > > Senacor Technologies AG
> > > Vordere Cramergasse 11
> > > 90478 Nürnberg
> > >
> > > Telefon: +49 (0)911 4244-202
> > > Telefax: +49 (0)911 4244-100
> > >
> > > ralph.winzinger@senacor.com
> > > www.senacor.com
> > >
> > > Senacor Technologies Aktiengesellschaft - Sitz: Nürnberg - Amtsgericht
> > > Nürnberg - Reg.-Nr.: HRB 23098
> > > Vorstand: Matthias Tomann, Marcus Purzer - Aufsichtsratsvorsitzender:
> > > Mathias J. Lindermeir
> > >
> > >
> > >
> ------------------------------------------------------------------------
> > > Add other email accounts to Hotmail in 3 easy steps. Find out how.
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> > For additional commands, e-mail: users-help@glassfish.dev.java.net
> >
>
> ------------------------------------------------------------------------
> Have more than one Hotmail account? Link them together to easily access
> both. < http://clk.atdmt.com/UKM/go/186394591/direct/01/>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net