Re: Where's the source code of Tomcat Installer?

2012-10-16 Thread Mikolaj Rydzewski
On 16.10.2012 12:17, Chan David wrote: Hi, dear Tomcat Developers. I have finished a Java application and written service for it. If client want to use it under windows, I need deliver a friendly installer like Tomcat installer which is really nice. I downloaded Tomcat source bundle and can't

Re: Where's the source code of Tomcat Installer?

2012-10-16 Thread Chan David
Thank your help, actually I need the source code of application such as tomcat7.exe/tomcat7w.exe, which include code to show configuration window, start/stop service, notication, shell etc.. 2012/10/16 Mikolaj Rydzewski m...@ceti.pl On 16.10.2012 12:17, Chan David wrote: Hi, dear Tomcat

Re: Where's the source code of Tomcat Installer?

2012-10-16 Thread Alex Kasko
On 10/16/2012 02:53 PM, Chan David wrote: Thank your help, actually I need the source code of application such as tomcat7.exe/tomcat7w.exe, which include code to show configuration window, start/stop service, notication, shell etc.. AFAIK, these are renamed procrun binaries from commons-daemon

Re: Where's the source code of Tomcat Installer?

2012-10-16 Thread Mark Thomas
On 16/10/2012 11:53, Chan David wrote: Thank your help, actually I need the source code of application such as tomcat7.exe/tomcat7w.exe, which include code to show configuration window, start/stop service, notication, shell etc.. The service wrapper is Apache Commons Daemon. The installer is

FAIL - Application at context path /test could not be started

2012-10-16 Thread majin_clo...@t-online.de
Hello guys, well I could successfull deploy my web-application test on tomcat. My problem is now: If I want to run my web-application I get the following error: FAIL - Application at context path /test could not be started Does anyone know why this happen? Here ist

Re: FAIL - Application at context path /test could not be started

2012-10-16 Thread Daniel Barcellos
could you missing something on you web.xml ? 2012/10/16 majin_clo...@t-online.de majin_clo...@t-online.de Hello guys, well I could successfull deploy my web-application test on tomcat. My problem is now: If I want to run my web-application I get the following error: FAIL

Re: FAIL - Application at context path /test could not be started

2012-10-16 Thread majin_clo...@t-online.de
Thanks for your reply. :) my web.xml looks like this: ?xml version=1.0 encoding=UTF-8? web-app version=2.5 xmlns=http://java.sun.com/xml/ns/javaee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee

Re: FAIL - Application at context path /test could not be started

2012-10-16 Thread Konstantin Kolinko
2012/10/16 majin_clo...@t-online.de majin_clo...@t-online.de: Hello guys, well I could successfull deploy my web-application test on tomcat. My problem is now: If I want to run my web-application I get the following error: FAIL - Application at context path /test could not

Re: Re: FAIL - Application at context path /test could not be started

2012-10-16 Thread cantalou89
You can try remove the test/WEB-INF/lib/servlet-api-2.5-6.1.14.jar , cantalou89 From: majin_clo...@t-online.de Date: 2012-10-16 21:26 To: Tomcat Users List Subject: Re: FAIL - Application at context path /test could not be started Thanks for your reply. :) my web.xml looks like this:

Thread related MBean questions

2012-10-16 Thread Shanti Suresh
Greetings. I have some questions on finding the number of active threads in Tomcat. (1) On our QA system, I notice that the currenthreadsBusy MBean is either zero or one for the 8443 and 8080 connectors. Why then is ThreadCount = 93 when there is not much going on on QA? (2) When I want to graph

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

Re: Tomcat bug 53814 - PDF plugin in IE cannot download correctly

2012-10-16 Thread David Wall
On 10/15/2012 6:37 PM, 孙文 wrote: You are not suitable the open source community and you are a selfish guy. Wonderful, helpful and insightful! I egregiously suggested that reverting a line of code back to 7.0.26, which was also standards-compliant, would have been easy and would have

Re: Tomcat bug 53814 - PDF plugin in IE cannot download correctly

2012-10-16 Thread Mark Thomas
On 16/10/2012 18:54, David Wall wrote: By the way, the web.xml change we made was suggested in the bug report and seems to resolve it for our IE site visitors. Glad to head that disabling support for range requests works. That seems like a reasonable short-term workaround until someone

Restricting certain ports to certain contexts?

2012-10-16 Thread James Lampert
We have a situation: A Tomcat server with a number of contexts. One of those contexts should be available unsecured on port 8080. The others should only be available secured, on port 443. Is there a way we can restrict 8080 to the one unsecured context? -- JHHL

Re: pushing updates to a running tomcat instance

2012-10-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 S Ahmed, On 10/15/12 3:59 PM, S Ahmed wrote: so when you don't have reloads enabled, any updates (copying a new version of a .jar) to a folder will not do anything? Correct: Tomcat will basically ignore them. If you update a class file (or JAR

RE: ask tomcat to look at a specifc folder for the root website

2012-10-16 Thread Jeffrey Janner
-Original Message- From: S Ahmed [mailto:sahmed1...@gmail.com] Sent: Tuesday, October 16, 2012 1:52 PM To: Tomcat Users List Subject: ask tomcat to look at a specifc folder for the root website For my deployment, I have a set directory structure that I use. Is it possible to

Re: tomcat eclipse and too many connections

2012-10-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 g. rgar, On 10/15/12 5:16 PM, g. rgar wrote: No I am not leaking connections - definitely. I don't use a single connection to the DB in the scenario posted. I just undeploy and deploy the application via Eclipse. That *may* cause connections to

Failed JAR-scanning in Tomcat 7.0.32

2012-10-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I'm trying to get a webapp that has been running under TC 5.5 for quite a while running under Tomcat 7.0. Everything is the same except for my new server.xml: ?xml version='1.0' encoding='utf-8'? Server port=8066 shutdown=SHUTDOWN Listener

Re: Failed JAR-scanning in Tomcat 7.0.32

2012-10-16 Thread Mark Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 16/10/2012 21:06, Christopher Schultz wrote: I'm wondering if Tomcat should tolerate ClassNotFoundExceptions while JAR-scanning... otherwise, a webapp that wants to use a library will have to make sure *all* dependencies are installed alongside

Re: Tomcat 7.0.30 JAR Scanner ClassCastException

2012-10-16 Thread Jesse Farinacci
Greetings, On Thu, Oct 4, 2012 at 6:26 AM, Pid p...@pidster.com wrote: Please list the jars that are in your webapps WEB-INF/lib. Thank you for your response. I solved this, I had inadvertently allowed embedded Apache Tomcat libraries into my WEB-INF/lib directory. -Jesse -- There are 10

Re: Tomcat 7.0.30 JAR Scanner ClassCastException

2012-10-16 Thread Jesse Farinacci
Greetings, On Fri, Oct 5, 2012 at 9:15 AM, Shanti Suresh sha...@umich.edu wrote: I have a JSP which will tell which library loads which class. Cool. I prefer to use 'grep' as it is quite fast and I can use existing command line. Thank you for sharing, -Jesse -- There are 10 types of people

PooledJNDIRealm

2012-10-16 Thread Kris Easter
We are using the delivered JNDIRealm class for LDAP authN in Tomcat 7.0.29 but we're running into some problems when the back end LDAP is a little slow (another issue being addressed separately) and having threads stack up and timeout. A thread dump shows we end up with a lot of blocked threads,

RE: Restricting certain ports to certain contexts?

2012-10-16 Thread Caldarale, Charles R
From: James Lampert [mailto:jam...@touchtonecorp.com] Subject: Restricting certain ports to certain contexts? A Tomcat server with a number of contexts. One of those contexts should be available unsecured on port 8080. The others should only be available secured, on port 443. Is there a

Re: Restricting certain ports to certain contexts?

2012-10-16 Thread James Lampert
Caldarale, Charles R wrote: Read the servlet spec, chapter 13 (the 3.0 version is, unfortunately, harder to comprehend than the earlier versions). Put the following in the WEB-INF/web.xml of the webapps you wish to restrict to HTTPS: user-data-constraint

Re: tomcat eclipse and too many connections

2012-10-16 Thread g. rgar
Thanks for the reply On Tue, Oct 16, 2012 at 10:59 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 g. rgar, On 10/15/12 5:16 PM, g. rgar wrote: No I am not leaking connections - definitely. I don't use a single connection to

Re: Failed JAR-scanning in Tomcat 7.0.32

2012-10-16 Thread Konstantin Kolinko
2012/10/17 Christopher Schultz ch...@christopherschultz.net: I'm trying to get a webapp that has been running under TC 5.5 for quite a while running under Tomcat 7.0. Everything is the same except for my new server.xml: Caused by: java.lang.ClassNotFoundException: