Hi All,
I need to stop the tomcat gracefully(not manually) if the deployment of my web
application fails.
The scenario is this my web application has configuration file if I enter the
wrong values in the file then the deployment of my appplication fails but the
Tomcat starts up
Hi all,
Sorry for the mishap in my previous mail. I really didnt mean It. I
just installed the Tomcat 6 on jdk6 with Ubuntu6.06. I am
getting the following exceptions in the log. please kindly let me know
how to go about solving this.
I have set the context to true in the context.xml
I
Hi,
We are developing one element management system with its Web Client running
on Tomcat in a solaris box. It was observed that tomcat server process is
getting killed automatically. We checked the log files. The whole sequence
is just like when undeploying the war file, but without anybody
I need some help to the classloader concept of tomcat... (version 5.5.)
Our Tomcat has about 60 webapps running - right now every webapps have
in their Web/lib directory the libs for activation and java mail (among
other libs). As I understand, right now this libs are 60times loaded
into
We are using Tomcat version 5.5.12 and JDK 1.4.2_12-b03
Just a shot from the hip, but I guess, that's you're problem. Tomcat
5.5 need JDK 1.5 and up, or you'll have to download and install the
JDK 1.4 Compatability Package from
http://tomcat.apache.org/download-55.cgi
Cheers
Greg
--
what's
i thinks its server/lib you are looking for (or common/endorsed) but
i'm not sure whether java mail has some static fields which will be
screwed by sharing them among all apps.
leon
On 4/24/07, Thomas Papke [EMAIL PROTECTED] wrote:
I need some help to the classloader concept of tomcat...
Hi,
I've been reading the docs and found some info about the use of Remote
Address Filter.
However, my findings is that it only supports restricting access to a whole
webapp to given IP addresses.
So i wonder if it is possible to restrict access to not only IP addresses,
but also to certain
Sorry Leon but you are wrong.
What Thomas looks for is common/lib, not server/lib
according to
http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html it's
common/lib that is loaded in common classloader. server/lib is loaded in
catalina classloader which is not visible for webapps.
To
Hello,
My Tomcat webserver will be placed after the WebSeal. The users on the
workstations will authenticate on the WebSeal and will then have the
possibility to open a web application on the Tomcat server.
I want to configure my web application so that the login is done
automatically with the
You can't, and generally don't want to stop Tomcat (the server) when an
application is mis-configured. Instead, you can stop (mark unavailable)
your application. One way to do this is to throw an exception inside a
ServletContextListener, if it detects wrong values inside the configuration
file:
Cain Marko wrote:
Will it cause tomcat to send down and error page to client with the error
message?
Yes - assuming the client is still there.
Mark
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe,
Peder Larsen wrote:
So i wonder if it is possible to restrict access to not only IP addresses,
but also to certain paths within a webapp.
Tomcat does not provide this functionality. You would have to write
your own custom code.
If i have a webapp, /thewebapp, and i want to restrict the access
Tim Lucia wrote:
You can't, and generally don't want to stop Tomcat (the server) when an
application is mis-configured. Instead, you can stop (mark unavailable)
your application. One way to do this is to throw an exception inside a
ServletContextListener, if it detects wrong values inside
The order of events is:
Startup:
All listeners get called.
All filters, load-on-startup servlets get inited.
Shutdown:
All filters, servlets get destroyed.
All listeners get called.
So, it is possible for the combination of load-on-startup init +
contextDestroyed to do the same job as just using
If you can provide the functionality is to separate contexts then you
can you the built-in Tomcat features.
What do you mean? Nesting contexts? Do you have/know of a simple example for
this?
Peder
Peder Larsen wrote:
So i wonder if it is possible to restrict access to not only IP
Hi list!
I'm looking for set my application(jetspeed2 portal) like default into
Tomcat 5.5.20, i find some messages spoken about put the application
into /webapps/ROOT/ and it works but works quite bad because my
application show a lot of problems with Javascript.
Is it possible to specify
Peder Larsen wrote:
If you can provide the functionality is to separate contexts then you
can you the built-in Tomcat features.
What do you mean? Nesting contexts?
Yes.
Do you have/know of a simple example for this?
No.
For the nested context, the war needs to be outside your hosts
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Lizhg,
lizhg wrote:
Hi all, I have some problem with Listener and load-on-startup, I search
on google and I find this article below, it do a lot good to me, but I
still want to ask , using the init() [and destroy()] of a servlet
[is the same as]
aordin schrieb:
I'm looking for set my application(jetspeed2 portal) like default into
Tomcat 5.5.20, i find some messages spoken about put the application
into /webapps/ROOT/ and it works but works quite bad because my
application show a lot of problems with Javascript.
Is it possible to
Recently I've had lots of ajp-errors with Tomcat. Any idea what causes these?:
---
org.apache.coyote.ajp.AjpMessage processHeader
SEVERE: Invalid message received with signature 8224?
---
Number after signature varies.
Environment:
Win Server 2003 Standard x64 + Service Pack 1, Intel Xeon
This is an unexpected protocol error between mod_jk and Tomcat. As far
as I know, there is no open bug concerning the protocol.
Can you reproduce it? Does it only occur during high load? If you can
easily reproduce it without high load, set your JkLogLevel to trace and
post the full log file for
Hello all,
I want to set header parameters of http response in my servlet.
I set parameters as below:
**
theResponse.reset();
theResponse.resetBuffer();
theResponse.setHeader(Request Version, HTTP/1.1);
theResponse.setStatus(200);
Hello,
I am sorry that I did not address the memory leak issue to the users
list first, before sending this bug report:
http://issues.apache.org/bugzilla/show_bug.cgi?id=42217
I am aware of the fact that memory allocation occurs in Java progams,
and that Tomcat will exploit some resource pools
I assume you've seen this post on implementing httplib?
http://www.ethereal.com/lists/ethereal-users/200512/msg00203.html
In the meanwhile Curl implements this feature with curl_setopt
http://us2.php.net/curl
M--
This email message and any files transmitted with it contain confidential
Dear sir/madam,
This is Saran doing good as an admin, and I have few questions about the
Apache Tomcat Server after reading the documentation. In my workplace we are
using the Tomcat server version 5.0.28 for the web applications(for reports
and scorecards especially) but have plans to move to
Martin Gainty wrote:
please display the name of the class which is missing (from
ClassDefNotFound) which should be displayed in either
%CATALINA_HOME%/logs/localhost.-MM-DD.log
%CATALINA_HOME%/logs/stdout_MMDD.log
M--
when i try to run the recentley created jar in the
Caldarale, Charles R wrote:
The jar should have a META-INF/MANIFEST.MF file in it (the names must be
upper case). Within this file, there should be a line declaring the
Main-Class of the application. What does yours have in it?
- Chuck
i have included the Main-Class and
On 4/24/07, Reich, Matthias [EMAIL PROTECTED] wrote:
If memory allocation of Tomcat continues until I see messages like
org.apache.coyote.http11.Http11NioProcessor: Error processing request
java.lang.OutOfMemoryError: Java heap space
There are leaks that have been fixed in the NIO connector,
On 4/23/07, Martin Perez [EMAIL PROTECTED] wrote:
Any suggestions?
I would try to avoid using directly Object*Stream, to see what
happens, and verify the validity of the data which is sent and
received.
Rémy
-
To start a new
On 4/24/07, Huseyin Sinecan [EMAIL PROTECTED] wrote:
I want to set header parameters of http response in my servlet.
Are you sure you're working on the right response object? Perhaps
you can post a simple but complete example that fails...
I just tried the following file as a JSP:
I did a fresh build this morning from the SVN trunk, and I see the memory leak
with both NIO and APR connector.
For each browser I run, I have at most 3 active connections at a time.
I think, acually there are at most 2 active connections per browser, because by
default both IE and FireFox
I am almost sure you are right about the problem, it is a shell problem. I
will try having a look at this later but for now I don't have any clues to
what might be causing this, I'm going try make some debugging of the script.
vserv-deb:~# locate sh|grep bin|grep -v runner|grep -v locale|grep
What is a good java package that I can use with my webapp to let my
customers authenticate against their active directory installation, from
my Tomcat 5.5.15 webapp? Right now, I'm authenticating against my app's
built-in database, but that's not very extensible, even though it works
ok so
Hello,
Thanks for the answer.. Here is the complete code of doGet method:
protected void doGet(HttpServletRequest theRequest, HttpServletResponse
theResponse) throws ServletException, IOException {
theResponse.reset();
theResponse.resetBuffer();
On 4/24/07, Reich, Matthias [EMAIL PROTECTED] wrote:
I did a fresh build this morning from the SVN trunk, and I see the memory leak
with both NIO and APR connector.
For each browser I run, I have at most 3 active connections at a time.
I think, acually there are at most 2 active connections
This look right to me, in that /bin/sh is actually bash. So I don't understand
why it doesn't work. Perhaps there is some incompatibility in different
versions of bash. Is it possible that this work in bash 2.x and not in bash
3.x? Perhaps you can do a bash -version on a system ware the
Hi Rémy,
Actually, without using Object*Stream everything seems to work. I'm
currently using raw I/O streams and the communication is ok.
I guess people on the list would be interesting to know that currently
doesn't work with Object*Streams, either when Object*Streams are not
specially famous
Hello,
I originally posted this as a comment to bug 32499,
(http://issues.apache.org/bugzilla/show_bug.cgi?id=32499),
and was told to send it to the users mailing list.
Bug 32499 was marked as a duplicate of 24970, but it
is not a duplicate.
Bug 24970 was marked as wont fix, which is
On 4/24/07, Martin Perez [EMAIL PROTECTED] wrote:
Hi Rémy,
Actually, without using Object*Stream everything seems to work. I'm
currently using raw I/O streams and the communication is ok.
I guess people on the list would be interesting to know that currently
doesn't work with Object*Streams,
Hi Will,
Please only reply to the list.
I chose to install from the ZIP file on Windows XP, but some install
the Windows Service.
If you are using tools like Apache Ant along with Tomcat then it is
advisable to install it to a directory that doesn't have spaces , for
example C:\dev\tomcat\
That's right, debian 4 comes with 3.x and debian comes with 2.x.
*Where it worked (deb 3.1r3):*
Last login: Tue Apr 24 16:43:54 2007 from x.y.z.w
[EMAIL PROTECTED]:~$ bash -version
*GNU bash, version 2.05b.0(1)-release (i386-pc-linux-gnu)
Copyright (C) 2002 Free Software Foundation, Inc.*
On 4/24/07, Huseyin Sinecan [EMAIL PROTECTED] wrote:
Thanks for the answer.. Here is the complete code of doGet method:
For clarity, here's my entire adaptation of your code:
---
package com.example.test;
import
hi, all,
i'm writing a jsp front-end of a desktop search program in linux
using tomcat 5.5, here is my problem.
say we need a result.jsp which can display the results from
lucene and show the related links, codes like below (hard-coding
for simple, as long as you can get my thougt is
Hi Sean,
It's a little difficult IMO to refer to multiple bugs to determine
what the problem might be.
Please present a small snippet of code relevant to the problem, it
makes it more straight forward for us to understand and respond to the
problem.
If you are looking to set an uniform
I may be completely miss-understanding, but I think this is a browser trick.
At least in IE7 when I have c: it assumes file:..., but when I don't have c: it
assumes http:... . You will probably need to code file:///root/test.html (I
may have the wrong number of / after file:) to get this to
Any version? 4x. 5x?
I'm actually in the 4.1.3. series, but was wondering which class files I'd need
to revise and customize.
I assume most if not all are in the /catalina/src/share/org/apache/catalina/
repository, and figured something like Authenticator.java or Session.java might
need a
From: Lu Rui [mailto:[EMAIL PROTECTED]
Subject: linux + tomcat, some path/link problem
// for winxp
String filePath = new String(c:\\root\\test.html);
// for linux
String filePath = new String(/root/test.html);
A href=%= filePath % testlink /A
I have not verified the following, but
Sorry Rashmi, here is the problem without referencing
other bugs.
There is a problem with HttpServletResponse. If I set
the content type of an HttpServletResponse, the
charset is also set. For example consider the
following code,
HttpServletResponse sresp = ...
I think you would be better off writing a little authentication code inside
your servlets...
However if you want to modify tomcat, you'll find that stuff in
package org.apache.catalina.authenticator;
public class BasicAuthenticator
all I wanted to to say is that some browsers like IE do
I'd be glad to write it inside my own, but I figured using the security
constraint, you were bound to their classes.
-Original Message-
From: Johnny Kewl [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 24, 2007 12:45 PM
To: Tomcat Users List
Subject: Re: anyone ever altered the Tomcat
| From: David Kerber [mailto:[EMAIL PROTECTED]
| Sent: Tuesday, 24 April, 2007 10:38
|
| What is a good java package that I can use with my webapp to let my
| customers authenticate against their active directory installation, from
| my Tomcat 5.5.15 webapp?
Can't you just use the standard Java
Ha ha boy of boy are you in for some pain... sorry cant help myself.
Well yes, you need to convert... because MS just didnt have the decency to
ask the linux guys how to do it ;)
Heres a little code for you
if(rawFileName == null) return ;
This is Saran doing good as an admin, and I have few questions about the
Apache Tomcat Server after reading the documentation. In my workplace we are
using the Tomcat server version 5.0.28 for the web applications(for reports
and scorecards especially) but have plans to move to Oracle
Hi Sean,
Thank you for defining the problem.
I tried a few variations of code in Servlets and JSPs and was able to
get only application/xml instead of application/xml;some character
encoding .
The only time I got application/xml;some character encoding was when
there was a conflicting setting
I know next to nothing about Oracle app server, but price would be a big
difference, since you don't have to pay for Tomcat.
saravanan ragothman wrote:
This is Saran doing good as an admin, and I have few questions about
the
Apache Tomcat Server after reading the documentation. In my
I know next to nothing about Oracle app server, but price would be a big
difference, since you don't have to pay for Tomcat.
I really can't see any clear general advantage to Oracle's app server. The
Only clear advantage I can see is the integration with Oracle if you are
using Oracle.
Hi,
Just as a comment. I use the shared classloader by using the shared folder
to avoid loading multiple times my shared libraries (for jni use). I am not
sure what is the difference with the common/lib classloader, but it did not
work when I used that one.
--Luis R.
On 4/24/07, David
[EMAIL PROTECTED] wrote:
I know next to nothing about Oracle app server, but price would be a big
difference, since you don't have to pay for Tomcat.
I really can't see any clear general advantage to Oracle's app server. The
Only clear advantage I can see is the integration with Oracle
common: shared between all webapps and tomcat itself
shared: only shared between all webapps
Luis Rivera schrieb:
Hi,
Just as a comment. I use the shared classloader by using the shared folder
to avoid loading multiple times my shared libraries (for jni use). I am not
sure what is the
It is my understanding that Tomcat is a reference implementation of a
web container, so everything complies to standards. However Oracle
might have its own proprietary extensions to the standards.
Company sometimes decide to switch between servers for various
reasons, during those situations
My experience has been the reverse -- shared/lib is usually disabled and
not working, common/lib is used most of the time.
The difference between the two is common/lib is visible to both tomcat
internals and the webapps. That's why we put the db drivers in there
for container managed
some advantages in tomcat:
1)It is an open source AS
2)it is a light weight AS (no EJB)
3)it is easily configured with apache and IIS
4)very stable on unix like systems
5)good documentation online
6)java sun complaint
7)doesn't require alot of memory at startup
some disadvantages os oracle AS
1)
Thanks for the reply Rashmi.
I did a little more digging, and it seems this bug
only appears when the locale is set. My full servlet
code is,
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import
Well, that makes sense and I have had no problems using the shared class
loader. I guess I did something wrong when I tried to use the common class
loader for my jni classes. I guess I am light years away from really knowing
tomcat :)
--Luis R.
On 4/24/07, David Smith [EMAIL PROTECTED] wrote:
Bryan, Thanks so much for sending this a lot earlier. We tried it out
and found that we could simplify it a bit for our needs. I've included
the source here just in case.
What our valve does is just sets the domain on the session cookie, in
the request and response. The first time a user comes
Hi Sean,
You are right with the fact that the character set encoding does get
appended to the Content-Type header when the Locale is set.
However, according to the API docs:
http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletResponse.html#setLocale(java.util.Locale)
It also
... and finally don't forget, that the pathes used by these class
loaders are configured in conf/catalina.properties.
Luis Rivera schrieb:
Well, that makes sense and I have had no problems using the shared class
loader. I guess I did something wrong when I tried to use the common class
loader
However if you insist on only getting application/xml --- it is
still achievable (even if the Locale is set),
if you perform a HTTP Redirect
response.sendRedirect(/p/test81/test81.jsp); from the Servlet to the
JSP instead of a HTTP Forward.
-Rashmi
| From: David Kerber [mailto:[EMAIL PROTECTED]
| Sent: Tuesday, 24 April, 2007 13:31
|
| Nelson, Tracy M. wrote:
|
| Can't you just use the standard Java LDAP classes? Javax.naming.ldap.*,
| javax.naming.directory.* and friends? AD is supposed to be
| LDAPv3-compliant.
|
| That was one of the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Saran,
saravanan ragothman wrote:
[We] have plans to move to Oracle application server 10g
in future. but I still insist on tomcat server. Can you tell me some
advantages(and disadvantages, if any) of tomcat server over the
oracle application
Hi Saran,
Why did you post this message twice? under different headings :
Ragarding the advantages of Apache tomcat server
-Rashmi
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL
Sebastiaan van Erk wrote:
Hi,
I'm running Tomcat 6.0.10 on Linux Ubuntu Feisty on Java 5. I have a
CometProcessor which handles a large number of requests in a very
short time, and after about 3000 requests I consistently get the
following two errors:
Apr 18, 2007 12:09:19 PM
Benjamin Larchevêque wrote:
Hello, I saw that Tomcat proposes some interfaces to use Comet like Servlet
from version 6.x. Even(t) if I get the main idea I was not able to reuse the
pseudo code servlet ChatServlet provided on the following page:
http://tomcat.apache.org/tomcat-6.0-doc/aio.html
Reich, Matthias wrote:
I did a fresh build this morning from the SVN trunk, and I see the memory leak
with both NIO and APR connector.
Why don't you enable -XX:+HeapDumpOnOutOfMemoryError and send us a link
where we can download the HPROF files that get generated.
Also send us your config
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Sean,
Sean Bridges wrote:
I did a little more digging, and it seems this bug
only appears when the locale is set. My full servlet
code is,
[snip]
arg1.setLocale(arg0.getLocale());
arg1.setContentType(application/foobar);
I want to replace the tomcat-users.xml with two tables in MySQL:
Database : auth
table users :username varchar(15) primary key NN
pass varchar(41) NN
table roles : username varchar(15) primary key NN
role varchar(10) NN
Tried the solution from
Add a realm under the Engine name=Catalina defaultHost=localhost
section.
You'll need to copy the correct MySQL JDBC driver
(http://dev.mysql.com/downloads/connector/j/5.0.html) to the
tomcat_home\common\lib directory. Replace the test in localhost:3306/test
with you database name.
I've got it
Thanks Rashmi for clearing that up. I will try to get
spring to stop setting the Locale.
Christopher writes
The character set has to be chosen at some point. It
looks like what you are suggesting is that you want
to actually report an incorrect character set (or
none, which is just as
Thanks, switching to a ServletContextListener resolved the problem.
Pid [EMAIL PROTECTED] wrote:
Mike Peremsky wrote:
If it helps at all I am running on Windows XP.
If it's in the webapp directory, that explains it.
It's not in the same classloader.
You probably want
thanks men, actually I've already tried to add file:// prefix
explicitly to filePath in A href link, and in mozilla I can see the
property of link appear to be file:///root/test.html , which is a
good sign, huh? but, woo, hate this but, no matter how hard i clicked,
the browsers made no
make sure you have granted the correct permissions in your catalina.policy
e.g.
grant codeBase file:${java.home}/lib/- {
permission java.security.AllPermission;
};
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s)
Hi:
I would need help with the following -
I am trying to implement JAAS authentication using struts2. I have
implemented the following flow -
user request - struts action - login() - loginModule (implements
LoginModule)
this login module validates userid, password and in the commit(), it
82 matches
Mail list logo