From: gorgeous65_at_msn.com
To: users_at_glassfish.dev.java.net
Date: Fri, 16 Oct 2009 12:00:56 +0100
Subject: RE: Glassfish & database COnnection in Netbeans
Hi,
Here is a copy of the persistence unit.
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="
http://java.sun.com/xml/ns/persistence" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
<persistence-unit name="ENTERPRISE-ejbPU" transaction-type="JTA">
<jta-data-source>jdbc_/EnterpriseDB2</jta-data-source>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
<property name="toplink.ddl-generation" value="drop-and-create-tables"/>
<property name="eclipselink.ddl-generation" value="drop-and-create-tables"/>
</properties>
</persistence-unit>
</persistence>
I copied my project from one PC to another. It's using to persistence jars.
I only need eclipselink.
I will edit it and see if it works.
Thanks
eve
> Date: Thu, 15 Oct 2009 15:32:42 -0700
> From: Marina.Vatkina_at_Sun.COM
> To: users_at_glassfish.dev.java.net
> Subject: Re: Glassfish & database COnnection in Netbeans
>
> Is your resource registered under 'jdbc_/' or 'jdbc/'?
>
> -marina
>
> Eve Pokua wrote:
> > Hello everyone,
> >
> > In version V application server, whenever, I created and made a connection
> > to a database within Netbeans, it was reflected in the admin console as
> > well.
> >
> > Now I get deployment JNDI error -
> >
> > SEVERE: Exception while invoking class
> > org.glassfish.persistence.jpa.JPADeployer prepare method
> > java.lang.RuntimeException: javax.naming.NamingException: Lookup failed
> > for 'jdbc_/ENTERPRISEDB' in SerialContext [Root exception is
> > javax.naming.NameNotFoundException: jdbc_]
> > at
> > org.glassfish.persistence.jpa.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:111)
> > at
> > org.glassfish.persistence.jpa.PersistenceUnitLoader.loadPU(PersistenceUnitLoader.java:113)
> > at
> > org.glassfish.persistence.jpa.PersistenceUnitLoader.<init>(PersistenceUnitLoader.java:84)
> > at
> > org.glassfish.persistence.jpa.JPADeployer.prepare(JPADeployer.java:118)
> > at
> > com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:603)
> > at
> > org.glassfish.javaee.full.deployment.EarDeployer.prepareBundle(EarDeployer.java:375)
> > at
> > org.glassfish.javaee.full.deployment.EarDeployer.access$200(EarDeployer.java:90)
> > at
> > org.glassfish.javaee.full.deployment.EarDeployer$1.doBundle(EarDeployer.java:164)
> > at
> > org.glassfish.javaee.full.deployment.EarDeployer$1.doBundle(EarDeployer.java:162)
> > at
> > org.glassfish.javaee.full.deployment.EarDeployer.doOnAllTypedBundles(EarDeployer.java:314)
> > at
> > org.glassfish.javaee.full.deployment.EarDeployer.doOnAllBundles(EarDeployer.java:339)
> > at
> > org.glassfish.javaee.full.deployment.EarDeployer.prepare(EarDeployer.java:162)
> > at
> > com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:603)
> > at
> > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:251)
> > at
> > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:174)
> > at
> > org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:270)
> > at
> > com.sun.enterprise.v3.admin.CommandRunnerImpl$4.execute(CommandRunnerImpl.java:422)
> > at
> > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:437)
> > at
> > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:524)
> > at
> > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:140)
> > at
> > com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:313)
> > at
> > com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:180)
> > at
> > com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
> > at
> > com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
> > at
> > com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:208)
> > at
> > com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:752)
> > at
> > com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:660)
> > at
> > com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:911)
> > at
> > com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:164)
> > at
> > com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
> > at
> > com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
> > at
> > com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
> > at
> > com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
> > at
> > com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
> > at
> > com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
> > at com.sun.grizzly.NIOContext.execute(NIOContext.java:510)
> > at
> > com.sun.grizzly.SelectorHandlerRunner.handleSelectedKey(SelectorHandlerRunner.java:357)
> > at
> > com.sun.grizzly.SelectorHandlerRunner.handleSelectedKeys(SelectorHandlerRunner.java:257)
> > at
> > com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:194)
> > at
> > com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:129)
> > at
> > com.sun.grizzly.util.FixedThreadPool$BasicWorker.dowork(FixedThreadPool.java:379)
> > at
> > com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.java:360)
> > at java.lang.Thread.run(Thread.java:619)
> > Caused by: javax.naming.NamingException: Lookup failed for
> > 'jdbc_/ENTERPRISEDB' in SerialContext [Root exception is
> > javax.naming.NameNotFoundException: jdbc_]
> > at
> > com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:439)
> > at javax.naming.InitialContext.lookup(InitialContext.java:392)
> > at javax.naming.InitialContext.lookup(InitialContext.java:392)
> > at
> > com.sun.enterprise.connectors.service.ConnectorResourceAdminServiceImpl.lookup(ConnectorResourceAdminServiceImpl.java:202)
> > at
> > com.sun.enterprise.connectors.ConnectorRuntime.lookupPMResource(ConnectorRuntime.java:431)
> > at
> > org.glassfish.persistence.jpa.JPADeployer$ProviderContainerContractInfoImpl.lookupDataSource(JPADeployer.java:222)
> > at
> > org.glassfish.persistence.jpa.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:108)
> > ... 42 more
> > Caused by: javax.naming.NameNotFoundException: jdbc_
> > at
> > com.sun.enterprise.naming.impl.TransientContext.resolveContext(TransientContext.java:252)
> > at
> > com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:171)
> > at
> > com.sun.enterprise.naming.impl.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:58)
> > at
> > com.sun.enterprise.naming.impl.LocalSerialContextProviderImpl.lookup(LocalSerialContextProviderImpl.java:100)
> > at
> > com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:427)
> > ... 48 more
> > INFO: Deployment of KAKENTERPRISE done is 2,328 ms
> >
> >
> > When I try to create the connection pool in admin console I get this error -
> >
> > Can't find ConfigModel.Property for attr -isolation-level-guaranteed on
> > interface com.sun.enterprise.config.serverbeans.JdbcConnectionPool
> >
> >
> > I am using the verdor JavaDB (network)
> >
> > and resource type -
> >
> > javax.sql.ConnectionPoolDataSource
> >
> > I like the idea of the updatetool. I believe It works a lot better than
> > the old updatetool in v2.
> >
> > Thanking you
> >
> > eve
> >
> >
> >
> > ------------------------------------------------------------------------
> > Stay in touch with your friends through Messenger on your mobile. Learn
> > more. <http://clk.atdmt.com/UKM/go/174426567/direct/01/>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
Chat to your friends for free on selected mobiles. Learn more.
_________________________________________________________________
Download Messenger onto your mobile for free
http://clk.atdmt.com/UKM/go/174426567/direct/01/
--_6e5d0706-5dc5-434c-b58c-2f62a67821a1_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<BR> <BR>
<HR id=stopSpelling>
<BR>
From: gorgeous65_at_msn.com<BR>To: users_at_glassfish.dev.java.net<BR>Date: Fri, 16 Oct 2009 12:00:56 +0100<BR>Subject: RE: Glassfish & database COnnection in Netbeans<BR><BR>
<STYLE>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</STYLE>
Hi,<BR> <BR>Here is a copy of the persistence unit.<BR> <BR><SPAN lang=EN><?xml version="1.0" encoding="UTF-8"?><BR><persistence version="1.0" xmlns="
http://java.sun.com/xml/ns/persistence" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"><BR><persistence-unit name="ENTERPRISE-ejbPU" transaction-type="JTA"><BR><jta-data-source>jdbc_/EnterpriseDB2</jta-data-source><BR><exclude-unlisted-classes>false</exclude-unlisted-classes><BR><properties><BR><STRONG><property name="toplink.ddl-generation" value="drop-and-create-tables"/><BR><property name="eclipselink.ddl-generation" value="drop-and-create-tables"/><BR></STRONG></properties><BR></persistence-unit><BR></persistence></SPAN><BR>
<SPAN lang=EN></SPAN> <BR>
<SPAN lang=EN> <BR>
<BR> <BR><BR>
<BR>
I copied my project from one PC to another. It's using to persistence jars.<BR>
<BR>
I only need eclipselink.<BR>
<BR>
I will edit it and see if it works.<BR>
<BR>
Thanks<BR>
<BR>
eve<BR></SPAN><BR> <BR>> Date: Thu, 15 Oct 2009 15:32:42 -0700<BR>> From: Marina.Vatkina@Sun.COM<BR>> To: users@glassfish.dev.java.net<BR>> Subject: Re: Glassfish & database COnnection in Netbeans<BR>> <BR>> Is your resource registered under 'jdbc_/' or 'jdbc/'?<BR>> <BR>> -marina<BR>> <BR>> Eve Pokua wrote:<BR>> > Hello everyone,<BR>> > <BR>> > In version V application server, whenever, I created and made a connection<BR>> > to a database within Netbeans, it was reflected in the admin console as <BR>> > well.<BR>> > <BR>> > Now I get deployment JNDI error -<BR>> > <BR>> > SEVERE: Exception while invoking class <BR>> > org.glassfish.persistence.jpa.JPADeployer prepare method<BR>> > java.lang.RuntimeException: javax.naming.NamingException: Lookup failed <BR>> > for 'jdbc_/ENTERPRISEDB' in SerialContext [Root exception is <BR>> > javax.naming.NameNotFoundException: jdbc_]<BR>> > at <BR>> > org.glassfish.persistence.jpa.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:111)<BR>> > at <BR>> > org.glassfish.persistence.jpa.PersistenceUnitLoader.loadPU(PersistenceUnitLoader.java:113)<BR>> > at <BR>> > org.glassfish.persistence.jpa.PersistenceUnitLoader.<init>(PersistenceUnitLoader.java:84)<BR>> > at <BR>> > org.glassfish.persistence.jpa.JPADeployer.prepare(JPADeployer.java:118)<BR>> > at <BR>> > com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:603)<BR>> > at <BR>> > org.glassfish.javaee.full.deployment.EarDeployer.prepareBundle(EarDeployer.java:375)<BR>> > at <BR>> > org.glassfish.javaee.full.deployment.EarDeployer.access$200(EarDeployer.java:90)<BR>> > at <BR>> > org.glassfish.javaee.full.deployment.EarDeployer$1.doBundle(EarDeployer.java:164)<BR>> > at <BR>> > org.glassfish.javaee.full.deployment.EarDeployer$1.doBundle(EarDeployer.java:162)<BR>> > at <BR>> > org.glassfish.javaee.full.deployment.EarDeployer.doOnAllTypedBundles(EarDeployer.java:314)<BR>> > at <BR>> > org.glassfish.javaee.full.deployment.EarDeployer.doOnAllBundles(EarDeployer.java:339)<BR>> > at <BR>> > org.glassfish.javaee.full.deployment.EarDeployer.prepare(EarDeployer.java:162)<BR>> > at <BR>> > com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:603)<BR>> > at <BR>> > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:251)<BR>> > at <BR>> > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:174)<BR>> > at <BR>> > org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:270)<BR>> > at <BR>> > com.sun.enterprise.v3.admin.CommandRunnerImpl$4.execute(CommandRunnerImpl.java:422)<BR>> > at <BR>> > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:437)<BR>> > at <BR>> > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:524)<BR>> > at <BR>> > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:140)<BR>> > at <BR>> > com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:313)<BR>> > at <BR>> > com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:180)<BR>> > at <BR>> > com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)<BR>> > at <BR>> > com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)<BR>> > at <BR>> > com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:208)<BR>> > at <BR>> > com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:752)<BR>> > at <BR>> > com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:660)<BR>> > at <BR>> > com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:911)<BR>> > at <BR>> > com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:164)<BR>> > at <BR>> > com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)<BR>> > at <BR>> > com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)<BR>> > at <BR>> > com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)<BR>> > at <BR>> > com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)<BR>> > at <BR>> > com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)<BR>> > at <BR>> > com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)<BR>> > at com.sun.grizzly.NIOContext.execute(NIOContext.java:510)<BR>> > at <BR>> > com.sun.grizzly.SelectorHandlerRunner.handleSelectedKey(SelectorHandlerRunner.java:357)<BR>> > at <BR>> > com.sun.grizzly.SelectorHandlerRunner.handleSelectedKeys(SelectorHandlerRunner.java:257)<BR>> > at <BR>> > com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:194)<BR>> > at <BR>> > com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:129)<BR>> > at <BR>> > com.sun.grizzly.util.FixedThreadPool$BasicWorker.dowork(FixedThreadPool.java:379)<BR>> > at <BR>> > com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.java:360)<BR>> > at java.lang.Thread.run(Thread.java:619)<BR>> > Caused by: javax.naming.NamingException: Lookup failed for <BR>> > 'jdbc_/ENTERPRISEDB' in SerialContext [Root exception is <BR>> > javax.naming.NameNotFoundException: jdbc_]<BR>> > at <BR>> > com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:439)<BR>> > at javax.naming.InitialContext.lookup(InitialContext.java:392)<BR>> > at javax.naming.InitialContext.lookup(InitialContext.java:392)<BR>> > at <BR>> > com.sun.enterprise.connectors.service.ConnectorResourceAdminServiceImpl.lookup(ConnectorResourceAdminServiceImpl.java:202)<BR>> > at <BR>> > com.sun.enterprise.connectors.ConnectorRuntime.lookupPMResource(ConnectorRuntime.java:431)<BR>> > at <BR>> > org.glassfish.persistence.jpa.JPADeployer$ProviderContainerContractInfoImpl.lookupDataSource(JPADeployer.java:222)<BR>> > at <BR>> > org.glassfish.persistence.jpa.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:108)<BR>> > ... 42 more<BR>> > Caused by: javax.naming.NameNotFoundException: jdbc_<BR>> > at <BR>> > com.sun.enterprise.naming.impl.TransientContext.resolveContext(TransientContext.java:252)<BR>> > at <BR>> > com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:171)<BR>> > at <BR>> > com.sun.enterprise.naming.impl.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:58)<BR>> > at <BR>> > com.sun.enterprise.naming.impl.LocalSerialContextProviderImpl.lookup(LocalSerialContextProviderImpl.java:100)<BR>> > at <BR>> > com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:427)<BR>> > ... 48 more<BR>> > INFO: Deployment of KAKENTERPRISE done is 2,328 ms<BR>> > <BR>> > <BR>> > When I try to create the connection pool in admin console I get this error -<BR>> > <BR>> > Can't find ConfigModel.Property for attr -isolation-level-guaranteed on <BR>> > interface com.sun.enterprise.config.serverbeans.JdbcConnectionPool<BR>> > <BR>> > <BR>> > I am using the verdor JavaDB (network)<BR>> > <BR>> > and resource type -<BR>> > <BR>> > javax.sql.ConnectionPoolDataSource<BR>> > <BR>> > I like the idea of the updatetool. I believe It works a lot better than <BR>> > the old updatetool in v2.<BR>> > <BR>> > Thanking you<BR>> > <BR>> > eve<BR>> > <BR>> > <BR>> > <BR>> > ------------------------------------------------------------------------<BR>> > Stay in touch with your friends through Messenger on your mobile. Learn <BR>> > more. <
http://clk.atdmt.com/UKM/go/174426567/direct/01/><BR>> <BR>> <BR>> ---------------------------------------------------------------------<BR>> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net<BR>> For additional commands, e-mail: users-help@glassfish.dev.java.net<BR>> <BR><BR><BR>
<HR>
<BR>
Chat to your friends for free on selected mobiles. <A href="
http://clk.atdmt.com/UKM/go/174426567/direct/01/">Learn more.</A><BR> <br /><hr />Download Messenger onto your mobile for free. <a href='
http://clk.atdmt.com/UKM/go/174426567/direct/01/' target='_new'>Learn more.</a></body>
</html>
--_6e5d0706-5dc5-434c-b58c-2f62a67821a1_--