Re: [ot?] Frontpage extensions for tomcat or related items
Jason Pyeron wrote: I think the parts people use have to do with the navigation widgets. All those useless directories that are created, etc. I guess thats the stuff I am looking for. -jason I don't think anyone has put any effort into an open source replacement for FP. The Mozilla editor (composer) could probably be extended to support the MS way of doing publishing and templates. Over the last few releases of the Mozilla project, the composer component has come a long way from it's NS 4.x days. For jsp support in the current versions of FP, it might be better to use SSI to include your jsp tags and keep them all in text files that FP's editor will leave alone? In this way, you'd create your own jsp 'web-bots'? maybe? Ken On Wed, 15 Jan 2003, Don Saxton wrote: Isn't frontpage a webdav client? Tomcat docs (4.18) state that IE is a webdav client. my impression was that Frontpage was needed to make it into a writing / editing webdav client. If so that would give you the publishing part. There are other webdav clients you might want to check out at wevdav.org. Then comes the ...for jsp... part. I think at minimum it would have respect taglib tags. The last time I saw respect coming from ms was ten years ago. - Original Message - From: Jason Pyeron [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 15, 2003 8:05 AM Subject: [ot?] Frontpage extensions for tomcat or related items I am looking for resources related to Frontpage for jsp. does anyone know of some sites to look at, Google does not help much. -jason -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [ot?] Frontpage extensions for tomcat or related items
FP extensions are an MS centric server based technology primarily for MS based Webservers (although there are limited versions for unix/linux with gaping security holes...). They support server based M$ widgets that your FP web pages can talk to and do things like counters and forms and chat with WYSIWYG drop-in 'web-bots' (components that talk to the FP extensions on the server). FrontPage, the editor, will no doubt mangle java code beyond recognition as it does to all other non-M$ code. Not sure if it even supports any kind of plugins to recognize non-M$ code... I doubt it. Turn away from the dark side... Ken Jason Pyeron wrote: I am looking for resources related to Frontpage for jsp. does anyone know of some sites to look at, Google does not help much. -jason -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: securing tomcat...
Just put this in your web.xml for root webapp or others... error-page error-code404/error-code location/404error.html/location /error-page and create 404error.html to say whatever you like. Ken Jason Pyeron wrote: has any one put together a faq/howto on securing tomcat? our first goal is to prevent determination of the server version by a web client. an example of this is for url http://127.1:8080/xxdfsdf this is returned, note the Server: Apache Coyote/1.0 and Apache Tomcat/4.1.12 HTTP/1.1 404 /xxdfsdf Content-Type: text/html;charset=ISO-8859-1 Content-Language: en-US Transfer-Encoding: chunked Date: Tue, 31 Dec 2002 20:46:09 GMT Server: Apache Coyote/1.0 htmlheadtitleApache Tomcat/4.1.12 - Error report/titleSTYLE!--H1{font-family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;} H3{font-family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;} BODY{font-family : sans-serif,Arial,Tahoma;color : black;background-color : white;} B{color : white;background-color : #0086b2;} HR{color : #0086b2;} --/STYLE /headbodyh1HTTP Status 404 - /xxdfsdf/h1HR size=1 noshadepbty pe/b Status report/ppbmessage/b u/xxdfsdf/u/ppbdescription/b uThe requested resource (/xxdfsdf) is not available./u/pHR size=1 noshadeh3Apache Tomcat/4.1.12/h3/body/html -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: SSL setup Apache - Tomcat
I'm assuming that you are using mod_ssl with Apache, and not running a separate SSL webserver like Stronghold, right??? I've not setup ApacheSSL/Tomcat before except with mod_webapp, but I have setup Apache/Tomcat with mod_jk as well (just not with ssl support). Here's my 2 cents anyway: The JkMount statements can go inside or outside a VirtualHost Block. Outside - they will apply to all virtualhosts Inside - they will apply to just that virtualhost (mod_webapp and most other apache mods work this way) So, if you have something like this: JkMount /examples/*.jsp ajp13 You should be able to place that inside your SSL VirtualHosts too. VirtualHost xx.xx.xx.xx:443 SSL. JkMount /examples/*.jsp ajp13 /VirtualHost Ken A. Denise Mangano wrote: The other JkMount statements that I have specified have al been placed outside of the Virtual hosts directives, but I do not have one specified for SSL. Everything in the Tomcat documentation seems to discuss setting up SSL on Tomcat acting as a standalone, which is not my situation. I'm trying to find something telling me how to formulate such a JkMount statement, but can't seem to find anything. Any suggestions? Thanks. Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 3:43 PM To: 'Tomcat Users List' Subject: RE: SSL setup Apache - Tomcat I would imagine you do not need to switch to warp and the majority of the list would say not to use warp. I only use it due to the fact it is not currently convenient for me to upgrade the perl on my HP-UX box to 5.05. The only thing I had to do was to place the warp equivalent of JKMount in the virtual host for the 443 port and I was off and running. Do you place the JKMount directive in each virtual host or do place them outside of all virtual hosts so that the directive apply to all hosts? I do know for JRUN 2.3.3, the placement of the mapping directive relative to the virtual hosts makes a diference of operation. -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 1:36 PM To: 'Tomcat Users List' Subject: RE: SSL setup Apache - Tomcat Can you fill me in a little on what you had to do, if anything, to get your webapps to come up with the https:// protocol. Am I going to have to use the warp connector instead? If so, could someone fill me in on how to get started with that? Thanks. Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 3:29 PM To: 'Tomcat Users List' Subject: RE: SSL setup Apache - Tomcat We have a number of Apache/Tomcat webapps that run through SSL with the certificate only on the apache side. However we are using the warp connector and if you are using mod_jk you may have a different behavior. -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 1:02 PM To: 'Tomcat Users List' Subject: SSL setup Apache - Tomcat Ok, I have been reading through the archives of this list and this is not good I have one registered domain for which I purchased a certificate for. Apache is set up to use this certificate, and I can access my Apache app through https://. Now I added some JSP to my site, and I need this JSP to be secure as well. I've seen this mentioned a number of times, and as you guess when I try to access https://mydomain.com/mywebapps the server infinitely hangs. I just finished reading how SSL from Apache to Tomcat is not implemented... Is this true? Is the scenario I want not possible? Can I set up my certificate separately in the Tomcat config files? Will this work? The Apache app processes a server side transaction and on the last page the connection to my backend system is ended as the last page is loaded. This last page has a link that when clicked, only sends 2 non-critical variables to my JSP. But as I mentioned I need this JSP to be secure. ... so even if the SSL connection is broken, then renewed on the Tomcat side, that would be sufficient (both are under same domain name, and on same physical box)... Any suggestions? Thanks! Btw...where is everyone today? Does the whole world besides me get off early on Friday's?? ; ) Denise Mangano -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail:
Re: Tomcat SSL Setup
Have you considered the advantages of using one of the apache connectors instead of tomcat standalone for SSL support? I fought with Tomcat ssl support a couple years ago, and was unable to get it to work. I'm sure the support is there now, but ssl support is transparent if you use mod_jk or mod_webapp with Apache, and it's easier, since you already have all the cerificates in place. The downside is that the connection between apache and tomcat is NOT encrypted, so if you are running TC and Apache on different servers, this might be an issue. Ken A. Justin L. Spies wrote: One piece of information I forgot to mention: O/S: Red Hat Linux 7.2 Apache: Custom Compiled 1.3.26 Tomcat: 4.0.4 RPM installation JSDK: j2sdk1.4.0_01 Thanks again. Justin L. Spies -Original Message- From: Justin L. Spies [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 2:43 PM To: [EMAIL PROTECTED] Subject: Tomcat SSL Setup Hello all, I've been working on getting SSL configured for Tomcat and seem to be having a small problem. I must be mistyping something because the only thing I get back from Netscape 7.0 is: Netscape 7.0 and www.mydomain.com cannot communicate securely because they have no common encryption algorithms. Here is what I have done so far: 1. I changed /etc/tomcat4/server.xml and uncommented the following: Connector className=org.apache.catalina.connector.http.HttpConnector port=8443 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 scheme=https secure=true Factory className=org.apache.catalina.net.SSLServerSocketFactory clientAuth=false keystoreFile=keystores/mydomain.keystore keystorePass= protocol=TLS/ /Connector 2. I ran the following commands to import the Verisign key: /usr/java/j2sdk1.4.0_01/bin/keytool -import -alias root \ -keystore /var/tomcat4/keystores/mydomain.keystore \ -trustcacerts -file /etc/verisign.key 3. I ran the following commands to import a previously created SSL certificate /usr/java/j2sdk1.4.0_01/bin/keytool -import -alias tomcat \ -keystore /var/tomcat4/keystores/mydomain.keystore \ -trustcacerts -file /home/httpd/ssl/www.mydomain.com.cer 4. In /etc/tomcat4/server.xml, I noticed the following: * Download and install JSSE 1.0.2 or later, and put the JAR files into $JAVA_HOME/jre/lib/ext. I found jsse.jar in $JAVA_HOME/jre/lib so I ran the following: ln -s $JAVA_HOME/jre/lib/jsse.jar $JAVA_HOME/jre/lib/ext/jsse.jar 5. I then restarted Tomcat and tried the following URL: http://www.mydomain.com:8080/examples/servlets/index.hml This was a test simply to make sure Tomcat started properly. In this it worked fine. 6. I then restarted Tomcat and tried the following URL: https://www.mydomain.com:8443/examples/servlets/index.html This test failed with the above error message. Does anyone have any ideas? Oh, and BTW, I can visit https://www.mydomain.com/index.html and the home page for the site comes up in SSL mode without a problem, so I know that the SSL certificate, under Apache, is working fine. Thanks, Justin L. Spies -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat SSL Setup
Justin L. Spies wrote: Ken, Thanks for the hints. Since they (Apache/Tomcat) are running on the same system at this point, that won't be an issue. Could you point me the direction of some documentation that would help me get this setup? I've setup mod_jk with standard Apache before and it has been straight forward. I am assuming that Apache handles the encryption/decryption and passes the requests off to Tomcat via the connector AFTER it decrypts the request--is this correct? That is correct. I have only set up ssl with mod_webapp, and it's just a matter of adding duplicate WebAppDeploy statements to the ssl Virtualhost xx.xx.xx.xx:443 section in httpd.conf I'd assume it's the same with mod_jk, since the autogenerated mod_jk.conf contains the non-ssl virtualhost section, you'd just need to mirror that with an ssl virtualhost section in the file by adding a duplicate Host hostname:443 Section to server.xml for the ssl virtualhost. There may be gotchas to this that I'm not aware of with jk, since I have not used it with apache ssl before. You'd also probably want to disable the coyote connector on port 8080 in server.xml too. Ken Sincerely, Pantek Incorporated Justin L. Spies URI: http://www.pantek.com Ph 440.519.1802 Fax 440.248.5274 Cell 440.336.3317 -Original Message- From: Ken Anderson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 4:51 PM To: Tomcat Users List Subject: Re: Tomcat SSL Setup Have you considered the advantages of using one of the apache connectors instead of tomcat standalone for SSL support? I fought with Tomcat ssl support a couple years ago, and was unable to get it to work. I'm sure the support is there now, but ssl support is transparent if you use mod_jk or mod_webapp with Apache, and it's easier, since you already have all the cerificates in place. The downside is that the connection between apache and tomcat is NOT encrypted, so if you are running TC and Apache on different servers, this might be an issue. Ken A. Justin L. Spies wrote: One piece of information I forgot to mention: O/S: Red Hat Linux 7.2 Apache: Custom Compiled 1.3.26 Tomcat: 4.0.4 RPM installation JSDK: j2sdk1.4.0_01 Thanks again. Justin L. Spies -Original Message- From: Justin L. Spies [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 2:43 PM To: [EMAIL PROTECTED] Subject: Tomcat SSL Setup Hello all, I've been working on getting SSL configured for Tomcat and seem to be having a small problem. I must be mistyping something because the only thing I get back from Netscape 7.0 is: Netscape 7.0 and www.mydomain.com cannot communicate securely because they have no common encryption algorithms. Here is what I have done so far: 1. I changed /etc/tomcat4/server.xml and uncommented the following: Connector className=org.apache.catalina.connector.http.HttpConnector port=8443 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 scheme=https secure=true Factory className=org.apache.catalina.net.SSLServerSocketFactory clientAuth=false keystoreFile=keystores/mydomain.keystore keystorePass= protocol=TLS/ /Connector 2. I ran the following commands to import the Verisign key: /usr/java/j2sdk1.4.0_01/bin/keytool -import -alias root \ -keystore /var/tomcat4/keystores/mydomain.keystore \ -trustcacerts -file /etc/verisign.key 3. I ran the following commands to import a previously created SSL certificate /usr/java/j2sdk1.4.0_01/bin/keytool -import -alias tomcat \ -keystore /var/tomcat4/keystores/mydomain.keystore \ -trustcacerts -file /home/httpd/ssl/www.mydomain.com.cer 4. In /etc/tomcat4/server.xml, I noticed the following: * Download and install JSSE 1.0.2 or later, and put the JAR files into $JAVA_HOME/jre/lib/ext. I found jsse.jar in $JAVA_HOME/jre/lib so I ran the following: ln -s $JAVA_HOME/jre/lib/jsse.jar $JAVA_HOME/jre/lib/ext/jsse.jar 5. I then restarted Tomcat and tried the following URL: http://www.mydomain.com:8080/examples/servlets/index.hml This was a test simply to make sure Tomcat started properly. In this it worked fine. 6. I then restarted Tomcat and tried the following URL: https://www.mydomain.com:8443/examples/servlets/index.html This test failed with the above error message. Does anyone have any ideas? Oh, and BTW, I can visit https://www.mydomain.com/index.html and the home page for the site comes up in SSL mode without a problem, so I know that the SSL certificate, under Apache, is working fine. Thanks, Justin L. Spies -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail
Re: Naïve question about root
Denise Mangano wrote: I know this is a naïve question, and slightly irrelevant to the newsgroup... I keep getting told left and right not to work as root. I heeded this advice a while back and created a user. Here is the thing. My RH 7.3 box, running Apache 1.3.27 Tomcat 3.1.17 (no I haven't gotten them connected with mod_jk yet:) ) is logged in as root. But I work on my files through a secure shell from my workstation, where I log in as the user I created. Is it not safe to leave my box logged in as root? Do you trust the people who have access to your computer? Logging in as root over the network isn't recommended, since telnet logins are still pretty common, and sniffers can grab plain text passwords from the wire. Running tomcat or apache as root isn't a good idea, since a minor security hole (we've seen dozens of them lately) can be a major problem if the user is root. My concern is when people access my website can they somehow get into my box and wreak havoc? For example with my current setup people are accessing a website hosted on a machine that is logged in with root access Is it better that I sign in on the actual box as this created user only changing login to root as needed or does the logon of the actual box not matter as long as I am not messing around as root...? If I should sign onto the box as this user, how can I make sure this user has rights to Apache and Tomcat? (as of right now this user has rights to execute java commands, but I am not sure if there is anything special I need to do for apache and tomcat). On a side note is there anyway to create a user that has almost root access but can't do the damage root can do? Check out sudo, it's probably available on your machine, and allows non root users to do some things (you define) as root. Again naïve, but thought I would throw it out here anyway :) Thanks!! Denise Mangano -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Simultaneous request from same IP
You just need a new traffic cop object created at the beginning of doGet(); TrafficCop tc = new TrafficCop(); That way you are not talking to the same tc object when you say tc.add(); Ken A. Chris Bick wrote: Not sure I understand your last two statements. Could you elaborate a bit more? Thanks, -cb -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 3:42 PM To: [EMAIL PROTECTED] Subject: RE: Simultaneous request from same IP TrafficCop is thread safe because add() is synchronized. Regardless if trafficcop is No, this is false. The add() method is syncronized, and therefore thread safe. But that is not where the problem lies. TrafficCop may be thread safe, but access to it is not. Two objects are updating a single object - the last one to do it wins. Larry -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
apache/mod webapp - Premature packet header end
Using mod-webapp/apache, I'm seeing a lot of this in the logs, though the site works fine: 2002-12-12 05:35:23 [org.apache.catalina.connector.warp.WarpConnection] Exception on socket java.io.IOException: Premature packet header end at org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:237) at org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHandler.java:112) at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:194) at java.lang.Thread.run(Thread.java:536) I've found several references to the Premature packet header end error messages in the archives, but no clear answer except a suggestion that these errors can be ignored, and are caused when the apache process terminates (due to MaxRequestsPerChild ??). Are there any other thoughts on this? Any way to fix? Do newer versions of mod_webapp detect this more gracefully? Thanks, Ken Anderson -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: cgi-bin
kidding? um... rewrite them as servlets, or reinstall apache. Ken Oki DZ wrote: Hi, I replaced Apache with Tomcat; problem is, what should I do so that these cgi scripts could get executed...? Thanks in advance, Oki -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.0.2 and JDK1.4
Running on R.H. linux 7.2 with jdk 1.4 and Tomcat 4.0.4-b2. No classloading issues so far Had some weirdness with ibm's jdk 1.3 leaving piles of jar_cache temp files, but that's gone now. Ken [EMAIL PROTECTED] wrote: In tomcat 4.0.2-b2 release note, it said tomcat has issues with Jdk1.4 beta3. I would like to know if Tomcat 4.0.2 works with the Jdk1.4 final release? Thanks. - Tomcat 4.0 and Sun JDK 1.4 beta 3: - Some unpredictable classloading behavior has been reported when Tomcat is used with Sun JDK 1.4. For this reason, it is recommended to use this release of Tomcat with Sun JDK 1.3.1. __ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: tomcat/apache with ALIASES (Was canonical names)
/ConfigurableAuthAction.class loading entry: paw/signon/ConfigurableAuthenticator$LoginState.class loading entry: paw/signon/IdentificationGatherer.class loading entry: paw/signon/LDAPUserVerifier.class loading entry: paw/signon/LoginAction.class loading entry: paw/signon/UserNamePasswordGatherer.class loading entry: paw/signon/WebBasedCallBack.class loading entry: paw/signon/WebBasedUserPasswordCallBack.class Fri Apr 26 04:02:32 : 104 : TRACE : System : signon: Abilizer Signon Service, 1.0 cells: UserNamePasswordCell SignOffCell UserName Password ContactInfo RegisterC ell Fri Apr 26 04:02:32 : 104 : TRACE : System : INSTALLING ... system.jar loading entry: META-INF/manifest.xml Fri Apr 26 04:02:32 : 104 : TRACE : system : Found AssetStorage type: paw.system.asset.br owse.BrowseDirectoryStorage Fri Apr 26 04:02:32 : 104 : TRACE : system : Found AssetStorage type: paw.system.asset.cl assification.ClassificationAssetStorage Fri Apr 26 04:02:32 : 104 : TRACE : system : Found AssetStorage type: paw.system.asset.gr oup.GroupAssetStorage Fri Apr 26 04:02:32 : 104 : TRACE : system : Found AssetStorage type: paw.system.asset.gr oup.TargetGroupAssetStorage Fri Apr 26 04:02:32 : 104 : TRACE : system : Found AssetStorage type: paw.system.asset.na vigation.NavStorage Fri Apr 26 04:02:32 : 104 : TRACE : system : Found AssetStorage type: paw.system.asset.pe rmission.CheckPermissionAssetStorage Fri Apr 26 04:02:32 : 104 : TRACE : system : Found AssetStorage type: paw.system.asset.pe rmission.LockAssetStorage Fri Apr 26 04:02:32 : 104 : TRACE : system : Found AssetStorage type: paw.system.asset.pe rmission.PagePermissionAssetStorage Fri Apr 26 04:02:32 : 104 : TRACE : system : Found AssetStorage type: paw.system.asset.pe rmission.PermissionAssetStorage Fri Apr 26 04:02:32 : 104 : TRACE : system : Found AssetStorage type: paw.system.asset.pr operty.PropertyAssetStorage Fri Apr 26 04:02:33 : 104 : TRACE : system : Found AssetStorage type: paw.system.asset.se rvice.ServiceAssetStorage Fri Apr 26 04:02:33 : 104 : TRACE : system : Found AssetStorage type: paw.system.asset.si te.AttrDefinitionAssetStorage Fri Apr 26 04:02:33 : 104 : TRACE : system : Found AssetStorage type: paw.system.asset.si te.SiteStorageManager Fri Apr 26 04:02:33 : 104 : TRACE : system : Found AssetStorage type: paw.system.asset.us er.UserAssetStorage Fri Apr 26 04:02:34 : 104 : TRACE : system : Loaded service implmentation: paw.system.imp l.NativeService Fri Apr 26 04:02:35 : 104 : TRACE : System : system: Core Framework, 1.0 cells: TCAttrFields ContainerRefCell URLCell ServiceCell JSPCell HTMLUploadCell SOAPCell Fri Apr 26 04:02:35 : 104 : TRACE : System : INSTALLING ... wsdl.jar loading entry: META-INF/manifest.xml loading entry: paw/wsdl/WSDLInputCell$AsyncGet.class loading entry: paw/wsdl/WSDLInputCell.class loading entry: paw/wsdl/WSDLResultsCell.class Fri Apr 26 04:02:35 : 104 : TRACE : System : wsdl: Framework Extensions., 1.0 cells: WSDLResultsCell WSDLInputCell Fri Apr 26 04:02:35 : 104 : TRACE : system : CALLING STARTUP CLASSES ... Fri Apr 26 04:02:35 : 104 : TRACE : system : *** Reading the license file *** Fri Apr 26 04:02:49 : 104 : TRACE : system : targetHost :172.16.40.104 -Original Message- From: Ken Anderson [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 4:21 PM To: Tomcat Users List Subject: Re: tomcat/apache with ALIASES (Was canonical names) What do you mean by 'targetHost' entry? Ken Brian Bernardo wrote: I am using Apache 1.3.24 on Solaris 8, and was using tomcat 4.03 with the 4.03 connector. I upgraded to tomcat 4.04b2 and compiled the connector too, but still have the same problem. The targetHost entry always is the ServerName. This sucks. This is a terribly lame limitation with tomcat. WebLogic can do it, even back with 5.0!! Brian -Original Message- From: Ken Anderson [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 10:46 AM To: Tomcat Users List Subject: Re: tomcat/apache with ALIASES (Was canonical names) This works on Apache 1.3.22 on RedHat Linux, using mod_webapp with tomcat 4.04b2. mod_webapp built from 'jakarta-tomcat-connectors-4.0.4-b2-src' Here are the relevant sections of httpd.conf: - LoadModule webapp_module modules/mod_webapp.so AddModule mod_webapp.c UseCanonicalName On NameVirtualHost 192.168.1.10 VirtualHost 192.168.1.10 DocumentRoot /home/user/public_html ServerName www.domain.com ServerAlias test.domain.com WebAppConnection conn warp localhost:8008 WebAppDeploy mywebapp conn /go /VirtualHost - Ken Anderson Brian Bernardo wrote: Can you send me your httpd.conf file then, because I still get the same problem following your suggestion below. Brian -Original Message- From: Ken Anderson [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 8:28 AM To: Tomcat Users List Subject: Re
Re: tomcat/apache with ALIASES (Was canonical names)
h... have you tried Apache's ServerAlias Directive? I know this works with static content, but I'm not sure if mod_webapp respects it or not.. VirtualHost 192.168.1.1 ServerName blah1.blah.com ServerAlias blah2.blah.com DocumentRoot /blah WebAppConnection conn warp localhost:8008 WebAppDeploy webappconn /test /VirtualHost Ken Brian Bernardo wrote: While that technically works, it launches a separate tomcat instance within the single JVM instance. Watch the logs in catalina.out and you see that for each WebAppDeploy line a new instance is launched. This offers functionality, but sharing resources is never a good idea if you want any scalability. This site is expected to get 550 concurrent sessions at any time. This will not work out in such a demanding environment. Basically the line: Thu Apr 25 05:22:07 : 204 : TRACE : system : targetHost :bt1.domain.com Suggests that tomcat launches using the one instance per targetHost. If you have one WebAppDeploy and regardless of how you got there (proxy, mod_rewrite, virtual hosts etc) once you access any resource from the webapp directory, you get forwarded to http://targetHost/webapp and you lose the user supplied prefix (bad thing). Any other suggestions out there? There has to be a way to restrict (or add) more than one targetHost for tomcat to allow several access methods. Brian -Original Message- From: Ken Anderson [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 2:02 PM To: Tomcat Users List Subject: Re: tomcat/apache with ALIASES (Was canonical names) Does something like this work? - NameVirtualHost 192.168.1.1 VirtualHost 192.168.1.1 ServerName blah1.blah.com DocumentRoot /blah WebAppConnection conn warp localhost:8008 WebAppDeploy webappconn /test /VirtualHost VirtualHost 192.168.1.1 ServerName blah2.blah.com DocumentRoot /blah WebAppConnection conn2 warp localhost:8008 WebAppDeploy webappconn2 /test /VirtualHost Ken Brian Bernardo wrote: First of all, I am very proficient with DNS; that was not the question. I want users who go to http://name.domain/webapps to have the same webappdeployment as http://name2.domain/webapps. It is important that however they got there (domain prefix) be maintained throughout their session. This works fine for static content, but as soon as anyone goes to http://name?.domain/webapps they get redirected over to http://ServerName/webapps. ServerName is defined within the apache httpd.conf file (same with vitualhost name). That is not good. There has to be a way to have either virtual hosts or some method for tomcat to serve the same dynamic content regardless of how they got there without redirecting. Any one know how to accomplish this? B -Original Message- From: Joseph Molnar [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 8:28 AM To: Tomcat Users List Subject: Re: tomcat/apache with ALIASES (Was canonical names) No. I use A and CNAMES depending on the situation. Do you have proper aliases set up in Apache? Joe - Original Message - From: Oki DZ [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, April 25, 2002 2:28 AM Subject: Re: tomcat/apache with ALIASES (Was canonical names) On 04/25 15:33 Hamish Marson wrote: What you're using (Or trying to use) is aliases... The DNS records (CNAME etc al) are named after what they point AT (or more accurately) resolve to. Thus the CNAME record (Canonical name) points or resolves to the REAL name of the host. (Literally, the dictionary term for canonical is the real one). Just like the A record resolves TO the address... I think I have the same problems... So, how do you set up virtual hosts in Tomcat? I have tried to have Host ../ elements in a Tomcat service and I used CNAMEs in them. It seemed that any hosts in the service would resolve to the same contexts contained in the service (even though I have supplied different URLs; ie: different FQDNs). I guess the answer would be: just use A records (that point to the same IP number). Is it correct...? Oki -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL
Re: tomcat/apache with ALIASES (Was canonical names)
I just tried this, and it works! Also, 'UseCanonicalName' is On. Ken Ken Anderson wrote: h... have you tried Apache's ServerAlias Directive? I know this works with static content, but I'm not sure if mod_webapp respects it or not.. VirtualHost 192.168.1.1 ServerName blah1.blah.com ServerAlias blah2.blah.com DocumentRoot /blah WebAppConnection conn warp localhost:8008 WebAppDeploy webappconn /test /VirtualHost Ken Brian Bernardo wrote: While that technically works, it launches a separate tomcat instance within the single JVM instance. Watch the logs in catalina.out and you see that for each WebAppDeploy line a new instance is launched. This offers functionality, but sharing resources is never a good idea if you want any scalability. This site is expected to get 550 concurrent sessions at any time. This will not work out in such a demanding environment. Basically the line: Thu Apr 25 05:22:07 : 204 : TRACE : system : targetHost :bt1.domain.com Suggests that tomcat launches using the one instance per targetHost. If you have one WebAppDeploy and regardless of how you got there (proxy, mod_rewrite, virtual hosts etc) once you access any resource from the webapp directory, you get forwarded to http://targetHost/webapp and you lose the user supplied prefix (bad thing). Any other suggestions out there? There has to be a way to restrict (or add) more than one targetHost for tomcat to allow several access methods. Brian -Original Message- From: Ken Anderson [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 2:02 PM To: Tomcat Users List Subject: Re: tomcat/apache with ALIASES (Was canonical names) Does something like this work? - NameVirtualHost 192.168.1.1 VirtualHost 192.168.1.1 ServerName blah1.blah.com DocumentRoot /blah WebAppConnection conn warp localhost:8008 WebAppDeploy webappconn /test /VirtualHost VirtualHost 192.168.1.1 ServerName blah2.blah.com DocumentRoot /blah WebAppConnection conn2 warp localhost:8008 WebAppDeploy webappconn2 /test /VirtualHost Ken Brian Bernardo wrote: First of all, I am very proficient with DNS; that was not the question. I want users who go to http://name.domain/webapps to have the same webappdeployment as http://name2.domain/webapps. It is important that however they got there (domain prefix) be maintained throughout their session. This works fine for static content, but as soon as anyone goes to http://name?.domain/webapps they get redirected over to http://ServerName/webapps. ServerName is defined within the apache httpd.conf file (same with vitualhost name). That is not good. There has to be a way to have either virtual hosts or some method for tomcat to serve the same dynamic content regardless of how they got there without redirecting. Any one know how to accomplish this? B -Original Message- From: Joseph Molnar [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 8:28 AM To: Tomcat Users List Subject: Re: tomcat/apache with ALIASES (Was canonical names) No. I use A and CNAMES depending on the situation. Do you have proper aliases set up in Apache? Joe - Original Message - From: Oki DZ [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, April 25, 2002 2:28 AM Subject: Re: tomcat/apache with ALIASES (Was canonical names) On 04/25 15:33 Hamish Marson wrote: What you're using (Or trying to use) is aliases... The DNS records (CNAME etc al) are named after what they point AT (or more accurately) resolve to. Thus the CNAME record (Canonical name) points or resolves to the REAL name of the host. (Literally, the dictionary term for canonical is the real one). Just like the A record resolves TO the address... I think I have the same problems... So, how do you set up virtual hosts in Tomcat? I have tried to have Host ../ elements in a Tomcat service and I used CNAMEs in them. It seemed that any hosts in the service would resolve to the same contexts contained in the service (even though I have supplied different URLs; ie: different FQDNs). I guess the answer would be: just use A records (that point to the same IP number). Is it correct...? Oki -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED
Re: tomcat/apache with ALIASES (Was canonical names)
This works on Apache 1.3.22 on RedHat Linux, using mod_webapp with tomcat 4.04b2. mod_webapp built from 'jakarta-tomcat-connectors-4.0.4-b2-src' Here are the relevant sections of httpd.conf: - LoadModule webapp_module modules/mod_webapp.so AddModule mod_webapp.c UseCanonicalName On NameVirtualHost 192.168.1.10 VirtualHost 192.168.1.10 DocumentRoot /home/user/public_html ServerName www.domain.com ServerAlias test.domain.com WebAppConnection conn warp localhost:8008 WebAppDeploy mywebapp conn /go /VirtualHost - Ken Anderson Brian Bernardo wrote: Can you send me your httpd.conf file then, because I still get the same problem following your suggestion below. Brian -Original Message- From: Ken Anderson [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 8:28 AM To: Tomcat Users List Subject: Re: tomcat/apache with ALIASES (Was canonical names) I just tried this, and it works! Also, 'UseCanonicalName' is On. Ken Ken Anderson wrote: h... have you tried Apache's ServerAlias Directive? I know this works with static content, but I'm not sure if mod_webapp respects it or not.. VirtualHost 192.168.1.1 ServerName blah1.blah.com ServerAlias blah2.blah.com DocumentRoot /blah WebAppConnection conn warp localhost:8008 WebAppDeploy webappconn /test /VirtualHost Ken Brian Bernardo wrote: While that technically works, it launches a separate tomcat instance within the single JVM instance. Watch the logs in catalina.out and you see that for each WebAppDeploy line a new instance is launched. This offers functionality, but sharing resources is never a good idea if you want any scalability. This site is expected to get 550 concurrent sessions at any time. This will not work out in such a demanding environment. Basically the line: Thu Apr 25 05:22:07 : 204 : TRACE : system : targetHost :bt1.domain.com Suggests that tomcat launches using the one instance per targetHost. If you have one WebAppDeploy and regardless of how you got there (proxy, mod_rewrite, virtual hosts etc) once you access any resource from the webapp directory, you get forwarded to http://targetHost/webapp and you lose the user supplied prefix (bad thing). Any other suggestions out there? There has to be a way to restrict (or add) more than one targetHost for tomcat to allow several access methods. Brian -Original Message- From: Ken Anderson [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 2:02 PM To: Tomcat Users List Subject: Re: tomcat/apache with ALIASES (Was canonical names) Does something like this work? - NameVirtualHost 192.168.1.1 VirtualHost 192.168.1.1 ServerName blah1.blah.com DocumentRoot /blah WebAppConnection conn warp localhost:8008 WebAppDeploy webappconn /test /VirtualHost VirtualHost 192.168.1.1 ServerName blah2.blah.com DocumentRoot /blah WebAppConnection conn2 warp localhost:8008 WebAppDeploy webappconn2 /test /VirtualHost Ken Brian Bernardo wrote: First of all, I am very proficient with DNS; that was not the question. I want users who go to http://name.domain/webapps to have the same webappdeployment as http://name2.domain/webapps. It is important that however they got there (domain prefix) be maintained throughout their session. This works fine for static content, but as soon as anyone goes to http://name?.domain/webapps they get redirected over to http://ServerName/webapps. ServerName is defined within the apache httpd.conf file (same with vitualhost name). That is not good. There has to be a way to have either virtual hosts or some method for tomcat to serve the same dynamic content regardless of how they got there without redirecting. Any one know how to accomplish this? B -Original Message- From: Joseph Molnar [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 8:28 AM To: Tomcat Users List Subject: Re: tomcat/apache with ALIASES (Was canonical names) No. I use A and CNAMES depending on the situation. Do you have proper aliases set up in Apache? Joe - Original Message - From: Oki DZ [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, April 25, 2002 2:28 AM Subject: Re: tomcat/apache with ALIASES (Was canonical names) On 04/25 15:33 Hamish Marson wrote: What you're using (Or trying to use) is aliases... The DNS records (CNAME etc al) are named after what they point AT (or more accurately) resolve to. Thus the CNAME record (Canonical name) points or resolves to the REAL name of the host. (Literally, the dictionary term for canonical is the real one). Just like the A record resolves TO the address... I think I have the same problems... So, how do you set up virtual hosts in Tomcat? I have tried to have Host ../ elements in a Tomcat service and I used CNAMEs in them. It seemed that any hosts in the service would resolve to the same contexts
Re: mod_status.so
http://groups.google.com/groups?q=__floatdisf:referenced+symbol+not+found Always try google first - it will save you some time waiting for the answer. Ken [EMAIL PROTECTED] wrote: Starting up Apache with either mod_status or mod_authdigest, returns the error message __floatdisf:referenced symbol not found. Can anybody tell me which library I am missing? Glen Jackson [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: tomcat/apache with ALIASES (Was canonical names)
What do you mean by 'targetHost' entry? Ken Brian Bernardo wrote: I am using Apache 1.3.24 on Solaris 8, and was using tomcat 4.03 with the 4.03 connector. I upgraded to tomcat 4.04b2 and compiled the connector too, but still have the same problem. The targetHost entry always is the ServerName. This sucks. This is a terribly lame limitation with tomcat. WebLogic can do it, even back with 5.0!! Brian -Original Message- From: Ken Anderson [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 10:46 AM To: Tomcat Users List Subject: Re: tomcat/apache with ALIASES (Was canonical names) This works on Apache 1.3.22 on RedHat Linux, using mod_webapp with tomcat 4.04b2. mod_webapp built from 'jakarta-tomcat-connectors-4.0.4-b2-src' Here are the relevant sections of httpd.conf: - LoadModule webapp_module modules/mod_webapp.so AddModule mod_webapp.c UseCanonicalName On NameVirtualHost 192.168.1.10 VirtualHost 192.168.1.10 DocumentRoot /home/user/public_html ServerName www.domain.com ServerAlias test.domain.com WebAppConnection conn warp localhost:8008 WebAppDeploy mywebapp conn /go /VirtualHost - Ken Anderson Brian Bernardo wrote: Can you send me your httpd.conf file then, because I still get the same problem following your suggestion below. Brian -Original Message- From: Ken Anderson [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 8:28 AM To: Tomcat Users List Subject: Re: tomcat/apache with ALIASES (Was canonical names) I just tried this, and it works! Also, 'UseCanonicalName' is On. Ken Ken Anderson wrote: h... have you tried Apache's ServerAlias Directive? I know this works with static content, but I'm not sure if mod_webapp respects it or not.. VirtualHost 192.168.1.1 ServerName blah1.blah.com ServerAlias blah2.blah.com DocumentRoot /blah WebAppConnection conn warp localhost:8008 WebAppDeploy webappconn /test /VirtualHost Ken Brian Bernardo wrote: While that technically works, it launches a separate tomcat instance within the single JVM instance. Watch the logs in catalina.out and you see that for each WebAppDeploy line a new instance is launched. This offers functionality, but sharing resources is never a good idea if you want any scalability. This site is expected to get 550 concurrent sessions at any time. This will not work out in such a demanding environment. Basically the line: Thu Apr 25 05:22:07 : 204 : TRACE : system : targetHost :bt1.domain.com Suggests that tomcat launches using the one instance per targetHost. If you have one WebAppDeploy and regardless of how you got there (proxy, mod_rewrite, virtual hosts etc) once you access any resource from the webapp directory, you get forwarded to http://targetHost/webapp and you lose the user supplied prefix (bad thing). Any other suggestions out there? There has to be a way to restrict (or add) more than one targetHost for tomcat to allow several access methods. Brian -Original Message- From: Ken Anderson [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 2:02 PM To: Tomcat Users List Subject: Re: tomcat/apache with ALIASES (Was canonical names) Does something like this work? - NameVirtualHost 192.168.1.1 VirtualHost 192.168.1.1 ServerName blah1.blah.com DocumentRoot /blah WebAppConnection conn warp localhost:8008 WebAppDeploy webappconn /test /VirtualHost VirtualHost 192.168.1.1 ServerName blah2.blah.com DocumentRoot /blah WebAppConnection conn2 warp localhost:8008 WebAppDeploy webappconn2 /test /VirtualHost Ken Brian Bernardo wrote: First of all, I am very proficient with DNS; that was not the question. I want users who go to http://name.domain/webapps to have the same webappdeployment as http://name2.domain/webapps. It is important that however they got there (domain prefix) be maintained throughout their session. This works fine for static content, but as soon as anyone goes to http://name?.domain/webapps they get redirected over to http://ServerName/webapps. ServerName is defined within the apache httpd.conf file (same with vitualhost name). That is not good. There has to be a way to have either virtual hosts or some method for tomcat to serve the same dynamic content regardless of how they got there without redirecting. Any one know how to accomplish this? B -Original Message- From: Joseph Molnar [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 8:28 AM To: Tomcat Users List Subject: Re: tomcat/apache with ALIASES (Was canonical names) No. I use A and CNAMES depending on the situation. Do you have proper aliases set up in Apache? Joe - Original Message - From: Oki DZ [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, April 25, 2002 2:28 AM Subject: Re: tomcat/apache with ALIASES (Was canonical names) On 04
Re: Apache 2.0, mod_webapp, tomcat 4.x integration
Did you try www.liquidshell.net/examples/ (the last slash is important) Ken Simon Stewart wrote: On Thu, Apr 25, 2002 at 01:49:33PM -0400, digital synapse wrote: i've managed to load tomcat and apache 2.035 fine with your supplied mod_webapp.so file Simon. I both tomcat and apache work on problem on their own however when i go to www.liquidshell.net/examples it gives me a Object not found! error 404. ? What's goin down this time hrm... First things first. When you started apache, did you see it connect in the Tomcat logs? It should have been reasonably obvious if it did. Cheers, Simon -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: tomcat/apache with ALIASES (Was canonical names)
Does something like this work? - NameVirtualHost 192.168.1.1 VirtualHost 192.168.1.1 ServerName blah1.blah.com DocumentRoot /blah WebAppConnection conn warp localhost:8008 WebAppDeploy webappconn /test /VirtualHost VirtualHost 192.168.1.1 ServerName blah2.blah.com DocumentRoot /blah WebAppConnection conn2 warp localhost:8008 WebAppDeploy webappconn2 /test /VirtualHost Ken Brian Bernardo wrote: First of all, I am very proficient with DNS; that was not the question. I want users who go to http://name.domain/webapps to have the same webappdeployment as http://name2.domain/webapps. It is important that however they got there (domain prefix) be maintained throughout their session. This works fine for static content, but as soon as anyone goes to http://name?.domain/webapps they get redirected over to http://ServerName/webapps. ServerName is defined within the apache httpd.conf file (same with vitualhost name). That is not good. There has to be a way to have either virtual hosts or some method for tomcat to serve the same dynamic content regardless of how they got there without redirecting. Any one know how to accomplish this? B -Original Message- From: Joseph Molnar [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 8:28 AM To: Tomcat Users List Subject: Re: tomcat/apache with ALIASES (Was canonical names) No. I use A and CNAMES depending on the situation. Do you have proper aliases set up in Apache? Joe - Original Message - From: Oki DZ [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, April 25, 2002 2:28 AM Subject: Re: tomcat/apache with ALIASES (Was canonical names) On 04/25 15:33 Hamish Marson wrote: What you're using (Or trying to use) is aliases... The DNS records (CNAME etc al) are named after what they point AT (or more accurately) resolve to. Thus the CNAME record (Canonical name) points or resolves to the REAL name of the host. (Literally, the dictionary term for canonical is the real one). Just like the A record resolves TO the address... I think I have the same problems... So, how do you set up virtual hosts in Tomcat? I have tried to have Host ../ elements in a Tomcat service and I used CNAMEs in them. It seemed that any hosts in the service would resolve to the same contexts contained in the service (even though I have supplied different URLs; ie: different FQDNs). I guess the answer would be: just use A records (that point to the same IP number). Is it correct...? Oki -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Which Apache-To-Tomcat Connector
It isn't so. There is no problem serving static content through apache using mod webapp to server only servlets, jsp. The setup is different than when using mod_jk, that's all. Ken Lance Smith wrote: Using: Apache 2.0.35 and Tomcat 4.0.3 on Red Hat 7.2. Say it isn't so: There is no way to serve static pages from Apache using mod_webapp? Can anyone confirm/deny this? Lance The major difference between the two modules, other than this, is that mod_jk allows static content to be served directly from Apache rather than going through Tomcat, and mod_jk has provision for doing loadbalancing across multiple servers. Of these, the former is (apparently) going to be fixed at some point in the near future. _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Which Apache-To-Tomcat Connector
I just did some similar benchmarking, though I didn't test with tomcat standalone, since I need Apache, and don't have standalone configured. I'm sure there are other factors, O/S, JDK, etc, but here's what I found, using mod_webapp, with Tomcat 4.04b2 on Sun JDK1.4 and Apache 1.3.22 on RedHat 7.2. Doing ./ab -n 1000 -c 100 Getting 15267 byte web page file; text and images (same file contents) in all three cases. Apache only static content - 52 req/sec avg. (no errors) Apache through mod_webapp - getting same file - static content. - 50 req/sec avg. (no errors) Apache through mod_webapp - getting servlet/velocity generated page, based on sql result from mysql (simple select query through mm.mysql jdbc driver, using dbConnectionBroker pooling) - 37 req/sec avg. (no errors) I did notice that mod_webapp was a bit unstable; delivering some widely varying performance, and hanging 1 out of 20 tests I ran, though I have never seen this problem under normal loads. Also, since I didn't test standalone performance, I am not sure the problem I had was really with mod_webapp. I tried hitting an WinXP dev box that runs TC standalone, but it couldn't handle the ./ab -n 1000 -c 100 load. It returned 'broken pipe' for anything over -c 5. Ken Anderson Cavan Morris wrote: I've recently done some benchmarking on mod_webapp and I wasn't too impressed. I am using it anyway though until I can compare to something better. The upshot was this. Apache+tomcat was taking 5 times as long to serve a request as tomcat standalone was. Also, Apache+tomcat would choke on concurrent requests; sometimes requiring an apache restart... Bad. It seams to me that Apache+tomcat should take on the order of the time it takes apache to handle a request plus the time it takes tomcat to handle a request since that is basically what happens. Of course that's just my though without knowing any of the technical details at all. I could be an idiot. I'd be interested if anyone has performance data for the other connectors. I used the apache ab to get my data. I compared my host through apache and my host standalone over 100 request and got under 20 requests per second with apache and over 100 requests / sec standalone. Cavan Morris -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: mod_webapp + httpd.conf
Or, specify a virtualhost and deploy the connector within that virtualhost. - NameVirtualHost 192.168.1.1 VirtualHost 192.168.1.1 ServerName www.blah.com DocumentRoot /blah WebAppConnection conn warp localhost:8008 WebAppDeploy examplesconn /examples [other statements go in here too.] /VirtualHost - This has the advantage of allowing you to deploy more virtual hosts with different webapps easily. Example: VirtualHost 192.168.1.1 ServerName ADMIN.blah.com DocumentRoot /admin WebAppConnection conn2 warp localhost:8008 WebAppDeploy adminconn2 /admin [other statements go in here too.] /VirtualHost Ken Cynthia Jeness wrote: I believe that this is a known problem and one suggested workaround is to do the following: Uncomment the line ServerName=localhost and changed localhost to www.ajug.org. Unless this line is uncommented, then Apache will generate an error (Invalid virtual host name) when restarted. Of course, change localhost to the correct name of your server. www.ajug.org is my web server. You can find our Tomcat4 how-to at this URL: http://www.ajug.org/howto/tomcat4.html Cynthia Jeness Web Chair, Atlanta Java Users Group Karoly VEGH wrote: Hello, i try to get apache communicate with tomcat, i have the following section in my httpd.conf: 8- IfModule mod_webapp.c WebAppConnection conn warp localhost:8008 WebAppDeploy examplesconn /examples # WebAppInfo /webapp-info /IfModule -8 WebAppDeploy takes three arguments, name connection uri-path the problem is at apachectl configtest: Syntax error on line 1039 of /etc/apache/httpd.conf: Invalid virtual host name the 1039th line is WebAppDeploy examplesconn /examples what virtual host does he await? tia, Charlie -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Questions about Tomcat and Apache Integration?
Seems to be a common problem. The webapp Deploy statement (using mod webapp) will run everything in the 'deployed' directory tree, including images through tomcat. It's not a good idea to put static resources there, IMHO. If you have to put them there, but want apache to serve them, then us the Alias directive in Apache so that apache grabs them from a different URI, like this: alias /images/ /$tomcat/webapps/webapp/images/ This way the uri doesn't contain the path that is in the webapp Deploy statement, so it wont pass the request to tomcat. Ken Jakarta Tomcat Newsgroup (@Basebeans.com) wrote: Subject: Questions about Tomcat and Apache Integration? From: Jack Gao [EMAIL PROTECTED] === Hi, List I have some questions about Tomcat and Apache integration. As I remember that the reason of not use Tomcat as a web server but only JSP/Servlet engine is because of performance. Tomcat is not as good as Apache to handle large number of requests at same time, and handle static resources. So, I assume that by integrate Tomcat and Apache together, when a request is for a static resource, like a html file or an image file, the request will not go to Tomcat, but been processed by Apache directly. But when I go through the log files of Tomcat 4.0.3, I found that request of image files also go to Tomcat, it also been logged into localhost_access_log..txt file. So I got confused. Does this mean, this image files also processed by Tomcat? or tomcat just log it as a access event, but didn't process it? If Tomcat need to handle this kind of static resources, why we still need Apache? If Apache just pass through the request to Tomcat, and forward response to client, that will not help the performance I think. Anybody has some info on this? Thanks and regards, Jack -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.0.x and OpenSSL
If Apache is an option, I'd use it, since current builds (for many distros of linux) come with mod_ssl openssl built in. All you have to do is install Tomcat, configure the apache connector 'mod_webapp' (there are good links on the list for how to do that), then Apache will handle all SSL requests for you, including your /servlet requests. This is a much better solution, since openssl/mod_ssl is much faster than java ssl in tomcat standalone, and also much easier to configure, plus you get all the advantages of Apache's wide variety of configuration options. Ken Jordan C N Chong wrote: Dear all, I am sorry that I have to ask this question again. Is there anyone having experience in integrating the Tomcat 4.0.x with OpenSSL, with maybe mod_jk.dll or maybe Apache? Please help me. Thank you very much. Best regards, Jordan Cheun Ngen, Chong INF-4067 Universiteit Twente Postbus 217 7500 AE Enschede The Netherlands Distributed and Embedded Systems (DIES) Office Phone: +31 53 4894655 Web site: http://www.cs.utwente.nl/~chong Email Add.: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: URLConnection was rejected in Apache-Tomcat Web envirment!
For apache limits, see: http://httpd.apache.org/docs/mod/directives.html For linux, try 'sysctl -a' to see a list of limits. How many connections/sec were you creating? Ken Yaogeng Cheng wrote: Hi: I was testing my servlet under Apach-Tomcat envirment in Linux system. I opened 200 threads in my Win 2000 and kept opening URLConnections and sent some String to the servlet using DataOutputStream dateOut = new DataOutputStream(conn.getOutputStream());. After a period of time, a lot of threads was failed to connect to the servlets by throwing java.net.ConnectionException. I checked Linux machine, and I found a lot of sockets were opend by my test client and were not closed and waiting time out. Is it normal that all these tcp connection did not close by themself and is it the reason that some URLConnection was rejected? How can I fix the problem? Is there any limitations with my Linux machine or TomCat on the number of TCP socket (by URLConnection on port 8080) connections? How can I check it and change the number? Thanks Yaogeng -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: processing page
see the server push example - countdown.java http://www.servlets.com/jservlet2/examples/ch06/index.html#ex06_13 On 2002.04.17 03:54 Michael Reutter wrote: Hi! PLEASE HELP ME how to implement this with servlets: A page is requested - but tomcat needs 15-30 seconds to create the result! What I want is a page Please wait ... Your page is being processed, and the moment tomcat has created the output, the real page is being loaded by the browser!!! if this isn't a real tomcat-issue, please let me know where to ask my question instead thanks for any help michi -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Apache serving static content
mod_webapp already works this way. That's the whole point of using it with Apache, right? See http://dcb.sun.com/practices/howtos/tomcat_apache.jsp Ken Hello Again: I know I can be kinda annoying, but I really need to know if someone could make mod_webapp + warp configuration to serve only dynamic content, and apache serve only the static content. If not, does anyone know where can I find a reference for mod_webapp? Because it seems like there is no detailed documentation on how to use it. Thanks a LOT! Gabriel Maffia -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Serving images with Apache
Unless you have WebAppDeploy pointing to the document root of the site, you won't have any problems serving static content from Apache. Ken Gabriel Maffia wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi. I think I´ve sent this question before, but I´m not sure if it got to the list. I´m actually using Tomcat 4.0.1 and Apache 1.3.23, connecting them through webapp + warp. We are serving a really heavy application, and I was wondering if there was a way to make apache serve all the images (.jpg, etc) and make Tomcat only serve the applications. Should I switch to Mod-Jk? Thanks in Advance Gabriel Maffia Technisys S.R.L. The first digital e-nabler of Latinamerica -BEGIN PGP SIGNATURE- Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com iQA/AwUBPJdNT70dmyI+ZWfLEQJybACgwGMcSbTBQymm+TroqshGYBfaB+8Ani3A ye8jvKMUoOyZgJ+6C3N85a6X =lkJ3 -END PGP SIGNATURE- -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Exception when executing JSP
You need jsdk. jre will not compile anything. Ken Darsey, Charlie wrote: I cannot get any jsp pages to execute on my Sun server. SunOS 5.8, jre 1.3.1. I've tried both jakarta-tomcat-3.2.2 and jakarta-tomcat-4.0.3 and I keep ketting the mesage below: What's the scoop? It works fine on my win2k box. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Apache serving static content
What is the advantage of deploying all resources of a webapp inside the webapp directory? If there is a need for a webappIgnore feature, perhaps this question should be brought to the the dev list? Ken Brandon Cruz wrote: I have the same issue with mod_jk. We deploy all of our web application within tomcat_home/webapps. If a webapp is called myWebapp, then a request to /myWebapp/image.gif will be processed by Tomcat due to the fact that it matches the /myWebapp/* declaration. Is there a way to keep images from being processed by Tomcat if they are inside a webapp? Something like the patch that James mentions below would be exactly what I am looking for. Configuration is Apache/Tomcat 3.2.4 using several different Webapps. Brandon P.S. If anyone has problems with tomcat serving images very slowly, the JkLogLevel should be set to error instead of warn inside of httpd.conf. This is not really documented anywhere for tomcat 3.2.4, but results in HUGE improvements in speed if you are serving an image-heavy page in a webapp. -Original Message- From: James Williamson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 16, 2002 11:19 AM To: Tomcat Users List Subject: Re: Apache serving static content Gabriel, I wrote a quick patch a while ago for mod_webapp that lets you specify patterns to ignore (i.e. the request never sees Tomcat). So apply the patch and recompile, and in your httpd.conf file use WebAppIgnore directives to tell mod_webapp which patterns to ignore. i.e. WebAppIgnore *.html WebAppIgnore /cgi-bin/* I haven't thoroughly tested it so would be pleased to know how you get on. Please find the patch attached. I would submit to the developers except I need to fix a few problems with it (You must put the WebAppIgnore's after you've declared your application). Regards, James Williamson www.nameonthe.net UK Tomcat Hosting - Original Message - From: Gabriel Maffia [EMAIL PROTECTED] To: Tomcat Users List Service [EMAIL PROTECTED] Sent: Tuesday, March 19, 2002 5:07 PM Subject: Apache serving static content Hello Again: I know I can be kinda annoying, but I really need to know if someone could make mod_webapp + warp configuration to serve only dynamic content, and apache serve only the static content. If not, does anyone know where can I find a reference for mod_webapp? Because it seems like there is no detailed documentation on how to use it. Thanks a LOT! Gabriel Maffia -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Apache serving static content
As a workaround, you can use an apache alias directive. Alias /images/ $tomcat_home/webapps/webapp_name/images/ Ken James Williamson wrote: Ken, I've send the dev list a few e-mails about this (and other bugs I've seen) and I should really send this patch to them. However, I need to eradicate a few issues with it before I send it to them. Regards, James Williamson www.nameonthe.net UK Tomcat Hosting - Original Message - From: Ken Anderson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, April 16, 2002 9:25 PM Subject: Re: Apache serving static content What is the advantage of deploying all resources of a webapp inside the webapp directory? If there is a need for a webappIgnore feature, perhaps this question should be brought to the the dev list? Ken Brandon Cruz wrote: I have the same issue with mod_jk. We deploy all of our web application within tomcat_home/webapps. If a webapp is called myWebapp, then a request to /myWebapp/image.gif will be processed by Tomcat due to the fact that it matches the /myWebapp/* declaration. Is there a way to keep images from being processed by Tomcat if they are inside a webapp? Something like the patch that James mentions below would be exactly what I am looking for. Configuration is Apache/Tomcat 3.2.4 using several different Webapps. Brandon P.S. If anyone has problems with tomcat serving images very slowly, the JkLogLevel should be set to error instead of warn inside of httpd.conf. This is not really documented anywhere for tomcat 3.2.4, but results in HUGE improvements in speed if you are serving an image-heavy page in a webapp. -Original Message- From: James Williamson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 16, 2002 11:19 AM To: Tomcat Users List Subject: Re: Apache serving static content Gabriel, I wrote a quick patch a while ago for mod_webapp that lets you specify patterns to ignore (i.e. the request never sees Tomcat). So apply the patch and recompile, and in your httpd.conf file use WebAppIgnore directives to tell mod_webapp which patterns to ignore. i.e. WebAppIgnore *.html WebAppIgnore /cgi-bin/* I haven't thoroughly tested it so would be pleased to know how you get on. Please find the patch attached. I would submit to the developers except I need to fix a few problems with it (You must put the WebAppIgnore's after you've declared your application). Regards, James Williamson www.nameonthe.net UK Tomcat Hosting - Original Message - From: Gabriel Maffia [EMAIL PROTECTED] To: Tomcat Users List Service [EMAIL PROTECTED] Sent: Tuesday, March 19, 2002 5:07 PM Subject: Apache serving static content Hello Again: I know I can be kinda annoying, but I really need to know if someone could make mod_webapp + warp configuration to serve only dynamic content, and apache serve only the static content. If not, does anyone know where can I find a reference for mod_webapp? Because it seems like there is no detailed documentation on how to use it. Thanks a LOT! Gabriel Maffia -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Apache serving static content
Works fine for me, and since the uri changes to /images/test.gif or whatever, mod_webapp ignores it, and the files can still live in the webapp directory, which is what you want right? Maybe I misunderstood the problem? Ken James Williamson wrote: Hi Ken, That won't work, mod_webapp only looks at the uri, the Alias directive modifies the filename (as do things like mod_rewrite) during the uri translation phase, obviously doing this has no effect. Regards, James Williamson www.nameonthe.net UK Tomcat Hosting - Original Message - From: Ken Anderson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, April 17, 2002 12:35 AM Subject: Re: Apache serving static content As a workaround, you can use an apache alias directive. Alias /images/ $tomcat_home/webapps/webapp_name/images/ Ken James Williamson wrote: Ken, I've send the dev list a few e-mails about this (and other bugs I've seen) and I should really send this patch to them. However, I need to eradicate a few issues with it before I send it to them. Regards, James Williamson www.nameonthe.net UK Tomcat Hosting - Original Message - From: Ken Anderson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, April 16, 2002 9:25 PM Subject: Re: Apache serving static content What is the advantage of deploying all resources of a webapp inside the webapp directory? If there is a need for a webappIgnore feature, perhaps this question should be brought to the the dev list? Ken Brandon Cruz wrote: I have the same issue with mod_jk. We deploy all of our web application within tomcat_home/webapps. If a webapp is called myWebapp, then a request to /myWebapp/image.gif will be processed by Tomcat due to the fact that it matches the /myWebapp/* declaration. Is there a way to keep images from being processed by Tomcat if they are inside a webapp? Something like the patch that James mentions below would be exactly what I am looking for. Configuration is Apache/Tomcat 3.2.4 using several different Webapps. Brandon P.S. If anyone has problems with tomcat serving images very slowly, the JkLogLevel should be set to error instead of warn inside of httpd.conf. This is not really documented anywhere for tomcat 3.2.4, but results in HUGE improvements in speed if you are serving an image-heavy page in a webapp. -Original Message- From: James Williamson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 16, 2002 11:19 AM To: Tomcat Users List Subject: Re: Apache serving static content Gabriel, I wrote a quick patch a while ago for mod_webapp that lets you specify patterns to ignore (i.e. the request never sees Tomcat). So apply the patch and recompile, and in your httpd.conf file use WebAppIgnore directives to tell mod_webapp which patterns to ignore. i.e. WebAppIgnore *.html WebAppIgnore /cgi-bin/* I haven't thoroughly tested it so would be pleased to know how you get on. Please find the patch attached. I would submit to the developers except I need to fix a few problems with it (You must put the WebAppIgnore's after you've declared your application). Regards, James Williamson www.nameonthe.net UK Tomcat Hosting - Original Message - From: Gabriel Maffia [EMAIL PROTECTED] To: Tomcat Users List Service [EMAIL PROTECTED] Sent: Tuesday, March 19, 2002 5:07 PM Subject: Apache serving static content Hello Again: I know I can be kinda annoying, but I really need to know if someone could make mod_webapp + warp configuration to serve only dynamic content, and apache serve only the static content. If not, does anyone know where can I find a reference for mod_webapp? Because it seems like there is no detailed documentation on how to use it. Thanks a LOT! Gabriel Maffia -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Authentication without using forms
Or, just use basic authentication. See the manager example configuration. Ken Steve Vanspall wrote: We have a similar situation here. In our case we keep the bean in which you store this information, in session when they logon. You could just store the userid and password in session when they log-on and remove it when they log off. e.g. session.getAttribute(User Information, UserInfoBean); that's how the forms store there information when forwarding to other pages. -Original Message- From: Antonio De Lilla [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 16 April 2002 11:09 AM To: Tomcat Users List Subject: Authentication without using forms Hi All, Please, if someone can help. I'm running Tomcat 4.0.3 with j2sdk1.4 on Linux 7.1 I'm trying to authentify a user to access secure pages without using forms. I would like to call directly j_security_check passing the userid and password as parameters. The problem is that the user has been already authentified, and I don't want to ask him his userid and password again to access the secure pages. Thanks in advanced. Tony -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat:Port 8080 or 8007?
If you have all the examples installed, and tomcat is starting okay, you should see content at http://localhost:8080 The apj12 connector (and port 8007) is for apache; you can ignore it, unless you are running tomcat with apache You need full jsdk to run jsp, not just jre. Ken [EMAIL PROTECTED] wrote: I installed Tomcat 3.3.1 on win 98.There is no problem on running it.Writing http:localhost:8080 returns nothing.But using port 8007 keeps on loading for long and then shows 'the page cannot be displayed' page.It also cannot connect to my simple jsp page.Is this the problem of using proper port?server.xml file in conf directory has the following setup for some ports: Http10Connector port=8080 Ajp12Connector port=8007 / Can anybody suggest what I need to do in order to run my jsp pages? Thank you. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 3.3.1 and JDK 1.4
4.04b2 JDK 1.4 works very well. Using it on XP and R.H. Linux 7.2 No reason 3.3.1 wouldn't work also. Ken Carlos Martins wrote: Yep. i'm using it. actually, i'm using tomcat 4.0.2 with JDK 1.4, and it's working fine. -Original Message- From: Michel COTE [mailto:[EMAIL PROTECTED]] Sent: sexta-feira, 12 de Abril de 2002 11:39 To: '[EMAIL PROTECTED]' Subject: Tomcat 3.3.1 and JDK 1.4 What do you think about using Tomcat 3.3.1 with the new Sun's JDK 1.4. Does anybody already uses it ? Thanks for any help. Michel COTE Coopérateurs de Normandie Picardie Tel : 232111086 email : [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: password protection
See the manager example that comes with tomcat. You have to define a security constraint in web.xml, and specify username / password in tomcat-users.xml Ken David Gladstone wrote: i am trying to figure out how to password protect a directory. i am realativly new to tomcat. i know it its very easy to do in apache with an .htaccess file. but how do i go about doing it in tomcat ? -dave -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Please help me on a question about TOMCAT OR APACHE + TOMCAT
Tomcat Standalone is not an enterprise webserver, and will not stand up to the pounding that Apache can take. I think you would find that your response time drops off rather quickly if you are hosting 200 active virtual domains. If you don't serve many concurrent requests, and don't need the power and flexibility of apache, tomcat standalone is fine. Ken Lalit Nagpal wrote: hello, i am using tomcat as a standalone. i have jsps and servlets working quiet normally, i see no reason why apache should be connected to tomcat if servlets and jsp serve your purpose. although some people argue that for static pages apache will respond to requests much faster than tomcat. however i feel the response time difference is negligible. bye Lalit Nagpal - Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: How can I automatically start a servlet in a specific time?
You mean you don't want to load it until a specific time, or you don't want it to respond to requests until a certain time? Ken Carlos Martins wrote: Kelly, Boa pergunta... não sei nenhuma maneira directa, mas podes sempre criar um servlet tipo scheduler que arranca automáticamente com o tomcat e que a determinadas horas arranca outros servlets. Carlos -Original Message- From: Kelly Prudente Pereira [mailto:[EMAIL PROTECTED]] Sent: quarta-feira, 10 de Abril de 2002 23:04 To: '[EMAIL PROTECTED]' Subject: How can I automatically start a servlet in a specific time? Can anyone answer my question? How can I automatically start a servlet in a specific time? For example: at midnight. I don't want to start it when I start my webserver. Thanks in advanced, Kelly Prudente Pereira Analista de Sistemas - NDS [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Fóton® Informática e Serviços Fone: (61) 328 5060 R.: 221 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: RES: How can I automatically start a servlet in a specific time?
This sounds like it could be a simple java app? Are you sure this needs to be a servlet? If so, I suppose the easiest is just to write a controller servlet for it that only executes the method when the time is right, and sleeps the rest of the time.. Someone else suggested some code for this. Ken Kelly Prudente Pereira wrote: Yes Ken, I mean I don't want to load it until a specific time. I need to load it to do a specific job at a certain time. Do you know how can I do this? -Mensagem original- De: Ken Anderson [mailto:[EMAIL PROTECTED]] Enviada em: quarta-feira, 10 de abril de 2002 19:19 Para: Tomcat Users List Assunto: Re: How can I automatically start a servlet in a specific time? You mean you don't want to load it until a specific time, or you don't want it to respond to requests until a certain time? Ken Carlos Martins wrote: Kelly, Boa pergunta... não sei nenhuma maneira directa, mas podes sempre criar um servlet tipo scheduler que arranca automáticamente com o tomcat e que a determinadas horas arranca outros servlets. Carlos -Original Message- From: Kelly Prudente Pereira [mailto:[EMAIL PROTECTED]] Sent: quarta-feira, 10 de Abril de 2002 23:04 To: '[EMAIL PROTECTED]' Subject: How can I automatically start a servlet in a specific time? Can anyone answer my question? How can I automatically start a servlet in a specific time? For example: at midnight. I don't want to start it when I start my webserver. Thanks in advanced, Kelly Prudente Pereira Analista de Sistemas - NDS [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Fóton® Informática e Serviços Fone: (61) 328 5060 R.: 221 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
optimizing tomcat for use with apache only
This is a barebones server.xml for using mod_webapp with apache only (no standalone tomcat service) I'm using tomcat 4.04b2, a fresh mod_webapp.so, apache 1.3.22, on redhat 7.2. Everything works nicely, and it's fast, but I'd like to squeeze as much performance as possible out of the configuration as possible. Any ideas for optimization? --- Server port=8005 shutdown=SHUTDOWN debug=0 Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true appBase=webapps acceptCount=10 debug=0/ Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service /Server --- Thanks, Ken -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Cannot shutdown conn error in apache logs
Tomcat works fine, but this shows up in apache error log. Any ideas? [Tue Apr 9 10:53:13 2002] [error] Cannot shutdown conn [Tue Apr 9 10:53:15 2002] [error] Cannot shutdown conn [Tue Apr 9 10:53:18 2002] [error] Cannot shutdown conn Seems to result after every request conn is the name of the webapp connection in httpd.conf WebAppConnection conn warp localhost:8008 Thanks, Ken -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Cannot shutdown conn error in apache logs
Ahh.. found the issue. Seems that unless I restart apache after restarting tomcat this error exists, otherwise it doesn't. This didn't happen with previous mod_webapp. Ken Ken Anderson wrote: Tomcat works fine, but this shows up in apache error log. Any ideas? [Tue Apr 9 10:53:13 2002] [error] Cannot shutdown conn [Tue Apr 9 10:53:15 2002] [error] Cannot shutdown conn [Tue Apr 9 10:53:18 2002] [error] Cannot shutdown conn Seems to result after every request conn is the name of the webapp connection in httpd.conf WebAppConnection conn warp localhost:8008 Thanks, Ken -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Starting Tomcat 4 as an NT service
On WinXP, I found I had to do %CATALINA_HOME%\bin\tomcat.exe -uninstall Apache Tomcat To uninstall the Tomcat Service. %CATALINA_HOME%\bin\tomcat.exe -uninstall Apache-Catalina gave me a cryptic error about overlapped i/o in progress and didn't remove the service. Ken Jacob Kjome wrote: Hello rsudama, Just a note. I've posted this answer twice before on this list. Please search the archives because it *has* been answered and I gave the solution in the email and didn't ask anyone to search anywhere for the answer. Anyway, here it is again: I distilled the following from this article: http://www.webmasterbase.com/printTemplate.php?aid=305 Assuming you have all your environment variables set, just copy+paste the following to a command line... To Install Catalina Service: %CATALINA_HOME%\bin\tomcat.exe -install Apache-Catalina %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar -Dcatalina.home=%CATALINA_HOME% %CATALINA_OPTS% -Xrs -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out %CATALINA_HOME%\logs\stderr.log To Uninstall Catalina Service: %CATALINA_HOME%\bin\tomcat.exe -uninstall Apache-Catalina Now, check in your Services applet and the Apache-Catalina service should be there. Jake Tuesday, April 09, 2002, 2:08:10 PM, you wrote: roc Yes, I understand perfectly well that it's an option in the installer. I'm roc trying to find out where the documentation are sources are for this tool that is roc included as part of the open source distribution. If there's some reasons for roc not distributing the sources for the tool itself (or how about the whole install roc program?) that's fine, but it would be nice if there was at least some roc documentation on its use. As far as I can tell, the general attitude of the roc Tomcat community on this is we've figured out a way to get this done, and roc here's a bunch of pointers to places where you can figure it our for yourself. roc I already have other tools that can do this if I need to, but since a perfectly roc good tool has already been developed by someone I'd rather use that if it's roc possible. roc - Ram roc [EMAIL PROTECTED] on 04/09/2002 01:22:22 PM roc Please respond to Tomcat Users List [EMAIL PROTECTED] roc To: 'Tomcat Users List' roc [EMAIL PROTECTED] roc cc: (bcc: Ram Sudama/ON Technology) roc Subject: RE: Starting Tomcat 4 as an NT service service. However, no one has seemed to address how Tomcat 4.0.3 roc actually _is_ installed as an NT service. roc It is now included as an option in the installer. roc - tex roc -- roc To unsubscribe: mailto:[EMAIL PROTECTED] roc For additional commands: mailto:[EMAIL PROTECTED] roc Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: xml - unspecified error in IE 5.5, Tomcat 3.2.1
You might try hitting the good(jrun) url and bad(apache) url with lynx or wget; somthing that will give you all headers. That will tell you what is different. Ken [EMAIL PROTECTED] wrote: i tried MSXML 3.0 SP2 and MSXML 4.0. For both these guys, the browser displayed the error message - System does not support the specified encoding. The servlet that sends the xml back doesn't set any encoding or anything. I tried adding the various encoding values in the ?xml version =1.0 encoding=iso-8859-1? tag of the xml document. But the same error message. RS Ingo Bruell [EMAIL PROTECTED] on 04/09/2002 04:44:27 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: Re: xml - unspecified error in IE 5.5, Tomcat 3.2.1 Hi Tomcat, rtc Anyone has an idea why IE 5.5 displays the following error when Tomcat rtc 3.2.1 (servlet) sends back xml to the browser. rtc The XML page cannot be displayed. Please check the error and try again. rtc Unspecified error rtc The same program works on JRun. I suspect the content type could be a rtc problem. But ain't sure. Anyone experienced this. If I use an XSLT rtc processor (Xerces) on the server-side and then send back HTML it works rtc fine. So the xml transformed to HTML works allright. It's just that XML rtc doesn't display on IE 5.5. Do you know any other browser that displays XML? rtc By the way I also use Apache in front of Tomcat. rtc Any solutions/ideas/comments? Have you installed the msxml patch from microsoft ? I do not know the url but look at http://www.microsoft.com/ so long Ingo Bruell --- [EMAIL PROTECTED] [EMAIL PROTECTED] ICQ# 40377720 OldenburgPGP-Fingerprint: CB01 AE12 B359 87C4 BF1C 953C 8FE7 C648 169E E5FC Germany PGP-Public-Key available at pgpkeys.mit.edu -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
ibm jdk 1.3 or sun jdk 1.4 ?
Which is faster for a tomcat webapp? IBM JDK 1.3 or SUN JDK 1.4? Any reported problems with 1.4 Tomcat? Any decent benchmarking tools I can download and test with myself? Ken -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
jar_cache
Does tomcat ever clean up these jar_cache files in the work directory? There's over 900 of them in there. Thanks, Ken -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: jar_cache
sorry, that's the temp dir, not work. Ken Ken Anderson wrote: Does tomcat ever clean up these jar_cache files in the work directory? There's over 900 of them in there. Thanks, Ken -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]