Re: Spring MVC 3 application gives "Could not open JPA EntityManager" only on server

2011-11-23 Thread Will Glass-Husain
I'd guess a firewall is blocking the database requests when you use the full domain name. Now it sounds like you have incorrect query syntax. Good luck! WILL On Wed, Nov 23, 2011 at 10:04 PM, MiB wrote: > > 24 nov 2011 kl. 06.25 Will Glass-Husain suggested: > > telnet dbser

Re: Spring MVC 3 application gives "Could not open JPA EntityManager" only on server

2011-11-23 Thread Will Glass-Husain
First, make sure your server can talk to the db server. I usually ssh onto the web server, then from there, do telnet dbserver 3306 and make sure there's no connection error. (connection refused, likely due to firewall or other reason for db not being accessible) If that works, connect with the

Re: Maven Tomcat 7 plugin - changing war name

2011-11-23 Thread Will Glass-Husain
/ >true > > > > -Original Message- > From: Will Glass-Husain [mailto:wglasshus...@gmail.com] > Sent: Tuesday, November 22, 2011 10:03 PM > To: Tomcat Users List > Subject: Maven Tomcat 7 plugin - changing war name &g

Re: Maven Tomcat 7 plugin - changing war name

2011-11-22 Thread Will Glass-Husain
end of the > week to have a look). > > > 2011/11/22 Christopher Schultz : > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > Will, > > > > On 11/22/11 2:02 PM, Will Glass-Husain wrote: > >> I'm struggling to get the tomcat7 plugin

Maven Tomcat 7 plugin - changing war name

2011-11-22 Thread Will Glass-Husain
Hi, I'm struggling to get the tomcat7 plugin to work. I want to change the name of the war file. When I call mvn tomcat7:deploy-only It looks for war file XXX-YYY.war, where XXX is the artifactId and YYY is the version name. I'd rather use a different, simpler WAR file name "myapp". It's u

Re: Out of Memory exception (hotspot compilation)

2010-06-01 Thread Will Glass-Husain
ar...@unisys.com> wrote: > > From: Will Glass-Husain [mailto:wglasshus...@gmail.com] > > Subject: Out of Memory exception (hotspot compilation) > > > > Specifically, the JVM requested 8GB of memory while hotspot was > > trying to compile the exact same Velocity/Forea

Out of Memory exception (hotspot compilation)

2010-06-01 Thread Will Glass-Husain
Hi, I noticed in recent emails that Leon Kolchinsky was running Tomcat and Java requested 2GB of memory unexpectedly then died due to an out of memory exception. Bizarrely, the same thing happened to me today with very similar symptoms. Specifically, the JVM requested 8GB of memory while hotspot

Re: request thread hanging

2009-07-12 Thread Will Glass-Husain
Thanks Christopher, I'll upgrade to the latest mod_jk and look at the timeout params. We'll see if that helps. WILL On Fri, Jul 10, 2009 at 6:05 PM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Will, > > On 7/6/2009 4:15

Re: Best practice to deply a web app

2009-07-09 Thread Will Glass-Husain
I generate site-specific war files. I used to do this with an ant script but now I use Maven. With ant you can specify system variables with the -D option (I do -Ddeploy=sitename) and with Maven you can choose profiles with the -P option. I keep setting files for each server in source control an

Re: request thread hanging

2009-07-06 Thread Will Glass-Husain
P SIGNED MESSAGE- > Hash: SHA1 > > Will, > > On 7/6/2009 2:23 PM, Will Glass-Husain wrote: >> I've got request threads hanging > > [snip] > >> My configuration is httpd 2.0.52 -> mod_jk 1.2.26 -> Tomcat 6.0.18 >> (Windows) with tcnative 1.1.14

request thread hanging

2009-07-06 Thread Will Glass-Husain
Hi, I've got request threads hanging -- I can't seem to find out why. I've got a servlet that is sending an image retrieved from Jackrabbit. I use Commons IO -- IOUtils.copy()-- to copy the stream from the Jackrabbit node to response.getOutputStream(). Over time, the Tomcat manager shows an in

Re: logging ServletExceptions thrown during servlet init

2007-03-31 Thread Will Glass-Husain
ashmi Rubdi <[EMAIL PROTECTED]> wrote: On 3/30/07, Will Glass-Husain <[EMAIL PROTECTED]> wrote: > I just concluded a frustrating debugging session in which a servlet > was throwing a ServletException in the init method. How do you know that the Servlet was throwing an Excep

Re: logging ServletExceptions thrown during servlet init

2007-03-30 Thread Will Glass-Husain
de snippet I can't determine if you're using Log4J. -Rashmi On 3/30/07, Will Glass-Husain <[EMAIL PROTECTED]> wrote: > Just checked that. It's Jakarta Turbine, incidentally. No, the > servlet catches then rethrows the exception. > > catch (Excepti

Re: logging ServletExceptions thrown during servlet init

2007-03-30 Thread Will Glass-Husain
bine: init() failed: ", e); throw new ServletException("Turbine: init() failed", e); } Will On 3/30/07, Rashmi Rubdi <[EMAIL PROTECTED]> wrote: On 3/30/07, Will Glass-Husain <[EMAIL PROTECTED]> wrote: > Hi, > > I've got a que

logging ServletExceptions thrown during servlet init

2007-03-30 Thread Will Glass-Husain
Hi, I've got a question on logging under Windows (as a service). I'm running an almost-out-of-the-box install of Tomcat 5.5.20/JRE 1.5.10/Win XP. I just concluded a frustrating debugging session in which a servlet was throwing a ServletException in the init method. No error messages in any log