Re: Context Being Ignored?
Works for me. Are you sure you context is initializing properly? Does it actually work? Check stdout for info. Jake At 03:20 PM 1/24/2004 -0600, you wrote: Below is the Context element I'm using for my application. It was originally created for Tomcat 4.1. With this Context element in server.xml in Tomcat 4.1, a log file of localhost_timesheet_log.txt appeared in the %CATALINA%\log directory. Context path=/timesheet docBase=timesheet debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_timesheet_log. suffix=.txt timestamp=true/ /Context However, under 5.0.18 (and maybe under 5.0.16--I didn't notice), the only log I get is the (apparently) generic localhost_log.2004-01-24.txt. Does this mean that my Context element is being ignored, or does 5.0 not observe the Logger sub-element of the Context element? Merrill - 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: bad signature for jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz
Eric Emminger wrote, On 1/24/2004 12:25 PM: I'm trying to verify the signature of jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz, but gpg says public key not found. I DID import the KEYS from http://www.apache.org/dist/jakarta/tomcat-connectors/KEYS. Here's the output of the gpg verify command. $ gpg --verify jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz.asc gpg: Signature made Wed Nov 27 03:15:54 2002 EST using DSA key ID 881EBC94 gpg: Can't check signature: public key not found Looks like that is an old key of Mladen Turk, so he probably accidently used an old key instead of his new one, or something fishy is going on. Google for 881EBC94 and you'll find his old key. Better bring this up on the -dev list. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: restrictedUserAgents parameter
Oh dear, I think I made a fool of myself: I did not realize that it tried to send zero-byte files in this special case because the audio encoder crashed (still working on this). I manually encoded it for testing then and then it appeared to work. I will reply again if I find other errors. I am still curious about the Connection: close that is always sent though. Lukas Am 25.01.2004 00:09:00, schrieb Lukas sterreicher [EMAIL PROTECTED]: Hello I was recently tipped to try the restrictedUserAgents parameter in the server.xml file. This parameter however is not correctly implemented in tomcat 5.0.16. So now I found a (alpha?) compile of tomcat 5.0.18 and I think they have done work on it because at least the server reacts differently now if I turn it on. I have added restrictedUserAgents=Winamp to force http 1.0 replies for requests of winamp because it apparantly cannot deal with chunked encoding (at least for ogg). Without the parameter it would send in http 1.1 and chunked encoding (because I do not know the content length). With the parameter it would just close the connection. This is all because for ogg winamp requests in http 1.1. For mp3 data it requests in http 1.0 and the reply is a continuous datastream with unknown length. The strange thing is that in both cases it will send Connection: close, but in case of mp3 it will send a datastream afterwards, in case of ogg it will not. I had hoped and thought that when I use the restrictedUserAgents parameter it will force replies to http 1.0 and thus reply like it does with mp3: send an un-cunked audio stream. Why doesn't it? Is this option not properly implemented still? See some http headers for details: MP3 Request: GET /yarf/hdm.mp3;jsessionid=893513CC03654D83936718AAB1EEEA8F?trackid=82file=hdm.mp3 HTTP/1.0..Host: yarf.sytes.net..User-Agent: WinampMPEG/2.8..Accept: */*..Icy- MetaData:1..--: - MP3 Response: HTTP/1.1 200 OK..Content-Location: hdm_56k.mp3..Content-Type: audio/x-mpeg..Date: Sat, 24 Jan 2004 22:55:03 GMT..Server: Apache-Coyote/1.1..Connection: close ...4 ..LAME3.92 OGG Request: GET /yarf/hdm.ogg;jsessionid=893513CC03654D83936718AAB1EEEA8F?trackid=82file=hdm.ogg HTTP/1.1..Host:yarf.sytes.net..User-Agent:Winamp..Accept:*/* Ogg Response: HTTP/1.1 200 OK..Content-Location: hdm_28k.ogg..Content-Type: application/ogg..Date: Sat, 24 Jan 2004 22:59:57 GMT..Server: Apache-Coyote/1.1..Connection: close Note: The MP3 Response contains also the first few bytes of the real datastream So my question: How can I force tomcat reply ogg like it would for mp3? Theoretically, would it reply like I want to if for ogg it sent a HTTP 1.0 request? Why does it send Connection: close but send mp3 data afterwards? Thanx in Advance, Lukas - 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]
Running Tomcat 4.1.27 as NT service - logs
Hi, I had no problems installing the tomcat as service but its deleting my logs anytime I restart the server, Can someone tell me how to change the configuration so it will not delete the logs? Regards, Yuval - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Context Being Ignored?
Jake, Well, I've managed to show that the Context element itself isn't being ignored. I modified it so that typing ts on the URL would execute the timesheet app in webapps. However, the Logger sub-element that defines a custom log file name for the application still doesn't seem to be active. I wonder if that was another change between 4.1 and 5.0? Merrill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Context Being Ignored?
At 08:44 AM 1/25/2004 -0600, you wrote: Jake, Well, I've managed to show that the Context element itself isn't being ignored. I modified it so that typing ts on the URL would execute the timesheet app in webapps. However, the Logger sub-element that defines a custom log file name for the application still doesn't seem to be active. I wonder if that was another change between 4.1 and 5.0? Worked for me under both Tomcat-4.1.xx and 5.0.xx. Jake Merrill - 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: Repeated load-on-startup niggle
Hi Joe, I'm not sure exactly what your query is but the setup I have is a / and a /hal Context. The Filter I am using to direct any requests to / to /hal lives in the WEB-INF/classes dir of the / context. In my case I used the Tomcat default dir of ../webapps/ROOT for the / docBase. Further. the configuration for the Filter and the URL pattern to fire it is in the web.xml file in that same WEB-INF dir. I do use /* as the URL pattern, but remember that these URL patterbs are relative to the Context the web.xml file is in. i.e. webapps/ROOT/WEB_INF/web.xml URL pattern of /* matches http://myserver/* webapps/hal/WEB_INF/web.xml URL pattern of /* matches http://myserver/hal/* Sorry if I've missed your point. Regards, Chris Shapira, Yoav wrote: Howdy, A javax.servlet.Filter is one nice clean way. Apologies if this is dumb q: Googling the jakarta site and reading the tomcat o'reilly have left me confused on this. Isn't the filter part of web app? From jakarta: Filters are configured in the deployment descriptor of a web application And in o'reilly the filter and filter-mappnig tags are discussed in the web.xml section. Doesn't this raise a namespace issue? If your servlet-mapping is to /foo, then a filter on /* seems like it will either never fire, or else be ambiguous with other /* filters in other web apps (such as the /bar webapp, with it's own /* filter). The original poster had a /hal context and a / context. Does the filter solution require the / context to remain? Or is that unneeded? thanks for any unconfusion, -joe - 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]
Access to connection pool through tomcat api
Hi everybody, does anybody know, if it's possible, to access information about a tomcat connection pool through the tomcat api. I am looking for a way to ask my container, how much connections are still left. As far as I know tomcat only routes the requests for the pool to the DataSources. If this is not possible, does anybody know, if tomcat is ever going to be extended by this feature ?? Thanks, Philipp. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Special URL servlet request.
Joe Francis wrote: But it was no longer able to find other content such as static html files and image files that were bundled into my servlet. Tell us how you are trying to 'find other content' and we might be able to help you. Harry When I tried that approach (adding /* to the mapping), my servlet received the requests to those url's with additional path, and was able to extract the patch info using HttpServeltRequest.getPathInfo. But it was no longer able to find other content such as static html files and image files that were bundled into my servlet. How do I receive requests to urls that have additional path, but not cut off access to my own internal content? Bodycombe, Andrew wrote: In web.xml: web-app servlet servlet-namedigfidl/servlet-name servlet-classse.two4hr.servlet.DLServlet/servlet-class /servlet servlet-mapping servlet-namedigfidl/servlet-name url-pattern/digfidl/url-pattern /servlet-mapping servlet-mapping servlet-namedigfidl/servlet-name url-pattern/digfidl/*/url-pattern /servlet-mapping /web-app -Original Message- From: matsmobil [mailto:[EMAIL PROTECTED] Sent: 23 January 2004 13:25 To: [EMAIL PROTECTED] Subject: Special URL servlet request. This request works:http://digfi.com/digfidl/digfidl and calls my Servlet OK. The question is how can I call my servlet with the following URL: http://digfi.com/digfidl/digfidl/dAc/OM1617RbR/YT4075/Uk5673We/qih/dFOE1051/ 1gpus/LYxx/tKG0/iXcaP.rm/?copyright=digfi.comauthor=Chine The Slippery Hornstitle=Scatterminded I have to make this request like this because my calling applikation can't use '?' in the URL-requests. Could this be done in TC 5.0.18 only ore do I have to have apache as frontend for TC 5.0.18. - In TC/conf/server.xml I have added the following row: Context path=/digfidl docBase=digfidl debug=0 reloadable=true / - TC/webapps/digfidl/WEB-INF/web.xml contains: web-app - servlet servlet-namedigfidl/servlet-name servlet-classse.two4hr.servlet.DLServlet/servlet-class /servlet - servlet-mapping servlet-namedigfidl/servlet-name url-pattern/digfidl/url-pattern /servlet-mapping /web-app -- - 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]
simple virtual host question
I am using Tomcat 4.1.29 with JDK 1.4.x. The network is configured with a router with a firewall to the Internet and a Tomcat server with a static IP(maintained by the router for forwarding purposes) behind the firewall. The router's IP is 12.12.12.12 and I have it forward all http requests to the Tomcat machine at IP 192.168.1.1. So, for purposes of connecting to the server from the Internet, I must send the request to the router which forwards the request to the Tomcat server. So, what do I define my virtual host as: 12.12.12.12 or 192.168.1.1? It seems that the browsers are sending the requst to 12.12.12.12, so I would build a virtual host for this host name? And localhost if I am building on the same machine. OT: If I want the same multiple contexts deployed to two virtual hosts(server IP and localhost), do I have to repeat the context elements in both? Is there a way to cut down on the redundancy or normalize the code so the context is defined in one location with the same properties for both virtual hosts? Thank you for any insight, Dan Doyle - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: simple virtual host question
Dear Dan, If you want to use Virtual hosting based on Server name you need to use the servername you have. If you an internet domain and you want your lan server to be accessed from the internet, then you have to use that servername. About the IPs, you need to use the lan IP, not the router one. If the router is using NAT then It will make the translation for you. HTH Miguel I am using Tomcat 4.1.29 with JDK 1.4.x. The network is configured with a router with a firewall to the Internet and a Tomcat server with a static IP(maintained by the router for forwarding purposes) behind the firewall. The router's IP is 12.12.12.12 and I have it forward all http requests to the Tomcat machine at IP 192.168.1.1. So, for purposes of connecting to the server from the Internet, I must send the request to the router which forwards the request to the Tomcat server. So, what do I define my virtual host as: 12.12.12.12 or 192.168.1.1? It seems that the browsers are sending the requst to 12.12.12.12, so I would build a virtual host for this host name? And localhost if I am building on the same machine. OT: If I want the same multiple contexts deployed to two virtual hosts(server IP and localhost), do I have to repeat the context elements in both? Is there a way to cut down on the redundancy or normalize the code so the context is defined in one location with the same properties for both virtual hosts? Thank you for any insight, Dan Doyle - 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: Access to connection pool through tomcat api
Hi! Philipp von dem Bussche wrote: does anybody know, if it's possible, to access information about a tomcat connection pool through the tomcat api. I am looking for a way to ask my container, how much connections are still left. Since pooling is not a feature of the container, this very much depends on the connection pool implementation you are using. The pools I know of do not offer such a feature. If you are sure that your application is not leaking connections, this should hardly be an issue, though. Just choose your pool large enough for your application's needs. If this is not possible, does anybody know, if tomcat is ever going to be extended by this feature ?? I very much doubt it, since connection pooling is not among the features described in the J2EE specifications, let alone for a servlet container. Tomcat is just an implementation of those specs and hence will not provide such an API unless required to. Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to change page encoding, sent by server
Have a look at http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13231 In the meta tag has no effect. You need to use the [EMAIL PROTECTED] ... directive instead. Mark -Original Message- From: Ivan Kozlov [mailto:[EMAIL PROTECTED] Sent: Saturday, January 24, 2004 8:56 PM To: [EMAIL PROTECTED] Subject: How to change page encoding, sent by server Hello tomcat-user, HTTP/1.1 200 OK X-Cocoon-Version: 2.0.4 Set-Cookie: JSESSIONID=D816F008A8A742B27835AC15F6D58D55; Path=/sdx Content-Type: text/html;charset=ISO-8859-1 ^^ - that encoding is sent by server Date: Thu, 22 Jan 2004 10:16:01 GMT Server: Apache-Coyote/1.1 Connection: close html xmlns:sdx=http://www.culture.gouv.fr/ns/sdx/sdx; xmlns:xsp-pcd=http://cyberdocs.org/pcd/ns/xsp/1.0; xmlns:c-pcd=http://cyberdocs.org/pcd/ns/contenu/1.0; xmlns:nav=http://ajlsm.com/sdx/navigation/cbe/1.0; head meta http-equiv=Content-Type content=text/html; charset=UTF-8 ^^ ^^^ that is that i define on page, but in Explorer I still see ISO-8859-1, how can I change it to UTF-8 too. Looks like tryed to change all configuration files, even thought it is somewhere in sources Can someone help me? thanks. -- Best regards, Ivan mailto:[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: simple virtual host question
Thank you Miquel. Let me repeat what you are saying. Essentially, I set up a host element entry in my server.xml with my lan servers IP. The router, when it receves a request to IP 12.12.12.12:80 will translate that request into 192.168.1.1:80 and sent it to the lan server. Thanks again. Dan Dear Dan, If you want to use Virtual hosting based on Server name you need to use the servername you have. If you an internet domain and you want your lan server to be accessed from the internet, then you have to use that servername. About the IPs, you need to use the lan IP, not the router one. If the router is using NAT then It will make the translation for you. HTH Miguel I am using Tomcat 4.1.29 with JDK 1.4.x. The network is configured with a router with a firewall to the Internet and a Tomcat server with a static IP(maintained by the router for forwarding purposes) behind the firewall. The router's IP is 12.12.12.12 and I have it forward all http requests to the Tomcat machine at IP 192.168.1.1. So, for purposes of connecting to the server from the Internet, I must send the request to the router which forwards the request to the Tomcat server. So, what do I define my virtual host as: 12.12.12.12 or 192.168.1.1? It seems that the browsers are sending the requst to 12.12.12.12, so I would build a virtual host for this host name? And localhost if I am building on the same machine. OT: If I want the same multiple contexts deployed to two virtual hosts(server IP and localhost), do I have to repeat the context elements in both? Is there a way to cut down on the redundancy or normalize the code so the context is defined in one location with the same properties for both virtual hosts? Thank you for any insight, Dan Doyle - 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: Antwort: RE: SSL, keystore with ca hierarchy
I can't do step 1 and 2 because the certificate and private key has been created already with openssl. The file TestServer_APU.pem contains the private key and certificate in the PEM format. Should that work either? Sorry, no idea. You may need to convert formats. A quick Google found https://lists.freeswan.org/archives/users/2003-August/msg00040.html that may help if a format conversion is required. Does the cacerts has to be located in %JAVA_HOME%\jre\lib\security\cacerts or can I place it anywhere else? See http://java.sun.com/products/jsse/install.html for how to configure trust store locations. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: simple virtual host question
Yes, exactly. The NAT of your router will do the translation back and forth from the Internet IP to your server IP (lan). Tell me how it went Miguel Dan escribió: Thank you Miquel. Let me repeat what you are saying. Essentially, I set up a host element entry in my server.xml with my lan servers IP. The router, when it receves a request to IP 12.12.12.12:80 will translate that request into 192.168.1.1:80 and sent it to the lan server. Thanks again. Dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat5.0.16 Requested resource not available
Thanks Tim, for pointing out to the materials :-) Looks like my reference book uses Tomcat 4.0.* where the invoker servlet is uncommented by default and there was no reference about the invoker. it finally works !! :-) On Sun, 2004-01-25 at 01:51, Tim Funk wrote: It probably works on the other machine because the invoker servlet is turned on. http://jakarta.apache.org/tomcat/faq/misc.html#invoker -Tim dontrango wrote: Hi Tim, How does it explain that it works on one machine but not on the others? Both use the same config and no servlet mapping in both cases. In any case, do you refer to URI mapping in this? On Sat, 2004-01-24 at 23:19, Tim Funk wrote: You declared the servlet but did not map it. I suggest a good servlet book or consulting Sun's web services develpoment tutorial. -Tim Bill Trump wrote: Hi, I have the error message below whenever I'm calling my servlet: I run http://localhost:8080/myApp/servlet/TestingServlet2; I get : HTTP Status 404 - /myApp/servlet/TestingServlet2 type Status report message /myApp/servlet/TestingServlet2 description The requested resource (/myApp/servlet/TestingServlet2) is not available. Apache Tomcat/5.0.16 --- I read the thread RE: Tomcat4.1.29 Requested resource not available on this mailing list, I managed to get the same result suggested by BAO RuiXian on the last thread. So I still don't get the solution. My settings: JAVA_HOME=/usr/local/opt/j2sdk1.4.2_01/ CLASSPATH=/usr/local/opt/tomcat/common/lib/servlet-api.jar:. Using CATALINA_BASE: /usr/local/opt/tomcat Using CATALINA_HOME: /usr/local/opt/tomcat Using CATALINA_TMPDIR: /usr/local/opt/tomcat/temp Using JAVA_HOME: /usr/local/opt/j2sdk1.4.2_01/ My server.xml - Host name=localhost debug=4 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=mandala_log. suffix=.txt timestamp=false/ Logger className=org.apache.catalina.logger.SystemOutLogger directory=logs prefix=mandala_sysout_log. suffix=.txt timestamp=false/ Logger className=org.apache.catalina.logger.SystemErrLogger directory=logs prefix=mandala_syserr_log. suffix=.txt timestamp=false/ !-- Turn on servlet reloading -- DefaultContext reloadable=true debug=4/ !-- Tomcat Root Context -- Context path=/myApp docBase=myApp reloadable=true debug=4/ /Host My web.xml -- ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-nameTestingServlet2/servlet-name servlet-classTestingServlet2/servlet-class /servlet /web-app What I've done: --- I have an instance of tomcat4.1.27 running on another machine (say hostA) and this tomcat5.0.16 runs on (host B). 1. I compiled 'TestingServlet2' on hostB, brought it to hostA to the same directory ( I have the same directory structure, *.xml files on both hosts ) I managed to get the wanted output on host A but not on host B. 2. I compiled 'TestingServlet2' on host B in CATALINA_HOME/webapps/myApp/WEB-INF/classes, brought the .java file to CATALINA_HOME/webapps/jsp-examples/WEB-INF/classes and compiled it there. the I revert to the original server.xml: Context path= docBase=ROOT reloadable=true debug=4/ !-- Context path=/myApp docBase=myApp reloadable=true debug=4/ -- then I run http://localhost:8080/jsp-examples/servlet/TestingServlet2. I still get the 'HTTP 404' error message. I managed to see the other examples without any problem. 3. when I run http://localhost:8080/myApp/, I'm able to see the directory listing there. It seems that only catalina can't see the servlets I placed in the WEB-INF/classes directory. - 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[2]: How to change page encoding, sent by server
Hello Mark, Sunday, January 25, 2004, 9:20:53 PM, you wrote: MT Have a look at MT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13231 MT In the meta tag has no effect. You need to use the [EMAIL PROTECTED] ... directive MT instead. I tryed to change index.jsp in /WEBAPP/ROOT - that only changed encoding of default page. How could I do such a thing in my XSP application, if pages generated automatically by cocoon? -- Best regards, Ivanmailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DefaultContext Management from Tomcat Administration
I have just installed Tomcat 5 and am very impressed with the usability changes from 4.x and am thrilled about the new spec. But, i use the DefaultContext configuration component quite often in my Host. After having used the Tomcat Administration Tool I found no way to establish a DefaultContext within a host using the Tomcat Admonistration Tool. Am I missing something or is this a terrible oversite? Brandon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk problem
Hello Does anyone know of a good tutorial for setting up mo_jk or mod_jk2 in apache2? I've been trying now for 4 days to set it up but I've failed. I've been trying to set it up on SuSU linux 9.0 with apache2.0.48 (http://apache.archive.sunet.se/dist/httpd/httpd-2.0.48.tar.gz) and tomcat 5.0.18 (http://apache.archive.sunet.se/dist/jakarta/tomcat-5/v5.0.18/bin/jakarta-tomcat-5.0.18.tar.gz) and the lastest version of JK 1.2 (or JK2). After complíling apache2 and JK, and creating a workers.properties file and editing httpd.conf, no *.jsp pages are sent to tomcat to be interpreted but instead the unformated file is shown (in apache2) or only the html code is formated but not the jsp (in apache 1.3). Has anyone ever had the same problem or is there something that I'm missing? Thx before hand Lukas
mod_jk problem
Hello Does anyone know of a good tutorial for setting up mo_jk or mod_jk2 in apache2? I've been trying now for 4 days to set it up but I've failed. I've been trying to set it up on SuSU linux 9.0 with apache2.0.48 (http://apache.archive.sunet.se/dist/httpd/httpd-2.0.48.tar.gz) and tomcat 5.0.18 (http://apache.archive.sunet.se/dist/jakarta/tomcat-5/v5.0.18/bin/jakarta-tomcat-5.0.18.tar.gz) and the lastest version of JK 1.2 (or JK2). After complíling apache2 and JK, and creating a workers.properties file and editing httpd.conf, no *.jsp pages are sent to tomcat to be interpreted but instead the unformated file is shown (in apache2) or only the html code is formated but not the jsp (in apache 1.3). Has anyone ever had the same problem or is there something that I'm missing? Thx before hand Lukas
RE: mod_jk problem
That is the most informative link i know of. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html -Original Message- From: Lukas Larsson [mailto:[EMAIL PROTECTED] Sent: Sunday, January 25, 2004 12:33 PM To: 'Tomcat Users List' Subject: mod_jk problem Hello Does anyone know of a good tutorial for setting up mo_jk or mod_jk2 in apache2? I've been trying now for 4 days to set it up but I've failed. I've been trying to set it up on SuSU linux 9.0 with apache2.0.48 (http://apache.archive.sunet.se/dist/httpd/httpd-2.0.48.tar.gz) and tomcat 5.0.18 (http://apache.archive.sunet.se/dist/jakarta/tomcat-5/v5.0.18/bin/jakarta-to mcat-5.0.18.tar.gz) and the lastest version of JK 1.2 (or JK2). After complíling apache2 and JK, and creating a workers.properties file and editing httpd.conf, no *.jsp pages are sent to tomcat to be interpreted but instead the unformated file is shown (in apache2) or only the html code is formated but not the jsp (in apache 1.3). Has anyone ever had the same problem or is there something that I'm missing? Thx before hand Lukas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk problem
Please see the following: http://nagoya.apache.org/wiki/apachewiki.cgi?TomcatWeb or http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links Lots of information, including several step-by-step documents. HTH /mde/ just my two cents . . . . __ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems running Model2 webapp
I inherited a web application a couple of weeks ago and I'm having a hard time trying to get it to run within Tomcat. Unfortunately, I do not have any system documentation nor a buildfile for the system. I'm attempting to get this application to run in two different environments: Mac OS X 10.3.2, Java 1.4.1, Tomcat 4.1.18 Windows 2000, Java 1.4.2, Tomcat 3.3.1a The app I inherited does have a WEB-INF folder, but most of the code/classes are scattered about. Let's call the web application eReport. Under $CATALINA_HOME (or $TOMCAT_HOME), I set up the following directory structure: webapps/ eReport/ *.jsp *.inc *.js WEB-INF/ web.xml classes/ *.java *.classes lib/ *.jar I eventually removed the *.java files from WEB-INF/classes as I've experienced in other app servers that the Java files mess stuff up. The almost all of the JSP pages try to import a class called SessionConnection. The class file for this is located in WEB-INF/classes. When I go to view the JSP, I get 2 different errors depending on the environment I'm using: OS X- /Library/Tomcat/work/Standalone/localhost/eSIMS/DeleteUser_jsp.java:8: '.' expected import SessionConnection; ^ Windows 2000- HTTP 404 file not found The JSPs do compile in the Win2000 environment as I see the *.java files in the work/ directory. If I remove SessionConnection from the import list, then I receive an HTML formatted error message from the error.jsp page that was included (this page does not import SessionConnection). It almost seems to me that there's a classpath issue here, but I was certain that in Tomcat the contents of WEB-INF/classes were automatically in the classpath. I'm sure this is a stupid error, so please forgive me. I spend 90% of my time creating mod_perl/Mason websites and 10% of the time using Websphere with Ant build scripts provided by the web team. If anyone knows what boneheaded mistake I'm making, I'd appreciate some help. Thank you, Curt
Re: Problems running Model2 webapp
For the Tomcat 4.1.x issue, read here for a likely cause: http://jakarta.apache.org/tomcat/faq/classnotfound.html If it's a Servlet 2.2/JSP 1.1 application, you may do best to keep it in Tomcat 3... and a 1.3.1 JRE unless you move the classes into packages. For further debugging, try simple test JSPs (hello_world.jsp or something like that) to see if they work, and of course check the logs. Curt R. Crandall wrote: I inherited a web application a couple of weeks ago and I'm having a hard time trying to get it to run within Tomcat. Unfortunately, I do not have any system documentation nor a buildfile for the system. I'm attempting to get this application to run in two different environments: Mac OS X 10.3.2, Java 1.4.1, Tomcat 4.1.18 Windows 2000, Java 1.4.2, Tomcat 3.3.1a The app I inherited does have a WEB-INF folder, but most of the code/classes are scattered about. Let's call the web application eReport. Under $CATALINA_HOME (or $TOMCAT_HOME), I set up the following directory structure: webapps/ eReport/ *.jsp *.inc *.js WEB-INF/ web.xml classes/ *.java *.classes lib/ *.jar I eventually removed the *.java files from WEB-INF/classes as I've experienced in other app servers that the Java files mess stuff up. The almost all of the JSP pages try to import a class called SessionConnection. The class file for this is located in WEB-INF/classes. When I go to view the JSP, I get 2 different errors depending on the environment I'm using: OS X- /Library/Tomcat/work/Standalone/localhost/eSIMS/DeleteUser_jsp.java:8: '.' expected import SessionConnection; ^ Windows 2000- HTTP 404 file not found The JSPs do compile in the Win2000 environment as I see the *.java files in the work/ directory. If I remove SessionConnection from the import list, then I receive an HTML formatted error message from the error.jsp page that was included (this page does not import SessionConnection). It almost seems to me that there's a classpath issue here, but I was certain that in Tomcat the contents of WEB-INF/classes were automatically in the classpath. I'm sure this is a stupid error, so please forgive me. I spend 90% of my time creating mod_perl/Mason websites and 10% of the time using Websphere with Ant build scripts provided by the web team. If anyone knows what boneheaded mistake I'm making, I'd appreciate some help. Thank you, Curt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat und SSL
I never done that myself. But it would surprise me if the tomcat website at http://jakarta.apache.org doesn't have good documentation on it. Adam On 01/24/2004 07:49 PM Lars Schreiber wrote: Hi thanks for help and for confidene to my english knowledge :-) in order that you understand my problem.. i have prepared a link for you https://test.extremewebs.de:8443/test/StatusServlet if im use the link over the mod_jk2 he works fine https://test.extremewebs.de/test/StatusServlet but here ist the problem, as soon as put html form tags or links etc to my servlet the server response a information about unsecure parts on my website. i dont have find any good solution to work with apache and tomcat together someone dont work if anybody here to explain me step to step how to setup a apache with ssl and a conector to tomcat with ssl ? Thanks - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, January 24, 2004 5:07 PM Subject: Re: Tomcat und SSL Hi Lars, just try it - there's often /really/ bad English on the list, and people still understand. As long as you keep it simple! Anyway, what you want to do is just connect via HTTPS, correct? And you say, your browser gives the message choose a certificate? I don't understand why you see that. I have never seen this message. Which browser? What URL do you type in? Is it https://localhost:8443/ Did you double check your server.xml config? Adam On 01/24/2004 02:53 PM Lars Schreiber wrote: -- i know that is an english mailinglist but if im try to describe my problem in english i dont think that anybody unstand me -- Hallo Ich habe mit hier eine Tomcat Installation mit SSL Unterstuetzung und einen .keytsore erzeugt und zwar nach diesem Verfahren keytool -genkey -v -keyalg RSA -alias tomcat -keypass changeit -storepass changeit -dname CN=Jens Mander, OU=-, O=-, L=Aachen, S=NRW, C=DE das passwort trage ich noch in den SSL Connector ein und starte den Tomcat neu daraufhin lade ich meine gewuenschte seite ueber port 8443 per Browser kommt die Aufforderung ich soll ein Zertifikat aussuchen ?!?!!? ich hab aber keins .. demnach waehle ich keins aus die seite baut sich daraufhin nicht auf und der vorgang bricht ab was habe ich falsch gemacht ? kann mir irgendjemand hier helfen ? Danke -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - 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] -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TC 5.0.16 - Embedded / Classloading problem
Hi all I´ve got a problem with Tomcat 5.0.16 Embedded in our application. A few days ago i´ve written a little bootstrapping class for our application. We use it so we do not have to add each jar to the classpath but can mention dir/*.jar in a config file. The bootstrapper creats a URLClassloader, adds all jars/dirs mentioned in a cfg file, uises teh nw classloader to load the launcher class of the application and then launches the main method. After this, the application itself starts up tomcat embedded after some time. During startup the following exception comes up: 20040125 22:26:39.515 INFO org.apache.catalina.startup.Embedded - Starting tomcat server 20040125 22:26:39.859 INFO org.apache.catalina.core.StandardEngine - Starting Servlet Engine: Apache Tomcat/5.0.16 20040125 22:26:39.875 INFO org.apache.catalina.core.StandardHost - XML validation disabled java.lang.reflect.InvocationTargetException 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 at.inexess.bootstrap.Bootstrapper.main(Bootstrapper.java:147) Caused by: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1653) ... Thats how i launch tomcat in the app: embedded = new Embedded(); embedded.setDebug(0); engine = embedded.createEngine(); engine.setName(test); host = embedded.createHost(localhost, getPath() + /embedws); engine.setDefaultHost(host.getName()); engine.addChild(host); Context context = embedded.createContext(, getPath() + /embedws/webapps/ROOT); host.addChild(context); embedded.addEngine(engine); connector = embedded.createConnector(0.0.0.0, getPort(), false); embedded.addConnector(connector); try { embedded.start(); } catch (Exception e) { logger.error(Could not start Tomcat:,e); } The strange thing is that tomcat cannot find the HttpServlet class while loading the first context (which contains servlets). All libraries in the lib directory ($CATALAINA_HOME/lib) are in the URL-List of the URLClassloader used by the bootstrapper class. Looks like i´ve got a problem with the webapp-classloader... Can anybody give me advice? greets, mike PS: For further infos about the bootstrapper - i´ve placed it here: http://vis.at/Bootstrapper.java (its not done yet) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk problem
Thx for the reply. I folloes your second link and found this site (http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html) on how to configure mod_jk but I still get the same problem. Apache says that it is working with mod_jk, but it does not translate *.jsp pages (see http://garazdawi.homeftp.net/test.jsp for an example of what I mean). Can someone please tell me what I'm doing wrong. I would really want to get started with jsp without having to battle with mod_jk. Thx Lukas - Original Message - From: Mark Eggers [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, January 25, 2004 10:03 PM Subject: Re: mod_jk problem Please see the following: http://nagoya.apache.org/wiki/apachewiki.cgi?TomcatWeb or http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links Lots of information, including several step-by-step documents. HTH /mde/ just my two cents . . . . __ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ - 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: Problems running Model2 webapp
Thanks for the information. I was going to give JDK 1.3.1 a shot and recompile everything since I have no idea what JDK was used to compile all of the classes I have. I'd like to move all the classes into packages, but there's so many and I have limited time. Hopefully I'll get a zip of a working environment so I can see how they laid everything out. I have tried simple JSPs and Servlets and have gotten them to work. Plus, all of the example JSP and Servlets that come with Tomcat work fine on both platforms. However, I did notice that on Tomcat 4.1.18 that making a simple HelloWorld servlet and popping that in ROOT/WEB-INF/classes did not work (couldn't find the file). Thank you, Curt On Jan 25, 2004, at 3:40 PM, John D. Hume wrote: For the Tomcat 4.1.x issue, read here for a likely cause: http://jakarta.apache.org/tomcat/faq/classnotfound.html If it's a Servlet 2.2/JSP 1.1 application, you may do best to keep it in Tomcat 3... and a 1.3.1 JRE unless you move the classes into packages. For further debugging, try simple test JSPs (hello_world.jsp or something like that) to see if they work, and of course check the logs. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Antwort: RE: SSL, keystore with ca hierarchy
broken-record There is a utility at http://www.comu.de/docs/tomcat_ssl.htm to import your OpenSSL certs into a JKS keystore. Alternatively, the ssl_howto for TC 5.x contains an example of how to configure a PKCS12 keystore from an OpenSSL keystore. /broken-record Mark Thomas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I can't do step 1 and 2 because the certificate and private key has been created already with openssl. The file TestServer_APU.pem contains the private key and certificate in the PEM format. Should that work either? Sorry, no idea. You may need to convert formats. A quick Google found https://lists.freeswan.org/archives/users/2003-August/msg00040.html that may help if a format conversion is required. Does the cacerts has to be located in %JAVA_HOME%\jre\lib\security\cacerts or can I place it anywhere else? See http://java.sun.com/products/jsse/install.html for how to configure trust store locations. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems running Model2 webapp
On Sunday 25 January 2004 06:30 pm, you wrote: However, I did notice that on Tomcat 4.1.18 that making a simple HelloWorld servlet and popping that in ROOT/WEB-INF/classes did not work (couldn't find the file). This feature has been intentionally removed. Read here for more information. http://jakarta.apache.org/tomcat/faq/classnotfound.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems running Model2 webapp
Thanks. I just took SL314 from Sun back in May '03. So, I've been going back through their material and I thought I was going crazy because half of the labs wouldn't work. I guess this solves all of this. If I had more documentation, on the system I'm working on, with an idea of what needs to be JAR'd together and where it's to be deployed, I'd prefer to just package everything into a WAR file and deploy that. I'm sure if I were to have done that and packaged all unpackaged classes I wouldn't have wasted the past two weeks figuring this thing out. Thanks for the help, Curt On Jan 25, 2004, at 5:42 PM, Ben Souther wrote: On Sunday 25 January 2004 06:30 pm, you wrote: However, I did notice that on Tomcat 4.1.18 that making a simple HelloWorld servlet and popping that in ROOT/WEB-INF/classes did not work (couldn't find the file). This feature has been intentionally removed. Read here for more information. http://jakarta.apache.org/tomcat/faq/classnotfound.html - 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]
http, https, shared, and deployment
Suppose I want to create a website that has some dynamic content (served by tomcat) and some static content (served by apache). Also suppose that some of the pages on my website need to be https and some of the pages need to be http. Some stuff is shared (both http and https), like the logo GIF and css files. I have figured a way to do this by hand, and am interested in comments on this approach. I am also interested in how one would go about deploying such a website, using ant. Maybe some more ideas on directory layout, if you have any. Thanks. Dean Hoover Here's what I am currently doing by hand (foo.com is obviously fictituous): httpd.conf: ... #-- VirtualHost *:80 ServerAdmin [EMAIL PROTECTED] ServerName www.foo.com ServerAlias foo.com DocumentRoot /home/tomcat/foo.com/http ErrorLog /home/tomcat/foo.com/logs/error_log CustomLog /home/tomcat/foo.com/logs/access_log common IfModule mod_jk.c JkMount /*.jsp foo-http /IfModule Alias /images/ /home/tomcat/foo.com/images/ Location /*/WEBINF/* AllowOverride None Deny from all /Location /VirtualHost #-- VirtualHost *:443 ServerAdmin [EMAIL PROTECTED] ServerName www.foo.com ServerAlias foo.com DocumentRoot /home/tomcat/foo.com/https ErrorLog /home/tomcat/foo.com/logs/error_log CustomLog /home/tomcat/foo.com/logs/access_log common IfModule mod_jk.c JkMount /*.jsp foo-https /IfModule Alias /images/ /home/tomcat/foo.com/images/ IfModule mod_ssl.c SSLEngine on SSLCertificateFile /home/tomcat/foo.com/foo.com.pem /IfModule /VirtualHost ... workers.properties: ps=/ workers.tomcat_home=/usr/jakarta-tomcat workers.java_home=/usr/java/j2sdk1.4.2 worker.list=foo-http,foo-https worker.foo-http.port=8009 worker.foo-http.host=localhost worker.foo-http.type=ajp13 worker.foo-https.port=8010 worker.foo-https.host=localhost worker.foo-https.type=ajp13 server.xml: Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/lib/httpd/modules/mod_jk.so workersConfig=/usr/local/jakarta-tomcat/conf/jk/workers.properties jkLog=/usr/local/jakarta-tomcat/logs/mod_jk.log jkDebug=info/ Service name=foo-http Connector className=org.apache.ajp.tomcat4.Ajp13Connector address=127.0.0.1 port=8009 minProcessors=5 maxProcessors=75 enableLookups=false acceptCount=10 debug=0/ Engine name=standalone debug=0 defaultHost=foo.com Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Host name=foo.com debug=0 unpackWARs=true Context path= docBase=/home/tomcat/foo.com/http debug=0 reloadable=true / /Host /Engine /Service Service name=foo-https Connector className=org.apache.ajp.tomcat4.Ajp13Connector address=127.0.0.1 port=8010 minProcessors=5 maxProcessors=75 enableLookups=false acceptCount=10 debug=0/ Engine name=standalone debug=0 defaultHost=foo.com Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Host name=foo.com debug=0 unpackWARs=true Context path= docBase=/home/tomcat/foo.com/https debug=0 reloadable=true / /Host /Engine /Service /Server - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiple instances, multiple IPs
I need to run multiple instances of Tomcat on one box. The reason is that we have multiple websites, and I want them to have independent JVMs. There is some pretty good documentation out there on how to configure multiple instances of Tomcat, but all of it presumes that each instance runs on a different port (8080, 8081, etc). This obviously won't work for public websites where they all have to run on port 80. Suppose that a server responds to multiple IP addresses. Is it possible to get an instance of Tomcat to listen on only one IP? How? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple instances, multiple IPs
Chris [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I need to run multiple instances of Tomcat on one box. The reason is that we have multiple websites, and I want them to have independent JVMs. There is some pretty good documentation out there on how to configure multiple instances of Tomcat, but all of it presumes that each instance runs on a different port (8080, 8081, etc). This obviously won't work for public websites where they all have to run on port 80. Suppose that a server responds to multiple IP addresses. Is it possible to get an instance of Tomcat to listen on only one IP? How? This is a clear case of RTFM, but the answer is to set the address=my.ip.address.here on the Connector element in server.xml. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache/Tomcat Integration. Urgent!!
Hi There, Can any body help please. Thanks --- rohit chugh [EMAIL PROTECTED] wrote: Thanks again. I tried that however , the problem persists. Following are the excerpts from the log files, if they can help ---Apache log. [Fri Jan 23 16:32:49 2004] [error]File does not exist: /opt/htdocs/examples/ --mod_jk log jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters Thanks --- Jeff Tulley [EMAIL PROTECTED] wrote: Your worker name does not match the name in the generated mod_jk.conf. That file wants the worker name to be ajp13, whereas yours is named testWorker. Change that and restart apache and see what happens. [EMAIL PROTECTED] 1/23/04 12:00:40 PM Hi, Thanks for the reply. The contents of the workers.properties are given below, which i copied of the net. worker.list=testWorker worker.testWorker.port=8009 worker.testWorker.host=localhost worker.testWorker.type=ajp13 - The contents of mod_jk.conf are given below. ## Auto generated on Fri Jan 23 12:20:23 EST 2004## IfModule !mod_jk.c LoadModule jk_module /opt/libexec/mod_jk.so /IfModule JkWorkersFile /home/tomcat4.1/conf/jk/workers.properties JkLogFile /home/tomcat4.1/logs/mod_jk.log JkLogLevel info VirtualHost localhost ServerName localhost JkMount /webdav ajp13 JkMount /webdav/* ajp13 JkMount /examples ajp13 JkMount /examples/* ajp13 JkMount /tomcat-docs ajp13 JkMount /tomcat-docs/* ajp13 JkMount /manager ajp13 JkMount /manager/* ajp13 /VirtualHost --- Jeff Tulley [EMAIL PROTECTED] wrote: What are the contents of your auto-generated mod_jk.conf, and how do they match the web application you are trying to access? Also, it would be helpful to post the (relevant) contents of your workers.properties file. [EMAIL PROTECTED] 1/23/04 11:05:42 AM Hi, I am trying to integrate Apache 1.3 and Tomcat 4.0 The apache logs shows that it has started with mod_jk and mod_ssl.However when i send a request for a webapplication it gives errors saying page not found. Apache log shows that it is trying to find the application under htdocs Following is the apache and tomcat configuration. Any help would be highly appreciated. Thanks in advance //excerpt from the tomcat LoadModule jk_module /opt/libexec/mod_jk.so AddModule mod_jk.c JkWorkersFile /home/tomcat4.1/conf/jk/workers.properties JkLogFile /home/tomcat4.1/logs/mod_jk.log JkLogLevel debug Include /home/tomcat4.1/conf/auto/mod_jk.conf //-Tomcat server.xml- Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=opt/libexec/mod_jk.so jkDebug=info workersConfig=/home/tomcat4.1/conf/jk/workers.properties jkLog=/home/tomcat4.1/logs/mod_jk.log/ !-- Comment these entries out to disable JMX MBeans support -- !-- You may also configure custom components (e.g. Valves/Realms) by including your own mbean-descriptor file(s), and setting the descriptors attribute to point to a ';' seperated list of paths (in the ClassLoader sense) of files to add to the default list. e.g. descriptors=/com/myfirm/mypackage/mbean-descriptor.xml -- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources !-- A Service is a collection of one or more === message truncated === __ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/
Re: Repeated load-on-startup niggle
Chris, thanks for responding. I think I understand. Sanity check: the filter is not even mentioned anywhere in the webapps/hal heirarchy, right? That hierarchy is totally unaware of the filter. If that's the case then all is making sense now. thanks again, -joe Chris Ward wrote: Hi Joe, I'm not sure exactly what your query is but the setup I have is a / and a /hal Context. The Filter I am using to direct any requests to / to /hal lives in the WEB-INF/classes dir of the / context. In my case I used the Tomcat default dir of ../webapps/ROOT for the / docBase. Further. the configuration for the Filter and the URL pattern to fire it is in the web.xml file in that same WEB-INF dir. I do use /* as the URL pattern, but remember that these URL patterbs are relative to the Context the web.xml file is in. i.e. webapps/ROOT/WEB_INF/web.xml URL pattern of /* matches http://myserver/* webapps/hal/WEB_INF/web.xml URL pattern of /* matches http://myserver/hal/* Sorry if I've missed your point. Regards, Chris Shapira, Yoav wrote: Howdy, A javax.servlet.Filter is one nice clean way. Apologies if this is dumb q: Googling the jakarta site and reading the tomcat o'reilly have left me confused on this. Isn't the filter part of web app? From jakarta: Filters are configured in the deployment descriptor of a web application And in o'reilly the filter and filter-mappnig tags are discussed in the web.xml section. Doesn't this raise a namespace issue? If your servlet-mapping is to /foo, then a filter on /* seems like it will either never fire, or else be ambiguous with other /* filters in other web apps (such as the /bar webapp, with it's own /* filter). The original poster had a /hal context and a / context. Does the filter solution require the / context to remain? Or is that unneeded? thanks for any unconfusion, -joe - 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]
Question about Loggers
Hi! I am looking for a way to log something from my .class files into Tomcat's /log folder without setting up any loggers of my own... I am guessing Logger entry in server.xml is the trick, but how do you access those loggers from .class files? An example would be awesome. Also, is there any way to set up a logger through web.xml? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache .htaccess vs. realms in tomcat
Is there anyway to secure a servlet via .htaccess in apache2 using jk2 with tomcat5 or do I have to use realms. Ideally, I would setup access via directory access using a .htaccess file, but all the documentation I have read seems to point to me needing to use realms and not using .htacess files. Is this the case? If it is possible to use .htaccess, does a HOWTO exist? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]