Skip to main content

Premature deployment

2 replies [Last post]
tmpsa
Offline
Joined: 2010-02-01

It appears that Glassfish 3.1.2 tries to deploy incomplete EAR files, while it is being uploded to the server.

I upload my EAR file using WinSCP to my Linux server with Glassfish, and then the server.log shows that Glassfish tries to deploy webapp.ear.filepart, i.e. before the whole EAR file is uploaded. Quite often the deployment fails totally, sometime Glassfish tries again and succeeds.

Attached is a complete server.log that shows this. In this example, GF first fails, then it succeeds. (This time I was lucky.) Below is a snippet with the most intersting part. What's wrong? Is this a bug?

--- snip ---

[#|2012-08-28T09:33:02.907+0200|WARNING|glassfish3.1.2|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=18;_ThreadName=Thread-2;|DPL8004: file open failure; file = file:/mnt/persist/glassfish3/glassfish/domains/domain1/autodeploy/fpcontrolserver.ear.filepart|#]

[#|2012-08-28T09:33:02.909+0200|WARNING|glassfish3.1.2|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=18;_ThreadName=Thread-2;|error in opening zip file -- invalid zip file: file:/mnt/persist/glassfish3/glassfish/domains/domain1/autodeploy/fpcontrolserver.ear.filepart|#]

[#|2012-08-28T09:33:02.911+0200|WARNING|glassfish3.1.2|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=18;_ThreadName=Thread-2;|DPL8004: file open failure; file = file:/mnt/persist/glassfish3/glassfish/domains/domain1/autodeploy/fpcontrolserver.ear.filepart|#]

[#|2012-08-28T09:33:02.912+0200|WARNING|glassfish3.1.2|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=18;_ThreadName=Thread-2;|error in opening zip file -- invalid zip file: file:/mnt/persist/glassfish3/glassfish/domains/domain1/autodeploy/fpcontrolserver.ear.filepart|#]

[#|2012-08-28T09:33:02.912+0200|SEVERE|glassfish3.1.2|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=18;_ThreadName=Thread-2;|The log message is empty or null. Please log an issue against the component in the logger field.|#]

[#|2012-08-28T09:33:02.915+0200|WARNING|glassfish3.1.2|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=18;_ThreadName=Thread-2;|[AutoDeploy] Autodeploy failed : /mnt/persist/glassfish3/glassfish/domains/domain1/autodeploy/fpcontrolserver.ear.filepart.|#]

AttachmentSize
server.log_.txt37.2 KB

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
arthury
Offline
Joined: 2010-09-16

Is there a place where deployment tips are suggested/posted for GF production deployment?
Also, on a co-located setup, is it safe to use the web-based mgmt UI or use only cmdline mgmt.

--
Arthur Y
Sent from my Mac

hzhang_jn
Offline
Joined: 2005-07-22

Please see the rolling upgrade documentation for GlassFish 3.1 here:

http://docs.oracle.com/cd/E18930_01/html/821-2426/abdik.html

On 11/2/2012 2:06 PM, Arthur Yeo wrote:
> Is there a place where deployment tips are suggested/posted for GF production deployment?
> Also, on a co-located setup, is it safe to use the web-based mgmt UI or use only cmdline mgmt.
>
> --
> Arthur Y
> Sent from my Mac
>
>
>
>
>