users@glassfish.java.net

Re: Deploy Problems

From: <glassfish_at_javadesktop.org>
Date: Wed, 01 Aug 2007 10:13:40 PDT

Hi,

First of all, many thanks to Tim and vbk for the prompt answers.

We discussed the answers in our shop and they cleared up some issues
and opened others.

We decided to make a 3 project application to try the alternatives
mentioned in your answers. First off, I threw our .jnlp file as far
away as my baseball arm allowed. Second, all unnecessary code was
thrown out. I'll append the source code and NB projects to this post.

Here's how we made the projects:

- AEV-app-client (client, main class, calls a class method in "base")
- AEV-base (has the remote interface, and the class that calls the facade)
- AEV-ejb (server, has the facade that is being called)

In this constellation, the appclient does not run correctly in NetBeans,
per jawaws (from the admin console) or per appclient script.
I'll append the .ear file to this post. The "MenueFacade" is null,
no matter how the application is run.

The application was compiled with Netbeans. After compiling the .ear,
the application was verified and deployed thru the asadmin command-line.

First, the output from the verify tool:

======================================================================
D:\Sun\AppServer\bin>verifier.bat AEV.ear
 WARNUNG: DPL5400:Exception occurred : error in opening zip file.
 INFO: Verifying: [ AEV.ear ]
 INFO: Verifying: [ AEV-ejb_jar ]
 INFO: Verifying: [ AEV-app-client_jar ]
 INFO: Verifying: [ AEV-base_jar ]
 INFO:
# of Failures : 0
# of Warnings : 0
# of Errors : 0
 INFO: No errors found in the archive.
======================================================================

It seems that the verification is ok. Now, to deploy the app.
Here's the server.log output from the deploy:

======================================================================
[#|2007-08-01T17:02:13.620+0200|INFO|sun-appserver-pe9.0|javax.enterprise.system.tools.admin|_ThreadID=14;_ThreadName=httpWorkerThread-4848-0;D:\Temp\s1astempdomain1server-867388250\AEV.ear;|ADM1064:The upload file at [D:\Temp\s1astempdomain1server-867388250\AEV.ear] exists and will be overwritten.|#]

[#|2007-08-01T17:02:13.636+0200|INFO|sun-appserver-pe9.0|javax.enterprise.system.tools.admin|_ThreadID=14;_ThreadName=httpWorkerThread-4848-0;D:\Temp\s1astempdomain1server-867388250\AEV.ear;|ADM1006:Uploading the file to:[D:\Temp\s1astempdomain1server-867388250\AEV.ear]|#]

[#|2007-08-01T17:02:14.432+0200|INFO|sun-appserver-pe9.0|javax.enterprise.system.core.classloading|_ThreadID=17;_ThreadName=Thread-35;|LDR5202:Exception in EJBClassLoader
java.io.IOException: The filename, directory name, or volume label syntax is incorrect
        at java.io.WinNTFileSystem.canonicalize0(Native Method)
        at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:396)
        at java.io.File.getCanonicalPath(File.java:559)
        at com.sun.enterprise.loader.EJBClassLoader$1.run(EJBClassLoader.java:418)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.enterprise.loader.EJBClassLoader.findResource0(EJBClassLoader.java:391)
        at com.sun.enterprise.loader.EJBClassLoader.findResource(EJBClassLoader.java:467)
        at java.lang.ClassLoader.getResource(ClassLoader.java:977)
        at java.lang.ClassLoader.getResource(ClassLoader.java:972)
        at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1159)
        at com.sun.enterprise.loader.EJBClassLoader.getResourceAsStream(EJBClassLoader.java:782)
        at com.sun.xml.rpc.spi.JaxRpcObjectFactory.newInstance(JaxRpcObjectFactory.java:131)
        at com.sun.enterprise.webservice.codegen.JaxRpcRICodegen.<init>(JaxRpcRICodegen.java:120)
        at com.sun.enterprise.webservice.codegen.JaxRpcCodegenFactory.getAdapter(JaxRpcCodegenFactory.java:50)
        at com.sun.ejb.codegen.IASEJBC.doCompile(IASEJBC.java:839)
        at com.sun.ejb.codegen.IASEJBC.ejbc(IASEJBC.java:580)
        at com.sun.enterprise.deployment.backend.EJBCompiler.preDeployApp(EJBCompiler.java:339)
        at com.sun.enterprise.deployment.backend.EJBCompiler.compile(EJBCompiler.java:222)
        at com.sun.enterprise.deployment.backend.AppDeployer.runEJBC(AppDeployer.java:359)
        at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:214)
        at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:129)
        at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:169)
        at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:871)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:266)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:739)
        at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:174)
        at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:210)
|#]

[#|2007-08-01T17:02:14.666+0200|INFO|sun-appserver-pe9.0|javax.enterprise.system.tools.deployment|_ThreadID=17;_ThreadName=Thread-35;|deployed with moduleid = AEV|#]

[#|2007-08-01T17:02:14.900+0200|INFO|sun-appserver-pe9.0|javax.enterprise.system.container.ejb|_ThreadID=14;_ThreadName=httpWorkerThread-4848-0;|**RemoteBusinessJndiName: MenueFacade; remoteBusIntf: remote.MenueFacadeRemote|#]

[#|2007-08-01T17:02:14.931+0200|INFO|sun-appserver-pe9.0|javax.enterprise.system.core.classloading|_ThreadID=14;_ThreadName=httpWorkerThread-4848-0;AEV;|LDR5010: All ejb(s) of [AEV] loaded successfully!|#]

[#|2007-08-01T17:02:15.056+0200|INFO|sun-appserver-pe9.0|javax.enterprise.system.tools.deployment|_ThreadID=14;_ThreadName=httpWorkerThread-4848-0;|Registering ad hoc servlet: WebPathPath: context root = "/AEV", path = "/AEV-base'|#]

[#|2007-08-01T17:02:15.087+0200|INFO|sun-appserver-pe9.0|javax.enterprise.system.tools.deployment|_ThreadID=14;_ThreadName=httpWorkerThread-4848-0;|Registering ad hoc servlet: WebPathPath: context root = "/AEV", path = "/AEV-app-client'|#]

[#|2007-08-01T17:02:15.087+0200|INFO|sun-appserver-pe9.0|javax.enterprise.system.tools.deployment|_ThreadID=14;_ThreadName=httpWorkerThread-4848-0;|Java Web Start services started for application com.sun.enterprise.appclient.jws.ApplicationContentOrigin_at_13da08 registration name=AEV
    com.sun.enterprise.appclient.jws.NestedAppclientContentOrigin_at_14f6d51 registration name=AEV, context root=/AEV/AEV-base, module name=
, parent=AEV
    com.sun.enterprise.appclient.jws.NestedAppclientContentOrigin_at_191ebc5 registration name=AEV, context root=/AEV/AEV-app-client, module name=
, parent=AEV|#]
======================================================================

From what I see in the server.log, the deployment was ok. As a verification,
I checked what NetBeans and the web-admin-console shows. Everything ok.

Now, when I run the application, an exception is thrown because the
menueFacade is null.

Please help, I'm pretty frustrated that I cant get a small "hello
world" with 3 projects to work.

Danny.
[Message sent by forum member 'dsmith9094' (dsmith9094)]

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