I was getting a message like "SEVERE PersistenceManager persistence not
enabled", or something like that (I don't remember) so I disabled (commented
out) the Manager tag in server.xml that configured the PersistenceManager.
Now, I'm getting
Feb 16, 2007 9:26:34 PM org.apache.catalina.loader.We
I can see two ways to do this:
1) Tomcat-Specific: Use clientAuth="want" on the Connector, and configure
the webapp to use BASIC auth in web.xml. You then add a Valve that looks
for the cert, and authenticates the user based on the cert if possible.
2) Similar in that you still have clientAuth=
Tom Robinson wrote:
> Markus Schönhaber wrote:
> > Just a WAG: maybe it's not really a permisson problem but the
> > tomcat-users.xml that is somehow corrupt. If you post it's content here,
> > we can take a look and see if we spot something obviously wrong.
> > Yes, it's far fetched, but I'm out
Chuck,
Unfortunately, the old cert is no longer available. Not sure what URL
the server would redirect to: 302 error whether I use http or https for
the request. I'm really stuck on this one. Worse, it's critical since
our payment server must send a response to us via https.
Any idea what
See http://issues.apache.org/bugzilla/show_bug.cgi?id=41538
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Daniel,
Stephens, Daniel wrote:
> Does anyone know the main differences between
> commons-beanutils-1.7.0.jar and Tomcat's original
> common-beanutils.jar.
Try this:
$ unzip -p commons-beanutils.jar META-INF/MANIFEST.MF
This should give you informa
> From: Greg Brownell [mailto:[EMAIL PROTECTED]
> Subject: Re: Tomcat ssl/https: error 302 when accessing
> servlet with https
>
> As for , users never had to authenticate
> before accessing the servlet(s).
Yes, you're right - I just verified that lack of any ,
as opposed to an with no roles,
Markus Schönhaber wrote:
Tom Robinson wrote:
You missed my other post to Chuck:
Currently I have CATALINA_HOME=/usr/share/tomcat5 and:
lrwxrwxrwx 1 root root 12 Jan 17 01:59 /usr/share/tomcat5/conf ->
/etc/tomcat5
drwxrwxr-x 4 root tomcat4 4096 Feb 16 15:06 /etc/tomcat5
I did indeed miss t
Tom Robinson wrote:
> You missed my other post to Chuck:
>
> Currently I have CATALINA_HOME=/usr/share/tomcat5 and:
>
> lrwxrwxrwx 1 root root 12 Jan 17 01:59 /usr/share/tomcat5/conf ->
> /etc/tomcat5
> drwxrwxr-x 4 root tomcat4 4096 Feb 16 15:06 /etc/tomcat5
I did indeed miss that, sorry.
> So
For IE if you try to go to a https URL directly that requires Client Authn,
IE itself will pop u a winddow.
On 2/15/07, Zhan, Jimmy <[EMAIL PROTECTED]> wrote:
Hi,
I have set up HTTPS for tomcat without client certificate, and it is
running good. Now I want to turn on the client certifica
Thanks Chuck.
This was working before I replaced my ssl certificate. As for
, users never had to authenticate before accessing the
servlet(s). If I add a role name in tomcat-users so this is accessible
to anyone, do I simply make a new role, say myuser, and set username="myuser" roles="myuse
> From: Jim Goodspeed [mailto:[EMAIL PROTECTED]
> Subject: Re: Root context setup
>
> Is there another way to accomplish this though?
Don't put the .war file in Tomcat's directory structure. Instead, put a
ROOT.xml file in conf/Catalina/[hostname] that contains a
element with a docBase attribu
Thanks Hassan.
Is there another way to accomplish this though? I would really like to keep
the name of the war file to the name of the application. We have several
different apps and it would be much easier from a organizational point of
view if we were able to customize the name of the war fil
On 2/16/07, Jim Goodspeed <[EMAIL PROTECTED]> wrote:
I want myapp.war to be the default application
Name it ROOT.war, which Tomcat recognizes as the default context.
HTH,
--
Hassan Schroeder [EMAIL PROTECTED]
--
> From: Greg Brownell [mailto:[EMAIL PROTECTED]
> Subject: Tomcat ssl/https: error 302 when accessing servlet with https
>
> web.xml has the following entries:
>
>
> role1
>
>
> tomcat
>
>
>
>secure pages
>/fileview
>
>
>sec
Markus Schönhaber wrote:
Tom Robinson wrote:
On Feb 16, 2007 03:18 PM, Markus=?iso-8859-1?q?Sch=F6nhaber?=
<[EMAIL PROTECTED]> wrote:
Caldarale, Charles R wrote:
From: Tom Robinson [mailto:[EMAIL PROTECTED]
Subject: IOException writing to
/usr/share/tomcat5/conf/tomcat-users.xml.new
[...]
T
Hello,
I have several servlets that are accessed via https. I am using tomcat
5.5.20
server.xml has the following entries:
web.xml has the following entries:
role1
tomcat
secure pages
/fileview
secure pages
/vcon
> From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
> Subject: Re: PermGen space [ot]
>
> but if the factory is a pure static utility, calling
> ASingleton myCopy = ASingletonFactory.getASingleton();
> will leave no references to the factory class :-)
Unless the factory is being called by reflectio
On 2/16/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:
> From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
> As soon as the factory class is released nothing references
> the singleton impl object and it can be released.
Agreed - the trick is avoiding the direct reference to the factory
class.
Daniel Gresh wrote:
Daniel Gresh wrote:
APliszka-Public wrote:
Google for "compilerSourceVM", and you should find examples of
enabling 1.5.
Andrew Pliszka
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscri
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Subject: Re: Performance tuning parameters
>
> - maxThreads
> The maximum number of http worker threads that tomcat will
> create. This is the limit of the number of concurrent http
> requests that the server can be servicing at any given
> From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
> Subject: Re: PermGen space [ot]
>
> But as long as the factory itself isn't linked by an attribute which
> is inside the impl, the factory class can be released.
Not if there's a direct reference to the factory class somewhere, rather
than a ref
J.
This is what I've learnt in the last couple of months:
- maxThreads
The maximum number of http worker threads that tomcat will create. This
is the limit of the number of concurrent http requests that the server can
be servicing at any given moment. If the thread is waiting for a database
Chuck,
I know that your knowledge of jvm internals is far superior to mine
and maybe I'm just missing a point, but for me the difference is
obvious.
The Factory only has a static field. That means that Impl class and
impl object can't be released as long as the factory isn't released.
But as long
Tom Robinson wrote:
> On Feb 16, 2007 03:18 PM, Markus=?iso-8859-1?q?Sch=F6nhaber?=
>
> <[EMAIL PROTECTED]> wrote:
> > Caldarale, Charles R wrote:
> > > > From: Tom Robinson [mailto:[EMAIL PROTECTED]
> > > > Subject: IOException writing to
> > > > /usr/share/tomcat5/conf/tomcat-users.xml.new
[...]
I should add that I'm running 2k3 in a VM instance, whereas not with XP...
Can't imagine that is effecting this, but I'm running out of ideas
- Original Message
From: Pete <[EMAIL PROTECTED]>
To: users@tomcat.apache.org
Sent: Friday, February 16, 2007 10:36:51 AM
Subject: Problem wit
> From: Tom Robinson [mailto:[EMAIL PROTECTED]
> Subject: Re: IOException writing to
> /usr/share/tomcat5/conf/tomcat-users.xml.new
>
> I set the directory permissions back and tried to make the resource
> readonly but still get the exception. Am I missing something
> fundamental here?
Are you
Hi,
I am trying to figure out how to configure two applications - one to have
the default context (ie: be in the root of the url) and the other to be in
its own directory. I have the following setup:
webapps dir=/usr/local/product/webapps
catalina_base=/usr/local/product/base
catalina_home=/usr/
Hi,
Do you have any load balancer? I am sorry if this is a trivial
questions, but I have worked with cases that people have no load
balancer and connections are just killing them.
Now, if you do not have a load balancer you might consider NetScaler, it
might lower your number of connections
> From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
> Subject: Re: PermGen space [ot]
>
> public class ASingletonFactory{
> private static ASingletonImpl instance = new ASingletonImpl();
> public static AsingletonImpl getInstance(){
>return instance;
>}
> }
>
> public class A
> From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
> Subject: Re: PermGen space
>
> The problem is the cyclic dependence between the Class object, the
> ASingletonImpl object and the according ClassLoader. This way nothing
> can be freed by the gc.
Cyclic references are not a problem for any garba
I'm not sure about this assertion myself. The GC is capable of freeing
up cyclical references. The problem comes when the container class
loaders have a reference to an application class. I don't believe
singletons cause this problem on their own as they should be cleaned up
when the application
separate the singleton itself and the factory.
in the previous example:
public class ASingletonFactory{
private static ASingletonImpl instance = new ASingletonImpl();
public static AsingletonImpl getInstance(){
return instance;
}
}
public class ASingletonImpl{
ASingletonImpl()
So how should one write their singleton?
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- -
- Jason Pyeron PD Inc. http://www.pdinc.us -
- Sr. Consultant10 West 24th Street #
Seems Im
running into a startup problem. Service installs, all settings are correct, but
when I try to start the server it
fails to start.
Ive tried
Apache 6, Apache 5.5, JRE 1.6, JRE 1.4.2, SDK 1.6 and varieties of combinations.
Ive seen a few posts out there
with similar problems
Does anyone know the main differences between commons-beanutils-1.7.0.jar
and Tomcat's original common-beanutils.jar. We have to do a project in
struts and want to use version 1.3.5. But we are wondering if I can just
deploy commons-beanutils-1.7.0.jar to the common/lib, and it not affect the
other
something like this:
public class ASingletonImpl{
private static ASingletonImpl instance;
public synchronized AsingletonImpl getInstance(){
if (instance==null){
instance = new ASingletonImpl();
}
return instance;
}
///real code here
}
The problem is the cyclic dep
| From: René Schade [mailto:[EMAIL PROTECTED]
| Sent: Friday, 16 February, 2007 08:26
|
| I would like to let my JSP-pages hot-deploy without an explicit reload of
| the application. Is that possible? In my current configuration, the
| Servlets are hot-deploy without reload, just like I want it, b
Just curious, can you elaborate on badly programmed singletons?
Thanks.
Peiyun
-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Sent: February 16, 2007 11:08 AM
To: Tomcat Users List
Subject: Re: PermGen space
The typical problem here are badly programmed singletons. D
check out:
http://opensource.atlassian.com/confluence/spring/pages/viewpage.action?pageId=2669
it might be a little out of date but still an excellent reference.
Davide Romanini wrote:
Il giorno ven, 16/02/2007 alle 14.42 +0100, Jost Richstein ha scritto:
You assume a memory leak...well,
The typical problem here are badly programmed singletons. Do you have any?
regards
Leon
On 2/16/07, Davide Romanini <[EMAIL PROTECTED]> wrote:
I'm too have this problem, it arises because for some reason the Tomcat
WebAppClassloader cannot be garbage collected after undeploy. I made a
lot of te
On 2/16/07, c. <[EMAIL PROTECTED]> wrote:
I've got tomcat running with apache using mod_proxy_ajp. Apache is
serving out all static files and taking care of ssl. When I go to a
secure page under tomcat (https) I always get a warning that the page
contains unauthenticated content.
If Apache h
On Feb 16, 2007 03:18 PM, Markus=?iso-8859-1?q?Sch=F6nhaber?=
<[EMAIL PROTECTED]> wrote:
> Caldarale, Charles R wrote:
> > > From: Tom Robinson [mailto:[EMAIL PROTECTED]
> > > Subject: IOException writing to
> > > /usr/share/tomcat5/conf/tomcat-users.xml.new
> > >
> > > Bizaarly tomcat wants a fil
package it.satanet.hibernate3;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FilenameFilter;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.sql.Connection;
import java.sql.SQLExcep
Hello,
I've got tomcat running with apache using mod_proxy_ajp. Apache is
serving out all static files and taking care of ssl. When I go to a
secure page under tomcat (https) I always get a warning that the page
contains unauthenticated content. The following is an exerpt from my
server.xml fi
Il giorno ven, 16/02/2007 alle 14.42 +0100, Jost Richstein ha scritto:
> You assume a memory leak...well, that depends on the application. 64m as
> PermSize is not always enough for server site applications. But I agree:
> if there is a memory leak you will find it most likely in the application.
>
On Feb 16, 2007 03:01 PM, "Caldarale, Charles R"
<[EMAIL PROTECTED]> wrote:
> > From: Tom Robinson [mailto:[EMAIL PROTECTED]
> > Subject: IOException writing to
> > /usr/share/tomcat5/conf/tomcat-users.xml.new
> >
> > Bizaarly tomcat wants a file called tomcat-users.xml.new
> > when I use tomca
Caldarale, Charles R wrote:
> > From: Tom Robinson [mailto:[EMAIL PROTECTED]
> > Subject: IOException writing to
> > /usr/share/tomcat5/conf/tomcat-users.xml.new
> >
> > Bizaarly tomcat wants a file called tomcat-users.xml.new
> > when I use tomcat-users.xml? What is that about?
>
> Tomcat always u
René Schade wrote:
> I would like to let my JSP-pages hot-deploy without an explicit reload of
> the application. Is that possible? In my current configuration, the
> Servlets are hot-deploy without reload, just like I want it, but changing
> and deploying a JSP-page does not force a hot deploy (o
> From: Tom Robinson [mailto:[EMAIL PROTECTED]
> Subject: IOException writing to
> /usr/share/tomcat5/conf/tomcat-users.xml.new
>
> Bizaarly tomcat wants a file called tomcat-users.xml.new
> when I use tomcat-users.xml? What is that about?
Tomcat always updates tomcat-users.xml during startup,
> From: j r [mailto:[EMAIL PROTECTED]
> Subject: Re: Performance tuning parameters
>
> On a large pageview day, we will overflow the 750 MaxThreads.
Do you have keep-alive enabled for your connectors? If so, the
connections may be staying open beyond their useful life, tying up a
thread for the
Hi
I've been setting up tomcat5 with great success and have a couple of
webapps working.
Next I thought I'll put the manager application in place and after a few
difficulties with the UserDatabase finally got it configured with a
memory Realm as discussed in the documentation for the manager app.
I am gleaning from your comments that MaxThreads is the only thing to
tweak. Yes I do really have a connection issue. I have millions and
millions of connection requests on a very small pool of servers. The app
has been tuned constantly over years. I am either bound to buy more servers
or twea
Hi List,
I would like to let my JSP-pages hot-deploy without an explicit reload of the
application. Is that possible? In my current configuration, the Servlets are
hot-deploy without reload, just like I want it, but changing and deploying a
JSP-page does not force a hot deploy (or even a reload
Ernesto Reig wrote:
One of the use case of my web app is to allow users to create new
datasources. So in my web app I have a form to create the new datasource.
One of the fields of the form is a input file type, where the user
loads the
datasource driver jar. The other fields are used to get th
> From: Ernesto Reig [mailto:[EMAIL PROTECTED]
> Subject: datasources
>
> - Do I need to restart Tomcat in order that new created
> datasources be available??
Tomcat's admin app can create datasources on the fly; you might want to
take a look at how that's done.
- Chuck
THIS COMMUNICATION
Pid schrieb:
Stefan wrote:
Christopher Schultz schrieb:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Stefan,
Stefan wrote:
Christopher Schultz schrieb:
Compare this to XSLT. If you want a stylesheet to emit an '&',
don't you
use &? And if you want to emit '&' you have to double it. I
You assume a memory leak...well, that depends on the application. 64m as
PermSize is not always enough for server site applications. But I agree:
if there is a memory leak you will find it most likely in the application.
Mark Thomas schrieb:
Jost Richstein wrote:
Use for example -XX:MaxPermS
> From: Jost Richstein [mailto:[EMAIL PROTECTED]
> Subject: Re: PermGen space
>
> Use for example -XX:MaxPermSize=128m as a parameter to the VM
> to extend the PermSize. Default is 64m.
You may also need to set -XX:PermSize to the same value. We've seen
instances recently where the JVM heap man
I think it's more likely that you've just tipped over the edge of the
64MB limit in which case changing it to 128MB will fix the problem.
I've had this before with apps using stuff like hibernate that generates
a lot of proxy classes. Think around 300 hibernate classes I ran into
this and had to u
Jost Richstein wrote:
> Use for example -XX:MaxPermSize=128m as a parameter to the VM to extend
> the PermSize. Default is 64m.
This will delay the time to the OOM error but it won't fix it. What
you really need to do is get hold of a profiler and find out what
memory is leaking memory where. It m
John Pedersen wrote:
I have an app that generates some big, expensive-to-create files.
Where can I store these files, so that they aren't destroyed when I
reload or redeploy, and still get allow users to access them via
Tomcat?
Store them outside of Tomcat directory tree and access them either b
Use for example -XX:MaxPermSize=128m as a parameter to the VM to extend
the PermSize. Default is 64m.
Michal Glowacki schrieb:
Hi
After upgrading to Tomcat 5.5.20 (in jboss 4.0.5ga) I keep getting
OutOfMemoryException: PermGen space every hour (more or less) during
deployment. I can't solve
Hi
After upgrading to Tomcat 5.5.20 (in jboss 4.0.5ga) I keep getting
OutOfMemoryException: PermGen space every hour (more or less) during
deployment. I can't solve this problem, I had changed GC interval from 1
hours to 15mins, but didn't help. JVM Memory settings are as follows:
JAVA_OPTS=%
Hi,
I have an app that generates some big, expensive-to-create files.
Where can I store these files, so that they aren't destroyed when I
reload or redeploy, and still get allow users to access them via
Tomcat?
Thanks,
John Pedersen
Hi all.
One of the use case of my web app is to allow users to create new
datasources. So in my web app I have a form to create the new datasource.
One of the fields of the form is a input file type, where the user loads the
datasource driver jar. The other fields are used to get the values of the
On 2/16/07, Babu Satasiya <[EMAIL PROTECTED]> wrote:
Hi,
Thanks,
Do you think application needs to take care of new session replication or
not, if not then try cart in example and you will find error message, You
need to do some serialization of objects unless its not possible.
Even if you
Thanks for the hints.
One more question, after upgrading server deployment of WAR files is much
more longer than before. It's something like with those pages. I've got info
in console about undeploy of war (that I'm replacing with new one), nothing
happens for more than 15 secs, and then deplo
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dear J,
The focus should be on your application, and configuring everything
thing around that.
If you REALLY have an out of connection problem, increase Max
Threads to 1, but I don't
think that will really help you. The problem is usually
Rutger Heijmerikx schreef:
Hi list members,
I'm running a web application under Tomcat 5.5.17 using SSL. (No
mod_jk) The issue i experience is that i want to remove the header
elements:
PragmaNo-cache
Cache-Controlno-cache
I've seen a post mentioning a configuration change at server.xm
70 matches
Mail list logo