Re: Reflection for custom taglibs killing performance...

2005-04-18 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 a

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

2005-04-18 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

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

2005-04-18 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

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

2005-04-18 Thread howarddy3
I'll look again, but I didn't see a jmx.jar earlier -- Original message -- From: Guy Katz [EMAIL PROTECTED] its a jmx class. probably in jmx.jar -Original Message- From: alebu [mailto:[EMAIL PROTECTED] Sent: Monday, April 18, 2005 9:46 AM To:

Re: Java class is reloaded automatically?

2005-04-18 Thread Christoph Kutzinski
Hi, are you debugging Tomcat when this happens? Then this is maybe related to class hotswapping Christoph Kent Tong wrote: Hi, I notice that in Tomcat 5.5 changes to my Java class take effects without reloading the app. The content is not marked as reloadable. There is no message in the console

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

2005-04-18 Thread Robert F Hall
Should be in ${TOMCAT_HOME}/bin/jmx.jar [EMAIL PROTECTED] wrote: I'll look again, but I didn't see a jmx.jar earlier -- Original message -- From: Guy Katz [EMAIL PROTECTED] its a jmx class. probably in jmx.jar -Original Message- From: alebu [mailto:[EMAIL

RE: Virtual domain problem

2005-04-18 Thread Raghupathy,Gurumoorthy
Do you use tomcat as standalone ? Send me the server.xml However try Engine defaultHost=www.nacion.com name=Catalina Host appBase=webapps name=www.nacion.com debug=0 Logger className=org.apache.catalina.logger.FileLogger suffix=.txt

Re: jsvc.exec error: syscall failed in set_caps

2005-04-18 Thread Georges Roux
Bill Barker a écrit : Yeah, well, check out http://issues.apache.org/bugzilla/show_bug.cgi?id=33154. Well done Bill, I use last stable 2.6.11 from kernel.org compiled as the debian way (initrd and all as module) and nowI add the line modprobe capability before launching jsvc, in my tomcat

Multiple Security Providers with Tomcat

2005-04-18 Thread Tom Bednarz
I have a customer who likes to introduce chipcards with client certificates for single-sign-on. I need to add support for that in a web-application we provided. The problem is, that not ALL users of the application may have a certificate. So for all not able to present a valid certificate I

Running Tomcat on multiple processors on Windows 2003

2005-04-18 Thread Steven Heckler
Hi, All, A client of mine is having trouble getting Tomcat 4.1.27 to make use of multiple processors on his quad processor system under Windows 2003. My questions: 1. What can he do to enable Tomcat to make use of all 4 processors? 2. If a single instance of Tomcat can't make

TC 4.1.26: heap not growing???

2005-04-18 Thread guillaume
Hello Tomcat-oids, We've been running performance tests against multiple applications on Tomcat 4.1.26. TC is run as a process on our Linux boxes and as a service on Windows. We've tuned heap sizes to -Xms512m -Xmx1024m. Monitoring the JVM memory usage with a daemon thread calling

Re: Directory listing

2005-04-18 Thread Darryl Wilburn
For Tomcat... Change the listings parameter in the DefaultServlet to false. Don't know for Apache. Darryl --- Richard Reyes [EMAIL PROTECTED] wrote: What I do is put an access denied index.jsp on every subdirectories inside the specific webapp folder. heres my acc. deny index.jsp...

RE: apache + tomcat + JK connector configuration

2005-04-18 Thread Delphine Lê
Bob, Thank you but Apache doesn't start if I add this line. The Apache config I have is: LoadModule jk_module modules/mod_jk.so JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel debug JkMount /examples worker1 It seems to works fine (see the logs in my very first

SV: Handling requests for .asp files

2005-04-18 Thread Martin Lidgard
Thanks for the pointers. The problem ended up being that the redirect required not only an HTTP-StatusCode (301 - Moved permanently) but also a httpServletResponse.setHeader(Location, http://newurl;). Without the header, Mozilla shows the originally requested page which contains a redirect

Re: Can't get Tomcat to use account other than System

2005-04-18 Thread Darryl Wilburn
Mark, Does the account you're trying to use have all the correct user rights (act as part of the operating system, run as a service, etc.)? Darryl --- Mark Leone [EMAIL PROTECTED] wrote: I think this is a pretty basic question, but I couldn't find an answer in the archives. I've been using

Single sign on not working

2005-04-18 Thread shyam
Hi all, I have two web applications which use the same JDBCRealm. I have tested the realm and it works fine. I commented out the single sign on valve in the server.xml . I tested the links from one application to another. The protected resources still ask for the login information. It would be

Single sign on problem

2005-04-18 Thread shyam
Hi all, I have two web applications which use the same JDBCRealm. I have tested the realm and it works fine. I commented out the single sign on valve in the server.xml . I tested the links from one application to another. The protected resources still ask for the login information. It would be

Re: Directory listing

2005-04-18 Thread t.n.a.
Darryl Wilburn wrote: For Tomcat... Change the listings parameter in the DefaultServlet to false. Don't know for Apache. Just wrapped up both problems myself: the listings parameter takes care of tomcat, and a .htaccess file takes care of apache: $ cat .htaccess Options -Indexes $ Just place

RE: Virtual domain problem

2005-04-18 Thread Lorenzo Jiménez
Dear Gurumoorthy: Thank you very much for your help. It worked at the first try! Regards, Lorenzo -Original Message- From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED] Sent: Lunes, 18 de Abril de 2005 02:07 a.m. To: 'Tomcat Users List' Subject: RE: Virtual domain problem Do you

Single Sign On Help

2005-04-18 Thread shyam reddy
Hi all, I have two web applications which use the same JDBCRealm. I have tested the realm and it works fine. I commented out the single sign on valve in the server.xml . I tested the links from one application to another. The protected resources still ask for the login information. It would

Re: Single Sign On Help

2005-04-18 Thread Jason Bainbridge
On 4/18/05, shyam reddy [EMAIL PROTECTED] wrote: Hi all, I have two web applications which use the same JDBCRealm. I have tested the realm and it works fine. I commented out the single sign on valve in the server.xml . I tested the links from one application to another. The protected

Re: Single Sign On Help

2005-04-18 Thread shyam reddy
I am sorri for the 3 messages. I got a response from the first two messages that the message was not delivered as I didnt have an account. So I subcribed again and sent the email. Sorri for the trouble shyam Jason Bainbridge [EMAIL PROTECTED] wrote: On 4/18/05, shyam reddy wrote: Hi all,

odd problem when using a build that calls a build w/ the deploy task

2005-04-18 Thread Quinten Verheyen
Hi, ran into something odd: - buildfile A (build-A.xml) contains deploy task, running the task works w/o any problems : !-- ... -- target name=deploy depends=war deploy url=${tomcat.manager.url} username=${tomcat.manager.username}

Virtual domain problem

2005-04-18 Thread Dalton Ames Jr
Create a Host and Alias. You can do this through teh Admin tool. 1. Create a directory to be the base of the new host: C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps2 2. Open Tomcat Admin tool. 3. expand Service (Catalina) 4. Click Service (Catalina) 5.

user management

2005-04-18 Thread Henrique, Manuel
Hello all, I try again because it seems that my message wasn't received. I am sorry for the inconvenience if you have already receive my message. So here is my problem. I hope someone could help me: Hello, I dont know if it's you I need to contact but it make 3 days I am trying to solve this

DBCP inconsistency

2005-04-18 Thread henrik rathje
Hi, i am using the tomcat 5.0.27 distribution. After several days of uptime the DBCP seems to run odd: org.apache.commons.dbcp.BasicDataSource.getNumActive() == 4 org.apache.commons.dbcp.BasicDataSource.getNumIdle() == 1 org.apache.commons.dbcp.BasicDataSource.getMaxActive() == 10

RE: odd problem when using a build that calls a build w/ the deploy task

2005-04-18 Thread Quinten Verheyen
Found it, the dist.dir property was set to dist, it should have been set to ${basedir}/dir, all other relative dirs had the latter convention, which explains everything. -Original Message- From: Quinten Verheyen Sent: 18 April 2005 16:43 To: Tomcat Users List Subject: odd problem

RE: deploy WAR to /

2005-04-18 Thread Euan Guttridge
I am getting the same problem, also with 5.5.4 + Compat, RH9, J2SDK142. - I am building the WAR with ANT, scp'ing to to an empty /webapps and restarting Tomcat. - If I copy the ROOT.war to BLAH.war it will expand fine as BLAH, even root.war to root, just not ROOT.war to ROOT. Thanks Euan

Set group id using jsvc?

2005-04-18 Thread Nick Johnson
Hello, I know that jsvc will let you set the user id of the tomcat process, but will it also let you set the group id of the process? Nick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Tomcat Won't Start When 1024Mb JVM Memory Specified

2005-04-18 Thread Joe Reger, Jr.
Hi All! I'm trying to configure Tomcat to use 2.5Gb of memory on Windows 2000 Server SP4 with Java 1.4.2_04. To configure memory I'm using Start - Programs - Apache Tomcat 5.0 - Configure Tomcat - Java Tab. When I set the Maximum Memory Pool to anything greater than 1024Mb the Tomcat

JSPc excludes?

2005-04-18 Thread Bill Lynch
Guys, I've been using the JSPc task (org.apache.jasper.JspC) to compile a set of JSPs. So far so good, but I now want to exclude a few of the JSPs from being precompiled. Unfortuntely, there's no attribute (that I know of) in the JSPc task to do this. Am I missing something here? Thanks,

RE: Set group id using jsvc?

2005-04-18 Thread Neil Upfalow
How can you set that? Would that allow files created or written to by tomcat to get permissions I want ? We are using servers with the tanuki java service wrapper. Hopefully it can be done with that the same way... Thanks a lot. neil -Original Message- From: Nick Johnson

RE: Tomcat Won't Start When 1024Mb JVM Memory Specified

2005-04-18 Thread Caldarale, Charles R
From: Joe Reger, Jr. [mailto:[EMAIL PROTECTED] Subject: Tomcat Won't Start When 1024Mb JVM Memory Specified Is there a 1Gb limit on the JVM? On Tomcat? Not on those, but Windows normally provides only 2GB of virtual space for each process. (There's an initialization switch that can

Need help exporting contexts not under webapps/

2005-04-18 Thread J. Ryan Earl
Hello, I'm in the process of bringing an in-house application up under Tomcat. Previously we were using Jetty as the servlet container, but for various reason I'm trying to get said application running with Tomcat 5.5.9 and Java 1.5.0. The problem I'm having is that there are two directories

Re: Running Tomcat on multiple processors on Windows 2003

2005-04-18 Thread Chris Hyzer
1.What can he do to enable Tomcat to make use of all 4 processors? I dont know of an answer to that one. I think it is impossible unless you have a JVM that will use 4 procs... Sun doesnt seem to do this. 2.If a single instance of Tomcat can't make use of multiple processors,

RE: Running Tomcat on multiple processors on Windows 2003

2005-04-18 Thread Caldarale, Charles R
From: Chris Hyzer [mailto:[EMAIL PROTECTED] Subject: Re: Running Tomcat on multiple processors on Windows 2003 I dont know of an answer to that one. I think it is impossible unless you have a JVM that will use 4 procs... Sun doesnt seem to do this. Huh? The Sun 1.3, 1.4, and 5.0 JVMs

Re: Reflection for custom taglibs killing performance...

2005-04-18 Thread Kevin Burton
Dakota Jack wrote: 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. I don't have to have it. Tomcat is *doing* it. Forget the DB. If I

Re: Reflection for custom taglibs killing performance...

2005-04-18 Thread Tim Funk
Its not reflection killing you. For example, time this: %=System.currentTimeMillis()% c:forEach begin='0' end='${param.iterations}' ${more.cowbell} /c:forEach %=System.currentTimeMillis()% Where more is any java object and cowbell is a property (getCowbell()). In simple timing trials - even

Anyone have java beans and servlets working in user directories?

2005-04-18 Thread Steve Ochani
Hello all, I'm using tomcat 5.5.7 and have configured userconfig in server.xml to look in user's public_html subdir for jsps etc. Jsp files work in user directories but java beans and servlets do not. Does anyone have tomcat working to beans and servlets also work in user's public_html

jk 1.2.10 + apache 1.3 issue

2005-04-18 Thread Guernsey, Byron \(GE Consumer Industrial\)
For a development environment of ours where we aren't yet running apache 2, I had to build jk1 for Solaris and apache 1.3.26. Everything looked ok, but none of the workers seem to be loading, not even the jkstatus worker. Loading the page returns a 500 error, and the jk log into debug mode

Trouble with SecurityManager with Tomcat 5.5

2005-04-18 Thread Josef Vosyka
Hi, I've got 3 exceptions, when I run simple webapp under SecurityManager with standard policy file and: -IntelliJ 4.5 -JDK 5.0 -Tomcat 5.5 The exceptions are: SEVERE: Parse error in default web.xml java.security.AccessControlException: access denied (java.lang.RuntimePermission

ThreadPool logFull -- BufferedInputStream

2005-04-18 Thread Patty O'Reilly
I haven't heard anything back so I thought I'd rephrase my question. I'm running tomcat-5.0.30 with apache 2.0.52 and j2sdk1.4.2_04 on Red Hat AS 3 update 2. I am seeing runaway thread creation where threads continue to accumulate until they are maxed out. After doing a thread dump, which I have

Deploying Sakai 1.5.0 with Tomcat 5.5.7

2005-04-18 Thread Joe Bautista
Hi everyone, I'm trying to deploy Sakai 1.5.0 with Tomcat 5.5.7. I've received several emails from people on the sakai user group telling me that Sakai 1.5.0 hasn't been proven to run with Tomcat 5.5.7, but I wanted to learn a little bit on my own, so I'm trying to make it work. Part of the

Re: Reflection for custom taglibs killing performance...

2005-04-18 Thread Kevin Burton
Tim Funk wrote: Its not reflection killing you. For example, time this: %=System.currentTimeMillis()% c:forEach begin='0' end='${param.iterations}' ${more.cowbell} /c:forEach %=System.currentTimeMillis()% Where more is any java object and cowbell is a property (getCowbell()). In simple timing

Re: Anyone have java beans and servlets working in user directories?

2005-04-18 Thread Woodchuck
hihi, is this what you're trying to achieve? -have all servlets deployed under Tomcat's webapp directory like usual -but then place modified/customized servlets to user's directories whenever desired (and this one overrides the webapp one) woodchuck --- Steve Ochani [EMAIL PROTECTED] wrote:

Archive?

2005-04-18 Thread John Najarian
Is there an archive of the questions and replies? If so where? What is the URL. Thank you, John Najarian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Archive?

2005-04-18 Thread e
here is one... http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2 On 4/18/05, John Najarian [EMAIL PROTECTED] wrote: Is there an archive of the questions and replies? If so where? What is the URL. Thank you, John Najarian

Re: JSPc excludes?

2005-04-18 Thread Bill Lynch
Guys, Sorry to ask a redundant question -- I looked on the list archives and found my answer: http://marc.theaimsgroup.com/?l=tomcat-userm=110607458931449w=2 No possiblity of doing excludes. I'm going to try to hack in this functionality to the org.apache.jasper.JspCclass but I'm unclear as to

Re: Anyone have java beans and servlets working in user directories?

2005-04-18 Thread Steve Ochani
Hi, On 18 Apr 2005 at 14:19, Woodchuck wrote: hihi, is this what you're trying to achieve? -have all servlets deployed under Tomcat's webapp directory like usual -but then place modified/customized servlets to user's directories whenever desired (and this one overrides the webapp one)

Re: Reflection for custom taglibs killing performance...

2005-04-18 Thread Tim Funk
To execute a tag file requires creating some new objects which migh have an overhead not quite comparable to RequestDispatcher.include() Thats probably the issue. -Tim Kevin Burton wrote: Tim Funk wrote: Its not reflection killing you. For example, time this: %=System.currentTimeMillis()%

RE: Deploying Sakai 1.5.0 with Tomcat 5.5.7

2005-04-18 Thread Fritz Schneider
Joe, Do you also have a deployed application at TOMCAT_HOME/webapps/sakai-dispatch? If so, what does its web.xml look like? Fritz -Original Message- From: Joe Bautista [mailto:[EMAIL PROTECTED] Sent: Monday, April 18, 2005 1:59 PM To: tomcat-user@jakarta.apache.org Subject: Deploying

RE: Deploying Sakai 1.5.0 with Tomcat 5.5.7

2005-04-18 Thread Joe Bautista
Fritz, When you ask whether I also have a deployed application at TOMCAT_HOME/webapps/sakai-dispatch, I think what you're asking is whether or not everything looks kosher in that directory. If that's the case, then the answer is yes. I see the META-INF and WEB-INF directories. WEB-INF\lib has a

What version of Tomcat, Apache to Install

2005-04-18 Thread Daxin Zuo
Hi, I need to install Apache, tomcat, and all related software on a UNIX computer: MACHTYPE=sparc-sun-solaris2.9 What version of Tomcat, and Apache is the best match? I try to install Apache 2.0.53. When I compile it, there is only one .so file in the modules filder. It may be the wrong

RE: What version of Tomcat, Apache to Install

2005-04-18 Thread Caldarale, Charles R
From: Daxin Zuo [mailto:[EMAIL PROTECTED] Subject: What version of Tomcat, Apache to Install What version of Tomcat, and Apache is the best match? Are you sure you really need the additional complexity of Apache httpd on the same box as Tomcat? The current level of Tomcat (5.5 series) is

Re: Can't get Tomcat to use account other than System

2005-04-18 Thread Mark Leone
Can you tell me how to check for that? The only options I can find for defining account properties are in Control Panel -- Users and Administrative Tools -- Computer Management; and neither of those have any settings beyond very basic things like Admin vs. limited priviliges. I played around a

Re: Reflection for custom taglibs killing performance...

2005-04-18 Thread QM
On Mon, Apr 18, 2005 at 02:19:15PM -0700, Kevin Burton wrote: : So its clearly not JUST reflected methods its something else on top of : it What does your profiler report? -QM -- software -- http://www.brandxdev.net/ tech news -- http://www.RoarNetworX.com/ code scan --

Re: Set group id using jsvc?

2005-04-18 Thread QM
On Mon, Apr 18, 2005 at 12:50:26PM -0400, Nick Johnson wrote: : I know that jsvc will let you set the user id of the tomcat process, : but will it also let you set the group id of the process? Off the top of my head I don't know; but you can grep the source code for setgid() (or even setegid()).

Re: Need help exporting contexts not under webapps/

2005-04-18 Thread QM
On Mon, Apr 18, 2005 at 01:16:04PM -0500, J. Ryan Earl wrote: : So my question is, in short, given a directory structure of static files, : how do you get Tomcat to serve said static content off of an arbitrary URI? So, are you trying to 1/ have a Tomcat-run webapp serve content that exists

RE: Deploying Sakai 1.5.0 with Tomcat 5.5.7

2005-04-18 Thread Fritz Schneider
Joe, The question also is asking if F:/usr/local is TOMCAT_HOME. I am not sure that the context.xml is used if there is no directory for the context under webapps. You quoted me a web.xml from what would appear to be a different directory. Fritz -Original Message- From: Joe Bautista

Re: Reflection for custom taglibs killing performance...

2005-04-18 Thread Kevin Burton
QM wrote: On Mon, Apr 18, 2005 at 02:19:15PM -0700, Kevin Burton wrote: : So its clearly not JUST reflected methods its something else on top of : it What does your profiler report? -QM I can't for the life of me figure it out! It certainly reports that doTag is taking a LOT of time but

Find login information from tomcat security

2005-04-18 Thread Gia Thornton
Hi, I am using Form-based tomcat security. I use a servlet to find login information such as the principal name, all the role names for this principal. I can use request.getUserPrincipal() from javax.servlet.http.HttpServletRequest. Is there anyway I can use GenericPrincipal class from

Re: Set group id using jsvc?

2005-04-18 Thread Parsons Technical Services
Why not make the user that Tomcat runs at a member of the group you need it in? Why do you need to change the group if it is set ahead of time? Doug - Original Message - From: QM [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Monday, April 18, 2005 9:25 PM

Re: Find login information from tomcat security

2005-04-18 Thread howarddy3
I'm also interested in how to get that principal info and maybe how to overwrite or add methods. -- Original message -- From: Gia Thornton [EMAIL PROTECTED] Hi, I am using Form-based tomcat security. I use a servlet to find login information such as the

php tomcat solaris 9 configuration

2005-04-18 Thread Edwin Hernandez
Hi all!! I am lost and I need help! I have tomcat running in a Solaris 9 server and I need to be able to install and configure PHP and Mysql to run with tomcat. Is there a step by step document to do this? Thanks, Edwin - Do you Yahoo!?

Re: Trouble with SecurityManager with Tomcat 5.5

2005-04-18 Thread howarddy3
Maybe I'm too naive here but what are the file permissions and does your windows environment have domain or active directory control??? -- Original message -- From: Josef Vosyka [EMAIL PROTECTED] Hi, I've got 3 exceptions, when I run simple webapp under

php tomcat solaris 9 configuration

2005-04-18 Thread Edwin Hernandez
Hi all!! I am lost and I need help! I have tomcat running in a Solaris 9 server and I need to be able to install and configure PHP and Mysql to run with tomcat. Is there a step by step document to do this? Thanks, Edwin __ Do You Yahoo!?

Re: Reflection for custom taglibs killing performance...

2005-04-18 Thread Dakota Jack
Why don't you break it down and find out where the time is going? On 4/18/05, Kevin Burton [EMAIL PROTECTED] wrote: QM wrote: On Mon, Apr 18, 2005 at 02:19:15PM -0700, Kevin Burton wrote: : So its clearly not JUST reflected methods its something else on top of : it What does your

Re: Reflection for custom taglibs killing performance...

2005-04-18 Thread Kevin Burton
Dakota Jack wrote: Why don't you break it down and find out where the time is going? So in summary.. now that I'm suspicious that its a tag instantiation issue I'm going to load up the webapp with FULL instrumentation... its about 8x slower but I think I'll need that level of granularity

Temp File Bloat

2005-04-18 Thread Dakota Jack
I am getting a major build up in my temp directory: c://application/j2se c://application/server c://application/server/webapps/ROOT c://application/temp The files being stored there are keeping resources, e.g. thumbnail images, in the air, making them unavailable for modication. Can someone