This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 172686 - app client not working with glassfish 3
Summary: app client not working with glassfish 3
Status: RESOLVED INCOMPLETE
Alias: None
Product: javaee
Classification: Unclassified
Component: App Client (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-21 14:14 UTC by ymajoros
Modified: 2009-09-25 20:53 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ymajoros 2009-09-21 14:14:56 UTC
Tried to create an ear application (ejb module, war module + app client). Running it doesn't start the web module,
although no error is found in run output: 

post-run-deploy:
run-deploy:
run-display-browser:
run-ac:
run-GF3AppClientTest-app-client:
run:
BUILD SUCCESSFUL (total time: 11 seconds)

In glassfish logs:

INFO: DOL Loading time62
INFO: ==> Converting method to String: public abstract java.lang.String be.ucl.gt3test.TestServiceLocal.sayHello()
INFO: BEAN NODE NAME: GF3AppClientTest/GF3AppClientTest-ejb\.jar/TestService
INFO: METHOD NODE NAME: GF3AppClientTest/GF3AppClientTest-ejb\.jar/TestService/bean-methods/sayHello
INFO: Portable JNDI names for EJB TestService :
[java:global/gfdeploy/GF3AppClientTest-ejb/TestService!be.ucl.gt3test.TestServiceLocal,
java:global/gfdeploy/GF3AppClientTest-ejb/TestService]
INFO: BEAN NODE NAME: GF3AppClientTest/GF3AppClientTest-ejb\.jar/TestService
INFO: SUB-NODE NAME: GF3AppClientTest/GF3AppClientTest-ejb\.jar/TestService/bean-pool
WARNING: PWC6351: In TLD scanning, the supplied resource
file:/D:/dev/test/GF3AppClientTest/dist/gfdeploy/GF3AppClientTest-ejb.jar does not exist
java.io.FileNotFoundException: D:\dev\test\GF3AppClientTest\dist\gfdeploy\GF3AppClientTest-ejb.jar (The system cannot
find the file specified)
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:114)
        at java.util.jar.JarFile.<init>(JarFile.java:133)
        at java.util.jar.JarFile.<init>(JarFile.java:70)
        at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:72)
        at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:48)
        at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:78)
        at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:104)
        at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:71)
        at org.apache.jasper.runtime.TldScanner.scanJar(TldScanner.java:338)
        at org.apache.jasper.runtime.TldScanner.scanJars(TldScanner.java:529)
        at org.apache.jasper.runtime.TldScanner.scanTlds(TldScanner.java:268)
        at org.apache.jasper.runtime.TldScanner.onStartup(TldScanner.java:214)
        at org.apache.catalina.core.StandardContext.callServletContainerInitializers(StandardContext.java:5453)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:5364)
        at com.sun.enterprise.web.WebModule.start(WebModule.java:506)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694)
        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1820)
        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1509)
        at com.sun.enterprise.web.WebApplication.start(WebApplication.java:93)
        at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)
        at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:229)
        at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:214)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:307)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:172)
        at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:270)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$4.execute(CommandRunnerImpl.java:403)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:418)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:505)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:138)
        at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:348)
        at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:197)
        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:215)
        at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:753)
        at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:661)
        at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:914)
        at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:166)
        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.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)
INFO: Loading application GF3AppClientTest#GF3AppClientTest-war.war at GF3AppClientTest-war
WARNING: ACDEPL112: Error attempting to process extensions from the manifest of JAR file
D:\dev\test\GF3AppClientTest\dist\gfdeploy\GF3AppClientTest-ejb.jar; ignoring it and continuing
java.io.FileNotFoundException: D:\dev\test\GF3AppClientTest\dist\gfdeploy\GF3AppClientTest-ejb.jar (The system cannot
find the file specified)
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:114)
        at java.util.jar.JarFile.<init>(JarFile.java:133)
        at java.util.jar.JarFile.<init>(JarFile.java:97)
        at
org.glassfish.appclient.server.core.jws.ExtensionFileManager.findExtensionTransitiveClosure(ExtensionFileManager.java:247)
        at org.glassfish.appclient.server.core.jws.JavaWebStartInfo.processExtensionReferences(JavaWebStartInfo.java:322)
        at org.glassfish.appclient.server.core.jws.JavaWebStartInfo.startJWSServices(JavaWebStartInfo.java:299)
        at org.glassfish.appclient.server.core.jws.JavaWebStartInfo.access$100(JavaWebStartInfo.java:95)
        at org.glassfish.appclient.server.core.jws.JavaWebStartInfo$1.run(JavaWebStartInfo.java:248)
        at org.glassfish.appclient.server.core.jws.JavaWebStartState.transition(JavaWebStartState.java:84)
        at org.glassfish.appclient.server.core.jws.JavaWebStartInfo.start(JavaWebStartInfo.java:245)
        at org.glassfish.appclient.server.core.AppClientServerApplication.start(AppClientServerApplication.java:134)
        at org.glassfish.appclient.server.core.AppClientServerApplication.start(AppClientServerApplication.java:126)
        at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)
        at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:229)
        at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:214)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:307)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:172)
        at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:270)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$4.execute(CommandRunnerImpl.java:403)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:418)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:505)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:138)
        at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:348)
        at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:197)
        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:215)
        at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:753)
        at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:661)
        at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:914)
        at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:166)
        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.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)
INFO: enterprise.deployment.appclient.jws.started
INFO: amx:pp=/domain/servers/server[server],type=application-ref,name=GF3AppClientTest -- Ref = GF3AppClientTest <== null
INFO: amx:pp=/domain/servers/server[server],type=application-ref,name=GF3AppClientTest -- VirtualServers = server <== null
INFO: amx:pp=/domain/applications/application[GF3AppClientTest],type=property,name=default-EE6-app-name -- Name =
default-EE6-app-name <== null
INFO: amx:pp=/domain/applications/application[GF3AppClientTest],type=property,name=default-EE6-app-name -- Value =
gfdeploy <== null
INFO: amx:pp=/domain/applications/application[GF3AppClientTest],type=property,name=isComposite -- Name = isComposite <==
null
INFO: amx:pp=/domain/applications/application[GF3AppClientTest],type=property,name=isComposite -- Value = true <== null
INFO:
amx:pp=/domain/applications/application[GF3AppClientTest],type=property,name=org.glassfish.ejb.container.application_unique_id
-- Name = org.glassfish.ejb.container.application_unique_id <== null
INFO:
amx:pp=/domain/applications/application[GF3AppClientTest],type=property,name=org.glassfish.ejb.container.application_unique_id
-- Value = 82151571338821632 <== null
INFO:
amx:pp=/domain/applications/application[GF3AppClientTest]/module[GF3AppClientTest-app-client.jar],type=engine,name=appclient
-- Sniffer = appclient <== null
INFO: amx:pp=/domain/applications/application[GF3AppClientTest],type=module,name=GF3AppClientTest-app-client.jar -- Name
= GF3AppClientTest-app-client.jar <== null
INFO: amx:pp=/domain/applications/application[GF3AppClientTest]/module[GF3AppClientTest-war.war],type=engine,name=web --
Sniffer = web <== null
INFO:
amx:pp=/domain/applications/application[GF3AppClientTest]/module[GF3AppClientTest-war.war],type=engine,name=security --
Sniffer = security <== null
INFO: amx:pp=/domain/applications/application[GF3AppClientTest],type=module,name=GF3AppClientTest-war.war -- Name =
GF3AppClientTest-war.war <== null
INFO:
amx:pp=/domain/applications/application[GF3AppClientTest]/module[GF3AppClientTest-ejb.jar],type=engine,name=security --
Sniffer = security <== null
INFO: amx:pp=/domain/applications/application[GF3AppClientTest]/module[GF3AppClientTest-ejb.jar],type=engine,name=ejb --
Sniffer = ejb <== null
INFO: amx:pp=/domain/applications/application[GF3AppClientTest],type=module,name=GF3AppClientTest-ejb.jar -- Name =
GF3AppClientTest-ejb.jar <== null
INFO: amx:pp=/domain/applications/application[GF3AppClientTest],type=engine,name=ear -- Sniffer = ear <== null
INFO: amx:pp=/domain/applications,type=application,name=GF3AppClientTest -- Location =
file:/D:/dev/test/GF3AppClientTest/dist/gfdeploy/ <== null
INFO: amx:pp=/domain/applications,type=application,name=GF3AppClientTest -- DirectoryDeployed = true <== false
INFO: amx:pp=/domain/applications,type=application,name=GF3AppClientTest -- Name = GF3AppClientTest <== null
INFO: amx:pp=/domain/applications,type=application,name=GF3AppClientTest -- ObjectType = user <== null
INFO: Deployment of GF3AppClientTest done is 9,172 ms
Comment 1 Vince Kraemer 2009-09-21 15:28:41 UTC
what is the expected output of your app client?

You may want to confirm that the web app is the client... look on the ear project's Run properties.

In the output that you have posted, it looks like the IDE ran the app client, which did not produce any output.
Comment 2 ymajoros 2009-09-21 15:31:00 UTC
The client is the app client, as I want it to be. But nothing is run. 

The application client should just open a dialog with "hello world" in it. It is not run, as far as I can see.
Comment 3 Vince Kraemer 2009-09-21 15:41:07 UTC
What is in your main classes main method?

You may want to try using a nightly of NB 6.8... I have made some fixes in the code, which may come into play for you...

NB 6.8 installers also include a more recent build of v3, too.
Comment 4 Vince Kraemer 2009-09-22 02:06:36 UTC
I worked off-line with the user and was not able to reproduce their result with 6.8 and v3....

My app client executed just fine...

I am closing this as works for me.

Please reopen the issue if you are not able to run the app client with 6.8 and v3...  Please provide more details about
the application... or a test case that demonstrates the problem.
Comment 5 Vince Kraemer 2009-09-22 02:07:05 UTC
wrong resolution
Comment 6 Vince Kraemer 2009-09-22 02:07:37 UTC
match what I said...
Comment 7 ymajoros 2009-09-22 09:19:03 UTC
Everything looks fine in the output window, but my client is still not running (nightly build).
Comment 8 Vince Kraemer 2009-09-25 07:53:27 UTC
173065 is also an app client on Windows issue...  

*** This issue has been marked as a duplicate of 173065 ***
Comment 9 Vince Kraemer 2009-09-25 20:53:23 UTC
I am going to reopen this... the issue is pretty different from the other.

I have a fix for the other issue and do not want to close this issue with it.

I have not been able to reproduce this yet...

I am going to mark this as incomplete.

What I want to know:
1. path to GF install
2. source of the project(s) that demonstrates the issue.
3. the 'verbose' output of ant
   open the Options dialog with the Options item from the Tools menu.
   Select the icon labeled 'Miscellaneous'
   Select the 'Ant' tab
   set the 'Verbosity Level' to Verbose
   click OK in the options dialog and try to run your ent app.