RE: Custom Realm development: can't locate javax.management package

2005-04-17 Thread Guy Katz
its a jmx class. probably in jmx.jar -Original Message- From: alebu [mailto:[EMAIL PROTECTED] Sent: Monday, April 18, 2005 9:46 AM To: tomcat-user@jakarta.apache.org Subject: Custom Realm development: can't locate javax.management package Hi, I was trying to develop my own Realm extendin

Custom Realm development: can't locate javax.management package

2005-04-17 Thread alebu
Hi, I was trying to develop my own Realm extending org.apache.catalina.realm.RealmBase but in Eclipse I got this error: The type javax.management.MBeanRegistration cannot be resolved. It is indirectly referenced from required .class files MyRealmBase.java. I can't find jar file where this pa

Re: Reflection for custom taglibs killing performance...

2005-04-17 Thread Dakota Jack
Why would you have to have an entirely new "reflection" for more than one database call? That sound like a design SNAFU to me. Looks to me like you should be having one use of reflection instead of 1000. Jack On 4/17/05, Kevin Burton <[EMAIL PROTECTED]> wrote: > Dakota Jack wrote: > > >1000 on

Re: Reflection for custom taglibs killing performance...

2005-04-17 Thread Kevin Burton
Dakota Jack wrote: 1000 on a page? Really? That seems very odd to me given my experience. What would a page like that look like? Do you have examples? So psuedo code... - get a list of objects from your DB.. Say 500 - for each object tag A tag B tag C fn:length And so forth... That

Re: Reflection for custom taglibs killing performance...

2005-04-17 Thread Dakota Jack
1000 on a page? Really? That seems very odd to me given my experience. What would a page like that look like? Do you have examples? On 4/17/05, Kevin Burton <[EMAIL PROTECTED]> wrote: > QM wrote: > > >On Sun, Apr 17, 2005 at 03:44:59PM -0700, Kevin Burton wrote: > >: We've had a few bottlen

Re: Reflection for custom taglibs killing performance...

2005-04-17 Thread Kevin Burton
QM wrote: On Sun, Apr 17, 2005 at 03:44:59PM -0700, Kevin Burton wrote: : We've had a few bottlenecks in our code that have since been removed but : the remaining big bottleneck is Tomcat. The JSP engine is creating : compiled code that is heavily relying on reflection. : [snip] : : Is there AN

Re: jsvc.exec error: syscall failed in set_caps

2005-04-17 Thread Bill Barker
"Georges Roux" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > >>Thanks much for sharing your solution with the group -- this will help >>people when they search the archives. >> >>-QM >> > Well hm, bad news, the probleme is already here and I don't have the > solution. > Yeah, we

Re: Handling requests for .asp files

2005-04-17 Thread QM
On Mon, Apr 18, 2005 at 03:03:45AM +0200, Martin Lidgard wrote: : I am trying to get Tomcat to respond to requests for files with an ".asp" : extension in order to let Turbine handle the request and redirect to the : appropriate Velocity page. : [snip] : The problem is that Tomcat does not seem t

Re: Reflection for custom taglibs killing performance...

2005-04-17 Thread QM
On Sun, Apr 17, 2005 at 03:44:59PM -0700, Kevin Burton wrote: : We've had a few bottlenecks in our code that have since been removed but : the remaining big bottleneck is Tomcat. The JSP engine is creating : compiled code that is heavily relying on reflection. : [snip] : : Is there ANY way to g

Handling requests for .asp files

2005-04-17 Thread Martin Lidgard
Hi. I am trying to get Tomcat to respond to requests for files with an ".asp" extension in order to let Turbine handle the request and redirect to the appropriate Velocity page. The reason for this seemingly strange need is that I want to handle external references (on other web sites) to my site

Re: jsvc.exec error: syscall failed in set_caps

2005-04-17 Thread Georges Roux
Thanks much for sharing your solution with the group -- this will help people when they search the archives. -QM Well hm, bad news, the probleme is already here and I don't have the solution. Sorry Georges - To unsubscribe, e

Re: can´t Configurate Database Connection Pool (DBCP) with Tomcat 5.0.28

2005-04-17 Thread Sevillano sevi llano
Hi Caroline it works perfectly now!! thanks very much for your help I love you!! :-) From: Caroline Jen <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" To: Tomcat Users List Subject: Re: can´t Configurate Database Connection Pool (DBCP) with Tomcat 5.0.28 Date: Fri, 15 Apr 2005 07:47:11 -0700

Reflection for custom taglibs killing performance...

2005-04-17 Thread Kevin Burton
I've been spending this week running a profiler across our webapp and Tomcat. We've had a few bottlenecks in our code that have since been removed but the remaining big bottleneck is Tomcat. The JSP engine is creating compiled code that is heavily relying on reflection. Reflection shouldn't

Re: Symlinked subdirectories of webapps

2005-04-17 Thread QM
On Sun, Apr 17, 2005 at 02:30:16PM -0400, Nick Johnson wrote: : (with respect to tomcat 5.0.28) : I have a bunch of JSP files which work hapily when located in a : subdirectory of webapps/ROOT. However, whenever I want to move that : directory, and then leave a symlink to that directory in webapps

Re: jsvc.exec error: syscall failed in set_caps

2005-04-17 Thread QM
On Sun, Apr 17, 2005 at 07:34:49PM +0200, Georges Roux wrote: : and after as root with only : -Djava.io.tmpdir=/tmp : the problem was the write permissions on the sessions files in /tmp Thanks much for sharing your solution with the group -- this will help people when they search the archives.

Symlinked subdirectories of webapps

2005-04-17 Thread Nick Johnson
Hello, (with respect to tomcat 5.0.28) I have a bunch of JSP files which work hapily when located in a subdirectory of webapps/ROOT. However, whenever I want to move that directory, and then leave a symlink to that directory in webapps/ROOT, it all falls apart. I searched around, and the closes

Re: jsvc.exec error: syscall failed in set_caps

2005-04-17 Thread Georges Roux
And the problem was... first I try to start tomcat with -user www-data -Djava.io.tmpdir=/tmp and after as root with only -Djava.io.tmpdir=/tmp the problem was the write permissions on the sessions files in /tmp Georges - To unsubsc

Re: jsvc.exec error: syscall failed in set_caps

2005-04-17 Thread Georges Roux
QM a écrit : Do you call jsvc as root? A long time ago, there was a bug that would cause jsvc to fail unless called as root. IIRC "set_caps()" is the function that calls setuid()/setgid(). Those calls require root privs, so they would fail; and in turn, the whole program bailed out. (The other op

Re: ssl-forwarding filter not working in IE 6

2005-04-17 Thread sudip shrestha
Actually, I fixed the code by adding encodeRedirectURL method. Strange thing is Firefox does not seem to care about proper url encoding, where as IE does. On 4/15/05, Sng Wee Jim <[EMAIL PROTECTED]> wrote: > > Try setting the following 2 response header > >response.setHeader("Pragma", "

Re: jsvc.exec error: syscall failed in set_caps

2005-04-17 Thread QM
On Sun, Apr 17, 2005 at 10:33:56AM +0200, Georges Roux wrote: : I can't start tomcat 5.5.9 as a daemon on linux on port 8080 (default : configuration) : nothing is running on this port : and have only thi error in logs/catalina.err : : jsvc.exec error: syscall failed in set_caps : jsvc.exec error

Re: How to change a running Tomcat with root user to other user.

2005-04-17 Thread QM
On Fri, Apr 15, 2005 at 08:37:14AM -0600, Lorenzo Jim?nez wrote: : Today we saw that our Tomcat 5.0.28 had been installed and it is running with : the root user. : how can I change it to other less dangerous user?, and : what privileges needs to have in order to work? You've already gotten some wi

Re: jsvc.exec error: syscall failed in set_caps

2005-04-17 Thread Wolfgang Hackl
Georges Roux wrote: I can't start tomcat 5.5.9 as a daemon on linux on port 8080 (default configuration) nothing is running on this port and have only thi error in logs/catalina.err jsvc.exec error: syscall failed in set_caps jsvc.exec error: Service exit with a return value of 4 Try "modprobe ca

JMX on Tomcat 5.5.9, JDK1.4 broken even with compatibility package?

2005-04-17 Thread Paul ANDERSON
In the change log for TC5.5.9, there is a claim that MX4J 3.0.1 has been integrated instead of 2. The JAR in bin from the compatibility package for JDK1.4 matches MX4J 3.0.1. But if I put the other 3.0.1 JARs in common/lib and configure Coyote to use jk2.properties with mx.enabled=true, using JDK1.

jsvc.exec error: syscall failed in set_caps

2005-04-17 Thread Georges Roux
Hi, I can't start tomcat 5.5.9 as a daemon on linux on port 8080 (default configuration) nothing is running on this port and have only thi error in logs/catalina.err jsvc.exec error: syscall failed in set_caps jsvc.exec error: Service exit with a return value of 4 Georges

Re: How to change a running Tomcat with root user to other user.

2005-04-17 Thread Anoop kumar V
I strongly suggest that you look through the man pages of setuid. Then u need to make adequate changes with setuid in your startup.sh file which will help u start the process as a normal user even though root has started the process during boot. HTH -Anoop On 4/15/05, Lorenzo Jiménez <[EMAIL PR