Re: WLSTInterpreter classloading

2009-06-17 Thread Felix Schumacher
Hi, On Wed, June 17, 2009 00:20, Pankaj Tandon wrote: > > Hi all, > I know Tomcat classloading is a hairy subject but I've tried all I could > and > would appreciate some help! > > I'm using Tomcat 6.0.18 with JDK 1.6 > My webapp uses the Weblogic supplied Jython Interpreter called > WLSTInterprete

Re: Logging - No More Connections

2009-06-17 Thread JebaB
I am using a standard install of 6.0.18 with JDK 1.6 on AIX. I am sure I am running out connections as I have set the maxThreads to 10 and acceptCount to 5. I am using SOAPUI to generate the load and in the SOAPUI GUI I can see the connections refused message. Thanks. Christopher Schultz-2 wrot

RE: override context defined in server.xml doesn't work !?!

2009-06-17 Thread Caldarale, Charles R
> From: Joe Lam [mailto:joe@moni-media.net] > Subject: override context defined in server.xml doesn't work !?! > > I'm trying to override the in server.xml (coz > cpanel creates a default "blank" context for new vhost > in server.xml, and we shouldn't edit the server.xml coz > cpanel will up

override context defined in server.xml doesn't work !?!

2009-06-17 Thread Joe Lam
the tomcat is v5.5 I'm trying to override the in server.xml (coz cpanel creates a default "blank" context for new vhost in server.xml, and we shouldn't edit the server.xml coz cpanel will update it whenever it wants) I created "conf/Catalina/serverName/ROOT.xml" with but it doesn't work. the R

RE: Session replication fails on ReplicationValve invocation

2009-06-17 Thread David Nillesen
I think I may have sorted the problem. Would that have occurred if I was asking for a webpage without a context? i.e. just hitting some undefined area? Thanks, Dave -- David Nillesen UNIX Systems Administrator Ph: + 61 2 6773 2112 -Original Message- From: Martin Gainty [mailto:mgai...@h

RE: net stop tomcat6 service hangs on Windows 2008 (64-bit)

2009-06-17 Thread Caldarale, Charles R
> From: Matt Sullivan [mailto:mjdsulli...@hotmail.com] > Subject: net stop tomcat6 service hangs on Windows 2008 (64-bit) > > I'm seeing a pretty consistent issue when stopping Tomcat6, when > running as a Windows service. The usual cause is extra non-daemon threads started by a webapp that does

RE: Pointers on diagnosing session and thread hangs

2009-06-17 Thread Caldarale, Charles R
> From: Pete Helgren [mailto:p...@valadd.com] > Subject: Re: Pointers on diagnosing session and thread hangs > > *How* do you dump a thread? And, what is in it? It's not "a thread" dump, it's a "thread dump" - a capture of the call stacks of every thread currently running inside a JVM. The jsta

RE: Just a few questions on my Tomcat Configuration

2009-06-17 Thread Caldarale, Charles R
> From: Josh Gooding [mailto:josh.good...@gmail.com] > Subject: Re: Just a few questions on my Tomcat Configuration > > Maybe each company would have a customized few pages each with > their own directories, tied to their own schema, etc, but point > to the core application in another directory.

RE: net stop tomcat6 service hangs on Windows 2008 (64-bit)

2009-06-17 Thread Martin Gainty
Hi Matt what happens if you query the tomcat 6 service sc query tomcat6 ? Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bit

RE: Session replication fails on ReplicationValve invocation

2009-06-17 Thread Martin Gainty
Hello Dave that line from ReplicationManager is getManager() Manager manager = request.getContext().getManager(); i would check to make sure the Manager node in /context.xml WEB-INF/web.xml all explained here http://www.scribd.com/doc/1549083

net stop tomcat6 service hangs on Windows 2008 (64-bit)

2009-06-17 Thread Matt Sullivan
I'm seeing a pretty consistent issue when stopping Tomcat6, when running as a Windows service. Repro: From the cmd prompt type net stop tomcat6 Results: The Apache Tomcat service is stopping The Apache Tomcat service could not be s

Re: Just a few questions on my Tomcat Configuration

2009-06-17 Thread Josh Gooding
Oh I love a good theory! Maybe each company would have a customized few pages each with their own directories, tied to their own schema, etc, but point to the core application in another directory. Everyone would see their own front ends, but use a common "framework" in the backend maybe? That is

Session replication fails on ReplicationValve invocation

2009-06-17 Thread David Nillesen
Hi, I'm currently trying to establish a cluster of tomcat 5.5.27 servers to deploy sakai in, so I'm stuck on version 5.5. It is not an option to upgrade to tomcat 6 which from all accounts has much better session replication. I have cluster membership up and working via multicast

RE: Reading POSTed data

2009-06-17 Thread Martin Gainty
Kyle- i would like to hear some more on how to represent blob with title or content-type metadata an example would be axis2 1.4 HexBinary or Base64Binary (BLOBS) accompanied by a String title such as what is represented by this xmime.xsd http://www.w3.org/2001/XMLSchema"; xmlns:xmime="ht

Re: Pointers on diagnosing session and thread hangs

2009-06-17 Thread Pete Helgren
Thanks Chris. I'll see if I can get the relevant sections from the server.xml. The folks who have access to the server have gone home for the day. You said: Can you also post a thread dump? I'm surprised that Tomcat is exceeding (or appearing to exceed) its own limit on request processing th

Re: Reading POSTed data

2009-06-17 Thread Kyle Brantley
André Warnier wrote: Kyle Brantley wrote: ... My point, is that it is entirely possible for a browser to POST data to a resource without sending it as multipart/form-data or application/x-www-form-urlencoded. Hey! that is cheating. You never mentioned Javascript before. ;-) But true. I wasn't

Re: Reading POSTed data

2009-06-17 Thread André Warnier
David Smith wrote: Having had to recently do some SOAP work, it looks to me that is at least partially what the OP was trying to begin with. SOAP performs a POST with XML as the body of the request. It's not URI encoded parameters or multipart data like the HTML Form posts, but a standard POST

Re: Reading POSTed data

2009-06-17 Thread André Warnier
Kyle Brantley wrote: ... My point, is that it is entirely possible for a browser to POST data to a resource without sending it as multipart/form-data or application/x-www-form-urlencoded. Hey! that is cheating. You never mentioned Javascript before. ;-) But true. I wasn't thinking of XMLHttpRe

Re: Reading POSTed data

2009-06-17 Thread David Smith
André Warnier wrote: > Christopher Schultz wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> André, >> >> On 6/17/2009 4:06 AM, André Warnier wrote: >>> Sorry to interrupt, but actually guys I believe that the problem is due >>> to the way the data is POSTed, which in this case is -

Re: Reading POSTed data

2009-06-17 Thread Kyle Brantley
André Warnier wrote: To me thus, the "correct" way - and the only way a browser would do it - to POST this data, would be in the form of a multipart/form-data body, itself composed of a MIME header and a body that would be the XML blob. If I may: function loadXMLDoc(xmlRequest) {

Re: Redeploy application

2009-06-17 Thread Jonathan Mast
dude, step-by-step instructions are on that page, its actually one of the more clear and concise how-tos provided by tomcat. On Wed, Jun 17, 2009 at 5:21 PM, Tokajac wrote: > > http://localhost:8080/manager/deploy?path=/appname > > but i get: > Access to the requested resource has been denied >

Re: Reading POSTed data

2009-06-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 6/17/2009 4:58 PM, André Warnier wrote: > Christopher Schultz wrote: >> >> Note that [restricted content-type] is an HTML thing, not an HTTP >> thing. HTML forms may only be sent using two distinct >> Content-Types, but HTTP POST can do any

Re: Error with Solr configuration in Tomcat container

2009-06-17 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: Error with Solr configuration in Tomcat container In French, Chance is a woman. Any response to that is bound to get someone in trouble... For good balance though, Malchance is also of the feminine persuasi

Re: Redeploy application

2009-06-17 Thread Tokajac
http://localhost:8080/manager/deploy?path=/appname but i get: Access to the requested resource has been denied with user: tomcat; pass: tomcat Can you explain step-by-step the redeployment configuration, please? Regards Jonathan Mast-2 wrote: > > try: > > http://tomcat.apache.org/tomcat-6

RE: Error with Solr configuration in Tomcat container

2009-06-17 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: Error with Solr configuration in Tomcat container > > In French, Chance is a woman. Any response to that is bound to get someone in trouble... - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERI

RE: Reading POSTed data

2009-06-17 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: Reading POSTed data > > Maybe I am interpreting this one step too far, but it seems to me from > all this, that the designers of the Servlet Spec at least, were only > planning for form data, in pairs of parameter=value, and not for one

Re: Error with Solr configuration in Tomcat container

2009-06-17 Thread André Warnier
Martin Gainty wrote: Bonjour ... Bon Chance Martin Martin, the correct spelling is "Bonne Chance". In French, Chance is a woman. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-ma

Re: Celebrating Apache Tomcat 10th Anniversary

2009-06-17 Thread André Warnier
+1 multiplied by the number of websites powered by Apache httpd. I don't know what else anyone could say that would be a greater endorsement and thank you. Ken Bowen wrote: +1 exp 10! On Jun 17, 2009, at 12:28 PM, Markus Schönhaber wrote: Mladen Turk: So, wish us happy anniversary :) Con

Re: Redeploy application

2009-06-17 Thread Jonathan Mast
try: http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html On Wed, Jun 17, 2009 at 4:53 PM, Tokajac wrote: > > Hello, > > > Whenever i want to deploy new version of application (that's VERY often), > have to: > stop tomcat; > execute build.xml -ant script; > start tomcat; > > Is there an

Re: Error with Solr configuration in Tomcat container

2009-06-17 Thread André Warnier
Mukerjee, Neiloy (Neil) wrote: ... The file solrconfig.xml is in /solr/conf/ in the Tomcat directory, but I'm not sure how to interpret the current working directory, and Googling this error hasn't led me in any direction. Any suggestions as to where to go from here would be greatly appreciate

Re: Reading POSTed data

2009-06-17 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 6/17/2009 4:06 AM, André Warnier wrote: Sorry to interrupt, but actually guys I believe that the problem is due to the way the data is POSTed, which in this case is - I believe - invalid. See http://www.w3.org/T

Redeploy application

2009-06-17 Thread Tokajac
Hello, Whenever i want to deploy new version of application (that's VERY often), have to: stop tomcat; execute build.xml -ant script; start tomcat; Is there any way, target in ant, that can make this easier? Regards P.S. http://www.coderanch.com/t/449958/Tomcat/Redeploy-application#20

Re: Serving images from classes directory

2009-06-17 Thread Tsirkin Evgeny
What is your OS? If this a *nix - then you have make sure that Web-INF is readable for the world, this is NOT good .On the other hand you could just create a soft link to whatever they have there... Evgeny On Wed, Jun 17, 2009 at 9:20 PM, Susan G. Conger wrote: > I started with the authors of th

Re: Serving images from classes directory

2009-06-17 Thread André Warnier
Susan, have a look at this : http://tuckey.org/urlrewrite/ This is a "servlet filter", which kind of "wraps" your webapp, intercepting all calls before they reach your webapp. On the way, it allows you to modify the request URL (for instance), to for example to redirect the call to some simple

Problems with juli ClassLoaderLogManager.readConfiguration()

2009-06-17 Thread Matt Passell
I'm working with a set of webapps running on Tomcat 6.0.20 that use java.util.logging (aka JDK1.4 Logging) for legacy reasons. Since the webapps each have their own logging configuration, I followed the instructions on the Tomcat logging page ( http://tomcat.apache.org/tomcat-6.0-doc/logging.html)

RE: Error with Solr configuration in Tomcat container

2009-06-17 Thread Mukerjee, Neiloy (Neil)
The issue was indeed in the Java options in the startup file for Tomcat. In order to fix the issue, all I had to do was go to /etc/init.d/, edit the Tomcat startup file to include: explort JAVA_OPTS="$JAVA_OPTS -Dsolr.solr.home=/usr/local/tomcat6.0.20/solr", and restart Tomcat. Thank you!

Re: Session replication using only PersistenceManager + JDBCStore

2009-06-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yves, On 6/17/2009 6:04 AM, Yves Glodt wrote: > In my setup are 4 apaches with mod_proxy which connect to 4 tomcats. > In front of the apaches is a hardware balancer which does > round-robin, but with a kind of sticky TCP-sessions, so mostly the > cl

Re: [OT] Apache mod_jk HTTPS problem

2009-06-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Attacus, On 6/16/2009 4:04 PM, attacus wrote: > NameVirtualHost *:443 This ain't gonna work: SSL negotiation occurs /before/ the HTTP headers are sent, meaning that the VirtualHost has already been chosen before the "Server" header can be inspected.

Re: DBCP connection pool exhausted, can I trace borrowed connnections from pool?

2009-06-17 Thread Arrowx7
That worked, thanks! btw, for everyone else: abandoned thing only works when numActive() hits maxActive(), and prints log to System.out. Filip Hanik - Dev Lists wrote: > > set properties > > removeAbandoned="true" > removeAbandonedTimeout="60" > logAbandoned="true" > > This will expire leaked

Re: Reading POSTed data

2009-06-17 Thread Kyle Brantley
Tim Funk wrote: available() - "Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream." So its not an accurate gauge of how much content is available from the client. That explains that quite ni

RE: Error with Solr configuration in Tomcat container

2009-06-17 Thread Martin Gainty
Bonjour looking for solr configuration file solrconfig.xml i would ask the folks at solr about this as they could send you or at least suggest a working solrconfig.xml configuration is available at http://wiki.apache.org/solr/SolrConfigXml http://lucene.apache.org/solr/mailing_lists.html A fe

Re: Serving images from classes directory

2009-06-17 Thread David kerber
Susan G. Conger wrote: The template files are in the classes directory. This is a web app that is deploying it's own web app. So it is rather convoluted. The web app that gets deployed is my web app while the web app doing the developing is the third party tool. Thanks, Susan Self-modify

Re: Serving images from classes directory

2009-06-17 Thread Pid
Susan G. Conger wrote: > I started with the authors of the tool app and they said it was a tomcat > limitation. Basically can't be done. What is 'it', precisely? If they control the tool app then why can't they specify a location to place scripts, stylesheets and images, so that they output in

RE: Serving images from classes directory

2009-06-17 Thread Caldarale, Charles R
> From: Susan G. Conger [mailto:sus...@bfcassociates.com] > Subject: RE: Serving images from classes directory > > This is a web app that is deploying it's own web app. Isn't that illegal in some states/countries? > The web app that gets deployed is my web app while the web > app doing the deve

Re: Tomcat shutdown problem due to running threads.

2009-06-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Carsten, On 6/17/2009 2:04 PM, CBy wrote: > Thank you, Christopher. It appears that I now have to ways to solve my > problem. Calling shutdown() stops the threads orderly, so I think I'll > opt for the ContextListener, although I am not 100% sure. I'

Re: tomcat 6 - setting classpath

2009-06-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tom, On 6/17/2009 7:43 AM, Tom Brown wrote: > it is only configuration files - no jar changes. If your code uses getResourceAsStream(), then the classpath will be checked. The webapp's classpath will essentially be WEB-INF/classes:WEB-INF/lib:CATALIN

Re: Pointers on diagnosing session and thread hangs

2009-06-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pete, On 6/17/2009 8:33 AM, Pete Helgren wrote: > I am not an expert by any stretch in Tomcat internals so what I need > is a way to determine what is causing the sessions to "hang" and the > threads to begin to grow beyond the maximum (650 in our cas

Re: unsubscribe request

2009-06-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Neiloy, Amusingly enough, the email address you posted was wrong, but it's correct in the footer (users-unsubscr...@tomcat.apache.org). - -chris On 6/17/2009 2:04 PM, Mukerjee, Neiloy (Neil) wrote: > In order to unsubscribe from the list, send an e-

RE: Serving images from classes directory

2009-06-17 Thread Susan G. Conger
I started with the authors of the tool app and they said it was a tomcat limitation. Basically can't be done. So I figured I would try the list before I took their word for it. Yes, I use the tool to modify the template files. But that is basically just editing html using the tool. When the

Re: Serving images from classes directory

2009-06-17 Thread Pid
Susan G. Conger wrote: > The template files are in the classes directory. This is a web app that is > deploying it's own web app. So it is rather convoluted. The web app that > gets deployed is my web app while the web app doing the developing is the > third party tool. For reference then, we'

RE: unsubscribe request

2009-06-17 Thread Mukerjee, Neiloy (Neil)
In order to unsubscribe from the list, send an e-mail to unsubscr...@tomcat.apache.org -Original Message- From: veena pandit [mailto:v.kri...@gmail.com] Sent: Wednesday, June 17, 2009 2:03 PM To: users@tomcat.apache.org Subject: unsubscribe request UNSUBSCRIBE

Re: Tomcat shutdown problem due to running threads.

2009-06-17 Thread CBy
Thank you, Christopher. It appears that I now have to ways to solve my problem. Calling shutdown() stops the threads orderly, so I think I'll opt for the ContextListener, although I am not 100% sure. Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Carsten, On 6/17/20

unsubscribe request

2009-06-17 Thread veena pandit
UNSUBSCRIBE

Re: DBCP connection pool exhausted, can I trace borrowed connnections from pool?

2009-06-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Arrow, On 6/17/2009 10:44 AM, Arrowx7 wrote: > Using mysql JDBC driver. Somewhere in the appilcation, the connections are > drawn from the DBCP pool, and never returned. I did > dataSource.getNumActive() and dataSource.getNumIdle(). There are 2 idl

Re: Celebrating Apache Tomcat 10th Anniversary

2009-06-17 Thread Ken Bowen
+1 exp 10! On Jun 17, 2009, at 12:28 PM, Markus Schönhaber wrote: Mladen Turk: So, wish us happy anniversary :) Congratulations! And thanks for a decade of good work! -- Regards mks - To unsubscribe, e-mail: users-unsubsc

RE: Error with Solr configuration in Tomcat container

2009-06-17 Thread Caldarale, Charles R
> From: Mukerjee, Neiloy (Neil) [mailto:neil.muker...@alcatel-lucent.com] > Subject: Error with Solr configuration in Tomcat container > > The file solrconfig.xml is in /solr/conf/ in the Tomcat directory That wording is a bit ambiguous, since it's not clear what you mean by "the Tomcat director

RE: Serving images from classes directory

2009-06-17 Thread Susan G. Conger
The template files are in the classes directory. This is a web app that is deploying it's own web app. So it is rather convoluted. The web app that gets deployed is my web app while the web app doing the developing is the third party tool. Thanks, Susan -Original Message- From: Pid [ma

Re: Tomcat shutdown problem due to running threads.

2009-06-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Carsten, On 6/17/2009 4:33 AM, CBy wrote: > O'Reilly's Tomcat The Definitive Guide advises me to invoke the > setDaemon(true) method on any Thread object a web application creates to > keep them from hanging the JVM when Tomcat shuts down. My web serv

Re: Address based security profile?

2009-06-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bruce, On 6/16/2009 7:44 PM, Bruce Edge wrote: > I have tomcat working with ssl, but I'd like to allow localhost clients to > use no authentication. > > Is it possible to deploy the same service with authentication to external > addresses and no auth

Error with Solr configuration in Tomcat container

2009-06-17 Thread Mukerjee, Neiloy (Neil)
When trying to integrate Tomcat 6.0.20 and Solr 1.3.0, I get the below error after trying to view the Solr admin page. I downloaded Tomcat from the Apache website, and its installation went well, as indicated by the fact that I can see the Apache Tomcat page in my browser when typing in my IP a

Re: Reading POSTed data

2009-06-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 6/17/2009 4:06 AM, André Warnier wrote: > Sorry to interrupt, but actually guys I believe that the problem is due > to the way the data is POSTed, which in this case is - I believe - invalid. > See http://www.w3.org/TR/html401/interact/forms

Re: Serving images from classes directory

2009-06-17 Thread Tim Funk
The filter (below) can be made smarter to perform smarter checks - so "regular images" could be excluded. -Tim Susan G. Conger wrote: Thanks Tim. I don't have control during build because that is done by the third party tool. I am not going to mention their name. I was hoping that this woul

Re: Serving images from classes directory

2009-06-17 Thread Pid
Susan G. Conger wrote: > Thanks Tim. I don't have control during build because that is done by the > third party tool. I am not going to mention their name. I was hoping that > this would be easy. You know a servlet mapping in the web.xml file that > would allow me to just map the directory/fil

Re: Reading POSTed data

2009-06-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kyle, On 6/16/2009 11:24 PM, Kyle Brantley wrote: > The getParameter() calls are going to be of little to no value for me. > The data isn't in a form where those calls would recognize them. Unless > I'm missing something very obvious...? No, if you'r

RE: Serving images from classes directory

2009-06-17 Thread Susan G. Conger
Thanks Tim. I don't have control during build because that is done by the third party tool. I am not going to mention their name. I was hoping that this would be easy. You know a servlet mapping in the web.xml file that would allow me to just map the directory/file type and I could just put tha

Re: mod_jk does not recognize extension

2009-06-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rainer, On 6/17/2009 3:45 AM, Rainer Jung wrote: > Thanks, added as r785498 in a slightly different wording. Will be part > of 1.2.29. Does that mean that the website has to wait for 1.2.29 to be released for an update? It would be great if the doc u

Re: Serving images from classes directory

2009-06-17 Thread Tim Funk
If the images are physical images in the classes directory - you have a few options. 1) At build time - move (or copy) the files from the classes directory to somewhere more sane that the default servlet can access 2) Write a filter the detects these images that live in the classes dir, and th

Re: Serving images from classes directory

2009-06-17 Thread Hassan Schroeder
On Wed, Jun 17, 2009 at 9:24 AM, Susan G. Conger wrote: > As I said. It is not a web app that I have created. It is generated by a > third party development environment. If I want my stuff to play nice with > their stuff then I have to wedge my stuff into their stuff. Which is > located under

RE: Serving images from classes directory

2009-06-17 Thread Caldarale, Charles R
> From: Susan G. Conger [mailto:sus...@bfcassociates.com] > Subject: RE: Serving images from classes directory > > If I want my stuff to play nice with their stuff then I have > to wedge my stuff into their stuff. So what is "your stuff"? Still haven't heard an explanation of why you think ima

RE: Mix http and https on one tomcat server?

2009-06-17 Thread Caldarale, Charles R
> From: Bruce Edge [mailto:bruce.e...@gmail.com] > Subject: Re: Mix http and https on one tomcat server? > > I assume that I need a different connector for each, so I changed the > 8080 redirector in server.xml: Put it back the way it was; the redirectPort attribute is required so a switch to HT

Re: Celebrating Apache Tomcat 10th Anniversary

2009-06-17 Thread Markus Schönhaber
Mladen Turk: > So, wish us happy anniversary :) Congratulations! And thanks for a decade of good work! -- Regards mks - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@

RE: Serving images from classes directory

2009-06-17 Thread Susan G. Conger
As I said. It is not a web app that I have created. It is generated by a third party development environment. If I want my stuff to play nice with their stuff then I have to wedge my stuff into their stuff. Which is located under the classes directory. I don't make the rules I just try to bend

Re: Mix http and https on one tomcat server?

2009-06-17 Thread Bruce Edge
On Wed, Jun 17, 2009 at 8:39 AM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Bruce Edge [mailto:bruce.e...@gmail.com] > > Subject: Mix http and https on one tomcat server? > > > > Is it possible to deploy both http and https on the same > > tomcat instance? > > Of course. >

Re: Serving images from classes directory

2009-06-17 Thread Hassan Schroeder
On Wed, Jun 17, 2009 at 9:04 AM, Susan G. Conger wrote: > The web app is made by another company that screen scrapes/translates a > mainframe app and then makes a web app out of it. They store this in their > classes directory. So in order to keep everything together and make > maintenance and d

RE: Serving images from classes directory

2009-06-17 Thread Susan G. Conger
The web app is made by another company that screen scrapes/translates a mainframe app and then makes a web app out of it. They store this in their classes directory. So in order to keep everything together and make maintenance and deployment easier, I would like to have all of the generated code

Re: Serving images from classes directory

2009-06-17 Thread Hassan Schroeder
On Wed, Jun 17, 2009 at 6:56 AM, Susan G. Conger wrote: > > This may be a bit weird, however there is a reason for it.  I need to > be able to serve images from the classes directory of my web app. I have to ask -- why? It seems a pointless complication... -- Hassan Schroeder ---

Celebrating Apache Tomcat 10th Anniversary

2009-06-17 Thread Mladen Turk
If you didn't know... From the 1999 news: "The Jakarta Project was announced by the Apache developer community and Sun Microsystems, Inc. on the 15th of June, 1999 at JavaOne. It will be composed of members from the current Apache JServ Project, Sun, IBM, and other corporations as well as all

RE: Mix http and https on one tomcat server?

2009-06-17 Thread Caldarale, Charles R
> From: Bruce Edge [mailto:bruce.e...@gmail.com] > Subject: Mix http and https on one tomcat server? > > Is it possible to deploy both http and https on the same > tomcat instance? Of course. Read the doc: http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html http://tomcat.apache.org/tomcat-6.

RE: Serving images from classes directory

2009-06-17 Thread Susan G. Conger
So there isn't any easy way to do this without using java? I was just wanted to use a different url and have them served up correctly. Can you give me/point me to an example of what you are talking about below? Thanks, Susan -Original Message- From: Caldarale, Charles R [mailto:chuck.ca

RE: Serving images from classes directory

2009-06-17 Thread Caldarale, Charles R
> From: Susan G. Conger [mailto:sus...@bfcassociates.com] > Subject: Serving images from classes directory > > I need to be able to serve images from the classes directory > of my web app. Try using ClassLoader.getResourceAsStream() to read the image, then write it to the response output stream

RE: Just a few questions on my Tomcat Configuration

2009-06-17 Thread Caldarale, Charles R
> From: Josh Gooding [mailto:josh.good...@gmail.com] > Subject: Re: Just a few questions on my Tomcat Configuration > > This is what I was trying to figure out. How can I add one on the fly > without restarting Tomcat each time I add / remove a subdomain. It's theoretically possible, since the A

Re: DBCP connection pool exhausted, can I trace borrowed connnections from pool?

2009-06-17 Thread Filip Hanik - Dev Lists
set properties removeAbandoned="true" removeAbandonedTimeout="60" logAbandoned="true" This will expire leaked connections and print out the stack trace from where they were acquired. Filip Arrowx7 wrote: Using mysql JDBC driver. Somewhere in the appilcation, the connections are drawn from

RE: DBCP connection pool exhausted, can I trace borrowed connnections from pool?

2009-06-17 Thread Propes, Barry L
You have leaks all over the place! You'll need to go explicitly close your connections with myriad try/catch/finally blocks and see if you can start shoring it up that way! -Original Message- From: Arrowx7 [mailto:aluminum3...@yahoo.com] Sent: Wednesday, June 17, 2009 9:45 AM To: users@t

Re: Tomcat shutdown problem due to running threads.

2009-06-17 Thread André Warnier
CBy wrote: Thanks for pointing me in the right direction André. A ServletContextListener fixed my problem. My own contribution was minimal, and due mainly to the fact that I am eavesdropping on the real Tomcat experts conversations here and remembering some things, even if I never used them m

DBCP connection pool exhausted, can I trace borrowed connnections from pool?

2009-06-17 Thread Arrowx7
Using mysql JDBC driver. Somewhere in the appilcation, the connections are drawn from the DBCP pool, and never returned. I did dataSource.getNumActive() and dataSource.getNumIdle(). There are 2 idle connections, and 88 active connections. Somewhere in my web application a process does not clos

Re: Tomcat shutdown problem due to running threads.

2009-06-17 Thread CBy
Thanks for pointing me in the right direction André. A ServletContextListener fixed my problem. André Warnier wrote: CBy wrote: O'Reilly's Tomcat The Definitive Guide advises me to invoke the setDaemon(true) method on any Thread object a web application creates to keep them from hanging the

Mix http and https on one tomcat server?

2009-06-17 Thread Bruce Edge
Is it possible to deploy both http and https on the same tomcat instance? I'd like to expose https to the external IP addr and http to 127.0.0.1. How is this configured in the xerver.xml file? I'm using apache cxf if that matters. Thanks -Bruce P.S. Apologies if this is a resend, I have just j

Re: Just a few questions on my Tomcat Configuration

2009-06-17 Thread Josh Gooding
On Wed, Jun 17, 2009 at 12:02 AM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Josh Gooding [mailto:josh.good...@gmail.com] > > Subject: Re: Just a few questions on my Tomcat Configuration > > No, the appBase attribute defines where *all* of the webapps go, > each in its ow

Serving images from classes directory

2009-06-17 Thread Susan G. Conger
This may be a bit weird, however there is a reason for it. I need to be able to serve images from the classes directory of my web app. The web app is created using another companies program and all of the code is in the classes directory. I want to add an images directory and put all of my custo

Web Container Authentication Via LDAP for a JSPWiki

2009-06-17 Thread Stefan Kuhn
Hi, i have configured a "Web Container Authentication Via LDAP" with the instructions from this page: http://www.jspwiki.org/wiki/WebContainerAuthenticationViaLDAP I can now login to the wiki, but have problems with the rights, it isn't even possible to read pages. The web.xml seems to be defini

RE: SSL Configuration Problem, can not open https://localhost:8443

2009-06-17 Thread Caldarale, Charles R
> From: yuting lv [mailto:yutin...@gmail.com] > Subject: Re: SSL Configuration Problem, can not open > https://localhost:8443 > > I found another tcnative-1.dll file under C:\windows\system32 > directory too, I would remove it - that .dll should only be in Tomcat's bin directory. - Chuck THI

Re: Reading POSTed data

2009-06-17 Thread Tim Funk
Change your loop to be: int i; while ((i=in.read())>) { out.write(i); } available() - "Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream." So its not an accurate gauge of how much

RE: Beginner with apache

2009-06-17 Thread Hracek, Petr
Finally the servlet is working. Could you please tell me how to deploy the application to tomcat from command line? Is it enough to copy the application to the specific tomcat directories and afterwards restart tomcat? regards / S pozdravem Petr Hráček -Original Message- From: Hracek,

Pointers on diagnosing session and thread hangs

2009-06-17 Thread Pete Helgren
We are having a devil of a time tracking down why a web app is hanging while running in Tomcat. We are running version 5.5.27 in Windows XP with 2Gb RAM. The symptom is that randomly a user will report that they cannot log into the application. When we view the Tomcat application using Lambd

Tomcat tracks at the ApacheConUS2009

2009-06-17 Thread jean-frederic clere
Hi, The Tomcat PMC has prepared the tracks of Tomcat for the ApacheCon US 2009. The first track is the official Tomcat Wednesday track the second one will be held in a small room (50) on Thursday after the main track. Drafts of the tracks are available at http://wiki.apache.org/tomcat/Tomcat

Re: tomcat 6 - setting classpath

2009-06-17 Thread Mikolaj Rydzewski
Tom Brown wrote: it is only configuration files - no jar changes. I am trying to get these stripped from the war but thats a difficult process, i know i can do it in about 5 seconds but its a 'process' thing and then the war is 'different' Is what i am asking not possible? One can nest Loader

Re: tomcat 6 - setting classpath

2009-06-17 Thread Tom Brown
Is the difference only between configuration files, or between jar files also? I suggest to keep such configuration file outside of webapp - e.g. in ${tomcat}/lib/classes. So you'll have dev tomcat setup, prod tomcat setup and one war file. it is only configuration files - no jar changes.

Re: tomcat 6 - setting classpath

2009-06-17 Thread Mikolaj Rydzewski
Tom Brown wrote: Why not use WEB-INF/lib directory? quite a long story BUT that locations contains _default_ setting ie those for dev and when it goes into prod i need to override those with settings from the config directory - so i need to be able to manipulate it on the fly so to speak whi

Re: tomcat 6 - setting classpath

2009-06-17 Thread Tom Brown
Why not use WEB-INF/lib directory? quite a long story BUT that locations contains _default_ setting ie those for dev and when it goes into prod i need to override those with settings from the config directory - so i need to be able to manipulate it on the fly so to speak while still being a

Re: tomcat 6 - setting classpath

2009-06-17 Thread Mikolaj Rydzewski
Tom Brown wrote: On tomcat 6.0.18 i need to set the classpath of a webapp, its the only webapp running inside this tomcat. i believe i need to do something like the following in the web.xml classpath /my/webapp/conf but this seems ignored so can anyone point me to the syntax of what this i

  1   2   >