users@glassfish.java.net

Re: Problem porting Enterprise App from GF2ur2 to GF3

From: <glassfish_at_javadesktop.org>
Date: Wed, 24 Mar 2010 07:38:08 PDT

Hello again,

Thank you Tim for your link. I finally tried the nightly build, I'm blocked earlier than yesterday :

So I'm just trying to deploy using the latest build of glassfish (this one : http://download.java.net/glassfish/v3.1/nightly/glassfish-v3_1-b01-03_23_2010.zip). I cleared my Eclipse environnement and restored files from my subversion repos (which are working on glassfish v2.1).
Here are my steps :
- I configured JEE dependancies to use GlassFish JEE 6 instead of GlassFish JEE 5
- I've updated the projects properties > JEE module dependencies so that MANIFEST.MF files are linked to jar files (as required by the JEE 6 spec).

Here is the new stack trace after attempting to deploy the full project ("accès refusé" means access denied) :

INFO: Virtual server server loaded system default web module
INFO: Virtual server server loaded system default web module
INFO: Virtual server server loaded system default web module

GRAVE: Exception while invoking class org.glassfish.appclient.server.core.AppClientDeployer prepare method
java.lang.RuntimeException: D:\workspace\testEEv3\glassfishv3\glassfish\domains\domain1\generated\xml\ObjectExchange\ObjectExchangeClient.jar (Accès refusé)
        at org.glassfish.javaee.core.deployment.JavaEEDeployer.prepare(JavaEEDeployer.java:226)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:647)
        at org.glassfish.javaee.full.deployment.EarDeployer.prepareBundle(EarDeployer.java:270)
        at org.glassfish.javaee.full.deployment.EarDeployer.access$200(EarDeployer.java:80)
        at org.glassfish.javaee.full.deployment.EarDeployer$1.doBundle(EarDeployer.java:132)
        at org.glassfish.javaee.full.deployment.EarDeployer$1.doBundle(EarDeployer.java:130)
        at org.glassfish.javaee.full.deployment.EarDeployer.doOnBundles(EarDeployer.java:198)
        at org.glassfish.javaee.full.deployment.EarDeployer.doOnAllBundles(EarDeployer.java:249)
        at org.glassfish.javaee.full.deployment.EarDeployer.prepare(EarDeployer.java:130)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:647)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:299)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:186)
        at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:276)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:312)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:327)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1189)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1248)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1237)
        at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365)
        at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204)
        at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
        at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:113)
        at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245)
        at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:811)
        at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:708)
        at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1017)
        at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:171)
        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.ContextTask.run(ContextTask.java:69)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:526)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:507)
        at java.lang.Thread.run(Thread.java:619)
Caused by: org.glassfish.deployment.common.DeploymentException: D:\workspace\testEEv3\glassfishv3\glassfish\domains\domain1\generated\xml\ObjectExchange\ObjectExchangeClient.jar (Accès refusé)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
        at com.sun.enterprise.deployment.deploy.shared.OutputJarArchive.create(OutputJarArchive.java:113)
        at org.glassfish.appclient.server.core.AppClientGroupFacadeGenerator.generateAndRecordEARFacade(AppClientGroupFacadeGenerator.java:209)
        at org.glassfish.appclient.server.core.AppClientGroupFacadeGenerator.generateGroupFacade(AppClientGroupFacadeGenerator.java:167)
        at org.glassfish.appclient.server.core.AppClientGroupFacadeGenerator.run(AppClientGroupFacadeGenerator.java:113)
        at org.glassfish.appclient.server.core.NestedAppClientDeployerHelper.prepareJARs(NestedAppClientDeployerHelper.java:145)
        at org.glassfish.appclient.server.core.AppClientDeployer.generateArtifacts(AppClientDeployer.java:285)
        at org.glassfish.javaee.core.deployment.JavaEEDeployer.prepare(JavaEEDeployer.java:222)
        ... 37 more

Any clue ?
[Message sent by forum member 'laps']

http://forums.java.net/jive/thread.jspa?messageID=393494