Mike Hoolehan
Thu, 07 Jun 2001 16:42:27 -0700
Aliasing apache into your jboss temp deploy directory isn't really a great idea because you get exactly the problem you mention below. Instead, try using the mod-jk to bridge the gap between tomcat/apache. Check out the Jboss/Tomcat apache howto for info on getting jboss & embedded tomcat going. Then look at the mod-jk documentation for getting tomcat & apache together. http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html Mike On (07/06/01 16:32), David Ward wrote: > I would love to read a good answer to this one. I have this in my > httpd.conf include: > > Alias /myapp "/usr/local/jboss/tmp/deploy/Default/myapp.ear/web1001" > <Directory "/usr/local/jboss/tmp/deploy/Default/myapp.ear/web1001"> > Options Indexes FollowSymLinks > </Directory> > > Unfortunately, if I re-deploy myapp.ear, "web1001" increments and I have > no way for Apache to change it's alias. I have to either change my > apache conf and restart apache, or remove myapp.ear from jboss, restart > jboss, then re-deploy myapp.ear so the "web1001" directory name stays > the same... > > Does the reason JBoss changes the directory name have something to do > with ClassLoader issues for either Tomcat or JBoss? k> > I'm using bundled JBoss 2.2.2 and Tomcat 3.2.2 with JDK 1.3.1 on Red Hat > Linux 7.1. > > Thanks, > David > > -- > > Alex Radka wrote: > > > Can you use the JBoss deployment functionality when you have Tomcat > > configured with Apache, or do you need to deploy your .war file separately > > and restart each time you deploy? > > > > I can reach the apps that come with Tomcat, but I get the following error in > > my mod_jk.log file when I try to access an app that was deployed through an > > .ear file. (Works fine when using embedded Tomcat/no Apache). > > > > jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146 > > [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 > > > > If you CAN deploy though an .ear, what does the mod_jk.conf-auto (or > > whatever you are including in httpd.conf) need to look like since you can't > > really define an alias as the JBoss directory changes each time. > > > > Thanks, > > Alex > > > > > > > > _______________________________________________ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > http://lists.sourceforge.net/lists/listinfo/jboss-user > > > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user -- Mike Hoolehan Sycamore Associates, Inc. [EMAIL PROTECTED] 301.668.4681x103 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user