users@glassfish.java.net

Re: Web Service Autodeployment Issue

From: <glassfish_at_javadesktop.org>
Date: Mon, 17 Nov 2008 09:43:41 PST

Hi Tim,
Thanks for the speedy reply,

> 1. Do you see the same problem if you deploy using
> asadmin deploy or the admin console instead of
> autodeploy?
>

Deploys fine first time around from a fresh server instance with 'asadmin deploy' cmd, fails on redeploy 2,3,4 and then succeeds on 5,6 then fails again and so on.

If I specifically call "asadmin undeploy" it succeeds on the next "asadmin deploy". It seem that its not handling a redeploy very well.

> 2. Are there any messages in server.log from either
> the second autodeployment (the one that leads to the
> intermittent behavior) or the attempts to access the
> web service after the second autodeployment?
>

[u][b]Log file snippet on a successful deployment:[/b][/u]

[#|2008-11-17T17:30:37.984+0000|SEVERE|sun-glassfish-comms-server1.5|javax.enter
prise.system.tools.deployment|_ThreadID=17;_ThreadName=Timer-6;_RequestID=4895b5
dc-9345-479a-a72b-fae5c5e40750;|Class [ Lcom/sun/net/httpserver/HttpServer; ] no
t found. Error while loading [ class org.springframework.remoting.jaxws.SimpleHt
tpServerJaxWsServiceExporter ]|#]

[#|2008-11-17T17:30:37.984+0000|WARNING|sun-glassfish-comms-server1.5|javax.ente
rprise.system.tools.deployment|_ThreadID=17;_ThreadName=Timer-6;_RequestID=4895b
5dc-9345-479a-a72b-fae5c5e40750;|Error in annotation processing: java.lang.NoCla
ssDefFoundError: Lcom/sun/net/httpserver/HttpServer;|#]

[#|2008-11-17T17:30:39.328+0000|INFO|sun-glassfish-comms-server1.5|javax.enterpr
ise.system.container.ejb|_ThreadID=17;_ThreadName=Timer-6;|wsgen successful|#]

[#|2008-11-17T17:30:39.359+0000|INFO|sun-glassfish-comms-server1.5|javax.enterpr
ise.system.tools.deployment|_ThreadID=17;_ThreadName=Timer-6;Servlet;TerminalLoc
ationNotificationImpl;http://10.37.2.70:7001/mvn-demo-app/TerminalLocationNotifi
cationService;|DPL5306:Servlet Web Service Endpoint [TerminalLocationNotificatio
nImpl] listening at address [http://10.37.2.70:7001/mvn-demo-app/TerminalLocatio
nNotificationService]|#]

[u][b]Log file snippet on an unsuccessful deployment:[/b][/u]

[#|2008-11-17T17:29:58.046+0000|SEVERE|sun-glassfish-comms-server1.5|javax.enter
prise.system.tools.deployment|_ThreadID=17;_ThreadName=Timer-6;_RequestID=4895b5
dc-9345-479a-a72b-fae5c5e40750;|Class [ Lcom/sun/net/httpserver/HttpServer; ] no
t found. Error while loading [ class org.springframework.remoting.jaxws.SimpleHt
tpServerJaxWsServiceExporter ]|#]

[#|2008-11-17T17:29:58.046+0000|WARNING|sun-glassfish-comms-server1.5|javax.ente
rprise.system.tools.deployment|_ThreadID=17;_ThreadName=Timer-6;_RequestID=4895b
5dc-9345-479a-a72b-fae5c5e40750;|Error in annotation processing: java.lang.NoCla
ssDefFoundError: Lcom/sun/net/httpserver/HttpServer;|#]

[#|2008-11-17T17:29:58.812+0000|INFO|sun-glassfish-comms-server1.5|javax.enterpr
ise.system.tools.deployment|_ThreadID=17;_ThreadName=Timer-6;|deployed with modu
leid = mvn-demo-app|#]

As you can see the only difference between the above is :

[#|2008-11-17T17:30:39.359+0000|INFO|sun-glassfish-comms-server1.5|javax.enterpr
ise.system.tools.deployment|_ThreadID=17;_ThreadName=Timer-6;Servlet;TerminalLoc
ationNotificationImpl;http://10.37.2.70:7001/mvn-demo-app/TerminalLocationNotifi
cationService;|DPL5306:Servlet Web Service Endpoint [TerminalLocationNotificatio
nImpl] listening at address [http://10.37.2.70:7001/mvn-demo-app/TerminalLocatio
nNotificationService]|#]

The lack of presence of Lcom/sun/net/httpserver/HttpServer; does not seem to affect the outcome as it is always present (Although is related to the issue through annotations.). That seems to be a different error.

> 3. Have you tried to see what happens if you restart
> the server after the second autodeployment? Does
> that clear up the intermittent problems?
>
> - Tim

The Autodeploy mechanism works fine on a fresh instance of the server and works for redeploy 2,3,4 then fails then succeeds and so on. (Very Random) But it does start on a fresh clean domain startup.

Could be a caching issue I real am not sure. Thanks again for any light shed on this issue.
[u][/u]
[Message sent by forum member 'mfeeney' (mfeeney)]

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