Spring Security 404 Fehler bei Login -> Findet Seite nicht

internet

Top Contributor
Hallo,
ich verwende Spring Security 3.1, aber das einloggen/ ausloggen geht nicht.
Ich werde immer an die falsche URL geleitet, so wie ich das sehe:
An eine Seite, die es scheinbar nicht gibt (404 - Fehlercode).
Ich habe schon mehrere Konzelationen probiert - aber alles ohne Erfolg.

Wenn ich eine Seite aufrufe sieht meine URL so aus:
http://localhost:8080/ticketsystem/faces/ticketsystem/index.xhtml

In meiner application-context:

Code:
		<form-login
			login-processing-url="[B]/j_spring_security_check[/B]"
			login-page="/faces/index.xhtml"
			default-target-url="/faces/admin/index.xhtml"
			always-use-default-target="true"
			authentication-failure-url="/faces/common/loginError.xhtml" />
			
        <logout 	logout-url="/j_spring_security_logout" 
        			logout-success-url="/faces/index.xhtml" />


Code:
		<form id="loginForm" action="[B]/j_spring_security_check[/B]" method="post">
			<h:panelGrid id="loginTabelle" columns="2">
				<h:outputLabel id="usernameLabel" for="j_username" value="UserId"/>
				<h:inputText id="j_username"/>
				
				<h:outputLabel id="passwordLabel" for="j_password" value="Passwort"/>
				<h:inputSecret id="j_password"/>
			</h:panelGrid>
			
			<p>
				<h:commandButton id="loginSubmit"   value="Einloggen"/>
			</p>
		</form>


Ich werde noch wahnsinnig - versuche mich seit nem halben Tag mit diesem Problem.
Kann mir bitte jmd weiterhelfen
 

Zurück
Oben