Embedded tomcat example

2010-01-29 Thread Clay McCoy
http://github.com/claymccoy/ExecutableWar Here is an example project for people interested in making an executable war, or a Groovy script to start embeded Tomcat. The idea was to take my real project and remove everything not relevant to this example. But it doesn't work anymore. :( The

Re: Embedded tomcat example

2010-01-29 Thread Clay McCoy
to simply want to run a servlet in a servlet container, and it certainly breaks the principle of least surprise that it stops. On 1/29/10 2:04 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Clay McCoy [mailto:cmc...@acteksoft.com] Subject: Embedded tomcat example

Re: Embedded tomcat example

2010-01-29 Thread Clay McCoy
Thanks everyone for the help. I ended up making my original thread sleep indefinitely. I'm not happy about that, but it works. There were a lot of replies asking why. Again, this is an example project. Everything company specific and irrelevant to the example has been removed. It has no

Can anyone do a simple war deployment in Tomcat 6?

2010-01-21 Thread Clay McCoy
I want to deploy a war file in an embedded Tomcat. There a few outdated examples, and many posts where this gets asked and never answered. http://www.mail-archive.com/users@tomcat.apache.org/msg19481.html The methods once used to do this are gone, and I can't find any examples of how to do

Re: Can anyone do a simple war deployment in Tomcat 6?

2010-01-21 Thread Clay McCoy
- Dev Lists devli...@hanik.com wrote: simplest http://tomcat.apache.org/tomcat-6.0-doc/appdev/sample/ http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html On 01/21/2010 01:41 PM, Clay McCoy wrote: I want to deploy a war file in an embedded Tomcat. There a few outdated examples, and many

Deploying war on embedded tomcat

2010-01-20 Thread Clay McCoy
I want to programmatically deploy a War file in an embedded Tomcat. I found these two examples: http://onjava.com/onjava/2002/04/03/tomcat.html http://mail-archives.apache.org/mod_mbox/tomcat-users/200704.mbox/20070427190204.279...@gmx.net Both appear to be completely out of date. I'm using

App runs in Tomcat, but without images.

2009-12-21 Thread Clay McCoy
I'm running my app on embedded Tomcat. My startup script and information is here: http://gist.github.com/259737 I almost have it working. I just can't see any images. There are no errors, and I can't find any info elsewhere online. Any idea what I should look at? Thanks.

Servlets in web-inf/lib

2009-12-21 Thread Clay McCoy
I have some servlets that are in jars in web-inf/lib and Tomcat does not see them. I know that it is typical to have servlets in web-inf/classes, but it is an existing application. Is there a way to get Tomcat to use these Servlets without moving them to web-inf/classes? They are mapped in

404 for JSPs

2009-12-20 Thread Clay McCoy
When I run embedded Tomcat my jsps 404, but my servlets work. When I run standard (by putting my war on the Tomcat/webapps directory) my servlets 404 but my jsps work (without any css). Can anyone shed some light on this? My startup script for embedded is here: http://gist.github.com/259737

Re: 404 for JSPs

2009-12-20 Thread Clay McCoy
Oh, and no errors in the logs. On 12/20/09 8:32 PM, Clay McCoy cmc...@acteksoft.com wrote: When I run embedded Tomcat my jsps 404, but my servlets work. When I run standard (by putting my war on the Tomcat/webapps directory) my servlets 404 but my jsps work (without any css). Can anyone shed

Re: 404 for JSPs

2009-12-20 Thread Clay McCoy
(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:637) On 12/20/09 8:56 PM, Konstantin Kolinko knst.koli...@gmail.com wrote: 2009/12/21 Clay McCoy cmc...@acteksoft.com: When I run embedded Tomcat my jsps 404

Re: 404 for JSPs

2009-12-20 Thread Clay McCoy
yet. Thanks, Clay On 12/20/09 10:24 PM, Clay McCoy cmc...@acteksoft.com wrote: Thank you, this got me closer. I have two questions: 1) My current web.xml didn't configure the jsp servlet. I haven't had do configure that for a number of other containers. I don't understand why I had to do

Getting 404's on embedded Tomcat.

2009-12-18 Thread Clay McCoy
OS X 10.6.2, Java 1.6.0_17, tomcat 6.0.18 I've spent hours researching how to configure embedded Tomcat. It starts up fine, Spring config works, but I get 404's when loading the jsps ( http://localhost:8080/App/test.jsp) . I have the code that I am using to start Tomcat here: