tomcat usage
Hi list.. what is the difference between running tomcat server and as client if running it as client is different can u tell me the procedure of how to do this thanks for any help 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 proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat usage
From: Kusuma Pabba [EMAIL PROTECTED] what is the difference between running tomcat server and as client Tomcat is a Web server. There is no concept of running it as a client. What are you trying to do? We might be able to help more if you tell us! - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: apache and tomcat version
From: [EMAIL PROTECTED] [EMAIL PROTECTED] Does Tomcat do the same thing as Apache? ie http; as well as the bonus of java? Yes, with reservations. Tomcat's a Web server in its own right - and a pretty fast one, in its modern versions. You'll saturate your network bandwidth long before you saturate your CPU. It's tuned for serving static content and Java web application content. It *can* serve other content via custom webapps and filters, but in my opinion this is less well developed than the facilities in Apache httpd (what most people call Apache). I am using PhP, and would to like to also have Java/AJAX?J2EE on my web page, and I am not sure if I need both Apache and Tomcat, or can just use Tomcat? (I dont know if it will do everything that Apache does plus more?) httpd has more modules available, and is probably a better choice as your front-end if you're running several different active server technologies such as PHP and Java. Tomcat *can* serve PHP, but as far as I'm aware the integration is slower than httpd's. I've not done it, however - can anyone who has comment on performance? If you do run httpd in front of Tomcat, you do of course have the integration job to do. The appropriate version of the docs at http://tomcat.apache.org will, of course, be of benefit :-). I'd go with Tomcat 6 unless you have a good reason to use an older version. - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 6 Manager
Susan G. Conger wrote: When you go into the Tomcat Manager you get a list of running web applications. Then the next section lets you deploy a host directory or local WAR file. It asks for the following information: Context Path (optional): [I have found this is not optional] XML Configuration file URL: [This appears to be optional] WAR or Directory URL:[Here I enter my host directory path] I don't have anything in my server.xml. Just a generic tomcat 6 install. When I enter anything in the Context path that has a 2 tier specification .i.e. xyz/abc I get an error when I try to deploy the host directory. I have been able to deploy a different directory using just xyx. So basically if I have a unix directory called /mywebapps/xyz that has a web application in it. And I want to deploy it using the Tomcat Manager what would I put in for the Context Path. I know that the WAR or Directory should be /mywebapps/xyz. I want the context path to be xyz/abc. However if I put that in the deployment fails. Does this explain it a little better? Yes, I think it does. Exactly which version of Tomcat 6 are you using? The following works for me on 6.0.18: ContextPath: /foo/bar XML: [leave blank] WAR/DIR: C:/temp There were several fixes / enhancements to multi-level context support in 6.0.18. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5, JNDI Connection Pooling, Active connections keepincreasing....
Right, since I seem to be the only alien having this problem I would be happy to know how you write jdbc classes and (if any) a datasource manager. Do you create a separate class for retrieving connections or datasources. Are the methods static. How do your dao's code look like? For example when using a connection, statement, resultset. How and where do you close them, and do you return values afterwards. Do you use the factory pattern? Any code examples, step by step guide of something that works would be very helpful. Basically, a great step by step tutorial would be more helpful than trying to spot my problem as everyone seems to have a different opinion from the other. Frankly speaking, I believe there is no sufficient and a spot-on-clear documentation of what thread safe servlet containers really mean and the usage of static methods on these servlet containers. The current documentation can be understood in many different ways. What interests me more about this thread is that many people suggested to avoid using static methods in web applications. Avoiding static methods for DAO's is understandable, but avoiding static methods for retrieving a datasource seems strange. I have seen millions (if not zillions) code examples on the net where static methods are used for retrieving datasources. So I would be happy to see how others write code without static methods. Thanks, Sinoea From: [EMAIL PROTECTED] To: users@tomcat.apache.org Date: Wed, 17 Sep 2008 22:26:16 -0500 Subject: RE: Tomcat 5.5, JNDI Connection Pooling, Active connections keepincreasing From: sinoea kaabi [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat 5.5, JNDI Connection Pooling, Active connections keepincreasing I could accept the fact that we should create new objects of Dao's, but for getting a datasource or connection it should make sense to have a utility class with static methods. Absolutely - Johnny K's suggestion of doing a new every time is utter nonsense. So is a connection a thread-safe object or not? No, a connection is not thread-safe: it is designed to be be used by only one thread at a time. If you have multiple threads accessing a connection object *simultaneously*, you will have problems. On the other hand, connection managers (e.g., the commons-dbcp code) are thread-safe; multiple threads may call one simultaneously to acquire connection objects, and each thread is guaranteed to be given a separate object. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Make a mini you and download it into Windows Live Messenger http://clk.atdmt.com/UKM/go/111354029/direct/01/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URLEncoding of \ Character
On Wed, Sep 17, 2008 at 1:45 PM, Johnny Kewl [EMAIL PROTECTED] wrote: - Original Message - From: Erik Onnen [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, September 17, 2008 10:27 PM Subject: Re: URLEncoding of \ Character Thanks Mark, much appreciated. I had no idea the extra system props even existed. On Wed, Sep 17, 2008 at 12:07 PM, Mark Thomas [EMAIL PROTECTED] wrote: Erik Onnen wrote: Verified on 6.0.16 and 6.0.18, 2.6.24 Linux kernel, JVM 1.6.0_10-beta. When I attempt to encode a \ character into a url resulting in a %5C in the URL on the wire, I'm seeing a 400 from the server and none of my code is hit. I've tried URLEncoding=UTF-8 on the connector with no luck. Same URL serves fine on Jetty6. Other encoded, non-URL safe chars seem to work fine. A sample of the URL on the wire looks like: GET /people/s%5Clash Erik... why does this happen? Trying to understand why you end up with this url? Why cant you just turn it into this? /people/s/lash Well, for one the HTTP specification says that's an illegal URI. I prefer to follow the spec and encode my URIs explicitly in the markup that I send down to the Agent. The browser will encode the URI before sending the subsequent GET, so what I send down doesn't really matter. The HTTP on the wire is the same: GET /people/%5Cslash I won't go into the reason I want to have that character in the URL. As Mark says it's valid and that's sufficient for what I'm attempting to accomplish.
Re: Tomcat Cluster Deployer
Paul McGurn wrote: OK, I successfully deployed this in our test environment. Great! Could you point me toward the general guidelines for properly creating documentation in the acceptable format? I'll start by documenting the existing cluster example that includes the farm section and work from there. Patches are first applied to trunk and then ported to other versions as required. The source for the docs for trunk can be found in svn at: http://svn.apache.org/repos/asf/tomcat/trunk/webapps/docs/ General guidelines are nothing more than stick to the format you find in those files. For a complete list of what is allowed / expected see the tomcat-doc.xsl file in that directory. Any changes should be submitted in diff -u format as a bugzilla entry. You might find it easier to build Tomcat locally to check your changes. If you haven't done this before it is pretty simple. See http://localhost:8080/docs/building.html Note you must use a 1.5 JDK for a complete build. If you use a 1.6 JDK you won't build the DBCP component. Mark Paul McGurn -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2008 4:02 PM To: Tomcat Users List Subject: Re: Tomcat Cluster Deployer Paul McGurn wrote: Thanks Mark. I'll work at actually translating this into real documentation and examples. As far as patching, I'm not qualified to do that, but I'd be willing to take a crack at it if there's a list of bugs/wishlist items for it. Sounds great. I don't recall any open bugs - check bugzilla. I'm sure you'll find some when you test it. Crate bugzilla entries as you find them and add patches where you can. Also, if you create a bugzilla entry for any doc changes I'll make sure they get applied. Note all the source for the docs is in xml not html. Mark Paul McGurn -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2008 3:50 PM To: Tomcat Users List Subject: Re: Tomcat Cluster Deployer Paul McGurn wrote: Is there any (complete) documentation on the Cluster Deployer? The official documentation doesn't actually say anything about it (or let alone anything useful at all...): http://tomcat.apache.org/tomcat-6.0-doc/config/cluster-deployer.html The source code is probably your best bet. See http://svn.apache.org/repos/asf/tomcat/trunk/java/org/apache/catalina/ha/deploy/FarmWarDeployer.java As far as I am aware, it isn't production ready. As always, patches are welcome. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat as Windows service and output window
Hi to everybody! I installed Tomcat as service in Windows XP. In my application i use java.awt.TrayIcon to show an icon in system Traybar. If i start tomcat (as service) without checking allow service interact with Desktop i don't see my icon on system traybar. Checking that flag makes my icon appear and working well, but tomcat's output window also appears...is there a way to hide it? Thanks in advance. -- View this message in context: http://www.nabble.com/Tomcat-as-Windows-service-and-output-window-tp19548553p19548553.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keepincreasing....
- Original Message - From: Caldarale, Charles R [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, September 18, 2008 5:26 AM Subject: RE: Tomcat 5.5, JNDI Connection Pooling, Active connections keepincreasing From: sinoea kaabi [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat 5.5, JNDI Connection Pooling, Active connections keepincreasing I could accept the fact that we should create new objects of Dao's, but for getting a datasource or connection it should make sense to have a utility class with static methods. Absolutely - Johnny K's suggestion of doing a new every time is utter nonsense. --- I eat humble pie you right... completely off track... One of the problems is that I'm not thinking framework... and sinoea is in one. Also not having used DBCP I'm at a disadvantage here... maybe should just shut the hell up... As I see it... sinoea is creating a singleton... to hold that data source... he has to because the control servlet is inside a framework, so he is holding a pool from the fridge of the framework... So... struts people... just help this guy... Does struts have a better built in way to manage the pool... so he can just get the reference to it? If not... what is standard practice for using a third party pool in the struts framework... He's into holding stuff in statics... because he is trying to keep a single instance of the pool available to all the rest of his action objects... Thats what he's asking... what is the right way to do that in struts like maybe its standard practice to hold DHCP in a servlet context attribute... or maybe struts has a really clever way of doing that for you... thats the question? ... my suggestions do suck... what is the right way in struts to hold that 3rd party pool dish out references where they needed ? --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
hello world
This cuts across IDE, OS and server. I'm running Ubuntu: [EMAIL PROTECTED]:~$ [EMAIL PROTECTED]:~$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=8.04 DISTRIB_CODENAME=hardy DISTRIB_DESCRIPTION=Ubuntu 8.04.1 [EMAIL PROTECTED]:~$ [EMAIL PROTECTED]:~$ sudo apt-get update; sudo apt-get upgrade; sudo apt-get dist-upgrade ... which, near as I can tell, is fully updated. I'm also running Netbeans 6.0.1 and Java 6, and Tomcat 5.5. (If Ubuntu is up to date, why isn't Netbeans and Tomcat? anyhow.) From Netbeans I've installed the Tomcat plug-in, which seems to have resulted in two Tomcat directories: /usr/share/tomcat5.5 /usr/share/tomcat5.5-webapps When I go to create a new web application from the IDE, Netbeans prompts for the user/password for a manager and the path to Catalina. Which version of Tomcat are they referencing? Do I need to install Tomcat 5.5 from Ubuntu, or just the plug-in from Netbeans? Just not quite sure how to get started. Navigating to localhost just gives it works, so I'll have to dig further into fixing tomcat. It just seems that the one thing depends on another, which goes in a circle so that I'm not even sure of my question. -Thufir - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat usage
Peter Crowther wrote: From: Kusuma Pabba [EMAIL PROTECTED] what is the difference between running tomcat server and as client Tomcat is a Web server. There is no concept of running it as a client. What are you trying to do? We might be able to help more if you tell us! - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] actually i want to use tomcat on my arm processor and i am not understanding how to use it on that 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 proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat usage
From: Kusuma Pabba [mailto:[EMAIL PROTECTED] actually i want to use tomcat on my arm processor and i am not understanding how to use it on that 1) Set up an appropriate operating system on your ARM processor that includes a TCP/IP stack and support for a good Java virtual machine (must be at least J2SE - I don't think Tomcat will work under J2ME). 2) Test for TCP/IP network connectivity between whatever you're using to view your Tomcat content and your ARM device. 3) Ensure the Java virtual machine runs at least a hello world program that you've developed. 4) Download an appropriate version of Tomcat, and install on the operating system and Java virtual machine that you have tested and shown to be working. As you have installed an appropriate operating system, you should be able to follow the instructions for that operating system. 5) Start Tomcat, and browse to its default page using a browser on whatever system you identified in step 2. There may be other ways of working, but most of the embedded Tomcats I've seen on devices are running on embedded Linux of one variety or another. - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
new tomcat 6.0.18 won't start
Hi, We have a problem with new tomcat starting with our application i got the error in catalina.out Exception in thread main java.lang.NoClassDefFoundError: Caused by: java.lang.ClassNotFoundException: at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) We start our application with our own catalina_base property and other environment properties and call directly catalina.sh after all env. variables are set up. We don't use standart war file deploy. All works fine with 6.0.16 I have checked catalina.properties, server.xml, web.xml, catalina.sh and i can't see any major changes compare to version 6.0.16 which works just fine. I got the same error with latest tomcat 5 older version are fine again. Any toughts what could be wrong? Thanks Pavel - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat usage
Peter Crowther wrote: From: Kusuma Pabba [mailto:[EMAIL PROTECTED] actually i want to use tomcat on my arm processor and i am not understanding how to use it on that 1) Set up an appropriate operating system on your ARM processor that includes a TCP/IP stack and support for a good Java virtual machine (must be at least J2SE - I don't think Tomcat will work under J2ME). 2) Test for TCP/IP network connectivity between whatever you're using to view your Tomcat content and your ARM device. 3) Ensure the Java virtual machine runs at least a hello world program that you've developed. 4) Download an appropriate version of Tomcat, and install on the operating system and Java virtual machine that you have tested and shown to be working. As you have installed an appropriate operating system, you should be able to follow the instructions for that operating system. 5) Start Tomcat, and browse to its default page using a browser on whatever system you identified in step 2. There may be other ways of working, but most of the embedded Tomcats I've seen on devices are running on embedded Linux of one variety or another. - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] thanks for the reply, i cannot load full versions of java and j2se on my arm processor so i run my java programs using cvm by directly loading .class files as u said i have ported apache-tomcat-5.5.27 on it and exported the path of that cvm and tried it out ./startup.sh was getting executed but not ./shutdown.sh it was giving java not found i also have firefox on my arm processor but i am not able to understand how to use http on it these are the problems with my arm processor is there any possibility to use tomcat on it please do answer and excuse me if anything is asked wrongly.. thanks and regards 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 proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: new tomcat 6.0.18 won't start
Pavel Savara wrote: Hi, We have a problem with new tomcat starting with our application i got the error in catalina.out Exception in thread main java.lang.NoClassDefFoundError: Caused by: java.lang.ClassNotFoundException: at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) We start our application with our own catalina_base property and other environment properties and call directly catalina.sh after all env. variables are set up. We don't use standart war file deploy. All works fine with 6.0.16 I have checked catalina.properties, server.xml, web.xml, catalina.sh and i can't see any major changes compare to version 6.0.16 which works just fine. I got the same error with latest tomcat 5 older version are fine again. Any toughts what could be wrong? Sounds like https://issues.apache.org/bugzilla/show_bug.cgi?id=45585 The fix is http://svn.apache.org/viewvc?view=revrevision=685715 The catalina.sh change is the only one you need to apply. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5, JNDI Connection Pooling, Active connections keepincreasing....
Struts datasource usage is deprecated, they encourage users not to try their datasource configuration in the xml. Instead I was advised to manually configure JNDI connection pooling with Struts. From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keepincreasing Date: Thu, 18 Sep 2008 12:04:11 +0200 - Original Message - From: Caldarale, Charles R [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, September 18, 2008 5:26 AM Subject: RE: Tomcat 5.5, JNDI Connection Pooling, Active connections keepincreasing From: sinoea kaabi [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat 5.5, JNDI Connection Pooling, Active connections keepincreasing I could accept the fact that we should create new objects of Dao's, but for getting a datasource or connection it should make sense to have a utility class with static methods. Absolutely - Johnny K's suggestion of doing a new every time is utter nonsense. --- I eat humble pie you right... completely off track... One of the problems is that I'm not thinking framework... and sinoea is in one. Also not having used DBCP I'm at a disadvantage here... maybe should just shut the hell up... As I see it... sinoea is creating a singleton... to hold that data source... he has to because the control servlet is inside a framework, so he is holding a pool from the fridge of the framework... So... struts people... just help this guy... Does struts have a better built in way to manage the pool... so he can just get the reference to it? If not... what is standard practice for using a third party pool in the struts framework... He's into holding stuff in statics... because he is trying to keep a single instance of the pool available to all the rest of his action objects... Thats what he's asking... what is the right way to do that in struts like maybe its standard practice to hold DHCP in a servlet context attribute... or maybe struts has a really clever way of doing that for you... thats the question? ... my suggestions do suck... what is the right way in struts to hold that 3rd party pool dish out references where they needed ? --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Make a mini you and download it into Windows Live Messenger http://clk.atdmt.com/UKM/go/111354029/direct/01/
Re: new tomcat 6.0.18 won't start
Sounds like https://issues.apache.org/bugzilla/show_bug.cgi?id=45585 The fix is http://svn.apache.org/viewvc?view=revrevision=685715 The catalina.sh change is the only one you need to apply. That was it thanks a lot Pavel On Thu, 2008-09-18 at 12:08 +0100, Mark Thomas wrote: Pavel Savara wrote: Hi, We have a problem with new tomcat starting with our application i got the error in catalina.out Exception in thread main java.lang.NoClassDefFoundError: Caused by: java.lang.ClassNotFoundException: at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) We start our application with our own catalina_base property and other environment properties and call directly catalina.sh after all env. variables are set up. We don't use standart war file deploy. All works fine with 6.0.16 I have checked catalina.properties, server.xml, web.xml, catalina.sh and i can't see any major changes compare to version 6.0.16 which works just fine. I got the same error with latest tomcat 5 older version are fine again. Any toughts what could be wrong? Sounds like https://issues.apache.org/bugzilla/show_bug.cgi?id=45585 The fix is http://svn.apache.org/viewvc?view=revrevision=685715 The catalina.sh change is the only one you need to apply. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keepincreasing....
- Original Message - From: sinoea kaabi [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, September 18, 2008 1:24 PM Subject: RE: Tomcat 5.5, JNDI Connection Pooling, Active connections keepincreasing Struts datasource usage is deprecated, they encourage users not to try their datasource configuration in the xml. Instead I was advised to manually configure JNDI connection pooling with Struts. Ah... the thlot pickens --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing....
If this measurement is made from the point of view of the DB server (I don't think the OP ever said), the number if fine. Actually if you look at the code in the OPs original post, you'll see how the measurement is being made. It's essentially: public static DataSource getDataSource() throws SQLException { (snip ...) ds = (BasicDataSource)initContext.lookup(java:/comp/env/jdbc/myDB); (snip ) } private static void logDataSource(final BasicDataSource ds) { (snip ...) DATASOURCE.info(The number of active connections are : + ds.getNumActive()); DATASOURCE.info(The number of idle connections are : + ds.getNumIdle()); (snip ...) } The numbers appear to be coming from the DBCP BasicDataSource itself. --David Caldarale, Charles R wrote: From: Johnny Kewl [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing sinoea, of course you can... that looks thread safe... but what I'm trying to do, is just make it bullet proof... Your suggestion does nothing to improve reliability, it just slows things down by creating completely unnecessary do-nothing objects. You leaking connections, we dont know why... Actually we don't know it's leaking connections. All we know is that somewhere in the overall system the number of connections is seen to be 37. If this measurement is made from the point of view of the DB server (I don't think the OP ever said), the number if fine. DBCP keeps the real connections open for as long as the DB server permits; it's only if requests stall because all the connections are busy (in use by other requests), then there's a leak. I haven't read anything yet that indicates that's the case here. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Server Maintenance Across Timezones (global)
John- your approach works best for long term operational and maintenance considerations layersa properly architected and designed enterprise system has ability to interchange either the UI or DB with minimal impact to the other layers except for predefined 'interface points' which AOP folks call 'contract' Unfortunately the majority of 'J2EE enterprise systems' which start as prototypes have evolved into monolithic un-architected and un-documented tangled mess..where everyone is afraid to touch an attribute in one component of one layer which would crash the other layers does anyone remember Structured Exception Handling? Thanks, Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Wed, 17 Sep 2008 16:08:19 -0700 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Re: Server Maintenance Across Timezones (global) John5342 wrote: I get around my the same kinds of problems by keeping all the layers of the web app seperate so that i can swap them out one at a time and create a near seemless upgrade. The layers in my web apps are: 1 The web interface. 2. The application logic. (this may itself be several layers in itself if the app is complicated) 3. The database access layer. 4. The database. [...] Hope what i said is useful. I think it will be useful when we get to the point of redesigning the app from scratch. It's a bit tough to replace the data access layer of a large complex app that's been around for a long time though. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Want to do more with Windows Live? Learn “10 hidden secrets” from Jamie. http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008
Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keepincreasing....
The datasource object is threadsafe and a prime example of the factory pattern. In my designs, I tend to retrieve a reference to it early on and then store it somewhere convenient for the life of the request. Then each db access method get's a connection, uses it and closes it before returning. I'm also a fan of the architecture Chris Shultz posted (only one try catch w/ try/catches in the finally block for each db object): try { // get connection // do something } catch ( exception e ) { // log or otherwise handle the error // I tend to wrap the exception and rethrow it in a higher level exception } finally { try { resultset.close() ; } catch (exception e1) {} try { statement.close() ; } catch (exception e2) {} try { connection.close() ; } catch (exception e3) {} } return ... Obviously I'm being really terse here, but I think you see the general idea. As an overall pattern, I tend to encapsulate db access in a small number of methods like the one above, leaving the remainder of the project free to work with beans/arrays/hashtables/whatever. I also like Chris' ideas regarding how to diagnose the issue -- drop the pool size down really small and see if the pool get's exhausted. What you are seeing may be some wierd artifact of how DBCP manages it's connection pool. --David sinoea kaabi wrote: Right, since I seem to be the only alien having this problem I would be happy to know how you write jdbc classes and (if any) a datasource manager. Do you create a separate class for retrieving connections or datasources. Are the methods static. How do your dao's code look like? For example when using a connection, statement, resultset. How and where do you close them, and do you return values afterwards. Do you use the factory pattern? Any code examples, step by step guide of something that works would be very helpful. Basically, a great step by step tutorial would be more helpful than trying to spot my problem as everyone seems to have a different opinion from the other. Frankly speaking, I believe there is no sufficient and a spot-on-clear documentation of what thread safe servlet containers really mean and the usage of static methods on these servlet containers. The current documentation can be understood in many different ways. What interests me more about this thread is that many people suggested to avoid using static methods in web applications. Avoiding static methods for DAO's is understandable, but avoiding static methods for retrieving a datasource seems strange. I have seen millions (if not zillions) code examples on the net where static methods are used for retrieving datasources. So I would be happy to see how others write code without static methods. Thanks, Sinoea From: [EMAIL PROTECTED] To: users@tomcat.apache.org Date: Wed, 17 Sep 2008 22:26:16 -0500 Subject: RE: Tomcat 5.5, JNDI Connection Pooling, Active connections keepincreasing From: sinoea kaabi [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat 5.5, JNDI Connection Pooling, Active connections keepincreasing I could accept the fact that we should create new objects of Dao's, but for getting a datasource or connection it should make sense to have a utility class with static methods. Absolutely - Johnny K's suggestion of doing a new every time is utter nonsense. So is a connection a thread-safe object or not? No, a connection is not thread-safe: it is designed to be be used by only one thread at a time. If you have multiple threads accessing a connection object *simultaneously*, you will have problems. On the other hand, connection managers (e.g., the commons-dbcp code) are thread-safe; multiple threads may call one simultaneously to acquire connection objects, and each thread is guaranteed to be given a separate object. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Make a mini you and download it into Windows Live Messenger http://clk.atdmt.com/UKM/go/111354029/direct/01/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
Re: Tomcat as Windows service and output window
- Original Message - From: SerFingolfin [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Thursday, September 18, 2008 10:44 AM Subject: Tomcat as Windows service and output window Hi to everybody! I installed Tomcat as service in Windows XP. In my application i use java.awt.TrayIcon to show an icon in system Traybar. If i start tomcat (as service) without checking allow service interact with Desktop i don't see my icon on system traybar. Checking that flag makes my icon appear and working well, but tomcat's output window also appears...is there a way to hide it? Thanks in advance. -- View this message in context: http://www.nabble.com/Tomcat-as-Windows-service-and-output-window-tp19548553p19548553.html Sent from the Tomcat - User mailing list archive at Nabble.com. Interesting I think you probably into a little Win32 API I vaguely remember ShowWindow(yada blah)... and there is a way in Win32 to also get the window handle from the window name... I've forgotten.. so thats a little JNI I dont think its too easy Another rather weird way of maybe tackling it... is that Java as a JavaW variation on windows... JavaW starts a java program without a window... so a little messing around with BAT files will let you see if the task bar still works with that... I imagine it does... Then just leave the service as a service... because it runs without a user or dont use a service at all and start TC from the RUN folder in windows But then you are going to have to add something to you task bar to let the guy shut it down... a process to shutdown.bat because the use is blind... Then the service itself in tomacat is a program called Procrun... in fact its just renamed to TomcatW... it doesnt work with java in works with java's dll ie its starting the bootstrap classes from C code But you can redirect that to any java class you like with the right interface so you could start your SuperTaskBarJava.class... it does a JavaW tomcat... or startup bat calling JavaW and then if the user closes the services... your SuperTaskBarJava.class will do it... ... Take your pick... I think they all lots of work ;) Hopefully one idea there works have fun ;) --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat/apache - JDBC errors w/ jt400.jar?
1. Don't ever modify the CLASSPATH. Tomcat by default ignore's it and for good reason. 2. Your webapp's WEB-INF/lib and tomcat's common/lib are essentially mutually exclusive when it comes to jar files. If the .jar file exists in one, it can't exist in the other. If you have jt400.jar in both, remove it from one. If you are using it for a tomcat provided database pool, it should be removed from your webapp's WEB-INF/lib. Otherwise it's up to you which one is dropped. WE have compiled a mod_jk tha apache accepts and we can server up *.jsp's from our website but don;t have issues until we add the jt400.jar file? WE have tried multiple versions of the jt400.jar file with no luck... I doubt mod_jk has anything to do with getting your IBM AS400 ODBC connections to work. BTW, I hope you meant JDBC. ODBC is a MS technology. --David pichels wrote: Hi, I am newbie - pardon any lack of details or etiquite on my first post! We are trying to get our website to run correctly on a RHEL5.2 Linux server and getting errors with the JDBC - IBM AS400 ODBC connection. SEVERE: Servlet /wsidr threw load() exception java.lang.NoClassDefFoundError: com/ibm/as400/access/DirectoryEntryList at java.lang.Class.getDeclaredConstructors0(Native Method) ERROR LOADING CALENDAR: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.ibm.as400.access.AS400JDBCDriver' SQL error: Cannot load JDBC driver class 'com.ibm.as400.access.AS400JDBCDriver' JAVA: [EMAIL PROTECTED] root]# java -version java version 1.5.0_15 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04) Java HotSpot(TM) Client VM (build 1.5.0_15-b04, mixed mode, sharing) HTTP: [EMAIL PROTECTED] root]# apachectl -v Server version: Apache/2.0.46 Server built: Jun 19 2008 11:46:47 APACHE-Tomat: Tomcat 5.5.26 We have our jt400.jar in our classpath var within our webapps dir and in common/lib. /usr/local/tomcat5/common/lib/jt400.jar But, when we copy the jt400.jar file to this dir - it locks tomcat and the apache/tomcat connection locks and we have to killall java to shutdown! WE have compiled a mod_jk tha apache accepts and we can server up *.jsp's from our website but don;t have issues until we add the jt400.jar file? WE have tried multiple versions of the jt400.jar file with no luck... Our server.xml appears to be configured correctly. Haven't messed with the web.xml or any other config files. Do we need to add a workers.properties file to the Apache httpd conf? We configured older versions of tomcat/apache along time ago that worked with mod_jk + workers.properties, etc. Do we need to use jk2 or something else now? Any ideas or need more details? TIA -P - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apache and tomcat version
Ayden, On Thu, Sep 18, 2008 at 12:53 AM, [EMAIL PROTECTED] wrote: I would also like a Blogger like WordPress or Apache ROLLER Actually it's pretty simple: - Wordpress is based on PHP - Apache Roller is based on Java (Java-Webapp) There are some options to run PHP using Tomcat, but it's not recommended. There is no option to run Java within Apache HTTPD without a servlet-container such as Tomcat. That means: - When you're going for Wordpress, you'll need Apache HTTPD - When you're going for Roller (my fav), you'll need Tomcat However: Be aware that you can't run Tomcat on a so-called privileged port such as 80 on any Linux / Unix unless you're running Tomcat as root - which you wouldn't want to do due to security reasons. However. there are some options - preferably runnung Tomcat as a demon - which is described here:http://www.klawitter.de/tomcat80.html You also could front Tomcat with Apache HTTPD (by means of AJP/mod_jk or mod_proxy), however, configuration is a bit more tricky than the demon-solution. Hope that gives you a start! Gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
request for servlet filter
Hi. In a Tomcat servlet application context, I use the jCIFS filter (see jcifs.samba.org) to perform Windows NTLM authentication of IE clients. It works well. However, to work around a problem of browsers not being set up properly, I would need a servlet filter inserted *before* jCIFS in the chain, which would : - detect if a client attempts a Basic (or Digest) authentication - if yes, either return a static non-no html page top the client immediately as a response, or re-direct the client to such a page (1) - if no, then simply let the request through to jCIFS and the application I can write such a servlet filter myself, but if it already exists I might as well save myself the time. Would anyone know if such a module is already available ? In principle, I have a preference for a filter that would be light-weight and do approximatively the above and nothing much else, but something usable under Tomcat and offering capabilities similar to the mod_rewrite module of Apache would also interest me. Since in this case I also have an Apache http front-end, I could use mod_rewrite in the front-end to do it, but I prefer for maintenance reasons to keep everything related in one place. (1) and, as a subsidiary question, what would the Tomcat gurus here suggest as the best alternative between these two ? Thanks in advance, André - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat/apache - JDBC errors w/ jt400.jar?
agreed you should'nt duplicate any jars for webapp specific WEB-INF/lib with same driver jars in COMMON/lib keep your java and JDBC and TC environment simple by deploying everything either on windows and or unix box first when you get Java, TC, DB and webapps working and your boss has alot of money *and time* feel free to complicate your working environment with ODBC drivers (why you need to use MS DB driver technology when a jdbc driver will do is beyond me) port the environment to problematic platforms such as AS400 In case anything goes awry and it will you can always fall back to your working environment GL Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Thu, 18 Sep 2008 08:58:46 -0400 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Re: Tomcat/apache - JDBC errors w/ jt400.jar? 1. Don't ever modify the CLASSPATH. Tomcat by default ignore's it and for good reason. 2. Your webapp's WEB-INF/lib and tomcat's common/lib are essentially mutually exclusive when it comes to jar files. If the .jar file exists in one, it can't exist in the other. If you have jt400.jar in both, remove it from one. If you are using it for a tomcat provided database pool, it should be removed from your webapp's WEB-INF/lib. Otherwise it's up to you which one is dropped. WE have compiled a mod_jk tha apache accepts and we can server up *.jsp's from our website but don;t have issues until we add the jt400.jar file? WE have tried multiple versions of the jt400.jar file with no luck... I doubt mod_jk has anything to do with getting your IBM AS400 ODBC connections to work. BTW, I hope you meant JDBC. ODBC is a MS technology. --David pichels wrote: Hi, I am newbie - pardon any lack of details or etiquite on my first post! We are trying to get our website to run correctly on a RHEL5.2 Linux server and getting errors with the JDBC - IBM AS400 ODBC connection. SEVERE: Servlet /wsidr threw load() exception java.lang.NoClassDefFoundError: com/ibm/as400/access/DirectoryEntryList at java.lang.Class.getDeclaredConstructors0(Native Method) ERROR LOADING CALENDAR: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.ibm.as400.access.AS400JDBCDriver' SQL error: Cannot load JDBC driver class 'com.ibm.as400.access.AS400JDBCDriver' JAVA: [EMAIL PROTECTED] root]# java -version java version 1.5.0_15 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04) Java HotSpot(TM) Client VM (build 1.5.0_15-b04, mixed mode, sharing) HTTP: [EMAIL PROTECTED] root]# apachectl -v Server version: Apache/2.0.46 Server built: Jun 19 2008 11:46:47 APACHE-Tomat: Tomcat 5.5.26 We have our jt400.jar in our classpath var within our webapps dir and in common/lib. /usr/local/tomcat5/common/lib/jt400.jar But, when we copy the jt400.jar file to this dir - it locks tomcat and the apache/tomcat connection locks and we have to killall java to shutdown! WE have compiled a mod_jk tha apache accepts and we can server up *.jsp's from our website but don;t have issues until we add the jt400.jar file? WE have tried multiple versions of the jt400.jar file with no luck... Our server.xml appears to be configured correctly. Haven't messed with the web.xml or any other config files. Do we need to add a workers.properties file to the Apache httpd conf? We configured older versions of tomcat/apache along time ago that worked with mod_jk + workers.properties, etc. Do we need to use jk2 or something else now? Any ideas or need more details? TIA -P - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ See how Windows connects the people, information, and fun that are part of your life. http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/
Re: Balance and sync data
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hassan, Hassan Schroeder wrote: On Wed, Sep 17, 2008 at 2:57 PM, Christopher Schultz [EMAIL PROTECTED] wrote: Why not have your upload servlet invoke rsync when a new file has been stored? You're not seriously suggesting that as a viable production strategy, are you? [ IM IN UR DURECTRY COPYNG UR IMAGES ] Sure -- why not? It works nicely for a use case like this. And exec'ing a process as needed beats spawning one every minute! I suppose it depends on the frequency of image uploads. 100 images a day wouldn't be too bad. 100 images per minute would seriously suck. NFS, baby. NFS. Um, single point of failure? :-) NFS /can/ be done robustly. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkjSag8ACgkQ9CaO5/Lv0PDWiACfY8paCVV3A++E5uZMSfn3yENH hoMAn3n0+xcZxZ2KjL6Oh68vzbbuQUq7 =CGac -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: hello world
From: news [mailto:[EMAIL PROTECTED] On Behalf Of thufir Subject: hello world I'm running Ubuntu: [EMAIL PROTECTED]:~$ I thought mentats weren't supposed to use computers... Do I need to install Tomcat 5.5 from Ubuntu We've had no end of problems with 3rd-party repackaged versions of Tomcat. I'd strongly recommend you throw that one away, then download and install a real Tomcat from tomcat.apache.org (latest version recommended, of course). Otherwise, perhaps Ubuntu support could help. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hello world
Caldarale, Charles R wrote: From: news [mailto:[EMAIL PROTECTED] On Behalf Of thufir Subject: hello world I'm running Ubuntu: [EMAIL PROTECTED]:~$ I thought mentats weren't supposed to use computers... No matter what, the spice must flow. If it takes a computer, it takes a computer. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Non-Heap Memory always increasing during deployment for TC 5.5.26/Solaris/JVM 1.5.0_16
None of them worked. Although putting the -Dcom.sun.management.jmxremote=true i stopped getting the error messages, but still Jconsole wouldn't work. The only way was to copy directly in the command in the catalina.bat, which is terrible I know!!! %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs=%JAVA_ENDORSED_DIRS% -classpath %CLASSPATH% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA_HOME% -Djava.io.tmpdir=%CATALINA_TMPDIR% -Dcom.sun.management.jmxremote.port= -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false %MAINCLASS% %CMD_LINE_ARGS% %ACTION% And I still got the same problem, it keeps growing the non-heap memory, although to a much smaller amount... I will try two other things: - use java6 on the solaris - use eclipse TPTP Locally to see which classes are hanging. - use eclipse TPTP remote (whioch seems will be a pain) to profile in the remote tomcat But for what it seems, all the classes from my applications are hanging. I also tested with other 3 applications and all of them have the same behaviour. regards emerson 2008/9/17 Caldarale, Charles R [EMAIL PROTECTED]: From: Brian Clark [mailto:[EMAIL PROTECTED] Subject: Re: Non-Heap Memory always increasing during deployment for TC 5.5.26/Solaris/JVM 1.5.0_16 I think you need to add one more line to your CATALINA_OPTS statement: -Dcom.sun.management.jmxremote=true The above is not necessary. Any declaration of a system property beginning with com.sun.management.jmxremote enables remote JMX access, including specification of a port; the =true is just noise. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat as Windows service and output window
Thanks for your help! But that's not so easy doing that... I was wondering how Netbeans can make my traybar work hiding tomcat's output window at the same time! And not only hide : they can redirect tomcat's output to a text area inside the IDE... -- View this message in context: http://www.nabble.com/Tomcat-as-Windows-service-and-output-window-tp19548553p1946.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Balance and sync data
On Thu, Sep 18, 2008 at 7:47 AM, Christopher Schultz [EMAIL PROTECTED] wrote: I suppose it depends on the frequency of image uploads. 100 images a day wouldn't be too bad. 100 images per minute would seriously suck. True, I was envisioning a relatively low-frequency operation, for no particular good reason :-) Um, single point of failure? :-) NFS /can/ be done robustly. OK, I haven't encountered an NFS cluster in the wild, but apparently they exist. So, yes, that'd be a solution, and would probably scale better than using rsync. -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing....
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 sinoea, sinoea kaabi wrote: The static methods are not thread-safe you say! No, your static methods are perfectly threadsafe. Johnny is just getting itchy because it's not what he'd do. You aren't using any class-level members in your static methods so you should be fine. Or in fact, you must be right, should I declare them synchronized? No! This will limit your code to serialized database access, in which case you are really only allowing a single connection to be used at a time. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkjSejEACgkQ9CaO5/Lv0PDPUACggEWdUUKYajU1uRr8YgO/u+2J //gAoLGPZqMvl6WDyEKQWnNkYpV2Tdrp =ewSc -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing....
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 sinoea, sinoea kaabi wrote: Collection branches = new BranchData().loadBranches(Data.getDataSource(), 1); Can the getDataSource method be static? Not only can the getDataSource method be static, you could also call it directly from your loadBranches() method and make your interface simpler. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkjSen8ACgkQ9CaO5/Lv0PBJYgCgiix3mAHtfeiU7lSyIoL3q4mH 0MIAmwXwFqJX1efFRKVa1hI2kpcRchjg =Z3is -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do you have your dev environment setup?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peng, Peng Tuck Kwok wrote: You could use ant to automate it. +1 I use good old emacs (while ducking to avoid being hit with fruit) and ant scripts to do everything, including compiling, deployment, and even starting and stopping tomcat. Each of my applications can be deployed to a different instance of Tomcat using very similar sets of scripts (and the differences are only due to the fact that our apps are different, not because the deployment is done differently). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkjSe1EACgkQ9CaO5/Lv0PBqyQCghHSR/5Cxu4BjTyQnrdK9DFec bjIAmwQ5npcHhUvY6tMhJOUzzW6B3BNm =YPDd -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Server Maintenance Across Timezones (global)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alan, Alan Chaney wrote: As far as the database side of it goes it seems to me that much of it is a question of making the 'live-update' a design requirement for any upgrades. You have to make it possible for the changes to the database to 'co-exist' and then update the live database independently of the application. When the new tables are ready, deploy your new application and (hopefully) go home smiling. This is the right way to do it, but it's a complete PITA to implement. :( I'd be interested to hear from people who have clustered solutions. Once again I suspect there may be problems with trying to sustain sessions across the upgrades. We don't do this (operating only in the US for now), but one way to do this is to have multiple clusters, and multiple clustered databases using replication across clusters. You remove one of the db clusters from the replication schedule and one of the app server clusters from normal service, and let your clients move to other machines. Then, you upgrade the segregated cluster while your users use the machines and databases running your old stuff. Bring this new cluster online and let users start using it. Repeat with the other clusters, and then resume db replication. It's tricky, but possible, especially if your users will be okay if some of them run the old version while others get the new version -- /and/ if they don't need to share data immediately (i.e. the time delay before all databases are sync'd up is tolerable). Then again, there's always the weekend, when most folks aren't working, anyway ;) - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkjSfrUACgkQ9CaO5/Lv0PA90gCfY6mqVVdb80FOjoyz95Dlb5Lt +2gAni0v8tzPtG5IoDSAC37D0V4FiPx+ =lTF9 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: request for servlet filter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: However, to work around a problem of browsers not being set up properly, I would need a servlet filter inserted *before* jCIFS in the chain, which would : - detect if a client attempts a Basic (or Digest) authentication - if yes, either return a static non-no html page top the client immediately as a response, or re-direct the client to such a page (1) - if no, then simply let the request through to jCIFS and the application So... the user is rejected if they are using Basic or Digest authentication? That seems backward. I can write such a servlet filter myself, but if it already exists I might as well save myself the time. Didn't I already write this one for you? ;) something usable under Tomcat and offering capabilities similar to the mod_rewrite module of Apache would also interest me. You could check out http://tuckey.org/urlrewrite/, but I think that mod-rewrite is a full Swiss Army Chainsaw while urlrewrite is more of a santoku knife. (1) and, as a subsidiary question, what would the Tomcat gurus here suggest as the best alternative between [redirect versus not]? That depends on what you want your users' experiences to be. What if they hit RELOAD? Do you want to re-run the test just in case they have logged-in again? My guess is that you'll want them to be able to re-load, so I wouldn't redirect. On the other hand, if you want to essentially ignore reloads and continue showing the go away page, then you should do a redirect. It seems more likely that you'll want to return a 401 response to the initial request, rather than returning any 3xx response. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkjSgSQACgkQ9CaO5/Lv0PDDNwCgvqIMD+K4PYlTO7QZMjZbI77s 8kwAniT1ayMQ6DHG6gqOpbgM4L7Eia0V =+X87 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat as Windows service and output window
- Original Message - From: SerFingolfin [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Thursday, September 18, 2008 5:29 PM Subject: Re: Tomcat as Windows service and output window Thanks for your help! But that's not so easy doing that... I was wondering how Netbeans can make my traybar work hiding tomcat's output window at the same time! And not only hide : they can redirect tomcat's output to a text area inside the IDE... Netbeans doesnt start TC as a service? Its probably starting TC with JavaW ie Java (shows terminal) JavaW (does not) A windows service is a different animal that starts TC thru a JVM.dll Netbeans is capturing the PrintStream... google for PrintStream System Because a normal user started NB... the processes are running in that users name and they have desktop rights... A service does not (windows thing) unless allow whatever is set. So all NB is doing is JavaW tomcat Capture printstream I'm not sure how much you can see in the ant script... but how they launch TC is probably there... A service... is a different story... because they run even when no one has logged on... ... something like that ;) Linux is much easier... same trick with a little behind it ;) Have fun ;) --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Invoking JSP/servlet from non-request thread?
I want to invoke JSPs/servlets from non-request threads, e.g. to render HTML for use in e-mails, etc. I tried the simple-minded approach (with Tomcat 6.0.18): ServletContext servletContext = MyContextMonitor.getContext( /myContextName ); RequestDispatcher dispatcher = servletContext.getRequestDispatcher( /somePage.jsp ); dispatcher.include( new Request( servletContext ), new Response() ); where Request and Response are mock HttpServletRequest and HttpServletResponse implementations. Response's output stream and writer are routed to System.out. I get the dispatcher fine. I get output if I use /somePropertiesFile.properties in place of /somePage.jsp -- but only if I use include(), not forward(). I don't get output for /somePage.jsp in either case. Any ideas? Anyone /successfully /doing this sort of thing? Is there an existing library for this that I'm overlooking? It seems really bizarre that for all the time and energy invested in servlet and JSP based HTML page generation that there's not a standard bridge to using servlets and JSPs from other threads to generate HTML files, e-mails, etc. -- Jess Holle
Re: tomcat usage
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kusuma, Kusuma Pabba wrote: i also have firefox on my arm processor but i am not able to understand how to use http on it Wait... are you running on embedded hardware, or just a desktop/server running on an ARM processor? i cannot load full versions of java and j2se on my arm processor so i run my java programs using cvm by directly loading .class files This is going to be a problem. Why not read some of the information available online by doing a good search for tomcat arm processor. You'll find gems like this: http://www.mail-archive.com/[EMAIL PROTECTED]/msg04981.html these are the problems with my arm processor is there any possibility to use tomcat on it You can probably get /something/ running. What are the capabilities that you need? Perhaps Tomcat isn't required. Do you have a Java-based web application that needs to be deployed on this machine? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkjShCUACgkQ9CaO5/Lv0PCzLQCeJb6bohW+ZmZpHHxP4p3kSv0D YUUAmwaEP8+ZH4nCiNJQC8fOcncmizz0 =AXvJ -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JspC woes in Tomcat 6 (Urgent)
Hi, Just upgraded my Tomcat from 5.5 to 6.0 and noticed that my JspC task in build.xml is no longer working. The documentation for 6.0 quote is below, but with 6.0 there seems to be no such thing as server/lib and common/lib, so something is not right. Could someone plese tell me how to fix this? Thanks, Dola taskdef classname=org.apache.jasper.JspC name=jasper2 classpath pathelement location=${java.home}/../lib/tools.jar/ fileset dir=${ENV.CATALINA_HOME}/server/lib include name=*.jar/ /fileset fileset dir=${ENV.CATALINA_HOME}/common/lib include name=*.jar/ /fileset path refid=myjars/ /classpath /taskdef - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Balance and sync data
On Thu, 2008-09-18 at 08:34 -0700, Hassan Schroeder wrote: On Thu, Sep 18, 2008 at 7:47 AM, Christopher Schultz [EMAIL PROTECTED] wrote: I suppose it depends on the frequency of image uploads. 100 images a day wouldn't be too bad. 100 images per minute would seriously suck. True, I was envisioning a relatively low-frequency operation, for no particular good reason :-) Um, single point of failure? :-) NFS /can/ be done robustly. OK, I haven't encountered an NFS cluster in the wild, but apparently they exist. So, yes, that'd be a solution, and would probably scale better than using rsync. NFS was one of my firsts shots (after rsync). Of course it should use ip-sec to make it more secure, the problem with that option is that I don't really know yet how much will consume the image load to decide to set it in a dedicated server (to look to the future) or add it to a tomcat server and make the load balance hit that server less than the other one. The problem here is the single point of failure, but supposing it's just an nfs with a bunch of images, it won't take too much to restore another server with the same data. Thanks for your help Hassan, may be nfs would be ok if I can securize it enough. Cheers Martín - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Invoking JSP/servlet from non-request thread?
- Original Message - From: Jess Holle [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Thursday, September 18, 2008 6:36 PM Subject: Invoking JSP/servlet from non-request thread? I want to invoke JSPs/servlets from non-request threads, e.g. to render HTML for use in e-mails, etc. I tried the simple-minded approach (with Tomcat 6.0.18): ServletContext servletContext = MyContextMonitor.getContext( /myContextName ); RequestDispatcher dispatcher = servletContext.getRequestDispatcher( /somePage.jsp ); dispatcher.include( new Request( servletContext ), new Response() ); where Request and Response are mock HttpServletRequest and HttpServletResponse implementations. Response's output stream and writer are routed to System.out. I get the dispatcher fine. I get output if I use /somePropertiesFile.properties in place of /somePage.jsp -- but only if I use include(), not forward(). I don't get output for /somePage.jsp in either case. Any ideas? Anyone /successfully /doing this sort of thing? Is there an existing library for this that I'm overlooking? It seems really bizarre that for all the time and energy invested in servlet and JSP based HTML page generation that there's not a standard bridge to using servlets and JSPs from other threads to generate HTML files, e-mails, etc. -- Jess Holle Jess, someone a while back was trying something similar, and I dont think they came right... Part of the reason is that even though TC makes is look simple, its one hell of an engine... like for example the buffering and things like chunking, where its not actually happening in one conversation... I think you going to find it much easier just making a dummy http client... Url Connection or something like that. If it was just JSP's and one was trying to generate html, I would guess that tying straight into Jasper with a dummy engine may work... I would also just google for MIME and things like JavaMail... in the hope you stumble onto engines/tricks others are using... good luck --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
question about realm auth and digest attribute
if i'm going to be using sha-1 for the encryption, do i just specify digest=SHA, digest=SHA1, digest=SHA-1? thanks, joe
Re: JspC woes in Tomcat 6 (Urgent)
Try something like taskdef classname=org.apache.jasper.JspC name=jasper2 classpath id=jspc.classpath pathelement location=${java.home}/../lib/tools.jar/ fileset dir=${tomcatHome}/bin include name=*.jar/ /fileset pathelement location=${tomcatHome}/lib/ fileset dir=${tomcatHome}/lib include name=*.jar/ /fileset /classpath /taskdef Dola Woolfe wrote: Hi, Just upgraded my Tomcat from 5.5 to 6.0 and noticed that my JspC task in build.xml is no longer working. The documentation for 6.0 quote is below, but with 6.0 there seems to be no such thing as server/lib and common/lib, so something is not right. Could someone plese tell me how to fix this? Thanks, Dola taskdef classname=org.apache.jasper.JspC name=jasper2 classpath pathelement location=${java.home}/../lib/tools.jar/ fileset dir=${ENV.CATALINA_HOME}/server/lib include name=*.jar/ /fileset fileset dir=${ENV.CATALINA_HOME}/common/lib include name=*.jar/ /fileset path refid=myjars/ /classpath /taskdef - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: question about realm auth and digest attribute
- Original Message - From: Joe A [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Thursday, September 18, 2008 8:07 PM Subject: question about realm auth and digest attribute if i'm going to be using sha-1 for the encryption, do i just specify digest=SHA, digest=SHA1, digest=SHA-1? thanks, joe SHA, MD2, or MD5... I think I cant remember the reasons off hand, but in practice its MD5 only. (help me here people) --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: question about realm auth and digest attribute
Johnny Kewl wrote: - Original Message - From: Joe A [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Thursday, September 18, 2008 8:07 PM Subject: question about realm auth and digest attribute if i'm going to be using sha-1 for the encryption, do i just specify digest=SHA, digest=SHA1, digest=SHA-1? thanks, joe SHA, MD2, or MD5... I think I cant remember the reasons off hand, but in practice its MD5 only. http://tomcat.markmail.org/ HTTP DIGEST auth is MD5 only. Digested passwords are anything supported by the JVM. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Balance and sync data
--- On Wed, 9/17/08, Hassan Schroeder [EMAIL PROTECTED] wrote: From: Hassan Schroeder [EMAIL PROTECTED] Subject: Re: Balance and sync data To: Tomcat Users List users@tomcat.apache.org Date: Wednesday, September 17, 2008, 6:13 PM On Wed, Sep 17, 2008 at 2:57 PM, Christopher Schultz [EMAIL PROTECTED] wrote: Why not have your upload servlet invoke rsync when a new file has been stored? You're not seriously suggesting that as a viable production strategy, are you? [ IM IN UR DURECTRY COPYNG UR IMAGES ] Sure -- why not? It works nicely for a use case like this. And exec'ing a process as needed beats spawning one every minute! NFS, baby. NFS. Um, single point of failure? :-) What if NFS source is from DRBD [1]? DRBD provides alternative to an expensive single HA system ;) [1] http://www.drbd.org/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat/apache - JDBC errors w/ jt400.jar?
Hi Guys, Thanks for the tips. Ok - I'll make sure I have jt400.jar in only one dir. And not mess with the ClassPath, got it. Yep, sorry - I meant JDBC. We never used jk2, just mod_jk - I mis-wrote! Wwe found that we coded the server.xml wrong. Apparently it changed - we had been using Tomcat 5.5.12 and it appears the syntax for the XML changed in 5.5.26? -P David Smith-2 wrote: 1. Don't ever modify the CLASSPATH. Tomcat by default ignore's it and for good reason. 2. Your webapp's WEB-INF/lib and tomcat's common/lib are essentially mutually exclusive when it comes to jar files. If the .jar file exists in one, it can't exist in the other. If you have jt400.jar in both, remove it from one. If you are using it for a tomcat provided database pool, it should be removed from your webapp's WEB-INF/lib. Otherwise it's up to you which one is dropped. WE have compiled a mod_jk tha apache accepts and we can server up *.jsp's from our website but don;t have issues until we add the jt400.jar file? WE have tried multiple versions of the jt400.jar file with no luck... I doubt mod_jk has anything to do with getting your IBM AS400 ODBC connections to work. BTW, I hope you meant JDBC. ODBC is a MS technology. --David pichels wrote: Hi, I am newbie - pardon any lack of details or etiquite on my first post! We are trying to get our website to run correctly on a RHEL5.2 Linux server and getting errors with the JDBC - IBM AS400 ODBC connection. SEVERE: Servlet /wsidr threw load() exception java.lang.NoClassDefFoundError: com/ibm/as400/access/DirectoryEntryList at java.lang.Class.getDeclaredConstructors0(Native Method) ERROR LOADING CALENDAR: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.ibm.as400.access.AS400JDBCDriver' SQL error: Cannot load JDBC driver class 'com.ibm.as400.access.AS400JDBCDriver' JAVA: [EMAIL PROTECTED] root]# java -version java version 1.5.0_15 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04) Java HotSpot(TM) Client VM (build 1.5.0_15-b04, mixed mode, sharing) HTTP: [EMAIL PROTECTED] root]# apachectl -v Server version: Apache/2.0.46 Server built: Jun 19 2008 11:46:47 APACHE-Tomat: Tomcat 5.5.26 We have our jt400.jar in our classpath var within our webapps dir and in common/lib. /usr/local/tomcat5/common/lib/jt400.jar But, when we copy the jt400.jar file to this dir - it locks tomcat and the apache/tomcat connection locks and we have to killall java to shutdown! WE have compiled a mod_jk tha apache accepts and we can server up *.jsp's from our website but don;t have issues until we add the jt400.jar file? WE have tried multiple versions of the jt400.jar file with no luck... Our server.xml appears to be configured correctly. Haven't messed with the web.xml or any other config files. Do we need to add a workers.properties file to the Apache httpd conf? We configured older versions of tomcat/apache along time ago that worked with mod_jk + workers.properties, etc. Do we need to use jk2 or something else now? Any ideas or need more details? TIA -P - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Tomcat-apache---JDBC-errors-w--jt400.jar--tp19544738p19559690.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: request for servlet filter
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: However, to work around a problem of browsers not being set up properly, I would need a servlet filter inserted *before* jCIFS in the chain, which would : - detect if a client attempts a Basic (or Digest) authentication - if yes, either return a static non-no html page top the client immediately as a response, or re-direct the client to such a page (1) - if no, then simply let the request through to jCIFS and the application So... the user is rejected if they are using Basic or Digest authentication? That seems backward. Not really. To quench your thirst of knowledge, this is the problem : in this environment, users are supposed to login using NTLM, always. When they do that, they get logged into the Tomcat application using their NTLM id, automatically thanks to jCIFS. This also acts as SSO, which is nice and friendly. However, this being a corporation with lots of employees and partners all over the world, some users are not necessarily aware of what to do in order to set up their browsers to do NTLM properly. When they don't, and their browser receives a 401 from the server, the browser (since it is not prepared to do NTLM) by itself falls back to doing Basic authentication (IE does that). Which means that the browser pops up a login dialog for the user to enter their user-id and password. So they do, and the browser duly re-sends the request with a Basic authentication. But this not being acceptable to the server, the server sends a 401 again asking for NTLM. Which causes the browser to pop-up a login dialog again. And this goes on and on. All the poor user ever sees is this login dialog, and although he enters his correct user-id and password repeatedly, the popup dialog keeps on coming back, without any explanation. So now the Service Desk in Mumbai gets a call at 3:00 AM, asking if someone speaks Mongolian. One way I can think of to avoid this, is when in response to the initial 401-NTLM from the server, the browser re-sends the request with a Basic authentication (IE does that, nothing to do about it), instead of letting this go through jCIFS again (which would return the 401-NTLM, nothing to do about it), catch the request earlier, and upon detection of a Basic authentication header, send a nice page to the user telling him why this happens, and how to correct it. Makes sense ? I should add that the above idea being rather experimental, I have at this time only an inclination to believe it would work, not a certainty, which is why .. I can write such a servlet filter myself, but if it already exists I might as well save myself the time. Didn't I already write this one for you? ;) To tell the truth, you might have.. I remember asking a similar (but probably not the same) question a while ago, and there might be something I could use there. I'll go check. But my problem then was to find a way, under certain circumstances, to disable the next filter (jCIFS) while this filter would not cooperate (it doesn't have a parameter for that, and I'm unwilling to mess with the code). something usable under Tomcat and offering capabilities similar to the mod_rewrite module of Apache would also interest me. You could check out http://tuckey.org/urlrewrite/, but I think that mod-rewrite is a full Swiss Army Chainsaw while urlrewrite is more of a santoku knife. I'll go check that one, it might be enough if it can check headers and do redirects. Anything but writing something myself and having to complain to myself afterward about bugs and the like. I don't know what a santoku knife is, but I'll go Google that too. One is never too old to learn. From your use of it, I guess it's a small but sharp Japanese Army knife. (Did that. Wrong, it's a sharp and not necessarily small Japanese kitchen knife. Being myself a cook first, a programmer second, I should have known that.) (1) and, as a subsidiary question, what would the Tomcat gurus here suggest as the best alternative between [redirect versus not]? That depends on what you want your users' experiences to be. What if they hit RELOAD? Do you want to re-run the test just in case they have logged-in again? My guess is that you'll want them to be able to re-load, so I wouldn't redirect. On the other hand, if you want to essentially ignore reloads and continue showing the go away page, then you should do a redirect. It seems more likely that you'll want to return a 401 response to the initial request, rather than returning any 3xx response. If I understand this correctly, then my previous explanation should also answer this. They are not likely to reload, unless they like the look of the IE login dialog, or unless they have in the meantime corrected their settings to allow NTLM. In which case they should now be ok. And the page is not a rude go away, it's more like a Dear colleague and
Re: Getting OpenBlueDragon and Tomcat to traverse directories
For anyone who's interested in this, I've got a alpha version of the CentOS5/RHEL5 installer here: http://clubwheat.viviotech.net/openbd_rhel5.sh This installer sets up isolated instances of Sun's JRE, OpenBD, and Tomcat, specifically for the purpose of processing CFML templates. It is meant to be run from the command-line as the root user. So... # sh openbd_rhel5.sh This set up configures tomcat to make OpenBD the default processor for all CFM files regardless of their host name or what directory they originate from. There is one caveat, you will need to update the [OpenBD Install Dir]/tomcat/server.xml file with a new Host entry for each web site that you have listed as an Apache VirtualHost. I am in the process of writing up some documentation that will explain this in great detail, but for now, a simple host entry with just the site URL (IE: www.mysite.com) and the directory that files are coming from is all the tomcat Host entry will need. I will be writing documentation, and updating the installer to be more multi-system compatible as time allows. Please let me know your experiences, and (if you dare) offer patches! =D Warm regards, Jordan Michaels Vivio Technologies http://www.viviotech.net/ Open BlueDragon Steering Committee Adobe Solution Provider Shawn_Usry wrote: Hi Jordan - Was just following this thread and I'm wondering if there's an update on the Open BD - httpd connector you elude to below? I'm getting ready to deploy several OS images for development servers and wonder if I need to stick with CF or if I can make the plunge to OBD! Thanks- Jordan Michaels wrote: Hi Ross, Alan Williamson, the chair of the OpenBlueDragon Steering Committee has stated that he will blog about how to set up OpenBD in a way that most CFML developers are familiar with very soon. (I've been pestering him about it as well - since I haven't been able to get OpenBD/Tomcat to work how I want it to either.) When he does, I will be releasing a Linux installer that should automate *most* of the installation process. OpenBD users still may have to get their hands dirty and modify some config files when setting up their sites, but the basic install should be covered. I'll automate as much as I can. The installer will support CentOS to start with and branch out to other distros as I have time to adapt the installer to them. FYI Warm regards, Jordan Michaels Vivio Technologies http://www.viviotech.net/ Open BlueDragon Steering Committee Adobe Solution Provider [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: RE: Getting OpenBlueDragon and Tomcat to traverse directories I thought the use of handlers (JKMount and JKUnMount) would direct the requests properly. I believe that if you're very, very careful, you can get away with it, but your risk factor goes way up. What if I plan on having only one webapp, OpenBlueDragon? The directory (or war file) that contains the webapp should be named ROOT (case sensitive), and be placed immediately under whatever directory the Host appBase attribute points to. In your case, that would be: /var/www/html/mysite/ROOT or /var/www/html/mysite/ROOT.war I tried this and it seems to work, kinda. It forces everything that's handled by Tomcat to be rooted at /var/www/html/mysite/ROOT, while everything else that's not (HTML, JPEG, etc.) is rooted under /var/www/html/mysite. I wish they could both point to the same directory, though. Ross - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JspC woes in Tomcat 6 (Urgent)
Thank you! --- On Thu, 9/18/08, Jess Holle [EMAIL PROTECTED] wrote: From: Jess Holle [EMAIL PROTECTED] Subject: Re: JspC woes in Tomcat 6 (Urgent) To: Tomcat Users List users@tomcat.apache.org Cc: Tom Cat [EMAIL PROTECTED] Date: Thursday, September 18, 2008, 2:21 PM Try something like taskdef classname=org.apache.jasper.JspC name=jasper2 classpath id=jspc.classpath pathelement location=${java.home}/../lib/tools.jar/ fileset dir=${tomcatHome}/bin include name=*.jar/ /fileset pathelement location=${tomcatHome}/lib/ fileset dir=${tomcatHome}/lib include name=*.jar/ /fileset /classpath /taskdef Dola Woolfe wrote: Hi, Just upgraded my Tomcat from 5.5 to 6.0 and noticed that my JspC task in build.xml is no longer working. The documentation for 6.0 quote is below, but with 6.0 there seems to be no such thing as server/lib and common/lib, so something is not right. Could someone plese tell me how to fix this? Thanks, Dola taskdef classname=org.apache.jasper.JspC name=jasper2 classpath pathelement location=${java.home}/../lib/tools.jar/ fileset dir=${ENV.CATALINA_HOME}/server/lib include name=*.jar/ /fileset fileset dir=${ENV.CATALINA_HOME}/common/lib include name=*.jar/ /fileset path refid=myjars/ /classpath /taskdef - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: question about realm auth and digest attribute
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, Joe A wrote: if i'm going to be using sha-1 for the encryption, do i just specify digest=SHA, digest=SHA1, digest=SHA-1? I'm not sure you have a choice... I think it's MD5 by default with no other options. http://en.wikipedia.org/wiki/Digest_access_authentication Note that MSIE 5.0+ apparently doesn't do things right, and will therefore not work (2002 report). Note sure if it has been fixed in later versions. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkjSt5kACgkQ9CaO5/Lv0PBlVwCgkXSaxKshMhTO9Ri5mziOQNOF ROEAnRX0WFPrkz/F4oRN98d9xjjnEoU3 =icKO -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 6 HTTP / HTTP SSL Connector Port - Configuration Verification
Greetings, I am using Apache Tomcat 6.0 on Windows Server 2003. I'm not serving any pure HTML pages - all pages are JSPs, so I plan to use Tomcat in a standalone mode. I want to use port 80 for HTTP and port 443 for HTTPS/SSL versus the out-of-the-box Tomcat ports of 8080 / 8443. I have updated the appropriate connectors in server.xml to use 80/443, however, I am having trouble accessing my java application using ports 80/443 from any machine on my LAN other than localhost where Tomcat resides. I am trying to determine if the problem is being caused by incorrect connector configuration or another conflict (eg firewall, port blocking, etc.). My Question: Are other steps required - beyond updating the port numbers in server.xml for the appropriate connectors - to configure Tomcat to use ports 80 / 443? Thanks for your consideration and assistance.
RE: Tomcat 6 HTTP / HTTP SSL Connector Port - Configuration Verification
Yes there is. I recommend this article as far as properly configuring SSL (this one is with a self signed certificate though) http://techtracer.com/2007/09/12/setting-up-ssl-on-tomcat-in-3-easy-steps/ Here's an example config for both, which also will allow connections on 80 to redirect to 443 automatically. Connector port=80 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=443 URIEncoding=UTF-8 / Connector port=443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true SSLEngine=on SSLEnabled=True keystoreFile=/webapps/keystore.key connectionTimeout=2 keystorePass=secret URIEncoding=UTF-8 / Paul McGurn | Manager, Customer Support Escalations Operations · ·· LogMeIn, Inc. www.LogMeIn.com | [EMAIL PROTECTED] p. +1 781.897.1320 | f. +1 781.897.0632 -Original Message- From: Gauss [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2008 4:30 PM To: users@tomcat.apache.org Subject: Tomcat 6 HTTP / HTTP SSL Connector Port - Configuration Verification Greetings, I am using Apache Tomcat 6.0 on Windows Server 2003. I'm not serving any pure HTML pages - all pages are JSPs, so I plan to use Tomcat in a standalone mode. I want to use port 80 for HTTP and port 443 for HTTPS/SSL versus the out-of-the-box Tomcat ports of 8080 / 8443. I have updated the appropriate connectors in server.xml to use 80/443, however, I am having trouble accessing my java application using ports 80/443 from any machine on my LAN other than localhost where Tomcat resides. I am trying to determine if the problem is being caused by incorrect connector configuration or another conflict (eg firewall, port blocking, etc.). My Question: Are other steps required - beyond updating the port numbers in server.xml for the appropriate connectors - to configure Tomcat to use ports 80 / 443? Thanks for your consideration and assistance. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
staging
I have a test server and a staging server: In the test server I have two war files abclaunch.war and abcota.war It works fine when I pull up it from the web browser I copy this two file to the staging but it shows me the old version on the staging web page I have confirmed there the same release date and size I have also restart tomcat server for this webapp I now stuck I not sure how do I get the test and staging to be same version why keep showing the old version even though the war files are the same... I also to test delete the files from staging and no web page shows up so I know it is call from the correct directory Please help Frank
RE: Tomcat 6 HTTP / HTTP SSL Connector Port - Configuration Verification
Paul, Thanks very much for the help. I have already configured SSL to work using port 443 as follows: Connector port=80 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=443 / Connector port=443 protocol=HTTP/1.1 SSLEnabled=true maxThreads=150 scheme=https secure=true keystoreFile=c:\webapps\ssl\.keystore clientAuth=false sslProtocol=TLS / I can connect to my webapp using http/80 and https/443 from localhost. I cannot connect to the webapp from any other computer on the LAN unless I am using http/8080. I am assuming my problem is not Apache Tomcat connector configuration at this point. Please tell me if you know of any Apache Tomcat issues that I might be overlooking. Thanks again, Greg -Original Message- From: Paul McGurn [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2008 2:37 PM To: Tomcat Users List Subject: RE: Tomcat 6 HTTP / HTTP SSL Connector Port - Configuration Verification Yes there is. I recommend this article as far as properly configuring SSL (this one is with a self signed certificate though) http://techtracer.com/2007/09/12/setting-up-ssl-on-tomcat-in-3-easy-steps/ Here's an example config for both, which also will allow connections on 80 to redirect to 443 automatically. Connector port=80 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=443 URIEncoding=UTF-8 / Connector port=443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true SSLEngine=on SSLEnabled=True keystoreFile=/webapps/keystore.key connectionTimeout=2 keystorePass=secret URIEncoding=UTF-8 / Paul McGurn | Manager, Customer Support Escalations Operations · ·· LogMeIn, Inc. www.LogMeIn.com | [EMAIL PROTECTED] p. +1 781.897.1320 | f. +1 781.897.0632 -Original Message- From: Gauss [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2008 4:30 PM To: users@tomcat.apache.org Subject: Tomcat 6 HTTP / HTTP SSL Connector Port - Configuration Verification Greetings, I am using Apache Tomcat 6.0 on Windows Server 2003. I'm not serving any pure HTML pages - all pages are JSPs, so I plan to use Tomcat in a standalone mode. I want to use port 80 for HTTP and port 443 for HTTPS/SSL versus the out-of-the-box Tomcat ports of 8080 / 8443. I have updated the appropriate connectors in server.xml to use 80/443, however, I am having trouble accessing my java application using ports 80/443 from any machine on my LAN other than localhost where Tomcat resides. I am trying to determine if the problem is being caused by incorrect connector configuration or another conflict (eg firewall, port blocking, etc.). My Question: Are other steps required - beyond updating the port numbers in server.xml for the appropriate connectors - to configure Tomcat to use ports 80 / 443? Thanks for your consideration and assistance. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: staging
Check to make sure your Tomcat work directory is being updated when you deploy the new war. Also, have you confirmed it isn't just the browser cacheing the content (CTRL+F5 to hard refresh that)? Paul McGurn | Manager, Customer Support Escalations Operations · ·· LogMeIn, Inc. www.LogMeIn.com | [EMAIL PROTECTED] p. +1 781.897.1320 | f. +1 781.897.0632 -Original Message- From: Frank Uccello [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2008 4:42 PM To: users@tomcat.apache.org Subject: staging I have a test server and a staging server: In the test server I have two war files abclaunch.war and abcota.war It works fine when I pull up it from the web browser I copy this two file to the staging but it shows me the old version on the staging web page I have confirmed there the same release date and size I have also restart tomcat server for this webapp I now stuck I not sure how do I get the test and staging to be same version why keep showing the old version even though the war files are the same... I also to test delete the files from staging and no web page shows up so I know it is call from the correct directory Please help Frank - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 6 HTTP / HTTP SSL Connector Port - Configuration Verification
I had a similar issue, and it turned out to be an address binding issue. Can you access the site on localhost by using your actual hostname, or the LAN IP address vs. 127.0.0.1? I'm also pretty sure you need the SSLEngine=on to make it all work properly. Tomcat will respond on 443 with non-SSL traffic if this isn't configured (or at least, that was my experience). What I can say is that the connectors I listed below are how I've currently got it configured, and it's been in production for about 3 months as such. What does your log file say is happening? Paul McGurn | Manager, Customer Support Escalations Operations · ·· LogMeIn, Inc. www.LogMeIn.com | [EMAIL PROTECTED] p. +1 781.897.1320 | f. +1 781.897.0632 -Original Message- From: Gauss [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2008 4:51 PM To: 'Tomcat Users List' Subject: RE: Tomcat 6 HTTP / HTTP SSL Connector Port - Configuration Verification Paul, Thanks very much for the help. I have already configured SSL to work using port 443 as follows: Connector port=80 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=443 / Connector port=443 protocol=HTTP/1.1 SSLEnabled=true maxThreads=150 scheme=https secure=true keystoreFile=c:\webapps\ssl\.keystore clientAuth=false sslProtocol=TLS / I can connect to my webapp using http/80 and https/443 from localhost. I cannot connect to the webapp from any other computer on the LAN unless I am using http/8080. I am assuming my problem is not Apache Tomcat connector configuration at this point. Please tell me if you know of any Apache Tomcat issues that I might be overlooking. Thanks again, Greg -Original Message- From: Paul McGurn [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2008 2:37 PM To: Tomcat Users List Subject: RE: Tomcat 6 HTTP / HTTP SSL Connector Port - Configuration Verification Yes there is. I recommend this article as far as properly configuring SSL (this one is with a self signed certificate though) http://techtracer.com/2007/09/12/setting-up-ssl-on-tomcat-in-3-easy-steps/ Here's an example config for both, which also will allow connections on 80 to redirect to 443 automatically. Connector port=80 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=443 URIEncoding=UTF-8 / Connector port=443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true SSLEngine=on SSLEnabled=True keystoreFile=/webapps/keystore.key connectionTimeout=2 keystorePass=secret URIEncoding=UTF-8 / Paul McGurn | Manager, Customer Support Escalations Operations · ·· LogMeIn, Inc. www.LogMeIn.com | [EMAIL PROTECTED] p. +1 781.897.1320 | f. +1 781.897.0632 -Original Message- From: Gauss [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2008 4:30 PM To: users@tomcat.apache.org Subject: Tomcat 6 HTTP / HTTP SSL Connector Port - Configuration Verification Greetings, I am using Apache Tomcat 6.0 on Windows Server 2003. I'm not serving any pure HTML pages - all pages are JSPs, so I plan to use Tomcat in a standalone mode. I want to use port 80 for HTTP and port 443 for HTTPS/SSL versus the out-of-the-box Tomcat ports of 8080 / 8443. I have updated the appropriate connectors in server.xml to use 80/443, however, I am having trouble accessing my java application using ports 80/443 from any machine on my LAN other than localhost where Tomcat resides. I am trying to determine if the problem is being caused by incorrect connector configuration or another conflict (eg firewall, port blocking, etc.). My Question: Are other steps required - beyond updating the port numbers in server.xml for the appropriate connectors - to configure Tomcat to use ports 80 / 443? Thanks for your consideration and assistance. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 6 HTTP / HTTP SSL Connector Port - Configuration Verification
From the Apache Tomcat server I can access my webapp via SSL/443 using localhost and/or the server's LAN IP address. No errors in the logfile. More and more, this problem looks like a firewall/port blocking issue. Thanks again. -Original Message- From: Paul McGurn [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2008 3:08 PM To: Tomcat Users List Subject: RE: Tomcat 6 HTTP / HTTP SSL Connector Port - Configuration Verification I had a similar issue, and it turned out to be an address binding issue. Can you access the site on localhost by using your actual hostname, or the LAN IP address vs. 127.0.0.1? I'm also pretty sure you need the SSLEngine=on to make it all work properly. Tomcat will respond on 443 with non-SSL traffic if this isn't configured (or at least, that was my experience). What I can say is that the connectors I listed below are how I've currently got it configured, and it's been in production for about 3 months as such. What does your log file say is happening? Paul McGurn | Manager, Customer Support Escalations Operations · ·· LogMeIn, Inc. www.LogMeIn.com | [EMAIL PROTECTED] p. +1 781.897.1320 | f. +1 781.897.0632 -Original Message- From: Gauss [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2008 4:51 PM To: 'Tomcat Users List' Subject: RE: Tomcat 6 HTTP / HTTP SSL Connector Port - Configuration Verification Paul, Thanks very much for the help. I have already configured SSL to work using port 443 as follows: Connector port=80 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=443 / Connector port=443 protocol=HTTP/1.1 SSLEnabled=true maxThreads=150 scheme=https secure=true keystoreFile=c:\webapps\ssl\.keystore clientAuth=false sslProtocol=TLS / I can connect to my webapp using http/80 and https/443 from localhost. I cannot connect to the webapp from any other computer on the LAN unless I am using http/8080. I am assuming my problem is not Apache Tomcat connector configuration at this point. Please tell me if you know of any Apache Tomcat issues that I might be overlooking. Thanks again, Greg -Original Message- From: Paul McGurn [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2008 2:37 PM To: Tomcat Users List Subject: RE: Tomcat 6 HTTP / HTTP SSL Connector Port - Configuration Verification Yes there is. I recommend this article as far as properly configuring SSL (this one is with a self signed certificate though) http://techtracer.com/2007/09/12/setting-up-ssl-on-tomcat-in-3-easy-steps/ Here's an example config for both, which also will allow connections on 80 to redirect to 443 automatically. Connector port=80 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=443 URIEncoding=UTF-8 / Connector port=443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true SSLEngine=on SSLEnabled=True keystoreFile=/webapps/keystore.key connectionTimeout=2 keystorePass=secret URIEncoding=UTF-8 / Paul McGurn | Manager, Customer Support Escalations Operations · ·· LogMeIn, Inc. www.LogMeIn.com | [EMAIL PROTECTED] p. +1 781.897.1320 | f. +1 781.897.0632 -Original Message- From: Gauss [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2008 4:30 PM To: users@tomcat.apache.org Subject: Tomcat 6 HTTP / HTTP SSL Connector Port - Configuration Verification Greetings, I am using Apache Tomcat 6.0 on Windows Server 2003. I'm not serving any pure HTML pages - all pages are JSPs, so I plan to use Tomcat in a standalone mode. I want to use port 80 for HTTP and port 443 for HTTPS/SSL versus the out-of-the-box Tomcat ports of 8080 / 8443. I have updated the appropriate connectors in server.xml to use 80/443, however, I am having trouble accessing my java application using ports 80/443 from any machine on my LAN other than localhost where Tomcat resides. I am trying to determine if the problem is being caused by incorrect connector configuration or another conflict (eg firewall, port blocking, etc.). My Question: Are other steps required - beyond updating the port numbers in server.xml for the appropriate connectors - to configure Tomcat to use ports 80 / 443? Thanks for your consideration and assistance. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: html entities and urls with spaces
Hmmm, here are my jk settings: JKWorkersFile /etc/libapache2-mod-jk/workers.properties JkLogFile /var/log/apache2/mod_jk.log JkLogLevel info JkShmFile /var/log/apache2/mod_jk.shm JkOptions +ForwardURICompatUnparsed The JK connector is the one from the mod_jk debian package. Could that be an issue if it was not compiled for the write version of tomcat? I'm not really sure how the jk connector builds work. Brendan Martens Server Administrator CrossComm, Inc. 919.667.9432 ofc 919.688.7686 fax www.crosscomm.net On Sep 11, 2008, at 4:38 PM, Mark Thomas wrote: Brendan Martens wrote: Hello, I am having some issues with tomcat not displaying pages or files with spaces in them, it simply 404s. Something like this: pdf file on filesystem.pdf being accessed at: http://server/pdf%20file%20on%20filesystem.pdf fails to display. I am migrating this site from an older RHEL server where it works fine. I am migrating to a Debian server with up to date Debian packages of apache2, tomcat5, and java6. Wrong setting for JkOptions? Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Balance and sync data
Martin Spinassi wrote: [...] Martin, I re-read the thread from the beginning, and as I understand it you have - clients that upload files, most of then images - clients that download these same images - and you would like a system that handles this and duplicates the images to 2 or more synchronised places, so as to have redundancy and backup. Let me describe a part of an application which I designed, and see if this inspires you. This was under Apache, but it should be possible also under Tomcat. I wanted to provide clients with a hierarchical folder hierarchy where they could upload their documents via a simple drag and drop, but I did not want to have to scan the whole structure regularly to check if anything had been uploaded there. Plus, I wanted to know who uploaded what when, and wanted to do something to those files after they uploaded them. Plus, I am lazy and not such a big-shot programmer, so if something already exists and works well, I prefer to use it than to re-develop my own buggy version. At the core, for allowing clients to upload the (in my case) documents, there is DAV (which is also implemented under Tomcat). DAV, allows the client to see a folder structure on the server, and drag-drop files in it, just like to a remote network drive. It even works in Windows with the Explorer (not IE, the other one), it's called web folders there. But once the file is dropped somewhere, you don't know anymore who put it there. Plus, since they can drop a file anywhere in the folder hierarchy, you have to explore the whole hierarchy regularly on the server to find the files they've dropped, if any. Except that, at the base, DAV is just an HTTP protocol extension. It makes requests through URLs, and such requests get processed by a HTTP server. The requests just use different command verbs than GET and POST. For a while, I was thinking of creating my own handlers for those verbs (PUT, MKCOL, OPTONS,..), or taking the DAV code, and implement my own additional desired functionality into it. Then I realised that DAV being a HTTP protocol extension, you can do HTTP authentication, and you can use filters around it. That's true in Apache, and also in Tomcat. So let's say that when a user wants to drop a file via DAV, you intercept the HTTP requests, authenticate the request, and save that somewhere. Next, your filter gets to run. It sees where the user is going to drop the file (the URL of the PUT), and remembers it. Then it lets the request go through DAV (the actual file upload into a folder somewhere), DAB being the filtered application here. Then when the DAV response comes back through the filter, the filter takes the uploaded file from where it is now (it knows the exact folder), and copies it to another place (or does whatever you want with it). In addition, the filter also knows who did it and other details, so it can pass this information somewhere to be saved (into a database record ?). I personally find this more elegant than a) re-inventing the wheel : to upload/download files from a HTTP server, is something for which DAV was designed, and the developer spent a lot of time making it work reliably b) triggering external syncs in real-time 3) scanning the file structure later to sync DAV also allows drag-and-drop downloads, and they also go through HTTP requests... You don't need to change DAV in any way, you just wrap it in filters that do what you want around it. André - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 6 HTTP / HTTP SSL Connector Port - Configuration Verification
Gauss wrote: From the Apache Tomcat server I can access my webapp via SSL/443 using localhost and/or the server's LAN IP address. No errors in the logfile. More and more, this problem looks like a firewall/port blocking issue. Yes, it probably is. Also check the Windows Firewall, if it might be enabled on this machine. And check the extended properties of your network interfaces, to see if there are not any ports blocked there. (right-click on a network connection, properties, scroll down for TCP/IP, click extended) A tip to save you further grief maybe down the line : The standard installation of Tomcat under Windows installs it to run under the user-id LocalSystem. That is a special user-id which has extended rights on the local machine, but no rights at all to access Windows network resources. My suggestion is to obtain from your sysadmins a Domain user-id (and one for which the password does not automatically age and become invalid), possibly adding this user-id to the Local Administrators group (so that you do not run into issues using ports below 1024), and change the user-id under which the Tomcat Service runs, to run under that one. This will allow you, should the need arise in the future, to give your Tomcat access to Windows Domain network resources. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: request for servlet filter
Christopher Schultz wrote: [lots of good stuff snipped] You could check out http://tuckey.org/urlrewrite/, but I think that mod-rewrite is a full Swiss Army Chainsaw while urlrewrite is more of a santoku knife. Went there, saw it, downloaded it. It seems to do what I want, and lots more. Haven't tested it yet, but seems serious. Thanks for the tip. It does lots of the same things as mod_rewrite, a bit less in some respects, but also a bit more in a Java servlet-oriented way. Good documentation too. From the look of it, I would think that if mod_rewrite is the 7-layer Swiss Army knife for Apache, then urlrewrite certainly qualifies for the 5-blade level Swiss Army knife for Tomcat. Definitely better than a kitchen knife, and way above what I could come up with. Sample config file to do what I need : urlrewrite rule enabled=true nameWrong IE auth settings/name note The rule means that any request including Basic authentication will be redirected to the indicated page. /note condition name=auth type=auth-typeBASIC_AUTH/condition from^/.*$/from to type=temporary-redirect%{context-path}/errors/IE_settings.html/to /rule /urlrewrite - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
j_security_check Tomcat user status
Hello! For Connection on database i initialize in context.xml: [CODE] Realm className=org.apache.catalina.realm.JDBCRealm debug=0 driverName=com.Driver connectionURL=jdbc:url connectionName=CONNAME connectionPassword=CONPASS userTable=BFWBBUSR userNameCol=LOGINNM userCredCol=USRPASS userRoleTable=BFWBBUSR roleNameCol=ROLEID/ [/CODE] j_security_check works fine. Now, i want to check another column on login: userstatus. Value of the column can be 0 or 1. Only users with correct username and status 1 can login. How can i do this with j_security_check? Regards -- View this message in context: http://www.nabble.com/j_security_check-Tomcat-user-status-tp19563429p19563429.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: antioJarLocking not working
Hi, I am also using antiResourceLocking flag in context.xml. Once the flag is set to true, Tomcat starts exploding web application in temp directory. It works well for me in Linux and Windows environment, but in AIX, I cannot even start tomcat with antiResourceLocking flag set to true. When I saw my application folder in temp (AIX box), I noticed that all files were of zero bytes. And in the catalina logs I see lots of SAX parse exception. Well since all files including web.xml is of 0 bytes, it starts throwing XML parse exception. Does anyone have work around for this problem? I am using tomcat 6.018. Vikas -- View this message in context: http://www.nabble.com/antioJarLocking-not-working-tp19187318p19565053.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
antiResourceLocking Not working on AIX
Hi, I am using antiResourceLocking flag in context.xml. Once the flag is set to true, Tomcat starts exploding web application in temp directory. It works well for me in Linux and Windows environment, but in AIX, I cannot even start tomcat with antiResourceLocking flag set to true. When I saw my application folder in temp (AIX box), I noticed that all files were of zero bytes. And in the catalina logs I see lots of SAX parse exception. Well since all files including web.xml is of 0 bytes, it starts throwing XML parse exception. Does anyone have work around for this problem? I am using tomcat 6.018. Vikas -- View this message in context: http://www.nabble.com/antiResourceLocking-Not-working-on-AIX-tp19565089p19565089.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 6 HTTP / HTTP SSL Connector Port - Configuration Verification
Check you port bindings using netstat -an and see if it is bound to a specific IP address. -Original Message- From: Gauss [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2008 4:23 PM To: 'Tomcat Users List' Subject: RE: Tomcat 6 HTTP / HTTP SSL Connector Port - Configuration Verification From the Apache Tomcat server I can access my webapp via SSL/443 using localhost and/or the server's LAN IP address. No errors in the logfile. More and more, this problem looks like a firewall/port blocking issue. Thanks again. -Original Message- From: Paul McGurn [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2008 3:08 PM To: Tomcat Users List Subject: RE: Tomcat 6 HTTP / HTTP SSL Connector Port - Configuration Verification I had a similar issue, and it turned out to be an address binding issue. Can you access the site on localhost by using your actual hostname, or the LAN IP address vs. 127.0.0.1? I'm also pretty sure you need the SSLEngine=on to make it all work properly. Tomcat will respond on 443 with non-SSL traffic if this isn't configured (or at least, that was my experience). What I can say is that the connectors I listed below are how I've currently got it configured, and it's been in production for about 3 months as such. What does your log file say is happening? Paul McGurn | Manager, Customer Support Escalations Operations · ·· LogMeIn, Inc. www.LogMeIn.com | [EMAIL PROTECTED] p. +1 781.897.1320 | f. +1 781.897.0632 -Original Message- From: Gauss [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2008 4:51 PM To: 'Tomcat Users List' Subject: RE: Tomcat 6 HTTP / HTTP SSL Connector Port - Configuration Verification Paul, Thanks very much for the help. I have already configured SSL to work using port 443 as follows: Connector port=80 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=443 / Connector port=443 protocol=HTTP/1.1 SSLEnabled=true maxThreads=150 scheme=https secure=true keystoreFile=c:\webapps\ssl\.keystore clientAuth=false sslProtocol=TLS / I can connect to my webapp using http/80 and https/443 from localhost. I cannot connect to the webapp from any other computer on the LAN unless I am using http/8080. I am assuming my problem is not Apache Tomcat connector configuration at this point. Please tell me if you know of any Apache Tomcat issues that I might be overlooking. Thanks again, Greg -Original Message- From: Paul McGurn [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2008 2:37 PM To: Tomcat Users List Subject: RE: Tomcat 6 HTTP / HTTP SSL Connector Port - Configuration Verification Yes there is. I recommend this article as far as properly configuring SSL (this one is with a self signed certificate though) http://techtracer.com/2007/09/12/setting-up-ssl-on-tomcat-in-3-easy-steps/ Here's an example config for both, which also will allow connections on 80 to redirect to 443 automatically. Connector port=80 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=443 URIEncoding=UTF-8 / Connector port=443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true SSLEngine=on SSLEnabled=True keystoreFile=/webapps/keystore.key connectionTimeout=2 keystorePass=secret URIEncoding=UTF-8 / Paul McGurn | Manager, Customer Support Escalations Operations · ·· LogMeIn, Inc. www.LogMeIn.com | [EMAIL PROTECTED] p. +1 781.897.1320 | f. +1 781.897.0632 -Original Message- From: Gauss [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2008 4:30 PM To: users@tomcat.apache.org Subject: Tomcat 6 HTTP / HTTP SSL Connector Port - Configuration Verification Greetings, I am using Apache Tomcat 6.0 on Windows Server 2003. I'm not serving any pure HTML pages - all pages are JSPs, so I plan to use Tomcat in a standalone mode. I want to use port 80 for HTTP and port 443 for HTTPS/SSL versus the out-of-the-box Tomcat ports of 8080 / 8443. I have updated the appropriate connectors in server.xml to use 80/443, however, I am having trouble accessing my java application using ports 80/443 from any machine on my LAN other than localhost where Tomcat resides. I am trying to determine if the problem is being caused by incorrect connector configuration or another conflict (eg firewall, port blocking, etc.). My Question: Are other steps required - beyond updating the port numbers in server.xml for the appropriate connectors - to configure Tomcat to use ports 80 / 443? Thanks for your
Re: Server Maintenance Across Timezones (global)
There's a lot of good suggestions here, maybe you could also justify maintaining a separate instance for the American customers. That would at least allow at a minimum to roll out changes specific for them, conform to their maintenance time :P. Yes I do realize it would be a replication of code in terms of releases but it is something to think about. On Thu, Sep 18, 2008 at 5:05 AM, Bill Davidson [EMAIL PROTECTED] wrote: My company's main webapp is used around the world (Europe, North America, Australia, etc.). We're using Tomcat as our app server and Oracle (10g) for our database. When we want to do an upgrade, that usually involves DDL changes to the database as well as corresponding changes to the webapp which means we have to make our users log out so we can shut down the app, update the DDL and restart the updated webapp. The changes are interdependent. It's all or nothing. This was not a big problem when we were just doing business in the U.S. We'd do upgrades late at night when nobody (or hardly anyone) was using the system. The problem now is that late at night here is middle of the day in other places and downtime in the middle of the day is a real problem. Our customers use our app to run parts of their business so downtime in the middle of the day is very very bad. They understandably don't like telling their customers: I'd like to help you but I need to wait for the Americans to upgrade their systems. I'm not sure how to deal with this. I've been trying to think of a way to use multiple servers and multiple databases but that seems like a synchronization nightmare. Losing data consistency is not an option. I'm sure that plenty of others on this list have had to deal with this problem. Any suggestions? How have others dealt with it? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hello world
On Thu, 18 Sep 2008 11:02:42 -0400, Brantley Hobbs wrote: I thought mentats weren't supposed to use computers... Later on they do :) No matter what, the spice must flow. If it takes a computer, it takes a computer. Yes :) -Thufir - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hello world
On Thu, 18 Sep 2008 09:50:18 -0500, Caldarale, Charles R wrote: Do I need to install Tomcat 5.5 from Ubuntu We've had no end of problems with 3rd-party repackaged versions of Tomcat. Ok, yeah, I've seen mention of that, but thought that must be in error. If Apache installs then why not tomcat? -Thufir - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: hello world
From: news [mailto:[EMAIL PROTECTED] On Behalf Of thufir Subject: Re: hello world If Apache installs then why not tomcat? Apache is a software organization with numerous products; if by Apache you mean httpd, it may be because the 3rd-party developers are more familiar with it so less likely to screw it up. For Tomcat, they seem to take great delight in scattering its files all over, using symlinks to try to link it all back up, along with highly modified startup/shutdown scripts that add minor niceties but break anything but basic operation. Use a real Tomcat, and see what happens. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat usage
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kusuma, Kusuma Pabba wrote: i also have firefox on my arm processor but i am not able to understand how to use http on it Wait... are you running on embedded hardware, or just a desktop/server running on an ARM processor? i cannot load full versions of java and j2se on my arm processor so i run my java programs using cvm by directly loading .class files This is going to be a problem. Why not read some of the information available online by doing a good search for tomcat arm processor. You'll find gems like this: http://www.mail-archive.com/[EMAIL PROTECTED]/msg04981.html these are the problems with my arm processor is there any possibility to use tomcat on it You can probably get /something/ running. What are the capabilities that you need? Perhaps Tomcat isn't required. Do you have a Java-based web application that needs to be deployed on this machine? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkjShCUACgkQ9CaO5/Lv0PCzLQCeJb6bohW+ZmZpHHxP4p3kSv0D YUUAmwaEP8+ZH4nCiNJQC8fOcncmizz0 =AXvJ -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] i am using embedded hardware for my arm processor 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 proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: staging
- Original Message - From: Frank Uccello [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Thursday, September 18, 2008 10:42 PM Subject: staging I have a test server and a staging server: In the test server I have two war files abclaunch.war and abcota.war It works fine when I pull up it from the web browser I copy this two file to the staging but it shows me the old version on the staging web page I have confirmed there the same release date and size I have also restart tomcat server for this webapp I now stuck I not sure how do I get the test and staging to be same version why keep showing the old version even though the war files are the same... I also to test delete the files from staging and no web page shows up so I know it is call from the correct directory Please help Frank --- Frank... maybe a browsr caching, but unlikely. Maybe... autodeploy not set, but unlikely But one way to make sure... its use /manager/html and undeploy the old one Then also use that to deploy or drop the wars in... Also do that on your test server because very often its the test server that is actually fooling you, because its not looking at the wars, its looking at the IDE. If you get a funny in TC... undeploy old stuff... then drop in... especially on the dev env with IDE's attached to that TC Have fun... --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]