Re: Please help...
On 9/1/07, Brian Munroe <[EMAIL PROTECTED]> wrote: > On 9/1/07, Hassan Schroeder <[EMAIL PROTECTED]> wrote: > > > > > If you're talking about TC6, there is no common/lib or shared/lib; > > $CATALINA_HOME/lib is correct... > > > > Oh crap, I was going off my 5.5 install! > Hassan: Ok, lend me a hand here, besides the incorrect statement about common/lib, does everything else look fine? -- brian - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Please help...
On 9/1/07, Hassan Schroeder <[EMAIL PROTECTED]> wrote: > > If you're talking about TC6, there is no common/lib or shared/lib; > $CATALINA_HOME/lib is correct... > Oh crap, I was going off my 5.5 install! Thanks! -- brian - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Please help...
On 9/1/07, Brian Munroe <[EMAIL PROTECTED]> wrote: > "For Tomcat 6 > You mention that it is located it $CATALINA_HOME/lib [sic] - which > I'll assume is a typo, but it leads to ambiguity - did you mean > common/lib or shared/lib? Definitely move it to common/lib. If you're talking about TC6, there is no common/lib or shared/lib; $CATALINA_HOME/lib is correct... -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Please help...
On 8/31/07, Mike Cronin <[EMAIL PROTECTED]> wrote: > I am having a problem setting up a connection-pool via JNDI on Tomcat 6.0.14 > utilizing Oracle 10g. Currently I have a for my DataSource > referenced within a element within the server.xml file. The > classes12.jar file which contains the Oracle Driver, exists within the > $CATLINA-HOME/lib. I am able to successfully access my tables outside of the > connection pool so I know that I am getting to the driver. Mike: First thing I can tell you, quoting directly from the Tomcat Docs: "For Tomcat 6, unlike Tomcat 4.x, it is NOT recommended to place elements directly in the server.xml file. This is because it makes modifing the Context configuration more invasive since the main conf/server.xml file cannot be reloaded without restarting Tomcat." Now that I've said that, I'll admit I struggled with connection pooling about a month ago. My problem was that I was trying to place the driver jar file in either shared/lib or WEB-INF/lib. This was incorrect and it needed to be in $CATALINA_HOME/common/lib, where Tomcat could manage it. If you read the classloader section on tomcat.apache.org it will make sense why this is. You mention that it is located it $CATALINA_HOME/lib [sic] - which I'll assume is a typo, but it leads to ambiguity - did you mean common/lib or shared/lib? Definitely move it to common/lib. After trying to get my JDBC resources to work in without much luck. I ended up placing my definitions in META-INF/context.xml. I don't know if you are trying to define a global pool for all your applications or can live with a local app configuration, I made due with a local configuration. Regardless, here is my "hello, world" recipe: In META-INF/context.xml file: I didn't mess around with setting username and password attributes, I just provided them within the connection URL. Finally, in a JSP, I have the following code: (mind you this is just a 'hello, world' - I'd never actually recommend this in real life) <% InitialContext ic = new InitialContext(); DataSource ds = (DataSource) ic.lookup("java:comp/env/jdbc/XEDB"); Connection conn = ds.getConnection(); Statement s = conn.createStatement(); ResultSet rs = s.executeQuery("select * from hello"); while(rs.next()) { out.println(rs.getString(1) + ""); } s.close(); conn.close(); %> I deleted, for example, 's, and basically returned conf/server.xml and WEB-INF/web.xml back to stock, which I had mucked up from trying things googling had suggested I try. Hopefully this works for you too! BTW, classes12.jar is designed for JDK 1.2 and 1.3. From what you mentioned, it is working just fine with your non-pooling code, but you can download [1] a newer version (odbc14.jar comes with Oracle XE). -- brian [1] - http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc_10201.html - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: full path of 404 file
Peter Boughton wrote: > As far as I can tell, the appBase and docBase are correctly pointing to the > webroot dir, and there is the problem. appBase == docBase will result in all sorts of pain and grief. The appBase should never point to the root of any web application. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5 Java instance issue...
Joshua J. Fielek wrote: > Are there any known issues with Tomcat 5.5 that could cause this? No. > Any insights would be appreciated. Get yourself a profiler. It sounds like an application issue. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using own index.html in $CATALINA_HOME/webapps/ROOT directory
jhayden wrote: >> Is this a clean install? >> >> Mark >> >> - > Yes. Brand new. > Without changing anything in ROOT, if I comment out the index.jsp from the > web.xml file it gives me a 404 Error. As soon as I un-comment the line it > works fine. Therefore its only interested in using the index.jsp? For a clean Tomcat 6 install, you can just edit index.html and the changes will be reflected instantly. I noticed there is index.jsp and index.html. The jsp probably needs to be removed from the build. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to close all the port allocated by tomcat after a doGet() request
Hi, I have a simple Servlet (stateless) which has a doGet() metohd. How can I make sure both Tomcat and the client calling that servlet's doGet() to close all the ports allocated upon the doGet() request. Thank you. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Check JSP/Servlet Version from a command line
I also don't know why this is happening (seems like some problem with JMX). However specifying 'registerRequests="false"' on the AJP element looks like it may be a workaround. That will at least prevent the threads blocking in checkRequest. "Jimmy Phelan :: Blacknight Solutions" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi Mark > > Could you let me know if the update to .25 will address the issue we are > experiencing here: > http://mail-archives.apache.org/mod_mbox/tomcat-users/200708.mbox/%3c073301c > [EMAIL PROTECTED] > > Thank you for your time, it is much appreciated > > Jimmy > > -Original Message- > From: Mark Thomas [mailto:[EMAIL PROTECTED] > Sent: 31 August 2007 12:00 > To: Tomcat Users List > Subject: Re: Check JSP/Servlet Version from a command line > > Jimmy Phelan :: Blacknight Solutions wrote: >> How can I check from a command line on *nix the JSP/Servlet version >> installed > > Not sure what you mean. You stated you are using Tomcat 5.5.23 so that > supports the 2.4 servlet spec and 2.0 jsp spec. > > If you want to know what version of the spec your web applications > have been written to, then you'll need to look in the web.xml files > for each application. > >> There are issues with it, and a solution I got from this mailing list was > to >> upgrade the JDK version. We currently have >> >> java version "1.5.0_08" >> >> Im upgrading that to update 12. >> >> Will I need to upgrade tomcat as well? > > Not essential, although 5.5.25 should be out soon. There are quite a > few bug fixes so you might want to take the opportunity to upgrade. > > Mark > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: full path of 404 file
"Peter Boughton" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I mean full system path. (eg: /usr/local/jakarta/tomcat/webapps/index.jsp >or > /home/user/domain/public_html/index.jsp or whatever) > As far as I can tell, the appBase and docBase are correctly pointing to > the > webroot dir, but cPanel/WHM auto-configured server.xml/etc so it could be > doing anything. > This looks like you are attempting the common, but unsupported configuration of trying to make webapps the root of your webapp. The file should be something like /usr/local/jakarta/tomcat/webapps/ROOT/index.jsp. > I'm tempted to just try wiping the conf dir and manually build up from a > mimimal configuration... > > > On 9/1/07, Hassan Schroeder <[EMAIL PROTECTED]> wrote: >> >> On 9/1/07, Peter Boughton <[EMAIL PROTECTED]> wrote: >> > Thanks for the suggestion. I tried access logging, but it's only >> > listing >> the >> > "/index.jsp", not the full path. >> >> Uh, then that *is* the full path; sounds like you need to double-check >> your Tomcat appBase/docBase/etc. configuration... >> >> -- >> Hassan Schroeder [EMAIL PROTECTED] >> >> - >> To start a new topic, e-mail: users@tomcat.apache.org >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > \ \ > Peter Boughton > blog.bpsite.net > / / > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Load Balancing Tomcat 5.0.X, hardware or software?
My vote goes to appliance, but Filip is completely correct, this is a budget based decision. The higher up in your architecture you deal with SSL the better in my experience. (especially in stateless farms) I would look into L2 caching (like EHCache + Hibernate or Terracotta) if you decide to build a LB yourself. Good luck Dwayne On 8/31/07, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: > > bajistaman wrote: > > And what about SSL?, > it sure makes life easier to have the LB take care of it, and if you > look at it from a signed certificate licensing standpoint, cheaper. > verisign and the other dudes, like to charge for "per-box" you wish to > install the cert on. > > it is better to let the load balancer to take care of it > > or every node in the farm? > > > > Thanks, > > > > Johann > > > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: HTTP method GET is not supported by this URL
On 9/1/07, Peter Boughton <[EMAIL PROTECTED]> wrote: > Trying to load index.jsp (or any jsp file, even if it doesn't exist) results > in the following: > HTTP Status 405 - HTTP method GET is not supported by this URL > Anyone got any suggestions on how to fix it? It sounds like your install is totally hosed. If it were me, I'd reinstall from scratch, using a fresh tar file, and see that it worked out of the box (ROOT/index.jsp, examples, etc.). Then try deploying your own app(s). FWIW, -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HTTP method GET is not supported by this URL
Ok, so I re-wrote my config files and I'm not getting 404s any more - I'm getting 405 :( Trying to load index.jsp (or any jsp file, even if it doesn't exist) results in the following: HTTP Status 405 - HTTP method GET is not supported by this URL Google is just producing lots of references to servlets not having doGet or doPost methods - but this is the main JspServlet so that shouldn't be the case, right? Anyone got any suggestions on how to fix it? On 9/1/07, Peter Boughton <[EMAIL PROTECTED]> wrote: > > Only error/warning I can see in catalina.out is this: > Java HotSpot(TM) Client VM warning: Can't detect initial thread stack > location - find_vma failed > > Dunno what that means, but a quick google suggests it can be ignored. > > On 9/1/07, Hassan Schroeder <[EMAIL PROTECTED] > wrote: > > > > On 9/1/07, Peter Boughton <[EMAIL PROTECTED]> wrote: > > > I mean full system path. (eg: > > /usr/local/jakarta/tomcat/webapps/index.jsp or > > > /home/user/domain/public_html/index.jsp or whatever) > > > As far as I can tell, the appBase and docBase are correctly pointing > > to the > > > webroot dir, but cPanel/WHM auto-configured server.xml/etc so it could > > be > > > doing anything. > > > > If the appBase and docBase are set properly, you know where your > > files are :-) but anything done by some third-party control panel -- > > I'd be suspicious, anyway. > > > > Did you look in your catalina.out for startup errors or warnings? > > > > -- > > Hassan Schroeder [EMAIL PROTECTED] > > > > - > > To start a new topic, e-mail: users@tomcat.apache.org > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > \ \ > Peter Boughton > blog.bpsite.net > / / > -- \ \ Peter Boughton blog.bpsite.net / /
Tomcat 5.5 Java instance issue...
Hey folks -- We have an install of tomcat 5.5 (JRE is 1.5) running a set of instances of our application (Centric CRM). The OS is a Linux flavor. On occasion, java usage spikes to roughly 99% of CPU, and memory usage spikes as well, bringing the entire system to its virtual knees. The app does use a fair amount of database access (Postgres 8.X -- don't know the exact version on this install, but I can find out). Are there any known issues with Tomcat 5.5 that could cause this? I've been googling about a little, but haven't seen anything specific yet. Any insights would be appreciated. Thanks, J -- Joshua J. Fielek Sr. Software Engineer Centric CRM 223 East City Hall Ave., Suite 212 Norfolk, VA 23510 Phone : (757) 627-3002x6656 Mobile : (757) 754-4462 Fax: (757) 627-8773 Email : [EMAIL PROTECTED] http://www.centriccrm.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: full path of 404 file
Only error/warning I can see in catalina.out is this: Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location - find_vma failed Dunno what that means, but a quick google suggests it can be ignored. On 9/1/07, Hassan Schroeder <[EMAIL PROTECTED]> wrote: > > On 9/1/07, Peter Boughton <[EMAIL PROTECTED]> wrote: > > I mean full system path. (eg: > /usr/local/jakarta/tomcat/webapps/index.jsp or > > /home/user/domain/public_html/index.jsp or whatever) > > As far as I can tell, the appBase and docBase are correctly pointing to > the > > webroot dir, but cPanel/WHM auto-configured server.xml/etc so it could > be > > doing anything. > > If the appBase and docBase are set properly, you know where your > files are :-) but anything done by some third-party control panel -- > I'd be suspicious, anyway. > > Did you look in your catalina.out for startup errors or warnings? > > -- > Hassan Schroeder [EMAIL PROTECTED] > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- \ \ Peter Boughton blog.bpsite.net / /
Re: full path of 404 file
On 9/1/07, Peter Boughton <[EMAIL PROTECTED]> wrote: > I mean full system path. (eg: /usr/local/jakarta/tomcat/webapps/index.jsp or > /home/user/domain/public_html/index.jsp or whatever) > As far as I can tell, the appBase and docBase are correctly pointing to the > webroot dir, but cPanel/WHM auto-configured server.xml/etc so it could be > doing anything. If the appBase and docBase are set properly, you know where your files are :-) but anything done by some third-party control panel -- I'd be suspicious, anyway. Did you look in your catalina.out for startup errors or warnings? -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using own index.html in $CATALINA_HOME/webapps/ROOT directory
Mark Thomas-15 wrote: > > jhayden wrote: >> Tried that but still getting the error. >> I only left the default index.html file there and it still gives me the >> 404 >> Error. >> It appears that it only wants to use the index.jsp file? > > The default welcome file list is index.html. index.htm, index.jsp. In > that order. > > Is this a clean install? > > Mark > > - > Yes. Brand new. > Without changing anything in ROOT, if I comment out the index.jsp from the > web.xml file it gives me a 404 Error. As soon as I un-comment the line it > works fine. Therefore its only interested in using the index.jsp? > > -- View this message in context: http://www.nabble.com/Using-own-index.html-in-%24CATALINA_HOME-webapps-ROOT-directory-tf4359312.html#a12443155 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: full path of 404 file
I mean full system path. (eg: /usr/local/jakarta/tomcat/webapps/index.jsp or /home/user/domain/public_html/index.jsp or whatever) As far as I can tell, the appBase and docBase are correctly pointing to the webroot dir, but cPanel/WHM auto-configured server.xml/etc so it could be doing anything. I'm tempted to just try wiping the conf dir and manually build up from a mimimal configuration... On 9/1/07, Hassan Schroeder <[EMAIL PROTECTED]> wrote: > > On 9/1/07, Peter Boughton <[EMAIL PROTECTED]> wrote: > > Thanks for the suggestion. I tried access logging, but it's only listing > the > > "/index.jsp", not the full path. > > Uh, then that *is* the full path; sounds like you need to double-check > your Tomcat appBase/docBase/etc. configuration... > > -- > Hassan Schroeder [EMAIL PROTECTED] > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- \ \ Peter Boughton blog.bpsite.net / /
Re: full path of 404 file
On 9/1/07, Peter Boughton <[EMAIL PROTECTED]> wrote: > Thanks for the suggestion. I tried access logging, but it's only listing the > "/index.jsp", not the full path. Uh, then that *is* the full path; sounds like you need to double-check your Tomcat appBase/docBase/etc. configuration... -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: full path of 404 file
Thanks for the suggestion. I tried access logging, but it's only listing the "/index.jsp", not the full path. Was using this page as reference: http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html#Access%20Log%20Valve And put this in the appropriate Host section of server.xml Are there any other patterns that I'm missing? I'll see if I can get a custom 404 working. Thanks, Peter On 9/1/07, Hassan Schroeder <[EMAIL PROTECTED]> wrote: > > On 9/1/07, Peter Boughton <[EMAIL PROTECTED]> wrote: > > > How do I find the full filename Tomcat is looking for when producing the > > 404? > > You could turn on access logging, or you could set up a custom > 404 page to return whatever you think pertinent. > > Of course, if the system doesn't find your custom 404, you're back > to access logging, so ... :-) > > HTH, > -- > Hassan Schroeder [EMAIL PROTECTED] > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- \ \ Peter Boughton blog.bpsite.net / /
Re: full path of 404 file
On 9/1/07, Peter Boughton <[EMAIL PROTECTED]> wrote: > How do I find the full filename Tomcat is looking for when producing the > 404? You could turn on access logging, or you could set up a custom 404 page to return whatever you think pertinent. Of course, if the system doesn't find your custom 404, you're back to access logging, so ... :-) HTH, -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
full path of 404 file
Hello. If I go to www.mydomain.com/index.jsp I get a 404 from Tomcat, despite there definitely being an index.jsp in the webroot. I assume that means it is not looking at the right directory. How do I find the full filename Tomcat is looking for when producing the 404? Thanks, Peter
Re: Downloaded 4.1.36 but says version is 4.1.35?
Brian Munroe wrote: > On 8/31/07, tk-2506 <[EMAIL PROTECTED]> wrote: > >> Any idea what's going on??? >> > > The developers forgot to bump the sub version number in build.properties? Yep. My bad. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Connector: Attempting to map URI '/examples/index.html' from 0 maps
Evert Hoff wrote: Hi Rainer, I got it working at last. I went back to editing auto/mod_jk.conf. I put the following in there and it did the trick: That's good. === [EMAIL PROTECTED] apache-tomcat-6.0.13]# cat /usr/java/apache-tomcat-6.0.13/conf/auto/mod_jk.conf ## Auto generated on Sat Aug 11 15:05:16 CDT 2007## LoadModule jk_module "/etc/httpd/modules/mod_jk-1.2.25-httpd-2.0.59.so" JkWorkersFile "/usr/java/apache-tomcat-6.0.13/conf/jk/workers.properties" JkLogFile "/usr/java/apache-tomcat-6.0.13/logs/mod_jk.log" #JkLogLevel emerg JkLogLevel debug ServerName www2 JkMount /manager ajp13 JkMount /manager/* ajp13 JkMount /docs ajp13 JkMount /docs/* ajp13 JkMount /examples ajp13 JkMount /examples/* ajp13 JkMount /host-manager ajp13 JkMount /host-manager/* ajp13 JkMount /dontstare ajp13 JkMount /dontstare/* ajp13 [EMAIL PROTECTED] apache-tomcat-6.0.13]# But, when I now restart Tomcat and it regenerates the auto/mod_jk.conf, then the changes are lost. Is there a way in which I can get the auto generated mod_jk.conf to contain the www2.noteworthynewsletters.com host instead of localhost? I tried changing the defaultHost attribute of the Engine element in server.xml to "www2.noteworthynewsletters.com", but that didn't work - it still generates it as "localhost". Or must I just copy it and not use the autogenerated file? I don't know about the auto generated file. I thinks it's a nice idea to get a starting configuration easily, but it will not be able to generate a more detailed one. So I would suggest to move the auto-generated one into your apache httpd config tree (and change the corresponding include directive accordingly). Thanks, Evert Regards, Rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Connector: Attempting to map URI '/examples/index.html' from 0 maps
Hi Rainer, I got it working at last. I went back to editing auto/mod_jk.conf. I put the following in there and it did the trick: === [EMAIL PROTECTED] apache-tomcat-6.0.13]# cat /usr/java/apache-tomcat-6.0.13/conf/auto/mod_jk.conf ## Auto generated on Sat Aug 11 15:05:16 CDT 2007## LoadModule jk_module "/etc/httpd/modules/mod_jk-1.2.25-httpd-2.0.59.so" JkWorkersFile "/usr/java/apache-tomcat-6.0.13/conf/jk/workers.properties" JkLogFile "/usr/java/apache-tomcat-6.0.13/logs/mod_jk.log" #JkLogLevel emerg JkLogLevel debug ServerName www2 JkMount /manager ajp13 JkMount /manager/* ajp13 JkMount /docs ajp13 JkMount /docs/* ajp13 JkMount /examples ajp13 JkMount /examples/* ajp13 JkMount /host-manager ajp13 JkMount /host-manager/* ajp13 JkMount /dontstare ajp13 JkMount /dontstare/* ajp13 [EMAIL PROTECTED] apache-tomcat-6.0.13]# But, when I now restart Tomcat and it regenerates the auto/mod_jk.conf, then the changes are lost. Is there a way in which I can get the auto generated mod_jk.conf to contain the www2.noteworthynewsletters.com host instead of localhost? I tried changing the defaultHost attribute of the Engine element in server.xml to "www2.noteworthynewsletters.com", but that didn't work - it still generates it as "localhost". Or must I just copy it and not use the autogenerated file? Thanks, Evert - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Connector: Attempting to map URI '/examples/index.html' from 0 maps
I can't see any include for the file, in which you now put the JkMount statements. I think you'll need to read a bit about apache httpd virtual hosts and also about the two types, IP based and name based. This will help you to understand you httpd configuration first. That's necessary in order to understand, in which parts the additional statements need to go. I'm sorry for not providing more concrete help, but you complicated httpd config really needs to be understand first. It will then be easy to add mod_jk. Regards, Rainer Evert Hoff wrote: Hi Rainer, If you want the JK forwarding to work for www2.noteworthynewsletters.com and your apache httpd configuration uses virtual hosts, you first have to identfy the VirtualHost block that configures the virtual host for www2.noteworthynewsletters.com and then put the JkMounts into that block. Non of the configuration items you included in your mail seem to match www2.noteworthynewsletters.com. I guess, that one defined by Include /var/www/vhosts/noteworthynewsletters.com/conf/httpd.include the contents of which we don't know. I tried putting the JkMounts in there, but it makes no difference. Below is the contents of /var/www/vhosts/noteworthynewsletters.com/conf/httpd.include and /var/www/vhosts/noteworthynewsletters.com/conf/vhost.conf Thanks for your continued help. Evert === [EMAIL PROTECTED] apache-tomcat-6.0.13]# cat /var/www/vhosts/noteworthynewsletters.com/conf/httpd.include # ATTENTION! # DO NOT MODIFY THIS FILE OR ANY PART OF IT. THIS CAN RESULT IN IMPROPER PLESK # FUNCTIONING OR FAILURE, CAUSE DAMAGE AND LOSS OF DATA. IF YOU REQUIRE CUSTOM # MODIFICATIONS TO BE APPLIED TO THE CONFIGURATION, PLEASE, PERFORM THEM IN THE # FOLLOWING FILE(S): # /var/www/vhosts/noteworthynewsletters.com/conf/vhost.conf # /var/www/vhosts/noteworthynewsletters.com/subdomains//conf/v host.conf ServerName noteworthynewsletters.com:80 ServerAlias www.noteworthynewsletters.com UseCanonicalName Off ServerAdmin "[EMAIL PROTECTED]" DocumentRoot /var/www/vhosts/noteworthynewsletters.com/httpdocs CustomLog /var/www/vhosts/noteworthynewsletters.com/statistics/logs/access_log plesklog ErrorLog /var/www/vhosts/noteworthynewsletters.com/statistics/logs/error_log UserDir /var/www/vhosts/noteworthynewsletters.com/web_users Alias /plesk-stat /var/www/vhosts/noteworthynewsletters.com/statistics/ Options +Indexes Require valid-user Alias /webstat /var/www/vhosts/noteworthynewsletters.com/statistics/webstat Alias /webstat-ssl /var/www/vhosts/noteworthynewsletters.com/statistics/webstat-ssl Alias /ftpstat /var/www/vhosts/noteworthynewsletters.com/statistics/ftpstat Alias /anon_ftpstat /var/www/vhosts/noteworthynewsletters.com/statistics/anon_ftpstat Alias /awstats-icon /var/www/html/awstats/icon SSLEngine off php_admin_flag engine off php_admin_flag engine off Options -Includes -ExecCGI php_admin_flag engine off php_admin_flag engine off AuthType Basic AuthName "Domain statistics" AuthUserFile /var/www/vhosts/noteworthynewsletters.com/pd/[EMAIL PROTECTED] require valid-user [EMAIL PROTECTED] apache-tomcat-6.0.13]# cat /var/www/vhosts/noteworthynewsletters.com/conf/vhost.conf LoadModule jk_module "/etc/httpd/modules/mod_jk-1.2.25-httpd-2.0.59.so" JkWorkersFile "/usr/java/apache-tomcat-6.0.13/conf/jk/workers.properties" JkLogFile "/usr/java/apache-tomcat-6.0.13/logs/mod_jk.log" #JkLogLevel emerg JkLogLevel debug ServerName www2 JkMount /manager ajp13 JkMount /manager/* ajp13 JkMount /docs ajp13 JkMount /docs/* ajp13 JkMount /examples ajp13 JkMount /examples/* ajp13 JkMount /host-manager ajp13 JkMount /host-manager/* ajp13 JkMount /dontstare ajp13 JkMount /dontstare/* ajp13 [EMAIL PROTECTED] apache-tomcat-6.0.13]# = - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Connector: Attempting to map URI '/examples/index.html' from 0 maps
Hi Rainer, > If you want the JK forwarding to work for > www2.noteworthynewsletters.com and your apache httpd > configuration uses virtual hosts, you first have to identfy > the VirtualHost block that configures the virtual host for > www2.noteworthynewsletters.com and then put the JkMounts into > that block. Non of the configuration items you included in > your mail seem to match www2.noteworthynewsletters.com. I > guess, that one defined by > > Include /var/www/vhosts/noteworthynewsletters.com/conf/httpd.include > > the contents of which we don't know. I tried putting the JkMounts in there, but it makes no difference. Below is the contents of /var/www/vhosts/noteworthynewsletters.com/conf/httpd.include and /var/www/vhosts/noteworthynewsletters.com/conf/vhost.conf Thanks for your continued help. Evert === [EMAIL PROTECTED] apache-tomcat-6.0.13]# cat /var/www/vhosts/noteworthynewsletters.com/conf/httpd.include # ATTENTION! # DO NOT MODIFY THIS FILE OR ANY PART OF IT. THIS CAN RESULT IN IMPROPER PLESK # FUNCTIONING OR FAILURE, CAUSE DAMAGE AND LOSS OF DATA. IF YOU REQUIRE CUSTOM # MODIFICATIONS TO BE APPLIED TO THE CONFIGURATION, PLEASE, PERFORM THEM IN THE # FOLLOWING FILE(S): # /var/www/vhosts/noteworthynewsletters.com/conf/vhost.conf # /var/www/vhosts/noteworthynewsletters.com/subdomains//conf/v host.conf ServerName noteworthynewsletters.com:80 ServerAlias www.noteworthynewsletters.com UseCanonicalName Off ServerAdmin "[EMAIL PROTECTED]" DocumentRoot /var/www/vhosts/noteworthynewsletters.com/httpdocs CustomLog /var/www/vhosts/noteworthynewsletters.com/statistics/logs/access_log plesklog ErrorLog /var/www/vhosts/noteworthynewsletters.com/statistics/logs/error_log UserDir /var/www/vhosts/noteworthynewsletters.com/web_users Alias /plesk-stat /var/www/vhosts/noteworthynewsletters.com/statistics/ Options +Indexes Require valid-user Alias /webstat /var/www/vhosts/noteworthynewsletters.com/statistics/webstat Alias /webstat-ssl /var/www/vhosts/noteworthynewsletters.com/statistics/webstat-ssl Alias /ftpstat /var/www/vhosts/noteworthynewsletters.com/statistics/ftpstat Alias /anon_ftpstat /var/www/vhosts/noteworthynewsletters.com/statistics/anon_ftpstat Alias /awstats-icon /var/www/html/awstats/icon SSLEngine off php_admin_flag engine off php_admin_flag engine off Options -Includes -ExecCGI php_admin_flag engine off php_admin_flag engine off AuthType Basic AuthName "Domain statistics" AuthUserFile /var/www/vhosts/noteworthynewsletters.com/pd/[EMAIL PROTECTED] require valid-user [EMAIL PROTECTED] apache-tomcat-6.0.13]# cat /var/www/vhosts/noteworthynewsletters.com/conf/vhost.conf LoadModule jk_module "/etc/httpd/modules/mod_jk-1.2.25-httpd-2.0.59.so" JkWorkersFile "/usr/java/apache-tomcat-6.0.13/conf/jk/workers.properties" JkLogFile "/usr/java/apache-tomcat-6.0.13/logs/mod_jk.log" #JkLogLevel emerg JkLogLevel debug ServerName www2 JkMount /manager ajp13 JkMount /manager/* ajp13 JkMount /docs ajp13 JkMount /docs/* ajp13 JkMount /examples ajp13 JkMount /examples/* ajp13 JkMount /host-manager ajp13 JkMount /host-manager/* ajp13 JkMount /dontstare ajp13 JkMount /dontstare/* ajp13 [EMAIL PROTECTED] apache-tomcat-6.0.13]# = - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Connector: Attempting to map URI '/examples/index.html' from 0 maps
Evert Hoff wrote: Hi Rainer, Looks like you've got more than one virtual host in the httpd configuration. JkMounts are not inherited between virtual hosts. Although there is the directive JkMountCopy to inherit JkMount between vhosts, I would expect that not to help in your situation (localshot:80 vs. 127.0.0.1:80). So either - define the same JkMounts in the other vhost I don't know how to do this. I've tried putting the IP address of the server in the conf/auto/mod_jk.conf, but this hasn't made a difference. The server's domain is www2.noteworthynewsletters.com and this virtual host is setup in Plesk. But, whether I try to browse to http://www2.noteworthynewsletters.com/examples or without the virtual host to http://147.202.46.205/examples, I get the same problem. Below is the file that Plesk generated with the virtual domain: If you want the JK forwarding to work for www2.noteworthynewsletters.com and your apache httpd configuration uses virtual hosts, you first have to identfy the VirtualHost block that configures the virtual host for www2.noteworthynewsletters.com and then put the JkMounts into that block. Non of the configuration items you included in your mail seem to match www2.noteworthynewsletters.com. I guess, that one defined by Include /var/www/vhosts/noteworthynewsletters.com/conf/httpd.include the contents of which we don't know. Regards, Rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Connector: Attempting to map URI '/examples/index.html' from 0 maps
Evert Hoff wrote: The documentation says that there is supposed to be an example workers.properties file in Tomcat's conf directory, but there isn't. I found one somewhere on the Internet and modified it. It is below. Could you give us the URL of this page, so we can fix it? It is on this page... http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html ... under the section "Installation", that it says that there should be an example workers.properties in the "conf" directory. By this we mean the conf directory contained in the JK download archive files. We could clarify this. I will comment on your config later. Regards, Rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Connector: Attempting to map URI '/examples/index.html' from 0 maps
Hi Rainer, > Looks like you've got more than one virtual host in the httpd > configuration. JkMounts are not inherited between virtual hosts. > Although there is the directive JkMountCopy to inherit > JkMount between vhosts, I would expect that not to help in > your situation (localshot:80 vs. 127.0.0.1:80). So either > > - define the same JkMounts in the other vhost > I don't know how to do this. I've tried putting the IP address of the server in the conf/auto/mod_jk.conf, but this hasn't made a difference. The server's domain is www2.noteworthynewsletters.com and this virtual host is setup in Plesk. But, whether I try to browse to http://www2.noteworthynewsletters.com/examples or without the virtual host to http://147.202.46.205/examples, I get the same problem. Below is the file that Plesk generated with the virtual domain: [EMAIL PROTECTED] auto]# cd /etc/httpd/conf.d/ [EMAIL PROTECTED] conf.d]# ls fcgid.confperl.conf python.conf ssl.confwelcome.conf zz011_sitebuilder.conf mailman.conf php.conf README webalizer.conf zz010_psa_httpd.conf [EMAIL PROTECTED] conf.d]# cat zz010_psa_httpd.conf NameVirtualHost 72.36.192.154:80 NameVirtualHost 72.36.192.154:443 ServerName server2.noteworthynewsletters.com ServerAdmin [EMAIL PROTECTED] DocumentRoot /var/www/vhosts/default/htdocs LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" plesklog LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" plesklog AllowOverride All Options SymLinksIfOwnerMatch Order allow,deny Allow from all php_admin_flag engine off php_admin_flag engine off AllowOverride All Options SymLinksIfOwnerMatch Order allow,deny Allow from all php_admin_flag engine off php_admin_flag engine off UserDir disabled Include /var/www/vhosts/noteworthynewsletters.com/conf/httpd.include ServerName default UseCanonicalName Off DocumentRoot /var/www/vhosts/default/htdocs ScriptAlias /cgi-bin/ "/var/www/vhosts/default/cgi-bin/" SSLEngine off AllowOverride None Options None Order allow,deny Allow from all php_admin_flag engine on php_admin_flag safe_mode on php_admin_value open_basedir "/var/www/vhosts/default/htdocs:/tmp" php_admin_flag engine on php_admin_flag safe_mode on php_admin_value open_basedir "/var/www/vhosts/default/htdocs:/tmp" CustomLog /var/log/httpd/access_log combined ServerName default-72-36-192-154 UseCanonicalName Off DocumentRoot /var/www/vhosts/default/httpsdocs ScriptAlias /cgi-bin/ "/var/www/vhosts/default/cgi-bin/" SSLEngine on SSLVerifyClient none SSLCertificateFile /usr/local/psa/var/certificates/certQtX4632 AllowOverride None Options None Order allow,deny Allow from all SSLRequireSSL CustomLog /var/log/httpd/access_log combined DocumentRoot /usr/share/psa-horde/ Alias /horde/ /usr/share/psa-horde/ Alias /imp/ /usr/share/psa-horde/imp/ ServerName webmail ServerAlias webmail.* UseCanonicalName Off php_admin_flag engine on php_admin_flag magic_quotes_gpc off php_admin_flag safe_mode off php_admin_value open_basedir "/usr/share/psa-horde:/etc/psa-horde:/etc/psa:/tmp:/var/tmp:/var/log/psa-hor de:/usr/share/doc" php_admin_value include_path "/usr/share/psa-horde:/usr/share/psa-horde/pear:." php_admin_flag engine on php_admin_flag magic_quotes_gpc off php_admin_flag safe_mode off php_admin_value open_basedir "/usr/share/psa-horde:/etc/psa-horde:/etc/psa:/tmp:/var/tmp:/var/log/psa-hor de:/usr/share/doc" php_admin_value include_path "/usr/share/psa-horde:/usr/share/psa-horde/pear:." Order allow,deny Allow from all CustomLog /var/log/httpd/access_log combined DocumentRoot /usr/share/psa-horde/ Alias /horde/ /usr/share/psa-horde/ Alias /imp/ /usr/share/psa-horde/imp/ ServerName webmail ServerAlias webmail.* UseCanonicalName Off SSLEngine on SSLVerifyClient none SSLCertifica
Re: Tomcat Connector: Attempting to map URI '/examples/index.html' from 0 maps
Evert Hoff wrote: Hi, I am stuck trying to get Tomcat Connector to work. The mod_jk.log file (included in full at the bottom of this email) says "Attempting to map URI '/examples/index.html' from 0 maps". When I restart httpd, it gives the message below about 127.0.0.1:80 overlapping with localhost:80. I don't know if that is part of the problem. Looks like you've got more than one virtual host in the httpd configuration. JkMounts are not inherited between virtual hosts. Although there is the directive JkMountCopy to inherit JkMount between vhosts, I would expect that not to help in your situation (localshot:80 vs. 127.0.0.1:80). So either - define the same JkMounts in the other vhost or - define them globally and add "JkMountCopy On" to each vhost. The documentation says that there is supposed to be an example workers.properties file in Tomcat's conf directory, but there isn't. I found one somewhere on the Internet and modified it. It is below. Could you give us the URL of this page, so we can fix it? Please help. Thanks, Evert == [EMAIL PROTECTED] jk]# /etc/init.d/httpd restart Stopping httpd:[ OK ] Starting httpd: [Sat Sep 01 05:27:45 2007] [warn] VirtualHost 127.0.0.1:80 overlaps with VirtualHost localhost:80, the first has precedence, perhaps you need a NameVirtualHost directive Regards, Rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]