Remote Deploy
Hi,
I'm getting trouble with remote deploy on SJS AppServer, the one which comes embedded with JSC.
I just copied the folder to another machine, run it and deploy. Everything runs fine.
What happens is that when I redeploy i get an error. The error is below:
...
While redeploying, trying to stop the application in target server failed; com.sun.enterprise.deployment.backend.IASDeploymentException
; requested operation cannot be completed
At least one operation failed
Exception=Deployment failed.
Deployment failed.
at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deploymen t.java:210)
at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:75)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
...
The solution is access the remote machine, "asadmin stop-domain" and "asadmin start-domain". So, i can redeploy it again.
In resume: i can deploy remotely just once.
[]'s
[1089 byte] By [
luizfox] at [2007-11-26 8:48:30]

# 2
Ok, i'll try again ;)
Using the appserver on the same machine, everything runs fine: I can deploy the application as many as i want.
But my machine is not very faster to run an appserver with IDE, it goes a little slow.
So, my idea was copy the appserver to another machine.
Until here, ok?
Now comes the trouble: if the server is running on a remote machine, i can deploy it from SJC just one time. The second one gives me an error, and to solve this i must access the remote machine, stop de appserver via "asadmin stop-domain" shell command and then start it again. And then yes, i can deploy it (but still just one time).
Did you understood now?
As requested, here comes the log:
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
pluto-hack-web-xml-run:
portlet-container-deploy:
jsCreatorDist:
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
Building jar: C:\Documents and Settings\luiz.SERVIDOR\Meus documentos\Creator\Projects\contatos\contatos\dist\SinglePageCrudTable.war
do-dist:
extract.war:
Expanding: C:\Documents and Settings\luiz.SERVIDOR\Meus documentos\Creator\Projects\contatos\contatos\dist\SinglePageCrudTable.war into C:\Documents and Settings\luiz.SERVIDOR\Meus documentos\Creator\Projects\contatos\contatos\dist\tmp
Deleting: C:\Documents and Settings\luiz.SERVIDOR\Meus documentos\Creator\Projects\contatos\contatos\dist\tmp\WEB-INF\sun-web.xml
Deleting: C:\Documents and Settings\luiz.SERVIDOR\Meus documentos\Creator\Projects\contatos\contatos\dist\SinglePageCrudTable.war
Copying 1 file to C:\Documents and Settings\luiz.SERVIDOR\Meus documentos\Creator\Projects\contatos\contatos\dist\tmp\WEB-INF
errorhandler.modifications:
Moving 1 files to C:\Documents and Settings\luiz.SERVIDOR\Meus documentos\Creator\Projects\contatos\contatos\dist\tmp\WEB-INF
Processing C:\Documents and Settings\luiz.SERVIDOR\Meus documentos\Creator\Projects\contatos\contatos\dist\tmp\WEB-INF\web.before.er rorhandler to C:\Documents and Settings\luiz.SERVIDOR\Meus documentos\Creator\Projects\contatos\contatos\dist\tmp\WEB-INF\web.xml
Loading stylesheet C:\Documents and Settings\luiz.SERVIDOR\Meus documentos\Creator\Projects\contatos\contatos\nbproject\export-web-xml.xsl
j2ee13.init:
j2ee13.web.xml:
j2ee13.index.jsp:
j2ee13.jspf:
j2ee13.modifications:
pluto-hack-web-xml-dist:
jsCreatorModifyWar:
Deleting 1 files from C:\Documents and Settings\luiz.SERVIDOR\Meus documentos\Creator\Projects\contatos\contatos\dist\tmp\WEB-INF
Building jar: C:\Documents and Settings\luiz.SERVIDOR\Meus documentos\Creator\Projects\contatos\contatos\dist\SinglePageCrudTable.war
Deleting directory C:\Documents and Settings\luiz.SERVIDOR\Meus documentos\Creator\Projects\contatos\contatos\dist\tmp
dist:
run-deploy:
Redeploying C:\Documents and Settings\luiz.SERVIDOR\Meus documentos\Creator\Projects\contatos\contatos\dist\SinglePageCrudTable.war
Start registering the project's server resources
Finished registering server resources
While redeploying, trying to stop the application in target server completed successfully
At least one operation failed
Exception=Deployment failed.
Deployment failed.
at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deploymen t.java:210)
at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:75)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:234)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:242)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)
C:\Documents and Settings\luiz.SERVIDOR\Meus documentos\Creator\Projects\contatos\contatos\nbproject\build-impl.xml:459: Deployment failed.
BUILD FAILED (total time: 14 seconds)
# 4
> Ok, i'll try again ;)
>
> Using the appserver on the same machine, everything
> runs fine: I can deploy the application as many as i
> want.
> But my machine is not very faster to run an appserver
> with IDE, it goes a little slow.
>
> So, my idea was copy the appserver to another
> machine.
>
> Until here, ok?
I assume the second box is also Windows? Did you just copy the appserver directory or did you actually get a separate ASPE 8.2 installer and install it on the second box? I would prefer you did the install;-)
>
> Now comes the trouble: if the server is running on a
> remote machine, i can deploy it from SJC just one
> time. The second one gives me an error, and to solve
> this i must access the remote machine, stop de
> appserver via "asadmin stop-domain" shell command and
> then start it again. And then yes, i can deploy it
> (but still just one time).
>
> Did you understood now?
Yes;-)
>
> As requested, here comes the log:
Can you also please send the server.log (from the remote appserver <pe_home>/domains/<creator?>/logs/server.log?
The build output tells me that the remote server is not happy to do the redeployment:-( The server.log from the remote PE will hopefully tell us why it's not happy.
We know there is at least one problem with the AppServer, the JVM and Windows where the OS sometimes prevents files to be removed in an undeployment/redeployment because it believes they are still in use:-(
What happens when you just try to do the remote deployment again after the failed attempt?
Thanks,
-- Marco
>
> init:
> deps-module-jar:
> deps-ear-jar:
> deps-jar:
> library-inclusion-in-archive:
> library-inclusion-in-manifest:
> compile:
> compile-jsps:
> pluto-hack-web-xml-run:
> portlet-container-deploy:
> jsCreatorDist:
> init:
> deps-module-jar:
> deps-ear-jar:
> deps-jar:
> library-inclusion-in-archive:
> library-inclusion-in-manifest:
> compile:
> compile-jsps:
> Building jar: C:\Documents and
> Settings\luiz.SERVIDOR\Meus
> documentos\Creator\Projects\contatos\contatos\dist\
> SinglePageCrudTable.war
> do-dist:
> extract.war:
> Expanding: C:\Documents and
> Settings\luiz.SERVIDOR\Meus
> documentos\Creator\Projects\contatos\contatos\dist\
> SinglePageCrudTable.war into C:\Documents and
> Settings\luiz.SERVIDOR\Meus
> documentos\Creator\Projects\contatos\contatos\dist\
> tmp
> Deleting: C:\Documents and
> Settings\luiz.SERVIDOR\Meus
> documentos\Creator\Projects\contatos\contatos\dist\
> tmp\WEB-INF\sun-web.xml
> Deleting: C:\Documents and
> Settings\luiz.SERVIDOR\Meus
> documentos\Creator\Projects\contatos\contatos\dist\
> SinglePageCrudTable.war
> Copying 1 file to C:\Documents and
> Settings\luiz.SERVIDOR\Meus
> documentos\Creator\Projects\contatos\contatos\dist\
> tmp\WEB-INF
> errorhandler.modifications:
> Moving 1 files to C:\Documents and
> Settings\luiz.SERVIDOR\Meus
> documentos\Creator\Projects\contatos\contatos\dist\
> tmp\WEB-INF
> Processing C:\Documents and
> Settings\luiz.SERVIDOR\Meus
> documentos\Creator\Projects\contatos\contatos\dist\
> tmp\WEB-INF\web.before.errorhandler to C:\Documents
> and Settings\luiz.SERVIDOR\Meus
> documentos\Creator\Projects\contatos\contatos\dist\
> tmp\WEB-INF\web.xml
> Loading stylesheet C:\Documents and
> Settings\luiz.SERVIDOR\Meus
> documentos\Creator\Projects\contatos\contatos\nbpro
> ject\export-web-xml.xsl
> j2ee13.init:
> j2ee13.web.xml:
> j2ee13.index.jsp:
> j2ee13.jspf:
> j2ee13.modifications:
> pluto-hack-web-xml-dist:
> jsCreatorModifyWar:
> Deleting 1 files from C:\Documents and
> Settings\luiz.SERVIDOR\Meus
> documentos\Creator\Projects\contatos\contatos\dist\
> tmp\WEB-INF
> Building jar: C:\Documents and
> Settings\luiz.SERVIDOR\Meus
> documentos\Creator\Projects\contatos\contatos\dist\
> SinglePageCrudTable.war
> Deleting directory C:\Documents and
> Settings\luiz.SERVIDOR\Meus
> documentos\Creator\Projects\contatos\contatos\dist\
> tmp
> dist:
> run-deploy:
> Redeploying C:\Documents and
> Settings\luiz.SERVIDOR\Meus
> documentos\Creator\Projects\contatos\contatos\dist\
> SinglePageCrudTable.war
> Start registering the project's server resources
> Finished registering server resources
> While redeploying, trying to stop the application in
> target server completed successfully
> At least one operation failed
> Exception=Deployment failed.
> Deployment failed.
> at
> org.netbeans.modules.j2ee.deployment.devmodules.api.De
> ployment.deploy(Deployment.java:210)
> at
> org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.ja
> va:75)
> at
> org.apache.tools.ant.UnknownElement.execute(UnknownEle
> ment.java:275)
> at
> org.apache.tools.ant.Task.perform(Task.java:364)
> at
> org.apache.tools.ant.Target.execute(Target.java:341)
> at
> org.apache.tools.ant.Target.performTasks(Target.java:3
> 69)
> at
> org.apache.tools.ant.Project.executeTarget(Project.jav
> a:1214)
> at
> org.apache.tools.ant.Project.executeTargets(Project.ja
> va:1062)
> at
> org.apache.tools.ant.module.bridge.impl.BridgeImpl.run
> (BridgeImpl.java:234)
> at
> org.apache.tools.ant.module.run.TargetExecutor.run(Tar
> getExecutor.java:242)
> at
> org.netbeans.core.execution.RunClassThread.run(RunClas
> sThread.java:125)
> C:\Documents and Settings\luiz.SERVIDOR\Meus
> documentos\Creator\Projects\contatos\contatos\nbpro
> ject\build-impl.xml:459: Deployment failed.
> BUILD FAILED (total time: 14 seconds)
mw46 at 2007-7-6 22:36:59 >

# 5
> I have two issues with remote deploy
>
> if my remote appserver is accessed via a proxy, I
> can't seem to get to it. I set the proxy connection
> in Creator and it does not help. I could try
> -Djava.proxyhost and port but that would not be a
> very useful solution. Is there support for remote
> deployment to an appserver accessible via a proxy. If
Unfortunately not.
> not can we request that this be an added feature. is
But I fear it will not be addressed any time soon. We basically use appserver classes to do most of the communication.
> there the ability to modify the deployment code as an
> end user in case you need to write your own,
Not for Creator 2. But we are currently in the process of moving to NB (and OpenSource) so then you should be able to look at the code and change it.
The new Appserver is already out there as project GlassFish.
>
> I am also having issues with remote deployment to App
> server 8.2. I have a log file. I see no errors in the
> log then a timeout after 240 seconds.
Yes, we thought that should be enough time. But maybe that timeout will become a user settable option in the next release of NB.
Thanks,
-- Marco
mw46 at 2007-7-6 22:36:59 >
