users@glassfish.java.net

Undeploy/Deploy Problem

From: <forums_at_java.net>
Date: Thu, 18 Oct 2012 07:59:11 -0500 (CDT)

I have a Spring app that I'm un-deploying, and then deploying again with the
same name. For no good reason other than "clean slate" I am fully
un-deploying the application like this: asadmin --host dashost --port dasport
undeploy --target clust-1 myapp The undeploy results in the following log
messages:
[#|2012-10-17T17:50:29.748-0500|WARNING|glassfish3.1.2|javax.enterprise.system.tools.deployment.com.sun.enterprise.deploy.shared|_ThreadID=189;_ThreadName=Thread-2;|DPL8031:
Ignoring WEB-INF/ because the containing archive
/opt/glassfish3/glassfish/nodes/node-1/inst-1/applications/myapp recorded it
as a pre-existing stale file|#]
[#|2012-10-17T17:50:29.752-0500|WARNING|glassfish3.1.2|javax.enterprise.system.tools.deployment.com.sun.enterprise.deploy.shared|_ThreadID=189;_ThreadName=Thread-2;|DPL8031:
Ignoring WEB-INF/ because the containing archive
/opt/glassfish3/glassfish/nodes/node-1/inst-1/applications/myapp recorded it
as a pre-existing stale file|#]
[#|2012-10-17T17:50:29.754-0500|WARNING|glassfish3.1.2|javax.enterprise.system.tools.deployment.com.sun.enterprise.deploy.shared|_ThreadID=189;_ThreadName=Thread-2;|DPL8031:
Ignoring WEB-INF/ because the containing archive
/opt/glassfish3/glassfish/nodes/node-1/inst-1/applications/myapp recorded it
as a pre-existing stale file|#]
[#|2012-10-17T17:50:29.756-0500|WARNING|glassfish3.1.2|javax.enterprise.system.tools.deployment.com.sun.enterprise.deploy.shared|_ThreadID=189;_ThreadName=Thread-2;|DPL8031:
Ignoring WEB-INF/ because the containing archive
/opt/glassfish3/glassfish/nodes/node-1/inst-1/applications/myapp recorded it
as a pre-existing stale file|#]
[#|2012-10-17T17:50:30.105-0500|INFO|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web._vs.server|_ThreadID=189;_ThreadName=Thread-38;|PWC1412:
WebModule[null] ServletContext.log():Destroying Spring FrameworkServlet
'myapp'|#]
[#|2012-10-17T17:50:30.191-0500|INFO|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web._vs.server|_ThreadID=189;_ThreadName=Thread-38;|PWC1412:
WebModule[null] ServletContext.log():Closing Spring root
WebApplicationContext|#]
[#|2012-10-17T17:50:30.200-0500|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=189;_ThreadName=Thread-2;|[EL
Config]: 2012-10-17
17:50:30.199--ServerSession(14609778)--Connection(25424446)--Thread(Thread[http-thread-pool-31048(3),5,grizzly-kernel])--disconnect|#]
[#|2012-10-17T17:50:30.202-0500|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=189;_ThreadName=Thread-2;|[EL
Info]: 2012-10-17
17:50:30.201--ServerSession(14609778)--Thread(Thread[http-thread-pool-31048(3),5,grizzly-kernel])--file:/opt/glassfish3/glassfish/nodes/node-1/inst-1/applications/myapp/WEB-INF/classes/_enterprise
logout successful|#]
[#|2012-10-17T17:50:36.410-0500|WARNING|glassfish3.1.2|javax.enterprise.system.tools.deployment.com.sun.enterprise.deploy.shared|_ThreadID=191;_ThreadName=Thread-2;|DPL8031:
Ignoring WEB-INF/ because the containing archive
/opt/glassfish3/glassfish/nodes/node-1/inst-1/applications/myapp recorded it
as a pre-existing stale file|#]
[#|2012-10-17T17:50:36.414-0500|WARNING|glassfish3.1.2|javax.enterprise.system.tools.deployment.com.sun.enterprise.deploy.shared|_ThreadID=191;_ThreadName=Thread-2;|DPL8031:
Ignoring WEB-INF/ because the containing archive
/opt/glassfish3/glassfish/nodes/node-1/inst-1/applications/myapp recorded it
as a pre-existing stale file|#]
[#|2012-10-17T17:50:36.416-0500|WARNING|glassfish3.1.2|javax.enterprise.system.tools.deployment.com.sun.enterprise.deploy.shared|_ThreadID=191;_ThreadName=Thread-2;|DPL8031:
Ignoring WEB-INF/ because the containing archive
/opt/glassfish3/glassfish/nodes/node-1/inst-1/applications/myapp recorded it
as a pre-existing stale file|#]
[#|2012-10-17T17:50:36.418-0500|WARNING|glassfish3.1.2|javax.enterprise.system.tools.deployment.com.sun.enterprise.deploy.shared|_ThreadID=191;_ThreadName=Thread-2;|DPL8031:
Ignoring WEB-INF/ because the containing archive
/opt/glassfish3/glassfish/nodes/node-1/inst-1/applications/myapp recorded it
as a pre-existing stale file|#]
[#|2012-10-17T17:51:19.818-0500|INFO|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web._vs.server|_ThreadID=188;_ThreadName=Thread-38;|PWC1412:
WebModule[null] ServletContext.log():Closing Spring root
WebApplicationContext|#] Then, I deploy the app again with the following:
asadmin --host dashost --port dasport deploy --force=true
--availabilityenabled=true --name=myapp --target clust-1 myapp.war This
results in EclipseLink and other messages which seem normal, and ends up
with:
[#|2012-10-17T18:10:04.111-0500|INFO|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=190;_ThreadName=Thread-2;|WEB0671:
Loading application [myapp] at [/myapp]|#]
[#|2012-10-17T18:10:04.410-0500|INFO|glassfish3.1.2|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=190;_ThreadName=Thread-2;|myapp
was successfully deployed in 86,259 milliseconds.|#] Other info: Version =
GlassFish Server Open Source Edition 3.1.2 (build 23) SunOS myhost 5.10
Generic_142900-03 sun4v sparc SUNW,T5140 Thank you for any thoughts or
feedback you can provide. I have been doing undeploy/deploy combination, but
is the redeploy command actually cleaner? Is the GUI cleaner? Or, is it
irrelevant because they are all using the same GF calls in the end? I read
some JIRA issues that seemed to indicate undeploying and deploying an app
with the same name could have problems when unpacking the ear or war file. Is
there a temporary or hidden directory somewhere that GF uses to unpack files
for deployment before moving them into place? Many thanks, Scott

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