Vinay, I got it to work, as I'm sure many others did (or else they wouldn't have released it). No, not all applications need to be deployed via ear files. If your deployment unit is a war file, just drop it in jboss' deploy subdir and it will dynamically deploy it, which is much easier than having to having to tweak tomcat's server.xml file. Actually, in tomcat4 there is a "manager" webapp that allows you, via hitting certian url's, to deploy an app without restarting tomcat - but that's still a step that can be avoided if you just use jboss/tomcat and drop you file in the deploy subdir. JBoss will also auto-deploy ejb jar files too, and also ear files as you know.
Two reasons off the top of my head why you would want to use ear files: 1) It allows you to deploy ejb's in the same application space as your webapp, so your servlets (or whatever) can use the ejb's by reference, not remotely (saving you from serialized calls). If you use Tomcat 4 "as a stand alone container in its own rights," you are asking for degraded performance in this arena. 2) It allows you to name the context-root for your web application via application.xml. If all you drop in the deploy dir is a war file, than the path you access your webapp with in your browser is the name of the war file, minus the extension, so jboss.home/deploy/foobar.war will be available at http://localhost:8080/foobar/. However, if you want your url path to be different, you can specify a different contex-root in application.xml in your ear file. You're probably used to doing this in server.xml, but doing it in your application bundle makes it standardized for all J2EE-complient servers. I've succesfully deployed the same ear file (without repackaging) in both JBoss/Tomcat and WebLogic 6, without a single change (either to my deployment unit or to either of the server's config files). All I have to do is make sure I have all the right xml descriptors included. As an aside, WebLogic 6 has auto-deploy directories too, but it doesn't seem to be as robust as JBoss' (auto re-deploying blows up for me on WebLogic). That all being said, I'm still having a problem with mod_webapp because the syntax for the WebAppDeploy directive requires an app name "as present in your "webapps" directory. However, using Tomcat4 embedded in JBoss, I'm not using the webapps directory. mod_jk never had the stipulation of the webapp actually having a declared directory, so wherever JBoss wanted to extract the war didn't matter. Of course, none of that is pertinant to the email you wrote... Hope this helps to clear things up, David -- menonv wrote: > Has anyone really got the new JBoss 2.4.3 - Tomcat 4.0 bundle to work. While > I understand that applications need to be deployed via ear files why does > JBoss not support the container as it used to in the previous release? What > is my deployment unit is a war file? Does it mean that I need to package it > into a ear file just to get the whole thing to work? > > Why is it so? And what benefit do we get out of it? I just think that this > concept of not supporting the Tomcat 4.0 container as a stand alone web > container in its own rights is kind of disappointing. > > Regards > > Vinay > > >>-----Original Message----- >>From: Papo Napolitano [SMTP:[EMAIL PROTECTED]] >>Sent: Wednesday, October 03, 2001 6:57 PM >>To: [EMAIL PROTECTED] >>Subject: [JBoss-user] JBoss-Catalina 2.4.3 - server.xml file >> >>Hi, >> >>I've installed the Jboss with Tomcat 4.0 and it doesn't work ok. >>I start, and the server is up, but it seems that Tomcat doesn't read the >>server.xml file from the conf directory. >>If I start Tomcat alone it works fine. >> >>Any idea ?? >> >>Regards, >>Papo. >> >> >> >>_______________________________________________ >>JBoss-user mailing list >>[EMAIL PROTECTED] >>https://lists.sourceforge.net/lists/listinfo/jboss-user >> > > > Disclaimer > > This communication together with any attachments transmitted with it ('this E-mail') >is intended only for the use of the addressee and may contain information which is >privileged and confidential. If the reader of this E-mail is not the intended >recipient or the employee or agent responsible for delivering it to the intended >recipient you are notified that any use of this E-mail is prohibited. Addressees >should check this E-mail for viruses. The Carphone Warehouse Group PLC makes no >representations as regards the absence of viruses in this E-mail. If you have >received this E-mail in error please notify our ISe Response Team immediately by >telephone on + 44 (0)20 8896 5828 or via E-mail at [EMAIL PROTECTED] Please then >immediately destroy this E-mail and any copies of it. > > Please feel free to visit our website: http://www.phonehouse.com > > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > -- ----------------------------------------------------------------------- David Ward [EMAIL PROTECTED] Senior Software Engineer http://www.dotech.com Distributed Object Technologies, Inc. 716-381-8320 (phone) 500 Linden Oaks, Rochester, NY 14625 716-381-0598 (fax) _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
