Hi!
We use JNDIRealm for users authentication from Tomcat again OpenLDAP.
But users doesn't get notifications about password expiration.
It is possible for current solution (Tomcat and OpenLDAP) ?
Or we must create different functions in web application for passwords
expiry dates searching
Sounds like your code might have a memory leak.
The best thing todo is to profile the application and see where all
the memory is being used.
On Jan 16, 2008 8:52 AM, Katama Reddy [EMAIL PROTECTED] wrote:
Hi,
I was facing an issue in one of the web application which was deployed in
Apache
--- Caldarale, Charles R [EMAIL PROTECTED] wrote:
The admin webapp was not ported to Tomcat 6 for a variety of reasons.
You can use Lambda Probe (www.lambdaprobe.org) for some of the
information, and JConsole to poke around inside the various MBeans
Tomcat has. However, neither of these
Hi,
I was facing an issue in one of the web application which was deployed in
Apache Tomcat server. The issue was getting out of memory error after 2-3
months of deployment and happening frequently(after every 2-3 months). It
would be great if some one suggest the reasons for occurring this
From: Gavan Hood [mailto:[EMAIL PROTECTED]
My problem is the initialization.
When I start tomcat it takes about two minutes to complete
initialization and pegs my little processor at times, often
it keeps it around 80% untilized...
Yeah, that's not good in an embedded device!
2 minutes
Hi,
I'm trying to create an applet launching tomcat 6 in embedded mode, but it
seams that the logging from Tomcat 5.5 to 6 has changed and there are some
references left somewhere in the code for the embedded mode.
The org.apache.catalina.core.StandardService has an import
Thanks for this. We tried it and it did fail. I don't understand the
reasoning though, I would have thought that the whole point of a queue
is to queue requests for which there is no available threads. And I
would hope that threads would be returned to the pool when a request
ends.
It is not
I tried using relative paths once. My experience is relative paths
won't work as the current directory is whatever the working directory
was on tomcat start. I had to scrap it as it really wasn't consistent
enough to be usable. Something to try might be setting this path using:
(inside the
Hi,
Does anyone know how to get the username of the person who is currently
logged in.
I'm running tomcat 6 and authentication is done using LDAP.
Something link nameOfTagLib: nameofMethodToGetUsername woulf be nice :-D
Thanks,
Vackar
--
View this message in context:
1. Reposts are annoying and I saw this post *3* times. Please wait for
answers.
2. Assuming you are trying to do this in a jsp, have your considered
${pageContext.request.remoteUser} ?
--David
Vackar wrote:
Hi,
Does anyone know how to get the username of the person who is currently
How do you connect httpd to Tomcat? Via mod_jk, mod_proxy_http or
mod_proxy_ajp?
Which MPM do you use in httpd, prefork (single-threaded) or worker
(multi-threaded) or something else?
To give you hints, it would be nice to see your connector configuration,
and the configuration of your
Apologies for re-posts, I edited the original message a couple of times
because I can't type... Sorry:-((
David Smith-2 wrote:
1. Reposts are annoying and I saw this post *3* times. Please wait for
answers.
2. Assuming you are trying to do this in a jsp, have your considered
Thanks for the tip David! For those who are uding jsf then it's done like
this:
FacesContext.getCurrentInstance().getExternalContext().getRemoteUser();
Next question is:- does anyone know how to expire the authenticated session
- used for logout.
Thanks,
Vackar
Vackar wrote:
Apologies for
Hi all, I'm Raúl.
We had a tomcat 5.0.28 server configured with 2 clustered instances(working
perfectly), and we decided to migrate to java6 and the new tomcat 6.0.14.
We modify the configuration files to match the new tomcat 6.0.14 structure.
But now we have really annoying problems with the
Dominik Pospisil wrote:
Indeed. It would be OK to return 503, for requests, that already have
been received by the first node, but not returned yet. New requests
That's the case. All errors I am getting are from requests which were allready
in processing by failing node. Why it is OK to
... adding to previous post:
It also does not retry/fail over, in the following (more or less obvious
cases):
- there was a problem with the client (browser) connection
- we already started to send back parts of the response to the client,
typically the headers (depending on
Caldarale, Charles R wrote:
From: Michele Mazzucco [mailto:[EMAIL PROTECTED]
The folder is created at tomcat startup but when I stop tomcat
it still complains because it doesn't find the file SESSIONS.ser
(i.e. the same error occurs).
Looks a lot like an Axis problem after all:
Hi all,
I deployed my WAR to Tomcat by using mvn tomcat:deploy Though I got
result BUILD SUCCESSFUL, I can't see this web-app in Tomcat.
Someone knows why?
-
Ihr erstes Fernweh? Wo gibt es den schönsten Strand.
Hi,
I am generating PDF documents from JSP directly to output stream. However
when I try it from IE, it does not work properly. Sometime nothing happens.
Sometimes, show data corruption error. Sometimes connection error, etc.
I suspect it may be something to do with partial content reading from
Hi,
It is a bit late for a reply, but it took our system administrators some
time to finally commit the changes. The last thing you wrote did indeed
work, although you must make sure to remember to set the SetHandler
jakarta-servlet or it won't do anything with the values you have set.
Now
Hi,
It was as I expected and a virtual server was 'eating' my requests. The
JkMount was actually already set up in the global server, but by adding
the line JkMountCopy All it got forwarded to all the virtualhosts as
well. Since this is only a temporary problem for us, it will have to do...
Hi,
I'm running tomcat in embedded mode from an applet. When I open a html page
the embedded server responds correct. When I call a jsp I get the error
java.lang.IllegalStateException: No Java compiler available below. Does
maybe someone know what the reason could be ? - or point me to a good
Hi,
One of our web applications is set up to have people agree to a license
agreement before using our site. This is done by setting up a cookie
that tells our browser that they have accepted the agreement. This to
avoid that people would have to accept it every time they brows to that
web
I am using maven tomcat:deploy to deploy. It worked fine but now I am having
this error:
Cannot invoke Tomcat manager Embedded error: Server redirected too many
times (20)
Any ideas?
How are you writing to the outputstream? You should be doing something
like this below( taken from
org.springframework.web.servlet.view.document .AbstractPdfView)
private static final int OUTPUT_BYTE_ARRAY_INITIAL_SIZE = 4096;
// IE workaround: write into byte array first.
ByteArrayOutputStream
Jonadan wrote:
Hi,
I am generating PDF documents from JSP directly to output stream. However
when I try it from IE, it does not work properly. Sometime nothing happens.
Sometimes, show data corruption error. Sometimes connection error, etc.
I suspect it may be something to do with partial
Well, I probably wouldn't put that directory anywhere near
$TOMCAT_HOME; I'd want it somewhere on /var with other volatile and
temporary stuff.
--
Mark H. Wood, Lead System Programmer [EMAIL PROTECTED]
Typically when a software vendor says that a product is intuitive he
means the exact
From: olk [mailto:[EMAIL PROTECTED]
Subject: java.lang.NoClassDefFoundError:
org/apache/juli/logging/LogFactory
The org.apache.catalina.core.StandardService has an import
org.apache.juli.logging.LogFactory, but the org.apache.juli in the
catalina.jar of apache-tomcat-6.0.14 is empty
On Jan 16, 2008 4:21 AM, Peter Crowther [EMAIL PROTECTED] wrote:
From: Gavan Hood [mailto:[EMAIL PROTECTED]
My problem is the initialization.
When I start tomcat it takes about two minutes to complete
initialization and pegs my little processor at times, often
it keeps it around 80%
Shiby Maria John wrote:
I was getting confused with setting the load balancer to be
sticky_session and setting of lbfactor together.
By session, i meant new sessions being created in the server.
Are they mutually exclusive ?
sticky_session: if a request carries a session id, either via
Rainer Jung wrote:
If there is no such worker, or the worker is
nor usable, the request is handled like it wouldn't have a route in the
session id, or no session at all.
Also if there is directive sticky_session_force=true
and the worker is not usable then the 503 is returned to the user.
The maven-war-plugin allows for war overlays [1], which may accomplish what
you need.
[1] http://maven.apache.org/plugins/maven-war-plugin/overlays.html
On Jan 15, 2008 6:04 AM, Peter Crowther [EMAIL PROTECTED] wrote:
From: DCVer [mailto:[EMAIL PROTECTED]
I am trying to merge 4 web
Hi All
I'm not sure this is exactly the place to be asking but I can't think of
anywhere else so here goes. I have the same piece of code running on two
different Tomcat installations, one Tomcat 5.0, the other Tomcat 5.5. The
code calls and web service and produces a javax.xml.soap.SOAPMessage
Thank you.
So the only way you can do domain wide fail-over is by using the domain
name given in worker.node1.domain=A in the Jboss server.xml's jvmRoute ?
And there are no attributes in the workers.property file to do that ?
Regards
Mohan
Mohan2005 wrote:
Hello
I saw this in
Mladen Turk wrote:
Rainer Jung wrote:
If there is no such worker, or the worker is nor usable, the request
is handled like it wouldn't have a route in the session id, or no
session at all.
Also if there is directive sticky_session_force=true
and the worker is not usable then the 503 is
The connector URIEncoding defaults to ISO-88591
has its roots in the Multinational Character Set produced for Digital
Equipment Corporation in 85
the original architecture did'nt handle 'other character sets contingency'
mainly as DBCS did'nt figure in until Shift-JIS, GB2312 and Big5 code pages
I think that it boils down to - change everything to UTF-8 wherever you see
that it is using something else... Perhaps there is a cookbook solution
indicating in gory detail, how to setup Tomcat for internationalization,
xml files, web.xml, config files, property files, any custom programming
ok, it looks like you might have ended up with a rogue socket,
and what happens is that any message sent to that socket just gets lost
in the ether, since it doesn't have any interest ops.
There is a workaround for this, turn off keep alives all together, or
implement a keep alive timeout
download wireshark, and trace udp packets,
there must be something on your system, that is not broadcasting or
receiving multicast packets
Filip
Randy Paries wrote:
Filip
So here is what i do not understand , and i appreciate your help.
1) I have completely swapped out the hardware.
To anyone who has successfully used Comet:
I've been trying to use Comet with Tomcat 6.0 for a few weeks now and have
been unsuccessful. I'm so frustrated with the lack of documentation and the
unusable example that was given with Tomcat.
Are there any step-by-step instructions on how to
that's expected, maybe not 30% but it all depends on the test.
What the NIO allows you for, is to have more sockets than threads, and
also being able to free up a worker thread when sending down static
content to the client.
Filip
Shlomi Tsur wrote:
Hi
We are testing the new nio
To anyone who has successfully used Comet:
I've been trying to use Comet with Tomcat 6.0 for a few weeks now and have
been unsuccessful. I'm so frustrated with the lack of documentation and the
unusable example that was given with Tomcat.
Are there any step-by-step instructions on how to
This post (http://www.nabble.com/comet-questions-td14673697.html#a14673697)
contains test code for both a client comet servlet. See if it
helps.
On Jan 16, 2008 10:35 AM, Siobhan [EMAIL PROTECTED] wrote:
To anyone who has successfully used Comet:
I've been trying to use Comet with Tomcat
Hello Christopher
The redirection is in my hands.
If I edit /etc/httpd/conf/httpd.conf:
JkMount / worker1
I'm sent to Tomcat home page (root level /)
--- /TOMCAT_HOME/webapps/
And the special headers are comming.
But... if I edit /etc/httpd/conf/httpd.conf:
JkMount /RS/* worker1
Trying to be
Hello,
We're having a timeout issue (probably configuration) with Tomcat 5.5.25
and Shibboleth 1.3f ( http://shibboleth.internet2.edu/ ).
The environment is a dev server setup such that the Shibboleth SP is
integrated with Apache 2.0.52 via mod_shib which is in turn using Tomcat
(via
Ok. But how is it all suppose to be put together? I want to use comet using
jsp, but I don't see any jsp code.
-Original Message-
From: Peter Warren [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 16, 2008 12:42 PM
To: Tomcat Users List
Subject: Re: Comet Development
This post
Hello all,
I'm trying to update a DB2 database via servlet pieces of data coming from
an html form, but I'm getting an error message.
Basically, everything works well when i make two separated programs :
-One sending html forms data to the servlet and another one running a simple
java class to
I recently got bit by this:
http://marc.info/?t=10970926148r=1w=2
So I was looking for some statement somewhere on if that issue is now
fixed in 5.0.x and/or if it's an issue in either 5.5 or 6.0, and what
JVMs are 'safe' to use in 5.5 and 6.0.
That's when I saw this:
Tomcat 6.0
From: gb1071nx [mailto:[EMAIL PROTECTED]
Subject: Tomcat 6 requires config to run on JSE 5?
So I was looking for some statement somewhere on if that
issue is now fixed in 5.0.x and/or if it's an issue in
either 5.5 or 6.0,
5.0 is now deprecated, so the first part of that question is
I've built tomcat 5 and 5.5 single servers a lot, but now I'm trying to
build a tomcat 6 cluster for testing.
The docs seem pretty straightforward (just uncomment the Cluster line) and
I've followed it, but I'm getting errors. The error looks like:
Charles,
Thanks for your patient responses. Unfortunately, the shared classloader does
not
work either. This is in summary what I am trying to do: I have 3 webapp
contexts that
use a number of commons libraries (say, digester, betwixt, beanutils). I do not
want to
pack these jarfiles in each
I believe if your session starts through HTTPS, the cookie will be
marked as secure and it won't be sent if the user switches to non-secure
HTTP.
Maybe my question is stupid, but, is it possible to browse a site on
HTTP and having just the JSESSIONID cookie sent on HTTPS to prevent
session
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
German,
[EMAIL PROTECTED] wrote:
| JkMount / worker1
|
| And the special headers are coming.
|
| JkMount /RS/* worker1
|
| BUT !!! in this case I lose the special headers.
If it's working for / but not for other URLs, I don't believe there is
any
it would be very strange to how the cluster would have anything to do
with this :)
the error you are getting is:
Caused by: java.net.UnknownHostException: lexecfin
the JDBC driver is unable to resolve that name, put the name in your hosts
file, or put the IP address instead of hostname for
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
GF,
GF wrote:
| I believe if your session starts through HTTPS, the cookie will be
| marked as secure and it won't be sent if the user switches to non-secure
| HTTP.
|
| Maybe my question is stupid, but, is it possible to browse a site on
| HTTP and
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Andris,
Andris Eiduks wrote:
| We use JNDIRealm for users authentication from Tomcat again OpenLDAP.
| But users doesn't get notifications about password expiration.
|
| It is possible for current solution (Tomcat and OpenLDAP) ?
| Or we must create
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Chris,
Chris Mannion wrote:
| I'm not sure this is exactly the place to be asking but I can't think of
| anywhere else so here goes. I have the same piece of code running on two
| different Tomcat installations, one Tomcat 5.0, the other Tomcat
Caldarale, Charles R wrote:
It's not really incorrect, but is certainly misleading. Chalk it up to
programmers not being writers or editors.
Now fixed in trunk. I'll get it ported to 6.0.x.
Mark
-
To start a new topic,
Anyone have suggestions on setting up redirect for the ROOT folder? What I
have is an old IIS server that I'm moving to Linux Tomcat. The IIS has all
kinds of redirects. My first thought was to just create folders and
index.jsp pages with a redirect tag, but is there a better way?
--
All that is
Hi,
I have the following question: to view a html page from the webapps
directory of Tomcat, what do I need to do? In Tomcat 5.5 all I had to do
was create a sub-folder in webapps and put the html page inside it. Then
using the right URL, I can access the page...This does not work in Tomcat
4.1
Hi, My tomcat worked before but now for some reason the browser won't find the
localhost. I am using the same address(http://localhost:8080 etc) Also for some
reason it wont shut down when I type inbin/shutdown Here is the error message I
get:
Using CLASSPATH:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
B,
B McFee wrote:
| Hi, My tomcat worked before but now for some reason the browser won't
| find the localhost. I am using the same
| address(http://localhost:8080 etc) Also for some reason it wont shut
| down when I type inbin/shutdown Here is the
Pitre, Russell wrote:
response.setContentLength(baos.size());
Hi,
I added the size information as follows;
response.setContentType(application/pdf;charset=UTF-8);
// response.setHeader(Content-Disposition,
inline;filename=\Document.pdf\);
[EMAIL PROTECTED] wrote:
Hi,
I have the following question: to view a html page from the webapps
directory of Tomcat, what do I need to do? In Tomcat 5.5 all I had to do
was create a sub-folder in webapps and put the html page inside it. Then
using the right URL, I can access the page...This
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Subject: RE: Problems with VirtualWebappLoader (Was RE:
Tomcat 6.0.x Classloader sequence)
I merely want the webapp classloader of each webapp1 to load
classes not only from WEB-INF/{classes|lib} but also from
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Subject: RE: Problems with VirtualWebappLoader (Was RE:
Tomcat 6.0.x Classloader sequence)
O.k., try this undocumented capability. Inside each Context element
that needs it, specify a Loader element with the following
attributes:
Hi Mark,
Thanks for your helpful comment..it solved the problem.
Ram
[EMAIL PROTECTED] wrote:
Hi,
I have the following question: to view a html page from the webapps
directory of Tomcat, what do I need to do? In Tomcat 5.5 all I had to do
was create a sub-folder in webapps and put the
Or IE does not like content or does not expect as valid connection.
--
View this message in context:
http://www.nabble.com/PDF-problem-on-IE-from-JSP-tp14879788p14899461.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
I'm running a Tomcat 5.5.25 cluster with 2 nodes and the following
cluster configuration in the Host/ element:
Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster
Valve className=org.apache.catalina.cluster.tcp.ReplicationValve
Hi,
I am wondering if someone may be able to point me in the right direction
here... after reviewing the J2SE spec, and the Servlet 2.4 Spec, its not
too clear whether circular dependecies such as the one I am investigating
below are legal or supported by Tomcat. Sun J2SE 5.0 classloader does
My web app is very simple, two servlets already installed so no war file.
Once it finally gets going it is very responsive, the initialization just
takes forever...
I have some war files coming, but I figure if I cannt get this basic
initialization to work theres not much point.
Hi everyone,
The connection to SQL server in my machine is by default so username and
password are not needed to login. In this case, what should I specify in
Resource.../ for username and password attributes? I tried not to include
them but got an error of Login failed for user ''. The user is
What happens if you include them, but empty -- eg username=
password=? I don't configure my datasources without a username and
password, so I've never actually tried it myself but it's worth trying.
--David
[EMAIL PROTECTED] wrote:
Hi everyone,
The connection to SQL server in my machine is
From: Caldarale, Charles R
Subject: RE: Problems with VirtualWebappLoader (Was RE:
Tomcat 6.0.x Classloader sequence)
I see by looking back at the beginning of this thread that
you already tried something similar.
Now let's really go back to your original question:
There are three
This solved a similar problem for me
String mimeType = sc.getMimeType(filename);
FileHelper helper = new FileHelper();
InputStream in = helper.fetch(filename, m_dir);
response.setContentType(mimeType!=null?mimeType:text/html);
response.setHeader(Pragma, cache);
What language is this guy talking ha ha.
This has got to be for a thesis or something or its attempted suicide ;)
- Original Message -
From: Michel Betancourt [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Thursday, January 17, 2008 3:33 AM
Subject: Tomcat 5.5
Thanks a lot for the whole explanation.
Let me plesase summarise to clear my understanding.
So it all means that if sticky_session is true, then a session started
in one machine will be routed to the same tomcat server always
whatever the load factor is set. And for any other new sessions being
Johnny Kewl wrote:
What language is this guy talking ha ha.
This has got to be for a thesis or something or its attempted
suicide ;)
- Original Message - From: Michel Betancourt
[EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Thursday, January 17, 2008 3:33 AM
Subject:
From: Michel Betancourt [mailto:[EMAIL PROTECTED]
Subject: Tomcat 5.5 classloading behavior
its not too clear whether circular dependecies such as
the one I am investigating below are legal or supported
by Tomcat.
Detection of circular dependencies is not the responsibility of any
Option 1: Deploy as unpacked. Simple and I use!
Option 2: If you deploy as war files, you may be able to read files
inside wars using classloader resource stream readers.
Greg Kontos wrote:
When I redeploy my .war file I want this upload directory to remain
unchanged. Is there a way
hi, all
I build a web application based on tomcat. In my design, I devide the server
side into several separate logic parts,and each part is deployed on a separate
Tomcat server. e.g. the first tomcat server is to process login request, second
tomcat server is to calculate user data, the third
I tired not giving $JPDA_OPTS to CATALINA_OPTS, but after that debugging
wasnt hapenning at all.
Caldarale, Charles R wrote:
From: varunsuresh [mailto:[EMAIL PROTECTED]
Subject: Re: Tomcat Shutdown error transport error 202: bind failed
export CATALINA_OPTS=$CATALINA_OPTS
82 matches
Mail list logo