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

2007-08-19 Thread Matthew Kerle
ot to use log4j 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 othe

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

2007-08-19 Thread Matthew Kerle
d of this, I thought that log4j played well with others, has anyone else experienced this / are there any links that describe this problem/ cheers. -- Matthew Kerle IT Consultant Canberra, Australia Mobile: +61404 096 863 Email : [EMAIL PROTECTED] Web : http://threebrigh

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

2007-08-18 Thread Matthew Kerle
when they changed to a .jar! (around 9ir2 i think they did 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/ --

Re: how to submit updates to the tomcat documentation?

2007-08-16 Thread Matthew Kerle
thanks! Mark Thomas wrote: Matthew Kerle wrote: You can send the patch to the dev list or open a bugzilla item for it. The docs are all xml files in svn. Eg: http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/webapps/docs/ Mark

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 tag, namely specifying it outside the war so that deployment files are target-independent. cheers! -- Matthew Kerle IT Consultant Canberra, Australia Mobile: +61404 096 863 Email

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

2007-08-16 Thread Matthew Kerle
dicacted data-sources.xml file for the server where you configure jndi 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/ ---

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

2007-08-16 Thread Matthew Kerle
take a look 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://threebrightligh

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

2007-08-16 Thread Matthew Kerle
? No problem: # cd /where/you/want/tomcat/to/live # tar xzf apache-tomcat-version.tar.gz # (fix 'tomcat' 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 deploy

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

2007-08-16 Thread Matthew Kerle
dual 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 element in doesn't seem to allow the full range of properties that you need to define a database

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

2007-08-16 Thread Matthew Kerle
pe to get a good solution 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: SH

Re: NoSuchMethod shutdown error

2007-08-16 Thread Matthew Kerle
ded by HTTP connections anyway - plus we distribute to customers using all sorts of different hardware and software combinations. So the whole native thing is really a non starter for my application. Thanks for the note, however. That was going to be my next question, had I not found out how t

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

2007-08-16 Thread Matthew Kerle
you create JDBC connections 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@tom

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 element in doesn't seem to allow the full range of properties that you need to define a database connection, eg - username/password/driverClassName/url etc... Where would you define these? Da

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

2007-08-16 Thread Matthew Kerle
n a *lot* easier. Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matt, Matthew Kerle wrote: I never understood why, and personally doing things that way is a serious pain for me since it means I need to build a separate deployment descriptor for dev, test & prod, whi

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

2007-08-16 Thread Matthew Kerle
k:1521:MYTE" maxLimit="5" /> *** end server.xml *** *** App web.xml except *** JNDI DataSource for [appname] database. (From Oreilly "JavaServer Pages", Bergsten, 2nd Ed.,

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

2007-08-16 Thread Matthew Kerle
prod database details. which I don't want. Is there a better way that the sysadmin can setup a JNDI datasource so that deployed war's don't have to contain database-specific details? the only way I've seen so far is to configure that in the server.xml... cheers! -- Matthew Kerl

Re: ClassCastException trying to cast MemoryUserDatabase to UserDatabase

2007-08-16 Thread Matthew Kerle
chMethodException e) { log.error(e.getLocalizedMessage(), e); } catch (IllegalAccessException e) { log.error(e.getLocalizedMessage(), e); } catch (InvocationTargetException e) { log.error(e.getLocalizedMessage(), e);

Re: ClassCastException trying to cast MemoryUserDatabase to UserDatabase

2007-08-16 Thread Matthew Kerle
makes sense that no web 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

Re: ClassCastException trying to cast MemoryUserDatabase to UserDatabase

2007-08-16 Thread Matthew Kerle
lasses are used, 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 : ht

Re: ClassCastException trying to cast MemoryUserDatabase to UserDatabase

2007-08-16 Thread Matthew Kerle
;t believe something this simple 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 r

Re: ClassCastException trying to cast MemoryUserDatabase to UserDatabase

2007-08-16 Thread Matthew Kerle
ier to script 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://threebrightligh

Re: ClassCastException trying to cast MemoryUserDatabase to UserDatabase

2007-08-16 Thread Matthew Kerle
omcat distro sitting in your webapp's WEB-INF/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 Consu

Re: ClassCastException trying to cast MemoryUserDatabase to UserDatabase

2007-08-16 Thread Matthew Kerle
er to be unable to find the class as your webapp loads and punt the request 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 Consul

Re: ClassCastException trying to cast MemoryUserDatabase to UserDatabase

2007-08-16 Thread Matthew Kerle
tch someone else wade through 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 di

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

2007-08-16 Thread Matthew Kerle
*** end server.xml *** *** App web.xml except *** JNDI DataSource for [appname] database. (From Oreilly "JavaServer Pages", Bergsten, 2nd Ed., page 485) jdbc/oponline j

Re: ClassCastException trying to cast MemoryUserDatabase to UserDatabase

2007-08-16 Thread Matthew Kerle
#x27;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"); System.out.pr

Re: ClassCastException trying to cast MemoryUserDatabase to UserDatabase

2007-08-16 Thread Matthew Kerle
sense as you could enumerate all users & passwords...) 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: ClassCastException trying to cast MemoryUserDatabase to UserDatabase

2007-08-16 Thread Matthew Kerle
configuration file for the Manager web application. users org.apache.catalina.UserDatabase 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 ag

ClassCastException trying to cast MemoryUserDatabase to UserDatabase

2007-08-16 Thread Matthew Kerle
"org.apache.catalina.UserDatabase"/> 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 coming in over SOAP. We're looking at using the tomcat-users.x

Re: Tomcat benchmark

2007-08-16 Thread Matthew Kerle
drew Hole wrote: 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://threebrightligh

Re: catalina error log

2007-08-15 Thread Matthew Kerle
ss gives you all the tools to get online. -- 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@

Re: tomcat memory realms & tomcat-users.xml

2007-08-15 Thread Matthew Kerle
s. * Matthew 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] Su

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

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

2007-08-15 Thread Matthew Kerle
everything separate and only have tomcat 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 PROTE

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

2007-08-15 Thread Matthew Kerle
l connections from the DMZ 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

Re: Configuring Webalizer on tomcat

2007-08-15 Thread Matthew Kerle
r manually and post the logfile 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

tomcat memory realms & tomcat-users.xml

2007-08-14 Thread Matthew Kerle
ier way than what I'm trying to do... thanks! -- * Matthew Kerle * * IT Consultant * * Canberra, Australia* Mobile: +61404 096 863 Email: Matthew Kerle <mailto:[EMAIL PROTECTED]> Web: Matthew Kerle <http://threebrightlights.blogs

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 prett

Re: Removing the port identifier

2007-08-14 Thread Matthew Kerle
ution. 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

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.blogsp

Re: Removing the port identifier

2007-08-14 Thread Matthew Kerle
e out how to reverse-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 PROTECTE

Re: NoSuchMethod shutdown error

2007-08-14 Thread Matthew Kerle
downloaded it here: 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.