I have set my proxy in the build.properties file per
directions on the jakarta build faq:
# - Proxy setup -
# Uncomment if using a proxy server.
proxy.host=caproxy.ca.com
proxy.port=80
proxy.use=on
But I am still getting the following:
Hi;
I have multiple domains on my website (IIS). I would like to do the
following.
When a user goes to http://www.windward.net/cart.jsp or
http://www.windwardreports.com/cart.jsp that it then loads the jsp page in
the root of a specific webapp of mine.
In other words, all requests for a .jsp
'
Subject: Asking again: Final questions: Default pages
Hi;
I have multiple domains on my website (IIS). I would like to do the
following.
When a user goes to http://www.windward.net/cart.jsp or
http://www.windwardreports.com/cart.jsp that it then loads
the jsp page in
the root
PROTECTED]
Sent: Monday, September 12, 2005 10:07 AM
To: Tomcat Users List
Subject: RE: Asking again: Final questions: Default pages
Hi,
Just don't bother putting the domain in the mapping from IIS to Tomcat, e.g
/*.jsp=ajp13
would capture both domain requests and forward to Tomcat.
Allistair
PROTECTED]
Sent: 12 September 2005 17:21
To: 'Tomcat Users List'
Subject: RE: Asking again: Final questions: Default pages
Hi;
What I am trying to do is beable to have a url of
www.windward.net/cart.jsp
instead of www.windward.net/stroe/cart.jsp. Is there any way
to get the
servlet
David Thielen [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi;
First off thanks to all for help - I think I'm just about done. Question:
workers.properties.minimal (which works fine) only has:
worker.list=ajp13w
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
David Thielen [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi;
I have multiple domains on my website (IIS). I would like to do the
following.
When a user goes to http://www.windward.net/cart.jsp or
http://www.windwardreports.com/cart.jsp that it then loads the jsp page in
Hello;
I'm sorry but I don't understand your answer.
Thanks - dave
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker
Sent: Sunday, September 11, 2005 7:48 PM
To: tomcat-user@jakarta.apache.org
Subject: Re: Final questions: Default pages
David Thielen
Hi;
First off thanks to all for help - I think I'm just about done. Question:
workers.properties.minimal (which works fine) only has:
worker.list=ajp13w
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009
While workers.properties (not load balancing) also
Hi;
I have multiple domains on my website (IIS). I would like to do the
following.
When a user goes to http://www.windward.net/cart.jsp or
http://www.windwardreports.com/cart.jsp that it then loads the jsp page in
the root of a specific webapp of mine.
In other words, all requests for
Please respond to
Tomcat Users List tomcat-user@jakarta.apache.org
To
Tomcat Users List tomcat-user@jakarta.apache.org
cc
Subject
Re: Security Questions Regarding Tomcat
This sounds really fishy. Tomcat does not by default have any
connectors configured for port 80. There must be another
tomcat-user@jakarta.apache.org
cc
Subject
Re: Security Questions Regarding Tomcat
This sounds really fishy. Tomcat does not by default have any
connectors configured for port 80. There must be another service or
you've modified your server.xml somehow.
--David
Robert V. Coward/CTR/OSAGWI wrote
tomcat-user@jakarta.apache.org
cc
Subject
Re: Security Questions Regarding Tomcat
But it's also commented out and not active. It's there as an example of
a proxied port if you happen to be using Apache and mod_rewrite as a
front end to tomcat.
--David
Robert V. Coward/CTR/OSAGWI wrote:
Hmmm
Robert V. Coward/CTR/OSAGWI wrote:
Hmmm. Well take a look at this entry from the server.xml file:
!-- Define a Proxied HTTP/1.1 Connector on port 8082 --
!-- See proxy documentation for more information about using this.
--
!--
Connector port=8082
maxThreads=150
Users List tomcat-user@jakarta.apache.org
cc
Subject
Re: Security Questions Regarding Tomcat
Robert V. Coward/CTR/OSAGWI wrote:
Hmmm. Well take a look at this entry from the server.xml file:
!-- Define a Proxied HTTP/1.1 Connector on port 8082 --
!-- See proxy documentation
Robert V. Coward/CTR/OSAGWI wrote:
Understood. But I do not want to use Tomcat proxying services. I just want
to host 8080 locally and let my ipfilter firewall block and proxy for me.
Then the default Tomcat configuration of listening on port 8080 is
just what you need. I highly recommend
To
Tomcat Users List tomcat-user@jakarta.apache.org
cc
Subject
Re: Security Questions Regarding Tomcat
Robert V. Coward/CTR/OSAGWI wrote:
Understood. But I do not want to use Tomcat proxying services. I just
want
to host 8080 locally and let my ipfilter firewall block and proxy for
me
PROTECTED]
08/15/2005 10:30 AM
Please respond to
Tomcat Users List tomcat-user@jakarta.apache.org
To
Tomcat Users List tomcat-user@jakarta.apache.org
cc
Subject
Re: Security Questions Regarding Tomcat
Robert V. Coward/CTR/OSAGWI wrote:
Understood. But I do not want to use Tomcat proxying
cc
Subject
Re: Security Questions Regarding Tomcat
Regardless of what you put up in front of tomcat to act as the proxy
host, you'll most likely need the proxyPort and proxyName attributes in
your connector so tomcat can write urls correctly as needed (like in
sending external redirects). I
-Original Message-
From: Alon Belman [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 11, 2005 4:20 PM
To: Tomcat Users List
Subject: Re: Security Questions Regarding Tomcat
copied share to meb/robo
laters!
On 8/11/05, LFM [EMAIL PROTECTED] wrote:
Tim,
Thanks for the reply, but I can't get
Harrell, Ralph wrote:
I would like to be able to start TOMCAT as a non-root
user but am unable to as we are running SSL and use
port 443 and non-root users do not have the permission
to use ports under 1000.
...not in Linux and some (all?) Unix variants, anyway.
(FWIW I think this
Alon Belman [EMAIL PROTECTED]
Subject
Re: Security Questions Regarding Tomcat
Harrell, Ralph wrote:
I would like to be able to start TOMCAT as a non-root
user but am unable to as we are running SSL and use
port 443 and non-root users do not have the permission
to use ports under 1000
Robert V. Coward/CTR/OSAGWI wrote:
Apparently T5 comes with a port 80 proxy server a special servlet
container or something. Basically I have ipfilter running and only allow
access to port 8080, but if you send a request to 80 tTomcat picks up and
does some sort of internal redirect to port
ports under 1000.
Ralph B. Harrell
UNC Charlotte
Manager, Oracle Database Administration
[EMAIL PROTECTED]
(704) 687-2951
-Original Message-
From: Alon Belman [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 11, 2005 4:20 PM
To: Tomcat Users List
Subject: Re: Security Questions Regarding
port 8080 access to
the web.
Thanks
Paul Singleton [EMAIL PROTECTED]
08/12/2005 10:08 AM
Please respond to
Tomcat Users List tomcat-user@jakarta.apache.org
To
Tomcat Users List tomcat-user@jakarta.apache.org
cc
Alon Belman [EMAIL PROTECTED]
Subject
Re: Security Questions Regarding Tomcat
I don't know -- I can see some value to the root only ports below 1024.
It prevents non-privileged users from stealing trusted service ports in
a mainframe environment -- not that that's a reality anymore. The best
way to handle this in a production environment is to use the
commons-daemon
Tim, list:
Where can I find documentation regarding limting HTTP methods using
security-constraints?
All I was able to do was requiere authentication in order to use some HTTP
methods but I would like to limit them like it can be donde with the
directive Limit in Apache.
I will also appreciate
Leandro Meiners wrote:
Where can I find documentation regarding limting HTTP methods using
security-constraints?
The Security section of the Servlet 2.4 Spec (SRV.12) has some good
examples -- highly recommended :-)
FWIW!
--
Hassan Schroeder - [EMAIL PROTECTED]
Hi!
I'm hardening a Web Server running Tomcat for a client, but I'm having
difficulty in finding information on how to accomplish the following
tasks (bored of googling so I decided to ask here):
1. Remove/modify the banner presented by the coyote connector on the
server header of an http reply.
The Server header can be configured in the Connector declaration.
server='Sun Solaris IIS/6.0'
To limit the HTTP methods this can be done a few ways;
1) Use a servlet filter
2) Use web.xml and security constraints on those method types
3) ???
-Tim
LFM wrote:
Hi!
I'm hardening a Web Server
Tim,
Thanks for the reply, but I can't get in working:
In conf/server.xml I added server=TEST, as shown:
!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8180 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=8180 minProcessors=5 maxProcessors=75
enableLookups=true
copied share to meb/robo
laters!
On 8/11/05, LFM [EMAIL PROTECTED] wrote:
Tim,
Thanks for the reply, but I can't get in working:
In conf/server.xml I added server=TEST, as shown:
!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8180 --
Connector
Setting the server header is a tomcat 5.5 feature.
-Tim
LFM wrote:
Tim,
Thanks for the reply, but I can't get in working:
In conf/server.xml I added server=TEST, as shown:
!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8180 --
Connector
I am implementing my first JAAS implementation and have some
problems/questions.
Firstly my commit method of my LoginModule does the following (User and Role
both implement Principal)
// Create a new User Principal with the user name retrieved from the
NameCallback
User user = new User(username
.
Filip
Mark Eggers wrote:
I'm looking at clustering and have a few questions.
1. In the documentation, the Cluster element is shown
as a child of the Engine element. In the example
server.xml the Cluster element is shown in the Host
element.
When I put the Cluster element in the Host
Hey Mark,
Mark Eggers schrieb:
I'm looking at clustering and have a few questions.
1. In the documentation, the Cluster element is shown
as a child of the Engine element. In the example
server.xml the Cluster element is shown in the Host
element.
When I put the Cluster element in the Host
I'm looking at clustering and have a few questions.
1. In the documentation, the Cluster element is shown
as a child of the Engine element. In the example
server.xml the Cluster element is shown in the Host
element.
When I put the Cluster element in the Host element, I
get clustering messages
configured correctly and/or isn't
available to the code from the .war file running inside of the embedded
tomcat.
Questions:
1) Is my jndiPrePend variable correct? It works for a standard deployment
on a non-embedded tomcat.
2) Is there anything special I need to do to get a jndi/jdbc resource
/ JMeter / Profiler questions
We've started performance testing one of our REMOTE web apps
using JMeter.
We're gathering benchmark data before doing further fine
tuning.
Details:
Win2K
only have ssh + cygwin access to this remote server
JDK 1.4.1_03
Tomcat 4.1.26, running
Users List
Subject: RE: OutOfMemory / JMeter / Profiler questions
You probably have either very large or very many sessions which
Tomcat is attempting to reload on startup. Tomcat serialises
sessions into files called SESSIONS.ser (in the application
directories under the work dir
March 2005 15:15
To: Tomcat Users List
Subject: RE: OutOfMemory / JMeter / Profiler questions
Alan,
Thanks for your feedback. You got me curious here: Why does/would Tomcat
reload sessions after startup? Aren't the sessions destroyed upon Tomcat
shutdown?
Also, I could only find a
$TOMCAT_HOME
Matt,
Thanks for your feedbackwhich triggered more questions below!
-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: 04 March 2005 15:26
To: Tomcat Users List
Subject: RE: OutOfMemory / JMeter / Profiler questions
Hi,
Tomcat always serializes sessions
: OutOfMemory / JMeter / Profiler questions
Matt,
Thanks for your feedbackwhich triggered more questions below!
-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: 04 March 2005 15:26
To: Tomcat Users List
Subject: RE: OutOfMemory / JMeter / Profiler questions
Hi
service restart!
From the stack trace below, you can see we get the OOM before any of our code
is executed :(
Questions:
a.. Anyone has seen this behavior upon Tomcat start up?
b.. Anything particular to watch for in our JMeter test plan?
c.. Would a profiler help? Could it profile a remote
We've started performance testing one of our REMOTE web apps using JMeter.
We're gathering benchmark data before doing further fine
tuning.
Details:
Win2K
only have ssh + cygwin access to this remote server
JDK 1.4.1_03
Tomcat 4.1.26, running as a service:
a.. Use security manager 1
/ Profiler questions
Hello Tomcat'oids!
We've started performance testing one of our REMOTE web apps using JMeter.
We're gathering benchmark data before doing further fine
tuning.
Details:
Win2K
only have ssh + cygwin access to this remote server
JDK 1.4.1_03
Tomcat 4.1.26, running as a service
Hello,
I am running Tomcat 4.1.31 at work (dev) and I have a 5.0.28 at home. I have
been working with Tomcat for quite some time, and ran into a problem trying to
set up a webapp. At work on my 4.1.31, when create a new web-app, I edit the
server.xml file and add my Context (see context
in the configuration section.
Come back if you need more help after reading those.
Cheers, Allistair.
-Original Message-
From: Scott Purcell [mailto:[EMAIL PROTECTED]
Sent: 01 March 2005 14:09
To: tomcat-user@jakarta.apache.org
Subject: Questions About jakarta-tomcat-5.0.28
-
From: Scott Purcell [mailto:[EMAIL PROTECTED]
Sent: 01 March 2005 14:09
To: tomcat-user@jakarta.apache.org
Subject: Questions About jakarta-tomcat-5.0.28
Hello,
I am running Tomcat 4.1.31 at work (dev) and I have a 5.0.28
at home. I have been working with Tomcat for quite some
which is a good thing.
Note the above will not work per se in Tomcat 5.5, there are further changes to
that
A.
-Original Message-
From: Matt [mailto:[EMAIL PROTECTED]
Sent: 01 March 2005 14:20
To: Tomcat Users List
Subject: RE: Questions About jakarta-tomcat-5.0.28
Yes
,
these are hand-coded and hand maintainted html pages. I'm targetting these
for removal and redesign, since they are ugly to boot.
Anyway my questions are this. Should I start implementing pieces like
load-balancing, database connection pooling, and caching, gzip output in the
new pieces so
Hello;
When creating a realm does the table name have to be 'user'?
Realm className=org.apache.catalina.realm.JDBCRealm debug=99
driverName=org.gjt.mm.mysql.Driver
connectionURL=jdbc:mysql://localhost/tomcatusers?user=dbUseramp;password=d
bUser
userTable=tomcatusers
Dear Tomcat users,
1. what exactly should the icon tags inside the web.xml do ? Is it simply
a
central reference for components within the webapp or does it have more
powerful
implications. i.e. the small icon will be used as an favicon type icon,
whenever a user
bookmarks a page from the
I grep'ed through the tomcat 5.5.4 sources and found
nio under org.apache.catalina.cluster - what's up with
that? Not currently in use?
tia
--- Tim Funk [EMAIL PROTECTED] wrote:
There is no nio in tomcat.
-Tim
T K wrote:
Hi,
1) Is T5.0 nio based?
2) Is T5.5 nio based?
3) For
nio is used for clustering to replicate HttpSessions to other nodes in the
cluster. nio is not used for talking to the web browser.
-Tim
T K wrote:
I grep'ed through the tomcat 5.5.4 sources and found
nio under org.apache.catalina.cluster - what's up with
that? Not currently in use?
tia
--- Tim
Hi,
1) Is T5.0 nio based?
2) Is T5.5 nio based?
3) For the version that's nio based, how many threads
are typically in use?
4) Are there any articles on performance diffs between
the two versions?
5) Why would one want to use one over the other?
6) Why would one want to use any of them over 4.1
There is no nio in tomcat.
-Tim
T K wrote:
Hi,
1) Is T5.0 nio based?
2) Is T5.5 nio based?
3) For the version that's nio based, how many threads
are typically in use?
4) Are there any articles on performance diffs between
the two versions?
5) Why would one want to use one over the other?
6) Why
To: Tomcat Users List
Subject: Re: apache2 tomcat5 jk2 questions
On Fri, Jan 07, 2005 at 06:02:14PM +0100, Nikola Milutinovic wrote:
: Sorry. I was as bitten by the news as you are. The thing is, if it is
: working, not only shouldn't you fix it, but relax. JK2 is OK - if it
: works. It is a stable
Casas, Claudia wrote:
No way! I just got my server completely working on jk2!
Does anybody have any links or resources that talk about this. If this
is really a big issue, I will definitely move back to jk
Sorry. I was as bitten by the news as you are. The thing is, if it is
working, not only
On Fri, Jan 07, 2005 at 06:02:14PM +0100, Nikola Milutinovic wrote:
: Sorry. I was as bitten by the news as you are. The thing is, if it is
: working, not only shouldn't you fix it, but relax. JK2 is OK - if it
: works. It is a stable mechanism, it is just not going to be developed
: any more.
To: Tomcat Users List
Subject: Re: apache2 tomcat5 jk2 questions
I believe that I have read that mod_jk2 was to stop being supported as
of 11/15/04. It might be something to think about if you start seeing
more bugs. I have reverted all of my boxes to mod_jk which serves
just as fast for me.
-j
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/news/20041100.html#2
0041115.1
-Original Message-
From: Casas, Claudia [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 06, 2005 12:49 PM
To: Tomcat Users List
Subject: RE: apache2 tomcat5 jk2 questions
No way! I just got my server
Hello everybody,
I have configured jk2 successfully finally to work with apache and
tomcat.
#!Question 1
I have included the following in my server.xml file:
Context path=/ccasas docBase=/home/ccasas/wwwdocs debug=0
reloadable=true crossContext=true
/Context
This allows me to see my jsp
Please Read your Documentation at this page
http://myserver:8080/tomcat-docs/config/host.html
and that should answer your question.
Read the section that says:
User Web Applications
Casas, Claudia wrote:
Hello everybody,
I have configured jk2 successfully finally to work with apache and
tomcat.
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 05, 2005 11:03 AM
To: Tomcat Users List
Subject: Re: apache2 tomcat5 jk2 questions
Please Read your Documentation at this page
http://myserver:8080/tomcat-docs/config/host.html
and that should answer your question.
Read the section that says:
User
List
Subject: Re: apache2 tomcat5 jk2 questions
Please Read your Documentation at this page
http://myserver:8080/tomcat-docs/config/host.html
and that should answer your question.
Read the section that says:
User Web Applications
Casas, Claudia wrote:
Hello everybody,
I have configured jk2
, January 05, 2005 11:03 AM
To: Tomcat Users List
Subject: Re: apache2 tomcat5 jk2 questions
Please Read your Documentation at this page
http://myserver:8080/tomcat-docs/config/host.html
and that should answer your question.
Read the section that says:
User Web Applications
Casas, Claudia
) more
easily anyway.
In the process, though, I'm getting to know the Tomcat WebDAV source
pretty well, and I have a few questions that hopefully will help make
the Tomcat WebDAV servlet better.
* In DefaultServlet, after doGet() serves a resource, the servlet checks
the exception and, if its
Garret Wilson wrote:
* I note that WebDAVServlet keeps a static SimpleDateFormat around for
quickly formatting the creation date/time. The Java API docs for
DateFormat indicate that date formats are not synchronized. Does this
raise the potential for corrupted date printing, should multiple
From: Mark Thomas [mailto:[EMAIL PROTECTED]
The best way forward is to create a bugzilla item for
this and list the issues you find in that. Even better, would
be if you had patches for some (or all) of these ;)
The Bodington III project over here in the UK will also have to face and
fix
Peter Crowther wrote:
From: Mark Thomas [mailto:[EMAIL PROTECTED]
The best way forward is to create a bugzilla item for
this and list the issues you find in that. Even better, would
be if you had patches for some (or all) of these ;)
The Bodington III project over here in the UK will also have
Yoav,
Thanks for your feedback. My findings are interleaved below.
Bill.
Question 1: Is this hosts-file approach feasible? Does tomcat care HOW
domain names
are mapped to IP addresses?
It's more of a Java networking question that Tomcat question. I'm not
sure how java's InetAddress class
Laba diena.
Dkojame, kad mums parate.
Js atsista inut isaugota ms duomen bazje.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
The mapping of domain names to ip's is done (as usual) in the IP stack.
Thus, using the /hosts /files on
tomcat client and server boxes works fine for development scenarios
where you do not want to
expose you production domain names to the Internet via DNS. I
originally
asked the question
Hi there,
I'm using Tomcat 4.1.27 on AIX 5.2
I have a shared binary setup for Tomcat where:
server.xml is the default instance
server_vhost1.xml is one of the dev instances
I have made a config change to the server_vhost1.xml file and I need to
implement that change. In order to do so, I
I need to set up a few virtual hosts for a development project, and
being new to Tomcat virtual hosts, have a couple of questions:
---
1. In development, the clients and tomcat will be on an intranet. I plan
to use the hosts files of the client and tomcat boxes to map domain
Hi,
1. In development, the clients and tomcat will be on an intranet. I
plan
to use the hosts files of the client and tomcat boxes to map domain
names to IP addresses, thereby preempting invocation of DNS, and thus
exposure of our product-specific domain names to the Internet at-large,
until the
names
defined seperatly, server.xml has those names in each host area (they are
setup as seperate tomcat instances).
From: Bill Winspur [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Virtual Hosting Questions
Date: Wed, 17 Nov 2004
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Subject: RE: Virtual Hosting Questions
It's more of a Java networking question that Tomcat question. I'm not
sure how java's InetAddress class likes hosts files: my guess
is they're ignored.
Using the hosts file is the responsibility
you can see it in the logs too ..
INFO | jvm 1 | 2004/11/17 15:09:03 | Nov 17, 2004 3:09:03 PM
org.apache.jk.common.ChannelSocket init
INFO | jvm 1 | 2004/11/17 15:09:03 | INFO: JK2: ajp13 listening on
/0.0.0.0:9009
I seem to recall seeing code in some component of Tomcat that
Bill,
I believe I know what you are trying to do. I have
done the a smiliar thing. Let me answer your
questions one at a time.
I need to set up a few virtual hosts for a
development project, and
being new to Tomcat virtual hosts, have a couple of
questions:
By virtual hosts, I assume you
!
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 02, 2004 11:19 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Questions on loading servlet vs. loading JSP
Hi,
As you know, a JSP is just a servlet after it's compiled. A JSP call
-
From: John MccLain [mailto:[EMAIL PROTECTED]
Sent: Wednesday 03 November 2004 16:54
To: Shapira, Yoav; Tomcat Users List
Subject: RE: Questions on loading servlet vs. loading JSP
Thank you for your reply, but after reading your message, I may be
proceeding down a rabbit hole.
I don't
I have a webapp.
In 2 servlets, I call JNI code.
When I call the servlets from a browser DIRECTLY, all is well and the code
executes.
When the servlets get called from JSP's, the JNI code hangs.
I know I am cleaning up after myself in the JNI code
What is the difference in how Tomcat loads
; Tomcat user list
Subject: Questions on loading servlet vs. loading JSP
I have a webapp.
In 2 servlets, I call JNI code.
When I call the servlets from a browser DIRECTLY, all is well and the
code
executes.
When the servlets get called from JSP's, the JNI code hangs.
I know I am cleaning up after
Hi,
Am new to log4j. Am using Tomcat 5 and my webapp-myNiceWebApp is in
Tomcat/webapps/myNiceWebApp
I have a class that I have the following code in:
Logger logger = Logger.getLogger(Helper.class);
SimpleLayout layout = new SimpleLayout();
Log4j looks on your class path for a properties file
log4j.properties. If you put the file in WEB-INF/classes
it will find it.
Here's a real simple example:
log4j.rootCategory=DEBUG, dest1
log4j.appender.dest1=org.apache.log4j.RollingFileAppender
I just did that. I have a log4j.properties file with the following:
# initialise root logger with level DEBUG and call it A1
log4j.rootLogger=DEBUG, A1
# set the appender to be FileAppender
log4j.appender.A1=org.apache.log4j.FileAppender
# set set that layout to be SimpleLayout
I just did that. I have a WEB-INF/classes/log4j.properties file with
the following:
# initialise root logger with level DEBUG and call it A1
log4j.rootLogger=DEBUG, A1
# set the appender to be FileAppender
log4j.appender.A1=org.apache.log4j.FileAppender
# set set that layout to be SimpleLayout
Try pulling out the:
PropertyConfigurator.configure(log4j.properties)
line.
You shouldn't need it.
Just let log4j find it in your classes directory.
On Thu, 2004-10-28 at 20:14, Mufaddal Khumri wrote:
I just did that. I have a WEB-INF/classes/log4j.properties file with
the following:
#
Ah, sorry. I didn't look closely enough at your code.
The first example on this page shows how to read a properties file
using getResourceAsStream(). Use that to get the properties file for the
Configurator.
http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Howto
On Thu, 2004-10-28
Thanks QM!
-Original Message-
From: QM [mailto:[EMAIL PROTECTED]
Sent: October 1, 2004 4:05 PM
To: Tomcat Users List
Subject: Re: newbie questions
On Fri, Oct 01, 2004 at 03:42:09PM -0600, Cameron Roe wrote:
: Ok so here goes. I want a have a version of the JavaDoc for the Java
Servlet
Hi
Finally for the stupid question of the day. I notice alot of information
re: merging apache and tomcat. My question is why? I'm assuming the Apache
is better at serving web pages that Tomcat but is that the only reason? It
would seem that for a small website, just having Tomcat would be fine.
Hi all,
Ok so here goes. I want a have a version of the JavaDoc for the Java Servlet
API on my local machine. I can then link in my IDE and get mouse-over
javadoc for the Servlet API. Where do I get it? I know the Javadoc is
available online but I would like to have a local copy.I've looked at
On Fri, Oct 01, 2004 at 03:42:09PM -0600, Cameron Roe wrote:
: Ok so here goes. I want a have a version of the JavaDoc for the Java Servlet
: API on my local machine. I can then link in my IDE and get mouse-over
: javadoc for the Servlet API. Where do I get it?
java.sun.com, there should be a
be confused by the name.
I hope this clears things up for you a bit.
Yoav Shapira
Millennium Research Informatics
-Original Message-
From: fabio [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 29, 2004 12:30 AM
To: [EMAIL PROTECTED]
Subject: Getting started questions about Jakarta
Hi
Hi.
I want to develop solutions based on Java. The servers are running
Solaris sparc, we want to use apache httpd server. I would like to know
What exactly is the different from Jakarta and conventional apache
server version?. The analogy is jakarta is to tomcat like apache is to
mod_foo ?
: Friday, September 10, 2004 11:15 PM
To: [EMAIL PROTECTED]
Subject: RE: [OFF-TOPIC]Yoav -- RE: Some pretty basic
TomcatConnectionPooling Questions
Hi Yoav and all,
Thanks for your reply,
But you went a bit too far: the DataSource lookup is potentially
expensive. That you can do in the init
ConnectionPooling Questions
This is what I do and would like to have feedbacks:
import java.sql.Connection;
import java.sql.SQLException;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.sql.DataSource;
public class DBConnection
{
public static Connection
:03
To: Tomcat Users List
Subject: RE: [OFF-TOPIC]Yoav -- RE: Some pretty basic Tomcat
ConnectionPooling Questions
Hi,
It's inefficient to do the DataSource lookup (an expensive operation)
every time you need a connection. See Luke's approach in the other
message with a similar
1 - 100 of 627 matches
Mail list logo