Re: Pls Help!! Uploading an image
Try UploadBean from http://www.javazoom.net/jzservlets/uploadbean/uploadbean.html It's very easy for use in JSP. An exapmple is also there. Uma Maheswar wrote: Hi, I tried using O'Reilly, but it is confusing. I need a simple one than that one. Can you help me? Uma - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, March 05, 2002 2:34 AM Subject: Re: Pls Help!! Uploading an image Uma, The O'Reilly servlets book has a good example (including code) where you can upload files (including images as part of a form). See http://www.servlets.com/cos/javadoc/com/oreilly/servlet/m ultipart/MultipartP arser.html for more info. Hope this helps. Satyakant Evani - Original Message - From: Uma Maheswar [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, March 04, 2002 10:49 AM Subject: Pls Help!! Uploading an image HI, I need help from any of you. I need a programme to upload an image to the database while submitting a form. If any one is having the source code pls help me. Regards Uma nope i am using tomcat from my user area .. both tomcat and apache run from my user area there is some problem with a particular .so file which it is not able to find -Original Message- From: brian ally [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 11:04 PM To: Tomcat Users List Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path Are you starting tomcat as root? On my linux box, if i su to root, all manner of LD_LIBRARY_PATH problems begin. i need to su - (with the dash). Could this be your problem? /b Abhishek Pamecha wrote: it is there.. -Original Message- From: Toru Watanabe [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 2:34 PM To: Tomcat Users List Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path First, please make sure that Oracle client is installed in your machine. Abhishek Thanks buddy! Abhishek but ..i already did that Abhishek but i have a a requirement which says i have to use oci client only Abhishek any other solution ??? UnsatisfiedLinkError means JVM can't find shared library. You need to add shared library path to environment variable. If you use solaris or linux, then you should add following statement in your tomcat.sh. LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH export LD_LIBRARY_PATH if you use HP-UX, then SHLIB_PATH=$ORACLE_HOME/lib:$SHLIB_PATH export SHLIB_PATH if you use Windows, then you should add following to tomcat.bat. set PATH=%ORACLE_HOME%\lib;%PATH% then it will be able to find shared library. regards, Watanabe. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Compiling mod_webapp.so ...
Charles Swarts a écrit : Yes, I had to do this too, to compile the mod_webapp module with EAPI support. You are just missing one step. After you get the fresh cvs snapshot (like you did ), go forth like this: # cd jakarta-tomcat-connectors/webapp # ./support/buildconf.sh # CFLAGS=-DEAPI # ./configure --with-apxs=/usr/bin/apxs #make thanks, charles; even with this flag, I always get the apache warning ... what's wrong ? (considering answer from brian ally, but being very curious) Then copy your compiled mod_webapp.so to where apache is going to look for it: # cp apache-1.3/mod_webapp.so /usr/local/apache/libexec After doing so when you startup apache you will not see the EAPI warning. Hope this helps, - Charles [EMAIL PROTECTED] wrote: Hi everyone, Because of an upload file's bug with mod_webapp-1.0-2.i386.rpm, I've done a snapshot from cvs to compile my own .so . It seems that the bug has diseappered, but when I restart Apache, it tells me : Starting httpd: [Mon Mar 4 09:18:05 2002] [warn] Loaded DSO modules/mod_webapp.so uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI) Here are the steps to compile : cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout jakarta-tomcat-connectors/webapp cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout apr cd $SNAPSHOT/webapp ./support/buildconf.sh ./configure --with-apxs=/usr/bin/apxs --with-apr=./apr/ make and I get my mod_webapp.so in $SNAPSHOT/webapp/apache-1.3/ does anyone know where to include the -DEAPI compiling flag ? I'm using these RPM's on a Linux RedHat 7.1 apache-1.3.22-1.7.1 (with mod_throttle-3.1.2-3 mod_put-1.3-2 mod_bandwidth-2.0.3-2) tomcat4-4.0.2-3 thanks in advance. -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: JSP documentation
http://java.sun.com/products/jsp/tags/11/tags11.html explains syntax of all JSP tags (like %=). Ming wrote: Hi, I'm very new at Tomcat and JSP programming but have written some JSP scripts. Can someone tell me what's the best way to write in-program documentation? I mean the documentation that can be embedded in the program. I'm planning to write a separate documentation but heard that there might be a way that I can embed the documentation in the program and can be viewed separately. Any information will be really helpful. Thanks. Ming -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Issue with Catalina Jar
On Tue, 5 Mar 2002, todd tredeau wrote: Date: Tue, 05 Mar 2002 00:18:20 -0500 From: todd tredeau [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Issue with Catalina Jar I have a problem, as several others also have noticed this problem / issue. I am not submitting a bug, as I just may be stupid. In tomcat 4.0.1, Jetspeed runs fine, no problem. In 4.0.2- (i haven't found the cvs yet) it has errors. If you replaced just the catalina.jar back to 4.0.1 it will work, no problem. I believe the problem is in org.apache.turbine.util.TurbineException: Error rendering Velocity template: /controls/html/jetspeed.vm: Invocation of method 'getContent' in class org.apache.jetspeed.portal.security.portlets.CacheableStatefulPortletWrapper threw exception class java.lang.NoClassDefFoundError : javax/xml/transform/Source Since none of the above indicates that the problem is Tomcat itself, your best bet would be to post a bug report in the bug tracking, under the appropriate product category (Jetspeed, or Cocoon, or Velocity ...). In my experience, developers on all of these projects pay a *lot* of attention to bug reports, whereas they may or may not be subscribed to TOMCAT-USER (which obviously focuses on Tomcat related issues). This is consistent on multiple platforms, at least with jvm 1.3.1... Does anyone know someone in cocoon project... I need to communicate with someone there who is active in programming. thanks todd http://www.wiserlabz.com collaborative project to promote Novell and Open Source solutions Craig McClanahan -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Setting up jdbc connections
Here is how I install mysql JDBC. 1. In server.xml (no need realm): Resource name=lev/DataSource auth=Container type=javax.sql.DataSource/ ResourceParams name=lev/DataSource parameternameuser/namevalue.../value/parameter !-- your login -- parameternamepassword/namevalue.../value/parameter!-- your passwd -- parameternamedriverClassName/name valueorg.gjt.mm.mysql.Driver/value/parameter parameternamedriverName/name valuejdbc:mysql://localhost:3306/WV/value/parameter /ResourceParams 2. In $CATALINA_HOME/webapps/examples/WEB-INF/web.xml: resource-ref res-ref-namelev/DataSource/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth res-sharing-scopeShareable/res-sharing-scope /resource-ref 3. In yout JSP or Bean: Context ctx = new InitialContext(); Context envCtx = (Context)ctx.lookup(java:comp/env); DataSource _ds = (DataSource)envCtx.lookup(lev/DataSource); Connection con _ds.getConnection(); ... Statement st = con.createStatement(...); ResultSet rs = st.executeQuery(select * from bla_bla); JNDI will create instance of your DataSource (with automatic connection). But you have to have tyrex*.jar in one of common dirs. If not I advise you to switch to Tomcat 4.0.x. Also you must put your (Postgres) JDBC jar into $CATALINA_HOME/lib Good luck. Andrew Falanga wrote: Hello everyone, Setting up Tomcat is NO easy project. I've been struggling for about a week and a half to get tomcat to read a special servlet/application/I really don't know what to call it. (Unfortunately, that's my biggest problem, I'm very unfamiliar with things I'm playing around with right now.) Ok, in simplest terms possible here's the deal. I'm trying to get a working model of something my company calls a portal. Basically, it's nothing more than a product that will allow a person to use *.jsp rendered web pages to access/control/manipulate data contained withing Oracle databases. This is the long term. Right now, I need to get the application working to allow someone to log in. The database which controls user access is NOT part of Oracle. It is a PostgreSQL database. How, exactly, do I setup the JDBC stuff to interact with PostgreSQL? I've been reading through the users guide, the paper on server.xml and the FAQ. The information is comprehensive, I do think lacking in some parts, but none-the-less comprehensive. (I do not mean to start flame wars or anything else. However, for example, I downloaded and installed tomcat 3.3a via rpm for Red Hat Linux, the rpm was made by tomcat developers not red hat. After installing, I'm reading through the users guide and there are several directories meantioned that DO NOT exist. Such as, %TOMCAT_HOME/bin and many others. This is what I mean by lacking.) How exactly am I going to go about setting up the database connectivity? From what I've read, I've got to configure some kind of a JDBC Realm in the server.xml, but how exactly. I did try, following the syntax example given in one of the user guide documents, but after restarting tomcat, tomcat was broken. Absolutely, nothing was being served up. I did make syntax substitutions to allow for my database vs. the database given in the example, and yes I'm absolutely open to the fact that my syntax was wrong. Basically, what needs to be done? I'm really nearing the end of my rope on this one. Andy -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Who uses connection pool?
Hi! Could you tell me please, does anybody successfully use database connection pool? -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Who uses connection pool?
sure check out bitmechanic.com, that´s a fine place to start. -hope it helps [EMAIL PROTECTED] -Original Message- From: Lev Assinovsky [mailto:[EMAIL PROTECTED]] Sent: 5. mars 2002 09:09 To: 'Tomcat Users List' Subject: Who uses connection pool? Hi! Could you tell me please, does anybody successfully use database connection pool? -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7а E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: [Ajp13] bad read: -103 error !
see if : http://www.apachelabs.org/tomcat-user/200110.mbox/%3C88500E0F870AA542B63 [EMAIL PROTECTED]%3E ...helps -bye reynir -Original Message- From: ravi [mailto:[EMAIL PROTECTED]] Sent: 5. mars 2002 04:44 To: Tomcat Users List Subject: [Ajp13] bad read: -103 error ! I am using tomcat 4.01 on win2k with ajp13 connector. All my applications are running properly but in the stdout logs following message is logged every 2 to 3 second!. [Ajp13] bad read: -103 What could be the problem and How to fix this? Thanks in advance, With Best Regards, Ravi Naidu -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Who uses connection pool?
I already looked in there. I was confused that their pool is for GSP. Tomcat uses Tyrex by default. How about that? Reynir H?bner wrote: sure check out bitmechanic.com, that´s a fine place to start. -hope it helps [EMAIL PROTECTED] -Original Message- From: Lev Assinovsky [mailto:[EMAIL PROTECTED]] Sent: 5. mars 2002 09:09 To: 'Tomcat Users List' Subject: Who uses connection pool? Hi! Could you tell me please, does anybody successfully use database connection pool? -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7а E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Who uses connection pool?
yeah you can use that one, it is good, and you have docs on it in the jakarta website. Bitmechanics pool is not only for GSP. I've never used GSP, but I have used the JDBC-pool alot. it's good for most drivers, I've only had problems using it with DB2 drivers. hope it helps, [EMAIL PROTECTED] -Original Message- From: Lev Assinovsky [mailto:[EMAIL PROTECTED]] Sent: 5. mars 2002 09:37 To: Tomcat Users List Subject: Re: Who uses connection pool? I already looked in there. I was confused that their pool is for GSP. Tomcat uses Tyrex by default. How about that? Reynir H?bner wrote: sure check out bitmechanic.com, thatÂs a fine place to start. -hope it helps [EMAIL PROTECTED] -Original Message- From: Lev Assinovsky [mailto:[EMAIL PROTECTED]] Sent: 5. mars 2002 09:09 To: 'Tomcat Users List' Subject: Who uses connection pool? Hi! Could you tell me please, does anybody successfully use database connection pool? -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Ð E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
tomcat-4.0.3 and Ajp12
Hi, does tomcat-4.0.3 support Ajp12 too or only Ajp13? Our provider's server (Zeus) can work only with Ajp12. Zsolt -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Protect Directory with Memory Realm...
Hi everybody, i try to protect an administrators directory with memory realm in tomcat but it doesn't work. In the server.xml i added Realm className=org.apache.catalina.realm.MemoryRealm/ In my web.xml for this Web i added the following lines: security-constraint web-resource-collection web-resource-nameAuthenticate/web-resource-name !-- I created a directory web in my TOMCAT_HOME/webapps/myapps/ which has a directory for admin only and i want to protect this directory -- url-pattern/web/admin/*/url-pattern /web-resource-collection auth-constraint !-- this role is the same as in the tomcat-users.xml -- role-namemyrole/role-name /auth-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nameAuthenticate/realm-name /login-config and last but not least i added the following line in my tomcat-users.xml: user name=test password=test roles=myrole but it doesn't work... Did i something wrong? or have i to configure the xml files in an otherway? hope to receive help... thx Stephan -- -- Stephan Mülhaus [EMAIL PROTECTED] NWU Gesellschaft fuer Netzwerk und Kommunikation mbH Phone: +49-231-986510 - 0 FAX: +49-231-986522 - 2 --
Realm not recognising user and password property
Hello I'm stuck with a JDBC Realm problem. In the server.xml I have included Context path=/assistant docBase=assistant debug=0 reloadable=true Logger className=org.apache.catalina.logger.FileLogger prefix= assistantLog suffix=.txt timestamp=true/ Environment name=maxExemptions type=java.lang.Integer value=15/ Parameter name=context.param.name value=context.param.value override =false/ Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.sybase.jdbc2.jdbc.SybDriver digest=SHA connectionURL= jdbc:sybase:Tds:host_name:port/dbname?user=***;password=*** userTable =realmUsers userNameCol=user_name userCredCol=user_pswd userRoleTable =realmRoles roleNameCol=role_name/ /Context Unfortunately, Tomcat will not start with this in the server.xml. It states the user name property is too long. I have experimented with various characters between the user=**;password=** e.g. ,:/ to no avail, but the same error message was returned, suggesting that Tomcat is not recognising the split character between the user and password property. Any ideas welcome, this problem is holding me back, as I need to provide user security before I can develop the rest of the application. Configuration jdk: 1.3.1_02 Tomcat: 4.0.1 Sybase: 11.9.2 Thanks Julie. This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase Co., its subsidiaries and affiliates. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Realm not recognising user and password property
Julie - Try using an ampersand (). This should be resolved in the URL. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 05 March 2002 10:00 To: [EMAIL PROTECTED] Subject: Realm not recognising user and password property Hello I'm stuck with a JDBC Realm problem. In the server.xml I have included Context path=/assistant docBase=assistant debug=0 reloadable=true Logger className=org.apache.catalina.logger.FileLogger prefix= assistantLog suffix=.txt timestamp=true/ Environment name=maxExemptions type=java.lang.Integer value=15/ Parameter name=context.param.name value=context.param.value override =false/ Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.sybase.jdbc2.jdbc.SybDriver digest=SHA connectionURL= jdbc:sybase:Tds:host_name:port/dbname?user=***;password=*** userTable =realmUsers userNameCol=user_name userCredCol=user_pswd userRoleTable =realmRoles roleNameCol=role_name/ /Context Unfortunately, Tomcat will not start with this in the server.xml. It states the user name property is too long. I have experimented with various characters between the user=**;password=** e.g. ,:/ to no avail, but the same error message was returned, suggesting that Tomcat is not recognising the split character between the user and password property. Any ideas welcome, this problem is holding me back, as I need to provide user security before I can develop the rest of the application. Configuration jdk: 1.3.1_02 Tomcat: 4.0.1 Sybase: 11.9.2 Thanks Julie. This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase Co., its subsidiaries and affiliates. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
don't found packages...
Hello! I'm a new french user of Apache Tomcat/4.0.3. The installation was successfull! But not the compilation of my first HelloWorld servlet. The compilator does not found the right classes like javax.servlet, javax.servlet.http and so although I'well configurated my classpath like SET CLASSPATH=c:\tomcat\common\lib. What do you think it's wrong? By the way, I'm under Windows Milllenium. Thanks a lot for you answers Cyril.
AW: don't found packages...
You have to add the jars to the classpath, not the directory. SET CLASSPATH=c:\tomcat\common\lib\a.jar;c:\tomcat\common\lib\b.jar -Ursprüngliche Nachricht- Von: cyril vidal [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 5. März 2002 11:36 An: [EMAIL PROTECTED] Betreff: don't found packages... snip/ SET CLASSPATH=c:\tomcat\common\lib. snip/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Who uses connection pool?
I am not sure Tyrex's connection pool really works. Do you use JNDI when you work with bitmechanics staff? If yes could you please show me that? Reynir Hubner wrote: yeah you can use that one, it is good, and you have docs on it in the jakarta website. Bitmechanics pool is not only for GSP. I've never used GSP, but I have used the JDBC-pool alot. it's good for most drivers, I've only had problems using it with DB2 drivers. hope it helps, [EMAIL PROTECTED] -Original Message- From: Lev Assinovsky [mailto:[EMAIL PROTECTED]] Sent: 5. mars 2002 09:37 To: Tomcat Users List Subject: Re: Who uses connection pool? I already looked in there. I was confused that their pool is for GSP. Tomcat uses Tyrex by default. How about that? Reynir H?bner wrote: sure check out bitmechanic.com, thatÂs a fine place to start. -hope it helps [EMAIL PROTECTED] -Original Message- From: Lev Assinovsky [mailto:[EMAIL PROTECTED]] Sent: 5. mars 2002 09:09 To: 'Tomcat Users List' Subject: Who uses connection pool? Hi! Could you tell me please, does anybody successfully use database connection pool? -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Ð E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Who uses connection pool?
Lev, I have this impression also of Tyrex. Every servlet seems to be a new pool. Is that your experiance. Each time the servlet runs a new connection. Andrew -Original Message- From: Lev Assinovsky [mailto:[EMAIL PROTECTED]] Sent: 05 March 2002 10:53 To: Tomcat Users List Subject: Re: Who uses connection pool? I am not sure Tyrex's connection pool really works. Do you use JNDI when you work with bitmechanics staff? If yes could you please show me that? Reynir Hubner wrote: yeah you can use that one, it is good, and you have docs on it in the jakarta website. Bitmechanics pool is not only for GSP. I've never used GSP, but I have used the JDBC-pool alot. it's good for most drivers, I've only had problems using it with DB2 drivers. hope it helps, [EMAIL PROTECTED] -Original Message- From: Lev Assinovsky [mailto:[EMAIL PROTECTED]] Sent: 5. mars 2002 09:37 To: Tomcat Users List Subject: Re: Who uses connection pool? I already looked in there. I was confused that their pool is for GSP. Tomcat uses Tyrex by default. How about that? Reynir H?bner wrote: sure check out bitmechanic.com, thatÂs a fine place to start. -hope it helps [EMAIL PROTECTED] -Original Message- From: Lev Assinovsky [mailto:[EMAIL PROTECTED]] Sent: 5. mars 2002 09:09 To: 'Tomcat Users List' Subject: Who uses connection pool? Hi! Could you tell me please, does anybody successfully use database connection pool? -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Ð E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: tc4-- multiple catalina bases, one binary
-Original Message- From: Rami Friedman [mailto:[EMAIL PROTECTED]] Sent: 4 March 2002 18:59 To: [EMAIL PROTECTED] Subject: tc4-- multiple catalina bases, one binary Hi. Hi Rami I'm trying to create an environment in which many developers can develop on a single instance of tomcat on a single host. I've written a script that sets each user's CATALINA_BASE appropriately and creates the webapps and conf directories under the respective base dirs. It also assigns a unique port to each developer and puts that port in the developer's server.xml (port attribute of the Connector element). My problem is that the startup.sh and shutdown.sh scripts for any given developer appear to be starting and stopping the entire tomcat instance-- not just the connector listening on the developer's assigned port. What do the generated startup.sh and shutdown.sh look like? I presume that they referenece the correct ports? What am I doing wrong? Thanks. Cheers John (BTW, I did search the archives before posting this question.) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: don't found packages...
You should provide JAVA_HOME environment variable pointed to your Java SDK. cyril vidal wrote: Hello! I'm a new french user of Apache Tomcat/4.0.3. The installation was successfull! But not the compilation of my first HelloWorld servlet. The compilator does not found the right classes like javax.servlet, javax.servlet.http and so although I'well configurated my classpath like SET CLASSPATH=c:\tomcat\common\lib. What do you think it's wrong? By the way, I'm under Windows Milllenium. Thanks a lot for you answers Cyril. -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Poolman integration with Tomcat 4.0.1
Hello Once the connection pools are specified in Poolman.xml is it necessary to include the database details in as a Resource tag in the server.xml and as resource-ref in the web.xml? If so should the driver type be com.codestudio.sql.PoolMan regardless of the database type? Thanks Julie Configuration jdk: 1.3.1_02 Tomcat: 4.0.1 Sybase: 11.9.2 Poolman: 2.1 This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase Co., its subsidiaries and affiliates. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Who uses connection pool?
Andrew, I found the following in Tyrex mailing archive: - cut here - Re: [tyrex-dev] JDBC Pool Size in Tomcat 4.0 Date: Fri, 05 Oct 2001 13:07:46 -0700 From: arkin [EMAIL PROTECTED] Subject: Re: [tyrex-dev] JDBC Pool Size in Tomcat 4.0 The connection you get from getConnection() is always a new connection. This is a logical connection, and the driver is required to always give a new logical connection when getConnection() is called. Tyrex obtains a physical connection by calling a different getConnection() method on a PooledConnectionDataSource. This returns a PooledConnection, from which any number of logical connections can be obtained without opening a new network connection. The driver must support the PooledConnectionDataSource or XADataSource interfaces, and must implement them in such a way that opening a new logical connection does not open a new physical connection. We are using Oracle 8i, Sybase 12.5 and DB2 7.1 and experiencing no problems. arkin cut here -- So they say that everything depends on your database, however I found pool related staff in the tyrex source code. Also I am surprised that people in this mailing list don't response. Though I am sure (of my experience) the real work is impossible without connection pool! Andrew Rodwell wrote: Lev, I have this impression also of Tyrex. Every servlet seems to be a new pool. Is that your experiance. Each time the servlet runs a new connection. Andrew -Original Message- From: Lev Assinovsky [mailto:[EMAIL PROTECTED]] Sent: 05 March 2002 10:53 To: Tomcat Users List Subject: Re: Who uses connection pool? I am not sure Tyrex's connection pool really works. Do you use JNDI when you work with bitmechanics staff? If yes could you please show me that? Reynir Hubner wrote: yeah you can use that one, it is good, and you have docs on it in the jakarta website. Bitmechanics pool is not only for GSP. I've never used GSP, but I have used the JDBC-pool alot. it's good for most drivers, I've only had problems using it with DB2 drivers. hope it helps, [EMAIL PROTECTED] -Original Message- From: Lev Assinovsky [mailto:[EMAIL PROTECTED]] Sent: 5. mars 2002 09:37 To: Tomcat Users List Subject: Re: Who uses connection pool? I already looked in there. I was confused that their pool is for GSP. Tomcat uses Tyrex by default. How about that? Reynir H?bner wrote: sure check out bitmechanic.com, thatÂs a fine place to start. -hope it helps [EMAIL PROTECTED] -Original Message- From: Lev Assinovsky [mailto:[EMAIL PROTECTED]] Sent: 5. mars 2002 09:09 To: 'Tomcat Users List' Subject: Who uses connection pool? Hi! Could you tell me please, does anybody successfully use database connection pool? -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Ð E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: runaway process in java while using tomcat
-Original Message- From: Halfmann, Klaus [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 2:45 AM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: RE: runaway process in java while using tomcat [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] wrote : I am hoping someone can help me with this problem I am having. I am using tomcat 4.0.1 to run a web site with jsps. This site uses alot of database connecting with Informix. For some reason, usually within 2 hours of starting up tomcat, a process will start to take up 100% of the CPU. The time it takes for this to happen varies. With Linux every JavaThread looks like a process of its own (other as with e.g. Solaris). So your runaway task should normally be a Java Thread. To Monitor your application you could try to periodically dump the names and Status of all Threads. Threads created by your code should have reasonable names. Another Problem might be the Informix driver. Eventually due to some bad SQL you might receive an infinite amount of Data or the Driver may produce an infinite loop. Try logging all sql statements and have a look at them. Another thought might be are you encountering some form of deadlock on the database? (Using transactions and thread 1 holds a lock on an object thread 2 needs and thread 2 holds a lock on an object thread 1 needs.) The Informix management software should be able to give you a list of all connections and what they are doing. If it doesn't seem obvious what is happening, try randomly killing them off to see if the problem goes away. If it does you will know the problem is somewhere in your database logic. Depending upon how your error reporting works, you might even know where the problem is (server dropping a connection generally a SQLException). How is the memory consumption of you application when it runs away ? It may be that the Server is trashing and wasting its time with GCs. You might wish to reduce the number of Threads in your server.xml in this case. This is also a possibility. You can use top to capture current memory usage. Also, you can use top to determine the number of thread in the jvm that is causing a problem. If its one then you have some kind of loop, two or more implies a threading problem where things are doing a busy wait for something to happen. Try writing HTTPUnit Testcases to stress your pages. ( http://sourceforge.net/project/showfiles.php?group_id=6550) You might want to create something like a crawler that follows every link and presses every button. As a last resort you could use a debugger (jdb should do) and try to find out about your Application this way. I think what most everyone is going to say is - we haven't seen this problem caused by Tomcat. We might have caused something like this ourselves, but not Tomcat. Randy -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: How to log shutting down of tomcat
Are you running Tomcat as a service and it happens to shutdown every time you log off the machine? If so then you are having a problem with one of Sun's feature enhancements to the JVM. You need to pass the JVM -Xrs when it starts up so that it doesn't pay attention to the logoff signal. In Tomcat 4 you do this by editing the registry. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat\Parameters is the group of setting you will be working with. First check your JVM Option Number X parameters to make sure you aren't already passing in a -Xrs. If not, increase the JVM Option Count's value by one (call this value X for future reference). Create a new String Value entry names JVM Option Number X-1 and the value is -Xrs. Restart the service, log off, and Tomcat should still be running. Randy -Original Message- From: Keith Ng [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 2:38 AM To: Tomcat Users List Subject: How to log shutting down of tomcat is there anyway to log the shutting down of tomcat? My tomcat server tend to auto shutdown for unknown reasons. I have been trying to trace to no avail. Currently using 1.3.1 and tomcat 4.0.2. it shuts down like after 4-5 hours and i wasnt able to track why did it shutdown. I have changed my ODBC-JDBC bridge(type 1) to type 4 drivers. It could also be my tomcat crashing... i do not know. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: SSL_CLIENT_CERT in tomcat
Hi Unfortunatly that book as not yet been published in the UK. Is there any cahnge you coudl send me some details on how to go about doing this? Laurie On Mon, 4 Mar 2002, Eric Gilbertson wrote: Lauire: You can get the client cert info from the the HttpServletRequest argument that is passed into your doGet/Post method. See chapter 8 of More Servlets and Server Pages for an example. HTH, Eric Gilbertson [EMAIL PROTECTED] At 05:19 PM 3/4/2002 +, Laurie Young wrote: Hi I am running Apache, and connecting to tomcat using mod_jk In the information abtou mod_jk, and apache+mod ssl, foudn at http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-ssl-howto.html#s4 It says: If you use Apache with SSL (Apache-SSL or apache+mod_ssl) and the JkExtractSSL directive in httpd.conf, the apache connector mod_jk will be able to pass some SSL information to tomcat. However, what it doesn't say is how i access this information (in particular the SSL_CLIENT_CERT variabele) from inside Tomcat. If anyonce can help I would very much appreciate it Laurie -- == Laurie Robert Young [EMAIL PROTECTED] | [EMAIL PROTECTED] www.wildfalcon.com | www.doc.ic.ac.uk/~laurie ICQ UIN #20194782 == -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- == Laurie Robert Young [EMAIL PROTECTED] | [EMAIL PROTECTED] www.wildfalcon.com | www.doc.ic.ac.uk/~laurie ICQ UIN #20194782 == -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.02 stalling?
The developers hang out on [EMAIL PROTECTED] -Original Message- From: GCS [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 8:08 AM To: Tomcat Users List Subject: Re: Tomcat 4.02 stalling? On Tue, Mar 05, 2002 at 03:45:39PM +0800, Keith Ng [EMAIL PROTECTED] wrote: Using 1.3.1, 4.0.2 and It happens to me occassionally when i try to access from Internet Ok, at least four users have this problem. Is there any developer looking into it? I would appreciate if it is solved soon. Should I file a bug entry? Cheers, GCS -- BorsodChem Joint-Stock CompanyLinux Support Center University of Miskolc Software engineer Programmer System administrator +36-48-511211/27-90 +36-20-4441745 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Who uses connection pool?
We do. Jim Urban Product Manager Netsteps Inc. Suite 505E 1 Pierce Pl. Itasca, IL 60143 Voice: (630) 250-3045 x2164 Fax: (630) 250-3046 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Lev Assinovsky Sent: Tuesday, March 05, 2002 3:09 AM To: 'Tomcat Users List' Subject: Who uses connection pool? Hi! Could you tell me please, does anybody successfully use database connection pool? -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Problem with mod_jk.conf file
This mysterious behavior is an undocumented feature in Tomcat 3.3. In the recently announced Tomcat 3.3.1 Release Candidate 1, it has be come a documented feature. See the hostChar, hostDotChar, and pathSlashChar attributes of the AutoWebApp module: http://jakarta.apache.org/tomcat/tomcat-3.3-doc/serverxml.html#AutoWebApp In your case, '/' is being subsituted for the '_' in the war name when deriving the path for the context. Thus, http://localhost/Servlet/JDBC/Validate/ should work. In Tomcat 3.3(a), the only way around this is to expand your war into an directory outside of webapps and manually specify the context using Context path=/Servlet_JDBC_Validate docBase=... .../. If you can upgrade to Tomcat 3.3.1-rc1, you can disable this feature. The AutoWebApp ... entry in server.xml already includes a host attribute which overrides the effect of the hostChar and hostDotChar attributes. Simply add pathSlashChar= to the entry and the special handling for the '_' character will be disabled. Cheers, Larry -Original Message- From: Jeff Self [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 4:37 PM To: [EMAIL PROTECTED] Subject: Problem with mod_jk.conf file I tried installing a package called Servlet_JDBC_Validate.war into my $TOMCAT_HOME/webapps directory. I restarted Tomcat and Apache as well as run tomcat.sh start -jkconf (I'm running Tomcat with Apache). When I tried to bring up http://localhost/Servlet_JDBC_Validate/ but I got a file not found error message. I looked at the mod_jk.conf file and noticed that it had JkMount /Servlet/JDBC/Validate ajp13 and /Servlet/JDBC/Validate/* ajp13 even though the directory under $TOMCAT_HOME/webapps/ is Servlet_JDBC_Validate. So my app only comes up when I type the URL as http://localhost/Servlet/JDBC/Validate. Anybody know whats wrong? Is there a setting I need to change. I'm running Tomcat 3.3a by the way. -- Jeff Self Information Technology Analyst Department of Personnel City of Newport News 2400 Washington Ave. Newport News, VA 23607 757-926-6930 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.02 stalling?
-Original Message- From: GCS [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 8:08 AM To: Tomcat Users List Subject: Re: Tomcat 4.02 stalling? snip/ Should I file a bug entry? yes, this will ensure that they look at it. Charlie -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Who uses connection pool?
Which one? Jim Urban wrote: We do. Jim Urban Product Manager Netsteps Inc. Suite 505E 1 Pierce Pl. Itasca, IL 60143 Voice: (630) 250-3045 x2164 Fax: (630) 250-3046 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Lev Assinovsky Sent: Tuesday, March 05, 2002 3:09 AM To: 'Tomcat Users List' Subject: Who uses connection pool? Hi! Could you tell me please, does anybody successfully use database connection pool? -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Who uses connection pool?
yes, i do. follow suggestion: http://mikal.org/interests/java/tomcat/archive/view?mesg=41226 it works for JNDI + postgesql . -- __ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Who uses connection pool?
DBConnectionBroker http://opensource.devdaily.com/ddConnectionBroker.shtml -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Lev Assinovsky Sent: Tuesday, March 05, 2002 7:47 AM To: Tomcat Users List Subject: Re: Who uses connection pool? Which one? Jim Urban wrote: We do. Jim Urban Product Manager Netsteps Inc. Suite 505E 1 Pierce Pl. Itasca, IL 60143 Voice: (630) 250-3045 x2164 Fax: (630) 250-3046 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Lev Assinovsky Sent: Tuesday, March 05, 2002 3:09 AM To: 'Tomcat Users List' Subject: Who uses connection pool? Hi! Could you tell me please, does anybody successfully use database connection pool? -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
[ANNOUNCEMENT] Tomcat 3.3.1 Release Candidate 1 Released
The first release candidate of Tomcat 3.3.1 is available for download. This release contains a number of bug fixes over the Tomcat 3.3.1 Beta 1 release. It contains many bug fixes and a number of small feature additions since the Tomcat 3.3 release. It continues to be a Servlet 2.2/JSP 1.1 reference implementation. The differences from Tomcat 3.3(a) are documented here: http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3.1-rc1/RELEASE-NOTES-3.3.1.txt The source and binary distributions (including RPMs) may be found at: http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3.1-rc1/ The online documentation found at: http://jakarta.apache.org/tomcat/tomcat-3.3-doc/index.html includes information related to this release. To log problems or bugs, as well as submit patches, please refer to: http://jakarta.apache.org/site/bugs.html When logging bugs to Bugzilla, please specify the Product as Tomcat 3 and the Version as 3.3.1 Release Candidate 1. Also, supplying a test case will greatly improve our ability to address the problem. Please do so if at all possible. Thanks, Larry Isaacs -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: tc4-- multiple catalina bases, one binary
No, I just put $CATALINA_HOME/bin in everyone's path. However, I gave each person a custom $CATALINA_BASE in their home directory with its own server.xml, etc. Each user's server.xml specifies a port to listen on, so I thought that would work. Also, catalina.sh appears only to take start and stop arguments. How would I pass in the port? Thanks. On Tue, 5 Mar 2002, John Niven wrote: -Original Message- From: Rami Friedman [mailto:[EMAIL PROTECTED]] Sent: 4 March 2002 18:59 To: [EMAIL PROTECTED] Subject: tc4-- multiple catalina bases, one binary Hi. Hi Rami I'm trying to create an environment in which many developers can develop on a single instance of tomcat on a single host. I've written a script that sets each user's CATALINA_BASE appropriately and creates the webapps and conf directories under the respective base dirs. It also assigns a unique port to each developer and puts that port in the developer's server.xml (port attribute of the Connector element). My problem is that the startup.sh and shutdown.sh scripts for any given developer appear to be starting and stopping the entire tomcat instance-- not just the connector listening on the developer's assigned port. What do the generated startup.sh and shutdown.sh look like? I presume that they referenece the correct ports? What am I doing wrong? Thanks. Cheers John (BTW, I did search the archives before posting this question.) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
file creation
Hello everyone, I am using Apache 1.3.23 with tomcat 4.0.1 woth the web_app module. I have configured tomcat to work with Virtual Hosts. All jsp pages and serverlets operate correctly, and everything is running smoothly except one thing. I downloaded a evalutaion copy of jive forum from http://www.jivesoftware.com just to do some testing ( jsp, jdbc, and servlets) Everything runs great and looks great but one thing. Any files that that it creates has the uid and gid of root. Root being who started and running tomcat. How can I set suexec for tomcat? And how can I change the user the Tomcat is running as? For example, have it run as the user tomcat. Thanks for all the help, -chad -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: runaway process in java while using tomcat
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 6:41 PM To: '[EMAIL PROTECTED]' Subject: runaway process in java while using tomcat Hello, I am hoping someone can help me with this problem I am having. I am using tomcat 4.0.1 to run a web site with jsps. This site uses alot of database connecting with Informix. For some reason, usually within 2 hours of starting up tomcat, a process will start to take up 100% of the CPU. what process? are you sure that it's tomcat(java.exe) taking 100% of the cpu? If you are using IIS as the front end the code red virus can cause IIS to spin endlessly. (yes, I still get code red probes) Charlie The time it takes for this to happen varies. Ive tried to reproduce it on a test site by myself but cannot seem to reproduce it. It only happens when alot of users are using the site and some user seems to be causing this to happen. The site has alot of people hitting it because it is close to easter and people are ordering from this site. Well, I was wondering what could cause this runaway process in tomcat. I have check all my loops and logic it doesnt seem to be any infinite loops in the code. Has anyone else had this problem with tomcat? If anyone has a suggestion to track this problem down or someone who has a similar problem please respond as soon as possible. Ive spent about 1 week on this and cant seem to find the problem. I really need to get this fixed immediately. Thanks in advanced, Dave -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: file creation
#!/sbin/sh # case $1 in start) echo Starting TomCat 4... su - nocat -c /usr/local/tomcat/bin/startup.sh sleep 10 /usr/local/apache/bin/apachectl start ;; restart) ;; stop) /usr/local/apache/bin/apachectl stop echo Stoping TomCat 4... su - nocat -c /usr/local/tomcat/bin/shutdown.sh sleep 10 ;; *) echo Usage: $0 {start|stop|restart} exit 1 ;; esac Thanks, John Quote for the week: It's not that I'm afraid to die. I just don't want to be there when it happens. Woody Allen, Death (1975), p.53 -Original Message- From: chad kellerman [mailto:[EMAIL PROTECTED]] Sent: 05 March 2002 14:06 To: Tomcat Users List Subject: file creation Hello everyone, I am using Apache 1.3.23 with tomcat 4.0.1 woth the web_app module. I have configured tomcat to work with Virtual Hosts. All jsp pages and serverlets operate correctly, and everything is running smoothly except one thing. I downloaded a evalutaion copy of jive forum from http://www.jivesoftware.com just to do some testing ( jsp, jdbc, and servlets) Everything runs great and looks great but one thing. Any files that that it creates has the uid and gid of root. Root being who started and running tomcat. How can I set suexec for tomcat? And how can I change the user the Tomcat is running as? For example, have it run as the user tomcat. Thanks for all the help, -chad -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: SSL_CLIENT_CERT in tomcat
Laurie Young wrote: Hi Unfortunatly that book as not yet been published in the UK. Is there any cahnge you coudl send me some details on how to go about doing this? Laurie, Are you just looking for the basic servlet accessor methods? In that case: An entry in the jGuru FAQ should give you a pointer: http://www.jguru.com/faq/view.jsp?EID=566243 basically: X509Certificate returnCert = null; returnCert = (X509Certificate) / req.getAttribute(javax.servlet.request.X509Certificate); req being your HttpServletRequest, obviously... Theres a surprisingly small amount of stuff on this out there (for lazy Google users like me, anyway) c _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat startup.bat does not work?
Hi, I am running Tomcat on Windows 2000 Professional. If anyone could please tell me why I am getting the following output = when I startup.bat Tomcat I would appreciate it: Catalina.start: LifecycleException: Error creating server socket = (java.net.Bind Exception): java.net.BindException: Address already in use: JVM_Bind LifecycleException: Error creating server socket = (java.net.BindException): jav a.net.BindException: Address already in use: JVM_Bind at = org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConne ctor.java:491) at = org.apache.catalina.core.StandardService.initialize(StandardService.j ava:454) at = org.apache.catalina.core.StandardServer.initialize(StandardServer.jav a:553) at org.apache.catalina.startup.Catalina.start(Catalina.java:780) at = org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at = org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at = sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at = org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) - Root Cause - java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:321) at java.net.ServerSocket.bind(ServerSocket.java:308) at java.net.ServerSocket.bind(ServerSocket.java:266) at java.net.ServerSocket.init(ServerSocket.java:182) at java.net.ServerSocket.init(ServerSocket.java:138) at = org.apache.catalina.net.DefaultServerSocketFactory.createSocket(Defau ltServerSocketFactory.java:118) at = org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConne ctor.java:485) at = org.apache.catalina.core.StandardService.initialize(StandardService.j ava:454) at = org.apache.catalina.core.StandardServer.initialize(StandardServer.jav a:553) at org.apache.catalina.startup.Catalina.start(Catalina.java:780) at = org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at = org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at = sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main (Bootstrap.java:243) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat startup.bat does not work?
The Error message tells you what the proplem is: ... Error creating server socket = (java.net.Bind Exception): java.net.BindException: Address already in use:... Tomcat can't listen on the socket it wants to because some other application is already using that socket. Either find out which application is using that socket and stop it or change the port tomcat uses in the server.xml file. Hamish -Original Message- From: Leon Vermaak [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 6:24 PM To: Tomcat Users List Subject: Tomcat startup.bat does not work? Hi, I am running Tomcat on Windows 2000 Professional. If anyone could please tell me why I am getting the following output = when I startup.bat Tomcat I would appreciate it: Catalina.start: LifecycleException: Error creating server socket = (java.net.Bind Exception): java.net.BindException: Address already in use: JVM_Bind LifecycleException: Error creating server socket = (java.net.BindException): jav a.net.BindException: Address already in use: JVM_Bind at = org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConne ctor.java:491) at = org.apache.catalina.core.StandardService.initialize(StandardService.j ava:454) at = org.apache.catalina.core.StandardServer.initialize(StandardServer.jav a:553) at org.apache.catalina.startup.Catalina.start(Catalina.java:780) at = org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at = org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at = sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at = org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) - Root Cause - java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:321) at java.net.ServerSocket.bind(ServerSocket.java:308) at java.net.ServerSocket.bind(ServerSocket.java:266) at java.net.ServerSocket.init(ServerSocket.java:182) at java.net.ServerSocket.init(ServerSocket.java:138) at = org.apache.catalina.net.DefaultServerSocketFactory.createSocket(Defau ltServerSocketFactory.java:118) at = org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConne ctor.java:485) at = org.apache.catalina.core.StandardService.initialize(StandardService.j ava:454) at = org.apache.catalina.core.StandardServer.initialize(StandardServer.jav a:553) at org.apache.catalina.startup.Catalina.start(Catalina.java:780) at = org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at = org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at = sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main (Bootstrap.java:243) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat startup.bat does not work?
Yes! I understood the problem the first time I tried various ports above 1024, but the problem persists! - Original Message - From: Barney Hamish [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, March 05, 2002 6:29 AM Subject: RE: Tomcat startup.bat does not work? The Error message tells you what the proplem is: ... Error creating server socket = (java.net.Bind Exception): java.net.BindException: Address already in use:... Tomcat can't listen on the socket it wants to because some other application is already using that socket. Either find out which application is using that socket and stop it or change the port tomcat uses in the server.xml file. Hamish -Original Message- From: Leon Vermaak [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 6:24 PM To: Tomcat Users List Subject: Tomcat startup.bat does not work? Hi, I am running Tomcat on Windows 2000 Professional. If anyone could please tell me why I am getting the following output = when I startup.bat Tomcat I would appreciate it: Catalina.start: LifecycleException: Error creating server socket = (java.net.Bind Exception): java.net.BindException: Address already in use: JVM_Bind LifecycleException: Error creating server socket = (java.net.BindException): jav a.net.BindException: Address already in use: JVM_Bind at = org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConne ctor.java:491) at = org.apache.catalina.core.StandardService.initialize(StandardService.j ava:454) at = org.apache.catalina.core.StandardServer.initialize(StandardServer.jav a:553) at org.apache.catalina.startup.Catalina.start(Catalina.java:780) at = org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at = org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at = sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at = org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) - Root Cause - java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:321) at java.net.ServerSocket.bind(ServerSocket.java:308) at java.net.ServerSocket.bind(ServerSocket.java:266) at java.net.ServerSocket.init(ServerSocket.java:182) at java.net.ServerSocket.init(ServerSocket.java:138) at = org.apache.catalina.net.DefaultServerSocketFactory.createSocket(Defau ltServerSocketFactory.java:118) at = org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConne ctor.java:485) at = org.apache.catalina.core.StandardService.initialize(StandardService.j ava:454) at = org.apache.catalina.core.StandardServer.initialize(StandardServer.jav a:553) at org.apache.catalina.startup.Catalina.start(Catalina.java:780) at = org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at = org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at = sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main (Bootstrap.java:243) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Memory with Tomcat
Hi, I have a big problem with memory. Tomcat take all memory after hours. I have apache 1.3.22 with mod-webapp and tomcat 4.0.1. Does it possible to optimize java. Can you have idea ? Thank a lots. -- */Sylvain Boily/* /Administrateur Linux/ cid:[EMAIL PROTECTED] /*Adresse :* 39, bd Anatole France - 93200 St-Denis - France/ /*tel :*0148131814/ /*mail :*[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] *web:*http://www.linkbynet.fr/
Loadbalancing question--Please help if you can
This is the 2nd load balancing question I've asked of the group in the last week, and I haven't received a single response. I've looked on the web in the archives, but can't find an answer. Is anyone actually using the load balancing in 3.3a? I'm sure that there are some. My company would like to use Tomcat for a lot of future work, but I've got to get the load balancing working before we can commit to it 100%. If someone has some insight into the problem I describe below, please let me know. Maybe it's as simple as I'm testing incorrectly, but if that's the case, someone please point me in the right direction. Thanks --Michael On Monday 04 March 2002 12:16, you wrote: Been working with the loadbalancing in 3.3a, and I've *almost* got it. The last hurdle seems to be splitting the requests between 2 different computers. In my workers.properties file, I've got two workers set up, one of which is going to localhost (local) and the other (remote) to a remote machine. For localhost, I set worker.local.lbfactor=100 and the remote machine I set as worker.remote.lbfactor=1 And I set the load balancing worker as follows: worker.loadbalancer.balanced_workers=remote, local The problem is that when I bring up multiple browsers, every single one is sent to the remote machine (the default page on each machine is different). If I switch the order from remote, local to local, remote every request is sent to the local machine, and none reach the remote. When I changed the order in the balanced_workers line, I also switched the lbfactors so that the remote machine should get the majority of requests, but it doesn't get any. I'm running Tomcat 3.3a on SuSE 7.2 as my localhost and Tomcat 3.3a on Windows 2000 as my remote. Running Apache 1.3.22 on my linux box to funnel the http requests to the tomcat load balancing worker. The mod_Jk module is mod_jk-3.3-ap13-noeapi.so. Any suggestions? Thanks --Michael -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Please help me
Hi all, I'm an italian student: for my thesis I have to install Tomcat on a sun machine with solaris 8 because I have to do some experiments. I have tried to install Tomcat 3.3a but when I type ./startup.sh for starting tomcat I get this error: Exception in thread main java.lang.NoClassDefFoundError: org/ap ache/tomcat/startup/Main I have followed all the instructions: TOMCAT_HOME is set, JAVA_HOME is set and I exported them. I can't understand the error: where is my error? Please help me. Thanks for your help Laura
Tomcat 3.2.3 and SSL
I have been trying to get SSL to work with tomcat 3.2.3 on Windows NT. I've followed the steps on differenet web sites and I now have the server configured so that it works with the URL http://localhost:8080/index.html as well as https://localhost:8443/index.html (for the SSL). But when using the https prefix I cannot get the web page to display if I put the IP address in instead of localhost and so cannot view it from another computer.Any ideas??? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Using errorPage
Hi All... I'm trying to redirect my jsp pages to a common error page, when ever an exception is raised, but with no success :( In my jsp page, I define: %@ page errorPage=error.jsp % and in my error page, I've defined (at the very top of the page): %@ page isErrorPage=true % In my jsp page I create an exception, but I am never redirected to my error page. Have I forgotten anything? Do I have to set something up in the configuration files? Thanks Best Regards, Peter Lewandowski -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Who uses connection pool?
Hello! I followed your link and found out that example in there is slightly incorrect. Identifier dataSrc is not declared. Besides Tyrex people acknowledged that if your database doesn't support pooling then all you have is tyrex EnabledDataSource class without pool support. I personally is waiting for tyrex-1.0. King-On Yeung wrote: yes, i do. follow suggestion: http://mikal.org/interests/java/tomcat/archive/view?mesg=41226 it works for JNDI + postgesql . -- __ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: Loadbalancing question
Are you shure that you created at least two sessions ? Depending on the browser it's sometimes difficult to create two sessions if you are just opening new windows. If you started two independend browsers that should work with any browser I've tested. As I'm not using tomcat, I can give just general advice. Best way to find out is to disable cookies and use encodeUrl on the links in the site. -Ursprüngliche Nachricht- Von: Michael Molloy [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 4. März 2002 19:16 An: Tomcat Users List Betreff: Loadbalancing question -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Using errorPage
I only ask because you don't mention it - are you throwing the error? JSPs only route to the error page if the exception is thrown and not caught during the execution of your page. If you don't throw it, or you throw it and catch it, JSP will never see the error. Randy -Original Message- From: Peter Lewandowski [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 9:34 AM To: 'Tomcat Users List' Subject: Using errorPage Hi All... I'm trying to redirect my jsp pages to a common error page, when ever an exception is raised, but with no success :( In my jsp page, I define: %@ page errorPage=error.jsp % and in my error page, I've defined (at the very top of the page): %@ page isErrorPage=true % In my jsp page I create an exception, but I am never redirected to my error page. Have I forgotten anything? Do I have to set something up in the configuration files? Thanks Best Regards, Peter Lewandowski -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Using errorPage
Yes , I'm throwing an exception. A nullPointerException. /Peter -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: den 5 mars 2002 15:13 To: 'Tomcat Users List' Subject: RE: Using errorPage I only ask because you don't mention it - are you throwing the error? JSPs only route to the error page if the exception is thrown and not caught during the execution of your page. If you don't throw it, or you throw it and catch it, JSP will never see the error. Randy -Original Message- From: Peter Lewandowski [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 9:34 AM To: 'Tomcat Users List' Subject: Using errorPage Hi All... I'm trying to redirect my jsp pages to a common error page, when ever an exception is raised, but with no success :( In my jsp page, I define: %@ page errorPage=error.jsp % and in my error page, I've defined (at the very top of the page): %@ page isErrorPage=true % In my jsp page I create an exception, but I am never redirected to my error page. Have I forgotten anything? Do I have to set something up in the configuration files? Thanks Best Regards, Peter Lewandowski -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Who uses connection pool?
Good! I just found out that ConnectionPoolDataSource is not properly implemented in tyrex stuff (Tyrex people acknowledged that). Did you hardcode pool instance creation or found a way when JNDI do that? Jim Urban wrote: DBConnectionBroker http://opensource.devdaily.com/ddConnectionBroker.shtml -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Lev Assinovsky Sent: Tuesday, March 05, 2002 7:47 AM To: Tomcat Users List Subject: Re: Who uses connection pool? Which one? Jim Urban wrote: We do. Jim Urban Product Manager Netsteps Inc. Suite 505E 1 Pierce Pl. Itasca, IL 60143 Voice: (630) 250-3045 x2164 Fax: (630) 250-3046 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Lev Assinovsky Sent: Tuesday, March 05, 2002 3:09 AM To: 'Tomcat Users List' Subject: Who uses connection pool? Hi! Could you tell me please, does anybody successfully use database connection pool? -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: don't found packages...
Thanks a lot for having helped me!!! It's OK now! - Original Message - From: Ralph Einfeldt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, March 05, 2002 11:45 AM Subject: AW: don't found packages... You have to add the jars to the classpath, not the directory. SET CLASSPATH=c:\tomcat\common\lib\a.jar;c:\tomcat\common\lib\b.jar -Ursprüngliche Nachricht- Von: cyril vidal [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 5. März 2002 11:36 An: [EMAIL PROTECTED] Betreff: don't found packages... snip/ SET CLASSPATH=c:\tomcat\common\lib. snip/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Please help me
Seems, you need to modify catalina.sh script to add all .jar under $JAVA_HOME/lib to class path, which is passed to java. To do that you need to understand shell. Startup.sh doesn't use CLASSPATH environment variable. [EMAIL PROTECTED] wrote: Hi all, I'm an italian student: for my thesis I have to install Tomcat on a sun machine with solaris 8 because I have to do some experiments. I have tried to install Tomcat 3.3a but when I type ./startup.sh for starting tomcat I get this error: Exception in thread main java.lang.NoClassDefFoundError: org/ap ache/tomcat/startup/Main I have followed all the instructions: TOMCAT_HOME is set, JAVA_HOME is set and I exported them. I can't understand the error: where is my error? Please help me. Thanks for your help Laura -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Solaris problem installation
Hi all, I'm an italian student: for my thesis I have to install Tomcat on a sun machine with solaris 8 because I have to do some experiments. I have tried to install Tomcat 3.3a but when I type ./startup.sh for starting tomcat I get this error: Exception in thread main java.lang.NoClassDefFoundError: org/ap ache/tomcat/startup/Main I have followed all the instructions: TOMCAT_HOME is set, JAVA_HOME is set and I exported them. I can't understand the error: where is my error? Please help me. Thanks for your help Laura
How to use swing classes without X-server
Hello All ! I want to use some of Swing classes like import javax.swing.tree.TreeModel; import javax.swing.tree.TreePath; by tomcat in environment where no X-server running. And I see in catalina.out: java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at sun.awt.X11GraphicsEnvironment.clinit(X11GraphicsEnvironment.java:5 9) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi ronment.java:58) at sun.awt.motif.MToolkit.clinit(MToolkit.java:57) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at java.awt.Toolkit$2.run(Toolkit.java:512) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:503) at java.awt.Toolkit.getEventQueue(Toolkit.java:1150) at java.awt.EventQueue.invokeLater(EventQueue.java:511) at javax.swing.SwingUtilities.invokeLater(SwingUtilities.java:1091) at javax.swing.Timer.post(Timer.java:342) at javax.swing.TimerQueue.postExpiredTimers(TimerQueue.java:195) at javax.swing.TimerQueue.run(TimerQueue.java:231) at java.lang.Thread.run(Thread.java:484) Huh !! I do not need X-server !!! I just want to use a pair of Swing classes. Anybody know what to do ??? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: How to use swing classes without X-server
1. Use JDK1.4 with its new headless command line option 2. Use one of the psuedo-X servers (search the list archives, this has been discussed numerous times and names of options and installation directions should be listed). Randy -Original Message- From: Serge A. Redchuk [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 10:40 AM To: [EMAIL PROTECTED] Subject: How to use swing classes without X-server Hello All ! I want to use some of Swing classes like import javax.swing.tree.TreeModel; import javax.swing.tree.TreePath; by tomcat in environment where no X-server running. And I see in catalina.out: java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at sun.awt.X11GraphicsEnvironment.clinit(X11GraphicsEnvironment.java:5 9) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi ronment.java:58) at sun.awt.motif.MToolkit.clinit(MToolkit.java:57) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at java.awt.Toolkit$2.run(Toolkit.java:512) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:503) at java.awt.Toolkit.getEventQueue(Toolkit.java:1150) at java.awt.EventQueue.invokeLater(EventQueue.java:511) at javax.swing.SwingUtilities.invokeLater(SwingUtilities.java:1091) at javax.swing.Timer.post(Timer.java:342) at javax.swing.TimerQueue.postExpiredTimers(TimerQueue.java:195) at javax.swing.TimerQueue.run(TimerQueue.java:231) at java.lang.Thread.run(Thread.java:484) Huh !! I do not need X-server !!! I just want to use a pair of Swing classes. Anybody know what to do ??? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: How to use swing classes without X-server
Serge A. Redchuk wrote: Hello All ! I want to use some of Swing classes like import javax.swing.tree.TreeModel; import javax.swing.tree.TreePath; by tomcat in environment where no X-server running. snip Huh !! I do not need X-server !!! I just want to use a pair of Swing classes. Anybody know what to do ??? 1) Wait until java 1.4 is solid enough to use in anger, I believe it gets around this problem. 2) Run the Xvfb (X Virtual Frame Buffer) on your server, and set the DISPLAY environment variable appropriately. We had to do this to get our farm nodes (no graphics) working properly. Tom -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Please help me
what is TOMCAT_HOME set to? I assume you are using Tomcat 3.x.x version. RS lauradiara on 03/05/2002 08:42:07 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Please help me Hi all, I'm an italian student: for my thesis I have to install Tomcat on a sun machine with solaris 8 because I have to do some experiments. I have tried to install Tomcat 3.3a but when I type ./startup.sh for starting tomcat I get this error: Exception in thread main java.lang.NoClassDefFoundError: org/ap ache/tomcat/startup/Main I have followed all the instructions: TOMCAT_HOME is set, JAVA_HOME is set and I exported them. I can't understand the error: where is my error? Please help me. Thanks for your help Laura -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat 4.0 NT Service and OutOfMemory
I'm using Tomcat 4.0.3 on Windows 2000. I'm also running Apache SOAP and must transfer a large number of files between client and server. I was receiving a socket write error each time I tried to send more than ~445 files (about 130 Kb each). Based on some posts I found in the archives, I set CATALINA_OPTS=-Xms128m -Xmx512m to increase the memory allocation to tomcat. My client works perfectly when tomcat is launched from the startup.bat file but the CATALINA_OPTS settings seem to have no effect on the NT service or the startup file stored in the Windows programs menu. I've looked at the startup file in the programs menu and noticed that it's launching the .jar file explicitly without using the startup.bat file, so I guess that explains why my CATALINA_OPTS settings are ignored in that case. Launching Tomcat as a Windows service would be extremely convenient (ability to have it start after a reboot, and not having to worry about locking out tomcat by clicking in the DOS console window by accident and putting it in select mode). My question is: Is there some way to make my CATALINA_OPTS settings available to the NT service? Thanks for any advice, Jason Donmoyer -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: How to use swing classes without X-server
Serge A. Redchuk [mailto:[EMAIL PROTECTED]] wrote: Hello All ! I want to use some of Swing classes like import javax.swing.tree.TreeModel; import javax.swing.tree.TreePath; by tomcat in environment where no X-server running. And I see in catalina.out: java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at ... at javax.swing.TimerQueue.run(TimerQueue.java:231) at java.lang.Thread.run(Thread.java:484) You can use the _model_ classes from Swing without any problem as long as you _never_ call any real GUI-classes. What you see here is Swing starting its backgroud notification Thread. Look in your code what classes you actually use. (JTree would be fatal DefaultMutableTreeNode would be ok.) In case you abosultely _must_ use Graphics (like awt.image.) You can use your existsing X-Server for testing. In a live system you should use an Offscreen X-Server (such a thing comes with Linux for such purposes). | Business Operation Systems GmbH | _ / | / \ \ Klaus Halfmann, Dipl. Inform. | |/ / | | \_/ | Tel. +49(0)69-24779-0 Fax +49(0)69-24779-444 \ / [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.0 NT Service and OutOfMemory
In the registry, the Tomcat service has a JVM Option Number X string value key (and a corresponding JVM Option Count). You will want to increment the count by 2 and create separate entries for -Xms and -Xmx. Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 10:44 AM To: [EMAIL PROTECTED] Subject: Tomcat 4.0 NT Service and OutOfMemory I'm using Tomcat 4.0.3 on Windows 2000. I'm also running Apache SOAP and must transfer a large number of files between client and server. I was receiving a socket write error each time I tried to send more than ~445 files (about 130 Kb each). Based on some posts I found in the archives, I set CATALINA_OPTS=-Xms128m -Xmx512m to increase the memory allocation to tomcat. My client works perfectly when tomcat is launched from the startup.bat file but the CATALINA_OPTS settings seem to have no effect on the NT service or the startup file stored in the Windows programs menu. I've looked at the startup file in the programs menu and noticed that it's launching the .jar file explicitly without using the startup.bat file, so I guess that explains why my CATALINA_OPTS settings are ignored in that case. Launching Tomcat as a Windows service would be extremely convenient (ability to have it start after a reboot, and not having to worry about locking out tomcat by clicking in the DOS console window by accident and putting it in select mode). My question is: Is there some way to make my CATALINA_OPTS settings available to the NT service? Thanks for any advice, Jason Donmoyer -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Need guidance with servlet deployment.
I'm having difficulty deploying/implementing my servlet under Tomcat 3.2.4. Here is the situation. I created a basic servlet to handle SOAP messages called gizmoservlet. I edited the web.xml file in the samples that came with Apache SOAP and placed the servlet in the same directory as rpcrouter and everything works fine and I get the proper error message when going to http://localhost:8080/soap/servlet/gizmoservlet. I was able to test and develop the servlet with no problems. However when I create my own gizmoservlet.war and try to deploy it as its own and not under the SOAP sample all I get on my web browser is a directoy listing of a blank directory at the URL http://localhost:8080/gizmoservlet. What could I be doing wrong? Here is my web.xml file and thanks for any help: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2.2.dtd; web-app servlet servlet-namegizmoservlet/servlet-name display-nameGizmo SOAP Servlet/display-name descriptionno description/description servlet-classGizmoServlet/servlet-class init-param /init-param /servlet servlet-mapping servlet-namegizmoservlet/servlet-name url-patterngizmoservlet/url-pattern /servlet-mapping /web-app -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Solaris problem installation
As Lev mentioned, check your JAVA_HOME variable. Thanks. RS lauradiara on 03/05/2002 09:24:15 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Solaris problem installation Hi all, I'm an italian student: for my thesis I have to install Tomcat on a sun machine with solaris 8 because I have to do some experiments. I have tried to install Tomcat 3.3a but when I type ./startup.sh for starting tomcat I get this error: Exception in thread main java.lang.NoClassDefFoundError: org/ap ache/tomcat/startup/Main I have followed all the instructions: TOMCAT_HOME is set, JAVA_HOME is set and I exported them. I can't understand the error: where is my error? Please help me. Thanks for your help Laura -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Need guidance with servlet deployment.
-Original Message- From: Carver, Christopher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 10:56 AM To: [EMAIL PROTECTED] Subject: Need guidance with servlet deployment. servlet-mapping servlet-namegizmoservlet/servlet-name url-patterngizmoservlet/url-pattern I'm pretty sure this should be url-pattern/gizmoservlet/url-pattern (Note the preceding /). -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat startup.bat does not work?
But default out of the box Tomcat actually opens 3 ports. Did you change all of them?? Port 1 is the shutdown port 8005, Port 2 is the web service port 8080 (RPM: 8180), and Port 3 is the Warp connector (8008 I believe). Also try to determine what ports are in use by other services on your Win2k machine. That will help you avoid tripping over other services while finding open ports for your Tomcat install. --David On Tuesday 05 March 2002 12:33 pm, you wrote: Yes! I understood the problem the first time I tried various ports above 1024, but the problem persists! - Original Message - From: Barney Hamish [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, March 05, 2002 6:29 AM Subject: RE: Tomcat startup.bat does not work? The Error message tells you what the proplem is: ... Error creating server socket = (java.net.Bind Exception): java.net.BindException: Address already in use:... Tomcat can't listen on the socket it wants to because some other application is already using that socket. Either find out which application is using that socket and stop it or change the port tomcat uses in the server.xml file. Hamish -Original Message- From: Leon Vermaak [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 6:24 PM To: Tomcat Users List Subject: Tomcat startup.bat does not work? Hi, I am running Tomcat on Windows 2000 Professional. If anyone could please tell me why I am getting the following output = when I startup.bat Tomcat I would appreciate it: Catalina.start: LifecycleException: Error creating server socket = (java.net.Bind Exception): java.net.BindException: Address already in use: JVM_Bind LifecycleException: Error creating server socket = (java.net.BindException): jav a.net.BindException: Address already in use: JVM_Bind at = org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConne ctor.java:491) at = org.apache.catalina.core.StandardService.initialize(StandardService.j ava:454) at = org.apache.catalina.core.StandardServer.initialize(StandardServer.jav a:553) at org.apache.catalina.startup.Catalina.start(Catalina.java:780) at = org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at = org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at = sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at = org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) - Root Cause - java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:321) at java.net.ServerSocket.bind(ServerSocket.java:308) at java.net.ServerSocket.bind(ServerSocket.java:266) at java.net.ServerSocket.init(ServerSocket.java:182) at java.net.ServerSocket.init(ServerSocket.java:138) at = org.apache.catalina.net.DefaultServerSocketFactory.createSocket(Defau ltServerSocketFactory.java:118) at = org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConne ctor.java:485) at = org.apache.catalina.core.StandardService.initialize(StandardService.j ava:454) at = org.apache.catalina.core.StandardServer.initialize(StandardServer.jav a:553) at org.apache.catalina.startup.Catalina.start(Catalina.java:780) at = org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at = org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at = sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main (Bootstrap.java:243) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Compiling mod_webapp.so ...
Did you configure apache to enable dynamic shared object support when you made apache? (including the --enable-module=so , etc). Is the mod_webapp.so and .c listed properly in your httpd.conf file? If you didn't see any errors or warnings when you compiled your mod_webapp.so I would guess the problem lay elsewhere... I actually saw errors when I first went to compile my mod_webapp.so. Not only did I need to cvs checkout the the jakarta-tomcat-connectors/webapp source, but also a fresh cvs checkout of jakarta-connectors/webapp/apr source, before I could compile correctly without error. If this is your situation then get the connector source and APR source before going through your mod_webapp.so compiling routine: Downloading the jakarta-tomcat-connectors And APR via cvs: (executed from where you want the jakarta-tomcat-connectors src) #cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login (logging in...) #CVS password: anoncvs #cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic \ checkout jakrata-tomcat-connectors/webapp #cd ./jakarta-tomcat-connectors/webapp #cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic \ checkout apr (this worked well for me : Red Hat 7.1+Apache 1.3.23+SSL+Tomcat4.02) hope this helps - charles [EMAIL PROTECTED] wrote: Charles Swarts a écrit : Yes, I had to do this too, to compile the mod_webapp module with EAPI support. You are just missing one step. After you get the fresh cvs snapshot (like you did ), go forth like this: # cd jakarta-tomcat-connectors/webapp # ./support/buildconf.sh # CFLAGS=-DEAPI # ./configure --with-apxs=/usr/bin/apxs #make thanks, charles; even with this flag, I always get the apache warning ... what's wrong ? (considering answer from brian ally, but being very curious) Then copy your compiled mod_webapp.so to where apache is going to look for it: # cp apache-1.3/mod_webapp.so /usr/local/apache/libexec After doing so when you startup apache you will not see the EAPI warning. Hope this helps, - Charles [EMAIL PROTECTED] wrote: Hi everyone, Because of an upload file's bug with mod_webapp-1.0-2.i386.rpm, I've done a snapshot from cvs to compile my own .so . It seems that the bug has diseappered, but when I restart Apache, it tells me : Starting httpd: [Mon Mar 4 09:18:05 2002] [warn] Loaded DSO modules/mod_webapp.so uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI) Here are the steps to compile : cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout jakarta-tomcat-connectors/webapp cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout apr cd $SNAPSHOT/webapp ./support/buildconf.sh ./configure --with-apxs=/usr/bin/apxs --with-apr=./apr/ make and I get my mod_webapp.so in $SNAPSHOT/webapp/apache-1.3/ does anyone know where to include the -DEAPI compiling flag ? I'm using these RPM's on a Linux RedHat 7.1 apache-1.3.22-1.7.1 (with mod_throttle-3.1.2-3 mod_put-1.3-2 mod_bandwidth-2.0.3-2) tomcat4-4.0.2-3 thanks in advance. -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 3.2.3 and SSL
Paul, The protocol https is hard-wired to port 443. Using port 8443 as you have done works, but only with the hardcoded port number in the URL, as you have found out. To make Tomcat SSL work using https, you must modify the SSL port used - in server.xml. Change 8443 to 443 and restart Tomcat. Also, if you want others to access your machine, change port 8080 to port 80 in server.xml. This will allow them to access static web pages using just http. However, if you have another web server (i.e. IIS) running on port 80, you will have to decide if Tomcat gets port 80 (shut off IIS) or if they coexist. There is assistance here and in the Tomcat FAQs if you want to run both IIS and Tomcat. Cheers, -RIchard == From: Paul Ferguson [EMAIL PROTECTED] I have been trying to get SSL to work with tomcat 3.2.3 on Windows NT. I've followed the steps on differenet web sites and I now have the server configured so that it works with the URL http://localhost:8080/index.html as well as https://localhost:8443/index.html (for the SSL). But when using the https prefix I cannot get the web page to display if I put the IP address in instead of localhost and so cannot view it from another computer.Any ideas??? === -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Need guidance with servlet deployment.
Randy, thank you for catching that. I restarted Tomcat after fixing it and it still doesn't work. Nutz. Thank you though. Chris -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 9:26 AM To: 'Tomcat Users List' Subject: RE: Need guidance with servlet deployment. -Original Message- From: Carver, Christopher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 10:56 AM To: [EMAIL PROTECTED] Subject: Need guidance with servlet deployment. servlet-mapping servlet-namegizmoservlet/servlet-name url-patterngizmoservlet/url-pattern I'm pretty sure this should be url-pattern/gizmoservlet/url-pattern (Note the preceding /). -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
ssl please help!
Hello, is it possible to use ssl without having a certificate?(.keystore thingy) The problem is that the web application I'm making will be distributed, so it won't always be running on the same server name and therefor browsers will always point out the fact that the name on the certificate does not match the name of the site.. which will be terribly annoying for the users. Thanks Ofur-Bjarni -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Need guidance with servlet deployment.
on top of Randy's suggestsion, try to access the URL: http://localhost:8080/gizmoservlet/something.html or http://localhost:8080/servlet/GizmoServlet You get the blank directory listing becuase you have a logical directory set up for /gizmoservlet, but no index.html file to handle requests to the root directory for your webapp. Charlie -Original Message- From: Carver, Christopher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 11:20 AM To: Tomcat Users List Subject: RE: Need guidance with servlet deployment. Randy, thank you for catching that. I restarted Tomcat after fixing it and it still doesn't work. Nutz. Thank you though. Chris -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 9:26 AM To: 'Tomcat Users List' Subject: RE: Need guidance with servlet deployment. -Original Message- From: Carver, Christopher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 10:56 AM To: [EMAIL PROTECTED] Subject: Need guidance with servlet deployment. servlet-mapping servlet-namegizmoservlet/servlet-name url-patterngizmoservlet/url-pattern I'm pretty sure this should be url-pattern/gizmoservlet/url-pattern (Note the preceding /). -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Who uses connection pool?
Here are some code fragments from our servlet (we use a single dispatcher servlet): public void init(ServletConfig iConfig) throws ServletException { super.init(iConfig); ... initializeDbConnectionBroker(iConfig); ... } private void initializeDbConnectionBroker(ServletConfig iConfig) { String dbDriver = getInitParameter(DB_DRIVER); String dbName = getInitParameter(DB_NAME); String dbUser = getInitParameter(DB_USER); String dbPassword = getInitParameter(DB_PSWD); String logfile = getInitParameter(DB_LOG_FILE); int initConn = new Integer(getInitParameter(DB_INITCONN)).intValue(); int maxConn = new Integer(getInitParameter(DB_MAXCONN)).intValue(); int connTimeOut = new Integer(getInitParameter(DB_CONNTIMEOUT)).intValue(); double maxConnTime = new Double(getInitParameter(DB_MAXCONNTIME)).doubleValue(); try { logMessage(Initializing DB connection pool.); ConnectionPool.initialize(dbDriver, dbName, dbUser, dbPassword, logfile, initConn, maxConn, connTimeOut , maxConnTime); logMessage(DB connection pool initialized.); } catch (Exception e) { logException(e, this); logMessage(ConnectionPool.init error: + e.toString()); } } public class ConnectionPool extends Object { private static DbConnectionBroker myBroker = null; private static int connTimeOut = 0; public static void initialize(String DBDriver, String DBName, String DBUser, String DBPsWd, String Logfile, int initConn, int maxConn, int iConnTimeOut, double maxConnTime) throws IOException { if (DBDriver != null DBDriver.length() 0) { myBroker = new DbConnectionBroker(DBDriver, DBName, DBUser, DBPsWd, initConn, maxConn, Logfile, maxConnTime); connTimeOut = iConnTimeOut; } } public static synchronized DbConnectionBroker getBroker() { return myBroker; } public static synchronized void shutDown() { try { myBroker.destroy(connTimeOut); } catch(SQLException e){} } } Jim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Lev Assinovsky Sent: Tuesday, March 05, 2002 9:10 AM To: Tomcat Users List Subject: Re: Who uses connection pool? Good! I just found out that ConnectionPoolDataSource is not properly implemented in tyrex stuff (Tyrex people acknowledged that). Did you hardcode pool instance creation or found a way when JNDI do that? Jim Urban wrote: DBConnectionBroker http://opensource.devdaily.com/ddConnectionBroker.shtml -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Lev Assinovsky Sent: Tuesday, March 05, 2002 7:47 AM To: Tomcat Users List Subject: Re: Who uses connection pool? Which one? Jim Urban wrote: We do. Jim Urban Product Manager Netsteps Inc. Suite 505E 1 Pierce Pl. Itasca, IL 60143 Voice: (630) 250-3045 x2164 Fax: (630) 250-3046 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Lev Assinovsky Sent: Tuesday, March 05, 2002 3:09 AM To: 'Tomcat Users List' Subject: Who uses connection pool? Hi! Could you tell me please, does anybody successfully use database connection pool? -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with
RE: Need guidance with servlet deployment.
-Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 11:26 AM To: 'Tomcat Users List' Subject: RE: Need guidance with servlet deployment. on top of Randy's suggestsion, try to access the URL: http://localhost:8080/gizmoservlet/something.html actually your servlet mapping would need to be /gizmoservlet/* for this URL to work. I misread the mapping when I sent this. Charlie or http://localhost:8080/servlet/GizmoServlet You get the blank directory listing becuase you have a logical directory set up for /gizmoservlet, but no index.html file to handle requests to the root directory for your webapp. Charlie -Original Message- From: Carver, Christopher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 11:20 AM To: Tomcat Users List Subject: RE: Need guidance with servlet deployment. Randy, thank you for catching that. I restarted Tomcat after fixing it and it still doesn't work. Nutz. Thank you though. Chris -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 9:26 AM To: 'Tomcat Users List' Subject: RE: Need guidance with servlet deployment. -Original Message- From: Carver, Christopher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 10:56 AM To: [EMAIL PROTECTED] Subject: Need guidance with servlet deployment. servlet-mapping servlet-namegizmoservlet/servlet-name url-patterngizmoservlet/url-pattern I'm pretty sure this should be url-pattern/gizmoservlet/url-pattern (Note the preceding /). -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Who uses connection pool?
Done that, but it still doesn't work (I'm also trying JNDI + postgresql). Could you point us to a sample server.xml entry for postgres? (or anything else needed) Thanks Mark Muffett - Original Message - From: King-On Yeung [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, March 05, 2002 1:50 PM Subject: RE: Who uses connection pool? yes, i do. follow suggestion: http://mikal.org/interests/java/tomcat/archive/view?mesg=41226 it works for JNDI + postgesql . -- __ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Premature packet header end exception
I continue to get this error throughout my apache_log.2002-mm-dd.txt files: 2002-03-05 11:16:05 [org.apache.catalina.connector.warp.WarpConnection] Exception on socket java.io.IOException: Premature packet header end at org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:2 37) at org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand ler.java:112) at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19 4) at java.lang.Thread.run(Thread.java:484) What is causing this and how do I fix it? Thanks, chris -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Need guidance with servlet deployment.
Oh, I get it now. But I think I'm skating around the issue and not seeing it. I changed the line to url-pattern/gizmoservlet/url-pattern and went to the URL: http://localhost:8080/servlet/gizmoservlet and the reply was page not found. I changed the line to url-pattern/servlet/gizmoservlet/url-pattern and went to the URL: http://localhost:8080/gizmoservlet/servlet/gizmoservlet but I get the following error: (keep in mind this servlet works when I place it in the same directory as rpcrouter) Error: 500 Location: /jsoapservlet/servlet/jsoapservlet Internal Servlet Error: java.lang.NullPointerException at java.lang.ClassLoader.resolveClass0(Native Method) at java.lang.ClassLoader.resolveClass(ClassLoader.java:641) at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java:518) at org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(AdaptiveServletLoader.java:174) at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:265) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289) at org.apache.tomcat.core.Handler.service(Handler.java:254) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:536) -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 10:26 AM To: 'Tomcat Users List' Subject: RE: Need guidance with servlet deployment. on top of Randy's suggestsion, try to access the URL: http://localhost:8080/gizmoservlet/something.html or http://localhost:8080/servlet/GizmoServlet You get the blank directory listing becuase you have a logical directory set up for /gizmoservlet, but no index.html file to handle requests to the root directory for your webapp. Charlie -Original Message- From: Carver, Christopher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 11:20 AM To: Tomcat Users List Subject: RE: Need guidance with servlet deployment. Randy, thank you for catching that. I restarted Tomcat after fixing it and it still doesn't work. Nutz. Thank you though. Chris -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 9:26 AM To: 'Tomcat Users List' Subject: RE: Need guidance with servlet deployment. -Original Message- From: Carver, Christopher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 10:56 AM To: [EMAIL PROTECTED] Subject: Need guidance with servlet deployment. servlet-mapping servlet-namegizmoservlet/servlet-name url-patterngizmoservlet/url-pattern I'm pretty sure this should be url-pattern/gizmoservlet/url-pattern (Note the preceding /). -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Need guidance with servlet deployment.
-Original Message- From: Carver, Christopher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 11:49 AM To: Tomcat Users List Subject: RE: Need guidance with servlet deployment. Oh, I get it now. But I think I'm skating around the issue and not seeing it. I changed the line to url-pattern/gizmoservlet/url-pattern and went to the URL: http://localhost:8080/servlet/gizmoservlet and the reply was page not found. with this mapping, the url should be : http://localhost:8080/gizmoservlet I changed the line to url-pattern/servlet/gizmoservlet/url-pattern and went to the URL: http://localhost:8080/gizmoservlet/servlet/gizmoservlet but I get the following error: (keep in mind this servlet works when I place it in the same directory as rpcrouter) /servlet is a default mapping for any servlet(see /conf/web.xml) therefore you do not need a servlet mapping containing /servet unless you wish to override this functionality. change(or remove) your url-mapping and try this url: http://localhost:8080/servlet/gizmoservlet Charlie Error: 500 Location: /jsoapservlet/servlet/jsoapservlet Internal Servlet Error: java.lang.NullPointerException at java.lang.ClassLoader.resolveClass0(Native Method) at java.lang.ClassLoader.resolveClass(ClassLoader.java:641) at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(Adaptiv eClassLoader.java:518) at org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(Adapt iveServletLoader.java:174) at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapp er.java:265) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289) at org.apache.tomcat.core.Handler.service(Handler.java:254) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextM anager.java:806) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752) at org.apache.tomcat.service.http.HttpConnectionHandler.processCo nnection(HttpConnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin t.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo ol.java:501) at java.lang.Thread.run(Thread.java:536) -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 10:26 AM To: 'Tomcat Users List' Subject: RE: Need guidance with servlet deployment. on top of Randy's suggestsion, try to access the URL: http://localhost:8080/gizmoservlet/something.html or http://localhost:8080/servlet/GizmoServlet You get the blank directory listing becuase you have a logical directory set up for /gizmoservlet, but no index.html file to handle requests to the root directory for your webapp. Charlie -Original Message- From: Carver, Christopher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 11:20 AM To: Tomcat Users List Subject: RE: Need guidance with servlet deployment. Randy, thank you for catching that. I restarted Tomcat after fixing it and it still doesn't work. Nutz. Thank you though. Chris -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 9:26 AM To: 'Tomcat Users List' Subject: RE: Need guidance with servlet deployment. -Original Message- From: Carver, Christopher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 10:56 AM To: [EMAIL PROTECTED] Subject: Need guidance with servlet deployment. servlet-mapping servlet-namegizmoservlet/servlet-name url-patterngizmoservlet/url-pattern I'm pretty sure this should be url-pattern/gizmoservlet/url-pattern (Note the preceding /). -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Who uses connection pool?
Is there any connection pool implementation that uses the ConnectionPoolDataSource provided by the latest JDBC drivers? ** julio -Original Message- From: Jim Urban [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 8:27 AM To: Tomcat Users List Subject: RE: Who uses connection pool? Here are some code fragments from our servlet (we use a single dispatcher servlet): public void init(ServletConfig iConfig) throws ServletException { super.init(iConfig); ... initializeDbConnectionBroker(iConfig); ... } private void initializeDbConnectionBroker(ServletConfig iConfig) { String dbDriver = getInitParameter(DB_DRIVER); String dbName = getInitParameter(DB_NAME); String dbUser = getInitParameter(DB_USER); String dbPassword = getInitParameter(DB_PSWD); String logfile = getInitParameter(DB_LOG_FILE); int initConn = new Integer(getInitParameter(DB_INITCONN)).intValue(); int maxConn = new Integer(getInitParameter(DB_MAXCONN)).intValue(); int connTimeOut = new Integer(getInitParameter(DB_CONNTIMEOUT)).intValue(); double maxConnTime = new Double(getInitParameter(DB_MAXCONNTIME)).doubleValue(); try { logMessage(Initializing DB connection pool.); ConnectionPool.initialize(dbDriver, dbName, dbUser, dbPassword, logfile, initConn, maxConn, connTimeOut , maxConnTime); logMessage(DB connection pool initialized.); } catch (Exception e) { logException(e, this); logMessage(ConnectionPool.init error: + e.toString()); } } public class ConnectionPool extends Object { private static DbConnectionBroker myBroker = null; private static int connTimeOut = 0; public static void initialize(String DBDriver, String DBName, String DBUser, String DBPsWd, String Logfile, int initConn, int maxConn, int iConnTimeOut, double maxConnTime) throws IOException { if (DBDriver != null DBDriver.length() 0) { myBroker = new DbConnectionBroker(DBDriver, DBName, DBUser, DBPsWd, initConn, maxConn, Logfile, maxConnTime); connTimeOut = iConnTimeOut; } } public static synchronized DbConnectionBroker getBroker() { return myBroker; } public static synchronized void shutDown() { try { myBroker.destroy(connTimeOut); } catch(SQLException e){} } } Jim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Lev Assinovsky Sent: Tuesday, March 05, 2002 9:10 AM To: Tomcat Users List Subject: Re: Who uses connection pool? Good! I just found out that ConnectionPoolDataSource is not properly implemented in tyrex stuff (Tyrex people acknowledged that). Did you hardcode pool instance creation or found a way when JNDI do that? Jim Urban wrote: DBConnectionBroker http://opensource.devdaily.com/ddConnectionBroker.shtml -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Lev Assinovsky Sent: Tuesday, March 05, 2002 7:47 AM To: Tomcat Users List Subject: Re: Who uses connection pool? Which one? Jim Urban wrote: We do. Jim Urban Product Manager Netsteps Inc. Suite 505E 1 Pierce Pl. Itasca, IL 60143 Voice: (630) 250-3045 x2164 Fax: (630) 250-3046 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Lev Assinovsky Sent: Tuesday, March 05, 2002 3:09 AM To: 'Tomcat Users List' Subject: Who uses connection pool? Hi! Could you tell me please, does anybody successfully use database connection pool? -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Lev Assinovsky
Oracle XDK problem with Tomcat4.0
I have a problem configuring Tomcat4.0 with the XSQLServlet shipped with the XDK (Java API for Oracle). I was able to configure it with Tomcat 3.2 but NOT with 4.0. My configuration is as follows: in TOMCAT_HOME/common/lib I have placed xsu12.jar oraclexsql.jar xmlparserv2.jar Now I had problems with the classes12.zip file which I had to extract into TOMCAT_HOME/common/classes in order to avoid the ClassNotFoundException about the Oracle JDBC. Instead the tomcat can now find the JDBC drivers in the classes directory unzipped. ok that worked but. Now the last thing I needed to do was to place the XSQLConfig.xml file into Tomcat classpath. So I put it in TOMCAT_HOME/common/classes. But after extracting the jdbc driver package into that directory this xml file cannot be foud anymore by Tomcat??, (no problem when the jdbc cdrivers where not there!!???) I have also edited catalina.bat and setclasspath.bat (using Windows for this one) so that it can search for this xml file but without any luck. So if anyone have been able to properly set up XSQLServlet with Tomcat4.0 can you please help me out with this one??? I got this up running with tomcat 3.2 but the configuration is not the same for Tomcat4.0. It also works with JServ but that too is another story. This is strange and Oracle themselves is silent about it, also I have not found one single developer that was able to make it run correcty. So anyone out there who can solve this? Thanks /Antonios
Apache Tomcat/4.0.3 - HTTP Status 503 - Servlet SendMailServlet is currently unavailable
Apache Tomcat/4.0.3 - HTTP Status 503 - Servlet SendMailServlet is currently unavailable Tomcat 4.0.3 is very nice. The best you can get 6,000 miles around. Thank you very much. But where is the SendMailServlet ? Forgotten ? Cheers, Mark Wollner -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Who uses connection pool?
I just downloaded Tomcat 4.0.3 and didn't see any Tyrex jar files. Are they bundled inside Tomcat's jar files? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Lev Assinovsky Sent: Tuesday, March 05, 2002 1:37 AM To: Tomcat Users List Subject: Re: Who uses connection pool? I already looked in there. I was confused that their pool is for GSP. Tomcat uses Tyrex by default. How about that? Reynir H?bner wrote: sure check out bitmechanic.com, thatÂs a fine place to start. -hope it helps [EMAIL PROTECTED] -Original Message- From: Lev Assinovsky [mailto:[EMAIL PROTECTED]] Sent: 5. mars 2002 09:09 To: 'Tomcat Users List' Subject: Who uses connection pool? Hi! Could you tell me please, does anybody successfully use database connection pool? -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Ð E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Who uses connection pool?
I checked the Exolab.org website for an updated Tyrex, and noticed in their Change Log that the last version released was 0.9.7 which is more than a year old. I wonder if anyone is working on the 1.0 version. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Lev Assinovsky Sent: Tuesday, March 05, 2002 6:59 AM To: Tomcat Users List Subject: Re: Who uses connection pool? Hello! I followed your link and found out that example in there is slightly incorrect. Identifier dataSrc is not declared. Besides Tyrex people acknowledged that if your database doesn't support pooling then all you have is tyrex EnabledDataSource class without pool support. I personally is waiting for tyrex-1.0. King-On Yeung wrote: yes, i do. follow suggestion: http://mikal.org/interests/java/tomcat/archive/view?mesg=41226 it works for JNDI + postgesql . -- __ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Apache Tomcat/4.0.3 - HTTP Status 503 - Servlet SendMailServlet is currently unavailable
There is/was apparently a build problem with Tomcat before 4.04, which causes SendMailServlet to not be build. You can build it yourself using javac, or download the Tomcat 4.04 beta. Randy -Original Message- From: Hostmaster of the day [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 12:15 PM To: [EMAIL PROTECTED] Subject: Apache Tomcat/4.0.3 - HTTP Status 503 - Servlet SendMailServlet is currently unavailable Apache Tomcat/4.0.3 - HTTP Status 503 - Servlet SendMailServlet is currently unavailable Tomcat 4.0.3 is very nice. The best you can get 6,000 miles around. Thank you very much. But where is the SendMailServlet ? Forgotten ? Cheers, Mark Wollner -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
mod_webapp + mos_ssl: Win32 discrepancy (should I use mod_jkinstead?)
I've managed to get mod_webapp and mod_ssl working together on both Solaris 2.6 and Mac OS X, without much trouble. However, I'm finding a discrepancy when I deploy the same app on Windows. On Solaris and Mac OS X, HTTPS requests arriving at the Apache server that are forwarded to Tomcat via the Warp protocol maintain the https scheme. So if you say getScheme() to the HttpServletRequest, it returns https. But on Win32, getScheme() returns http, even for those requests that come to Apache over SSL. I have tried creating two Warp connectors, and setting the scheme and secure attributes on the Connector element in server.xml, but that didn't change anything. The end result is that my application, which programmatically redirects the browser to https if it detects an http connection for certain functionality, gets caught in an endless redirect loop. Any suggestions as to how to fix or work around this problem? I'd try to recompile mod_webapp myself, but I'm not sure what tools I need to compile it for the Windows platform. I'm using Tomcat and mod_webapp versions 4.0.1, with Apache 1.3.23, mod_ssl 2.8.6, and OpenSSL 0.9.6c. A related question (probably a FAQ, but I didn't find it addressed anywhere): what is the relationship between mod_webapp and mod_jk, and is there any reason to use mod_jk instead of mod_webapp, or vice versa? -- +---+ | Dave Makower[EMAIL PROTECTED] | | http://www.davemak.com/ | +---+ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
getOutputStream() has already been called for this response
Help, Why would this code: public class Controller extends HttpServlet { ... protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException { HTMLTagHelper tagHlpr = new HTMLTagHelper( getServletContext() ); include(request, response, /Include/stdHead.inc); //out.println(html); //out.println(head); java.io.PrintWriter out = response.getWriter(); out.println(titleServlet/title); out.println(/head); out.println(body); out.println(ppathInfo= + request.getPathInfo()); out.println(ppathTrans= + request.getPathTranslated()); out.println(prequestURI= + request.getRequestURI() ); out.println(pRealPath= + getServletContext().getRealPath(. )); out.println(pServletPath= + request.getServletPath()); out.println(pQueryString= + request.getQueryString()); out.println(pContextPath= + request.getContextPath()); out.println(/body); out.println(/html); out.close(); } protected void include( HttpServletRequest request, HttpServletResponse response, String page ) throws ServletException, java.io.IOException { RequestDispatcher dispatcher = request.getRequestDispatcher( page ); dispatcher.include( request, response ); } // protected void dispatch ... } Throws this error: java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.ResponseBase.getWriter(ResponseBase.java:755) at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:1 65) at Controller.processRequest(Controller.java:54) at Controller.doPost(Controller.java:88) ... If I remove the call to include and uncomment the lines everything works fine. Tomcat 4.0.2 Thanks in advance for thoughts suggestion whatever I really need to mix includes with the PrintWriter in this application. Lance -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Loadbalancing question
You might want to take a look at: http://www.ubeans.com/tomcat Cheers, Pascal -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
DB Connection Pool
I was of the impression that Tomcat had built-in connection pooling, but, unless I misinterpret the recent postings on this site, it doesn't really 'work'. Could someone please confirm/deny this for me. Connection pooling is very important to one of my current projects, and I had hoped to use Tomcat and it's built-in pool. If anyone is currently using a third-part pool that they are well pleased with, I would greatly appreciate that information too. If I can't use the built-in pool (because it's 'broken' right now) then I still need something to use for development purposes - preferably something I could leave in (that would handle a high load). Thanks so much! Eddie
Re: Loadbalancing question--Please help if you can
Hi Michael, I unfortunately cannot spend time helping you with Tomcat 3.3, as I would have to replicate your setup to try to fix the problem. What I can tell you is that I have successfully configured a load balanced tomcat 4.02 server and that requests are being sent to both tomcat servers. I have taken the time to describe in details how I set up the system. The web page is at http://www.ubeans.com/tomcat; I hope that this will be useful to you. Regards, Pascal Forget Michael Molloy wrote: This is the 2nd load balancing question I've asked of the group in the last week, and I haven't received a single response. I've looked on the web in the archives, but can't find an answer. Is anyone actually using the load balancing in 3.3a? I'm sure that there are some. My company would like to use Tomcat for a lot of future work, but I've got to get the load balancing working before we can commit to it 100%. If someone has some insight into the problem I describe below, please let me know. Maybe it's as simple as I'm testing incorrectly, but if that's the case, someone please point me in the right direction. Thanks --Michael On Monday 04 March 2002 12:16, you wrote: Been working with the loadbalancing in 3.3a, and I've *almost* got it. The last hurdle seems to be splitting the requests between 2 different computers. In my workers.properties file, I've got two workers set up, one of which is going to localhost (local) and the other (remote) to a remote machine. For localhost, I set worker.local.lbfactor=100 and the remote machine I set as worker.remote.lbfactor=1 And I set the load balancing worker as follows: worker.loadbalancer.balanced_workers=remote, local The problem is that when I bring up multiple browsers, every single one is sent to the remote machine (the default page on each machine is different). If I switch the order from remote, local to local, remote every request is sent to the local machine, and none reach the remote. When I changed the order in the balanced_workers line, I also switched the lbfactors so that the remote machine should get the majority of requests, but it doesn't get any. I'm running Tomcat 3.3a on SuSE 7.2 as my localhost and Tomcat 3.3a on Windows 2000 as my remote. Running Apache 1.3.22 on my linux box to funnel the http requests to the tomcat load balancing worker. The mod_Jk module is mod_jk-3.3-ap13-noeapi.so. Any suggestions? Thanks --Michael -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
StaticInterceptor replacement in 4.0.x
Hi all, I need to find a way to disable directory listing in tomcat 4.0.x. This previously was accomplished StaticInterceptor, but I have not found an equivalent Valve in 4.0.x. Any help would be greatly appreciated. P.S. And no, putting index.html in every directory is not a feasible nor a satisfactory solution. Rick -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: StaticInterceptor replacement in 4.0.x
On Tue, 5 Mar 2002, Rick Szeto wrote: Date: Tue, 05 Mar 2002 13:10:21 -0500 From: Rick Szeto [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: StaticInterceptor replacement in 4.0.x Hi all, I need to find a way to disable directory listing in tomcat 4.0.x. This previously was accomplished StaticInterceptor, but I have not found an equivalent Valve in 4.0.x. Any help would be greatly appreciated. P.S. And no, putting index.html in every directory is not a feasible nor a satisfactory solution. Directory listings in Tomcat 4 are created by the default file-serving servlet that also serves static content. This servlet is configured in the $CATALINA_HOME/conf/web.xml file that defines servlet-based services for all web applications - in particular, see the listings init parameter. Rick Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: DB Connection Pool
If anyone is currently using a third-part pool that they are well pleased with, I would greatly appreciate that information too. We just finished this discussion. Please check the archive. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat and Keep-Alive
Does Tomcat support keep-alive socket connections? Tim -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat 4 Realms and MySQL
Hello. I would like to be able to use a MySQL table for my user authentication instead of the unencryptable tomcat-users.xml. I have looked for this documentation, but have yet to find it. Anyone have ideas/knowledge they care to impart? John Hollingsworth -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: StaticInterceptor replacement in 4.0.x
Thank you for your help Craig, it is greatly appreciated. Rick [EMAIL PROTECTED] 03/05/02 01:34PM On Tue, 5 Mar 2002, Rick Szeto wrote: Date: Tue, 05 Mar 2002 13:10:21 -0500 From: Rick Szeto [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: StaticInterceptor replacement in 4.0.x Hi all, I need to find a way to disable directory listing in tomcat 4.0.x. This previously was accomplished StaticInterceptor, but I have not found an equivalent Valve in 4.0.x. Any help would be greatly appreciated. P.S. And no, putting index.html in every directory is not a feasible nor a satisfactory solution. Directory listings in Tomcat 4 are created by the default file-serving servlet that also serves static content. This servlet is configured in the $CATALINA_HOME/conf/web.xml file that defines servlet-based services for all web applications - in particular, see the listings init parameter. Rick Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Who uses connection pool?
Yes, you are partially right. The last post to their mailing list of one of the Tyrex developers was around November, 20. Julio Castillo wrote: I checked the Exolab.org website for an updated Tyrex, and noticed in their Change Log that the last version released was 0.9.7 which is more than a year old. I wonder if anyone is working on the 1.0 version. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Lev Assinovsky Sent: Tuesday, March 05, 2002 6:59 AM To: Tomcat Users List Subject: Re: Who uses connection pool? Hello! I followed your link and found out that example in there is slightly incorrect. Identifier dataSrc is not declared. Besides Tyrex people acknowledged that if your database doesn't support pooling then all you have is tyrex EnabledDataSource class without pool support. I personally is waiting for tyrex-1.0. King-On Yeung wrote: yes, i do. follow suggestion: http://mikal.org/interests/java/tomcat/archive/view?mesg=41226 it works for JNDI + postgesql . -- __ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4 Realms and MySQL
Hi, John, You need to switch your security realm from Memory Realm to JdbcRealm. Then you need to reconfigure the TOMCAT_HOME/conf/server.xml. Comment Realm className=org.apache.catalina.realm.MemoryRealm / out! Then set up your MySql as follows: Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=org.gjt.mm.mysql.Driver connectionURL=jdbc:mysql://localhost/tomcatusers?user=tet;password=test userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name / Okay dokay? Micael At 02:11 PM 3/5/02 -0500, you wrote: Hello. I would like to be able to use a MySQL table for my user authentication instead of the unencryptable tomcat-users.xml. I have looked for this documentation, but have yet to find it. Anyone have ideas/knowledge they care to impart? John Hollingsworth -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4 Realms and MySQL
John, Also make sure that the JAR file containing the JDBC driver referenced by the driverName attribute is placed in Tomcat's CLASSPATH. If you are using the JDBC-ODBC bridge, the driver is already in Tomcat's CLASSPATH. Micael At 02:11 PM 3/5/02 -0500, you wrote: Hello. I would like to be able to use a MySQL table for my user authentication instead of the unencryptable tomcat-users.xml. I have looked for this documentation, but have yet to find it. Anyone have ideas/knowledge they care to impart? John Hollingsworth -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Who uses connection pool?
Hi folks, Ok, I know we've beaten this to death today but all this discussion about DB Pooling got me thinking... Currently I'm using the Oracle thin client JDBC driver (class12.jar) to talk to a 9i database. I'm currently using the connection pooling/caching support Oracle supplies (the OracleConnectionCacheImpl class). Have any of you used this? How would you contrast it to say poolman, Bitmechanic's pool code, or DBConnectionBroker (I think that's all the ones that have been thrown around today)? Would one of these be a better choice? Based on today's discussion I won't even consider Tomcat's native pooling (tyrex). I'm still in development with my code and haven't put it under load so it would be nice to know if this is a good route to take before we get into production. Thanks in advance. - Rich -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: [ANNOUNCEMENT] Tomcat 4.0.4 Beta 1 released
If you still use Tyrex stuff for ConnectionPoolDataSource implementation I have to tell you: 1. Tyrex classes don't provide pooling. 2. Something happened in Exolab.org - no activity in developer's mailing list. 3. The last release was more then year ago, Remy Maucherat wrote: The first beta release of Tomcat 4.0.4 has been released. This release includes bugfixes and small feature additions over Tomcat 4.0.2/4.0.3 (please refer to the release notes for the complete list). Release notes: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4-b1/RELEAS E-NOTES Downloads (source and binaries): http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4-b1/ Remy -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4 Realms and MySQL
Also, John, Normally you would want to use three tables: user table (with user_name and user_pass columns) create table users { user_name VARCHAR(15) not null primary key, user_pass VARCHAR(15) not null }; roles table (with role_name column) create table roles { role_name VARCHAR(15) not null primary key }; user_roles (join table with user_name and role_name columns) create table user_roles { user_name VARCHAR(15) not null, role_name VARCHAR(15) not null, primary key(user_name, role_name) }; This is a well-worn wheel which I am not re-inventing. Micael At 02:11 PM 3/5/02 -0500, you wrote: Hello. I would like to be able to use a MySQL table for my user authentication instead of the unencryptable tomcat-users.xml. I have looked for this documentation, but have yet to find it. Anyone have ideas/knowledge they care to impart? John Hollingsworth -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Garbage showing up when trying to download a word doc in TC 4.0.1
Hello, I have a web application that displays word documents in the browser. However, when i click on the download icon I get garbage on the page instead of a browser dialog giving me options to save/open the document. This problem i am experiencing when running Tomcat 4.0.1 with IIS and standalone. Is this a character encoding problem? Do i need to encode the Doc URL differently that when I was using TC 3.2.4? Where can I find documentation regarding this problem? Can someone help me with this? Thank you -Mehjabin -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]