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
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
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/
--
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
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
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/
---
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
? 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
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
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
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
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
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
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
k:1521:MYTE"
maxLimit="5" />
*** end server.xml ***
*** App web.xml except ***
JNDI DataSource for [appname] database.
(From Oreilly "JavaServer Pages", Bergsten, 2nd Ed.,
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
chMethodException e)
{
log.error(e.getLocalizedMessage(), e);
}
catch (IllegalAccessException e)
{
log.error(e.getLocalizedMessage(), e);
}
catch (InvocationTargetException e)
{
log.error(e.getLocalizedMessage(), e);
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
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
;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
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
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
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
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
*** end server.xml ***
*** App web.xml except ***
JNDI DataSource for [appname] database.
(From Oreilly "JavaServer Pages", Bergsten, 2nd Ed., page 485)
jdbc/oponline
j
#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
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
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
"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
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
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@
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
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
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
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
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
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
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
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
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
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
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.
42 matches
Mail list logo