|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Apache 2.2.8+tomcat 6.0.16+Window vista & http 404Recently I installed apache and tomcat. Environment is depicted int subject
line. They both work nice and fine independently. I am trying to integrate them with mod_jk. I belive I followed all the steps suggested by document. 1. I downloaded mod_jk ( 1.2.26) kept it as mod_jk.so in modules directory and added following in line httpd.conf LoadModule jk_module modules/mod_jk.so 2. Went to tomcat Installation, changed server.xml. Added following lines. <Listener className="org.apache.jk.config.ApacheConfig" modJk="C:/Program Files/Apache Software Foundation/Apache2.2/modules/mod_jk.so" workersConfig="C:/softwares/Apache/apache-tomcat-6.0.16/apache-tomcat-6.0.16/conf/jk/workers.properties" /> Afte the line <Server port="8005" shutdown="SHUTDOWN"> Then Added <Listener className="org.apache.jk.config.ApacheConfig" append="true" forwardAll="false" modJk="C:/Program Files/Apache Software Foundation/Apache2.2/m odules/mod_jk.so" /> After the line <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> started the tomcat mod_jk.conf was created. 3. Went back to http.conf Added following line at the end Include C:/softwares/Apache/apache-tomcat-6.0.16/apache-tomcat-6.0.16/conf/auto/mod_jk.conf-auto Also added following lines after LoadModules JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat "%w %V %T" Restarted whole thing. Still I can not go to follwoing web page. http://localhost/examples/jsp/index.html 4. Created workers.properties file in ./con/jk ( in tomcat installation). It looks like follwoing # Define 1 real worker using ajp13 worker.list=ajp13 # Set properties for ajp13 (ajp13) worker.ajp13.type=ajp13 worker.ajp13.host=localhost worker.ajp13.port=8009 After Reading couple of messages on newsgroup, I thought it will solve the issue if I move the <VirtualHost ...> Section from mod_jk.conf to httpd.conf but no avail. my mod_jk.conf looks like somthing like this: <IfModule !mod_jk.c> LoadModule jk_module "C:/Program Files/Apache Software Foundation/Apache2.2/modules/mod_jk.so" </IfModule> JkWorkersFile "C:/softwares/Apache/apache-tomcat-6.0.16/apache-tomcat-6.0.16/conf/jk/workers.properties" JkLogFile "C:/softwares/Apache/apache-tomcat-6.0.16/apache-tomcat-6.0.16/logs/mod_jk.log" JkLogLevel trace am I missing something? Worst thing I can not see mod_jk log Thank you. rn |
|
|
Re: Apache 2.2.8+tomcat 6.0.16+Window vista & http 404rangeli nepal schrieb:
> Recently I installed apache and tomcat. Environment is depicted int subject > line. They both work nice and fine independently. > > I am trying to integrate them with mod_jk. > > I belive I followed all the steps suggested by document. > > 1. I downloaded mod_jk ( 1.2.26) kept it as mod_jk.so in modules directory > and added following in line httpd.conf > > LoadModule jk_module modules/mod_jk.so This alone should already define a default log file mod_jk.log in the logs sub directory of your Apache web server (not the Tomcat directory) and configure it with log level info. Of course you can overwrite that, if you want. If the mod_jk.conf file you wrote doesn't work, is the default log file there? > 3. Went back to http.conf Added following line at the end > > Include > C:/softwares/Apache/apache-tomcat-6.0.16/apache-tomcat-6.0.16/conf/auto/mod_jk.conf-auto -auto ? > my mod_jk.conf looks like somthing like this: no -auto? Regards, Rainer --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Apache 2.2.8+tomcat 6.0.16+Window vista & http 404Thank you Rainer for your reply. Based on your suggestion I did following
0. removed the auto from Include directive. 1. There was log entry specified in mod_jk.conf. It was pointing to the log file in tomcat directory I changed in point to the log file in apache directory. restarted things. 2. Moved the entries to httpd.conf. no effect. 3. Commented out the entries just to see if log is created or not no effect. I think may be my shared library is corrupted but again apache should have complained. On Sat, Jul 19, 2008 at 7:51 AM, Rainer Jung <rainer.jung@...> wrote: > rangeli nepal schrieb: > >> Recently I installed apache and tomcat. Environment is depicted int >> subject >> line. They both work nice and fine independently. >> >> I am trying to integrate them with mod_jk. >> >> I belive I followed all the steps suggested by document. >> >> 1. I downloaded mod_jk ( 1.2.26) kept it as mod_jk.so in modules directory >> and added following in line httpd.conf >> >> LoadModule jk_module modules/mod_jk.so >> > > This alone should already define a default log file mod_jk.log in the logs > sub directory of your Apache web server (not the Tomcat directory) and > configure it with log level info. Of course you can overwrite that, if you > want. If the mod_jk.conf file you wrote doesn't work, is the default log > file there? > > > 3. Went back to http.conf Added following line at the end >> >> Include >> >> C:/softwares/Apache/apache-tomcat-6.0.16/apache-tomcat-6.0.16/conf/auto/mod_jk.conf-auto >> > > -auto ? > > my mod_jk.conf looks like somthing like this: >> > > no -auto? > > Regards, > > Rainer > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@... > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > |
|
|
Re: Apache 2.2.8+tomcat 6.0.16+Window vista & http 404>
I don't see any JkMount directives anywhere in the configs you posted.
> my mod_jk.conf looks like somthing like this: > <IfModule !mod_jk.c> > LoadModule jk_module "C:/Program Files/Apache Software > Foundation/Apache2.2/modules/mod_jk.so" > </IfModule> > JkWorkersFile > "C:/softwares/Apache/apache-tomcat-6.0.16/apache-tomcat-6.0.16/conf/jk/workers.properties" > JkLogFile > "C:/softwares/Apache/apache-tomcat-6.0.16/apache-tomcat-6.0.16/logs/mod_jk.log" > JkLogLevel trace That's the directive that tells Apache Httpd to send requests for tomcat back to tomcat. Assuming you are mounting a webapp named "examples" from tomcat, the JkMount would be: JkMount /examples/* ajp13 > Restarted whole thing. Still I can not go to follwoing web page. > http://localhost/examples/jsp/index.html BTW, what exactly do you get instead of the page? A 404 error? Is it from Httpd or Tomcat? Tomcat's 404s actually have "Apache Tomcat" included in the default error. --David rangeli nepal wrote: > Recently I installed apache and tomcat. Environment is depicted int subject > line. They both work nice and fine independently. > > I am trying to integrate them with mod_jk. > > I belive I followed all the steps suggested by document. > > 1. I downloaded mod_jk ( 1.2.26) kept it as mod_jk.so in modules directory > and added following in line httpd.conf > > LoadModule jk_module modules/mod_jk.so > > 2. Went to tomcat Installation, changed server.xml. Added following lines. > > > > <Listener className="org.apache.jk.config.ApacheConfig" modJk="C:/Program > Files/Apache Software Foundation/Apache2.2/modules/mod_jk.so" > workersConfig="C:/softwares/Apache/apache-tomcat-6.0.16/apache-tomcat-6.0.16/conf/jk/workers.properties" > /> > Afte the line > <Server port="8005" shutdown="SHUTDOWN"> > > Then Added > > <Listener className="org.apache.jk.config.ApacheConfig" append="true" > forwardAll="false" modJk="C:/Program Files/Apache Software > Foundation/Apache2.2/m > odules/mod_jk.so" /> > After the line > > <Host name="localhost" appBase="webapps" > unpackWARs="true" autoDeploy="true" > xmlValidation="false" xmlNamespaceAware="false"> > > started the tomcat mod_jk.conf was created. > > 3. Went back to http.conf Added following line at the end > > Include > C:/softwares/Apache/apache-tomcat-6.0.16/apache-tomcat-6.0.16/conf/auto/mod_jk.conf-auto > > Also added following lines after LoadModules > > JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " > JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories > JkRequestLogFormat "%w %V %T" > > Restarted whole thing. Still I can not go to follwoing web page. > http://localhost/examples/jsp/index.html > > 4. Created workers.properties file in ./con/jk ( in tomcat installation). It > looks like follwoing > # Define 1 real worker using ajp13 > worker.list=ajp13 > # Set properties for ajp13 (ajp13) > worker.ajp13.type=ajp13 > worker.ajp13.host=localhost > worker.ajp13.port=8009 > > After Reading couple of messages on newsgroup, I thought it will solve the > issue if I move the <VirtualHost ...> Section from mod_jk.conf to httpd.conf > but no avail. > my mod_jk.conf looks like somthing like this: > <IfModule !mod_jk.c> > LoadModule jk_module "C:/Program Files/Apache Software > Foundation/Apache2.2/modules/mod_jk.so" > </IfModule> > JkWorkersFile > "C:/softwares/Apache/apache-tomcat-6.0.16/apache-tomcat-6.0.16/conf/jk/workers.properties" > JkLogFile > "C:/softwares/Apache/apache-tomcat-6.0.16/apache-tomcat-6.0.16/logs/mod_jk.log" > JkLogLevel trace > > am I missing something? Worst thing I can not see mod_jk log > Thank you. > rn > > -- David Smith Programmer/Analyst College of Agriculture and Life Sciences Cornell University B32 Morrison Hall Ithaca, NY 14853 Phone: (607) 255-4521 --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free Forum Powered by Nabble | Forum Help |