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 log4j.append

welcome file problem

2008-05-31 Thread John Pedersen
Hi, I am having difficulties getting the welcome file to work. the url: http://website/index.htm works fine, but http://website leads to a 404 - *The requested resource (/) is not available.* >From my web.xml: ... /index.htm java.lang.Exception /erro

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

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-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. Unfortu

configuration issue

2008-05-14 Thread John Pedersen
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: 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

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: I have tried with and without antiJARLocking and antiResourceLocking ( I am using windows ) Nothing written to a log file either. Any suggestions? TIA, John

Re: errors on reload, fine on restart

2008-03-27 Thread John Pedersen
t reploy time > and I have not issolated 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:) > > &g

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 taki

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: 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 applic

Re: forwarding a post

2008-03-20 Thread John Pedersen
EMAIL PROTECTED]> wrote: > > -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 wa

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: https://sandbox.google.com/checkout/api/checkout/v2/checkout/Merchant/***"; name="gc" > http://s

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

Re: url encoding in ie6

2008-02-03 Thread John Pedersen
e browser cache and start > from a new (blank) browser window? > > What Tomcat version are you using? > > > 2008/2/3, John Pedersen <[EMAIL PROTECTED]>: > > I have just implemented url encoding in my app, so that it now works in > > Opera, FF, IE7 with cookies either

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 d

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: > > Wh

reload no use?

2007-08-11 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

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]

Re: problem switching to port 80

2007-04-26 Thread John Pedersen
One more problem after switching to using port 80 instead of 8080. https is no longer working. I just get "can't establish a connection to the server". It works fine if I switch back to 8080 Here is part of my server.xml: Do I need to change something else, beside the port number? Thanks,

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: 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 TCP0.0.0.0:

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: to I get this error message: SEVERE: Error starting endpoint java.lang.Exception: Socket bind failed: [730048] Only one usage of each socket address (protocol/network address

Re: using https for login

2007-03-30 Thread John Pedersen
and do 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

using https for login

2007-03-28 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 ht

Re: where to store user-generated files?

2007-02-21 Thread John Pedersen
I have something that works: in web.xml: imageServlet ImageServlet 2 imageServlet /users/image/* Links to user images are like this: ( I am using Velocity ) and this is the servlet: public class ImageServlet extends HttpServlet { public void do

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-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:

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 Ped