users@glassfish.java.net

GF3.1 problem when redeploying webapp => Invalid resource : { ResourceInfo

From: <forums_at_java.net>
Date: Fri, 19 Aug 2011 16:44:57 -0500 (CDT)

Hi,

I have an webapp that used NB6.9 + GF3.0.1 without problems with redeploying.

Then, I migrated to NB7.0 + GF3.1, and now to NB7.0.1.

1) First deploy of the GF server + webapp: all works fine

2) Second deploy of the webapp, with GF server previously running: an error
occurs

3) Third deploy of the webapp, just press same F6 to run the webapp, no
changes in code or configuration files: deploy works fine. I don't know why
the second deploy (and fourth/sixth and so on) always don't work. Then, I
have to make DOUBLE F6 all the time, first to expect the error, second for
run.

=========================

====> Error from project:

=========================

redeploy?name=sitesat2&properties=keepSessions=true:preserveAppScopedResources=true
failed in GlassFish Server 3.1

 Error during implementing: Exception while preparing the app : Invalid
resource : { ResourceInfo : (jndiName=java:app/jdbc/sitesat2-ds__pm),
(applicationName=sitesat2) }.

/sistemas/sitesat2/nbproject/build-impl.xml:743:

    <target if="netbeans.home" name="-run-deploy-nb">

Line 743 ======><nbdeploy clientUrlPart="${client.urlPart}" debugmode="false"
forceRedeploy="${forceRedeploy}"/>

    </target>

=========================

====> Exception in Glassfish...

=========================

GRAVE: Exception while invoking class
org.glassfish.persistence.jpa.JPADeployer prepare method

GRAVE: Exception while preparing the app

GRAVE: Invalid resource : { ResourceInfo :
(jndiName=java:app/jdbc/sitesat2-ds__pm), (applicationName=sitesat2) }

java.lang.RuntimeException: Invalid resource : { ResourceInfo :
(jndiName=java:app/jdbc/sitesat2-ds__pm), (applicationName=sitesat2) }

    at
com.sun.enterprise.connectors.ConnectorRuntime.lookupDataSourceInDAS(ConnectorRuntime.java:539)

    at
com.sun.enterprise.connectors.ConnectorRuntime.lookupPMResource(ConnectorRuntime.java:468)

    at
org.glassfish.persistence.common.PersistenceHelper.lookupPMResource(PersistenceHelper.java:63)

    at
org.glassfish.persistence.jpa.ProviderContainerContractInfoBase.lookupDataSource(ProviderContainerContractInfoBase.java:71)

    at
org.glassfish.persistence.jpa.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:108)

    at
org.glassfish.persistence.jpa.PersistenceUnitLoader.loadPU(PersistenceUnitLoader.java:154)

    at
org.glassfish.persistence.jpa.PersistenceUnitLoader.<init>(PersistenceUnitLoader.java:119)

    at
org.glassfish.persistence.jpa.JPADeployer$1.visitPUD(JPADeployer.java:213)

    at
org.glassfish.persistence.jpa.JPADeployer$PersistenceUnitDescriptorIterator.iteratePUDs(JPADeployer.java:486)

    at
org.glassfish.persistence.jpa.JPADeployer.createEMFs(JPADeployer.java:220)

    at
org.glassfish.persistence.jpa.JPADeployer.prepare(JPADeployer.java:166)

    at
com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:870)

    at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:410)

    at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)

    at
org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)

    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:360)

    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)

    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067)

    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)

    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247)

    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)

    at
org.glassfish.deployment.admin.ReDeployCommand.execute(ReDeployCommand.java:126)

    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)

    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)

    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067)

    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)

    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247)

    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)

    at
com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:465)

    at
com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:222)

    at
com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)

    at
com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)

    at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:234)

    at
com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)

    at
com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)

    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)

    at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)

    at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)

    at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)

    at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)

    at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)

    at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)

    at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)

    at com.sun.grizzly.ContextTask.run(ContextTask.java:71)

    at
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)

    at
com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)

    at java.lang.Thread.run(Thread.java:662)

Caused by: com.sun.appserv.connectors.internal.api.ConnectorRuntimeException:
Invalid resource : { ResourceInfo : (jndiName=java:app/jdbc/sitesat2-ds__pm),
(applicationName=sitesat2) }

    at
com.sun.enterprise.connectors.service.ConnectorResourceAdminServiceImpl$MyDataSource.validateResource(ConnectorResourceAdminServiceImpl.java:272)

    at
com.sun.enterprise.connectors.service.ConnectorResourceAdminServiceImpl$MyDataSource.setResourceInfo(ConnectorResourceAdminServiceImpl.java:253)

    at
com.sun.enterprise.connectors.service.ConnectorResourceAdminServiceImpl.lookupDataSourceInDAS(ConnectorResourceAdminServiceImpl.java:243)

    at
com.sun.enterprise.connectors.ConnectorRuntime.lookupDataSourceInDAS(ConnectorRuntime.java:537)

    ... 46 more

GRAVE: Exception while preparing the app : Invalid resource : { ResourceInfo
: (jndiName=java:app/jdbc/sitesat2-ds__pm), (applicationName=sitesat2) }

com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: Invalid
resource : { ResourceInfo : (jndiName=java:app/jdbc/sitesat2-ds__pm),
(applicationName=sitesat2) }

    at
com.sun.enterprise.connectors.service.ConnectorResourceAdminServiceImpl$MyDataSource.validateResource(ConnectorResourceAdminServiceImpl.java:272)

    at
com.sun.enterprise.connectors.service.ConnectorResourceAdminServiceImpl$MyDataSource.setResourceInfo(ConnectorResourceAdminServiceImpl.java:253)

    at
com.sun.enterprise.connectors.service.ConnectorResourceAdminServiceImpl.lookupDataSourceInDAS(ConnectorResourceAdminServiceImpl.java:243)

    at
com.sun.enterprise.connectors.ConnectorRuntime.lookupDataSourceInDAS(ConnectorRuntime.java:537)

    at
com.sun.enterprise.connectors.ConnectorRuntime.lookupPMResource(ConnectorRuntime.java:468)

    at
org.glassfish.persistence.common.PersistenceHelper.lookupPMResource(PersistenceHelper.java:63)

    at
org.glassfish.persistence.jpa.ProviderContainerContractInfoBase.lookupDataSource(ProviderContainerContractInfoBase.java:71)

    at
org.glassfish.persistence.jpa.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:108)

    at
org.glassfish.persistence.jpa.PersistenceUnitLoader.loadPU(PersistenceUnitLoader.java:154)

    at
org.glassfish.persistence.jpa.PersistenceUnitLoader.<init>(PersistenceUnitLoader.java:119)

    at
org.glassfish.persistence.jpa.JPADeployer$1.visitPUD(JPADeployer.java:213)

    at
org.glassfish.persistence.jpa.JPADeployer$PersistenceUnitDescriptorIterator.iteratePUDs(JPADeployer.java:486)

    at
org.glassfish.persistence.jpa.JPADeployer.createEMFs(JPADeployer.java:220)

    at
org.glassfish.persistence.jpa.JPADeployer.prepare(JPADeployer.java:166)

    at
com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:870)

    at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:410)

    at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)

    at
org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)

    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:360)

    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)

    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067)

    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)

    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247)

    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)

    at
org.glassfish.deployment.admin.ReDeployCommand.execute(ReDeployCommand.java:126)

    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)

    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)

    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067)

    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)

    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247)

    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)

    at
com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:465)

    at
com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:222)

    at
com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)

    at
com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)

    at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:234)

    at
com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)

    at
com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)

    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)

    at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)

    at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)

    at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)

    at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)

    at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)

    at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)

    at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)

    at com.sun.grizzly.ContextTask.run(ContextTask.java:71)

    at
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)

    at
com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)

    at java.lang.Thread.run(Thread.java:662)


--
[Message sent by forum member 'edilmar']
View Post: http://forums.java.net/node/835562