RE: Using EL expressions in an ObjectFactory

2013-09-12 Thread Xavier Dury
Hi,

I implemented a simple ExpressionFactory @ 
https://github.com/kalgon/expression-factory.

I would love to see this ExpressionFactory next to 
org.apache.naming.factory.BeanFactory in tomcat.

Regards,

Xavier


 From: kal...@hotmail.com
 To: users@tomcat.apache.org
 Subject: RE: Using EL expressions in an ObjectFactory
 Date: Fri, 30 Aug 2013 09:41:09 +0200

 Hi,

 I don't think you understood me. The point here is not about the 
 ${catalina.base}, it's about the whole expression 
 CacheManager.newInstance(URI('file:${catalina.base}/conf/ehcache.xml').toURL()).

 The ${catalina.base} will of course be expanded and give something like:

 CacheManager.newInstance(URI('file:/home/tomcat/conf/ehcache.xml').toURL())

 And then, this expression can be evaluated through EL and give a real 
 CacheManager instance.

 I could have written this that way:

 CacheManager.newInstance(URI('file:'+System.getProperty('catalina.base')+'/conf/ehcache.xml').toURL())

 The important thing here is that the whole expression parameter could be 
 given to an ELProcessor instead of having specialized ObjectFactory for each 
 case (I would of course use a specific ObjectFactory if there's one, like 
 BasicDataSourceFactory... but for exotic and rare cases where no 
 ObjectFactory exist, a generic EL-based one could be helpful).

 Xavier

 
 Date: Thu, 29 Aug 2013 14:53:31 -0400
 From: ch...@christopherschultz.net
 To: users@tomcat.apache.org
 Subject: Re: Using EL expressions in an ObjectFactory

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Xavier,

 On 8/29/13 3:06 AM, Xavier Dury wrote:
 Could it be possible for the tomcat team to include a
 javax.naming.spi.ObjectFactory which would use EL3.0 expressions?

 It would be great if you want to have resource-ref which are not of
 the usual types.

 I always wanted to have an ObjectFactory for URLs but having one
 for each type is too much work... so now, that we have a more
 powerful EL engine, maybe it would a great opportunity to use it.

 Resource name=/url/SomeService type=java.net.URL
 factory=org.apache.tomcat.jndi.ELObjectFactory
 importClass=java.net.URI
 expression=URI('http://some.service.url').toURL() /

 Resource name=/cache/CacheManager
 type=net.sf.ehcache.CacheManager
 factory=org.apache.tomcat.jndi.ELObjectFactory
 importClass=net.sf.ehcache.CacheManager,java.net.URI
 importStatic=net.sf.ehcache.CacheManager.newInstance
 expression=CacheManager.newInstance(URI('file:${catalina.base}/conf/ehcache.xml').toURL())

 What's

 wrong with just using $catalina.base within your context.xml?
 It will expand appropriately already... no EL needed.

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.14 (Darwin)
 Comment: GPGTools - http://gpgtools.org
 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

 iQIcBAEBCAAGBQJSH5irAAoJEBzwKT+lPKRYRoYP/03+hC07yLehUBQHuaIghRTB
 6NWcWrzcZ3bCy/uFtQDLH12am7sbE2zQ+VO6HPlOJaRJul8UQLCdZlTXmQuquz+G
 8SGoGb4BWqPcluMrhbO+8v7f4aMPN7NenxBRpzNvWlQPtOo2h7+9cmz2bwh+XikU
 5J8IGE2e7wb8dAQBu6DJtFsQi+fAhOGaiLfBtorwDLYrpJ4nN0tr28LSFrX9VKtD
 d0Fwga1zzHrBiGFzNAoUUujuGaPYCfbGugNJogWQO0dvHKQMmAM9GGLStnJbyy4U
 vehGGU4lRq6mhkD0KCUJ/zVxM1fuFxK+Q4hRah97Mw7r8jHgqyQEqdfGV9EjUZh4
 GVg0Y5W308ZTZfiutb7N++GTFrYq9qohHmI8pQyJ2jQLPtIo7gZv9KKBgFHUggpM
 2lg4ZL6/3wjALScRsQ5/NKUpg4s0NIb25LPOKViCW1fHF2euUcEH/lkkelgGMgFP
 2BXVszGOhQghePXFg6hkpAa4zhF0HRJQj8T5a1kJIBnf4QW3mm/g2Xv19EVNyiOs
 ZrkC6dSXZXnJZ0aYxusxRNKvSplTGm6ywuftxy17H89Mblib8qb0G+5MNwRJwceF
 tOkvHoMEY20dbhRZpQDL79a5dVL7YLc4M8hXBR1JQkmo1RyslHU/Y/+782OSs5+w
 ZFM1iRO6JYbxLrGdwQ3n
 =9lxu
 -END PGP SIGNATURE-

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Using EL expressions in an ObjectFactory

2013-09-12 Thread Mark Thomas
On 12/09/2013 11:49, Xavier Dury wrote:
 Hi,
 
 I implemented a simple ExpressionFactory @
 https://github.com/kalgon/expression-factory.
 
 I would love to see this ExpressionFactory next to
 org.apache.naming.factory.BeanFactory in tomcat.

No objections in principle.

Haven't looked at the new code in detail. A few initial observations:
- I'm assuming this is a contribution as per section 5 of the Apache
License, version 2.0
- There is no documentation
- Tomcat code standards use 4 spaces for indents, not tabs
- Some @Override markers look to be missing

Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Using EL expressions in an ObjectFactory

2013-09-12 Thread Xavier Dury
Ok,

I fixed the styling and the documentation. If anything else must be changed, 
don't hesitate.

Thanks,

Xavier.


 Date: Thu, 12 Sep 2013 12:01:26 +0100
 From: ma...@apache.org
 To: users@tomcat.apache.org
 Subject: Re: Using EL expressions in an ObjectFactory

 On 12/09/2013 11:49, Xavier Dury wrote:
 Hi,

 I implemented a simple ExpressionFactory @
 https://github.com/kalgon/expression-factory.

 I would love to see this ExpressionFactory next to
 org.apache.naming.factory.BeanFactory in tomcat.

 No objections in principle.

 Haven't looked at the new code in detail. A few initial observations:
 - I'm assuming this is a contribution as per section 5 of the Apache
 License, version 2.0
 - There is no documentation
 - Tomcat code standards use 4 spaces for indents, not tabs
 - Some @Override markers look to be missing

 Mark

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Registering Plugins, e.g. javax.imageio...

2013-09-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Shanti,

On 9/11/13 3:03 PM, Shanti Suresh wrote:
 Hi Konstantin, Hi Chris,
 
 On Wed, Sep 11, 2013 at 1:43 PM, Christopher Schultz  
 ch...@christopherschultz.net wrote:
 
 
 BTW, beware of known issue, mentioned in the FAQ, 
 http://wiki.apache.org/tomcat/FAQ/KnownIssues#ImageIOIssues
 
 +1
 
 
 Could you please explain this bug better?  So from the nice writeup
 in the Wiki link above, I understand that the OutputStream object
 may be re-assigned by Tomcat to another servlet.  So what does this
 statement mean: Tomcat recycles OutputStream 
 http://wiki.apache.org/tomcat/OutputStreamobjects to save
 resources, so it could be that when flush() is called from the
 ImageIO, the particular 
 OutputStreamhttp://wiki.apache.org/tomcat/OutputStreamobject
 already belongs to another Response, which can produce the above 
 errors, when the Servlet tries to get a Session for example, or
 can generally lead to broken responses.

I had a little trouble with the term recycle a while back. In this
case the opposite of recycle is discard. This means that the same
(underlying) OutputStream is used over and over again across lots of
requests. If you have ImageIO hold-on to a reference to one of these
things (that's the bug), it can corrupt a later response.

In other contexts, the term recycle actually means discard, such
as in the system property org.apache.catalina.connector.RECYCLE_FACADES
http://tomcat.apache.org/tomcat-7.0-doc/config/systemprops.html#Security

 So my understanding of flush() is that any remaining bytes are
 written to the OutputStream.

Yes. But, if there are no additional bytes to send, it can still
interfere with the outgoing request (e.g. committing the response too
early, etc.).

 But nowhere is it mentioned that flush() closes the
 OutputStream.

It does not.

 So I am confused how a new Servlet cannot get a session object for
 a recycled OutputStream when all that's going on is that the
 remaining bytes are written out.  Is the close() method the
 culprit?

I think you are confused about a few things. Flushing the stream does
not close it, but the finalizer I believe also closes the stream as
well. Tomcat may not allow the stream to actually be closed (because
Tomcat wants the stream to say open... at least the stream object
that it presents to servlets), so the close() does nothing. The
flush(), however, still occurs.

Flushing the OutputStream of a response commits the response --
meaning that the bytes are actually sent to the client. If that
happens (remember: ImageIO is interfering with a later and unrelated
request to the image-related one) than the later request -- still
in-process -- might not have expected that response-commit and things
like request.getSession() can fail because those calls must be made
before the response has been sent to the client (because creating the
JSESSIONID cookie requires setting a response header).

Hope that helps,
- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.14 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSMdhqAAoJEBzwKT+lPKRYB1gP/060YfcR6weyQCUyqhNXM3g5
DAISokCzJHoHTXlTyn3ekjwsr0w2NRpCdlqam/JLvDe9LEqOudyxT7vToJfsSe5p
JIkI/p4aWAR5YizJ+blASpItN2/4jW4FTSBcfNTrvtKx7atUKbhvd9G6xOzmQsYA
6VPgFqJIwPW5bOf2KyHwrrKIPe8PhIva9eJKDJqRtWm0ruOmOxqUKn6ZTYkwcOrP
L9DJSIcx0RPoX25IuqIA2lBOsHJzPsngUTiv/4wRUBun38XuBCvGdG+v6fW+jdvo
Gg6TNlTxybNx6Wzs7Uk8/y/PVQGnZXr8ge1nN2/YoyUxEdegl7Ac25s7BeQZjdDI
eey1xC9s9vJyz2YSn4TrTsD6iDfhZatU3JTt+5QdHFElkUgUhuI5g4Ivj4X4Nd+0
GyX20MN9y7k8DmGNSq6c7TB8jw1UwxFl9PUkGaXwQvtxHkMXe/xv+PAcINvo0nnw
/VrWwKqzKg3QglzBuCvbNlV8SIJu2J/yusJXUq8THUvbkl9diimp+jQebjEi3SQD
mtGgLd/+X8mzsEoM2w76ZMdQiw72gycGvebIF7793G2myHhvkYBab1Bjp6NpA/OA
gFMWHOJFxrTB2ZgSTmXKCm2ScR28RkZAzF1rUzOqXYeApnyFPhrKAzfa9CzYQHsX
U2YZMAhQnSK6udGCEPmC
=Tfg4
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: How tomcat is handling bandwidth sharing across all request

2013-09-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

André,

On 9/11/13 3:41 PM, André Warnier wrote:
 Arun Kumar wrote:
 Hi
 
 We are developing small video hosting application ,we are not
 writing any special program for open the video file and send to
 player , simply we are using tomcat DefaultServlet for above all
 video request , now we have to benchmark our application for
 following scenario
 
 1) video size 100MB (1080i HD) 2) Total Network bandwidth 10Mbps
 (IN/OUT)
 
 
 Now how to calculate how many max thread is allowed for above
 scenario ,with out interrupting users viewing experience,  here
 each video response should secure 400kbps bandwidth for no
 interruption
 
 400 Kb/s = (approx.) 0.4 Mb/s
 
 So in the theoretical very best of cases, you could possibly serve
 10 / 0.4 = 25 clients at the same time.
 
 But of course that will never happen, because there will always be 
 something else using a part of that bandwidth at any one time, or 
 preventing some of the 25 threads to be serving a video file.
 
 So, realistically, count about 50% of that ?
 
 
 So my question is how many concurrent users can view videos
 without interrupt then how to test this scenario ,and how tomcat
 is handling bandwidth sharing across the request
 
 
 Tomcat is not doing anything in terms of sharing the bandwidth
 equally between threads.
 
 Your best bet is to try this out in reality.  There are a number
 of client programs available that allow you to test this and
 measure the result. This one for instance :
 http://httpd.apache.org/docs/2.2/programs/ab.html Install Apache
 httpd (any 2.x version), it comes with it free.

Better yet, launch a bunch of the actual clients against a test
service, and see how many you can run usably before things start
lagging too much. That should give you a good idea of what is
possible. Hint: you probably need more bandwidth than you think you do.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.14 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSMdVRAAoJEBzwKT+lPKRYI7cP/0FSfiIkz6bSPwTW1stCtEYr
Gmke5rHjR33PdKtG4C8M2UgU4cdibuXmtIJn7uBdkVZkT/ufi0LsiFnC63CZkB2Q
9g1/jLyB7dwx67+ZzMnNLU6Wt16/IxHUsHywFYu8DSvaSNwdRr9Tk65AKjU17eii
7xlEzCQN5FMHJSKlmWcThrMjJGwwSSzhQrylylxXtoH31pH5OUUz41onHiRgz7Xp
UgjaurHw+THzJSmSn9Eqjsx5V0PCjAi6xPvjYbZsvdV0j1LrUOMei/mGTYBS7mxk
OpBegz8iRkTuwm7Y3bjnsfoaSkU/3RDrdiNlu0Xb4WLPP6wEYke2hLgfSrpV9suY
h9amPzIlEhWBn6KQzoQY8n06dGMONyWPmwTDSAEl1HhwMH5oYiyMoZuaQsekFNcJ
2zFAAatb3xu+z5kql+p/iafQk/gACjHUjJu1+emn//qcrWlKr7mspnF7IoJgf016
c+rMk/SKQRlD5v/+eGP1Hs/IOytNeIZLzcGfH9Dj6lYQjzQLk0NcctevUlNwjs3/
k+1yDmVGQloR+RJL5hiPBse+hPHiuW2JGajhBdg4Hb569zlEPpDBJAVaAwaESwzq
e8goNdkjMZqzRy6ULqlLAqFhpFwQK1ES38WBYeVkuC0BcSN8pcYyc2pih2lQCdkq
aB2wY4JyF8bZUeWxT0zv
=v0nT
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: How tomcat is handling bandwidth sharing across all request

2013-09-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Arun,

On 9/11/13 3:15 PM, Arun Kumar wrote:
 my native client is using http range parameter for requesting
 video

Excellent! The client is on the right track, then.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.14 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSMdTkAAoJEBzwKT+lPKRYyPUQALAkXweuEEqBeoCj1819BdF4
4uDiJIBf50MxvBG0eMMZeorkekdN1VB8doW8/zgUNo+7iQlIQdnU3vrK7Rg0Co8T
nOgVjfKLIjOMota/T6xN117O5k3A99eexVAKS9KAzBkYt7YxaioIgJaa8Ap+4Ltd
EKw7cIkd5RAJXO73l/lc7bj/ESCeZrs+FTPcfbAg2PWwT7G0o6M0BST266r/jk+I
ZFrbmeicwY/09+LOYRJkfhP6SKHPNctrOENYvxXH6A3xWwKK0gFDG3TF7NkxMcHC
/JiKOmte6VEGrmT8xOCLpO3ZeB8xQV74d2gIk/dpEaQfT6TbkJBpggn5WvxanDav
2LWni2ZK0Fn7alIbokEBzGOX3pkmFbQMz7iLxkgmFEpsCcjD9oBcfODLajLUrimA
SehmParFls2m8+ccl3CYUyOVFpIpDd9iDdpoEnpnQ4b9/MZQB/l3uhAqVXAVLgfD
nIvQXGncdFNUqFAis+lWiPINzcEl39pCQgcdqnAD5lyystBpyzKAOC2QnUyvsoEw
g+3NewTrfHfqacNtSZ0GfwR0nGHkaITYsZG/RN+mLsJ+nRILsU1dEizRBXsshFXr
ITXv7f58mLuqkzo186yhWEP5iswvZsM+p9V9jCJQD5jOmAKnC3Pz/Lt5mt1HvQ1G
MkNSvukI/+q6P9YgHb/f
=fz0l
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: [Tomcat-7.0.42/JmxRemoteLifecycleListener] rmiBindAddress vs localhost

2013-09-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Marcin,

On 9/11/13 2:29 PM, Marcin Domański wrote:
 Hi there! I am trying to setup a Tomcat instance using only
 specific address for all communications. This is convenient for us
 from the point of IPsec. I was able to succeed in http, https, ajp,
 etc. but for JMX I still cannot get it right. For this example,
 let's assume, my desired address is 127.2.0.1. Currently my
 configuration is as follows:
 
 - Listener 
 className=org.apache.catalina.mbeans.JmxRemoteLifecycleListener 
 rmiRegistryPortPlatform=9012 rmiServerPortPlatform=9013 
 useLocalPorts=true /
 
 
 Which allows to connect to the server at
 service:jmx:rmi:///jndi/rmi:// 127.2.0.1:9012/jmxrmi but also
 localhost (means I cannot run second instance with different IP)

Hmm. I would have expected useLocalPorts to bind only to 127.0.0.1
(i.e. localhost). What does netstat tell you under this configuration?

 On the other hand,when I try following:
 
 - Listener 
 className=org.apache.catalina.mbeans.JmxRemoteLifecycleListener 
 rmiRegistryPortPlatform=9012 rmiServerPortPlatform=9013 
 useLocalPorts=true rmiBindAddress=127.2.0.1/
 
 On Windows machine I get a network error basically saying there is
 no server configured at localhost in
 JmxRemoteLifecycleListener:304.

You get this on startup? Post the full stack trace, please.

What do you have in /etc/hosts (or the win32 equivalent)?

What happens if you do rmiBindAddress=127.2.0.1 and don't specify
useLocalPorts=true (I believe the former essentially covers the latter)?

 Here's the code : 
 http://grepcode.com/file/repo1.maven.org/maven2/org.apache.tomcat/tomcat-catalina-jmx-remote/7.0.42/org/apache/catalina/mbeans/JmxRemoteLifecycleListener.java#304

 
According
 to that it seems that both Tomcat RMI server and registry must be 
 accessible on localhost when using JmxRemoteLifecycleListener. Is
 it true?

useLocalPorts=true means that Tomcat will use localhost as the
binding host address. If you don't have localhost defined anywhere
(usually /etc/hosts), then the IP lookup will fail.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.14 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSMdp3AAoJEBzwKT+lPKRYNl4QAJbbOhlb4Sjj1JN5IfP9GFhj
IWACAiwnpvAnhwft86HJHzLPWP4i2+OLcRmko1txZv3xmP+KtdsFEe2g4dxhPeHd
Ud9U3vXrf4iroBy5GssTdx0yF7NHBIvmI6yM0ec72Mm/OunPHJAfsBJsKTRczM1P
mv+u40WacuyoTqMtAwpb8y3skhQXq1gAS53nrlleWM80xhx7vmdEo27S5JRk00hq
g7hyENYWHfvxnctiIlwmY1e2nnLvp8+donxDBYwuGI4mQj9U8+kcl+zrt1V1d1ZM
la4snyHhZM+VpLCDmF9xu5Qr2BC7Wu9BYZjC6jRv6EfqjkfymJd3KnasnLy62SkL
0pqka6KM1+j5kwXCLDdqnzB210pT2yGzcZN/uki+cSZHaZ1m7d+eBXmtH+FkrULN
SYEPrcd3OCtkBE7wkV5JnAuArso/Pq70My9C4J/2R5cLqgFzq2gdSAKLz9gx3Cm0
tofye1Iceci/wEIXsdvvevMImLtVaqPMFjDH9KhMx8Wa0JFBx6u50JhIlehdrwD+
j/nqwB7pyeCMwz5cN9BTWXLA42qxiRw5hQfhMqsyhwT1vmXhEhzkG2KV+mkqtB7P
FIhFmliRJLS9WXObjmpJQep13idPk/mbdLxXZIIzjpsk85gV0hndIZuszhiZGHe0
p1NjpJjVvbR7t2AHuOFr
=e0yo
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: too many apache digester logs

2013-09-12 Thread fachhoch
this is the output from my console lots of these logs 

catalina.properties
http://tomcat.10.x6.nabble.com/file/n5004650/catalina.properties  

consoleoutput.txt
http://tomcat.10.x6.nabble.com/file/n5004650/consoleoutput.txt  

Attached  catalina.properties  and consoleoutput.txt
Please advice.



--
View this message in context: 
http://tomcat.10.x6.nabble.com/too-many-apache-digester-logs-tp5004609p5004650.html
Sent from the Tomcat - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Tomcat (build)

2013-09-12 Thread olivier giorgi
Hello to all, 
 
With Apache (http server), there are specific build IPV4 or IPV6.
 
Is it the same kind of thing with Tomcat ?
 
If yes, where i can find these builds ?

Thanks in advance. 
 Olivier.

Re: Tomcat (build)

2013-09-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Olivier,

On 9/12/13 2:53 PM, olivier giorgi wrote:
 With Apache (http server), there are specific build IPV4 or IPV6.

What? ASF only provides binaries for NetWare and win32, and none of
them have separate IPv4 and IPv6 packages. Have a look for yourself:

http://www.apache.org/dyn/closer.cgi/httpd/binaries/win32/

 Is it the same kind of thing with Tomcat ?

Uh... yes and no: Tomcat does not have separate binaries, so it's like
httpd. But no, Tomcat doesn't have separate binaries so it's not like
your (incorrect) expectations.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.14 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSMhxbAAoJEBzwKT+lPKRYcLYP/3iAiHfqirAqNPdnvRS8jWSZ
o6dnMJfY9khnOK3P049cz/NvQChDH6e62wv/ZTs1Mx1IQIErSLbzPzMOgtKJWtrQ
OFkLMIpA2Mo/T9LRPI2SMCTjFMU9bJjmZIGhn63C90RkMs1YMItraQFeJ1ZEjSnp
SWV0zf4+CcCGboOdcvCVJ4xyJaaFUjecXWsOHdW0QW2lao21tZnW7UJ/xxlldOtH
jZbdzcMQDye9gaqkOQtN5uBvdrMCAL39fHIWFR+KxL76pyC6HSomc4e2kVnpluMb
4FBxfsap+voWiVRjcevvHFvUkSW0EwcwxMNFIXayaOu8uyiU2Td4uCT9xgHf24sl
+8NQ6QcBFooJmDqkXS/6FG+aRbEiPQXoTESl0f9zKToqmxrFPY2u4glGiHsX53TF
eNVVsrPnWC6ZzH1qUb2f6a994jhDHBoeaxyAY4YlitKVs4BrdiI0jmk0HZvh2O3U
SscEtZLtGLXcA8KvAIgalL0ohTo8ZH4zvEfiP3gTCjAHK81zteCQRgSPuv0sbw8P
sErj7tJ/uB3ukwTAbE4I2ukq6DHzhHLpC+E3W0x1z/fP57B80B+GcQtJrbgmM3mH
YMg/+Nughm17VMRa3IjybFTdIKwX02GP66N2qNxhfzZ6tFHKD/Nd/0JdbMx1xM8X
nSM6YTFCtC70Wxaap6ab
=LR8k
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: too many apache digester logs

2013-09-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

fachhoch,

On 9/12/13 1:08 PM, fachhoch wrote:
 this is the output from my console lots of these logs
 
 catalina.properties 
 http://tomcat.10.x6.nabble.com/file/n5004650/catalina.properties
 
 
 consoleoutput.txt 
 http://tomcat.10.x6.nabble.com/file/n5004650/consoleoutput.txt
 
 Attached  catalina.properties  and consoleoutput.txt Please
 advice.

I think you want to look at conf/logging.properties.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.14 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSMht9AAoJEBzwKT+lPKRYc50QAMNqDBTh1fTjyWUH8DyM/QBq
bLwFHklfYc3NCvlZwxXjdXkhpJhMXX5asHZWK9F1yJp0T6rNsAjVR8KuEvcvv5VF
cYu7IEmLZ4cXh9Te4HMXFD4Cz4XJWkaG5G6QXA9QnLFumUSq+lyXmrVWIS50t5kD
tgHUQuFzGXamjoKPYr4eW8Dd+voOsdsepAPDkh/TIrP0yZoJK15M8hysGThdeYsP
2TTQxjyMjyfagkqPLWHIVhuK0JVlfWQC1RJgLe9lZjq2VCSGVlCShF+UJUsiEJwI
MHpiWFy+IzUEAyj6SiXj1VJcUV+0PNzQ0j/Ib435l2jSWTYf3a/aUzJfTd9UpcTR
vrxCuM1jkR4xYWESosPfuhXcTl796xqxr2y7qYDx64mqqCRxUfmzmDNYQOa1mg5L
zTTidthuzTRede4wS9asJFr059z7ugDe0dnU4jX+lzakAbeNd7PDcPOcee/8qkRG
6U78AS6viAaVTh7jBZzfqo2PbdIlqTXYrmxC6SRIU50xoq4EtWFSadonYaSllUty
rOJqJeDWO1BJFuKROI2d8TwDbt364mauZ4ydtYSR0f4aiIoPKBHR5Ukp5MHOtQ5+
+1LdiM0y73HL0l4az+273cPowS97P7mPPR0KGOhhTe9Dc31TJga30aIJZWFpeqLd
hWJNh7Dory+upeuaMpwv
=GnfW
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



New website skin looks great

2013-09-12 Thread Campbell, Lance
WOW!  I love the new design of the tomcat web site.  It looks much more 
professional and refined.  It is also much easier to read.  The prior 
background colors caused the text to run together.   This is so much better.  I 
love the subtle but clear separation and grouping of information.


Thanks,

Lance Campbell
Software Architect
Web Services at Public Affairs
217-333-0382
[University of Illinois at Urbana-Champaign logo]http://illinois.edu/




problem with Remote Address Filter

2013-09-12 Thread Garey Mills
Hi -

I'm running Apache Tomcat Version 7.0.29. I have inserted a Remote
Address filter into server.xml inside of the Host tag. It is not blocking
addresses that are not in Allow.

I am using the Remote Address filter because I want to allow access
only to addresses in our institution's community. This is a large
institution and we have 4 or 5 class B address ranges, maybe 10 class Cs,
and a number of broken ranges. The regular expression runs to 8181
characters without doubling up on \. It does, however, work in a test Java
class that I wrote, correctly allowing and disallowing a test group of
addresses.

One question I have is that the example in


http://tomcat.apache.org/tomcat-7.0-doc/config/filter.html#Remote_Address_Filter

has single backslashes, but in order to make the pattern work in my test
class, I had to double up on the slashes. I took a look at the
RequestFilter code, and it looks like the pattern string is just passed to
Pattern.compile, so the pattern in the filter should need double slashes.
I've tried it both ways and neither worked.

Anybody have any idea about what might be going wrong?

Garey Mills
Library Systems Office
UC Berkeley


Re: Using EL expressions in an ObjectFactory

2013-09-12 Thread Daniel Mikusa
On Sep 12, 2013, at 7:58 AM, Xavier Dury kal...@hotmail.com wrote:

 Ok,
 
 I fixed the styling and the documentation. If anything else must be changed, 
 don't hesitate.

In your docs, you state the following remark...

Try to avoid overloaded methods/constructors as much as possible in EL 3.0 
expression as the ELProcessor will use the first one it will find by 
reflection.

Can you clarify what you mean by this?  There was a problem in RC-1 that sounds 
similar, but it's been fixed.  

  https://issues.apache.org/bugzilla/show_bug.cgi?id=55483

Is this a problem in trunk?  Point being, if you're seeing an issue with EL 
3.0, we should try to fix it.

Dan


 
 Date: Thu, 12 Sep 2013 12:01:26 +0100
 From: ma...@apache.org
 To: users@tomcat.apache.org
 Subject: Re: Using EL expressions in an ObjectFactory
 
 On 12/09/2013 11:49, Xavier Dury wrote:
 Hi,
 
 I implemented a simple ExpressionFactory @
 https://github.com/kalgon/expression-factory.
 
 I would love to see this ExpressionFactory next to
 org.apache.naming.factory.BeanFactory in tomcat.
 
 No objections in principle.
 
 Haven't looked at the new code in detail. A few initial observations:
 - I'm assuming this is a contribution as per section 5 of the Apache
 License, version 2.0
 - There is no documentation
 - Tomcat code standards use 4 spaces for indents, not tabs
 - Some @Override markers look to be missing
 
 Mark
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat (build)

2013-09-12 Thread Daniel Mikusa
On Sep 12, 2013, at 2:53 PM, olivier giorgi olivier_gio...@yahoo.fr wrote:

 Hello to all, 
  
 With Apache (http server), there are specific build IPV4 or IPV6.
  
 Is it the same kind of thing with Tomcat ?

No.  Tomcat uses the networking support provided by the JVM, which should 
support both IPv4  IPv6.

The only time this would not be true is if you're using the tcnative library 
with Tomcat  using the APR connector.  In this case, you'd need to build the 
tcnative library against a version of libapr that supports IPv6.  You can tell 
if this is the true, because when the tcnative library is loaded you'll see 
output like this.

   INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters 
[false], random [true].
 
 If yes, where i can find these builds ?

There are no binaries for tcnative on Unix based systems, you'd simply need to 
build from source.  There is a Windows binary here.

  
http://apache.tradebit.com/pub/tomcat/tomcat-connectors/native/1.1.27/binaries/

Dan

 
 Thanks in advance. 
  Olivier.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org