Re: jsvc and -config? What about other JVM options?
Adding the '-server' option is probably a good idea. The security manager params issue is fixed in the CVS. David Wall [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] How about passing the -server option to the JVM so that it uses the server versus client VM? How do you pass in security manager params like: -Djava.security.manager -Djava.security.policy==$CATALINA_HOME/conf/catali na .policy The -server option is unknown. The two -D options above are rejected because neither has one '=' sign. Thanks, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FW: Yet another OT question.
I've tested my OCI8 installation with the JdbcCheckup.java program from the Oracle JDBC Developer's Guide (attached) and it works. I'm using Oracle's connection caching class (OracleConnectionCacheImpl) and everything works fine with the thin driver. When I try the oci8 driver I get this message: 2004-02-03 22:55:24 Failed to create data source: No suitable driver I tried executing the following code before I initialize the connect pool: DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver()); This didn't seem to make a difference. Is the oci8 driver compatible with Oracle's OracleConnectionCacheImpl class? If so, what am I doing wrong. W2K Oracle 8.1.7 Apache 2.0.43 Tomcat 4.1.0 -Original Message- From: David Short [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 03, 2004 9:14 PM To: 'George Sexton' Subject: RE: Yet another OT question. context-param param-namejdbcURL/param-name param-value(description=(address=(host=hostname)(protocol=tcp)(port=1521)) (connect_data=(sid=orcl)))/param-value /context-param context-param param-nameuser/param-name param-valueusername/param-value /context-param context-param param-namepassword/param-name param-valuepassword/param-value /context-param context-param param-namemaxLimit/param-name param-value50/param-value /context-param context-param param-nameminLimit/param-name param-value5/param-value /context-param -Original Message- From: George Sexton [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 03, 2004 8:13 PM To: [EMAIL PROTECTED] Subject: RE: Yet another OT question. If you could show me the values for your context-params I could make some suggestions. I don't use the pooling stuff. -Original Message- From: David Short [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 03, 2004 8:59 PM To: 'George Sexton' Subject: RE: Yet another OT question. I've been reading on Oracle's web site and think that the thin driver, which is what I've been using, doesn't perform extensive error checking like the OCI driver does. So, I'm trying to get the OCI driver working. I've got the Oracle client software loaded (ocijdbs8.dll in the %ORACLE_HOME%\jdbs\bin directory and classes12.zip and nls_charset12.zip in %ORACLE_HOME%\jdbs\lib directory). Tomcat complained about an invalid driver designation. 2004-02-03 19:35:10 Failed to create data source: ORA-06401: NETCMN: invalid driver designator So, I got to looking around and found a post stating I should change my database URL to this. context-param param-namejdbcURL/param-name param-value(description=(address=(host=serverName)(protocol=tcp)(port= 1521 ))(connect_data=(sid=orcl)))/param-value /context-param Now, I get this error: 2004-02-03 19:47:14 Failed to create data source: No suitable driver My environment is set up according to the Oracle installation instructions. I'm still digging, any ideas? -Original Message- From: George Sexton [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 03, 2004 7:22 PM To: [EMAIL PROTECTED] Subject: RE: Yet another OT question. The list software that Tomcat uses seems to have more than it's share of problems with Auto Responders, and the like. I also noticed that it doesn't strip off notification requests. I ended up re-writing my procmail filter to remove them. In general, the list software has a lot of problems. -Original Message- From: David Short [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 03, 2004 8:21 PM To: 'George Sexton' Subject: RE: Yet another OT question. Yours is the only one that returns two replies... Anyway, thanks for your help! -Original Message- From: George Sexton [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 03, 2004 8:58 AM To: 'Tomcat Users List'; [EMAIL PROTECTED] Subject: RE: Yet another OT question. Complain to the list maintainers or check your own MUA for a spurious REPLY-TO header. The message comes in with two reply-to headers and my MUA is just honoring them when I hit reply: There are two cases going on here. The first is that you have invalid SQL. You might be able to catch this by using a prepared statement rather than a statement. In my experience, the preparation of the statement will throw an error. In the second case, if you really need notification about whether the insert failed because the record existed, you need to create a stored procedure and send back a result from it. The result will have to be in the form of a record set (or if Oracle supports it, an OUTPUT variable). This has the unfortunate side effect of increased overhead to handle the result set. I think the problem is that the executeUpdate() method was intentionally designed to be light-weight and you are trying to use it in a situation where you need more functionality. Return-Path: [EMAIL PROTECTED] Received: from mail.apache.org (daedalus.apache.org [208.185.179.12]) by starbug.mhsoftware.com
RE: SSL only working on localhost
It´s still not working from the out side. In my log file when I do a check from an other machine within the network I get the following error message: 10.31.40.204 - - [04/Feb/2004:08:24:10 +0100] \x80L\x01\x03\x01 501 346 Has anyone got a idea? Maarten -Original Message- From: Maarten van Heiningen Sent: dinsdag 3 februari 2004 17:00 To: [EMAIL PROTECTED] Subject: SSL only working on localhost Hi, I'm using apache 2.0.48 with openssl configured in combination with an official key. I have followed the steps of enabling SSL and it wrks well on localhost even with JBoss as my appserv. But from outside I get a time out. I know my ssl port 443 is open and it is also configured in my ssl.conf with the same defined virtual host. What could be wrong, Maarten This communication together with any attachments transmitted with it (this E-Mail) is intended only for the use of the addressee and may contain information which is privileged and confidential. If the reader of this E-Mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient you are hereby notified that any use, dissemination, forwarding, printing or copying of this E-Mail is strictly prohibited. Addressees should check this E-mail for viruses. The Company makes no representations as regards the absence of viruses in this E-Mail. If you have received this E-Mail in error please notify our ISe Response Team immediately by telephone on +44 (0)20 8896 5828 or via e-mail at [EMAIL PROTECTED] Please then immediately delete, erase or otherwise destroy this E-Mail and any copies of it. Any opinions expressed in this E-Mail are those of the author and do not necessarily constitute the views of the Company. Nothing in this E-Mail shall bind the Company in any contract or obligation. For the purposes of this E-Mail the Company means The Carphone Warehouse Group Plc and/or any of its subsidiaries. Please feel free to visit our website: http:// www.carphonewarehouse.com or http://www.phonehouse.com The Carphone Warehouse Group Plc (Registered in England No. 3253714) North Acton Business Park, Wales Farm Road, London W3 6RS This communication together with any attachments transmitted with it (this E-Mail) is intended only for the use of the addressee and may contain information which is privileged and confidential. If the reader of this E-Mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient you are hereby notified that any use, dissemination, forwarding, printing or copying of this E-Mail is strictly prohibited. Addressees should check this E-mail for viruses. The Company makes no representations as regards the absence of viruses in this E-Mail. If you have received this E-Mail in error please notify our ISe Response Team immediately by telephone on +44 (0)20 8896 5828 or via e-mail at [EMAIL PROTECTED] Please then immediately delete, erase or otherwise destroy this E-Mail and any copies of it. Any opinions expressed in this E-Mail are those of the author and do not necessarily constitute the views of the Company. Nothing in this E-Mail shall bind the Company in any contract or obligation. For the purposes of this E-Mail the Company means The Carphone Warehouse Group Plc and/or any of its subsidiaries. Please feel free to visit our website: http:// www.carphonewarehouse.com or http://www.phonehouse.com The Carphone Warehouse Group Plc (Registered in England No. 3253714) North Acton Business Park, Wales Farm Road, London W3 6RS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache2, Mod_jk2 and Tomcat 4 on Linux - Help
The same principles apply. There is only one gotcha. You cannot use JNI to run Tomcat (yet). -Original Message- From: Apahce Tomact [mailto:[EMAIL PROTECTED] Sent: 03 February 2004 19:19 To: [EMAIL PROTECTED] Subject: Apache2, Mod_jk2 and Tomcat 4 on Linux - Help Hi, I want to configure Apache2, Mod_jk2 and Tomcat 4 on Linux. If any body has any procedure, Please send me. I have done this in Windows environment successfully and Struggling to configure on Linux. Your help is greatly appreciated. Regards, Rama. - Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. Note:__ This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Jaguar Freight Services and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs.
test
ALERT!!! This e-mail contained one or more infected files. The following attachments were infected and have been repaired: No attachments are in this category. The following infected attachments were deleted: 1. text.zip: [EMAIL PROTECTED] The following infected attachments were blocked because of Mail Policy violations: No attachments are in this category. You may wish to contact the sender to notify them about their infected file(s). Thank you Original message text follows The message contains Unicode characters and has been sent as a binary attachment. file attachment: text.zip The file attached to this email was removed because it is infected with the [EMAIL PROTECTED] virus. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SOLUTION: SSL certificates HOW-TO
Good one Bruno. On 02/03/2004 10:09 PM [EMAIL PROTECTED] wrote: It seems that obtaining and installing SSL certificates from different Certificate Authorities is not consistent. Even within the same CA, the procedure for real and test certificates is not necessarily the same. To make matters worse there appear to be differences in the operation of the Java keystore from 1.3.x to 1.4.2. Finally, documentation in Tomcat and in the CA sites is slightly out of date. These things combined make life difficult. The following is a summary of procedures that I have found to work with JDK 1.4.2_03 and Tomcat 5.0. For all options: · Use password changeit for BOTH the keystore and the keys. · Use the server's fully qualified hostname as first and last name as first last name, i.e.: myserver.mydomain.com · When requesting certificates, you must get an X.509 server certificate. If you get a PKCS#7 certificate you must convert it to an X.509 one before use. Using a self-signed certificate: · cd · keytool -genkey -alias tomcat -keyalg RSA Using Verisign certificate: The official Verisign instructions were incorrect at the time of this writing, but the following procedure will work for REAL certificates. For test certificates you theoretically only need and install the test root and test server certificates steps (not successfully tested), which are different from the regular root and server certificates. · cd · keytool -genkey -alias tomcat -keyalg RSA · keytool -certreq -keyalg RSA -alias tomcat -file certreq.csr · Use the .csr to request a certificate · Obtain the Verisign root certificate, intermediate certificate and server certificate · keytool -import -alias verisignroot -trustcacert -file verisignroot.cer · keytool -import -alias root -file intermediate.cer · keytool -import -alias tomcat -file server.cer Using Thawte certificate The Thawte instructions were incorrect at the time of this writing, but the following procedure will work for (at least) test certificates. · cd · keytool -genkey -alias mykey -keyalg RSA · keytool -certreq -keyalg RSA -alias mykey -file certreq.csr · Use the .csr to request an X.509 certificate, you will get a server certificate. · keytool -import -alias tomcat -trustcacerts -file server.cer I hope this helps others to avoid the headaches I experienced. :P Bruno - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Net Integrator Virus Alert
WARNING: a virus (probably I-Worm.Mydoom.a) or suspicious attachment was detected and removed from the following message from [EMAIL PROTECTED] to [EMAIL PROTECTED] Some of the content may still be readable. ---BeginMessage--- The message contains Unicode characters and has been sent as a binary attachment. ---End Message--- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing Tomcat 5 from JPackage
To be able to install tomcat rpm package, you must install a lot of other packages that tomcat depends on, first. I already did this once, and for me it was very time consuming and it wasn't easy at all. This is because JPackager can't provide some packages as binary packages, because of copyright restrictions. So you have to download the nosrc rpm from jpackage, download the source code from the software site (e.g. java.sun.com) and build the rpm from the scratch. Then you can install this rpm. The whole process might be very painful, at least for me it was, since i had to learn something about the rpm creation process. :-) So, the REAL question is : - Does anybody know the advantage of installing a tomcat rpm package?? Joe Tseng wrote: I recently installed Fedore Core 1 and was advised to install Tomcat 5 from JPackage using yum. When I tried to install to do this I got an error like this: Resolving dependencies ...identicla dependency loop exceeded package tomcat5 needs jaas (not provided) package tomcat5 needs jaf = 0:1.0.1 (not provided) package tomcat5 needs javamail = 0:1.3 (not provided) package [snip] Any useful assistance in helping out a noob with installation is appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache2, Mod_jk2 and Tomcat 4 on Linux - Help
u can go to johnturner.com for help on mod_jk on linux.. Pavan Kumar Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Yiannis Mavroukakis [EMAIL PROTECTED] 02/04/2004 04:39 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To 'Tomcat Users List' [EMAIL PROTECTED] cc Subject RE: Apache2, Mod_jk2 and Tomcat 4 on Linux - Help The same principles apply. There is only one gotcha. You cannot use JNI to run Tomcat (yet). -Original Message- From: Apahce Tomact [mailto:[EMAIL PROTECTED] Sent: 03 February 2004 19:19 To: [EMAIL PROTECTED] Subject: Apache2, Mod_jk2 and Tomcat 4 on Linux - Help Hi, I want to configure Apache2, Mod_jk2 and Tomcat 4 on Linux. If any body has any procedure, Please send me. I have done this in Windows environment successfully and Struggling to configure on Linux. Your help is greatly appreciated. Regards, Rama. - Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. Note:__ This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Jaguar Freight Services and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. ForwardSourceID:NT47EA DISCLAIMER: The information contained in this message is intended only and solely for the addressed individual or entity indicated in this message and for the exclusive use of the said addressed individual or entity indicated in this message (or responsible for delivery of the message to such person) and may contain legally privileged and confidential information belonging to Tata Consultancy Services. It must not be printed, read, copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person other than the addressee. Unauthorized use, disclosure or copying is strictly prohibited and may constitute unlawful act and can possibly attract legal action, civil and/or criminal. The contents of this message need not necessarily reflect or endorse the views of Tata Consultancy Services on any subject matter. Any action taken or omitted to be taken based on this message is entirely at your risk and neither the originator of this message nor Tata Consultancy Services takes any responsibility or liability towards the same. Opinions, conclusions and any other information contained in this message that do not relate to the official business of Tata Consultancy Services shall be understood as neither given nor endorsed by Tata Consultancy Services or any affiliate of Tata Consultancy Services. If you have received this message in error, you should destroy this message and may please notify the sender by e-mail. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Installing Tomcat 5 from JPackage
The only advantage is that tomcat is installed as a service i.e. you do a /sbin/service tomcat start or whatever the rpm has in mind.. Plus permissions and directory location. But apart from that, I would personally never choose the rpm installation over the tarball. The perceived benefits aren't that important for me to mess around installing whatever else is required by the package definition.. Yiannis -Original Message- From: Vitor Buitoni [mailto:[EMAIL PROTECTED] Sent: 04 February 2004 11:19 To: Tomcat Users List Subject: Re: Installing Tomcat 5 from JPackage To be able to install tomcat rpm package, you must install a lot of other packages that tomcat depends on, first. I already did this once, and for me it was very time consuming and it wasn't easy at all. This is because JPackager can't provide some packages as binary packages, because of copyright restrictions. So you have to download the nosrc rpm from jpackage, download the source code from the software site (e.g. java.sun.com) and build the rpm from the scratch. Then you can install this rpm. The whole process might be very painful, at least for me it was, since i had to learn something about the rpm creation process. :-) So, the REAL question is : - Does anybody know the advantage of installing a tomcat rpm package?? Joe Tseng wrote: I recently installed Fedore Core 1 and was advised to install Tomcat 5 from JPackage using yum. When I tried to install to do this I got an error like this: Resolving dependencies ...identicla dependency loop exceeded package tomcat5 needs jaas (not provided) package tomcat5 needs jaf = 0:1.0.1 (not provided) package tomcat5 needs javamail = 0:1.3 (not provided) package [snip] Any useful assistance in helping out a noob with installation is appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. Note:__ This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Jaguar Freight Services and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs.
Memory usage raises when reloading a context
Every time that i reload a context (through the tomcat manager) the memory usage of the tomcat grows up a bit, and it doesn't go down again. Every time the context is reloaded the memory usage raises, until the jvm begins to throw OutOfMemory errors. Then i have to restart tomcat (of course). Although this isn't a big problem in a production environment, where the applications keep running without reloads, here in our development environment this is becoming a problem, since every time we make a modification we have to reload the application. I downloaded jvmstat to monitor the jvm, and i noticed that when an application is reloaded, the overall heap usage increases and the jvm gc moves a lot of objects to the heap's permanent area. I think that this might be the main problem. Because even if the old area increases, it will sometime get garbage collected and the memory freed. And this i could confirm using jvmstat. But the objects that are in the permanent area will never be garbage collected. Is this behaviour normal? Or maybe it's a problem with my specific configuration? I'm using tomcat 5.0.16, sun jvm 1.4.2_03-b02, redhat 9. Thanks! Vitor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to enforce use of url rewriting for session identification
Hi, I am facing a strange problem, I would like to enfore url-rewriting for session identifier communication. I have set cookies=false for the webapp context definition in context.xml / server.xml But it is not taking into effect. I see that only when the client browser has cookies disabled url-rewriting is used otherwise cookies are used for session identification. Can someone let me know how to always enable url-rewriting in tomcat irrespective of client browser setting. Thanks in advance, Shambu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing Tomcat 5 from JPackage
Then i really can't see what's the point of installing the rpm. You can run tomcatd as a service without installing the rpm. You just have to put a script to initialize tomcat inside the /etc/init.d folder. We do this here and it works fine. It seems that the benefits are only a few, and not really very important. Vitor Yiannis Mavroukakis wrote: The only advantage is that tomcat is installed as a service i.e. you do a /sbin/service tomcat start or whatever the rpm has in mind.. Plus permissions and directory location. But apart from that, I would personally never choose the rpm installation over the tarball. The perceived benefits aren't that important for me to mess around installing whatever else is required by the package definition.. Yiannis -Original Message- From: Vitor Buitoni [mailto:[EMAIL PROTECTED] Sent: 04 February 2004 11:19 To: Tomcat Users List Subject: Re: Installing Tomcat 5 from JPackage To be able to install tomcat rpm package, you must install a lot of other packages that tomcat depends on, first. I already did this once, and for me it was very time consuming and it wasn't easy at all. This is because JPackager can't provide some packages as binary packages, because of copyright restrictions. So you have to download the nosrc rpm from jpackage, download the source code from the software site (e.g. java.sun.com) and build the rpm from the scratch. Then you can install this rpm. The whole process might be very painful, at least for me it was, since i had to learn something about the rpm creation process. :-) So, the REAL question is : - Does anybody know the advantage of installing a tomcat rpm package?? Joe Tseng wrote: I recently installed Fedore Core 1 and was advised to install Tomcat 5 from JPackage using yum. When I tried to install to do this I got an error like this: Resolving dependencies ...identicla dependency loop exceeded package tomcat5 needs jaas (not provided) package tomcat5 needs jaf = 0:1.0.1 (not provided) package tomcat5 needs javamail = 0:1.3 (not provided) package [snip] Any useful assistance in helping out a noob with installation is appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. Note:__ This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Jaguar Freight Services and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. -- *Vitor Buitoni* /Programador - APC/ *DÍGITRO TECNOLOGIA* *E-mail:* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] *Fone:* (0xx48) 281-7314 / (0xx48) 281-7000 *Fax:* (0xx48) 281-7000 *Site:* www.portaldigitro.com.br http://www.portaldigitro.com.br
Re: Installing Tomcat 5 from JPackage
What I don't understand though is why doesn't someone just use the compiled binary from jakarta.apache.org and make an RPM out of that; that way there would be no preexisting dependencies (unless I'm totally naive on that point). In any case I did get help about this topic and I came away with the same feeling that it just may not be worth using the RPM. However I'm afraid of configuring my httpd for mod_jk2 but I don't have time for that right now and so that'll be a nag for another time. Thx for the input. Then i really can't see what's the point of installing the rpm. You can run tomcatd as a service without installing the rpm. You just have to put a script to initialize tomcat inside the /etc/init.d folder. We do this here and it works fine. It seems that the benefits are only a few, and not really very important. Vitor Yiannis Mavroukakis wrote: The only advantage is that tomcat is installed as a service i.e. you do a /sbin/service tomcat start or whatever the rpm has in mind.. Plus permissions and directory location. But apart from that, I would personally never choose the rpm installation over the tarball. The perceived benefits aren't that important for me to mess around installing whatever else is required by the package definition.. Yiannis -- Joe Tseng To announce that there must be no criticism of the President, or that we are to stand by the President right or wrong, is not only unpatriotic and servile, but is morally treasonable to the American public. --President Theodore Roosevelt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How configure ADMIN for DefaultContext
Hi to all, I would like to modify the Administration of Tomcat for adding the functionality of DefaultContext; someone has an example, or some directive for doing it? Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help? JNDI Datasource HOW-TO
I found out that the mysql-connector-java-3.0.10-stable-bin.jar needs to be in the \common\lib directory. that was all that i over looked :( thanks eveybody - Original Message - From: Kumar Abhay-CAK203C [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, February 03, 2004 3:21 PM Subject: RE: help? JNDI Datasource HOW-TO Hello, I am having the same problem since last 3 days and no final solution yet I hv posted the msg 2 time to this gr but all in vain Pls share it with me if u hv any solution.. Abhay -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 03, 2004 1:48 PM To: Tomcat Users List Subject: help? JNDI Datasource HOW-TO i have followed the example but changed the location of the database to another machine. Tomcat 5.0.18 the test.jsp returns Results Foo Not Connected Bar -1 checking the DBTest log i get : 2004-02-03 14:19:36 NamingContextListener[/Catalina/localhost/DBTest]: Resource parameters for jdbc/TestDB = ResourceParams[name=jdbc/TestDB, parameters={factory=org.apache.commons.dbcp.BasicDataSourceFactory, url=jdbc:mysql://internal ip address:3306/javatest?autoReconnect=true, password=password, maxWait=1, maxActive=100, driverClassName=org.gjt.mm.mysql.Driver, username=Daniel, maxIdle=30}] 2004-02-03 14:19:36 NamingContextListener[/Catalina/localhost/DBTest]: Adding resource ref jdbc/TestDB 2004-02-03 14:19:36 NamingContextListener[/Catalina/localhost/DBTest]: ResourceRef[className=javax.sql.DataSource,factoryClassLocation=null,factory ClassName=org.apache.naming.factory.ResourceFactory,{type=scope,content=Shar eable},{type=auth,content=Container},{type=factory,content=org.apache.common s.dbcp.BasicDataSourceFactory},{type=url,content=jdbc:mysql://internal ip address:3306/javatest?autoReconnect=true},{type=password,content=password },{type=maxWait,content=1},{type=maxActive,content=100},{type=driverClas sName,content=org.gjt.mm.mysql.Driver},{type=username,content=Daniel},{type= maxIdle,content=30}] 2004-02-03 14:19:36 NamingContextListener[/Catalina/localhost/DBTest]: Resource parameters for UserTransaction = null at this point im stumped. server.xml is ::: Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ 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 Service name=Catalina Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true/ Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3/ Engine name=Catalina defaultHost=localhost debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=0 resourceName=UserDatabase/ Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_DBTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/TestDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxActive/name value100/value /parameter parameter namemaxIdle/name value30/value /parameter parameter namemaxWait/name value1/value /parameter parameter nameusername/name valueDaniel/value /parameter parameter namepassword/name valuepassword/value /parameter parameter namedriverClassName/name valueorg.gjt.mm.mysql.Driver/value /parameter parameter nameurl/name valuejdbc:mysql://ipaddress:3306/javatest?autoReconnect=true/value /parameter /ResourceParams /Context /Host /Engine /Service /Server /DBTest/WEB-INF/web.xml::: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app display-namedbtest/display-name description Welcome to dbtest /description descriptionMySQL Test App/description resource-ref descriptionDB Connection/description
RE: Memory usage raises when reloading a context
Howdy, It's normal: the classloader and associated objects can't get recycled and classes are stored in the permanent area. You can tweak the JVM's MaxPermSize if you'd like. As you noted, restarting your context all the time is not a typical production scenario. Yoav Shapira Millennium ChemInformatics -Original Message- From: Vitor Buitoni [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 6:58 AM To: Tomcat Users List Subject: Memory usage raises when reloading a context Every time that i reload a context (through the tomcat manager) the memory usage of the tomcat grows up a bit, and it doesn't go down again. Every time the context is reloaded the memory usage raises, until the jvm begins to throw OutOfMemory errors. Then i have to restart tomcat (of course). Although this isn't a big problem in a production environment, where the applications keep running without reloads, here in our development environment this is becoming a problem, since every time we make a modification we have to reload the application. I downloaded jvmstat to monitor the jvm, and i noticed that when an application is reloaded, the overall heap usage increases and the jvm gc moves a lot of objects to the heap's permanent area. I think that this might be the main problem. Because even if the old area increases, it will sometime get garbage collected and the memory freed. And this i could confirm using jvmstat. But the objects that are in the permanent area will never be garbage collected. Is this behaviour normal? Or maybe it's a problem with my specific configuration? I'm using tomcat 5.0.16, sun jvm 1.4.2_03-b02, redhat 9. Thanks! Vitor - 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: Question about webapp deployment or re-deployment
Howdy, You can use the manager's webapp HTML interface without ant. Connect to http://yourhost:yourport/manager/deploy?path=/foo with an HTTP PUT request containing your WAR. See http://jakarta.apache.org/tomcat/tomcat-5.0-doc/manager-howto.html#Deplo y%20A%20New%20Application%20Remotely Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 03, 2004 7:14 PM To: [EMAIL PROTECTED] Subject: Question about webapp deployment or re-deployment Hi! I've got Tomat 4.1 .29 and Tomcat 5.0.18 up and running on a Windows 2000 server to test a webapp we're developing as well as learn some of the environmental issues that might impact our app when we deploy it in production environments. Currently, we use ant to build a war file that is then used to install the webapp via the Tomcat Manager web interface.We upload the war directly with the Manager and it deploys the webapp.Then I stop the webapp and update web.xml to configure some data sources and some servlet mappings and restart Tomcat and the webapp. I'm working with Tomcat 4.1.29 when doing this. That works fine and my webapp runs just fine. Now, when I make changes to the webapp that I need to get installed, I'm not sure how to upgrade (effectively) the running webapp. I've been removing it and re-deploying it but that results in the web.xml changes being lost. I can't guarantee ant will be installed on the target server, so I'm trying to develop an installation and upgrade process that doesn't involve ant. When we install our webapp in a production environment, we'll most likely have a pre-built war on a CD that we install from. I've been reading a TON of great info on re-deploying webapps but they all seem to involve running ant to handle the re-deployment.Will I be forced to use ant or is there another way to 'upgrade' or re-deploy an existing running webapp? I will be working on procedures for Tomcat 4.1.29 and Tomcat 5.0.18 as I think they handle re-deployment differently, but I'm not sure. Thanks in advance for your time and help. Peace Tom - 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: Redeployment of War over and over Supported?
Howdy, Would multiple Tomcat instances be run in a production environment as well? Yeah, that's what I meant when I said one webapp per instance. If you have multiple webapps, that's multiple tomcat instances ;) Of course you can keep the admin or manager webapps also running on each instance if you'd like to use those. 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: setting up a virtual domain on tomcat
Howdy, You can do this in a number of ways, including a Host Alias (see the Host configuration reference documentation) and a simple redirecting servlet or filter. A sendRedirect is mostly transparent to the user, acting as if they've requested the tomcathost.abc.edu/SomeDirectory URL. Yoav Shapira Millennium ChemInformatics -Original Message- From: James Black [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 03, 2004 5:10 PM To: Tomcat Users List Subject: re: setting up a virtual domain on tomcat Hello, We have a virtual host on apache: http://virtualhost.abc.edu This actually is on host.abc.edu There is a index.php that is ran automatically when you go to virtualhost.abc.edu I now have a jsp page that I want to replace the php with. People have bookmarked virtualhost.abc.edu I want their bookmarks to go to http://tomcathost.abc.edu/SomeDirectory I have an index.jsp in SomeDirectory Is there any way to make this transparent to the user, where I am not using a webpage that is redirecting them? I want some to enter: http://virtualhost.abc.edu and have them go immediately to http://tomcathost.abc.edu/SomeDirectory Thank you for any ideas. - 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: Simple security - or Why is HttpJspBase.service final?
Howdy, why dont you use filters (standard) or valves (tomcat specific) filip It's looking like I'm going to have no choice, but I don't want to because I want the security simple, and I want to keep the security settings for a page in the page itself. What happens when you have 10 pages with possibly different security policies? You should take Filip's suggestion and use filters. You can also customize tomcat as you noted. Or use any of the standard security approaches provided by the Servlet Specification, e.g. BASIC or FORM authentication for your one page declared in web.xml. It's certainly simpler than your approach because you don't have to write ANY code. I'm not a big JSP expert but I think the service method has to call only _jspService, right away and nothing else, by the JSP spec (2.0) and that's why the method is final. But I'm not sure, and I didn't write the relevant code. 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]
Help HTTP 500 error using tomcat 5.0.16
Hi, I am getting the below mentioned erors using Tomcat 5.0.16 in a directory structure like this E:\sampleapp\WEB-INF \WEB-INF\classes \WEB-INF\lib \WEB-INF\sourcefile \WEB-INF\web.xml HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Wrapper cannot find servlet class package1.structure.HelloServlet or a class it depends on org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:805) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:696) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677) java.lang.Thread.run(Thread.java:534) root cause java.lang.ClassNotFoundException: package1.structure.HelloServlet org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1366) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1213) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:805) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:696) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677) java.lang.Thread.run(Thread.java:534) Kindly let me know how to come around it. Any help would be appreciated. PS : The package1.structure.HelloServlet E:\WEB-INF\classes\package1\structure is in this folder. Thanks AS
Re: Simple security - or Why is HttpJspBase.service final?
You could always recompile HttpJspBase and declare service() to be non-final then place it in your classes directory which overrides lib. Then you can use your own class to extend HttpJspBase. -Tim Shapira, Yoav wrote: Howdy, why dont you use filters (standard) or valves (tomcat specific) filip It's looking like I'm going to have no choice, but I don't want to because I want the security simple, and I want to keep the security settings for a page in the page itself. What happens when you have 10 pages with possibly different security policies? You should take Filip's suggestion and use filters. You can also customize tomcat as you noted. Or use any of the standard security approaches provided by the Servlet Specification, e.g. BASIC or FORM authentication for your one page declared in web.xml. It's certainly simpler than your approach because you don't have to write ANY code. I'm not a big JSP expert but I think the service method has to call only _jspService, right away and nothing else, by the JSP spec (2.0) and that's why the method is final. But I'm not sure, and I didn't write the relevant code. Yoav Shapira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Norton Internet security conflict
I am having trouble receiving posted data from a browser that has Norton Internet Security. The browser has no problem posting the data to an asp page, but will not to a servlet. Has anybody else come across this? There is a setting in Norton that rectifies it, but short have having people change their settings, any ideas???
Hello HTTP 500 error running tomcat 5.0.16
Hi, I am getting the below mentioned erors using Tomcat 5.0.16 in a directory structure like this E:\sampleapp\WEB-INF \WEB-INF\classes \WEB-INF\lib \WEB-INF\sourcefile \WEB-INF\web.xml HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Wrapper cannot find servlet class package1.structure.HelloServlet or a class it depends on org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:805) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:696) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677) java.lang.Thread.run(Thread.java:534) root cause java.lang.ClassNotFoundException: package1.structure.HelloServlet org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1366) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1213) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:805) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:696) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677) java.lang.Thread.run(Thread.java:534) Kindly let me know how to come around it. Any help would be appreciated. PS : That the WEB-INF\classes\package1\structure contains the HelloServlet class. Thanks AS
RE: SSL only working on localhost
It´s still not working from the out side. In my log file when I do a check from an other machine within the network I get the following error message: 10.31.40.204 - - [04/Feb/2004:08:24:10 +0100] \x80L\x01\x03\x01 501 346 Has anyone got a idea? Maarten -Original Message- From: Maarten van Heiningen Sent: dinsdag 3 februari 2004 17:00 To: [EMAIL PROTECTED] Subject: SSL only working on localhost Hi, I'm using apache 2.0.48 with openssl configured in combination with an official key. I have followed the steps of enabling SSL and it wrks well on localhost even with JBoss as my appserv. But from outside I get a time out. I know my ssl port 443 is open and it is also configured in my ssl.conf with the same defined virtual host. What could be wrong, Maarten This communication together with any attachments transmitted with it (this E-Mail) is intended only for the use of the addressee and may contain information which is privileged and confidential. If the reader of this E-Mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient you are hereby notified that any use, dissemination, forwarding, printing or copying of this E-Mail is strictly prohibited. Addressees should check this E-mail for viruses. The Company makes no representations as regards the absence of viruses in this E-Mail. If you have received this E-Mail in error please notify our ISe Response Team immediately by telephone on +44 (0)20 8896 5828 or via e-mail at [EMAIL PROTECTED] Please then immediately delete, erase or otherwise destroy this E-Mail and any copies of it. Any opinions expressed in this E-Mail are those of the author and do not necessarily constitute the views of the Company. Nothing in this E-Mail shall bind the Company in any contract or obligation. For the purposes of this E-Mail the Company means The Carphone Warehouse Group Plc and/or any of its subsidiaries. Please feel free to visit our website: http:// www.carphonewarehouse.com or http://www.phonehouse.com The Carphone Warehouse Group Plc (Registered in England No. 3253714) North Acton Business Park, Wales Farm Road, London W3 6RS This communication together with any attachments transmitted with it (this E-Mail) is intended only for the use of the addressee and may contain information which is privileged and confidential. If the reader of this E-Mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient you are hereby notified that any use, dissemination, forwarding, printing or copying of this E-Mail is strictly prohibited. Addressees should check this E-mail for viruses. The Company makes no representations as regards the absence of viruses in this E-Mail. If you have received this E-Mail in error please notify our ISe Response Team immediately by telephone on +44 (0)20 8896 5828 or via e-mail at [EMAIL PROTECTED] Please then immediately delete, erase or otherwise destroy this E-Mail and any copies of it. Any opinions expressed in this E-Mail are those of the author and do not necessarily constitute the views of the Company. Nothing in this E-Mail shall bind the Company in any contract or obligation. For the purposes of this E-Mail the Company means The Carphone Warehouse Group Plc and/or any of its subsidiaries. Please feel free to visit our website: http:// www.carphonewarehouse.com or http://www.phonehouse.com The Carphone Warehouse Group Plc (Registered in England No. 3253714) North Acton Business Park, Wales Farm Road, London W3 6RS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This communication together with any attachments transmitted with it (this E-Mail) is intended only for the use of the addressee and may contain information which is privileged and confidential. If the reader of this E-Mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient you are hereby notified that any use, dissemination, forwarding, printing or copying of this E-Mail is strictly prohibited. Addressees should check this E-mail for viruses. The Company makes no representations as regards the absence of viruses in this E-Mail. If you have received this E-Mail in error please notify our ISe Response Team immediately by telephone on +44 (0)20 8896 5828 or via e-mail at [EMAIL PROTECTED] Please then immediately delete, erase or otherwise destroy this E-Mail and any copies of it. Any opinions expressed in this E-Mail are those of the author and do not necessarily constitute the views of the Company. Nothing in this E-Mail shall bind the Company in any contract or obligation. For the purposes of this E-Mail the Company means The Carphone Warehouse Group Plc and/or any of its subsidiaries. Please feel
charset problem
Hello, Since I have upgraded to tomcat 4.1.29(from 4.1.27) tomcat sets a default charset(ISO-8859-1) I set: % response.setContentType(audio/x-pn-realaudio); % [EMAIL PROTECTED] language=java contentType=audio/x-pn-realaudio % Tomcat gives: Content-Type: audio/x-pn-realaudio;charset=ISO-8859-1 I have also tried tomcat 4.1.30(alpha) but with the same problem. So, what is the problem? _ Sander - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Returned Mail: Error During Delivery
-- Here is your List of Failed Recipients -- [EMAIL PROTECTED] Requested action not taken: mailbox unavailable. [SMTP Error Code 550] Here Is Your Returned Mail Received: FROM jakarta.apache.org BY arecibo ; Wed Feb 04 16:18:07 2004 +0100 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Server Report Date: Wed, 4 Feb 2004 16:19:09 +0100 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary==_NextPart_000_0003_D719C62B.C3037619 X-Priority: 3 X-MSMail-Priority: Normal This is a multi-part message in MIME format. --=_NextPart_000_0003_D719C62B.C3037619 Content-Type: text/plain; charset=Windows-1252 Content-Transfer-Encoding: 7bit The message cannot be represented in 7-bit ASCII encoding and has been sent as a binary attachment. --=_NextPart_000_0003_D719C62B.C3037619 Content-Type: application/octet-stream; name=body.pif Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=body.pif --=_NextPart_000_0003_D719C62B.C3037619-- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat stops taking connections
Hi All! I have this problem. I run Tomcat and it seems to be stable, but after a while under 'heavy' load it stops taking connections - actually connections aren't refused they just don't return. And it won't take any more connections until it has been restarted. Tomcat version is 5.0.18, it is running under Redhat, the Connector is the default: Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=10 connectionTimeout=2 disableUploadTimeout=true / Tomcat does not crash. A thread i started from within some class is still running (maybe this is independed), also tomcat still accepts connections on the server-port: Server port=8005 shutdown=SHUTDOWN debug=5 Although i honestly dont know what this is for... Sorry for this lousy description, hope there were enough information so that anybody got an idea of my problem.. Lars - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat stops taking connections
Howdy, I have this problem. I run Tomcat and it seems to be stable, but after a while under 'heavy' load it stops taking connections - actually connections aren't refused they just don't return. And it won't take any more connections until it has been restarted. So requests? For how long? If all request processing threads are busy, and the max amount of request processing threads has been creating, tomcat will queue requests (up to the acceptCount configured for the connector, 100 in your case), and only if the queue is full will requests be rejected. So you might be seeing the 100 requests getting queued up until a processing thread is ready to service them. Server port=8005 shutdown=SHUTDOWN debug=5 Although i honestly dont know what this is for... That's for shutting down tomcat. 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: Tomcat stops taking connections
Try increasing maxThreads=150 to something corresponding to your max load. I had the same problem under tomcat 4.1.18, and increasing maxThreads from 75 to 400 resolved my problem : my average number of users connected=300. -Message d'origine- De : Lars Both [mailto:[EMAIL PROTECTED] Envoyé : mercredi 4 février 2004 16:24 À : [EMAIL PROTECTED] Objet : Tomcat stops taking connections Hi All! I have this problem. I run Tomcat and it seems to be stable, but after a while under 'heavy' load it stops taking connections - actually connections aren't refused they just don't return. And it won't take any more connections until it has been restarted. Tomcat version is 5.0.18, it is running under Redhat, the Connector is the default: Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=10 connectionTimeout=2 disableUploadTimeout=true / Tomcat does not crash. A thread i started from within some class is still running (maybe this is independed), also tomcat still accepts connections on the server-port: Server port=8005 shutdown=SHUTDOWN debug=5 Although i honestly dont know what this is for... Sorry for this lousy description, hope there were enough information so that anybody got an idea of my problem.. Lars - 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: encoding-problem with tomcat, jk2, apache
Hi Stefan, you figured out this problem yet. I would like to know what was causing the problem:). Did you take a look at the header? Compare the headers generated when running tomcat standalone with running apache-tomcat to see the difference. (I used a Encoding Filter for my i18n application, so far all the development had been done on a localhost). Good luck! -Yan -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Stefan Burkard Sent: Tuesday, February 03, 2004 10:41 AM To: [EMAIL PROTECTED] Subject: encoding-problem with tomcat, jk2, apache hello tomcat-users i've set up a cocoon-page with tomcat, apache and jk2. everything works fine as long as i just use languages with standard-encoding iso-8859-1. now i'm on the way to implement the russian version of the site and therefore i need to display russian (cyrillic) characters. if i connect on tomcat-standalone with port 8080, the russian characters are displayed correct. but if i connect via apache and jk2, alle cyrillic characters go wrong. i think apache delivers the page with iso-8859-1 instead of utf-8. does anybody know if this is a problem of apache or jk2 and how to solve it??? thanks stefan - 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: Tomcat stops taking connections
Hi Lars, Are you are running RedHat 9? If you are, and you are not seeing any 'All threads are busy' messages in your logs, then it could be NPTL related. See the following thread: http://www.mail-archive.com/[EMAIL PROTECTED]/msg105689.html and more specifically this message for a potential resolution: http://www.mail-archive.com/[EMAIL PROTECTED]/msg106581.html Regards, Ryan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Loads Deleted Context?
Hi, I am having a weird problem. It seems that Tomcat is trying to deploy a deleted project. The deleted project was outside of ${tomcat_home}/ dir. And I already I commented out the context for that project. I also deleted the work/ dir, but the problem persists. The generated /work/Catalina/localhost/deleted/ dir doesn't have any class files except SESSIONS.ser and tldCache.ser. I suspect tomcat is installing web applications based on some sort of cache. Here is the console output when deploying tomcat: Feb 4, 2004 8:14:19 AM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\Web\ApacheGroup\Tomcat\conf\Catalina\localhost\deleted.xml log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester). log4j:WARN Please initialize the log4j system properly. I was wondering if this is a bug? I am using tomcat-5.0.18. Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem Compiling JSP under TOMCAT 5.0.18; please help me
You can try this and restart tomcat. 1. Copy tools.jar from your-jsdk\lib\tools.jar to your- tomcat\common\lib\tools.jar This may not be necessary, but the installer does attempt to copy this file so it won't hurt to do the same. And if that does not work try this step next and restart tomcat. 2.Change registry entry for HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ Apache Tomcat 4.1\Parameters\JVM Library from (adjust these paths to your machine and java version) C:\Program Files\Java\j2re1.4.1_02\bin\client\jvm.dll to C:\j2sdk1.4.1_02\jre\bin\server\jvm.dll Hope that helps Kal -Original Message- From: De Toffoli Garry [mailto:[EMAIL PROTECTED] Sent: Monday, February 02, 2004 11:59 AM To: [EMAIL PROTECTED] Subject: Problem Compiling JSP under TOMCAT 5.0.18; please help me Hi to all, I would like to pass from tomcat 3.2.x to tomcat 5.0.18; under tomcat 3.2.x I have some package under the WEB-INF/classes of all my sites, and run OK; passing to tomcat 5.0.18 I have changed only tomcat, leaving untouched all the directory where resides the sites; but when I call a .jsp that use a package, I have this error: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 6 in the jsp file: /tst_sitengine/testDB.jsp Generated servlet error: [javac] Compiling 1 source file /usr/jakarta-tomcat-5.0.18/work/Catalina/www.test.it/_/org/apache/jsp/ts t_005fsitengine/testDB_jsp.java:7: package db does not exist import db.*; ^ On catalina.log I have a detail about the error, where is reported the classpath where jasper is looking for, and doesn't appear WEB-INF; I think that this is why I have the error; but How can I correct this? Please, could someone help me? I have the same error with tomcat 5.0.16; here there is the content of catalina.log 2-feb-2004 17.50.46 org.apache.jasper.compiler.Compiler generateClass GRAVE: Javac exception Compile failed; see the compiler error output for details. at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:978) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:799) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:390) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:458) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja va:552) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:291) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:204) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:257) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon textValve.java:245) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:199) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:151) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator Base.java:509) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :195) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:151) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :164) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:156) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 64) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
Re: Servlets won't load after deployment
Filip Hanik (lists) wrote: remove all that stuff from your classpath. do this export CLASSPATH= ./startup.sh and it should work, the startup scripts are setting the classpath, and so does tomcat when it startup, you placing stuff in the system classpath will only mess things up :) Filip -Original Message- From: Phil Campaigne [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 03, 2004 6:19 PM To: [EMAIL PROTECTED] Subject: Servlets won't load after deployment MY webapp works on my localhost but after deployment I get an error instantiating HttpServlet class even though I have the servlet.jar in the CLASSPATH. Here are the CLASSPATH and catalina.out. Does anyone know what I am doing wrong? thanks, Phil CLASSPATH=:.:/usr/java/mysql-connector-java-2.0.14-bin.jar:/usr/java/jdbc7.2 dev-1.2.jar:/home/catalina/jakarta-tomcat/common/lib/servlet.jar:/home/hardw oodthunder/jakarta-tomcat/common/lib/servlet.jar:/usr/java/mm.mysql-2.0.11/m m.mysql-2.0.11-bin.jar 2004-0 2-03 18:58:51 StandardContext[/ReportingSystem]: Servlet /ReportingSystem threw load() exception javax.servlet.ServletException: Error instantiating servlet class javax.servlet.http.HttpServlet at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91 1) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java: 3420) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3608) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8 21) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j ava:257) at org.apache.catalina.core.StandardHost.install(StandardHost.java:772) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:410) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) - Root Cause - java.lang.InstantiationException at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(Instan tiationExceptionConstructorAccessorImpl.java:30) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:306) at java.lang.Class.newInstance(Class.java:259) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:90 2) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java: 3420) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3608) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8 21) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j ava:257) at org.apache.catalina.core.StandardHost.install(StandardHost.java:772) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:410) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879) at
Customized MBeans
I have problems managing a customized MBean. First I've created an custom interface, a MBean implementing this interface and put the class files in tomcat/common/classes. Then I've appended the descriptors attribute in Tomcat's server.xml and wrote the corresponding mbean-descriptors.xml file. When starting Tomcat there are no errors in logfile correspondig to MBeans. But I can't find my MBean! I tried: http://webserver/manager/jmxproxy My MBean is not listed. JMX Set command is not working, too. Any help or advice is greatly appreciated. Best regards. Oliver My MBean Descriptor: ?xml version=1.0? mbeans-descriptors mbean name=TascMBean className=org.apache.catalina.mbeans.ClassNameMBean description=Notifier for Tasc domain=Catalina group=Test type=my.comp.TascMBean attribute name=errorMessage description=ErrorMessage type=java.lang.String writeable=true/ /mbean /mbeans-descriptors -- GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...) jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Script for Tomcat monitoring
Hi. I want to get / write a big brother script for Tomcat to monitor items like how many threads are busy, mem free, number of sessions etc. Does any1 know of a script in existance (tried deadcat.net), and also does anyone know a quick and easy way to get the stats out from the manager page in Tomcat? Thanks, Pete. *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. *** For any information on the Quinn Group of Companies please visit :- http://www.quinn-group.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Script for Tomcat monitoring
well a few months back I started to work on a monitor for JMeter. The current tomcat status servlet actually outputs HTML and XML. The idea I has was to have a monitor that can periodically hit tomcat to get the server stats. I wanted to be able to setup automated load tests for tomcat and get periodic measurements to see how the server was doing and compare it to the response time. One of these days I may get back to it and finish the thing. If you're interested in implementing it, email me directly and I can assist you. peter lin Pete Stokes [EMAIL PROTECTED] wrote: Hi. I want to get / write a big brother script for Tomcat to monitor items like how many threads are busy, mem free, number of sessions etc. Does any1 know of a script in existance (tried deadcat.net), and also does anyone know a quick and easy way to get the stats out from the manager page in Tomcat? Thanks, Pete. *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. *** For any information on the Quinn Group of Companies please visit :- http://www.quinn-group.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it!
Catalina suspends for no reason?!?
I have Catalina Tomcat 4.1.24 connected via jk2 to Httpd 2.0.47 on RH9. It seems every now and then, tomat just simply hangs. When I try to shutdown the Catalina process via catalina.sh, it doesnt remove the process?! So I have to 'kill -15' it, then start up catalina again. I get very little information as to what happened, but checking jkstatus I can see where the requests stopped in the scoreboard. It's hard to tell sometimes, because httpd serves up the html pages just fine, but its only when I try to access a *.jsp page that i realise catalina is hanging again. The only errors I get are from httpd as listed below: [Wed Feb 04 09:37:47 2004] [error] msgAjp.receive(): Bad signature 00 [Wed Feb 04 09:37:47 2004] [error] channelSocket.receive(): Bad header [Wed Feb 04 09:37:47 2004] [error] workerEnv.processCallbacks() Error reading reply [Wed Feb 04 09:37:47 2004] [error] ajp13.service() ajpGetReply recoverable error 12 [Wed Feb 04 09:37:47 2004] [error] channelSocket.open() connect failed 127.0.0.1:8009 111 Connection refused [Wed Feb 04 09:37:47 2004] [error] ajp13.connect() failed ajp13:localhost:8009 [Wed Feb 04 09:37:47 2004] [error] ajp13.service() failed to connect endpoint errno=111 Connection refused all these lines are repeated numerous times but at the exact same time, to the second, when i tried accessing the JSP page. Previously, tomcat would hang on a sunday morning, and I disabled the jk2 logging feature and it seems to fix this, but it has now since hanged again. Does anyone have any idea what is happening? thanks Sam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Loads Deleted Context?
On Wed, 4 Feb 2004, Yansheng Lin wrote: Hi, I am having a weird problem. It seems that Tomcat is trying to deploy a deleted project. The deleted project was outside of ${tomcat_home}/ dir. And I already I commented out the context for that project. I also deleted the work/ dir, but the problem persists. The generated /work/Catalina/localhost/deleted/ dir doesn't have any class files except SESSIONS.ser and tldCache.ser. I suspect tomcat is installing web applications based on some sort of cache. What do you mean by commented out the context for that project? Where/in what file did you do that? Here is the console output when deploying tomcat: Feb 4, 2004 8:14:19 AM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\Web\ApacheGroup\Tomcat\conf\Catalina\localhost\deleted.xml Does this file still exist? If so, that could be your problem. (That is the context configuration file for the deleted webapp.) (deleted is the name of your webapp? Or did you just fill that in as a placeholder?) log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester). log4j:WARN Please initialize the log4j system properly. I was wondering if this is a bug? I am using tomcat-5.0.18. Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Milt Epstein Research Programmer Integration and Software Engineering (ISE) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: context configuration file being overwritten
On Sat, 31 Jan 2004, Milt Epstein wrote: Hi there. I'm using tomcat 5.0.18 basically out of the box. I set up a webapp in a directory outside the tomcat/webapps directory. So I created a context configuration file for the webapp, and put a symbolic link to it in tomcat/conf/Catalina/localhost. This was all per the documentation and the source. So, everything starts up fine, the webapp works, but the context configuration file gets overwritten/truncated (i.e., it is then an empty file). The same thing happens with 5.0.16. This doesn't happen when I place a copy of the actual configuration file in that directory, instead of a symbolic link. (I'm trying to place as little as possible in the tomcat directory structure, to ease upgrade issues and such.) Any idea what's going on here? I searched all over and couldn't find any discussion of a similar issue. FWIW, my system is Linux (Fedora Core 1). Thanks! Hate to repost this unchanged, but I'm surprised this hasn't gotten any response. Any Tomcat developers on the list? Am I missing something about how context configurations files are supposed to work? Because otherwise this looks like a bug. Milt Epstein Research Programmer Integration and Software Engineering (ISE) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
VM settings in windows service
Hi, I am using Tomcat 5.0.18 on Windows 2000 as a service and I want to change the memory-setting of the VM the Tomcat-Service-Manager uses. I already changed the Java Options in the Tomcat Configuration tool, but when I look at the status page of tomcat it tells me that the MAX-Memory is 64MB instead of my 256M which I want. I used the -X option to achieve this: -Xmx256M What can I do that the service accepts these settings? Tino - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem while accessing the MSSQL from tomcat
Hello All, We are in deep trouble.Here is the problem, we are facing. First let me elobarate the scenario. We have Tomcat 4 running on the Linux box.We are trying to access the MS-SQL which is running on the Win2k . We are using Datasource to access the MS-SQL from Java Servlets. It has been observed that ,after hardly 10 to 20 requests there is Pipe broken error. We are accessing servlet from web browser.And we are NOT pressing STOP button when we can this URL.Why I am saying this is , in one of the bug report with ID 4663, it has been mentioned that in case the user presses the stop button in between , then in that case there is a problem of pipe broken.But we are not doing it any time.So not sure why is hat happening and how to fix it. Actual Exception in the catalina.out is as follows : java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket. at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source) at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) at com.microsoft.jdbc.sqlserver.tds.TDSConnection.init(Unknown Source) at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source) at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source) at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source) at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:171) at com.apsora.jsp.DataSrc.connect(DataSrc.java:24) at com.apsora.jsp.DataSrc.getQueryResult(DataSrc.java:38) at org.apache.jsp.TestJSP_jsp._jspService(TestJSP_jsp.java:123) at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source) at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source) at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:562) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679) at
RE: context configuration file being overwritten
I'm not much of a UNIX person, but I remember reading about the allowLinking attributes in Context and DefaultContext. Not sure that they're applicable, but I figured I'd mention them in case they were and you hadn't seen them. Jay -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 10:46 AM To: Tomcat Users List Subject: Re: context configuration file being overwritten On Sat, 31 Jan 2004, Milt Epstein wrote: Hi there. I'm using tomcat 5.0.18 basically out of the box. I set up a webapp in a directory outside the tomcat/webapps directory. So I created a context configuration file for the webapp, and put a symbolic link to it in tomcat/conf/Catalina/localhost. This was all per the documentation and the source. So, everything starts up fine, the webapp works, but the context configuration file gets overwritten/truncated (i.e., it is then an empty file). The same thing happens with 5.0.16. This doesn't happen when I place a copy of the actual configuration file in that directory, instead of a symbolic link. (I'm trying to place as little as possible in the tomcat directory structure, to ease upgrade issues and such.) Any idea what's going on here? I searched all over and couldn't find any discussion of a similar issue. FWIW, my system is Linux (Fedora Core 1). Thanks! Hate to repost this unchanged, but I'm surprised this hasn't gotten any response. Any Tomcat developers on the list? Am I missing something about how context configurations files are supposed to work? Because otherwise this looks like a bug. Milt Epstein Research Programmer Integration and Software Engineering (ISE) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [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: VM settings in windows service
You must re-install your tomcat service with the options you want. To make sure your options are properly set, use regedit to check them : HKEY_LOCAL_MACHINE SYSTEM CurrentControlSet Services Apache Tomcat xxx Parameters look for JVM Option Number x Try this script (after adapting your parameters) to install your service. set JAVA_HOME=C:\j2sdk1.4.1_05 set CATALINA_HOME=C:\SOFTWARE\TOMCAT_4.1.18 set CATALINA_OPTS=-server -Xms750m -Xmx750m -XX:NewRatio=2 -Xconcurrentio set PARAMETERS=%JAVA_HOME%\jre\bin\server\jvm.dll set PARAMETERS=%PARAMETERS% -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar set PARAMETERS=%PARAMETERS% -Dcatalina.home=%CATALINA_HOME% set PARAMETERS=%PARAMETERS% -Djava.endorsed.dirs=%CATALINA_HOME%\common\endorsed set PARAMETERS=%PARAMETERS% -Dsun.io.useCanonCaches=false set PARAMETERS=%PARAMETERS% %CATALINA_OPTS% set PARAMETERS=%PARAMETERS% -start org.apache.catalina.startup.Bootstrap -params start set PARAMETERS=%PARAMETERS% -stop org.apache.catalina.startup.Bootstrap -params stop set PARAMETERS=%PARAMETERS% -out %CATALINA_HOME%\logs\stdout.log set PARAMETERS=%PARAMETERS% -err %CATALINA_HOME%\logs\stderr.log %CATALINA_HOME%\bin\tomcat -install Apache Tomcat 4.1 %PARAMETERS% -Message d'origine- De : Tino Schöllhorn [mailto:[EMAIL PROTECTED] Envoyé : mercredi 4 février 2004 17:51 À : [EMAIL PROTECTED] Objet : VM settings in windows service Hi, I am using Tomcat 5.0.18 on Windows 2000 as a service and I want to change the memory-setting of the VM the Tomcat-Service-Manager uses. I already changed the Java Options in the Tomcat Configuration tool, but when I look at the status page of tomcat it tells me that the MAX-Memory is 64MB instead of my 256M which I want. I used the -X option to achieve this: -Xmx256M What can I do that the service accepts these settings? Tino - 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 while accessing the MSSQL from tomcat
Can you post the Database URL you are using to connect to the Database? - Original Message - From: Sale Rahul [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 12:05 PM Subject: Problem while accessing the MSSQL from tomcat Hello All, We are in deep trouble.Here is the problem, we are facing. First let me elobarate the scenario. We have Tomcat 4 running on the Linux box.We are trying to access the MS-SQL which is running on the Win2k . We are using Datasource to access the MS-SQL from Java Servlets. It has been observed that ,after hardly 10 to 20 requests there is Pipe broken error. We are accessing servlet from web browser.And we are NOT pressing STOP button when we can this URL.Why I am saying this is , in one of the bug report with ID 4663, it has been mentioned that in case the user presses the stop button in between , then in that case there is a problem of pipe broken.But we are not doing it any time.So not sure why is hat happening and how to fix it. Actual Exception in the catalina.out is as follows : java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket. at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source) at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) at com.microsoft.jdbc.sqlserver.tds.TDSConnection.init(Unknown Source) at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source) at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source) at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source) at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:171) at com.apsora.jsp.DataSrc.connect(DataSrc.java:24) at com.apsora.jsp.DataSrc.getQueryResult(DataSrc.java:38) at org.apache.jsp.TestJSP_jsp._jspService(TestJSP_jsp.java:123) at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:562) at
Re: Tomcat Loads Deleted Context?
delete the context file (if present) from $TOMCAT_HOME/conf/{ENGINE}/{HOST}/ On Wed, 4 Feb 2004 10:39:30 -0600 (CST) Milt Epstein [EMAIL PROTECTED] wrote: On Wed, 4 Feb 2004, Yansheng Lin wrote: Hi, I am having a weird problem. It seems that Tomcat is trying to deploy a deleted project. The deleted project was outside of ${tomcat_home}/ dir. And I already I commented out the context for that project. I also deleted the work/ dir, but the problem persists. The generated /work/Catalina/localhost/deleted/ dir doesn't have any class files except SESSIONS.ser and tldCache.ser. I suspect tomcat is installing web applications based on some sort of cache. What do you mean by commented out the context for that project? Where/in what file did you do that? Here is the console output when deploying tomcat: Feb 4, 2004 8:14:19 AM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\Web\ApacheGroup\Tomcat\conf\Catalina\localhost\deleted.xml Does this file still exist? If so, that could be your problem. (That is the context configuration file for the deleted webapp.) (deleted is the name of your webapp? Or did you just fill that in as a placeholder?) log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester). log4j:WARN Please initialize the log4j system properly. I was wondering if this is a bug? I am using tomcat-5.0.18. Thanks! --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Milt Epstein Research Programmer Integration and Software Engineering (ISE) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [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: Tomcat Loads Deleted Context?
Yes, that context descriptor(deleted.xml) still exists under that directory!!! And after deleting it, tomcat doesn't load the particular webapp anymore. But I still think this is a possible bug. Since the expected behaviour is not to load anything anymore for a deleted webapp. I removed the Context for that webapp in conf/server.xml. And the deleted project directory is located outside of TOMCAT default webapps/ dir... . Thanks! -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 9:40 AM To: Tomcat Users List Subject: Re: Tomcat Loads Deleted Context? Here is the console output when deploying tomcat: Feb 4, 2004 8:14:19 AM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\Web\ApacheGroup\Tomcat\conf\Catalina\localhost\deleted.xml Does this file still exist? If so, that could be your problem. (That is the context configuration file for the deleted webapp.) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Client Deployer Package
Hello, I would like to use the Client Deployer Package (Tomcat 5) to compile and build a WAR file. Looking in the docs it somewhat tells you what the properties are, but does not tell you what the command line to call it is... Can someone show me an example of calling it, please? Thanks, Chanan Braunstein Knovel Corp. Web Development Manager 607-773-1840 x672 http://www.knovel.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem while accessing the MSSQL from tomcat
Hello arvind , I donot mind giving you the URL. Which is little secure one.But let me know what are yo ulooking at.Hope you understand. Thanks for kind attention Sincerly Rahul --- arvind singh [EMAIL PROTECTED] wrote: Can you post the Database URL you are using to connect to the Database? - Original Message - From: Sale Rahul [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 12:05 PM Subject: Problem while accessing the MSSQL from tomcat Hello All, We are in deep trouble.Here is the problem, we are facing. First let me elobarate the scenario. We have Tomcat 4 running on the Linux box.We are trying to access the MS-SQL which is running on the Win2k . We are using Datasource to access the MS-SQL from Java Servlets. It has been observed that ,after hardly 10 to 20 requests there is Pipe broken error. We are accessing servlet from web browser.And we are NOT pressing STOP button when we can this URL.Why I am saying this is , in one of the bug report with ID 4663, it has been mentioned that in case the user presses the stop button in between , then in that case there is a problem of pipe broken.But we are not doing it any time.So not sure why is hat happening and how to fix it. Actual Exception in the catalina.out is as follows : java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket. at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source) at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) at com.microsoft.jdbc.sqlserver.tds.TDSConnection.init(Unknown Source) at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source) at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source) at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source) at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:171) at com.apsora.jsp.DataSrc.connect(DataSrc.java:24) at com.apsora.jsp.DataSrc.getQueryResult(DataSrc.java:38) at org.apache.jsp.TestJSP_jsp._jspService(TestJSP_jsp.java:123) at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown === message truncated === __ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Which directory for web.xml?
Hi All, When an application is deployed on tomcat, which directory should web.xml be in? thanks, Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Which directory for web.xml?
WEB-INF/ [EMAIL PROTECTED] 02/04/04 11:44AM Hi All, When an application is deployed on tomcat, which directory should web.xml be in? thanks, Phil - 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: Which directory for web.xml?
in APPLICATION_ROOT\WEB-INF -Original Message- From: Phil Campaigne [mailto:[EMAIL PROTECTED] Sent: quarta-feira, 4 de Fevereiro de 2004 17:45 To: Tomcat Users List Subject: Which directory for web.xml? Hi All, When an application is deployed on tomcat, which directory should web.xml be in? thanks, Phil - 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 while accessing the MSSQL from tomcat
I dont want your web URL. I want the connection URL you are using to connect to DB. e.g. DBName=/yourdb?autoReconnect=true DBUserName=your user DBPassword=your password JDBCDriverName=jdbc:mysql:// These are connection parameters for MySQL. Note ?autoReconnect=true if you driver supports this please try adding to your connection URL. - Original Message - From: Sale Rahul [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 12:49 PM Subject: Re: Problem while accessing the MSSQL from tomcat Hello arvind , I donot mind giving you the URL. Which is little secure one.But let me know what are yo ulooking at.Hope you understand. Thanks for kind attention Sincerly Rahul --- arvind singh [EMAIL PROTECTED] wrote: Can you post the Database URL you are using to connect to the Database? - Original Message - From: Sale Rahul [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 12:05 PM Subject: Problem while accessing the MSSQL from tomcat Hello All, We are in deep trouble.Here is the problem, we are facing. First let me elobarate the scenario. We have Tomcat 4 running on the Linux box.We are trying to access the MS-SQL which is running on the Win2k . We are using Datasource to access the MS-SQL from Java Servlets. It has been observed that ,after hardly 10 to 20 requests there is Pipe broken error. We are accessing servlet from web browser.And we are NOT pressing STOP button when we can this URL.Why I am saying this is , in one of the bug report with ID 4663, it has been mentioned that in case the user presses the stop button in between , then in that case there is a problem of pipe broken.But we are not doing it any time.So not sure why is hat happening and how to fix it. Actual Exception in the catalina.out is as follows : java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket. at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source) at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) at com.microsoft.jdbc.sqlserver.tds.TDSConnection.init(Unknown Source) at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source) at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source) at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source) at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:171) at com.apsora.jsp.DataSrc.connect(DataSrc.java:24) at com.apsora.jsp.DataSrc.getQueryResult(DataSrc.java:38) at org.apache.jsp.TestJSP_jsp._jspService(TestJSP_jsp.java:123) at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source) at
RE: Redeployment of War over and over Supported?
Howdy, Would multiple Tomcat instances be run in a production environment as well? Yeah, that's what I meant when I said one webapp per instance. If you have multiple webapps, that's multiple tomcat instances ;) Of course you can keep the admin or manager webapps also running on each instance if you'd like to use those. Yoav Shapira Thanks... :) I didn't ask my question correctly. :) I was trying to ask if the norm in production environments is to run multiple instances of servlet containers, whether they be Tomcat or something else, for each webapp deployed or is there some mixture of multiple webapps per container and one webapp per container? I'm just trying to get a sense of how webapps are run in production environments. :) Peace... Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problems shutting down server when enabling the SimpleTcpCluster
which version of tomcat? the latest? this means that a thread is not a daemon thread, and the stop will not work. this was a bug a long time ago. has it resurfaced? Filip -Original Message- From: Aadi Deshpande [mailto:[EMAIL PROTECTED] Sent: Monday, February 02, 2004 2:00 PM To: [EMAIL PROTECTED] Subject: problems shutting down server when enabling the SimpleTcpCluster Hi, we have 2 tomcat instances that are clustered via the SimpleTcpReplication cluster. When they start up, i see that they are both communicating and they seem to be working OK. However, whenever I try to shut down an instance using the $TOMCAT_HOME/bin/catalina.sh script, the server never fully dies. It seems like there around 20 threads still hanging around, all doing something related to persisting these sessions. This is in a development instance so we have maybe 4 or 5 sessions at best at any given time,so I'm not sure why replication would take so long. These servers hang around forever and can only be killed via a kill -9 . Any further attempts to run 'catalina.sh stop' results in the connection refused error, presumably because the instance has stopped listening on that port for requests. And i know the server is attempting to shut down since i get the Unregistering... messages in my log files. Any help is much appreciated, Thanks in advance, Aadi Deshpande - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.576 / Virus Database: 365 - Release Date: 1/30/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.577 / Virus Database: 366 - Release Date: 2/3/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Which directory for web.xml?
Ian Joyce wrote: WEB-INF/ [EMAIL PROTECTED] 02/04/04 11:44AM Hi All, When an application is deployed on tomcat, which directory should web.xml be in? thanks, Phil - 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] thanks Ian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
error instantiating HttpServlet
Hi All, When I deploy a webapp that was working on my local machine I get the error: 2004-02-04 11:58:12 StandardContext[/ReportingSystem]: Servlet /ReportingSystem threw load() exception javax.servlet.ServletException: Error instantiating servlet class javax.servlet.http.HttpServlet - Root Cause - java.lang.InstantiationException Is there somethind I have done wrong in configuring for deployment? thanks, hil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: error instantiating HttpServlet
yes, you probably included some libaries in your system classpath Filip -Original Message- From: Phil Campaigne [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 10:21 AM To: Tomcat Users List Subject: error instantiating HttpServlet Hi All, When I deploy a webapp that was working on my local machine I get the error: 2004-02-04 11:58:12 StandardContext[/ReportingSystem]: Servlet /ReportingSystem threw load() exception javax.servlet.ServletException: Error instantiating servlet class javax.servlet.http.HttpServlet - Root Cause - java.lang.InstantiationException Is there somethind I have done wrong in configuring for deployment? thanks, hil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.577 / Virus Database: 366 - Release Date: 2/3/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.577 / Virus Database: 366 - Release Date: 2/3/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Redeployment of War over and over Supported?
My personal experience has shown both. Shops that plan for enterprise wide services tend to get large servers and host multiple webapps on one container on such machines. This lends itself well to centralized administration, etc. Shops that add webapps incrementally or at the departmental levels tend to get a machine, install a container and install the webapp on that container. This then becomes a dedicated server for that application. Really big enterprises will run one virtual server with multiple actual servers each with an instance of a container in a web farm/load balancing type setup. This usually sees multiple webapps per container too and the multiple machines are just part of the redundancy mechanics for the enterprise applications. --- [EMAIL PROTECTED] wrote: Howdy, Would multiple Tomcat instances be run in a production environment as well? Yeah, that's what I meant when I said one webapp per instance. If you have multiple webapps, that's multiple tomcat instances ;) Of course you can keep the admin or manager webapps also running on each instance if you'd like to use those. Yoav Shapira Thanks... :) I didn't ask my question correctly. :) I was trying to ask if the norm in production environments is to run multiple instances of servlet containers, whether they be Tomcat or something else, for each webapp deployed or is there some mixture of multiple webapps per container and one webapp per container? I'm just trying to get a sense of how webapps are run in production environments. :) Peace... Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Redeployment of War over and over Supported?
My personal experience has shown both. Shops that plan for enterprise wide services tend to get large servers and host multiple webapps on one container on such machines. This lends itself well to centralized administration, etc. Shops that add webapps incrementally or at the departmental levels tend to get a machine, install a container and install the webapp on that container. This then becomes a dedicated server for that application. Really big enterprises will run one virtual server with multiple actual servers each with an instance of a container in a web farm/load balancing type setup. This usually sees multiple webapps per container too and the multiple machines are just part of the redundancy mechanics for the enterprise applications. Thanks for the feedback. :) Do you know if the larger shops tend to use a mixture of servlet containers or do they stick with one, like Tomcat or JBoss or something? Peace... Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: context configuration file being overwritten
-Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 11:46 AM To: Tomcat Users List Subject: Re: context configuration file being overwritten On Sat, 31 Jan 2004, Milt Epstein wrote: Hi there. I'm using tomcat 5.0.18 basically out of the box. I set up a webapp in a directory outside the tomcat/webapps directory. So I created a context configuration file for the webapp, and put a symbolic link to it in tomcat/conf/Catalina/localhost. This was all per the documentation and the source. So, everything starts up fine, the webapp works, but the context configuration file gets overwritten/truncated (i.e., it is then an empty file). The same thing happens with 5.0.16. This doesn't happen when I place a copy of the actual configuration file in that directory, instead of a symbolic link. (I'm trying to place as little as possible in the tomcat directory structure, to ease upgrade issues and such.) Have you tried using CATALINA_BASE and CATALINA_HOME to separate your webapps/configuration(BASE) and your tomcat installation(HOME)? Maybe this would serve your needs instead of symbolic links. Charlie Any idea what's going on here? I searched all over and couldn't find any discussion of a similar issue. FWIW, my system is Linux (Fedora Core 1). Thanks! Hate to repost this unchanged, but I'm surprised this hasn't gotten any response. Any Tomcat developers on the list? Am I missing something about how context configurations files are supposed to work? Because otherwise this looks like a bug. Milt Epstein Research Programmer Integration and Software Engineering (ISE) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
RE: Redeployment of War over and over Supported?
Everyone I've seen uses one container from one vendor. WebLogic and WebSphere appear to be fairly popular choices but I've heard of lots of Tomcat and JBoss usage throughout Texas as well. --- [EMAIL PROTECTED] wrote: Thanks for the feedback. :) Do you know if the larger shops tend to use a mixture of servlet containers or do they stick with one, like Tomcat or JBoss or something? Peace... Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Having trouble using CGI with Tomcat 4.1...
I have setup Tomcat to use CGI but when I try to run my script or EXE it get the following error... HTTP Status 500 Java.io.IOException: CreateProcess: perl name of program with full path Am I missing a configuration step? Ken
RE: workers2.properties syntax
What aspects are you wanting to change and I'll see if I can help explain them. I'm somewhat new to this also, but have spent almost a year decipering and figuring things out. Dean -Original Message- From: Alvaro Seixas [mailto:[EMAIL PROTECTED] Sent: Tue 2/3/2004 3:15 PM To: Tomcat Users List Subject: workers2.properties syntax Hello, I'd like to know if someone knows where I can find any document describing the syntax for workers2.properties different from the one that comes with Tomcat 5. Cause the one that I'm using I copied from this list (and it's working) and there's some aspects I want to change that I have no idea how to do it. Thanks, Alvaro - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Loads Deleted Context?
On Wed, 4 Feb 2004, Yansheng Lin wrote: Yes, that context descriptor(deleted.xml) still exists under that directory!!! And after deleting it, tomcat doesn't load the particular webapp anymore. But I still think this is a possible bug. Since the expected behaviour is not to load anything anymore for a deleted webapp. Yes, but the question is, what constitutes a webapp being deleted? And the answer, I think, depends on how you have Tomcat configured (e.g., in terms of auto-deployment of webapps). I'd say that if you're using a context configuration file, that's part of the webapp. And if you haven't deleted it, you haven't really deleted the webapp. I removed the Context for that webapp in conf/server.xml. Hmmm -- you had a Context element for this webapp in server.xml *and* a separate context configuration file? That's redundant, because they serve the same purpose. I'm not sure what would happen in that case -- were you per chance seeing your webapp starting up twice? And the deleted project directory is located outside of TOMCAT default webapps/ dir... . Which means there has to be some element inside Tomcat's configuration (either in server.xml or a separate context configuration file) that lets Tomcat know about it. And until you delete that element, you haven't deleted the webapp. That's my take on it, at least :-). -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 9:40 AM To: Tomcat Users List Subject: Re: Tomcat Loads Deleted Context? Here is the console output when deploying tomcat: Feb 4, 2004 8:14:19 AM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\Web\ApacheGroup\Tomcat\conf\Catalina\localhost\deleted.xml Does this file still exist? If so, that could be your problem. (That is the context configuration file for the deleted webapp.) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Milt Epstein Research Programmer Integration and Software Engineering (ISE) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: context configuration file being overwritten
On Wed, 4 Feb 2004, Burgess, Jay S wrote: I'm not much of a UNIX person, but I remember reading about the allowLinking attributes in Context and DefaultContext. Not sure that they're applicable, but I figured I'd mention them in case they were and you hadn't seen them. Thanks for the response. Yes, I am aware of allowLinking, but I believe that's totally unrelated to what I'm talking about. allowLinking is an attribute of the Context tag, and determines whether symbolic links can be used *inside* the context/webapp. I'm talking about something at a higher level. And note that the link is working in terms of Tomcat finding/processing the context configuration file (and finding/setting up the context). It's just that the context configuration file gets overwritten (when it's a link). -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 10:46 AM To: Tomcat Users List Subject: Re: context configuration file being overwritten On Sat, 31 Jan 2004, Milt Epstein wrote: Hi there. I'm using tomcat 5.0.18 basically out of the box. I set up a webapp in a directory outside the tomcat/webapps directory. So I created a context configuration file for the webapp, and put a symbolic link to it in tomcat/conf/Catalina/localhost. This was all per the documentation and the source. So, everything starts up fine, the webapp works, but the context configuration file gets overwritten/truncated (i.e., it is then an empty file). The same thing happens with 5.0.16. This doesn't happen when I place a copy of the actual configuration file in that directory, instead of a symbolic link. (I'm trying to place as little as possible in the tomcat directory structure, to ease upgrade issues and such.) Any idea what's going on here? I searched all over and couldn't find any discussion of a similar issue. FWIW, my system is Linux (Fedora Core 1). Thanks! Hate to repost this unchanged, but I'm surprised this hasn't gotten any response. Any Tomcat developers on the list? Am I missing something about how context configurations files are supposed to work? Because otherwise this looks like a bug. Milt Epstein Research Programmer Integration and Software Engineering (ISE) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [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] Milt Epstein Research Programmer Integration and Software Engineering (ISE) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Having trouble using CGI with Tomcat 4.1...
Ken, Without knowing the steps you took, I have no idea. It would also help to know exactly what you are trying to do. Mark From: Ken Perregaux [mailto:[EMAIL PROTECTED] I have setup Tomcat to use CGI but when I try to run my script or EXE it get the following error... HTTP Status 500 Java.io.IOException: CreateProcess: perl name of program with full path Am I missing a configuration step? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk as a load balancer - Am I missing something obvious?
Hello, I have tried to configure mod_jk as a load balancer WITH sticky sessions. I get the load balancing to work perfectly, but NOT the sticky sessions. This is what I tried: I set up 4 ajp13 workers and 2 lb workers. Worker names are t1_a, t1_b, t2_a and t2_b. Load balancer names are a and b, and they point to: a -- t1_a, t2_a b -- t1_b, t2_b t1_a -- tomcat 1 port X t1_b -- tomcat 1 port Y t2_a -- tomcat 2 port X t2_b -- tomcat 2 port Y On Tomcat 1, jvmRoute is t1. On Tomcat 2, jvmRoute is t2. (So, jvmRoutes are set-up). Am I missing something very obvious? Do jvmRoutes need to have the same name as the workers? I find that strange, but I can't come up with something more logical... Thank you for any tip. Yours, Antonio Fiol P.S.: I am using two connectors on each Tomcat because one is configured with scheme=http secure=false, and the other is scheme=https secure=true. Our app relies upon that. smime.p7s Description: S/MIME Cryptographic Signature
RE: Having trouble using CGI with Tomcat 4.1...
I edited the web.xml file and renamed the servlets-cgi.renametojar file to servlets-cgi.jar, restarted Tomcat and tried to run a simple hello windows program or perl script and I get the error -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 2:21 PM To: 'Tomcat Users List' Subject: RE: Having trouble using CGI with Tomcat 4.1... Ken, Without knowing the steps you took, I have no idea. It would also help to know exactly what you are trying to do. Mark From: Ken Perregaux [mailto:[EMAIL PROTECTED] I have setup Tomcat to use CGI but when I try to run my script or EXE it get the following error... HTTP Status 500 Java.io.IOException: CreateProcess: perl name of program with full path Am I missing a configuration step? - 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]
Is this a Tomcat problem? Someone please point me in the right direction to solve this problem...
I am part of a large team working on a java project with Tomcat. We are using jdk1.3.1 and Tomcat 4.1.18. The problem is that the latest build of our application has a problem on my machine. I've tracked it down to what seems like a problem with the session. When code that retreives information from the session is executed, it is not giving a valid result back. The part that I am having problem with is that it is a problem only on my machine. In fact if I hit the Tomcat server on my machine from another machine on the network, then everything works fine as well. The same is true if I hit the Tomcat server on my machine from a virtual machine running also on my machine. It is only when I run the application itself on my machine. I did just check one other thing. That is I started IE on my machine but hit the tomcat server on another physical machine. This time the application worked fine on my machine. This is all very confusing, and I am at a loss to explain what is is on my machine or my tomcat server that is causing a problem. I've compared the different machine configuration (they are all pretty similar). The Internet Explore options on all the machines are identical. I would apreciate any ideas someone might have to offer. Thanks, -- Sanjay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: context configuration file being overwritten
On Wed, 4 Feb 2004, Cox, Charlie wrote: -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 11:46 AM To: Tomcat Users List Subject: Re: context configuration file being overwritten On Sat, 31 Jan 2004, Milt Epstein wrote: Hi there. I'm using tomcat 5.0.18 basically out of the box. I set up a webapp in a directory outside the tomcat/webapps directory. So I created a context configuration file for the webapp, and put a symbolic link to it in tomcat/conf/Catalina/localhost. This was all per the documentation and the source. So, everything starts up fine, the webapp works, but the context configuration file gets overwritten/truncated (i.e., it is then an empty file). The same thing happens with 5.0.16. This doesn't happen when I place a copy of the actual configuration file in that directory, instead of a symbolic link. (I'm trying to place as little as possible in the tomcat directory structure, to ease upgrade issues and such.) Have you tried using CATALINA_BASE and CATALINA_HOME to separate your webapps/configuration(BASE) and your tomcat installation(HOME)? Maybe this would serve your needs instead of symbolic links. [ ... ] Thanks for the response. I am aware of using CATALINA_HOME/CATALINA_BASE, but I don't think that would serve my needs better. That's more for when you're going to have multiple Tomcat instances, and you want to eliminate redundancy and reduce the amount of total space used. And it still has problems when it comes to upgrades. Also, regardless of whether this would serve my needs better, there's the issue of the behavior I'm seeing and whether or not it's a bug. If so, it should be addressed. Milt Epstein Research Programmer Integration and Software Engineering (ISE) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSVC and -server -security options
In the JSVC (tomcat 5.0) docs, there's no mention of being able to use the -server option to the JVM to get the server VM. Also, when using the startup.sh script, I can add the -security option to cause tomcat to run with a security manager. But with JSVC, I cannot add the -Djava.security.manager -Djava.security.policy==$CATALINA_HOME/conf/cata lina.policy like the catalina.sh script does. JSVC complains that both -D options are missing the single '='. Can I make these work with JSVC? Does it happen implicitly when JSVC launches the JVM inside itself? Thanks, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Keep a resource link persistent
hi, I have a resource link in the context entry of conf/server.xml for my application. When i unload the application using org.apache.catalina.ant.RemoveTask and than i try to reload it i loose the resource link. Is there any way of saving the resource link in the context file of my application in con/catalina/hostname? Thanks, hernâni - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem while accessing the MSSQL from tomcat
Hello arvind, Thanks a lot for this. can you send me some pointers where i can get some more info. Thanks , thanks again. Sincerly Rahul --- arvind singh [EMAIL PROTECTED] wrote: I dont want your web URL. I want the connection URL you are using to connect to DB. e.g. DBName=/yourdb?autoReconnect=true DBUserName=your user DBPassword=your password JDBCDriverName=jdbc:mysql:// These are connection parameters for MySQL. Note ?autoReconnect=true if you driver supports this please try adding to your connection URL. - Original Message - From: Sale Rahul [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 12:49 PM Subject: Re: Problem while accessing the MSSQL from tomcat Hello arvind , I donot mind giving you the URL. Which is little secure one.But let me know what are yo ulooking at.Hope you understand. Thanks for kind attention Sincerly Rahul --- arvind singh [EMAIL PROTECTED] wrote: Can you post the Database URL you are using to connect to the Database? - Original Message - From: Sale Rahul [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 12:05 PM Subject: Problem while accessing the MSSQL from tomcat Hello All, We are in deep trouble.Here is the problem, we are facing. First let me elobarate the scenario. We have Tomcat 4 running on the Linux box.We are trying to access the MS-SQL which is running on the Win2k . We are using Datasource to access the MS-SQL from Java Servlets. It has been observed that ,after hardly 10 to 20 requests there is Pipe broken error. We are accessing servlet from web browser.And we are NOT pressing STOP button when we can this URL.Why I am saying this is , in one of the bug report with ID 4663, it has been mentioned that in case the user presses the stop button in between , then in that case there is a problem of pipe broken.But we are not doing it any time.So not sure why is hat happening and how to fix it. Actual Exception in the catalina.out is as follows : java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket. at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source) at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) at com.microsoft.jdbc.sqlserver.tds.TDSConnection.init(Unknown Source) at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source) at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source) at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source) at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:171) at com.apsora.jsp.DataSrc.connect(DataSrc.java:24) at com.apsora.jsp.DataSrc.getQueryResult(DataSrc.java:38) at org.apache.jsp.TestJSP_jsp._jspService(TestJSP_jsp.java:123) at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at === message truncated === __ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is this a Tomcat problem? Someone please point me in the right direction to solve this problem...
Try burp proxy (Thanks again Mr Yansheng Lin) to see differences. Your server have only one ip ? No NAT on your network ? WAN adress ? My problem is not the same but perhaps it can help you in research : http://www.mail-archive.com/[EMAIL PROTECTED]/msg117526.html Good luck ! De : Chugh, Sanjay [EMAIL PROTECTED] Répondre à : Tomcat Users List [EMAIL PROTECTED] Date : Wed, 4 Feb 2004 12:43:40 -0700 À : Tomcat Users List [EMAIL PROTECTED] Objet : Is this a Tomcat problem? Someone please point me in the right direction to solve this problem... I am part of a large team working on a java project with Tomcat. We are using jdk1.3.1 and Tomcat 4.1.18. The problem is that the latest build of our application has a problem on my machine. I've tracked it down to what seems like a problem with the session. When code that retreives information from the session is executed, it is not giving a valid result back. The part that I am having problem with is that it is a problem only on my machine. In fact if I hit the Tomcat server on my machine from another machine on the network, then everything works fine as well. The same is true if I hit the Tomcat server on my machine from a virtual machine running also on my machine. It is only when I run the application itself on my machine. I did just check one other thing. That is I started IE on my machine but hit the tomcat server on another physical machine. This time the application worked fine on my machine. This is all very confusing, and I am at a loss to explain what is is on my machine or my tomcat server that is causing a problem. I've compared the different machine configuration (they are all pretty similar). The Internet Explore options on all the machines are identical. I would apreciate any ideas someone might have to offer. Thanks, -- Sanjay - 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 and virtual folders?
Hello all, I've been searching high and low but I can't seem to find out how to do the following. I'm a newbie here so please bear with me. I'd like to use apache and mod_jk to dynamically re-route all subfolders of my httpd web server to a single Tomcat webapp. I've got Apache running on port 80 with mod_jk configured to use tomcat on the same box. Tomcat is running on port 8080 http://www.myserver.com/ http://www.myserver.com:8080/mywebapp Folders /foo and /bar don't exist, and I need them to point to myserver.com:8080/mywebapp. The tricky part for me has been setting this up to be dynamically routed. What I'd like to do is have myserver.com/anyfolder route to myserver:8080/mywebapp, so I don't have to create a virtual host for every potential subfolder on myserver.com:80/ So, I need http://www.myserver.com/*/hello.do?param=nada to map to http://www.myserver.com:8080/mywebapp/hello.do?param=nada I need the url to always keep the original host/folder. I tried mod_rewrite, but it changes the URL after the redirection. If I use mod_jk any folders off of the default port 80 server have to co-exist as a webapp under tomcat(as far as I know). Can anyone help me out on this? Thanks! T- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
another newbie stupid question?
hi to all sorry to distube you guys again i have to add java user for a tomcat aplication under mysql from the dos shell is ther someone that could explain me how to..? please thanks in advance [EMAIL PROTECTED] administrateur http://entre-nous.qc.tc From: Papillon [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Is this a Tomcat problem? Someone please point me in theright direction to solve this problem... Date: Wed, 04 Feb 2004 16:02:17 -0500 Try burp proxy (Thanks again Mr Yansheng Lin) to see differences. Your server have only one ip ? No NAT on your network ? WAN adress ? My problem is not the same but perhaps it can help you in research : http://www.mail-archive.com/[EMAIL PROTECTED]/msg117526.html Good luck ! De : Chugh, Sanjay [EMAIL PROTECTED] Répondre à : Tomcat Users List [EMAIL PROTECTED] Date : Wed, 4 Feb 2004 12:43:40 -0700 À : Tomcat Users List [EMAIL PROTECTED] Objet : Is this a Tomcat problem? Someone please point me in the right direction to solve this problem... I am part of a large team working on a java project with Tomcat. We are using jdk1.3.1 and Tomcat 4.1.18. The problem is that the latest build of our application has a problem on my machine. I've tracked it down to what seems like a problem with the session. When code that retreives information from the session is executed, it is not giving a valid result back. The part that I am having problem with is that it is a problem only on my machine. In fact if I hit the Tomcat server on my machine from another machine on the network, then everything works fine as well. The same is true if I hit the Tomcat server on my machine from a virtual machine running also on my machine. It is only when I run the application itself on my machine. I did just check one other thing. That is I started IE on my machine but hit the tomcat server on another physical machine. This time the application worked fine on my machine. This is all very confusing, and I am at a loss to explain what is is on my machine or my tomcat server that is causing a problem. I've compared the different machine configuration (they are all pretty similar). The Internet Explore options on all the machines are identical. I would apreciate any ideas someone might have to offer. Thanks, -- Sanjay - 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] _ MSN Messenger : discutez en direct avec vos amis ! http://messenger.fr.msn.ca/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: another newbie stupid question?
USE mysql; GRANT ALL PRIVILEGES ON Your Database.* TO [EMAIL PROTECTED] IDENTIFIED BY 'yourpassword; GRANT ALL PRIVILEGES ON Your Database.* TO [EMAIL PROTECTED] IDENTIFIED BY 'yourpassword; FLUSH PRIVILEGES; Connection Parameters for MySQL: DBServerName=localhost DBName=/yourdb?autoReconnect=true DBUserName=youruser DBPassword=yourpassword JDBCDriverName=jdbc:mysql:// DBServerPort=3306 DBDriverName=com.mysql.jdbc.Driver - Original Message - From: FRANCOIS Dufour [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 3:09 PM Subject: another newbie stupid question? hi to all sorry to distube you guys again i have to add java user for a tomcat aplication under mysql from the dos shell is ther someone that could explain me how to..? please thanks in advance [EMAIL PROTECTED] administrateur http://entre-nous.qc.tc From: Papillon [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Is this a Tomcat problem? Someone please point me in theright direction to solve this problem... Date: Wed, 04 Feb 2004 16:02:17 -0500 Try burp proxy (Thanks again Mr Yansheng Lin) to see differences. Your server have only one ip ? No NAT on your network ? WAN adress ? My problem is not the same but perhaps it can help you in research : http://www.mail-archive.com/[EMAIL PROTECTED]/msg117526.html Good luck ! De : Chugh, Sanjay [EMAIL PROTECTED] Répondre à : Tomcat Users List [EMAIL PROTECTED] Date : Wed, 4 Feb 2004 12:43:40 -0700 À : Tomcat Users List [EMAIL PROTECTED] Objet : Is this a Tomcat problem? Someone please point me in the right direction to solve this problem... I am part of a large team working on a java project with Tomcat. We are using jdk1.3.1 and Tomcat 4.1.18. The problem is that the latest build of our application has a problem on my machine. I've tracked it down to what seems like a problem with the session. When code that retreives information from the session is executed, it is not giving a valid result back. The part that I am having problem with is that it is a problem only on my machine. In fact if I hit the Tomcat server on my machine from another machine on the network, then everything works fine as well. The same is true if I hit the Tomcat server on my machine from a virtual machine running also on my machine. It is only when I run the application itself on my machine. I did just check one other thing. That is I started IE on my machine but hit the tomcat server on another physical machine. This time the application worked fine on my machine. This is all very confusing, and I am at a loss to explain what is is on my machine or my tomcat server that is causing a problem. I've compared the different machine configuration (they are all pretty similar). The Internet Explore options on all the machines are identical. I would apreciate any ideas someone might have to offer. Thanks, -- Sanjay - 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] _ MSN Messenger : discutez en direct avec vos amis ! http://messenger.fr.msn.ca/ - 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 as a load balancer - Am I missing something obvious?
On Wed, February 4, 2004 1at 1:31 am, Antonio Fiol Bonnín wrote: Am I missing something very obvious? Do jvmRoutes need to have the same name as the workers? I find that strange, but I can't come up with something more logical... Yes, they do. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Loads Deleted Context?
Hi, No, I didn't create the context configuration file under /conf/[enginename]/[hostname]/. It was created by Tomcat on the fly. And my webapp wasn't starting up twice, which is good. Also I can delete that dir, but it would be recreated next time when I restart Tomcat5. I think the confusion lies on whether it's user's responsibily or the container's to clean up the configuration file after user deleting a context element in server.xml. In tomcat user-guide: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html, there is nothing about when a context descriptor is created, and what happens if you decide to delete a context in your server.xml. It would be nice if the container refreshes that directory/recreates all the context descriptors when server.xml is modified. But maybe there is some other setting I don't know of in 5. I didnt' have this problem with tomcat 4 before. Thanks! -Yan -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 12:12 PM To: Tomcat Users List Subject: RE: Tomcat Loads Deleted Context? I removed the Context for that webapp in conf/server.xml. Hmmm -- you had a Context element for this webapp in server.xml *and* a separate context configuration file? That's redundant, because they serve the same purpose. I'm not sure what would happen in that case -- were you per chance seeing your webapp starting up twice? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: context configuration file being overwritten
-Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 2:47 PM To: Tomcat Users List Subject: RE: context configuration file being overwritten On Wed, 4 Feb 2004, Cox, Charlie wrote: -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 11:46 AM To: Tomcat Users List Subject: Re: context configuration file being overwritten On Sat, 31 Jan 2004, Milt Epstein wrote: Hi there. I'm using tomcat 5.0.18 basically out of the box. I set up a webapp in a directory outside the tomcat/webapps directory. So I created a context configuration file for the webapp, and put a symbolic link to it in tomcat/conf/Catalina/localhost. This was all per the documentation and the source. So, everything starts up fine, the webapp works, but the context configuration file gets overwritten/truncated (i.e., it is then an empty file). The same thing happens with 5.0.16. This doesn't happen when I place a copy of the actual configuration file in that directory, instead of a symbolic link. (I'm trying to place as little as possible in the tomcat directory structure, to ease upgrade issues and such.) Have you tried using CATALINA_BASE and CATALINA_HOME to separate your webapps/configuration(BASE) and your tomcat installation(HOME)? Maybe this would serve your needs instead of symbolic links. [ ... ] Thanks for the response. I am aware of using CATALINA_HOME/CATALINA_BASE, but I don't think that would serve my needs better. That's more for when you're going to have multiple Tomcat instances, and you want to eliminate redundancy and reduce the amount of total space used. And it still has problems when it comes to upgrades. Actually I am using CATALINA_HOME/CATALINA_BASE for a single instance for the ease of upgrading. I have separated /webapps, /conf, and /temp from /bin, /common, /shared, and /server. The only issue that I see upon upgrade is that I need to copy my libs in /common and /shared if I install the new version to a new directory and change CATALINA_HOME appropriately. I'm interested to hear what other issues you see with this as /conf wouldn't be affected by a new tomcat point release to CATALINA_HOME. Also, regardless of whether this would serve my needs better, there's the issue of the behavior I'm seeing and whether or not it's a bug. If so, it should be addressed. I agree that it should be looked into. My suggestion was more of an alternative. Milt Epstein Research Programmer Integration and Software Engineering (ISE) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTTPS with Apache 2.0.48 and Tomcat 5.0.16
Am Montag, 2. Februar 2004 22:40 schrieb Oscar Carrillo: The method I describe may not work w/ mod_jk2. Frankly, I don't know. But I did a search and found this site, which seems to show that you can define these things in workers2.properties http://www.pixelfreak.net/howto/apache2_jk2_tomcat/socket.html Hi Oscar, thanks for your help! I looked at this site and tried this in my workers2.properties: [ajp13:localhost:8009] channel=channel.socket:localhost:8009 [uri:/demo_02/*:443] info=Map the whole webapp worker=ajp13:localhost:8009 My intension was to map all requests to /demo_02 that come over HTTPS to the tomcat project. Unfortunately, I get an error message saying: You don't have permission to access /demo_02 on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. When I remove the port specification of the mapping it works, but with both HTTP and HTTPS :-( Do you have any idea what might be the problem? Ralf. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk and virtual folders?
On Wed, February 4, 2004 1at 2:02 pm, Tim Diez wrote: I'd like to use apache and mod_jk to dynamically re-route all subfolders of my httpd web server to a single Tomcat webapp. http://www.myserver.com/ http://www.myserver.com:8080/mywebapp The tricky part for me has been setting this up to be dynamically routed. What I'd like to do is have myserver.com/anyfolder route to myserver:8080/mywebapp, so I don't have to create a virtual host for every potential subfolder on myserver.com:80/ So, I need http://www.myserver.com/*/hello.do?param=nada to map to http://www.myserver.com:8080/mywebapp/hello.do?param=nada I need the url to always keep the original host/folder. I tried mod_rewrite, but it changes the URL after the redirection. If I use mod_jk any folders off of the default port 80 server have to co-exist as a webapp under tomcat(as far as I know). You'll have to use mod_rewrite for this, and you'll have to make sure that you're using internal redirects (or forwards) instead of exernal redirects. This will require that you have mod_proxy installed as well. So something like this may work: RewriteEngine on RewriteRule ^/(.*)/(.*)$ http://www.myserver.com:8080/$2 [P,L] What rewrite config did you try before? -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.0.18 not responding as a Windows Service
I installed 5.0.18 on W2K, which automatically sets up Tomcat as a Windows Service. My J2SE 1.4.2 is installed at c:\java and I made the JAVA_HOME environment variable point to this directory. Tomcat is in c:\tomcat, which is also CATALINA_HOME. Tomcat runs fine using 'startup.bat'. When I try running the service, I receive the following error: Could not start the Apache Tomcat service on Local Computer. Error 1053: The service did not respond to the start or control request in a timely fashion The event log contains the following two entries that correspond to the above error: Timeout (3 milliseconds) waiting for the Apache Tomat service to connect. and The Apache Tomcat service failed to start due to the following error: The service did not respond to the start or control request in a timely fashion Note: calling the tomcat executable (c:\tomcat\bin\tomcat.exe) from the command line does nothing. Tomcat does not appear in the task manager. There is no response whatsoever. How do I fix this? Please help. Thanks in advance, Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTTPS with Apache 2.0.48 and Tomcat 5.0.16
Hi, I assume that's an Apache error your getting. If that's true, then that means it's not mapped to Tomcat. I don't know anything about the mod_jk2 syntax, which sounds like the problem. Do you do the proper include for the workers2.properties in httpd.conf, which I assume you need to do? Alternatively, if you've gotten it work in both HTTP and HTTPS, you can redirect HTTP to HTTPS. Then it works, but you don't have the option of having a separate webapp for HTTP. Good luck, Oscar On Wed, 4 Feb 2004, Ralf Schneider wrote: Am Montag, 2. Februar 2004 22:40 schrieb Oscar Carrillo: The method I describe may not work w/ mod_jk2. Frankly, I don't know. But I did a search and found this site, which seems to show that you can define these things in workers2.properties http://www.pixelfreak.net/howto/apache2_jk2_tomcat/socket.html Hi Oscar, thanks for your help! I looked at this site and tried this in my workers2.properties: [ajp13:localhost:8009] channel=channel.socket:localhost:8009 [uri:/demo_02/*:443] info=Map the whole webapp worker=ajp13:localhost:8009 My intension was to map all requests to /demo_02 that come over HTTPS to the tomcat project. Unfortunately, I get an error message saying: You don't have permission to access /demo_02 on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. When I remove the port specification of the mapping it works, but with both HTTP and HTTPS :-( Do you have any idea what might be the problem? Ralf. - 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: context configuration file being overwritten
Howdy, Hate to repost this unchanged, but I'm surprised this hasn't gotten any response. Any Tomcat developers on the list? Am I missing something about how context configurations files are supposed to work? Because otherwise this looks like a bug. Yes, there are tomcat developers who watch this list. There's always the possibility no one cares enough to respond to your post, or no one is interested enough to research it. If you think it's a bug, feel free to write and suggest a patch. If you don't think this is a bug, or don't feel like writing a patch, change your deployment practices. Personally I don't deploy anything other than a packed WAR file to tomcat's webapps directory. I don't make use of symlinks nor put anything in the conf directory, as support for these is not mandated by the servlet specification and I want my app and its deployment to be 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]
RE: Tomcat Loads Deleted Context?
Howdy, This is new functionality to tomcat5. Senor Epstein's description of what constitutes a deleted webapp is accurate and well-written. If you happen to think tomcat should refresh its conf directory periodically or upon some trigger, please feel free to contribute a patch ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 3:20 PM To: 'Tomcat Users List' Subject: RE: Tomcat Loads Deleted Context? Hi, No, I didn't create the context configuration file under /conf/[enginename]/[hostname]/. It was created by Tomcat on the fly. And my webapp wasn't starting up twice, which is good. Also I can delete that dir, but it would be recreated next time when I restart Tomcat5. I think the confusion lies on whether it's user's responsibily or the container's to clean up the configuration file after user deleting a context element in server.xml. In tomcat user-guide: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html, there is nothing about when a context descriptor is created, and what happens if you decide to delete a context in your server.xml. It would be nice if the container refreshes that directory/recreates all the context descriptors when server.xml is modified. But maybe there is some other setting I don't know of in 5. I didnt' have this problem with tomcat 4 before. Thanks! -Yan -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 12:12 PM To: Tomcat Users List Subject: RE: Tomcat Loads Deleted Context? I removed the Context for that webapp in conf/server.xml. Hmmm -- you had a Context element for this webapp in server.xml *and* a separate context configuration file? That's redundant, because they serve the same purpose. I'm not sure what would happen in that case -- were you per chance seeing your webapp starting up twice? - 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]
repost : url filtering
Sorry to repost this question, but does anybody have any suggestions for filtering urls in tomcat 4.1 (without apache) similar to the way apache's mod_rewrite works. I am currently looking through the tomcat load balancer documentation (I am a complete tomcat noob, and I'm struggling through). I have been unable to get the URLRewriter from tuckey.org working. If anybody can help out with this (or has experience with the URLRewriter tool) please contect me. I'm trying to do some basic filtering - regular expression replacement (changing /pageid/ to pageid= for example) Thanks - Duane - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTTPS with Apache 2.0.48 and Tomcat 5.0.16
Try this. workers.tomcat_home=/var/tomcat4 workers.java_home=/usr/java/java ps=/ #-- Active connectors. Typically one per tomcat instance. worker.list=ajp13 #-- ajp13 WORKER PARAMETERS -- worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 - Original Message - From: Oscar Carrillo [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 2:21 PM Subject: Re: HTTPS with Apache 2.0.48 and Tomcat 5.0.16 Hi, I assume that's an Apache error your getting. If that's true, then that means it's not mapped to Tomcat. I don't know anything about the mod_jk2 syntax, which sounds like the problem. Do you do the proper include for the workers2.properties in httpd.conf, which I assume you need to do? Alternatively, if you've gotten it work in both HTTP and HTTPS, you can redirect HTTP to HTTPS. Then it works, but you don't have the option of having a separate webapp for HTTP. Good luck, Oscar On Wed, 4 Feb 2004, Ralf Schneider wrote: Am Montag, 2. Februar 2004 22:40 schrieb Oscar Carrillo: The method I describe may not work w/ mod_jk2. Frankly, I don't know. But I did a search and found this site, which seems to show that you can define these things in workers2.properties http://www.pixelfreak.net/howto/apache2_jk2_tomcat/socket.html Hi Oscar, thanks for your help! I looked at this site and tried this in my workers2.properties: [ajp13:localhost:8009] channel=channel.socket:localhost:8009 [uri:/demo_02/*:443] info=Map the whole webapp worker=ajp13:localhost:8009 My intension was to map all requests to /demo_02 that come over HTTPS to the tomcat project. Unfortunately, I get an error message saying: You don't have permission to access /demo_02 on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. When I remove the port specification of the mapping it works, but with both HTTP and HTTPS :-( Do you have any idea what might be the problem? Ralf. - 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: HTTPS with Apache 2.0.48 and Tomcat 5.0.16
And add this to your Tomcat's server.xml !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=250 maxProcessors=400 enableLookups=false tomcatAuthentication=false acceptCount=200 debug=0/ - Original Message - From: Oscar Carrillo [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 2:21 PM Subject: Re: HTTPS with Apache 2.0.48 and Tomcat 5.0.16 Hi, I assume that's an Apache error your getting. If that's true, then that means it's not mapped to Tomcat. I don't know anything about the mod_jk2 syntax, which sounds like the problem. Do you do the proper include for the workers2.properties in httpd.conf, which I assume you need to do? Alternatively, if you've gotten it work in both HTTP and HTTPS, you can redirect HTTP to HTTPS. Then it works, but you don't have the option of having a separate webapp for HTTP. Good luck, Oscar On Wed, 4 Feb 2004, Ralf Schneider wrote: Am Montag, 2. Februar 2004 22:40 schrieb Oscar Carrillo: The method I describe may not work w/ mod_jk2. Frankly, I don't know. But I did a search and found this site, which seems to show that you can define these things in workers2.properties http://www.pixelfreak.net/howto/apache2_jk2_tomcat/socket.html Hi Oscar, thanks for your help! I looked at this site and tried this in my workers2.properties: [ajp13:localhost:8009] channel=channel.socket:localhost:8009 [uri:/demo_02/*:443] info=Map the whole webapp worker=ajp13:localhost:8009 My intension was to map all requests to /demo_02 that come over HTTPS to the tomcat project. Unfortunately, I get an error message saying: You don't have permission to access /demo_02 on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. When I remove the port specification of the mapping it works, but with both HTTP and HTTPS :-( Do you have any idea what might be the problem? Ralf. - 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]
[Fwd: Catalina suspends for no reason?!?]
I have discovered something that may be in effect linked to my previous email, regard catalina.sh: I use `catalina.sh stop` and `catalina.sh start -security` to restart the tomcat web server. However, I have come to realise that on occaison, the 'stop' command does not work, and when I restart, I thereafter create two copies of the original tomcat. this should not be possible because the first tomcat should be using the same port, and thus blocking the restart, but somehow, the restart does happen?? When I stop the second process, then tomcat officially stops working, even though the original process is still runnning. Has this happened to anyone else? Thanks Sam Seaver Original Message Subject:Catalina suspends for no reason?!? Date: Wed, 04 Feb 2004 10:38:16 -0600 From: Sam Seaver [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] I have Catalina Tomcat 4.1.24 connected via jk2 to Httpd 2.0.47 on RH9. It seems every now and then, tomat just simply hangs. When I try to shutdown the Catalina process via catalina.sh, it doesnt remove the process?! So I have to 'kill -15' it, then start up catalina again. I get very little information as to what happened, but checking jkstatus I can see where the requests stopped in the scoreboard. It's hard to tell sometimes, because httpd serves up the html pages just fine, but its only when I try to access a *.jsp page that i realise catalina is hanging again. The only errors I get are from httpd as listed below: [Wed Feb 04 09:37:47 2004] [error] msgAjp.receive(): Bad signature 00 [Wed Feb 04 09:37:47 2004] [error] channelSocket.receive(): Bad header [Wed Feb 04 09:37:47 2004] [error] workerEnv.processCallbacks() Error reading reply [Wed Feb 04 09:37:47 2004] [error] ajp13.service() ajpGetReply recoverable error 12 [Wed Feb 04 09:37:47 2004] [error] channelSocket.open() connect failed 127.0.0.1:8009 111 Connection refused [Wed Feb 04 09:37:47 2004] [error] ajp13.connect() failed ajp13:localhost:8009 [Wed Feb 04 09:37:47 2004] [error] ajp13.service() failed to connect endpoint errno=111 Connection refused all these lines are repeated numerous times but at the exact same time, to the second, when i tried accessing the JSP page. Previously, tomcat would hang on a sunday morning, and I disabled the jk2 logging feature and it seems to fix this, but it has now since hanged again. Does anyone have any idea what is happening? thanks Sam - 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: HTTPS with Apache 2.0.48 and Tomcat 5.0.16
Am Mittwoch, 4. Februar 2004 21:53 schrieb arvind singh: Try this. workers.tomcat_home=/var/tomcat4 workers.java_home=/usr/java/java ps=/ #-- Active connectors. Typically one per tomcat instance. worker.list=ajp13 #-- ajp13 WORKER PARAMETERS -- worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 This seems to be a configuration for Tomcat 4.x and mod_jk, isn't it? But I have Tomcat 5.0.16 and mod_jk2. So I guess that won't help. Ralf. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Fwd: Catalina suspends for no reason?!?]
Howdy, However, I have come to realise that on occaison, the 'stop' command does not work, and when I restart, I thereafter create two copies of the original tomcat. this should not be possible because the first tomcat should be using the same port, and thus blocking the restart, but somehow, the restart does happen?? When I stop the second process, then tomcat officially stops working, even though the original process is still runnning. Has this happened to anyone else? You likely have non-daemon threads that prevent the JVM from existing. Tomcat shuts its own threads down, including the listeners, so the ports are available for other processes, and you can start another tomcat. But the first JVM instance can't exit. You are responsible for shutting down threads started by your application or 3rd party libraries it uses. Alternatively, make all your threads daemons, or add shutdown code in a context listener or a JVM shutdown hook. 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]
FIX THIS! Bad dependency is culprit - Tomcat 5.0.18 not responding as a Windows Service
The error I described below was fixed by installing a public JRE. I do not want a public runtime! I want the java installation in c:\java only, NOT in c:\program files\java\j2re1.4.2_03!!! Developers, please remove this ridiculous dependency. 4.1.28 worked just fine using my single installation at c:\java, but 5.0.18 won't?!?! -Original Message- From: Turansky, Mark Sent: Wednesday, February 04, 2004 3:30 PM To: Tomcat Users List Subject: Tomcat 5.0.18 not responding as a Windows Service I installed 5.0.18 on W2K, which automatically sets up Tomcat as a Windows Service. My J2SE 1.4.2 is installed at c:\java and I made the JAVA_HOME environment variable point to this directory. Tomcat is in c:\tomcat, which is also CATALINA_HOME. Tomcat runs fine using 'startup.bat'. When I try running the service, I receive the following error: Could not start the Apache Tomcat service on Local Computer. Error 1053: The service did not respond to the start or control request in a timely fashion The event log contains the following two entries that correspond to the above error: Timeout (3 milliseconds) waiting for the Apache Tomat service to connect. and The Apache Tomcat service failed to start due to the following error: The service did not respond to the start or control request in a timely fashion Note: calling the tomcat executable (c:\tomcat\bin\tomcat.exe) from the command line does nothing. Tomcat does not appear in the task manager. There is no response whatsoever. How do I fix this? Please help. Thanks in advance, Mark - 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: HTTPS with Apache 2.0.48 and Tomcat 5.0.16
Am Mittwoch, 4. Februar 2004 20:21 schrieb Oscar Carrillo: Alternatively, if you've gotten it work in both HTTP and HTTPS, you can redirect HTTP to HTTPS. Then it works, but you don't have the option of having a separate webapp for HTTP. I tried this with the following statement in httpd.conf (outside a VirtualHost declaration): Redirect /demo_02 https://localhost/demo_02 But that had no effect. I could access the page with both HTTP and HTTPS. Ralf. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.0.18 not responding as a Windows Service
I recently ran into the same problem on a Windows XP machine. I tried everything I could find in the archives: use the EXE installer, use the ZIP package and run SERVICE install to create the service. I installed, uninstalled, and re-installed multiple times. Fortunately I had a second machine that was working to compare to. I found my answer in the registry. In \HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Tomcat5 the start key was set to a value of 0x03. I set the value to what the working machine uses: 0x02 (I think this corresponds to Automatic startup in the Services applet under Control Panel). I rebooted and like magic everything worked. I can even change the Tomcat service from automatic to manual and it still works. HTH. Clay Hensley - Original Message - From: Turansky, Mark [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 2:30 PM Subject: Tomcat 5.0.18 not responding as a Windows Service I installed 5.0.18 on W2K, which automatically sets up Tomcat as a Windows Service. My J2SE 1.4.2 is installed at c:\java and I made the JAVA_HOME environment variable point to this directory. Tomcat is in c:\tomcat, which is also CATALINA_HOME. Tomcat runs fine using 'startup.bat'. When I try running the service, I receive the following error: Could not start the Apache Tomcat service on Local Computer. Error 1053: The service did not respond to the start or control request in a timely fashion The event log contains the following two entries that correspond to the above error: Timeout (3 milliseconds) waiting for the Apache Tomat service to connect. and The Apache Tomcat service failed to start due to the following error: The service did not respond to the start or control request in a timely fashion Note: calling the tomcat executable (c:\tomcat\bin\tomcat.exe) from the command line does nothing. Tomcat does not appear in the task manager. There is no response whatsoever. How do I fix this? Please help. Thanks in advance, Mark - 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: charset problem
Sander de Boer [EMAIL PROTECTED] wrote: Since I have upgraded to tomcat 4.1.29(from 4.1.27) tomcat sets a default charset(ISO-8859-1) I set: % response.setContentType(audio/x-pn-realaudio); % [EMAIL PROTECTED] language=java contentType=audio/x-pn-realaudio % Tomcat gives: Content-Type: audio/x-pn-realaudio;charset=ISO-8859-1 I have also tried tomcat 4.1.30(alpha) but with the same problem. So, what is the problem? Of course it should not really be a problem, because specifying the correct charset when you are specifying the content type should be rather straight-forward. But I gather that you want it _not_ to specify the charset because a certain program (real-player) completely chokes in that? To work around this kind of troubles I agree that it should be possible to explicitely set the content type while explicitily _not_ setting the charset. Why is that not possible? Michiel -- Michiel Meeuwissen Mediapark C101 Hilversum +31 (0)35 6772979 nl_NL eo_XX en_US mihxil' [] () - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTTPS with Apache 2.0.48 and Tomcat 5.0.16
You should try it in the VirtualHost declaration. That's where I would put it. Oscar On Wed, 4 Feb 2004, Ralf Schneider wrote: Am Mittwoch, 4. Februar 2004 20:21 schrieb Oscar Carrillo: Alternatively, if you've gotten it work in both HTTP and HTTPS, you can redirect HTTP to HTTPS. Then it works, but you don't have the option of having a separate webapp for HTTP. I tried this with the following statement in httpd.conf (outside a VirtualHost declaration): Redirect /demo_02 https://localhost/demo_02 But that had no effect. I could access the page with both HTTP and HTTPS. Ralf. - 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]