RE: Problem building Tomcat Connector mod_jk2.so
Hi Jorgen, John and Patrick, Thanks for all your advice. I have tried all the suggestioin given. But still no luck. I even try to re-compile apache. still the same. I have also, remove the rpm automake, autoconf and compile and install from source. still the same. But one the I found is the could be a problem of something else. When I re-compile apache. I found that it doesn't create any .so file at all under $APACHE_HOME/modules. Could anyone tell me why I can't create any of those .so file? Am I missing something? Thanks in advance. Cheers, Clive -Original Message- From: Jørgen Nørgaard [mailto:[EMAIL PROTECTED] Sent: Wednesday, 30 July 2003 7:59 PM To: Tomcat Users List Subject: RE: Problem building Tomcat Connector mod_jk2.so Hi Clive, my best idea is to try building the mod_jk2 the way I did, using jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz: after unpacking: cd jk/native2/ ./configure --with-apxs2=/usr/sbin/apxs2-prefork make jk2-build-apxs that left me the mod_jk2.so in the secret .libs directory. Might work for you also. How far do yo get this way? I am on SuSE 8.1 java 1.4.1 apache2.0.46 and tomcat 4.1.24 though I suppose that should not matter too much. Hi Jorgen, i have been searching all the location. but still couldn't find it. I am using the apxs that is from apache2.0.47. i didn't use the redhat version of apache2. So i don't know what it is happening. the box is built freshly. any IDEA? this is what i use to build apache2 $ ./configure --enable-ssl --with-ssl=/usr/local/ssl --enable-module=so --ena b le-module=vhost_alias --enable-module=proxy --enable-module=rewrite --enabl e -shared=proxy I have already spent a whole day trying to build mod_jk2.so. just can't get through. HELP! Cheers, Clive -Original Message- From: Jørgen Nørgaard [mailto:[EMAIL PROTECTED] Sent: Wednesday, 30 July 2003 7:33 PM To: Tomcat Users List Subject: Re: Problem building Tomcat Connector mod_jk2.so Hello, Building the connectors are a bit of a struggle, the documentation is inconsistent and (very) sparse. Which is a pitty because apache/tomcat are great (and tomcat 3 was so easy to build connectors for). That said, I managed to build a mod_jk2 connector using configure in cd jk/native2/ like: ./configure --with-apxs2=/usr/sbin/apxs2-prefork select the proper apxs2 for your mpm model. A bit of searching located the module in some hidden location: jk/native2/server/apache2/.libs/mod_jk2.so Could this be the same for you btw? At 19:16 +1000 30/07/03, Clive Luk wrote: Hi all, I am new to the list. Has anybody had problem building mod_jk2.so. I have no error message on building mod_jk2.so. But after i finished the following steps. I counldn't find and *.so file. I am useing RedHat 9 I have installed: openssl-0.9.7b libtool-1.5 httpd-2.0.47 j2sdk-1_4_2-linux-i586.bin jakarta-tomcat-4.1.26 automake, autoconf, libtool are under /usr/bin _steps I used to build mod_jk2.so_ #./buildconf.sh #./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat41=/usr / l ocal/tomcat --with-java-home=/usr/local/java #make __ __after make command__ #ls ../build/jk2/apache2/*.so ls: ../build/jk2/apache2/*.so: No such file or directory __ I can only see *.lo and *.o and ../build/jk2/apache2/mod_jk2.a ../build/jk2/apache2/mod_jk2.la ../build/jk2/apache2/mod_jk2.lo ../build/jk2/apache2/mod_jk2.o but not mod_jk2.so PLEASE HELP. I have tried so may different version... Cheers, Clive - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- /jørgen nørgaard SmartTV A/S [EMAIL PROTECTED] Phone: +45 3332 5770 http://smarttv.dk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- /jørgen nørgaard SmartTV A/S [EMAIL PROTECTED] Phone: +45 3332 5770 http://smarttv.dk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error when using Tomcat 4.1.24
Hi, Thanks for the suggestion. When we made Password.class as part of package, everything seems to work. Thanks Yoav :-) -Sarika -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 6:40 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Error when using Tomcat 4.1.24 Howdy, Put Password.class under WEB-INF/classes, not WEB-INF/lib. Only .jar files go under the lib directory. Additionally, I strongly suggest you put Password.class in a package, e.g. com.yourcompany (and then in WEB-INF/classes/com/yourcompany). Yoav Shapira Millennium ChemInformatics -Original Message- From: Sarika Inamdar [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 4:00 AM To: 'Tomcat Users List' Subject: Error when using Tomcat 4.1.24 Hi All, We are using tomcat 4.1.24 to connect to web. The application GUI comes up when we connect to web using http://hostname:8080/index.jsp. The next window after this is the Login.jsp page. We use Password.class to check for password integrity to go thru the Login.jsp page. But I get the following error when I give password, and press enter : org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 3 in the jsp file: /login.jsp Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] /export/spare/CSCOPerfE/tomcat/work/Standalone/localhost/_/lo gin_jsp.ja v a:57: cannot resolve symbol [javac] symbol : variable Password [javac] location: class org.apache.jsp.login_jsp [javac] InputStream is = Password.getPasswordsFromDB(); We have placed the Password.class under /webapps/ROOT/WEB-INF/lib/. Am I missing some configuration ? Please help me on this. Thanks, Sarika - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Production server tuning
Bill Barker wrote: Antonio Fiol Bonnín [EMAIL PROTECTED] wrote: However, I am worried about what you say about Apache 2.0.x and the 'worker' MPM. Could you please tell me about the real-world inconveniences of having 3/4 Apache 1.3.X with 2/3 tomcats behind? The mod_jk loadbalancer doesn't work well with pre-fork (including Apache 1.3.x on *nix systems). Since your not using the mod_jk loadbalancer, it shouldn't matter if you are using 1.3.x or 2.0.x. I'm curious, what are the issues with loadbalancing in mod_jk with a pre-forking Apache? -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hanging problem with TC 4.4.1.24
Hello, I have a little problem with Tomcat and startup/shutdown. The last nigth Tomcat don't stop correctly and the shutdown script don't kill the last java/tomcat process. This morning, I started tomcat and now the application doesn't work anymore. In fact, we can't access to it. I check the logs, and I see that the server does nothing ... as if there was something in a cache or in a spool file (I reached some static file and I see that what Tomcat send to the browser is not the real file on disk ... may be tomcat or the application got a cache ?). The only solution i had when it occured was to reboot the server ... but now I can't. I wrote to the mailling list of the application but no one had the solution. Any ideas ? Technical informations : Linux: RedHat 9 Tomcat: 4.4.1.24 Mysql: 3.23.54 Java: J2sdk 1.4.1_02 Application : OpenCms 5.0 Best regards, Sébastien Dagnicourt.
Re: Apache + Tomcat + mod_jk
Following are my config files (my new application is called geode): httpd.conf : - ServerRoot C:/Apache/Apache2 PidFile logs/httpd.pid Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 IfModule mpm_winnt.c ThreadsPerChild 250 MaxRequestsPerChild 0 /IfModule Listen 8081 LoadModule access_module modules/mod_access.so LoadModule actions_module modules/mod_actions.so LoadModule alias_module modules/mod_alias.so LoadModule asis_module modules/mod_asis.so LoadModule auth_module modules/mod_auth.so LoadModule autoindex_module modules/mod_autoindex.so LoadModule cgi_module modules/mod_cgi.so LoadModule dir_module modules/mod_dir.so LoadModule env_module modules/mod_env.so LoadModule imap_module modules/mod_imap.so LoadModule include_module modules/mod_include.so LoadModule isapi_module modules/mod_isapi.so LoadModule log_config_module modules/mod_log_config.so LoadModule mime_module modules/mod_mime.so LoadModule negotiation_module modules/mod_negotiation.so LoadModule setenvif_module modules/mod_setenvif.so LoadModule userdir_module modules/mod_userdir.so LoadModule jk_module modules/mod_jk-2.0.43.dll ServerAdmin [EMAIL PROTECTED] ServerName toto.tata.com:8081 UseCanonicalName Off DocumentRoot C:/Apache/Apache2/htdocs Directory / Options FollowSymLinks AllowOverride None /Directory Directory C:/Apache/Apache2/htdocs Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all /Directory UserDir My Documents/My Website DirectoryIndex index.html index.html.var AccessFileName .htaccess Files ~ ^\.ht Order allow,deny Deny from all /Files TypesConfig conf/mime.types DefaultType text/plain IfModule mod_mime_magic.c MIMEMagicFile conf/magic /IfModule HostnameLookups Off ... ServerTokens Full ServerSignature On Alias /icons/ C:/Apache/Apache2/icons/ Directory C:/Apache/Apache2/icons Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all /Directory AliasMatch ^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ C:/Apache/Apache2/manual$1 Directory C:/Apache/Apache2/manual Options Indexes AllowOverride None Order allow,deny Allow from all Files *.html SetHandler type-map /Files SetEnvIf Request_URI ^/manual/de/ prefer-language=de SetEnvIf Request_URI ^/manual/en/ prefer-language=en SetEnvIf Request_URI ^/manual/fr/ prefer-language=fr SetEnvIf Request_URI ^/manual/ja/ prefer-language=ja SetEnvIf Request_URI ^/manual/ko/ prefer-language=ko SetEnvIf Request_URI ^/manual/ru/ prefer-language=ru RedirectMatch 301 ^/manual(?:/(de|en|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2 /Directory ScriptAlias /cgi-bin/ C:/Apache/Apache2/cgi-bin/ Directory C:/Apache/Apache2/cgi-bin AllowOverride None Options None Order allow,deny Allow from all /Directory IndexOptions FancyIndexing VersionSort AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip ... AddType application/x-tar .tgz AddType image/x-icon .ico AddHandler type-map var IfModule mod_ssl.c Include conf/ssl.conf /IfModule Include c:/jakarta-tomcat-4-1-24/conf/auto/mod_jk.conf server.xml : -- Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=c:/apache/Apache2/modules/mod_jk-2.0.43.dll / Listener className=org.apache.catalina.mbeans.ServerLifecycleListener descriptors=/com/fnac/geode/mbeans/mbean-descriptor.xml debug=0 jsr77Names=false/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved/Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams Resource name=jdbc/RealmDatasource type=javax.sql.DataSource scope=Shareable/ ResourceParams name=jdbc/RealmDatasource parameter nameusername/name valueadmin/value /parameter parameter namepassword/name
Re: siteminder headers
I'll take no answer to mean no one knows. Are there any companies that support tomcat? That could help with this problem? On Tue, 29 Jul 2003, Holden Robbins wrote: Better yet, has anyone successfully integrated Siteminder with IIS and Tomcat? On Mon, 28 Jul 2003, Holden Robbins wrote: Hello, Anyone know how to make the IIS-Tomcat connector pass data through shared memory, as mentioned in the following post: http://www.mail-archive.com/[EMAIL PROTECTED]/msg36732.html Specificly, I'm running into the same problem as the original poster where Siteminder header data is not being passed correctly from IIS to Tomcat. Thanks ahead of time for any help, -Holden - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Production server tuning
David Rees [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Bill Barker wrote: Antonio Fiol Bonnín [EMAIL PROTECTED] wrote: However, I am worried about what you say about Apache 2.0.x and the 'worker' MPM. Could you please tell me about the real-world inconveniences of having 3/4 Apache 1.3.X with 2/3 tomcats behind? The mod_jk loadbalancer doesn't work well with pre-fork (including Apache 1.3.x on *nix systems). Since your not using the mod_jk loadbalancer, it shouldn't matter if you are using 1.3.x or 2.0.x. I'm curious, what are the issues with loadbalancing in mod_jk with a pre-forking Apache? Basically it comes down to the fact that the children don't talk to one another, so each one has its own idea of the relative loads. This usually results in a distribution (for the two-Tomcat case) somewhere between 70-30 and 80-20 (although people on this list have reported even more skewed distributions). It should get even more skewed as you increase the number of Tomcats. mod_jk2 already has the scoreboard (aka shm) in place to allow for the children to coordinate this, but at the moment isn't using it for loadbalancing (and so, is just as broken as mod_jk). I can't add much more except that patches are always welcome ;-) -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ANT tasks for management console
Hi, Catalina 4.1.24 contains some ANT-tasks to call the management application to deploy, reload and delete apps. Where can I find these tasks to include them in my build? Juraj Mit freundlichen Grüssen Juraj Lenharcik T-Systems International GmbH Systems Integration 1 eFactory Solutions Business Unit Manufacturing Solutions Hausadresse: Fasanenweg 5, 70771 Leinfelden-Echterdingen phone: +49 (711) 972 46185 fax:+49 (711) 972 48109 mailto:[EMAIL PROTECTED] www.t-systems.com http://www.t-systems.com www.efactory-solutions.com http://www.efactory-solutions.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Hanging problem with TC 4.4.1.24
Hi Sebastian, have you deleted the contents of the CATALINA_HOME/work dir? There should be a folder called Standalone (is that is how you setup Tomcat, at least). Tomcat stores cached data in same folder. Might be worth a try, please make a backup first though, just in case... Regards, Jan -Original Message- From: Sebastien Dagnicourt [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 8:15 AM To: '[EMAIL PROTECTED]' Subject: Hanging problem with TC 4.4.1.24 Hello, I have a little problem with Tomcat and startup/shutdown. The last nigth Tomcat don't stop correctly and the shutdown script don't kill the last java/tomcat process. This morning, I started tomcat and now the application doesn't work anymore. In fact, we can't access to it. I check the logs, and I see that the server does nothing ... as if there was something in a cache or in a spool file (I reached some static file and I see that what Tomcat send to the browser is not the real file on disk ... may be tomcat or the application got a cache ?). The only solution i had when it occured was to reboot the server ... but now I can't. I wrote to the mailling list of the application but no one had the solution. Any ideas ? Technical informations : Linux: RedHat 9 Tomcat:4.4.1.24 Mysql:3.23.54 Java: J2sdk 1.4.1_02 Application : OpenCms 5.0 Best regards, Sébastien Dagnicourt. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to change to Tomcat work directory
Hello I would like to use Tomcat from a CD on Windows. I have changed the logs directory, but Tomcat doesn't start because the working directory is not writable. Is it possible to change it? Thanks
RE: Hanging problem with TC 4.4.1.24
Yes, I moved it to /tmp just in case :) -Message d'origine- De : Jan Behrens [mailto:[EMAIL PROTECTED] Envoyé : Thursday, July 31, 2003 9:37 AM À : Tomcat Users List Objet : RE: Hanging problem with TC 4.4.1.24 Hi Sebastian, have you deleted the contents of the CATALINA_HOME/work dir? There should be a folder called Standalone (is that is how you setup Tomcat, at least). Tomcat stores cached data in same folder. Might be worth a try, please make a backup first though, just in case... Regards, Jan -Original Message- From: Sebastien Dagnicourt [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 8:15 AM To: '[EMAIL PROTECTED]' Subject: Hanging problem with TC 4.4.1.24 Hello, I have a little problem with Tomcat and startup/shutdown. The last nigth Tomcat don't stop correctly and the shutdown script don't kill the last java/tomcat process. This morning, I started tomcat and now the application doesn't work anymore. In fact, we can't access to it. I check the logs, and I see that the server does nothing ... as if there was something in a cache or in a spool file (I reached some static file and I see that what Tomcat send to the browser is not the real file on disk ... may be tomcat or the application got a cache ?). The only solution i had when it occured was to reboot the server ... but now I can't. I wrote to the mailling list of the application but no one had the solution. Any ideas ? Technical informations : Linux: RedHat 9 Tomcat:4.4.1.24 Mysql:3.23.54 Java: J2sdk 1.4.1_02 Application : OpenCms 5.0 Best regards, Sébastien Dagnicourt. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache2 + Tomcat on different machines
Hi, I got one basic question: is it possible to run HTTP server with redirector plugin (Apache2) AND application server (Tomcat) on a separate physical machines? Eg. Apache in DMZ and Tomcat in another zone or inranet. Do you have a real experience with this? How must be set up Apache (home dir, plugin settings...) how must be set up Tomcat running on a different machine? Thanx for reply Milan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Production server tuning
Bill Barker wrote: I'm curious, what are the issues with loadbalancing in mod_jk with a pre-forking Apache? Basically it comes down to the fact that the children don't talk to one another, so each one has its own idea of the relative loads. This usually results in a distribution (for the two-Tomcat case) somewhere between 70-30 and 80-20 (although people on this list have reported even more skewed distributions). It should get even more skewed as you increase the number of Tomcats. mod_jk2 already has the scoreboard (aka shm) in place to allow for the children to coordinate this, but at the moment isn't using it for loadbalancing (and so, is just as broken as mod_jk). I can't add much more except that patches are always welcome ;-) Thanks, that explains the situation perfectly. Just to be clear, if you are using Apache 2 with threaded workers, threaded workers spawned from the same process do share the loadbalancing information correctly at this time? -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Way to cleanup *before* session terminates ?
Sorry Charlie (ok, I couldn't resist :), but there isn't a way to do this in Tomcat 4.x and lower. However, the (current draft of the) 2.4 Servlet-Spec has changed the behavior, and so in Tomcat 5.x you can define a HttpSessionListener that will get called before the session is invalidated. Charlie Toohey [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have been looking for a way to execute some code when a session is terminating due to invalidation or expiration, but before the session has actually been terminated. I know that implementing HttpSessionBindingListener and binding my object into the session will allow me to execute code in my valueUnbound method, but the notifcation is sent after the session has been invalidatd or expired. But is there any way to be notified that the session is about to terminate before it actually has been invalidated or expired ? - Charlie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
session sendredirect or dispatcher.forward - problem
Hi, It's about sessions who disappear from one servlet to another. I know that this has been discussed, but from what I have read there was no good solution to this problem. Here it goes: I have apache 1.3.27 + mod_jk2 + tomcat 4.1.24. - on linux I have one tomcat process runninng, one application, one context. I have a servlet that in his doGet method works a little on the parameters and then response.sendredirect [ or dispatcher.forward - in this situation both have the same effects] to another servlet. I set some attributes in the first servlet and they disappear in the second servlet - in fact the session is null [I use request.getSession(false)]. After I read many messages on this subject, I tried to use response.sendredirect(response.encodeRedirectURL(myservlet)) and it worked. BUT, in this second servlet I have other links to other servlets. When I clicked on them, in the next servlets the session was gone again. Another trial was that I put it all on another linux, to a friend on my LAN. He has apache 2.0.4x + mod_jk2 + tomcat 4.1.24. It worked perfectly. - Also I noticed there was no need for encodeRedirectURL Then I installed tomcat 4.1.18 on my original linux, and also it worked in the combination I have apache 1.3.27 + mod_jk2 + tomcat 4.1.18. - on linux So, I am sure that NO SERVLET OF MINE was to blame but the configurations of the servers. Can anybody tell me what configuration directive can be to blame for such problems [in all the servers Apache, Linux, ...] ? At what directives should I look in httpd.conf and server.xml? Thank you in advance Gabi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Hanging problem with TC 4.4.1.24
Ok, after searching more, I find the cause of the problem. The mysqld daemon didn't stop correctly, so the application (via tomcat) can't re-connect to the database and can't start. After killing all mysqld daemons, application restart succesfully. Thanks for answers all, Sébastien. -Message d'origine- De : Sebastien Dagnicourt [mailto:[EMAIL PROTECTED] Envoyé : Thursday, July 31, 2003 9:39 AM À : 'Tomcat Users List' Objet : RE: Hanging problem with TC 4.4.1.24 Yes, I moved it to /tmp just in case :) -Message d'origine- De : Jan Behrens [mailto:[EMAIL PROTECTED] Envoyé : Thursday, July 31, 2003 9:37 AM À : Tomcat Users List Objet : RE: Hanging problem with TC 4.4.1.24 Hi Sebastian, have you deleted the contents of the CATALINA_HOME/work dir? There should be a folder called Standalone (is that is how you setup Tomcat, at least). Tomcat stores cached data in same folder. Might be worth a try, please make a backup first though, just in case... Regards, Jan -Original Message- From: Sebastien Dagnicourt [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 8:15 AM To: '[EMAIL PROTECTED]' Subject: Hanging problem with TC 4.4.1.24 Hello, I have a little problem with Tomcat and startup/shutdown. The last nigth Tomcat don't stop correctly and the shutdown script don't kill the last java/tomcat process. This morning, I started tomcat and now the application doesn't work anymore. In fact, we can't access to it. I check the logs, and I see that the server does nothing ... as if there was something in a cache or in a spool file (I reached some static file and I see that what Tomcat send to the browser is not the real file on disk ... may be tomcat or the application got a cache ?). The only solution i had when it occured was to reboot the server ... but now I can't. I wrote to the mailling list of the application but no one had the solution. Any ideas ? Technical informations : Linux: RedHat 9 Tomcat:4.4.1.24 Mysql:3.23.54 Java: J2sdk 1.4.1_02 Application : OpenCms 5.0 Best regards, Sébastien Dagnicourt. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SOS Tomcat 5 and Apache httpd 2.0.47 on windows w2k
# Uri mapping [uri:/examples/*] worker=ajp13:localhost:8009 ** I get a tomcat-style 404 error when I try the following url: http://localhost/examples I am stuck, can anyone please help? Maybe really stupid but shouldn't you have have a slash / at the end for it to work? http://localhost/examples/ /Olle - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Rooting request to one or an other webapp
Hi Yoav, thanks for the info. Could you give me a link or the keywords permitting to find the previous discussions you mentioned on this subject? I've search for that but I didn't found anything. I guess that I've looked for the bad terms. Marc. - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] Newsgroups: gmane.comp.jakarta.tomcat.user Sent: Wednesday, July 30, 2003 3:17 PM Subject: RE: Rooting request to one or an other webapp Howdy, does someone know a way to catch a request and to forward it to one or an other webapp according to some runtime settings? The idea is to be able at runtime to smoothly add a webapp, set it as the default, and to remove the one that was the default when it has no active session anymore. Something similar to this has been requested and discussed several times (it's generally a bad idea), so you can search this list's archives for more information. Broadly speaking: - Let's call webapp1 the one to be removed - Let's call webapp2 the one to be added You would need: - A session listener in webapp1 maintaining a session count, and having a public static int getSessionCount() method. - A filter in webapp1 mapped to /* which consults the session count each time and if 0 (or whatever other runtime setting you choose, e.g. a context param), forwards requests to webapp2 - Maybe an admin JSP (or some other means) in webapp1 to set the runtime settings for the filter - Once you see the above happening, you can remove webapp1 via the manager webapp Of course, there are caveats: - Initially the session count for webapp1 will be zero, so the filter will forward, unless you also have a runtime setting for the filter that says don't forward - If you want to remove webapp1 programatically, you will need some classes to be in the common/lib repository, not web-inf/lib, as these classes will need to access tomcat internals (making them non-portable). Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mod_jk GET request issues
Hi I'm encountering some strange behaviour with mod_jk and was wondering if anyone could shed any light on it. First of all, I'm using Apache 1.3.27 (with mod_ssl), Tomcat 4.1.24 and mod_jk v1.2.1 on Solaris 9. The problem is that whenever I attempt to add any parameters onto a GET request I get a Cannot find server or DNS Error page. For example, using standalone tomcat install on port 8080, the following both work fine: http://localhost:8080/uploader/servlet http://localhost:8080/uploader/servlet?field=moo When I send the request via mod_jk however, adding the parameter on the end causes problems. http://localhost/uploader/servlet - works http://localhost/uploader/servlet?field-moo - doesn't work I'm using the v1.2.1 binary for Solaris 8 (with EAPI) from the jakarta site, as this is the most recent I can find. (Building my own did not go well...) My httpd.conf file contains the following mod_jk lines: LoadModule jk_module libexec/mod_jk.so JkWorkersFile /software/web/apache/1.3.27/conf/workers.properties JkLogFile /software/web/apache/1.3.27/logs/mod_jk.log JKMount /uploader/* ajp13 Workers.properties contains the following: worker.list=ajp13 worker.ajp13.type=ajp13 worker.ajp13.host=localhost worker.ajp13.port=8009 worker.ajp13.lbfactor=3.5 worker.ajp13.cachesize=10 worker.ajp13.cache_timeout=600 worker.ajp13.socket_keepalive=1 worker.ajp13.socket_timeout=300 The tomcat server.xml has the following context: Context path=/uploader docBase=/software/web/webapps/uploader debug=0 priveleged=true / The web.xml file for the application is as follows: ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-nameUploadServlet/servlet-name servlet-classUploadServlet/servlet-class /servlet servlet-mapping servlet-nameUploadServlet/servlet-name url-pattern/servlet/url-pattern /servlet-mapping session-config session-timeout 30 /session-timeout /session-config welcome-file-list welcome-file index.jsp /welcome-file welcome-file index.html /welcome-file welcome-file index.htm /welcome-file /welcome-file-list /web-app Can anyone shed any light here? Many Thanks David Johnson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Servlet seem to be call 2 times
Hi, I'm very surprised by a strange thing happen with Tomcat 4.1.24 on Linux, when I test my webapp with mozilla, konqueror, it work well, but with micro$oft ie6 sp1 it seem to call 2 times the servlet when the output is binary content ( pdf, rtf... ). After testing more precisely, it appear that it's really a second processRequest so I guess a second call of the servlet ! It is very overloading ! because binary documents are very heavy to generate... Any idea to make sure that servlet is call only one time for each request ? Thanks Mourad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help with Tomcat 4.1.24
Hi All, We have migrated to tomcat 4.1.24 from tomcat 3.2.23. Thanks to the tomcat-user list, we were able to deploy the tomcat successfully :-) We have one issue however !!! The tomcat 4.1.24, requires that we place all the jars which is used by the jsp's under TOMCAT_HOME/webapps/WEB-INF/lib directory. In our deployment, we use lot of 3rd party software like AdventSNMP jar, tibco jar and our own application jar. These jars are already present under our tools directory. But with 4.1.24 migration, we have to place all these jars under WEB-INF/lib. This will destroy our directory structure in case we want to mv all of them. To avoid this, we created soft links for the required jars under /WEB-INF/lib. The problem is tomcat server is able to DEPLOY some of the jars, and is cribbing for some jars. For Example, for AdventNetSNMP jar, tomcat throws the following error : 2003-07-31 16:07:25 ContextConfig[] Exception processing JAR at resource path /WE B-INF/lib/AdventNetSnmp.jar javax.servlet.ServletException: Exception processing JAR at resource path /WEB-IN F/lib/AdventNetSnmp.jar at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.jav a:930) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:8 68) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647 ) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig .java:243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycle Support.java:166) Is it possible that some jars get deployed and some don't ? Please lend me your inputs and suggesstions. Thanks in Advance, Sarika - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can't find ocijdbc9 in java.library.path
In fact, it was something to do with the way I was launching Tomcat. I had : set CATALINA_HOME=D:\...\tomcat4 ... cmd /C %CATALINA_HOME%\bin\startup.bat I changed it to: cmd /C d:\[actual path]\tomcat4\bin\startup.bat Then everything worked. Maybe I am doing something dumb or my BAT file is wrong, but there it is for future reference. -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: 30 July 2003 22:59 To: 'Tomcat Users List' Subject: RE: Can't find ocijdbc9 in java.library.path I'm surprised that classes12.zip would load in the first application. Normally you would have to rename this file classes12.jar. Maybe that's been done in the first, but not the second ? -Original Message- From: Ollier John [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 4:37 PM To: '[EMAIL PROTECTED]' Subject: Can't find ocijdbc9 in java.library.path I have 2 separate directory structures containing two copies of Tomcat 4.0 and two copies of my application. The applications connect to 2 different Oracle databases via JDBC, which exist in the same Oracle Home. I am using Windows 2000 and JDK1.4.1. When I try to start the second application, I get an error saying Tomcat can't find ocijdbc9 in java.library.path. I have checked: 1) that the directory containing ocijdbc9.dll is in the PATH 2) that classes12.zip - the file containing the Oracle JDBC driver is the right one for the release of Oracle we are using and that it is in CATALINA_HOME\common\lib 3) I can write a test class that runs on the command line and connects to the database 4) I have some debug code that prints out result of System.getProperty(java.library.path); and that includes the directory containing ocijdbc9.dll Does anyone have any idea of what's going wrong? Thanks in advance John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** This email is from Capula Ltd (Registered No 00953504 England). Please visit our Website at www.capula.co.uk Capula - doing IT for you LEGAL NOTICE The information contained in this e-mail and any files transmitted with it are confidential, may be privileged and are intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient any disclosure, copying, retransmission, distribution, dissemination, action taken or omitted to be taken in reliance upon this e-mail is strictly prohibited and may be unlawful. If you have received this communication in error please notify the sender by e-mail or by telephone on +44(0)1785 827000, delete it from your system and destroy any copies of it. Furthermore, the content of this e-mail is the personal view of the sender and does not necessarily represent the advice, views or opinion of Capula Ltd. In particular (but not by way of limitation) Capula Ltd disclaims all responsibility and accepts no liability for any e-mails that are defamatory, offensive, racist or in any other way are in breach of any third party's rights, including breach of confidence, privacy or other rights. Please note that users should have no expectation that any information they transmit or receive over Capula Ltd facilities or stored on Capula Ltd computers is or will remain private, and Capula Ltd reserves the right to review these records. Capula Ltd reserves the right to intercept, monitor and record this e-mail. Please note that e-mails from Capula Ltd pass through a virus checker but e-mails can be intercepted or affected by different viruses. No warranties or assurance are made in relation to the safety and content of this email and any attachments and no liability is accepted for any consequences arising from it. The recipient should ensure that the e-mail and attachments (if any) are actually virus free. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem finding class files from Web-inf/classes
hi all, I am using Tomacat4.1.24. My application cannot find unpackaged class files placed in application's Web-inf/classes directory. Should i have to set some classpath explicitly or should it be found by default. Thanx Bopanna. Power of Global Information Access... .. Browser based RCS products. - Visit us at http://www.rcssoft.com/ for an online DEMO of all our web based products. User ID and Password will be available on request. PAYMAN - Payroll Management System TRAXX - Asset Management and Tracking System eSHOP - Online Information and Ordering System SALES STREAM - Sales Force Automation CARE - Call Management System DATA MINER - Query Builder and Report Generator Please write to [EMAIL PROTECTED] or reply to this mail for further details. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to change to Tomcat work directory
You should be able to set this by modifying your server.xml and all context.xml files: Set the workDir attribute for your Host (or for the individual Contexts) http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html Set the directory sttribute for your Access Log Valve http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/valve.html Set the directory sttribute for your File Loggers (you've done this, i think) http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/logger.html If using the Standard Manager for session persistance set the pathname attribute http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/manager.html I think if you set the workDir for the Host all nested Elements will use it, but you'll have to check this assumption :) HTH, Jon Anne Durand wrote: Hello I would like to use Tomcat from a CD on Windows. I have changed the logs directory, but Tomcat doesn't start because the working directory is not writable. Is it possible to change it? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem finding class files from Web-inf/classes
Should be automatic. Try common/classes -Original Message- From: N.B.Bopanna [mailto:[EMAIL PROTECTED] Sent: 31 July 2003 12:27 To: [EMAIL PROTECTED] Subject: Problem finding class files from Web-inf/classes hi all, I am using Tomacat4.1.24. My application cannot find unpackaged class files placed in application's Web-inf/classes directory. Should i have to set some classpath explicitly or should it be found by default. Thanx Bopanna. Power of Global Information Access... .. Browser based RCS products. - Visit us at http://www.rcssoft.com/ for an online DEMO of all our web based products. User ID and Password will be available on request. PAYMAN - Payroll Management System TRAXX - Asset Management and Tracking System eSHOP - Online Information and Ordering System SALES STREAM - Sales Force Automation CARE - Call Management System DATA MINER - Query Builder and Report Generator Please write to [EMAIL PROTECTED] or reply to this mail for further details. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem finding class files from Web-inf/classes
Putting the classes in packages will solve the problem, theres no good reason to use unpackaged classes -Original Message- From: Stuart MacPherson [mailto:[EMAIL PROTECTED] Sent: 31 July 2003 13:00 To: 'Tomcat Users List' Subject: RE: Problem finding class files from Web-inf/classes Should be automatic. Try common/classes -Original Message- From: N.B.Bopanna [mailto:[EMAIL PROTECTED] Sent: 31 July 2003 12:27 To: [EMAIL PROTECTED] Subject: Problem finding class files from Web-inf/classes hi all, I am using Tomacat4.1.24. My application cannot find unpackaged class files placed in application's Web-inf/classes directory. Should i have to set some classpath explicitly or should it be found by default. Thanx Bopanna. Power of Global Information Access... .. Browser based RCS products. -- -- - Visit us at http://www.rcssoft.com/ for an online DEMO of all our web based products. User ID and Password will be available on request. PAYMAN - Payroll Management System TRAXX- Asset Management and Tracking System eSHOP - Online Information and Ordering System SALES STREAM - Sales Force Automation CARE - Call Management System DATA MINER - Query Builder and Report Generator Please write to [EMAIL PROTECTED] or reply to this mail for further details. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cookie problem max age problem - Best practice to solve it
From: Jose Euclides da Silva Junior - DATAPREVRJ Subject: Cookie problem max age problem - Best practice to solve it this question is very important to me. My application works with an external authentication app ( like a plugin).When the user is logged, a browser cookie is created. The problem stays whenever the user asks for a logout process and the external app tries to kill its cookie (created before by the app), probably setting cookie's max age to 0, i guess. But TomCat doesnt know that this cookie is already killed, because it just fetch the name and value. So, i would like any tips about best practice on solving this kind of problem. Cookie exchanges fall into one of two categories: - what the server sends to the client - what the client sends back to the server Tomcat wouldn't fetch the value; the client's browser sends it. Setting the max age of a cookie to zero is the proper way to delete a cookie. When doing the deletion, are you sure that the name, domain, and path values are identical to the ones used when the cookie was initially set? -- Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem building Tomcat Connector mod_jk2.so
From: Clive Luk clive () ilanet ! net ! au Subject: RE: Problem building Tomcat Connector mod_jk2.so But one the I found is the could be a problem of something else. When I re-compile apache. I found that it doesn't create any .so file at all under $APACHE_HOME/modules. Could anyone tell me why I can't create any of those .so file? Am I missing something? Thanks in advance. With 1.3.x, one needs to tell configure which modules should be built as shared libraries, via the --enable-shared flag. (For example, --enable-shared=max builds all modules as .so's). Your modules may be being linked into the server directly. httpd -l should list the ones that are compiled in. (Caveat: that's the way 1.3.x does it; 2.0 may be different. Try configure --help, and httpd -h if those flags don't work out for you). -- Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat + mod_jk
OK, but where's mod_jk.conf? That's the critical file! John v.siguier wrote: Following are my config files (my new application is called geode): httpd.conf : - ServerRoot C:/Apache/Apache2 PidFile logs/httpd.pid Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 IfModule mpm_winnt.c ThreadsPerChild 250 MaxRequestsPerChild 0 /IfModule Listen 8081 LoadModule access_module modules/mod_access.so LoadModule actions_module modules/mod_actions.so LoadModule alias_module modules/mod_alias.so LoadModule asis_module modules/mod_asis.so LoadModule auth_module modules/mod_auth.so LoadModule autoindex_module modules/mod_autoindex.so LoadModule cgi_module modules/mod_cgi.so LoadModule dir_module modules/mod_dir.so LoadModule env_module modules/mod_env.so LoadModule imap_module modules/mod_imap.so LoadModule include_module modules/mod_include.so LoadModule isapi_module modules/mod_isapi.so LoadModule log_config_module modules/mod_log_config.so LoadModule mime_module modules/mod_mime.so LoadModule negotiation_module modules/mod_negotiation.so LoadModule setenvif_module modules/mod_setenvif.so LoadModule userdir_module modules/mod_userdir.so LoadModule jk_module modules/mod_jk-2.0.43.dll ServerAdmin [EMAIL PROTECTED] ServerName toto.tata.com:8081 UseCanonicalName Off DocumentRoot C:/Apache/Apache2/htdocs Directory / Options FollowSymLinks AllowOverride None /Directory Directory C:/Apache/Apache2/htdocs Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all /Directory UserDir My Documents/My Website DirectoryIndex index.html index.html.var AccessFileName .htaccess Files ~ ^\.ht Order allow,deny Deny from all /Files TypesConfig conf/mime.types DefaultType text/plain IfModule mod_mime_magic.c MIMEMagicFile conf/magic /IfModule HostnameLookups Off ... ServerTokens Full ServerSignature On Alias /icons/ C:/Apache/Apache2/icons/ Directory C:/Apache/Apache2/icons Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all /Directory AliasMatch ^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ C:/Apache/Apache2/manual$1 Directory C:/Apache/Apache2/manual Options Indexes AllowOverride None Order allow,deny Allow from all Files *.html SetHandler type-map /Files SetEnvIf Request_URI ^/manual/de/ prefer-language=de SetEnvIf Request_URI ^/manual/en/ prefer-language=en SetEnvIf Request_URI ^/manual/fr/ prefer-language=fr SetEnvIf Request_URI ^/manual/ja/ prefer-language=ja SetEnvIf Request_URI ^/manual/ko/ prefer-language=ko SetEnvIf Request_URI ^/manual/ru/ prefer-language=ru RedirectMatch 301 ^/manual(?:/(de|en|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2 /Directory ScriptAlias /cgi-bin/ C:/Apache/Apache2/cgi-bin/ Directory C:/Apache/Apache2/cgi-bin AllowOverride None Options None Order allow,deny Allow from all /Directory IndexOptions FancyIndexing VersionSort AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip ... AddType application/x-tar .tgz AddType image/x-icon .ico AddHandler type-map var IfModule mod_ssl.c Include conf/ssl.conf /IfModule Include c:/jakarta-tomcat-4-1-24/conf/auto/mod_jk.conf server.xml : -- Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=c:/apache/Apache2/modules/mod_jk-2.0.43.dll / Listener className=org.apache.catalina.mbeans.ServerLifecycleListener descriptors=/com/fnac/geode/mbeans/mbean-descriptor.xml debug=0 jsr77Names=false/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved/Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams Resource name=jdbc/RealmDatasource type=javax.sql.DataSource scope=Shareable/ ResourceParams name=jdbc/RealmDatasource parameter nameusername/name valueadmin/value /parameter parameter namepassword/name
Re: Apache2 + Tomcat on different machines
Yes, this is easily done. If using mod_jk.so, then change the .host parameter in workers.properties to be the IP address of the machine where Tomcat is installed. That is the only change from having Apache and Tomcat on the same machine. I don't use mod_jk2.so, so I can't speak to that environment. John Milan Petran wrote: Hi, I got one basic question: is it possible to run HTTP server with redirector plugin (Apache2) AND application server (Tomcat) on a separate physical machines? Eg. Apache in DMZ and Tomcat in another zone or inranet. Do you have a real experience with this? How must be set up Apache (home dir, plugin settings...) how must be set up Tomcat running on a different machine? Thanx for reply Milan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat not working
Greetings, I have made some kinda change but I can't figure out what I did wrong. I've attached a copy of my server.xml . This site is http://gdttest.mgnetwork.com:8080/AdWebster Can someone look to see if there's something wrong with my server.xml file? Thanks, Bobbie Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
File cannot be download with security-constraint...
Hi, I have a serlvet that is used to download a file to the client. I am using Tomcat 4.1.24, with IE6. All is fine when no security-constraint is applied in the deployment descriptor, but when I introduce such a constraint the file cannot be downloaded. I recieve the error: Internet Explorer cannot download servlet?d=file.pdf from localhost. My code to download is: try { String filename = spec1.pdf; String downloadType = application/pdf; response.setContentType(downloadType+; name=\+filename+\) ; File file = new File(/ + filename); FileInputStream in = new FileInputStream(file); response.setContentLength((int)file.length()); byte[] buf = new byte[4 * 1024]; // 4K buffer int bytesRead; while ((bytesRead = in.read(buf)) != -1) { out.write(buf, 0, bytesRead); } } finally { if (in != null) in.close(); } I found some references to setting the content-dispostion header however setting this did not seem to solve the problem: response.setHeader(Content-Disposition,inline; filename=\ + filename + \;); Any ideas/solutions would be greatly apprieciated. Cheers Rob Tomlin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: File cannot be download with security-constraint...
ah the old IE + SSL + cacheing problem ;) Try adding: final String userAgent = request.getHeader(user-agent); if (response.containsHeader(Pragma) userAgent!=null userAgent.toUpperCase().indexOf(MSIE)-1) { response.setHeader(Pragma, public); } Solved it for us. Jon Rob Tomlin wrote: Hi, I have a serlvet that is used to download a file to the client. I am using Tomcat 4.1.24, with IE6. All is fine when no security-constraint is applied in the deployment descriptor, but when I introduce such a constraint the file cannot be downloaded. I recieve the error: Internet Explorer cannot download servlet?d=file.pdf from localhost. My code to download is: try { String filename = spec1.pdf; String downloadType = application/pdf; response.setContentType(downloadType+; name=\+filename+\) ; File file = new File(/ + filename); FileInputStream in = new FileInputStream(file); response.setContentLength((int)file.length()); byte[] buf = new byte[4 * 1024]; // 4K buffer int bytesRead; while ((bytesRead = in.read(buf)) != -1) { out.write(buf, 0, bytesRead); } } finally { if (in != null) in.close(); } I found some references to setting the content-dispostion header however setting this did not seem to solve the problem: response.setHeader(Content-Disposition,inline; filename=\ + filename + \;); Any ideas/solutions would be greatly apprieciated. Cheers Rob Tomlin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Hanging problem with TC 4.4.1.24
Howdy, And thank you for posting the root cause and solution. Yoav Shapira Millennium ChemInformatics -Original Message- From: Sebastien Dagnicourt [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 4:15 AM To: 'Tomcat Users List' Subject: RE: Hanging problem with TC 4.4.1.24 Ok, after searching more, I find the cause of the problem. The mysqld daemon didn't stop correctly, so the application (via tomcat) can't re-connect to the database and can't start. After killing all mysqld daemons, application restart succesfully. Thanks for answers all, Sébastien. -Message d'origine- De : Sebastien Dagnicourt [mailto:[EMAIL PROTECTED] Envoyé : Thursday, July 31, 2003 9:39 AM À : 'Tomcat Users List' Objet : RE: Hanging problem with TC 4.4.1.24 Yes, I moved it to /tmp just in case :) -Message d'origine- De : Jan Behrens [mailto:[EMAIL PROTECTED] Envoyé : Thursday, July 31, 2003 9:37 AM À : Tomcat Users List Objet : RE: Hanging problem with TC 4.4.1.24 Hi Sebastian, have you deleted the contents of the CATALINA_HOME/work dir? There should be a folder called Standalone (is that is how you setup Tomcat, at least). Tomcat stores cached data in same folder. Might be worth a try, please make a backup first though, just in case... Regards, Jan -Original Message- From: Sebastien Dagnicourt [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 8:15 AM To: '[EMAIL PROTECTED]' Subject: Hanging problem with TC 4.4.1.24 Hello, I have a little problem with Tomcat and startup/shutdown. The last nigth Tomcat don't stop correctly and the shutdown script don't kill the last java/tomcat process. This morning, I started tomcat and now the application doesn't work anymore. In fact, we can't access to it. I check the logs, and I see that the server does nothing ... as if there was something in a cache or in a spool file (I reached some static file and I see that what Tomcat send to the browser is not the real file on disk ... may be tomcat or the application got a cache ?). The only solution i had when it occured was to reboot the server ... but now I can't. I wrote to the mailling list of the application but no one had the solution. Any ideas ? Technical informations : Linux: RedHat 9 Tomcat: 4.4.1.24 Mysql: 3.23.54 Java: J2sdk 1.4.1_02 Application : OpenCms 5.0 Best regards, Sébastien Dagnicourt. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help with Tomcat 4.1.24
Howdy, You can search the archives on the use of symlinks or the tldScanJar exception for more information: this comes up a lot. What I suggest is to stick with your current system: have a central location for your tools, preferably under version control, and copy jars out of it into the WEB-INF/lib directories when deploying (this copy is done by an Ant script I assume). Yes, this means two hard copies rather than a link, but it keeps your webapp self-contained and helps ensure portability for platforms/servers that don't support symbolic links. Yoav Shapira Millennium ChemInformatics -Original Message- From: Sarika Inamdar [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 6:31 AM To: [EMAIL PROTECTED] Subject: Help with Tomcat 4.1.24 Hi All, We have migrated to tomcat 4.1.24 from tomcat 3.2.23. Thanks to the tomcat-user list, we were able to deploy the tomcat successfully :-) We have one issue however !!! The tomcat 4.1.24, requires that we place all the jars which is used by the jsp's under TOMCAT_HOME/webapps/WEB-INF/lib directory. In our deployment, we use lot of 3rd party software like AdventSNMP jar, tibco jar and our own application jar. These jars are already present under our tools directory. But with 4.1.24 migration, we have to place all these jars under WEB-INF/lib. This will destroy our directory structure in case we want to mv all of them. To avoid this, we created soft links for the required jars under /WEB-INF/lib. The problem is tomcat server is able to DEPLOY some of the jars, and is cribbing for some jars. For Example, for AdventNetSNMP jar, tomcat throws the following error : 2003-07-31 16:07:25 ContextConfig[] Exception processing JAR at resource path /WE B-INF/lib/AdventNetSnmp.jar javax.servlet.ServletException: Exception processing JAR at resource path /WEB-IN F/lib/AdventNetSnmp.jar at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.jav a:930) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:8 68) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647 ) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig .java:243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycle Support.java:166) Is it possible that some jars get deployed and some don't ? Please lend me your inputs and suggesstions. Thanks in Advance, Sarika - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache2 + Tomcat on different machines
Thanx, I've already solved this - for 2 physical machines, both W2k server, with IIS as HTTP :-) serving static content and Tomcat serving JPSs and servlets on another machine. It takes a few moments to configure and it seems working fine. :-) The problem I had, was to find a sentence saying clearly it can be done before taking some testing. But now I can say: it can be done easily :-) Milan -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 2:46 PM To: Tomcat Users List Subject: Re: Apache2 + Tomcat on different machines Yes, this is easily done. If using mod_jk.so, then change the .host parameter in workers.properties to be the IP address of the machine where Tomcat is installed. That is the only change from having Apache and Tomcat on the same machine. I don't use mod_jk2.so, so I can't speak to that environment. John Milan Petran wrote: Hi, I got one basic question: is it possible to run HTTP server with redirector plugin (Apache2) AND application server (Tomcat) on a separate physical machines? Eg. Apache in DMZ and Tomcat in another zone or inranet. Do you have a real experience with this? How must be set up Apache (home dir, plugin settings...) how must be set up Tomcat running on a different machine? Thanx for reply Milan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How do I change servlet contexts???
Howdy, Why not just do RequestDispatcher rd = getServletContext().getRequestDispatcher(/lookup.html); I.e. don't have the explicit getContext(/example) call in the middle as you're already in that context. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 6:56 PM To: [EMAIL PROTECTED] Subject: How do I change servlet contexts??? Tomcat: 4.1.24 I have a war file whose base context is /example. Within that context there is an HTTP servlet (GuestServlet) with a servlet mapping that captures everything under /example/guest/*. Within GuestServlet.class I create a RequestDispatcher to forward control to an HTML page (lookup.html) under the base context (/example). The problem is when control is forwarded to /example/lookup.html it does not work. The context remains unchanged at /example/guest and so it actually attempts to display /example/guest/lookup.html when I need /example/lookup.html. I use the following code within GuestServlet.java to try and display lookup.html under the base context /example. Will someone please tell me what I am doing wrong? public class GuestServlet extends HttpServlet { ... protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { ... RequestDispatcher rd = null; // Dispatch to next url ServletContext cntxt = context.getContext(/example); rd = cntxt.getRequestDispatcher(/lookup.html); rd.forward(request, response); ... } ... } __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Way to cleanup *before* session terminates ?
Howdy, What about the HttpSessionActivationListener's sessionWillPassivate() event? Yoav Shapira Millennium ChemInformatics -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 4:18 AM To: [EMAIL PROTECTED] Subject: Re: Way to cleanup *before* session terminates ? Sorry Charlie (ok, I couldn't resist :), but there isn't a way to do this in Tomcat 4.x and lower. However, the (current draft of the) 2.4 Servlet- Spec has changed the behavior, and so in Tomcat 5.x you can define a HttpSessionListener that will get called before the session is invalidated. Charlie Toohey [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have been looking for a way to execute some code when a session is terminating due to invalidation or expiration, but before the session has actually been terminated. I know that implementing HttpSessionBindingListener and binding my object into the session will allow me to execute code in my valueUnbound method, but the notifcation is sent after the session has been invalidatd or expired. But is there any way to be notified that the session is about to terminate before it actually has been invalidated or expired ? - Charlie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: File cannot be download with security-constraint...
ah the old IE + SSL + cacheing problem ;) I am not using SSL, I haveadding the suggested code it does not solve the problem... Cheers Rob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What is that maximum file size tomcat can serve?
Howdy, This would almost definitely be an OS/JDK limit somewhere along the line. Tomcat will just stream the file, so its size is not really an issue AFAIK. Yoav Shapira Millennium ChemInformatics -Original Message- From: Lee Peik Feng [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 11:27 PM To: Tomcat Users List Subject: What is that maximum file size tomcat can serve? Hi, I have some mpeg file larger than 2GB and tomcat fail to serve these file. What is that maximum file size tomcat can serve? Is there any other limitation beside OS issue? Where can I find more info regarding this issue? Thanks. Regards, Peik Feng - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat not working
Howdy, My mail reader doesn't like your attachment. In general, instead of posting attachments post the relevant bits from the file. In this case, since you have no idea what you did wrong, why not just start with a new installation of tomcat? Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 8:52 AM To: [EMAIL PROTECTED] Subject: Tomcat not working Greetings, I have made some kinda change but I can't figure out what I did wrong. I've attached a copy of my server.xml . This site is http://gdttest.mgnetwork.com:8080/AdWebster Can someone look to see if there's something wrong with my server.xml file? Thanks, Bobbie Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JNDIRealm: Authentication Failing
My appologies for taking so long to reply. Thank you very much for your input! Hayo Schmidt writes: Is 'mail' the naming value? This means, if you export to an ldif file you should find a line dn: [EMAIL PROTECTED],ou=People,dc=tritus,dc=ca As you can see from the log snipped below: 2003-07-27 13:44:06 JNDIRealm[Standalone]: validating credentials by binding as the user 2003-07-27 13:44:06 JNDIRealm[Standalone]: binding as uid=adam,ou=People,dc=tritus,dc=ca 2003-07-27 13:44:06 JNDIRealm[Standalone]: bind attempt failed JNDIRealm is attempting to bind as 'uid=adam,ou=People,dc=tritus,dc=ca', which is correct and exists. I can bind as this user using the LDAP CLI tools. Since it is a BIND, the format of userPassword shouldn't matter. Thanks for your help, A. -- Adam Sherman Tritus CG Inc. http://www.tritus.ca/ +1 (613) 797-6819 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't find ocijdbc9 in java.library.path
just a comment: i use oracle8i and jdbc drivers as well, and i was under the impression that classes12.zip is not compatible with jdk 1.4 (but rather 1.2). - Original Message - From: Ollier John [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 5:37 PM Subject: Can't find ocijdbc9 in java.library.path I have 2 separate directory structures containing two copies of Tomcat 4.0 and two copies of my application. The applications connect to 2 different Oracle databases via JDBC, which exist in the same Oracle Home. I am using Windows 2000 and JDK1.4.1. When I try to start the second application, I get an error saying Tomcat can't find ocijdbc9 in java.library.path. I have checked: 1) that the directory containing ocijdbc9.dll is in the PATH 2) that classes12.zip - the file containing the Oracle JDBC driver is the right one for the release of Oracle we are using and that it is in CATALINA_HOME\common\lib 3) I can write a test class that runs on the command line and connects to the database 4) I have some debug code that prints out result of System.getProperty(java.library.path); and that includes the directory containing ocijdbc9.dll Does anyone have any idea of what's going wrong? Thanks in advance John ** This email is from Capula Ltd (Registered No 00953504 England). Please visit our Website at www.capula.co.uk Capula - doing IT for you LEGAL NOTICE The information contained in this e-mail and any files transmitted with it are confidential, may be privileged and are intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient any disclosure, copying, retransmission, distribution, dissemination, action taken or omitted to be taken in reliance upon this e-mail is strictly prohibited and may be unlawful. If you have received this communication in error please notify the sender by e-mail or by telephone on +44(0)1785 827000, delete it from your system and destroy any copies of it. Furthermore, the content of this e-mail is the personal view of the sender and does not necessarily represent the advice, views or opinion of Capula Ltd. In particular (but not by way of limitation) Capula Ltd disclaims all responsibility and accepts no liability for any e-mails that are defamatory, offensive, racist or in any other way are in breach of any third party's rights, including breach of confidence, privacy or other rights. Please note that users should have no expectation that any information they transmit or receive over Capula Ltd facilities or stored on Capula Ltd computers is or will remain private, and Capula Ltd reserves the right to review these records. Capula Ltd reserves the right to intercept, monitor and record this e-mail. Please note that e-mails from Capula Ltd pass through a virus checker but e-mails can be intercepted or affected by different viruses. No warranties or assurance are made in relation to the safety and content of this email and any attachments and no liability is accepted for any consequences arising from it. The recipient should ensure that the e-mail and attachments (if any) are actually virus free. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Rooting request to one or an other webapp
Howdy, Look at the Switching between releases during runtime thread, and I actually think Mr. Fiala ended up posting his complete solution on his web page. Yoav Shapira Millennium ChemInformatics -Original Message- From: Marc Guillemot [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 4:57 AM To: Tomcat Users List Subject: Re: Rooting request to one or an other webapp Hi Yoav, thanks for the info. Could you give me a link or the keywords permitting to find the previous discussions you mentioned on this subject? I've search for that but I didn't found anything. I guess that I've looked for the bad terms. Marc. - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] Newsgroups: gmane.comp.jakarta.tomcat.user Sent: Wednesday, July 30, 2003 3:17 PM Subject: RE: Rooting request to one or an other webapp Howdy, does someone know a way to catch a request and to forward it to one or an other webapp according to some runtime settings? The idea is to be able at runtime to smoothly add a webapp, set it as the default, and to remove the one that was the default when it has no active session anymore. Something similar to this has been requested and discussed several times (it's generally a bad idea), so you can search this list's archives for more information. Broadly speaking: - Let's call webapp1 the one to be removed - Let's call webapp2 the one to be added You would need: - A session listener in webapp1 maintaining a session count, and having a public static int getSessionCount() method. - A filter in webapp1 mapped to /* which consults the session count each time and if 0 (or whatever other runtime setting you choose, e.g. a context param), forwards requests to webapp2 - Maybe an admin JSP (or some other means) in webapp1 to set the runtime settings for the filter - Once you see the above happening, you can remove webapp1 via the manager webapp Of course, there are caveats: - Initially the session count for webapp1 will be zero, so the filter will forward, unless you also have a runtime setting for the filter that says don't forward - If you want to remove webapp1 programatically, you will need some classes to be in the common/lib repository, not web-inf/lib, as these classes will need to access tomcat internals (making them non-portable). Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ERR] Re: Best Tomcat Book, Recommendations???
Transmit Report: To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED]) ---BeginMessage--- Most of the Wrox titles have been picked up by Wiley and Apress (Wrox liquidated earlier this year), so its possible the books will be closer to what you prefer when the second printing comes around. John Collins, Jim wrote: I wish Wrox would bind the books the same way as O'Reilly though. -Original Message- From: epyonne [mailto:[EMAIL PROTECTED] Sent: 29 July 2003 13:43 To: Tomcat Users List Subject: Re: Best Tomcat Book, Recommendations??? You are so wrong about Wrox books. Most of them are very good and moderately priced. The Professional Tomcat book from Wrox is an excellent book. Of course, there are some discrepancies. But hey, there is no writer on earth can catch up 100% with the fast pace of software development. The Professional Tomcat book is the best you can get out there. By the way, I also bought the JBoss book from Wrox and it is very good as well. =) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ---End Message---
Tomcat/SOAP problems with JCE
Hi I am facing this problem with Tomcat. I have tomcat 4.1.24 and JDK1.4.1. I have my class which is hosted as a SOAP service inside Tomcat. This class, when invoked, reads a properties file and reads an encoded userid/password. then it uses Basic decoding to decode this. this works fine on the command line(outside Tomcat). inside Tomcat it gives a bad padding exception i have all the JCE jars in the classpath Thanks Giridhar M 603-799-0097 Cell 732-452-0850 Home _ Real time news. Connection to the Internet. http://server1.msn.co.in/sp03/gprs/index.asp On your mobile now! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Does tomcat 4.1.24 come with conf files?
Hey, I have decided to start over so I went to the Jakarta website and downloaded tomcat 4.1.24 and the conf directory is empty - is it suppose to be this way? Thanks, Bobbie Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem finding class files from Web-inf/classes
And of course, Web-inf should be WEB-INF -Original Message- From: N.B.Bopanna [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 6:27 AM To: [EMAIL PROTECTED] Subject: Problem finding class files from Web-inf/classes hi all, I am using Tomacat4.1.24. My application cannot find unpackaged class files placed in application's Web-inf/classes directory. Should i have to set some classpath explicitly or should it be found by default. Thanx Bopanna. Power of Global Information Access... .. Browser based RCS products. -- --- Visit us at http://www.rcssoft.com/ for an online DEMO of all our web based products. User ID and Password will be available on request. PAYMAN - Payroll Management System TRAXX- Asset Management and Tracking System eSHOP - Online Information and Ordering System SALES STREAM - Sales Force Automation CARE - Call Management System DATA MINER - Query Builder and Report Generator Please write to [EMAIL PROTECTED] or reply to this mail for further details. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does tomcat 4.1.24 come with conf files?
No. Not sure what file you got, but a full distribution of Tomcat (not LE) has a number of files in the conf directory. Remember to use GNU tar. John [EMAIL PROTECTED] wrote: Hey, I have decided to start over so I went to the Jakarta website and downloaded tomcat 4.1.24 and the conf directory is empty - is it suppose to be this way? Thanks, Bobbie Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Does tomcat 4.1.24 come with conf files?
How do you remove yourself from this mailing list? -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 10:02 AM To: Tomcat Users List Subject: Re: Does tomcat 4.1.24 come with conf files? No. Not sure what file you got, but a full distribution of Tomcat (not LE) has a number of files in the conf directory. Remember to use GNU tar. John [EMAIL PROTECTED] wrote: Hey, I have decided to start over so I went to the Jakarta website and downloaded tomcat 4.1.24 and the conf directory is empty - is it suppose to be this way? Thanks, Bobbie Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: File cannot be download with security-constraint...
ah the old IE + SSL + cacheing problem ;) This seems to solve the problem: response.setHeader(Cache-Control, public); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: File cannot be download with security-constraint...
Cool. Was just writing a response about the headers tomcat adds when using a security restraint. But you've already worked it out... I've only seen the problem when using IE with SSL + security constraint but i guess it's more of a general problem. :( Jon Rob Tomlin wrote: ah the old IE + SSL + cacheing problem ;) This seems to solve the problem: response.setHeader(Cache-Control, public); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk
I have mod_jk working with two workers and a loadbalancer. when i use http://192.168.168.45:8080/rtizon the browser completes the line with /index.jsp. Same is true with the other worker and the correct page comes up when i use http://192.168.168.45/rtizon i get a page not found error? and when I complete the url with http://192.168.168.45/rtizon/index.jsp i get the correct page My JkMount entries are JkMount /*.jsp loadbalancer JkMount /rtizon loadbalancer JkMount /rtizon/*.jsp loadbalancer Is this the expected behaviour or should apache complete the url as tomcat does cause it is making the call to tomcat? And, do I need the second JkMount /rtizon loadbalancer? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat + mod_jk
The generated jakarta-tomcat-4-1-24\conf\auto\mod_jk.conf : ## Auto generated on Thu Jul 31 15:51:00 CEST 2003## IfModule !mod_jk.c LoadModule jk_module c:/apache/Apache2/modules/mod_jk-2.0.43.dll /IfModule JkWorkersFile C:/jakarta-tomcat-4-1-24/conf/jk/workers.properties JkLogFile C:/jakarta-tomcat-4-1-24/logs/mod_jk.log JkLogLevel emerg VirtualHost localhost ServerName localhost localhost:/examples # Static files Alias /examples C:/jakarta-tomcat-4-1-24/webapps/examples Directory C:/jakarta-tomcat-4-1-24/webapps/examples Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /examples/WEB-INF/* AllowOverride None deny from all /Location Location /examples/META-INF/* AllowOverride None deny from all /Location # # Use Directory too. On Windows, Location doesn't work unless case matches # Directory C:/jakarta-tomcat-4-1-24/webapps/examples/WEB-INF/ AllowOverride None deny from all /Directory Directory C:/jakarta-tomcat-4-1-24/webapps/examples/META-INF/ AllowOverride None deny from all /Directory JkMount /examples/jsp/security/protected/j_security_check ajp13 JkMount /examples/snoop ajp13 JkMount /examples/CompressionTest ajp13 JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 JkMount /examples/servletToJsp ajp13 JkMount /examples/SendMailServlet ajp13 localhost:/webdav # Static files Alias /webdav C:/jakarta-tomcat-4-1-24/webapps/webdav Directory C:/jakarta-tomcat-4-1-24/webapps/webdav Options Indexes FollowSymLinks DirectoryIndex index.jsp index.html index.htm /Directory # Deny direct access to WEB-INF and META-INF # Location /webdav/WEB-INF/* AllowOverride None deny from all /Location Location /webdav/META-INF/* AllowOverride None deny from all /Location # # Use Directory too. On Windows, Location doesn't work unless case matches # Directory C:/jakarta-tomcat-4-1-24/webapps/webdav/WEB-INF/ AllowOverride None deny from all /Directory Directory C:/jakarta-tomcat-4-1-24/webapps/webdav/META-INF/ AllowOverride None deny from all /Directory JkMount /webdav/*.jsp ajp13 localhost:/tomcat-docs # Static files Alias /tomcat-docs C:/jakarta-tomcat-4-1-24/webapps/tomcat-docs Directory C:/jakarta-tomcat-4-1-24/webapps/tomcat-docs Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /tomcat-docs/WEB-INF/* AllowOverride None deny from all /Location Location /tomcat-docs/META-INF/* AllowOverride None deny from all /Location # # Use Directory too. On Windows, Location doesn't work unless case matches # Directory C:/jakarta-tomcat-4-1-24/webapps/tomcat-docs/WEB-INF/ AllowOverride None deny from all /Directory Directory C:/jakarta-tomcat-4-1-24/webapps/tomcat-docs/META-INF/ AllowOverride None deny from all /Directory JkMount /tomcat-docs/*.jsp ajp13 localhost:/manager # Static files Alias /manager C:/jakarta-tomcat-4-1-24/webapps/../server/webapps/manager Directory C:/jakarta-tomcat-4-1-24/webapps/../server/webapps/manager Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /manager/WEB-INF/* AllowOverride None deny from all /Location Location /manager/META-INF/* AllowOverride None deny from all /Location # # Use Directory too. On Windows, Location doesn't work unless case matches # Directory C:/jakarta-tomcat-4-1-24/webapps/../server/webapps/manager/WEB-INF/ AllowOverride None deny from all /Directory Directory C:/jakarta-tomcat-4-1-24/webapps/../server/webapps/manager/META-INF/ AllowOverride None deny from all /Directory JkMount /manager/html/* ajp13 JkMount /manager/resources ajp13 JkMount /manager/undeploy ajp13 JkMount /manager/sessions ajp13 JkMount /manager/serverinfo ajp13 JkMount /manager/reload ajp13 JkMount /manager/start ajp13 JkMount /manager/*.jsp ajp13 JkMount /manager/list ajp13 JkMount /manager/stop ajp13 JkMount /manager/deploy ajp13 JkMount /manager/roles ajp13 JkMount /manager/remove
Re: mod_jk
This came up yesterday. According to one poster, putting DirectoryIndex index.jsp in your httpd.conf VirtualHost block would cause Apache to translate http://192.168.168.45/rtizon; into http://192.168.168.45/rtizon/index.jsp;. However, it doesn't work at all for me, never has, and I have always understood it to be a limitation of using mod_jk (and possibly mod_jk2). What happens when you try http://192.168.168.45/rtizon/;? John Ray Madigan wrote: I have mod_jk working with two workers and a loadbalancer. when i use http://192.168.168.45:8080/rtizon the browser completes the line with /index.jsp. Same is true with the other worker and the correct page comes up when i use http://192.168.168.45/rtizon i get a page not found error? and when I complete the url with http://192.168.168.45/rtizon/index.jsp i get the correct page My JkMount entries are JkMount /*.jsp loadbalancer JkMount /rtizon loadbalancer JkMount /rtizon/*.jsp loadbalancer Is this the expected behaviour or should apache complete the url as tomcat does cause it is making the call to tomcat? And, do I need the second JkMount /rtizon loadbalancer? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat and Acces Control Lists
I am fairly new to Tomcat and am trying to set up control lists for authentication. I have a site that is mostly static content, .htm and .doc files, but we want to secure them with basic authentication. Ex. Log into site and access is granted to specified directories/files. The key for us is that it must challenge each time the user comes back, so if they bookmark a page, it will require them to authenticate before they are granted access. Can any provide information on how to set up the ACLs and any other suggestions to help me out? Thanks ! Sandy __ Sandy Voellinger Systems Administrator __ LEROS Technologies Corporation 9990 Lee Highway, Suite 500 Fairfax, VA 22030 [EMAIL PROTECTED] __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat + mod_jk
Forgive me, but I've lost track of what this thread is about. What is not happening that you want to see happen, given the configuration files you've posted? What is your question again? John v.siguier wrote: The generated jakarta-tomcat-4-1-24\conf\auto\mod_jk.conf : ## Auto generated on Thu Jul 31 15:51:00 CEST 2003## IfModule !mod_jk.c LoadModule jk_module c:/apache/Apache2/modules/mod_jk-2.0.43.dll /IfModule JkWorkersFile C:/jakarta-tomcat-4-1-24/conf/jk/workers.properties JkLogFile C:/jakarta-tomcat-4-1-24/logs/mod_jk.log JkLogLevel emerg VirtualHost localhost ServerName localhost localhost:/examples # Static files Alias /examples C:/jakarta-tomcat-4-1-24/webapps/examples Directory C:/jakarta-tomcat-4-1-24/webapps/examples Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /examples/WEB-INF/* AllowOverride None deny from all /Location Location /examples/META-INF/* AllowOverride None deny from all /Location # # Use Directory too. On Windows, Location doesn't work unless case matches # Directory C:/jakarta-tomcat-4-1-24/webapps/examples/WEB-INF/ AllowOverride None deny from all /Directory Directory C:/jakarta-tomcat-4-1-24/webapps/examples/META-INF/ AllowOverride None deny from all /Directory JkMount /examples/jsp/security/protected/j_security_check ajp13 JkMount /examples/snoop ajp13 JkMount /examples/CompressionTest ajp13 JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 JkMount /examples/servletToJsp ajp13 JkMount /examples/SendMailServlet ajp13 localhost:/webdav # Static files Alias /webdav C:/jakarta-tomcat-4-1-24/webapps/webdav Directory C:/jakarta-tomcat-4-1-24/webapps/webdav Options Indexes FollowSymLinks DirectoryIndex index.jsp index.html index.htm /Directory # Deny direct access to WEB-INF and META-INF # Location /webdav/WEB-INF/* AllowOverride None deny from all /Location Location /webdav/META-INF/* AllowOverride None deny from all /Location # # Use Directory too. On Windows, Location doesn't work unless case matches # Directory C:/jakarta-tomcat-4-1-24/webapps/webdav/WEB-INF/ AllowOverride None deny from all /Directory Directory C:/jakarta-tomcat-4-1-24/webapps/webdav/META-INF/ AllowOverride None deny from all /Directory JkMount /webdav/*.jsp ajp13 localhost:/tomcat-docs # Static files Alias /tomcat-docs C:/jakarta-tomcat-4-1-24/webapps/tomcat-docs Directory C:/jakarta-tomcat-4-1-24/webapps/tomcat-docs Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /tomcat-docs/WEB-INF/* AllowOverride None deny from all /Location Location /tomcat-docs/META-INF/* AllowOverride None deny from all /Location # # Use Directory too. On Windows, Location doesn't work unless case matches # Directory C:/jakarta-tomcat-4-1-24/webapps/tomcat-docs/WEB-INF/ AllowOverride None deny from all /Directory Directory C:/jakarta-tomcat-4-1-24/webapps/tomcat-docs/META-INF/ AllowOverride None deny from all /Directory JkMount /tomcat-docs/*.jsp ajp13 localhost:/manager # Static files Alias /manager C:/jakarta-tomcat-4-1-24/webapps/../server/webapps/manager Directory C:/jakarta-tomcat-4-1-24/webapps/../server/webapps/manager Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /manager/WEB-INF/* AllowOverride None deny from all /Location Location /manager/META-INF/* AllowOverride None deny from all /Location # # Use Directory too. On Windows, Location doesn't work unless case matches # Directory C:/jakarta-tomcat-4-1-24/webapps/../server/webapps/manager/WEB-INF/ AllowOverride None deny from all /Directory Directory C:/jakarta-tomcat-4-1-24/webapps/../server/webapps/manager/META-INF/ AllowOverride None deny from all /Directory JkMount /manager/html/* ajp13 JkMount /manager/resources ajp13 JkMount /manager/undeploy ajp13 JkMount /manager/sessions ajp13 JkMount /manager/serverinfo ajp13 JkMount /manager/reload ajp13 JkMount /manager/start ajp13
Re: mod_jk
Hi, Just an FYI... I'm looking our JK2 config now and DirectoryIndex is not set with index.jsp. The only thing that I can find is the welcome-file is index.jsp. The application pulls up index.jsp by default when you go to http://host/context/ I don't see any redirects as this application passes everything back to tomcat. -e On Thu, 31 Jul 2003, John Turner wrote: This came up yesterday. According to one poster, putting DirectoryIndex index.jsp in your httpd.conf VirtualHost block would cause Apache to translate http://192.168.168.45/rtizon; into http://192.168.168.45/rtizon/index.jsp;. However, it doesn't work at all for me, never has, and I have always understood it to be a limitation of using mod_jk (and possibly mod_jk2). What happens when you try http://192.168.168.45/rtizon/;? John Ray Madigan wrote: I have mod_jk working with two workers and a loadbalancer. when i use http://192.168.168.45:8080/rtizon the browser completes the line with /index.jsp. Same is true with the other worker and the correct page comes up when i use http://192.168.168.45/rtizon i get a page not found error? and when I complete the url with http://192.168.168.45/rtizon/index.jsp i get the correct page My JkMount entries are JkMount /*.jsp loadbalancer JkMount /rtizon loadbalancer JkMount /rtizon/*.jsp loadbalancer Is this the expected behaviour or should apache complete the url as tomcat does cause it is making the call to tomcat? And, do I need the second JkMount /rtizon loadbalancer? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk
What about http://host/context without the trailing /? John Eric J. Pinnell wrote: Hi, Just an FYI... I'm looking our JK2 config now and DirectoryIndex is not set with index.jsp. The only thing that I can find is the welcome-file is index.jsp. The application pulls up index.jsp by default when you go to http://host/context/ I don't see any redirects as this application passes everything back to tomcat. -e On Thu, 31 Jul 2003, John Turner wrote: This came up yesterday. According to one poster, putting DirectoryIndex index.jsp in your httpd.conf VirtualHost block would cause Apache to translate http://192.168.168.45/rtizon; into http://192.168.168.45/rtizon/index.jsp;. However, it doesn't work at all for me, never has, and I have always understood it to be a limitation of using mod_jk (and possibly mod_jk2). What happens when you try http://192.168.168.45/rtizon/;? John Ray Madigan wrote: I have mod_jk working with two workers and a loadbalancer. when i use http://192.168.168.45:8080/rtizon the browser completes the line with /index.jsp. Same is true with the other worker and the correct page comes up when i use http://192.168.168.45/rtizon i get a page not found error? and when I complete the url with http://192.168.168.45/rtizon/index.jsp i get the correct page My JkMount entries are JkMount /*.jsp loadbalancer JkMount /rtizon loadbalancer JkMount /rtizon/*.jsp loadbalancer Is this the expected behaviour or should apache complete the url as tomcat does cause it is making the call to tomcat? And, do I need the second JkMount /rtizon loadbalancer? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where does index.jsp come from
Greetings, I set up Tomcat again but I'm seeing this page http://gdttest.mgnetwork.com:8080/index.jsp - which is good except I can't figure out what to uncomment b/c there is no index.jsp in my webapps folder?? Thanks, Bobbie Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk
As you mentioned DirectoryIndex index.jsp has no effect. When i use the url http://192.168.168.45/rtizon; i get the same old page not found error If I change JkMount /rtizon loadbalancer to JkMount /rtizon/ loadbalancer it workes - ie http://192.168.168.45/rtizon; completes with /index.jsp and displays the correct page and http://192.168.168.45/rtizon/; workes the same way. I guess you have to add the final / in the JkMount definition to ensure that mod_jk thinks it is a directory you are asking for. Thanks -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 7:24 AM To: Tomcat Users List Subject: Re: mod_jk This came up yesterday. According to one poster, putting DirectoryIndex index.jsp in your httpd.conf VirtualHost block would cause Apache to translate http://192.168.168.45/rtizon; into http://192.168.168.45/rtizon/index.jsp;. However, it doesn't work at all for me, never has, and I have always understood it to be a limitation of using mod_jk (and possibly mod_jk2). What happens when you try http://192.168.168.45/rtizon/;? John Ray Madigan wrote: I have mod_jk working with two workers and a loadbalancer. when i use http://192.168.168.45:8080/rtizon the browser completes the line with /index.jsp. Same is true with the other worker and the correct page comes up when i use http://192.168.168.45/rtizon i get a page not found error? and when I complete the url with http://192.168.168.45/rtizon/index.jsp i get the correct page My JkMount entries are JkMount /*.jsp loadbalancer JkMount /rtizon loadbalancer JkMount /rtizon/*.jsp loadbalancer Is this the expected behaviour or should apache complete the url as tomcat does cause it is making the call to tomcat? And, do I need the second JkMount /rtizon loadbalancer? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where does index.jsp come from
try looking at webaaps/ROOT directory. --- Fabio Moraes [EMAIL PROTECTED] System Engineer Work Force Management System +55 21 3088 9548 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 11:35 To: [EMAIL PROTECTED] Subject: Where does index.jsp come from Greetings, I set up Tomcat again but I'm seeing this page http://gdttest.mgnetwork.com:8080/index.jsp - which is good except I can't figure out what to uncomment b/c there is no index.jsp in my webapps folder?? Thanks, Bobbie Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where does index.jsp come from
$CATALINA_HOME/webapps/ROOT/index.jsp John [EMAIL PROTECTED] wrote: Greetings, I set up Tomcat again but I'm seeing this page http://gdttest.mgnetwork.com:8080/index.jsp - which is good except I can't figure out what to uncomment b/c there is no index.jsp in my webapps folder?? Thanks, Bobbie Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk
works. It doesn't appear, at least on the surface, that they developer did anything special to get it to operate that way. -e On Thu, 31 Jul 2003, John Turner wrote: What about http://host/context without the trailing /? John Eric J. Pinnell wrote: Hi, Just an FYI... I'm looking our JK2 config now and DirectoryIndex is not set with index.jsp. The only thing that I can find is the welcome-file is index.jsp. The application pulls up index.jsp by default when you go to http://host/context/ I don't see any redirects as this application passes everything back to tomcat. -e On Thu, 31 Jul 2003, John Turner wrote: This came up yesterday. According to one poster, putting DirectoryIndex index.jsp in your httpd.conf VirtualHost block would cause Apache to translate http://192.168.168.45/rtizon; into http://192.168.168.45/rtizon/index.jsp;. However, it doesn't work at all for me, never has, and I have always understood it to be a limitation of using mod_jk (and possibly mod_jk2). What happens when you try http://192.168.168.45/rtizon/;? John Ray Madigan wrote: I have mod_jk working with two workers and a loadbalancer. when i use http://192.168.168.45:8080/rtizon the browser completes the line with /index.jsp. Same is true with the other worker and the correct page comes up when i use http://192.168.168.45/rtizon i get a page not found error? and when I complete the url with http://192.168.168.45/rtizon/index.jsp i get the correct page My JkMount entries are JkMount /*.jsp loadbalancer JkMount /rtizon loadbalancer JkMount /rtizon/*.jsp loadbalancer Is this the expected behaviour or should apache complete the url as tomcat does cause it is making the call to tomcat? And, do I need the second JkMount /rtizon loadbalancer? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does tomcat 4.1.24 come with conf files?
[EMAIL PROTECTED] wrote: I have decided to start over so I went to the Jakarta website and downloaded tomcat 4.1.24 and the conf directory is empty - is it suppose to be this way? This is what you will see if you use the un-tar that comes with Solaris. You have to use the GNUtar program to un-tar the file. Try it, and you'll see the /conf stuff. -- Lynn Hollerman. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat + mod_jk
No problem, my question is : I have configured Apache and Tomcat with mod_jk in order to connect them together but now all ressources of my application must be located under Tomcat directory to be founded. As I want to put all static ressources directly under Apache, somebody can tell me what I have to configure in Apache or Tomcat to do this ? Forgive me, but I've lost track of what this thread is about. What is not happening that you want to see happen, given the configuration files you've posted? What is your question again? John v.siguier wrote: The generated jakarta-tomcat-4-1-24\conf\auto\mod_jk.conf : ## Auto generated on Thu Jul 31 15:51:00 CEST 2003## IfModule !mod_jk.c LoadModule jk_module c:/apache/Apache2/modules/mod_jk-2.0.43.dll /IfModule JkWorkersFile C:/jakarta-tomcat-4-1-24/conf/jk/workers.properties JkLogFile C:/jakarta-tomcat-4-1-24/logs/mod_jk.log JkLogLevel emerg VirtualHost localhost ServerName localhost localhost:/examples # Static files Alias /examples C:/jakarta-tomcat-4-1-24/webapps/examples Directory C:/jakarta-tomcat-4-1-24/webapps/examples Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /examples/WEB-INF/* AllowOverride None deny from all /Location Location /examples/META-INF/* AllowOverride None deny from all /Location # # Use Directory too. On Windows, Location doesn't work unless case matches # Directory C:/jakarta-tomcat-4-1-24/webapps/examples/WEB-INF/ AllowOverride None deny from all /Directory Directory C:/jakarta-tomcat-4-1-24/webapps/examples/META-INF/ AllowOverride None deny from all /Directory JkMount /examples/jsp/security/protected/j_security_check ajp13 JkMount /examples/snoop ajp13 JkMount /examples/CompressionTest ajp13 JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 JkMount /examples/servletToJsp ajp13 JkMount /examples/SendMailServlet ajp13 localhost:/webdav # Static files Alias /webdav C:/jakarta-tomcat-4-1-24/webapps/webdav Directory C:/jakarta-tomcat-4-1-24/webapps/webdav Options Indexes FollowSymLinks DirectoryIndex index.jsp index.html index.htm /Directory # Deny direct access to WEB-INF and META-INF # Location /webdav/WEB-INF/* AllowOverride None deny from all /Location Location /webdav/META-INF/* AllowOverride None deny from all /Location # # Use Directory too. On Windows, Location doesn't work unless case matches # Directory C:/jakarta-tomcat-4-1-24/webapps/webdav/WEB-INF/ AllowOverride None deny from all /Directory Directory C:/jakarta-tomcat-4-1-24/webapps/webdav/META-INF/ AllowOverride None deny from all /Directory JkMount /webdav/*.jsp ajp13 localhost:/tomcat-docs # Static files Alias /tomcat-docs C:/jakarta-tomcat-4-1-24/webapps/tomcat-docs Directory C:/jakarta-tomcat-4-1-24/webapps/tomcat-docs Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /tomcat-docs/WEB-INF/* AllowOverride None deny from all /Location Location /tomcat-docs/META-INF/* AllowOverride None deny from all /Location # # Use Directory too. On Windows, Location doesn't work unless case matches # Directory C:/jakarta-tomcat-4-1-24/webapps/tomcat-docs/WEB-INF/ AllowOverride None deny from all /Directory Directory C:/jakarta-tomcat-4-1-24/webapps/tomcat-docs/META-INF/ AllowOverride None deny from all /Directory JkMount /tomcat-docs/*.jsp ajp13 localhost:/manager # Static files Alias /manager C:/jakarta-tomcat-4-1-24/webapps/../server/webapps/manager Directory C:/jakarta-tomcat-4-1-24/webapps/../server/webapps/manager Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /manager/WEB-INF/* AllowOverride None deny from all /Location Location /manager/META-INF/*
RE: Does tomcat 4.1.24 come with conf files?
Thanks for the info -Original Message- From: Geralyn M Hollerman [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 10:46 AM To: [EMAIL PROTECTED] Subject: Re: Does tomcat 4.1.24 come with conf files? [EMAIL PROTECTED] wrote: I have decided to start over so I went to the Jakarta website and downloaded tomcat 4.1.24 and the conf directory is empty - is it suppose to be this way? This is what you will see if you use the un-tar that comes with Solaris. You have to use the GNUtar program to un-tar the file. Try it, and you'll see the /conf stuff. -- Lynn Hollerman. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AdWebster not coming up on Tomcat
Hi, I can't figure out why my AdWebster isn't working. http://placeanad.classifiedmarketplace.net:8080/AdWebster/index.jsp that is what happens although the default tomcat page still works for http://placeanad.classifiedmarketplace.net:8080 Any ideas? Thanks, Bobbie Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat + mod_jk
DocumentRoot C:/jakarta-tomcat-4-1-24/webapps/geode You will need to copy the mod_jk.conf file to some other location and modify it manually. Change your Include line in httpd.conf to reflect the new location. I like to put mine in the Apache conf directory. I'm not sure what you mean exactly by directly under Apache...as Apache doesn't care where files are located as long as it has the appropriate permissions to access them and can find them. Your files do not have to be under any particular directory. I'd have to know more about where you want to put your static resources exactly. Another option is to do something like: Alias /static C:/path/to/static/stuff There are various ways to do it, without knowing exactly what your dir structure is, what URL you want to use, etc. it is hard to give you a specific answer. In any case, you will likely have to modify mod_jk.conf by hand, which means putting it in a location where it won't be overwritten each time you start Tomcat, otherwise you will have to make the same changes over and over again. The whole mod_jk.conf thing is a convenience. It doesn't scale very well at all. I don't use it for my production servers, I make my changes by hand. Its in my HOWTO because its the easiest way for a newbie to get up and running. For complex setups (especially multiple virtual hosts and multiple webapps) you will want to avoid relying on it. John v.siguier wrote: No problem, my question is : I have configured Apache and Tomcat with mod_jk in order to connect them together but now all ressources of my application must be located under Tomcat directory to be founded. As I want to put all static ressources directly under Apache, somebody can tell me what I have to configure in Apache or Tomcat to do this ? Forgive me, but I've lost track of what this thread is about. What is not happening that you want to see happen, given the configuration files you've posted? What is your question again? John v.siguier wrote: The generated jakarta-tomcat-4-1-24\conf\auto\mod_jk.conf : ## Auto generated on Thu Jul 31 15:51:00 CEST 2003## IfModule !mod_jk.c LoadModule jk_module c:/apache/Apache2/modules/mod_jk-2.0.43.dll /IfModule JkWorkersFile C:/jakarta-tomcat-4-1-24/conf/jk/workers.properties JkLogFile C:/jakarta-tomcat-4-1-24/logs/mod_jk.log JkLogLevel emerg VirtualHost localhost ServerName localhost localhost:/examples # Static files Alias /examples C:/jakarta-tomcat-4-1-24/webapps/examples Directory C:/jakarta-tomcat-4-1-24/webapps/examples Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /examples/WEB-INF/* AllowOverride None deny from all /Location Location /examples/META-INF/* AllowOverride None deny from all /Location # # Use Directory too. On Windows, Location doesn't work unless case matches # Directory C:/jakarta-tomcat-4-1-24/webapps/examples/WEB-INF/ AllowOverride None deny from all /Directory Directory C:/jakarta-tomcat-4-1-24/webapps/examples/META-INF/ AllowOverride None deny from all /Directory JkMount /examples/jsp/security/protected/j_security_check ajp13 JkMount /examples/snoop ajp13 JkMount /examples/CompressionTest ajp13 JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 JkMount /examples/servletToJsp ajp13 JkMount /examples/SendMailServlet ajp13 localhost:/webdav # Static files Alias /webdav C:/jakarta-tomcat-4-1-24/webapps/webdav Directory C:/jakarta-tomcat-4-1-24/webapps/webdav Options Indexes FollowSymLinks DirectoryIndex index.jsp index.html index.htm /Directory # Deny direct access to WEB-INF and META-INF # Location /webdav/WEB-INF/* AllowOverride None deny from all /Location Location /webdav/META-INF/* AllowOverride None deny from all /Location # # Use Directory too. On Windows, Location doesn't work unless case matches # Directory C:/jakarta-tomcat-4-1-24/webapps/webdav/WEB-INF/ AllowOverride None deny from all /Directory Directory C:/jakarta-tomcat-4-1-24/webapps/webdav/META-INF/ AllowOverride None deny from all /Directory JkMount /webdav/*.jsp ajp13 localhost:/tomcat-docs # Static files Alias /tomcat-docs C:/jakarta-tomcat-4-1-24/webapps/tomcat-docs Directory C:/jakarta-tomcat-4-1-24/webapps/tomcat-docs Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /tomcat-docs/WEB-INF/* AllowOverride None deny from all /Location
Re: AdWebster not coming up on Tomcat
Hi - Post your server.xml, or explain exactly what you changed from a default Tomcat installation. John [EMAIL PROTECTED] wrote: Hi, I can't figure out why my AdWebster isn't working. http://placeanad.classifiedmarketplace.net:8080/AdWebster/index.jsp that is what happens although the default tomcat page still works for http://placeanad.classifiedmarketplace.net:8080 Any ideas? Thanks, Bobbie Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: AdWebster not coming up on Tomcat
The only thing I did was uncomment the connector lines for 8080. Everything else was left the same. In the web.xml I also uncommented the line about the invoker servlet. That's it -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 10:59 AM To: Tomcat Users List Subject: Re: AdWebster not coming up on Tomcat Hi - Post your server.xml, or explain exactly what you changed from a default Tomcat installation. John [EMAIL PROTECTED] wrote: Hi, I can't figure out why my AdWebster isn't working. http://placeanad.classifiedmarketplace.net:8080/AdWebster/index.jsp that is what happens although the default tomcat page still works for http://placeanad.classifiedmarketplace.net:8080 Any ideas? Thanks, Bobbie Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AdWebster not coming up on Tomcat
Are you sure? 8080 is enabled by default, there would have been no need to enable it. How about posting your server.xml file? May I ask, what is your ultimate goal? What do you want to have working when all is said and done? John [EMAIL PROTECTED] wrote: The only thing I did was uncomment the connector lines for 8080. Everything else was left the same. In the web.xml I also uncommented the line about the invoker servlet. That's it -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 10:59 AM To: Tomcat Users List Subject: Re: AdWebster not coming up on Tomcat Hi - Post your server.xml, or explain exactly what you changed from a default Tomcat installation. John [EMAIL PROTECTED] wrote: Hi, I can't figure out why my AdWebster isn't working. http://placeanad.classifiedmarketplace.net:8080/AdWebster/index.jsp that is what happens although the default tomcat page still works for http://placeanad.classifiedmarketplace.net:8080 Any ideas? Thanks, Bobbie Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat4, where is classpath set when run as service
FYI, i placed jar files in tomcat_home/shared/lib as per doc you cite below. This seemed to be effective, because i stopped getting the package does not exist error, and now get that generic status 500 error - null pointer exception - which i intrepret to mean that there is an internal error with the code i have written. thanks all, -paul lomack - Original Message - From: John Turner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 4:39 PM Subject: Re: Tomcat4, where is classpath set when run as service Check the ClassLoader HOWTO, it explains exactly where you can put class and JAR files so that Tomcat and your web apps can find them (.zip files don't work, but you can change the extension to .jar): http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html John Paul wrote: Hi John, thanks for reply. How would one go about adding .jar or .zip files to the classpath given it is created as you say when tomcat starts as a win2k service? paul lomack - Original Message - From: John Turner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 3:47 PM Subject: Re: Tomcat4, where is classpath set when run as service It isn't. Tomcat 4.1 uses the CATALINA_HOME and JAVA_HOME environment variables (defined at the System level) to build a classpath at startup. John Paul wrote: Hi Folks, Does anyone know where the classpath is set for Tomcat 4.1, when Tomcat4 is started and runs as a win2k service? thanks in advance for any help, paul lomack - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help with mod_jk2 + Coyote connector + Apache 2 + TC 4.1.24
Hi Someone can help me, please My configuration is the following: 1) load balancer ( Hardware ) 2) 2 Apache2 using mod_jk2 (RedHat 9) 3) 2 Tomcat4 listen at 8009 using Coyote Connector (RedHat 9) jdk sun 1.4.2 4) 1 Mysql server. (Redhat 7.2 , Mysql 4.0.13) Our monitor alerts about a 15s timeout after 2-3 hours of activity, but i can't get the exact problem. Any help, tip, solution, etc :-) The Apaches show MaxClients rearched, but incrementing this number not seem a good idea. The workaround is reboot Tomcats, to release the connections ajp13, but i need a better solution TIA Mauricio From my httpd.conf IfModule worker.c ServerLimit 16 StartServers 2 MaxClients 400 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 /IfModule From my workers2.properties: [channel.apr:tomcat5] tomcatId=tomcat5 port=8009 host=10.0.0.22 timeout=2 group=lb [channel.apr:tomcat6] tomcatId=tomcat6 port=8009 host=10.0.0.23 timeout=2 group=lb [lb:lb] timeout=5 recovery=30 attempts=2 debug=0 From my server.xml Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=512 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat + mod_jk
I would like to put .html files under htdocs/geode, .js under htdocs/geode/javascript and all images under htdocs/geode/images. If the user want to access to a html file (http://host:port/geode/*.html), I want it to be served by Apache. If the user want to access to a servlet (http://host:port/geode/servlet/*), I want it to be served by Tomcat. If the user want to access to a jsp (http://host:port/geode/jsp/*.jsp), I want it to be served by Tomcat. I hope these precision will help you to understand exactly what I try to do. What do you mean by DocumentRoot C:/jakarta-tomcat-4-1-24/webapps/geode ? Thank you for your help. DocumentRoot C:/jakarta-tomcat-4-1-24/webapps/geode You will need to copy the mod_jk.conf file to some other location and modify it manually. Change your Include line in httpd.conf to reflect the new location. I like to put mine in the Apache conf directory. I'm not sure what you mean exactly by directly under Apache...as Apache doesn't care where files are located as long as it has the appropriate permissions to access them and can find them. Your files do not have to be under any particular directory. I'd have to know more about where you want to put your static resources exactly. Another option is to do something like: Alias /static C:/path/to/static/stuff There are various ways to do it, without knowing exactly what your dir structure is, what URL you want to use, etc. it is hard to give you a specific answer. In any case, you will likely have to modify mod_jk.conf by hand, which means putting it in a location where it won't be overwritten each time you start Tomcat, otherwise you will have to make the same changes over and over again. The whole mod_jk.conf thing is a convenience. It doesn't scale very well at all. I don't use it for my production servers, I make my changes by hand. Its in my HOWTO because its the easiest way for a newbie to get up and running. For complex setups (especially multiple virtual hosts and multiple webapps) you will want to avoid relying on it. John v.siguier wrote: No problem, my question is : I have configured Apache and Tomcat with mod_jk in order to connect them together but now all ressources of my application must be located under Tomcat directory to be founded. As I want to put all static ressources directly under Apache, somebody can tell me what I have to configure in Apache or Tomcat to do this ? Forgive me, but I've lost track of what this thread is about. What is not happening that you want to see happen, given the configuration files you've posted? What is your question again? John v.siguier wrote: The generated jakarta-tomcat-4-1-24\conf\auto\mod_jk.conf : ## Auto generated on Thu Jul 31 15:51:00 CEST 2003## IfModule !mod_jk.c LoadModule jk_module c:/apache/Apache2/modules/mod_jk-2.0.43.dll /IfModule JkWorkersFile C:/jakarta-tomcat-4-1-24/conf/jk/workers.properties JkLogFile C:/jakarta-tomcat-4-1-24/logs/mod_jk.log JkLogLevel emerg VirtualHost localhost ServerName localhost localhost:/examples # Static files Alias /examples C:/jakarta-tomcat-4-1-24/webapps/examples Directory C:/jakarta-tomcat-4-1-24/webapps/examples Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /examples/WEB-INF/* AllowOverride None deny from all /Location Location /examples/META-INF/* AllowOverride None deny from all /Location # # Use Directory too. On Windows, Location doesn't work unless case matches # Directory C:/jakarta-tomcat-4-1-24/webapps/examples/WEB-INF/ AllowOverride None deny from all /Directory Directory C:/jakarta-tomcat-4-1-24/webapps/examples/META-INF/ AllowOverride None deny from all /Directory JkMount /examples/jsp/security/protected/j_security_check ajp13 JkMount /examples/snoop ajp13 JkMount /examples/CompressionTest ajp13 JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 JkMount /examples/servletToJsp ajp13 JkMount /examples/SendMailServlet ajp13 localhost:/webdav # Static files Alias /webdav C:/jakarta-tomcat-4-1-24/webapps/webdav Directory C:/jakarta-tomcat-4-1-24/webapps/webdav Options Indexes FollowSymLinks DirectoryIndex index.jsp index.html index.htm /Directory # Deny direct access to WEB-INF and META-INF # Location /webdav/WEB-INF/* AllowOverride None deny from all /Location Location /webdav/META-INF/* AllowOverride None deny from all
Checking for invalidated session
Hi, How can you check to see if a session has already been validated? i.e. if( !session.isInvalidated()) -- what should go here? { session.invalidate(); } to prevent the following exception: org.apache.jasper.JasperException: invalidate: Session already invalidated - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ANT tasks for management console
Look for catalina-ant.jar - probably in $TOMCAT_HOME/server/lib. Copy it to your $ANT_HOME/lib. We use these in our build files - I included the XML fragments from our build files if they're useful ( obviously you need to define a bunch of props used in these examples ) : taskdef name=deploy classname=org.apache.catalina.ant.DeployTask / taskdef name=undeploy classname=org.apache.catalina.ant.UndeployTask / taskdef name=list classname=org.apache.catalina.ant.ListTask / taskdef name=start classname=org.apache.catalina.ant.StartTask / taskdef name=stop classname=org.apache.catalina.ant.StopTask / taskdef name=reload classname=org.apache.catalina.ant.ReloadTask/ !-- ** Tomcat tasks ** -- target name=reload !-- reload the web application in tomcat -- echo message=Reloading tomcat web app on port : ${tomcat.port} / reload url=${tomcat.manager} path=/${context-path} username=${tomcat.usr}password=${tomcat.pwd} / /target target name=deploy description=Deploys a Web application deploy url=${tomcat.manager} username=${tomcat.usr} password=${tomcat.pwd} path=/${context-path} war=file:${war-path} / /target target name=undeploy description=Undeploys a Web application undeploy url=${tomcat.manager} username=${tomcat.usr} password=${tomcat.pwd} path=/${context-path} / /target target name=redeploy description=Undeploys and deploys a Web aplication antcall target=undeploy / antcall target=deploy / /target target name=list description=Lists Web applications echo message=Listing the applications/ list url=${tomcat.manager} username=${tomcat.usr} password=${tomcat.pwd} / /target target name=start description=Starts a Web application echo message=Starting the application/ start url=${tomcat.manager} username=${tomcat.usr} password=${tomcat.pwd} path=/${context-path} / /target target name=stop description=Stops a Web application echo message=Stopping the application/ stop url=${tomcat.manager} username=${tomcat.usr} password=${tomcat.pwd} path=/${context-path} / /target -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 3:38 AM To: [EMAIL PROTECTED] Subject: ANT tasks for management console Hi, Catalina 4.1.24 contains some ANT-tasks to call the management application to deploy, reload and delete apps. Where can I find these tasks to include them in my build? Juraj Mit freundlichen Grüssen Juraj Lenharcik T-Systems International GmbH Systems Integration 1 eFactory Solutions Business Unit Manufacturing Solutions Hausadresse: Fasanenweg 5, 70771 Leinfelden-Echterdingen phone:+49 (711) 972 46185 fax: +49 (711) 972 48109 mailto:[EMAIL PROTECTED] www.t-systems.com http://www.t-systems.com www.efactory-solutions.com http://www.efactory-solutions.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Checking for invalidated session
i guess this will work fine ... session = request.getSession( false ); if( session.isNew( ) ) { out.println( new session ); } someone let me know if i'm wrong. hugs, --- Fabio Moraes [EMAIL PROTECTED] System Engineer Work Force Management System +55 21 3088 9548 -Original Message- From: Tim Davidson [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 12:32 To: [EMAIL PROTECTED] Subject: Checking for invalidated session Hi, How can you check to see if a session has already been validated? i.e. if( !session.isInvalidated()) -- what should go here? { session.invalidate(); } to prevent the following exception: org.apache.jasper.JasperException: invalidate: Session already invalidated - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Checking for invalidated session
sorry. session = request.getSession( false ); if( session != null ) { session.invalidate(); } --- Fabio Moraes [EMAIL PROTECTED] System Engineer Work Force Management System +55 21 3088 9548 -Original Message- From: Moraes, Fabio [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 12:37 To: 'Tomcat Users List' Subject: RE: Checking for invalidated session Importance: High i guess this will work fine ... session = request.getSession( false ); if( session.isNew( ) ) { out.println( new session ); } someone let me know if i'm wrong. hugs, --- Fabio Moraes [EMAIL PROTECTED] System Engineer Work Force Management System +55 21 3088 9548 -Original Message- From: Tim Davidson [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 12:32 To: [EMAIL PROTECTED] Subject: Checking for invalidated session Hi, How can you check to see if a session has already been validated? i.e. if( !session.isInvalidated()) -- what should go here? { session.invalidate(); } to prevent the following exception: org.apache.jasper.JasperException: invalidate: Session already invalidated - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat + mod_jk
Which server (Apache or Tomcat) actually serves the file has nothing to do with file location. Which server (Apache or Tomcat) actually serves the file is completely driven by the JkMount directives. JkMount is inclusive...that is, unless you define a JkMount for a particular URI, the file will be served by Apache. Thus: JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 means that ONLY JSP and servlet will be handled by Tomcat, ALL OTHER requests will be handled by Apache. Thus, putting your static resources under your web application's directory structure makes it easier on you when deploying, because you only have to deploy to one location. Again, where the files are located has NOTHING to do with which server (Apache or Tomcat) handles the request. By DocumentRoot I mean tell Apache where the DocumentRoot is. Thus, with a DocumentRoot equal to the location of your Tomcat web application, all of your files can exist in one location, and as long as Apache has access permisssions to the web application root directory, Apache will handle requests for those files, not Tomcat. webapps ...geode ..index.jsp ..static.html ..image.gif ..WEB-INF .web.xml .classes YourServlet.class DocumentRoot equals CATALINA_HOME/webapps/geode http://host/geode/static.html works. http://host/geode/image.gif works. http://host/geode/index.jsp works. http://host/geode/servlet/* works (provided you map your servlets correctly in webapps/geode/WEB-INF/web.xml). John v.siguier wrote: I would like to put .html files under htdocs/geode, .js under htdocs/geode/javascript and all images under htdocs/geode/images. If the user want to access to a html file (http://host:port/geode/*.html), I want it to be served by Apache. If the user want to access to a servlet (http://host:port/geode/servlet/*), I want it to be served by Tomcat. If the user want to access to a jsp (http://host:port/geode/jsp/*.jsp), I want it to be served by Tomcat. I hope these precision will help you to understand exactly what I try to do. What do you mean by DocumentRoot C:/jakarta-tomcat-4-1-24/webapps/geode ? Thank you for your help. DocumentRoot C:/jakarta-tomcat-4-1-24/webapps/geode You will need to copy the mod_jk.conf file to some other location and modify it manually. Change your Include line in httpd.conf to reflect the new location. I like to put mine in the Apache conf directory. I'm not sure what you mean exactly by directly under Apache...as Apache doesn't care where files are located as long as it has the appropriate permissions to access them and can find them. Your files do not have to be under any particular directory. I'd have to know more about where you want to put your static resources exactly. Another option is to do something like: Alias /static C:/path/to/static/stuff There are various ways to do it, without knowing exactly what your dir structure is, what URL you want to use, etc. it is hard to give you a specific answer. In any case, you will likely have to modify mod_jk.conf by hand, which means putting it in a location where it won't be overwritten each time you start Tomcat, otherwise you will have to make the same changes over and over again. The whole mod_jk.conf thing is a convenience. It doesn't scale very well at all. I don't use it for my production servers, I make my changes by hand. Its in my HOWTO because its the easiest way for a newbie to get up and running. For complex setups (especially multiple virtual hosts and multiple webapps) you will want to avoid relying on it. John v.siguier wrote: No problem, my question is : I have configured Apache and Tomcat with mod_jk in order to connect them together but now all ressources of my application must be located under Tomcat directory to be founded. As I want to put all static ressources directly under Apache, somebody can tell me what I have to configure in Apache or Tomcat to do this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where does index.jsp come from
That page is not an index.jsp. it is: tomcat dir/webapps/ROOT/index.html HTH. Andoni. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 31, 2003 3:35 PM Subject: Where does index.jsp come from Greetings, I set up Tomcat again but I'm seeing this page http://gdttest.mgnetwork.com:8080/index.jsp - which is good except I can't figure out what to uncomment b/c there is no index.jsp in my webapps folder?? Thanks, Bobbie Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JNDI Names Clashing
Hello, Can JNDI names clash if they are in different HOST containers in the server.xml file? Thanks, Andoni. PS: they are for a database connection pool.
RE: Checking for invalidated session
No that wont work, because if the session was null it would throw a nullpointerexception not a servletException with the session is already invalidated -Original Message- From: Moraes, Fabio [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 4:39 PM To: 'Tomcat Users List' Subject: RE: Checking for invalidated session Importance: High sorry. session = request.getSession( false ); if( session != null ) { session.invalidate(); } --- Fabio Moraes [EMAIL PROTECTED] System Engineer Work Force Management System +55 21 3088 9548 -Original Message- From: Moraes, Fabio [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 12:37 To: 'Tomcat Users List' Subject: RE: Checking for invalidated session Importance: High i guess this will work fine ... session = request.getSession( false ); if( session.isNew( ) ) { out.println( new session ); } someone let me know if i'm wrong. hugs, --- Fabio Moraes [EMAIL PROTECTED] System Engineer Work Force Management System +55 21 3088 9548 -Original Message- From: Tim Davidson [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 12:32 To: [EMAIL PROTECTED] Subject: Checking for invalidated session Hi, How can you check to see if a session has already been validated? i.e. if( !session.isInvalidated()) -- what should go here? { session.invalidate(); } to prevent the following exception: org.apache.jasper.JasperException: invalidate: Session already invalidated - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat + mod_jk
I am agree with you, only one location for all my application resources is better but my customer want to separate static resources from dynamic resources. You tell me that only JkMount directives indicate which serv files, or in my mod_jk.conf there is only : JkMount /geode/jsp/j_security_check ajp13 JkMount /geode/*.jsp ajp13 so I don't understand why an URL like http://host:port/geode/index.html (ie htdocs/geode/index.html) is not found, exact message is : The requested URL /geode/index.html was not found on this server. Which server (Apache or Tomcat) actually serves the file has nothing to do with file location. Which server (Apache or Tomcat) actually serves the file is completely driven by the JkMount directives. JkMount is inclusive...that is, unless you define a JkMount for a particular URI, the file will be served by Apache. Thus: JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 means that ONLY JSP and servlet will be handled by Tomcat, ALL OTHER requests will be handled by Apache. Thus, putting your static resources under your web application's directory structure makes it easier on you when deploying, because you only have to deploy to one location. Again, where the files are located has NOTHING to do with which server (Apache or Tomcat) handles the request. By DocumentRoot I mean tell Apache where the DocumentRoot is. Thus, with a DocumentRoot equal to the location of your Tomcat web application, all of your files can exist in one location, and as long as Apache has access permisssions to the web application root directory, Apache will handle requests for those files, not Tomcat. webapps ...geode ..index.jsp ..static.html ..image.gif ..WEB-INF .web.xml .classes YourServlet.class DocumentRoot equals CATALINA_HOME/webapps/geode http://host/geode/static.html works. http://host/geode/image.gif works. http://host/geode/index.jsp works. http://host/geode/servlet/* works (provided you map your servlets correctly in webapps/geode/WEB-INF/web.xml). John v.siguier wrote: I would like to put .html files under htdocs/geode, .js under htdocs/geode/javascript and all images under htdocs/geode/images. If the user want to access to a html file (http://host:port/geode/*.html), I want it to be served by Apache. If the user want to access to a servlet (http://host:port/geode/servlet/*), I want it to be served by Tomcat. If the user want to access to a jsp (http://host:port/geode/jsp/*.jsp), I want it to be served by Tomcat. I hope these precision will help you to understand exactly what I try to do. What do you mean by DocumentRoot C:/jakarta-tomcat-4-1-24/webapps/geode ? Thank you for your help. DocumentRoot C:/jakarta-tomcat-4-1-24/webapps/geode You will need to copy the mod_jk.conf file to some other location and modify it manually. Change your Include line in httpd.conf to reflect the new location. I like to put mine in the Apache conf directory. I'm not sure what you mean exactly by directly under Apache...as Apache doesn't care where files are located as long as it has the appropriate permissions to access them and can find them. Your files do not have to be under any particular directory. I'd have to know more about where you want to put your static resources exactly. Another option is to do something like: Alias /static C:/path/to/static/stuff There are various ways to do it, without knowing exactly what your dir structure is, what URL you want to use, etc. it is hard to give you a specific answer. In any case, you will likely have to modify mod_jk.conf by hand, which means putting it in a location where it won't be overwritten each time you start Tomcat, otherwise you will have to make the same changes over and over again. The whole mod_jk.conf thing is a convenience. It doesn't scale very well at all. I don't use it for my production servers, I make my changes by hand. Its in my HOWTO because its the easiest way for a newbie to get up and running. For complex setups (especially multiple virtual hosts and multiple webapps) you will want to avoid relying on it. John v.siguier wrote: No problem, my question is : I have configured Apache and Tomcat with mod_jk in order to connect them together but now all ressources of my application must be located under Tomcat directory to be founded. As I want to put all static ressources directly under Apache, somebody can tell me what I have to configure in Apache or Tomcat to do this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Faites un voeu et puis Voila ! www.voila.fr - To
Problem confinguring MySQL JNDI Datasource RH Linux 7.2
Hello, I have followed instructions provided for configuring JNDI Datasource for MySQL (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/printer/jndi-datasource-examples-howto.html), and am running into problem on RedHat Linux 7.2. Here is my configuration: RedHat Linux 7.2 (kernel-2.4.7-10) Tomcat 4.1.24 (Clean install) MySQL 4.0.12 Using mysql-connector-java-3.0.8-stable-bin.jar (driver installed in $CATALINA_HOME/common/lib/) I copied the example code straight from the URL and made following change to DBTest context for my system and mysql driver. server.xml snippet !-- Class name for mm.mysql JDBC driver -- parameter namedriverClassName/name valuecom.mysql.jdbc.Driver/value /parameter !-- The JDBC connection url for connecting to your MySQL dB. The autoReconnect=true argument to the url makes sure that the mm.mysql JDBC Driver will automatically reconnect if mysqld closed the connection. mysqld by default closes idle connections after 8 hours. -- parameter nameurl/name valuejdbc:mysql://dns name of system:3306/javatest?autoReconnect=true/value /parameter /ResourceParams /server.xml snippet I get following error in catalina.out when bringing up test.jsp that uses the datasource. catalina.out error DBCP borrowObject failed: java.sql.SQLException: Server connection failure during transaction. Attempted reconnect 3 times. Giving up. org.apache.commons.dbcp.DbcpException: java.sql.SQLException: Server connection failure during transaction. Attempted reconnect 3 times. Giving up. at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:85) at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:184) at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(Unknown Source) at org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:117) at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:110) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:312) at foo.DBTest.init(DBTest.java:23) at org.apache.jsp.test_jsp._jspService(test_jsp.java:49) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at
sendRedirect() / forward() from frame to top window
How can I use sendRedirect() or forward() from a child frame and force the target to be the top or parent frame? Similar to a href='target.jsp' target='_top'Top Frame/a but using sendRedirect() or forward() Thanks -- *** * Rick Roberts* * Advanced Information Technologies, Inc. * *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: AdWebster not coming up on Tomcat
Greetings John, I've attached a copy of my server.xml file. My ultimate goal is to get http://placeanad.classifiedmarketplace.net/Adwebster running with ssl. But I'm just trying to get the port 80 version up first. Thanks, Bobbie -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 11:07 AM To: Tomcat Users List Subject: Re: AdWebster not coming up on Tomcat Are you sure? 8080 is enabled by default, there would have been no need to enable it. How about posting your server.xml file? May I ask, what is your ultimate goal? What do you want to have working when all is said and done? John [EMAIL PROTECTED] wrote: The only thing I did was uncomment the connector lines for 8080. Everything else was left the same. In the web.xml I also uncommented the line about the invoker servlet. That's it -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 10:59 AM To: Tomcat Users List Subject: Re: AdWebster not coming up on Tomcat Hi - Post your server.xml, or explain exactly what you changed from a default Tomcat installation. John [EMAIL PROTECTED] wrote: Hi, I can't figure out why my AdWebster isn't working. http://placeanad.classifiedmarketplace.net:8080/AdWebster/index.jsp that is what happens although the default tomcat page still works for http://placeanad.classifiedmarketplace.net:8080 Any ideas? Thanks, Bobbie Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat + mod_jk
argh... Because you don't have a DocumentRoot. Please, please just try one thing for me: - copy mod_jk.conf to APACHE_HOME/conf - edit mod_jk.conf...in the correct VirtualHost block, add a line that says: DocumentRoot PATH_TO_YOUR_WEBAPP_HERE - change httpd.conf, change the Include line for mod_jk.conf to include the version in APACHE_HOME.conf, not the typical location under CATALINA_HOME/conf - restart Tomcat, restart Apache Your index.html file is not served because: 1) there's no JkMount for *.html to tell Tomcat to serve it (which you don't want anyway) and 2) apache doesn't know where to find it I really don't know how else I can explain this. Maybe the Apache docs will help: http://httpd.apache.org/docs-2.0/mod/core.html#documentroot John v.siguier wrote: I am agree with you, only one location for all my application resources is better but my customer want to separate static resources from dynamic resources. You tell me that only JkMount directives indicate which serv files, or in my mod_jk.conf there is only : JkMount /geode/jsp/j_security_check ajp13 JkMount /geode/*.jsp ajp13 so I don't understand why an URL like http://host:port/geode/index.html (ie htdocs/geode/index.html) is not found, exact message is : The requested URL /geode/index.html was not found on this server. Which server (Apache or Tomcat) actually serves the file has nothing to do with file location. Which server (Apache or Tomcat) actually serves the file is completely driven by the JkMount directives. JkMount is inclusive...that is, unless you define a JkMount for a particular URI, the file will be served by Apache. Thus: JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 means that ONLY JSP and servlet will be handled by Tomcat, ALL OTHER requests will be handled by Apache. Thus, putting your static resources under your web application's directory structure makes it easier on you when deploying, because you only have to deploy to one location. Again, where the files are located has NOTHING to do with which server (Apache or Tomcat) handles the request. By DocumentRoot I mean tell Apache where the DocumentRoot is. Thus, with a DocumentRoot equal to the location of your Tomcat web application, all of your files can exist in one location, and as long as Apache has access permisssions to the web application root directory, Apache will handle requests for those files, not Tomcat. webapps ...geode ..index.jsp ..static.html ..image.gif ..WEB-INF .web.xml .classes YourServlet.class DocumentRoot equals CATALINA_HOME/webapps/geode http://host/geode/static.html works. http://host/geode/image.gif works. http://host/geode/index.jsp works. http://host/geode/servlet/* works (provided you map your servlets correctly in webapps/geode/WEB-INF/web.xml). John v.siguier wrote: I would like to put .html files under htdocs/geode, .js under htdocs/geode/javascript and all images under htdocs/geode/images. If the user want to access to a html file (http://host:port/geode/*.html), I want it to be served by Apache. If the user want to access to a servlet (http://host:port/geode/servlet/*), I want it to be served by Tomcat. If the user want to access to a jsp (http://host:port/geode/jsp/*.jsp), I want it to be served by Tomcat. I hope these precision will help you to understand exactly what I try to do. What do you mean by DocumentRoot C:/jakarta-tomcat-4-1-24/webapps/geode ? Thank you for your help. DocumentRoot C:/jakarta-tomcat-4-1-24/webapps/geode You will need to copy the mod_jk.conf file to some other location and modify it manually. Change your Include line in httpd.conf to reflect the new location. I like to put mine in the Apache conf directory. I'm not sure what you mean exactly by directly under Apache...as Apache doesn't care where files are located as long as it has the appropriate permissions to access them and can find them. Your files do not have to be under any particular directory. I'd have to know more about where you want to put your static resources exactly. Another option is to do something like: Alias /static C:/path/to/static/stuff There are various ways to do it, without knowing exactly what your dir structure is, what URL you want to use, etc. it is hard to give you a specific answer. In any case, you will likely have to modify mod_jk.conf by hand, which means putting it in a location where it won't be overwritten each time you start Tomcat, otherwise you will have to make the same changes over and over again. The whole mod_jk.conf thing is a convenience. It doesn't scale very well at all. I don't use it for my production servers, I make my changes by hand. Its in my HOWTO because its the easiest way for a newbie to get up and running. For complex setups (especially multiple virtual hosts and multiple webapps) you will want to avoid relying on it. John v.siguier wrote: No problem, my question is : I have
RE: sendRedirect() / forward() from frame to top window
Howdy, You can't with a pure server-side solution, as the server doesn't know anything about the frames, only your browser does. So you have to use JavaScript or another client-side approach to get the source from the server and copy it into the desired frame. Yoav Shapira Millennium ChemInformatics -Original Message- From: Rick Roberts [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 12:18 PM To: Tomcat Users List Subject: sendRedirect() / forward() from frame to top window How can I use sendRedirect() or forward() from a child frame and force the target to be the top or parent frame? Similar to a href='target.jsp' target='_top'Top Frame/a but using sendRedirect() or forward() Thanks -- *** * Rick Roberts* * Advanced Information Technologies, Inc. * *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AdWebster not coming up on Tomcat
Your attachment didn't come through. Please just paste it into your message. John [EMAIL PROTECTED] wrote: Greetings John, I've attached a copy of my server.xml file. My ultimate goal is to get http://placeanad.classifiedmarketplace.net/Adwebster running with ssl. But I'm just trying to get the port 80 version up first. Thanks, Bobbie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
regional configuration not honored
Hi, I have encountered a bad problem with tomcat5. I am using a the following environment: winXP, eclipse2.1.1, myeclipse2.5 and tomcat5.0.4. My XP is in spanish, but in the control panel I have my regional configuration settings to English(Usa), that is decimal symbol (.). It seems that when myclipse launches tomcat, it does not honor my configuration for the decimal symbol (well maybe more, but that's the one I am concerned about), and my webapp displays numbers with the spanish layout: 56,7 etc instead of 56.7. If I run tomcat standalone, with the standard link that comes with tomcat (c:\Tomcat5.0.4\bin\tomcatw.exe //GT//Tomcat5), and the webapp deployed by myeclise, the configuration is ok, that is, I get 56.7. So it seems myeclipse and the standalone tomcat do not start exactly in the same way. I have asked at myeclipse support and they say this is the way they launch tomcat: WorkingDirectory: tomcat-install/bin JVM Args: -Dcatalina.home=tomcat-install -Dcatalina.base=tomcat-install -Djava.endorsed.dirs=tomcat-install/bin; tomcat-install/common/endorsed -Djava.io.tmpdir=tomcat-install/temp -Djava.library.path=jdk-install/bin; tomcat-install/bin Classpath: tomcat-install/bin/bootstrap.jar; jdk-install/lib/tools.jar Launch class: org.apache.catalina.startup.Bootstrap Program Args: start I have been looking throught the start scripts of tomcat looking for differences but I am lost easyly. Does anybody now any parameter that should do the trick?? thanks in advance, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat4+Apache - Install trouble on Debian?
I'm having trouble with tomcat4+Apache(1.3) on Debian; I find that tomcat, and tomcat4, don't install properly from the regular stable apt-get packages. After much research on lists, FAQs, etc, there are lots of hints, do-it-yourself configurations, and other changes to try and conflicting recommendations(!), but I'd like to reduce the additional time involved (spent far too much already!); can't I just do an apt-get install tomcat4, and libapache-mod-webapp and have it work? Basically Tomcat seems to work fine standalone (port 8180), same for Apache (port 80), but I cannot get connected to Tomcat via apache. I first installed libapache-mod_jk, but it looks like that just adds an include to /etc/apache/httpd.conf which includes the empty file: /var/lib/tomcat/conf/mod_jk.conf -- which seems to be empty on purpose!? It does also indicate: JkWorkersFile /etc/tomcat/jk/workers.properties So, this looks like a null-connection from Apache to tomcat; and indeed Apache doesn't dispatch .jsp's to tomcat. I did (then) install libapache-mod-webapp, and added the lines to httpd.conf (as requested in tomcat4/server.xml), but still don't get apache to dispatch .jsp's to tomcat. The LoadModule seems to work fine; and logs this: 2003-07-31 11:06:04 [org.apache.catalina.connector.warp.WarpConnector] Connection from localhost/127.0.0.1:1998 to localhost/127.0.0.1:8008 But this uses mod-webapp, so now httpd.conf has two connectors? # LoadModule webapp_module libexec/mod_webapp.so WebAppConnection warpConnection warp localhost:8008 # WebAppDeploy examples warpConnection /examples/ (Won't work..?) IfModule mod_jk.c # The following line is for apacheconfig - DO NOT REMOVE! JkWorkersFile /etc/tomcat/jk/workers.properties Include /var/lib/tomcat/conf/mod_jk.conf # added: GRG (from http://katanalynx.dyndns.org/~ajar/code/howtos/debian-tomcat4.html ) Include /etc/apache/mod_jk/tomcat.conf /IfModule Symptoms: 1) From Apache .jsp's are just sent, not run. 2) I cannot use any of the webapp directives in httpd.conf; e.g. # WebAppDeploy examples warpConnection /examples/ # WebAppInfo /webappinfo Both give: Invalid command, perhaps mispelled? 3) the /examples (Tomcat) front pages come up, but then cannot access the servlets... (or JSPs) Hints? :-) Gregory Guthrie [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
entity value for ? symbol
Hi I would like to know the entity value or code for EUR sign.Whenever we enter EUR1 in our HTML side we are getting back #8364;1 as a value.We are using ISO-88591 as a character set,I found that ISO-88591 does not support this character or i did not find this value.Where as i found amp; as a entity value for . Thanks in advance Shanta.B - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: AdWebster not coming up on Tomcat
!-- Example Server Configuration File -- !-- Note that component elements are nested corresponding to their parent-child relationships with each other -- !-- A Server is a singleton element that represents the entire JVM, which may contain one or more Service instances. The Server listens for a shutdown command on the indicated port. Note: A Server is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- Server port=8005 shutdown=SHUTDOWN debug=0 !-- Uncomment these entries to enable JMX MBeans support -- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources !-- A Service is a collection of one or more Connectors that share a single Container (and therefore the web applications visible within that Container). Normally, that Container is an Engine, but this is not required. Note: A Service is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- !-- Define the Tomcat Stand-Alone Service -- Service name=Tomcat-Standalone !-- A Connector represents an endpoint by which requests are received and responses are returned. Each Connector passes requests on to the associated Container (normally an Engine) for processing. By default, a non-SSL HTTP/1.1 Connector is established on port 8080. You can also enable an SSL HTTP/1.1 Connector on port 8443 by following the instructions below and uncommenting the second Connector entry. SSL support requires the following steps (see the SSL Config HOWTO in the Tomcat 4.0 documentation bundle for more detailed instructions): * Download and install JSSE 1.0.2 or later, and put the JAR files into $JAVA_HOME/jre/lib/ext. * Execute: %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows) $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix) with a password value of changeit for both the certificate and the keystore itself. By default, DNS lookups are enabled when a web application calls request.getRemoteHost(). This can have an adverse impact on performance, so you can disable it by setting the enableLookups attribute to false. When DNS lookups are disabled, request.getRemoteHost() will return the String version of the IP address of the remote client. -- !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false / !-- Note : To disable connection timeouts, set connectionTimeout value to -1 -- !-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -- !-- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8443 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 scheme=https secure=true useURIValidationHack=false Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory clientAuth=false protocol=TLS / /Connector -- !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ !-- Define an AJP 1.3 Connector on port 8009 -- !-- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/
Re: Help with mod_jk2 + Coyote connector + Apache 2 + TC 4.1.24
Hi, Try playing with the connectionTimout setting in your server.xml. By default it is set at 0. Try using 12. Also experiment with -1. I have found that the connector resets every once in a while with a 0. With 12 the connection doesn't reset but times out. I have heard that a -1 means it niether times out or resets, but I haven't tried it. -e On Thu, 31 Jul 2003, Mauricio [iso-8859-1] Nuñez wrote: Hi Someone can help me, please My configuration is the following: 1) load balancer ( Hardware ) 2) 2 Apache2 using mod_jk2 (RedHat 9) 3) 2 Tomcat4 listen at 8009 using Coyote Connector (RedHat 9) jdk sun 1.4.2 4) 1 Mysql server. (Redhat 7.2 , Mysql 4.0.13) Our monitor alerts about a 15s timeout after 2-3 hours of activity, but i can't get the exact problem. Any help, tip, solution, etc :-) The Apaches show MaxClients rearched, but incrementing this number not seem a good idea. The workaround is reboot Tomcats, to release the connections ajp13, but i need a better solution TIA Mauricio From my httpd.conf IfModule worker.c ServerLimit 16 StartServers 2 MaxClients 400 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 /IfModule From my workers2.properties: [channel.apr:tomcat5] tomcatId=tomcat5 port=8009 host=10.0.0.22 timeout=2 group=lb [channel.apr:tomcat6] tomcatId=tomcat6 port=8009 host=10.0.0.23 timeout=2 group=lb [lb:lb] timeout=5 recovery=30 attempts=2 debug=0 From my server.xml Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=512 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sendRedirect() / forward() from frame to top window
Thanks for reply Yoav. Is there an HTML paramater (maybe META tag or something similar) that will tell the page to always be the _top frame? Or maybe a body onLoad() technique that I can use to force this page to always live in the top frame? I realize I'm getting a little off topic now. So; appologies in advance :) Thanks, -- *** * Rick Roberts* * Advanced Information Technologies, Inc. * *** Shapira, Yoav wrote: Howdy, You can't with a pure server-side solution, as the server doesn't know anything about the frames, only your browser does. So you have to use JavaScript or another client-side approach to get the source from the server and copy it into the desired frame. Yoav Shapira Millennium ChemInformatics -Original Message- From: Rick Roberts [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 12:18 PM To: Tomcat Users List Subject: sendRedirect() / forward() from frame to top window How can I use sendRedirect() or forward() from a child frame and force the target to be the top or parent frame? Similar to a href='target.jsp' target='_top'Top Frame/a but using sendRedirect() or forward() Thanks -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: entity value for ? symbol
Howdy, Google is your friend: http://www.hclrss.demon.co.uk/demos/symbol.html (scroll down to Currency Symbols section) Yoav Shapira Millennium ChemInformatics -Original Message- From: Shanta B [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 12:31 PM To: Tomcat Users List Subject: entity value for ? symbol Hi I would like to know the entity value or code for EUR sign.Whenever we enter EUR1 in our HTML side we are getting back #8364;1 as a value.We are using ISO-88591 as a character set,I found that ISO-88591 does not support this character or i did not find this value.Where as i found amp; as a entity value for . Thanks in advance Shanta.B - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OFF-TOPIC] RE: sendRedirect() / forward() from frame to top window
Howdy, Is there an HTML paramater (maybe META tag or something similar) that will tell the page to always be the _top frame? Or maybe a body onLoad() technique that I can use to force this page to always live in the top frame? Yes, frame-popping is pretty easy. A simple variant would be like: body onload=window.top.document=this.document; I'm not sure of the above 100%, but it should be close, and regardless a google search will yield many alternatives. I realize I'm getting a little off topic now. So; appologies in advance :) Hence the modified subject. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ANT tasks for management console
Any idea why the following Ant deploy task is not working for me? Software configuration: Microsoft Windows XP [Version 5.1.2600] Java 2 SDK 1.4.2 Apache Ant version 1.5.2 compiled on May 30 2003 Tomcat 5.0.5 Alpha !-- build.xml -- taskdef name=deploy classname=org.apache.catalina.ant.DeployTask/ deploy url=${manager.url} username=${manager.username} password=${manager.password} path=${app.path} war=file:/C:/bond.war/ The WAR file bond.war is in C:\bond.war. Ant output: --- U:\Derek\Project\BondTrader\BondOrderManagerant deploy Buildfile: build.xml prepare: compile: deploy: [deploy] FAIL - Encountered exception java.net.MalformedURLException: unknown protocol: c [deploy] OK - Deployed application at context path /bond BUILD FAILED file:U:/Derek/Project/BondTrader/BondOrderManager/build.xml:380: FAIL - Encountered exception java.net.MalformedURLException: unknown protocol: c Total time: 1 second --- Thanks, Derek -Original Message- From: Steph Richardson [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 11:37 AM To: Tomcat Users List Subject: RE: ANT tasks for management console Look for catalina-ant.jar - probably in $TOMCAT_HOME/server/lib. Copy it to your $ANT_HOME/lib. We use these in our build files - I included the XML fragments from our build files if they're useful ( obviously you need to define a bunch of props used in these examples ) : taskdef name=deploy classname=org.apache.catalina.ant.DeployTask / taskdef name=undeploy classname=org.apache.catalina.ant.UndeployTask / taskdef name=list classname=org.apache.catalina.ant.ListTask / taskdef name=start classname=org.apache.catalina.ant.StartTask / taskdef name=stop classname=org.apache.catalina.ant.StopTask / taskdef name=reload classname=org.apache.catalina.ant.ReloadTask/ !-- ** Tomcat tasks ** -- target name=reload !-- reload the web application in tomcat -- echo message=Reloading tomcat web app on port : ${tomcat.port} / reload url=${tomcat.manager} path=/${context-path} username=${tomcat.usr}password=${tomcat.pwd} / /target target name=deploy description=Deploys a Web application deploy url=${tomcat.manager} username=${tomcat.usr} password=${tomcat.pwd} path=/${context-path} war=file:${war-path} / /target target name=undeploy description=Undeploys a Web application undeploy url=${tomcat.manager} username=${tomcat.usr} password=${tomcat.pwd} path=/${context-path} / /target target name=redeploy description=Undeploys and deploys a Web aplication antcall target=undeploy / antcall target=deploy / /target target name=list description=Lists Web applications echo message=Listing the applications/ list url=${tomcat.manager} username=${tomcat.usr} password=${tomcat.pwd} / /target target name=start description=Starts a Web application echo message=Starting the application/ start url=${tomcat.manager} username=${tomcat.usr} password=${tomcat.pwd} path=/${context-path} / /target target name=stop description=Stops a Web application echo message=Stopping the application/ stop url=${tomcat.manager} username=${tomcat.usr} password=${tomcat.pwd} path=/${context-path} / /target -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 3:38 AM To: [EMAIL PROTECTED] Subject: ANT tasks for management console Hi, Catalina 4.1.24 contains some ANT-tasks to call the management application to deploy, reload and delete apps. Where can I find these tasks to include them in my build? Juraj Mit freundlichen Grüssen Juraj Lenharcik T-Systems International GmbH Systems Integration 1 eFactory Solutions Business Unit Manufacturing Solutions Hausadresse: Fasanenweg 5, 70771 Leinfelden-Echterdingen phone:+49 (711) 972 46185 fax: +49 (711) 972 48109 mailto:[EMAIL PROTECTED] www.t-systems.com http://www.t-systems.com www.efactory-solutions.com http://www.efactory-solutions.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OFF-TOPIC] RE: sendRedirect() / forward() from frame to topwindow
Thanks again :) -- *** * Rick Roberts* * Advanced Information Technologies, Inc. * *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]