bat startup and windows service startup

2011-03-14 Thread 梁贵书
Dear sir or madam,
we use windows xp sp3 for the server and tomcat 6.0.9 for the web server.
My group uses tomcat as the web server and uses the jcom to print the
excel files.Then we got a problem. when we started tomcat with .bat
file, everything was ok. the print function was ok.but when we started
tomcat with the windows service, the print function did not work.
could you give us some advice about when we use windows service to start
tomcat.
thanks a lot. looking forward to receiving your reply.
your liang




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



Re: Performance 5.5 vs 6 vs 7

2011-03-14 Thread Peter Crowther
On 13 March 2011 21:01, Tony Anecito adanec...@yahoo.com wrote:

 As someone mentioned the network can imit you. If your bandwidth
 utilization is
 at 60% or over you are in trouble since collisions start to become a
 serious
 issue.

 Collisions may or may not be an issue, depending on the exact mode of
operation of the congested network link.

Collisions are a feature of the original Ethernet.  They're still an issue
on many Ethernets, but there are provisos even here.  If your switch does
store-and-forward, or you simply have a switched network and all the traffic
is between two stations, then collisions are relatively unlikely and the
Ethernet usage can go considerably higher than 60% before collisions and
retries start to become significant.  Sure, if you're on wireless or using
an old 10baseT or Cheapernet hub, 60% is about the knee in the curve.  But
I'd be a little surprised if Dave were using such ancient technology for a
critical piece of infrastructure such as this server :-).

Point-to-point links, such as most broadband connections, do not suffer from
collisions as the routers at each end store and forward traffic across the
link.  That said, by the time you get to 80% usage then each packet is
typically going to have to queue behind several others.  Even if this only
adds a few milliseconds of latency each time, it builds up when you multiply
it by the TCP 3-way handshake, 4-way FIN/ACK sequence, plus any data you're
transferring.

Dave, could you give us any more information about your network?  What is
the piece that's at 80% utilisation when you see the trouble?  Is it a
point-to-point connection, or an Ethernet LAN, or what?  If it's Ethernet,
what hardware are you using for connection?

Tony - I also don't believe 2ms is the best you can get on Ethernet.  If it
was, most big machine rooms would have silted up with network traffic long
ago ;-).  It depends on what network technology you're using.  For example,
gigabit Ethernet latencies are considerably lower than good ol' 10 meg.
What link speeds do you have to your router?  100 Mbit/s?

- Peter


Re: bat startup and windows service startup

2011-03-14 Thread André Warnier
梁贵书 wrote:
 Dear sir or madam,
 we use windows xp sp3 for the server and tomcat 6.0.9 for the web server.
 My group uses tomcat as the web server and uses the jcom to print the
 excel files.Then we got a problem. when we started tomcat with .bat
 file, everything was ok. the print function was ok.but when we started
 tomcat with the windows service, the print function did not work.
 could you give us some advice about when we use windows service to start
 tomcat.

When you start as a service, do you start it as the user Local System ?
If so, then remember that this (special) user has extensive rights only to the 
local
machine.  It does not have network rights, so it cannot access any Windows 
network
resource, like network printers or network shared directories.

If that is your problem, then create a domain user to run Tomcat, and have the 
Tomcat
service run as that user.

When you run Tomcat through the .bat file, you do not have that issue, because 
Tomcat then
run under *your* user-id, which may be a domain id.


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



How to prevent/abort the processing of the multipart request body?

2011-03-14 Thread Attila Király
Hi,

I have the following situation: a html page contains a multipart form with a
file typed input field. User submits the form. I can decide not to parse the
multipart body at all on the server side in a filter (because the request is
too large based on the content-length header sent by the UA). I would like
to communicate this to the UA as fast as possible (possibly before the UA
starts pumping the file into the TCP). However the file is still sent by the
UA and it is probably still read (and skipped) by tomcat. Can this data
transfer be prevented? I tried to do something like this (forcing the close
of the connection):
public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException {
  HttpServletResponse httpResponse = (HttpServletResponse) response;
  httpResponse.setHeader(Connection, close);
  httpResponse.sendError(413);
  response.flushBuffer();
  request.getInputStream().close();
  response.getOutputStream().close();
}
But it was no use. Preventing the upload would save time for the user,
bandwidth for the network and CPU cycles for the server. Any ideas how to do
it (or why it can't be done)?

Thanks,
Attila Király


Configuring Tomcat 6.0.30 for PHP 5.3.5 (OS:Windows 7)

2011-03-14 Thread Pratik Desai
Sir,
I wanted to know how to configure Apache Tomcat 6.0.30 for PHP 5.3.5 I went
through some documentation but didn't succeed.
I have already configured it to work for servlets. Now I want to configure
it to work for PHP. I am intending to work only on PHP, not on both
(servlets and PHP).
Kindly reply.
Thank you.

-- 
Regards,
Pratik P. Desai,
Pune University.,
India.


Re: Configuring Tomcat 6.0.30 for PHP 5.3.5 (OS:Windows 7)

2011-03-14 Thread Mikolaj Rydzewski


On Mon, 14 Mar 2011 15:27:48 +0530, Pratik Desai 
desaiprati...@gmail.com wrote:


I wanted to know how to configure Apache Tomcat 6.0.30 for PHP 5.3.5 
I went

through some documentation but didn't succeed.
I have already configured it to work for servlets. Now I want to 
configure

it to work for PHP. I am intending to work only on PHP, not on both
(servlets and PHP).


Short answer: don't do this.
There're plenty of easy-to-install-and-use bundles (web server, php, 
mysql) for Windows.


--
Mikolaj Rydzewski m...@ceti.pl

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



On stopping tomcat getting error

2011-03-14 Thread laxmipathi raju

Hi,
While i am stopping tomcat i am getting the following error
Mar 14, 2011 3:45:43 PM org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop:
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.init(Socket.java:366)
at java.net.Socket.init(Socket.java:180)
at
org.apache.catalina.startup.Catalina.stopServer(Catalina.java:395)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:344)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:435)
I under stood why i am getting this error. Actually i am starting tomcat
using a script startUp.sh(Which is provided by tomcat). But it is taking
some time to load in backend. Before it loads completely if i issue
shutdown.sh i am getting this error.

Is there any why to check, whether tomcat is fully loaded in backend ?
Can you please help me how to avoid this issue when stopping at any point of
time.


Thanks  Regards,
Laxmipathi raju.


-- 
View this message in context: 
http://old.nabble.com/On-stopping-tomcat-getting-error-tp31142529p31142529.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



OT: a good jmx browser?

2011-03-14 Thread Leon Rosenberg
Hi,

sorry for the off-topic-ness, but what jmx browser are you guys using if any.
By jmx browser i mean something with a GUI where I can enter my
server's adress and click through the tree of available values.

thanks in advance
Leon

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



Re: OT: a good jmx browser?

2011-03-14 Thread Antonio Petrelli
2011/3/14 Leon Rosenberg rosenberg.l...@gmail.com:
 sorry for the off-topic-ness, but what jmx browser are you guys using if any.
 By jmx browser i mean something with a GUI where I can enter my
 server's adress and click through the tree of available values.

Take a look at JMiniX:
http://code.google.com/p/jminix/

Antonio

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



Re: OT: a good jmx browser?

2011-03-14 Thread Mikolaj Rydzewski


On Mon, 14 Mar 2011 11:28:58 +0100, Leon Rosenberg 
rosenberg.l...@gmail.com wrote:


sorry for the off-topic-ness, but what jmx browser are you guys using 
if any.

By jmx browser i mean something with a GUI where I can enter my
server's adress and click through the tree of available values.


jconsole

--
Mikolaj Rydzewski m...@ceti.pl

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



Re: On stopping tomcat getting error

2011-03-14 Thread Thomas Freitag
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello Raju,

On 14.03.11 um 03:16, laxmipathi raju wrote:
 While i am stopping tomcat i am getting the following error
 Mar 14, 2011 3:45:43 PM org.apache.catalina.startup.Catalina stopServer
 SEVERE: Catalina.stop:
 java.net.ConnectException: Connection refused
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
 at
 java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
 at java.net.Socket.connect(Socket.java:519)
 at java.net.Socket.connect(Socket.java:469)
 at java.net.Socket.init(Socket.java:366)
 at java.net.Socket.init(Socket.java:180)
 at
 org.apache.catalina.startup.Catalina.stopServer(Catalina.java:395)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:344)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:435)
 I under stood why i am getting this error. Actually i am starting tomcat
 using a script startUp.sh(Which is provided by tomcat). But it is taking
 some time to load in backend. Before it loads completely if i issue
 shutdown.sh i am getting this error.

Yes, you can get this error because Tomcat did not startup completly and
the shutdown port (8009 in default) is not opened yet. IIRC opening
the shutdown port (calling something like socket.accept() on
localhost:shutdown port) is more or less the last thing the tomcat
main thread does during the startup sequence. 
 
 Is there any why to check, whether tomcat is fully loaded in backend ?
 Can you please help me how to avoid this issue when stopping at any point of
 time.

Checking wether tomcat is fully loaded can be done by looking in the
tomcat logs for the tomcat startup message giving the time it took to
load tomcat and deploy all apps, which is logged with INFO level:
Server startup in n ms

Under unix an alternative to using shutdown.sh is sending the SIGTERM
(using kill tomcat java pid does this in most unix shells) to the 
tomcat java process. Tomcat registers a shutdown handler to initiate a
clean shutdown. This clean shutdown might need some time (up to some
minutes) to complete, depending on your applications.

You should check if initiating a shutdown during startup works in your
environment. Otherwise waiting until the shutdownport (you could check
this using netstat) is opened may be another option.

Regards,
- -- 
Thomas Freitag
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk199M8ACgkQGE5pHr3PKuUPuwCZAa+QpdLm1HT6pwcMEuUC1D7l
DxIAn3bsKzCRSAy/2yl3MYZN6aINn7im
=a7I5
-END PGP SIGNATURE-

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



Re: How to prevent/abort the processing of the multipart request body?

2011-03-14 Thread André Warnier

Attila Király wrote:

Hi,

I have the following situation: a html page contains a multipart form with a
file typed input field. User submits the form. I can decide not to parse the
multipart body at all on the server side in a filter (because the request is
too large based on the content-length header sent by the UA). I would like
to communicate this to the UA as fast as possible (possibly before the UA
starts pumping the file into the TCP). However the file is still sent by the
UA and it is probably still read (and skipped) by tomcat. Can this data
transfer be prevented? I tried to do something like this (forcing the close
of the connection):
public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException {
  HttpServletResponse httpResponse = (HttpServletResponse) response;
  httpResponse.setHeader(Connection, close);
  httpResponse.sendError(413);
  response.flushBuffer();
  request.getInputStream().close();
  response.getOutputStream().close();
}
But it was no use. Preventing the upload would save time for the user,
bandwidth for the network and CPU cycles for the server. Any ideas how to do
it (or why it can't be done)?



Maybe have a look here :
http://tomcat.apache.org/tomcat-6.0-doc/config/http.html#Common_Attributes

attribute maxPostSize


About the code above : (guessing) it probably does not help, because Tomcat is buffering 
the POST somewhere, even before passing the request to the webapp.


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



Re: How to prevent/abort the processing of the multipart request body?

2011-03-14 Thread Mark Thomas
On 14/03/2011 11:01, André Warnier wrote:
 Maybe have a look here :
 http://tomcat.apache.org/tomcat-6.0-doc/config/http.html#Common_Attributes
 
 attribute maxPostSize

Nope. That doesn't apply to multi-part forms since Tomcat doesn't do the
parameter parsing.

You want Tomcat 7.0.11 and swallowAbortedUploads from
http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Common_Attributes

Mark

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



Re: On stopping tomcat getting error

2011-03-14 Thread laxmipathi raju

Thanks Thomas . Thank you very much for your quick response.


laxmipathi raju wrote:
 
 Hi,
 While i am stopping tomcat i am getting the following error
 Mar 14, 2011 3:45:43 PM org.apache.catalina.startup.Catalina stopServer
 SEVERE: Catalina.stop:
 java.net.ConnectException: Connection refused
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
 at
 java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
 at java.net.Socket.connect(Socket.java:519)
 at java.net.Socket.connect(Socket.java:469)
 at java.net.Socket.init(Socket.java:366)
 at java.net.Socket.init(Socket.java:180)
 at
 org.apache.catalina.startup.Catalina.stopServer(Catalina.java:395)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:344)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:435)
 I under stood why i am getting this error. Actually i am starting tomcat
 using a script startUp.sh(Which is provided by tomcat). But it is taking
 some time to load in backend. Before it loads completely if i issue
 shutdown.sh i am getting this error.
 
 Is there any why to check, whether tomcat is fully loaded in backend ?
 Can you please help me how to avoid this issue when stopping at any point
 of time.
 
 
 Thanks  Regards,
 Laxmipathi raju.
 
 
 

-- 
View this message in context: 
http://old.nabble.com/On-stopping-tomcat-getting-error-tp31142529p31142945.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



Re: Performance 5.5 vs 6 vs 7

2011-03-14 Thread David kerber

On 3/14/2011 3:12 AM, Peter Crowther wrote:

On 13 March 2011 21:01, Tony Anecitoadanec...@yahoo.com  wrote:


As someone mentioned the network can imit you. If your bandwidth
utilization is
at 60% or over you are in trouble since collisions start to become a
serious
issue.

Collisions may or may not be an issue, depending on the exact mode of

operation of the congested network link.

Collisions are a feature of the original Ethernet.  They're still an issue
on many Ethernets, but there are provisos even here.  If your switch does
store-and-forward, or you simply have a switched network and all the traffic
is between two stations, then collisions are relatively unlikely and the
Ethernet usage can go considerably higher than 60% before collisions and
retries start to become significant.  Sure, if you're on wireless or using
an old 10baseT or Cheapernet hub, 60% is about the knee in the curve.  But
I'd be a little surprised if Dave were using such ancient technology for a
critical piece of infrastructure such as this server :-).


We're not, though you would probably be surprised how long it lasted 
before we modernized...  ;-D




Point-to-point links, such as most broadband connections, do not suffer from
collisions as the routers at each end store and forward traffic across the
link.  That said, by the time you get to 80% usage then each packet is
typically going to have to queue behind several others.  Even if this only
adds a few milliseconds of latency each time, it builds up when you multiply
it by the TCP 3-way handshake, 4-way FIN/ACK sequence, plus any data you're
transferring.


Makes sense to me.



Dave, could you give us any more information about your network?  What is
the piece that's at 80% utilisation when you see the trouble?  Is it a
point-to-point connection, or an Ethernet LAN, or what?  If it's Ethernet,
what hardware are you using for connection?


It's our internet connection to the outside world, which is a T-1, with 
a Cisco ASA for the firewall.  The connections we're processing are from 
a bunch of separate customer sites, but which all connect to us through 
the customer's gateway.


D

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



Re: How to prevent/abort the processing of the multipart request body?

2011-03-14 Thread Attila Király
Thanks for the info! With swallowAbortedUploads browsers (I tried
Chrome10, Fox3.6, IE9, Opera11) broke (showed a network error message about
aborted connection). They except to fully write the request before reading
the response. Too bad. :( But I think that can still be combined with ajax
uploads (so the error page does not show up). :)

Attila

2011/3/14 Mark Thomas ma...@apache.org


 You want Tomcat 7.0.11 and swallowAbortedUploads from

 http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Common_Attributes

 Mark

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




Re: Performance 5.5 vs 6 vs 7

2011-03-14 Thread Peter Crowther
On 14 March 2011 12:08, David kerber dcker...@verizon.net wrote:

 Dave, could you give us any more information about your network?  What is
 the piece that's at 80% utilisation when you see the trouble?  Is it a
 point-to-point connection, or an Ethernet LAN, or what?  If it's Ethernet,
 what hardware are you using for connection?

 It's our internet connection to the outside world, which is a T-1, with a
 Cisco ASA for the firewall.  The connections we're processing are from a
 bunch of separate customer sites, but which all connect to us through the
 customer's gateway.


A T1 used to be 1.5 Mbit/s bidirectional, back when I did my basic network
training (which, I admit, is a good few years ago).  Is it still?  If so,
that's quite low.  I have 34 Mbit/s down, 1.5 Mbit/s up to my house for the
price of a decent restaurant meal for one per month.  What might your
upgrade options be?

Also, see if the ASA can give you any usage statistics.  There's a small
chance that you're saturating your firewall if you have a very large number
of short-lived connections.  Cisco's figures don't always stack up here - in
the past, I've had to debug load problems with Cisco routers that were
supposed to be able to handle two ISDN PRIs, and couldn't when there was
heavy call setup and termination load.  I accept this isn't quite a parallel
case!

Tomcat might still be the problem, but I'd certainly take a long hard look
at your network infrastructure.  Does the server really have to be on your
site, or can you have a server in a bunker somewhere that passes hourly /
daily reports to your site via a heavily compressed file format?  Our
telemetry system does that, for example, just running in a VM (for
reliability, believe it or not).

Cheers,

- Peter


Re: Performance 5.5 vs 6 vs 7

2011-03-14 Thread David kerber

On 3/14/2011 8:21 AM, Peter Crowther wrote:

On 14 March 2011 12:08, David kerberdcker...@verizon.net  wrote:


Dave, could you give us any more information about your network?  What is
the piece that's at 80% utilisation when you see the trouble?  Is it a
point-to-point connection, or an Ethernet LAN, or what?  If it's Ethernet,
what hardware are you using for connection?

It's our internet connection to the outside world, which is a T-1, with a
Cisco ASA for the firewall.  The connections we're processing are from a
bunch of separate customer sites, but which all connect to us through the
customer's gateway.



A T1 used to be 1.5 Mbit/s bidirectional, back when I did my basic network
training (which, I admit, is a good few years ago).  Is it still?  If so,


Yes, 1.5Mbps bidirectional


that's quite low.  I have 34 Mbit/s down, 1.5 Mbit/s up to my house for the
price of a decent restaurant meal for one per month.  What might your


Me, too (mine is 10 down/2 up), but FIOS isn't available where we are, 
or I'd go that route in about half a heartbeat.  Cable is, and is 
faster, and we actually use that for our backup, but the reliability 
isn't good enough for it to be our primary connection (frequent short 
outages).




upgrade options be?


We're in the process of upping our bandwidth with our current ISP, but 
the options ae rather limited without having to change our IP address, 
and therefore all our customers' firewall settings, Lan-2-Lan vpns, etc. 
 So changing that, while doable, is a last resort.




Also, see if the ASA can give you any usage statistics.  There's a small
chance that you're saturating your firewall if you have a very large number
of short-lived connections.  Cisco's figures don't always stack up here - in


Yeah, I've been looking at that as well, but as you say, the numbers 
don't always stack up.




the past, I've had to debug load problems with Cisco routers that were
supposed to be able to handle two ISDN PRIs, and couldn't when there was
heavy call setup and termination load.  I accept this isn't quite a parallel
case!

Tomcat might still be the problem, but I'd certainly take a long hard look


I never really suspected tomcat as the cause after I did my app tuning 
work a year ago or so, but since that's the easiest to test and 
eliminate, I started there.




at your network infrastructure.  Does the server really have to be on your
site, or can you have a server in a bunker somewhere that passes hourly /
daily reports to your site via a heavily compressed file format?  Our
telemetry system does that, for example, just running in a VM (for
reliability, believe it or not).


Hourly or daily wouldn't be enough, but every minute or every 5 minutes 
might be a possibility, and one we hadn't thought of; thanks for the 
suggestion.  We're also looking at moving the entire process to a data 
center hosting service as well.


D

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



What Do I have to change In production stage

2011-03-14 Thread ahmet temiz
hello

In production stage of jsf-tomcat 6,  Do I have to change followings ?:

Engine name=Catalina defaultHost=localhost jvmRoute=jvm1

Host name=localhost  appBase=webapps
unpackWARs=true autoDeploy=false
xmlValidation=false xmlNamespaceAware=false


I will appreciate if you provide information

kind regards

-- 
Ahmet Temiz
Jeoloji Müh.
Afet ve Acil Durum Yönetimi Başkanlığı
Planlama ve Zarar Azaltma Dairesi Başkanlığı
Bilgi ve CBS grubu
Eskişehir Yolu 10. km.
Lodumlu / Ankara
Tel : 0 312 2872680 / 1535

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



mutual authentication between two server

2011-03-14 Thread Jorge Infante Osorio
Hi folks.

Can I have a mutual Authentication using digital certificates  between an
Apache server and a Tomcat server?

Regards,
  Jorge.


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



Re: mutual authentication between two server

2011-03-14 Thread Mark Thomas
On 14/03/2011 13:57, Jorge Infante Osorio wrote:
 Hi folks.
 
 Can I have a mutual Authentication using digital certificates  between an
 Apache server and a Tomcat server?

Yes.

Mark

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



Re: java.io.NotSerializableException: org.apache.catalina.realm.GenericPrincipal

2011-03-14 Thread Ronald Klop



Op vrijdag, 11 maart 2011 13:32 schreef Ronald Klop 
ronald-mailingl...@base.nl:


  
 
 Hi,
 
  https://issues.apache.org/bugzilla/show_bug.cgi?id=47502
 
  Because this issue is fixed I re-enabled using the security-constraint in web.xml to protect some pages in stead of using my own workaround. But now I get a somewhat similar exception.
 
  This is running Tomcat 6.0.32 (directly from your tar.gz) on Debian 5 in a cluster of 3 nodes.

  I access my password protected pages over https.
 
  Mar 11, 2011 1:20:48 PM org.apache.catalina.ha.session.DeltaManager requestCompleted

  SEVERE: Unable to serialize delta request for sessionid 
[7D6D6A80C080C132F7EDCDAA3DFCEFB7]
  java.io.NotSerializableException: org.apache.catalina.realm.GenericPrincipal
  at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
  at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
  at java.util.LinkedList.writeObject(LinkedList.java:943)
  at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
  at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)
  at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
  at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
  at java.io.ObjectOutputStream.access$300(ObjectOutputStream.java:143)
  at 
java.io.ObjectOutputStream$PutFieldImpl.writeFields(ObjectOutputStream.java:1677)
  at java.io.ObjectOutputStream.writeFields(ObjectOutputStream.java:462)
  at javax.security.auth.Subject$SecureSet.writeObject(Subject.java:1281)
  at sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)
  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
  at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)
  at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
  at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
  at 
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
  at 
java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:422)
  at 
java.util.Collections$SynchronizedCollection.writeObject(Collections.java:1602)
  at sun.reflect.GeneratedMethodAccessor63.invoke(Unknown Source)
  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
  at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)
 
  Should I file an issue? Is this already known?
 
  Ronald.
 



 
  

Am I the only person with this? It is very easy reproducable and it looks like 
a bug in Tomcat code.

Ronald.

Re: Tomcat 5.5.30 and Spring Framework

2011-03-14 Thread Aureliusz R.
It's all working now.

Thank You for your help!
Aurir_

On Sat, Mar 12, 2011 at 4:49 AM, Borut Hadžialić
borut.hadzia...@gmail.com wrote:
 The docBase for my app is /usr/local/jsp/
 I've placed my spring test JSP in /usr/local/jsp/testSpring/testSpring.jsp

 You probably want your's app docBase to be something like
 /usr/local/myapp, and then have your jsp's in a directory
 /usr/local/myapp/WEB-INF/jsp/ - eg.
 /usr/local/myapp/WEB-INF/jsp/testSpring/testSpring.jsp


 On Sat, Mar 12, 2011 at 5:42 AM, Aureliusz R. aremp...@gmail.com wrote:
 Borut,

 thanks again. You were correct, it was lazy initialization. Pretty
 much at this point I got the spring part working.

 I've encountered yet another issue with mapping requests from apache2
 web server to tomcat. It seems to have something to do with SSL, as I
 don't have this issue for http.

 The situation looks as follows:


 apache2/httpd.conf has the following mod_jk mappings:
 JkMount /servlet/* worker1
 JkMount /*.jsp worker1
 JkMount /jsp/* worker1

 When I invoke this JSP directly through tomcat, or through apache
 httpd server but over http, it works fine:
 http://server.domain.com:8080/jsp/testSpring/testSpring.htm
 http://server.domain.com/jsp/testSpring/testSpring.htm

 When I invoke this JSP through apache httpd over https, it's actually
 looking for the static htm file. It doesn't go through tomcat at all.
 https://server.domain.com/jsp/testSpring/testSpring.htm

 Not Found
 The requested URL /jsp/testSpring/testSpring.htm was not found on this 
 server.

 Would you be able to point me in the right direction? I searched
 through some of the ssl config files, but I didn't find anything that
 would prevent /jsp/**/*.htm requests from being sent to tomcat.

 Thanks,
 aurir_

 On Fri, Mar 11, 2011 at 9:30 AM, Borut Hadžialić
 borut.hadzia...@gmail.com wrote:
 Do not put anything in $TOMCAT_HOME/conf/web.xml - leave that file as
 it is when you unpack a fresh Tomcat distribution.

 Why the servlet is not being loaded?  - not 100% about this, but I
 would first check if it is maybe being lazy loaded/initialized. After
 your tomcat starts up, try to browse http://localhost:8080/test.htm -
 that http request will be mapped to your spring servlet, and it will
 trigger the initialization of your spring servlet (if that was the
 problem in the first place, but i think it is).

 The exception you were getting meant that your DispatcherServlet
 couldn't find and load its configuration file at startup.
 A DispatcherServlet's configuration file is by default
 /WEB-INF/servlet-name-servlet.xml'. servlet-name is 'spring' in
 your case - that is how you named it inside web.xml:

 servlet
        servlet-namespring/servlet-name
     
 /servlet

 So your DispatcherServlet instance that you named 'spring' tried to
 load the file /WEB-INF/spring-servlet.xml, which wasn't there and you
 got the exception:
 java.io.FileNotFoundException: Could not open ServletContext resource
 [/WEB-INF/spring-servlet.xml]

 Make sure you have 'spring' DispatcherServlet's configuration in a
 file /WEB-INF/spring-servlet.xml, or use some other file with
 configuration like this:

 servlet
        servlet-namespring/servlet-name
        servlet-class
            org.springframework.web.servlet.DispatcherServlet
        /servlet-class
  init-param
    param-namecontextConfigLocation/param-name
    param-value/WEB-INF/foo/bar-servlet.xml/param-value
  /init-param
        load-on-startup1/load-on-startup
    /servlet

 On Fri, Mar 11, 2011 at 4:08 PM, Aureliusz R. aremp...@gmail.com wrote:
 Borut,

 your instructions were spot on. I was able to track down my docBase
 folder (it was specified in $TOMCAT_HOME/conf/servlet.xml context,
 and I verified that it's the correct location by adding some context
 parameters to the web.xml in my docBase, and then retrieving them from
 a JSP.

 Now I have another problem though. For some reason, my
 DispatcherSetvlet (for the spring framework) is not being loaded at
 all. I tried placing the piece of XML below in the
 $TOMCAT_HOME/conf/web.xml and my docBase/WEB-INF/web.xml. I also
 specified invalid fully qualified name for my DispatcherServlet to get
 some kind of exception, but I don't get anything. Is there anything
 that would prevent this servlet from being loaded?


    servlet-mapping
        servlet-namespring/servlet-name
        url-pattern*.htm/url-pattern
    /servlet-mapping

  It's ridiculous because some time ago when I placed it in
 $TOMCAT_HOME/conf/web.xml I was getting the exception below, and
 that's the reason why I wanted to know where my docBase is in the
 first place. Now that I know where it is, the DispatcherServlet
 doesn't seem to be loaded at all. Is there anything that would prevent
 this servlet from being loaded?

 org.springframework.beans.factory.BeanDefinitionSt oreException:
 IOException parsing XML document from ServletContext resource
 [/WEB-INF/spring-servlet.xml]; nested exception is
 

Re: How to prevent/abort the processing of the multipart request body?

2011-03-14 Thread André Warnier

Mark Thomas wrote:

On 14/03/2011 11:01, André Warnier wrote:

Maybe have a look here :
http://tomcat.apache.org/tomcat-6.0-doc/config/http.html#Common_Attributes

attribute maxPostSize


Nope. That doesn't apply to multi-part forms since Tomcat doesn't do the
parameter parsing.

You want Tomcat 7.0.11 and swallowAbortedUploads from
http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Common_Attributes



Hi Mark.

This is what the above online doc says :

quote
Set to false if Tomcat should not read any additional request body data for aborted 
uploads and instead abort the client connection. This setting is used in the following 
situations:


* the size of the request body is larger than the maxPostSize configured in 
the connector
* the size limit of a MultiPart upload is reached
* the servlet sets the response status to 413 (Request Entity Too Large)

Not reading the additional data will free the request processing thread more quickly. 
Unfortunately most HTTP clients will not read the response in case they can not write the 
full request.


The default is true, so additional data is being read.
unquote

It still seems to leave open the question as to what the size limit of a MultiPart 
upload means exactly.  Under Tomcat 7, is this the maxPostSize even for multipart POSTs, 
or is this settable somewhere else ?
Also, the servlet sets the response status to 413 seems to imply that the servlet can 
detect the size of the POST.  But does it know if before the client has finished posting ?


Is there a detailed description somewhere of how POSTs are handled ?


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



Re: How to prevent/abort the processing of the multipart request body?

2011-03-14 Thread Mark Thomas
On 14/03/2011 14:41, André Warnier wrote:
 It still seems to leave open the question as to what the size limit of
 a MultiPart upload means exactly.

That is defined by the Servlet 3.0 specification.

 Under Tomcat 7, is this the maxPostSize even for multipart POSTs, or is this 
 settable somewhere else ?

Again, maxPostSize plays *no* role in limiting multi-part uploads. It
only applies when processing POSTs with a content type of:
application/x-www-form-urlencoded

 Also, the servlet sets the response status to 413 seems to imply that
 the servlet can detect the size of the POST.  But does it know if before
 the client has finished posting ?

That would be the content-length header on the request.

 Is there a detailed description somewhere of how POSTs are handled ?

The Servlet 3.0 spec. Or of you want the implementation detail then the
source code is always available.

Mark

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



Form Authentication Illegal Characters

2011-03-14 Thread beau.hutcheson
Hello All:

I am using Tomcat 6.0.26. My application has a context.xml file that
defines an org.apache.catalina.authenticator.FormAuthenticator

Valve and an org.apache.catalina.realm.DataSourceRealm Realm which I use
for authentication.

My login page functions in typical FormAuthentication manner by passing
the j_username and j_password parameters to j_security_check

 

Currently, authentication fails if the character # (pound sign) is
contained within a username. Has anybody come across this limitation? I
am working with another system that stores all @ symbols as # signs, so
the likely hood of someone using an email address as their username is
good.

 

When I query my USERS table directly, I can locate any username that has
a # sign in it, so it seems that this is a tomcat related issue.

 

Just wanted to see if someone has experienced this and if there is a
solution/workaround for this.

Thanks, 

Beau

 



Populating Oracle v$session.program from Tomcat Context.xml

2011-03-14 Thread Dan
Hello all...

We have some working tomcat 6 instances that we'd like to identify by
querying the v$session.program field the oracle database they connect
to. While there are no errors on startup for the tomcat instance, and
we can connect to the database, nothing gets populated in v$session.
This functionality seems to work for the oracle thin driver, but when
I try using OCI nothing happens. The original field values persist.
I've also tried the module and client_info fields, also with no luck.

Here’s a sample from my resource block minus the extra stuff.

Resource name=jdbc/resource
auth=Container
type=javax.sql.DataSource
driverClassName=oracle.jdbc.OracleDriver
connectionProperties=v$session.program=MyApp;
url=jdbc:oracle:oci:@MyService/

I’ve posted this question to the oracle support forums with no luck,
but I’m assuming more people here are running oracle than people there
running tomcat. Any help would be greatly appreciated.

Thanks,

Dan

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



Re: How to prevent/abort the processing of the multipart request body?

2011-03-14 Thread André Warnier

Mark Thomas wrote:

On 14/03/2011 14:41, André Warnier wrote:

It still seems to leave open the question as to what the size limit of
a MultiPart upload means exactly.


That is defined by the Servlet 3.0 specification.


Is it ?

(I couldn't find it there)


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



Re: Performance 5.5 vs 6 vs 7

2011-03-14 Thread Tony Anecito
Hi Peter,

Thanks for your comments. I am using 1Gb ethernet.

My loopback testing included the motherboard network circuitry,  TCP/IP stack, 
OS, CPU and client and Tomcat App code. The best I got for a single request 
round trip that reused the http connection was 600 microseconds. As I added 
more 
threads running on the client sending requests it got slower.
When not using loopback I got around 1.2msec so the extra components included 
my 
1Gb switch and 1Gb router.

When I ran the client from my laptop on the network that had 1Gb ethernet 
support I got over 2msec.

I googled on the internet and I was seeing 2msec as the fastest people were 
saying for a network card even one with a built-in CPU.

I would love to eliminate the network portion from the path and go directly 
from 
client to Tomcat to see what Tomcat truely can do.

Any recommendations are appreciated. I did move on to other projects since I 
could not think how more timing info.

Regards,
-Tony



- Original Message 
From: Peter Crowther peter.crowt...@melandra.com
To: Tomcat Users List users@tomcat.apache.org
Sent: Mon, March 14, 2011 1:12:12 AM
Subject: Re: Performance 5.5 vs 6 vs 7

On 13 March 2011 21:01, Tony Anecito adanec...@yahoo.com wrote:

 As someone mentioned the network can imit you. If your bandwidth
 utilization is
 at 60% or over you are in trouble since collisions start to become a
 serious
 issue.

 Collisions may or may not be an issue, depending on the exact mode of
operation of the congested network link.

Collisions are a feature of the original Ethernet.  They're still an issue
on many Ethernets, but there are provisos even here.  If your switch does
store-and-forward, or you simply have a switched network and all the traffic
is between two stations, then collisions are relatively unlikely and the
Ethernet usage can go considerably higher than 60% before collisions and
retries start to become significant.  Sure, if you're on wireless or using
an old 10baseT or Cheapernet hub, 60% is about the knee in the curve.  But
I'd be a little surprised if Dave were using such ancient technology for a
critical piece of infrastructure such as this server :-).

Point-to-point links, such as most broadband connections, do not suffer from
collisions as the routers at each end store and forward traffic across the
link.  That said, by the time you get to 80% usage then each packet is
typically going to have to queue behind several others.  Even if this only
adds a few milliseconds of latency each time, it builds up when you multiply
it by the TCP 3-way handshake, 4-way FIN/ACK sequence, plus any data you're
transferring.

Dave, could you give us any more information about your network?  What is
the piece that's at 80% utilisation when you see the trouble?  Is it a
point-to-point connection, or an Ethernet LAN, or what?  If it's Ethernet,
what hardware are you using for connection?

Tony - I also don't believe 2ms is the best you can get on Ethernet.  If it
was, most big machine rooms would have silted up with network traffic long
ago ;-).  It depends on what network technology you're using.  For example,
gigabit Ethernet latencies are considerably lower than good ol' 10 meg.
What link speeds do you have to your router?  100 Mbit/s?

- Peter





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



Re: Populating Oracle v$session.program from Tomcat Context.xml

2011-03-14 Thread chris derham
 We have some working tomcat 6 instances that we'd like to identify


Can you use the combination of machine and schema name to identify the
instance? You didn't detail your environment, but if you have a cluster,
then the machine name would uniquely identify the instance. If you have
multiple different instances on the same machine, then surely the schema
name would allow you to identify which user it is? This covers all
possibilities unless you have different apps on the same machine in
different tomcat instances talking to the same schema.

Chris


Re: Populating Oracle v$session.program from Tomcat Context.xml

2011-03-14 Thread David Fisher
 Hello all...
 
 We have some working tomcat 6 instances that we'd like to identify by
 querying the v$session.program field the oracle database they connect
 to. While there are no errors on startup for the tomcat instance, and
 we can connect to the database, nothing gets populated in v$session.
 This functionality seems to work for the oracle thin driver, but when
 I try using OCI nothing happens. The original field values persist.
 I've also tried the module and client_info fields, also with no luck.
 
 Here’s a sample from my resource block minus the extra stuff.
 
 Resource name=jdbc/resource
auth=Container
type=javax.sql.DataSource
driverClassName=oracle.jdbc.OracleDriver
connectionProperties=v$session.program=MyApp;
url=jdbc:oracle:oci:@MyService/
 
 I’ve posted this question to the oracle support forums with no luck,
 but I’m assuming more people here are running oracle than people there
 running tomcat. Any help would be greatly appreciated.

We've used both OCI from Fortran and Thin Drivers from Java for a long time.

As far as whether V$SESSION.PROGRAM is filled. It is not consistent for the 
Thin Driver, it depends on proper matching of the thin driver version with the 
Oracle. For example version 9 JDBC does not populate PROGRAM on Oracle 8 
database.

I have never seen the OCI set the PROGRAM value, but then we have been using 
the version 6 driver (code is from the early 90s). We are upgrading to Oracle 
11 and I still haven't ever seen the OCI driver populate PROGRAM.

So, I am also interested.

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



Re: Form Authentication Illegal Characters

2011-03-14 Thread Konstantin Kolinko
2011/3/14  beau.hutche...@thomsonreuters.com:
 Hello All:

 I am using Tomcat 6.0.26. My application has a context.xml file that
 defines an org.apache.catalina.authenticator.FormAuthenticator

 Valve and an org.apache.catalina.realm.DataSourceRealm Realm which I use
 for authentication.

 My login page functions in typical FormAuthentication manner by passing
 the j_username and j_password parameters to j_security_check



 Currently, authentication fails if the character # (pound sign) is
 contained within a username. Has anybody come across this limitation? I

I do not think that there is such a limitation.

I would suggest you to try debugging it,
http://wiki.apache.org/tomcat/FAQ/Developing#Debugging

And an update to the latest 6.0.32 should not hurt.

Best regards,
Konstantin Kolinko

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



Re: Populating Oracle v$session.program from Tomcat Context.xml

2011-03-14 Thread Dan
On Mon, Mar 14, 2011 at 10:57 AM, chris derham ch...@derham.me.uk wrote:
 We have some working tomcat 6 instances that we'd like to identify


 Can you use the combination of machine and schema name to identify the
 instance? You didn't detail your environment, but if you have a cluster,
 then the machine name would uniquely identify the instance. If you have
 multiple different instances on the same machine, then surely the schema
 name would allow you to identify which user it is? This covers all
 possibilities unless you have different apps on the same machine in
 different tomcat instances talking to the same schema.

 Chris


We are running all of our web-applications from two machines, and they
all use the same schema/username, so unfortunately I need the program,
client_info, module, etc field to identify them.

We are running a RAC, and I'm querying gv$session which should get me
all cluster member connections.

As David said, this does work with the thin driver, but I need the
service/load balancing functionality from OCI. Any more suggestions
are welcome!

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



[OT] Followup on 32-bit versus 64-bit performance discussion(s)

2011-03-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

All,

I've been thinking about the recent discussion(s) about 32-bit versus
64-bit performance on 64-bit hardware and I have a simple question:
what's the best deployment strategy for a Java webapp that doesn't
require *huge* amounts of memory, yet wants to maybe use more than ~1.5GiB?

Sine pretty much all current hardware is 64-bit, both 64-bit OS and
64-bit JVM are options. If running on a 32-bit OS, only 32-bit JVM is an
option. So the options are as follows:

1. 32-bit OS, 32-bit JVM
Pros: runs fast
Cons: OS can access large amount of memory, but JVM can only access
  ~1.5GiB

2. 64-bit OS, 32-bit JVM
Pros: OS runs somewhat slower, but JVM gets access to a bigger heap(?)
Cons: Cannot use *huge* heaps

3. 64-bit OS, 64-bit JVM
Pros: Access to obscene amounts of memory
Cons: Some slower performance for everything

Do I have that right? Specifically, can a 32-bit JVM on a 64-bit OS
allocate a larger heap than a 32-bit JVM on a 32-bit OS?

We are going into a production upgrade cycle and I'd like to plan for
the OS type: if we get no benefit from running a 64-bit OS then I won't
bother installing one.

Thanks,
- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1+Sc4ACgkQ9CaO5/Lv0PAnogCgnrDRzF7rvSNMP+FzCm9dNR5I
//EAn2X5OpI3qqvhxaIeRw61JIRvmqq8
=t307
-END PGP SIGNATURE-

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



Re: [OT] Followup on 32-bit versus 64-bit performance discussion(s)

2011-03-14 Thread David kerber

On 3/14/2011 1:01 PM, Christopher Schultz wrote:

...


We are going into a production upgrade cycle and I'd like to plan for
the OS type: if we get no benefit from running a 64-bit OS then I won't
bother installing one.


If you're using windows server machines, Server 2008 R2 (and maybe 
Server 2008 original) is 64-bit only.  Older windows server versions 
come in both, and Linux of course has a choice.


D

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



Re: Performance 5.5 vs 6 vs 7

2011-03-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tony,

On 3/13/2011 5:01 PM, Tony Anecito wrote:
 Also, I have measured around 600microseconds for resonse time when using 
 localhost and running the client on the same server as Tomcat but that was 
 still 
 going through the network card om by motherboard.

If you really were using localhost, I suspect your NIC did not
participate in the conversation.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1+T48ACgkQ9CaO5/Lv0PAHvgCgkMaYJQgto4WgituoxS7Dobog
S9oAoJPVvmoEZ9iRHLA+O3ToOkkEeQwM
=50hY
-END PGP SIGNATURE-

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



Re: [OT] Followup on 32-bit versus 64-bit performance discussion(s)

2011-03-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David,

On 3/14/2011 1:22 PM, David kerber wrote:
 On 3/14/2011 1:01 PM, Christopher Schultz wrote:
 
 ...
 
 We are going into a production upgrade cycle and I'd like to plan for
 the OS type: if we get no benefit from running a 64-bit OS then I won't
 bother installing one.
 
 If you're using windows server machines, Server 2008 R2 (and maybe
 Server 2008 original) is 64-bit only.  Older windows server versions
 come in both, and Linux of course has a choice.

I should have mentioned, we are in a Linux environment, so we have lots
of options. ;)

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1+UOgACgkQ9CaO5/Lv0PBWhgCfSVvpenkOypWknzJAOYZfYflb
x+UAn15NpOmuizWKlo3hPTaOL5Rzzelt
=B4k2
-END PGP SIGNATURE-

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



Re: Form Authentication Illegal Characters

2011-03-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Beau,

On 3/14/2011 10:57 AM, beau.hutche...@thomsonreuters.com wrote:
 Currently, authentication fails if the character # (pound sign) is
 contained within a username.

Define fails.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1+UUgACgkQ9CaO5/Lv0PAA7gCfedxpdkMLJ6lYFntVtO8pq6Wa
GTMAn3BUQX2qpk32vKGY6miomFw9KuDQ
=jAGN
-END PGP SIGNATURE-

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



Re: [OT] Followup on 32-bit versus 64-bit performance discussion(s)

2011-03-14 Thread David kerber

On 3/14/2011 1:31 PM, Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David,

On 3/14/2011 1:22 PM, David kerber wrote:

On 3/14/2011 1:01 PM, Christopher Schultz wrote:

...


We are going into a production upgrade cycle and I'd like to plan for
the OS type: if we get no benefit from running a 64-bit OS then I won't
bother installing one.


If you're using windows server machines, Server 2008 R2 (and maybe
Server 2008 original) is 64-bit only.  Older windows server versions
come in both, and Linux of course has a choice.


I should have mentioned, we are in a Linux environment, so we have lots
of options. ;)


Lucky you; I wish I could say the same...

D

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



Re: How to prevent/abort the processing of the multipart request body?

2011-03-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mark,

On 3/14/2011 10:47 AM, Mark Thomas wrote:
 On 14/03/2011 14:41, André Warnier wrote:
 It still seems to leave open the question as to what the size limit of
 a MultiPart upload means exactly.
 
 That is defined by the Servlet 3.0 specification.
 
 Under Tomcat 7, is this the maxPostSize even for multipart POSTs, or is this 
 settable somewhere else ?
 
 Again, maxPostSize plays *no* role in limiting multi-part uploads. It
 only applies when processing POSTs with a content type of:
 application/x-www-form-urlencoded
 
 Also, the servlet sets the response status to 413 seems to imply that
 the servlet can detect the size of the POST.  But does it know if before
 the client has finished posting ?
 
 That would be the content-length header on the request.

If there is no request content-length, is the amount of data uploaded to
the server ever checked against this same limit?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1+UosACgkQ9CaO5/Lv0PDSpwCfXL9NuOo9llEFfdz0xAr/jHq2
AD0An3NwQj04mA1jb6JoYSimUkmWEUFm
=gW+d
-END PGP SIGNATURE-

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



Re: How to prevent/abort the processing of the multipart request body?

2011-03-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

André,

On 3/14/2011 11:19 AM, André Warnier wrote:
 Mark Thomas wrote:
 On 14/03/2011 14:41, André Warnier wrote:
 It still seems to leave open the question as to what the size limit of
 a MultiPart upload means exactly.

 That is defined by the Servlet 3.0 specification.
 
 Is it ?
 
 (I couldn't find it there)

Look for the multipart-config or @MultipartConfig documentation. There
are attributes to configure both the maximum entity size (the entire
message) and individual part sizes.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1+U6cACgkQ9CaO5/Lv0PCBgACdFF8YB8XAJjk+583LWvimA3/h
TkcAn2LJBivPJWaVg+3cBPN7HG0ZIEms
=bNo5
-END PGP SIGNATURE-

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



Re: [OT] Followup on 32-bit versus 64-bit performance discussion(s)

2011-03-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David,

On 3/14/2011 1:36 PM, David kerber wrote:
 On 3/14/2011 1:31 PM, Christopher Schultz wrote:

 I should have mentioned, we are in a Linux environment, so we have lots
 of options. ;)
 
 Lucky you; I wish I could say the same...

You should lobby to virtualize your infrastructure on top of some kind
of Linux-based virtualization platform. Then you can still be running
on Windows but also have some ... other options ;)

I would suggest the other way around if you wanted to operate in a Linux
environment, but if the idea is to improve stability, then running Linux
on top of Windows isn't exactly recommended technique.

I had always heard that Microsoft SQL Server was a really good RDBMS.
It's just too bad it has to run on Windows.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1+VDYACgkQ9CaO5/Lv0PBD+wCfQBK7R2hi6tcsxYaIjNTMYQsR
jlkAnijh8Tmk7JEX8GLsfzFkf/4qc8Ck
=emTF
-END PGP SIGNATURE-

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



Re: [OT] Migrated from 6.0.29 to 7.0.10, Now I get INFO: TLD skipped. URI: http://struts.apache.org/tags-bean is already defined

2011-03-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Brian,

On 3/12/2011 6:46 PM, Brian Braun wrote:
 Well, first of all, I'm using the 2004 Struts version. Why didn't I upgraded
 that over all these years? Because in the first years I thought I was going
 to migrate to JSF, and recetly I'm thinking that maybe I should go with
 Spring. For that reason, I didn't want to invest time upgrading to the most
 recent versions of Struts, and I got stuck on time. I usually adopt new
 version early (as I have done with Struts 7.0.11), but with Struts... that
 happened.

I know the feeling. We are still using Struts 1.3... making the upgrade
to 2.x is ... non-trivial.

 I Still haven't decided between JSF and Spring. I know they are not the same
 thing, that Spring brings more that a presentation and controller, but in
 the presentation area I don't know if I should go with JSF (which is the new
 standard, right?), or with Spring's MVC. But certainly I'm obsolete using
 2004's Struts.

I'm sure you will get a lot of opinions on all that. :)

Struts 1.3 is still fine if it's meeting your needs. S2 is just s
much better for so many things, it's painful not have have switched yet.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1+VRIACgkQ9CaO5/Lv0PCQ8ACgt5slDYZzdslZeNM0d+kpW1XD
O00AoLhYBzEqgJdk6pt1WIOCAI9k4d4N
=al4T
-END PGP SIGNATURE-

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



RE: Form Authentication Illegal Characters - SOLVED

2011-03-14 Thread beau.hutcheson
Thanks for the response yet,

There is no limitation regarding special characters.
I just have to make sure and encode my query string properly.

By fails I meant that the app gets forwarded to the value set in my
form-error-page tag.

Thanks,

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Monday, March 14, 2011 1:33 PM
To: Tomcat Users List
Subject: Re: Form Authentication Illegal Characters

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Beau,

On 3/14/2011 10:57 AM, beau.hutche...@thomsonreuters.com wrote:
 Currently, authentication fails if the character # (pound sign) is
 contained within a username.

Define fails.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1+UUgACgkQ9CaO5/Lv0PAA7gCfedxpdkMLJ6lYFntVtO8pq6Wa
GTMAn3BUQX2qpk32vKGY6miomFw9KuDQ
=jAGN
-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



RE: SOLVED - Form Authentication Illegal Characters

2011-03-14 Thread beau.hutcheson
There is no limitation regarding special characters.
I just have to make sure and encode my query string properly.

Thanks,

-Original Message-
From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] 
Sent: Monday, March 14, 2011 12:22 PM
To: Tomcat Users List
Subject: Re: Form Authentication Illegal Characters

2011/3/14  beau.hutche...@thomsonreuters.com:
 Hello All:

 I am using Tomcat 6.0.26. My application has a context.xml file that
 defines an org.apache.catalina.authenticator.FormAuthenticator

 Valve and an org.apache.catalina.realm.DataSourceRealm Realm which I
use
 for authentication.

 My login page functions in typical FormAuthentication manner by
passing
 the j_username and j_password parameters to j_security_check



 Currently, authentication fails if the character # (pound sign) is
 contained within a username. Has anybody come across this limitation?
I

I do not think that there is such a limitation.

I would suggest you to try debugging it,
http://wiki.apache.org/tomcat/FAQ/Developing#Debugging

And an update to the latest 6.0.32 should not hurt.

Best regards,
Konstantin Kolinko

-
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: JSP class size increase in Tomcat 7

2011-03-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jess,

On 3/12/2011 11:16 AM, Jess Holle wrote:
 Clearly there's normally extra expense for debug/smap information,
 though it's not clear to me whether this works against the 65K limit or
 not.

SMAP information is stored separately from the code, so it doesn't count
against the 65K per-method limit.

There appears to be a 2^32 - 6 limit for the length of the SMAP debug
extension attribute, though.

 Note the last 2 results are essentially identical (I didn't compare byte
 counts).

What about disabling SMAP generation in the other cases?

 Yet when I try this last configuration with the JSP that goes over 65K
 it fails with JDT and succeeds with javac.

So it's the Java compiler that fails, not the JSP compiler? That is, JSP
- - Java looks fine, but Java - bytecode fails?

I'm still surprised that the Java methods are even on the brink of
exceeding the 65K method limit.

If it's the Java compiler failing, then it could be that javac just
generates tighter bytecode than JDT. If it's the difference between
65530 and 65536 bytes, then one will succeed while the other one fails.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1+WR8ACgkQ9CaO5/Lv0PDq0wCeNRnPfbW3Tywo5FcAdC4Fqcsp
t2AAn0M4llRHGfraSaZZAgqIU6mU8ezV
=CcIX
-END PGP SIGNATURE-

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



Re: Performance 5.5 vs 6 vs 7

2011-03-14 Thread Tony Anecito
From the definitions and discussions on google regarding loopback interface 
(localhost) it will go through the nic card for Windows unless you install a 
loopback adaptor. For Linux you do not need a nic card.

I was using windows and thus it used my nic card.

-Tony



- Original Message 
From: Christopher Schultz ch...@christopherschultz.net
To: Tomcat Users List users@tomcat.apache.org
Sent: Mon, March 14, 2011 11:25:35 AM
Subject: Re: Performance 5.5 vs 6 vs 7

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tony,

On 3/13/2011 5:01 PM, Tony Anecito wrote:
 Also, I have measured around 600microseconds for resonse time when using 
 localhost and running the client on the same server as Tomcat but that was 
still 

 going through the network card om by motherboard.

If you really were using localhost, I suspect your NIC did not
participate in the conversation.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1+T48ACgkQ9CaO5/Lv0PAHvgCgkMaYJQgto4WgituoxS7Dobog
S9oAoJPVvmoEZ9iRHLA+O3ToOkkEeQwM
=50hY
-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



Re: [OT] Followup on 32-bit versus 64-bit performance discussion(s)

2011-03-14 Thread Leon Rosenberg
I'm sorry, I probably missed something, but why should 64 bit app on
64 bit os on 64 bit cpu be slower as 32 bit analog?

regards
Leon

On Mon, Mar 14, 2011 at 6:45 PM, Christopher Schultz
ch...@christopherschultz.net wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 David,

 On 3/14/2011 1:36 PM, David kerber wrote:
 On 3/14/2011 1:31 PM, Christopher Schultz wrote:

 I should have mentioned, we are in a Linux environment, so we have lots
 of options. ;)

 Lucky you; I wish I could say the same...

 You should lobby to virtualize your infrastructure on top of some kind
 of Linux-based virtualization platform. Then you can still be running
 on Windows but also have some ... other options ;)

 I would suggest the other way around if you wanted to operate in a Linux
 environment, but if the idea is to improve stability, then running Linux
 on top of Windows isn't exactly recommended technique.

 I had always heard that Microsoft SQL Server was a really good RDBMS.
 It's just too bad it has to run on Windows.

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAk1+VDYACgkQ9CaO5/Lv0PBD+wCfQBK7R2hi6tcsxYaIjNTMYQsR
 jlkAnijh8Tmk7JEX8GLsfzFkf/4qc8Ck
 =emTF
 -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



axis

2011-03-14 Thread Robert.Jenkin
Does tomcat include the apache axis or do I have to download and install 
separately?


Sincerely,

Robert Jenkin
Surecomp Services, Inc.
2 Hudson Place, 4th Floor
Hoboken, NJ 07030
Skype: robert.jenkin
Office: 201 217 1437 | Direct: 201 716 1219 | Mobile: 908 251 0537
http://www.Surecomp.com


This mail was sent via Mail-SeCure System.




Re: OT: a good jmx browser?

2011-03-14 Thread Leon Rosenberg
thanx guys.
Leon

On Mon, Mar 14, 2011 at 11:34 AM, Mikolaj Rydzewski m...@ceti.pl wrote:

 On Mon, 14 Mar 2011 11:28:58 +0100, Leon Rosenberg
 rosenberg.l...@gmail.com wrote:

 sorry for the off-topic-ness, but what jmx browser are you guys using if
 any.
 By jmx browser i mean something with a GUI where I can enter my
 server's adress and click through the tree of available values.

 jconsole

 --
 Mikolaj Rydzewski m...@ceti.pl

 -
 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: [OT] Followup on 32-bit versus 64-bit performance discussion(s)

2011-03-14 Thread Justin Randall
In general, it is technically possible for a 32-bit application to perform 
faster than a 64-bit application when running on a 64-bit CPU because of CPU 
memory cache behaviour.

64-bit memory addresses occupy more space within a single cache line and can 
result in added memory cache misses (cache lines filled more quickly) which 
require additional loads from real memory into CPU registers, effectively 
slowing down the performance of an application.


Sent from my BlackBerry device

-Original Message-
From: Leon Rosenberg rosenberg.l...@gmail.com
Date: Mon, 14 Mar 2011 20:33:21 
To: Tomcat Users Listusers@tomcat.apache.org
Reply-To: Tomcat Users List users@tomcat.apache.org
Subject: Re: [OT] Followup on 32-bit versus 64-bit performance discussion(s)

I'm sorry, I probably missed something, but why should 64 bit app on
64 bit os on 64 bit cpu be slower as 32 bit analog?

regards
Leon

On Mon, Mar 14, 2011 at 6:45 PM, Christopher Schultz
ch...@christopherschultz.net wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 David,

 On 3/14/2011 1:36 PM, David kerber wrote:
 On 3/14/2011 1:31 PM, Christopher Schultz wrote:

 I should have mentioned, we are in a Linux environment, so we have lots
 of options. ;)

 Lucky you; I wish I could say the same...

 You should lobby to virtualize your infrastructure on top of some kind
 of Linux-based virtualization platform. Then you can still be running
 on Windows but also have some ... other options ;)

 I would suggest the other way around if you wanted to operate in a Linux
 environment, but if the idea is to improve stability, then running Linux
 on top of Windows isn't exactly recommended technique.

 I had always heard that Microsoft SQL Server was a really good RDBMS.
 It's just too bad it has to run on Windows.

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAk1+VDYACgkQ9CaO5/Lv0PBD+wCfQBK7R2hi6tcsxYaIjNTMYQsR
 jlkAnijh8Tmk7JEX8GLsfzFkf/4qc8Ck
 =emTF
 -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




Re: OT: a good jmx browser?

2011-03-14 Thread Jess Holle
Or for a somewhat better UI and more capability overall, VisualVM.  
[Note that VisualVM's MBean tree is via a plug-in, so you need to 
install the plug-in before you get this functionality.]


On 3/14/2011 2:42 PM, Leon Rosenberg wrote:

thanx guys.
Leon

On Mon, Mar 14, 2011 at 11:34 AM, Mikolaj Rydzewskim...@ceti.pl  wrote:

On Mon, 14 Mar 2011 11:28:58 +0100, Leon Rosenberg
rosenberg.l...@gmail.com  wrote:


sorry for the off-topic-ness, but what jmx browser are you guys using if
any.
By jmx browser i mean something with a GUI where I can enter my
server's adress and click through the tree of available values.

jconsole

--
Mikolaj Rydzewskim...@ceti.pl

-
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: tools.jar dependency with Tomcat 7.0.10?

2011-03-14 Thread Mathew Samuel
Hi,

You guys (Mark and Charles) were correct. Looks like there was an old reference 
to tool.jar in a classpath definition. Some how moving to Tomcat 7.0.10 (from 
the 6 stream) brought this issue to light for us. Anyways, found the reference 
and removed it and it works fine now without error. Sorry for the trouble.

Cheers,
Matt



 From: Mathew Samuel [mailto:mathew.sam...@entrust.com]
 Subject: RE: tools.jar dependency with Tomcat 7.0.10?

 Here is the full stack trace:

Nothing terribly exciting there.  Can you tell us how you start Tomcat?  If 
you're using the startup.sh, it should display the classpath, which is of 
considerable interest.

 - Chuck


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



Re: OT: a good jmx browser?

2011-03-14 Thread Jess Holle
If you use a recent version of Java 6 both jconsole and VisualVM come 
with the JDK (at least in most cases -- VisualVM does not run on or come 
with IBM's JVM).


On 3/14/2011 2:55 PM, Jess Holle wrote:
Or for a somewhat better UI and more capability overall, VisualVM.  
[Note that VisualVM's MBean tree is via a plug-in, so you need to 
install the plug-in before you get this functionality.]


On 3/14/2011 2:42 PM, Leon Rosenberg wrote:

thanx guys.
Leon

On Mon, Mar 14, 2011 at 11:34 AM, Mikolaj Rydzewskim...@ceti.pl  
wrote:

On Mon, 14 Mar 2011 11:28:58 +0100, Leon Rosenberg
rosenberg.l...@gmail.com  wrote:

sorry for the off-topic-ness, but what jmx browser are you guys 
using if

any.
By jmx browser i mean something with a GUI where I can enter my
server's adress and click through the tree of available values.

jconsole

--
Mikolaj Rydzewskim...@ceti.pl

-
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: Populating Oracle v$session.program from Tomcat Context.xml

2011-03-14 Thread Dan
On Mon, Mar 14, 2011 at 11:25 AM, Dan random.da...@gmail.com wrote:
 On Mon, Mar 14, 2011 at 10:57 AM, chris derham ch...@derham.me.uk wrote:
 We have some working tomcat 6 instances that we'd like to identify


 Can you use the combination of machine and schema name to identify the
 instance? You didn't detail your environment, but if you have a cluster,
 then the machine name would uniquely identify the instance. If you have
 multiple different instances on the same machine, then surely the schema
 name would allow you to identify which user it is? This covers all
 possibilities unless you have different apps on the same machine in
 different tomcat instances talking to the same schema.

 Chris


 We are running all of our web-applications from two machines, and they
 all use the same schema/username, so unfortunately I need the program,
 client_info, module, etc field to identify them.

 We are running a RAC, and I'm querying gv$session which should get me
 all cluster member connections.

 As David said, this does work with the thin driver, but I need the
 service/load balancing functionality from OCI. Any more suggestions
 are welcome!


Does anyone else have any additional thoughts on this? I'd sure
appreciate more input.

TIA,

Dan

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



Re: axis

2011-03-14 Thread Thomas Freitag
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello Robert,

On 03/14/2011 08:38 PM, robert.jen...@surecomp.com wrote:
 Does tomcat include the apache axis or do I have to download and install 
 separately?

Tomcat does not include axis.

Regards,
- -- 
Thomas Freitag
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk1+exkACgkQGE5pHr3PKuXeJACdH+JWEQ1WrEU9FqhqhUazN4h0
98UAnifQ/XBilD2v3+wgTOfwzsAPhkwS
=8QrY
-END PGP SIGNATURE-

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



Re: Urgent excepton: java.lang.reflect.InvocationTargetException

2011-03-14 Thread abhishek jain
hi,
Whenever i call the url which calls the code, i get this exception. is that
what u meant to ask? Do u need code snippets.

thanks
abhishek

On Tue, Mar 15, 2011 at 2:06 AM, Dave Newton davelnew...@gmail.com wrote:

 Under what circumstances? I don't see how we're supposed to be able to
 help.

 Dave

 On Mon, Mar 14, 2011 at 4:26 PM, abhishek jain
 abhishek.netj...@gmail.com wrote:
  Hi friends,
  I am on production and getting this error:
  can anyone help me solve, i am using hte hibernate 3, tomcat 5.5 ,
 struts2,
  linux centos 5.x.
 
  java.lang.reflect.InvocationTargetException
 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 
  
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 java.lang.reflect.Method.invoke(Method.java:597)
 
  
 com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:441)
 
  
 com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:280)
 
  
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:243)
 
  
 com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:165)
 
  
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
 
  
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
 
  
 com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:252)
 
  
 org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
 
  
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
 
  
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
 
  
 com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)
 
  
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
 
  
 com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
 
  
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
 
  
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
 
  
 com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
 
  
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
 
  
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
 
  
 com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:179)
 
  
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
 
  
 org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)
 
  
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
 
  
 org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)
 
  
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
 
  
 org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)
 
  
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
 
  
 com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)
 
  
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
 
  
 com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:130)
 
  
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
 
  
 org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)
 
  
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
 
  
 com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)
 
  
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
 
  
 com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)
 
  
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
 
  
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
 
  
 com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:165)
 
  
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
 
  
 

Read JSR 045 SMAP Files Produced by Jasper

2011-03-14 Thread Eric Sheridan
List,

I am developing an application that programmatically leverages the
Apache Jasper JspC facilities to translate JSP source files into their
Java (Servlet) equivalents. For this application, I need to be able to
translate a Java line number back to the original JSP line number. I
have JspC producing SMAP files which should contain most/all the
information I need. However, I am having trouble finding any existing
open source libraries that have the ability to parse JSR 045 SMAP files.
I was hoping to come across an open source library that offered API such as:

SmapParser parser = new SmapParser(inputStream);
Smap smap = parser.parse();
int jspLineNumber = smap.getJspLineNumber(javaLineNumber);

Does any such code exist? If so, would you mind pointing me to
it? If not, any alternative solutions to looking up the original JSP
line number given that I am working with Apache Jasper?

-Eric

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



Re: How to prevent/abort the processing of the multipart request body?

2011-03-14 Thread markt
Christopher Schultz ch...@christopherschultz.net wrote:

If there is no request content-length, is the amount of data uploaded
to
the server ever checked against this same limit?



Yes, but Tomcat has to count the bytes as they are uploaded so the connection 
is dropped later.

Mark



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



Re: [OT] Followup on 32-bit versus 64-bit performance discussion(s)

2011-03-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Justin,

On 3/14/2011 3:45 PM, Justin Randall wrote:
 In general, it is technically possible for a 32-bit application to
 perform faster than a 64-bit application when running on a 64-bit CPU
 because of CPU memory cache behaviour.

Also due to the amount of data that can be transferred at once across
the data paths to the CPU: 64-bit pointers simply take up more bandwidth
on those paths.

A 32-bit process, using 32-bit pointers, will enjoy a 2x speedup for
those types of data.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1+g+MACgkQ9CaO5/Lv0PB8DwCgqTO/v8DuSS4M8qKbAiGAMJch
bVoAoIdFUL3MM0TqBOFxWZfMp/+9s8At
=2ZPm
-END PGP SIGNATURE-

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



Re: Performance 5.5 vs 6 vs 7

2011-03-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tony,

On 3/14/2011 3:08 PM, Tony Anecito wrote:
From the definitions and discussions on google regarding loopback interface 
 (localhost) it will go through the nic card for Windows unless you install a 
 loopback adaptor. For Linux you do not need a nic card.
 
 I was using windows and thus it used my nic card.

Oh, I didn't realize that the Windows TCP/IP stack was that poorly
optimized.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1+hA8ACgkQ9CaO5/Lv0PD6rACdFyW/vYPubdDCYqU1VKqYCo85
mqkAoIRlwv/+UsBhUX/SxEGPwFejPdO0
=GxPR
-END PGP SIGNATURE-

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



Re: How to prevent/abort the processing of the multipart request body?

2011-03-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mark,

On 3/14/2011 5:01 PM, ma...@apache.org wrote:
 Christopher Schultz ch...@christopherschultz.net wrote:
 
 If there is no request content-length, is the amount of data uploaded
 to
 the server ever checked against this same limit?
 
 Yes, but Tomcat has to count the bytes as they are uploaded so the connection 
 is dropped later.

Of course. I was just checking to see if the limit was only checked
using the headers.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1+hdYACgkQ9CaO5/Lv0PDlIQCgwo39VG3whviTNbBvI9eZB+ZA
sHkAn20TMjtOyuWjJSZhcHksCbyBt13j
=tMup
-END PGP SIGNATURE-

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



Re: Tomcat as Windows service

2011-03-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Zbynek,

On 3/7/2011 3:34 AM, Zbynek Vavros wrote:
 Ok I switched to 7.0.8.
 
 Installed using package from
 http://mirror.fubra.com/ftp.apache.org/tomcat/tomcat-7/v7.0.8/bin/apache-tomcat-7.0.8.exe.
 
 Started either directly in services (changed from auto to manual) or using
 that small GUI application(//MS//).
 Yes I had checked Allow service to interact with desktop, unchecked now,
 no console window is diplayed when I start Tomcat at all !
 If I uncheck this how will I get console window?

Wait... do you want the console window or not? First you complained that
the window was showing and now you are complaining that it is not showing.

Or are you complaining that it is showing with no content?

If you want to see some output, check the server logs:

 -Djava.util.logging.config.file=C:\Program Files
 \Apache Software Foundation\Tomcat 7.0\conf\logging.properties

That file will contain the logging configuration. Standard output and
error should be configured to go to a specific file -- check the
settings using tomcat7w.exe.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1+h9AACgkQ9CaO5/Lv0PCsrgCfWyv7F4yxDGHlWWdBwzVEXt/k
QjUAn26ruZE+3cVsroQzg05bc5nLmqnk
=FfWg
-END PGP SIGNATURE-

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



Re: [OT] Followup on 32-bit versus 64-bit performance discussion(s)

2011-03-14 Thread Justin Randall
Indeed.

It really makes you wonder why caches and pipelines weren't scaled more 
proportionally.

At least we can appreciate better calling conventions.  :)

--Original Message--
From: Christopher Schultz
To: Tomcat Users List
ReplyTo: Tomcat Users List
Subject: Re: [OT] Followup on 32-bit versus 64-bit performance discussion(s)
Sent: Mar 14, 2011 17:08

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Justin,

On 3/14/2011 3:45 PM, Justin Randall wrote:
 In general, it is technically possible for a 32-bit application to
 perform faster than a 64-bit application when running on a 64-bit CPU
 because of CPU memory cache behaviour.

Also due to the amount of data that can be transferred at once across
the data paths to the CPU: 64-bit pointers simply take up more bandwidth
on those paths.

A 32-bit process, using 32-bit pointers, will enjoy a 2x speedup for
those types of data.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1+g+MACgkQ9CaO5/Lv0PB8DwCgqTO/v8DuSS4M8qKbAiGAMJch
bVoAoIdFUL3MM0TqBOFxWZfMp/+9s8At
=2ZPm
-END PGP SIGNATURE-

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




Sent from my BlackBerry device

What is the right way to redirect http to https with tomcat 7 ?

2011-03-14 Thread János Löbb
Hi,

I set up ssl using the JAVA_HOME/bin/keytool on OSX 10.6.6 - JSSE type 
configuration with a self-signed certificate.  Modified server.xml to include a 
connector:

Connector port=8443 protocol=org.apache.coyote.http11.Http11Protocol 
SSLEnabled=true
   maxThreads=150 scheme=https secure=true
keystoreFile=/Users/administrator/.keystore 
keystorePass=*
   clientAuth=false sslProtocol=TLS /

anything else is the default, out of box.  

Where should I configure and how that when I hit

http://localhost:8080

it should redirect to 

https://localhost:8443

??

That is I do not want it to be web app specific, I want to have this behavior 
by default.   I am not using httpd or mod_jk at this time and do not want to 
use if I can avoid them.

Should I also add SSLEngine=on ??


Thanks ahead,

János
P.S.  I looked the list from 2008 and see nothing in this regard.  
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Performance 5.5 vs 6 vs 7

2011-03-14 Thread Tony Anecito
I am not in the habit of defending Microsoft but the question is would you 
rather have hard coded functions or ones you dynamically put in?
Just saying something without seeing the actual code of what they did it is 
hard 
to say who as the most optimized code.

I will setup the test with the adaptor and see what the capacity of Tomcat 7 is 
using the Windows Loopback interface. I am hoping for better than the 600 
microseconds I saw without it.

I think DOS will beat everything today because size does matter (I do not miss 
the Osborne luggable). I feel the same way about 32-bit versus 64-bit java and 
OS on the same hardware. I was around during the early NT days and I really did 
not like it. But now big monolithic OS's are the trend. Writing code to fit on 
a 
single 1.4MB floppy or fit in 64K of memory is a lost art.

Best Regards,
-Tony


- Original Message 
From: Christopher Schultz ch...@christopherschultz.net
To: Tomcat Users List users@tomcat.apache.org
Sent: Mon, March 14, 2011 3:09:35 PM
Subject: Re: Performance 5.5 vs 6 vs 7

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tony,

On 3/14/2011 3:08 PM, Tony Anecito wrote:
From the definitions and discussions on google regarding loopback interface 
 (localhost) it will go through the nic card for Windows unless you install a 
 loopback adaptor. For Linux you do not need a nic card.
 
 I was using windows and thus it used my nic card.

Oh, I didn't realize that the Windows TCP/IP stack was that poorly
optimized.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1+hA8ACgkQ9CaO5/Lv0PD6rACdFyW/vYPubdDCYqU1VKqYCo85
mqkAoIRlwv/+UsBhUX/SxEGPwFejPdO0
=GxPR
-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



RE: Read JSR 045 SMAP Files Produced by Jasper

2011-03-14 Thread Martin Gainty

/* org.apache.jasper.JspCompilationContext implements either of  2 JSP 
Compilers in TC7  */
if (options.getCompiler() == null) {
jspCompiler = 
createCompiler(org.apache.jasper.compiler.JDTCompiler);
if (jspCompiler == null) {
jspCompiler = 
createCompiler(org.apache.jasper.compiler.AntCompiler);
}

 //JDTCompiler has JSR45 support here
 protected void generateClass(String[] smap)
 {

if (! options.isSmapSuppressed()) {
SmapUtil.installSmap(smap);
}
}

// AntCompiler has JSR45 Support
protected void generateClass(String[] smap)
   {
.
if (! options.isSmapSuppressed()) {
SmapUtil.installSmap(smap);
}
}

does this answer your question?

Martin 
__ 
Verzicht und Vertraulichkeitanmerkung
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.






 Date: Mon, 14 Mar 2011 16:53:34 -0400
 From: eshe...@gmail.com
 To: users@tomcat.apache.org
 Subject: Read JSR 045 SMAP Files Produced by Jasper
 
 List,
 
 I am developing an application that programmatically leverages the
 Apache Jasper JspC facilities to translate JSP source files into their
 Java (Servlet) equivalents. For this application, I need to be able to
 translate a Java line number back to the original JSP line number. I
 have JspC producing SMAP files which should contain most/all the
 information I need. However, I am having trouble finding any existing
 open source libraries that have the ability to parse JSR 045 SMAP files.
 I was hoping to come across an open source library that offered API such as:
 
 SmapParser parser = new SmapParser(inputStream);
 Smap smap = parser.parse();
 int jspLineNumber = smap.getJspLineNumber(javaLineNumber);
 
 Does any such code exist? If so, would you mind pointing me to
 it? If not, any alternative solutions to looking up the original JSP
 line number given that I am working with Apache Jasper?
 
 -Eric
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
  

Re: What is the right way to redirect http to https with tomcat 7 ?

2011-03-14 Thread Filip Hanik - Dev Lists

On 3/14/2011 3:46 PM, János Löbb wrote:

Hi,

I set up ssl using the JAVA_HOME/bin/keytool on OSX 10.6.6 - JSSE type 
configuration with a self-signed certificate.  Modified server.xml to include a 
connector:

 Connector port=8443 protocol=org.apache.coyote.http11.Http11Protocol 
SSLEnabled=true
maxThreads=150 scheme=https secure=true
keystoreFile=/Users/administrator/.keystore 
keystorePass=*
clientAuth=false sslProtocol=TLS /

anything else is the default, out of box.

Where should I configure and how that when I hit

http://localhost:8080

it should redirect to

https://localhost:8443


make sure your connector 8080 has redirectPort=8443 in it, then in 
tomcat.home/conf/web.xml define a constraint, transport/confidential

security-constraint
web-resource-collection
web-resource-nameEverything is https/web-resource-name
url-pattern/*/url-pattern
/web-resource-collection

user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint




??

That is I do not want it to be web app specific, I want to have this behavior 
by default.   I am not using httpd or mod_jk at this time and do not want to 
use if I can avoid them.

Should I also add SSLEngine=on ??


Thanks ahead,

János
P.S.  I looked the list from 2008 and see nothing in this regard.
-
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: Populating Oracle v$session.program from Tomcat Context.xml

2011-03-14 Thread David Fisher
 We have some working tomcat 6 instances that we'd like to identify
 
 
 Can you use the combination of machine and schema name to identify the
 instance? You didn't detail your environment, but if you have a cluster,
 then the machine name would uniquely identify the instance. If you have
 multiple different instances on the same machine, then surely the schema
 name would allow you to identify which user it is? This covers all
 possibilities unless you have different apps on the same machine in
 different tomcat instances talking to the same schema.
 
 Chris
 
 
 We are running all of our web-applications from two machines, and they
 all use the same schema/username, so unfortunately I need the program,
 client_info, module, etc field to identify them.
 
 We are running a RAC, and I'm querying gv$session which should get me
 all cluster member connections.
 
 As David said, this does work with the thin driver, but I need the
 service/load balancing functionality from OCI. Any more suggestions
 are welcome!
 
 
 Does anyone else have any additional thoughts on this? I'd sure
 appreciate more input.

I did some googling and I think that you will have to actually set this value 
from your code somehow.

This thread is found in multiple places: 
http://www.rhinocerus.net/forum/databases-oracle-misc/569644-setting-v-session-program.html
 a

The attribute is OCI_ATTR_MEMPOOL_APPNAME.

The package used is dbms_application_info.

Google jdbc api dbms_application_info and this link 
http://stackoverflow.com/questions/53379/using-dbms-application-info-with-jboss 
may help you ...

I do wonder if using module and action from V$session might be more appropriate 
and fine grained.

Regards,
Dave


 
 TIA,
 
 Dan
 
 -
 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: Populating Oracle v$session.program from Tomcat Context.xml

2011-03-14 Thread Martin Gainty





 Subject: Re: Populating Oracle v$session.program from Tomcat Context.xml
 From: dfis...@jmlafferty.com
 Date: Mon, 14 Mar 2011 18:08:53 -0700
 To: users@tomcat.apache.org
 
  We have some working tomcat 6 instances that we'd like to identify
  
  
  Can you use the combination of machine and schema name to identify the
  instance? You didn't detail your environment, but if you have a cluster,
  then the machine name would uniquely identify the instance. If you have
  multiple different instances on the same machine, then surely the schema
  name would allow you to identify which user it is? This covers all
  possibilities unless you have different apps on the same machine in
  different tomcat instances talking to the same schema.
  
  Chris
  
  
  We are running all of our web-applications from two machines, and they
  all use the same schema/username, so unfortunately I need the program,
  client_info, module, etc field to identify them.
  
  We are running a RAC, and I'm querying gv$session which should get me
  all cluster member connections.
  
  As David said, this does work with the thin driver, but I need the
  service/load balancing functionality from OCI. Any more suggestions
  are welcome!
  
  
  Does anyone else have any additional thoughts on this? I'd sure
  appreciate more input.
 
 I did some googling and I think that you will have to actually set this value 
 from your code somehow.
 
 This thread is found in multiple places: 
 http://www.rhinocerus.net/forum/databases-oracle-misc/569644-setting-v-session-program.html
  a
 
 The attribute is OCI_ATTR_MEMPOOL_APPNAME.
 
 The package used is dbms_application_info.
 
 Google jdbc api dbms_application_info and this link 
 http://stackoverflow.com/questions/53379/using-dbms-application-info-with-jboss
  may help you ...
 
 I do wonder if using module and action from V$session might be more 
 appropriate and fine grained.
 
 Regards,
 Dave

MGcontext.xml are for the most part static declrataions loaded at webapp 
initialisation 
MGso if i follow your path..read in the base attributes from Tomcat Context
MGlater when the webapp is loaded ..override Oracle specific attributes from 
Oracle V$session

MGfrom my experience you cannot call OCI from (thin) type4 JDBC Oracle Drivers
MGbe aware OCI loads native binaries (so and .a libs on unix) and dll on 
windows.. be prepared to make (Oracle) version specific calls for OCI functions
MGMartin-
 
  
  TIA,
  
  Dan
  
  -
  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: [OT] Followup on 32-bit versus 64-bit performance discussion(s)

2011-03-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Justin,

On 3/14/2011 5:44 PM, Justin Randall wrote:
 It really makes you wonder why caches and pipelines weren't scaled more 
 proportionally.

Not to mention memory sizes in general. We got a 2^32-fold increase in
addressable memory. Great. Where is my 128YiB SODIMM chip?

:p

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1+yPwACgkQ9CaO5/Lv0PAhsgCdHY3f9rQK0XMlubQGuzeqUGk8
WAEAn1i6E+quCSVoGHenIja18nLYdepz
=QWHS
-END PGP SIGNATURE-

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



RE: [OT] Followup on 32-bit versus 64-bit performance discussion(s)

2011-03-14 Thread Caldarale, Charles R
 From: Leon Rosenberg [mailto:rosenberg.l...@gmail.com] 
 Subject: Re: [OT] Followup on 32-bit versus 64-bit performance discussion(s)

 I'm sorry, I probably missed something, but why should 64 bit app on
 64 bit os on 64 bit cpu be slower as 32 bit analog?

Because all the data items are bigger, or have unused slack space associated 
with them, in a 64-bit JVM.  Consequently, the number of actually useful bits 
transferred between the CPU scheduler, the operand caches, and main memory is 
less per cycle.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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



Tomcat 7 Per Instance Memory Footprint in Hello World App.

2011-03-14 Thread Noah Cutler
Hi,

can find nothing on the net re: this apparently basic question.

Given a simple hello world app, what is the @memory footprint per
instance in Tomcat 7?

Just trying to assess options visa vi single instance + multiple virtual
hosts vs. multiple instance single host (preferred option as each client
app is isolated from the other).

TIA and looking forward to using Tomcat 7!





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