Language Problem

2009-06-11 Thread Dharani
We have developed an application and it supports multi languages. We uploaded the translated files and we could see the pages translated into particular language nicely. But after we restart the tomcat server there were only '???' for every word instead of the language. Can you tell me whether

SMTP configurations

2009-06-11 Thread Dharani
Hi all, Can anyone tell me what are the configurations I must do in my Tomcat server in order to send mails using my web app?

Re: chunked encoding

2009-06-11 Thread Bill Barker
"André Warnier" wrote in message news:4a317d8d.3060...@ice-sa.com... > Anthony J. Biacco wrote: >> No dice. I tried a bufferSize of 16384 and an 11K response still got >> chunked. Even tried using packetSize and max_packet_size (mod_jk). >> > I think we need Rainer here. > No, the various AJP

Re: Periodic slow response to initial call to HttpServletRequest.getParameter()

2009-06-11 Thread Bill Barker
"Mark Thomas" wrote in message news:4a31874f.8040...@apache.org... > Brian Harper wrote: >> Questions: >> 1. When is my servlet instantiated by Tomcat and its doPost method >> called? > Once the headers have been received and Tomcat can map the request. > But it is instantiated only for the fir

Re: Tomcat 6.0.18 access files case-insensitive

2009-06-11 Thread André Warnier
Tim Funk wrote: Its there "for convenience" (and been there "forever") - but it is a great big security whole if we ignore case (Try asking for /web-INF/wEb.xml - or even more evil "/web-INF/wEb.xm%6c") Ok. My point (at the end) was : there does not seem to be a real "useful use" for /ever/

Re: Consequences of Reusing Clustered JSESSIONID

2009-06-11 Thread Filip Hanik - Dev Lists
Rainer Jung wrote: On 10.06.2009 22:57, Filip Hanik - Dev Lists wrote: this is because apache a2 only has routes for td201 and td202... but not td101... therefore it doesn't know how to handle td101. why don't you setup all four routes for a1 and a2. then use the mod_proxy_balancer lb

Re: chunked encoding

2009-06-11 Thread André Warnier
Anthony J. Biacco wrote: It turned out I just wasn't using a response big enough. Once I did something like 10k I then got a chunked header from tomcat. Ok, so it isn't mod_jk/AJP specifically, it's deeper. It was a bit to be expected, since the server has no real way to know when your servle

Re: Tomcat 6.0.18 access files case-insensitive

2009-06-11 Thread Tim Funk
Its there "for convenience" (and been there "forever") - but it is a great big security whole if we ignore case (Try asking for /web-INF/wEb.xml - or even more evil "/web-INF/wEb.xm%6c") -Tim André Warnier wrote: Even that wouldn't work. Since the filesystem is case-sensitive, it may well h

Re: chunked encoding

2009-06-11 Thread Tim Funk
http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html 3.6.1 All HTTP/1.1 applications MUST be able to receive and decode the "chunked" transfer-coding, and MUST ignore chunk-extension extensions they do not understand. So you have to jump through big hoops to not use chunked encoding [IIRC -

Disable AXIS services list?

2009-06-11 Thread John Oliver
I Googled for this, and found a reference to setting "disableServiceList" to true, but that didn't work. Tomcat is 6.0.18 running under W2K3 Server if that makes a difference. Thanks. -- *** * John Oliver

RE: chunked encoding

2009-06-11 Thread Anthony J. Biacco
It turned out I just wasn't using a response big enough. Once I did something like 10k I then got a chunked header from tomcat. -Tony --- Manager, IT Operations Format Dynamics, Inc. 303-573-1800x27 abia...@formatdynamics.com http://www.formatdynamics.com > -Original

Re: Tomcat 6.0.18 access files case-insensitive

2009-06-11 Thread André Warnier
Caldarale, Charles R wrote: Presumably the first or last one encountered. ... Or it could just pick a random file in the directory, whether it matches something or not. After all, you were saying that this would only affect lazy clients or bad programmers. --

Re: chunked encoding

2009-06-11 Thread André Warnier
Maybe something else worth trying.. I think you mentioned earlier that this did not happen when you accessed the link directly via the Tomcat HTTP connector. Since at the Apache level, you can recognise those calls, why don't you try to proxy those calls specifically via mod_proxy_http, to th

Re: chunked encoding

2009-06-11 Thread André Warnier
Anthony J. Biacco wrote: That'd be ideal, yes. I haven't found any such parameters in Apache so far though. I wasn't necessarily thinking about an existing parameter or module. More of a custom add-on, which would make the request to Tomcat, buffer the response, and return it in one chunk w

RE: Tomcat restart and jar

2009-06-11 Thread Caldarale, Charles R
> From: Nowhere [mailto:spina.r...@gmail.com] > Subject: Tomcat restart and jar > > I have a very stuoid question, but I'm bored by it... We'll assume something has been lost in translation here... > Can't I avoid restarting and having tomcat seeing changing? Create a element inside the eleme

RE: Tomcat 6.0.18 access files case-insensitive

2009-06-11 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: Tomcat 6.0.18 access files case-insensitive > > Since the filesystem is case-sensitive, it may well have both > "abc.html" and "ABC.HTML" in the same directory. So which one > would it pick to keep ? Presumably the first or last one en

RE: chunked encoding

2009-06-11 Thread Anthony J. Biacco
> > The client thus requests this javascript from the CDN. > > The CDN looks in their cache if they have it. > If they do, they serve it. > If not, they issue a request to your site for it, and your site > delivers > it to the CDN. The CDN anyway delivers it to the client. > If the response of y

Re: Tomcat 6.0.18 access files case-insensitive

2009-06-11 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: Tomcat 6.0.18 access files case-insensitive Now if the attribute is false, does that mean that Tomcat will try all possible case variations between "abc.html" and "ABC.HTML" before it gives up ? I just looked

Tomcat restart and jar

2009-06-11 Thread Nowhere
Hi all, I have a very stuoid question, but I'm bored by it...so I thought to ask help to you. I'm modifing many times a jar in a webapp in tomcat and I need to restart tomcat every change I do. Can't I avoid restarting and having tomcat seeing changing? Hoping in any hint, I restart tomcat a lot o

Re: Tomcat 6.0.18 access files case-insensitive

2009-06-11 Thread Mark Thomas
Caldarale, Charles R wrote: >> From: André Warnier [mailto:a...@ice-sa.com] >> Should the first phrase not read >> "If the value of this flag is true, all case sensitivity checks will be >> *enabled*." > > Agreed. Fixed for 4.1.x, 5.5.x, 6.0.x & trunk. Will be in the next releases of each. All t

Re: Periodic slow response to initial call to HttpServletRequest.getParameter()

2009-06-11 Thread Rainer Jung
On 12.06.2009 00:22, Brian Harper wrote: > I've been trying to locate the source of an issue we've encountered > periodically, and am hoping to find some enlightenment here. The issue > is that we're seeing periodic slow responses - in some cases as long as > 30-40 seconds for servlet requests that

Re: Periodic slow response to initial call to HttpServletRequest.getParameter()

2009-06-11 Thread Mark Thomas
Brian Harper wrote: > Questions: > 1. When is my servlet instantiated by Tomcat and its doPost method > called? Once the headers have been received and Tomcat can map the request. > Does this happen before the entire body of the request has been > received? Yes. > In which case perhaps the delays

Re: Tomcat maxThreads Issue

2009-06-11 Thread Rainer Jung
On 12.06.2009 00:13, Jones, Keven wrote: > This is a thread dump during a problem. I will take your advice and > execute 3 whan the next event happens. Thank you for your help! Then your problem doesn't last long enough. The presented dump doesn't contain stacks for 200 connector threads of one co

RE: Tomcat 6.0.18 access files case-insensitive

2009-06-11 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: Tomcat 6.0.18 access files case-insensitive > > Now if the attribute is false, does that mean that Tomcat will try all > possible case variations between "abc.html" and "ABC.HTML" before it > gives up ? I just looked at the code in Fil

Re: mod_jk does not recognize extension

2009-06-11 Thread Rainer Jung
On 11.06.2009 14:26, Tsirkin Evgeny wrote: > Hi list! > I have mod_jk 1.2.26 configured and working fine. > However i want to set a special reply_timeout for a special url , > i am getting strange errors in log and the rule is ignored . > Once i add this line: > /dataj_mid/controller/finance/*=dat

Periodic slow response to initial call to HttpServletRequest.getParameter()

2009-06-11 Thread Brian Harper
I've been trying to locate the source of an issue we've encountered periodically, and am hoping to find some enlightenment here. The issue is that we're seeing periodic slow responses - in some cases as long as 30-40 seconds for servlet requests that normally come in well under a second. In trouble

RE: Tomcat maxThreads Issue

2009-06-11 Thread Jones, Keven
This is a thread dump during a problem. I will take your advice and execute 3 whan the next event happens. Thank you for your help! -Original Message- From: Rainer Jung Sent: Thursday, June 11, 2009 6:08 PM To: Tomcat Users List Subject: Re: Tomcat maxThreads Issue On 10.06.2009 18:26

Re: Consequences of Reusing Clustered JSESSIONID

2009-06-11 Thread Rainer Jung
On 10.06.2009 22:57, Filip Hanik - Dev Lists wrote: >> this is because apache a2 only has routes for td201 and td202... but >> not td101... therefore it doesn't know how to handle td101. > > why don't you setup all four routes for a1 and a2. > then use the mod_proxy_balancer lbset variable to set

Re: Tomcat 6.0.18 access files case-insensitive

2009-06-11 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] I also wonder what the purpose of this attribute really is, in fact. Should this not always be left to "case sensitive = true" ? Unless you're begging for trouble, or have a really, really sloppy programming staff. -

RE: chunked encoding

2009-06-11 Thread Caldarale, Charles R
> From: Martin Gainty [mailto:mgai...@hotmail.com] > Subject: RE: chunked encoding > > you can set MaxPostSize to a value < =2097152 for HttpConnector in > $TOMCAT_HOME/conf/server.xml Which has absolutely nothing to do with the issue under discussion. maxPostSize is for processing of POST reque

Re: chunked encoding

2009-06-11 Thread André Warnier
Anthony J. Biacco wrote: No dice. I tried a bufferSize of 16384 and an 11K response still got chunked. Even tried using packetSize and max_packet_size (mod_jk). I think we need Rainer here. In the meantime, just as an intellectual exercise, let's take the problem from the other end. A clie

Re: Tomcat maxThreads Issue

2009-06-11 Thread Rainer Jung
On 10.06.2009 18:26, Jones, Keven wrote: > FYI, I'm just the linux admin as the "applicatons" group/developer > and coder is not making any headway into resolving this. This is a > mobility application (ie. Mobile banking, so you go to your iphone > and go to your bank.mobi..)not that it matter but

Re: Tomcat maxThreads Issue

2009-06-11 Thread Rainer Jung
On 10.06.2009 21:25, Caldarale, Charles R wrote: >> From: Jones, Keven [mailto:keven.jo...@ncr.com] Subject: RE: Tomcat >> maxThreads Issue >> >> > redirectPort="8443" maxThreads="400" connectionTimeout="2"/> > > The syntax is ok, but I'd have to look at the code to see if > connectionTimeout

RE: Tomcat 6.0.18 access files case-insensitive

2009-06-11 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: Tomcat 6.0.18 access files case-insensitive > > So apparently Tomcat does not just use the standard Windows > file..open function, it runs additional checks. Tomcat doesn't use Windows anything, it uses the JRE methods. Underlying th

RE: chunked encoding

2009-06-11 Thread Martin Gainty
mks is correct you can set MaxPostSize to a value < =2097152 for HttpConnector in $TOMCAT_HOME/conf/server.xml http://spdn.ifas.ufl.edu/docs/config/http.html and yes your connector will need to support HTTP 1.1 support for chunked-encoding http://spdn.ifas.ufl.edu/docs/config/http.html#Connect

Re: Tomcat 6.0.18 access files case-insensitive

2009-06-11 Thread André Warnier
Markus Schönhaber wrote: André Warnier: the filesystem which matters. If the filesystem is case-insensitive, it doesn't matter whether the URL is /ABC.PDF or /abc.pdf, does it ? No. Try http://localhost:8080/tomcat.gif and http://localhost:8080/tomcaT.gif with a default Tomcat install. Sor

Re: Tomcat 6.0.18 access files case-insensitive

2009-06-11 Thread Markus Schönhaber
Markus Schönhaber: > André Warnier: > >> the filesystem which matters. If the filesystem is case-insensitive, it >> doesn't matter whether the URL is /ABC.PDF or /abc.pdf, does it ? > > No. Try Hm, re-reading the way you asked the question, this should be "Yes, it does matter" instead of "No"

Re: chunked encoding

2009-06-11 Thread Markus Schönhaber
Anthony J. Biacco: > The only thing that makes me question this, is that if I query the > servlet directly on port 8080 instead of through mod_jk/ajp, it > doesn't get chunked. Well, I don’t get a transfer-encoding header I > should say. But I don’t get a content length through there either. And

RE: chunked encoding

2009-06-11 Thread Anthony J. Biacco
No dice. I tried a bufferSize of 16384 and an 11K response still got chunked. Even tried using packetSize and max_packet_size (mod_jk). -Tony --- Manager, IT Operations Format Dynamics, Inc. 303-573-1800x27 abia...@formatdynamics.com http://www.formatdynamics.com > -

RE: chunked encoding

2009-06-11 Thread Anthony J. Biacco
> I tested with a >8K jsp and did get it chunked. > Do you happen to know the parameter for changing the buffer size? > Perhaps I can increase it to a number representing the largest length > of my servlet content. Which isn't too big, maybe 20K. NM on this, I found bufferSize for the AJP connecto

RE: chunked encoding

2009-06-11 Thread Anthony J. Biacco
> > > Here's my problem. When the request is to a servlet (static apache > files > > and JSPs through mod_jk are fine) in the form of a GET, instead of > > sending a Content-Length response header, I get a Transfer-Encoding: > > chunked header > > I'd like to know: > > 1) What are the causes of ei

RE: Classloader Issues (SOLVED)

2009-06-11 Thread Jon Pearson
Apparently there was some kind of silent failure going on behind the scenes. It seems that the dynamically loaded JAR needed filesystem read access to the JAR in WEB-INF/lib, and that both the webapp and the other JAR needed to have java.net.SocketPermission for connect and resolve against the data

Re: Tomcat 6.0.18 access files case-insensitive

2009-06-11 Thread Markus Schönhaber
André Warnier: > the filesystem which matters. If the filesystem is case-insensitive, it > doesn't matter whether the URL is /ABC.PDF or /abc.pdf, does it ? No. Try http://localhost:8080/tomcat.gif and http://localhost:8080/tomcaT.gif with a default Tomcat install. -- Regards mks -

Re: Tomcat 6.0.18 access files case-insensitive

2009-06-11 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 6/11/2009 6:32 AM, André Warnier wrote: It's not a "base feature" of either Java or Tomcat, it's a base feature of the OS. Windows filesystems are (relatively, see below) case-insensitive, Unix/Linux are absolu

RE: Classloader Issues

2009-06-11 Thread Jon Pearson
My last message included the stack trace. The Postgresql jar is in the WEB-INF/lib directory of my webapp (/var/lib/tomcat6/webapps/BVWeb/WEB-INF/lib/postgresql-8.3-604.jdbc4.jar on Linux, C:\Projects\Java\Eclipse\.metadata\.plugins\org.eclipse.wst.server.core\ tmp1\webapps\BVWeb\WEB-INF\lib\postgr

Re: Realm and Datasource configuration in Context

2009-06-11 Thread Guillaume M
Hi Chuck, Yes I had only put the mysql jar in the tomcat's lib directory. I had just tried to add mySQL character encoding (UTF-8) on the url value. I still have the same problem... Thank you. 2009/6/11, Caldarale, Charles R : >> From: Guillaume M [mailto:geama...@gmail.com] >> Subject: Re: Real

Re: chunked encoding

2009-06-11 Thread Markus Schönhaber
Anthony J. Biacco: > Here's my problem. When the request is to a servlet (static apache files > and JSPs through mod_jk are fine) in the form of a GET, instead of > sending a Content-Length response header, I get a Transfer-Encoding: > chunked header > I'd like to know: > 1) What are the causes of

RE: Classloader Issues

2009-06-11 Thread Caldarale, Charles R
> From: Jon Pearson [mailto:jon.pear...@sixnet.com] > Subject: RE: Classloader Issues > > That blurb was already in the catalina.policy file. I think Martin was just using that as an example; you likely need to grant some permission(s) to your own classloader code. Again, posting the stack trac

RE: Classloader Issues

2009-06-11 Thread Jon Pearson
Stack trace: java.lang.Exception: Unable to start: Cannot load database driver: Cannot load PostgreSQL JDBC driver: org.postgresql.Driver com.sixnetio.BVB.Web.DB.connect(DB.java:72) com.sixnetio.BVB.Web.DB.getDB(DB.java:94) com.sixnetio.BVB.Web.LoginAction.execute(LoginAction.java:45

RE: Classloader Issues

2009-06-11 Thread Jon Pearson
That blurb was already in the catalina.policy file. > -Original Message- > From: Martin Gainty [mailto:mgai...@hotmail.com] > Sent: Thursday, June 11, 2009 2:39 PM > To: Tomcat Users List > Subject: RE: Classloader Issues > > > inside TC you have to grant the container access to Jar >

RE: Realm and Datasource configuration in Context

2009-06-11 Thread Caldarale, Charles R
> From: Guillaume M [mailto:geama...@gmail.com] > Subject: Re: Realm and Datasource configuration in Context > > And I had put the mysql in the $CATALINA_BASE/lib directory. Is the MySQL jar in *only* Tomcat's lib directory? If it's also in your webapp's WEB-INF/lib, that can cause classloader

RE: Classloader Issues

2009-06-11 Thread Martin Gainty
inside TC you have to grant the container access to Jar assuming your class is located in commons-daemon.jar in $CATALINA_HOME/conf/catalina.policy // These permissions apply to the daemon code grant codeBase "file:${catalina.home}/bin/commons-daemon.jar" { permission java.security.AllP

Re: Realm and Datasource configuration in Context

2009-06-11 Thread Guillaume M
Hi Chris, Yes there is a lot of connections which can be very slow. I had been asked to do a complex sorting program on a web server. I wouldn't have use a web server especially knowing we can have above 100 sorts in a row but it's easier to update... I had used all I knew about Java to make it f

RE: Classloader Issues

2009-06-11 Thread Caldarale, Charles R
> From: Jon Pearson [mailto:jon.pear...@sixnet.com] > Subject: Classloader Issues > > When the Java security manager is enabled, I get a > ClassNotFoundException when I try to load the Postgres > database driver using Class.forName() and a URL > classloader pointed at a jar; its parent classloade

Re: mod_jk, missing uri map

2009-06-11 Thread Diego Figueroa
Hi André, Thanks for your input. I added "JkMountCopy On" to both the default and SSL VirtualHosts and it started working. Diego. André Warnier 2009/06/11 01:03 PM Please respond to "Tomcat Users List" To Tomcat Users List cc Subject Re: mod_jk, missing uri map Hi. Good points

chunked encoding

2009-06-11 Thread Anthony J. Biacco
I'm running apache 2.2.11->mod_jk 1.2.27->tomcat 6.0.18. I'm attempting to gzip javascript output from apache (static files), and tomcat (servlets with javascript content types). I'm using mod_deflate in apache to do this. Here's my problem. When the request is to a servlet (static apache files and

RE: Tomcat maxThreads Issue

2009-06-11 Thread Caldarale, Charles R
> From: Jones, Keven [mailto:keven.jo...@ncr.com] > Subject: RE: Tomcat maxThreads Issue > > He is stating that If I put an address (the same address > Of the linux server that the tomcat instance is running on) > that that message will go away and the maxThreads will > actually move to 600. > >

RE: Tomcat maxThreads Issue

2009-06-11 Thread Jones, Keven
Update, I finally got my vendor on the line. He is telling me that this entry in my server.xml: Is the reason I'm seeing this in my catalina.out. He is stating that If I put an address (the same address Of the linux server that the tomcat instance is running on) that that message will go awa

Classloader Issues

2009-06-11 Thread Jon Pearson
I am encountering an odd problem with Tomcat (6.0.18). When the Java security manager is enabled, I get a ClassNotFoundException when I try to load the Postgres database driver using Class.forName() and a URL classloader pointed at a jar; its parent classloader is the Webapp classloader. But, when

Re: Tomcat 6.0.18 access files case-insensitive

2009-06-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 6/11/2009 6:32 AM, André Warnier wrote: > It's not a "base feature" of either Java or Tomcat, it's a base feature > of the OS. Windows filesystems are (relatively, see below) > case-insensitive, Unix/Linux are absolutely case-sensitive. Si

Re: mod_jk, missing uri map

2009-06-11 Thread André Warnier
Hi. Good points for providing all relevant information. By any chance, are you using VirtualHost's ? (Unlikely with HTTPS, but nevertheless) If yes, make sure to look up the JkMountCopy directive. JkMount is not automatically inherited by VirtualHosts, from the main configuration. A couple mo

RE: Understanding GC Logs

2009-06-11 Thread Caldarale, Charles R
> From: CrystalCracker [mailto:sudarshan.acha...@gmail.com] > Subject: Re: Understanding GC Logs > > Shouldn't the 'port' object get collected once ? Don't confuse a reference to an object with the object itself. The port variable may go out of scope, but that has nothing to do with the underly

Re: Apache with multiple instance of Jboss on same server

2009-06-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 6/11/2009 12:25 PM, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Subject: Re: Apache with multiple instance of Jboss on same server >> >> Please post your workers.properties file, and th

Re: mod_jk does not recognize extension

2009-06-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Evgeny, On 6/11/2009 8:26 AM, Tsirkin Evgeny wrote: > Once i add this line: > /dataj_mid/controller/finance/*=dataj_mid;reply_timeout=12 > (see the full config below) [snip] > I am getting in jk log this: > jk_handler::mod_jk.c (2372): Could no

RE: Apache with multiple instance of Jboss on same server

2009-06-11 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: Apache with multiple instance of Jboss on same server > > Please post your workers.properties file, and the elements > from each of your JBoss instances. Why would the elements be of interest? Wouldn't the Tomcat

Re: Stable tomcat release

2009-06-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 6/11/2009 6:11 AM, André Warnier wrote: > Here is something else you may want to read : > http://slash7.com/pages/vampires Brilliant! - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla

Re: Realm and Datasource configuration in Context

2009-06-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Guillaume, On 6/11/2009 5:48 AM, Guillaume M wrote: > On my Vista version, I have the error "the name jdbc isn't bound to > the context". Sounds like your JNDI name is not correct. > maxIdle="6000" >

RE: Loading dynamically created content: An old chestnut but still a problem.

2009-06-11 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: Loading dynamically created content: An old chestnut but > stilla problem. > > I suspect that Hassan and Chuck are nto using anti-resource-locking > while Lyallex is. Correct; as stated, both Hassan and I are using s

Re: Apache with multiple instance of Jboss on same server

2009-06-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nilesh, On 6/11/2009 7:30 AM, nilesh p wrote: > We have Apache Web server which is to be linked to 2 jboss instances on the > same server. > We have made the entries in workers.properties file but what changes need to > be done in Jboss so that both i

mod_jk, missing uri map

2009-06-11 Thread Diego Figueroa
Hi, I'm having issues using mod_jk 1.2.28 with Tomcat 6.0.18 and Apache 2.2. Whenever I call one of the mount points defined on my apache2.conf file I get the same message in the log file (below). I am including what I believe are the relevant portions of my config files. Thanks! I call the UR

Re: Understanding GC Logs

2009-06-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 CrystalCracker, On 6/11/2009 12:01 PM, CrystalCracker wrote: > Upon more profiling, I figured that I have lots of apache.axis objects that > are not garbage collected. Does the MyPortType class have a 'close' method or something like that that must b

Re: Loading dynamically created content: An old chestnut but still a problem.

2009-06-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 6/11/2009 9:36 AM, Mark Thomas wrote: > This all all a expected side-effect of using the anti resource locking > features. Oh, good: some /real/ information as to the cause. I suspect that Hassan and Chuck are nto using anti-resource-locking

Re: Understanding GC Logs

2009-06-11 Thread CrystalCracker
Upon more profiling, I figured that I have lots of apache.axis objects that are not garbage collected. The way I am making SOAP calls is through axis1.4 generated stubs. Eg. MyDAO { protected MyPortType getAPIConnection() throws Exception { MyPort port; try { MySe

Re: Realm and Datasource configuration in Context

2009-06-11 Thread Guillaume M
I had tried again with the realm off and I can use the database through the datasource in my vista version but on my XP version I have the message jdbc not bound to this context. 2009/6/11, Guillaume M : > My context.xml file is in my webapp's META-INF directory and my > web.xml is in my webapp's

Re: Apache with multiple instance of Jboss on same server

2009-06-11 Thread André Warnier
nilesh p wrote: Hi, We have Apache Web server which is to be linked to 2 jboss instances on the same server. We have made the entries in workers.properties file but what changes need to be done in Jboss so that both instances are picked up by Apache load balancer? I tried changing Connector port

Re: Loading dynamically created content: An old chestnut but still a problem.

2009-06-11 Thread Mark Thomas
Lyallex wrote: > 2009/6/11 Caldarale, Charles R : >>> From: Hassan Schroeder [mailto:hassan.schroe...@gmail.com] >>> Subject: Re: Loading dynamically created content: An old chestnut but >>> still a problem. >>> >>> Then I copied a random example.gif image to the ROOT directory >>> and entered http

RE: Loading dynamically created content: An old chestnut but still a problem.

2009-06-11 Thread Caldarale, Charles R
> From: Lyallex [mailto:lyal...@gmail.com] > Subject: Re: Loading dynamically created content: An old chestnut but > still a problem. > > I'm not imagining this. It is a fact. On my setup (tomcat 6.0.16. > jdk1.6.0_03, Windows XP SP 2) I cannot load images that have been > written to disk after th

Re: Dynamic Resources: getRealPath() returns the 'wrong' path

2009-06-11 Thread Mark Thomas
Lyallex wrote: > 2009/6/11 Caldarale, Charles R : > >> Writing to the webapp's deployment location is a bad idea - you again have >> no guarantee that it's allowed, and you're at the whims of the container and >> execution environment controlling the actual location. Much better to write >> yo

RE: Dynamic Resources: getRealPath() returns the 'wrong' path

2009-06-11 Thread Caldarale, Charles R
> From: Lyallex [mailto:lyal...@gmail.com] > Subject: Re: Dynamic Resources: getRealPath() returns the 'wrong' path > > Works perfectly ... except I just cannot get he DefaultServlet to > serve any images that are written to any directory anywhere on the > filesystem after the server has started .

Re: Realm and Datasource configuration in Context

2009-06-11 Thread Guillaume M
My context.xml file is in my webapp's META-INF directory and my web.xml is in my webapp's WEB-INF directory. There isn't any change in the results after those corrections. This webapp worked fine enough for some years on my laptop, saddly it had broken down recently and I don't remember the exact

Re: Loading dynamically created content: An old chestnut but still a problem.

2009-06-11 Thread Lyallex
2009/6/11 Caldarale, Charles R : >> From: Hassan Schroeder [mailto:hassan.schroe...@gmail.com] >> Subject: Re: Loading dynamically created content: An old chestnut but >> still a problem. >> >> Then I copied a random example.gif image to the ROOT directory >> and entered http://localhost:8080/examp

Re: Dynamic Resources: getRealPath() returns the 'wrong' path

2009-06-11 Thread Lyallex
2009/6/11 Caldarale, Charles R : > Writing to the webapp's deployment location is a bad idea - you again have no > guarantee that it's allowed, and you're at the whims of the container and > execution environment controlling the actual location.  Much better to write > your files outside of Tom

RE: Loading dynamically created content: An old chestnut but still a problem.

2009-06-11 Thread Caldarale, Charles R
> From: Hassan Schroeder [mailto:hassan.schroe...@gmail.com] > Subject: Re: Loading dynamically created content: An old chestnut but > still a problem. > > Then I copied a random example.gif image to the ROOT directory > and entered http://localhost:8080/example.gif in my address bar. > And there

RE: Realm and Datasource configuration in Context

2009-06-11 Thread Caldarale, Charles R
> From: Guillaume M [mailto:geama...@gmail.com] > Subject: Realm and Datasource configuration in Context > > context.xml Let's get this sorted first. Where is your context.xml file located? It should be in your webapp's META-INF directory. > element, unless the element is declared in server

RE: Dynamic Resources: getRealPath() returns the 'wrong' path

2009-06-11 Thread Caldarale, Charles R
> From: Lyallex [mailto:lyal...@gmail.com] > Subject: Dynamic Resources: getRealPath() returns the 'wrong' path > > INFO: The path to the image cache is > C:\servers\tomcat\apache-tomcat-6.0.16\temp\1-ROOT\imagecache ServletContext.getRealPath() is one of the leftovers from the early days that p

mod_jk does not recognize extension

2009-06-11 Thread Tsirkin Evgeny
Hi list! I have mod_jk 1.2.26 configured and working fine. However i want to set a special reply_timeout for a special url , i am getting strange errors in log and the rule is ignored . Once i add this line: /dataj_mid/controller/finance/*=dataj_mid;reply_timeout=12 (see the full config below)

Re: Tomcat 6.0.18 access files case-insensitive

2009-06-11 Thread Tim Funk
See |caseSensitive| here http://tomcat.apache.org/tomcat-6.0-doc/config/context.html But doing so makes your installation VERY insecure in a windows environment. (Since ACL's can be bypassed since most ACL rules are case sensitive) I performance is of no concern - you could go crazy and forc

Re: Loading dynamically created content: An old chestnut but still a problem.

2009-06-11 Thread Hassan Schroeder
On Wed, Jun 10, 2009 at 11:48 PM, Lyallex wrote: >> I know its completely possible to add images the root of a Web-App folder >> after deployment and have Tomcat "see" them. > > Great, any idea how ? > Others here seem to think that the DefaultServlet will not serve > content that is uploaded afte

Apache with multiple instance of Jboss on same server

2009-06-11 Thread nilesh p
Hi, We have Apache Web server which is to be linked to 2 jboss instances on the same server. We have made the entries in workers.properties file but what changes need to be done in Jboss so that both instances are picked up by Apache load balancer? I tried changing Connector port="8009" to 8007 f

Re: Dynamic Resources: getRealPath() returns the 'wrong' path

2009-06-11 Thread Lyallex
2009/6/11 Mark Thomas : > Lyallex wrote: >> The logging output gives the following >> >> INFO: The path to the image cache is >> C:\servers\tomcat\apache-tomcat-6.0.16\temp\1-ROOT\imagecache > > This is a side effect of using the anti-locking attributes on your context. Er, OK ... thanks. > > Mar

Re: Tomcat 6.0.18 access files case-insensitive

2009-06-11 Thread André Warnier
Alexander Diedler wrote: Hello, We have an Application based on IIS 6.0 and Tomcat 6.0.18. In this Application will be opened a PDF (href=start.PDF). In this PDF are many links to other documents, that will be opened in the browser. (KapA.PDF, KapB.PDF). Now the distributor deliver updatefiles w

Re: Stable tomcat release

2009-06-11 Thread André Warnier
Mohit Anchlia wrote: We are currently using tomcat 6. How do I determine the most recent stable release of tomcat. I am looking at upgrading our tomcat with most recent stable release. Mohit, come on ! You've asked the same question on the Apache site, and been told the same thing you'll be to

Realm and Datasource configuration in Context

2009-06-11 Thread Guillaume M
I'm sorry I'm a bit lost with all the information I had found on realm configuration problems. Thanks in advance for any help. I had read it could come from the version so I had tried on two different ones: On my Vista version, I have the error "the name jdbc isn't bound to the context". I had tr

Re: Dynamic Resources: getRealPath() returns the 'wrong' path

2009-06-11 Thread Mark Thomas
Lyallex wrote: > The logging output gives the following > > INFO: The path to the image cache is > C:\servers\tomcat\apache-tomcat-6.0.16\temp\1-ROOT\imagecache This is a side effect of using the anti-locking attributes on your context. Mark ---

Re: Using tomcat as standalone

2009-06-11 Thread balachandra maddina
Hi Chuck, Thx for the detailed info. i'll keep a note of these details during deployment. Thank you, bala. On 6/11/09, Caldarale, Charles R wrote: >> From: balachandra maddina [mailto:chandu2...@gmail.com] >> Subject: Using tomcat as standalone >> >> Im wondering what are the performance impl

Re: How to use a gzip javascript file in a webapp running under tomcat

2009-06-11 Thread balachandra maddina
Hi chris, Thx for the reply. just after posting the question i tried the same steps and the files are getting gzip. Thank you, bala. On 6/11/09, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Bala, > > On 6/10/2009 8:37 AM, balachandra maddina wrote: >> I'm wo