Hi Mark!
I'll guess that this quailfies as a quick and dirty solution but how about
trying to make a programatic login in your login.htm page. Have the page
do a request (response.sendRedirect or something) to the j_security_check
with some Anonomuys authentication.
Regards
Roland Carlsson
Hi again!
I found out why tomcat is using the path of my workstation instead of the
server as context path. It is a feature of Netbeans to put a file in the
Manifest-folder of the webapp with the path to the files and contextpath.
So it turns out that it had nothing to do with tomcat behaving
Dear Ladies and Gentlemen,
This is a follow-on for a question from last week, but as its now on a
different-page of the mailing list. I decided to
post another new questions, so no-one misses it.
1) Below is an original extract of my tomcat 4.1.27 server.xml. I want to
enable compression in my
-Original Message-
From: Cees van de Griend
Is it possible to configure Tomcat as an FTP Server?
No.
Tomcat is a HTTP server, not a FTP server: different
port numbers,
different commands, different kind of application.
cut/
Hi,
Yoav, you suggested we should pick up this thread here in the list rather than the
bugzilla report at http://issues.apache.org/bugzilla/show_bug.cgi?id=26372
I have copied the last 4 replies for any interested parties to start following this
thread.
I look forward to hearing the position
Hi,
I'm still waiting for ur reply.
Please reply me
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 6:36 PM
To: Tomcat Users List
Subject: RE: error while starting Tomcat5 service
Hi,
HTML emails don't work on ASF lists (in general), so
I thought you had to have Tomcat 5.5 with JDK 5.0. If you are using Tomcat 5.0 there
is a compatibility download that should be installed.
If that is not your problem, try uninstalling the service and use the
tomcat/bin/service.bat install method.
Allistair.
-Original Message-
Hi I need to secure two directories with a user name and password prompt.
Just one is fine at the moment. I know I can do this using httpd but I was
wondering if there was a better solution for Tomcat (5), i.e. by configuring
something in the server config or web.xml. If anyone has a solution I
Hi
I'm using the firefox browser and have no proxy definitions.
First try another browser.
Then, maybe your tomcat is configured to use cookies as session ids and your
browser is configured not to accept cookies?
However, since there is no different code for local and remote clients, I
cannot
I'm running Tomcat 4.1.31 with SecurityManager and tried to understand the
default settings for web applications in conf/catalina.policy.
Lines 83-91:
[...]
// These permissions are granted by default to all web applications
// In addition, a web application will be given a read FilePermission
Hello, I get this stacktrace when using Tomcat 5.0.25, Java 1.4.2 on Linux.
java.util.NoSuchElementException
java.util.HashMap$HashIterator.nextEntry(HashMap.java:785)
java.util.HashMap$KeyIterator.next(HashMap.java:818)
java.util.AbstractCollection.toArray(AbstractCollection.java:174)
There is a plugin to Mozilla/Firefox that allows you to watch your
headers:
http://livehttpheaders.mozdev.org/
With that installed, you will be able to see if the browser is sending
back session IDs properly.
BTW: I use Mozilla and Firefox and have never had this problem.
On Mon, 2004-10-25
I try to precompile my jsp's, copy all the precompiled JSP's into a JAR file,
then delete all the JSP's. Less stuff to deploy. No surprises with respect to
caching, or missing compiles, or broken JSP's making it to production.
-Tim
Steven J. Owens wrote:
Hi folks,
I'm interested in hearing
On Sun, Oct 24, 2004 at 11:00:38PM -0400, Steven J. Owens wrote:
: I'm interested in hearing how people are dealing with
: configuration management issues.
:
: We've been running into some problems with JSP recompiles,
: particularly when the changed JSP is an included JSP.
: [snip]
On Mon, Oct 25, 2004 at 09:10:41AM +0200, Roland Carlsson wrote:
: I found out why tomcat is using the path of my workstation instead of the
: server as context path. It is a feature of Netbeans to put a file in the
: Manifest-folder of the webapp with the path to the files and contextpath.
On Mon, Oct 25, 2004 at 10:11:43AM +0100, Mark Benussi wrote:
: Hi I need to secure two directories with a user name and password prompt.
: Just one is fine at the moment. I know I can do this using httpd but I was
: wondering if there was a better solution for Tomcat (5), i.e. by
: configuring
Sorry to go on but I'm completely stumped, has anyone come across this
problem using Oracle 9 with tomcat 5?
-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: 24 October 2004 12:17
To: Tomcat Users List
Subject: RE: Does Oracle 9i thin jdbc driver work in Tomcat 5?
your suggestion is precisely what we do here, but it still leads to 5 minutes downtime
(web server nice maintenance page, removing old war, unpacking new war takes time).
do any application servers support hot deploying if that is correct term, i.e user
requests are served by the older webapp
On Mon, Oct 25, 2004 at 12:28:27PM +0100, Allistair Crossley wrote:
: your suggestion is precisely what we do here, but it still leads to 5 minutes
: downtime (web server nice maintenance page, removing old war, unpacking new
: war takes time).
I guess my clients have always listed this as a
I have successfully used Oracle 9 with JBoss, Jrun, and Tomcat. I don't
remember any specific differences between the JNDI configurations. Make sure
that you have the classes12.jar, nls_charset12.jar files in your runtime
classpath, i.e. /WEB-INF/lib or somewhere else.
The driver class is
If you need to include some logic with your FTP, you should really look at
Kermit (I think it is from University of Chicago). It has the best command
line interface around and is very capable and open source to boot. You could
easily wrap a servlet around it if needed
--
Dov Rosenberg
Conviveon
I believe (and I'm sure I'll be corrected if I'm wrong), the drivers
need to go into commmon/lib so that the container can access them.
On Mon, 2004-10-25 at 08:13, Dov Rosenberg wrote:
I have successfully used Oracle 9 with JBoss, Jrun, and Tomcat. I don't
remember any specific differences
On Mon, 2004-10-25 at 08:21, Ben Souther wrote:
I believe (and I'm sure I'll be corrected if I'm wrong), the drivers
need to go into commmon/lib so that the container can access them.
If you're having Tomcat manage your connection pool, that is..
On Mon, 2004-10-25 at 08:13, Dov Rosenberg
Hi,
The path for the root webapp is , not /. Yes, if the separate
hosts have different names, each can have a webapp at path . It would
be http://x.y.com, http://y.y.com, http://z.y.com, etc.
Yoav Shapira http://www.yoavshapira.com
-Original Message-
From: Brendan Colthurst
Hi,
Another WORKSFORME on my end ;)
Yoav Shapira http://www.yoavshapira.com
-Original Message-
From: Steffen Heil [mailto:[EMAIL PROTECTED]
Sent: Monday, October 25, 2004 5:36 AM
To: 'Tomcat Users List'
Subject: AW: AW: Session Definition Bug?
Hi
I'm using the firefox browser and
Hi,
A profiler would show you what references are being kept, so that might
be helpful in knowing what to flush (assuming it's possible at all --
not a trivial assumption with AWT). In any case, so what if the
ImageIcon takes 30MB?
Yoav Shapira http://www.yoavshapira.com
-Original
Hi,
Yeah. Webapp reload is a great thought and sometimes possible to do
in-place in true-hotswap fashion. Unfortunately in the real world there
are several factors which prevent this from really happening. They
include:
Libraries that use static resources in such a way they can't be
reloaded.
Hi,
Please try a stable version like 5.0.28, and if it still happens, post a
WAR we can use to reproduce the issue.
Yoav Shapira http://www.yoavshapira.com
-Original Message-
From: Ronald Klop [mailto:[EMAIL PROTECTED]
Sent: Monday, October 25, 2004 5:42 AM
To: [EMAIL PROTECTED]
Ok, understood. Thanks for taking the time to explain.
Allistair.
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 25 October 2004 14:08
To: Tomcat Users List
Subject: RE: discussion on webapp reload in production environments
Hi,
Yeah. Webapp reload
Hi,
UnavailableExceptions are a bit of an unusual beast in how they're
handled by the server, especially when thrown by users. Try throwing
the exception type actually declared by the init method
(ServletException) ;)
Yoav Shapira http://www.yoavshapira.com
-Original Message-
From:
Hi,
If I understand correctly, WAR file is just a glorified JAR file,
which in turn is just a glorified tar file. So unless you're
unjarring it, editing the config file and rejarring it, you can't
really muck with the config settings inside it. How/where do people
normally keep the
Hi,
If you want the Manager webapp to use the context-specific XML file you
have to tell it, using the path and config params on the same deployment
URL. This is covered in the Manager doc page,
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/manager-howto.html,
under the heading Install using a
Hi,
I use Oracle 9 with Tomcat 5, using DBCP, following the docs in the JNDI
DataSources how-to, no problem. I use the ojdbc14.jar drivers, like
you, but the classes12 ones also work, albeit slower. I haven't seen
the NPE you quote below.
Yoav Shapira http://www.yoavshapira.com
-Original
-Original Message-
From: Dov Rosenberg
If you need to include some logic with your FTP, you should
really look at Kermit (I think it is from University of
Chicago). It has the best command line interface around and
is very capable and open source to boot. You
I haven't seen the paperwork but my understanding is that our web
infrastructure is validated. Environments include Tomcat 4 and 5 among other
things.
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 21, 2004 10:25 AM
To: Tomcat Users List
I haven't experience this myself, but as no-one else has responded yet, here
are some thoughts that come to mind in case they help :-)
Perhaps the session associated with cookie C1 has expired by the time that
Tomcat receives the request that contains C1? Then, if your code uses
If you really need to, you can wrap one exception inside the other, e.g.
throw new ServletException(new UnavailableException(my unavaiable
message));
and I think you'll find that the Tomcat error page (or your own custom error
page, if configured) will automatically strip the outer
What arr your Resource and ResourceParams?
-Original Message-
From: Adrian Harrison [mailto:[EMAIL PROTECTED]
Sent: October 23, 2004 12:28 PM
To: [EMAIL PROTECTED]
Subject: Does Oracle 9i thin jdbc driver work in Tomcat 5?
using tomcat 5.0.28, oracle 9.2.1.0 on windows 2000 (sp4)
We have been using Tomcat 4 and Tomcat 5 for years in our software
product that we install into the data centers of major pharmaceutical
companies. It has worked with great success!
-Original Message-
From: Kaiser, Paul [mailto:[EMAIL PROTECTED]
Sent: Monday, October 25, 2004 8:50 AM
Is there a way to modify web deployment descriptor (web.xml) at
runtime using MBeans? I would like to add security roles/ constraints
at runtime by providing a admin interface, so admin can add /remove
users described in web.xml. Appreciate your replies.
Thanks
Steve Kirk wrote:
...I think you'll find that the Tomcat error page (or your
own custom error page, if configured) will automatically
strip the outer ServletException layer off and report the
underlying UnavailableException.
That's a possible workaround. But the JavaDocs are pretty
Just a note that I figured out that the logging configuration for the
jk connector has been moved to the workers.properties file. I have enabled
debug there.
If there is anything within tomcat that I can enable to see more debug
type information, I would appreciate any pointers. I would like
I have run into a problem where Tomcat is hanging inside ofg JNI code. This
causes the allocated thread to stay allocated.
When I go to shutdown Tomcat, it responds with 'Waiting for 1 instance(s) to
be deallocated'. Is there a way
to shutdown Tomcat gracefully under this condition so that the
Hi,
Please don't cross-post to tomcat-dev and tomcat-user at the same time.
Gracefully, probably not. Kill it.
Yoav Shapira http://www.yoavshapira.com
-Original Message-
From: John MccLain [mailto:[EMAIL PROTECTED]
Sent: Monday, October 25, 2004 11:38 AM
To: Tomcat Dev List; Tomcat
In any case, so what if the ImageIcon takes 30MB?
So what? Right now, my Tomcat server is sitting taking up 24mb. When the
thumbnail servlet activates, that will jump up to an ADDITIONAL 30mb. If I
attempt to create/load a bunch of thumbs on the fly, Tomcat comes close to
maxing its memory
Hi,
In any case, so what if the ImageIcon takes 30MB?
So what? Right now, my Tomcat server is sitting taking up 24mb. When
the
thumbnail servlet activates, that will jump up to an ADDITIONAL 30mb.
If I
attempt to create/load a bunch of thumbs on the fly, Tomcat comes close
to
maxing its
I posted last week I tried compression=on compression=force and
compression=5 for compress output if 5 bytes without any success.
Note that your client must send the header Accept-encoding: gzip for a
web server to consider you as able to consume it. i use
Accept-encoding: gzip,
1. How do I access the context file, the ones
separated from server.xml and put in the
tomcat5/conf/engine/localhost/ ?
2. Or if embedded in the war file, how to access it
from the war file's META-INF/contexfile.xml ? I
need access to Resource where the datasource and
jndi is normally
This is my app file i.e prd.xml in
c:\jakarta-tomcat-5.0.28\conf\Catalina\localhost
?xml version='1.0' encoding='utf-8'?
Context displayName=Project Report Database docBase=PRD path=/PRD
privileged=true workDir=work\Catalina\localhost\PRD
Resource auth=Container name=PRDConnectionPool
Hi,
Add a factory ResourceParam as shown in the docs.
Yoav Shapira http://www.yoavshapira.com
-Original Message-
From: spammemothers [mailto:[EMAIL PROTECTED]
Sent: Monday, October 25, 2004 12:14 PM
To: 'Tomcat Users List'
Subject: RE: Does Oracle 9i thin jdbc driver work in Tomcat 5?
I'm not 100% sure of this, but I don't think GZIP compression was added to the
connector until Tomcat 5.0.xx. Look at the appropriate docs to verify this.
Either way, you can always write a servlet filter to do the compression. This
way you don't have to worry about whether Tomcat (or any other
Hi,
You wouldn't even have to write such a filter, tons of them are freely
available online, see Google...
Yoav Shapira http://www.yoavshapira.com
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Monday, October 25, 2004 12:35 PM
To: Tomcat Users List
Subject: Re:
Have you tried admin application?
-Original Message-
From: Saravanan Veerappan [mailto:[EMAIL PROTECTED]
Sent: October 25, 2004 10:34 AM
To: [EMAIL PROTECTED]
Subject: modify web deployment descriptor at runtime
Is there a way to modify web deployment descriptor (web.xml) at runtime
Added the factory bit still not working -
prd.xml now is-
Context path=/PRD docBase=PRD debug=0 privileged=true
Resource name=PRDConnectionPool auth=Container
type=javax.sql.DataSource/
ResourceParams name=PRDConnectionPool
parameter
Throwing a generic ServletException wrapping my UnavailableException
would probably get the report showing up, but it also means Tomcat won't
be
able to respond correctly to it.
Yes. Sorry, I had missed the fact that UnavailableException is a subclass
of ServletException, so unless your
Can you give classes12.jar a try so we can isolate the problem of ojdbc14. I
use the jdbc driver come with oracle 9i release 2. The name is
classes12.zip.
-Original Message-
From: spammemothers [mailto:[EMAIL PROTECTED]
Sent: October 25, 2004 12:39 PM
To: 'Tomcat Users List'
Subject:
Copied classes111.jar, classes12.jar, nls_charset11.jar, nls_charset12.jar
from ora92\jdbc\lib directory to jakarta-tomcat-5.0.28\common\lib directory
- also deleted ojdbc14.jar from this dir - NullPointerException still
happening!
-Original Message-
From: Phillip Qin [mailto:[EMAIL
Hey Michael,
I think you can used ${catalina.base} or other system env variables
inside server.xml and context.xml
for an absolute path information. Only problem with this handling is,
don't save your server.xml oder context.xml
with the admin application.
Tipp: use a db resource path outside
in your jdbc url, lose the prd_owner ...
parameter
nameurl/name
valuejdbc:oracle:thin:@127.0.0.1:1521:dev/value
/parameter
-Original Message-
From: spammemothers [mailto:[EMAIL PROTECTED]
Sent: Monday, October 25, 2004 12:51 PM
To: 'Tomcat
Still hoping for some enlightenment on this
Douglas WF Acheson has said late last year:
# Define the Manager proxy that comes with Tomcat
[uri:/tomcat/manager/*]
context=/manager
info=Manager prefix mapping
But, after frustrating attempts I cannot seem to get it correct. I have
Yipp!! that fixed it!
Deleted those 4 *.jar files put back in ojdbc14.jar that works also!
Funny though as doc's show to include schema name
jdbc:oracle:thin:[EMAIL PROTECTED]:1521:mysid
Any ideas why?
Many thanks for all your help
-Original Message-
From: Graff, David
Hi folks,
I am currently running apache 2.0.52 , mod_jk2, solaris 8 tomcat
5.0.28 on my servers . I have two apache serves behind an alteon that
service my webapps on 4 tomcat servers. I have sticky sessions with a
file store set up on my boxes. My filestore is via nfs. All my hosts
Sorry forgot to add the config files as an attachment .
config_file.tar.gz
Description: GNU Zip compressed data
On Oct 25, 2004, at 1:22 PM, pablo wrote:
Hi folks,
I am currently running apache 2.0.52 , mod_jk2, solaris 8
tomcat 5.0.28 on my servers . I have two apache serves behind an
Andrzej,
If you are referring to rewriting URI's before hitting the app servers
then we do this with mod_rewrite which executes before mod_jk. So fr
example if we have to change a legacy URI to a new one then we do this
with a rewrite rule before even mod_jk is called. Works great for us.
HTH,
Hi,
We have an odd problem we cannot solve. Maybe someone else has come
across this too.
We use Apache 2.0.52 with the Tomcat 5.0.25 and its included mod_jk2
with Coyote/JK2 AJP 1.3 connector.
Usually Apache uses 230 slots out of 1000 it has set as the maximum.
This can be seen from the
Steffen Heil wrote:
Hi
I'm using the firefox browser and have no proxy definitions.
First try another browser.
Then, maybe your tomcat is configured to use cookies as session ids and your
browser is configured not to accept cookies?
However, since there is no different code for local and
I would start with the apache logs and find out what kind of requests
are logged in the access just before the event. That should get you
going in the right direction.
--David
Lars George wrote:
Hi,
We have an odd problem we cannot solve. Maybe someone else has come
across this too.
We use
Hi,
I have not yet found where in the tomcat documentation, session
definition, cookies, etc. are discussed
These are defined and specified in the Servlet Specification very
clearly.
Yoav
This e-mail, including any attachments, is a confidential business communication, and
may contain
Hi.
I have found a solution to my problem.
In web.xml (webapp)/WEB-INF/web.xml I changed:
taglib-urihttp://jakarta.apache.org/taglibs/image-1.0/taglib-uri
to
taglib-uriTEST/taglib-uri
and now it is working...
Lars Nielsen Lind
-Original Message-
From: Lars Nielsen Lind
Tomcat: 5.0.29
OS: XP
JAVA: 1.5.0
Context.xml: jakarta-tomcat-5.0.29\conf\Catalina\localhost
Resource name=mail/Session auth=Container
type=javax.mail.Session/
ResourceParams name=mail/Session
parameter
namemail.smtp.host/name
valuecompany email
Hey,
Is proxy involved on client's side ?
-Mark.
--- Todor Todorov [EMAIL PROTECTED] wrote:
Hello there,
We experienced strange behavior with Tomcat under heavy load.
Fairly simple JSP generates a page based on a persistent cookie,
unfortunately the browser receives someone else
On Monday 25 October 2004 18:52, Peter Rossbach wrote:
I think you can used ${catalina.base} or other system env variables
inside server.xml and context.xml
for an absolute path information. Only problem with this handling is,
don't save your server.xml oder context.xml
with the admin
What is in your web.xml?
-Original Message-
From: David Lee [mailto:[EMAIL PROTECTED]
Sent: October 25, 2004 3:51 PM
To: [EMAIL PROTECTED]
Subject: Why mail/session always being set to localhost even Context.xml
says otherwise?
Tomcat: 5.0.29
OS: XP
JAVA: 1.5.0
Context.xml:
My contents for mail/Session in web.xml:
resource-ref
description
Resource reference to a factory for javax.mail.Session
instances that may be used for sending electronic mail
messages, preconfigured to connect to the appropriate
SMTP server.
Assume your Resource is closed by /Resource. Try addRecipient.
-Original Message-
From: David Lee [mailto:[EMAIL PROTECTED]
Sent: October 25, 2004 4:26 PM
To: [EMAIL PROTECTED]
Subject: RE: Why mail/session always being set to localhost even Context.xml
says otherwise?
My contents for
Add use plain email address, e.g. [EMAIL PROTECTED]
-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: October 25, 2004 4:34 PM
To: 'Tomcat Users List'
Subject: RE: Why mail/session always being set to localhost even Context.x
ml says otherwise?
Assume your Resource
Not sure that this is your actual problem, but is it correct to use
mailto:; within the to/from addresses?
-Original Message-
From: David Lee [mailto:[EMAIL PROTECTED]
Sent: October 25, 2004 3:51 PM
To: [EMAIL PROTECTED]
Subject: Why mail/session always being set to localhost even
mailto: could come from someone's email client
Filip
-Original Message-
From: Steve Kirk [mailto:[EMAIL PROTECTED]
Sent: Monday, October 25, 2004 3:41 PM
To: 'Tomcat Users List'
Subject: RE: Why mail/session always being set to localhost even
Context.xml says otherwise?
Not sure that
Hi all,
Trying to find the subj. The link on jakarta web site has a tar file with
mod_jk2 for apache 2. The readme file states that there should be a version
for apache 1.3 but it's not there. Does anybody have idea where can I
download it from?
Thank you!
/Sergeyk
Hi! Phillip,
Thanks for the help.
My questions are:
1. in web.xml
My context definition is:
servlet-mapping
servlet-nameUpdateItemServlet/servlet-name
url-pattern/servlet/chapter6/url-pattern
/servlet-mapping
It works fine
2. I have a context file called javaxml2.xml,
Shapira, Yoav wrote:
Hi,
I have not yet found where in the tomcat documentation, session
definition, cookies, etc. are discussed
These are defined and specified in the Servlet Specification very
clearly.
Yoav
Thanks Yoav,
I have read the spec 'srv.7 Sessions', and it is very clear, but
I use 5.0.28 and Tomcat Manager/catalina-ant tasks. The context file is
called context.xml and is lcoated at META-INF in war. When Manager deploys
web app, it
- uploads war to ${catalina_home}/webapps
- expands war to ${catalina_home}/webapps/yourapp
- copies context.xml to
OK. But is that a correct RFC address? I understood from the JavaMail
javadocs that the from and to address values are supposed to be valid
RFC-822 addresses?
So is this allowed
Me mailto:[EMAIL PROTECTED]
or should it be
Me [EMAIL PROTECTED]
or just
[EMAIL PROTECTED]
David,
This proves more difficult, since the requests look like standard
requests that work at other times. Moreover the POST data is no logged
anyway so I cannot check if it was a value that was sent in by chance.
Is there anything else I can check to see what is going on? I was more
thinking
I've copied manager.xml from localhost to another host, say testhost1.com.
When I access testhost1.com/manager, I'm prompted and login successfully.
I'm shown 2 contexts; / and /manager. Whenever I try to reload /, I get
FAIL - No context exists for path /. I've tried doing the same for other
Hmmm.. My assumption to your email was their was some kind of possible
probing of your Apache server and/or a misbehaving client. Do you run
snort on the box hosting the Apache httpd service? It's an intrusion
detection tool designed to log suspicious activity. That could be
something to
Regards,
Vivek Behal.
87 matches
Mail list logo