[jboss-as7-dev] JSR88 undeployment
Wolfgang Knauf
wolfgang.knauf at gmx.de
Fri Jan 13 15:47:19 EST 2012
Hi Thomas,
I downloaded the latest AS7.1.0 build, but it did not show any difference.
Attached ("JSR88Test.zip") is my deployer code as a self running sample,
including the EAR file for deployment.
To run it:
1) Import project in Eclipse.
2) Update build paths.
3) Compile (ignore my two warnings - they are just markers for myself)
4) edit "build.xml" and modify the property "serverRootDirectory" to
point to your JBoss installation
5) open "build.xml" using Eclipse and run the target "deploy.j2ee.ear"
=> app "Stateless.ear" (included in project root directory) should be
deployed
6) run the target "undeploy.j2ee.ear" => app should be undeployed, but
this does not work
Deploy works, but undeploy fails without any server "helpful" console ouput.
In AS Console are a few outputs like this (I see them on deploy, but
also on undeploy):
21:21:50,140 ERROR [org.jboss.remoting.remote] (Remoting
"mycomputername:MANAGEMENT" read-1) JBREM000200: Remote connection
failed: java.io.IOException: Eine vorhandene Verbindung wurde vom
Remotehost geschlossen
The latter translates to: "An existing connection was closed by the
remote host".
Probably it is just me having overseen something when copying code from
your deployment test case :-(.
Best regards
Wolfgang
-------- Original-Nachricht --------
Betreff: Re: [jboss-as7-dev] JSR88 undeployment
Von: Thomas Diesler <thomas.diesler at jboss.com>
An: Wolfgang Knauf <wolfgang.knauf at gmx.de>
CC: jboss-as7-dev at lists.jboss.org
Datum: 13.01.2012 09:51
> Hi Wolfgang,
>
> I just tested this with 7.1.0.CR1 (see attached server log) - everything
> seems to be in order on fedora.
> We currently have however a critical issue on windows (AS7-2392
> <https://issues.jboss.org/browse/AS7-2392>) that might be related to
> what you are seeing.
>
> I suggest, we wait for Brian to clear this up and then have another look
> to see if your issue is still there.
>
> cheers
> -thomas
>
>
> On 01/12/2012 09:27 PM, Wolfgang Knauf wrote:
>> Hi to all,
>>
>> maybe this is a dumb user question, maybe this is a bug report. As I
>> am not sure, I hope someone with more knowledge can comment on this.
>>
>> I am experimenting with JSR88 deployment in AS7 (which now has the
>> great benefit that the deployed app is still alive after a server
>> reboot now ;-) )
>>
>> My code is based on a JBoss test:
>> https://source.jboss.org/browse/JBossAS/testsuite/integration/smoke/src/test/java/org/jboss/as/test/smoke/jsr88/EnterpriseDeploymentTestCase.java
>>
>>
>> JBoss version is 7.0.1CR1.
>>
>> My JSR88 deployer code worked fine for JBoss 4.2 to 6, and with some
>> minor changes (mostly imports) I could port it to AS7. But with AS7
>> undeploy does not seem to work.
>>
>> Attached is the output of the JBoss client side at TRACE level.
>>
>> Everything seems fine, but on the server side, I don't see "app xyz
>> was undeployed" console output, and "standalone.xml" still contains
>> the deployed app.
>>
>> <deployments>
>> <deployment
>> name="file:/C:/DOCUME~1/Knuffi/LOCALS~1/Temp/Stateless.ear"
>> runtime-name="file:/C:/DOCUME~1/Knuffi/LOCALS~1/Temp/Stateless.ear">
>> <content sha1="260d86890eb6b1716facde0e7e48819fe3c98f83"/>
>> </deployment>
>> </deployments>
>>
>> The only server output is a "remote connection was closed by remote
>> side" warning message, which also happens on JSR88 deploy.
>>
>> I can provide you with a full working sample of my small app if
>> necessary, but this would need a bit of refactoring :-(
>>
>> Best regards
>>
>> Wolfgang
>>
>>
>> _______________________________________________
>> jboss-as7-dev mailing list
>> jboss-as7-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>
> --
> xxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Thomas Diesler
> JBoss OSGi Lead
> JBoss, a division of Red Hat
> xxxxxxxxxxxxxxxxxxxxxxxxxxxx
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: JSR88Test.zip
Type: application/zip
Size: 31144 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/jboss-as7-dev/attachments/20120113/f39a2485/attachment-0001.zip
More information about the jboss-as7-dev
mailing list