log4j problem

2008-05-31 Thread John Pedersen
Hi, I'm still trying to fix the problem with the welcome file not working, but my logging going wrong has trumped that little problem. I had it working fine using log4j - here's my properties file: log4j.rootLogger=info, logfile log4j.appender.stdout=org.apache.log4j.ConsoleAppender

cheap tomcat hosting?

2008-05-15 Thread John Pedersen
Here is a development which might mean that cheap Tomcat hosting with full control might become available. https://www.gandi.net/hosting/ gandi.net is establishing virtual servers using xen. I know many other companies are using virtual servers, but this looks like it could be a winner in terms

Re: configuration issue

2008-05-15 Thread John Pedersen
Mark, I did have this running, but switched back to using: org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory and got rid of commons-dbcp, in the interests of keeping things as simple as possible. Thanks for pointing this out. John 2008/5/14 Mark Thomas [EMAIL PROTECTED]: John Pedersen

configuration issue

2008-05-14 Thread John Pedersen
/context.xml, and put the context info in server.xml ( which the Tomcat documentation recommends NOT doing). Why would my original config not work? After spending so long resolving this, I am curious as to why it happened. Any comments most welcome, thanks, John Pedersen

Re: configuration issue

2008-05-14 Thread John Pedersen
2008/5/14 Christopher Schultz [EMAIL PROTECTED]: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, John Pedersen wrote: | Cannot create JDBC driver of class '' for connect URL 'null' This comes up quite often. Unfortunately, any number of bad configuration options can result

war file not working

2008-04-21 Thread John Pedersen
Hi, When I drop a war file into my webapps folder, it doesn't explode. Nothing happens. Here is a part of my server.xml: Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false antiJARLocking=true

Re: war file not working

2008-04-21 Thread John Pedersen
Never mind - I found a context.xml file in tomcat/conf/catalina - removing that allowed the war file to work. On 21/04/2008, John Pedersen [EMAIL PROTECTED] wrote: Hi, When I drop a war file into my webapps folder, it doesn't explode. Nothing happens. Here is a part of my server.xml

errors on reload, fine on restart

2008-03-27 Thread John Pedersen
Hi, I have just got the PayPal NVP stuff working in my app, but getting it to work required adding quite a few jars that came with the download from PayPal. Trouble is, when I try to reload the app, I get a whole list of exceptions listed. If I restart Tomcat, the app runs fine. I have tried

Re: errors on reload, fine on restart

2008-03-27 Thread John Pedersen
it: {ERROR} startup.ContextConfig Parse error in application web.xml file at jndi:/localhost/WEB-INF/web.xml java.lang.NullPointerException at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:) jfk -Original Message- From: John Pedersen [mailto:[EMAIL

Re: Tomcat Log Error on app deployment - NullPointer Exception, META-INF?

2008-03-24 Thread John Pedersen
Hi, Did you resolve this issue? I am getting the same error - since adding the libraries needed for PayPal NVPApi John On 21/03/2008, micah7 [EMAIL PROTECTED] wrote: Hi, When I build and deploy my new Java web application war file (using ant on Linux command-line), I get the application

Re: Tomcat Log Error on app deployment - NullPointer Exception, META-INF?

2008-03-24 Thread John Pedersen
I have my app working now - but it took a lot of jiggling about with jar files. I can't say exactly what fixed my setup, but I'd suggest removing all those jar files you aren't absolutely sure you need, then adding them back in as necessary when you see errors in the log.

Re: forwarding a post

2008-03-20 Thread John Pedersen
: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, John Pedersen wrote: | Can anyone suggest how I can forward a post using servlets? [snip] | Then, depending on which button the user clicks, I want to forward the user | on to google/paypal using POST, adding the parameters such as cart

forwarding a post

2008-03-19 Thread John Pedersen
Hi, Can anyone suggest how I can forward a post using servlets? I have a page with 3 forms on it. The forms are paypal, google checkout, and one other payment methods. eg: form method=POST action= https://sandbox.google.com/checkout/api/checkout/v2/checkout/Merchant/***; name=gc

Re: running different versions of the same app

2008-02-17 Thread John Pedersen
'how easy do you need development to be?' How easy can it get? Yes, I can switch the css easy enough, but the changes are more than just styles. And I want to test the app with real customers. I don't want them using subdirectories. What I would like is webapps/version1/

running different versions of the same app

2008-02-16 Thread John Pedersen
? Thanks, John Pedersen

url encoding in ie6

2008-02-03 Thread John Pedersen
Hi, I have just implemented url encoding in my app, so that it now works in Opera, FF, IE7 with cookies either enabled or disabled. When cookies are disabled, I get the jsessionid showing up in the url. (Most pages require the user to be logged in ). It doesn't work for ie6 though. With cookies

reload no use?

2007-08-12 Thread John Pedersen
Hi, When I reload an app for the third time, Tomcat hangs, and I have to stop and start it - which is slow as the CPU is being used at close to 100%. This has been the case with Tomcat 5 and 6, Windows 2000, XP and Vista. I have to remember to stop/start Tomcat after the second reload. Is there

Re: reload no use?

2007-08-12 Thread John Pedersen
Nothing that suggests a memory leak. Do you have any suggestions how I might go about finding where this might be happening? It only seems to happen on reload - otherwise, the app runs and runs. On 12/08/07, Mark Thomas [EMAIL PROTECTED] wrote: John Pedersen wrote: When I reload an app

Server redirected too many times (20)

2007-04-30 Thread John Pedersen
Hi, I can't understand why Tomcat gives me this error message when I try to reload my app: Server redirected too many times (20) Is my app getting too big ( 400 files) ? It seems to happen more and more often. Usually a server restart fixes it. Sometimes I have to restart my machine. At the

Re: problem switching to port 80

2007-04-26 Thread John Pedersen
Got it - had to change 8443 to 443. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

problem switching to port 80

2007-04-25 Thread John Pedersen
Hi, I have an app running fine on port 8080, but nothing works when I switch to port 80 - in server.xml, changing: Connector port=8080 protocol=HTTP/1.1 maxThreads=150 connectionTimeout=2 redirectPort=8443 / to Connector port=80 protocol=HTTP/1.1

Re: problem switching to port 80

2007-04-25 Thread John Pedersen
netstat -an with Tomcat stopped: Proto Local Address Foreign AddressState TCP0.0.0.0:1350.0.0.0:0 LISTENING TCP0.0.0.0:4450.0.0.0:0 LISTENING TCP0.0.0.0:1025 0.0.0.0:0 LISTENING TCP

Re: problem switching to port 80

2007-04-25 Thread John Pedersen
Not sure what happened - but it is working now. Now I just have to try to find out if it was something I switched off, or someone else changing the networks settings. Thanks for the fast response guys. If I get a definite answer to what went wrong, I will post it for future reference. John

Re: using https for login

2007-03-30 Thread John Pedersen
it programmatically? John On 29/03/07, Mark Thomas [EMAIL PROTECTED] wrote: John Pedersen wrote: I have been able to get all the admin pages running on https, but I want just the login page on https, and the actual admin pages using http. Can anyone suggest how to do this. Here is what I have in my web.xml

using https for login

2007-03-29 Thread John Pedersen
Hi, I want to protect the admin parts of my app. I have made a security-constraint on my admin folders, and all works fine - calling for any page in admin gets redirected to a login form. However, I'd like the login form to be encrypted. I have been able to get all the admin pages running on

Re: where to store user-generated files?

2007-02-21 Thread John Pedersen
Looks like roll your own then! A few thoughts on the matter - maybe someone could add to them? It should be easy to map requests for images to a servlet, which can then find the appropriate image file wherever it might be ( within or outside the server ). Like this in the web.xml file:

Re: where to store user-generated files?

2007-02-21 Thread John Pedersen
I have something that works: in web.xml: servlet servlet-nameimageServlet/servlet-name servlet-classImageServlet/servlet-class load-on-startup2/load-on-startup /servlet servlet-mapping servlet-nameimageServlet/servlet-name url-pattern/users/image/*/url-pattern

Re: where to store user-generated files?

2007-02-20 Thread John Pedersen
to be accessible through the app via relative urls. Maybe I am asking too much ( I chose a long time ago not to store images and large files in the db - just store names and urls - maybe this was a poor choice.) On 16/02/07, Mikolaj Rydzewski [EMAIL PROTECTED] wrote: John Pedersen wrote: I have

where to store user-generated files?

2007-02-16 Thread John Pedersen
Hi, I have an app that generates some big, expensive-to-create files. Where can I store these files, so that they aren't destroyed when I reload or redeploy, and still get allow users to access them via Tomcat? Thanks, John Pedersen