AW: IIS + Tomcat running in different machines
If you have the local connection working, changing the worker.ajp13.host parameter from localhost to the tomcat host should do it. Is the Tomcat host reachable with telnet 192.168.1.28 8009 ? Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XForms processor
Hi, Does anyone know of an XForms processor other than OXF that can be used with Tomcat ? Thanks Pete - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
collated phone profiles site
http://w3development.de/rdf/uaprof_repository/ This list is not exhaustive bay any means. I will talk you through what the data means and what other information we need to gather. Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: collated phone profiles site
oops. wrong list. Jon Wingfield wrote: http://w3development.de/rdf/uaprof_repository/ This list is not exhaustive bay any means. I will talk you through what the data means and what other information we need to gather. Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem at Tomcat Start up
I am working on Redhat Linux 9 I am using Oracle 9I for JdBc Realm for user authentication.the tomcat server could not started. I am getting the following error message in Catalina.out. Feb 11, 2004 4:25:54 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Feb 11, 2004 4:25:54 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 7197 ms Feb 11, 2004 4:25:55 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Feb 11, 2004 4:25:55 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.18 java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) Caused by: java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:834) at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java) at oracle.jdbc.driver.OracleConnection.init(OracleConnection.java) at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java) at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:645) at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:709) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1117) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345) at org.apache.catalina.startup.Catalina.start(Catalina.java:598) ... 6 more Feb 11, 2004 4:31:10 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Feb 11, 2004 4:31:11 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 6124 ms Feb 11, 2004 4:31:11 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Feb 11, 2004 4:31:11 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.18 java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) Caused by: java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:834) at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java) at oracle.jdbc.driver.OracleConnection.init(OracleConnection.java) at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java) at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:645) at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:709) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1117) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345) at org.apache.catalina.startup.Catalina.start(Catalina.java:598) ... 6 more Thanks in advance Amit - Still single? Click here to find the perfect match. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem at Tomcat Start up
From: amit varshney [mailto:[EMAIL PROTECTED] Caused by: java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:834) at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java) at oracle.jdbc.driver.OracleConnection.init(OracleConnection.java) Hi, I really dislike Java error messages. I don't think you can find less useful output. END OF TROLL. Anyway, this is not a tomcat issue. If I read it well, your Oracle JDBC driver is linked with a library (ocijdbc9). This library is not found in the java.library.path. Either fix your java.library.path or your Oracle client installation. Hope this helps, François. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best practice question: where to place project libraries
Matt Raible wrote: -Original Message- From: Josh Rehman [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 10, 2004 5:49 PM Thanks. You bring up an interesting aspect of container configuration: database drivers. It would be interesting to extend the META-INF/context.xml tomcat convention to include support for the installation of 3rd party libraries. E.g., libraries placed in META-INF/server/lib will be placed into the similiar tomcat directory on deployment. Same thing for common/lib. +1 - that'd be slick! Seems wrong to me - one web application should not be able to change the environment for others. (Also I think a Tomcat server restart would be needed for it to take effect anyway). John. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Best practice question: where to place project libraries
Ya hemos recibido su solicitud de correo en breve le enviaremos su nombre de usuario y contreseña. Gracias por confiar en nosotros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Re: Best practice question: where to place project libraries
Ya hemos recibido su solicitud de correo en breve le enviaremos su nombre de usuario y contreseña. Gracias por confiar en nosotros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Re: Re: Best practice question: where to place project libraries
Ya hemos recibido su solicitud de correo en breve le enviaremos su nombre de usuario y contreseña. Gracias por confiar en nosotros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Re: Re: Re: Best practice question: where to place project libraries
Ya hemos recibido su solicitud de correo en breve le enviaremos su nombre de usuario y contreseña. Gracias por confiar en nosotros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Re: Re: Re: Re: Best practice question: where to place project libraries
Ya hemos recibido su solicitud de correo en breve le enviaremos su nombre de usuario y contreseña. Gracias por confiar en nosotros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Re: Re: Re: Re: Re: Best practice question: where to place project libraries
Ya hemos recibido su solicitud de correo en breve le enviaremos su nombre de usuario y contreseña. Gracias por confiar en nosotros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does anyone have successfully build mod_jk2 on RH9 with Tomcat 4.1.xx, please share
Anthony, Phupha does not apxs on his machine. RD9 so nicely leaves it off. In order to build mod_jk2, you must install apache from source or another rpm that includes apxs. I have the same issue. Currently I am running Tomcat in standalone mode. Doug - Original Message - From: Anthony Gray [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 1:33 AM Subject: RE: Does anyone have successfully build mod_jk2 on RH9 with Tomcat 4.1.xx, please share you should be able to compile from the mod_jk2 source using the following method : - cd jk2source/jk/native2/ - ./configure --with-apxs2=path to apxs in the apache2 dir --with-apache=path to apache2 (ie ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-apache=/usr/local/apache) - make - you should then find the mod_jk2.so in jk2 source/jk/build/jk2/apache2/ I was able to use the following method successfully for apache2 (built from source), tomcat 4 and 5, and mod_jk2 (source). Anthony From: Phupha Punyapotasakul [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Does anyone have successfully build mod_jk2 on RH9 with Tomcat 4.1.xx, please share Date: Wed, 11 Feb 2004 11:26:37 +0700 I've spent so much time to compile mod_jk2 but not success. Is it possible to download build version from internet ? Please tell me where to download. My Machine === Linux RH9 + Tomcat4.1.27 (Apache Httpd is bundle with RH9) I can't compile because, httpd on RH9 don't have apxs2 Thank you for advance. Phupha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Get less junk mail with ninemsn Premium. Click here http://ninemsn.com.au/premium/landing.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Re: Re: Re: Re: Re: Re: Best practice question: where to place project libraries
Ya hemos recibido su solicitud de correo en breve le enviaremos su nombre de usuario y contreseña. Gracias por confiar en nosotros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Does anyone have successfully build mod_jk2 on RH9 with Tomcat 4.1.xx, please share
Ya hemos recibido su solicitud de correo en breve le enviaremos su nombre de usuario y contreseña. Gracias por confiar en nosotros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Re: Re: Re: Re: Re: Re: Re: Best practice question: where to place project libraries
Ya hemos recibido su solicitud de correo en breve le enviaremos su nombre de usuario y contreseña. Gracias por confiar en nosotros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Re: Does anyone have successfully build mod_jk2 on RH9 with Tomcat 4.1.xx, please share
Ya hemos recibido su solicitud de correo en breve le enviaremos su nombre de usuario y contreseña. Gracias por confiar en nosotros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Web Activity Monitoring
Does an1 know of open source stuff that will monitor hits (distribution over day/week///), browser type, etc ? Similar to www.speed-trap.com Thanks, Pete. *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. *** For any information on the Quinn Group of Companies please visit :- http://www.quinn-group.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem using JNI(loadLibrary), Servlet and Tomcat
I'm having a problem using servlets and maybe some of you can help me to figure out what's going on. Here's the deal: I have a servlet that loads a C library and uses some of these C native methods. In addition, I have some JSPs that invoke the routines contained in this servlet. My C application has some peculiarities: it can work either in a interactive way or in a non-interactive way. When I invoke it in the non-interactive way and provide it all the input needed, I have no problems at all. That's how it is working today. When I try to invoke my C application in a interactive way and try to establish a conversation between my C application and the JSPs, everything also seems to work fine. The nightmare begins when two or more users try to use this application in a interactive way at the same time. If I have two browsers working at the same time and accessing this application, the system just doesn't work correctly. It seems that since you begin to run the application from a browser, you can't run it again until the previous user has finished his work. From what I've talked with other people and from my experience, the only thing I could conclude is that Tomcat can't handle very well those multi-task operations. It seems that it throws a thread for each request that is made, but you have only one process in charge of the whole thing. I suppose that's why I'm having these problems. Does anyone have any idea of what it could be ? Have any of you noticed a similar problem before ? Could it be a tomcat configuration issue ? Some people suggested to use JavaBeans to solve this problem, have any of you tried this approach before ? Thanks in advance. Flávio Castro. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Does anyone have successfully build mod_jk2 on RH9 with Tomcat 4.1.xx, please share
I use Mandrake and it's not too far off of RH as far as package structure. Did you install the apache2-devel package? I believe that's needed to get apxs on your system. I built mod_jk with apxs on my Mandrake 9.2 system no problem. --David you should be able to compile from the mod_jk2 source using the following method : - cd jk2source/jk/native2/ - ./configure --with-apxs2=path to apxs in the apache2 dir --with-apache=path to apache2 (ie ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-apache=/usr/local/apache) - make - you should then find the mod_jk2.so in jk2 source/jk/build/jk2/apache2/ I was able to use the following method successfully for apache2 (built from source), tomcat 4 and 5, and mod_jk2 (source). Anthony From: Phupha Punyapotasakul [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Does anyone have successfully build mod_jk2 on RH9 with Tomcat 4.1.xx, please share Date: Wed, 11 Feb 2004 11:26:37 +0700 I've spent so much time to compile mod_jk2 but not success. Is it possible to download build version from internet ? Please tell me where to download. My Machine === Linux RH9 + Tomcat4.1.27 (Apache Httpd is bundle with RH9) I can't compile because, httpd on RH9 don't have apxs2 Thank you for advance. Phupha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Get less junk mail with ninemsn Premium. Click here http://ninemsn.com.au/premium/landing.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Web Activity Monitoring
http://www.mrunix.net/webalizer/ http://awstats.sourceforge.net/ http://www.analog.cx/ http://www.google.de/search?q=open+source+web+log+analyzer -Original Message- From: Pete Stokes [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 2:45 PM To: Tomcat Users List Subject: Web Activity Monitoring Does an1 know of open source stuff that will monitor hits (distribution over day/week///), browser type, etc ? Similar to www.speed-trap.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Another Try at MySQL Connection Pooling
I'm using this setup on a linux box and the only thing I can see different is your URL. I'm not familiar with the named pipes method of accessing MySQL from Tomcat. My URL is of this format: jdbc:mysql://[server name]:3306/[database name]?autoReconnect=true Also, did you place the mysql-connnector jar in the common/lib directory of the Tomcat directory? It has to be there to use the DBCP connection pool. Beyond those things, the error is most likely in your java code somehow. Heaven knows I've beaten my head over enough simple errors and typos. --David I'm running * Tomcat 5.0.18 running as a Wndows service, * MySQL 4.0.16 running as a Windows service, and * MySQL Connector/J 3.0.10 stable all on Windows 2000 Server, which is where I'm also doing the testing (i.e., on localhost). A number of tomcat-user mailing list denizens have given me snippets of XML to put in various places. Nothing worked. So I tried following the MySQL Configuration example from http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html. After all changes were made to server.xml, web.xml and timesheet.xml (the context fragment under conf/Catalina/localhost), I restarted Tomcat and tried to login (the first action that would have had to touch the MySQL database). I got the following errorPage: At Timesheet.Util.errorPage(Util.java:550) there occurred a java.lang.Exception: A fatal exception occurred while retrieving login name and pass phrase because... At Timesheet.Util.getSqlConnection(Util.java:492) there occurred a java.lang.Exception: Unable to establish a MysqlDataSource connection for ResourceLine name jdbc/TimesheetsDB because... At org.apache.naming.NamingContext.lookup(NamingContext.java:814) there occurred a javax.naming.NameNotFoundException: Name jdbc is not bound in this Context OK, that seems to say it doesn't know what the name jdbc/TimesheetsDB is. Tomcat has written nothing to stderr.log and stdout.log shows a clean startup, so Tomcat itself isn't too perturbed. stdout.log includes the following line: INFO: Processing Context configuration file URL file:C:\Program Files\Apache Group\Tomcat 5.0.18\conf\Catalina\localhost\timesheet.xml implying that my timesheet.xml context fragment file was found and processed. The Timesheet application log file contains the following: 2004-02-10 16:20:05 NamingContextListener[/Catalina/localhost/timesheet]: Resource parameters for jdbc/TimesheetsDB = ResourceParams[name=jdbc/TimesheetsDB, parameters={factory=org.apache.commons.dbcp.BasicDataSourceFactory, url=jdbc:mysql://localhost/Timesheets?autoReconnect=truesocketFactory=com.mysql.jdbc.NamedPipeSocketFactory, password=All41a14all, maxWait=1, maxActive=100, driverClassName=org.gjt.mm.mysql.Driver, username=timesheet_app, maxIdle=30}] 2004-02-10 16:20:05 NamingContextListener[/Catalina/localhost/timesheet]: Adding resource ref jdbc/TimesheetsDB 2004-02-10 16:20:05 NamingContextListener[/Catalina/localhost/timesheet]: ResourceRef[className=javax.sql.DataSource,factoryClassLocation=null,factoryClassName=org.apache.naming.factory.ResourceFactory,{type=scope,content=Shareable},{type=auth,content=Container},{type=factory,content=org.apache.commons.dbcp.BasicDataSourceFactory},{type=url,content=jdbc:mysql://localhost/Timesheets?autoReconnect=truesocketFactory=com.mysql.jdbc.NamedPipeSocketFactory},{type=password,content=All41a14all},{type=maxWait,content=1},{type=maxActive,content=100},{type=driverClassName,content=org.gjt.mm.mysql.Driver},{type=username,content=timesheet_app},{type=maxIdle,content=30}] 2004-02-10 16:20:05 NamingContextListener[/Catalina/localhost/timesheet]: Resource parameters for UserTransaction = null [Blank lines added for clarity.] As per the instructions in the jndi-datasource-examples-howto.html page, my web.xml file has the following addition resource-ref descriptionMySql Connection Pool/description res-ref-namejdbc/TimesheetsDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref immediately after the error-page element and immediately before the security-constraint element. Now that I am using the timesheet.xml context fragment file, server.xml is unchanged except that I have modified it to use port 80 in place of 8080 and port 443 in place of 8443. The timesheet.xml context fragment file looks like this: Context path=/timesheet docBase=timesheet debug=9 reloadable=true crossContext=true displayName=ConnectTel Timesheet Application Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_timesheet_log. suffix=.txt timestamp=true/ Resource name=jdbc/TimesheetsDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/TimesheetsDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter
RE: Best practice question: where to place project libraries
Howdy, My take on this: everything used to build every version of your deliverable should be under source code control: that includes dependencies such as servlet-api.jar. So it's not OK to simply rely on the tomcat distro servlet-api.jar. It IS OK to copy the tomcat distro servlet-api.jar into your source code control system. It is also OK to use a 3rd party repository like ibiblio for your dependencies, but some organizations won't like that. As for putting these libraries in your WAR: Senor Ruthenbeck was right no target in saying you don't put container-provided libraries in the WAR, as most containers (including tomcat) will barf. Yoav Shapira Millennium ChemInformatics -Original Message- From: Josh Rehman [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 10, 2004 7:17 PM To: Tomcat Users List Subject: Best practice question: where to place project libraries I need servlet-api.jar to compile my project. I may need some of the commons-beans stuff in the future. Should I put these libs in my projects lib folder (and then in the war) or should I rely on the tomcat versions? If the latter, which jar will be used, and what should I do if I deploy to a different container? I'm leaning toward duplicating the libraries (this removes an environment dependancy, too), but I'd like some advice. -- Josh Rehman citysearch.com 213.739.3559 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Web Activity Monitoring
also if we can capture the conversion ratio/stats of users and at what point they drop out of an ordering process. Pete. Pete Stokes wrote: Does an1 know of open source stuff that will monitor hits (distribution over day/week///), browser type, etc ? Similar to www.speed-trap.com Thanks, Pete. *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. *** For any information on the Quinn Group of Companies please visit :- http://www.quinn-group.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. *** For any information on the Quinn Group of Companies please visit :- http://www.quinn-group.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
More detailed Tomcat diagnosis
Hi, Recently we've had occasions where tomcat has gone out of control and taken over the machine upon which it resides, causing the load to exceed the number of processors. What I'm wondering is, is there any way to get a closer analysis of the JVM, even to find out which application is causing the load. I'm pretty sure it is one of our apps but would be nice to see which one as we have about 10 on there. Thanks Matt Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5 initiating jndi lookup to weblogic 8.1 / save my soul!
Howdy, I have an application service which would like to communicate with weblogic 8.1 using JMS. If I include the wlcient.jar in my webapps/app name/lib/ directory, I get a cascade of errors on tomcat start up (strack trace below). If I do not include wlclient in the lib directory, I get NoClassDefFoundException (s) for classes that exist in that .jar. The place for the jar is the WEB-INF/lib directory of your webapp, not common/lib (unless you're setting this up in server.xml, which I suggest you NOT do, at least for now). In the past, the Weblogic jar had a bunch of other classes that caused conflicts, including JMX implementations. What does your weblogic client jar contain? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Web Activity Monitoring
Peter There are the HTTP Variables example: http://www.lib.washington.edu/asp/browser/servar.asp How would you want to capture this information? Regards, Marty Gainty - Original Message - From: Pete Stokes [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 8:45 AM Subject: Web Activity Monitoring Does an1 know of open source stuff that will monitor hits (distribution over day/week///), browser type, etc ? Similar to www.speed-trap.com Thanks, Pete. *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. *** For any information on the Quinn Group of Companies please visit :- http://www.quinn-group.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: More detailed Tomcat diagnosis
Howdy, Sure, you can use a profiler ;) But failing that on a production machine, you can issue the JVM a SIGQUIT to see what threads are active and what they're doing. Yoav Shapira Millennium ChemInformatics -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 9:08 AM To: Tomcat Users List Subject: More detailed Tomcat diagnosis Hi, Recently we've had occasions where tomcat has gone out of control and taken over the machine upon which it resides, causing the load to exceed the number of processors. What I'm wondering is, is there any way to get a closer analysis of the JVM, even to find out which application is causing the load. I'm pretty sure it is one of our apps but would be nice to see which one as we have about 10 on there. Thanks Matt This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Another Try at MySQL Connection Pooling
I too am not sure what the problem is, though I've got this working on Windows at least. Couple of comments: First, what is the need for the second factory definition in the URL i.e. socketFactory=com.mysql.jdbc.NamedPipeSocketFactory? You've already defined a factory in the Resource definition (org.apache.commons.dbcp.BasicDataSourceFactory). Maybe it's a Linux requirement? On Windows, my URL simply looks like: jdbc:microsoft:sqlserver://MY_SERVER:1433;Database=MY_DATABSE For working solution (at least on Windows), take a look a my post from last week. Maybe it'll shed some light. http://marc.theaimsgroup.com/?l=tomcat-userm=107608296706322w=2 Finally, as Josh requested, I've already sent him a ZIP containing a very simple app that demonstrates this functionality in action. He indicated that he'd try to get it into an FAQ at some point. If you're interested, email me offline and I'd be happy to forward it to you as well. Let us know how it progresses. Jay -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 8:03 AM To: Tomcat Users List Subject: Re: Another Try at MySQL Connection Pooling I'm using this setup on a linux box and the only thing I can see different is your URL. I'm not familiar with the named pipes method of accessing MySQL from Tomcat. My URL is of this format: jdbc:mysql://[server name]:3306/[database name]?autoReconnect=true Also, did you place the mysql-connnector jar in the common/lib directory of the Tomcat directory? It has to be there to use the DBCP connection pool. Beyond those things, the error is most likely in your java code somehow. Heaven knows I've beaten my head over enough simple errors and typos. --David I'm running * Tomcat 5.0.18 running as a Wndows service, * MySQL 4.0.16 running as a Windows service, and * MySQL Connector/J 3.0.10 stable all on Windows 2000 Server, which is where I'm also doing the testing (i.e., on localhost). A number of tomcat-user mailing list denizens have given me snippets of XML to put in various places. Nothing worked. So I tried following the MySQL Configuration example from http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-example s-howto.html. After all changes were made to server.xml, web.xml and timesheet.xml (the context fragment under conf/Catalina/localhost), I restarted Tomcat and tried to login (the first action that would have had to touch the MySQL database). I got the following errorPage: At Timesheet.Util.errorPage(Util.java:550) there occurred a java.lang.Exception: A fatal exception occurred while retrieving login name and pass phrase because... At Timesheet.Util.getSqlConnection(Util.java:492) there occurred a java.lang.Exception: Unable to establish a MysqlDataSource connection for ResourceLine name jdbc/TimesheetsDB because... At org.apache.naming.NamingContext.lookup(NamingContext.java:814) there occurred a javax.naming.NameNotFoundException: Name jdbc is not bound in this Context OK, that seems to say it doesn't know what the name jdbc/TimesheetsDB is. Tomcat has written nothing to stderr.log and stdout.log shows a clean startup, so Tomcat itself isn't too perturbed. stdout.log includes the following line: INFO: Processing Context configuration file URL file:C:\Program Files\Apache Group\Tomcat 5.0.18\conf\Catalina\localhost\timesheet.xml implying that my timesheet.xml context fragment file was found and processed. The Timesheet application log file contains the following: 2004-02-10 16:20:05 NamingContextListener[/Catalina/localhost/timesheet]: Resource parameters for jdbc/TimesheetsDB = ResourceParams[name=jdbc/TimesheetsDB, parameters={factory=org.apache.commons.dbcp.BasicDataSourceFactory, url=jdbc:mysql://localhost/Timesheets?autoReconnect=truesocketFactory =com.mysql.jdbc.NamedPipeSocketFactory, password=All41a14all, maxWait=1, maxActive=100, driverClassName=org.gjt.mm.mysql.Driver, username=timesheet_app, maxIdle=30}] 2004-02-10 16:20:05 NamingContextListener[/Catalina/localhost/timesheet]: Adding resource ref jdbc/TimesheetsDB 2004-02-10 16:20:05 NamingContextListener[/Catalina/localhost/timesheet]: ResourceRef[className=javax.sql.DataSource,factoryClassLocation=null,f actoryClassName=org.apache.naming.factory.ResourceFactory,{type=scope,co ntent=Shareable},{type=auth,content=Container},{type=factory,content=org .apache.commons.dbcp.BasicDataSourceFactory},{type=url,content=jdbc:mysq l://localhost/Timesheets?autoReconnect=truesocketFactory=com.mysql.jdbc .NamedPipeSocketFactory},{type=password,content=All41a14all},{type=maxWa it,content=1},{type=maxActive,content=100},{type=driverClassName,con tent=org.gjt.mm.mysql.Driver},{type=username,content=timesheet_app},{typ e=maxIdle,content=30}] 2004-02-10 16:20:05 NamingContextListener[/Catalina/localhost/timesheet]: Resource parameters for UserTransaction = null [Blank lines added
RE: Another Try at MySQL Connection Pooling
Oops. Haven't had my coffee yet. I read MySQL but thought SQL Server. Obviously my DB is different than yours, so that may explain our differences. But either way, my previous post might still help. Jay -Original Message- From: Merrill Cornish [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 10, 2004 4:25 PM To: [EMAIL PROTECTED] Subject: Another Try at MySQL Connection Pooling I'm running * Tomcat 5.0.18 running as a Wndows service, * MySQL 4.0.16 running as a Windows service, and * MySQL Connector/J 3.0.10 stable all on Windows 2000 Server, which is where I'm also doing the testing (i.e., on localhost). A number of tomcat-user mailing list denizens have given me snippets of XML to put in various places. Nothing worked. So I tried following the MySQL Configuration example from http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples -howto.html. After all changes were made to server.xml, web.xml and timesheet.xml (the context fragment under conf/Catalina/localhost), I restarted Tomcat and tried to login (the first action that would have had to touch the MySQL database). I got the following errorPage: At Timesheet.Util.errorPage(Util.java:550) there occurred a java.lang.Exception: A fatal exception occurred while retrieving login name and pass phrase because... At Timesheet.Util.getSqlConnection(Util.java:492) there occurred a java.lang.Exception: Unable to establish a MysqlDataSource connection for ResourceLine name jdbc/TimesheetsDB because... At org.apache.naming.NamingContext.lookup(NamingContext.java:814) there occurred a javax.naming.NameNotFoundException: Name jdbc is not bound in this Context OK, that seems to say it doesn't know what the name jdbc/TimesheetsDB is. Tomcat has written nothing to stderr.log and stdout.log shows a clean startup, so Tomcat itself isn't too perturbed. stdout.log includes the following line: INFO: Processing Context configuration file URL file:C:\Program Files\Apache Group\Tomcat 5.0.18\conf\Catalina\localhost\timesheet.xml implying that my timesheet.xml context fragment file was found and processed. The Timesheet application log file contains the following: 2004-02-10 16:20:05 NamingContextListener[/Catalina/localhost/timesheet]: Resource parameters for jdbc/TimesheetsDB = ResourceParams[name=jdbc/TimesheetsDB, parameters={factory=org.apache.commons.dbcp.BasicDataSourceFactory, url=jdbc:mysql://localhost/Timesheets?autoReconnect=truesocketFactory=c om.mysql.jdbc.NamedPipeSocketFactory, password=All41a14all, maxWait=1, maxActive=100, driverClassName=org.gjt.mm.mysql.Driver, username=timesheet_app, maxIdle=30}] 2004-02-10 16:20:05 NamingContextListener[/Catalina/localhost/timesheet]: Adding resource ref jdbc/TimesheetsDB 2004-02-10 16:20:05 NamingContextListener[/Catalina/localhost/timesheet]: ResourceRef[className=javax.sql.DataSource,factoryClassLocation=null,fac toryClassName=org.apache.naming.factory.ResourceFactory,{type=scope,cont ent=Shareable},{type=auth,content=Container},{type=factory,content=org.a pache.commons.dbcp.BasicDataSourceFactory},{type=url,content=jdbc:mysql: //localhost/Timesheets?autoReconnect=truesocketFactory=com.mysql.jdbc.N amedPipeSocketFactory},{type=password,content=All41a14all},{type=maxWait ,content=1},{type=maxActive,content=100},{type=driverClassName,conte nt=org.gjt.mm.mysql.Driver},{type=username,content=timesheet_app},{type= maxIdle,content=30}] 2004-02-10 16:20:05 NamingContextListener[/Catalina/localhost/timesheet]: Resource parameters for UserTransaction = null [Blank lines added for clarity.] As per the instructions in the jndi-datasource-examples-howto.html page, my web.xml file has the following addition resource-ref descriptionMySql Connection Pool/description res-ref-namejdbc/TimesheetsDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref immediately after the error-page element and immediately before the security-constraint element. Now that I am using the timesheet.xml context fragment file, server.xml is unchanged except that I have modified it to use port 80 in place of 8080 and port 443 in place of 8443. The timesheet.xml context fragment file looks like this: Context path=/timesheet docBase=timesheet debug=9 reloadable=true crossContext=true displayName=ConnectTel Timesheet Application Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_timesheet_log. suffix=.txt timestamp=true/ Resource name=jdbc/TimesheetsDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/TimesheetsDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxActive/name !-- max db connections in the pool -- value100/value !-- 0 implies no limit -- /parameter parameter namemaxIdle/name !-- max idle db connections to
4.1.x: relative external entities in TLDs?
[Sorry if this has been asked before, please point me to an archived discussion (and resolution, if any) if I'm being redundant -- I did try searching the archives first.] When processing TLDs, Tomcat doesn't properly handle relative references for external entities. For example, if I have a TLD in /WEB-INF/tlds/foo.tld, then the following !ENTITY % BAR SYSTEM bar.dtd ought to resolve to /WEB-INF/tlds/bar.dtd; but it doesn't, it resolves relative to the current directory of the java process. Looking at the source code, the processing of the TLDs is different than e.g. web.xml, where a proper InputSource object, complete with a base URI, is used to parse the file. Is there a reason for this difference in behavior, perhaps related to the processing of TLDs in jar files? Jay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5 initiating jndi lookup to weblogic 8.1 / save my soul!
Hi Yoav - Thank you so much for your replies, you are obviously a very kind indvidual who spends a lot of time helping people on this forum. My jar is in WEB-INF lib for my application, not common lib. As for the contents of wlclient.jar, as opposed to a class list, I'm including a list of packages. I can include classes if it will help you, but don't want to clog everyones inbox. javax\ejb - maybe 20 classes javax\ejb\deployment - 6 classes javax\ejb\spi\ - 1 class javax\transaction\ - ~ 12 classes javax\transaction\xa\ - 3 classes org\omg\CosTransactions\ - ~ 30 classes org\omg\CSI\ - ~ 40 classes org\omb\CISIIOP\ - ~ 15 classes org\omg\GSSUP\ - 2 classes org\omg\IIOP\ - 4 classes a large slew of weblogic\corba weblogic\ejb20 weblogic\j2eeclient weblogic\jndi weblogic\kernel weblogic\rmi weblogic\security weblogic\transaction weblogic\util classes. There are a ton of classes in the weblogic folders and I'm not sure it's worth my time to try to see which ones implement JMX functionality. I've taken to trying to create a custom jar file with only the classes that my application needs, hopefully I won't run into anything required that also creates the JMX conflict. Any other insight you can provide would be greatly appreciated. Brian Brian Scott Web Application Specialist NCGi 850.219.5159 (Mainline Office) 850.891.8066 (City of Tallahassee Office) 850.322.2410 (Cellular) Shapira, Yoav [EMAIL PROTECTED]To: Tomcat Users List [EMAIL PROTECTED] .comcc: Subject: RE: tomcat 5 initiating jndi lookup to weblogic 8.1 / save my soul! 02/11/2004 09:07 AM Please respond to Tomcat Users List Howdy, I have an application service which would like to communicate with weblogic 8.1 using JMS. If I include the wlcient.jar in my webapps/app name/lib/ directory, I get a cascade of errors on tomcat start up (strack trace below). If I do not include wlclient in the lib directory, I get NoClassDefFoundException (s) for classes that exist in that .jar. The place for the jar is the WEB-INF/lib directory of your webapp, not common/lib (unless you're setting this up in server.xml, which I suggest you NOT do, at least for now). In the past, the Weblogic jar had a bunch of other classes that caused conflicts, including JMX implementations. What does your weblogic client jar contain? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and files transmitted with it are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you are not one of the named recipient(s) or otherwise have reason to believe that you received this message in error, please immediately notify sender by e-mail, and destroy the original message. Thank You. This e-mail and
POST method not working
Hi, I am suing post method of sending data to servlet from a JSP page. I am unable to get the data by request.getParameter(). If I am sing get method I am able to retrieve data from JSP page Please let me know how to achieve this ? And what is the bug ? Abhay
Re: POST method not working
Hi, hi abhay, I am suing post method of sending data to servlet from a JSP page. I am unable to get the data by request.getParameter(). If I am sing get method I am able to retrieve data from JSP page Please let me know how to achieve this ? And what is the bug ? you may use the nice Commons HTTP Client package from the jakarta project to achieve this safely easily Abhay HTH Jerome -- Auteur cahier du programmeur Java tome 2 - Eyrolles 10/2003 http://www.eyrolles.com/php.informatique/Ouvrages/ouvrage.php3?ouv_ean13=9782212111941 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: POST method not working
Howdy, If POST parameters weren't working, we'd all be in serious trouble. I'm fairly sure they're working fine ;) Would you like to share some code so that we can maybe diagnose a problem? Yoav Shapira Millennium ChemInformatics -Original Message- From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 10:29 AM To: '[EMAIL PROTECTED]' Subject: POST method not working Importance: High Hi, I am suing post method of sending data to servlet from a JSP page. I am unable to get the data by request.getParameter(). If I am sing get method I am able to retrieve data from JSP page Please let me know how to achieve this ? And what is the bug ? Abhay This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Another Try at MySQL Connection Pooling
Jay, Thanks for your comments. I think the problem may be that I don't have the MySQL Connector/J jar in the common/lib. When using DriverManager, it worked fine in jre/lib/ext, which is one of the places the MySQL documentation recommended. I need to try again with it in the new location. Also under DriverManager, the named pipe access worked as advertised. The MySQL instance will be dedicated to my timesheet application and running on the same machine as Tomcat. For security reasons, I don't want MySQL accepting commands over TCP/IP. There is a my.cnf initialization parameter which tells MySQL to not even start up its TCP/IP listener and used named pipes instead. This obviously only works when MySQL is on the same machine as the application, but that's my situation. The named resource factory stuff was carried over from what worked under DriverManager. However, if may have been redundant, but harmless, under DriverManger too, and I just didn't notice. One general problem I'm having with the document I can find is that it tends to simply say, do THIS... without explaining how THIS is doing what it's supposed to be doing. As a result, I'm having trouble reasoning as to what should and should not work. Instead, I'm reduced to plugging in the examples and hoping they work. Merrill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Another Try at MySQL Connection Pooling
As far as the listening bit is concerned why not just limit mySQL to listen on localhost then? Do you get better performance out of named pipes? -Original Message- From: Merrill Cornish [mailto:[EMAIL PROTECTED] Sent: 11 February 2004 15:52 To: Tomcat Users List Subject: RE: Another Try at MySQL Connection Pooling Jay, Thanks for your comments. I think the problem may be that I don't have the MySQL Connector/J jar in the common/lib. When using DriverManager, it worked fine in jre/lib/ext, which is one of the places the MySQL documentation recommended. I need to try again with it in the new location. Also under DriverManager, the named pipe access worked as advertised. The MySQL instance will be dedicated to my timesheet application and running on the same machine as Tomcat. For security reasons, I don't want MySQL accepting commands over TCP/IP. There is a my.cnf initialization parameter which tells MySQL to not even start up its TCP/IP listener and used named pipes instead. This obviously only works when MySQL is on the same machine as the application, but that's my situation. The named resource factory stuff was carried over from what worked under DriverManager. However, if may have been redundant, but harmless, under DriverManger too, and I just didn't notice. One general problem I'm having with the document I can find is that it tends to simply say, do THIS... without explaining how THIS is doing what it's supposed to be doing. As a result, I'm having trouble reasoning as to what should and should not work. Instead, I'm reduced to plugging in the examples and hoping they work. Merrill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. Note:__ This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Jaguar Freight Services and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs.
Re: Another Try at MySQL Connection Pooling
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yiannis Mavroukakis wrote: As far as the listening bit is concerned why not just limit mySQL to listen on localhost then? Do you get better performance out of named pipes? On most versions of Windows, using JDBC and MySQL with named pipes will give you a 50-60% performance improvement. It depends on the particular version of Windows (first, it has to be NT-based, secondly the newer the better). -Mark - -- Mr. Mark Matthews MySQL AB, Software Development Manager, J2EE and Windows Platforms Office: +1 708 332 0507 www.mysql.com Meet the MySQL Team! April 14-16, 2004 http://www.mysql.com/uc2004/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.3 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFAKlT0tvXNTca6JD8RAlLAAJwOqL4QfjEAhc69HSI0VYBerWLT3QCgr+Pt 5JI/y54R11o7k6xyezVJ6Io= =Ay3a -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Another Try at MySQL Connection Pooling
Hi! Mark Matthews wrote: On most versions of Windows, using JDBC and MySQL with named pipes will give you a 50-60% performance improvement. Which IMO is by no way an intidator of Win's greatness in named pipes but rather of it's bad TCP implementation. Instead of relying on named pipes one should concider switching operation systems on the hosting machine... Just my 2 cent Phil -- And on the seventh day, He exited from append mode. (Book of create(2), line 255) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5 initiating jndi lookup to weblogic 8.1 / save my soul!
Howdy, My jar is in WEB-INF lib for my application, not common lib. Good. As for the contents of wlclient.jar, as opposed to a class list, I'm including a list of packages. I can include classes if it will help you, but don't want to clog everyones inbox. No, packages are fine. javax\ejb - maybe 20 classes Hmm... Do any of the classes in that package clash with tomcat's server/lib classes? a large slew of weblogic\corba weblogic\ejb20 weblogic\j2eeclient weblogic\jndi weblogic\kernel weblogic\rmi weblogic\security weblogic\transaction weblogic\util classes. All the ones that start with weblogic.* are fine, as they don't clash with tomcat's classes. There are a ton of classes in the weblogic folders and I'm not sure it's worth my time to try to see which ones implement JMX functionality. I've taken to trying to create a custom jar file with only the classes that my Yup, we used to do that as well. But we've since junked WebLogic and just use OpenJMS for our JMS server. Must simpler, smaller server as well as simpler and smaller client jar, and it works without a hitch (haven't restarted the server in months and months). Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Differences between JK, JK2
Hi everybody, can anyone explain me the differences between JK and JK2 and how I should configure Apache 2.0.48 and Tomcat 4.1.29 to connect them? What's the relation between JK and the workers of Tomcat? Thanks in advance, Juan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Another Try at MySQL Connection Pooling
I'll add another 2 to the pool :) -Original Message- From: Philipp Taprogge [mailto:[EMAIL PROTECTED] Sent: 11 February 2004 16:24 To: Tomcat Users List Subject: Re: Another Try at MySQL Connection Pooling Hi! Mark Matthews wrote: On most versions of Windows, using JDBC and MySQL with named pipes will give you a 50-60% performance improvement. Which IMO is by no way an intidator of Win's greatness in named pipes but rather of it's bad TCP implementation. Instead of relying on named pipes one should concider switching operation systems on the hosting machine... Just my 2 cent Phil -- And on the seventh day, He exited from append mode. (Book of create(2), line 255) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. Note:__ This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Jaguar Freight Services and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs.
request parameter
Have somebody ever had problem with request parameters ? I am using Tomcat 4.1.29 com JK2. Sometimes my request parameters are disappearing. Did somebody already have this problem ? _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache / Tomcat JK problem
Hi. I've been following docs on setting this up (Apache 1.3x Tomcat 5.0.18, jk) for the Tomcat examples, but I get File does not exist: /wwwroot/htdocs/examples/ in apache logs. I have Apache and Tomcat on different boxes. I am not fussed about serving static content as I will eventually use Apache for load balancing. I must be missing something! Any ideas are appreciated. Pete. My Tomcat server.xml snippet is: !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 / My Apache httpd.conf snippet is: LoadModule jk_module libexec/mod_jk.so AddModule mod_jk.c JKWorkersFile /wwwroot/conf/workers.properties JKLogFile /wwwroot/logs/mod_jk.log JKLogLevel info JKLogStampFormat [%a %b %d %H:%M%:%S %Y] JKRequestLogFormat %w %V %T JKMount /examples/*.jsp worker1 JKMount /examples/servlet/* worker1 My workers.properties is (apache machine): ps=/ worker.list=worker1 # Settings for worker1 worker.worker1.port=8009 worker.worker1.host=10.2.0.72 worker.worker1.type=ajp13 *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. *** For any information on the Quinn Group of Companies please visit :- http://www.quinn-group.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: request parameter
are you using the isapi filter? post and get parameters or just get? -Original Message- From: Ricardo de Souza Moura [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 11:50 AM To: [EMAIL PROTECTED] Subject: request parameter Have somebody ever had problem with request parameters ? I am using Tomcat 4.1.29 com JK2. Sometimes my request parameters are disappearing. Did somebody already have this problem ? _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: request parameter
This has appeared on the list before. Without being 100% (better search the list) it had to do with the fact, that the person having the issues was using a JK2 binary... Don't take my word though, search the list. -Original Message- From: Ricardo de Souza Moura [mailto:[EMAIL PROTECTED] Sent: 11 February 2004 16:50 To: [EMAIL PROTECTED] Subject: request parameter Have somebody ever had problem with request parameters ? I am using Tomcat 4.1.29 com JK2. Sometimes my request parameters are disappearing. Did somebody already have this problem ? _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. Note:__ This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Jaguar Freight Services and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs.
RE: request parameter
are you using the isapi filter? no post and get parameters or just get? both I have been trying to search at the list, but I didn't find it yet. I am using Struts with DispatchAction and DynaValidatorForm. thanks From: Frank Diakovasilis [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: request parameter Date: Wed, 11 Feb 2004 11:58:54 -0500 are you using the isapi filter? post and get parameters or just get? -Original Message- From: Ricardo de Souza Moura [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 11:50 AM To: [EMAIL PROTECTED] Subject: request parameter Have somebody ever had problem with request parameters ? I am using Tomcat 4.1.29 com JK2. Sometimes my request parameters are disappearing. Did somebody already have this problem ? _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
javax.mail
Hi, sorry if this is the wrong mailing list but I think most people here are Java programmers so: I am using javax.mail to send a mail to myself if a particular problem occurs on the server. My code seems to work but, but it does not use the smtp server which I am specifying. I cannot find a problem in my code as it seems to be identical to examples which I have found. I use the line: props.put(mail.smtp.host, mysmtphost); to specify the smtp server (which is on a differant computer) but the mail is being sent through the smtp server running on the same machine as the jsp. Has anyone else had this problem at all, or am I just doing something wrong? -Duncan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Another Try at MySQL Connection Pooling
I think I read the using named pipes is faster, but that's not going to be a problem here. If I can't get named pipes to work, then I'll try using TCP/IP restricted to localhost. Actually, this whole DataSource experiment has a questionable return on investment. I already have it working just fine with DriverManager using nothing more than the little README file what comes with MySQL's Connector/J download. However, I'd read that DataSource was the way to go for the future, so I thought that switching from DriverManger to DataSource would be a good exercise. So far, all this exercise has given me is sore muscles. Merrill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: POST method not working
Hi, I was just searching on Google. Actually I am using NTLM Authentication in my Login Servlet. I think there is some conflict between NTLM Authentication and POST method. Any body has an idea what to do or set to get the things done ? http://support.microsoft.com/default.aspx?scid=kb;DE;308074 I am using code from below link: http://www.jguru.com/faq/view.jsp?EID=1045412 Best Regards Abhay Kumar -Original Message- From: jerome moliere [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 9:36 AM To: Tomcat Users List Subject: Re: POST method not working Importance: High Hi, hi abhay, I am suing post method of sending data to servlet from a JSP page. I am unable to get the data by request.getParameter(). If I am sing get method I am able to retrieve data from JSP page Please let me know how to achieve this ? And what is the bug ? you may use the nice Commons HTTP Client package from the jakarta project to achieve this safely easily Abhay HTH Jerome -- Auteur cahier du programmeur Java tome 2 - Eyrolles 10/2003 http://www.eyrolles.com/php.informatique/Ouvrages/ouvrage.php3?ouv_ean13=9782212111941 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Invaild tar?
I get the following while untaring: 2959360 bytes jakarta-tomcat-connectors-jk-1.2-src-current.tar x jakarta-tomcat-5.0.18-src/jakarta-tomcat-jasper/jasper2/src/share/org/ap ache/jasper/tagplugins/jstl tar: 0511-169 A directory checksum error on media; 804398144 not equal to 39532. Thank you, Matt Duval Sr. Network Engineer HealthTrans www.healthtrans.com (720) 493-8252 6061 South Willow Drive Suite 125 Greenwood Village, CO 80111 Transforming Healthcare, One Transaction At A Time - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: done did not found a worker
I have tried to go to http://jakarta.apache.org/site/binindex.cgi and download mod_jk 1.2 , it's not available. Does anybody know how I can get mod_jk1.2 ? David O'Brien wrote: If you are using mod_jk and NOT mod_jk2 then this file's content makes no difference in your configuration. You need to tell apache to use the workers.properties NOT the workers2.properties in your httpd.conf file -Dave At 11:58 AM 2/10/2004, you wrote: But Dave you didn't address this stuff below? I think this is where I'm having the most problems. ##= ##Other needed configuratoin(s) ##= ##define the shared memory file [shm] file=/usr/local/tomcat-4.1.24/work/jk2.shm file=1048576 ## Define the communication channel [channel.socket:localhost:8009] #tomcatId=localhost:8009 port=8009 host=127.0.0.1 #define the worker [balance_all_workers:localhost:8009] channel=channel.socket:localhost:8009 #Uri mapping [uri:saturn.temple.edu/examples/*] #worker=ajp13:localhost:8009 worker=balance_all_workers:localhost:8009 [uri:saturn.temple.edu/developers/*] #worker=ajp13:localhost:8009 worker=balance_all_workers:localhost:8009 [uri:saturn.temple.edu/product/*] #worker=ajp13:localhost:8010 worker=balance_all_workers:localhost:8010 [uri:saturn.temple.edu/uPortal/*] #worker=ajp13:localhost:8010 worker=balance_all_workers:localhost:8010 #[status:] #info=Status worker, displays runtime information channel=channel.socket:localhost:8009 #[uri:/status/*] #worker=status:localhost:8009 #group=status: David Rees wrote: Dwayne Ghant wrote, On 2/9/2004 7:02 PM: Dave, I have been having semular issues would it be impossible for to post the four files listed below: 1. http.conf 2. ssl.conf 3. server.xml 4. workers2.properties Here's a sample for setting up Apache. This will work on either Apache 2.0.X or Apache 1.3.X, and mod_jk 1.2.5. Any version of Tomcat will work, use the example connector config included with every default server.xml as it varies a little between Tomcat versions. httpd.conf # This only shows the portions relevant to mod_jk, you should stick the # lines somewhere in your config file. This config also works for # Apache 1.3.X as well as Apache 2.0.X. --- LoadModule jk_module modules/mod_jk.so JkWorkersFile path-to-apache-conf/tomcat_workers.properties JkLogFile path-to-apache-logs/mod_jk.log JkLogLevel error VirtualHost *:80 ServerName www.example.com JkMount /*.jsp tomcat JkMount /servlet/* tomcat /VirtualHost --- path-to-apache-conf/tomcat_workers.properties --- worker.list=tomcat worker.tomcat.port=8007 worker.tomcat.host=localhost worker.tomcat.type=ajp13 --- That's it! -Dave aka the mod_jk expert NOT a mod_jk2 expert! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] David G. O'Brien Web Services Coordinator / Systems Administrator NACCRRA The Nation's Network of Child Care Resource Referral 1319 F Street NW, Suite 500 Washington, DC 20004 (202) 393-5501 ext. 113 (202) 393-1109 fax - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: javax.mail
This is assuming the Properties object you use, has been returned from the javax.mail.Session object, correct? You could go for the shotgun approach and set mail.host instead of mail.protocol.host. If that doesn't work, make sure that mysmtphost doesn't resolve to the machine serving your jsp. Yiannis -Original Message- From: Duncan Smith [mailto:[EMAIL PROTECTED] Sent: 11 February 2004 17:18 To: Tomcat User List Subject: javax.mail Hi, sorry if this is the wrong mailing list but I think most people here are Java programmers so: I am using javax.mail to send a mail to myself if a particular problem occurs on the server. My code seems to work but, but it does not use the smtp server which I am specifying. I cannot find a problem in my code as it seems to be identical to examples which I have found. I use the line: props.put(mail.smtp.host, mysmtphost); to specify the smtp server (which is on a differant computer) but the mail is being sent through the smtp server running on the same machine as the jsp. Has anyone else had this problem at all, or am I just doing something wrong? -Duncan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. Note:__ This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Jaguar Freight Services and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs.
Re: Servlet thread safety in Tomcat
Thanks to All for your help ! :-) Sofar it seems to be working ,no data corruption,I localized all variables ,put in some synchronized blocks,removed them again(synchronized blocks) and seems to work, but not sure why without the synchrozed blocks its working . :-\ Is there free software that I can use to test the concurrency issues,because at the moment I am trying to test all this using two client machines and this does not work at all.Software that can create many simultanoeus connections sending in the request parameters to Tomcat would do well for testing . Shapira, Yoav wrote: Howdy, this has made me think a lot about threading , it is really complicated , I have researched about it but never found a clean solution to Threading is complicated, yes, and difficult to do well. Which is why when possible you should let someone else do the work for you and use a library like Doug Lea's util.concurrent, which is now java.util.concurrent in JDK 1.5. It has thread pools, executors, locks, etc so you don't have to write any of this sync code yourself. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: javax.mail
You don't need a SMTP server to send mail . Technically speaking the protocol it self does the sending and not the server. Duncan Smith wrote: Hi, sorry if this is the wrong mailing list but I think most people here are Java programmers so: I am using javax.mail to send a mail to myself if a particular problem occurs on the server. My code seems to work but, but it does not use the smtp server which I am specifying. I cannot find a problem in my code as it seems to be identical to examples which I have found. I use the line: props.put(mail.smtp.host, mysmtphost); Make sure that mail.smtp.host allows relaying! to specify the smtp server (which is on a differant computer) but the mail is being sent through the smtp server running on the same machine as the jsp. Has anyone else had this problem at all, or am I just doing something wrong? -Duncan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Invaild tar?
make sure your using gnu tar -Tim Matt T. Duval wrote: I get the following while untaring: 2959360 bytes jakarta-tomcat-connectors-jk-1.2-src-current.tar x jakarta-tomcat-5.0.18-src/jakarta-tomcat-jasper/jasper2/src/share/org/ap ache/jasper/tagplugins/jstl tar: 0511-169 A directory checksum error on media; 804398144 not equal to 39532. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Another Try at MySQL Connection Pooling
David, I THINK I've figure out that MySQL's Connector/J jar worked in jre/lib/ex when I was using DriverManager because only MySQL needed to see it, and it knew to look in jre/lib/ex. However, with DataSource, I'm assuming it's Tomcat who needs to see it, so it needs to be in Tomcat's common/lib. So I put Connect/J's jar in common/lib--and it still failed in the same manner. I'm wondering if the actual error message MIGHT be giving a clue. It says Name jdbc is not bound in this Context when the only thing that EVER appears in any of the XML is jdbc/TimesheetsDB. * Does this imply that jdbc/TimesheetsDB is wrong and the entries should be something like simply TimesheetsDB? * Does this imply that jdbc has to be declared in some manner before jdbc/TimesheetsDB can be declared? Merrill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Invaild tar?
Why would that matter? I have been able to untar thousands of other files including gnu files and they all work fine... Thank you, Matt Duval Sr. Network Engineer HealthTrans www.healthtrans.com (720) 493-8252 6061 South Willow Drive Suite 125 Greenwood Village, CO 80111 Transforming Healthcare, One Transaction At A Time -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 10:42 AM To: Tomcat Users List Subject: Re: Invaild tar? make sure your using gnu tar -Tim Matt T. Duval wrote: I get the following while untaring: 2959360 bytes jakarta-tomcat-connectors-jk-1.2-src-current.tar x jakarta-tomcat-5.0.18-src/jakarta-tomcat-jasper/jasper2/src/share/org/ ap ache/jasper/tagplugins/jstl tar: 0511-169 A directory checksum error on media; 804398144 not equal to 39532. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Invaild tar?
gnu tar and proprietary unix tars are not completely compatible. -Tim Matt T. Duval wrote: Why would that matter? I have been able to untar thousands of other files including gnu files and they all work fine... Thank you, Matt Duval Sr. Network Engineer HealthTrans www.healthtrans.com (720) 493-8252 6061 South Willow Drive Suite 125 Greenwood Village, CO 80111 Transforming Healthcare, One Transaction At A Time -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 10:42 AM To: Tomcat Users List Subject: Re: Invaild tar? make sure your using gnu tar -Tim Matt T. Duval wrote: I get the following while untaring: 2959360 bytes jakarta-tomcat-connectors-jk-1.2-src-current.tar x jakarta-tomcat-5.0.18-src/jakarta-tomcat-jasper/jasper2/src/share/org/ ap ache/jasper/tagplugins/jstl tar: 0511-169 A directory checksum error on media; 804398144 not equal to 39532. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5 Autoconfig
Greetings.. Can't seem to find the documenation for Autoconfig for Tomcat 5 to Apache.. In Tomcat4 I used.. Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false modJk=/usr/libexec/httpd/mod_jk.so ..tried... Listener className=org.apache.ajp.tomcat5.config.ApacheConfig append=true forwardAll=false modJk=/usr/libexec/httpd/mod_jk.so no joy... throws a ClassDefNotFound.. searched the docs but can seem to find the right rock to look under.. Could someone give me a kick in the right direction... Thanks.. John.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Invaild tar?
Howdy, As many of our download pages say in BOLD letters, e.g. http://mirror.candidhosting.com/apache/jakarta/tomcat-5/v5.0.18/ for tomcat, it matters. Yoav Shapira Millennium ChemInformatics -Original Message- From: Matt T. Duval [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 12:47 PM To: Tomcat Users List Subject: RE: Invaild tar? Why would that matter? I have been able to untar thousands of other files including gnu files and they all work fine... Thank you, Matt Duval Sr. Network Engineer HealthTrans www.healthtrans.com (720) 493-8252 6061 South Willow Drive Suite 125 Greenwood Village, CO 80111 Transforming Healthcare, One Transaction At A Time -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 10:42 AM To: Tomcat Users List Subject: Re: Invaild tar? make sure your using gnu tar -Tim Matt T. Duval wrote: I get the following while untaring: 2959360 bytes jakarta-tomcat-connectors-jk-1.2-src-current.tar x jakarta-tomcat-5.0.18-src/jakarta-tomcat-jasper/jasper2/src/share/org/ ap ache/jasper/tagplugins/jstl tar: 0511-169 A directory checksum error on media; 804398144 not equal to 39532. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: javax.mail
Just a guess here, but have you tried using a fully qualified domain name for the host, as mysmtphost.mydomain.com? Jerry Duncan Smith wrote: Hi, sorry if this is the wrong mailing list but I think most people here are Java programmers so: I am using javax.mail to send a mail to myself if a particular problem occurs on the server. My code seems to work but, but it does not use the smtp server which I am specifying. I cannot find a problem in my code as it seems to be identical to examples which I have found. I use the line: props.put(mail.smtp.host, mysmtphost); to specify the smtp server (which is on a differant computer) but the mail is being sent through the smtp server running on the same machine as the jsp. Has anyone else had this problem at all, or am I just doing something wrong? -Duncan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: javax.mail
Just a guess here, but have you tried using a fully qualified domain name for the host, as mysmtphost.mydomain.com? Jerry Duncan Smith wrote: Hi, sorry if this is the wrong mailing list but I think most people here are Java programmers so: I am using javax.mail to send a mail to myself if a particular problem occurs on the server. My code seems to work but, but it does not use the smtp server which I am specifying. I cannot find a problem in my code as it seems to be identical to examples which I have found. I use the line: props.put(mail.smtp.host, mysmtphost); to specify the smtp server (which is on a differant computer) but the mail is being sent through the smtp server running on the same machine as the jsp. Has anyone else had this problem at all, or am I just doing something wrong? -Duncan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: javax.mail
Just a guess here, but have you tried using a fully qualified domain name for the host, as mysmtphost.mydomain.com? Jerry Duncan Smith wrote: Hi, sorry if this is the wrong mailing list but I think most people here are Java programmers so: I am using javax.mail to send a mail to myself if a particular problem occurs on the server. My code seems to work but, but it does not use the smtp server which I am specifying. I cannot find a problem in my code as it seems to be identical to examples which I have found. I use the line: props.put(mail.smtp.host, mysmtphost); to specify the smtp server (which is on a differant computer) but the mail is being sent through the smtp server running on the same machine as the jsp. Has anyone else had this problem at all, or am I just doing something wrong? -Duncan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Another Try at MySQL Connection Pooling
Merrill, Much of what you're doing is just beyond me but I can't help but noticing this in your first post. parameter namepassword/name valuexxx/value /parameter Since you've included a password value in all the other places I'm wondering if the lack of it here could be part of the problem. Sorry if I'm way off base, Ken -Original Message- From: Merrill Cornish [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 10, 2004 5:25 PM To: [EMAIL PROTECTED] Subject: Another Try at MySQL Connection Pooling I'm running * Tomcat 5.0.18 running as a Wndows service, * MySQL 4.0.16 running as a Windows service, and * MySQL Connector/J 3.0.10 stable all on Windows 2000 Server, which is where I'm also doing the testing (i.e., on localhost). A number of tomcat-user mailing list denizens have given me snippets of XML to put in various places. Nothing worked. So I tried following the MySQL Configuration example from http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-how to.html. After all changes were made to server.xml, web.xml and timesheet.xml (the context fragment under conf/Catalina/localhost), I restarted Tomcat and tried to login (the first action that would have had to touch the MySQL database). I got the following errorPage: At Timesheet.Util.errorPage(Util.java:550) there occurred a java.lang.Exception: A fatal exception occurred while retrieving login name and pass phrase because... At Timesheet.Util.getSqlConnection(Util.java:492) there occurred a java.lang.Exception: Unable to establish a MysqlDataSource connection for ResourceLine name jdbc/TimesheetsDB because... At org.apache.naming.NamingContext.lookup(NamingContext.java:814) there occurred a javax.naming.NameNotFoundException: Name jdbc is not bound in this Context OK, that seems to say it doesn't know what the name jdbc/TimesheetsDB is. Tomcat has written nothing to stderr.log and stdout.log shows a clean startup, so Tomcat itself isn't too perturbed. stdout.log includes the following line: INFO: Processing Context configuration file URL file:C:\Program Files\Apache Group\Tomcat 5.0.18\conf\Catalina\localhost\timesheet.xml implying that my timesheet.xml context fragment file was found and processed. The Timesheet application log file contains the following: 2004-02-10 16:20:05 NamingContextListener[/Catalina/localhost/timesheet]: Resource parameters for jdbc/TimesheetsDB = ResourceParams[name=jdbc/TimesheetsDB, parameters={factory=org.apache.commons.dbcp.BasicDataSourceFactory, url=jdbc:mysql://localhost/Timesheets?autoReconnect=truesocketFactory=com.m ysql.jdbc.NamedPipeSocketFactory, password=All41a14all, maxWait=1, maxActive=100, driverClassName=org.gjt.mm.mysql.Driver, username=timesheet_app, maxIdle=30}] 2004-02-10 16:20:05 NamingContextListener[/Catalina/localhost/timesheet]: Adding resource ref jdbc/TimesheetsDB 2004-02-10 16:20:05 NamingContextListener[/Catalina/localhost/timesheet]: ResourceRef[className=javax.sql.DataSource,factoryClassLocation=null,factory ClassName=org.apache.naming.factory.ResourceFactory,{type=scope,content=Shar eable},{type=auth,content=Container},{type=factory,content=org.apache.common s.dbcp.BasicDataSourceFactory},{type=url,content=jdbc:mysql://localhost/Time sheets?autoReconnect=truesocketFactory=com.mysql.jdbc.NamedPipeSocketFactor y},{type=password,content=All41a14all},{type=maxWait,content=1},{type=ma xActive,content=100},{type=driverClassName,content=org.gjt.mm.mysql.Driver}, {type=username,content=timesheet_app},{type=maxIdle,content=30}] 2004-02-10 16:20:05 NamingContextListener[/Catalina/localhost/timesheet]: Resource parameters for UserTransaction = null [Blank lines added for clarity.] As per the instructions in the jndi-datasource-examples-howto.html page, my web.xml file has the following addition resource-ref descriptionMySql Connection Pool/description res-ref-namejdbc/TimesheetsDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref immediately after the error-page element and immediately before the security-constraint element. Now that I am using the timesheet.xml context fragment file, server.xml is unchanged except that I have modified it to use port 80 in place of 8080 and port 443 in place of 8443. The timesheet.xml context fragment file looks like this: Context path=/timesheet docBase=timesheet debug=9 reloadable=true crossContext=true displayName=ConnectTel Timesheet Application Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_timesheet_log. suffix=.txt timestamp=true/ Resource name=jdbc/TimesheetsDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/TimesheetsDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxActive/name !-- max db connections in the pool --
RE: Deployer problem
Hi, Although I am starting to use the new tag files (and I already ran into a problem which I will send in another email), Tomcat 5 still supports the plain old JAR file tags which I am still using. Also, regarding the deployer, I would like to point out that there is no reason the compile should fail, because the web-app works fine. Chanan Braunstein Knovel Corp. Web Development Manager 607-773-1840 x672 http://www.knovel.com -Original Message- From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 10, 2004 4:35 PM To: Tomcat Users List Subject: Re: Deployer problem JSP 2.0 has no .tld files any more. Neither do you need to edit your web.xml file. You need to copy your tags to WEB-INF/tags directory. x1.tag file, must reside in WEB-INF/tags The jsp pages will have the following change: %@ taglib prefix=someTag tagdir=/WEB-INF/tags % someTag:x1 /someTag:x1 Hope this helps Mufaddal. On Feb 10, 2004, at 2:22 PM, Chanan Braunstein wrote: Hello, I am trying to use the client deployer to compile my web-app. There is not much help on the issue, and for someone like me that never used ant before it is hard to figure out what to do... However here is what I did so far: Download ant tomcat 5 deployer. Copied the deployer lib files into ant lib. Added ant\bin to my PATH (Windows) copied build.xml from the deployer to my webapp directory. Copied the lib folder from ant to my webapp directory (I guess I could have put the path in the command line for ant, but I was too lazy and I wanted to see if it works first), edited the build.xml to point to the name of my web-app. And then executed ant from the command line. Here is my output: compile: [copy] Copying 1965 files to C:\Tomcat 5.0\webapps\build\webapp\knovel2 [copy] Copied 33 empty directories to 1 empty directory under C:\Tomcat 5.0 \webapps\build\webapp\knovel2 [jasper2] Feb 10, 2004 4:15:09 PM org.apache.jasper.JspC initClassLoader [jasper2] WARNING: TLD files should not be placed in /WEB-INF/lib [jasper2] Feb 10, 2004 4:15:09 PM org.apache.jasper.JspC initClassLoader [jasper2] WARNING: TLD files should not be placed in /WEB-INF/lib [jasper2] Feb 10, 2004 4:15:09 PM org.apache.jasper.JspC initClassLoader [jasper2] WARNING: TLD files should not be placed in /WEB-INF/lib [jasper2] Feb 10, 2004 4:15:09 PM org.apache.jasper.JspC initClassLoader [jasper2] WARNING: TLD files should not be placed in /WEB-INF/lib BUILD FAILED C:\Tomcat 5.0\webapps\build.xml:73: java.lang.ExceptionInInitializerError So questions: 1) What is up with not putting tld files in the lib folder? Where is a better location? 2) why did the build fail? And how do I fix it? Thanks, Chanan Braunstein Knovel Corp. Web Development Manager 607-773-1840 x672 http://www.knovel.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Another Try at MySQL Connection Pooling
I forgot whether your original post showed it or not, but how are you trying to acquire the resource in your code? It should look something like: Context initialContext = new InitialContext(); Context envContext = (Context) initialContext.lookup(java:comp/env); this.dataSource = (DataSource) envContext.lookup(jdbc/TimesheetsDB ); Just a thought, in case you've got one of the strings wrong. Jay -Original Message- From: Merrill Cornish [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 11:43 AM To: Tomcat Users List Subject: Re: Another Try at MySQL Connection Pooling David, I THINK I've figure out that MySQL's Connector/J jar worked in jre/lib/ex when I was using DriverManager because only MySQL needed to see it, and it knew to look in jre/lib/ex. However, with DataSource, I'm assuming it's Tomcat who needs to see it, so it needs to be in Tomcat's common/lib. So I put Connect/J's jar in common/lib--and it still failed in the same manner. I'm wondering if the actual error message MIGHT be giving a clue. It says Name jdbc is not bound in this Context when the only thing that EVER appears in any of the XML is jdbc/TimesheetsDB. * Does this imply that jdbc/TimesheetsDB is wrong and the entries should be something like simply TimesheetsDB? * Does this imply that jdbc has to be declared in some manner before jdbc/TimesheetsDB can be declared? Merrill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Another Try at MySQL Connection Pooling
Merrill, I may end up eating a little sole, but I have had shoe before. Your name for the jdbc is wrong. It should be: !-- Class name for mm.mysql JDBC driver -- parameter namedriverClassName/name valuecom.mysql.jdbc.Driver/value /parameter Yeah, I know the notes said otherwise. They were written prior to MySQL taking on the drivers officially. As for jdbc/TimesheetsDB it should be fine. Let us know Doug Parsons www.parsonstechnical.com - Original Message - From: Merrill Cornish [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 12:43 PM Subject: Re: Another Try at MySQL Connection Pooling David, I THINK I've figure out that MySQL's Connector/J jar worked in jre/lib/ex when I was using DriverManager because only MySQL needed to see it, and it knew to look in jre/lib/ex. However, with DataSource, I'm assuming it's Tomcat who needs to see it, so it needs to be in Tomcat's common/lib. So I put Connect/J's jar in common/lib--and it still failed in the same manner. I'm wondering if the actual error message MIGHT be giving a clue. It says Name jdbc is not bound in this Context when the only thing that EVER appears in any of the XML is jdbc/TimesheetsDB. * Does this imply that jdbc/TimesheetsDB is wrong and the entries should be something like simply TimesheetsDB? * Does this imply that jdbc has to be declared in some manner before jdbc/TimesheetsDB can be declared? Merrill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best practice question: where to place project libraries
At 07:40 PM 2/10/2004, you wrote: Justin Ruthenbeck wrote: I haven't used the META-INF/context.xml convention, so I'm not too familiar with it. Conceptually, it's questionable whether a webapp should be able to modify container configuration ... even if it's just configuration for that one app. Practically it may be useful, but it's a bluring of the lines of responsibility between the development and deployment -- two things which really should be separate. The question has been answered (yes, a webapp can alter the container), and yes, the container should be modifiable by the developer, but only under certain circumstances. I would not allow even the META-INF/context.xml convention on a production server, for example. However it's quite handy during development, and extending the convention would be handier still. I am not aware of a way to prevent Tomcat from respecting the META-INF/context.xml convention, but if there was a way I'd expect it to be mentioned here: Although I haven't personally ever needed functionality like this, there's no argument it'd be useful in some situations. Wanna implement it for everyone? ;) Like John Holman mentioned, however, there will be (practically insurmountable?) problems making the Tomcat container classloader update with new libraries included in the app's WAR. That'll get really messy really quick. justin __ Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential. See: http://www.nextengine.com/confidentiality.php __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Another Try at MySQL Connection Pooling
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Parsons Technical Services wrote: Merrill, I may end up eating a little sole, but I have had shoe before. Your name for the jdbc is wrong. It should be: !-- Class name for mm.mysql JDBC driver -- parameter namedriverClassName/name valuecom.mysql.jdbc.Driver/value /parameter Yeah, I know the notes said otherwise. They were written prior to MySQL taking on the drivers officially. Actually, either works (we've left in 'org.gjt.mm.mysql.Driver' for backwards-compatibility). Whenever I've had problems with this, I've found that I'm usually using the wrong strings/formats for the ENV namespace (as a previous poster has talked about), or I messed around with the tomcat configuration too much...Try and use the example they've provided, if you use it out of the box, it works (for most people), and then change one thing at a time. Unfortunately, Tomcat itself doesn't complain much up front when you have something wrong with configuration, and it usually manifests itself as an exception that's not related to what you've misconfigured :( Regards, -Mark - -- Mr. Mark Matthews MySQL AB, Software Development Manager, J2EE and Windows Platforms Office: +1 708 332 0507 www.mysql.com Meet the MySQL Team! April 14-16, 2004 http://www.mysql.com/uc2004/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.3 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFAKoOFtvXNTca6JD8RAnj2AKCgLDOhFTqqb/EgUKydHwIBdJc4cwCglp/l oDTq3EIy2zKuLxv+UawytXQ= =b4W4 -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best practice question: where to place project libraries
Hi Josh Rehman wrote: Justin Ruthenbeck wrote: As a general rule, strive to keep your webapp self-contained and autonomous with only J2EE-standard dependencies (things like JNDI objects that are configurable in every container). Unless there's a reason not to (JDBC drivers is one common one), package your own dependent libraries with your app -- it frees you from versioning problems (maintaining the correct library versions for your app over time) and makes migration between containers much easier. Thanks. You bring up an interesting aspect of container configuration: database drivers. It would be interesting to extend the META-INF/context.xml tomcat convention to include support for the installation of 3rd party libraries. E.g., libraries placed in META-INF/server/lib will be placed into the similiar tomcat directory on deployment. Same thing for common/lib. No. I don't think this is a good solution. The best solution would be to use the database driver inside the webapp.war (if there is one provided). This would require some (heavy) refactoring of the classloader/JNDI mechanism, but it can be done. And in an perfect world this would be part of the (next) servlet spec so every container would behave in the same way. Ciao, Olli -- og - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null', cause: java.sql.SQLException: No suitable driver
I get this error using Tomcat 5.0.18 under Debian/Linux. Using the same configuration under Windows XP, there is no problem. Using the same application under Tomcat 4.1.27, there is no problem (either Linux or Windows). As you can see from the included stack trace, I am using Hibernate which is accessing the configured DataSource in a Servlet Filter at application startup. I have searched for this problem on this Mailing List, but got no clue. I am using a Context local DataSource (no Global), and have everything strictly setup as described in the JNDI HowTo. Given the number of people that could not solve the problem, maybe there is a bug in Tomcat5? Regards, Andreas org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null', cause: java.sql.SQLException: No suitable driver at java.sql.DriverManager.getDriver(DriverManager.java:243) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:743) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:518) at net.sf.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:59) at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:72) at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1119) at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:748) at de.schildbach.integration.HibernatePersistance.init(HibernatePersistance.java:41) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:272) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:355) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:126) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3646) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4275) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:320) at org.apache.catalina.core.StandardHost.install(StandardHost.java:875) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:727) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:477) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:394) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133) at org.apache.catalina.core.StandardHost.start(StandardHost.java:832) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345) at org.apache.catalina.startup.Catalina.start(Catalina.java:598) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) My server.xml: Context path= docBase=schildbach reloadable=false Resource name=jdbc/xxx auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/schildbach parameternamefactory/namevalueorg.apache.commons.dbcp.BasicDataSourceFactory/value/parameter parameternamemaxActive/namevalue5/value/parameter parameternamemaxIdle/namevalue0/value/parameter parameternamemaxWait/namevalue1/value/parameter parameternameusername/namevaluexxx/value/parameter parameternamepassword/namevaluexxx/value/parameter parameternamedriverClassName/namevaluecom.mysql.jdbc.Driver/value/parameter parameternameurl/namevaluejdbc:mysql://localhost/xxx?autoReconnect=trueamp;relaxAutoCommit=true/value/parameter /ResourceParams /Context My web.xml: resource-ref res-ref-namejdbc/xxx/res-ref-name
Tag File Question
Hello, I am starting to use the tag file feature of JSP 2/Tomcat 5. A plain Hello tag works fine. However, my real tag doesn't seem to compile and I have no errors in the logs and nothing on the screen - where did the compile errors disappear to? Chanan Braunstein Knovel Corp. Web Development Manager 607-773-1840 x672 http://www.knovel.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat and VM settings
I'm wondering if anyone has done any tomcat benchmarking with different Hotspot VM settings. Specifically, I'm wondering if -server or -d64 make noticeable differences on the Solaris 8 sparc platform. I have read Sun's documentation about what these settings are supposed to do, but I haven't really seen anything talked about within the context of Tomcat or J2EE. Thanks in advance, Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Servlet thread safety in Tomcat
1) if by 'localized' you mean I've moved the variables from outside the doGet()/doPost() methods, to inside those methods... then this is why there is no 'data corruption' (due to multithreading issues), and it's why you don't require synchronized access to those variables. I will probably explain this perhaps not 100% correctly, but someone will catch me when I fall.. ;) A user request = one java thread. If more than one user requests something from your servlet, that means (potentially) more than one thread in your servlet methods. If one thread alters a variable outside of the doGet()/doPost() methods, then this modifies that variable for ALL threads, and thus, you get data confusion/corruption. It's a simple matter of scope. If the thread alters a variable within the method, then this variable is located in the method 'stack', and altering its value will only alter the data for that particular thread. So it is literally impossible to 'confuse' the data, if all of your variables are declared within the method. Again, a matter of scope. 2) jmeter is an open-source web-testing tool. Fairly simple, and works quite nicely. You can use it to load test an application, and can configure it to launch X threads simulatenously. This would give you a fair chance of testing concurrency issues. 'X' will be solely determined by how much CPU and memory your testing box has. Jmeter lets you slave multiple workstations to use as load generators, so X can become quite high (which is good). You can also configure jmeter to check the results of a particular web request. So for example, if a user submits a search to search.jsp with a certain set of search values... and you expect a result in your page of : pyour search returned b500/b results/p Then you can actually test for this string in the returned webpage. If the '500' is something else (say '450'), then you can begin to suspect concurrency issues. (Because perhaps another of your simultaneous users used a different set of parameters, say ones that would produce '450'). -Original Message- From: kwirirai [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 11:32 AM To: Tomcat Users List Subject: Re: Servlet thread safety in Tomcat Thanks to All for your help ! :-) Sofar it seems to be working ,no data corruption,I localized all variables ,put in some synchronized blocks,removed them again(synchronized blocks) and seems to work, but not sure why without the synchrozed blocks its working . :-\ Is there free software that I can use to test the concurrency issues,because at the moment I am trying to test all this using two client machines and this does not work at all.Software that can create many simultanoeus connections sending in the request parameters to Tomcat would do well for testing . Shapira, Yoav wrote: Howdy, this has made me think a lot about threading , it is really complicated , I have researched about it but never found a clean solution to Threading is complicated, yes, and difficult to do well. Which is why when possible you should let someone else do the work for you and use a library like Doug Lea's util.concurrent, which is now java.util.concurrent in JDK 1.5. It has thread pools, executors, locks, etc so you don't have to write any of this sync code yourself. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null', cause: java.sql.SQLException: No suitable driver
Andreas Schildbach wrote: I get this error using Tomcat 5.0.18 under Debian/Linux. Using the same configuration under Windows XP, there is no problem. Using the same application under Tomcat 4.1.27, there is no problem (either Linux or Windows). Resource name=jdbc/xxx auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/schildbach ^^ of course, this is also jdbc/xxx (changed it for the post) Regards, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tag File Attribute Question
Hello, I am using Tomcat 5.0.18 and I am trying to use Tag Files. A simple tag file works However I cannot get attributes to work: test.jsp %@ taglib tagdir=/WEB-INF/tags prefix=knovel-tags % knovel-tags:test input=Hi There / test.tag %@ attribute name=input required=true % %= input % 1) The file test.tag won't compile. Why? 2) How come no compile errors are placed in the stdout.log file? Chanan Braunstein Knovel Corp. Web Development Manager 607-773-1840 x672 http://www.knovel.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null', cause: java.sql.SQLException: No suitable driver
where did u put the jar? thats what got me. it needs to go in common\lib in your tomcat dir Daniel Schulken - Original Message - From: Andreas Schildbach [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 2:51 PM Subject: Re: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null', cause: java.sql.SQLException: No suitable driver Andreas Schildbach wrote: I get this error using Tomcat 5.0.18 under Debian/Linux. Using the same configuration under Windows XP, there is no problem. Using the same application under Tomcat 4.1.27, there is no problem (either Linux or Windows). Resource name=jdbc/xxx auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/schildbach ^^ of course, this is also jdbc/xxx (changed it for the post) Regards, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.581 / Virus Database: 368 - Release Date: 2/9/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Another Try at MySQL Connection Pooling
Jay, Context initialContext = new InitialContext(); Context envContext = (Context) initialContext.lookup(java:comp/env); this.dataSource = (DataSource) envContext.lookup(jdbc/TimesheetsDB ); Ah ha! I was missing the second step. When I added the second step, it still fails, but the complaint has changed. Slightly. At org.apache.naming.NamingContext.lookup(NamingContext.java:814) there occurred a javax.naming.NameNotFoundException: Name TimesheetsDB is not bound in this Context So now it can find jdbc, but not TimesheetsDB. By the way, what does the java:comp/env argument mean? Merrill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cookies, Safari, and Tomcat
I'm trying to figure out some behavior I'm seeing only when I use Safari (v1.25 - downloaded from the Apple site last week) and Tomcat. This involves cookies. I am using Tomcat 5.0.16. I have written a servlet that sends a cookie back to the server for use later on; I can see this cookie when using Mozilla, Netscape, or IE when I look at a list of cookies. I also see the JESSIONID cookie that Tomcat uses in this list. However, when I use Safari, I see the JESSIONID cookie, but not the cookie I created. I'm not sure what the reason is for this; if I didn't do something in my code, I'd like to find out what it is, and for this I'd imagine I'd have to look thru the Tomcat source and see what's done when the JSESSIONID cookie is created. Unfortunately, I can't seem to find this. Has anyone seen this behavior before? How should I deal with it? Or can someone point me to the program where the JESSSIONID cookie for Tomcat is created? Thanks! -- Lynn Hollerman. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Another Try at MySQL Connection Pooling
Doug, I noticed the class name discrepancy myself between the name I had used for DriverManager and the one the DataSource example had. However, when I peeked inside the Connector/J jar file, I found both .class files, altough they are of different sizes. I tried it with your alternative, but the error is the same either way: At org.apache.naming.NamingContext.lookup(NamingContext.java:814) there occurred a javax.naming.NameNotFoundException: Name TimesheetsDB is not bound in this Context - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Another Try at MySQL Connection Pooling
Mmmm...Not too bad with a little salt. During my initial setup I was unable to get it to work with the old name. Just tested it and it works fine. I would have to lay odds that I had a typo originally. - Original Message - From: Mark Matthews [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Cc: Merrill Cornish [EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 2:33 PM Subject: Re: Another Try at MySQL Connection Pooling -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Parsons Technical Services wrote: Merrill, I may end up eating a little sole, but I have had shoe before. Your name for the jdbc is wrong. It should be: !-- Class name for mm.mysql JDBC driver -- parameter namedriverClassName/name valuecom.mysql.jdbc.Driver/value /parameter Yeah, I know the notes said otherwise. They were written prior to MySQL taking on the drivers officially. Actually, either works (we've left in 'org.gjt.mm.mysql.Driver' for backwards-compatibility). Whenever I've had problems with this, I've found that I'm usually using the wrong strings/formats for the ENV namespace (as a previous poster has talked about), or I messed around with the tomcat configuration too much...Try and use the example they've provided, if you use it out of the box, it works (for most people), and then change one thing at a time. Unfortunately, Tomcat itself doesn't complain much up front when you have something wrong with configuration, and it usually manifests itself as an exception that's not related to what you've misconfigured :( Regards, -Mark - -- Mr. Mark Matthews MySQL AB, Software Development Manager, J2EE and Windows Platforms Office: +1 708 332 0507 www.mysql.com Meet the MySQL Team! April 14-16, 2004 http://www.mysql.com/uc2004/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.3 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFAKoOFtvXNTca6JD8RAnj2AKCgLDOhFTqqb/EgUKydHwIBdJc4cwCglp/l oDTq3EIy2zKuLxv+UawytXQ= =b4W4 -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cookies, Safari, and Tomcat
Howdy, How do you know it's not a Safari bug? Yoav Shapira Millennium ChemInformatics -Original Message- From: Hollerman Geralyn M [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 3:09 PM To: Tomcat Users List Subject: cookies, Safari, and Tomcat I'm trying to figure out some behavior I'm seeing only when I use Safari (v1.25 - downloaded from the Apple site last week) and Tomcat. This involves cookies. I am using Tomcat 5.0.16. I have written a servlet that sends a cookie back to the server for use later on; I can see this cookie when using Mozilla, Netscape, or IE when I look at a list of cookies. I also see the JESSIONID cookie that Tomcat uses in this list. However, when I use Safari, I see the JESSIONID cookie, but not the cookie I created. I'm not sure what the reason is for this; if I didn't do something in my code, I'd like to find out what it is, and for this I'd imagine I'd have to look thru the Tomcat source and see what's done when the JSESSIONID cookie is created. Unfortunately, I can't seem to find this. Has anyone seen this behavior before? How should I deal with it? Or can someone point me to the program where the JESSSIONID cookie for Tomcat is created? Thanks! -- Lynn Hollerman. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Another Try at MySQL Connection Pooling
Ken, I didn't intend to include the password in ANY of my posts, but I guess some slipped though. In the version that running, the password is there. And, even if I had fumble fingered the password, THAT would have simply gotten a convention MySQL error rather than a NameNotFoundException for jdbc. Merrill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Another Try at MySQL Connection Pooling
The J2EE tutorial is one place that talks about the context naming scheme: http://java.sun.com/j2ee/1.4/docs/tutorial/doc/Resources2.html And just to be 100% sure, my example below actually has a minor cut-and-paste error--there's a space after TimesheetsDB in the second lookup(). If you simply cut-and-pasted my example, and it turns out that the string has to be an exact match, then this could be an issue. Probably not, but worth mentioning, just in case. Jay -Original Message- From: Merrill Cornish [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 2:04 PM To: Tomcat Users List Subject: RE: Another Try at MySQL Connection Pooling Jay, Context initialContext = new InitialContext(); Context envContext = (Context) initialContext.lookup(java:comp/env); this.dataSource = (DataSource) envContext.lookup(jdbc/TimesheetsDB ); Ah ha! I was missing the second step. When I added the second step, it still fails, but the complaint has changed. Slightly. At org.apache.naming.NamingContext.lookup(NamingContext.java:814) there occurred a javax.naming.NameNotFoundException: Name TimesheetsDB is not bound in this Context So now it can find jdbc, but not TimesheetsDB. By the way, what does the java:comp/env argument mean? Merrill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NTLM Authentication POST Method
Hello, I am using post method of sending data to servlet from a JSP page. I am unable to get the data by request.getParameter(). If I am using get method I am able to retrieve data from JSP page I was just searching on Google. Actually I am using NTLM Authentication in my Login Servlet. I think there is some conflict between NTLM Authentication and POST method. Any body has an idea what to do or set to get the things done ? http://support.microsoft.com/default.aspx?scid=kb;DE;308074 http://support.microsoft.com/default.aspx?scid=kb;DE;308074 I am using code from below link: http://www.jguru.com/faq/view.jsp?EID=1045412 http://www.jguru.com/faq/view.jsp?EID=1045412 Best Regards Abhay Kumar
Re: Servlet thread safety in Tomcat
Mike Curwen wrote: 1) if by 'localized' you mean I've moved the variables from outside the doGet()/doPost() methods, to inside those methods... then this is why there is no 'data corruption' (due to multithreading issues), and it's why you don't require synchronized access to those variables. You definitely do not need synchronized on local variables. However, you DO need it if you use something shared among the requests. That is, outside the local scope. I will probably explain this perhaps not 100% correctly, but someone will catch me when I fall.. ;) A user request = one java thread. If more than one user requests something from your servlet, that means (potentially) more than one thread in your servlet methods. If one thread alters a variable outside of the doGet()/doPost() methods, then this modifies that variable for ALL threads, and thus, you get data confusion/corruption. It's a simple matter of scope. If the thread alters a variable within the method, then this variable is located in the method 'stack', and altering its value will only alter the data for that particular thread. So it is literally impossible to 'confuse' the data, if all of your variables are declared within the method. Again, a matter of scope. No objection ;-) 2) jmeter is an open-source web-testing tool. Fairly simple, and works quite nicely. You can use it to load test an application, and can configure it to launch X threads simulatenously. This would give you a fair chance of testing concurrency issues. 'X' will be solely determined by how much CPU and memory your testing box has. Jmeter lets you slave multiple workstations to use as load generators, so X can become quite high (which is good). You can also configure jmeter to check the results of a particular web request. So for example, if a user submits a search to search.jsp with a certain set of search values... and you expect a result in your page of : pyour search returned b500/b results/p Then you can actually test for this string in the returned webpage. If the '500' is something else (say '450'), then you can begin to suspect concurrency issues. (Because perhaps another of your simultaneous users used a different set of parameters, say ones that would produce '450'). It will not be easy to pinpoint concurrency problems using JMeter. The procedure is roughly what Mike described. However, you will need to know your data very well, and possibly output some debugging info in your pages (maybe inside a HTML comment). It will not be easy. From my experience, JMeter is really great for cases where border conditions make the server fail with a 500. You stress it, and it is more likely to fail. But detecting slight errors in the information contained in a page is a different business. I wish I could give you an alternative, but I am afraid I know none. Yours, Antonio Fiol smime.p7s Description: S/MIME Cryptographic Signature
Re: tomcat and VM settings
Parker, Matt wrote: I'm wondering if anyone has done any tomcat benchmarking with different Hotspot VM settings. Specifically, I'm wondering if -server or -d64 make noticeable differences on the Solaris 8 sparc platform. I have read Sun's documentation about what these settings are supposed to do, but I haven't really seen anything talked about within the context of Tomcat or J2EE. Thanks in advance, Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] In general, -server will make a huge difference for long running applications, since a lot of the internal optimizations ( such as how often to compile/recompile and how long to cache ) are turned on by the -server/-client switch. On Solaris 8, you can get a little more juice a lot of times by switching to the alternate libthread ( http://java.sun.com/docs/hotspot/threads/threads.html ) and using the 1-1 model. ( This, i believe is the default on Solaris 9 ) There's a lot of options related to garbage collecting, leading one to the obvious conclusion that tuning the GC can provide boosts in performance. There's a lot of good reading at http://java.sun.com/docs/hotspot/. I don't have any hard numbers, but we were able to do some very postive things, once we found the right information. HTH, -a - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cookies, Safari, and Tomcat
Hollerman Geralyn M wrote: I'm trying to figure out some behavior I'm seeing only when I use Safari (v1.25 - downloaded from the Apple site last week) and Tomcat. This involves cookies. I am using Tomcat 5.0.16. I have written a servlet that sends a cookie back to the server for use later on; I can see this cookie when using Mozilla, Netscape, or IE when I look at a list of cookies. I also see the JESSIONID cookie that Tomcat uses in this list. However, when I use Safari, I see the JESSIONID cookie, but not the cookie I created. I'm not sure what the reason is for this; if I didn't do something in my code, I'd like to find out what it is, and for this I'd imagine I'd have to look thru the Tomcat source and see what's done when the JSESSIONID cookie is created. Unfortunately, I can't seem to find this. Has anyone seen this behavior before? How should I deal with it? Or can someone point me to the program where the JESSSIONID cookie for Tomcat is created? Thanks! What is the cookie version of the cookie that you created? We've noticed some odd behaviour when using cookies and that magically went away when we started using version 0 cookies. -a - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null', cause: java.sql.SQLException: No suitable driver
[EMAIL PROTECTED] wrote: where did u put the jar? thats what got me. it needs to go in common\lib in your tomcat dir Here is the content of common/lib xxx:/opt/tomcat5# ls -la common/lib total 3376 drwxr-xr-x2 tomcat5 nogroup 4096 Feb 11 17:07 . drwxr-xr-x5 tomcat5 nogroup 4096 Jan 15 18:24 .. -rw-r--r--1 tomcat5 nogroup 54665 Feb 11 10:24 activation.jar -rw-r--r--1 tomcat5 nogroup952104 Jan 15 18:24 ant.jar -rw-r--r--1 tomcat5 nogroup165119 Jan 15 18:24 commons-collections.jar -rw-r--r--1 tomcat5 nogroup100776 Jan 15 18:24 commons-dbcp-1.1.jar -rw-r--r--1 tomcat5 nogroup112341 Jan 15 18:24 commons-el.jar -rw-r--r--1 tomcat5 nogroup 39523 Jan 15 18:24 commons-pool-1.1.jar -rw-r--r--1 tomcat5 nogroup342455 Jan 15 18:24 jasper-compiler.jar -rw-r--r--1 tomcat5 nogroup100925 Jan 15 18:24 jasper-runtime.jar -rw-r--r--1 tomcat5 nogroup188231 Jan 15 18:24 jmx-remote-tools.jar -rw-r--r--1 tomcat5 nogroup168008 Jan 15 18:24 jmx-remote.jar -rw-r--r--1 tomcat5 nogroup365858 Jan 15 18:24 jmx.jar -rw-r--r--1 tomcat5 nogroup 48725 Jan 15 18:24 jsp-api.jar -rw-r--r--1 tomcat5 nogroup327603 Feb 11 10:24 mail.jar -rw-r--r--1 tomcat5 nogroup215441 Feb 11 17:07 mysql-connector-java-3.0.10-stable-bin.jar -rw-r--r--1 tomcat5 nogroup 28015 Jan 15 18:24 naming-common.jar -rw-r--r--1 tomcat5 nogroup 14862 Jan 15 18:24 naming-factory.jar -rw-r--r--1 tomcat5 nogroup 2068 Jan 15 18:24 naming-java.jar -rw-r--r--1 tomcat5 nogroup 41669 Jan 15 18:24 naming-resources.jar -rw-r--r--1 tomcat5 nogroup 91627 Jan 15 18:24 servlet-api.jar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat and VM settings
Howdy, In general, -server will make a huge difference for long running applications Can you back that up with any specific facts? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Another Try at MySQL Connection Pooling
I have another shoe to go so try this. Try changing the name to: parameter nameurl/name valuejdbc:mysql://localhost/timesheets?.. Lower case on the timesheets. I am running on linux. Not sure if it will matter on windows. Doug - Original Message - From: Merrill Cornish [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 2:27 PM Subject: RE: Another Try at MySQL Connection Pooling Ken, I didn't intend to include the password in ANY of my posts, but I guess some slipped though. In the version that running, the password is there. And, even if I had fumble fingered the password, THAT would have simply gotten a convention MySQL error rather than a NameNotFoundException for jdbc. Merrill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Another Try at MySQL Connection Pooling
Merrill, you should be absolutely sure that your context is getting loaded from the file you think. Make sure that there is no context config for the app in any of the other files in tomcat/conf/Catalina/localhost, nor in server.xml, nor in META-INF in any webapp directory. You can chuck out the resource-ref from the web.xml - I'm using 3 JNDI connection pools and I don't have it in my web.xml (is that macho?) - just don't ask me why. Adam On 02/11/2004 09:13 PM Burgess, Jay S wrote: The J2EE tutorial is one place that talks about the context naming scheme: http://java.sun.com/j2ee/1.4/docs/tutorial/doc/Resources2.html And just to be 100% sure, my example below actually has a minor cut-and-paste error--there's a space after TimesheetsDB in the second lookup(). If you simply cut-and-pasted my example, and it turns out that the string has to be an exact match, then this could be an issue. Probably not, but worth mentioning, just in case. Jay -Original Message- From: Merrill Cornish [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 2:04 PM To: Tomcat Users List Subject: RE: Another Try at MySQL Connection Pooling Jay, Context initialContext = new InitialContext(); Context envContext = (Context) initialContext.lookup(java:comp/env); this.dataSource = (DataSource) envContext.lookup(jdbc/TimesheetsDB ); Ah ha! I was missing the second step. When I added the second step, it still fails, but the complaint has changed. Slightly. At org.apache.naming.NamingContext.lookup(NamingContext.java:814) there occurred a javax.naming.NameNotFoundException: Name TimesheetsDB is not bound in this Context So now it can find jdbc, but not TimesheetsDB. By the way, what does the java:comp/env argument mean? Merrill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Another Try at MySQL Connection Pooling
Doug, Timesheet vs. timesheet Good catch, but it didn't make any difference. I originally had three Context entries for names Timesheet, (the way I thought of it), timesheet (for those who don't want to use the shift key), and ts (for those diehard Unix freaks who believe anything worth doing should be done in three characters or less). The actual directory under webapps is timesheets. I've edited timesheet.xml (note the lower case) to match the directory, but the result was unchanged. Thanks for the thoughts, though. Merrill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Another Try at MySQL Connection Pooling
Adam, The following line occurs in stdout.log: INFO: Processing Context configuration file URL file:C:\Program Files\Apache Group\Tomcat 5.0.18\conf\Catalina\localhost\timesheet.xml so it appears to be getting the correct context fragment. Merrill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best practice question: where to place project libraries
Justin Ruthenbeck wrote: Although I haven't personally ever needed functionality like this, there's no argument it'd be useful in some situations. Wanna implement it for everyone? ;) Like John Holman mentioned, however, there will be (practically insurmountable?) problems making the Tomcat container classloader update with new libraries included in the app's WAR. That'll get really messy really quick. I'm advocating something more radical: *copy* libraries in said directories into the containers common and shared directories. Someone else mentioned that this would alter the environement for other webapps, which is an important drawback. Another drawback is the restart requirement. But the fact remains that the developer should have some easy way to indicate to the deployer what dependancies need to be met esp WRT JNDI resources, and an easy (for the deployer) way to satisfy these dependancies. AFAIk there is no good way to do this. META-INF/context.xml does this in a small way, and it would be nice to generalize to libraries and drivers. I'm not yet in a position to do this development, although I might soon be. -- Josh Rehman citysearch.com 213.739.3559 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Another Try at MySQL Connection Pooling
On 02/11/2004 10:15 PM Merrill Cornish wrote: Adam, The following line occurs in stdout.log: INFO: Processing Context configuration file URL file:C:\Program Files\Apache Group\Tomcat 5.0.18\conf\Catalina\localhost\timesheet.xml so it appears to be getting the correct context fragment. What if that fragment is an old one you accidentally left hanging around? -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Another Try at MySQL Connection Pooling
Merrill, Humor me for a moment. This might be due to you trying different setups, but, take a minute to go through all your settings and names and make sure that they are all set to the same thing and the same case. In the line below it is refering to timesheet.xml and earlier you had timesheets. I made the same mistakes in my initial setup. In my prior post my concern was that the jdbc was refered to uppercase T and the docs were lower case t. On linux you can't do this. All references must be exactly the same. So anywhere you use the word timesheets in any form, make it the same. Let's just say I'm shiny on top and little things like this didn't help. Doug Parsons www.parsonstechnical.com - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 4:30 PM Subject: Re: Another Try at MySQL Connection Pooling On 02/11/2004 10:15 PM Merrill Cornish wrote: Adam, The following line occurs in stdout.log: INFO: Processing Context configuration file URL file:C:\Program Files\Apache Group\Tomcat 5.0.18\conf\Catalina\localhost\timesheet.xml so it appears to be getting the correct context fragment. What if that fragment is an old one you accidentally left hanging around? -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Another Try at MySQL Connection Pooling
Ya hemos recibido su solicitud de correo en breve le enviaremos su nombre de usuario y contreseña. Gracias por confiar en nosotros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]