Hi all!
Below the first paragraph of this email is the original text I was just
about to post 30 minutes before. So if you are interested, you should read
it before continuing (it's between -------> and <-------------). Suddenly,
I decided to turn on my debugger and do some of the hard work (and useless,
because I was debugging against 2.0, keep reeding). The problem was in
classes J2eeDeployer and URLWizard; I have attached some sections of the
code for reference but essentially the bug was simple:
j2eeDeployer.installEJB method calls uRLWizard.downloadTemporary to create a
"local" copy of the URL contents and downloadTemporary forgets that it's
(well, English is not my native language as you could see, so what's the
gender of a Java method?) working with a directory and tries to copy
(read->write) the src directory to a dst new temp file. Then this file is
considered to be a Jar and we get the ZipException. Curiously, a few lines
before this, downloadAndPackTemporary do almost the same stuff but in the
right way. Some observations I have done besides these ones are that the
copy (read->write) is not buffered and that we are "downloading" a local
copy twice, but this seems to be fixed in a newer revision I have "diff"ed
with 2.0. So should I refrain from trying to get auto deployment in unpacked
apps? (I mean, I don't want to move to an unstable version just for this)
Any of you have patched this or is interested in a patch (I could do it)? Is
this really a bug or am I completely wrong?
Thank you in advance,
Carlos
--------------------------->
Is this completly true? (excerpted from the new manual):
"The application deployment on JBoss is managed by the J2eeDeployer MBean.
The J2eeDeployer is able to deploy ejb.jar packages, webapplication.war
packages and j2ee application.ear packages. Furthermore he is able to deploy
unpacked ejb.jar files for development purposes.
To autodeploy an unpacked ejb application, add the base directory of that
application (base directory = the directory which containes the META-INF
directory) to the AutoDeployers observed urls."
I can't deploy unpacked ejb apps. I can add new urls from the conf files or
web administration, but I'm getting this exception during the deployment:
java.util.zip.ZipException: error in opening zip file
The related section of my conf file is:
<MLET CODE = "org.jboss.ejb.AutoDeployer" ARCHIVE="jboss.jar">
<ARG TYPE="java.lang.String" VALUE="../deploy">
</MLET>
Under <JBOSS>/deploy are the following directories and files:
META-INF
ejb-jar.xml
jaws.xml
jboss.xml
tycdigital/
etc etc (the ejb classes)
When I pack this app AutoDeployer works fine.
The Javadoc for AutoDeployer says:
"The AutoDeployer is used to automatically deploy EJB-jars. It can be used
on either .jar or .xml files. The AutoDeployer can be configured to "watch"
one or more files. If they are updated they will be redeployed. If it is set
to watch a directory instead of a single file, all files within that
directory will be watched separately. When a jar is to be deployed, the
AutoDeployer will use a ContainerFactory to deploy it. "
etc etc etc
<-------------------------------------------------
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]