Form base authentication in tomcat

2008-06-25 Thread Johannes Hoechstaedter

Hi everybody,

how can I etablixh a form based authentication in coconn running in tomcat?

My web.xml login-config looks as follows:


 FORM
 Example Form-Based Authentication Area
 
   /myBlock1/login
   /myBlock1/login
 
   

I have a match pattern in my sitemap for this:



 



 src="resource/internal/transform2LoginForm.xsl" />

 

  




Running this pattern in jetty works fine, and my login form is shown. 
But when I load my webapp into Tomcat and when I run it, Tomcat doesn't 
complain, too. I get no Error message as I am expecting. The thing is, 
that I  get only an empty screen. Do anybody know something?


cheers
Johannes

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Form base authentication in tomcat

2008-06-25 Thread Barbara Slupik

I had the same problem. I fixed it by adding:


springRequestContextFilter
		org.springframework.web.filter.RequestContextFilterfilter-class>




springRequestContextFilter
/*
FORWARD
REQUEST


to my application web.xml file.

Barbara

On 25 Jun, 2008, at 2:43 pm, Johannes Hoechstaedter wrote:


Hi everybody,

how can I etablixh a form based authentication in coconn running in  
tomcat?


My web.xml login-config looks as follows:


 FORM
 Example Form-Based Authentication Area
 
   /myBlock1/login
   /myBlock1/login
 
   

I have a match pattern in my sitemap for this:


 

 src="resource/internal/transform2LoginForm.xsl" />

 
  


Running this pattern in jetty works fine, and my login form is  
shown. But when I load my webapp into Tomcat and when I run it,  
Tomcat doesn't complain, too. I get no Error message as I am  
expecting. The thing is, that I  get only an empty screen. Do  
anybody know something?


cheers
Johannes

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





Re: Form base authentication in tomcat

2008-06-25 Thread Johannes Hoechstaedter

YES !!! works ;)

Barbara Slupik schrieb:

I had the same problem. I fixed it by adding:


springRequestContextFilter   
org.springframework._web.filter.RequestContextFilter_ 





springRequestContextFilter
/*
FORWARD
REQUEST


to my application _web.xml_  file.

Barbara

On 25 Jun, 2008, at 2:43 pm, Johannes Hoechstaedter wrote:


Hi everybody,

how can I etablixh a form based authentication in coconn running in 
tomcat?


My web.xml  login-config looks as follows:


 FORM
 Example Form-Based Authentication Area
 
   /myBlock1/login
   /myBlock1/login
 
   

I have a match pattern in my sitemap for this:


 

 src="resource/internal/transform2LoginForm.xsl" />

 
  


Running this pattern in jetty works fine, and my login form is shown. 
But when I load my webapp into Tomcat and when I run it, Tomcat 
doesn't complain, too. I get no Error message as I am expecting. The 
thing is, that I  get only an empty screen. Do anybody know something?


cheers
Johannes

-
To unsubscribe, e-mail: [EMAIL PROTECTED] 

For additional commands, e-mail: [EMAIL PROTECTED] 







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Form base authentication in tomcat

2008-06-26 Thread Johannes Hoechstaedter

Hi,

can you explain me why I can't add a style sheet to the login form? 
everything works without style and favicon, but when I add these 
features tomcat cannot find the resourc and I the login procedure 
doesn't work anymore. Tomcat crashes with an exception, or the url which 
is build by after successfully logged in is broken. This behavior 
depends on the path.


resource /..style.css
../resource/style.css

Result:
javax.servlet.ServletException: No pipeline matched request
org.apache.cocoon.ResourceNotFoundException: No pipeline matched request

../../resource.style.css

Result:
broken URL. The request is forwarded into my style sheet after login, 
and not into the pipeline pattern.


../../../resource ...style.css

Result:
No block for /resource/external/style/style.css

In none of these cases the style is applied to the login page. The start 
of my page is for example:




test
type="text/css" rel="stylesheet" />




Is it possible to apply a css to a tomcat login form?

thanks in advance
cheers
Johannes




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Form base authentication in tomcat

2008-06-26 Thread Johannes Hoechstaedter

same behaviour with:



test




Johannes Hoechstaedter schrieb:

Hi,

can you explain me why I can't add a style sheet to the login form? 
everything works without style and favicon, but when I add these 
features tomcat cannot find the resourc and I the login procedure 
doesn't work anymore. Tomcat crashes with an exception, or the url 
which is build by after successfully logged in is broken. This 
behavior depends on the path.


resource /..style.css
../resource/style.css

Result:
javax.servlet.ServletException: No pipeline matched request
org.apache.cocoon.ResourceNotFoundException: No pipeline matched request

../../resource.style.css

Result:
broken URL. The request is forwarded into my style sheet after login, 
and not into the pipeline pattern.


../../../resource ...style.css

Result:
No block for /resource/external/style/style.css

In none of these cases the style is applied to the login page. The 
start of my page is for example:




test
type="text/css" rel="stylesheet" />




Is it possible to apply a css to a tomcat login form?

thanks in advance
cheers
Johannes




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Form base authentication in tomcat

2008-06-26 Thread Barbara Slupik
I had the same problem. In the end I put my styles inside login form,  
because the link to css did not work. I hope someone knows better  
solution.


Barbara

On 26 Jun, 2008, at 9:34 am, Johannes Hoechstaedter wrote:


same behaviour with:



test
type="text/css" rel="stylesheet" />




Johannes Hoechstaedter schrieb:

Hi,

can you explain me why I can't add a style sheet to the login  
form? everything works without style and favicon, but when I add  
these features tomcat cannot find the resourc and I the login  
procedure doesn't work anymore. Tomcat crashes with an exception,  
or the url which is build by after successfully logged in is  
broken. This behavior depends on the path.


resource /..style.css
../resource/style.css

Result:
javax.servlet.ServletException: No pipeline matched request
org.apache.cocoon.ResourceNotFoundException: No pipeline matched  
request


../../resource.style.css

Result:
broken URL. The request is forwarded into my style sheet after  
login, and not into the pipeline pattern.


../../../resource ...style.css

Result:
No block for /resource/external/style/style.css

In none of these cases the style is applied to the login page. The  
start of my page is for example:




test
type="text/css" rel="stylesheet" />




Is it possible to apply a css to a tomcat login form?

thanks in advance
cheers
Johannes




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]