Re: Can we use output/extras/tomcat-juli.jar by default?

2007-08-19 Thread Matthew Kerle
on tomcat, thanks! Mark Thomas wrote: Matthew Kerle wrote: let me know if I read that right... Bill Barker wrote: When you have the log4j jar in WEB-INF/lib, the it ends up being used by Tomcat for some of it's logging. As a result, it can cause memory leaks and other weird errors

Re: JDBC driver of class '' for connect URL 'null' in Tomcat 5.5.12

2007-08-18 Thread Matthew Kerle
that..?) - -chris ps - nice web site, bet you're glad the kitchens done! -- Matthew Kerle IT Consultant Canberra, Australia Mobile: +61404 096 863 Email : [EMAIL PROTECTED] Web : http://threebrightlights.blogspot.com/ - To start a new

Re: Tomcat benchmark

2007-08-16 Thread Matthew Kerle
: Someone have a case study wich compare Tomcat with others application servers? Thanks a lot Andrew -- Matthew Kerle IT Consultant Canberra, Australia Mobile: +61404 096 863 Email : [EMAIL PROTECTED] Web : http://threebrightlights.blogspot.com

ClassCastException trying to cast MemoryUserDatabase to UserDatabase

2007-08-16 Thread Matthew Kerle
-users.xml database -- ResourceLink name=users global=UserDatabase type=org.apache.catalina.UserDatabase/ /Context Matthew Kerle wrote: Hi all I'm developing a web service with xFire 1.2.3 / tomcat 5.5.23 / Java 1.6.0_01, and we need to authenticate access by client applications

Re: ClassCastException trying to cast MemoryUserDatabase to UserDatabase

2007-08-16 Thread Matthew Kerle
/resource-env-ref Matthew Kerle wrote: (see below for message context) Ok, I've decided on using Http Basic authentication for my web service, and successfully configured tomcat to authenticate against the tomcat-users.xml file to the point where I can access a valid principal. But now I've got

Re: ClassCastException trying to cast MemoryUserDatabase to UserDatabase

2007-08-16 Thread Matthew Kerle
...) Gregor Schneider wrote: InitialContext.lookup() gives you a simple object: so change your code to Context ic = new InitialContext(); Object o = ic.lookup(java:comp/env/users); set a breakpoint and see, what type of object you're getting back. hth gregor -- Matthew Kerle IT Consultant

Re: ClassCastException trying to cast MemoryUserDatabase to UserDatabase

2007-08-16 Thread Matthew Kerle
dirty hack and I'm amazed that this is so hard... Does anyone have any input on why this might be so, and/or a better solution to convert the request principal to something I can get rolenames out of? thanks! Matthew Kerle wrote: //code Object o = ic.lookup(java:comp/env/users

Re: JDBC driver of class '' for connect URL 'null' in Tomcat 5.5.12

2007-08-16 Thread Matthew Kerle
for [appname] database. (From Oreilly JavaServer Pages, Bergsten, 2nd Ed., page 485) /description res-ref-namejdbc/oponline/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref *** end web.xml *** Thanks Ian -- Matthew Kerle

Re: ClassCastException trying to cast MemoryUserDatabase to UserDatabase

2007-08-16 Thread Matthew Kerle
this! Peter Crowther wrote: From: Matthew Kerle [mailto:[EMAIL PROTECTED] So what this is saying is that the *names* of the classes are the same, but the actual classes are different. this is crazy... I suspect the two classes are being loaded by different classloaders - a common and entertaining

Re: ClassCastException trying to cast MemoryUserDatabase to UserDatabase

2007-08-16 Thread Matthew Kerle
for the class up the classloader chain, returning the standard classloader's class. But I may be misunderstanding Tomcat's classloaders. - Peter -- Matthew Kerle IT Consultant Canberra, Australia Mobile: +61404 096 863 Email : [EMAIL PROTECTED] Web : http

Re: ClassCastException trying to cast MemoryUserDatabase to UserDatabase

2007-08-16 Thread Matthew Kerle
/lib directory? If so, you'll need to figure out how to deploy the JAR in one place but use it everywhere ($CATALINA_HOME/common/lib for TC 5.5 and, I think, just $CATALINA_HOME/lib for TC 6.0). - -chris -- Matthew Kerle IT Consultant Canberra, Australia Mobile: +61404 096 863 Email

Re: ClassCastException trying to cast MemoryUserDatabase to UserDatabase

2007-08-16 Thread Matthew Kerle
a setup like that than pulling specific classes out of the distro (which may change from version to version). -- Matthew Kerle IT Consultant Canberra, Australia Mobile: +61404 096 863 Email : [EMAIL PROTECTED] Web : http://threebrightlights.blogspot.com

Re: ClassCastException trying to cast MemoryUserDatabase to UserDatabase

2007-08-16 Thread Matthew Kerle
is so hard, far out. thanks so much for your help Peter, I would've been totally stuck without it! Peter Crowther wrote: From: Matthew Kerle [mailto:[EMAIL PROTECTED] the MemoryUser class is in catalina.jar, which is in the server/lib folder. would I be right in saying that web application

Re: ClassCastException trying to cast MemoryUserDatabase to UserDatabase

2007-08-16 Thread Matthew Kerle
, they are loaded by the webapp's ClassLoader, and are insulated from Tomcat, so they're safe). - -chris -- Matthew Kerle IT Consultant Canberra, Australia Mobile: +61404 096 863 Email : [EMAIL PROTECTED] Web : http://threebrightlights.blogspot.com

Re: ClassCastException trying to cast MemoryUserDatabase to UserDatabase

2007-08-16 Thread Matthew Kerle
application has access to the server/lib jars. doh...! Peter Crowther wrote: From: Matthew Kerle [mailto:[EMAIL PROTECTED] the MemoryUser class is in catalina.jar, which is in the server/lib folder. would I be right in saying that web application code is barred from loading any classes from

Re: ClassCastException trying to cast MemoryUserDatabase to UserDatabase

2007-08-16 Thread Matthew Kerle
(IllegalAccessException e) { log.error(e.getLocalizedMessage(), e); } catch (InvocationTargetException e) { log.error(e.getLocalizedMessage(), e); } Ciao, Mario -- Matthew Kerle IT Consultant Canberra, Australia Mobile: +61404 096

Re: JDBC driver of class '' for connect URL 'null' in Tomcat 5.5.12

2007-08-16 Thread Matthew Kerle
... cheers! -- Matthew Kerle IT Consultant Canberra, Australia Mobile: +61404 096 863 Email : [EMAIL PROTECTED] Web : http://threebrightlights.blogspot.com/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e

Re: JDBC driver of class '' for connect URL 'null' in Tomcat 5.5.12

2007-08-16 Thread Matthew Kerle
PROTECTED]: check this http://evolutionnext.com/blog/2005/10/13/1129259088959.html On 8/16/07, Matthew Kerle [EMAIL PROTECTED] wrote: hmm, you have an interesting problem! first thing I'd say is use this opportunity to upgrade to the ojdbc14.jar, which is the latest oracle jdbc driver

Re: JDBC driver of class '' for connect URL 'null' in Tomcat 5.5.12

2007-08-16 Thread Matthew Kerle
now that sounds good! the only thing is I don't see how that maps to a DataSource declaration, the Resource element in GlobalNamingResources doesn't seem to allow the full range of properties that you need to define a database connection, eg - username/password/driverClassName/url etc...

Re: JDBC driver of class '' for connect URL 'null' in Tomcat 5.5.12

2007-08-16 Thread Matthew Kerle
a different way? -- Matthew Kerle IT Consultant Canberra, Australia Mobile: +61404 096 863 Email : [EMAIL PROTECTED] Web : http://threebrightlights.blogspot.com/ - To start a new topic, e-mail: users@tomcat.apache.org

Re: NoSuchMethod shutdown error

2007-08-16 Thread Matthew Kerle
not found out how to disable the warnings. Dan -- Matthew Kerle IT Consultant Canberra, Australia Mobile: +61404 096 863 Email : [EMAIL PROTECTED] Web : http://threebrightlights.blogspot.com/ - To start a new topic, e-mail

Re: JDBC driver of class '' for connect URL 'null' in Tomcat 5.5.12

2007-08-16 Thread Matthew Kerle
and I wasn't in charge of building deploys so it never happened. I'll try and dig through the archives to find a good example of that which works so we can update our procedure. cheers! Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matt, Matthew Kerle wrote: Most

Re: JDBC driver of class '' for connect URL 'null' in Tomcat 5.5.12

2007-08-16 Thread Matthew Kerle
.../GlobalNamingResources block. Well... other than the need to use a ResourceLink .../ to make it available to an individual webapp. Did you try it and get a failure? --David Matthew Kerle wrote: now that sounds good! the only thing is I don't see how that maps to a DataSource declaration, the Resource

Re: JDBC driver of class '' for connect URL 'null' in Tomcat 5.5.12

2007-08-16 Thread Matthew Kerle
' symlink) # (restart apps at your convenience) No effing around with Tomcat server configuration. In fact, deploying our production applications doesn't require root access, so out deployment team can't really break anything. nice. - -chris -- Matthew Kerle IT Consultant Canberra, Australia

Re: JDBC driver of class '' for connect URL 'null' in Tomcat 5.5.12

2007-08-16 Thread Matthew Kerle
at: http://commons.apache.org/dbcp/api-1.2.2/org/apache/commons/dbcp/BasicDataSource.html --David -- Matthew Kerle IT Consultant Canberra, Australia Mobile: +61404 096 863 Email : [EMAIL PROTECTED] Web : http://threebrightlights.blogspot.com

Re: JDBC driver of class '' for connect URL 'null' in Tomcat 5.5.12

2007-08-16 Thread Matthew Kerle
data-sources. very simple and user-friendly. thanks for your help Chris! -- Matthew Kerle IT Consultant Canberra, Australia Mobile: +61404 096 863 Email : [EMAIL PROTECTED] Web : http://threebrightlights.blogspot.com

how to submit updates to the tomcat documentation?

2007-08-16 Thread Matthew Kerle
might be interested in submitting some updates for consideration that clarify the different ways to specify the Resource tag, namely specifying it outside the war so that deployment files are target-independent. cheers! -- Matthew Kerle IT Consultant Canberra, Australia Mobile: +61404 096

tomcat memory realms tomcat-users.xml

2007-08-15 Thread Matthew Kerle
to add a security-constraint to my web.xml, so that unauthenticated clients can still connect. Am I on the right track? Or is there a much easier way than what I'm trying to do... thanks! -- * Matthew Kerle * * IT Consultant * * Canberra, Australia* Mobile: +61404 096 863 Email: Matthew Kerle

Re: Configuring Webalizer on tomcat

2007-08-15 Thread Matthew Kerle
it generates? cheers. * Matthew Kerle * * IT Consultant * * Canberra, Australia* Mobile: +61404 096 863 Email: Matthew Kerle mailto:[EMAIL PROTECTED] Web: Matthew Kerle http://threebrightlights.blogspot.com/ Kanchana Welagedara wrote: Hi All I'm struggling to configure the webalizer

Re: tomcat performance on static content over SSL/non-SSL

2007-08-15 Thread Matthew Kerle
to internal. But then you have problems with replication, and if you database is compromised then you risk data exposure. Which means there is no final solution, but it helps to raise the difficulty for attackers and minimise your risk. then make sure your backups work!!! cheers. * Matthew Kerle

Re: tomcat performance on static content over SSL/non-SSL

2007-08-15 Thread Matthew Kerle
serving dynamic pages. plus that way if you ever run into scalability problems you have the infrastructure to scale right there! * Matthew Kerle * * IT Consultant * * Canberra, Australia* Mobile: +61404 096 863 Email: Matthew Kerle mailto:[EMAIL PROTECTED] Web: Matthew Kerle http

Re: Removing the port identifier

2007-08-15 Thread Matthew Kerle
no worries. I didn't know about jsvc or commons-daemon before (I do now!), so I learnt something too! best of luck with your app. * Matthew Kerle * * IT Consultant * * Canberra, Australia* Mobile: +61404 096 863 Email: Matthew Kerle mailto:[EMAIL PROTECTED] Web: Matthew Kerle http

Re: tomcat memory realms tomcat-users.xml

2007-08-15 Thread Matthew Kerle
Kerle * * IT Consultant * * Canberra, Australia* Mobile: +61404 096 863 Email: Matthew Kerle mailto:[EMAIL PROTECTED] Web: Matthew Kerle http://threebrightlights.blogspot.com/ Caldarale, Charles R wrote: From: Matthew Kerle [mailto:[EMAIL PROTECTED] Subject: tomcat memory realms tomcat

Re: catalina error log

2007-08-15 Thread Matthew Kerle
. -- Matthew Kerle IT Consultant Canberra, Australia Mobile: +61404 096 863 Email : [EMAIL PROTECTED] Web : http://threebrightlights.blogspot.com/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail

Re: NoSuchMethod shutdown error

2007-08-14 Thread Matthew Kerle
: http://apr.apache.org/download.cgi -- * Matthew Kerle ** IT Consultant* ** * Canberra, Australia* Mobile: +61404 096 863 Email: mailto:[EMAIL PROTECTED] Matthew Kerle mailto:[EMAIL PROTECTED] Web: Matthew Kerle http://threebrightlights.blogspot.com/ Dan Armbrust wrote: When I

Re: Removing the port identifier

2007-08-14 Thread Matthew Kerle
-proxy with the web server du jour... Is this close to what you're after? -- * Matthew Kerle ** IT Consultant* ** * Canberra, Australia* Mobile: +61404 096 863 Email: mailto:[EMAIL PROTECTED] Matthew Kerle mailto:[EMAIL PROTECTED] Web: Matthew Kerle http

Re: Removing the port identifier

2007-08-14 Thread Matthew Kerle
oops, sorry I meant mod_proxy, not mod_rewrite... -- * Matthew Kerle ** IT Consultant* ** * Canberra, Australia* Mobile: +61404 096 863 Email: mailto:[EMAIL PROTECTED] Matthew Kerle mailto:[EMAIL PROTECTED] Web: Matthew Kerle http://threebrightlights.blogspot.com/ Matthew Kerle

Re: Removing the port identifier

2007-08-14 Thread Matthew Kerle
. If the application has a lot of static content then it makes good performance sense to put something in front of it, either apache or squid. but that's probably not an issue in this case...;-p ! -- * Matthew Kerle ** IT Consultant* ** * Canberra, Australia* Mobile: +61404 096 863 Email

tomcat performance on static content over SSL/non-SSL

2007-08-14 Thread Matthew Kerle
Caldarale, Charles R wrote: From: Matthew Kerle [mailto:[EMAIL PROTECTED] Subject: Re: Removing the port identifier Actually, that's not really true anymore. The current Tomcat without APR is almost as fast as httpd for delivering non-SSL static content, and with APR it's pretty much