I have solved a similar problem using JkAutoAlias. I guess in your case it
would look something like
JkMount /tomcat/* MyWorker
JkAutoAlias c:/server/tomcat_development/webapps
You might notice that I'm running windows, but just replace the path to your
webapps and you should be up
Try removing webapps/webAppName/
and work/Catalina/Hostname/webAppName
directories. I don't know if it is a recommanded
way, but it give tomcat no other choice
than exploding the war again :)
Iratxe Etxeberria Sainz-Ezquerra a écrit :
>
>
>
>
>Hello!
>I am using tomcat 5.0.28. When we have the
Hi All,
I have been using Tomcat on Windows for some time but I'm now
trying to get a server running the way I want it to on Fedora Core 4.
My problem is that I can't get Tomcat to unpack WAR files.
I have installed Tomcat 5.0.30 and have it running OK. As it will be
hosting a number of site
wrote:
>
> Hi,
>
> I modified my server.xml as follows.
>
> resourceName="UserDatabase" digest="SHA1"/>
>
> Also, downloaded "commons-logging-20051027.tar.gz" and untarred the same.
>
> Later i tried giving below command
I've not done this before, but I'm wondering if Tomcat will allow you to
setup two separate security configs within the context deployer. One
used specifically for GET, and the other for POST. Try this.
>>> [EMAIL PROTECTED] 10/27/05 4:07 AM >>>
Hello,
I have an application which has two differen
I'm using TC 5.5.12.
Please look at this snippet from the server.xml that is distributed
with TC:
Can anyone tell me what the 'xmlValidation' attribute on is for?
I realize it has something to do with "XML validation", but what XML is
it referring to? Is it the corresponding web.xml? A
Hello Dave
(For Internet Explorer:)
Do you happen to know which are the "right headers" to set,
especially for images ?? If not, maybe you could point me
to a good source of info for caching rules for IE.
Maurice
David Rees wrote:
On 10/27/05, Leon Rosenberg <[EMAIL PROTECTED]> wrote:
I've
Leon
Thanks for mentioning these items.
By the way, I liked taking in the 360 views.
Maurice
Leon Rosenberg wrote:
Maybe I'm missing the point completely, but why not MD5 encode the
path to your image along with a timestamp, how long this link should
be valid?
I' used this several times, dec
In the current version of IE, there is an option to control whether or
not to allow caching of https pages on disk. If this is disabled it
might still cache the pages in memory (but that's just a guess).
On 10/27/05, David Rees <[EMAIL PROTECTED]> wrote:
> On 10/27/05, Leon Rosenberg <[EMAIL PROTE
On 10/27/05, Leon Rosenberg <[EMAIL PROTECTED]> wrote:
>
> You simply can't rely on browser caching behaving. Especially https
> caching. Firefox / Galleon cache everything they can get, this is
> really ugly, especially if the cache dynamical content with all
> headers set (I've seen versions of m
Hello David
If this is true, then why does
https://www.myDomain.com/images/image123.jpg
cache in IE just fine?
(where www.myDomain.com is being served exclusively
by my tomcat 5.0.28)
Note, as I indicated below, caching in IE of image123.jpg
will not occur under https when any other of the mech
Maybe I'm missing the point completely, but why not MD5 encode the
path to your image along with a timestamp, how long this link should
be valid?
I' used this several times, decoding the link in the servlet and
streaming it to the client. You can alternatively have a filter for
url-rewriting. The
I have a servlet on TC 5.5.9 that services a page with applet content that
will reguire three GETs to complete the page 1) basic page, 2) applet jar
and 3)image. The basic page GETs served OK and the browser comes back with
a GET to request the JAR file which is modestly large (150K) so I attem
Quote:
And finally, Internet Explorer should know to cache
this image and reuse when the request is made again
(assuming image is unmodified, of course).
Well all this works, EXCEPT, for the caching part
(which mozilla does know how to do).
AFAIK Internet Explorer is set by default to not cache
Hi All,
I'm trying to configure a JDBC realm for request users authentication and
i'm using netbeans 4.1.
I follow the tomcat docs example, and when i use a "memory realm" everything
works fine.
But when i put the JDBC realm in server.xml file tomcat throws a lot of
exceptions, and ask for tomc
When you the client presents the list, I assume you mean the client's list
of certificates. If this is the case the certificate is malformed. I
suspect your using IE. For testing, switch to Foxfire; it will show you
both the client and the server certificates during the certificate exchange
Hi All,
I'm trying to configure a JDBC realm for request users authentication and
i'm using netbeans 4.1.
I follow the tomcat docs example, and when i use a "memory realm" everything
works fine.
But when i put the JDBC realm in server.xml file tomcat throws a lot of
exceptions, and ask for tomcat
Hello John
Actually, this is possible: I have done it like this:
which goes into tomcat/conf/Catalina/host/myThumbs.xml
Then, when the html generated by myWebAppcontextName/myServlet
contains something like
src="images/thumb123.jpg"
what tomcat sees is
http://www.yourDomain.com/myWebAppC
Hi All,
I'm trying to configure a JDBC realm for request users authentication and i'm
using netbeans 4.1.
I follow the tomcat docs, and when i use a "memory realm" everything works fine.
But when i put the JDBC realm in server.xml file tomcat throws a lot of
exceptions, and ask for tomcat manager
Hello Charles
Caldarale, Charles R wrote:
> "Why wasn't Tomcat's default servlet sufficient?"
Glad you asked this question!
My needs are different than those of the
author to whom you responded, but it would seem
that this is an appropriate time for me to explain
my goal and why I have tried num
Thanks for your reply. After adding the export, tomcat doesn't die but I am
getting an ERROR that ThreadDeath happened. see trace below.
Any ideas where to go next?
Oct 27, 2005 10:31:55 AM org.apache.catalina.loader.WebappClassLoader
loadClass
INFO: Illegal access: this web application insta
Steve Kirk wrote:
Have you considered that you can remove much of the dynamic config from
conf\web.xml so that there is no default servlet or other dynamic behaviour
in any webapp unless you explictly configure it so in the webapp's own
web.xml?
Right, but say an evil user creates a WEB-INF/web
Have you considered that you can remove much of the dynamic config from
conf\web.xml so that there is no default servlet or other dynamic behaviour
in any webapp unless you explictly configure it so in the webapp's own
web.xml?
In fact this is what I prefer to do myself (except on dev box because
I have installed Apache Tomcat Version 5.5.9 on a Windows platform, and
have one-way SSL running.
However, when I turn on client authentication for two-way SSL, and the
client browser presents the certificate list, it is empty.
Even though there are certs registered.
Does the server certifica
We have tomcat 5.0 connected through IIS (windows 2000) and the isapi
redirector version 1.2.14. After running for a while with a high number
of concurrent users, the log below appears in the log of the jk redirector.
Any suggestions on how to tackle this problem, or find out what might
cause
Caldarale, Charles R wrote:
From: Robert Koberg [mailto:[EMAIL PROTECTED]
Subject: Re: static server implementation?
If you have a need for many virtual hosts, but do not need
or want any ability for dynamic activity it would make sense
to have a limited version of a tomcat host/context. I me
Ahh - I reread the original.
Once chain.doFilter(request,response) is called - the response is committed
and you are probably seeing IllegalStateExceptions in your logs.
You'll want something like this:
if (someCheckForAuth) {
sendRedirect( ... )
} else {
chain.doFilter(request,response)
> PS I don't think that I have see the problem that you have reported. I run
> TC 5.5.9 on WinXP with Mysql 4.1.11 and Connector/J 3.1.8, have never
> noticed that problem, my pools always seem to clean up fine.
You might not have the same setup. I would suggest to try the following:
1. make sur
> From: Robert Koberg [mailto:[EMAIL PROTECTED]
> Subject: Re: static server implementation?
>
> If you have a need for many virtual hosts, but do not need
> or want any ability for dynamic activity it would make sense
> to have a limited version of a tomcat host/context. I mean,
> I have a ne
Thanks for the reply...
-Original Message-
From: Steve Kirk [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 27, 2005 12:07 PM
To: 'Tomcat Users List'
Subject: RE: Error: Cannot get a connection, pool exhausted
yes. in the same place you have set maxActive etc.
> -Original Message
Caldarale, Charles R wrote:
From: John Laughton [mailto:[EMAIL PROTECTED]
Subject: Re: static server implementation?
I ended up created a second context in tomcat that allows
access to the static content (ie. large jpegs)
I'm confused. Why wasn't Tomcat's default servlet sufficient? It's
The problem with the servlet is sandboxing
If you try to refer (href) to a file outside the container, it will not work
Chuck,
I want to have a jsp page with lots of jpeg's. In order to keep them in the
container, I would need to put them into the war file. This would make the
war file huge !
Dear Friends,
I am running the Tomcat 5.0.28 on Sun Solaris 5.9.
In catalina.out log file I am getting lot of error messages saying
org.apache.tomcat.util.net.TcpWorkerThread runIt
SEVERE: Remote Host /xxx.xx.xx.xx SocketException: Invalid argument
Any idea why it's giving this error message and H
> From: John Laughton [mailto:[EMAIL PROTECTED]
> Subject: Re: static server implementation?
>
> I ended up created a second context in tomcat that allows
> access to the static content (ie. large jpegs)
I'm confused. Why wasn't Tomcat's default servlet sufficient? It's
sole purpose is to del
Let me know if you find one, I was faced with the same issue a while ago
I was basically told: you have to use apache
I did not want to have (in my opinion) second web server running for just
that purpose
I ended up created a second context in tomcat that allows access to the
static content
Interesting, thanks for mailing to the list.
Have you considered whether managing the DBCP resource yourself might help?
In other words you don't have to use the TC container-managed method of
declaring DBCP resources if you don't want to. If you wrote a
ServletContextListener to create and clos
yes. in the same place you have set maxActive etc.
> -Original Message-
> From: KUMAR, NANDA [AG-Contractor/1000]
> [mailto:[EMAIL PROTECTED]
> Sent: Thursday 27 October 2005 15:46
> To: 'Tomcat Users List'
> Subject: RE: Error: Cannot get a connection, pool exhausted
>
>
> Thanks Jan
Not sure, but this could be it: TC saves Session objects to files when the
webapp is started/stopped. (This is a configurable feature in context.xml).
To do this, any attribute that you add to a Session object must be
serializable. Therefore I would guess that if you call
Session#setAttribute()
Thanks for the reply.
Sorry, I guess I didn't explain how I'm applying the filter well enough.
The filter is mapped to my JSP pages.
When a user goes to the URL for the JSP page of interest they get a form
to log in. The action of the form is j_security_check. When the filter
is executed it occu
Hi,
Is there an implementation floating around of org.apache.catalina.Host
and org.apache.catalina.Context that is very basic, perhaps only serving
static resources?
thanks,
-Rob
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
F
Hi,
I am using JBoss-4.0.3 which runs an embeded Tomcat 5.5.9.
Before sending the code segment I would like to ask you,
when throws the server the following exception:
---
java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute
---
Below you can see the whole output
This problem is caused by Tomcat not cleaning up the JDBC resources
defined in context.xml. When a context is stopped the DBCP resource is
not notified and the pooled connections are leaked. I've submitted a
bug along with a fix
(http://issues.apache.org/bugzilla/show_bug.cgi?id=37262) but it was
r
You can't run a filter against j_security_check
-Tim
Klotz Jr, Dennis wrote:
What I'm trying to do is once a user is authorized on my server, using FORM
based authorization, I want a different servlet (other than what the user might
have originally requested) to be called before any web page
What I'm trying to do is once a user is authorized on my server, using FORM
based authorization, I want a different servlet (other than what the user might
have originally requested) to be called before any web page is shown to the
user. The servlet helps manage a user's account and I need to le
Hello!
I am using tomcat 5.0.28. When we have the tomcat running and we update the
.war, the war is deployed ok. When the tomcat is stopped and we update the war,
logically it is not deployed.
But if I start tomcat, it doesn t deploy the war.
Is there any way to deploy wars on startup if th
Thanks Jan, Let me try this. I need to add these parameters in context.xml?
Am I right?
Thanks
Nanda
-Original Message-
From: Jan Pernica [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 27, 2005 1:49 AM
To: Tomcat Users List
Subject: Re: Error: Cannot get a connection, pool exhausted
re'
it will produce the same result for you.
On 10/27/05, Nehal Sangoi <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I modified my server.xml as follows.
>
> resourceName="UserDatabase" digest="SHA1"/>
>
> Also, downloaded "commons-logging-2005
I have noticed that when I use an Ant script based on that documented in
the Tomcat docs to precompile all my JSPs the resulting JSPs do not
support source-level (JSR-45) debugging.
I thought I was doing something wrong so I looked through the JspC
source code and I can't see how I could feed
I'm having the same problem as in this message (same tutorial):
http://mail-archives.apache.org/mod_mbox/tomcat-users/200510.mbox/[EMAIL
PROTECTED]
My problem however is that even though I've stuck the class (UserData)
into a package (com.adobe.qedashboard) and the stuck the compiled
class into W
What I want:
1) To have apache responsible for running all my static (html) pages
from my /www directory.
2) To have tomcat responsible for running all my web applications
(jsp's and Servlets) from my ./tomcat/webapps directory.
3) To be able to deploy from my local client usin
After upgrading from 5.5.9 to 5.5.12, all the same log4j.properties files, I
now have some web-app level classes that I can not catch in my web-app log4j
logger. I ended up having to put loggers in my
common/classes/log4j.properties file to deal with them.
Again, this worked normally in 5.5.9 with
Hi,
I modified my server.xml as follows.
Also, downloaded "commons-logging-20051027.tar.gz" and untarred the same.
Later i tried giving below command :
$ java -classpath
$CATALINA_HOME/server/lib/catalina.jar:/opt/commons-logging/commons-logging.jar
org.apache.catalina.realm.Re
Hi, maybe the problem is not were we thought it was.
If you get a NullPointerException a (1) (i mean not somewhere deeper
inside 1
but exactly at 1), that can only mean getServletContext() returned false.
This may be the case if servelt was not properly initialized.
Check your init(ServletConfig co
In order to access resource of other applications, you have to set parameter
crossContext = "true" in context.xml file of application w1.
Example -
getServletContext().getContext("/w2app") will not return null, if you set this
parameter.
Nihita Goel wrote:
Hi,
I have two applications run
I cannot use simple href tags in w1 application coz this application has
a single controller Servlet where all requestes are received and then
authenticated and other checks .. if all is well it calles the
respective page.
w2 application has no security restrictions as of now - I just want a
Hi all,
bear with me because I'm a newbie with apache and Tomcat.
I installed apache2 which is working fine, I also installed tomcat
which is also working fine on port 8080.
I also compiled the module required for apache to pass jsp-scriplets to tomcat.
I followed for this the documentation I fo
Why not just include tags in your w1 webapp's pages whose href
attributes point direct to URIs that begin "/w2app/" and vice-versa? I
don't think you need to use dispatchers.
The docs for ServletContext#getContext (your line 1) say: "...The given path
must be begin with "/", is interpreted rela
Hi,
I have two applications running on the tomcat application server.
w1 - with context path "/w1app"
and w2 with context path "/w2app"
I wish to provide links in w1 displaying pages of w2.
I have used this code in my HttpServlet class of w1
if /// some condition
Servlet Context othercontext =
Charles, see also my reply to Nanda Kumar's thread "Cannot get a connection,
pool exhausted" for a coding example. HTH :)
> -Original Message-
> From: Steve Kirk [mailto:[EMAIL PROTECTED]
> Sent: Wednesday 26 October 2005 14:01
> To: 'Tomcat Users List'
> Subject: RE: Tracking
>
>
>
>
This is a repost of a message I first posted in June that I got no replies
to.
I have a double-logging problem, by which I mean that
some of my log messages get logged to two logfiles. I have only one
logfile configured using java.util.logging, but in some cases, the
same log message gets logg
Hello,
I have an application which has two different user groups. The first one
will authenticat with a simple form and the second one will send their
username & password directly in a request. How can I get this to work with
the authentication provided by tomcat?
Regards,
Pete
--
Telefonieren
Hi Kam,
this might be useful
http://linux.org.mt/article/tomcat-ports
Searched google for: running tomcat port 80 non root
Regards
Daniel
-Original Message-
From: Kam Lung Leung [mailto:[EMAIL PROTECTED]
Sent: 26 October 2005 20:00
To: Tomcat User List
Subject: can I run tomcat on por
There's no asterisk in the package name, of course. My mail client
added them
Seak, Teng-Fong wrote:
There are other Date classes in other packages, for instance in SQL
related packages. Maybe for an obscure reason, you're not using
*java.util.Date after some time. Try to use the who
There are other Date classes in other packages, for instance in SQL
related packages. Maybe for an obscure reason, you're not using
*java.util.Date after some time. Try to use the whole class name, ie
**java.util.Date and see if this solves the problem.
HTH
**
[EMAIL PROTECTED] wrote:
Ditto,
Please let me know if you find a solution.
Harry
> -Original Message-
> From: Simon MARTIN [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 29, 2004 5:25 AM
> To: tomcat-user@jakarta.apache.org
> Subject: Forwarding *all* webapps with mod_jk
>
> Hi,
>
> I've integrated Tom
Tomcat's main purpose is to serve webapplications, as defined
by sun. Webapplication are suposed to be contained in a WAR, but
tomcat allow to deploy content of war in a directory. WAR are
zip files and do not support links, so does tomcat. It's follows
the filesystem links only because it is unawa
Both are compatible with cPanel.
mod_rewrite is standard.
Tomcat can be automatically installed as a AddOn
-- Dave Anders
> Does anyone know if Tomcat is Compatible with CPanel? And if so, is it a
> reasonable production server configuration?
>
> One additional semi-related question. I have be
If you are using Apache and mod_jk as a frontend to Tomcat, mod_rewrite
doesn't work. In my limited experience, mod_rewrite seems to handle
the request AFTER mod_jk, therefore the rewritten URLs get handled by
apache and a 404 is displayed. I found a way around it by writing a
simple Filter,
68 matches
Mail list logo