Re: Out of Memory exception (hotspot compilation)

2010-06-03 Thread Leon Rosenberg
On Thu, Jun 3, 2010 at 1:54 AM, Leon Kolchinsky lkolc...@gmail.com wrote:
 Yep :)
 You're right Charles.

 Thanks,
 Leon

From Leon To Leon,
an advice from personal experience and the golden rule of the tomcat
user list, write it down in glowing red letters on the wall you are
looking at most:
Charles is ALWAYS right. ;-)

regards
Leon

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Error on startup catalina

2010-06-03 Thread Bob Hall
Sondro,

--- On Wed, 6/2/10 at 2:57 PM, Sandro Gallo sandro.gallo...@gmail.com wrote:

 TOMCAT version: 6.0.26.
 
 java -version
 java version 1.6.0_17
 Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248)
 Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101,
 mixed mode)
 The version of Java is already on Mac.
 
 I installed Tomcat by following this step:
 1. download from site,
 2. create folder /Library/Tomcat,
 3. untar file in this new folder,
 4. create simbolic link from
 /Library/Tomcat/apache-tomcat-6.0.26  to 
 /Library/Tomcat/Home,
 5. create env variables CATALINA_HOME, JAVA_HOME.
 
 All files in CATALINA_HOME/bin have exec permission.

Check the permissions of bin/tomcat-juli.jar; it needs to be readable by the 
user that is running tomcat.

And try running Tomcat without the benefit of the symbolic link or setting 
CATALINA_HOME:

$ export CATALINA_HOME=

$ /Library/Tomcat/apache-tomcat-6.0.26/bin/startup.sh

- Bob




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Error on startup catalina

2010-06-03 Thread Pid
On 02/06/2010 22:33, Sandro Gallo wrote:
 Hi,
 Using recently Tomcat.
 So far I have used it on a Windows XP machine, and everything went well.
 I decided to install it on a machine Mac, Mac OS X Snow Leopard, but can
 not boot.
 I do not know how to solve the problem, and I need to use Tomcat.
 Please, help me.
 Here are some info on startup:
 
 *Using CATALINA_BASE: /Library/Tomcat/Home
 Using CATALINA_HOME: /Library/Tomcat/Home
 Using CATALINA_TMPDIR: /Library/Tomcat/Home/temp
 Using JRE_HOME: /Library/Java/Home
 Using CLASSPATH: /Library/Tomcat/Home/bin/bootstrap.jar
 at org.apache.catalina.startup.Bootstrap.clinit(Bootstrap.java:55)
 Caused by: java.lang.ClassNotFoundException:
 org.apache.juli.logging.LogFactory
 at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:244)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:315)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:398)
 ... 1 more
 *
 
 Thanks in advance.

Did you need to authenticate to install files in /Library?

Which user are you using when you attempt to start Tomcat?


p



signature.asc
Description: OpenPGP digital signature


How can I increase maximum upload size?

2010-06-03 Thread Ivan Mladenović
Hi,



I am using the Tomcat 6.0.26 and I try to upload file that is larger than
1 bytes from JSP.

I try to increase the maximum upload size (for post request).

I change the Connector element:



Connector port=8081 protocol=HTTP/1.1 connectionTimeout=2
redirectPort=8444 maxPostSize=50 maxSavePostSize=50 /



But, maximum upload size is 1.



How can I increase maximum upload size?



Thanks in advance.



Best Regards,

Ivan


Re: Error on startup catalina

2010-06-03 Thread Sandro Gallo

Hi,
Tomcat folder under /Library was created using: sudo mkdir ...
The files in the folder $CATALINA_HOME/bin have the permissions to be 
executed by all (ugo).

My user is part of the group admin - admin:admin and sandro:admin.
I also removed attribute '@', that in Snow Leopard identifies the files 
downloaded from the Internet as potentially dangerous.

Using my user to attempt to start Tomcat.
Thank you for taking the time to respond.
Sandro

Il 03/06/2010 12.42, Pid ha scritto:

On 02/06/2010 22:33, Sandro Gallo wrote:
   

Hi,
Using recently Tomcat.
So far I have used it on a Windows XP machine, and everything went well.
I decided to install it on a machine Mac, Mac OS X Snow Leopard, but can
not boot.
I do not know how to solve the problem, and I need to use Tomcat.
Please, help me.
Here are some info on startup:

*Using CATALINA_BASE: /Library/Tomcat/Home
Using CATALINA_HOME: /Library/Tomcat/Home
Using CATALINA_TMPDIR: /Library/Tomcat/Home/temp
Using JRE_HOME: /Library/Java/Home
Using CLASSPATH: /Library/Tomcat/Home/bin/bootstrap.jar
at org.apache.catalina.startup.Bootstrap.clinit(Bootstrap.java:55)
Caused by: java.lang.ClassNotFoundException:
org.apache.juli.logging.LogFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:244)
at java.lang.ClassLoader.loadClass(ClassLoader.java:315)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:398)
... 1 more
*

Thanks in advance.
 

Did you need to authenticate to install files in /Library?

Which user are you using when you attempt to start Tomcat?


p

   




migration from apache tomcat 5.5.20 to 6.0.26 procedure required.

2010-06-03 Thread prakash mahavrataya
Hi All,

I have to migrate the existing tomcat from 5.5.20 to 6.0.26. As i found that
the folders common and shared do not exist in 6.0.26. So I am not sure how
to migrate from the current to the latest. Please send me the procedure
for successful migration without any loss of files and folders.

Regards
Prakash


Re: migration from apache tomcat 5.5.20 to 6.0.26 procedure required.

2010-06-03 Thread Pid
On 03/06/2010 12:21, prakash mahavrataya wrote:
 Hi All,
 
 I have to migrate the existing tomcat from 5.5.20 to 6.0.26. As i found that
 the folders common and shared do not exist in 6.0.26. So I am not sure how
 to migrate from the current to the latest. Please send me the procedure
 for successful migration without any loss of files and folders.

Step 1: read the documentation for version 6.0.

 http://tomcat.apache.org/tomcat-6.0-doc/

Carefully read the release notes, changelog etc.

Step 2: download and install the current binary and familiarise yourself
with the config files and new layout.


If you have specific questions, come back and ask them.


p


 Regards
 Prakash
 




signature.asc
Description: OpenPGP digital signature


Re: How can I increase maximum upload size?

2010-06-03 Thread Ivan Mladenović
Hi,


I solve the problem by defining following bean:



bean id=*multipartResolver*

  class=*
org.springframework.web.multipart.commons.CommonsMultipartResolver*

  p:maxUploadSize=*-1*

/



If -1 is set for maximum upload size, then size of file will not be checked.


Best Regards,

Ivan Mladenovic




2010/6/3 Ivan Mladenović pif...@gmail.com

 Hi,



 I am using the Tomcat 6.0.26 and I try to upload file that is larger than
 1 bytes from JSP.

 I try to increase the maximum upload size (for post request).

 I change the Connector element:



 Connector port=8081 protocol=HTTP/1.1 connectionTimeout=2
 redirectPort=8444 maxPostSize=50 maxSavePostSize=50 /



 But, maximum upload size is 1.



 How can I increase maximum upload size?



 Thanks in advance.



 Best Regards,

 Ivan



Unrecognized VM option '+HeapDumpOnCtrlBreak'

2010-06-03 Thread Kaushal Shriyan
Hi,

I am running tomcat 5.5.27 on ubuntu 8.04, java version is

java -version
java version 1.6.0_06
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) 64-Bit Server VM (build 10.0-b22, mixed mode)

I did added JAVA_OPTS=-Xms512m -Xmx4500m -XX:+HeapDumpOnCtrlBreak
-XX:+HeapDumpOnOutOfMemoryError  on tomcat init script

Unrecognized VM option '+HeapDumpOnCtrlBreak'
Could not create the Java virtual machine.
done.


Please suggest

Thanks,

Kaushal


Re: Unrecognized VM option '+HeapDumpOnCtrlBreak'

2010-06-03 Thread Bill Au
That option is not available in Java 6.  With Java 6, you can use jmap to
take a heap dump.

Bill

On Thu, Jun 3, 2010 at 9:12 AM, Kaushal Shriyan kaushalshri...@gmail.comwrote:

 Hi,

 I am running tomcat 5.5.27 on ubuntu 8.04, java version is

 java -version
 java version 1.6.0_06
 Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
 Java HotSpot(TM) 64-Bit Server VM (build 10.0-b22, mixed mode)

 I did added JAVA_OPTS=-Xms512m -Xmx4500m -XX:+HeapDumpOnCtrlBreak
 -XX:+HeapDumpOnOutOfMemoryError  on tomcat init script

 Unrecognized VM option '+HeapDumpOnCtrlBreak'
 Could not create the Java virtual machine.
 done.


 Please suggest

 Thanks,

 Kaushal



Re: migration from apache tomcat 5.5.20 to 6.0.26 procedure required.

2010-06-03 Thread Mark Thomas
On 03/06/2010 12:28, Pid wrote:
 On 03/06/2010 12:21, prakash mahavrataya wrote:
 Hi All,

 I have to migrate the existing tomcat from 5.5.20 to 6.0.26. As i found that
 the folders common and shared do not exist in 6.0.26. So I am not sure how
 to migrate from the current to the latest. Please send me the procedure
 for successful migration without any loss of files and folders.
 
 Step 1: read the documentation for version 6.0.
 
  http://tomcat.apache.org/tomcat-6.0-doc/
 
 Carefully read the release notes, changelog etc.

Also http://tomcat.apache.org/migration.html

Mark

 
 Step 2: download and install the current binary and familiarise yourself
 with the config files and new layout.
 
 
 If you have specific questions, come back and ask them.
 
 
 p
 
 
 Regards
 Prakash

 
 




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Unrecognized VM option '+HeapDumpOnCtrlBreak'

2010-06-03 Thread Kaushal Shriyan
On Thu, Jun 3, 2010 at 6:55 PM, Bill Au bill.w...@gmail.com wrote:

 That option is not available in Java 6.  With Java 6, you can use jmap to
 take a heap dump.

 Bill


Hi Bill

Please let me know the jmap option to take a heap dump

Thanks,

Kaushal


RE: Unrecognized VM option '+HeapDumpOnCtrlBreak'

2010-06-03 Thread Caldarale, Charles R
 From: Kaushal Shriyan [mailto:kaushalshri...@gmail.com]
 Subject: Re: Unrecognized VM option '+HeapDumpOnCtrlBreak'
 
 Please let me know the jmap option to take a heap dump

Please do a little work on your own.
http://www.lmgtfy.com/?q=jmap+heap+dump

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



OT: Pluto and Tomcat

2010-06-03 Thread Søren Blidorf
Hi.

 

I am new to portlets and Pluto.

 

I have installed Pluto on my existing Tomcat and it works fine.

 

However I am having difficulties setting up a helloworld portlet.

 

I have created the portlet.xml and the helloworld.java. Compiled and deploy
but nothing happens.

 

I have tried different examples on google, but nothing works.

 

Does anybody have a helloworld.war file of a describsion for dummies on how
to get a helloworld to work on tomcat/Pluto?

 

Soren

 



HTTP Status 400 - Invalid direct reference to form login page!

2010-06-03 Thread Gheorghe Pucea
Hello,



 I have a problem with my Tomcat instance, I'm using:


Tomcat 6.0.26
Java jdk 1.5.0_17
Windows XP SP3


   I have implemented a JAAS login module for my application and everything
goes fine except from one thing.

Here are the steps that I am doing:


1)Request a protected resource  - the login form show's up and I enter my
username and password
2) I get into the application and everything looks fine but when I get back
to the login page and enter my username/password again I get the message:
(If I refresh the login page immediately when I hit the logout button
everything goes weel)
HTTP Status 400 - Invalid direct reference to form login page
--

*type* Status report

*message* *Invalid direct reference to form login page*

*description* *The request sent by the client was syntactically incorrect
(Invalid direct reference to form login page)*

*
*

*
*

*
*

*Thank you very much!*


RE: Thread Dump

2010-06-03 Thread Caldarale, Charles R
 From: suchismitasuchi [mailto:suchismitasu...@rediffmail.com]
 Subject: Thread Dump
 
 Can you please tell whether there is any problem with the 
 below thread dump?

Probably.  You've got lots of threads in this condition:

 http-8000-Processor25 daemon prio=1 tid=0x2aaab41eeb90 nid=0x3667
 runnable [0x4c7d7000..0x4c7dba90]
   at java.net.SocketInputStream.socketRead0(Native Method)
   at java.net.SocketInputStream.read(SocketInputStream.java:129)
   at com.mysql.jdbc.util.ReadAheadInputStream.
  fill(ReadAheadInputStream.java:113)
   at com.mysql.jdbc.util.ReadAheadInputStream.
  readFromUnderlyingStreamIfNecessary(ReadAheadInputStream.java:160)
   at com.mysql.jdbc.util.ReadAheadInputStream.
  read(ReadAheadInputStream.java:188)
  - locked 0x2b0d1e94af70
(a com.mysql.jdbc.util.ReadAheadInputStream)
   at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2428)
   at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2882)
   at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2871)
   at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3414)
   at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1936)
   at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2060)
   at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2542)
  - locked 0x2b0d1e944d10 (a java.lang.Object)
   at com.mysql.jdbc.PreparedStatement.
  executeInternal(PreparedStatement.java:1734)
   at com.mysql.jdbc.PreparedStatement.
  executeQuery(PreparedStatement.java:1885)
  - locked 0x2b0d1e944d10 (a java.lang.Object)
   at org.apache.commons.dbcp.DelegatingPreparedStatement.
  executeQuery(DelegatingPreparedStatement.java:93)
   at org.hibernate.jdbc.AbstractBatcher.
  getResultSet(AbstractBatcher.java:139)
   at org.hibernate.loader.Loader.getResultSet(Loader.java:1669)
   at org.hibernate.loader.Loader.doQuery(Loader.java:662)

etc.

These indicate that the DB server is unresponsive.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



single user session and block log-in after faut

2010-06-03 Thread banto

Hi gurus,

i would like to know how to fix the following problems:

1) how can i set tocat in such a way to permit only one session per user? :
let´s say userA logs-in from PC-A.Then userA logs-in from PC-B. Tomcat
should block the second session because already logged-in.

2) Tomcat rejects any further log-in attempt after 3 faults.

thanks in advance,
Antonio
-- 
View this message in context: 
http://old.nabble.com/single-user-session-and-block-log-in-after-faut-tp28769302p28769302.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-06-03 Thread Savoy, Melinda
Question.  Does the host in the workers.properties file need to match the HOST 
name in the server.xml file (see below):

worker.scmisWorker.type=ajp13
worker.scmisWorker.host=scmis
worker.scmisWorker.port=8009

Host name=scmis appBase=scmisapp
unpackWARs=true autoDeploy=false
xmlValidation=false xmlNamespaceAware=false

Aliasscmisdev/Alias
Aliasscmisdev.texashealth.org/Alias
/Host

Thank you.



-Original Message-
From: Savoy, Melinda 
Sent: Wednesday, June 02, 2010 5:12 PM
To: Tomcat Users List; Tomcat Users List
Subject: RE: How can I get the user value in the request forwarded to my Tomcat 
in my Java app?

Andre,

First my apologies for forgetting my earlier setup within my Windows XP box and 
therefore as you say not learning what I had done previously.

Second - this Windows 2003 server was already setup and the second host was 
created in order that the user could enter a URL of http://scmisdev and then 
get to the application which is how it has been working.

In your comment:  

It seems that you have not learned a lot, or forgotten what you
previously learned.

Why do you need this last virtual directory in IIS ?
The jakarta virtual directory will already re-direct (or rather
proxy) all the calls to /scmisdev/* to Tomcat.
You do not want IIS to go directly put its nose in the Tomcat
directories.  You want it to go through the isapi redirector for that,
which you already do with the jakarta virtual directory setup.

What do I put in the uriworkermap.properties file that redirects to where the 
JSP's are?  The directory path in Tomcat as to where the app is located is:

C:\Server\Tomcat 6.0\scmisapp\ROOT\WEB-INF

You are correct that I'm probably mixing up 2 things but I'm trying retain all 
the info that you and Ranier have each given but sometimes it would appear to 
me to be confusing.

Lastly, let me state again my apologies.  It is NOT my intent to waste the time 
of you or anyone else on this list just trying to get some help.

I will try again in the morning.  

Regards.



From: André Warnier [...@ice-sa.com]
Sent: Wednesday, June 02, 2010 16:29
To: Tomcat Users List
Subject: Re: How can I get the user value in the request forwarded to my Tomcat 
in my Java app?

Savoy, Melinda wrote:
 I finally got my Windows 2003 development box setup with the Tomcat Connector 
 and IIS 6.0.  The following is my setup:

 In the server.xml file I have the following in the HOST element:

 !-- Define the default virtual host
Note: XML Schema validation will not work with Xerces 2.2.
--
   Host name=localhost  appBase=webapps
 unpackWARs=false autoDeploy=false
 xmlValidation=false xmlNamespaceAware=false

 !-- SingleSignOn valve, share authentication between web applications
  Documentation at: /docs/config/valve.html --
 !--
 Valve className=org.apache.catalina.authenticator.SingleSignOn /
 --

 !-- Access log processes all example.
  Documentation at: /docs/config/valve.html --
 !--
 Valve className=org.apache.catalina.valves.AccessLogValve 
 directory=logs
prefix=localhost_access_log. suffix=.txt pattern=common 
 resolveHosts=false/
 --

   /Host

 Host name=scmisdev appBase=scmisapp
 unpackWARs=true autoDeploy=false
 xmlValidation=false xmlNamespaceAware=false

 Aliasscmisdev/Alias

not necessary, since this is already the hostname

 Aliasscmisdev.texashealth.org/Alias
   /Host

Why this second Host anyway ?


 In my uriworkermap.properties file:

 /scmisdev/*=scmisWorker
 /scmisdev/*.jsp=scmisWorker
 /scmisdev/servlet/*=scmisWorker

the first one covers the other 2, so why have them ?


 In my workers.properties file:

 # workers.properties from = 
 http://onjava.com/pub/a/onjava/2002/12/18/tomcat.html
 #
 # This file provides minimal jk configuration properties needed to
 # connect to Tomcat.
 #
 # The workers that jk should create and work with

 worker.list=scmisWorker

 #
 # Defining a worker named ajp13w and of type ajp13
 # Note that the name and the type do not have to match.
 #
 worker.scmisWorker.port=8009
 worker.scmisWorker.host=localhost
 worker.scmisWorker.type=ajp13

 In IIS I have the Default Web Site setup with:

 ISAPI Filters:  jakarta and it points to C:\Server\Tomcat 
 6.0\bin\isapi_redirect.dll
 And the Directory Security is:  Enable anonymous access (checked only)

 In IIS I have the jakarta virtual directory setup with:

 Where the local path is:  C:\Server\Tomcat 6.0\bin
 And the Directory Security is:  Integrated Windows authentication (checked 
 only)

 In IIS I have the scmisdev virtual directory setup with:

 Where the local path is:  C:\Server\Tomcat 6.0\scmisapp\ROOT\WEB-INF (points 
 to WEB-INF directory)
 And the Directory Security is:  Integrated Windows 

RE: single user session and block log-in after faut

2010-06-03 Thread Caldarale, Charles R
 From: banto [mailto:banto...@gmail.com]
 Subject: single user session and block log-in after faut

 i would like to know how to fix the following problems:

We would like to know what Tomcat version you're using and what kind of Realm 
you've chosen to use.

 1) how can i set tocat in such a way to permit only one 
 session per user?

There's nothing built into Tomcat to do that.  You could write a filter for the 
webapp that tracks the logged in users, and rejects requests that don't fit 
your login criteria.  However, that filter won't get invoked until after a 
second or subsequent successful login.  If you want to prevent second logins, 
you'll need your own Realm.  Another option is that you might be able to 
configure or modify SecurityFilter to do the job.

http://securityfilter.sourceforge.net/

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.



Re: OT: Pluto and Tomcat

2010-06-03 Thread Pid
On 03/06/2010 14:55, Søren Blidorf wrote:
 Hi.
 
 I am new to portlets and Pluto.
 
 I have installed Pluto on my existing Tomcat and it works fine.
 
 However I am having difficulties setting up a helloworld portlet.
 
 I have created the portlet.xml and the helloworld.java. Compiled and deploy
 but nothing happens.
 
 I have tried different examples on google, but nothing works.
 
 Does anybody have a helloworld.war file of a describsion for dummies on how
 to get a helloworld to work on tomcat/Pluto?

I know you marked this OT, but you're much more likely to find the right
kind of help in the Pluto community.

 http://portals.apache.org/pluto/mail-lists.html


p



signature.asc
Description: OpenPGP digital signature


Re: single user session and block log-in after faut

2010-06-03 Thread Pid
On 03/06/2010 16:45, banto wrote:
 
 Hi gurus,
 
 i would like to know how to fix the following problems:
 
 1) how can i set tocat in such a way to permit only one session per user? :
 let´s say userA logs-in from PC-A.Then userA logs-in from PC-B. Tomcat
 should block the second session because already logged-in.

Tomcat won't do this, you'll have to code it in your application.

 2) Tomcat rejects any further log-in attempt after 3 faults.

Assuming you're using a v6.0.recent then there's a LockOutRealm which
you can employ.  See the docs:

 http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html#LockOutRealm


p

 thanks in advance,
 Antonio




signature.asc
Description: OpenPGP digital signature


Re: Error on startup catalina

2010-06-03 Thread Sandro Gallo
Hi,
prior to this new installation, i had not used symbolic link, but i did
untar package in folder /Library/Tomcat: the result was always the same: no
startup.

I checked the permissions in the $CATALINA_HOME/bin, which i show below:

macmac:bin sandro$ pwd
/Library/Tomcat/Home/bin
macmac:bin sandro$ ls -l
total 848
-rwxr-xr-x  1 sandro  admin   22110  9 Mar 18:06 bootstrap.jar
-rw-r--r--  1 sandro  admin2374  9 Mar 18:06 catalina-tasks.xml
-rwxr-xr-x  1 sandro  admin   15582  9 Mar 18:06 catalina.sh
-rwxr-xr-x  1 sandro  admin9341  9 Mar 18:06 commons-daemon.jar
-rwxr-xr-x  1 sandro  admin1624  9 Mar 18:06 digest.sh
-rw-r--r--  1 sandro  admin   74398  9 Mar 18:06 jsvc.tar.gz
-rwxr-xr-x  1 sandro  admin4114  9 Mar 18:06 setclasspath.sh
-rwxr-xr-x  1 sandro  admin1563  9 Mar 18:06 shutdown.sh
-rwxr-xr-x  1 sandro  admin1956  9 Mar 18:06 startup.sh
-rwxr-xr-x  1 sandro  admin   26484  9 Mar 18:06 tomcat-juli.jar
-rw-r--r--  1 sandro  admin  241274  9 Mar 18:06 tomcat-native.tar.gz
-rwxr-xr-x  1 sandro  admin3459  9 Mar 18:06 tool-wrapper.sh
-rwxr-xr-x  1 sandro  admin1567  9 Mar 18:06 version.sh


And trying to start Tomcat, i get the following logs:

macmac:bin sandro$ ./startup.sh  tail -f ../logs/catalina.out
Using CATALINA_BASE:   /Library/Tomcat/Home
Using CATALINA_HOME:   /Library/Tomcat/Home
Using CATALINA_TMPDIR: /Library/Tomcat/Home/temp
Using JRE_HOME:/Library/Java/Home
Using CLASSPATH:   /Library/Tomcat/Home/bin/bootstrap.jar
at org.apache.catalina.startup.Bootstrap.clinit(Bootstrap.java:55)
Caused by: java.lang.ClassNotFoundException:
org.apache.juli.logging.LogFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:244)
at java.lang.ClassLoader.loadClass(ClassLoader.java:315)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:398)
... 1 more
Exception in thread main java.lang.NoClassDefFoundError:
org/apache/juli/logging/LogFactory
at org.apache.catalina.startup.Bootstrap.clinit(Bootstrap.java:55)
Caused by: java.lang.ClassNotFoundException:
org.apache.juli.logging.LogFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:244)
at java.lang.ClassLoader.loadClass(ClassLoader.java:315)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:398)
... 1 more

Same if i run sudo ./startup.sh  tail -f ../logs/catalina.out.


For completeness, rewrite which version use:
TOMCAT: 6.0.26
JAVA:
java -version
java version 1.6.0_17
Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)
Java is already on Mac.
ANT: already installed on mac: version 1.7.1

How can i fix this? What could it be? Please help me.
Many thanks in advance





2010/6/3 Bob Hall rfha...@yahoo.com

 Sondro,

 --- On Wed, 6/2/10 at 2:57 PM, Sandro Gallo sandro.gallo...@gmail.com
 wrote:

  TOMCAT version: 6.0.26.
 
  java -version
  java version 1.6.0_17
  Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248)
  Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101,
  mixed mode)
  The version of Java is already on Mac.
 
  I installed Tomcat by following this step:
  1. download from site,
  2. create folder /Library/Tomcat,
  3. untar file in this new folder,
  4. create simbolic link from
  /Library/Tomcat/apache-tomcat-6.0.26  to
  /Library/Tomcat/Home,
  5. create env variables CATALINA_HOME, JAVA_HOME.
 
  All files in CATALINA_HOME/bin have exec permission.

 Check the permissions of bin/tomcat-juli.jar; it needs to be readable by
 the user that is running tomcat.

 And try running Tomcat without the benefit of the symbolic link or
 setting CATALINA_HOME:

 $ export CATALINA_HOME=

 $ /Library/Tomcat/apache-tomcat-6.0.26/bin/startup.sh

 - Bob




 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




RE: HTTP Status 400 - Invalid direct reference to form login page!

2010-06-03 Thread Propes, Barry L
I had that happen periodically for years with my version of TC 4.1.31.

With some folks, we could get it to go away, by cleaning out browser cache. 
With others, it was the same people that incurred it all the time. They could 
access other protected areas, but not the one.
I ended up making a duplicate non-protected piece for them. For me it wasn't a 
big deal, because they already were -- in a sense -- in a protected piece to 
begin with. But it would have been better if it'd worked. 

-Original Message-
From: Gheorghe Pucea [mailto:george.pu...@gmail.com] 
Sent: Thursday, June 03, 2010 9:30 AM
To: users@tomcat.apache.org
Subject: HTTP Status 400 - Invalid direct reference to form login page!

Hello,



 I have a problem with my Tomcat instance, I'm using:


Tomcat 6.0.26
Java jdk 1.5.0_17
Windows XP SP3


   I have implemented a JAAS login module for my application and everything 
goes fine except from one thing.

Here are the steps that I am doing:


1)Request a protected resource  - the login form show's up and I enter my 
username and password
2) I get into the application and everything looks fine but when I get back to 
the login page and enter my username/password again I get the message:
(If I refresh the login page immediately when I hit the logout button 
everything goes weel) HTTP Status 400 - Invalid direct reference to form login 
page
--

*type* Status report

*message* *Invalid direct reference to form login page*

*description* *The request sent by the client was syntactically incorrect 
(Invalid direct reference to form login page)*

*
*

*
*

*
*

*Thank you very much!*

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Adding memory to Tomcat 6.0 as a service?

2010-06-03 Thread Debbie Shapiro
Thanks Konstantin!

That helps immensely. :-)

 

-Original Message-
From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] 
Sent: Wednesday, June 02, 2010 3:35 PM
To: Tomcat Users List
Subject: Re: Adding memory to Tomcat 6.0 as a service?


2010/6/3 Konstantin Kolinko knst.koli...@gmail.com:
 2010/6/3 Debbie Shapiro dshap...@cardiacscience.com:


 Have you searched the list archives? It has to be answered a couple of
times.

 The version of Tomcat (6.0) that I have installed

 For the future, the version is three numbers, x.y.z.

 I was told that there might be some type of service configuration
tool
 if you are running Tomcat as a service. Is this true?

 That is
 bin/tomcat6w.exe


It you installed Tomcat as a service using an *.exe installer from
tomcat.apache.org, you will have Configure Tomcat in the Apache
Tomcat 6.0 folder in your programs menu. It runs tomcat6w.exe.

Then, look here:
http://www.zulutown.com/blog/tag/tomcat6w/
Ignore all the text, but look at the picture. See the Initial memory
pool, Maximum memory pool input fields. You will put your values
there.


Best regards,
Konstantin Kolinko


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Adding memory to Tomcat 6.0 as a service?

2010-06-03 Thread Martin Gainty

if you want to start tomcat with catalinabat/sh

set JAVA_OPTS -Xms for min memory
  -Xmx for max memory

e.g.
JAVA_OPTS=-Xms256m -Xmx512m anything else.. follow Konstantin's advice
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité


Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.Ce message est confidentiel et peut être 
privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec 
bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non 
autorisée ou la copie de ceci est interdite. Ce message sert à l'information 
seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant 
donné que les email peuvent facilement être sujets à la manipulation, nous ne 
pouvons accepter aucune responsabilité pour le contenu fourni.



 

 Subject: RE: Adding memory to Tomcat 6.0 as a service?
 Date: Thu, 3 Jun 2010 09:17:28 -0700
 From: dshap...@cardiacscience.com
 To: users@tomcat.apache.org
 
 Thanks Konstantin!
 
 That helps immensely. :-)
 
 
 
 -Original Message-
 From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] 
 Sent: Wednesday, June 02, 2010 3:35 PM
 To: Tomcat Users List
 Subject: Re: Adding memory to Tomcat 6.0 as a service?
 
 
 2010/6/3 Konstantin Kolinko knst.koli...@gmail.com:
  2010/6/3 Debbie Shapiro dshap...@cardiacscience.com:
 
 
  Have you searched the list archives? It has to be answered a couple of
 times.
 
  The version of Tomcat (6.0) that I have installed
 
  For the future, the version is three numbers, x.y.z.
 
  I was told that there might be some type of service configuration
 tool
  if you are running Tomcat as a service. Is this true?
 
  That is
  bin/tomcat6w.exe
 
 
 It you installed Tomcat as a service using an *.exe installer from
 tomcat.apache.org, you will have Configure Tomcat in the Apache
 Tomcat 6.0 folder in your programs menu. It runs tomcat6w.exe.
 
 Then, look here:
 http://www.zulutown.com/blog/tag/tomcat6w/
 Ignore all the text, but look at the picture. See the Initial memory
 pool, Maximum memory pool input fields. You will put your values
 there.
 
 
 Best regards,
 Konstantin Kolinko
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
  
_
The New Busy is not the old busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3

Re: HTTP Status 400 - Invalid direct reference to form login page!

2010-06-03 Thread Gheorghe Pucea
Hello Barry,




  Thank you very much for your quick respone, but I think that version of
Tomcat was very old compared to Tomcat 6.0.26 I think the problem should be
fix by now.
  So you suggest that I manually should clear my browser's cache?And this
should fix my problem?
















On Thu, Jun 3, 2010 at 7:10 PM, Propes, Barry L barry.l.pro...@citi.comwrote:

 I had that happen periodically for years with my version of TC 4.1.31.

 With some folks, we could get it to go away, by cleaning out browser cache.
 With others, it was the same people that incurred it all the time. They
 could access other protected areas, but not the one.
 I ended up making a duplicate non-protected piece for them. For me it
 wasn't a big deal, because they already were -- in a sense -- in a protected
 piece to begin with. But it would have been better if it'd worked.

 -Original Message-
 From: Gheorghe Pucea [mailto:george.pu...@gmail.com]
 Sent: Thursday, June 03, 2010 9:30 AM
 To: users@tomcat.apache.org
 Subject: HTTP Status 400 - Invalid direct reference to form login page!

 Hello,



  I have a problem with my Tomcat instance, I'm using:


 Tomcat 6.0.26
 Java jdk 1.5.0_17
 Windows XP SP3


   I have implemented a JAAS login module for my application and everything
 goes fine except from one thing.

 Here are the steps that I am doing:


 1)Request a protected resource  - the login form show's up and I enter my
 username and password
 2) I get into the application and everything looks fine but when I get back
 to the login page and enter my username/password again I get the message:
 (If I refresh the login page immediately when I hit the logout button
 everything goes weel) HTTP Status 400 - Invalid direct reference to form
 login page
 --

 *type* Status report

 *message* *Invalid direct reference to form login page*

 *description* *The request sent by the client was syntactically incorrect
 (Invalid direct reference to form login page)*

 *
 *

 *
 *

 *
 *

 *Thank you very much!*

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: Error on startup catalina

2010-06-03 Thread Pid
On 03/06/2010 17:10, Sandro Gallo wrote:
 Hi,
 prior to this new installation, i had not used symbolic link, but i did
 untar package in folder /Library/Tomcat: the result was always the same: no
 startup.
 
 I checked the permissions in the $CATALINA_HOME/bin, which i show below:
 
 macmac:bin sandro$ pwd
 /Library/Tomcat/Home/bin
 macmac:bin sandro$ ls -l
 total 848
 -rwxr-xr-x  1 sandro  admin   22110  9 Mar 18:06 bootstrap.jar
 -rw-r--r--  1 sandro  admin2374  9 Mar 18:06 catalina-tasks.xml
 -rwxr-xr-x  1 sandro  admin   15582  9 Mar 18:06 catalina.sh
 -rwxr-xr-x  1 sandro  admin9341  9 Mar 18:06 commons-daemon.jar
 -rwxr-xr-x  1 sandro  admin1624  9 Mar 18:06 digest.sh
 -rw-r--r--  1 sandro  admin   74398  9 Mar 18:06 jsvc.tar.gz
 -rwxr-xr-x  1 sandro  admin4114  9 Mar 18:06 setclasspath.sh
 -rwxr-xr-x  1 sandro  admin1563  9 Mar 18:06 shutdown.sh
 -rwxr-xr-x  1 sandro  admin1956  9 Mar 18:06 startup.sh
 -rwxr-xr-x  1 sandro  admin   26484  9 Mar 18:06 tomcat-juli.jar
 -rw-r--r--  1 sandro  admin  241274  9 Mar 18:06 tomcat-native.tar.gz
 -rwxr-xr-x  1 sandro  admin3459  9 Mar 18:06 tool-wrapper.sh
 -rwxr-xr-x  1 sandro  admin1567  9 Mar 18:06 version.sh
 
 
 And trying to start Tomcat, i get the following logs:
 
 macmac:bin sandro$ ./startup.sh  tail -f ../logs/catalina.out
 Using CATALINA_BASE:   /Library/Tomcat/Home
 Using CATALINA_HOME:   /Library/Tomcat/Home
 Using CATALINA_TMPDIR: /Library/Tomcat/Home/temp
 Using JRE_HOME:/Library/Java/Home
 Using CLASSPATH:   /Library/Tomcat/Home/bin/bootstrap.jar
 at org.apache.catalina.startup.Bootstrap.clinit(Bootstrap.java:55)
 Caused by: java.lang.ClassNotFoundException:
 org.apache.juli.logging.LogFactory
 at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:244)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:315)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:398)
 ... 1 more
 Exception in thread main java.lang.NoClassDefFoundError:
 org/apache/juli/logging/LogFactory
 at org.apache.catalina.startup.Bootstrap.clinit(Bootstrap.java:55)
 Caused by: java.lang.ClassNotFoundException:
 org.apache.juli.logging.LogFactory
 at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:244)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:315)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:398)
 ... 1 more
 
 Same if i run sudo ./startup.sh  tail -f ../logs/catalina.out.
 
 
 For completeness, rewrite which version use:
 TOMCAT: 6.0.26
 JAVA:
 java -version
 java version 1.6.0_17
 Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248)
 Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)
 Java is already on Mac.
 ANT: already installed on mac: version 1.7.1
 
 How can i fix this? What could it be? Please help me.

We are trying to, you don't have to keep asking.

Have you set a classpath or any other environment variables?

If you take a fresh download and unzip it in a sub directory of your
user account, will it run there?


p


 Many thanks in advance
 
 
 
 
 
 2010/6/3 Bob Hall rfha...@yahoo.com
 
 Sondro,

 --- On Wed, 6/2/10 at 2:57 PM, Sandro Gallo sandro.gallo...@gmail.com
 wrote:

 TOMCAT version: 6.0.26.

 java -version
 java version 1.6.0_17
 Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248)
 Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101,
 mixed mode)
 The version of Java is already on Mac.

 I installed Tomcat by following this step:
 1. download from site,
 2. create folder /Library/Tomcat,
 3. untar file in this new folder,
 4. create simbolic link from
 /Library/Tomcat/apache-tomcat-6.0.26  to
 /Library/Tomcat/Home,
 5. create env variables CATALINA_HOME, JAVA_HOME.

 All files in CATALINA_HOME/bin have exec permission.

 Check the permissions of bin/tomcat-juli.jar; it needs to be readable by
 the user that is running tomcat.

 And try running Tomcat without the benefit of the symbolic link or
 setting CATALINA_HOME:

 $ export CATALINA_HOME=

 $ /Library/Tomcat/apache-tomcat-6.0.26/bin/startup.sh

 - Bob




 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org


 




signature.asc
Description: OpenPGP digital signature


Re: HTTP Status 400 - Invalid direct reference to form login page!

2010-06-03 Thread Pid
On 03/06/2010 15:29, Gheorghe Pucea wrote:
 Hello,
 
  I have a problem with my Tomcat instance, I'm using:
 
 Tomcat 6.0.26
 Java jdk 1.5.0_17
 Windows XP SP3
 
I have implemented a JAAS login module for my application and everything
 goes fine except from one thing.
 
 Here are the steps that I am doing:
 
 
 1)Request a protected resource  - the login form show's up and I enter my
 username and password

 2) I get into the application and everything looks fine but when I get back
 to the login page and enter my username/password again I get the message:
 (If I refresh the login page immediately when I hit the logout button
 everything goes weel)

Please explain what you mean by when I get back to the login page.

Why are you going back to the login page?


p


 HTTP Status 400 - Invalid direct reference to form login page
 --
 
 *type* Status report
 
 *message* *Invalid direct reference to form login page*
 
 *description* *The request sent by the client was syntactically incorrect
 (Invalid direct reference to form login page)*
 
 *
 *
 
 *
 *
 
 *
 *
 
 *Thank you very much!*
 




signature.asc
Description: OpenPGP digital signature


RE: HTTP Status 400 - Invalid direct reference to form login page!

2010-06-03 Thread Propes, Barry L
It worked for some users; for others it did not.

I'm not sure I ever received a definitive reason for it happening - especially 
to random users -- but it happened to the same set of users most all the time, 
where others weren't affected.

You could try that first, and see if that worked. If not, I'm not sure what to 
tell you. Maybe some others on this forum would know better than I. 

-Original Message-
From: Gheorghe Pucea [mailto:george.pu...@gmail.com] 
Sent: Thursday, June 03, 2010 11:47 AM
To: Tomcat Users List
Subject: Re: HTTP Status 400 - Invalid direct reference to form login page!

Hello Barry,




  Thank you very much for your quick respone, but I think that version of 
Tomcat was very old compared to Tomcat 6.0.26 I think the problem should be fix 
by now.
  So you suggest that I manually should clear my browser's cache?And this 
should fix my problem?
















On Thu, Jun 3, 2010 at 7:10 PM, Propes, Barry L barry.l.pro...@citi.comwrote:

 I had that happen periodically for years with my version of TC 4.1.31.

 With some folks, we could get it to go away, by cleaning out browser cache.
 With others, it was the same people that incurred it all the time. 
 They could access other protected areas, but not the one.
 I ended up making a duplicate non-protected piece for them. For me it 
 wasn't a big deal, because they already were -- in a sense -- in a 
 protected piece to begin with. But it would have been better if it'd worked.

 -Original Message-
 From: Gheorghe Pucea [mailto:george.pu...@gmail.com]
 Sent: Thursday, June 03, 2010 9:30 AM
 To: users@tomcat.apache.org
 Subject: HTTP Status 400 - Invalid direct reference to form login page!

 Hello,



  I have a problem with my Tomcat instance, I'm using:


 Tomcat 6.0.26
 Java jdk 1.5.0_17
 Windows XP SP3


   I have implemented a JAAS login module for my application and 
 everything goes fine except from one thing.

 Here are the steps that I am doing:


 1)Request a protected resource  - the login form show's up and I 
 enter my username and password
 2) I get into the application and everything looks fine but when I get 
 back to the login page and enter my username/password again I get the message:
 (If I refresh the login page immediately when I hit the logout button 
 everything goes weel) HTTP Status 400 - Invalid direct reference to 
 form login page
 --

 *type* Status report

 *message* *Invalid direct reference to form login page*

 *description* *The request sent by the client was syntactically 
 incorrect (Invalid direct reference to form login page)*

 *
 *

 *
 *

 *
 *

 *Thank you very much!*

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: HTTP Status 400 - Invalid direct reference to form login page!

2010-06-03 Thread Propes, Barry L
Yeah, I'd say he shouldn't be going back to the login page but rather to the 
protected page. 

-Original Message-
From: Pid [mailto:p...@pidster.com] 
Sent: Thursday, June 03, 2010 12:11 PM
To: Tomcat Users List
Subject: Re: HTTP Status 400 - Invalid direct reference to form login page!

On 03/06/2010 15:29, Gheorghe Pucea wrote:
 Hello,
 
  I have a problem with my Tomcat instance, I'm using:
 
 Tomcat 6.0.26
 Java jdk 1.5.0_17
 Windows XP SP3
 
I have implemented a JAAS login module for my application and 
 everything goes fine except from one thing.
 
 Here are the steps that I am doing:
 
 
 1)Request a protected resource  - the login form show's up and I 
 enter my username and password

 2) I get into the application and everything looks fine but when I get 
 back to the login page and enter my username/password again I get the message:
 (If I refresh the login page immediately when I hit the logout button 
 everything goes weel)

Please explain what you mean by when I get back to the login page.

Why are you going back to the login page?


p


 HTTP Status 400 - Invalid direct reference to form login page
 --
 
 *type* Status report
 
 *message* *Invalid direct reference to form login page*
 
 *description* *The request sent by the client was syntactically 
 incorrect (Invalid direct reference to form login page)*
 
 *
 *
 
 *
 *
 
 *
 *
 
 *Thank you very much!*
 



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-06-03 Thread Savoy, Melinda
Let me try to answer Andre's questions below as well as communicate the results 
I got given the settings I have in the Windows 2003 server and ANY HELP or 
DIRECTION would be GREATLY APPRECIATED :

I spoke to the guy who had setup our Tomcat server and he said that the SECOND 
HOST in our server.xml file was there to define the virtual host that is in our 
enterprise DNS (see settings below).  The baseapp=scmisapp which is a 
directory in our tomcat server:  C:\Server\Tomcat 6.0\scmisapp 

I removed the SECOND virtual directory as you instructed and now I'm getting 
Windows login dialog boxes when trying to go the URL:  http://scmisdev.

If we could start from the following settings  and if someone could let me know 
what I'm doing wrong to get the error (see below) I'm getting it would be 
greatly appreciated:

Workers.properties file:

worker.scmisWorker.type=ajp13
worker.scmisWorker.host=localhost (I'm not sure if this should match the host 
name=scmis in my server.xml file or not)
worker.scmisWorker.port=8009

uriworkermap.properties file:

/scmisdev/*=scmisWorker  (this matches the virtual host that we have defined in 
the enterprise DNS and what we use to get to this server via the URL in our 
browsers (IE) http://scmisdev ).

Server.xml:

Host name=localhost  appBase=webapps
unpackWARs=false autoDeploy=false
xmlValidation=false xmlNamespaceAware=false

!-- SingleSignOn valve, share authentication between web applications
 Documentation at: /docs/config/valve.html --
!--
Valve className=org.apache.catalina.authenticator.SingleSignOn /
--

!-- Access log processes all example.
 Documentation at: /docs/config/valve.html --
!--
Valve className=org.apache.catalina.valves.AccessLogValve 
directory=logs  
   prefix=localhost_access_log. suffix=.txt pattern=common 
resolveHosts=false/
--
/Host

Host name=scmis appBase=scmisapp
unpackWARs=true autoDeploy=false
xmlValidation=false xmlNamespaceAware=false

Aliasscmisdev/Alias
Aliasscmisdev.texashealth.org/Alias
/Host

In IIS I have the Default Web Site setup with:

ISAPI Filters:  jakarta and it points to C:\Server\Tomcat 
6.0\bin\isapi_redirect.dll
And the Directory Security is:  Enable anonymous access (checked only)

In IIS I have the jakarta virtual directory setup with:

Where the local path is:  C:\Server\Tomcat 6.0\bin
And the Directory Security is:  Integrated Windows authentication (checked only)

The result I get in my IE browser is:

You are not authorized to view this page
You do not have permission to view this directory or page using the credentials 
that you supplied because your Web browser is sending a WWW-Authenticate header 
field that the Web server is not configured to accept. 


Please try the following:

Contact the Web site administrator if you believe you should be able to view 
this directory or page. 
Click the Refresh button to try again with different credentials. 
HTTP Error 401.2 - Unauthorized: Access is denied due to server configuration.
Internet Information Services (IIS)



Technical Information (for support personnel)

Go to Microsoft Product Support Services and perform a title search for the 
words HTTP and 401. 
Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for 
topics titled About Security, Authentication, and About Custom Error Messages.

-Original Message-
From: Savoy, Melinda 
Sent: Wednesday, June 02, 2010 5:12 PM
To: Tomcat Users List; Tomcat Users List
Subject: RE: How can I get the user value in the request forwarded to my Tomcat 
in my Java app?

Andre,

First my apologies for forgetting my earlier setup within my Windows XP box and 
therefore as you say not learning what I had done previously.

Second - this Windows 2003 server was already setup and the second host was 
created in order that the user could enter a URL of http://scmisdev and then 
get to the application which is how it has been working.

In your comment:  

It seems that you have not learned a lot, or forgotten what you
previously learned.

Why do you need this last virtual directory in IIS ?
The jakarta virtual directory will already re-direct (or rather
proxy) all the calls to /scmisdev/* to Tomcat.
You do not want IIS to go directly put its nose in the Tomcat
directories.  You want it to go through the isapi redirector for that,
which you already do with the jakarta virtual directory setup.

What do I put in the uriworkermap.properties file that redirects to where the 
JSP's are?  The directory path in Tomcat as to where the app is located is:

C:\Server\Tomcat 6.0\scmisapp\ROOT\WEB-INF

You are correct that I'm probably mixing up 2 things but I'm trying retain all 
the info that you and 

Re: Error on startup catalina

2010-06-03 Thread Hassan Schroeder
On Thu, Jun 3, 2010 at 10:08 AM, Pid p...@pidster.com wrote:

 If you take a fresh download and unzip it in a sub directory of your
 user account, will it run there?

As a reference point -- here's a fresh install on a Mac/Snow Leopard system:

ripple:~/Downloads$ ls apache-tomcat-6.0.26.tar.gz
-rw-r--r--  1 hassan  staff  6123410 Mar 17 13:18 apache-tomcat-6.0.26.tar.gz
ripple:~/Downloads$ tar xfz apache-tomcat-6.0.26.tar.gz
ripple:~/Downloads$ cd apache-tomcat-6.0.26
ripple:~/Downloads/apache-tomcat-6.0.26$ export CATALINA_HOME=`pwd`
ripple:~/Downloads/apache-tomcat-6.0.26$ ./bin/catalina.sh run
Using CATALINA_BASE:   /Users/hassan/Downloads/apache-tomcat-6.0.26
Using CATALINA_HOME:   /Users/hassan/Downloads/apache-tomcat-6.0.26
Using CATALINA_TMPDIR: /Users/hassan/Downloads/apache-tomcat-6.0.26/temp
Using JRE_HOME:
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
Using CLASSPATH:
/Users/hassan/Downloads/apache-tomcat-6.0.26/bin/bootstrap.jar
Jun 3, 2010 10:57:30 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path:
/usr/local/ImageMagick-6.4.1/lib:/Users/hassan/Library/Oracle/instantclient_10_2:.:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
Jun 3, 2010 10:57:30 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jun 3, 2010 10:57:30 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 932 ms
Jun 3, 2010 10:57:30 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 3, 2010 10:57:30 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.26
Jun 3, 2010 10:57:30 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Jun 3, 2010 10:57:31 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Jun 3, 2010 10:57:31 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory host-manager
Jun 3, 2010 10:57:31 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory manager
Jun 3, 2010 10:57:31 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Jun 3, 2010 10:57:31 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jun 3, 2010 10:57:31 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jun 3, 2010 10:57:31 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/20  config=null
Jun 3, 2010 10:57:31 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1384 ms

After confirming it basically works, I would normally cd out and move
the tomcat directory to /usr/local and set CATALINA_HOME to the
appropriate value.

HTH!
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: HTTP Status 400 - Invalid direct reference to form login page!

2010-06-03 Thread Gheorghe Pucea
Hello Barry,



  Exactly that is my problem, on every forum says that this error
happens when you access directly the login page, but when I log out from my
app I redirect the url to point to a restricted resource then my login page
appears and when I enter the username/password the error apears.

  So after the log out I don't point directly to the login page insted I
point to a restricted page and when I get redirected to the login I type my
username/pass and I get the error.





Thank you very much for your time, I really appreciate!!!







On Thu, Jun 3, 2010 at 8:51 PM, Propes, Barry L barry.l.pro...@citi.comwrote:

 Yeah, I'd say he shouldn't be going back to the login page but rather to
 the protected page.

 -Original Message-
 From: Pid [mailto:p...@pidster.com]
 Sent: Thursday, June 03, 2010 12:11 PM
 To: Tomcat Users List
 Subject: Re: HTTP Status 400 - Invalid direct reference to form login page!

 On 03/06/2010 15:29, Gheorghe Pucea wrote:
  Hello,
 
   I have a problem with my Tomcat instance, I'm using:
 
  Tomcat 6.0.26
  Java jdk 1.5.0_17
  Windows XP SP3
 
 I have implemented a JAAS login module for my application and
  everything goes fine except from one thing.
 
  Here are the steps that I am doing:
 
 
  1)Request a protected resource  - the login form show's up and I
  enter my username and password

  2) I get into the application and everything looks fine but when I get
  back to the login page and enter my username/password again I get the
 message:
  (If I refresh the login page immediately when I hit the logout button
  everything goes weel)

 Please explain what you mean by when I get back to the login page.

 Why are you going back to the login page?


 p


  HTTP Status 400 - Invalid direct reference to form login page
  --
 
  *type* Status report
 
  *message* *Invalid direct reference to form login page*
 
  *description* *The request sent by the client was syntactically
  incorrect (Invalid direct reference to form login page)*
 
  *
  *
 
  *
  *
 
  *
  *
 
  *Thank you very much!*
 



 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: HTTP Status 400 - Invalid direct reference to form login page!

2010-06-03 Thread Gheorghe Pucea
Sorry Pid I didn't noticed your message.




By when I get back to the login page I mean that I log out from my app and
then I redirect my app to a restricted resource and when my login page
appears I type my User/pass and the error occurs.

I want to add something, when I log out and after I redirect my app to a
protected resource the login page show's up if I hit the refresh button on
my browser and I type in my user/pass it works.


Thank you very much for your time
Really  appreciate!

On Thu, Jun 3, 2010 at 8:11 PM, Pid p...@pidster.com wrote:

 On 03/06/2010 15:29, Gheorghe Pucea wrote:
  Hello,
 
   I have a problem with my Tomcat instance, I'm using:
 
  Tomcat 6.0.26
  Java jdk 1.5.0_17
  Windows XP SP3
 
 I have implemented a JAAS login module for my application and
 everything
  goes fine except from one thing.
 
  Here are the steps that I am doing:
 
 
  1)Request a protected resource  - the login form show's up and I enter
 my
  username and password

  2) I get into the application and everything looks fine but when I get
 back
  to the login page and enter my username/password again I get the message:
  (If I refresh the login page immediately when I hit the logout button
  everything goes weel)

 Please explain what you mean by when I get back to the login page.

 Why are you going back to the login page?


 p


  HTTP Status 400 - Invalid direct reference to form login page
  --
 
  *type* Status report
 
  *message* *Invalid direct reference to form login page*
 
  *description* *The request sent by the client was syntactically incorrect
  (Invalid direct reference to form login page)*
 
  *
  *
 
  *
  *
 
  *
  *
 
  *Thank you very much!*
 





RE: HTTP Status 400 - Invalid direct reference to form login page!

2010-06-03 Thread Propes, Barry L
Sounds like the session's not getting invalidated properly? 

-Original Message-
From: Gheorghe Pucea [mailto:george.pu...@gmail.com] 
Sent: Thursday, June 03, 2010 1:13 PM
To: Tomcat Users List
Subject: Re: HTTP Status 400 - Invalid direct reference to form login page!

Hello Barry,



  Exactly that is my problem, on every forum says that this error happens 
when you access directly the login page, but when I log out from my app I 
redirect the url to point to a restricted resource then my login page appears 
and when I enter the username/password the error apears.

  So after the log out I don't point directly to the login page insted I 
point to a restricted page and when I get redirected to the login I type my 
username/pass and I get the error.





Thank you very much for your time, I really appreciate!!!







On Thu, Jun 3, 2010 at 8:51 PM, Propes, Barry L barry.l.pro...@citi.comwrote:

 Yeah, I'd say he shouldn't be going back to the login page but 
 rather to the protected page.

 -Original Message-
 From: Pid [mailto:p...@pidster.com]
 Sent: Thursday, June 03, 2010 12:11 PM
 To: Tomcat Users List
 Subject: Re: HTTP Status 400 - Invalid direct reference to form login page!

 On 03/06/2010 15:29, Gheorghe Pucea wrote:
  Hello,
 
   I have a problem with my Tomcat instance, I'm using:
 
  Tomcat 6.0.26
  Java jdk 1.5.0_17
  Windows XP SP3
 
 I have implemented a JAAS login module for my application and 
  everything goes fine except from one thing.
 
  Here are the steps that I am doing:
 
 
  1)Request a protected resource  - the login form show's up and I 
  enter my username and password

  2) I get into the application and everything looks fine but when I 
  get back to the login page and enter my username/password again I 
  get the
 message:
  (If I refresh the login page immediately when I hit the logout 
  button everything goes weel)

 Please explain what you mean by when I get back to the login page.

 Why are you going back to the login page?


 p


  HTTP Status 400 - Invalid direct reference to form login page
  --
 
  *type* Status report
 
  *message* *Invalid direct reference to form login page*
 
  *description* *The request sent by the client was syntactically 
  incorrect (Invalid direct reference to form login page)*
 
  *
  *
 
  *
  *
 
  *
  *
 
  *Thank you very much!*
 



 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: HTTP Status 400 - Invalid direct reference to form login page!

2010-06-03 Thread Gheorghe Pucea
 Exactly, I supposed that too but when the user click's the logout
button a servlet is called and that servlet invalidates the session after
that from the server side a response is given back to the UI from where my
application is redirected to a restricted resource. So I checked the servlet
that does the invalidation and it look's fine.
   I spend 2 whole days googling and trying to solve the issue and don't
know what else to do.
   It is the first time form me to work with JAAS on Tomcat and I don't
exactly know if the problem is caused by JAAS or by Tomcat but I checked the
login module and it work's fine and I think this issue is related to Tomcat.



 So please if you have another idea please share it.

Thank you,


On Thu, Jun 3, 2010 at 10:27 PM, Propes, Barry L barry.l.pro...@citi.comwrote:

 Sounds like the session's not getting invalidated properly?

 -Original Message-
 From: Gheorghe Pucea [mailto:george.pu...@gmail.com]
 Sent: Thursday, June 03, 2010 1:13 PM
 To: Tomcat Users List
 Subject: Re: HTTP Status 400 - Invalid direct reference to form login page!

 Hello Barry,



  Exactly that is my problem, on every forum says that this error
 happens when you access directly the login page, but when I log out from my
 app I redirect the url to point to a restricted resource then my login page
 appears and when I enter the username/password the error apears.

  So after the log out I don't point directly to the login page insted I
 point to a restricted page and when I get redirected to the login I type my
 username/pass and I get the error.





 Thank you very much for your time, I really appreciate!!!







 On Thu, Jun 3, 2010 at 8:51 PM, Propes, Barry L barry.l.pro...@citi.com
 wrote:

  Yeah, I'd say he shouldn't be going back to the login page but
  rather to the protected page.
 
  -Original Message-
  From: Pid [mailto:p...@pidster.com]
  Sent: Thursday, June 03, 2010 12:11 PM
  To: Tomcat Users List
  Subject: Re: HTTP Status 400 - Invalid direct reference to form login
 page!
 
  On 03/06/2010 15:29, Gheorghe Pucea wrote:
   Hello,
  
I have a problem with my Tomcat instance, I'm using:
  
   Tomcat 6.0.26
   Java jdk 1.5.0_17
   Windows XP SP3
  
  I have implemented a JAAS login module for my application and
   everything goes fine except from one thing.
  
   Here are the steps that I am doing:
  
  
   1)Request a protected resource  - the login form show's up and I
   enter my username and password
 
   2) I get into the application and everything looks fine but when I
   get back to the login page and enter my username/password again I
   get the
  message:
   (If I refresh the login page immediately when I hit the logout
   button everything goes weel)
 
  Please explain what you mean by when I get back to the login page.
 
  Why are you going back to the login page?
 
 
  p
 
 
   HTTP Status 400 - Invalid direct reference to form login page
   --
  
   *type* Status report
  
   *message* *Invalid direct reference to form login page*
  
   *description* *The request sent by the client was syntactically
   incorrect (Invalid direct reference to form login page)*
  
   *
   *
  
   *
   *
  
   *
   *
  
   *Thank you very much!*
  
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




simple, fast to setup, javabased CMS for small sites? (not really OT I think )

2010-06-03 Thread MB


With the wealth of java-based CMS's at http://java-source.net/open-
source/content-managment-systems I was wondering if you guys could
share your views on the matter when it comes for javabased CMS's for
small sites?

What are you guys running on Tomcat, if at all?

I need:
More or less total control over HTML output without an enormous effort
or learning curve
CSS-based template themes, both site-wide and for specific pages
login administration for mere mortals (users)
gallery function
news blog style 

I love the Struts Action 2 framework and am interested Spring and
Hibernation as well. I have my eyes on Appfuse, but would like something
I can set up with 24 hours of work (or whatever is reasonable). All
designs (CSS), markup and raw content is already ready. 

Appfuse look promising for the long term, but I'm not sure about getting
up and running from the get go. 

/MB

Any sufficiently advanced technology is indistinguishable from magic.
--Arthur C. Clarke


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: HTTP Status 400 - Invalid direct reference to form login page!

2010-06-03 Thread Propes, Barry L
Would there be some sort of caching mechanism keeping the session alive somehow?
 

-Original Message-
From: Gheorghe Pucea [mailto:george.pu...@gmail.com] 
Sent: Thursday, June 03, 2010 2:37 PM
To: Tomcat Users List
Subject: Re: HTTP Status 400 - Invalid direct reference to form login page!

 Exactly, I supposed that too but when the user click's the logout 
button a servlet is called and that servlet invalidates the session after that 
from the server side a response is given back to the UI from where my 
application is redirected to a restricted resource. So I checked the servlet 
that does the invalidation and it look's fine.
   I spend 2 whole days googling and trying to solve the issue and don't 
know what else to do.
   It is the first time form me to work with JAAS on Tomcat and I don't 
exactly know if the problem is caused by JAAS or by Tomcat but I checked the 
login module and it work's fine and I think this issue is related to Tomcat.



 So please if you have another idea please share it.

Thank you,


On Thu, Jun 3, 2010 at 10:27 PM, Propes, Barry L barry.l.pro...@citi.comwrote:

 Sounds like the session's not getting invalidated properly?

 -Original Message-
 From: Gheorghe Pucea [mailto:george.pu...@gmail.com]
 Sent: Thursday, June 03, 2010 1:13 PM
 To: Tomcat Users List
 Subject: Re: HTTP Status 400 - Invalid direct reference to form login page!

 Hello Barry,



  Exactly that is my problem, on every forum says that this error 
 happens when you access directly the login page, but when I log out 
 from my app I redirect the url to point to a restricted resource then 
 my login page appears and when I enter the username/password the error apears.

  So after the log out I don't point directly to the login page 
 insted I point to a restricted page and when I get redirected to the 
 login I type my username/pass and I get the error.





 Thank you very much for your time, I really appreciate!!!







 On Thu, Jun 3, 2010 at 8:51 PM, Propes, Barry L 
 barry.l.pro...@citi.com
 wrote:

  Yeah, I'd say he shouldn't be going back to the login page but 
  rather to the protected page.
 
  -Original Message-
  From: Pid [mailto:p...@pidster.com]
  Sent: Thursday, June 03, 2010 12:11 PM
  To: Tomcat Users List
  Subject: Re: HTTP Status 400 - Invalid direct reference to form 
  login
 page!
 
  On 03/06/2010 15:29, Gheorghe Pucea wrote:
   Hello,
  
I have a problem with my Tomcat instance, I'm using:
  
   Tomcat 6.0.26
   Java jdk 1.5.0_17
   Windows XP SP3
  
  I have implemented a JAAS login module for my application and 
   everything goes fine except from one thing.
  
   Here are the steps that I am doing:
  
  
   1)Request a protected resource  - the login form show's up and I 
   enter my username and password
 
   2) I get into the application and everything looks fine but when I 
   get back to the login page and enter my username/password again I 
   get the
  message:
   (If I refresh the login page immediately when I hit the logout 
   button everything goes weel)
 
  Please explain what you mean by when I get back to the login page.
 
  Why are you going back to the login page?
 
 
  p
 
 
   HTTP Status 400 - Invalid direct reference to form login page
   --
  
   *type* Status report
  
   *message* *Invalid direct reference to form login page*
  
   *description* *The request sent by the client was syntactically 
   incorrect (Invalid direct reference to form login page)*
  
   *
   *
  
   *
   *
  
   *
   *
  
   *Thank you very much!*
  
 
 
 
  
  - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: HTTP Status 400 - Invalid direct reference to form login page!

2010-06-03 Thread Gheorghe Pucea
   I didn't found one.I don't know, but when I close my browser or I
refresh the page it work's so it's definitely something about the session.








   Thank you!


On Thu, Jun 3, 2010 at 11:01 PM, Propes, Barry L barry.l.pro...@citi.comwrote:

 Would there be some sort of caching mechanism keeping the session alive
 somehow?


 -Original Message-
 From: Gheorghe Pucea [mailto:george.pu...@gmail.com]
 Sent: Thursday, June 03, 2010 2:37 PM
 To: Tomcat Users List
 Subject: Re: HTTP Status 400 - Invalid direct reference to form login page!

 Exactly, I supposed that too but when the user click's the logout
 button a servlet is called and that servlet invalidates the session after
 that from the server side a response is given back to the UI from where my
 application is redirected to a restricted resource. So I checked the servlet
 that does the invalidation and it look's fine.
   I spend 2 whole days googling and trying to solve the issue and don't
 know what else to do.
   It is the first time form me to work with JAAS on Tomcat and I don't
 exactly know if the problem is caused by JAAS or by Tomcat but I checked the
 login module and it work's fine and I think this issue is related to Tomcat.



  So please if you have another idea please share it.

 Thank you,


 On Thu, Jun 3, 2010 at 10:27 PM, Propes, Barry L barry.l.pro...@citi.com
 wrote:

  Sounds like the session's not getting invalidated properly?
 
  -Original Message-
  From: Gheorghe Pucea [mailto:george.pu...@gmail.com]
  Sent: Thursday, June 03, 2010 1:13 PM
  To: Tomcat Users List
  Subject: Re: HTTP Status 400 - Invalid direct reference to form login
 page!
 
  Hello Barry,
 
 
 
   Exactly that is my problem, on every forum says that this error
  happens when you access directly the login page, but when I log out
  from my app I redirect the url to point to a restricted resource then
  my login page appears and when I enter the username/password the error
 apears.
 
   So after the log out I don't point directly to the login page
  insted I point to a restricted page and when I get redirected to the
  login I type my username/pass and I get the error.
 
 
 
 
 
  Thank you very much for your time, I really appreciate!!!
 
 
 
 
 
 
 
  On Thu, Jun 3, 2010 at 8:51 PM, Propes, Barry L
  barry.l.pro...@citi.com
  wrote:
 
   Yeah, I'd say he shouldn't be going back to the login page but
   rather to the protected page.
  
   -Original Message-
   From: Pid [mailto:p...@pidster.com]
   Sent: Thursday, June 03, 2010 12:11 PM
   To: Tomcat Users List
   Subject: Re: HTTP Status 400 - Invalid direct reference to form
   login
  page!
  
   On 03/06/2010 15:29, Gheorghe Pucea wrote:
Hello,
   
 I have a problem with my Tomcat instance, I'm using:
   
Tomcat 6.0.26
Java jdk 1.5.0_17
Windows XP SP3
   
   I have implemented a JAAS login module for my application and
everything goes fine except from one thing.
   
Here are the steps that I am doing:
   
   
1)Request a protected resource  - the login form show's up and I
enter my username and password
  
2) I get into the application and everything looks fine but when I
get back to the login page and enter my username/password again I
get the
   message:
(If I refresh the login page immediately when I hit the logout
button everything goes weel)
  
   Please explain what you mean by when I get back to the login page.
  
   Why are you going back to the login page?
  
  
   p
  
  
HTTP Status 400 - Invalid direct reference to form login page
--
   
*type* Status report
   
*message* *Invalid direct reference to form login page*
   
*description* *The request sent by the client was syntactically
incorrect (Invalid direct reference to form login page)*
   
*
*
   
*
*
   
*
*
   
*Thank you very much!*
   
  
  
  
   
   - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
   For additional commands, e-mail: users-h...@tomcat.apache.org
  
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




RE: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-06-03 Thread Savoy, Melinda
I think I was finally able to TEST that my tomcat connector and its respective 
config files have been setup correctly.

I think I have narrowed my problem to an IIS Directory Security ISSUE on 
jakarta.  If anyone has run into this issue can you please respond to the 
following problem:

In IIS I have the Default Web Site setup with:

ISAPI Filters:  jakarta and it points to C:\Server\Tomcat 
6.0\bin\isapi_redirect.dll
And the Directory Security is:  Enable anonymous access (checked only)

In IIS I have the jakarta virtual directory setup with:

Where the local path is:  C:\Server\Tomcat 6.0\bin
And the Directory Security is:  Integrated Windows authentication (checked only)

The result I get in my IE browser is:

You are not authorized to view this page
You do not have permission to view this directory or page using the credentials 
that you supplied because your Web browser is sending a WWW-Authenticate header 
field that the Web server is not configured to accept.


Please try the following:

Contact the Web site administrator if you believe you should be able to view 
this directory or page.
Click the Refresh button to try again with different credentials.
HTTP Error 401.2 - Unauthorized: Access is denied due to server configuration.
Internet Information Services (IIS)

But when I change the jakarta Directory Security to the following I am able to 
get to the ERROR.jsp page in my application on Tomcat:

Directory Security changed to Anonymous access (checked only)

The ERROR.jsp page comes up because I do not have a USER value in the request.  
It is empty as depicted from the isapi log:

[Thu Jun 03 15:27:24.665 2010] [948:3148] [debug] jk_isapi_plugin.c (3108): 
Service protocol=HTTP/1.1 method=GET host=167.99.60.10 addr=167.99.60.10 
name=scmisdev port=80 auth= user= uri=/pics/plus.jpg

Any suggestions or direction on how I can remedy this issue would be 
appreciated.

Thank you.


-Original Message-
From: Savoy, Melinda
Sent: Thursday, June 03, 2010 12:53 PM
To: 'Tomcat Users List'
Subject: RE: How can I get the user value in the request forwarded to my Tomcat 
in my Java app?

Let me try to answer Andre's questions below as well as communicate the results 
I got given the settings I have in the Windows 2003 server and ANY HELP or 
DIRECTION would be GREATLY APPRECIATED :

I spoke to the guy who had setup our Tomcat server and he said that the SECOND 
HOST in our server.xml file was there to define the virtual host that is in our 
enterprise DNS (see settings below).  The baseapp=scmisapp which is a 
directory in our tomcat server:  C:\Server\Tomcat 6.0\scmisapp

I removed the SECOND virtual directory as you instructed and now I'm getting 
Windows login dialog boxes when trying to go the URL:  http://scmisdev.

If we could start from the following settings  and if someone could let me know 
what I'm doing wrong to get the error (see below) I'm getting it would be 
greatly appreciated:

Workers.properties file:

worker.scmisWorker.type=ajp13
worker.scmisWorker.host=localhost (I'm not sure if this should match the host 
name=scmis in my server.xml file or not)
worker.scmisWorker.port=8009

uriworkermap.properties file:

/scmisdev/*=scmisWorker  (this matches the virtual host that we have defined in 
the enterprise DNS and what we use to get to this server via the URL in our 
browsers (IE) http://scmisdev ).

Server.xml:

Host name=localhost  appBase=webapps
unpackWARs=false autoDeploy=false
xmlValidation=false xmlNamespaceAware=false

!-- SingleSignOn valve, share authentication between web applications
 Documentation at: /docs/config/valve.html --
!--
Valve className=org.apache.catalina.authenticator.SingleSignOn /
--

!-- Access log processes all example.
 Documentation at: /docs/config/valve.html --
!--
Valve className=org.apache.catalina.valves.AccessLogValve 
directory=logs
   prefix=localhost_access_log. suffix=.txt pattern=common 
resolveHosts=false/
--
/Host

Host name=scmis appBase=scmisapp
unpackWARs=true autoDeploy=false
xmlValidation=false xmlNamespaceAware=false

Aliasscmisdev/Alias
Aliasscmisdev.texashealth.org/Alias
/Host

In IIS I have the Default Web Site setup with:

ISAPI Filters:  jakarta and it points to C:\Server\Tomcat 
6.0\bin\isapi_redirect.dll
And the Directory Security is:  Enable anonymous access (checked only)

In IIS I have the jakarta virtual directory setup with:

Where the local path is:  C:\Server\Tomcat 6.0\bin
And the Directory Security is:  Integrated Windows authentication (checked only)

The result I get in my IE browser is:

You are not authorized to view this page
You do not have permission to view this directory or page using the credentials 
that you supplied because your Web browser is sending a WWW-Authenticate 

Re: [OT] Re: problems at thejarbar.org

2010-06-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Yucca Nel,

On 6/3/2010 3:41 AM, yucca...@live.co.za wrote:
 Ok I appreciatethis big help. I am expecting a small amount of users 
 though so does that mean that a datasource realm may be overkill? I
 am not implying that this is what was being said earlier, just trying
 to learn more.

You'll want to use a DataSource for your app's db communication, anyway,
so why not use that same DataSource for your Realm? The reality is that
the JDBCRealm is not good. Use it at your own risk.

 The sad thing is that with sun/oracle transition maven documentation
 is rotten and many of the plugins need a revamp

Maven is an Apache project, not an Oracle/Sun project. If you have a
complaint about the Apache Maven documentation, might I suggest that you
talk to their community about it? Things only improve when users give
feedback and/or contribute to those efforts.

 Java is in a mess st the moment with no news on JSE7 and very little 
 info from Oracle. I took it as a blessing in disguise an started
 getting to know JSF and hibernate and other stuff.

It's not like it's a waste to learn Java 6 when Java 7 is coming out:
it's all backward-compatible (unless otherwise noted). Don't worry about
the release schedule for Java 7 unless you are dying to have some
certain functionality that only ships with that version.

 PS can anyone confirm that there is firefox bug when selecting a 
 different locale for i8n testing? I am able only to change locale
 few times.

I have never had any problem changing ff's locale.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwIGfoACgkQ9CaO5/Lv0PAnAwCfWMjkflRhfbsBYI0FJmS29kjs
l8cAnRywLq1wRXiXkKuLDYD+1p4hrBK2
=WLGC
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-06-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Melinda,

On 6/3/2010 11:48 AM, Savoy, Melinda wrote:
 Does the host in the workers.properties file need to match the HOST
 name in the server.xml file (see below):
 
 worker.scmisWorker.type=ajp13
 worker.scmisWorker.host=scmis
 worker.scmisWorker.port=8009

No, the 'host' for the worker is the host where Tomcat is running. It
has nothing to do with the Host header coming from the client in an
HTTP header.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwIGwIACgkQ9CaO5/Lv0PCmPgCdHPQ8sQQYP+LNREqm10WWvq1j
p30AnjFQgh11z/0edNuk3kcwU47hDFGu
=Duc8
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-06-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Melinda,

On 6/3/2010 1:52 PM, Savoy, Melinda wrote:
 I spoke to the guy who had setup our Tomcat server and he said that
 the SECOND HOST in our server.xml file was there to define the virtual
 host that is in our enterprise DNS (see settings below). The
 baseapp=scmisapp which is a directory in our tomcat server:
 C:\Server\Tomcat 6.0\scmisapp

A second host is not necessary: any incoming requests for a host that
isn't explicitly defined will go to the default host. Unless you need
a complicated configuration, stick to a single Host that is the
default, and don't even worry about giving it a special name. We've run
with a single Host name=localhost in production for years.

 I removed the SECOND virtual directory as you instructed and now I'm
 getting Windows login dialog boxes when trying to go the URL:
 http://scmisdev.

Is that not the expected behavior?

 Workers.properties file:
 
 worker.scmisWorker.type=ajp13
 worker.scmisWorker.host=localhost (I'm not sure if this should match the host 
 name=scmis in my server.xml file or not)

If Tomcat is running on localhost (with respect to IIS, of course), then
you do, in fact, want localhost.

 worker.scmisWorker.port=8009
 
 uriworkermap.properties file:
 
 /scmisdev/*=scmisWorker  (this matches the virtual host that we have defined 
 in the enterprise DNS and what we use to get to this server via the URL in 
 our browsers (IE) http://scmisdev ).

No. http://scmisdev is a URL with only the hostname. If you want to map
/scmisdev/* to your worker, the URL should be http://scmisdev/scmisdev

If you want the URL http://scmisdev to work, you're going to have to
name your web application's deployment WAR file ROOT.war (or
exploded-WAR directory called ROOT) (capitals are required, even on
Microsoft Windows).

 Host name=localhost  appBase=webapps
 unpackWARs=false autoDeploy=false
 xmlValidation=false xmlNamespaceAware=false  
 [...]
 Host name=scmis appBase=scmisapp
   unpackWARs=true autoDeploy=false
   xmlValidation=false xmlNamespaceAware=false

   Aliasscmisdev/Alias
   Aliasscmisdev.texashealth.org/Alias
 /Host

See above for my comments on dual-Host configurations.


 The result I get in my IE browser is:
 
 You are not authorized to view this page
 You do not have permission to view this directory or page using the 
 credentials that you supplied because your Web browser is sending a 
 WWW-Authenticate header field that the Web server is not configured to 
 accept. 

What URL are you trying to access? http://scmisdev? If that's it, then
your web server isn't configured to display any (accessible) content
when you make the following request:

GET / HTTP1.1
Host scmisdev

Try again with http://scmisdev/scmisdev/index.jsp (or whatever resource
should be available in your webapp) and let us know how it goes.

Hope that helps,
- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwIHKQACgkQ9CaO5/Lv0PApDgCghrf6F/mCTUmdBrzRW4FerFrj
zfIAoJh3Cmo2x16Sp+KBhw5xrxIyHe+s
=EEjg
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-06-03 Thread André Warnier

Hi.

Now we're cooking !
But by the way, now this is also OT for this list, because your problem 
now seems to be between the browser and the webserver.


First, please do the following : using Google, find the the IE plugin 
named Fiddler 2 and install it in your IE browser.
That is a plugin which will allow you to view all the exchanges between 
the browser and the server (headers, errors, contents etc..).


Second, check in the IE options that it is really allowed to use 
Integrated Windows Authentication. That is somewhere in the long list 
of extended options.


If you receive a login dialog when you try to access a resource under 
IIS, it is because either one of these conditions :


- the IIS server requests the browser to authenticate using a specific 
method (e.g. NTLM), but the browser is not set up to do this and is 
trying a Basic authentication.


- the version of NTLM required by the server and the one supported by 
the workstation are not compatible


- your workstation is not logged into the same domain as the server

- your workstation does not recognise the server as a trusted server

Basically, if Integrated Windows Authentication was working, you should 
never see this login popup. It should all happen automatically behind 
the scenes.






Savoy, Melinda wrote:

I think I was finally able to TEST that my tomcat connector and its respective 
config files have been setup correctly.

I think I have narrowed my problem to an IIS Directory Security ISSUE on 
jakarta.  If anyone has run into this issue can you please respond to the 
following problem:

In IIS I have the Default Web Site setup with:

ISAPI Filters:  jakarta and it points to C:\Server\Tomcat 
6.0\bin\isapi_redirect.dll
And the Directory Security is:  Enable anonymous access (checked only)

In IIS I have the jakarta virtual directory setup with:

Where the local path is:  C:\Server\Tomcat 6.0\bin
And the Directory Security is:  Integrated Windows authentication (checked only)

The result I get in my IE browser is:

You are not authorized to view this page
You do not have permission to view this directory or page using the credentials 
that you supplied because your Web browser is sending a WWW-Authenticate header 
field that the Web server is not configured to accept.


Please try the following:

Contact the Web site administrator if you believe you should be able to view 
this directory or page.
Click the Refresh button to try again with different credentials.
HTTP Error 401.2 - Unauthorized: Access is denied due to server configuration.
Internet Information Services (IIS)

But when I change the jakarta Directory Security to the following I am able to 
get to the ERROR.jsp page in my application on Tomcat:

Directory Security changed to Anonymous access (checked only)

The ERROR.jsp page comes up because I do not have a USER value in the request.  
It is empty as depicted from the isapi log:

[Thu Jun 03 15:27:24.665 2010] [948:3148] [debug] jk_isapi_plugin.c (3108): 
Service protocol=HTTP/1.1 method=GET host=167.99.60.10 addr=167.99.60.10 
name=scmisdev port=80 auth= user= uri=/pics/plus.jpg

Any suggestions or direction on how I can remedy this issue would be 
appreciated.

Thank you.


-Original Message-
From: Savoy, Melinda
Sent: Thursday, June 03, 2010 12:53 PM
To: 'Tomcat Users List'
Subject: RE: How can I get the user value in the request forwarded to my Tomcat 
in my Java app?

Let me try to answer Andre's questions below as well as communicate the results 
I got given the settings I have in the Windows 2003 server and ANY HELP or 
DIRECTION would be GREATLY APPRECIATED :

I spoke to the guy who had setup our Tomcat server and he said that the SECOND HOST in 
our server.xml file was there to define the virtual host that is in our enterprise DNS 
(see settings below).  The baseapp=scmisapp which is a directory in our 
tomcat server:  C:\Server\Tomcat 6.0\scmisapp

I removed the SECOND virtual directory as you instructed and now I'm getting 
Windows login dialog boxes when trying to go the URL:  http://scmisdev.

If we could start from the following settings  and if someone could let me know 
what I'm doing wrong to get the error (see below) I'm getting it would be 
greatly appreciated:

Workers.properties file:

worker.scmisWorker.type=ajp13
worker.scmisWorker.host=localhost (I'm not sure if this should match the host 
name=scmis in my server.xml file or not)
worker.scmisWorker.port=8009

uriworkermap.properties file:

/scmisdev/*=scmisWorker  (this matches the virtual host that we have defined in 
the enterprise DNS and what we use to get to this server via the URL in our 
browsers (IE) http://scmisdev ).

Server.xml:

Host name=localhost  appBase=webapps
unpackWARs=false autoDeploy=false
xmlValidation=false xmlNamespaceAware=false

!-- SingleSignOn valve, share authentication between web 

Re: HTTP Status 400 - Invalid direct reference to form login page!

2010-06-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Gheorghe,

On 6/3/2010 2:18 PM, Gheorghe Pucea wrote:
 By when I get back to the login page I mean that I log out from my app and
 then I redirect my app to a restricted resource and when my login page
 appears I type my User/pass and the error occurs.
 
 I want to add something, when I log out and after I redirect my app to a
 protected resource the login page show's up if I hit the refresh button on
 my browser and I type in my user/pass it works.

After you call session.invalidation(), what does your code do,
specifically? If you do a forward to a protected resource, strange
things may happen with cookie-passing.

Does your login form properly encode the session id into it's form
action? Does your logout code properly encode the session id into the
redirect URL? Have you enabled/disabled cookies in your web browser?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwIHaIACgkQ9CaO5/Lv0PD4egCfT9LLrkpGYO39bqTTki1arNoc
k+4An0eBb+93c9XYCgzNXnF4BZop8NTI
=lzIW
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: single user session and block log-in after faut

2010-06-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chuck

On 6/3/2010 12:00 PM, Caldarale, Charles R wrote:
 If you want to prevent second logins, you'll need your own
 Realm.  Another option is that you might be able to configure or
 modify SecurityFilter to do the job.

FWIW, sf doesn't have this capability built-into it, so the OP would
have to write their own code, anyway. There is no advantage to using sf,
here, as long as the solution is not Tomcat-specific.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwIHnAACgkQ9CaO5/Lv0PBgZgCaAs3GBQDL43YEyrxofgCHS6Yy
q6kAmgMbFnS4wrZITa+gfTe9deOX3m+3
=LLMc
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-06-03 Thread Leo Donahue - PLANDEVX
I can't remember if anyone has already mentioned this.  If so, my apologies.

In IIS, do you have a Web Service Extension that is mapped to the 
isapi_redirect.dll, and that is set to allowed?

-Original Message-
From: Savoy, Melinda [mailto:melindasa...@texashealth.org]
Sent: Thursday, June 03, 2010 1:53 PM
To: 'Tomcat Users List'
Subject: RE: How can I get the user value in the request forwarded to my Tomcat 
in my Java app?

I think I was finally able to TEST that my tomcat connector and its respective 
config files have been setup correctly.

I think I have narrowed my problem to an IIS Directory Security ISSUE on 
jakarta.  If anyone has run into this issue can you please respond to the 
following problem:

In IIS I have the Default Web Site setup with:

ISAPI Filters:  jakarta and it points to C:\Server\Tomcat 
6.0\bin\isapi_redirect.dll
And the Directory Security is:  Enable anonymous access (checked only)

In IIS I have the jakarta virtual directory setup with:

Where the local path is:  C:\Server\Tomcat 6.0\bin
And the Directory Security is:  Integrated Windows authentication (checked only)

The result I get in my IE browser is:

You are not authorized to view this page
You do not have permission to view this directory or page using the credentials 
that you supplied because your Web browser is sending a WWW-Authenticate header 
field that the Web server is not configured to accept.


Please try the following:

Contact the Web site administrator if you believe you should be able to view 
this directory or page.
Click the Refresh button to try again with different credentials.
HTTP Error 401.2 - Unauthorized: Access is denied due to server configuration.
Internet Information Services (IIS)

But when I change the jakarta Directory Security to the following I am able to 
get to the ERROR.jsp page in my application on Tomcat:

Directory Security changed to Anonymous access (checked only)

The ERROR.jsp page comes up because I do not have a USER value in the request.  
It is empty as depicted from the isapi log:

[Thu Jun 03 15:27:24.665 2010] [948:3148] [debug] jk_isapi_plugin.c (3108): 
Service protocol=HTTP/1.1 method=GET host=167.99.60.10 addr=167.99.60.10 
name=scmisdev port=80 auth= user= uri=/pics/plus.jpg

Any suggestions or direction on how I can remedy this issue would be 
appreciated.

Thank you.


-Original Message-
From: Savoy, Melinda
Sent: Thursday, June 03, 2010 12:53 PM
To: 'Tomcat Users List'
Subject: RE: How can I get the user value in the request forwarded to my Tomcat 
in my Java app?

Let me try to answer Andre's questions below as well as communicate the results 
I got given the settings I have in the Windows 2003 server and ANY HELP or 
DIRECTION would be GREATLY APPRECIATED :

I spoke to the guy who had setup our Tomcat server and he said that the SECOND 
HOST in our server.xml file was there to define the virtual host that is in our 
enterprise DNS (see settings below).  The baseapp=scmisapp which is a 
directory in our tomcat server:  C:\Server\Tomcat 6.0\scmisapp

I removed the SECOND virtual directory as you instructed and now I'm getting 
Windows login dialog boxes when trying to go the URL:  http://scmisdev.

If we could start from the following settings  and if someone could let me know 
what I'm doing wrong to get the error (see below) I'm getting it would be 
greatly appreciated:

Workers.properties file:

worker.scmisWorker.type=ajp13
worker.scmisWorker.host=localhost (I'm not sure if this should match the host 
name=scmis in my server.xml file or not)
worker.scmisWorker.port=8009

uriworkermap.properties file:

/scmisdev/*=scmisWorker  (this matches the virtual host that we have defined in 
the enterprise DNS and what we use to get to this server via the URL in our 
browsers (IE) http://scmisdev ).

Server.xml:

Host name=localhost  appBase=webapps
unpackWARs=false autoDeploy=false
xmlValidation=false xmlNamespaceAware=false

!-- SingleSignOn valve, share authentication between web applications
 Documentation at: /docs/config/valve.html --
!--
Valve className=org.apache.catalina.authenticator.SingleSignOn /
--

!-- Access log processes all example.
 Documentation at: /docs/config/valve.html --
!--
Valve className=org.apache.catalina.valves.AccessLogValve 
directory=logs
   prefix=localhost_access_log. suffix=.txt pattern=common 
resolveHosts=false/
--
/Host

Host name=scmis appBase=scmisapp
unpackWARs=true autoDeploy=false
xmlValidation=false xmlNamespaceAware=false

Aliasscmisdev/Alias
Aliasscmisdev.texashealth.org/Alias
/Host

In IIS I have the Default Web Site setup with:

ISAPI Filters:  jakarta and it points to C:\Server\Tomcat 
6.0\bin\isapi_redirect.dll
And the Directory Security is:  Enable anonymous access 

Re: HTTP Status 400 - Invalid direct reference to form login page!

2010-06-03 Thread Gheorghe Pucea
Hello Cris,

*After you call session.invalidation(), what does your code do,
specifically? If you do a forward to a protected resource, strange
things may happen with cookie-passing.*

After the session get's invalidate(on the server side) my code send back a
request success to the UI and then the Ui redirect's my app to the protected
resource.

*Does your login form properly encode the session id into it's form
action? Does your logout code properly encode the session id into the
redirect URL? Have you enabled/disabled cookies in your web browser?*

My cookies are enabled. But I don't know exactly if the login/logout code
form properly encode the session id into it's form(how can I test that?)



Thank you very much



On Fri, Jun 4, 2010 at 12:24 AM, Christopher Schultz 
ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Gheorghe,

 On 6/3/2010 2:18 PM, Gheorghe Pucea wrote:
  By when I get back to the login page I mean that I log out from my app
 and
  then I redirect my app to a restricted resource and when my login page
  appears I type my User/pass and the error occurs.
 
  I want to add something, when I log out and after I redirect my app to a
  protected resource the login page show's up if I hit the refresh button
 on
  my browser and I type in my user/pass it works.

 After you call session.invalidation(), what does your code do,
 specifically? If you do a forward to a protected resource, strange
 things may happen with cookie-passing.

 Does your login form properly encode the session id into it's form
 action? Does your logout code properly encode the session id into the
 redirect URL? Have you enabled/disabled cookies in your web browser?

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAkwIHaIACgkQ9CaO5/Lv0PD4egCfT9LLrkpGYO39bqTTki1arNoc
 k+4An0eBb+93c9XYCgzNXnF4BZop8NTI
 =lzIW
 -END PGP SIGNATURE-

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




fail_on_status question

2010-06-03 Thread Mohit Anchlia
In our present environment we have a WS and APP server. When request
comes in, WS sends it to APP server using mod_jk and then APP server
inserts it into JMS queue. So essentially APP server is also dependent
on JMS server which runs on the same box.

My question is can I use fail_on_status in worker.properties to take
one of the APP servers out of service from mod_jk(WS) by returning
some Http error code as a response to a request when JMS server is
down and a request comes in? Since cping and cpong will still return
success would this mechanism of fail_on_status work?

Are there any other suggestions?

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: simple, fast to setup, javabased CMS for small sites? (not really OT I think )

2010-06-03 Thread Leon Kolchinsky
Hmm,

Confluence?
Although it's more a enterprise wiki but you get all you want (CSS, blogs,
gallery...).
There is a 10$ starter license. You may give it a shot.

Regards,
Leon

On Fri, Jun 4, 2010 at 05:50, MB digital.disc...@gmail.com wrote:



 With the wealth of java-based CMS's at http://java-source.net/open-
 source/content-managment-systems I was wondering if you guys could
 share your views on the matter when it comes for javabased CMS's for
 small sites?

 What are you guys running on Tomcat, if at all?

 I need:
 More or less total control over HTML output without an enormous effort
 or learning curve
 CSS-based template themes, both site-wide and for specific pages
 login administration for mere mortals (users)
 gallery function
 news blog style

 I love the Struts Action 2 framework and am interested Spring and
 Hibernation as well. I have my eyes on Appfuse, but would like something
 I can set up with 24 hours of work (or whatever is reasonable). All
 designs (CSS), markup and raw content is already ready.

 Appfuse look promising for the long term, but I'm not sure about getting
 up and running from the get go.

 /MB

 Any sufficiently advanced technology is indistinguishable from magic.
 --Arthur C. Clarke


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




RE: HTTP Status 400 - Invalid direct reference to form login page!

2010-06-03 Thread Martin Gainty

the reference is to URLEncoder class

URLEncoder Utility class is used for HTML form encoding. This class contains 
static methods for converting a String to the application/x-www-form-urlencoded 
MIME format

javadoc for encode methods of the URLEncoder are illustrated at

 

http://java.sun.com/j2se/1.5.0/docs/api/java/net/URLEncoder.html

Martin
__ 
Verzicht und Vertraulichkeitanmerkung

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.

 

 Date: Fri, 4 Jun 2010 00:34:36 +0300
 Subject: Re: HTTP Status 400 - Invalid direct reference to form login page!
 From: george.pu...@gmail.com
 To: users@tomcat.apache.org
 
 Hello Cris,
 
 *After you call session.invalidation(), what does your code do,
 specifically? If you do a forward to a protected resource, strange
 things may happen with cookie-passing.*
 
 After the session get's invalidate(on the server side) my code send back a
 request success to the UI and then the Ui redirect's my app to the protected
 resource.
 
 *Does your login form properly encode the session id into it's form
 action? Does your logout code properly encode the session id into the
 redirect URL? Have you enabled/disabled cookies in your web browser?*
 
 My cookies are enabled. But I don't know exactly if the login/logout code
 form properly encode the session id into it's form(how can I test that?)
 
 
 
 Thank you very much
 
 
 
 On Fri, Jun 4, 2010 at 12:24 AM, Christopher Schultz 
 ch...@christopherschultz.net wrote:
 
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
 
  Gheorghe,
 
  On 6/3/2010 2:18 PM, Gheorghe Pucea wrote:
   By when I get back to the login page I mean that I log out from my app
  and
   then I redirect my app to a restricted resource and when my login page
   appears I type my User/pass and the error occurs.
  
   I want to add something, when I log out and after I redirect my app to a
   protected resource the login page show's up if I hit the refresh button
  on
   my browser and I type in my user/pass it works.
 
  After you call session.invalidation(), what does your code do,
  specifically? If you do a forward to a protected resource, strange
  things may happen with cookie-passing.
 
  Does your login form properly encode the session id into it's form
  action? Does your logout code properly encode the session id into the
  redirect URL? Have you enabled/disabled cookies in your web browser?
 
  - -chris
  -BEGIN PGP SIGNATURE-
  Version: GnuPG v1.4.10 (MingW32)
  Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
  iEYEARECAAYFAkwIHaIACgkQ9CaO5/Lv0PD4egCfT9LLrkpGYO39bqTTki1arNoc
  k+4An0eBb+93c9XYCgzNXnF4BZop8NTI
  =lzIW
  -END PGP SIGNATURE-
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
  
_
The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with 
Hotmail. 
http://www.windowslive.com/campaign/thenewbusy?tile=multicalendarocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5

Re: Out of Memory exception (hotspot compilation)

2010-06-03 Thread Leon Kolchinsky
Hello,

Just wanted to update on this issue.
Atlassian support confirms that this is a known issue with Java 6.0_18 and
up.
So, the best solution for now is to use 6.0_17
Here - 
http://jira.atlassian.com/browse/CONF-19049http://jira.atlassian.com/browse/CONF-19049?focusedCommentId=197013#action_197013

Regards,
Leon Kolchinsky


On Thu, Jun 3, 2010 at 16:14, Leon Rosenberg rosenberg.l...@gmail.comwrote:

 On Thu, Jun 3, 2010 at 1:54 AM, Leon Kolchinsky lkolc...@gmail.com
 wrote:
  Yep :)
  You're right Charles.
 
  Thanks,
  Leon

 From Leon To Leon,
 an advice from personal experience and the golden rule of the tomcat
 user list, write it down in glowing red letters on the wall you are
 looking at most:
 Charles is ALWAYS right. ;-)

 regards
 Leon

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org