Re: Having trouble getting an Apache connector to work

2006-08-16 Thread Rob Tanner
Thanks! That makes it usable. I'll keep an eye out for 4.1.33. -- Rob On 08/15/2006 07:58 PM, Mark Thomas wrote: Mark Thomas wrote: I am now seeing the same thing on my dev box. I'm looking in to it and will let you know. My bad. If you use protocolHandler rather than

RE: JMS Alternative

2006-08-16 Thread Richard Mixon
If you are wanting to send email, you probably are interested in the Java Mail API - not the JMS API - they are for (usually) different purposes. However one could conceivably use JMS as a conduit between the various components of such a system (e.g. email assembly, delivery and the MTA).

RE: Tomcat upgrade from 5.0.28 to 5.5.17, Tomcat Manager does not work for context based deployments

2006-08-16 Thread Venkatesh Jayaraman \(jvenky\)
Let me answer my own posting here. Tomcat 5.5.17 changed code with respect to deploy command. But documentation did not reflect it. Deploy works if the url specified a. With jar prefix removed b. default path added at the end http://localhost:8080/manager/deploy?

Re: Missing Request Parameters

2006-08-16 Thread Pid
(i can't see a previous thread for this, new mail setup, so apologies if I'm restating.) Are you using GET or POST? And how many parameters are you submitting? And are there any particularly long bits of data in the parameters? lmelendez wrote: Hi Rache, Well, we are seeing the problem.

Re: Missing Request Parameters

2006-08-16 Thread Nicolas Schwartz
Hi, We are facing the same problem. Sometimes the parameters don't get to tomcat. We've seen this by monitoring our plateform through a servlet simply returning the value of a parameter. We are also using apache+tomcat apache-2.0.54 jakarta-tomcat-5.5.9 It occurs on GET requests, maybe on

Encrypt Cleartext Resource Password

2006-08-16 Thread Darren
Hi, I have a JDBC resource configured with tomcat 5.0 (in server.xml) and it is working fine. Resource name=jdbc/database auth=Container type=javax.sql.DataSource maxActive=10 maxIdle=15 maxWait=1 removeAbandoned=true removeAbandonedTimeout=300 logAbandoned=true

Re: JMS Alternative

2006-08-16 Thread Feris Thia
Hi Richard, Like to thank for the feedback. Yes, I realized that it's quite challenging. Hm, ok.. if I may do so... what kind of technology stacks (API) that I need to ? Feris On 8/16/06, Richard Mixon [EMAIL PROTECTED] wrote: If you are wanting to send email, you probably are interested in

Servlets mod_jk Context path problems

2006-08-16 Thread jeusdi
Hello, I'm muddling up with Servlets configuration, Context configuration, VirtualHost configuration, and more... My problem is that I have 2 domains -- ecommerce.gmsoft.com and www.gmsoft.com and both are web applications. The first problem is that I don't know how configure Apache

Re: Encrypt Cleartext Resource Password

2006-08-16 Thread Yassine ELassad (YEL)
HI Darren, I guess you need this : digest=MD5 in your realm definition so it would look like follow: Resource name=jdbc/database auth=Container type=javax.sql.DataSource maxActive=10 maxIdle=15 maxWait=1

Re: Servlets mod_jk Context path problems

2006-08-16 Thread jeusdi
Mmm, I've changed httpd.conf file and web.xml file to this -- In httpd.conf I've added JkMount /ecommerce/Controller treb and in web.xml file I've changed mapping -- servlet-mapping servlet-nameController/servlet-name url-pattern/ecommerce/Controller/url-pattern

Re: Servlets mod_jk Context path problems

2006-08-16 Thread jeusdi
So, the problem surges out form tomcat because I can't access it. If I try access throught 192.168.1.2/ecommerce/Controller the message is the same, so it comes form Tomcat. I've seen jk log messages and i works correctly. So, What's wrong is tomcat? Yassine ELassad (YEL) wrote: hi try

Re: Servlets mod_jk Context path problems

2006-08-16 Thread jeusdi
MMM, I've just probed to access http://192.168.1.2:8080/ecommerce/ecommerce/Controller and I've accessed to the servlet. What must I change to access as http://192.168.1.2/ecommerce/Controller? jeusdi wrote: So, the problem surges out form tomcat because I can't access it. If I try

Re: isVirtualWebappRelative not working

2006-08-16 Thread Martin Gainty
Good Morning Ross- If your path does not begin with a slash (/) then it is taken to be *relative to the current document* !--#include virtual=/head.html -- --Include head.html (head.html current location loads correctly) !--#include virtual=/Foo/Foo.html -- --Include in Foo.html (Foo.html loads

Re: Encrypt Cleartext Resource Password

2006-08-16 Thread Darren
I tried adding digest=MD5 as you advised, but it's not being used. If the password is left in cleartext (with digest=MD5) the connection works fine, but if the MD5 version of the password is used it fails to connect to the database. On 16 Aug 2006, at 10:31, Yassine ELassad (YEL) wrote:

Re: Classpath Problem

2006-08-16 Thread Martin Gainty
Straight from TOMCAT doc a.. Shared - This class loader is the place to put classes and resources that you wish to share across ALL web applications Doc available at http://tomcat.apache.org/tomcat-5.5-doc/printer/class-loader-howto.html Martin --

Re: Encrypt Cleartext Resource Password

2006-08-16 Thread David Smith
There is no way built in to tomcat to obfuscate the password on a JNDI resource. It's been discussed here on the list and the general concensus is to secure the server.xml file from prying eyes using file permissions and general server configuration. --David Darren wrote: I tried adding

Re: Tomcat upgrade from 5.0.28 to 5.5.17, Tomcat Manager does not work for context based deployments

2006-08-16 Thread Mark Thomas
Venkatesh Jayaraman (jvenky) wrote: Let me answer my own posting here. Tomcat 5.5.17 changed code with respect to deploy command. But documentation did not reflect it. Deploy works if the url specified a. With jar prefix removed b. default path added at the end

Re: Doesn't Process CSS files

2006-08-16 Thread David Smith
aladdin wrote: I have an apache-http tomcat configuration set up that works just fine, with static htm's, jsp's, and servlets, except for one thing. It finds all my .htm static content, and, when serving that, uses the referenced .css style sheets. However, when it goes to tomcat and serves

Clustering in Tomcat-4.x

2006-08-16 Thread jaikiran pai
Hi, Can someone point me to a step by step setup process for Clustering Tomcat4.x? The Tomcat documentations that i saw, only talk about Tomcat5.x clustering configurations Thank you. regards, -Jaikiran - Here's a new way

Re: Doesn't Process CSS files

2006-08-16 Thread aladdin
On Wednesday 16 August 2006 07:42, David Smith wrote: aladdin wrote: I have an apache-http tomcat configuration set up that works just fine, with static htm's, jsp's, and servlets, except for one thing. It finds all my .htm static content, and, when serving that, uses the referenced .css

Re: Doesn't Process CSS files

2006-08-16 Thread Mark Thomas
aladdin wrote: Thanks! I'll check out those logs as soon as I get into work, Meantime, what do you mean by attempt to access them directly? Type the url of an css file directly into your browser and see what the response is. Something like: http://www.apache.org/style/style.css Mark

Re: Doesn't Process CSS files

2006-08-16 Thread David Smith
aladdin wrote: On Wednesday 16 August 2006 07:42, David Smith wrote: aladdin wrote: I have an apache-http tomcat configuration set up that works just fine, with static htm's, jsp's, and servlets, except for one thing. It finds all my .htm static content, and, when serving that, uses

Re: JMS Alternative

2006-08-16 Thread Ronald Klop
Before asking about an optimized multithreaded e-mail application on a mailinglist for a webserver you should make it clear what you are doing. Maybe the non-optimized singlethreaded e-mail loop is fast enough for you. It wil save you a lot of time debugging. How much e-mail are you sending?

Access to directories outside document root?

2006-08-16 Thread Rob Elliott
Hello, Is it possible to obtain access to an arbitrary directory (possibly mounted file) which is not below the Tomcat webapps directory from within a webapp? GetServletContext.getRealpath() seems to only access directories below the webapp app directory... Thanks in advance... Rob.

Re: Clustering in Tomcat-4.x

2006-08-16 Thread Filip Hanik - Dev Lists
clustering in 4.x was only experimental, and probably has a load of bugs http://people.apache.org/~fhanik/index.html.old Filip jaikiran pai wrote: Hi, Can someone point me to a step by step setup process for Clustering Tomcat4.x? The Tomcat documentations that i saw, only talk about

Re: Access to directories outside document root?

2006-08-16 Thread Markus Schönhaber
Rob Elliott wrote: Is it possible to obtain access to an arbitrary directory (possibly mounted file) which is not below the Tomcat webapps directory from within a webapp? GetServletContext.getRealpath() seems to only access directories below the webapp app directory... What exactly do you

Re: Clustering in Tomcat-4.x

2006-08-16 Thread jaikiran pai
Thanks Filip for that link(i hadnt found any material even after doing a lot of googling). Upgrading to Tomcat-5 seems to be the right thing to do. Thanks a lot. regards, -Jaikiran Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: clustering in 4.x was only experimental, and probably

Tomcat5.5.17 work directory have the whole tomcat structure

2006-08-16 Thread Raju Balugu
Hi all, I installed the image(my project)with all the class files(work is having the class files)by doing the precompilation.After installation , I tried to launch webpages ...it's throwing the Filenotfound exception. So I analyzed the problem and deleted the work directory under tomcat and stop

RE: Access to directories outside document root?

2006-08-16 Thread Rob Elliott
Thanks for your response. The servlet will simply launch a Timer Task that will periodically obtain a list of files under /foo/bar, examine their timestamps and delete the file if its shelflife has expired. There is no requirement to expose anything... Thanks, Rob. -Original Message-

Re: Access to directories outside document root?

2006-08-16 Thread Markus Schönhaber
Rob Elliott wrote: The servlet will simply launch a Timer Task that will periodically obtain a list of files under /foo/bar, examine their timestamps and delete the file if its shelflife has expired. There is no requirement to expose anything... I don't see a reason why your timer task should

Re: Tomcat5.5.17 work directory have the whole tomcat structure

2006-08-16 Thread Pid
Sounds like you set a Context up with the Tomcat directory as the base appDir, so it's trying to publish the lot. Check your Server.xml Pid Raju Balugu wrote: Hi all, I installed the image(my project)with all the class files(work is having the class files)by doing the

RE: Apache- Tomcat Connector Problem...newbi question

2006-08-16 Thread Atul Govande
Thanks everyone! Its working ! Best Regards, Atul Govande 818 717 5621 NOTE: Please note that Delta Tau no longer allows the sending or receiving of attachments with the extension .ZIP or .EXE. Please rename all .ZIP attachments to .ZZZ. Please zip all .EXE attachments and then rename them to

Re: Missing Request Parameters

2006-08-16 Thread Lou Caudell
rache wrote: Parameter values are set in the jsp either as hardcoded links(http://j.jsp?param=value) or as hidden parameters. When the program enters the doGet() or doPost() method of a servlet and check for the parameter, its null. String pvalue = req.getParameter(param); This happens

web.xml config

2006-08-16 Thread Rob Elliott
Hello, I need to deliver a WAR file to a customer. The cutomer will ultimately need to change the webapp configuration however they would like to do so without having to compile a new WAR file. Is it possible to change web.xml config parameters after deployment, ideally using a GUI? Thanks, Rob.

RE: Servlets mod_jk Context path problems

2006-08-16 Thread Richard Mixon
Changing to servlet-mapping servlet-nameController/servlet-name url-pattern/Controller/url-pattern /servlet-mapping Will fix the /ecommerce/ecommerce problem. Probably what you are really trying to do is make your webapp the ROOT webapp. For that you need to rename your webapp

Re: Missing Request Parameters

2006-08-16 Thread lmelendez
Nicolas Schwartz wrote: It occurs on GET requests, maybe on POST ones but we don't know. The value of the parameter is not long, neither is the value. It appears to occur randomly Exact same thing in our case. We have seen it in GET requests, not entirely sure about POSTs. We use some

tomcat, apache, mod_rewrite and http-auth

2006-08-16 Thread Kristian Rink
Hi all; I do have a web environment running inside my LAN in a tomcat container, forcing users through HTTP Basic authentication. For now and locally, this uses to work well - the browser is prompting the user with a HTTP login window, and everything is fine. Right now, I need to expose this

Re: Encrypt Cleartext Resource Password

2006-08-16 Thread Martin Gainty
I found this provider to be a good starting point http://www.bouncycastle.org/latest_releases.html There are multiple classes available for Message Digest 5 http://www.bouncycastle.org/docs/docs1.5/index.html one of which is Message Digest 5 with Data Encryption Standard see

Service start in Windows with java opts

2006-08-16 Thread Elias Chavarria
Hi!, I am using Tomcat 5.0 in Windows XP pro. The application i am using uses Ant in order to start tomcat with the following env keys: env key=JAVA_OPTS value=-DproxySet=true -DproxyPort=80/ However, it always opens a new command window showing the info about tomcat starting up. I am

Re: tomcat, apache, mod_rewrite and http-auth

2006-08-16 Thread David Smith
The connector receiving request from Apache needs at least the first attribute added to it: proxyName=domain.name.com: the domain name of the Apache httpd server acting as a front end to Tomcat proxyPort=80: the port number of the Apache httpd server There is a sample of this in the

Re: Service start in Windows with java opts

2006-08-16 Thread Markus Schönhaber
Elias Chavarria wrote: -DproxySet=true -DproxyPort=80 However, when i start my application, it sends errors. Is there any way to verify that this settings are being used? Drop that as a JSP into some webapp-dir on your tomcat: -snip- %@ page language=java

Re: Static vars / connection pools / tomcat app design

2006-08-16 Thread Leon Rosenberg
whats wrong with separating resources for independent applications? Leon On 8/16/06, Jon Yeargers [EMAIL PROTECTED] wrote: Hi. I have a series of tomcat based apps that all use a single .jar to do some common admin tasks like sending mail and connecting to a DB. The .jar file uses the

Logging of request parameters -- how do I turn off

2006-08-16 Thread Rob Tanner
Hi. I've noticed that request parameters are being written to the file catalina.out (using Tomcat 4.1.31). For the most part I don't really care, but when forms include passwords and those plaintext password gets written into the file I do. I've never intentionally turned that capability

Re: Logging of request parameters -- how do I turn off

2006-08-16 Thread Tim Funk
You need to use a custom pattern with the AccessLogValve pattern='%a %U' http://tomcat.apache.org/tomcat-5.0-doc/catalina/docs/api/org/apache/catalina/valves/AccessLogValve.html It would be much better to use POST requests when items such as passwords are in the URL. This way they will also

Re: Changing to different index.jsp from Tomcat default index.jsp

2006-08-16 Thread Lou Caudell
McRaven, Brian wrote: When I start my Tomcat server and link to http://localhost/ I get the default index.jsp that comes with Apache Tomcat Server. I want to use my own index.jsp how do I achieve this objective? Brian It's under webapps/ROOT. But, rename the original one, as it is useful.

Tomcat + WebDAV

2006-08-16 Thread Aditya Rajgarhia
Hi, I installed tomcat5 on a Debian Linux machine to test WebDAV. I can see the files at http://server:8180/webdav but unfortunately I cannot write to it. I tried several clients: internet explorer, gnome nautilus, konqueror. Konqueror gives the following error: A resource cannot be created at

RE: Changing to different index.jsp from Tomcat default index.jsp

2006-08-16 Thread McRaven, Brian
I thought it was created in a Servlet and you had to change some parameters in one of the .xml files like web.xml in the ROOT directory. Is this correct for Apache Tomcat 5.5.17? -Original Message- From: Lou Caudell [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 3:12 PM To:

Re: performance question

2006-08-16 Thread Paul Singleton
Lambda Probe is a free+easy way to get some instrumentation Propes, Barry L wrote: I'm having some problems this morning with performance. How can I easily determine if it's servlets, or Tomcat, as opposed to possibly the database (Oracle) I'm using? I've not had this problem before. Barry

Re: Static vars / connection pools / tomcat app design

2006-08-16 Thread David Smith
Jon Yeargers wrote: Hi. I have a series of tomcat based apps that all use a single .jar to do some common admin tasks like sending mail and connecting to a DB. The .jar file uses the Tomcat/JNDI connection pooling to save overhead (supposedly). In the other apps (that use the above .jar) I

Re: Changing to different index.jsp from Tomcat default index.jsp

2006-08-16 Thread David Smith
Right. All of the jsps shipped with tomcat are precompiled to classes. You'll have to remove a servlet mapping in webapps/ROOT/WEB-INF/web.xml before tomcat will offer up your custom index.jsp. --David McRaven, Brian wrote: I thought it was created in a Servlet and you had to change some

How do I set up Embedded Tomcat to override the Security Constraints set in the web.xml file using the catalina.deploy.SecurityConstaint class?

2006-08-16 Thread Lisa Balducci
I am trying to override the web.xml SecurityConstraints using the Context addConstraint/removeConstraint methods. The context.xml contains the following element WatchedResourceWEB-INF/web.xml/WatchedResource I tried the following to override the SecurityConstraints: // adding

Re: Doesn't Process CSS files

2006-08-16 Thread aladdin
On Wednesday 16 August 2006 08:16, David Smith wrote: aladdin wrote: On Wednesday 16 August 2006 07:42, David Smith wrote: aladdin wrote: I have an apache-http tomcat configuration set up that works just fine, with static htm's, jsp's, and servlets, except for one thing. It

Re: Doesn't Process CSS files

2006-08-16 Thread aladdin
Ouch! I fixed it, after David put me onto typing directly into the browser (many thanks, David). I had style.css in the link reference, and as soon as I changed that to /style.css, it found it. And, also, now there's no attempt at mapping in the mod_jk log. But I still have the question as to

RE: Create an object that's shared with multiple applications?

2006-08-16 Thread Phil \(waex\)
You can serialize/deseriaize your object(s) in /from an Ms SQLserver blob field I can email you some code off list if this is what you are looking forward Phil -Original Message- From: 0 8 [mailto:[EMAIL PROTECTED] Sent: 09 August 2006 20:14 To: Tomcat Users List Subject: Re: Create

RE: Running web application on Tomcat on a Windows Server - License question

2006-08-16 Thread Propes, Barry L
there's a Windows2004? Hadn't heard of that. Did you mean 2003? Or something newer? -Original Message- From: Ravindran Rabindran [mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 5:29 AM To: users@tomcat.apache.org Subject: Running web application on Tomcat on a Windows Server -

RE: Session hijacking with Tomcat/Myfaces - unable to fix it

2006-08-16 Thread Propes, Barry L
yeah, I've found that, too, although getRemoteHost theoretically should return the machine name in many cases, but sometimes it won't. -Original Message- From: Maurice Yarrow [mailto:[EMAIL PROTECTED] Sent: Saturday, August 12, 2006 2:45 AM To: Tomcat Users List Subject: Re: Session

Re: Session hijacking with Tomcat/Myfaces - unable to fix it

2006-08-16 Thread David Rees
On 8/16/06, Propes, Barry L [EMAIL PROTECTED] wrote: From: Maurice Yarrow [mailto:[EMAIL PROTECTED] Generally, getRemoteHost() and getRemoteAddr() return the same value, but I had found a situation during testing where getRemoteAddr() returned an IP address but getRemoteHost() returned nothing.

Setting LD_ASSUME_KERNEL in RHEL 3 (Redhat enterprise linux 3)?

2006-08-16 Thread Ed
After 350,000 http requests, tomcat stops responding and got the some errors in mod_jk.log. After I set LD_ASSUME_KERNEL=2.4.1, Tomcat has handled 400,000 requests so far. Could someone confirm that setting LD_ASSUME_KERNEL=2.4.1 is the best way to solve Tomcat stops responding problem? I am

Can't assign requested address error

2006-08-16 Thread Biernesser, Beth
I'm running tomcat 5.0.25 on RHES 3.0 and when starting tomcat, I get the following error: Aug 16, 2006 5:00:52 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 15152 ms StandardServer.await: create[8005]: java.net.BindException: Cannot assign requested address

Re: web.xml config

2006-08-16 Thread zh rui
if you user tomcat 5.5 and jdk1.5 ,so , the webapp can autoDeploy yes or no? On 8/16/06, Rob Elliott [EMAIL PROTECTED] wrote: Hello, I need to deliver a WAR file to a customer. The cutomer will ultimately need to change the webapp configuration however they would like to do so without having

Re: web.xml config

2006-08-16 Thread Mark Thomas
Rob Elliott wrote: Hello, I need to deliver a WAR file to a customer. The cutomer will ultimately need to change the webapp configuration however they would like to do so without having to compile a new WAR file. Is it possible to change web.xml config parameters after deployment, ideally