Thanks Filip,
Abraham Fernández Álvarez
Dpto. de Informática
FNAC ESPAÑA S.A.
Parque Empresarial La Finca
Pº de la Finca, bloque 11 2ª Planta
28223 Pozuelo de Alarcón (Madrid)
( +34 91 7689211
7 +34 91 7689225
/ [EMAIL PROTECTED]
: http://www.fnac.es
-Mensaje
Hello,
When I look all the JAAS example, I see that you have to use the following code
to use the LoginModule, etc...
LoginContext lc = new LoginContext(MyExample);
try {
lc.login();
} catch (LoginException) {
// Authentication failed.
}
The MyExample is the name that
Hello
What's about the directive NameVirtualHost in your httpd.conf ?
Jean-Claude
-Message d'origine-
De : Cedric Fontaine [mailto:[EMAIL PROTECTED]
Envoyé : mardi 28 février 2006 00:04
À : Tomcat Users List
Objet : Same jkmount, different server
Hello,
I'm trying to setup a
To save some disk space you could have one complete set of the binary
distribution and from your 3 directories, create symbolic links to static
files. They are most everything except config and log files and the startup
scripts. This is also good when you are upgrading tomcat or want to make
Hi,
We need a little extension to our configured DataSourceRealm. One of our ideas
ist to implement a custom realm which is mostly the same as
org.apache.catalina.realm.DataSourceRealm, but extended with a few lines of our
own code. Unfortunately, we cant find the
It is contained within /tomcat/server/lib/catalina-optional.jar
After you create the class placed it under /tomcat/server/classes For some
reason when I place it in WEB-INF/classes, tomcat couldn't find it. Maybe my
class path error anyway
For configuration this is an example for mysql. I
Hello,
Thanks for your answer. But I already declared my 2 domains with aliases :
Host name=tata.com debug=0 appBase=webapps unpackWARs=true
autoDeploy=true xmlValidation=false xmlNamespaceAware=false
cookies=false
Aliastoto.com/Alias
(...)
In fact I need to forward request, after
Hi Vinc,
Hello,
When I look all the JAAS example, I see that you have to use the
following code to use the LoginModule, etc...
LoginContext lc = new LoginContext(MyExample);
try {
lc.login();
} catch (LoginException) {
// Authentication failed.
}
The
Hi, when starting tomcat-5.5.15 i am getting the following error
./catalina.sh: line 220: exec: : not found
so i looked at line 220 in catalina.sh the content of which is the first line
of the following statement.
exec $_RUNJAVA $JAVA_OPTS $CATALINA_OPTS \
Default port it uses 8080 .In order to change your tomcat port setting you
have to modify in server.xml which reside at tomcat home directory/conf
Change the port no there and save it and restart the tomcat server.After
restarting the server new port is going to be used
Default port for http
Sean O'Reilly wrote:
Hi, when starting tomcat-5.5.15 i am getting the following error
./catalina.sh: line 220: exec: : not found
so i looked at line 220 in catalina.sh the content of which is the first
line of the following statement.
exec $_RUNJAVA $JAVA_OPTS $CATALINA_OPTS \
Running Tomcat 5.5.15 on Win 2000.
Originally we were running Tomcat 4.x?. So in order to upgrade our
administrator loaded 5.5.15 and copied (copied) the webapps from the 4.x
to the 5.5.15.
There are currently four sites running, and I can hit the index.html for
each context. But I cannot
From: Scott Purcell [mailto:[EMAIL PROTECTED]
Subject: Tomcat 5.5 Possible Context Question
Is a context entry required somewhere
in order to fire up servlets?
No, it's only required when you need some Tomcat-specific attributes for
the webapp, such as Resource definitions. Were you using
Do you have the servlet definitions and mappings in the web.xml for the
apps?
Also remember (i think) seeing something about tomcat 5 not using the
invoker servlet by default anymore. If that is true, it would need to be
uncommented in the web.xml file in the conf directory
Scott Purcell
Hi, everybody.
I'm trying to make Apache 2.0.55 connect to Tomcat 5, using mod_jk.
I'm getting cannot find worker, and my config files seems to be ok.
Is there other way to make Apache and Tomcat talk?
I read that it's recommended to use mod_proxy_ajp, but it's only
available on Apache 2.2, and
Mark Thomas wrote:
Paul Singleton wrote:
(I am required to anonymiee a Tomcat 5.5 server from hackers
trying to discover its version etc.)
If I put this in conf/web.xml
error-page
error-code404/error-code
location/anon_error.jsp/location
/error-page
*and* put an anon_error.jsp in every
I saw the response from chuckif the invoker servlet is a security
risk, and only the mappings need to be done, then that is the way you
should do it.
Mike Sabroff wrote:
Do you have the servlet definitions and mappings in the web.xml for
the apps?
Also remember (i think) seeing something
Hi ,
I have installed Tomcat 5.0 and trying to access the sample servlet
examples.
My directory structure is like this
tomcat installation dir/webapps/sample is the directory where I have
my files
tomact installation dir/webapps/sample/index.html
tomact installation
Thank you Charles
It appears that a combination of servletelement(s) and
servlet-mapping(s) elements does the trick.
I can now hit the servlet using my servlet-mapping url entry.
No matter what, I cannot call the servlet by using the
com.xxx.xxx.ServletName. But that was sloppy anyway, and it
Are your samples part of a package? If not, then they are assigned the
default package and that may not be the same as the package assigned
when they are in the classes directory. Use a package statement if you
are not already.
Devireddy, Nagendra Reddy (STSD) wrote:
Hi ,
I have installed
Probably important:
===
- 2x Xeon, 3 GB mem
- Linux 2.4.26
- Java 1.5.0_06-b05
- Apache Tomcat 5.5.15
- CATALINA_OPTS=\
-server \
-Djava.awt.headless=true \
-Dfile.encoding=UTF-8 \
-XX:MaxPermSize=256m \
-Xms1024m -Xmx1024m
- Connector port=8009 protocol=AJP/1.3
Hi All,
I am facing a big problem. I am very much new to tomcat
my proble is tomcat responds very slow sometimes and i had no other
option than to restart tomcat service.
sever config:
H/W:
HP DL380 xeon dual processor,2GB RAM
S/W:
WIN2K, tomcat 5.0.16 and JSDK 4.1,
which connects to SQL2K
There are many variables along the path to enlightenment.
Don't give-up on Tomcat so soon.
Sometimes Tomcat is only as good as the applications deployed within her.
Given that Tomcat has been up and running for me for as many as 90 days in a
row with a high-use application accessing a database
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Tomasz Nowak
Probably important:
===
[lots of technical details about kit and container config]
Very important
==
Your application. Have you profiled it for memory leaks that would
cause a OOME? Have you tested it
From: Javed Iqbal [mailto:[EMAIL PROTECTED]
Subject: Freezing Tomcat very often
my proble is tomcat responds very slow sometimes and i had no other
option than to restart tomcat service.
Can you find anything in the logs?
WIN2K, tomcat 5.0.16 and JSDK 4.1,
Assuming you meant JSDK 1.4.1,
enableLookups=true redirectPort=8443 /
Why enableLookups=true ???
Also, Cocoon can be very resource-intensive depending
on which blocks you've built.
JSP under Cocoon 2.1.7 and JDK 1.5 is also
problematic, see for example:
http://issues.apache.org/jira/browse/COCOON-1457
I have some
Mark Eggers [EMAIL PROTECTED] wrote:
enableLookups=true redirectPort=8443 /
Why enableLookups=true ???
I use request.getRemoteHost in couple of places.
Also, Cocoon can be very resource-intensive depending
on which blocks you've built.
Almost always only:
- databases-block
-
when I make changes to a servlet I don't see changes unless I turn
tomcat off and on... this is a huge pain, it's at work, where we can't
be turning Tomcat off and on all day long whenever we make changes to a
servlet.. Is there a way around this? (Does Tomcat 3 come with a
Manager? I
John C. Dale [EMAIL PROTECTED] wrote:
Don't give-up on Tomcat so soon.
At least 3 years of giving a chance are not soon... ;]
Sometimes Tomcat is only as good as the applications deployed within
her.
Operating system is only as good as the applications run on it.
True of false? True... in
Dear Ladies and Gentleman,
We are using tomcat 4.1 under windows 2003 Server on an computer which
is located in an dmz and have several problems with cookies.
It is so that if we try to load a new page within our application after
the starting page has been loaded we get an error regarding the
Peter Crowther [EMAIL PROTECTED] wrote:
Have you tested it for deadlocks that would cause hangs?
[...] Profile your application. What's eating memory?
Get a thread dump when your application hangs. Is anything
deadlocked? What? Where?
How?
I'm confused - but wouldn't an enableLookups on the
AJP connector return the hostname of the remote Apache
server sending the request (and not the remote web
client)?
I don't know since I'm at work, and I always disable
enableLookups since it's a potential performance hit.
/mde/
--- Tomasz
[...skiped...]
I've been crond-restarting Tomcat 4.1 on Java 1.4 every
night for more than a year, and now I have to restart
Tomcat 5.5.15 on Java 1.5 AND apache httpd also almost
every single day. From my -user point of view, Tomcat
doesn't change in a good direction. In fact in it is
On 2/28/06, Tomasz Nowak [EMAIL PROTECTED] wrote:
Peter Crowther [EMAIL PROTECTED] wrote:
Have you tested it for deadlocks that would cause hangs?
[...] Profile your application. What's eating memory?
Get a thread dump when your application hangs. Is anything
deadlocked? What? Where?
Mark Eggers wrote:
I'm confused - but wouldn't an enableLookups on the
AJP connector return the hostname of the remote Apache
server sending the request (and not the remote web
client)?
No.
JkOptions +ForwardLocalAddress
Regards,
Mladen.
I don't really want to get into a pissing contest over this (mainly because
I have some serious pressure and a rather small aperture, resulting in an
unmatchable pressure/volume ratio), so this is the last thing I will say on
the topic that doesn't relate to a solution for you (which, at the
Hi,
You must look at your java code in order to find any function that are
deprecated. Sometimes this functions are the problem of memory leaks, high
cpu usage, etc...
Best regards,
Abraham Fernández Álvarez
Dpto. de Informática
FNAC ESPAÑA S.A.
Parque Empresarial La Finca
Pº de la Finca,
Frances wrote:
when I make changes to a servlet I don't see changes unless I turn
tomcat off and on... this is a huge pain, it's at work, where we can't
be turning Tomcat off and on all day long whenever we make changes to a
servlet.. Is there a way around this? (Does Tomcat 3 come with a
Good day!
I have an implementation of DSpace (webapp running on standalone Tomcat
5.5) that seems to be working well.
Whether I'm a moron or not I'm not prepared to answer at this point!
How can I set the /dspace webapp as the default ROOT applet?
I don't want to use
Hi,
I'm seeing a strange behaviour of tomcat (once more :-)) which I can't explain.
At some point of time and without a recognizable reason beans start to
vanish from the request scope. The catalina.out is then full of
exceptions like:
StandardWrapperValve[controller]: Servlet.service() for
John C. Dale [EMAIL PROTECTED] wrote:
PHP is great. So is Zoap and .NET. Careful, though, some of the same
problems you would be shunning Java for would also appear in any
Internet development/application development platform.
I know the pitfalls of PHP, I been developing php webapps
Tim Lucia [EMAIL PROTECTED] wrote:
Send Tomcat a QUIT (11) signal on Unix, or control/break (run it
interactively) on Windows. This will cause the VM to dump all thread
stacks.
If you don't like Tomcat, you can always shell out some big bugs for a
commercial application server. For some
Tomasz.
could you please stop whining and reply to the suggestions in your
original thread (sad: ...) if you want to get real help...
If you don't need help, and just want to curse around tomcat
developers and/or users... then tell us, so we can filter your
messages out.
regards
Leon
On
#1 - I have a reasonable command of commons logging, log4j, juli, java
logging, etc., and I can quite easily make the application logging work
without a hitch. As for 'production ready logging', I would look to valves
for things like access logging. The access log valve works virtually the
same
On 2/28/06, Tomasz Nowak [EMAIL PROTECTED] wrote:
Your right, the tone of my postings is inproper.
I've been using 'free' software for almost 10 years now
and I pretty well get the rules. My only excuse is the
level of my frustration, based on recent Tomcat use.
For now, the only
Just thought I should post that it looks like the
problems I'm having have nothing to do with mod_jk,
tomcat or apache. After diagnosing with Redhat, it
looks like there is some sort of incompatibility
between the NIC's on these new servers and the Redhat
driver.
When we force the NIC into 100MB
On 2/28/06, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:
javax.servlet.jsp.JspException: No bean found under attribute key result
this is a regular struts exception, it is expecting a bean in one of the
scopes (request,page,session), but it is not there.
'The funny thing is, that there
On 2/28/06, Peter Lin [EMAIL PROTECTED] wrote:
honestly, besides Weblogic, most servlet and ejb containers do not provide
simple and clear instructions for tracing issues. With websphere, you have
to buy an expensive license of WASD and even then debugging an issue won't
be better in my
I have found that running Jconsole against the VM (JMX) and watching the
various memory pools can be quite informative. I have not evaluated the
performance impact in a production environment (don't run Jconsole on the
same production box, as per the instructions.) I have had good luck with
Tomcat Users:
We also had the dreaded, 'out of memory' errors and periodic crashes
several times every day. Currently, we are stable. With help from
Chuck, we were able to narrow down our problem to that of
insufficient permanent generation memory. The point being that
figuring out
Hi Tomasz,
you mentioned below that you have a MaxPermSize of 256m. I would suggest
increasing this value to a much larger amount and even increasing your
-Xms and -Xmx values.
We had a problem with our application in a live environment where it
would regularly get errors like the
Another tool I find very useful is visualgc, which is part of the
jvmstat 3.0 package available here http://java.sun.com/performance/jvmstat.
You dont have to set anything up and its really lightweight. You could
probably run it in a production environment with hardly any impact on
Remy Maucherat [EMAIL PROTECTED] wrote:
In case you haven't noticed, it is extremely hard to do, because
webapps have their own logging mechanism most of the time. You mention
the logger element of 4.x, but it didn't actually do anything (it did
put the internal logging for the specified
Nathan Smith [EMAIL PROTECTED] wrote:
Hi Tomasz,
you mentioned below that you have a MaxPermSize of 256m.
I have not seen OOME: PermGen errors on that machine
but after having some of them on other machine with aditonal
10 webapps deployed I've increased it from default 64m
to 256m to be
Leon Rosenberg [EMAIL PROTECTED] wrote:
We had some serious problems with tomcat, which are solved now,
however, we are on 5.0.25 (with session patch) and not on 5.5.x yet.
However, when tomcat dies, what your cpu usage is looking like? 100%?
I've noticed that when tomcat hangs - load avarage
Tim Lucia [EMAIL PROTECTED] wrote:
#2 - Do any commercial application server vendors offer you
assistance on how to find bugs in application code? You're much more
likely to find these answers using google, or reading wikis or from
community support. There are hundreds of such discussions
you should seriously consider upgrading to 2.6.x linux. 2.4.s thread
support simply sucks! If your tomcat spawns more than allowed threads
it will get an outofmemoryerror and simply die... And I don't mean
your 200 tomcat httpworker threads only, but all threads in the jvm,
including database
I use JProfiler with Tomcat all the time.
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Tomasz Nowak
Sent: Tuesday, February 28, 2006 6:37 PM
To: users@tomcat.apache.org
Subject: Re: Sad: Tomcat 5.5.x crashes almost every single day.
Remy Maucherat [EMAIL
another potential solution is to try a different JVM like Bea's JRockit.
JRockit provides some built in profiling capabilities, so that is another
way to get some profile data quickly.
peter
On 2/28/06, Tim Lucia [EMAIL PROTECTED] wrote:
I use JProfiler with Tomcat all the time.
On 2/28/06, Tomasz Nowak [EMAIL PROTECTED] wrote:
I've not noticed more then 400-500 java threads, but I'll monitor
that. I've set different ulimits form differnt users, BUT user
that runs java/tomcat has no limits but one: -s 2048 (stacksize).
AFAIK that one was recommended by
Don't count on it!!
In a message dated 2/28/2006 7:26:33 P.M. Eastern Standard Time,
[EMAIL PROTECTED] writes:
it seems that using a rude tone is a good way to get many answers,
your question got 26 answers, mine, with a similar problem, only 1
(and a not helpful one).
Leon Rosenberg [EMAIL PROTECTED] wrote:
kill -SIGQUIT (i think its kill -11) your tomcat-java process
Ok, it has happened again ! Simply:
Mar 1, 2006 2:28:34 AM org.apache.catalina.connector.CoyoteAdapter
service
SEVERE: An exception or error occurred in the container during the
request
Peter Lin [EMAIL PROTECTED] wrote:
look at the dump, it looks like the permgen ran out of space
PSPermGen total 50304K, used 50170K [0x445f, 0x4771,
0x545f)
object space 50304K, 99% used [0x445f,0x476ee878,0x4771)
try increasing your permGen to 128Mb. Another
On 2/28/06, Tomasz Nowak [EMAIL PROTECTED] wrote:
Peter Lin [EMAIL PROTECTED] wrote:
look at the dump, it looks like the permgen ran out of space
PSPermGen total 50304K, used 50170K [0x445f, 0x4771,
0x545f)
object space 50304K, 99% used
All,
I manage an intranet environment with 3 web app servers running Tomcat.
There is load balancing between these 3 servers. If a user, says John, logs
on to the system, his session will be randomly on one of these 3 servers.
Now, how can I find out which server John's session is on?
Any help
Hi ,
I have installed Tomcat 5.0 and trying to access the sample servlet
examples.
My directory structure is like this
tomcat installation dir/webapps/sample is the directory where I have
my files
tomact installation dir/webapps/sample/index.html tomact installation
From: Devireddy, Nagendra Reddy (STSD) [mailto:[EMAIL PROTECTED]
Subject: Problem with Tomcat 5.0.28
When I try accessing index.html .. Its throwing
classdefinationNotFound error .. But that class
exists in the sample.jar
What class? If you're referring to the index.html file, it's not
Hi,
Thanks for your reply.
The class that is appearing in the error message exists under
webapps/sample/WEB-INF/lib
And And all the classes are in a package.
One more thing .. This was working fine with Tomcat 4.0 and after
upgrading to Tomact 5 its giving this problem..
Is there any thing
Hi Tomasz,
this is the exact point I was making in my previous email. The error
message that was returned was to do with the Java Heap Space. It may be
referring to the entire heap that is allocated to the JVM, who knows.
The problem can be fixed by increasing your -XX:MaxPermSize value to
From: Devireddy, Nagendra Reddy (STSD) [mailto:[EMAIL PROTECTED]
Subject: RE: Problem with Tomcat 5.0.28
One more thing .. This was working fine with Tomcat 4.0 and after
upgrading to Tomact 5 its giving this problem..
Were you depending on the invoker servlet in 4.0? This is disabled in
--- Tomasz Nowak [EMAIL PROTECTED] wrote:
Peter Lin [EMAIL PROTECTED] wrote:
look at the dump, it looks like the permgen ran
out of space
PSPermGen total 50304K, used 50170K
[0x445f, 0x4771,
0x545f)
object space 50304K, 99% used
Thanks.
Where do I put the System.setProperty(...)?
- Original Message -
From: Richard Toren [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, February 27, 2006 7:28 PM
Subject: Re: tomcat and xslt 2.0
I think there are not that many xslt 2.0 engines out
Hi,
I'm trying to make Apache 2.0.55 connect to Tomcat 5, using mod_jk.
I'm getting cannot find worker, and my config files seems to be ok.
Is there other way to make Apache and Tomcat talk?
I read that it's recommended to use mod_proxy_ajp, but it's only
available on Apache 2.2, and there
Peter Lin [EMAIL PROTECTED] wrote:
It's not at all clear why -XX:MaxPermSize=256m isn't working and the
perm size is still at the default. If the perm gen was set correctly,
wouldn't the dump show something other than 99%?
You're right, it shows
PSPermGen total 50304K
not the 256m
Hi,
I'm currently trying to protect a tomcat web-app via LDAP. This application
handled the protection against a LDAP server with a customized login procedure
before. As there is now some more sensible content in the web-app, I wanted to
protect the entire web-app by tomcat. Therefore I
Nathan Smith [EMAIL PROTECTED] wrote:
The problem can be fixed by increasing your -XX:MaxPermSize value to
more than 256.
I've increased it to 512m now. I'll see.
Download and use a program called visualgc available here
http://java.sun.com/performance/jvmstat. You can have it running
Wade Chandler [EMAIL PROTECTED] wrote:
Sometimes changing the ratio to not have enough new
space and then creating too many objects too fast can
make your application eventually throw OOMEs because
it can't move the objects into older spaces quick
enough depending on what you application is
77 matches
Mail list logo