Caldarale, Charles R wrote:
Thanks.
From: Santosh Puranshettiwar [mailto:[EMAIL PROTECTED]
Subject: Re: Realm authentication - unconventional usage
So seems like I *will* have to stick to application layer
authentication, or is there a way out?
Why can't you use one of the standard, spe
> From: Warren [mailto:[EMAIL PROTECTED]
> Subject: java.io.FileNotFoundException: webapp not found
>
> java.io.FileNotFoundException: webapps\myapp (The system
> cannot find the path specified)
1) Do you have a webapps/myapp directory?
2) Do you have a webapps/myapp.war file?
3) Do you have
I keep getting a java.io.FileNotFoundException when Tomcat starts. I
will get one for each app I have. My app still works though. I am
running Tomcat on a Windows XP box.What do I need to do to fix this?
Thanks,
Warren
Nov 22, 2006 6:55:44 PM org.apache.coyote.http11.Http11Protocol init
INFO:
Hello,
Sorry, just a test message while debugging a sendmail issue.
Please ignore.
Thanks.
mp
--
Michael Powe[EMAIL PROTECTED] Naugatuck CT USA
"I'm wondering if there's a family of four living in my nose, it
sometimes seems so big!" -- Sylvester Stallone
pgpYeYo
I have added a filter to my application, which pushed the NDC (Nested Debug
Context) which includes the username, remote IP, and other information about
the user. Then %x will display this in the log file. Of course you become
explicitly dependent on log4j if you do this.
I'm not aware of a comp
Moreover, you should never put your applicaiton jars to common/lib since
then those will be loaded by Application classloader and not
WebAppClassLoader. This results in serious problems when you are running
multiple web apps or upgrading your application's version.
On 11/22/06, Caldarale, Charles
About thread dump:
When you are using Tomcat Manager to dump threads, it might be doing that in
your catalina.out file. So check that file after dumping.
About timer threads:
When you stop Tomcat, it waits for all the non-daemon threads to finish
execution before proceeding with normal shutdown.
The Apache Tomcat team announces the immediate availability of Apache
Tomcat 6.0.2 beta. This release is the first non alpha release of the
6.0.x branch.
Apache Tomcat 6.0 includes new features over Apache Tomcat 5.5,
including support for the new Servlet 2.5 and JSP 2.1 specifications, a
refacto
I am not sure if putting log4j.properties in WEB-INF will work. It has to be
in the classpath. So he will need to put it in WEB-INF/classes.
On 11/23/06, Andrew Stepanenko <[EMAIL PROTECTED]> wrote:
I'm not sure about this line:
> log4j.rootLogger=WARN,monAppender
In my log4j.properties it is:
> From: Ken Ramey [mailto:[EMAIL PROTECTED]
> Subject: Administration Links
>
> None of the links work. Not "Status", "Tomcat
> Administration" or "Tomcat Manager". "Status"
> and "Tomcat Manager" go to the default 404 page.
Sounds like the admin unzip went seriously awry. You should have en
I have an installation of Tomcat 5.5.20 that seems to be working fine except
for the "Administration" Links at the top left of the default index.jsp. I
downloaded the "admin" package and un-zipped it into the ${CATALINA_HOME}
directory as described in several places. I added an "admin" user to t
Rainer,
I did a find for apachectl and it finds it in three locations
/usr/apache/bin/apachectl
/usr/apache2/bin/apachectl
/opt/csw/apache2/sbin/apachectl
The first is an apache 1.3 install, the second an apache 2.0.52
install the the third is an apache 2.2.3 install.
After looking at the pack
I'm not sure about this line:
log4j.rootLogger=WARN,monAppender
In my log4j.properties it is:
log4j.rootCategory=info, stdout, file
Also I don't use commons-logging.properties in my setup. In 5.0.28 and
5.5.17 it worked well. Try putting log4j.properties also in
YOUR_WEBAPP\WEB-INF directory.
ben short schrieb:
> Rainer,
>
> Running the svcadm enable apache2 command without the LoadModule
> starts apache correctly.
>
> Someone else pointed out that using svcs -xv will show me the logfile
> I need to look at, and I see the following error..
>
> [ Nov 22 19:35:06 Method "start" exited
No, no way... I've put this in commons-logging.properties :
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
org.apache.commons.logging.simplelog.log.org.apache.commons.digester.Digester=debug
org.apache.commons.logging.simplelog.log.org.apache.commons.digester.Digeste
try putting log4j.properties in $CATALINA_HOME/common/classes
Regards,
Andrew Stepanenko
http://unf.tane.edu.ua
On 11/22/06, Pierre Goupil <[EMAIL PROTECTED]> wrote:
Hi !
1) English
2) French
1) I've just tried this. Tomcat's doc tells to put the file into the
classpath and I can't figure h
Duh - newbie mistake. Restating fixed it.
Thank you so much.
-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 22, 2006 12:28 PM
To: Tomcat Users List
Subject: RE: help - can't login to brand new tomcat install
> From: Shahnawaz Khatri
Hi !
1) English
2) French
1) I've just tried this. Tomcat's doc tells to put the file into the
classpath and I can't figure how to set this classpath. I've tried to give
an Eclipse Preferences / Build path / Classpath variable as well as using
the -cp option at server launch, but the machine d
Rainer,
Running the svcadm enable apache2 command without the LoadModule
starts apache correctly.
Someone else pointed out that using svcs -xv will show me the logfile
I need to look at, and I see the following error..
[ Nov 22 19:35:06 Method "start" exited with status 1 ]
[ Nov 22 19:35:06 Ex
> From: Shahnawaz Khatri [mailto:[EMAIL PROTECTED]
> Subject: help - can't login to brand new tomcat install
>
> and made sure that the $CATALINA/conf/tomcat-users.xml looks
> like this:
Did you restart Tomcat after updating tomcat-users.xml? Note that
Tomcat itself updates the file, so it sho
Hello,
I've installed tomcat on this server (linux fedora 5):
http://209.135.157.136:8080/
and made sure that the $CATALINA/conf/tomcat-users.xml looks like this:
Server.xml is the default. I didn't change it.
I try to get to the manager with tomcat/tomcat
> From: Vinicius Carvalho [mailto:[EMAIL PROTECTED]
> Subject: Re: Setting proper values for connections inside Connector
>
> Thanks Chuck. We are indeed using AJP, and in our worker.properties
> the port is set to 8009. Just a final question, would be a nice thing
> to do reduce the number of th
Thanks Chuck. We are indeed using AJP, and in our worker.properties
the port is set to 8009. Just a final question, would be a nice thing
to do reduce the number of threads in the 8080 since its not being
used (let's just to a 10 or so for the manager, admin consoles), or
would it make no differen
Hi Ben,
before you integrate your apache into Solaris SMF (service management
facility) you should first check, if apache does really work.
So begin by using the usual apachectl script and once you debugged your
configuration and the functionality looks good, you can use SMF to
reliably star
> From: Vinicius Carvalho [mailto:[EMAIL PROTECTED]
> Subject: Setting proper values for connections inside Connector
>
> which one should I change 8080 or 8009 in order to
> accept more connections through apache?
Assuming you're using the AJP connector to handle requests from httpd,
you'd cha
Hi,
Sorry if that this is a bit off topic but i figured someone might have
some experience.
I'm trying to get Apache 2 to use mod_jk in a Solaris 10 Zone. I have
installed the ap2_mod_jk package from blastwave with no errors. I
added the following line to the correct httpd.conf
LoadModule jk_mo
Hello there! We have a tomcat server behind a apache server. We need
to increase the maximum number of simultaneous connections. I know
that this is done through server.xml, inside the connector
configuration, but my question is, which one should I change 8080 or
8009 in order to accept more conne
Hi !
Yes, of course ! I'm using WTP's "server" view. And I would like to be able
to launch Tomcat from it again.
Pierre
--
"L'une des raisons pour lesquelles la vie est complexe
C'est qu'elle a une partie réelle et une partie imaginaire."
Hi pierre,
Simply what is your question ?
Did you try wtp ?
On 11/22/06, Pierre Goupil <[EMAIL PROTECTED]> wrote:
Hi all !
I once had a Tomcat 5.5 and an Eclipse 3.2 that where running just fine and
then... the HDD crashed... I suffered no data lost but since then, I can't
start Tomcat anymore
Hi all !
I once had a Tomcat 5.5 and an Eclipse 3.2 that where running just fine and
then... the HDD crashed... I suffered no data lost but since then, I can't
start Tomcat anymore. The "server" view of Eclipse gives me the following
trace :
Exception in thread
> From: Spammed TooMuch [mailto:[EMAIL PROTECTED]
> Subject: Disabled Admin and Manager creating empty log files
>
> But, we are still seeing, empty, admin..log and
> manager..log files in $CATALINA_HOME/logs!
Go into conf/logging.properties and remove or comment out the various
entries for adm
Hi Guys,
I am having difficulty with deploying an application using Tomcat 5.0 .
I am deploying a .war file that contains a context.xml
file in the META-INF directory.
Before starting the Tomcat server I
remove the unpacked directory from tomcat/webapps
remove the .xml from tomcat/conf/Cata
Hi,
For security, we've disabled the admin and manager app's in our Catalina
deployment by removing their XML files. But, we are still seeing, empty,
admin..log and manager..log files in $CATALINA_HOME/logs! I've
looked through the FAQs and googled till I'm blurry eyed but seeing nothing
> From: Daniel L. Gross [mailto:[EMAIL PROTECTED]
> Subject: Re: Memory Usage
>
> I have tried various times in the tomcat configuration
> file, but nothing seems to matter.
This isn't a Tomcat configuration value - it's for the specific JDBC
driver that your app is using. Might want to check t
In MySql the timeout is 10 seconds. I have tried various times in the
tomcat configuration file, but nothing seems to matter.
-- Dan
Caldarale, Charles R wrote:
From: Daniel L. Gross [mailto:[EMAIL PROTECTED]
Subject: Re: Memory Usage
The tomcat start/stop manager has a dump threads optio
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Subject: WEB-INF/lib/*.jar
>
> it seems to me that my lib packages which are located under
> myapp/web/WEB-INF/lib can not be recognized by Tomcat.
Read the servlet spec: WEB-INF must be at the first level of the app
deployment directory (or
> From: Daniel L. Gross [mailto:[EMAIL PROTECTED]
> Subject: Re: Memory Usage
>
> The tomcat start/stop manager has a dump threads option,
> it doesn't seem to do anything when I click it.
Start Tomcat using catalina run, and then do whatever your OS needs to
send an interrupt (ctrl-break on Win
Hi,
Does tomcat setup this system property 'http.proxyHost" to "" when it runs?
If yes, can you please tell me how to disable that functionality?
Thank you.
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscrib
I think that will be my next attempt. There are two reasons I haven't
done that.
1. The original code for this application was written with a
direct-connect to the database because it was set up to run on either
Oracle or MySql, and it has been working fine up until we went to Tomcat
5.5.
How to I dump the threads, there doesn't seem to be an option in the
Profiler. The tomcat start/stop manager has a dump threads option, it
doesn't seem to do anything when I click it. Here's some additional
information from the profiler. It's a stack trace of the Timer-0 thread:
java.sql.Dr
Should it be:
myapp/WEB-INF/lib
Sounds like that path may have been set up by an IDE but not mapped in your
context. Check your docBase path in your context file.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 22 November 2006 15:34
To: Tomcat Users List
Subj
Dear all,
it seems to me that my lib packages which are located under
myapp/web/WEB-INF/lib can not be recognized by Tomcat.
If I move my packages to common/lib, then it works fine.
Is there any trick how the packages under myapp/web/WEB-INF/lib can be
found by Tomcat?
Thanks,
Gop
-
As an additional note: I put up a simple test servlet that prints to
the screen and it does not leave any threads hanging nor does it have a
memory problem so it is definately something connected to how I use the
J-Connector or open and close the database. The problem only occurs
when I make
> From: Santosh Puranshettiwar [mailto:[EMAIL PROTECTED]
> Subject: Re: Realm authentication - unconventional usage
>
> So seems like I *will* have to stick to application layer
> authentication, or is there a way out?
Why can't you use one of the standard, spec-defined, container-managed
mechan
> From: Daniel L. Gross [mailto:[EMAIL PROTECTED]
> Subject: Re: Memory Usage
>
> I looked at the profiler and it appears that there are many timer
> threads left hanging.
What do you mean by "timer threads"? What does a thread dump show about
them?
- Chuck
THIS COMMUNICATION MAY CONTAIN C
I looked at the profiler and it appears that there are many timer
threads left hanging. I have not set up a data source for Tomcat or any
connection pooling. I am opening a connection to the database directly
with the following code. Could this be causing my problem?
thanks again, Dan
pub
David Delbecq wrote:
There are only 5 ways to do authentification on a servlet application:
The first, FORM, use form that POST to /j_security_check the j_username
and the j_password
|web.xml:
FORM
/Error.html
/SignOn.html
|
|html:
|
The se
Netbeans profiler. Free and does a pretty good job.
http://profiler.netbeans.org/
http://profiler.netbeans.org/docs/help/5.5/profile_j2ee.html
asaf.lahav wrote:
Can anyone recommend a good (and FREE) java profiling tool that can be used
to profile a webapp running under Tomcat 5.5?
Thanks
wtp && tptp? (www.eclipse.org/)
On 11/22/06, asaf.lahav <[EMAIL PROTECTED]> wrote:
Can anyone recommend a good (and FREE) java profiling tool that can be used
to profile a webapp running under Tomcat 5.5?
Thanks in advance,
Asaf
--
"Souviens-toi qu'au moment de ta naissance tout le mon
Olivier,
Agree with your diagnosis and bug posted as #41016. There was nothing of note
in
GlobalNamingContext btw.
Anyone suffering the same thing can solve it quickly by (note last attribute of
localDataSource):
Thanks again for the workaround
Elliott
-Original Message-
From: oli
Yap, it seem that the mess is in :
http://svn.apache.org/repos/asf/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/realm/DataSourceRealm.java
###
protected Connection open() {
try {
Context context = null;
if (localDataSource) {
context
There are only 5 ways to do authentification on a servlet application:
The first, FORM, use form that POST to /j_security_check the j_username
and the j_password
|web.xml:
FORM
/Error.html
/SignOn.html
|
|html:
|
The second and third, BASIC a
Olivier
Brilliant. Good spot and that fixed the problem. Not sure from reading the link
why it fixed the problem to be honest (especially why I was getting App A's
login page in App B!?) but it is now working as I expect!
Many thanks
Elliott
-Original Message-
From: olivier nouguier
Hum, looking back to your previous post I've noticed that you are
using context local datasource and that you missed the
"localDataSource='true'" attributte in DataSourceRealm, perhaps il can
explain this behaviour.
Ref: http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html#DataSourceRealm
On
I just like to point you the usual / standard use of J2EE authentication in
a web tier !
http://java.sun.com/products/servlet/download.html
With restricted resources define in web.xml
Login page (FORM)
And a defined realm in context.xml (or server.xml)
No more ...
PS: I don't think it really s
Hi!
I have a working mail setup under Tomcat 5.0.28 - which somehow doesn't
seem to work with 5.0.25. The question is: why?
I copied 2 additional jars to $TOMCAT/common/lib:
- activation.jar
- mail.jar
Between the and tags I simply have:
I have this piece in cont
For a different approach to SSO you may read up from this link I think:
http://www.simongbrown.com/blog/2004/11/04/1099588633312.html
He uses Tomcat valves with Apache sitting in front. Headers are placed on the
request and read in. In fact this allows for SSO across different environments.
We
The reason might be that your threads are getting blocked and are not
returning to Tomcat's thread pool. In that case, since tomcat doesn't have
any worker thread left to cater to requests, it would seem that it has hung.
Also, when you try to terminate tomcat normally (using shutdown.sh), Tomcat
They are both FORM auth methods. I have not specified in web.xml any realm
attribute because it relates to BASIC authentication.
This is a snippet from web.xml and looks like pretty much for both apps.
FORM
/login.jsp
-Original Message-
From
See, tomcat doesn't create a thread per request. It uses one from the pool
and after doing its job the thread returns to the pool. What might be
happening in your case is that those threads are not going back to the pool
after processing the request. So you will need to find out where those
thread
i see, i will check for the problem usage i have only see the log i will
wait to see if request doesn t get answer again.
thanks
> Aha. And the other symptom should have changed too: as long as the
> messages are only info level messages, I would not expect any observable
> problem about applicatio
Aha. And the other symptom should have changed too: as long as the
messages are only info level messages, I would not expect any observable
problem about application usage (requests not getting responses, "tomcat
hangs" etc.).
Is that correct? If you still observe problems (apart from the info
olivier nouguier wrote:
Thanks.
Hi
The "natural" *post* should be
http://localhost/realm-test
/j_security_check?j_username=foo&j_password=bar
Let me make sure I got it right.
So you mean the request should be something like this: -
URL: -
http://localhost/realm-test?j_security_check
(method
I think comet does not use APR. Comet is pure Java code that uses NIO
(java.nio).
APR handles keep-alive using non-blocking native io (not java.nio)
Wednesday, November 22, 2006, 6:31:41 AM, you wrote:
JK> Hi everybody,
JK> This jayant from iTG Pvt. Ltd. India. I want to use the new feature come
Hi
The "natural" *post* should be
http://localhost/realm-test
/j_security_check?j_username=foo&j_password=bar
And should be OK.
What are your need ?
On 11/22/06, Santosh Puranshettiwar <[EMAIL PROTECTED]> wrote:
Hello,
I wish to user a JDBCRealm with the username & password coming in the
Hello,
I wish to user a JDBCRealm with the username & password coming in the
HTTP request as key-value pairs.
Is it possible?
Elaborate: -
They request uri: -
http://localhost/realm-test/RealmTestServetlet?username=foo&password=bar
The Realm must authenticate with 'foo' & 'bar'.
--
Santosh.
66 matches
Mail list logo