Daniel,

I am having problems with the J2EE deployer. There seems to be timing
problems that make it read an EAR file to soon.

But more troubling is the installApplication() code. I don't understand
how your local copy works. First it seems to copy the stuff being
deployed into tmp. This is great, since we then don't look the original.
But then you don't use it. As a consequence, the other code seems to
work on the original so that it becomes locked, which is bad. I thought
you should use the localCopy *only* once it had been created.

Is this a bug, or what am I missing? 

Specifically, the exception I get (which is due to the deploy/file copy
race condition) is:
[Auto deploy] java.io.FileNotFoundException: JAR entry ebs.war not found
in H:\projects\jboss\dist\d
eploy\ebs.ear
[Auto deploy]   at
sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:98)
[Auto deploy]   at
sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:10
8)
[Auto deploy]   at java.net.URL.openStream(URL.java:798)
[Auto deploy]   at
org.jboss.deployment.URLWizzard.downloadAndInflate(URLWizzard.java:159)
[Auto deploy]   at
org.jboss.deployment.URLWizzard.downloadAndInflateTemporary(URLWizzard.java:207)
[Auto deploy]   at
org.jboss.deployment.J2eeDeployer.installWAR(J2eeDeployer.java:516)
[Auto deploy]   at
org.jboss.deployment.J2eeDeployer.installApplication(J2eeDeployer.java:472)
[Auto deploy]   at
org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:128)
...

/Rickard

-- 
Rickard �berg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com

Reply via email to