What's there in domain.xml?
thanks,
-marina
Eve Pokua wrote:
> 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>
>
> 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.
> <http://clk.atdmt.com/UKM/go/174426567/direct/01/>