Prevent mod_jk from checking all virtual hosts
I posted this once before but go no response, so I am trying again. Does anybody know how to prevent mod_jk from checking all virtual hosts in apache? JKWorkers and JkLog setting need to be global. However even in VirtualHosts that have no JkMount statement, mod_jk still checks for matches for every request for every virtual host. Is there a way to turn this behavior off and on ? thanks Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Disable mod_jk for virtualhosts
Is this possible? I know that JkWorkers and JkLog stuff needs to be set globally. But even the virtualhosts that I don¹t have any JkMount statements in , I still see in the debug log, mod_jk trying to match for those. Seems like a lot of extra work for no reason. Anyone know the deal with mod_jk and virtualhosts ? thanks Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Server denies access to resource (mysql JDBC)
org.apache.jasper.JasperException: java.sql.SQLException: Server configuration denies access to data source IS the error I am getting for my mysql JDBC Connection. I dropped the mysql-connector-java-3.0.6-stable-bin.jar file in common/lib as per instructions and have the following setup as one of my contexts. I can log in fine from the command line to mysql, just not thru JDBC. here is my server.xml snippet.. Anyone have similar issues with Mysql ? I am wondering if it is a hostname thing. ... factory org.apache.commons.dbcp.BasicDataSourceFactory driverClassName com.mysql.jdbc.Driver url jdbc:mysql://localhost:3306/testDB username testDB password mypass maxActive 50 maxIdle 10 maxWait -1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Does mod_jk work with virtualhosts ?
I just figured out why my mod_Jk config was not working. It seems if I put the Include conf/mod_jk.conf in the Virtualhost block , or put the Jk* parameters inside a Virtualhost , it does not work. Only when set globally does this work. Does anyone know if mod_jk will work with virtualhosts and if so how to turn it on and off for virtualhosts? I don¹t want mod_jk checking JkMounts for each virtualhost I have, that seems way too expensive. thanks Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat error
Has anyone seen this error before and know what it means? thanks Adam INFO: Initializing Coyote HTTP/1.1 on port 8080 ServerLifecycleListener: createMBeans: MBeanException java.lang.Exception: ManagedBean is not found with Ajp13Connector at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:224) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListe ner.java:369) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListe ner.java:777) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListe ner.java:751) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListe ner.java:339) at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(ServerLife cycleLis tener.java:206) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:1 66) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2182) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Starting service Tomcat-Standalone - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mysql connector/j
Anyone have instructions for installing and configuring the mysql connector/j jar file on tomcat 4.1.18 unix machine? I have the jar but not sure how to configure tomcat to use the jar file.. Do I need to rename the jar file to something specific? thanks Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mod_jk source vs binary
Has anyone had any issues with using the mod_jk binary vs source versions? I saw some posts that said the build of the source fixed a lot of problems that the binary was having. I keep getting the error [jk_worker.c (136)]: wc_get_worker_for_name, done did not found a worker and wondering if it has anything to do with binary vs source. any ideas? adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jk_map.c (map_get function)
Anyone familiar with the mod_jk source who would know why jk_map.c function map_get() would not return a value? I have indentified my problem to that source file where it gets called from jk_worker.c (136) and then map_get() does not return any value, hence the result of the "could not found worker" error from mod_jk thanks Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache 1.3.27 + mod_jk 1.2.2 + tomcat 4..1.18
I have tried on both linux and solaris and still recive this same "did not found worker" error from mod_jk and have no idea why. I am just wondering if it has to do with a version issue. Any unix platform will do. Adam On 3/3/03 2:13 PM, "Mike Jackson" <[EMAIL PROTECTED]> wrote: > What platform? I'm on unixware... > > --mikej > -=- > mike jackson > [EMAIL PROTECTED] > >> -Original Message- >> From: Adam Denenberg [mailto:[EMAIL PROTECTED] >> Sent: Monday, March 03, 2003 11:02 AM >> To: Tomcat Users List >> Subject: Apache 1.3.27 + mod_jk 1.2.2 + tomcat 4..1.18 >> >> >> Anyone have a working config for this combo? >> >> Trying to resolve my "did not found worker" error from mod_jk >> >> adam >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache 1.3.27 + mod_jk 1.2.2 + tomcat 4..1.18
Anyone have a working config for this combo? Trying to resolve my "did not found worker" error from mod_jk adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk error (jk_map.c ERROR)
I have identified the problem to be in the jk_map.c file. For some reason when jk_worker.c calls "map_get()" in jk_map.c, it does not get a value back and thus produces this error. Anyone good in C or who works on mod_jk source know why this would happen ? thanks Adam On 3/3/03 9:12 AM, "Adam Denenberg" <[EMAIL PROTECTED]> wrote: > Thanks john. Does this error come from a problem in the workers.properties > file, or an entry in the httpd.conf do you know? > > It seems that mod_jk finds the match fine in the httpd.conf file, but then > when tries to use a worker it for some reason can not. I have debug on but > am missing the piece that it is specifically dying on. > > thanks again for the help. > > Adam > > On 3/3/03 8:50 AM, "Turner, John" <[EMAIL PROTECTED]> wrote: > >> >> No other ideas, really. In the past, problems like this have come down to >> something really simple, such as using an el ("l") instead of a one ("1") in >> "ajp13" and other typo-related problems (or permission problems). My >> eyesight isn't as good as it used to be, but it looks like you have "ajp13" >> typed out correctly in all the places where it needs to be. >> >> John >> >>> -Original Message- >>> From: Adam Denenberg [mailto:[EMAIL PROTECTED] >>> Sent: Monday, March 03, 2003 8:24 AM >>> To: Tomcat Users List >>> Subject: Re: mod_jk error >>> >>> >>> Hmm, tried that but still no luck. >>> >>> I still get the following >>> >>> [Mon Mar 03 08:16:00 2003] [jk_uri_worker_map.c (477)]: >>> Attempting to map >>> URI '/examples/jsp/dates/date.jsp' >>> >>> [Mon Mar 03 08:16:00 2003] [jk_uri_worker_map.c (558)]: >>> jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match >>> ajp13 -> *.jsp >>> >>> [Mon Mar 03 08:16:00 2003] [jk_worker.c (132)]: Into >>> wc_get_worker_for_name >>> ajp13 >>> >>> [Mon Mar 03 08:16:00 2003] [jk_worker.c (136)]: >>> wc_get_worker_for_name, >>> done did not found a worker >>> >>> Using a very simple workers.properties file. >>> >>> worker.list=ajp13 >>> worker.ajp13.port=8009 >>> worker.ajp13.host=localhost >>> worker.ajp13.type=ajp13 >>> >>> any other suggestions? I am totally out of ideas as to >>> what is causing >>> this error.. >>> >>> thanks >>> Adam >>> >>> >>> On 3/3/03 8:06 AM, "Turner, John" <[EMAIL PROTECTED]> wrote: >>> >>>> >>>> Try deleting the "lbfactor" line from your >>> workers.properties file. It's >>>> not necessary when you only have one worker defined, and it >>> may be causing >>>> confusion to mod_jk.so. >>>> >>>> John >>>> >>>> >>>>> -Original Message- >>>>> From: Adam Denenberg [mailto:[EMAIL PROTECTED] >>>>> Sent: Saturday, March 01, 2003 8:36 PM >>>>> To: [EMAIL PROTECTED] >>>>> Subject: mod_jk error >>>>> >>>>> >>>>> I have been digging everywhere and can not find the answer to >>>>> this error >>>>> that I am getting. >>>>> >>>>> Has anyone seen this error, and resolved it, or found the >>> root of its >>>>> cause? >>>>> >>>>> [Fri Feb 28 21:13:27 2003] [jk_worker.c (136)]: >>>>> wc_get_worker_for_name, >>>>> done did not found a worker >>>>> >>>>> Thanks >>>>> Adam >>>>> >>>>> >>>>> >>> - >>>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>>>> For additional commands, e-mail: >>> [EMAIL PROTECTED] >>>>> >>>> >>>> >>> - >>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>>> For additional commands, e-mail: [EMAIL PROTECTED] >>>> >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk error
Thanks john. Does this error come from a problem in the workers.properties file, or an entry in the httpd.conf do you know? It seems that mod_jk finds the match fine in the httpd.conf file, but then when tries to use a worker it for some reason can not. I have debug on but am missing the piece that it is specifically dying on. thanks again for the help. Adam On 3/3/03 8:50 AM, "Turner, John" <[EMAIL PROTECTED]> wrote: > > No other ideas, really. In the past, problems like this have come down to > something really simple, such as using an el ("l") instead of a one ("1") in > "ajp13" and other typo-related problems (or permission problems). My > eyesight isn't as good as it used to be, but it looks like you have "ajp13" > typed out correctly in all the places where it needs to be. > > John > >> -Original Message- >> From: Adam Denenberg [mailto:[EMAIL PROTECTED] >> Sent: Monday, March 03, 2003 8:24 AM >> To: Tomcat Users List >> Subject: Re: mod_jk error >> >> >> Hmm, tried that but still no luck. >> >> I still get the following >> >> [Mon Mar 03 08:16:00 2003] [jk_uri_worker_map.c (477)]: >> Attempting to map >> URI '/examples/jsp/dates/date.jsp' >> >> [Mon Mar 03 08:16:00 2003] [jk_uri_worker_map.c (558)]: >> jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match >> ajp13 -> *.jsp >> >> [Mon Mar 03 08:16:00 2003] [jk_worker.c (132)]: Into >> wc_get_worker_for_name >> ajp13 >> >> [Mon Mar 03 08:16:00 2003] [jk_worker.c (136)]: >> wc_get_worker_for_name, >> done did not found a worker >> >> Using a very simple workers.properties file. >> >> worker.list=ajp13 >> worker.ajp13.port=8009 >> worker.ajp13.host=localhost >> worker.ajp13.type=ajp13 >> >> any other suggestions? I am totally out of ideas as to >> what is causing >> this error.. >> >> thanks >> Adam >> >> >> On 3/3/03 8:06 AM, "Turner, John" <[EMAIL PROTECTED]> wrote: >> >>> >>> Try deleting the "lbfactor" line from your >> workers.properties file. It's >>> not necessary when you only have one worker defined, and it >> may be causing >>> confusion to mod_jk.so. >>> >>> John >>> >>> >>>> -Original Message- >>>> From: Adam Denenberg [mailto:[EMAIL PROTECTED] >>>> Sent: Saturday, March 01, 2003 8:36 PM >>>> To: [EMAIL PROTECTED] >>>> Subject: mod_jk error >>>> >>>> >>>> I have been digging everywhere and can not find the answer to >>>> this error >>>> that I am getting. >>>> >>>> Has anyone seen this error, and resolved it, or found the >> root of its >>>> cause? >>>> >>>> [Fri Feb 28 21:13:27 2003] [jk_worker.c (136)]: >>>> wc_get_worker_for_name, >>>> done did not found a worker >>>> >>>> Thanks >>>> Adam >>>> >>>> >>>> >> - >>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>>> For additional commands, e-mail: >> [EMAIL PROTECTED] >>>> >>> >>> >> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk error
Hmm, tried that but still no luck. I still get the following [Mon Mar 03 08:16:00 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/examples/jsp/dates/date.jsp' [Mon Mar 03 08:16:00 2003] [jk_uri_worker_map.c (558)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 -> *.jsp [Mon Mar 03 08:16:00 2003] [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13 [Mon Mar 03 08:16:00 2003] [jk_worker.c (136)]: wc_get_worker_for_name, done did not found a worker Using a very simple workers.properties file. worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 any other suggestions? I am totally out of ideas as to what is causing this error.. thanks Adam On 3/3/03 8:06 AM, "Turner, John" <[EMAIL PROTECTED]> wrote: > > Try deleting the "lbfactor" line from your workers.properties file. It's > not necessary when you only have one worker defined, and it may be causing > confusion to mod_jk.so. > > John > > >> -Original Message- >> From: Adam Denenberg [mailto:[EMAIL PROTECTED] >> Sent: Saturday, March 01, 2003 8:36 PM >> To: [EMAIL PROTECTED] >> Subject: mod_jk error >> >> >> I have been digging everywhere and can not find the answer to >> this error >> that I am getting. >> >> Has anyone seen this error, and resolved it, or found the root of its >> cause? >> >> [Fri Feb 28 21:13:27 2003] [jk_worker.c (136)]: >> wc_get_worker_for_name, >> done did not found a worker >> >> Thanks >> Adam >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk error
I have been digging everywhere and can not find the answer to this error that I am getting. Has anyone seen this error, and resolved it, or found the root of its cause? [Fri Feb 28 21:13:27 2003] [jk_worker.c (136)]: wc_get_worker_for_name, done did not found a worker Thanks Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Internal Server Error
Still tested this 100 times and it still only works directly to tomcat at 8080 but not through mod_jk. Are there any additions to the server.xml file that need to be made to make this work properly? It doesn¹t appear the connection even gets to tomcat since the logs don¹t show anything. I am still unlcear why mod_jk is unable to "find a worker" as it complains about? Anyone know what would cause that? thanks Adam On 2/28/03 5:29 PM, "Adam Denenberg" <[EMAIL PROTECTED]> wrote: > Hey , > > I am using apache 1.3.X with tomcat 4.1.18 on solaris 7 and sun JDK 1.4. > > I am getting an internal server error with the folloing jk error in my > mod_jk.log file > > [Fri Feb 28 17:15:43 2003] [jk_uri_worker_map.c (558)] > jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 -> > *.jsp > [Fri Feb 28 17:15:43 2003] [jk_worker.c (132)]: Into wc_get_worker_for_name > ajp13 > [Fri Feb 28 17:15:43 2003] [jk_worker.c (136)]: wc_get_worker_for_name, > done did not found a worker > > My workers.properties file is > > workers.tomcat_home=/usr/local/tomcat > workers.java_home=/usr/local/java > ps=/ > worker.list=ajp13 > worker.ajp13.port=8009 > worker.ajp13.host=localhost > worker.ajp13.type=ajp13 > worker.ajp13.lbfactor=1 > > and my httpd.conf section is > > JkWorkersFile /usr/local/apache/conf/workers.properties >Alias /examples /usr/local/tomcat/webapps/examples >JkLogFile logs/jk.log >JkLogLevel debug >JkMount /examples/*.jsp ajp13 >JkMount /*.jsp ajp13 > > And server.xml relevant is .. > > port="8009" minProcessors="5" maxProcessors="75" > acceptCount="10" debug="0"/> > > The jk2/coyote on 8009 connector was commented out. > > Static content looks fine, however when trying to access a .jsp file, it > fails with an internal server error and the message above. > > Anyone seen this problem or can diagnose why I would get it? I cant figure > it for the life of me. > > thanks > Adam > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Internal Server Error
Yeah sorry should have included that. Everything works fine on the normal tomcat port of 8080. Its going through mod_jk that it breaks. thanks Adam On 2/28/03 5:30 PM, "Mike Jackson" <[EMAIL PROTECTED]> wrote: > I'll ask the obvious question, is tomcat running? > > --mikej > -=- > mike jackson > [EMAIL PROTECTED] > >> -----Original Message- >> From: Adam Denenberg [mailto:[EMAIL PROTECTED] >> Sent: Friday, February 28, 2003 2:29 PM >> To: [EMAIL PROTECTED] >> Subject: Internal Server Error >> >> >> Hey , >> >> I am using apache 1.3.X with tomcat 4.1.18 on solaris 7 and sun JDK 1.4. >> >> I am getting an internal server error with the folloing jk error in my >> mod_jk.log file >> >> [Fri Feb 28 17:15:43 2003] [jk_uri_worker_map.c (558)] >> jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 -> >> *.jsp >> [Fri Feb 28 17:15:43 2003] [jk_worker.c (132)]: Into >> wc_get_worker_for_name >> ajp13 >> [Fri Feb 28 17:15:43 2003] [jk_worker.c (136)]: wc_get_worker_for_name, >> done did not found a worker >> >> My workers.properties file is >> >> workers.tomcat_home=/usr/local/tomcat >> workers.java_home=/usr/local/java >> ps=/ >> worker.list=ajp13 >> worker.ajp13.port=8009 >> worker.ajp13.host=localhost >> worker.ajp13.type=ajp13 >> worker.ajp13.lbfactor=1 >> >> and my httpd.conf section is >> >> JkWorkersFile /usr/local/apache/conf/workers.properties >> Alias /examples /usr/local/tomcat/webapps/examples >> JkLogFile logs/jk.log >> JkLogLevel debug >> JkMount /examples/*.jsp ajp13 >> JkMount /*.jsp ajp13 >> >> And server.xml relevant is .. >> >> >port="8009" minProcessors="5" maxProcessors="75" >>acceptCount="10" debug="0"/> >> >> The jk2/coyote on 8009 connector was commented out. >> >> Static content looks fine, however when trying to access a .jsp file, it >> fails with an internal server error and the message above. >> >> Anyone seen this problem or can diagnose why I would get it? I >> cant figure >> it for the life of me. >> >> thanks >> Adam >> >> >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Internal Server Error
Hey , I am using apache 1.3.X with tomcat 4.1.18 on solaris 7 and sun JDK 1.4. I am getting an internal server error with the folloing jk error in my mod_jk.log file [Fri Feb 28 17:15:43 2003] [jk_uri_worker_map.c (558)] jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 -> *.jsp [Fri Feb 28 17:15:43 2003] [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13 [Fri Feb 28 17:15:43 2003] [jk_worker.c (136)]: wc_get_worker_for_name, done did not found a worker My workers.properties file is workers.tomcat_home=/usr/local/tomcat workers.java_home=/usr/local/java ps=/ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 and my httpd.conf section is JkWorkersFile /usr/local/apache/conf/workers.properties Alias /examples /usr/local/tomcat/webapps/examples JkLogFile logs/jk.log JkLogLevel debug JkMount /examples/*.jsp ajp13 JkMount /*.jsp ajp13 And server.xml relevant is .. The jk2/coyote on 8009 connector was commented out. Static content looks fine, however when trying to access a .jsp file, it fails with an internal server error and the message above. Anyone seen this problem or can diagnose why I would get it? I cant figure it for the life of me. thanks Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]