On Thursday 08 November 2007, you wrote:
> The question I had was what happens when you directly request the login
> form and successfully login.
Tomcat will give you an error page saying something along the lines "the
login page was accessed directly". It won't let you login successfully.
Tom
Hi folks,
I notice some BLOG websites assign the subdomains to the registered users, like
user1.mydomain.com
user2.mydomain.com
If I use the tomcat to do this, do I use the virtual host
configuration? If so, do I use the same docBase to point to one war
file with different host names?
Thanks!
Hi,
The OS is windows XP
tomcat version 6
java version 1.5
database mysql
memory: 3GB
processor: 2.3GHz
it was working very fast before being deployed. About 30 people login
simultaneously to this application. Once this happens the application is
very slow.
ben short-2 wrote:
>
> So your web
Filip,
Yep, we're doing that...it's in the Virtual Host directive.
Thanks,
Kim ;-)
On Nov 8, 2007 12:21 PM, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote:
> you must define the JkMount directive inside your httpd.conf file to map
> a worker to a URL
>
> in this case I believe it would be
>
For the record I discovered the problem. Somehow there was a
context.xml file located in %TOMCAT_HOME%\conf\Catalina\localhost for
my web apps context which contained an empty node. Once I
deleted that one and redeployed the correct context.xml was put in
there. Not sure why the one from my webap
> From: Tom H [mailto:[EMAIL PROTECTED]
> Subject: Re: apache intermittently returning 503 errors from tomcat
>
> On my RHEL4 ES box, with tomcat 5.5.9 from the redhat Application
> Server subscription package
What happens if you try it with a real - and current - Tomcat download
from http://to
Tom H wrote:
Hi,
On my RHEL4 ES box, with tomcat 5.5.9 from the redhat Application
Server subscription package - I am seeing these messages in the
catalina.out and these correspond to a 503 error displayed to the
browser;
08-Nov-2007 20:34:45 org.apache.jk.common.ChannelSocket processConnec
Lorenzo,
We use Tomcat on OS X 10.5 and not only does it run great, the
improvements in memory management (true 64 bit) are impressive.
Stephen Caine
Soft Breeze Systems, LLC
Isn't there anyone who got the native stuff working on a Mac?
I followed all the steps. I compiled the source witho
Hi Kim,
as Filip indicated it would be helpful, to also see your other JK
configuration options, i.e. the JK Apache directives you used.
Fron the log output I guess, that your JK version is something around
1.2.6. We are now at 1.2.25, so I would suggest to do an update before
into digging into t
Hi,
On my RHEL4 ES box, with tomcat 5.5.9 from the redhat Application Server
subscription package - I am seeing these messages in the catalina.out
and these correspond to a 503 error displayed to the browser;
08-Nov-2007 20:34:45 org.apache.jk.common.ChannelSocket processConnection
WARNING: p
Christopher,
Please accept my apologies for my poor reactions. Thank you and others
(Chuck, Matthias) for taking more time than you had to help me with this
issue.
Regards,
Andrew R Feller, Analyst
Subversion Administrator
University Information Systems
Louisiana State University
[EMAIL PROTECT
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Andrew,
Andrew R Feller wrote:
> I'm sorry but maybe I am reading a different version of the servlet
> specification than you: it only explains the case where you access a
> container-managed resource and then login.
That would be the only case cov
> From: Andrew R Feller [mailto:[EMAIL PROTECTED]
> Subject: RE: j_security_check redirect after login
>
> I'm sorry but maybe I am reading a different version of the servlet
> specification than you: it only explains the case where you access a
> container-managed resource and then login.
Form-
if you're talking about someone "bookmarking" the login page or something, then
yes, this will not work!
They can't just arbirtarily go to it -- it only gets served from redirect I
believe. It would -- I believe -- be trying to redirect, and would not know
where to redirect.
-Original Mes
I obviously did not look hard enough in the right places, sorry.
That worked. Specifically:
response.setHeader("Pragma", "cache");
response.setHeader("Cache-Control", "cache");
fixed it.
Thanks for the help.
Roger
Caldarale, Charles R wrote:
From: Roger Parkinson [mailto:[EMAI
I have gotten (not me, but several users) an error sometimes citing "invalid
direct reference to login form" in the browser window.
This has happened with certain elements within the XML attribs of the container.
Not sure why it occurs, as these same users can access other parts of the
containe
Christopher,
I'm sorry but maybe I am reading a different version of the servlet
specification than you: it only explains the case where you access a
container-managed resource and then login.
The question I had was what happens when you directly request the login
form and successfully login. As
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Normen,
Normen Ruhrus wrote:
> iam deploying a servlet app via Tomcat sometimes as a Windows Service and
> sometimes as a standard Windows Console App.
>
> Since I need to implement different behavior in the servlet, I would need a
> way from inside
Hi there,
iam deploying a servlet app via Tomcat sometimes as a Windows Service and
sometimes as a standard Windows Console App.
Since I need to implement different behavior in the servlet, I would need a
way from inside the Servlet code to detect if the Tomcat this Servlet runs
in, runs as Wi
> From: Roger Parkinson [mailto:[EMAIL PROTECTED]
> Subject: Re: serving files through SSL
>
> I've identified that the cache headers are being set by
> default on the dynamic file. I don't know that they are
> the issue but it is the one difference I can spot.
As you've been told before, it de
3. It is unclear what happens in the event when a user requests the
form-
login-page directly instead of going through a container-managed
resource.
How does j_security_check know where to redirect the user once he has
authenticated successfully?
That's not allowed. At minimum
Gabe:
1) response.setContentLength(10115);
Yep, hard coded value figured by checking the length of my test pdf file
manually. I believe it is correct. I don't want to add the code that
would figure the length unless I have some evidence that it makes any
difference and it hasn't yet.
2) I chang
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Andrew,
Andrew R Feller wrote:
> 3. It is unclear what happens in the event when a user requests the
> form-
>login-page directly instead of going through a container-managed
>resource.
>
>How does j_security_check know where to redirect
yes but why am i getting the error:
Need to specify class name in environment or system property, or as an applet
parameter, or in an application resource file: java.naming.factory.initial
null
when i try to run it???
David kerber <[EMAIL PROTECTED]> wrote:
Any of those methods wi
Thank you Chuck, Matthias; I appreciate the direction. The reasons why
I ask are:
1. There were no apparent connections between requesting a
container-managed
resource, logging in via the form-login-page, and receiving the
originally requested container-managed resource.
2. Little docume
Hi Gabe,
I'd seen those instructions and that was one of the first things I
tried but I'm still getting the same exception. I've tried placing
mysql-connector-java-5.1.5-bin.jar in %TOMCAT_HOME%/common/lib. I've
also tried with it just in my web app's lib directory and I've tried
with it in both l
you must define the JkMount directive inside your httpd.conf file to map
a worker to a URL
in this case I believe it would be
JkMount / ein1
JkMount /* ein1
Filip
Kim Albee wrote:
We are having an issue when setting up integration between Apache 2.0.52 and
Tomcat 6.0.14...
Here are the mod
NBW wrote:
Hi, I'm having difficulty configuring a container managed JDBC
resource. I've read several posts in the tomcat-users archives
(discussing similar issues) as well as the documentation at:
http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html
The MySQL driver JAR is deplo
Any of those methods will likely work; I prefer the java.util.Properties
object and its various methods, and read the settings from a disk file.
For settings that I don't need to change much (or ever), I usually use
system.properties, and set them in the jvm startup properties.
Asare Samuel
Hi, I'm having difficulty configuring a container managed JDBC
resource. I've read several posts in the tomcat-users archives
(discussing similar issues) as well as the documentation at:
http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html
My environments looks like this:
Tomcat 5.5
You should also have a look at
/org/apache/catalina/authenticator/FormAuthenticator.java
In this class you can find the details about how requests are saved and
restored.
When I once digged into the details I wondered whether it is correct to
restore all the headers of the original request.
E.
You never directly call j_security_check. Here's how the process flow
works:
1. browser attempts to load a protected page
2. tomcat saves the request and redirects the client to j_security_check
for authentication
3. on successful authentication, tomcat restores the original request.
So basi
No, just once. The multicast address is a broadcast address. It is a
single address. All servers on the network will listen for it. You put
the tag in the web.xml of the applications that want to
be clustered.
1. You will need to open the multicast port 45564 for UDP, and the TCP
listen port
Making a web application sort of following:
http://www.netbeans.org/kb/55/mysql-webapp.html#preparingDB
I made a class that connects to the DB ie accessDB and have put two methods
inside:
public void insert(a,c) inserts record into database
public String getContent() gets content
I then put i
remove the mcastBindAddress attribute
Filip
Steven Crosley wrote:
Thanks Clifford,
So if I'm setting up 3 servers, each tomcat instance needs to have
this element twice? Is the mcastAddr, the IP for the other machines?
Thanks,
Steven
On Nov 8, 2007, at 11:04 AM, Clifford Bryant wrote:
>
> Have you tried running your profiler against a tomcat not doing ANY
> requests?
>
> I agree with Jim on this one - These are threads WAITING on a
> connection...
> and not doing anything.
>
> Have a look in tomcat manager, and then you can see how many 'free'
> connections
> you have.
>
>
We
On 08/11/2007, at 6:29 PM, Bob Riaz wrote:
Thanks. StringBuilder seems to be the most popular suggestion! I'm
going to implement this and report on any changes I see in Tomcat's
behavior.
I'm also looking at other possiblities, such as Tomcat's I/O
activities causing thrashing if I/O is exc
Thanks. StringBuilder seems to be the most popular suggestion! I'm going to
implement this and report on any changes I see in Tomcat's behavior.
I'm also looking at other possiblities, such as Tomcat's I/O activities causing
thrashing if I/O is excessive. Would anybody know how I could monitor T
On Nov 8, 2007, at 11:41:17, Mikolaj Rydzewski wrote:
Christopher Schultz wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Mikolaj,
Mikolaj Rydzewski wrote:
Christopher Schultz wrote:
Two Tomcat instances with separate ROOT webapps, plus something
like
Apache httpd out front. This i
On Nov 8, 2007 8:27 AM, Carl Vorster <[EMAIL PROTECTED]> wrote:
> I then want to run SSL hosts; but every SSL host must map to its own IP due
> to SSL configs.
You need a separate Connector for each SSL IP.
--
Hassan Schroeder [EMAIL PROTECTED]
Thanks Clifford,
So if I'm setting up 3 servers, each tomcat instance needs to have
this element twice? Is the mcastAddr, the IP for the other machines?
Thanks,
Steven
On Nov 8, 2007, at 11:04 AM, Clifford Bryant wrote:
Here are some links that I used to cluster 2 machines.
http://www.j
> From: Andrew R Feller [mailto:[EMAIL PROTECTED]
> Subject: j_security_check redirect after login
>
> How does j_security_check know where to redirect users to after they
> have logged in?
Read the servlet spec; to quote from SRV.12.5.3.1:
"If the form based login is invoked because of an HTTP
Here are some links that I used to cluster 2 machines.
http://www.ja-sig.org/wiki/display/CASUM/Clustering+CAS
http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html
Basically, you need to set up multicast on your network, so that the
machines can share session information.
-Original Mes
Hi,
I've been scouring the web for documentation regarding clustering
Tomcat on 3 machines. The only documentation I can find contains
information about clustering 3 instances of Tomcat on the same machine.
Can anyone tell me what exactly would need to be changed in order to
use Tomcat o
Christopher Schultz wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Mikolaj,
Mikolaj Rydzewski wrote:
Christopher Schultz wrote:
Two Tomcat instances with separate ROOT webapps, plus something like
Apache httpd out front. This is basically the same as the "two virtual
hosts" sugg
How does j_security_check know where to redirect users to after they
have logged in? I have searched for any documentation related to how
j_security_check works but to no avail nor am I able to find out where
in the Tomcat source code j_security_check is declared or invoked.
Thanks,
Andrew
Hi,
I am using Xdoclet 1.2.3 for web.xml generation.
Now I am starting to use java5 annotations and seems that Xdoclet
dislikes annotations.
Are there other tools for web.xml generation? I can't find solutions
searching on the net.
Can I use annotaions as a partial replacement of web.xml?
thank
Hi,
I'm trying to set up the following config, but am not sure how to do it.
I want to run virtual hosts through one IP on port 80 - this is easy enough
by looking at the docs.
I then want to run SSL hosts; but every SSL host must map to its own IP due
to SSL configs.
Example:
192.168.0.1 - htt
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Mikolaj,
Mikolaj Rydzewski wrote:
> Christopher Schultz wrote:
>> Two Tomcat instances with separate ROOT webapps, plus something like
>> Apache httpd out front. This is basically the same as the "two virtual
>> hosts" suggestion.
>
> With exception o
Christopher Schultz wrote:
Two Tomcat instances with separate ROOT webapps, plus something like
Apache httpd out front. This is basically the same as the "two virtual
hosts" suggestion.
With exception of additional memory wasted.
--
Mikolaj Rydzewski <[EMAIL PROTECTED]>
smime.p7s
Descript
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Johnny,
Johnny Kewl wrote:
> Cant think of another way
Two Tomcat instances with separate ROOT webapps, plus something like
Apache httpd out front. This is basically the same as the "two virtual
hosts" suggestion.
- -chris
-BEGIN PGP SIGNAT
It doesn't answer your question in general, but I increased mine from
300 to 900 threads on a dual-processor, dual-core machine, and saw
significantly increased throughput with short, simple requests. I
didn't try any in-between settings, though, so I don't know if there
might be a sweet spot
On 08/11/2007, at 4:51 PM, Jim Cox wrote:
On Nov 8, 2007 10:41 AM, <[EMAIL PROTECTED]> wrote:
In resolving our current bottleneck i used JProfiler to see what the
tomcat applications were doing and when under high load there are a
lot of
threads which are blocked on this:
org.apache.tomcat
On Nov 8, 2007 10:41 AM, <[EMAIL PROTECTED]> wrote:
> Hi,
>
> We have an architecture where we have many tomcat app servers load
> balanced by apache at the front.
>
> In resolving our current bottleneck i used JProfiler to see what the
> tomcat applications were doing and when under high load the
I have configured a JNDIRealm for LDAP authentication, and actually
have multiple alternateURLs for the LDAP directory. Is it possible to
specify more than a single connectionURL and alternateURL?
-
To start a new topic, e-mail:
Hi,
We have an architecture where we have many tomcat app servers load
balanced by apache at the front.
In resolving our current bottleneck i used JProfiler to see what the
tomcat applications were doing and when under high load there are a lot of
threads which are blocked on this:
org.apache.to
Thanks
Joan Monplet Ortega -SoloStocks-
Departament Tècnic
Tel. 902 024 312 - Fax. 93 504 56 05
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Este mensaje y los documentos que, en su caso, lleve anexos, pueden contener
información confidencial. Por ello, se i
Hi guys,
Isn't there anyone who got the native stuff working on a Mac?
I followed all the steps. I compiled the source without any erros. The
resulting libraries were copied to every place I can possibly imagine
(/usr/bin, /usr/local/bin, JAVA_HOME dir, CATALINE_HOME dir,
TOMCAT_HOME dir,
Hi Peter
The immediate answer is no as you would be losing JNDI lookup capability
Read this quote from one of the atomikos staff
"Tomcat JNDI configuration can be a pain to set up, mainly due to the way
Tomcat requires several XML elements to agree on the same naming parts. The
easiest way to ge
Hi Joan-
with apache front end you can use mod_rewrite to rewrite the URL
http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html
With Tomcat you will need to put on the architect's hat to determine why
have 2 webapps when you only need one webapp(ROOT)
If the 2 webapps accomplish the same function
Hello,
have you posted that tutorial anywhere ? because I am in great need of
it :)..
thank you
Sorin.
Dhaval Patel wrote:
>
> Hi Richard,
>
> I made small tutorial about how to enable APR and SSL. I have it in word
> file. If you don't mind I
> can email it to you on y
---
HARBOR: http://coolharbor.100free.com/index.htm
Now Tomcat is also a cool pojo application server
---
Snookered ;)
Dont think you can do that..
Cho
Joan Monplet Ortega wrote:
Into webapps I have app1 and app2, and both I want hidden their name_context in
the url.
How I do it?
Configure separate virtual host for each application. Every virtual host
has its own ROOT application.
--
Mikolaj Rydzewski <[EMAIL PROTECTED]>
smime.p7s
Yigal Lazarev wrote:
Well Michael you've just solved the problem!
Thank you very much ! :)
You are welcome!
Try to avoid top posting in future:
http://en.wikipedia.org/wiki/Posting_style
Which barely impossible to read
Cheers to israel,
Mike
--
OOXML - Say NO To Microsoft Office broken st
Hello Filip,
I've tried it with the current release candidate but still nothing happens.
jens
On Nov 7, 2007 6:13 PM, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote:
> there is a bug in 6.0.14 regarding pipelining HTTP events on a comet
> connection, your code is correct, try with our curren
Well Michael you've just solved the problem!
Thank you very much ! :)
On Nov 8, 2007 12:46 PM, Michael <[EMAIL PROTECTED]> wrote:
> Michael wrote:
> > Yigal Lazarev wrote:
> >> Shalom Michael,
> >> Thanks for your reply, but as you can see in my first post, this was
> the
> >> second thing I trie
Hi,
I want to install two application web like ROOT application, because I need:
- Hidden context's name of url like:
http:/// where domain is a virtual host and its source code is in
application web into webapps, so now when I try to show this domain I have to
write http://domain//inde
Michael wrote:
Yigal Lazarev wrote:
Shalom Michael,
Thanks for your reply, but as you can see in my first post, this was the
second thing I tried..
Inserting URIEncoding="UTF-8" to the HTTP and the AJP/1.3 connectors in
server.xml didn't help.
More suggestions?
did you tell the JVM to use UTF-
Yigal Lazarev wrote:
Shalom Michael,
Thanks for your reply, but as you can see in my first post, this was the
second thing I tried..
Inserting URIEncoding="UTF-8" to the HTTP and the AJP/1.3 connectors in
server.xml didn't help.
More suggestions?
did you tell the JVM to use UTF-8 as file encodi
Shalom Michael,
Thanks for your reply, but as you can see in my first post, this was the
second thing I tried..
Inserting URIEncoding="UTF-8" to the HTTP and the AJP/1.3 connectors in
server.xml didn't help.
More suggestions?
On Nov 8, 2007 11:28 AM, Michael <[EMAIL PROTECTED]> wrote:
> Yigal Laz
Hello,
under 5.5.9 the configuration has to be
With this, the 5.5.9 manager lists the UserTransaction. But I want to use a
actual version of tomcat.
Should the manager list the UserTransaction if it is configured under 5.5.25
or 6.0.14 with
?
regards,
Peter
--
View this message in context:
Hello mgainty,
mgainty wrote:
>
> took a quick gander at
> http://twiki.atomikos-support.com/bin/view.pl/Main/Tomcat55SelfContainedWar
> and dont see any auth or name attributes specified
>
> Perhaps you are interacting with an EJB server???
>
What do you mean? I have only one tomcat running.
Hello Chuck,
Caldarale, Charles R wrote:
>
> According to the Tomcat doc, the only valid attribute is factory; I'm
> only speculating, but the presence of the name and auth attributes may
> be causing the element to be rejected.
>
> Is there anything shown in the logs about this at Tomcat star
Yigal Lazarev wrote:
Hi,
I'm deploying a JSF WAR onto Tomcat 6.0.14 under Windows 2003 with JVM
version 1.6.0_03-b05, and using MySQL db.
When I submit a form using POST method, and in the server side take the
fields and send them as an email using JavaMail- i lose the UTF-8 encoded
characters s
Thanks for the reply Chuck,
I read in the documentation that the default encoding in Tomcat for incoming
requests like from a form submission is Latin-1 (ISO-8859-1).
So the text in nameTextField (which is of type TextField) is UTF-8 text that
was 'treated' like Latin-1.
What I did is as suggested
75 matches
Mail list logo