tag:blogger.com,1999:blog-12168038.post8464761627399237171..comments2024-03-22T20:10:32.785+05:30Comments on Vinod Singh: Apache in front of Tomcat and JBossVinod Singhhttp://www.blogger.com/profile/05770985867453681608noreply@blogger.comBlogger27125tag:blogger.com,1999:blog-12168038.post-65092909313933857332011-12-14T07:24:23.927+05:302011-12-14T07:24:23.927+05:30@Suresh,
Try to access the application via Apache...@Suresh,<br /><br />Try to access the application via Apache (port 80) that will let you know whether integration is working or not.Vinod Singhhttps://www.blogger.com/profile/05770985867453681608noreply@blogger.comtag:blogger.com,1999:blog-12168038.post-78512832472040772932011-12-13T23:43:56.824+05:302011-12-13T23:43:56.824+05:30Hi Vinod,
i have some requirement for configuring...Hi Vinod,<br /><br />i have some requirement for configuring apache http server 2.0.64 with JBOSS 4.2.3.<br />I have installed JBOSS with port:8088 and Apache http with port: 8080<br />Both are up and running.<br />Now <br />--->i have downloaded the mod_jk.so and added in the below path:<br />Apache/modules<br />--->I have created a new file "mod-jk.conf" and added under Apache/conf with the below content.<br /><br />mod-jk.conf ---><br />LoadModule jk_module modules/mod_jk.so<br />JkWorkersFile conf/workers.properties <br />JkShmFile logs/mod_jk.shm<br />JkLogFile logs/mod_jk.log <br />JkLogLevel info <br />JkMount /App1/* worker1 <br /><br />--->I have added the below file andd added the line in the last line of the file "Include conf/mod-jk.conf" Apache/conf/httpd.conf <br /><br />--->I have created workers.properties inside apache/conf folder with below content.<br />worker.list=worker1 <br />worker.worker1.type=ajp13 <br />worker.worker1.host=localhost <br />worker.worker1.port=8009 <br /><br /><br />Now both the ervers are up and running successfully. But how can i know that these 2 are connected and configured properly.<br /><br />Thanks in Advance,<br />Suresh.<br />suvunnam@in.ibm.comsureshhttps://www.blogger.com/profile/04951990298274031221noreply@blogger.comtag:blogger.com,1999:blog-12168038.post-53687918628875942082011-10-01T02:46:03.208+05:302011-10-01T02:46:03.208+05:30Hi vinod ... i followed your advice but could not ...Hi vinod ... i followed your advice but could not get static content served from apache. Do I need to do some configuration changes at tomcat as well. The images folder was in /webapps/appB/ but I removed it since I wanted to serve the images from apache. I put the images folder under my document root as mentioned below but still didn't work out. Can you tell what is wrong in this. I have solaris system to play with apache 2.2 and tomcat 6.0.18.<br /><br /><br /> ServerName www.xyz.com<br /> ServerAdmin webmaster@abc.com<br /> DocumentRoot /opt/apache/www/fundoo/foo<br /> # To turn off rewrite logging is 0, 3 is debug<br /> RewriteLogLevel 0<br /> RewriteEngine off<br /> RewriteCond %{REQUEST_METHOD} ^TRACE<br /> RewriteRule .* - [F]<br /> #Alias /appB /opt/apache/www/fundoo/foo<br /> JkMount /appB/*.gft balancer<br /> JkMount /appB/*.jsp balancer<br /> JkMount /appB/* balancer<br /> JkUnMount /images/* appB<br /> #JkUnMount /*.png balancer<br /> #JkUnMount /*.jpg balancer<br /> #JkUnMount /*.gif balancer<br /> #JkUnMount /*.js balancerAnnunoreply@blogger.comtag:blogger.com,1999:blog-12168038.post-20718728032586246592010-12-21T15:27:00.911+05:302010-12-21T15:27:00.911+05:30@Nikhil,
See here http://blog.vinodsingh.com/2008...@Nikhil,<br /><br />See here http://blog.vinodsingh.com/2008/09/jax-ws-web-service-and-jboss.html<br />http://blog.vinodsingh.com/2008/09/building-jax-ws-web-service.html<br /><br />there is an sample application attached there, I believe that should work on both Tomcat and JBoss.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-12168038.post-20154376670869846582010-12-21T12:52:19.440+05:302010-12-21T12:52:19.440+05:30Please share some sample applications to deploy on...Please share some sample applications to deploy on Tomcat and Jboss 5.0.1 I cant find any on google even applications that worked on JBoss 4.2.3 not working with JBoss 5Nikhilnoreply@blogger.comtag:blogger.com,1999:blog-12168038.post-64646989800427463092010-06-14T13:37:45.809+05:302010-06-14T13:37:45.809+05:30Hi Vinod,
I hope you can help you in this problem...Hi Vinod,<br /><br />I hope you can help you in this problem. <br /><br />I have Fedora 13, jdk 1.6, jboss 5.0 and eclipse 3.5. Right now everything seems to be working fine but I have to include a separate Tomcat (tomcat 6) in this environment. i.e. I need to disable the tomcat instant that coming with Jboss and need to start a separate tomcat. Also need to use Apache to serve the static contents. Could you please tell me how I can disable the tomcat instant in Jboss and start a separate tomcat server?<br /><br />Thanks, Vinod.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-12168038.post-65323646943395736852010-05-17T21:08:37.011+05:302010-05-17T21:08:37.011+05:30Just unmount the URLs, which serve the static cont...Just unmount the URLs, which serve the static content as shown in the configuration in the post-<br /><br /> JkUnMount /static|/* appB<br /><br />Do not forget to store the static content in a directory, which is accessible to Apache.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-12168038.post-7345012369008274302010-05-14T14:37:45.658+05:302010-05-14T14:37:45.658+05:30how to configure the static content like css,js an...how to configure the static content like css,js and dynamic content like jsp using apache + weblogicAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-12168038.post-12045764887885971032009-09-04T16:28:01.811+05:302009-09-04T16:28:01.811+05:30hi vinod..
i am able to connect to C:/apache-tomc...hi vinod..<br /> i am able to connect to C:/apache-tomcat-6.0.18/webapps/ROOT instead of C:\Apache2.2\htdocs..<br /> could u plz help me how to go to this C:\Apache2.2\htdocs ?Unknownhttps://www.blogger.com/profile/17137282811227165408noreply@blogger.comtag:blogger.com,1999:blog-12168038.post-80126873240117779872009-09-04T15:17:54.973+05:302009-09-04T15:17:54.973+05:30still i am not getting..
i am thinking i need to g...still i am not getting..<br />i am thinking i need to give url pattern using RewriteRule . am i right?Unknownhttps://www.blogger.com/profile/17137282811227165408noreply@blogger.comtag:blogger.com,1999:blog-12168038.post-63604742673825344842009-09-04T15:05:15.742+05:302009-09-04T15:05:15.742+05:30static goes under Apache DocumentRoot. Yes appB is...static goes under Apache DocumentRoot. Yes appB is a war file.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-12168038.post-414880456558300582009-09-04T14:47:17.337+05:302009-09-04T14:47:17.337+05:30ok i ll check..
where u kept that static folder?
...ok i ll check..<br /> where u kept that static folder?<br />in apache or in tomcat or independent of these two folders?<br /> And one more what is appB ? is it war file?Unknownhttps://www.blogger.com/profile/17137282811227165408noreply@blogger.comtag:blogger.com,1999:blog-12168038.post-5947246284869552052009-09-04T14:43:32.553+05:302009-09-04T14:43:32.553+05:30Not sure if 'JkUnMount /*.js ajp13' will w...Not sure if 'JkUnMount /*.js ajp13' will work or not. I kept all static content in a different directory (say static) and then unmounted that like below-<br /><br />JkUnMount /static|/* appB<br /><br />Also you need to have two JkMount directives instead of one-<br />JkMount / appB<br />JkMount /* appB<br /><br />Why don't you give it a try on same pattern as shown in this blog entry, that may help in narrowing down to the root cause of the problem.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-12168038.post-43323936470802878902009-09-04T14:34:04.558+05:302009-09-04T14:34:04.558+05:30i have checked, i think am right, but its not work...i have checked, i think am right, but its not working...<br /><br />VirtualHost localhost:8080><br /> ServerName localhost<br /> ServerAdmin rbparagi@gmail.com<br /> DocumentRoot "C:/Apache2.2/htdocs"<br /> <br /> # All requests go to worker1 by default<br /> JkMount /* ajp13<br /> # Serve html, jpg and gif using httpd<br /> #JkUnMount /*.html ajp13<br /> #JkUnMount /*.jpg ajp13<br /> #JkUnMount /*.gif ajp13<br /> JkUnMount /*.js ajp13<br /> <br /> Directory "C:/Apache2.2/htdocs"<br /> # Options Indexes FollowSymLinks MultiViews<br /> Options None<br /> AllowOverride None<br /> Order allow,deny<br /> allow from all<br /> Directory<br /> <br />VirtualHost<br /><br />this is my configuration..<br /><br />is it work?<br />and how to give JkMount and Jkunmount ? can u give me one example? am new to this so..Unknownhttps://www.blogger.com/profile/17137282811227165408noreply@blogger.comtag:blogger.com,1999:blog-12168038.post-21577456864391132372009-09-04T13:59:48.686+05:302009-09-04T13:59:48.686+05:30See the JkMount and JkUnMount references in the po...See the <b>JkMount</b> and <b>JkUnMount</b> references in the post. You need to unmount the /js URL and get it served by Apache.<br /><br />Also if required you may need to add something like below in server.xml to run application at root context in Tomcat.<br /><br /><context path="" docbase="appA.war" unpackWAR="false" />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-12168038.post-54657546490279584582009-09-04T13:53:03.654+05:302009-09-04T13:53:03.654+05:30no vinod am not able to access like this..
JSP- ht...no vinod am not able to access like this..<br />JSP- http://localhost:81/jsp/myPage.jsp<br />JS- http://localhost:81/js/myScript.js<br /><br />If i request http://localhost:81, at ll directly go to the tomcat (http://localhost:8080) this is my problem, how to get rid of this ? please help me..Unknownhttps://www.blogger.com/profile/17137282811227165408noreply@blogger.comtag:blogger.com,1999:blog-12168038.post-50804335944581110212009-09-04T13:48:34.910+05:302009-09-04T13:48:34.910+05:30Suppose your JS and JSP files are accessible using...Suppose your JS and JSP files are accessible using following URLs-<br />JSP- http://localhost:81/jsp/myPage.jsp<br />JS- http://localhost:81/js/myScript.js<br /><br />To include the Javascript in JSP page, you should write something like-<br />@import url(/js/myScript.js);<br /><br />Hope this helps.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-12168038.post-77259378724452181392009-09-04T09:39:00.813+05:302009-09-04T09:39:00.813+05:30thanks vinod...
still i have one doubt , i hav kep...thanks vinod...<br />still i have one doubt , i hav kept all my javascript files in apache htdocs(C:/apache/htdocs/js) in that js folder i have Example.js , now i want to use this Example.js file in my jsp so what is the url path i have to give?<br /><br />My apache is running on http://localhost:81 and tomcat is running on http://localhost:8080 . I am able to connect to tomcat through apache and modJkUnknownhttps://www.blogger.com/profile/17137282811227165408noreply@blogger.comtag:blogger.com,1999:blog-12168038.post-4312378024039969582009-09-03T22:49:05.185+05:302009-09-03T22:49:05.185+05:30Ravi,
DocumentRoot "/path/to/the/content&quo...Ravi,<br /><br />DocumentRoot "/path/to/the/content" is the absolute path of the content on disk not relative to Tomcat or Apache. Static content like JS or CSS are just a include in HTML/JSP files, so just write correct URL in the files.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-12168038.post-56168138233873286832009-09-03T19:29:27.281+05:302009-09-03T19:29:27.281+05:30DocumentRoot "/path/to/the/content"
&qu...DocumentRoot "/path/to/the/content"<br /><br />"/path/to/the/content" what should I give in this path?<br />is it path from Tomcat server or Apache web server?<br />and one more, how to access these static content say .js file in application?Unknownhttps://www.blogger.com/profile/17137282811227165408noreply@blogger.comtag:blogger.com,1999:blog-12168038.post-69539787377095831432009-05-06T04:26:00.000+05:302009-05-06T04:26:00.000+05:30I used mod_jk-1.2.27-httpd-2.2.6.so on Linux and o...I used mod_jk-1.2.27-httpd-2.2.6.so on Linux and on Windows it was mod_jk-1.2.27-httpd-2.2.10.soAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-12168038.post-88265467390261439842009-05-06T04:04:00.000+05:302009-05-06T04:04:00.000+05:30Can you possibly share what version of mod_jk you ...Can you possibly share what version of mod_jk you used. I have the following config:<br /><br />Java: 1.6.0_13<br />Tomcat: 6.0.18<br />Apache: 2.2.11<br />OS: Windows XP<br /><br />I tried the following two jk modules, but I can't seem to connect from Apache to Tomcat:<br />- mod_jk-1.2.28-httpd-2.2.3.so<br />- mod_jk-1.2.27-httpd-2.2.10.so<br /><br />Thanks.<br /><br />AGAbhishek Goelhttps://www.blogger.com/profile/01517175398005582188noreply@blogger.comtag:blogger.com,1999:blog-12168038.post-57484709543202879122009-02-12T12:29:00.000+05:302009-02-12T12:29:00.000+05:30Apache 2.2 with mod_proxy and related module has m...Apache 2.2 with mod_proxy and related module has made mod_jk redundant. Though mod_jk is still better than mod_proxy in load balancing.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-12168038.post-72247892089372514052009-02-12T11:22:00.000+05:302009-02-12T11:22:00.000+05:30whcih to use either mod_jk ProxyPass or ProxyRever...whcih to use either mod_jk ProxyPass or ProxyReverse in front of jboss using apache.<BR/><BR/>what's different between both... performance , security etcSuneelhttps://www.blogger.com/profile/12753396688220183924noreply@blogger.comtag:blogger.com,1999:blog-12168038.post-51590425464824459532009-02-06T09:27:00.000+05:302009-02-06T09:27:00.000+05:30mod_jk looks a good option to put in front of JBos...mod_jk looks a good option to put in front of JBoss. Though using ProxyPass and ProxyReverse thing one can avoid the mod_jk.Anonymousnoreply@blogger.com