Matt, 

The tmp/deploy copy is made because of the Java 2 platform holding such ugly
references to the files opened with the (already garbage-collected?)
URLCLassLoader/JarHandler/etc such that you can manipulate the original file
(under server/deploy/wherever) and deploy it a second time in another
classloader.

This is IMHO true for all jars/sars/ears/etc deployed in jboss and
therefore, the tmp directory is not deleted until the next startup of Jboss.

CGJ


-----Urspr�ngliche Nachricht-----
Von: Matt Munz [mailto:[EMAIL PROTECTED]] 
Gesendet: Montag, 22. Juli 2002 20:26
An: jboss-user
Cc: Jason Weis
Betreff: [JBoss-user] Undeployment of .wsr incomplete due to access
restriction



Hi all,

  w2k, jboss build from latest src last week, jdk 1.4.0.

  Hot deployment of a .wsr works well.  I am having a bit of difficulty with
undeployment, however, as is indicated in the log exerpt below. Essentially,
some sort of dangling reference to the .wsr file (an open stream?), is
preventing the deletion of the copy of the .wsr file located in the
/tmp/deploy directory.  I tried deleting this file through windows explorer
and recieved an access violation error, similar to the ones that I get when
trying to delete a file to which the JVM has a stream open.  The .wsr is
undeployed successfully, but the copy remains (unused) in the tmp directory.

  This means that I must restart the server before re-deploying the .wsr (or
I must rename the .wsr before re-deployment).  Overall, not a major issue
but a small annoyance that perhaps others on this list have encountered...
Any tips would be appreciated.

  - Matt


14:00:13,940 INFO  [org.jboss.net.axis.server.AxisService] About to undeploy
axis descriptor org.jboss.deployment.DeploymentInfo@7
2bd92ec {
url=file:/D:/programs/jboss-src/jboss-all/build/output/jboss-3.1.0alpha/serv
er/default/deploy/ind-term.wsr }
  deployer: org.jboss.net.axis.server.AxisService@408a92
  status: Deployed
  watch:
jar:file:/D:/programs/jboss-src/jboss-all/build/output/jboss-3.1.0alpha/serv
er/default/tmp/deploy/server/default/deploy/i
nd-term.wsr/62.ind-term.wsr!/META-INF/web-service.xml
  lastDeployed: 1027360788582
  lastModified: 1027360788562
  mbeans:
, stop step.
14:00:13,981 INFO  [org.jboss.net.axis.server.AxisService] About to undeploy
axis descriptor org.jboss.deployment.DeploymentInfo@7
2bd92ec {
url=file:/D:/programs/jboss-src/jboss-all/build/output/jboss-3.1.0alpha/serv
er/default/deploy/ind-term.wsr }
  deployer: org.jboss.net.axis.server.AxisService@408a92
  status: Deployed
  watch:
jar:file:/D:/programs/jboss-src/jboss-all/build/output/jboss-3.1.0alpha/serv
er/default/tmp/deploy/server/default/deploy/i
nd-term.wsr/62.ind-term.wsr!/META-INF/web-service.xml
  lastDeployed: 1027360788582
  lastModified: 1027360788562
  mbeans:
, destroy step.
14:00:14,031 WARN  [org.jboss.deployment.DeploymentInfo] Could not delete
directory file:/D:/programs/jboss-src/jboss-all/build/ou
tput/jboss-3.1.0alpha/server/default/tmp/deploy/server/default/deploy/ind-te
rm.wsr/62.ind-term.wsr restart will delete it
14:00:14,041 INFO  [org.jboss.deployment.MainDeployer] Undeployed
file:/D:/programs/jboss-src/jboss-all/build/output/jboss-3.1.0al
pha/server/default/deploy/ind-term.wsr



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf _______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.F-Secure.com/


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to