Re: tomcat service public key

2009-08-17 Thread Rusty Wright
I'd try the hudson mailing list; us...@hudson.dev.java.net and you'll need to sign up first I'll bet. Gagan Malik wrote: Hi, I'm a newbie to both tomcat and ssh and here's my problem: I have a web-app (Hudson) running on tomcat (ver 5). This Tomcat runs as a service on RHEL box. Hudson trigge

Re: Garbage collector

2009-08-17 Thread Rusty Wright
In my /etc/init.d/tomcat shell startup script for linux I have JAVA_OPTS="-server" JAVA_OPTS="${JAVA_OPTS} -Xmx512m" JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256m" JAVA_OPTS="${JAVA_OPTS} -XX:+PrintGCDetails" JAVA_OPTS="${JAVA_OPTS} -XX:+PrintGCTimeStamps" JAVA_OPTS="${JAVA_OPTS} -XX:+UseConcMarkS

Re: Database pooling prob

2009-05-03 Thread Rusty Wright
What did you specify for the ip address that tomcat uses for connecting to the database? If, for example, tomcat is using the host name of your machine, or its ip address that you'd use to connect to it from the outside, and psql is using localhost (127.0.0.1) which is a special ip address tha

Re: tomcat startup

2009-03-26 Thread Rusty Wright
As a workaround/kludge, could you have your tomcat startup scripts use the database command line tool to query the database and if it fails or doesn't return something reasonable, have it in a loop that sleeps for 5 or so seconds and then tries again? Nathan Aaron wrote: I am using Tomcat 6.0

Re: Parameterizing log4j.properties/xml files

2009-03-20 Thread Rusty Wright
I was doing something like this with LogBack (successor to log4j more or less), but I'm no longer using it and don't remember how I set it up. The class starts as follows: public final class InitLogback extends HttpServlet { @Override public void init() { final String pathPrefix

Re: configuration about tomcat for work with mysql/J connector

2009-03-19 Thread Rusty Wright
http://lmgtfy.com/?q=tomcat+mysql+tutorial E.g., http://www.roseindia.net/mysql/mysqldatabase.shtml Tomas Rodriguez wrote: Hi all I'm new in Tomcat and java, I installed already Tomcat 6.0 for windows 2000, I have to mysql server and the connector/j for work together mysql and Tomcat. I dec

Re: how to integrate tomcat with open EJB for online money transactions

2009-03-06 Thread Rusty Wright
Go back and read my note to your previous post where I refer to CyberSource's Hosted Order Page (HOP) and credit card industry's PCI security requirements. For bed time reading, download the PDF of the PCI security requirements (the condensed version will suffice); they're breathtaking. l...@w

Re: Unix daemon fails to compile

2009-03-04 Thread Rusty Wright
jsvc is part of Apache Commons isn't it? Have you tried their mailing list? http://commons.apache.org/daemon/mail-lists.html Jeffrey Trimble wrote: I'm running an IBM POWER server, AIX 5.3 and having the following error appear when configuring jsvc. checking for gcc option to accept ISO C89

Re: can tomcat 5.0 run ejb's and support online credit cardpayments

2009-03-04 Thread Rusty Wright
The PCI security requirements for doing your own credit card processing (where your system touches the credit card number in any way, and doesn't even store it) are quite extreme. You can easily avoid all those issues if you use CyberSource's Hosted Order Page, or Auth.net's. Caldarale, Char

Re: "remember me" authentication?

2009-02-26 Thread Rusty Wright
Plan C: go for the gusto and use Spring Security (aka Acegi). Learning Spring and Spring Security should keep you busy for the next year or so. Definitely looks good on the resume though. Charl Gerber wrote: Hi everyone, Does Tomcat provide default support in some way to implement a 'remem

Re: not using the port number in the address???

2009-02-25 Thread Rusty Wright
Sometimes people people without any swimming lessons get thrown into the deep end of the pool. Given the economy and layoffs, we'll probably see it more often. Mihamina Rakotomandimby (R12y) wrote: David Smith wrote: Since you haven't let us know anything about your server setup, we can onl

Re: Getting the tomcat server IP

2009-02-21 Thread Rusty Wright
Yuval, wouldn't that give you the client's address? I thought she wanted the server's ip address, with the added wrinkle that her server has multiple network interfaces. Yuval Perlov wrote: request.getRemoteAddr(); You can only get your actual IP after opening a connection. Of course it ca

Re: Getting the tomcat server IP

2009-02-20 Thread Rusty Wright
Look at the servlet api docs; it appears that you can get the ip address; have look at javax.servlet.ServletRequest.getLocalAddr(). http://java.sun.com/j2ee/1.4/docs/api/index.html Natalie Forood wrote: Thanka, but if I have multiple interfaces on the server, how do I know which interface t

Re: starting and stoppping tomcat

2009-02-14 Thread Rusty Wright
Instead of trying to stop and start tomcat, would it help if your app used a more functional scheduling system? For example, Quartz? http://www.opensymphony.com/quartz/wikidocs/FAQ.html paybackorfail wrote: Hi, thanks for replying, my application will take some data from a website and insert

Re: Can Tomcat accomplish this?

2009-02-06 Thread Rusty Wright
Apache Tuscany, perhaps. Christopher Long wrote: Hello: I was just wondering if Tomcat is able to do something similar to what I've described below. If not, does anyone have any recommendations on a Web Server that can? I'm attempting to find a web server that can basically act as a hub. Sa

Re: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-05 Thread Rusty Wright
Of course it will; no doubts about it! Any self-respecting maven fanatic can assure you of that!! ;-) epicwin...@hotmail.com wrote: Thanks for all the replies. Nice to know i can do this without any side effects. I think I will have to look into maven and see if that fits my deployment need

Re: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-04 Thread Rusty Wright
If you build your war files with maven you can use maven's profiles and have it build war files that contain settings tailored for each server. http://www.sonatype.com/books/maven-book/ http://www.exist.com/better-build-maven epicwin...@hotmail.com wrote: Is there any advantage why I should n

Re: running tomcat with root user.....umask in jsvc?

2009-02-02 Thread Rusty Wright
If you have control of the mode of the directory where the files are placed you may find the sticky bit helpful for propagating stuff down the treee: http://www.dartmouth.edu/~rc/help/faq/permissions.html epicwin...@hotmail.com wrote: Date: Mon, 2 Feb 2009 22:00:24 +0100 From: a...@ice-sa

Re: running tomcat with root user

2009-02-01 Thread Rusty Wright
Are you sure about the group write permissions? I glanced at the jailkit web page and it looks like it's sugar coating and chrome around a chroot. So I would think that using unix groups would work. And on the flip side, if unix groups don't work, it seems to me that ACLs wouldn't either.

Re: commons-logging problem

2009-01-30 Thread Rusty Wright
30, 2009 at 7:45 PM, Rusty Wright wrote: John Holman wrote: Also is it a supported configuration to use commons-logging and log4j in WEB-INF/lib? Where else would you put them? i.e. ${CATALINA_HOME}/common/lib Saves the hazzle to put them into each w

Re: commons-logging problem

2009-01-30 Thread Rusty Wright
John Holman wrote: Also is it a supported configuration to use commons-logging and log4j in WEB-INF/lib? Where else would you put them? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-m

Re: [OT] run tomcat as tomcat user

2009-01-25 Thread Rusty Wright
get back z. You'd only get back z if you fed it the string (a)+. These old regexps of the ed lineage also didn't use the newfangled + notation; you had to list how many you wanted to match, or zero or more; a* would match zero or more, aa* would match one or more, etc. André Warnier

Re: [OT] run tomcat as tomcat user

2009-01-24 Thread Rusty Wright
nds I never remember to use, same with xargs. André Warnier wrote: Rusty Wright wrote: I love shell script hacks so my /etc/init.d/tomcat script has the following in the upper part where it's setting variables: TOMCAT_HOME=`grep ^tomcat /etc/passwd | sed -e 's/.*:.*:.*:.*:.*:\(.*\)

Re: Regarding SVN

2009-01-23 Thread Rusty Wright
Try here: http://subversion.tigris.org/ http://subversion.tigris.org/mailing-lists.html Sneha Manohar wrote: Hello , I wish to install SVN on my laptop . Do I need to install SVN server & client both ? . I have windows vista operating system which version do I need to install ? sneha

Re: run tomcat as tomcat user

2009-01-23 Thread Rusty Wright
any directories in it? Or is it simply a replacement for the tomcat/webapps directory? Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rusty, Rusty Wright wrote: It's set up so that tomcat runs as the user tomcat. In order to do that you'll need to tweak t

Re: run tomcat as tomcat user

2009-01-23 Thread Rusty Wright
? Or is it simply a replacement for the tomcat/webapps directory? Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rusty, Rusty Wright wrote: It's set up so that tomcat runs as the user tomcat. In order to do that you'll need to tweak the ownership of the fi

Re: run tomcat as tomcat user

2009-01-21 Thread Rusty Wright
(Repeating a reply I sent a week or so ago.) I made this by modifying one for a different service. It's set up so that tomcat runs as the user tomcat. In order to do that you'll need to tweak the ownership of the files in the tomcat directory. I just made everything owned by tomcat except we

Re: GWT Sessions with Tomcat Session Replication?

2009-01-19 Thread Rusty Wright
Since "this" is com.google.gwt.user.server.rpc.RemoteServiceServlet, my first guess would be that that's where the problem is. Have you tried the gwt mailing list/forum? bikkel bikkel wrote: Good morning, I'm using GWT in a web application running on Tomcat 6. This is running fine for month

Re: PostgreSQL vs MySQL with Tomcat

2009-01-17 Thread Rusty Wright
from scratch, but going to keep it backwards compatible. Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rusty, Rusty Wright wrote: I'm in the process of migrating a MySQL database to PostgrSQL. Is this to cool-off your DBA's ears? ;) Seriously, if yo

Re: which JSP web hosting

2009-01-17 Thread Rusty Wright
I haven't tried any of these but they're in my bookmarks: http://www.godaddy.com/ http://www.dailyrazor.com/java/private_tomcat.php http://www.javaservlethosting.com/index.jsh http://rimuhosting.com/ http://www.slicehost.com/ Sneha Manohar wrote: Hello, I am developing web application using

Re: PostgreSQL vs MySQL with Tomcat

2009-01-16 Thread Rusty Wright
Regarding MySQL's autoincrement type, it looks like PostgreSQL has something similar: http://www.postgresql.org/docs/8.3/interactive/datatype-numeric.html#DATATYPE-SERIAL I'm in the process of migrating a MySQL database to PostgrSQL. Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE--

Re: PostgreSQL vs MySQL with Tomcat

2009-01-16 Thread Rusty Wright
That may be true about the public schema being used when one isn't specified. But when I use their pgAdmin gui tool and open the query window and try to run the tiger sample from the Jailer tutorial it blows up on the table creates, saying: ERROR: no schema has been selected to create in

Re: PostgreSQL vs MySQL with Tomcat

2009-01-15 Thread Rusty Wright
I've found MySQL's error messages particularly worthless in some situations; I had a foreign constraint and it was giving me some generic error when I was violating that foreign constraint. Say MySQL around our DBA and steam starts coming out of his ears. The one warning I can think of with P

Re: Linux Runtime Script

2009-01-15 Thread Rusty Wright
I never did that. What scripts? Mark Thomas wrote: -Original Message- From: Martin Gainty [mailto:mgai...@hotmail.com] Sent: 13 January 2009 14:18 To: Tomcat Users List Subject: RE: Linux Runtime Script Feris- remember to edit $CATALINA_HOME/conf/catalina.policy and specify at minim

Re: single instance of background job?

2009-01-11 Thread Rusty Wright
Hmm, I see your point. I'll discuss it with others here and see what they think. Leon Rosenberg wrote: Hello Rusty, On Sun, Jan 11, 2009 at 6:10 PM, Rusty Wright wrote: The reason making it a web app appeals to me is that then I can have it log to a database, and I can twea

Re: Implementing service chaining with Tomcat6

2009-01-11 Thread Rusty Wright
Too many bins; I meant /tmp/zzz (as it is in the script). Rusty Wright wrote: What options are available to you to determine if the daemon is ready? For example, does it create a lock file? If so, you could modify your tomcat startup script in /etc/init.d, the one that calls /usr/local

Re: Logging configuration in Tomcat

2009-01-11 Thread Rusty Wright
If you're looking for a way to have a central log4j file for all apps, that may not be easily done. I don't know how it is now, but I remember that in previous versions of tomcat sharing tomcat's logging was problematic, which I think may have been due to Commons Logging. But that's just my h

Re: Linux Runtime Script

2009-01-11 Thread Rusty Wright
I made this by modifying one for a different service. It's set up so that tomcat runs as the user tomcat. In order to do that you'll need to tweak the ownership of the files in the tomcat directory. I just made everything owned by tomcat except webapps, which I own, but which is group owned

Re: single instance of background job?

2009-01-11 Thread Rusty Wright
on process on one machine, or if it _must_ be in tomcat (why?) tie it to an ip adress or server name, so the task just checks that it can only run on tomcat1 or tomcat 10, or whatever... Otherwise you'll need to check logs on all machines to find out which run the task today. Leon On Sun, Jan

Re: single instance of background job?

2009-01-11 Thread Rusty Wright
Ok, thanks; I'll look into terracotta. Lucas Galfaso wrote: Hi, This should be strait forward if you use terracotta. If you have a NFS that all Tomcat instances share, using FileChannel::lock is way cheaper than any other solution. -lg On Sun, Jan 11, 2009 at 2:30 AM, Rusty Wright

Re: Implementing service chaining with Tomcat6

2009-01-10 Thread Rusty Wright
What options are available to you to determine if the daemon is ready? For example, does it create a lock file? If so, you could modify your tomcat startup script in /etc/init.d, the one that calls /usr/local/tomcat/bin/startup.sh, and have it check if the daemon is ready and wait until it is

single instance of background job?

2009-01-10 Thread Rusty Wright
This isn't really a Tomcat question I'm guessing but I don't know where else to ask. In our setup we have multiple Tomcats behind a load balancer. I have a background task that will run once a day, via Quartz. All Tomcats will be using the same war so they will all run the job, but I need it

Re: File system resource for static content

2008-12-14 Thread Rusty Wright
That seems like the usual race condition problem to me. Hopefully one of them will get an error, at worst, and it won't silently overwrite the file with the one from whoever won the race. André Warnier wrote: André Warnier wrote: Hi. What if user-a uploads a file called "abc.jpg" and then u

Re: Setting /WebContent as ROOT for an application

2008-12-14 Thread Rusty Wright
To add to what Alan said: If I create a new Eclipse Dynamic Web Project, and name it MyWebApp during the project setup, in the first window it has a drop down for Target Runtime. That should be your installed Tomcat on your desktop development machine; Windows in my case. It starts out with

Re: tomcat ROOT

2008-10-08 Thread Rusty Wright
re understaffed and overworked so having a common setup for everyone on this shared system seems reasonable to me. André Warnier wrote: Johnny Kewl wrote: - Original Message - From: "Rusty Wright" <[EMAIL PROTECTED]> To: "Markus Lord" <[EMAIL PROTECTED]&g

Re: tomcat ROOT

2008-10-08 Thread Rusty Wright
Excellent; thanks! Johnny Kewl wrote: - Original Message - From: "Rusty Wright" <[EMAIL PROTECTED]> To: "Markus Lord" <[EMAIL PROTECTED]>; "Tomcat Users List" Sent: Tuesday, October 07, 2008 11:31 PM Subject: Re: tomcat ROOT Hi Ma

Re: tomcat ROOT

2008-10-07 Thread Rusty Wright
Hi Markus, did you ever figure this out? I was looking in the archives of the tomcat mailing list and saw your query but it didn't seem to me that anyone answered it fully, at least not for me. I figured out that I could remove/rename the webapps/ROOT directory and deploy my war file as ROOT.

Re: Using tabbed browsers causes session sharing

2008-08-15 Thread Rusty Wright
Sorry, I thought I did. It has nothing to do with tomcat; it's up to the browser whether or not it assigns different sessions to the tabs or not. Apparently IE, or some versions of IE, do. In my experience Firefox doesn't. I think if you have multiple Firefoxes opened, i.e., separate window

Re: Using tabbed browsers causes session sharing

2008-08-15 Thread Rusty Wright
Sessions are tied to the whole browser, not tabs within the browser. In other words, it's a browser issue, not a tomcat issue. murthy gandikota wrote: Hello All While using tabbed browsers (e.g. IE 7) I am facing a login problem. Say on Tab#1 I login with a username A, on Tab#2 I login with us

Re: Cant Find servlets-cgi.jar

2008-04-09 Thread Rusty Wright
Try doing a google search with "servlets-cgi jar" site:apache.org I don't see anything for Tomcat 6 in the results, only previous versions. Troy Bull wrote: Greetings I am trying to enable cgi on my tomcat 6 installation. I followed the instructions but it says to find and rename a jar

Re: Securing Tomcat

2008-03-25 Thread Rusty Wright
I have no personal experience with this but it might be a useful resource: http://www.owasp.org/index.php/Securing_tomcat abhay srivastava wrote: Hello Folks, How do I secure Tomcat version 6 ? Can anyone point me to right documentation ? I am in a process of hosting a website on T

using deferredValue in a simple tag file

2007-12-31 Thread Rusty Wright
Tomcat is version 6.0.14, java is jdk1.6.0_03, eclipse is 3.3.1.1. Tomcat is running under/in eclipse. In a nutshell, I'm trying to use deferredValue with an attribute in a simple jsp tag file, the kind of tag file that contains jsp, no java code. When I added deferred value to my attribute