RE: FAQ? shutdown.bat not killing java process on Windows
Why bother IBM. In my startup script, I clean up any java process: for i in `ps ax --format ppid,pid,cmd |grep java |egrep ^[[:space:]]*1[[:space:]] |tr -s ' ' |cut -f3 -d ` do echo killing $i... kill -9 $i done -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: October 3, 2005 8:09 AM To: Tomcat Users List Subject: Re: FAQ? shutdown.bat not killing java process on Windows Heh, I'll call IBM and have them do just that. ;-) It happens in their JT400 classes. Larry On 10/3/05, David Delbecq [EMAIL PROTECTED] wrote: That's quite a problem ;) Actually your threads should be coded in such a way you may a send a notification in java telling him to finish his job. eg: myNonDaemonThreadICreatedMySelf.stopWorking(); which would set some flag in Thread and then code in your Thread reading the flag knows it has to stop in a clean way. In the past there was a way in java to 'kill' a Thread but this has been deprecated in the Thread api. Tomcat sends a ThreadDeathError to the thread if it tries to interact with its classloader after shutdown, unfortunately, this is not always enough has some Threads do a catch(Error) and then continue their job. The best thing you can do when you have the list of threads still alive after shutdown is to locate the irresponsible threads and fix their code :D Larry Meadors a écrit : So, once you know the threads that are left, what is the cleanest way to kill them? I have had this problem too, but since it was on a *nix platform, and just used 'kill' to get rid of the parent process. Larry On 10/3/05, Jon Wingfield [EMAIL PROTECTED] wrote: Yep. It's a FAQ, but not in the FAQ. Tomcat not quitting generally means your webapp has started a non-daemon thread which does not exit when the webapp is destroyed. If so, shut them down in a ServletContextListener. If you aren't explicitly creating threads in your webapp then the usual culprits are database connections that haven't been closed (or any other client api to remote services that uses asynchronous messaging and/or keepalive semantics). To see a dump of the threads still active after you've run shutdown.bat do a CTRL-BREAK in the tomcat dos console. HTH, Jon Charles Fineman wrote: I started Tomcat using startup.bat. Everything goes fine. I use shutdown.batto bring it down. The server fields the request and shuts down a bunch of services (as evidenced by the messages I see). Sure enough, the server no longer responds to any requests. Unfortunately, the java process does not die. I have this problem whether I start Tomcat by hand or if I use the Sysdeo Eclipse plugin. This problem has been a thorn in my side for some time but since it only affects my development environment (we use it as a service in production and there are no problems) and I can kill the process by hand, I've not worried about it. It's annoying as heck though and I'm wondering if someone can shed some light. I searched around but (surprisingly!!) I didn't find anything similar to my situation. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:43411f6a315711908041642!
RE: Struts Validation
You need to copy some messages from validator-rules.xml's commented out block. -Original Message- From: Samara, Fadi N Mr ACSIM/ASPEX [mailto:[EMAIL PROTECTED] Sent: September 29, 2005 12:44 PM To: 'tomcat-user@jakarta.apache.org' Subject: Struts Validation Dear list, I have a very simple form that I am validating. I enables the plugin and the validation works fine, but when I submit an empty form, it shows NULL instead of picking the correct msg for the particular field from the properties files. Any idea why this is happening ? I tried all versions of the DTDs and still doesn't work. Thanks Fadi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:433c19d6207412972918781!
RE: Running Tomcat as Non-Root under Linux listen for port 80
Create a normal user $TOMCAT_USER /bin/su $TOMCAT_USER -- $CATALINA_HOME/bin/startup.sh Owner is root, group is $TOMCAT_USER. -Original Message- From: NoKideen [mailto:[EMAIL PROTECTED] Sent: September 27, 2005 12:14 PM To: tomcat-user@jakarta.apache.org Subject: Running Tomcat as Non-Root under Linux listen for port 80 is there anybody know how to do this ? Running Tomcat as Non-Root under Linux listen for port 80 I'd try as tomcat , but there is error even if I do # chown -R tomcat:root /usr/tomcat/* - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:43396f67114289339113072!
RE: Tomcat Out of Memory - Host appBase related
if ((your code does not leak memory) and (you use struts) and (you use tomcat manager/ant task to deploy/undeploy your web app) and !(you use tomcat 5.5.9/+)) { Upgrade_to_5.5.9/+; } -Original Message- From: Vadlamudi, Kamala [mailto:[EMAIL PROTECTED] Sent: September 23, 2005 10:57 AM To: Tomcat Users List Subject: RE: Tomcat Out of Memory - Host appBase related Hi Assaf Thanks for the mail. I used the site you sent me to Check the following - The ram on my system is 128MB. - The out of memory problem is showing up way before system is running out of threshold. Is it possible the out of memory is coming because the system ran out of file descriptors. I vaguely remember some one at work noticing this problem on linix boxes running tomcat. Appreciate your thoughts on this matter. Thanks Kamala -Original Message- From: Assaf [mailto:[EMAIL PROTECTED] Sent: Friday, September 23, 2005 10:38 AM To: Tomcat Users List Subject: Re: Tomcat Out of Memory - Host appBase related Hi Kamala, Try http://jakarta.apache.org/tomcat/faq/memory.html Usually it is the -X settings you need to play with. Assaf --- Vadlamudi, Kamala [EMAIL PROTECTED] wrote: When starting tomcat it is running Out of Memory. There were three Hosts in server.xml file pointing to same appBase. If I remove one of the Hosts or if I change appBase the problem is disappearing. Do you know why? Your explanation will be greatly appreciated. Thanks Kamala __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.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] !DSPAM:433417fb270111440213224!
RE: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04
I would recommend you upgrade to 5.5.9 if you use struts. -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: September 20, 2005 9:56 AM To: Tomcat Users List Subject: RE: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04 You'll almost likely find that the reload via Ant does not free up all resources and so each time you perform a reload you'll be leaking some memory resulting in OOME after a week. 3 things to do; Get a profiler to see where you may be losing memory. Ensure no resource/references are held onto, dispose references correctly Hard restart Tomcat when OOME occur. Allistair. -Original Message- From: NoKideen [mailto:[EMAIL PROTECTED] Sent: 20 September 2005 14:55 To: tomcat-user@jakarta.apache.org Subject: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04 Hi all, I'm new in this mailling list I'm currently end up ways to solve problem out of memory in tomcat this is startup script in my Linux Fedora Core 2 CATALINA_OPTS= -Djava.awt.headless=true -server -Xss128k -Xincgc -Xms256m -Xmx256m CPU is on 1Giga Memory and the problem out of memory, can't happen in specific times, can't happen in specific pages (both servlet and JSP), currently happen in Random time/pages, usually 1 Weeks after startup. Server run 24 Hours/day for development only usually I use ant for reload servlet, after I change the java code #ant reload build.xml - cut - taskdef name=reload classname=org.apache.catalina.ant.ReloadTask/ what should I do ? Thanks in Advance, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK Disclaimer: The information contained within this e-mail is confidential and may be privileged. This email is intended solely for the named recipient only; if you are not authorised you must not disclose, copy, distribute, or retain this message or any part of it. If you have received this message in error please contact the sender at once so that we may take the appropriate action and avoid troubling you further. Any views expressed in this message are those of the individual sender. QAS Limited has the right lawfully to record, monitor and inspect messages between its employees and any third party. Your messages shall be subject to such lawful supervision as QAS Limited deems to be necessary in order to protect its information, its interests and its reputation. Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS Limited cannot guarantee that attachments are virus free or compatible with your systems and does not accept any liability in respect of viruses or computer problems experienced. /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:43301517266771032322572!
RE: how to Upload file
commons-fileupload at http://jakarta.apache.org/commons/fileupload/ -Original Message- From: Bhargav Patel [mailto:[EMAIL PROTECTED] Sent: September 1, 2005 12:21 AM To: Tomcat Users List Subject: Re: how to Upload file what ? - Original Message - From: Guy Katz [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, August 31, 2005 6:17 PM Subject: RE: how to Upload file 1. commons-upload (jakarta-commons) 2. cos (servlets.com) -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 31, 2005 3:29 PM To: Tomcat Users List Subject: RE: how to Upload file Have you tried struts html:file tag. -Original Message- From: Bhargav Patel [mailto:[EMAIL PROTECTED] Sent: August 31, 2005 1:48 AM To: Tomcat Users List Subject: how to Upload file how to write upload file program using jsp ? by default program copy file to some temporary folder on server. how to get the path of that temporary folder ? ***Confidentiality Notice*** The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Divinet or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ***Confidentiality Notice*** The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Divinet or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. ***Confidentiality Notice*** The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Divinet or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:43169e9b31718714818143!
RE: how to Upload file
Have you tried struts html:file tag. -Original Message- From: Bhargav Patel [mailto:[EMAIL PROTECTED] Sent: August 31, 2005 1:48 AM To: Tomcat Users List Subject: how to Upload file how to write upload file program using jsp ? by default program copy file to some temporary folder on server. how to get the path of that temporary folder ? ***Confidentiality Notice*** The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Divinet or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. !DSPAM:431543aa140581254821471!
RE: configuration files for war deployments
Your classpath, i.e. WEB-INF, or classes. -Original Message- From: Patrick Lacson [mailto:[EMAIL PROTECTED] Sent: August 25, 2005 11:32 AM To: Tomcat User-List Subject: configuration files for war deployments hi All, If I were to deploy my application as a .war file, where do I place the .properties configuration files? I know there's the option of auto-expanding the war file at deployment, but is there a way to keep the war file unexpanded and provide an external .properties file for the web app to read from? Many thanks -- Patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:430de46a9881311912864!
RE: OT: JSTL and JSF book recommendations
The spec is actually pretty striaghtforward to read. If you insist reading books other than the spec, I would recommend Sun's Core JSTL, Core JSF or Manning's JSTL in Action. -Original Message- From: Joe Plautz [mailto:[EMAIL PROTECTED] Sent: August 11, 2005 12:31 PM To: Tomcat Users List Subject: Re: OT: JSTL and JSF book recommendations Starting out, I suggest the Core Servlets and JavaServer Pages by Marty Hall to gain an understanding of the Java EE web technologies. It's about as good of a book as I've seen on any technical subject matter, particularly for a beginner. I still reference it after several years. For JSF I have both the O'Reilly book and the Core JSF books. I wouldn't say one is particularly better than the other, but both need a working knowledge of underlying technologies to make total sense. I have the first editions of them both though, so they are a bit behind the game on the latest and I believe second editions on each are available. I also suggest going here http://forum.java.sun.com/forum.jspa?forumID=427 it's the official JSF forum, you'll get lots of information from it. David Boyer wrote: We're using Tomcat 5.5.9, and I'm looking for good books (or other resources) for learning JSTL and JSF. These will be for a person with a novice-level understanding of Java and Tomcat, so I'd like something that will take him from beginner to intermediate (or better). He'll be learning Java at the same time. Any suggestions you have are appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:42fb7c8152591501418128!
RE: deploying war files
Move your log file out of your context. -Original Message- From: Darren Carman [mailto:[EMAIL PROTECTED] Sent: June 27, 2005 9:39 AM To: tomcat-user@jakarta.apache.org Subject: deploying war files Hi, I have a project which generates log files within the project area. When I deploy a war file to a running tomcat instance the project appears to be deleted and re-created. Is there anyway to deploy automatically without deleting these files (or any files that exist in the project area that are not deployed in the war file)? I use netbeans to generate the war file if that gives me any more options on how to do this. Thanks in advance Darren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:42c00287226251759967747!
RE: Please help with PermGen OutOfMemory error
What is the version of your tomcat? 5.5 supposed to have resolved this issue by flush reflection cache when undeploy your web app. -Original Message- From: Andy Kriger [mailto:[EMAIL PROTECTED] Sent: June 27, 2005 12:12 PM To: tomcat-user@jakarta.apache.org Subject: Please help with PermGen OutOfMemory error After many webapp installs, I get this in my tomcat logs... Exception in thread ContainerBackgroundProcessor[StandardEngine[Catalina]] java.lang.OutOfMemory Error: PermGen space MaxPermSize=128m, but the errors still happen. I understand that this comes from apps not releasing all their resources. How do I track down what part of my app is leaving these resources behind? I'm hoping for pointers to tools/articles/blog entries - anything that'll let me isolate this problem (hopefully to a part of my code that I can actually fix as opposed to third party code I have no control over). thx andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:42c02542251611437718752!
RE: Please help with PermGen OutOfMemory error
I did see this issue happened with my tomcat 4.1/5.0. After I upgraded to 5.5, I have encountered any outofmemory even after 100 hundreds deployments. Does your web app use struts? You can always clean up resource by adding Introspector.flushCaches(); in your context listener's contextDestroyed method. Otherwise, you will have to go through your web app carefully to find out if there is any memory leak. -Original Message- From: James Black [mailto:[EMAIL PROTECTED] Sent: June 27, 2005 1:25 PM To: Tomcat Users List Subject: Re: Please help with PermGen OutOfMemory error -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Phillip Qin wrote: What is the version of your tomcat? 5.5 supposed to have resolved this issue by flush reflection cache when undeploy your web app. I get this with 5.5.9, using jdk 1.5, under Solaris 8, when I copy my new beehive-based webapp into my webapps directory. After about 5-8 new versions within a few hours then I get this error and have to restart tomcat. - -- Love is mutual self-giving that ends in self-recovery. Fulton Sheen James Black[EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCwDZhikQgpVn8xrARAmGqAJ90O/O0HFgB6cCL/PvpcqOldhoFPQCeJ60A kPBnA55zhnUmNtiNp6z1iqU= =s7n+ -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:42c03666260791431712512!
This file cannot be written to cache
Has tomcat 5.5 change the default response header? In 5.0.28, I was able to download file from secure site in IE. In 5.5, I got this error message This file cannot be written to cache although my IE's Don't save encrypt page to file is deselected. Regards, Phillip Qin
RE: Load oracle.jdbc.driver.OracleDriver class
Copy oracle driver jar to common/lib -Original Message- From: Giacomino Raccuia [mailto:[EMAIL PROTECTED] Sent: June 23, 2005 2:11 PM To: Tomcat Users List Subject: Load oracle.jdbc.driver.OracleDriver class Hi! I just upgraded from tomcat 4.0.3 to 5.5.9, I put all my librarie in shared/lib and set correctly the CLASSPATH, but when I try to load the class oracle.jdbc.driver.OracleDriver tomcat return this error ava.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver java.net.URLClassLoader$1.run(URLClassLoader.java:198) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(URLClassLoader.java:186) java.lang.ClassLoader.loadClass(ClassLoader.java:299) java.lang.ClassLoader.loadClass(ClassLoader.java:255) java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) java.lang.Class.forName0(Native Method) java.lang.Class.forName(Class.java:140) glib.sql.ConnectionPool.init(ConnectionPool.java:41) org.apache.jsp.test_jsp._jspService(org.apache.jsp.test_jsp:111) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 22) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) nmda.servlets.MultipartFilter.doFilter(MultipartFilter.java:58) Do you have any suggestion?? I try this code try { Class.forName (oracle.jdbc.OracleDriver); } catch (Exception ex) {} and works fine. Thanks Mino On 20/06/2005 16:30, Christoph Kutzinski wrote: Hi, I'm trying to install a custom CharsetProvider (UTF7) with my web application (i.e. deliver a JAR with a META-/services/java.nio.charset.spi.CharsetProvider entry in WEB-INF/lib) However the CharsetProvider isn't recognized when it comes to parsing (i.e. calling javax.mail.Part.getContent()) If I place the JAR into JRE/lib/ext it works. The API of CharsetProvider (http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/spi/CharsetProvide r.html) says: Charset providers may be installed in an instance of the Java platform as extensions, that is, jar files placed into any of the usual extension directories. Providers may also be made available by adding them to the applet or application class path or by some other platform-specific means. Charset providers are looked up via the current thread's context class loader. I interpret it this way: If the JAR is in the classpath (specifically: if it is found by the current context class loader) the Charsetprovider should be automatically recognized. I checked that the context classloader immediately before calling Part.getContent() is the webapp-classloader, so the JARs in WEB-INF/lib should be visible. So is there any solution to this other than placing the JAR in an extension directory? Could this be a Tomcat bug or is this expected behaviour due to the speciality of the webapp classloaders? (I tried to understand the implifications of Tomcats classloading at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html but couldn't figure it out by myself) Thank you, Christoph - 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] !DSPAM:42bafb4e110031577611889!
RE: Cannot Front tomcat 5.5.9 with Apache 2.0.54, ajp13 on Solari s 10
Can you replace that *:80m with something like host.com:80 or ip:80? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: June 21, 2005 3:54 AM To: Tomcat Users List Subject: RE: Cannot Front tomcat 5.5.9 with Apache 2.0.54, ajp13 on Solaris 10 I'm sorry for the flood but as I'm new to this list, I wondered why I did not receive back the message I posted. So now, I suppose its a rule in ezmlm. Sorry again. Phillip, I applied your suggestions with no more success. As my test environment is on a sigle machine for apache and tomcat, it's difficult to check if mod_jk try to open a connection with TC. A truss off httpd don't show any socket stuff with TC. I wonder compilation stuff is OK. apache: ./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --enable-ssl=shared --enable-ssl --with-ssl=/usr/local/ssl --with-mpm=worker tomcat: ./configure --with-apxs=/usr/local/apache2/bin/apxs +--+ Pierre Lebrun / ARTIC tel 02 31 32 45 36 fax 02 31 62 04 65 +--+ Phillip Qin [EMAIL PROTECTED] a écrit sur 20/06/2005 20:45:20 : Please do not post same question three times. Jk works with apache 2.0.54 and tomcat 5.5.9. I hope this is not a typo in your workers.properties. worker.ajp13w.port=8009k Change this JkAutoAlias /usr/local/jakarta-tomcat-5.5.9/webapps/ROOT to JkAutoAlias /usr/local/jakarta-tomcat-5.5.9/webapps/ You need to unmount /favicon too. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: June 20, 2005 6:10 AM To: Tomcat Users List Subject: Cannot Front tomcat 5.5.9 with Apache 2.0.54, ajp13 on Solaris 10 Hi, I'm stuck while trying to front tomcat 5.5.9 with Apache 2.0.54 and ajp13 on Solaris 10. I followed docs from tomcat website and the excellent best practices from Mladen Turk with no more success. mod_jk says it cannot find a worker for the worker name of httpd.conf and return error 500 Apache is compiled with MPM worker with all modules enabled Here under are log and config files. I wonder if tomcat 5.5.9 realy works with apache 2.0.54 and mod_jk. Thanks for your help Pierre Log from mod_jk = [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] map_uri_to_worker::jk_uri_worker_map.c (442): Attempting to map URI '/favicon.ico' from 1 maps [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map context URI '/*' [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] map_uri_to_worker::jk_uri_worker_map.c (468): Found a wildchar match ajp13w - /* [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] jk_handler::mod_jk.c (1814): Into handler jakarta-servlet worker=ajp13w r-proxyreq=0 [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] wc_get_worker_for_name::jk_worker.c (105): did not find a worker ajp13w [Mon Jun 20 11:55:33 2005] [4832:0027] [info] jk_handler::mod_jk.c (1986): Could not find a worker for worker name=ajp13w == = VH conf in HTTPD.CONF = NameVirtualHost *:80 VirtualHost *:80 ServerNamesa1.tomcat.fr ServerAlias sa1 DocumentRoot /usr/local/jakarta-tomcat-5.5.9/webapps/ROOT JkWorkersFile /usr/local/jakarta-tomcat-5.5.9/conf/workers.properties JkLogFile /usr/local/apache2/logs/jk-sa1.log JkAutoAlias /usr/local/jakarta-tomcat-5.5.9/webapps/ROOT JkMount /* ajp13w /VirtualHost = workers.properties = # workers.properties.minimal - # # This file provides minimal jk configuration properties needed to # connect to Tomcat. # # The workers that jk should create and work with # worker.list=ajp13w # # Defining a worker named ajp13w and of type ajp13 # Note that the name and the type do not have to match. # worker.ajp13w.type=ajp13 worker.ajp13w.host=localhost worker.ajp13w.port=8009k serverl.xml Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / Listener className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/ GlobalNamingResources Resource name
RE: Cannot Front tomcat 5.5.9 with Apache 2.0.54, ajp13 on Solari s 10
Can you JkLoglevel debug -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: June 21, 2005 11:05 AM To: Tomcat Users List Subject: RE: Cannot Front tomcat 5.5.9 with Apache 2.0.54, ajp13 on Solari s 10 sa1.tomcat.fr:80 in apache Virtual Host section doesn't change anything. I start apache as root. I think that apache routes the query through mod_jk because logs are in the file given by JkLogFile directive. But mod_jk is not able to open a socket with tomcat on port 8009. There is no log of mod_jk connections tries in tomcat logs. Direct connection to TC in HTTP server mode on 8080 works fine. Access to statics files in apache also works fine. I can already thank you for your efforts. +--+ Pierre Lebrun / ARTIC tel 02 31 32 45 36 fax 02 31 62 04 65 +--+ Raghupathy,Gurumoorthy [EMAIL PROTECTED] a écrit sur 21/06/2005 15:19:56 : Did you start apache as root ? You need root access to start any service for ports less than 1024 -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: 21 June 2005 14:17 To: 'Tomcat Users List' Subject: RE: Cannot Front tomcat 5.5.9 with Apache 2.0.54, ajp13 on Solari s 10 Can you replace that *:80m with something like host.com:80 or ip:80? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: June 21, 2005 3:54 AM To: Tomcat Users List Subject: RE: Cannot Front tomcat 5.5.9 with Apache 2.0.54, ajp13 on Solaris 10 I'm sorry for the flood but as I'm new to this list, I wondered why I did not receive back the message I posted. So now, I suppose its a rule in ezmlm. Sorry again. Phillip, I applied your suggestions with no more success. As my test environment is on a sigle machine for apache and tomcat, it's difficult to check if mod_jk try to open a connection with TC. A truss off httpd don't show any socket stuff with TC. I wonder compilation stuff is OK. apache: ./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --enable-ssl=shared --enable-ssl --with-ssl=/usr/local/ssl --with-mpm=worker tomcat: ./configure --with-apxs=/usr/local/apache2/bin/apxs +--+ Pierre Lebrun / ARTIC tel 02 31 32 45 36 fax 02 31 62 04 65 +--+ Phillip Qin [EMAIL PROTECTED] a écrit sur 20/06/2005 20:45:20 : Please do not post same question three times. Jk works with apache 2.0.54 and tomcat 5.5.9. I hope this is not a typo in your workers.properties. worker.ajp13w.port=8009k Change this JkAutoAlias /usr/local/jakarta-tomcat-5.5.9/webapps/ROOT to JkAutoAlias /usr/local/jakarta-tomcat-5.5.9/webapps/ You need to unmount /favicon too. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: June 20, 2005 6:10 AM To: Tomcat Users List Subject: Cannot Front tomcat 5.5.9 with Apache 2.0.54, ajp13 on Solaris 10 Hi, I'm stuck while trying to front tomcat 5.5.9 with Apache 2.0.54 and ajp13 on Solaris 10. I followed docs from tomcat website and the excellent best practices from Mladen Turk with no more success. mod_jk says it cannot find a worker for the worker name of httpd.conf and return error 500 Apache is compiled with MPM worker with all modules enabled Here under are log and config files. I wonder if tomcat 5.5.9 realy works with apache 2.0.54 and mod_jk. Thanks for your help Pierre Log from mod_jk = [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] map_uri_to_worker::jk_uri_worker_map.c (442): Attempting to map URI '/favicon.ico' from 1 maps [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map context URI '/*' [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] map_uri_to_worker::jk_uri_worker_map.c (468): Found a wildchar match ajp13w - /* [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] jk_handler::mod_jk.c (1814): Into handler jakarta-servlet worker=ajp13w r-proxyreq=0 [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] wc_get_worker_for_name::jk_worker.c (105): did not find a worker ajp13w [Mon Jun 20 11:55:33 2005] [4832:0027] [info] jk_handler::mod_jk.c (1986): Could not find a worker for worker name=ajp13w == = VH conf in HTTPD.CONF = NameVirtualHost *:80 VirtualHost *:80 ServerNamesa1.tomcat.fr ServerAlias sa1 DocumentRoot /usr/local
RE: Cannot Front tomcat 5.5.9 with Apache 2.0.54, ajp13 on Solari s 10
Please do not post same question three times. Jk works with apache 2.0.54 and tomcat 5.5.9. I hope this is not a typo in your workers.properties. worker.ajp13w.port=8009k Change this JkAutoAlias /usr/local/jakarta-tomcat-5.5.9/webapps/ROOT to JkAutoAlias /usr/local/jakarta-tomcat-5.5.9/webapps/ You need to unmount /favicon too. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: June 20, 2005 6:10 AM To: Tomcat Users List Subject: Cannot Front tomcat 5.5.9 with Apache 2.0.54, ajp13 on Solaris 10 Hi, I'm stuck while trying to front tomcat 5.5.9 with Apache 2.0.54 and ajp13 on Solaris 10. I followed docs from tomcat website and the excellent best practices from Mladen Turk with no more success. mod_jk says it cannot find a worker for the worker name of httpd.conf and return error 500 Apache is compiled with MPM worker with all modules enabled Here under are log and config files. I wonder if tomcat 5.5.9 realy works with apache 2.0.54 and mod_jk. Thanks for your help Pierre Log from mod_jk = [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] map_uri_to_worker::jk_uri_worker_map.c (442): Attempting to map URI '/favicon.ico' from 1 maps [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map context URI '/*' [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] map_uri_to_worker::jk_uri_worker_map.c (468): Found a wildchar match ajp13w - /* [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] jk_handler::mod_jk.c (1814): Into handler jakarta-servlet worker=ajp13w r-proxyreq=0 [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] wc_get_worker_for_name::jk_worker.c (105): did not find a worker ajp13w [Mon Jun 20 11:55:33 2005] [4832:0027] [info] jk_handler::mod_jk.c (1986): Could not find a worker for worker name=ajp13w == = VH conf in HTTPD.CONF = NameVirtualHost *:80 VirtualHost *:80 ServerNamesa1.tomcat.fr ServerAlias sa1 DocumentRoot /usr/local/jakarta-tomcat-5.5.9/webapps/ROOT JkWorkersFile /usr/local/jakarta-tomcat-5.5.9/conf/workers.properties JkLogFile /usr/local/apache2/logs/jk-sa1.log JkAutoAlias /usr/local/jakarta-tomcat-5.5.9/webapps/ROOT JkMount /* ajp13w /VirtualHost = workers.properties = # workers.properties.minimal - # # This file provides minimal jk configuration properties needed to # connect to Tomcat. # # The workers that jk should create and work with # worker.list=ajp13w # # Defining a worker named ajp13w and of type ajp13 # Note that the name and the type do not have to match. # worker.ajp13w.type=ajp13 worker.ajp13w.host=localhost worker.ajp13w.port=8009k serverl.xml Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / Listener className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/ GlobalNamingResources Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina Connector port=8009 maxProcessors=150 enableLookups=false redirectPort=8443 protocol=AJP/1.3 / Engine name=Catalina defaultHost=sa1.tomcat.fr Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ Host name=sa1.tomcat.fr appBase=webapps/ROOT unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Aliassa1.tomcat.fr/Alias /Host /Engine /Service /Server +--+ Pierre Lebrun / ARTIC tel 02 31 32 45 36 fax 02 31 62 04 65 +--+ !DSPAM:42b69a97272513980715148!
RE: Ghost Java Processes while Running Tomcat
Do you use Tomcat Manager to deploy/undeploy your web app? -Original Message- From: Gonçalo Gaiolas [mailto:[EMAIL PROTECTED] Sent: June 18, 2005 9:01 AM To: tomcat-user@jakarta.apache.org Subject: Ghost Java Processes while Running Tomcat Hi everyone, I have Tomcat deployed in a production environment, and after a while I get OutOfMemory Exceptions. I realize this may be a memory leak in my application, but what troubles me the most is that if I execute a ps I can see a lot of java processes that simply don't die after tomcat has been shutdown. I have to kill them manually. What could be wrong here? I am using tomcat 5.0.28. Thanks a lot for any help, Gonçalo !DSPAM:42b41b3c45221227519469!
RE: Running tomcat on Debian Sarge
I have never installed any debian-tomcat/apache package. I simply download source from apache and build my own. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: June 9, 2005 6:09 AM To: Tomcat Users List Subject: Re: Running tomcat on Debian Sarge Debian has a Tomcat 4.1 (4.1..31-3 to be exact) package for the Sarge distribution. The Sarge distribution is now the official stable release. If you're OK with Tomcat 4.1 and you're running Sarge, you can edit /etc/apt/sources.list: (omit all quotation marks) deb http://mirrors.kernel.org/debian/ sarge main non-free contrib deb-src http://mirrors.kernel.org/debian/ sarge main non-free contrib (or whatever your mirror site may be). As root, run (omit the quotation marks) apt-get update, then apt-get install tomcat4 apt-get install tomcat4-webapps apt-get install tomcat4-admin (if you want the admin webapp) or apt-get install tomcat4 tomcat4-webapps tomcat4-admin all at once. To be able to run the admin and manager apps, you'll need to edit /usr/share/tomcat4/conf/tomcat-users.xml to include a user and password for the rolls of admin and manager. Blackdown has a Debian package for J2SE 1.4 jdk which you can install by adding deb ftp://ftp-.tux.org/java/debian/ sarge non-free to sources.list. Then run apt-get install j2sdk1.4 When I last checked, they also had a package for the jk2 connector but theirs does not support JNI (and jk2 is deprecated). Best bet is to download the jk1 source and build it yourself. -- Original message -- Just install the Tomcat jars and read the Tomcat docs. We are running Tomcat on Debian also. And probably Debian has got some packages of tomcat. Ronald. On Wed Jun 08 23:13:06 CEST 2005 Tomcat Users List wrote: All, Anybody here who knows a foolproof site for setting up tomcat under debian?! I'm an newbie when it come to tomcat on linux, but I really would like this to work... Al I seem to be getting is an connection refused on my localhost... Some pointer could be handy, but I seem to be having problems googling for the correct manuals/howto's. Thanks in advance! Blijblijblij - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:42a8153f145051675613803!
RE: Running tomcat on Debian Sarge
My sites are running debian + apache 2 + tomcat 5.0.28. Take a look at www.shareowner.com and https://www.investments.shareowner.com/lciponline. Connect refused has lots of reasons. For example, apache config, tomcat config, jk config etc. -Original Message- From: blijblijblij [mailto:[EMAIL PROTECTED] Sent: June 8, 2005 5:13 PM To: tomcat-user@jakarta.apache.org Subject: Running tomcat on Debian Sarge All, Anybody here who knows a foolproof site for setting up tomcat under debian?! I'm an newbie when it come to tomcat on linux, but I really would like this to work... Al I seem to be getting is an connection refused on my localhost... Some pointer could be handy, but I seem to be having problems googling for the correct manuals/howto's. Thanks in advance! Blijblijblij - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:42a75f4c76652063243841!
RE: Production ready JK release?
Always try the latest. 1.2.10 is the most recent. I use 1.2.8 without any problem. -Original Message- From: Markus Kobler [mailto:[EMAIL PROTECTED] Sent: June 9, 2005 7:52 AM To: tomcat-user@jakarta.apache.org Subject: Production ready JK release? Which JK connector should be considered a Stable release? The release notes don't make it clear. Thanks Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:42a82d88153431295917239!
RE: Production ready JK release?
I am sorry. Mine is 1.2.10 and the latest is 1.2.13. -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: June 9, 2005 10:23 AM To: Tomcat Users List Subject: RE: Production ready JK release? 1.2.13 (relabled as 1.2.14?) is the most recent. -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 10:21 AM To: 'Tomcat Users List' Subject: RE: Production ready JK release? Always try the latest. 1.2.10 is the most recent. I use 1.2.8 without any problem. -Original Message- From: Markus Kobler [mailto:[EMAIL PROTECTED] Sent: June 9, 2005 7:52 AM To: tomcat-user@jakarta.apache.org Subject: Production ready JK release? Which JK connector should be considered a Stable release? The release notes don't make it clear. Thanks Markus - 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] !DSPAM:42a850d5169941677561320!
RE: Tomcat CGI and HTTP status codes
You can hack the cgiervlet. I did it buy myself by adding 302 checking into one of the methods. -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: June 8, 2005 1:09 PM To: Tomcat Users List Subject: Re: Tomcat CGI and HTTP status codes Chris, Sorry, but this isn't supported. See http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/share /org/apache/catalina/servlets/CGIServlet.java?rev=1.31view=markup and search for NPH for more info. Patches are always welcome ;) Mark Chris Picton wrote: Hi all I am trying to get squivi2 running under tomcat cgi, but I am having a problem with redirects. Code I am testing generates a redirect as follows: - my $tempout = $q-header( -nph=1, -status=302 Moved Temporarily, -location=$dest, ); open F, /tmp/f; print F $tempout; close F; print $tempout; exit 0; - I am printing the output to /tmp/f to check what is being sent to the browser. The contents of that file look like: -- HTTP/1.0 302 Moved Temporarily Server: TOMCAT Status: 302 Moved Temporarily Date: Wed, 08 Jun 2005 09:31:34 GMT Location: http://127.0.0.1:8080/cgi-bin/squivi.cgi/seqf_11/proto_prep Content-Type: text/html; charset=ISO-8859-1 -- Here is where the problem comes in. When I try to access the cgi, It doesn;t redirect, but downloads the file. It seems that tomcat is changing the 302 status to a 200 somewhere. When I telnet to the tomcat port and GET the cgi, this is what I see: - GET /cgi-bin/squivi.cgi/seqf_11 HTTP/1.0 Host: 127.0.0.1 HTTP/1.1 200 OK Pragma: No-cache Cache-Control: no-cache Expires: Thu, 01 Jan 1970 02:00:00 SAST Server: TOMCAT Status: 302 Moved Temporarily Date: Wed, 08 Jun 2005 09:40:24 GMT Content-Length: 0 Server: Apache-Coyote/1.1 Connection: close --- Note that the Location header has been removed, and the status has been changed to 200. Am I missing a trick here? What is going on? Chris - 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] !DSPAM:42a7263452096087514935!
RE: .pst file type unknown in tomcat
PST from what I understand is Microsoft Personal Folder file. You shall always be able to right click on the link and choose Save As in IE or Save Target As in firefox. -Original Message- From: Philippe Johan [mailto:[EMAIL PROTECTED] Sent: May 31, 2005 8:49 AM To: Marot Laurent; Tomcat Users List Subject: RE: .pst file type unknown in tomcat There's nothing that's available really: http://filext.com/detaillist.php?extdetail=pst Even Microsoft did not provide a type (it is even missing in the registry definition of .pst). Johan Philippe Real Software http://www.realsoftwaregroup.com/ -Original Message- From: Marot Laurent [mailto:[EMAIL PROTECTED] Sent: maandag 30 mei 2005 22:50 To: Tomcat Users List Subject: RE: .pst file type unknown in tomcat I don't know what to put in the mime-type attribute mime-mapping extensionpss/extension mime-type?/mime-type /mime-mapping -Message d'origine- De : George Sexton [mailto:[EMAIL PROTECTED] Envoyé : lundi 30 mai 2005 22:44 À : 'Tomcat Users List' Objet : RE: .pst file type unknown in tomcat .pst file mime type is not decalred by default in web.xml So, why don't you declare it? George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Marot Laurent [mailto:[EMAIL PROTECTED] Sent: Monday, May 30, 2005 2:33 PM To: Tomcat Users List Subject: .pst file type unknown in tomcat Hi all, I'm trying to manage .pst files stored on my Tomcat server. But unfortunately when i click on a pst file link it opens the file in a pop-up (an of course content is not readable). How could i pevent tomcat from serving the file this way but better propose do save it on user's local disk ? .pst file mime type is not decalred by default in web.xml Thanks a lot Laurent - 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] !DSPAM:429c5d5d251411085324931!
RE: jk 1.2.14 connector connection problem
Try the simpliest configuration in workers.properties # Define 1 real worker using ajp13 worker.list=worker1,status # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.reclycle_timeout=300 worker.status.type=status -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: May 26, 2005 3:59 PM To: Tomcat Users List Subject: RE: jk 1.2.14 connector connection problem After verifying with Mladen that the setup was correct, the problem is still exhibited. -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: Thursday, May 26, 2005 2:39 PM To: Tomcat Users List Subject: Re: jk 1.2.14 connector connection problem Derrick Koes wrote: I've run with this configuration elsewhere without error. I'm not certain what the issue is. I have this same problem without using the loadbalancer worker. I can't even get to jkstatus. Any help is greatly appreciated. The problem is with the installation. You probably do not have /jakarta virtual directory set up correctly. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:42962a91309751699410697!
RE: pdf not working
I think your point 2 is more important. I found out that in IE, I have to append .pdf somewhere in the url otherwise the ActiveX control that interprets pdf simple wouldn't work. In my piece of work, I use http://www.mydomain.com/myapp/statement.pdf?myquerystring... Mozilla/Firefox has no such problem. -Original Message- From: David B. Saul [mailto:[EMAIL PROTECTED] Sent: May 4, 2005 12:51 PM To: 'Tomcat Users List' Subject: RE: pdf not working Here is what worked for me. The PDF is created dynamically. 1. a small bit of code which used FOP and served it as a stream. Be sure to set the response type. byte[] fo; . . . InputSource fopInput = new InputSource( new ByteArrayInputStream( fo ) ); ByteArrayOutputStream outStream = new ByteArrayOutputStream(); Driver driver = new Driver( fopInput, outStream ); driver.setLogger(log); driver.setRenderer(Driver.RENDER_PDF); driver.run(); output = outStream.toByteArray(); response.setContentType(application/pdf); response.resetBuffer(); response.setContentLength(output.length); ServletOutputStream os = response.getOutputStream(); os.write(output); os.close(); 2. Also added to the URL at the end was the following: pdf=.pdf\ Can't remember where I found this idea, nor can I find it at this minute, but it made it work. hth, Dave -Original Message- From: Jay Hulslander [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 04, 2005 6:17 AM To: Tomcat Users List Subject: Re: pdf not working Just so I understand, file.jpg is hosted fine back to a browser. File.pdf, in the same location, is not hosted back to the browser find. Is that what you are experiencing? Sounds like tomcat is configured to execute pdf documents as opposed to hosting them. Much like you would configure a web server to execute streaming video as opposed to just hosting a video to be downloaded. I do not know where this configuration is done in Tomcat, but that is where I would start. -Jay At 06:04 AM 5/4/2005, you wrote: Hi all, Iam trying to call a link to a new window and that's calling a pdf document thats somewhere in my folder under webapps. The problem is that the pdf is not shown. If i try it with an image it will be displayed correctly. I am using Tomcat 5.5. Maarten -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.3 - Release Date: 3-5-2005 - 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] !DSPAM:4278d3bc82251395011244!
RE: Serving files using tomcat
Code should work. Also read email between Daivd and mine. .pdf has to be appended for IE to load pdf. -Original Message- From: Steve Vanspall [mailto:[EMAIL PROTECTED] Sent: May 4, 2005 11:48 AM To: Tomcat Users List Subject: Re: Serving files using tomcat Unfortunately that is what I do OutputStream dos = null; FileInputStream fis = null; try { fis = new FileInputStream(rf.getPdf()); response.setContentType(application/pdf); response.setContentLength((int) rf.getPdf().length()); //response.setHeader(response.) dos = response.getOutputStream(); int read = -1; byte[] bytes = new byte[10]; while((read = fis.read(bytes)) != -1) dos.write(bytes, 0, read); dos.flush(); return mapping.findForward(PDF); } catch (Exception e) { // TODO Auto-generated catch block if(e instanceof SocketException) return mapping.findForward(reload); throw new IOException(e.toString()); } finally { if(dos != null) dos.close(); if(fis != null) fis.close(); } Acrobat now loads but the PDF doesn't appear. Probably worth mentioning that I use struts, so I forward to a blank page with the content type set to application/pdf, maybe that is the problem, but not sure what else to do with the return. When I do the same thing with a dynamic image and forward to a page with a jpg content type, the image appears without a problem. Steve - Original Message - From: Anhony [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Thursday, May 05, 2005 1:02 AM Subject: Re: Serving files using tomcat Greetings, Take a look at the code fragment below. It should serve as a good starting point. I hope this helps. AS- private void processPDFRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, Exception { int bytesCopied = 0; FileInputStream fin = null; OutputStream out = null; String fileAddress = The fully qualified path to your PDF file; if( fileAddress == null ) return; int ext = fileAddress.lastIndexOf( '.' ); if( ext != -1 ) { ext = fileAddress.substring( ext+1, fileAddress.length() ).toLowerCase(); if( ext == pdf ) response.setContentType(application/pdf); else Do whatever you think best to do } else Do whatever you think best to do try { out = response.getOutputStream(); fin = new FileInputStream( fileAddress ); bytesCopied = StreamCopier.copy( fin, out ); } finally { if( fin != null ) fin.close(); if( out != null ) { out.flush(); out.close(); } } } - Original Message - From: Steve Vanspall [EMAIL PROTECTED] To: Tomcat User List tomcat-user@jakarta.apache.org Sent: Wednesday, May 04, 2005 9:29 AM Subject: Serving files using tomcat Hi, I have been looking around and haven't found a solution that works basically I have a PDF that gets created dynamically. Now to save memory I have the PDF written to a file rather than a ByteArray. The only way I can be sure that I wont encounter errors creating the file is to use File.createTempFile. The creation goes of ok. And I have checked the file itself and the PDF looks great. How do i now serve this to the user who has requested it. If I try to write it to the response (using the same method I use to creare dynamic image, this works), it just shows up a blank screen. The problem also is, even if it did show the PDF, acrobat, to my understand will read only chunks of the stream and will go pack to get more. Thisis a problem because there is nothing to go back for. So the point, If I can just redirect the browser to a file in the tomcat temp directory (can I do that, will the use have access to that directory), then how do I translate the location of the temp directory to a url that is accesible outside. If not then what other suggestions can people give me. Thanks in advance Steve - 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] !DSPAM:4278f10a96891759557146!
RE: pdf not working
Has Content-Disposition become standard or just a recommendation? -Original Message- From: Diogo Quintela (EF) [mailto:[EMAIL PROTECTED] Sent: May 4, 2005 12:10 PM To: 'Tomcat Users List' Subject: RE: pdf not working Next time I promise I'll read it before clicking Send. :-) Diogo -Original Message- From: Diogo Quintela (EF) [mailto:[EMAIL PROTECTED] Sent: quarta-feira, 4 de Maio de 2005 17:01 To: 'Tomcat Users List' Subject: RE: pdf not working Hello Try adding the following any of the following response headers: Content-Type, application/pdf And any of the follwing.. Content-disposition,inline; filename=example.pdf Content-disposition,attachment; filename=example.pdf Content-disposition,filename= example.pdf Diogo Quintela @see http://support.microsoft.com/support/kb/articles/Q260/5/19.ASP @see http://support.microsoft.com/support/kb/articles/Q279/6/67.ASP -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: quarta-feira, 4 de Maio de 2005 15:25 To: 'Tomcat Users List' Subject: RE: pdf not working I think your point 2 is more important. I found out that in IE, I have to append .pdf somewhere in the url otherwise the ActiveX control that interprets pdf simple wouldn't work. In my piece of work, I use http://www.mydomain.com/myapp/statement.pdf?myquerystring... Mozilla/Firefox has no such problem. -Original Message- From: David B. Saul [mailto:[EMAIL PROTECTED] Sent: May 4, 2005 12:51 PM To: 'Tomcat Users List' Subject: RE: pdf not working Here is what worked for me. The PDF is created dynamically. 1. a small bit of code which used FOP and served it as a stream. Be sure to set the response type. byte[] fo; . . . InputSource fopInput = new InputSource( new ByteArrayInputStream( fo ) ); ByteArrayOutputStream outStream = new ByteArrayOutputStream(); Driver driver = new Driver( fopInput, outStream ); driver.setLogger(log); driver.setRenderer(Driver.RENDER_PDF); driver.run(); output = outStream.toByteArray(); response.setContentType(application/pdf); response.resetBuffer(); response.setContentLength(output.length); ServletOutputStream os = response.getOutputStream(); os.write(output); os.close(); 2. Also added to the URL at the end was the following: pdf=.pdf\ Can't remember where I found this idea, nor can I find it at this minute, but it made it work. hth, Dave -Original Message- From: Jay Hulslander [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 04, 2005 6:17 AM To: Tomcat Users List Subject: Re: pdf not working Just so I understand, file.jpg is hosted fine back to a browser. File.pdf, in the same location, is not hosted back to the browser find. Is that what you are experiencing? Sounds like tomcat is configured to execute pdf documents as opposed to hosting them. Much like you would configure a web server to execute streaming video as opposed to just hosting a video to be downloaded. I do not know where this configuration is done in Tomcat, but that is where I would start. -Jay At 06:04 AM 5/4/2005, you wrote: Hi all, Iam trying to call a link to a new window and that's calling a pdf document thats somewhere in my folder under webapps. The problem is that the pdf is not shown. If i try it with an image it will be displayed correctly. I am using Tomcat 5.5. Maarten -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.3 - Release Date: 3-5-2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:4278f46d100932250632097!
RE: Apache Tomcat JK Mod
JkMount /context/* worker1 JkMount /context worker1 -Original Message- From: Geoff Wiggs [mailto:[EMAIL PROTECTED] Sent: April 13, 2005 8:16 PM To: tomcat-user@jakarta.apache.org Subject: Apache Tomcat JK Mod I know this question has probably been asked 1000 times, but here I go again. I have Apache / Tomcat and jk_mod all running correctly. If I hit the URL correctly (i.e. www.server.com/context/) my jsp's and servlets come up just fine. Now I want to serve my home page (www.server.com http://www.server.com/ ) as a JSP. My context is /home. If I hit www.server.com/home the JSP comes up just the way I want it. How can I make the connection between the request for www.servername.com http://www.servername.com/ and the correct context www.servername.com/home? Apache, jk_mod or Tomcat options would be fine, I am just having a problem making the connection between the three work the way I need. Regards, Geoff [EMAIL PROTECTED] !DSPAM:425db628239247680086418!
RE: Why does this JkCoyoteHandler message appears?
Check your code. Various reasons will cause this INFO. -Original Message- From: Zsolt Koppany [mailto:[EMAIL PROTECTED] Sent: April 14, 2005 4:52 AM To: Tomcat Users List Subject: Why does this JkCoyoteHandler message appears? Hi, The message below appears very often. How can I fix it? Apr 13, 2005 11:54:24 PM org.apache.jk.server.JkCoyoteHandler action INFO: Response already commited TC-5.0.27 Zsolt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:425e3c6a284981253566427!
RE: Apache Tomcat JK Mod
Is there an index.jsp in your context? -Original Message- From: Geoff Wiggs [mailto:[EMAIL PROTECTED] Sent: April 14, 2005 10:37 AM To: 'Mladen Turk' Cc: tomcat-user@jakarta.apache.org Subject: RE: Apache Tomcat JK Mod I tried this, but I still get sent to the Tomcat splash page. The url I am trying to translate to is www.orcastech.com/home/ . Any more clues? VirtualHost * ServerName www.servername.com RewriteEngine On RewriteRule (.*) /home$1 JkMount /home/* worker1 JkMount /emba48wiki*worker1 JkMount /admin worker1 JkMount /managerworker1 JkMount /* worker1 /VirtualHost Geoff Wiggs Orcas Technologies, Inc [EMAIL PROTECTED] 650-520-1121 -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 10:11 PM To: Tomcat Users List Subject: Re: Apache Tomcat JK Mod Geoff Wiggs wrote: I know this question has probably been asked 1000 times, but here I go again. OK. Once for all :) RewriteEngine On RewriteRule (.*) /servlets-examples$1 [PT] I have Apache / Tomcat and jk_mod all running correctly. If I hit the URL correctly (i.e. www.server.com/context/) my jsp's and servlets come up just fine. Now I want to serve my home page (www.server.com http://www.server.com/ ) as a JSP. My context is /home. If I hit www.server.com/home the JSP comes up just the way I want it. How can I make the connection between the request for www.servername.com http://www.servername.com/ and the correct context www.servername.com/home? Apache, jk_mod or Tomcat options would be fine, I am just having a problem making the connection between the three work the way I need. I still do not understand why would yo wish to do something like that. You can easily make Tomcat working on port 80, and move your /home to the ROOT. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:425e801d311201629985329!
RE: Redirect to https://
Can you do it in apache httpd.conf? RewriteRule ^/host/application(.*) https://host/application [R] -Original Message- From: Darryl Wilburn [mailto:[EMAIL PROTECTED] Sent: April 14, 2005 4:00 PM To: tomcat-user@jakarta.apache.org Subject: Redirect to https:// Where would I configure a context to automatically redirect to https? So when a user types http://host/application, it would automatically redirect them to https://host/application where a index.jsp may be a login form that I'd like to have the username and password encrypted. I assume it goes in web.xml, but is it in the web.xml of the context itself? What is the format of the entry? Thanks in advance. Darryl __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:425ecbb615383665362806!
RE: [SPAM] - RE: Tomcat 5.5 hot deploy question - Found word(s) list error in the Text body
Is your Tomcat server on Windows box? -Original Message- From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] Sent: April 8, 2005 4:58 PM To: Tomcat Users List Subject: RE: [SPAM] - RE: Tomcat 5.5 hot deploy question - Found word(s) list error in the Text body I changed my Host definition to: Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true antiJarLocking=true antiResourceLocking=true xmlValidation=false xmlNamespaceAware=false No change. I use an ant script to war up mywebapp and copy it under tomcat. The very first time I do this everything works fine. The second time I try to deploy my war file Tomcat complains that it cannot find the web.xml file. (I am tailing my stdout file). Any clues? -Original Message- From: David Owens [mailto:[EMAIL PROTECTED] Sent: Friday, April 08, 2005 1:47 PM To: Tomcat Users List Subject: [SPAM] - RE: Tomcat 5.5 hot deploy question - Found word(s) list error in the Text body Most likely a jar or resource file is locked, and tomcat cannot undeploy the last app. Try turning on antiJarLocking and antiResourceLocking. |)ave -Original Message- From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] Sent: Friday, April 08, 2005 2:38 PM To: Tomcat Users List Subject: Tomcat 5.5 hot deploy question Hi, From what I understand if I want a webapp to be auto deployed from a war file under tomcat I should have the following: Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false ... ... /Host The problem is that when I copy a new mywebapp.war file in to tomcat I see a half exploded Or deleted mywebapp folder. By this I mean that the mywebapp folder contains only certain folders and files. Any clues as to why this maybe happening? Is tomcat holding on to some jar files because some objects are being refrenced still or something like that? I am guessing here wildly because I cant seem to resolve this issue. What am I missing? Thanks -- 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. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. Consult your physician prior to the use of any medical supplies or product. -- - 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] !DSPAM:4256f040152786596096882!
RE: Jakarta-tomcat-connectors-1.2.10-src error
This is introduced by jk 1.2.10. Simply add into your httpd.conf JkShmFile logs/mod_jk.shm shall fix this error. -Original Message- From: Vaneet Sharma [mailto:[EMAIL PROTECTED] Sent: April 4, 2005 8:54 AM To: Tomcat Users List Subject: Jakarta-tomcat-connectors-1.2.10-src error I am getting error in error_log No JkShmFile defined in httpd.conf. LoadBalancer will not function properly! I am using new Jk Connector.. With tomcat 5.5.7 Jakarta connector -1.2.8 is working well with 5.5.7 on my other machine... ( so configuration is fine and working well ) Something has changed in new connector Any suggestion Vaneet Vaneet Sharma executive manager iDeasTank Limited an iwg business dolphins' court po 388 valletta, m-malta/europe mobile: +356 9943 8263 skype: CALLVANEET fax: +356 9952 phone: +356 9942 [EMAIL PROTECTED] call me on www.skype.com - my ID is CALLVANEET Want a signature like this? - www.plaxo.com\signature iwg is a global e-mobile company creating, building and growing new businesses. iwg founders are pioneers in creating multi-billion dollar mobile and Internet businesses in Europe, Asia and the US. www.iWG.info www.countryprofiler.com/iWG www.visitmalta.com www.mfc.com.mt Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. !DSPAM:42513bd2242272030513583!
RE: Redhat Tomcat support
Agree. Whether O/S is Red hat or Debian, I also download tc from apache site and install it. -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: March 14, 2005 5:05 PM To: Tomcat Users List Subject: Re: Redhat Tomcat support On Mon, Mar 14, 2005 at 03:57:28PM -0600, Trice, Jim wrote: :I'm relatively new to Tomcat support. Has any had any experience with : RedHat support for Tomcat? We're currently running Tomcat 4.1 and would have : to upgrade to 5.5 to get support from RedHat. Is it worth it? I've never used RedHat's Tomcat support. One question to ask yourself, though, is whether you need support beyond the mailing list and your own RD. True, there's no guarantee the list will solve any and all questions you send in; but if you follow the list (to keep note of trends, bugs, and general advice) and are conservative about upgrades (to avoid being the first to encounter a bug) then maybe you'll do alright on your own. (Well, it also helps to keep up with the servlet spec and follow best practices for J2EE development, but that goes for any container ;) -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:42360a7889998607353539!
RE: JDBCRealm changes from Tomcat 5.0.x to 5.5.x
Very useful info. Thx. Have you actually tested your configure in tc5.5.7/.8, i.e. Tomcat Manager app deploy/redeploy etc.? -Original Message- From: David Tonhofer, m-plify S.A. [mailto:[EMAIL PROTECTED] Sent: March 10, 2005 5:55 AM To: Tomcat Users List Subject: Re: JDBCRealm changes from Tomcat 5.0.x to 5.5.x Juste pour info: I have written up my DataSourceRealm with DBCP that I got working before 02:00 this night (eww) into the DBCP Twiki. Not the best place, but hey, might be useful: http://wiki.apache.org/jakarta-commons/DBCP Enjoy, -- David --On Wednesday, March 09, 2005 8:40 PM -0800 alexander dosher [EMAIL PROTECTED] wrote: Hassan Schroeder makes my day: How about something like: (the correct answer) YES, thank you. i had a resourceName instead of a dataSourceName in my DataSourceRealm, left over from trying to use a UserDatabaseRealm, which i didn't really understand and isn't even in the docs anymore anyway. duh. *and* this method *is* reopening connections, which JDBCRealm didn't. yay! dream. code. no, thank you. had an awk dream once. i don't recommend it. ;-) --alex. - 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] !DSPAM:4230275a152948713912020!
RE: Query on mod_jk.log
JkLogFile -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: March 10, 2005 1:28 AM To: tomcat-user@jakarta.apache.org Subject: Query on mod_jk.log Hi All, I need to change the location of mod_jk.log file. Presently it gets logged in /apache/logs. I need to put it in /var/log/apache. How to accomplish this? Thanks and Regards, Mandar M Kelvekar Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:422fe96e132135474820448!
RE: JDBCRealm changes from Tomcat 5.0.x to 5.5.x
Could any one who has tested it post his result? I am really frustrated by the sometime buggy 5.5 releases and I had to revert to 5.0.28. -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED] Sent: March 8, 2005 6:23 PM To: Tomcat Users List Subject: Re: JDBCRealm changes from Tomcat 5.0.x to 5.5.x On Tue, 08 Mar 2005 15:16:41 -0800, Hassan Schroeder [EMAIL PROTECTED] wrote: Richard Mixon (qwest) wrote: We upgraded from Tomcat 5.0.19 to Tomcat 5.5.7 in production and are now getting JDBC connection errors when the site has not been accessed for a while. This is happening when a user tries to login - we use a JDBCRealm to authenticate the user. Would using the DataSourceReal provide any help here? I'm using a DataSourceRealm with 5.5.7 and not seeing any problems reconnecting at any time (MySQL 4.1.7 + Connector/J 3.1.6)... Be careful about this bug with the DataSourceRealm (fixed in 5.5.8): http://issues.apache.org/bugzilla/show_bug.cgi?id=33357 Similarly, I would appreciate testing of the fix. I agree there's absolutely no reason to use the regular JDBC realm, which can be a bottleneck in some cases. -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:422e33ec287371584411517!
RE: mod_jk: download speed problem
Why don't you JkUnMount /download_dir your_worker? -Original Message- From: Mikhail Kruk [mailto:[EMAIL PROTECTED] Sent: March 9, 2005 4:46 PM To: Tomcat Users List Subject: Re: mod_jk: download speed problem No one responded to my previous question, so let me try again. Is anyone here running Tomcat 5.0.x + mod_jk + Apache and downloading large files through it with normal a throughput? On Tue, 8 Mar 2005, Mikhail Kruk wrote: apache 2.0.53 tomcat 5.0.29 mod_jk 1.2.8, worker configured to do ajp13 Red Hat ES 3 Going straight to Tomcat or straight to Apache downloads work fast. Going through mod_jk uploads work fast. Going through mod_jk downloads go at 70Kb/sec. Everything tested from localhost, so it's not a network issue. Similar setup but with apache 1.3 and Red Hat 7.x running the same application works fast for both uploads and downloads. I'm stuck and will really appreciate any suggestions! - 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] !DSPAM:422f6e9085278295916668!
RE: Getting userid of current authenticated user
You shall be able to get user id from user principal. -Original Message- From: J Malcolm [mailto:[EMAIL PROTECTED] Sent: February 23, 2005 11:59 PM To: tomcat-user@jakarta.apache.org Subject: Getting userid of current authenticated user Is it possible to obtain the userid within a servlet of the person that has logged in via a realm authentication? I want to use the standard authentication to manage access. But once a person is into a certain page, I'd like to know which user it is so I can display, for instance, that user's account info. Thanks in advance. Jerry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:421d5ef7312021380957354!
RE: Cannot create JDBC driver of class '' for connect URL 'null'
Post your jdbc url. -Original Message- From: g k [mailto:[EMAIL PROTECTED] Sent: February 15, 2005 6:44 AM To: tomcat-user@jakarta.apache.org Subject: Cannot create JDBC driver of class '' for connect URL 'null' Hi I have added Oracle resource params to the server.xml file and reference parameters to oracle in the web.xml When i startup tomcat - i get the following error: 11:20:38,385 [ConnectDB.java] [ConnectDB] [getConnectionPoolForOracle:101] - ERR OR - failed to get the connection: org.apache.commons.dbcp.SQLNestedException: C annot create JDBC driver of class '' for connect URL 'null', cause: No suitable driver 11:20:38,385 [SendMessageAction.java] [SendMessageAction] [Send:227] - DEBUG - C onnection after: null java.net.MalformedURLException: no protocol: at java.net.URL.init(URL.java:537) at java.net.URL.init(URL.java:434) at java.net.URL.init(URL.java:383) at com.csc.nhs.web.legacypas.struts.action.SendMessageAction.Send(SendMe ssageAction.java:231) any thoughts? regards Gurpreet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:4211e08b66521973816187!
RE: Cannot create JDBC driver of class '' for connect URL 'null'
In your context.xml or server.xml, you would define your jdbc resource. Find out that url and post it here. Jdbc driver and location are correct. -Original Message- From: g k [mailto:[EMAIL PROTECTED] Sent: February 15, 2005 11:25 AM To: [EMAIL PROTECTED]; tomcat-user@jakarta.apache.org Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Hi ojdbc14.jar - is in the tomcat/common/lib directory post jdc url? - not to clear on what this is? do i need to create a context.xml? regards Gurpreet From: David Short [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Date: Tue, 15 Feb 2005 07:18:58 -0800 Rename the Oracle classes12.zip file to classes12.jar and move to the tomcat\common\lib directory. -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 15, 2005 6:39 AM To: 'Tomcat Users List' Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Post your jdbc url. -Original Message- From: g k [mailto:[EMAIL PROTECTED] Sent: February 15, 2005 6:44 AM To: tomcat-user@jakarta.apache.org Subject: Cannot create JDBC driver of class '' for connect URL 'null' Hi I have added Oracle resource params to the server.xml file and reference parameters to oracle in the web.xml When i startup tomcat - i get the following error: 11:20:38,385 [ConnectDB.java] [ConnectDB] [getConnectionPoolForOracle:101] - ERR OR - failed to get the connection: org.apache.commons.dbcp.SQLNestedException: C annot create JDBC driver of class '' for connect URL 'null', cause: No suitable driver 11:20:38,385 [SendMessageAction.java] [SendMessageAction] [Send:227] - DEBUG - C onnection after: null java.net.MalformedURLException: no protocol: at java.net.URL.init(URL.java:537) at java.net.URL.init(URL.java:434) at java.net.URL.init(URL.java:383) at com.csc.nhs.web.legacypas.struts.action.SendMessageAction.Send(SendMe ssageAction.java:231) any thoughts? regards Gurpreet - 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] !DSPAM:4212229798071307422972!
RE: Cannot create JDBC driver of class '' for connect URL 'null'
Didn't you define url, password etc. in your server.xml GlobalNamingResources? -Original Message- From: g k [mailto:[EMAIL PROTECTED] Sent: February 15, 2005 12:49 PM To: tomcat-user@jakarta.apache.org Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Server.xml contains : Resource name=jdbc/myoracle auth=Container type=javax.sql.DataSource/ No context tag is in server.xml Context.xml file contains Context ResourceLink global=jdbc/myoracle name=jdbc/myoracle type=javax.sql.DataSource/ /Context From: Phillip Qin [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Date: Tue, 15 Feb 2005 11:33:35 -0500 In your context.xml or server.xml, you would define your jdbc resource. Find out that url and post it here. Jdbc driver and location are correct. -Original Message- From: g k [mailto:[EMAIL PROTECTED] Sent: February 15, 2005 11:25 AM To: [EMAIL PROTECTED]; tomcat-user@jakarta.apache.org Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Hi ojdbc14.jar - is in the tomcat/common/lib directory post jdc url? - not to clear on what this is? do i need to create a context.xml? regards Gurpreet From: David Short [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Date: Tue, 15 Feb 2005 07:18:58 -0800 Rename the Oracle classes12.zip file to classes12.jar and move to the tomcat\common\lib directory. -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 15, 2005 6:39 AM To: 'Tomcat Users List' Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Post your jdbc url. -Original Message- From: g k [mailto:[EMAIL PROTECTED] Sent: February 15, 2005 6:44 AM To: tomcat-user@jakarta.apache.org Subject: Cannot create JDBC driver of class '' for connect URL 'null' Hi I have added Oracle resource params to the server.xml file and reference parameters to oracle in the web.xml When i startup tomcat - i get the following error: 11:20:38,385 [ConnectDB.java] [ConnectDB] [getConnectionPoolForOracle:101] - ERR OR - failed to get the connection: org.apache.commons.dbcp.SQLNestedException: C annot create JDBC driver of class '' for connect URL 'null', cause: No suitable driver 11:20:38,385 [SendMessageAction.java] [SendMessageAction] [Send:227] - DEBUG - C onnection after: null java.net.MalformedURLException: no protocol: at java.net.URL.init(URL.java:537) at java.net.URL.init(URL.java:434) at java.net.URL.init(URL.java:383) at com.csc.nhs.web.legacypas.struts.action.SendMessageAction.Send(SendMe ssageAction.java:231) any thoughts? regards Gurpreet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:42123612105131331513667!
RE: Cannot create JDBC driver of class '' for connect URL 'null'
My url is jdbc:oracle:thin:@ora.mydomain.com:1521:SID -Original Message- From: g k [mailto:[EMAIL PROTECTED] Sent: February 15, 2005 5:15 PM To: tomcat-user@jakarta.apache.org Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' yes have defined that !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams Resource name=jdbc/myoracle auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/myoracle parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:[EMAIL PROTECTED]:1521:mysid/value /parameter parameter nameusername/name value**/value /parameter parameter namepassword/name value**/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value-1/value /parameter /ResourceParams /GlobalNamingResources From: Phillip Qin [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Date: Tue, 15 Feb 2005 13:32:59 -0500 Didn't you define url, password etc. in your server.xml GlobalNamingResources? -Original Message- From: g k [mailto:[EMAIL PROTECTED] Sent: February 15, 2005 12:49 PM To: tomcat-user@jakarta.apache.org Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Server.xml contains : Resource name=jdbc/myoracle auth=Container type=javax.sql.DataSource/ No context tag is in server.xml Context.xml file contains Context ResourceLink global=jdbc/myoracle name=jdbc/myoracle type=javax.sql.DataSource/ /Context From: Phillip Qin [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Date: Tue, 15 Feb 2005 11:33:35 -0500 In your context.xml or server.xml, you would define your jdbc resource. Find out that url and post it here. Jdbc driver and location are correct. -Original Message- From: g k [mailto:[EMAIL PROTECTED] Sent: February 15, 2005 11:25 AM To: [EMAIL PROTECTED]; tomcat-user@jakarta.apache.org Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Hi ojdbc14.jar - is in the tomcat/common/lib directory post jdc url? - not to clear on what this is? do i need to create a context.xml? regards Gurpreet From: David Short [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Date: Tue, 15 Feb 2005 07:18:58 -0800 Rename the Oracle classes12.zip file to classes12.jar and move to the tomcat\common\lib directory. -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 15, 2005 6:39 AM To: 'Tomcat Users List' Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Post your jdbc url. -Original Message- From: g k [mailto:[EMAIL PROTECTED] Sent: February 15, 2005 6:44 AM To: tomcat-user@jakarta.apache.org Subject: Cannot create JDBC driver of class '' for connect URL 'null' Hi I have added Oracle resource params to the server.xml file and reference parameters to oracle in the web.xml When i startup tomcat - i get the following error: 11:20:38,385 [ConnectDB.java] [ConnectDB] [getConnectionPoolForOracle:101] - ERR OR - failed to get the connection: org.apache.commons.dbcp.SQLNestedException: C annot create JDBC driver of class '' for connect URL 'null', cause: No suitable driver 11:20:38,385 [SendMessageAction.java] [SendMessageAction] [Send:227] - DEBUG - C onnection after: null
RE: Re: Missing application web.xml Tomcat 5.5.7
I have the similar problem - org.apache.catalina.startup.ContextConfig - Missing application web.xml, using defaults only. The app is not deployed. The war is uploaded and context.xml is copied. It only happens in tc 5.5. I haven't done a search thru tomcat-user list. Maybe it has already been answered. -Original Message- From: Joe Reger, Jr. [mailto:[EMAIL PROTECTED] Sent: February 14, 2005 10:37 AM To: tomcat-user@jakarta.apache.org Subject: FW: Re: Missing application web.xml Tomcat 5.5.7 Hi All. I'm still having trouble with this issue. I'm not able to upload a .WAR file through the html web application manager but the same war manually exploded and placed into the /webapps directory works fine. I've included the web.xml to see if anybody can determine why Tomcat's rejecting it. I've Included the stdout log file. Some notes from the log4j tomcat debug file: Line 91: Tomcat has found the context.xml and moved it to $CatalinaRoot$\conf\Catalina\localhost\ROOT.xml Line 537: org.apache.catalina.core.StandardContext - Starting ROOT Line 7542: org.apache.catalina.startup.ContextConfig - Missing application web.xml, using defaults only Line 7744: org.apache.catalina.startup.HostConfig - Checking context[] redeploy resource C:\SuperFly\Tomcat 5.5\webapps\ROOT Line 7746: ContainerBackgroundProcessor[StandardEngine[Catalina]] org.apache.catalina.core.StandardContext - Stopping Line 7825: Delete C:\SuperFly\Tomcat 5.5\webapps\ROOT.war Here's what I see when I deploy: Click upload. Tomcat moves ROOT.war into $CatalinaRoot$\webapps\. Context.xml, from inside the .war file seen in $CatalinaRoot$\conf\localhost. Application appears in manager/html. A few seconds later the application dissappears and all files are deleted. The tomcat sample war file appears to be broken too : http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/sample/ http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/sample/ I'm open to suggestions. More info below. Thanks, Joe _ From: Joe Reger, Jr. [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 11:58 AM To: 'tomcat-user@jakarta.apache.org' Subject: Re: Missing application web.xml Hi! I'm having problems with the Missing application web.xml error on dev machines running Windows XP,. Tomcat 5.5.7, Java 5.0. It happens when I try to deploy a war file by using the Manager app or by placing it in the /webapps directory. Here are some of the things I've done, each time trying to deploy the resulting WAR file with no success and the same error: 1) Completely emptied the /webapps directory (per Paul's success below). 2) Verified existence of web.xml inside WAR file. 3) Uninstalled ROOT app and verified file removal from /webapps directory. 4) Checked order of elements in web.xml to fit spec. 5) Validated web.xml in Intellij Idea against http://java.sun.com/dtd/web-app_2_3.dtd http://java.sun.com/dtd/web-app_2_3.dtd 6) Changed web-app tag from the sample web.xml in documentation to the one used in Manager app from 5.5.7 build: web-app xmlns=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd version=2.4 7) Removed all comments and spaces from web.xml. When I unpack the WAR manually and place the unpacked files in /webapps the application works fine. Tomcat likes the web.xml, but it can't seem to find it inside of the WAR file. Incidentally, when I watch my /webapps directory during a Manager deploy, the ROOT.war file does appear for a few seconds. It appears that Tomcat is trying to find a web.xml inside of it, fails and then deletes the file. I use Ant to build the WAR file: jar jarfile=ROOT.war fileset dir=${files} excludes=**/*.java/ /jar Any help appreciated. Seen this on two development XP machines today. Best, Joe Reger ---Original Message I just wanted to follow up and get into the record what I think is the solution to the problem I asked about on 1/20. I turns out that the reason I was getting Missing application web.xml errors in my stdout.log was because of a problem that arose during the undeployment precipitated by my deployment of a new build. It appears (just based on Tomcat's behavior) that when you move a WAR file into the webapps directory, the first thing Tomcat tries to do is delete the old unpacked version. In my case, it failed to do that because (as I found) the servlet had open file handles to files inside the servlet's context directory. Windows XP doesn't let you delete files that it thinks are in use, and I suspect that is the trouble Tomcat was running into. Anyway, it deleted
RE: Where is jmx.jar
I use jdk 1.5.0 + tomcat 5.5.7. jmx is integrated into jdk. -Original Message- From: sven morales [mailto:[EMAIL PROTECTED] Sent: February 7, 2005 5:11 PM To: Tomcat Users List Subject: Re: Where is jmx.jar Hi, You need to download jakarta-tomcat-5.5.7.compat.tar.gz if you plan to run Tomcat 5.5.7 with jdk 1.4.x jre. Untar it in same directory as the Tomcat5.5.7 and those jar files needed will be installed in its normal places. aka_sergio --- Phillip Qin [EMAIL PROTECTED] wrote: I am trying to build tomcat 5.5 manager app. Where can I find jmx.jar? It used to be in ${catalina.home}/bin. Regards, PQ Going to war for peace is like having sex for virginity __ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:4207e77e323619498442693!
Tomcat 5.5.7/DataSourceRealm/Manager app
I am having serious issue with Tomcat Manager app using DataSourceRealm during upgrading from Tomcat 5.0.28 to 5.5.7. The issue is, after I accessed Tomcat Manager app couple of times, I got this exception 8-Feb-2005 2:19:24 PM org.apache.catalina.realm.DataSourceRealm open SEVERE: Exception performing authentication org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool exhausted at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.ja va:103) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:5 40) at org.apache.catalina.realm.DataSourceRealm.open(DataSourceRealm.java:407) at org.apache.catalina.realm.DataSourceRealm.getPassword(DataSourceRealm.java:4 59) at org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.java: 339) at org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.java: 284) at org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthe nticator.java:181) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:446) at org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.jav a:275) at org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:80) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126 ) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105 ) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:306) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:684) at java.lang.Thread.run(Unknown Source) Caused by: java.util.NoSuchElementException: Timeout waiting for idle object at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPoo l.java:756) at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.ja va:95) ... 21 more I took a look at the connections. They had never been evicted nor removed. This problem only happened on Tomcat 5.5. 4.x/5.0 were fine. My configuration is jdk 1.5.0, tomcat 5.5.7, commons-dbcp-1.2.1, commons-pool-1.2, mysql-connector-java-3.1.6-bin, MySQL 4.1.5 ${catalina.home}/conf/Server.xml Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / Listener className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/ GlobalNamingResources Resource auth=Container name=jdbc/manager type=javax.sql.DataSource driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://1.2.3.4:3306/webapps username=username password=password factory=org.apache.commons.dbcp.BasicDataSourceFactory maxActive=4 maxIdle=1 minIdle=1 maxWait=15000 removeAbandoned=true validationQuery=SELECT 1 testOnBorrow=true testOnReturn=true minEvictableIdleTimeMillis=-1 timeBetweenEvictionRunsMillis=3 numTestsPerEvictionRun=1 testWhileIdle=true / /GlobalNamingResources Service name=Catalina Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true / Connector port=8009 enableLookups=false redirectPort=8443 protocol=AJP/1.3 / Engine name=Catalina defaultHost=my.localhost jvmRoute=jvm1 Realm className=org.apache.catalina.realm.DataSourceRealm dataSourceName=jdbc/manager digest=MD5 roleNameCol=role_name userCredCol=user_pass userNameCol=user_name userRoleTable=user_roles userTable=users / Host name=my.localhost appBase=webapps/www.mydomain.com unpackWARs=true autoDeploy=false xmlValidation=false xmlNamespaceAware=false / /Engine /Service /Server
RE: Tomcat 5.5.7/DataSourceRealm/Manager app
Thx, I am relieved. Off to Cuba. -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: February 8, 2005 4:49 PM To: Tomcat Users List Subject: Re: Tomcat 5.5.7/DataSourceRealm/Manager app It is a known bug that has been fixed and will be included in 5.5.8. Sorry. Mark Phillip Qin wrote: I am having serious issue with Tomcat Manager app using DataSourceRealm during upgrading from Tomcat 5.0.28 to 5.5.7. The issue is, after I accessed Tomcat Manager app couple of times, I got this exception 8-Feb-2005 2:19:24 PM org.apache.catalina.realm.DataSourceRealm open SEVERE: Exception performing authentication org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool exhausted at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSou rce.ja va:103) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:5 40) at org.apache.catalina.realm.DataSourceRealm.open(DataSourceRealm.java:407) at org.apache.catalina.realm.DataSourceRealm.getPassword(DataSourceRealm.java:4 59) at org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.java: 339) at org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.java: 284) at org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthe nticator.java:181) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:446) at org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.jav a:275) at org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:80) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126 ) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105 ) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:306) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:684) at java.lang.Thread.run(Unknown Source) Caused by: java.util.NoSuchElementException: Timeout waiting for idle object at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPoo l.java:756) at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.ja va:95) ... 21 more I took a look at the connections. They had never been evicted nor removed. This problem only happened on Tomcat 5.5. 4.x/5.0 were fine. My configuration is jdk 1.5.0, tomcat 5.5.7, commons-dbcp-1.2.1, commons-pool-1.2, mysql-connector-java-3.1.6-bin, MySQL 4.1.5 ${catalina.home}/conf/Server.xml Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / Listener className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/ GlobalNamingResources Resource auth=Container name=jdbc/manager type=javax.sql.DataSource driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://1.2.3.4:3306/webapps username=username password=password factory=org.apache.commons.dbcp.BasicDataSourceFactory maxActive=4 maxIdle=1 minIdle=1 maxWait=15000 removeAbandoned=true validationQuery=SELECT 1 testOnBorrow=true testOnReturn=true minEvictableIdleTimeMillis=-1 timeBetweenEvictionRunsMillis=3 numTestsPerEvictionRun=1 testWhileIdle=true / /GlobalNamingResources Service name=Catalina Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true / Connector port=8009 enableLookups=false redirectPort=8443 protocol=AJP/1.3 / Engine name=Catalina defaultHost=my.localhost jvmRoute=jvm1 Realm className=org.apache.catalina.realm.DataSourceRealm dataSourceName=jdbc/manager digest=MD5 roleNameCol=role_name
RE: Tomcat 5.5.7/DataSourceRealm/Manager app
I didn't test 5.5.4 but I will grab patch you mentioned and test it in 5.5.7. -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED] Sent: February 8, 2005 5:10 PM To: Tomcat Users List Subject: Re: Tomcat 5.5.7/DataSourceRealm/Manager app On Tue, 08 Feb 2005 21:49:16 +, Mark Thomas [EMAIL PROTECTED] wrote: It is a known bug that has been fixed and will be included in 5.5.8. Sorry. Did it exist in 5.5.4, or is it a regression ? -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:420938ce145968343549367!
Tomcat 5.5 cvs
What is the cvs repository for tomcat 5.5 source? I can find tomcat-5 but I am not sure whether that is the right one. Regards, PQ Going to war for peace is like having sex for virginity
Where is jmx.jar
I am trying to build tomcat 5.5 manager app. Where can I find jmx.jar? It used to be in ${catalina.home}/bin. Regards, PQ Going to war for peace is like having sex for virginity
RE: Where is jmx.jar
-Original Message- From: Mario Winterer [mailto:[EMAIL PROTECTED] Sent: February 7, 2005 4:46 PM To: Tomcat Users List Subject: Re: Where is jmx.jar JMX is now part of J2SE 5.0. Best regards, Tex Phillip Qin wrote: I am trying to build tomcat 5.5 manager app. Where can I find jmx.jar? It used to be in ${catalina.home}/bin. Regards, PQ Going to war for peace is like having sex for virginity - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:4207e1a6319161133743922!
RE: Java / Tomcat Job Abroad
You will be disappointed if you immigrate to Canada. You will end up with driving a cab in best case senario. -Original Message- From: Aris Javier [mailto:[EMAIL PROTECTED] Sent: February 2, 2005 12:25 AM To: Tomcat Users List Subject: RE: Java / Tomcat Job Abroad Thanks Rhino for info. Yeah, big adjustment in climate... but that's one sacrifice I'm willing to take to make a living. =) -Original Message- From: Rhino [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 1:13 PM To: Tomcat Users List Subject: Re: Java / Tomcat Job Abroad I think you'll find that there are Java jobs in Canada. I've seen some at monster.ca and workopolis.ca. I don't know about Tomcat jobs; I've never looked for Tomcat jobs. I hope you like living in large cities in a climate that is sometimes miserable (-40C in winter in Winnipeg for example) ;-) Rhino - Original Message - From: Aris Javier [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, February 01, 2005 8:52 PM Subject: OT: Java / Tomcat Job Abroad Hello! This is an out of topic question... Sorry, but since all of you guys are using Java and Tomcat, and are from different countries... im just wondering if i can land a job abroad? I'm planning to migrate to Canada, US, or New Zealand from here in Philippines... My skill is java programming (J2EE) and has 2 years experience. Is Java/Tomcat skill marketable in those countries i've mentioned? Or does anyone of you need a java programmer that i can apply? =) Thanks! Aris - 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] !DSPAM:4200642b202291386719112!
RE: Using a database under tomcat for linux
Post your error message. It usually tells you what additional permission you need to grant. -Original Message- From: Andreas Andersson [mailto:[EMAIL PROTECTED] Sent: February 2, 2005 9:19 AM To: Tomcat Users List Subject: Using a database under tomcat for linux Hi! I'm having problems useing a database under my tomcat on my linux. If I disable security it works fine but with security I get connection errors. I've read the small documention on the policy file but doesn' succedd when I try to do the same thing. This is from my policy file grant codeBase file:/long-path/WEB-INF/lib/mysql-connector-java-3.0.5-gamma-bin.jar { permission java.net.SocketPermission localhost:3306, connect; }; Does anyone have an example of a working configuration? Thanks. -- Andreas Andersson IT Dept. Travelstart Nordic [EMAIL PROTECTED] http://www.travelstart.se - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:4200e117252881481618083!
RE: undeploy/deploy
Do you have a context.xml in META-INF in your war? Since 5.x, you don't really need to undeploy first, adding update=true into deploy task will undeploy your app before deployment.. -Original Message- From: Andy Kriger [mailto:[EMAIL PROTECTED] Sent: January 19, 2005 10:10 AM To: tomcat-user@jakarta.apache.org Subject: RE: undeploy/deploy Which ant task do you use to deploy/undeploy wars? What is the url in task? target name=webapp-undeploy depends=webapp-prepare if=app-deployed undeploy url=${container.mgr.url} username=${container.mgr.name} password=${container.mgr.pass} path=/${webapp.name}/ /target target name=webapp-deploy depends=webapp-prepare deploy url=${container.mgr.url} username=${container.mgr.name} password=${container.mgr.pass} path=/${webapp.name} war=${webapp.war}/ /target ${container.mgr.url} = http://localhost:8080/manager - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41ee7860229441382212633!
RE: undeploy/deploy
In your context.xml (5.0 codebase), Context path=/your.context docBase=your.context debug=0 In your server.xml (5.0 codebase) Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=false xmlValidation=false xmlNamespaceAware=false -Original Message- From: Andy Kriger [mailto:[EMAIL PROTECTED] Sent: January 19, 2005 2:25 PM To: tomcat-user@jakarta.apache.org Subject: RE: undeploy/deploy Since 5.x, you don't really need to undeploy first, adding update=true into deploy task will undeploy your app before deployment.. I added that to my Ant script and removed the dependency on webapp-undeploy. Still works about as often as it doesn't. The WAR file is removed but the directory isn't - deploy runs and fails because the path already exists. This is the Host element in server.xml Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false.../Host This is the Context element in myWebapp/META-INF/context.xml Context antiJARLocking=true antiResourceLocking=true.../Context Is there any specific logging (Tomcat or system) that I could turn on to see why the directory isn't always removed on undeploy? thx andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41eeb41a255712364315903!
RE: tomcat4 + postgresql jdbc
Test without security manager so that we can isolate the problem. -Original Message- From: Oege de Moor [mailto:[EMAIL PROTECTED] Sent: January 18, 2005 12:24 PM To: Tomcat Users List Subject: RE: tomcat4 + postgresql jdbc Do you mean I should add something like: grant codeBase file:/var/lib/tomcat4/webapps/- { permission java.net.SocketPermission 127.0.0.1:5432, connect; permission java.net.SocketPermission 127.0.0.1:5432, resolve; }; Unfortunately that still doesn't work... On Tue, 18 Jan 2005, Larry Isaacs wrote: If you are running Tomcat with a security manager, you will need to make sure the catalina.policy file includes permission for your webapp to connect to the server in question. The examples found in the comments at the end of the default catalina.policy file are examples of such a permission. Cheers, Larry -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Oege de Moor Sent: Tuesday, January 18, 2005 11:54 AM To: Tomcat Users List Subject: RE: tomcat4 + postgresql jdbc Thanks for the suggestion! I can successfully connect with a normal Java program. In pg_hba.conf, I've got the line hostall all 127.0.0.1 255.255.255.255 trust hostall all 192.168.53.2 255.255.255.0 trust so all IP connections from the local network (192.168.53.xx) should be accepted, even without a password... -Oege On Tue, 18 Jan 2005, Carlos Martins wrote: Hi, Is it possible that the database connection credentials are not right? Have you tried connecting to the database from the standard client with the same username and password? Regards Carlos -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Oege de Moor Sent: tera-feira, 18 de Janeiro de 2005 16:27 To: tomcat-user@jakarta.apache.org Subject: tomcat4 + postgresql jdbc I'm attempting to install tomcat4 + postgresql jdbc under Debian linux. I've put the jdbc jar at /usr/share/tomcat4/common/lib/pg74.215.jdbc3.jar When I attempt to connect to a database via jsp, I get java.security.AccessControlException: access denied (java.net.SocketPermission localhost resolve) I've put a file test2.jsp at /var/lib/tomcat4/webapps/ROOT, with the following contents: - [EMAIL PROTECTED] import=java.sql.*% % // Define the connection Connection con = null; // Check that the DB2Driver class is available Class.forName(org.postgresql.Driver); try { // Attempt to connect to the Database con = DriverManager.getConnection(jdbc:postgresql:demodb,oege,xxx); out.println(The test is complete, your Database has been contacted); } // Make sure to catch any exceptions catch (SQLException e) { out.println(e.getMessage()); } % --- When I point my web browser at http://localhost:8180/test2.jsp, the above exception occurs. The full stack trace is appended below. I've attempted adding this line to the security policy file in /etc/tomcat4/policy.d/99examples.policy: grant codeBase file:/usr/share/tomcat4/common/lib/pg74.215.jdbc3.jar!/- { permission java.security.AllPermission; }; Any help would be much appreciated! -Oege Something unusual has occured to cause the driver to fail. Please report this exception: Exception: java.security.AccessControlException: access denied (java.net.SocketPermission localhost resolve) Stack Trace: java.security.AccessControlException: access denied (java.net.SocketPermission localhost resolve) at java.security.AccessControlContext.checkPermission(AccessContr olContext.java:269) at java.security.AccessController.checkPermission(AccessControlle r.java:401) at java.lang.SecurityManager.checkPermission(SecurityManager.java:524) at java.lang.SecurityManager.checkConnect(SecurityManager.java:1023) at java.net.InetAddress.getAllByName0(InetAddress.java:1000) at java.net.InetAddress.getAllByName0(InetAddress.java:981) at java.net.InetAddress.getAllByName(InetAddress.java:975) at java.net.InetAddress.getByName(InetAddress.java:889) at java.net.InetSocketAddress.(InetSocketAddress.java:114) at java.net.Socket.(Socket.java:124) at org.postgresql.core.PGStream.(PGStream.java:47) at org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection(Ab stractJdbc1Connection.java:197) at org.postgresql.Driver.connect(Driver.java:139) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:171) at org.apache.jsp.test2_jsp._jspService(test2_jsp.java:51) at
RE: undeploy/deploy problem
Which ant task do you use to deploy/undeploy wars? What is the url in task? -Original Message- From: Andy Kriger [mailto:[EMAIL PROTECTED] Sent: January 18, 2005 5:01 PM To: tomcat-user@jakarta.apache.org Subject: undeploy/deploy problem I am running Tomcat 5.5.x on Solaris 9.x with Java 1.4.x I use an Ant script to deploy my WAR file to Tomcat - it builds a WAR, undeploys the existing webapp, and deploys the WAR. Usually this works fine. However, often enough to big a major annoyance, it doesn't work - the webapp undeploys (according to the Ant output) but the WAR cannot deploy because the directories have not been deleted. Sometimes, I can fix this by manually deleteing the webapps/webapp, conf/Catalina/localhost/webapp.xml and work/Catalina/localhost/webapp directories, sometimes I cannot (if I refresh the manager list, sometimes the webapp disappears, sometimes not). When that doesn't work, I have to restart Tomcat. Does anyone have any ideas what might be going on here and how I might track down the problem? thx andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41ed871b131671657397070!
RE: Deploying an application with its own xml file
Here is my ant script property name=dist value=${basedir}/dist/ property name=war.file value=ROOT.war/ target name=init description=For undeploy and deploy task. Win32 has a leading slash in url. condition property=war.url value=file:${dist}/${war.file} os family=unix/ /condition condition property=war.url value=file:/${dist}/${war.file} notos family=unix//not /condition /target -Original Message- From: Paul Taylor [mailto:[EMAIL PROTECTED] Sent: January 14, 2005 3:14 AM To: Tomcat Users List Subject: Re: Deploying an application with its own xml file In what way, do you mean path seperator or something else ? Within my context.xml im using forward slash (UNIX notation) for both and its the Windows one that is working Phillip Qin wrote: Windows and linux use different url. -Original Message- From: Paul Taylor [mailto:[EMAIL PROTECTED] Sent: January 13, 2005 4:22 AM To: Tomcat Users List Subject: Re: Deploying an application with its own xml file Ok, it is working on my test (Windows) environment. But with same war deploying it to my Live environment(Linux) results in it creating myapp.xml as a directory rather than a file ! Ive doubled checked this and the behaviour is constant, anyone ever sdeen this? Paul Taylor wrote: Thanks now working I had previously found the bit about META-INF but called the file myapp.xml not context.xml Phillip Qin wrote: Sotre your context.xml into META-INF. Pack your webapp as war. Then let catalina-ant task or Tomcat Manager to deploy your war. -Original Message- From: Paul Taylor [mailto:[EMAIL PROTECTED] Sent: January 12, 2005 4:47 AM To: Tomcat Users List Subject: Deploying an application with its own xml file I have an application myapp.war and a corresponding xml file myapp.xml. Previously I was copying myapp.xml into tomcat/conf/catalina/localhost and manually unpacking my war. Now I realised I can put the war into tomcat/webapps and it will automatically deploy, but I then have to shutdown server copy over the myapp.xml and restart the server. Where can I put the myapp.xml file so it automatically gets deployed with the WAR file in a single step. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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] !DSPAM:41e77f5a180855966097315!
RE: SV: Installing and running tomcat as a user other than root
In linux, I run /bin/su $TOMCAT_USER -- $CATALINA_HOME/bin/startup.sh Group owner of tomcat directory is tomcat user. -Original Message- From: Roland Carlsson [mailto:[EMAIL PROTECTED] Sent: January 14, 2005 4:48 AM To: TomcatUsers Subject: SV: SV: Installing and running tomcat as a user other than root Are you accessing tomcat from localhost or any other host? Den 05-01-14 09.19, skrev Mumanyi Bravismore [EMAIL PROTECTED]: Sorry, I am on RedHat 9. I have given the user -rwx- of the [tomcat] dir, No problem with the user starting tomcat. ps -e|grep java shows the tomcat process is running but when I try to access the pages from the browser, connection is failing. Any tips on how to grant priviledges to port 80 or 8080 on linux to a user. Thanks Roland Carlsson wrote: Hi Mumanyi! This will require some knowleage about you operatingsystem since not all operation is allowed being a non-root user. But it basically comes down to this: Grant the user you would like to run tomcat read and write rights on the whole tomcat install-dir. This because tomcat write down a few things to disk. Make sure that you operating system allow the user to open up the port you which tomcat to run on. Usually ports under 1024 are dissallowed without special privilegies. If you still are having problem you have to read the logs to see why tomcat fails to start correctly. Regards Roland Carlsson Den 05-01-14 08.12, skrev Mumanyi Bravismore [EMAIL PROTECTED]: How can one achieve to install and run tomcat as a user other than root. I have tried to extract tomcat from the *.gz as a user but once I try to access it from the browser I get the Connection Failed error when in actually fact tomcat is running. When I su -l to root and restart tomcat, I am able to see the page. Thanks in advance. Regards /Bravo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41e7a257192608070517611!
RE: [OT] Consulting Position in Costa Mesa, CA,
I'd love to move to a sunshine place after suffering rain, snow in Canada. -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: January 13, 2005 8:15 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: [OT] Consulting Position in Costa Mesa, CA, Looks like she hit several of us on the list. But of course. Where else is a more logical place to go fishing? - Original Message - From: Ben Souther [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Cc: [EMAIL PROTECTED] Sent: Thursday, January 13, 2005 8:03 PM Subject: [OT] Consulting Position in Costa Mesa, CA, I'm forwarding this message from a recruiter looking for a Tomcat/VMS consultant in CA if anyone's interested. Suzie Jimenez Sr. IT Recruiter mailto:[EMAIL PROTECTED] ISSG- Information Systems Support Group, LLC 300 E Magnolia Blvd. Ste 403 4th Fl. Burbank, CA 91502 818-846-4774 x116 818-846-9971 Fax 818-554-6825 Cell www.issgjobs.com On Thu, 2005-01-13 at 19:18, Suzie Jimenez wrote: I got your e-mail address from the Tomcat Solutions website... Your help would be appreciated...I am trying to get creative here...help me out~ I am working with one of my clients and we need a Tomcat consultant w/VMS background can you refer me to someone? PLEASE?! The position is in Costa Mesa, CA, e-mail or call me...thank you... I don't have that many details to give right now...we have a client who called us this morning requesting a consultant. They are working on a project and are in need of someone with Tomcat experience with VMS. All we know that this is a contract consulting position for a Pharmaceutical firm they are an AS400 shop as far as the pay is concerned it would depend on the consultant's experience. If you are interested send me a Word format resume for consideration w/ contract hourly rate. Suzie Jimenez Sr. IT Recruiter mailto:[EMAIL PROTECTED] ISSG- Information Systems Support Group, LLC 300 E Magnolia Blvd. Ste 403 4th Fl. Burbank, CA 91502 818-846-4774 x116 818-846-9971 Fax 818-554-6825 Cell www.issgjobs.com www.issg.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] !DSPAM:41e71d19143248901718871!
RE: [OT] Consulting Position in Costa Mesa, CA,
Are you experiencing Internet connection difficulties? Because 1. You were unable to sent her an email which I could; 2. You were unable to visit her website which I could. Regards -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: January 14, 2005 11:46 AM To: Tomcat Users List Subject: Re: [OT] Consulting Position in Costa Mesa, CA, David Smith wrote: Call me an optimist, but that error looks like standard, old, ordinary, everyday mail server trouble -- nothing to get excited about. Besides, I sent a message declining and didn't get that error. He he :) Call me an pessimist, but when did you receive that kind of message sending an email to a 'regular' person. Also, seems that everybody has received those emails, so if that's not the spam then what is it? Also, the email contains file://www.issg.com/ as URL (typical spyware). and the http://www.issg.com does not exits. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41e7f72f230081242111228!
RE: [OT] Consulting Position in Costa Mesa, CA,
Please disregard #2. I think whoever is interested can phone her to verify. -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: January 14, 2005 11:58 AM To: 'Tomcat Users List' Subject: RE: [OT] Consulting Position in Costa Mesa, CA, Are you experiencing Internet connection difficulties? Because 1. You were unable to sent her an email which I could; 2. You were unable to visit her website which I could. Regards -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: January 14, 2005 11:46 AM To: Tomcat Users List Subject: Re: [OT] Consulting Position in Costa Mesa, CA, David Smith wrote: Call me an optimist, but that error looks like standard, old, ordinary, everyday mail server trouble -- nothing to get excited about. Besides, I sent a message declining and didn't get that error. He he :) Call me an pessimist, but when did you receive that kind of message sending an email to a 'regular' person. Also, seems that everybody has received those emails, so if that's not the spam then what is it? Also, the email contains file://www.issg.com/ as URL (typical spyware). and the http://www.issg.com does not exits. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41e7fa19230471195828750!
RE: [OT] Consulting Position in Costa Mesa, CA,
For #2, the right link is http://www.issgjobs.com -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: January 14, 2005 11:59 AM To: 'Tomcat Users List' Subject: RE: [OT] Consulting Position in Costa Mesa, CA, Please disregard #2. I think whoever is interested can phone her to verify. -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: January 14, 2005 11:58 AM To: 'Tomcat Users List' Subject: RE: [OT] Consulting Position in Costa Mesa, CA, Are you experiencing Internet connection difficulties? Because 1. You were unable to sent her an email which I could; 2. You were unable to visit her website which I could. Regards -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: January 14, 2005 11:46 AM To: Tomcat Users List Subject: Re: [OT] Consulting Position in Costa Mesa, CA, David Smith wrote: Call me an optimist, but that error looks like standard, old, ordinary, everyday mail server trouble -- nothing to get excited about. Besides, I sent a message declining and didn't get that error. He he :) Call me an pessimist, but when did you receive that kind of message sending an email to a 'regular' person. Also, seems that everybody has received those emails, so if that's not the spam then what is it? Also, the email contains file://www.issg.com/ as URL (typical spyware). and the http://www.issg.com does not exits. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41e7fa5f230521826415057!
RE: Deploying an application with its own xml file
Windows and linux use different url. -Original Message- From: Paul Taylor [mailto:[EMAIL PROTECTED] Sent: January 13, 2005 4:22 AM To: Tomcat Users List Subject: Re: Deploying an application with its own xml file Ok, it is working on my test (Windows) environment. But with same war deploying it to my Live environment(Linux) results in it creating myapp.xml as a directory rather than a file ! Ive doubled checked this and the behaviour is constant, anyone ever sdeen this? Paul Taylor wrote: Thanks now working I had previously found the bit about META-INF but called the file myapp.xml not context.xml Phillip Qin wrote: Sotre your context.xml into META-INF. Pack your webapp as war. Then let catalina-ant task or Tomcat Manager to deploy your war. -Original Message- From: Paul Taylor [mailto:[EMAIL PROTECTED] Sent: January 12, 2005 4:47 AM To: Tomcat Users List Subject: Deploying an application with its own xml file I have an application myapp.war and a corresponding xml file myapp.xml. Previously I was copying myapp.xml into tomcat/conf/catalina/localhost and manually unpacking my war. Now I realised I can put the war into tomcat/webapps and it will automatically deploy, but I then have to shutdown server copy over the myapp.xml and restart the server. Where can I put the myapp.xml file so it automatically gets deployed with the WAR file in a single step. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41e63db745621951019963!
RE: 24X7 deployment tips
Non-clustering. The deploy task does not shutdown the container. It undeploys your webapp and then deploy the new war. -Original Message- From: Rajaneesh [mailto:[EMAIL PROTECTED] Sent: January 12, 2005 12:36 AM To: 'Tomcat Users List' Subject: RE: 24X7 deployment tips Hu Philip, Are you are deploying the application in a non clustered environment or clustered environment in the production? Regards Rajaneesh -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 11, 2005 11:14 PM To: 'Tomcat Users List' Subject: RE: 24X7 deployment tips I use Tomcat Manager (actually catalina-ant taks) to deploy my webapps from my dev box to remote linux server. I don't have to shutdown server by doing that. However, I do sometimes run into Out Of Memory issues after I deploy applications hundreds times. -Original Message- From: sunil goyal [mailto:[EMAIL PROTECTED] Sent: January 11, 2005 12:31 PM To: tomcat-user@jakarta.apache.org Subject: 24X7 deployment tips Hi all, I am looking for resources for building and deploying 24X7 large scale web applications using Java. Can anyone point towards any good books/links for the same? If I am trying to deploy an application via apache/tomcat on a linux platform, is it possible to upgrade certain servlets without actually shutting down the server. What kind of principle is generally followed in real life applications for the same? Any help in this regard is appreciated. Thanks Regards Sunil __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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] !DSPAM:41e4b799212883612811470!
RE: Deploying an application with its own xml file
Sotre your context.xml into META-INF. Pack your webapp as war. Then let catalina-ant task or Tomcat Manager to deploy your war. -Original Message- From: Paul Taylor [mailto:[EMAIL PROTECTED] Sent: January 12, 2005 4:47 AM To: Tomcat Users List Subject: Deploying an application with its own xml file I have an application myapp.war and a corresponding xml file myapp.xml. Previously I was copying myapp.xml into tomcat/conf/catalina/localhost and manually unpacking my war. Now I realised I can put the war into tomcat/webapps and it will automatically deploy, but I then have to shutdown server copy over the myapp.xml and restart the server. Where can I put the myapp.xml file so it automatically gets deployed with the WAR file in a single step. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41e4fe7c238787962119335!
RE: 24X7 deployment tips
I use Tomcat Manager (actually catalina-ant taks) to deploy my webapps from my dev box to remote linux server. I don't have to shutdown server by doing that. However, I do sometimes run into Out Of Memory issues after I deploy applications hundreds times. -Original Message- From: sunil goyal [mailto:[EMAIL PROTECTED] Sent: January 11, 2005 12:31 PM To: tomcat-user@jakarta.apache.org Subject: 24X7 deployment tips Hi all, I am looking for resources for building and deploying 24X7 large scale web applications using Java. Can anyone point towards any good books/links for the same? If I am trying to deploy an application via apache/tomcat on a linux platform, is it possible to upgrade certain servlets without actually shutting down the server. What kind of principle is generally followed in real life applications for the same? Any help in this regard is appreciated. Thanks Regards Sunil __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41e40d46139271361782364!
RE: How to release connections in connection pool during reload?
If your datasource is in Tomcat GlobalNamingContext, Tomcat will take care of it. If it is in your context, you will have to destroy it in a servlet destroy method. -Original Message- From: Lucie Chan [mailto:[EMAIL PROTECTED] Sent: January 7, 2005 11:40 PM To: tomcat-user@jakarta.apache.org Subject: How to release connections in connection pool during reload? Hi, I'm using Tomcat's connection pooling feature which is implemented with Jakarta's DBCP to manage database access, and I just noticed that each time when I do a reload (either via Ant or Tomcat manager), a database connection is added to the database server. Though this isn't a big problem in the production environment, but it's a bit annoying during development when I'm interactively developing and reloading the application. Currently, I will run reload till all the database connections have been exhausted, and then restart Tomcat server. There must a better way to do this. How do I destroy or reuse the connections in the pool? Any suggestion? --- Lucie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41df64603691546319376!
RE: jndi error configuring data source
Drop off mysql jdbc driver to tomcat common/lib -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: January 5, 2005 5:02 PM To: tomcat-user@jakarta.apache.org Subject: jndi error configuring data source I am trying to configure database pooling in Tomcat 4.1.31. I found some excellent documentation here http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-how to.html I followed this exactly for mysql (top article). I created the DBTest web-app precisely, and all folders exist and web.xml file is good. My webapp is under root/DBTest/WEB-INF/classes /lib/mm.mysql-bin.jar web.xml The server starts properly, so I know my configuration is good. The problem is I get an error stating that it cannot find the jar file for the mysql driver when I hit the test page. (ERROR_BELOW) Anyway, I followed the article precisely, and noticed that they hit localhost:8080. My tomcat is running on 80 and at my IP address as you can see below. Would this be why it cannot find the jar file? I am looking at the ajp13 listening on /0.0.0.0:8009 and wondering if there is something else that needs configuring? Would like to get this running if possible. Thank you Scott INFO: Starting Coyote HTTP/1.1 on http-192.168.66.90-80 Jan 5, 2005 3:52:27 PM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 Jan 5, 2005 3:52:27 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=15/532 config=C:\jakarta-tomcat-4.1.31\conf\jk2.prop erties org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.g jt.mm.mysql.Driver', cause: java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas sLoader.java:945) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas sLoader.java:810) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou rce.java:730) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource .java:518) at foo.DBTest.init(DBTest.java:23) at org.apache.jsp.test_jsp._jspService(test_jsp.java:49) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92) at javax.servlet.http.HttpServlet.service(HttpServlet.java:809) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:162) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2 40) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187) at javax.servlet.http.HttpServlet.service(HttpServlet.java:809) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:200) !DSPAM:41dc63f221171436498371!
RE: OracleDataSourceFactory
If all you need is OracleConnection, BasicDataSourceFactory shall be sufficient. The connection you obtain is a wrapper of OracleConnection. If you do need OracleDataSourceFactory, you will have to implement something else I couldn't remember (Damn, is it JNDI?) -Original Message- From: Durfee, Bernard [mailto:[EMAIL PROTECTED] Sent: January 5, 2005 5:56 PM To: Tomcat Users List Subject: OracleDataSourceFactory Has anyone been able to get the OracleDataSourceFactory working with Tomcat 5? It seems that no matter how I set up the Resource element in my context the factory returns a null data source. Any help would be appreciated. Bernard Durfee -Original Message- From: Dwayne Ghant [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 05, 2005 5:33 PM To: Tomcat Users List Subject: Re: Speed issues with SQL Server 2000 and JTDS Hey Charles, I have implement a database driver that I found online do you think it will help you out??? Charles P. Killmer wrote: I bought the Core Servlets and Java Server Pages and read it over the weekend. Happy New Year to me. I did get out to a few parties though. ;) I am having trouble getting JTDS to return results quickly. Has anyone got any example code for how to properly query a SQL Server 2000 database? The code I write needs to work with both SQL Server 2000 and SQL Server 7. In creating the connection, I am specifying TYPE_SCROLL_INSENSITIVE and TYPE_CONCUR_READ_ONLY. I tried not specifying anything and got errors about not being able to scroll the results. Is the only solution to this, use FORWARD_ONLY and buffer the contents myself? I hoping there is a better way. Thank you Charles Killmer -- Dwayne A. Ghant Application Developer Temple University 215.204. [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] !DSPAM:41dc708422952065121194!
RE: Newbie question on Database and struts
In the controller, read form values, query the database, store result in Collection and save it to session or request-scope. On jsp, use iterate tag to display elements in Collection. -Original Message- From: Manisha Sathe [mailto:[EMAIL PROTECTED] Sent: December 23, 2004 10:25 PM To: tomcat-user@jakarta.apache.org Subject: Newbie question on Database and struts I am new to struts (even new to java also) I have one form developed in struts. What i want to do is depending on form values, run sql qry in Action form, get result set and display it on JSP. I have created a databean for the results. But with result set - How to create array of databeans ? and how to post it on JSP ? if anybody can pass me the samples pls would be of great help regards Manisha - Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. !DSPAM:41cb8bf8315651569845034!
RE: JAVA_OPTS and Xmx Xms
In the batch file, echo %JAVA_OPTS% -Original Message- From: joon yoo [mailto:[EMAIL PROTECTED] Sent: January 4, 2005 4:19 PM To: tomcat-user@jakarta.apache.org Subject: JAVA_OPTS and Xmx Xms On a Win2000 SP4 server running tomcat 5.0.24 with 1GB of RAM JAVA_OPTS was set to -Xmx768m -Xms768m -server as an environment variable in Windows, (not set in a batch file to start tomcat). How can it be confirmed that the new JVM settings is configured and running correctly? Thanks, Joon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41db086a194995855811664!
RE: Oracle 9i client connection to 8i database
There is nothing to do with Oracle client. All you need is the jdbc driver. -Original Message- From: Brad Rhoads [mailto:[EMAIL PROTECTED] Sent: December 27, 2004 5:11 PM To: 'Tomcat Users List' Subject: RE: Oracle 9i client connection to 8i database I always assumed the Oracle client was required. . . I uninstalled the client and get the same results. With the sid syntax I at least get an entry in the listener.log: 27-DEC-2004 16:58:11 * (CONNECT_DATA=(SID=test)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.0.0.4)(PORT=33244)) * establish * But the app doesn't get a connection. And with the service_name syntax I only get a connection error: DatabaseMessageresources: Loading all the messages for the messageMap NVFactory: _readNVPair expected ) DatabaseMessageresources: SQL EXCEPTION FETCHING MESSAGE java.sql.SQLException: Io exception: NL Exception was generated at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:187) I've run into a similar problem where the db server was behind the firewall and the firewall didn't allow high-ports, but in this case both machines are behind the firewall. Any other ideas why I might not be able to get a connection? -Original Message- From: Michael Echerer [mailto:[EMAIL PROTECTED] Sent: Saturday, December 25, 2004 4:08 AM To: Tomcat Users List Subject: Re: Oracle 9i client connection to 8i database How come that you need an Oracle client installation at all when you just want to use the Oracle thin JDBC driver? IHMO the client installation is only required for OCI thick drivers... Brad Rhoads wrote: We have an (struts) app that talks to an Oracle 8i database. Our latest installation wants to run the app on Fedora Core 2. I couldn't get the Oracle 8i client install, so I installed the 9i client. With the 9i client, you have to use a service_name instead of a sid in the connection. Normally my connection string (in my web.xml) looks like: param-valuejdbc:oracle:thin:@10.0.0.7:1521:test/param-value But it seems to get a service_name instead of a sid I have to use something like: param-valuejdbc:oracle:thin:@jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS =(PROT OCOL=TCP)(HOST=10.0.0.7)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=test)) )/par am-value My problem is I'm getting this error: NVFactory: _readNVPair expected It doesn't seem to make any difference if I use the 8i or the 9i drivers. I've also tried param-valuejdbc:oracle:thin:@//10.0.0.7:1521/test/param-value But that just gave me a format error. I can connect fine using sqlplus. What am I doing wrong? Thanks for the help. Merry Christmas! - 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] !DSPAM:41d08896130622933416230!
RE: Automated reply from bulletproof@www.bulletproofsoft.com
One possibility is this guy owns bulletproofsoft. -Original Message- From: Wade Chandler [mailto:[EMAIL PROTECTED] Sent: December 22, 2004 9:19 AM To: Tomcat Users List Subject: Re: Automated reply from [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: BulletProofSoft.com Support Ticket Reply. DO NOT REPLY TO THIS EMAIL Please use our Online Support system for faster results to your questions. You can monitor the status of your ticket online where you can add follow up replies. http://www.bulletproofsoft.com/cgi-bin/custquest/quest_desk.cgi If the URL above splits into two lines, please visit: http://www.bulletproofsoft.com/support.html and click on the Contact Customer Support link Rest assured we will do our best to respond to your query promptly. You will receive a further email notification when one of our technicians has replied. Tech Support BulletProofSoft.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Now only if the employees had bullet proof minds. Who in their right mind signed up to a mailing list with their tech support email address? :-) Seriously though, you need to unsubscribe this email address and use a different one. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41c9826f99901486912968!
RE: Difficulty connecting to DB2 for iSeries from Tomcat 5.0.28
What is the resourcelink in your context.xml? -Original Message- From: David Uctaa [mailto:[EMAIL PROTECTED] Sent: December 21, 2004 12:27 PM To: [EMAIL PROTECTED] Subject: Re: Difficulty connecting to DB2 for iSeries from Tomcat 5.0.28 No matter what i do, the JNDI lookup is returning null. What causes a JNDI lookup to return null when the resource is defined in the GlobalNamingResources section of server.xml? Should I put the resources into NamingResources in my context.xml? On Mon, 20 Dec 2004 13:52:29 -0500, David Uctaa [EMAIL PROTECTED] wrote: I am running Tomcat 5.0.28 on Win XP SP1. We have DB2 running on 2 iSeries servers. When I attempt to look up a DataSource from JNDI to get a connection from it, the JNDI lookup is returning null. I am using IBM's JTOpen library for the JDBC drivers, and I am attempting to use Tomcat to manage the connection pooling. I am following the instructions I saw listed here: http://www.itjungle.com/fhg/fhg060204-story01.html . I am trying the first option, using the Commons DBCP connection pool. I have attached copies of my server.xml and the context configuration file webappname.xml. The code I am using to access the data source is pretty generic: Context initCtx = new InitialContext(); Context ctx = (Context) initCtx.lookup(java:comp/env); DataSource ds = (DataSource) ctx.lookup(jdbc/myFirstDataSource); Connection conn = ds.getConnection(); It turns out the that ctx.lookup call is returning null, as if it can't find the JNDI resource, and I can't figure out what I have misconfigured. Any and all help will be greatly appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41c85cd9295551913319955!
RE: Difficulty connecting to DB2 for iSeries from Tomcat 5.0.28
I assume you have something like this in your server.xml Resource name=jdbc/MYDATASOURCE auth=Container scope=Shareable type=javax.sql.DataSource / Is there any warning or exception in catalina.out or any other log files? -Original Message- From: David Uctaa [mailto:[EMAIL PROTECTED] Sent: December 21, 2004 1:52 PM To: Tomcat Users List Subject: Re: Difficulty connecting to DB2 for iSeries from Tomcat 5.0.28 If the name of the global resource in server.xml is defined as GlobalNamingResources Resource [attribs] name=jdbc/MYDATASOURCE/ ResourceParams name=jdbc/MYDATASOURCE param.../param /ResourceParams /GlobalNamingResources then the resourcelink in context.xml is Context [attribs] ResourceLink global=jdbc/MYDATASOURCE name=jdbc/MYDATASOURCE type=javax.sql.DataSource/ /Context (not sure if listing the exact datasource specification would be a security breach, so I'm munging the actual datasource name, but everything else is the same, including upper/lower case) On Tue, 21 Dec 2004 13:39:07 -0500, Phillip Qin [EMAIL PROTECTED] wrote: What is the resourcelink in your context.xml? -Original Message- From: David Uctaa [mailto:[EMAIL PROTECTED] Sent: December 21, 2004 12:27 PM To: [EMAIL PROTECTED] Subject: Re: Difficulty connecting to DB2 for iSeries from Tomcat 5.0.28 No matter what i do, the JNDI lookup is returning null. What causes a JNDI lookup to return null when the resource is defined in the GlobalNamingResources section of server.xml? Should I put the resources into NamingResources in my context.xml? On Mon, 20 Dec 2004 13:52:29 -0500, David Uctaa [EMAIL PROTECTED] wrote: I am running Tomcat 5.0.28 on Win XP SP1. We have DB2 running on 2 iSeries servers. When I attempt to look up a DataSource from JNDI to get a connection from it, the JNDI lookup is returning null. I am using IBM's JTOpen library for the JDBC drivers, and I am attempting to use Tomcat to manage the connection pooling. I am following the instructions I saw listed here: http://www.itjungle.com/fhg/fhg060204-story01.html . I am trying the first option, using the Commons DBCP connection pool. I have attached copies of my server.xml and the context configuration file webappname.xml. The code I am using to access the data source is pretty generic: Context initCtx = new InitialContext(); Context ctx = (Context) initCtx.lookup(java:comp/env); DataSource ds = (DataSource) ctx.lookup(jdbc/myFirstDataSource); Connection conn = ds.getConnection(); It turns out the that ctx.lookup call is returning null, as if it can't find the JNDI resource, and I can't figure out what I have misconfigured. Any and all help will be greatly appreciated. - 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] !DSPAM:41c870c3302641030564044!
RE: Difficulty connecting to DB2 for iSeries from Tomcat 5.0.28
Can you try javax.sql.DataSource in Resoure? You use javax.sql.DataSource in resourcelink then the type in resource has to be the same. -Original Message- From: David Uctaa [mailto:[EMAIL PROTECTED] Sent: December 21, 2004 3:26 PM To: Tomcat Users List Subject: Re: Difficulty connecting to DB2 for iSeries from Tomcat 5.0.28 Resource type=com.ibm.as400.access.AS400JDBCConnectionPoolDataSource auth=Container scope=Shareable name=jdbc/MYDATASOURCE/ On Tue, 21 Dec 2004 15:02:58 -0500, Phillip Qin [EMAIL PROTECTED] wrote: I assume you have something like this in your server.xml Resource name=jdbc/MYDATASOURCE auth=Container scope=Shareable type=javax.sql.DataSource / Is there any warning or exception in catalina.out or any other log files? -Original Message- From: David Uctaa [mailto:[EMAIL PROTECTED] Sent: December 21, 2004 1:52 PM To: Tomcat Users List Subject: Re: Difficulty connecting to DB2 for iSeries from Tomcat 5.0.28 If the name of the global resource in server.xml is defined as GlobalNamingResources Resource [attribs] name=jdbc/MYDATASOURCE/ ResourceParams name=jdbc/MYDATASOURCE param.../param /ResourceParams /GlobalNamingResources then the resourcelink in context.xml is Context [attribs] ResourceLink global=jdbc/MYDATASOURCE name=jdbc/MYDATASOURCE type=javax.sql.DataSource/ /Context (not sure if listing the exact datasource specification would be a security breach, so I'm munging the actual datasource name, but everything else is the same, including upper/lower case) On Tue, 21 Dec 2004 13:39:07 -0500, Phillip Qin [EMAIL PROTECTED] wrote: What is the resourcelink in your context.xml? -Original Message- From: David Uctaa [mailto:[EMAIL PROTECTED] Sent: December 21, 2004 12:27 PM To: [EMAIL PROTECTED] Subject: Re: Difficulty connecting to DB2 for iSeries from Tomcat 5.0.28 No matter what i do, the JNDI lookup is returning null. What causes a JNDI lookup to return null when the resource is defined in the GlobalNamingResources section of server.xml? Should I put the resources into NamingResources in my context.xml? On Mon, 20 Dec 2004 13:52:29 -0500, David Uctaa [EMAIL PROTECTED] wrote: I am running Tomcat 5.0.28 on Win XP SP1. We have DB2 running on 2 iSeries servers. When I attempt to look up a DataSource from JNDI to get a connection from it, the JNDI lookup is returning null. I am using IBM's JTOpen library for the JDBC drivers, and I am attempting to use Tomcat to manage the connection pooling. I am following the instructions I saw listed here: http://www.itjungle.com/fhg/fhg060204-story01.html . I am trying the first option, using the Commons DBCP connection pool. I have attached copies of my server.xml and the context configuration file webappname.xml. The code I am using to access the data source is pretty generic: Context initCtx = new InitialContext(); Context ctx = (Context) initCtx.lookup(java:comp/env); DataSource ds = (DataSource) ctx.lookup(jdbc/myFirstDataSource); Connection conn = ds.getConnection(); It turns out the that ctx.lookup call is returning null, as if it can't find the JNDI resource, and I can't figure out what I have misconfigured. Any and all help will be greatly appreciated. - 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] !DSPAM:41c886e8314441869949623!
RE: Difficulty connecting to DB2 for iSeries from Tomcat 5.0.28
Your conections are pooled by Tomcat. I don't know how you configure your Resource, mine looks like this Resource name=jdbc/whatever auth=Container scope=Shareable type=javax.sql.DataSource / - ResourceParams name=jdbc/whatever - parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter - parameter nameurl/name valuejdbc:oracle:thin:@myhost.com:1521:mysid/value /parameter - parameter nameusername/name valuemyuser/value /parameter - parameter namepassword/name valuemypass/value /parameter - parameter namemaxActive/name value25/value /parameter - parameter namemaxIdle/name value5/value /parameter - parameter nameminIdle/name value5/value /parameter - parameter namemaxWait/name value15000/value /parameter - parameter nameremoveAbandoned/name valuetrue/value /parameter - parameter namevalidationQuery/name valueSELECT SYSDATE FROM DUAL/value /parameter - parameter nametestOnBorrow/name valuetrue/value /parameter - parameter nametestOnReturn/name valuetrue/value /parameter - parameter nameminEvictableIdleTimeMillis/name value-1/value /parameter - parameter nametimeBetweenEvictionRunsMillis/name value3/value /parameter - parameter namenumTestsPerEvictionRun/name value1/value /parameter - parameter nametestWhileIdle/name valuetrue/value /parameter To test if pooling works, you either observe the number of jdbc connections in oracle or do a netstat to list of jdbc connections (not 1521). In my case, max idle would be 5. -Original Message- From: David Uctaa [mailto:[EMAIL PROTECTED] Sent: December 21, 2004 4:30 PM To: Tomcat Users List Subject: Re: Difficulty connecting to DB2 for iSeries from Tomcat 5.0.28 Looks like that worked! Many thanks! :) Now my question is, since I'm using javax.sql.DataSource as the ResourceType, how do I know if I'm using the connection pool or opening a new connection each time I request a connection? The factory associated with the resource is org.apache.commons.dbcp.BasicDataSourceFactory Does this factory provide connection pooling? If not, how do I change the implementation to use pooling? Once I'm using pooling, how do I find out how many connections are in use? How do I find out if a connetion I am about to get will come from the pool or if a new connection is being created? Etc. Is there a page somewhere that references this information? Thanks again. On Tue, 21 Dec 2004 16:03:42 -0500, Phillip Qin [EMAIL PROTECTED] wrote: Can you try javax.sql.DataSource in Resoure? You use javax.sql.DataSource in resourcelink then the type in resource has to be the same. -Original Message- From: David Uctaa [mailto:[EMAIL PROTECTED] Sent: December 21, 2004 3:26 PM To: Tomcat Users List Subject: Re: Difficulty connecting to DB2 for iSeries from Tomcat 5.0.28 Resource type=com.ibm.as400.access.AS400JDBCConnectionPoolDataSource auth=Container scope=Shareable name=jdbc/MYDATASOURCE/ On Tue, 21 Dec 2004 15:02:58 -0500, Phillip Qin [EMAIL PROTECTED] wrote: I assume you have something like this in your server.xml Resource name=jdbc/MYDATASOURCE auth=Container scope=Shareable type=javax.sql.DataSource / Is there any warning or exception in catalina.out or any other log files? -Original Message- From: David Uctaa [mailto:[EMAIL PROTECTED] Sent: December 21, 2004 1:52 PM To: Tomcat Users List Subject: Re: Difficulty connecting to DB2 for iSeries from Tomcat 5.0.28 If the name of the global resource in server.xml is defined as GlobalNamingResources Resource [attribs] name=jdbc/MYDATASOURCE/ ResourceParams name=jdbc/MYDATASOURCE param.../param /ResourceParams /GlobalNamingResources then the resourcelink in context.xml is Context [attribs] ResourceLink global=jdbc/MYDATASOURCE name=jdbc/MYDATASOURCE type=javax.sql.DataSource/ /Context (not sure if listing the exact datasource specification would be a security breach, so I'm munging the actual datasource name, but everything else is the same, including upper/lower case) On Tue, 21 Dec 2004 13:39:07 -0500, Phillip Qin [EMAIL PROTECTED] wrote: What is the resourcelink in your context.xml? -Original Message- From: David Uctaa [mailto:[EMAIL PROTECTED] Sent: December 21, 2004 12:27 PM To: [EMAIL PROTECTED] Subject: Re: Difficulty connecting to DB2 for iSeries from Tomcat 5.0.28 No matter what i do, the JNDI lookup is returning null. What causes a JNDI lookup to return null when the resource is defined in the GlobalNamingResources section of server.xml? Should I put the resources into NamingResources in my context.xml? On Mon, 20 Dec 2004 13:52:29 -0500, David Uctaa [EMAIL PROTECTED] wrote: I am running Tomcat 5.0.28 on Win
RE: How to Enable Logging HTTP Requests (Tomcat standalone)?
You need to post your tomcat version. -Original Message- From: ohaya [mailto:[EMAIL PROTECTED] Sent: December 15, 2004 6:33 AM To: Tomcat Users List Subject: How to Enable Logging HTTP Requests (Tomcat standalone)? Hi, I was wondering if it's possible to configure a standalone Tomcat to log HTTP requests (and posts too, ideally)? If it is, how do I do this, and where does it (Tomcat) log the output to? I've tried editing the Debug level in the Connector in server.xml, and then bouncing Tomcat, but that doesn't seem to do it. Thanks, Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41c0242b76589695866832!
RE: war not deploying
Have you created /tmp/cactus/tomcat5x/webapps/? -Original Message- From: Cumbers [mailto:[EMAIL PROTECTED] Sent: December 13, 2004 10:38 AM To: Tomcat Users List Subject: war not deploying Hey guys I am trying to use ant with cactus to deploy my app to Tomcat and then test. I can run the ant tasks on the examples, i tested the servlet example that comes with the cactus download and it creates its own Tomcat instance, puts the cactified war file under the webapps dir and, most importantly, it unpacks the war file. cactus then runs the tests. Currently with my app a temporary instance of Tomcat is created, the cactified war file is placed under webapps, but the dam thing is not unpacking the war file, and giving me errors like: java.lang.IllegalArgumentException: Document base /tmp/cactus/tomcat5x/webapps/rms-dev does not exist or is not a readable directory Now I know this is not available because the war file is not unpacked. Is there a school boy error I am making? Can anyone help?! Now I know this could be a cactus problem, but it could be a tomcat config problem. Please don't flame me! Cheers Rich - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41bdb698141152608797899!
RE: war not deploying
Your context.xml is fine. Check your cactus. -Original Message- From: Cumbers [mailto:[EMAIL PROTECTED] Sent: December 13, 2004 11:10 AM To: Tomcat Users List Subject: Re: war not deploying Here is the error message: INFO: Processing Context configuration file URL file:/tmp/cactus/tomcat5x/conf/C atalina/localhost/rms-dev-cactified.xml 13-Dec-2004 12:15:22 org.apache.catalina.core.StandardContext resourcesStart SEVERE: Error starting static Resources java.lang.IllegalArgumentException: Document base /tmp/cactus/tomcat5x/webapps/r ms-dev does not exist or is not a readable directory and here is the rms-dev-cactified.xml file contents: ?xml version=1.0 encoding=UTF-8? Context path=/rms-dev ResourceLink auth=Container name=jdbc/postgres global=jdbc/postgres type=javax.sql.DataSource/ /Context Cheers Rich Cumbers wrote: Hey The permissions are fine. I have read somewhere it could be to do with my server.xml file. Cheers Rich Phillip Qin wrote: What about the permission? -Original Message- From: Cumbers [mailto:[EMAIL PROTECTED] Sent: December 13, 2004 10:57 AM To: Tomcat Users List Subject: Re: war not deploying Hey Yeah that gets created, and in there is the war file. I am unsure how much info to give out, as this could be a cactus problem, I am still hacking at it and trawling google searches! Cheers Rich Phillip Qin wrote: Have you created /tmp/cactus/tomcat5x/webapps/? -Original Message- From: Cumbers [mailto:[EMAIL PROTECTED] Sent: December 13, 2004 10:38 AM To: Tomcat Users List Subject: war not deploying Hey guys I am trying to use ant with cactus to deploy my app to Tomcat and then test. I can run the ant tasks on the examples, i tested the servlet example that comes with the cactus download and it creates its own Tomcat instance, puts the cactified war file under the webapps dir and, most importantly, it unpacks the war file. cactus then runs the tests. Currently with my app a temporary instance of Tomcat is created, the cactified war file is placed under webapps, but the dam thing is not unpacking the war file, and giving me errors like: java.lang.IllegalArgumentException: Document base /tmp/cactus/tomcat5x/webapps/rms-dev does not exist or is not a readable directory Now I know this is not available because the war file is not unpacked. Is there a school boy error I am making? Can anyone help?! Now I know this could be a cactus problem, but it could be a tomcat config problem. Please don't flame me! Cheers Rich - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41bdc054146881856650834!
RE: war not deploying
What about the permission? -Original Message- From: Cumbers [mailto:[EMAIL PROTECTED] Sent: December 13, 2004 10:57 AM To: Tomcat Users List Subject: Re: war not deploying Hey Yeah that gets created, and in there is the war file. I am unsure how much info to give out, as this could be a cactus problem, I am still hacking at it and trawling google searches! Cheers Rich Phillip Qin wrote: Have you created /tmp/cactus/tomcat5x/webapps/? -Original Message- From: Cumbers [mailto:[EMAIL PROTECTED] Sent: December 13, 2004 10:38 AM To: Tomcat Users List Subject: war not deploying Hey guys I am trying to use ant with cactus to deploy my app to Tomcat and then test. I can run the ant tasks on the examples, i tested the servlet example that comes with the cactus download and it creates its own Tomcat instance, puts the cactified war file under the webapps dir and, most importantly, it unpacks the war file. cactus then runs the tests. Currently with my app a temporary instance of Tomcat is created, the cactified war file is placed under webapps, but the dam thing is not unpacking the war file, and giving me errors like: java.lang.IllegalArgumentException: Document base /tmp/cactus/tomcat5x/webapps/rms-dev does not exist or is not a readable directory Now I know this is not available because the war file is not unpacked. Is there a school boy error I am making? Can anyone help?! Now I know this could be a cactus problem, but it could be a tomcat config problem. Please don't flame me! Cheers Rich - 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] !DSPAM:41bdbb4f142189169919926!
RE: war not deploying
Have you checked your cactus setting? -Original Message- From: Cumbers [mailto:[EMAIL PROTECTED] Sent: December 13, 2004 11:08 AM To: Tomcat Users List Subject: Re: war not deploying I have also checked that auto deploy and unpack wars are set to true. What I do not understand is that this works for the sample application, this points to something I am doing wrong, so I guess I should start from the bottom and work up Cheers Rich Phillip Qin wrote: What about the permission? -Original Message- From: Cumbers [mailto:[EMAIL PROTECTED] Sent: December 13, 2004 10:57 AM To: Tomcat Users List Subject: Re: war not deploying Hey Yeah that gets created, and in there is the war file. I am unsure how much info to give out, as this could be a cactus problem, I am still hacking at it and trawling google searches! Cheers Rich Phillip Qin wrote: Have you created /tmp/cactus/tomcat5x/webapps/? -Original Message- From: Cumbers [mailto:[EMAIL PROTECTED] Sent: December 13, 2004 10:38 AM To: Tomcat Users List Subject: war not deploying Hey guys I am trying to use ant with cactus to deploy my app to Tomcat and then test. I can run the ant tasks on the examples, i tested the servlet example that comes with the cactus download and it creates its own Tomcat instance, puts the cactified war file under the webapps dir and, most importantly, it unpacks the war file. cactus then runs the tests. Currently with my app a temporary instance of Tomcat is created, the cactified war file is placed under webapps, but the dam thing is not unpacking the war file, and giving me errors like: java.lang.IllegalArgumentException: Document base /tmp/cactus/tomcat5x/webapps/rms-dev does not exist or is not a readable directory Now I know this is not available because the war file is not unpacked. Is there a school boy error I am making? Can anyone help?! Now I know this could be a cactus problem, but it could be a tomcat config problem. Please don't flame me! Cheers Rich - 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] !DSPAM:41bdbeac146256008744466!
RE: war not deploying
I have never used cactus before. Check if cactus has any JNDI pooling resource and link it in your app's context.xml. -Original Message- From: Cumbers [mailto:[EMAIL PROTECTED] Sent: December 13, 2004 11:20 AM To: Tomcat Users List Subject: Re: war not deploying Ok found the problem. With my application deployment I have under the jsp dir a META-INF dir that contains a context.xml file. This contains a resource link for my JNDI database connection pool. This describes the context as /rms-dev this should be /rms-dev-cactified Removing this file allows cactus to work. But removed my resource link. Any suggestions (aside from changing the context path to be /rms-dev-cactified)? Cheers Rich Cumbers wrote: I have also checked that auto deploy and unpack wars are set to true. What I do not understand is that this works for the sample application, this points to something I am doing wrong, so I guess I should start from the bottom and work up Cheers Rich Phillip Qin wrote: What about the permission? -Original Message- From: Cumbers [mailto:[EMAIL PROTECTED] Sent: December 13, 2004 10:57 AM To: Tomcat Users List Subject: Re: war not deploying Hey Yeah that gets created, and in there is the war file. I am unsure how much info to give out, as this could be a cactus problem, I am still hacking at it and trawling google searches! Cheers Rich Phillip Qin wrote: Have you created /tmp/cactus/tomcat5x/webapps/? -Original Message- From: Cumbers [mailto:[EMAIL PROTECTED] Sent: December 13, 2004 10:38 AM To: Tomcat Users List Subject: war not deploying Hey guys I am trying to use ant with cactus to deploy my app to Tomcat and then test. I can run the ant tasks on the examples, i tested the servlet example that comes with the cactus download and it creates its own Tomcat instance, puts the cactified war file under the webapps dir and, most importantly, it unpacks the war file. cactus then runs the tests. Currently with my app a temporary instance of Tomcat is created, the cactified war file is placed under webapps, but the dam thing is not unpacking the war file, and giving me errors like: java.lang.IllegalArgumentException: Document base /tmp/cactus/tomcat5x/webapps/rms-dev does not exist or is not a readable directory Now I know this is not available because the war file is not unpacked. Is there a school boy error I am making? Can anyone help?! Now I know this could be a cactus problem, but it could be a tomcat config problem. Please don't flame me! Cheers Rich - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41bdc1a8147431506997077!
RE: WAR files and Eclipse
It is very easy. Use ant's war task. -Original Message- From: Daniel Watrous [mailto:[EMAIL PROTECTED] Sent: December 13, 2004 3:44 PM To: [EMAIL PROTECTED] Subject: WAR files and Eclipse Hello All, I am new to WAR files and eclipse. Many searches on google bring me to the sysdeo tomcat plugin, which I have installed. I want to know if there is some standard way to generate a WAR file for deployment. I have found that I can export a JAR file and change its name, but in the process the directory structure is altered. Maybe you even know about a better IDE than eclipse for working with web-based projects. THANKS in advance. Daniel !DSPAM:41bdff16171791264215269!
RE: How to detect expired session vs. no session? (Solved)
Yeah, that's my point. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: December 10, 2004 10:19 AM To: Tomcat Users List Subject: RE: How to detect expired session vs. no session? (Solved) I believe it's because they were trying to figure out whether they had a new session because the old one expired or because they just hit the site for the first time. In either case the session would be new. On Fri, 2004-12-10 at 10:11, Phillip Qin wrote: I am curious why people spent so much time trying to figure out whether request.getSession(...) returns null or not but didn't bother using request.getSession().isNew()? -Original Message- From: Steve Kirk [mailto:[EMAIL PROTECTED] Sent: December 9, 2004 4:36 PM To: 'Tomcat Users List' Subject: RE: How to detect expired session vs. no session? (Solved) By default: 1. getSession(true)!=null 2. getSession(false)!=null But if a JSP page contains the tag %@ page session=false %, then: 1. getSession(true)!=null 2. getSession(false)==null In the last of these 4 cases, do you mean that the implicit JSP session object returns null, or that request.getSession(false) returns null? I could understand the first behaviour but would be surprised by the second. The problem is that it implies that JSPs execute the code in a way that is different than if it were included in a servlet, and given that JSPs are servlets, this seems puzzling. Again, perhaps I'm not fully understanding either your case, or the details of how sessions work. For my case, sessions will only be created for logged-in users what is it about your case that makes this happen? I would have thought that session creation is independent of whether you are authenticating or not. Or is there a way to config TC to not create sessions by default, and only create them when the user successfully authenticates? - 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] !DSPAM:41b9bea273806963321052!
RE: How to detect expired session vs. no session? (Solved)
I am curious why people spent so much time trying to figure out whether request.getSession(...) returns null or not but didn't bother using request.getSession().isNew()? -Original Message- From: Steve Kirk [mailto:[EMAIL PROTECTED] Sent: December 9, 2004 4:36 PM To: 'Tomcat Users List' Subject: RE: How to detect expired session vs. no session? (Solved) By default: 1. getSession(true)!=null 2. getSession(false)!=null But if a JSP page contains the tag %@ page session=false %, then: 1. getSession(true)!=null 2. getSession(false)==null In the last of these 4 cases, do you mean that the implicit JSP session object returns null, or that request.getSession(false) returns null? I could understand the first behaviour but would be surprised by the second. The problem is that it implies that JSPs execute the code in a way that is different than if it were included in a servlet, and given that JSPs are servlets, this seems puzzling. Again, perhaps I'm not fully understanding either your case, or the details of how sessions work. For my case, sessions will only be created for logged-in users what is it about your case that makes this happen? I would have thought that session creation is independent of whether you are authenticating or not. Or is there a way to config TC to not create sessions by default, and only create them when the user successfully authenticates? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41b8c52d300391826077954!
RE: I don't know what's wrong.
If you want to test the MySQL connectivity, make sure that MySQL server allows your IP to remote login otherwise you will have to GRANT PRIVILEDGE. -Original Message- From: Warron French [mailto:[EMAIL PROTECTED] Sent: December 8, 2004 10:42 AM To: Tomcat Users List Subject: RE: I don't know what's wrong. Yes, I do have JBoss-3.2.5 running on this server. I have also recently found out that the data is on a windows server running MSSQL. Any ideas on how to test that connectivity? Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 07, 2004 4:37 PM To: 'Tomcat Users List' Subject: RE: I don't know what's wrong. Jboss is an application server (EJB container). Do you have any EJB application installed? Tomcat renders the pages. Those pages are the front end of your EJB application. -Original Message- From: Warron French [mailto:[EMAIL PROTECTED] Sent: December 7, 2004 4:35 PM To: Tomcat Users List Subject: RE: I don't know what's wrong. So, how does JBoss fit into the whole situation? Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 07, 2004 4:34 PM To: 'Tomcat Users List' Subject: RE: I don't know what's wrong. Mod_jk is the bridge between Apache and Tomcat. Consult jk 1.x documentation on how to configure it. Mysqld is the MySQL daemon on linux. Many websites use MySQL along with Apache and PHP. -Original Message- From: Warron French [mailto:[EMAIL PROTECTED] Sent: December 7, 2004 4:22 PM To: User Tomcat (E-mail) Subject: I don't know what's wrong. We have a JBoss application? That uses .jsp files to interact with a supposedly searchable database. Can someone explain to me the concepts behind Tomcat, mod_jk, JBoss, and Apache, and if maybe I am missing something like the database. I am running mysqld, but as far as I know... the mysqld isn't supporting ANY websites yet. Here is my url I am trying to get to work. I really don't know enough to figure out what is missing and what I need to be done. http://www.nrcitcw.org/nrcitcw/SearchCategory.jsp I can send snippets of my Virtual Host config from my apache server if anyone is willing to help me. please. This is driving me nuts. It was implemented before I knew it existed. Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 - 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] !DSPAM:41b720e5124171034330437!
RE: GNOME INSTALLATION
You can do it by yourself. The installation is very easy. No advanced knowledge required. -Original Message- From: Keddie, Robert [mailto:[EMAIL PROTECTED] Sent: December 7, 2004 9:43 AM To: [EMAIL PROTECTED] Subject: GNOME INSTALLATION IS there anyone here interested in installing Gnome on a server I have ? Robert Keddie Web Development/MIS Phone: (352)671-8802 http://www.marioncountyfl.org http://www.marioncountyfl.org/ http://www.marioncountyfl.org Marion County BCC Florida !DSPAM:41b5c0d7305254483425068!
RE: GNOME INSTALLATION
I think it is totally offtopic from this list. If you use one of the linux distros, you shall be able to run a live update (e.g. redhat up2date, debian apt-get) to install gnome and the dependencies. I have done that by myself but I don't think you need to pay someone to do it. -Original Message- From: Webmaster [mailto:[EMAIL PROTECTED] Sent: December 7, 2004 3:25 PM To: Tomcat Users List Subject: RE: GNOME INSTALLATION Im sorry but it seems complicated...You have to have all these libraries installed and I don't have the time to go to and fro...unless Im reading wrong. When I offered I was willing to pay someone. Is there a guide for newbs out there on installing this? Robert Keddie Web Development/MIS Phone: (352)671-8802 Marion County BCC Florida -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 07, 2004 9:41 AM To: 'Tomcat Users List' Subject: RE: GNOME INSTALLATION You can do it by yourself. The installation is very easy. No advanced knowledge required. -Original Message- From: Keddie, Robert [mailto:[EMAIL PROTECTED] Sent: December 7, 2004 9:43 AM To: [EMAIL PROTECTED] Subject: GNOME INSTALLATION IS there anyone here interested in installing Gnome on a server I have ? Robert Keddie Web Development/MIS Phone: (352)671-8802 http://www.marioncountyfl.org http://www.marioncountyfl.org/ http://www.marioncountyfl.org Marion County BCC Florida - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41b610ee15415199058569!
RE: I don't know what's wrong.
Mod_jk is the bridge between Apache and Tomcat. Consult jk 1.x documentation on how to configure it. Mysqld is the MySQL daemon on linux. Many websites use MySQL along with Apache and PHP. -Original Message- From: Warron French [mailto:[EMAIL PROTECTED] Sent: December 7, 2004 4:22 PM To: User Tomcat (E-mail) Subject: I don't know what's wrong. We have a JBoss application? That uses .jsp files to interact with a supposedly searchable database. Can someone explain to me the concepts behind Tomcat, mod_jk, JBoss, and Apache, and if maybe I am missing something like the database. I am running mysqld, but as far as I know... the mysqld isn't supporting ANY websites yet. Here is my url I am trying to get to work. I really don't know enough to figure out what is missing and what I need to be done. http://www.nrcitcw.org/nrcitcw/SearchCategory.jsp I can send snippets of my Virtual Host config from my apache server if anyone is willing to help me. please. This is driving me nuts. It was implemented before I knew it existed. Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41b61f0721071269171754!
RE: I don't know what's wrong.
Jboss is an application server (EJB container). Do you have any EJB application installed? Tomcat renders the pages. Those pages are the front end of your EJB application. -Original Message- From: Warron French [mailto:[EMAIL PROTECTED] Sent: December 7, 2004 4:35 PM To: Tomcat Users List Subject: RE: I don't know what's wrong. So, how does JBoss fit into the whole situation? Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 07, 2004 4:34 PM To: 'Tomcat Users List' Subject: RE: I don't know what's wrong. Mod_jk is the bridge between Apache and Tomcat. Consult jk 1.x documentation on how to configure it. Mysqld is the MySQL daemon on linux. Many websites use MySQL along with Apache and PHP. -Original Message- From: Warron French [mailto:[EMAIL PROTECTED] Sent: December 7, 2004 4:22 PM To: User Tomcat (E-mail) Subject: I don't know what's wrong. We have a JBoss application? That uses .jsp files to interact with a supposedly searchable database. Can someone explain to me the concepts behind Tomcat, mod_jk, JBoss, and Apache, and if maybe I am missing something like the database. I am running mysqld, but as far as I know... the mysqld isn't supporting ANY websites yet. Here is my url I am trying to get to work. I really don't know enough to figure out what is missing and what I need to be done. http://www.nrcitcw.org/nrcitcw/SearchCategory.jsp I can send snippets of my Virtual Host config from my apache server if anyone is willing to help me. please. This is driving me nuts. It was implemented before I knew it existed. Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 - 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] !DSPAM:41b621f721551697314170!
RE: Prevent user from retrieving previous page in jsp/servlet
Google it. Hint, you need to play with response header. -Original Message- From: Segree, Gareth [mailto:[EMAIL PROTECTED] Sent: December 6, 2004 8:54 AM To: '[EMAIL PROTECTED]' Subject: Prevent user from retrieving previous page in jsp/servlet I want to invalidate previous page if the back button is pressed. The user should not get the previous page if they return to it pressed. Gareth Segree mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Technical Support Analyst The Gleaner Company Ltd. 7 North Street Kingston Tel: 922-3400 !DSPAM:41b46519164291721719361!
RE: Prevent user from retrieving previous page in jsp/servlet
Also add response.setHeader(cache-control, no-cache,no-store,must-revalidate,post-check=0, pre-check=0); -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: December 6, 2004 12:11 PM To: Tomcat Users List; Karl Ostendorf Subject: RE: Prevent user from retrieving previous page in jsp/servlet response.setDateHeader(Last-Modified, System.currentTimeMillis/()); ^^^ is invalid .. -Original Message- From: Karl Ostendorf [mailto:[EMAIL PROTECTED] Sent: 06 December 2004 17:03 To: Tomcat Users List Subject: Re: Prevent user from retrieving previous page in jsp/servlet This is an interesting question. I have created a ServletFilter that appends the following headers to all responses: response.setHeader(Cache-Control, no-cache); response.setHeader(Pragma, no-cache); response.setDateHeader(Last-Modified, System.currentTimeMillis/()); response.setDateHeader(Expires, 0); This doesn't work. Firefox will serve the previous page out of it's cache. I'd be interested to know if anyone else has been able to make this work. Karl On Mon, 6 Dec 2004 08:54:29 -0500, Segree, Gareth [EMAIL PROTECTED] wrote: I want to invalidate previous page if the back button is pressed. The user should not get the previous page if they return to it pressed. Gareth Segree mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Technical Support Analyst The Gleaner Company Ltd. 7 North Street Kingston Tel: 922-3400 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41b492ae186863581515385!
RE: Prevent user from retrieving previous page in jsp/servlet
There were a lot of posts rearding this Back issue in struts-user mailing list. -Original Message- From: Alain Gaeremynck [mailto:[EMAIL PROTECTED] Sent: December 6, 2004 12:26 PM To: Tomcat Users List Subject: Re: Prevent user from retrieving previous page in jsp/servlet I would suggest doing it client side with javascript. use location.replace(url) which will in effect replace the url in the history. so the back button will take you 2 step back. The only other way that i know of to do this is to clear the cache as offered in the other answer thread and keep track of the user's activity in his session Segree, Gareth wrote: I want to invalidate previous page if the back button is pressed. The user should not get the previous page if they return to it pressed. Gareth Segree mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Technical Support Analyst The Gleaner Company Ltd. 7 North Street Kingston Tel: 922-3400 -- Alain Gaeremynck CTO Le Groupe Interstructure (514) 374-1110 (514) 825-7810 cell weblog: http://www.sanssucre.ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41b49647187547177317199!
RE: DBCP/JNDI/Realms
I use Oracle but I don't use Oracle's implementation of pooling because I found DBCP + commons-pooling did a great job in connection pooling. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: December 6, 2004 3:33 PM To: Tomcat Users List Subject: RE: DBCP/JNDI/Realms Hi, The DBCP parameters are for DBCP. DBCP won't magically set various properties on your IBM driver, so if you want those set you have to do it yourself. If you use IBM's pooling, as opposed to IBM's driver with DBCP's pooling, you can set those properties in your Tomcat xml configuration, as long as the factory provided by IBM supports that approach. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 3:31 PM To: Tomcat Users List Subject: Re: DBCP/JNDI/Realms Follow-up question. Should I or should I not use the ConnectionPool implementation provided by IBM in their JDBC driver? And if I should, do the parameters provided by DBCP still apply? I have to admit, I'm a bit fuzzy on what role which component is playing in this game! Thanks!! Shapira, Yoav wrote: Hi, DBCP will NOT gracefully recover by itself. You need to configure it according to your desired behavior. Specifically, check out the testOnBorrow, testOnReturn, and testWhileIdle properties at http://jakarta.apache.org/commons/dbcp/configuration.html. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 11:32 AM To: Tomcat Users List Subject: DBCP/JNDI/Realms Good morning! I've been running into an intermittent problem with my database connections for authentication. It appears that periodically, the iSeries (DB2/400) that I connect to terminates all incoming ODBC/JDBC connections (one a week, apparently). What happens in my application is that users can no longer login after the connections have been dropped. The connection pool apparently doesn't try to re-initiate the connections after they've been dropped. I see an exception in my logs regarding the connection being reset, then I see an exception relating to the pool being exhausted. I'm not entirely sure what the root cause of the problem here is - in theory, DBCP should recover gracefully when a connection is reset/dropped, right? Here's the initial exception: java.sql.SQLException: Communication link failure.(Connection was dropped unexpectedly.) at com.ibm.as400.access.JDError.throwSQLException(JDError.java:365) at com.ibm.as400.access.AS400JDBCConnection.send(AS400JDBCConnection.jav a( Comp iled Code)) at com.ibm.as400.access.AS400JDBCConnection.send(AS400JDBCConnection.jav a( Inli ned Compiled Code)) at com.ibm.as400.access.AS400JDBCStatement.syncRPB(AS400JDBCStatement.ja va (Com piled Code)) at com.ibm.as400.access.AS400JDBCStatement.commonPrepare(AS400JDBCStatem en t.ja va(Compiled Code)) at com.ibm.as400.access.AS400JDBCPreparedStatement.init(AS400JDBCPrepa re dSta tement.java(Compiled Code)) at com.ibm.as400.access.AS400JDBCConnection.prepareStatement(AS400JDBCCo nn ecti on.java(Compiled Code)) at com.ibm.as400.access.AS400JDBCConnection.prepareStatement(AS400JDBCCo nn ecti on.java(Compiled Code)) at org.apache.commons.dbcp.DelegatingConnection.prepareStatement(Delegat in gCon nection.java(Compiled Code)) at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper. pr epar eStatement(PoolingDataSource.java(Compiled Code)) at org.apache.catalina.realm.DataSourceRealm.credentials(DataSourceRealm .j ava: 460) [snip] Here's the next one: 2004-12-06 04:39:21 DataSourceRealm[]: Exception performing authentication org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool exhausted at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSo ur ce.j ava(Compiled Code)) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource .j ava( Compiled Code)) at org.apache.catalina.realm.DataSourceRealm.open(DataSourceRealm.java:4 38 ) at org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceReal m. java :277) [snip] So, what I've done now to see if it helps matters any, is specify the AS400's own connection pool factory in my JNDI definition, like so: parameter namefactory/name valuecom.ibm.as400.access.AS400JDBCConnectionPoolDataSource/value /parameter Both Tomcat's form authentication as well as my application (through iBATiS) use this JNDI DataSource for connections. Can anyone shed more light on what the root cause of the problem is here? Should DBCP gracefully recover? Regards, Brice Ruth -- Brice Ruth, Sr. IT Analyst Fiskars Brands Inc http://www.fiskarsbrands.com/
RE: DBCP/JNDI/Realms
I am not sure I understand your question. But in my trails, if my JNDI resource is in GlobalNamingResources, those connection won't be killed unless I shutdown tomcat. If my resource is in my own context, I have to kill them when I stop my application. -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: December 6, 2004 4:22 PM To: Tomcat Users List Subject: Re: DBCP/JNDI/Realms OK, so short of waiting for this to fail again, how might I go about testing this works? Should I see if the database folks can kill the JDBC connections manually? Shapira, Yoav wrote: Hi, The DBCP parameters are for DBCP. DBCP won't magically set various properties on your IBM driver, so if you want those set you have to do it yourself. If you use IBM's pooling, as opposed to IBM's driver with DBCP's pooling, you can set those properties in your Tomcat xml configuration, as long as the factory provided by IBM supports that approach. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 3:31 PM To: Tomcat Users List Subject: Re: DBCP/JNDI/Realms Follow-up question. Should I or should I not use the ConnectionPool implementation provided by IBM in their JDBC driver? And if I should, do the parameters provided by DBCP still apply? I have to admit, I'm a bit fuzzy on what role which component is playing in this game! Thanks!! Shapira, Yoav wrote: Hi, DBCP will NOT gracefully recover by itself. You need to configure it according to your desired behavior. Specifically, check out the testOnBorrow, testOnReturn, and testWhileIdle properties at http://jakarta.apache.org/commons/dbcp/configuration.html. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 11:32 AM To: Tomcat Users List Subject: DBCP/JNDI/Realms Good morning! I've been running into an intermittent problem with my database connections for authentication. It appears that periodically, the iSeries (DB2/400) that I connect to terminates all incoming ODBC/JDBC connections (one a week, apparently). What happens in my application is that users can no longer login after the connections have been dropped. The connection pool apparently doesn't try to re-initiate the connections after they've been dropped. I see an exception in my logs regarding the connection being reset, then I see an exception relating to the pool being exhausted. I'm not entirely sure what the root cause of the problem here is - in theory, DBCP should recover gracefully when a connection is reset/dropped, right? Here's the initial exception: java.sql.SQLException: Communication link failure.(Connection was dropped unexpectedly.) at com.ibm.as400.access.JDError.throwSQLException(JDError.java:365) at com.ibm.as400.access.AS400JDBCConnection.send(AS400JDBCConnection.ja v a( Comp iled Code)) at com.ibm.as400.access.AS400JDBCConnection.send(AS400JDBCConnection.ja v a( Inli ned Compiled Code)) at com.ibm.as400.access.AS400JDBCStatement.syncRPB(AS400JDBCStatement.j a va (Com piled Code)) at com.ibm.as400.access.AS400JDBCStatement.commonPrepare(AS400JDBCState m en t.ja va(Compiled Code)) at com.ibm.as400.access.AS400JDBCPreparedStatement.init(AS400JDBCPrep a re dSta tement.java(Compiled Code)) at com.ibm.as400.access.AS400JDBCConnection.prepareStatement(AS400JDBCC o nn ecti on.java(Compiled Code)) at com.ibm.as400.access.AS400JDBCConnection.prepareStatement(AS400JDBCC o nn ecti on.java(Compiled Code)) at org.apache.commons.dbcp.DelegatingConnection.prepareStatement(Delega t in gCon nection.java(Compiled Code)) at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper . pr epar eStatement(PoolingDataSource.java(Compiled Code)) at org.apache.catalina.realm.DataSourceRealm.credentials(DataSourceReal m .j ava: 460) [snip] Here's the next one: 2004-12-06 04:39:21 DataSourceRealm[]: Exception performing authentication org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool exhausted at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataS o ur ce.j ava(Compiled Code)) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSourc e .j ava( Compiled Code)) at
FW: [Ticket System] Invalid Email
What the heck is this? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: December 6, 2004 4:15 PM To: [EMAIL PROTECTED] Subject: [Ticket System] Invalid Email You recently attempted to send an email to the Ticket-System. Sadly it failed. The reasons may include: [-] Invalid Ticket ID [-] Invalid Project [-] Poorly formatted email Please refer to the ticket page for the correct ID number. Refer to the project page for the correct email for creating a new ticket. --- Incoming Email Details Subject: RE: DBCP/JNDI/Realms Date: Mon, 6 Dec 2004 21:15:26 --- Do not reply to this email http://public.ticket-system.com/ !DSPAM:41b4cc75209276314419682!
RE: Tomcat 5 + hostname
Check your server.xml -Original Message- From: Eberle Martin [mailto:[EMAIL PROTECTED] Sent: December 3, 2004 10:32 AM To: Tomcat Users List Subject: AW: Tomcat 5 + hostname Same problem here ... can't get tomcat with domain name running :( -Ursprüngliche Nachricht- Von: Lei Lin [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 3. Dezember 2004 15:44 An: [EMAIL PROTECTED] Betreff: Tomcat 5 + hostname Hi folks, We installed Tomcat 5 on Redhat Linux 9 server. In order to run our servlet, we need to use http://hostname:8080 instead of using our server's IP address URL eg: http://177.23.6.2:8080. The IP address URL works for our server, but not the hostname url. Any idea? Thanks Lei - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41b0876294503702910391!