Re: Servlet init method called twice (2nd time with null init params)

2012-10-17 Thread Stuart Broad
to do with the init/param problem I am seeing. Cheers, Stuart On 16 Oct 2012, at 18:06, Stuart Broad wrote: Hi all, I am not sure why but my servlet init method is getting called more than once and I am not sure why. Any help would be much appreciated. My web.xml is as follows

Re: Servlet init method called twice (2nd time with null init params)

2012-10-17 Thread Stuart Broad
) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:680) Cheers, Stuart On 17 Oct 2012, at 09:15, Stuart Broad wrote: Hi, I wanted to add that I am accessing the servlet via a javascript request from Apache HTTP. As such I am

Re: Servlet init method called twice (2nd time with null init params)

2012-10-17 Thread Stuart Broad
Hi, Ok so it turned out to be a simple fix. I had not named the servlet (in web.xml) that same as the access url (war). Cheers, Stuart On 17 Oct 2012, at 10:03, Stuart Broad wrote: Hi, Sorry to keep replying to my own question but I gathered two stack traces from each of the calls

Servlet init method called twice (2nd time with null init params)

2012-10-16 Thread Stuart Broad
Hi all, I am not sure why but my servlet init method is getting called more than once and I am not sure why. Any help would be much appreciated. My web.xml is as follows: ?xml version=1.0 encoding=UTF-8? web-app servlet servlet-namemyserlvet/servlet-name