Hi,
I set up the TDK 2.3 test build from Martin Poeschl. No I seem to have
serious login problems. Whenever I try to login with turbine/turbine, it
says username and pasword would be incorrect. The database looks okay
though. Another strange thing is, that
http://localhost:8080/fcar/fcar/templates/Index.vm is accessible, even thought it's a
SecureScreen and looks like follows:
---
public class Index extends SecureScreen
{
/**
* Place all the data object in the context
* for use in the template.
*/
public void doBuildTemplate(RunData data, Context context)
{
if(isAuthorized(data))
context.put("entries", getEntries());
else {
data.setMessage("Nope!");
setTemplate(data,"Login.vm");
}
}
/**
* This will return all the rdf records in
* the database but they have been mapped to
* Rdf objects so they can be directly used
* in the Velocity template.
*/
private List getEntries()
{
try
{
Criteria criteria = new Criteria();
return RdfPeer.doSelect(criteria);
}
catch (Exception e)
{
return null;
}
}
}
---
I also attach the Tomcat-log, this happens when I try to login as
turbine/turbine. There's something unusaul with the default-layout I
think, but I can't get into it.
Any help appretiated!
David
Tomcat log:
[DEBUG] ServerData - -setServerName(localhost)
[DEBUG] ServerData - -setServerPort(8080)
[DEBUG] ServerData - -setServerScheme(http)
[DEBUG] ServerData - -setScriptName(/fcar)
[DEBUG] ServerData - -setContextPath(/fcar)
[DEBUG] DefaultParameterParser - -Parameters found in the Request:
[DEBUG] DefaultParameterParser - -Key: password -> turbine
[DEBUG] DefaultParameterParser - -Key: action -> LoginUser
[DEBUG] DefaultParameterParser - -Key: username -> turbine
[DEBUG] Turbine - -action = LoginUser
[DEBUG] ActionLoader - -Loading Action LoginUser from the Assembler Broker
[DEBUG] JavaActionFactory - -Class Fragment is LoginUser
[DEBUG] JavaActionFactory - -Trying fcar.modules.actions.LoginUser
[DEBUG] JavaActionFactory - -fcar.modules.actions.LoginUser: Not found
[DEBUG] JavaActionFactory - -Trying
org.apache.turbine.flux.modules.actions.LoginUser
[DEBUG] JavaActionFactory -
-org.apache.turbine.flux.modules.actions.LoginUser: Not found
[DEBUG] JavaActionFactory - -Trying
org.apache.turbine.modules.actions.LoginUser
[DEBUG] JavaActionFactory - -Returning:
[EMAIL PROTECTED]
[DEBUG] BasePeer - -SELECT TURBINE_USER.USER_ID, TURBINE_USER.LOGIN_NAME,
TURBINE_USER.PASSWORD_VALUE, TURBINE_USER.FIRST_NAME,
TURBINE_USER.LAST_NAME, TURBINE_USER.EMAIL, TURBINE_USER.CONFIRM_VALUE,
TURBINE_USER.MODIFIED, TURBINE_USER.CREATED, TURBINE_USER.LAST_LOGIN,
TURBINE_USER.OBJECTDATA FROM TURBINE_USER WHERE
TURBINE_USER.LOGIN_NAME='turbine'
[DEBUG] BasePeer - -Elapsed time=171 ms
[ERROR] LoginUser -
-org.apache.turbine.util.security.DataBackendException: Failed to retrieve
user 'turbine'
[DEBUG] DefaultTurbineRunData - -user set:
[DEBUG] LayoutTemplateMapper - -doMapping(Login.vm)
[DEBUG] LayoutTemplateMapper - -templateName is Login.vm
[DEBUG] LayoutTemplateMapper - -templatePackage is now:
[DEBUG] LayoutTemplateMapper - -Looking for layouts/Login.vm
[DEBUG] LayoutTemplateMapper - -Found it, returning Login.vm
[DEBUG] ActionLoader - -Loading Action
sessionvalidator.TemplateSessionValidator from the Assembler Broker
[DEBUG] JavaActionFactory - -Class Fragment is
sessionvalidator.TemplateSessionValidator
[DEBUG] JavaActionFactory - -Trying
fcar.modules.actions.sessionvalidator.TemplateSessionValidator
[DEBUG] JavaActionFactory -
-fcar.modules.actions.sessionvalidator.TemplateSessionValidator: Not found
[DEBUG] JavaActionFactory - -Trying
org.apache.turbine.flux.modules.actions.sessionvalidator.TemplateSessionValidator
[DEBUG] JavaActionFactory -
-org.apache.turbine.flux.modules.actions.sessionvalidator.TemplateSessionValidator:
Not found
[DEBUG] JavaActionFactory - -Trying
org.apache.turbine.modules.actions.sessionvalidator.TemplateSessionValidator
[DEBUG] JavaActionFactory - -Returning:
[EMAIL PROTECTED]
[DEBUG] ActionLoader - -Loading Action AccessController from the Assembler
Broker
[DEBUG] JavaActionFactory - -Class Fragment is AccessController
[DEBUG] JavaActionFactory - -Trying fcar.modules.actions.AccessController
[DEBUG] JavaActionFactory - -fcar.modules.actions.AccessController: Not
found
[DEBUG] JavaActionFactory - -Trying
org.apache.turbine.flux.modules.actions.AccessController
[DEBUG] JavaActionFactory -
-org.apache.turbine.flux.modules.actions.AccessController: Not found
[DEBUG] JavaActionFactory - -Trying
org.apache.turbine.modules.actions.AccessController
[DEBUG] JavaActionFactory - -Returning:
[EMAIL PROTECTED]
[DEBUG] PageLoader - -Loading Page VelocityPage from the Assembler Broker
[DEBUG] JavaPageFactory - -Class Fragment is VelocityPage
[DEBUG] JavaPageFactory - -Trying fcar.modules.pages.VelocityPage
[DEBUG] JavaPageFactory - -fcar.modules.pages.VelocityPage: Not found
[DEBUG] JavaPageFactory - -Trying
org.apache.turbine.flux.modules.pages.VelocityPage
[DEBUG] JavaPageFactory -
-org.apache.turbine.flux.modules.pages.VelocityPage: Not found
[DEBUG] JavaPageFactory - -Trying
org.apache.turbine.modules.pages.VelocityPage
[DEBUG] JavaPageFactory - -Returning:
[EMAIL PROTECTED]
[DEBUG] UIManager - -Refreshing UI manager
[DEBUG] ServerData - -Constructor(null, 80, http, null, null)
[DEBUG] ServerData - -setServerName(null)
[DEBUG] ServerData - -setServerPort(80)
[DEBUG] ServerData - -setServerScheme(http)
[DEBUG] ServerData - -setScriptName(null)
[DEBUG] ServerData - -setContextPath(null)
[DEBUG] BaseURI - -init(http://localhost:8080/fcar/fcar)
[DEBUG] ServerData - -clone()
[DEBUG] ServerData - -Copy Constructor(http://localhost:8080/fcar/fcar)
[DEBUG] ServerData - -setServerName(localhost)
[DEBUG] ServerData - -setServerPort(8080)
[DEBUG] ServerData - -setServerScheme(http)
[DEBUG] ServerData - -setScriptName(/fcar)
[DEBUG] ServerData - -setContextPath(/fcar)
[WARN] TemplatePageAttributes - -This class is deprecated. Use
HtmlPageAttributes instead.
[DEBUG] ServerData - -Constructor(null, 80, http, null, null)
[DEBUG] ServerData - -setServerName(null)
[DEBUG] ServerData - -setServerPort(80)
[DEBUG] ServerData - -setServerScheme(http)
[DEBUG] ServerData - -setScriptName(null)
[DEBUG] ServerData - -setContextPath(null)
[DEBUG] BaseURI - -init(http://localhost:8080/fcar/fcar)
[DEBUG] ServerData - -clone()
[DEBUG] ServerData - -Copy Constructor(http://localhost:8080/fcar/fcar)
[DEBUG] ServerData - -setServerName(localhost)
[DEBUG] ServerData - -setServerPort(8080)
[DEBUG] ServerData - -setServerScheme(http)
[DEBUG] ServerData - -setScriptName(/fcar)
[DEBUG] ServerData - -setContextPath(/fcar)
[DEBUG] TurbinePullService - -Adding
[EMAIL PROTECTED] to ctx as
sessionData
[DEBUG] LayoutTemplateMapper - -doMapping(Login.vm)
[DEBUG] LayoutTemplateMapper - -templateName is Login.vm
[DEBUG] LayoutTemplateMapper - -templatePackage is now:
[DEBUG] LayoutTemplateMapper - -Looking for layouts/Login.vm
[DEBUG] LayoutTemplateMapper - -Found it, returning Login.vm
[DEBUG] ClassMapper - -doMapping(Login.vm)
[DEBUG] ClassMapper - -className is Login.vm
[DEBUG] ClassMapper - -classPackage is now:
[DEBUG] ClassMapper - -Looking for Login
[DEBUG] ScreenLoader - -Loading Screen Login from the Assembler Broker
[DEBUG] JavaScreenFactory - -Class Fragment is Login
[DEBUG] JavaScreenFactory - -Trying fcar.modules.screens.Login
[DEBUG] JavaScreenFactory - -fcar.modules.screens.Login: Not found
[DEBUG] JavaScreenFactory - -Trying
org.apache.turbine.flux.modules.screens.Login
[DEBUG] JavaScreenFactory -
-org.apache.turbine.flux.modules.screens.Login: Not found
[DEBUG] JavaScreenFactory - -Trying
org.apache.turbine.modules.screens.Login
[DEBUG] JavaScreenFactory - -org.apache.turbine.modules.screens.Login: Not
found
[DEBUG] JavaScreenFactory - -Returning: null
[DEBUG] ClassMapper - -classPackage is now:
[DEBUG] ClassMapper - -Looking for Default
[DEBUG] ScreenLoader - -Loading Screen Default from the Assembler Broker
[DEBUG] JavaScreenFactory - -Class Fragment is Default
[DEBUG] JavaScreenFactory - -Trying fcar.modules.screens.Default
[DEBUG] JavaScreenFactory - -fcar.modules.screens.Default: Not found
[DEBUG] JavaScreenFactory - -Trying
org.apache.turbine.flux.modules.screens.Default
[DEBUG] JavaScreenFactory -
-org.apache.turbine.flux.modules.screens.Default: Not found
[DEBUG] JavaScreenFactory - -Trying
org.apache.turbine.modules.screens.Default
[DEBUG] JavaScreenFactory - -org.apache.turbine.modules.screens.Default:
Not found
[DEBUG] JavaScreenFactory - -Returning: null
[DEBUG] ClassMapper - -Returning default
[DEBUG] VelocityPage - -Building VelocityScreen
[DEBUG] ScreenLoader - -Loading Screen VelocityScreen from the Assembler
Broker
[DEBUG] JavaScreenFactory - -Class Fragment is VelocityScreen
[DEBUG] JavaScreenFactory - -Trying fcar.modules.screens.VelocityScreen
[DEBUG] JavaScreenFactory - -fcar.modules.screens.VelocityScreen: Not
found
[DEBUG] JavaScreenFactory - -Trying
org.apache.turbine.flux.modules.screens.VelocityScreen
[DEBUG] JavaScreenFactory -
-org.apache.turbine.flux.modules.screens.VelocityScreen: Not found
[DEBUG] JavaScreenFactory - -Trying
org.apache.turbine.modules.screens.VelocityScreen
[DEBUG] JavaScreenFactory - -Returning:
[EMAIL PROTECTED]
[DEBUG] LayoutLoader - -Loading Layout VelocityOnlyLayout from the
Assembler Broker
[DEBUG] JavaLayoutFactory - -Class Fragment is VelocityOnlyLayout
[DEBUG] JavaLayoutFactory - -Trying
fcar.modules.layouts.VelocityOnlyLayout
[DEBUG] JavaLayoutFactory - -fcar.modules.layouts.VelocityOnlyLayout: Not
found
[DEBUG] JavaLayoutFactory - -Trying
org.apache.turbine.flux.modules.layouts.VelocityOnlyLayout
[DEBUG] JavaLayoutFactory -
-org.apache.turbine.flux.modules.layouts.VelocityOnlyLayout: Not found
[DEBUG] JavaLayoutFactory - -Trying
org.apache.turbine.modules.layouts.VelocityOnlyLayout
[DEBUG] JavaLayoutFactory - -Returning:
[EMAIL PROTECTED]
[DEBUG] VelocityOnlyLayout - -Loading Screen VelocityScreen
[DEBUG] ScreenLoader - -Loading Screen VelocityScreen from the Assembler
Broker
[DEBUG] JavaScreenFactory - -Class Fragment is VelocityScreen
[DEBUG] JavaScreenFactory - -Trying fcar.modules.screens.VelocityScreen
[DEBUG] JavaScreenFactory - -fcar.modules.screens.VelocityScreen: Not
found
[DEBUG] JavaScreenFactory - -Trying
org.apache.turbine.flux.modules.screens.VelocityScreen
[DEBUG] JavaScreenFactory -
-org.apache.turbine.flux.modules.screens.VelocityScreen: Not found
[DEBUG] JavaScreenFactory - -Trying
org.apache.turbine.modules.screens.VelocityScreen
[DEBUG] JavaScreenFactory - -Returning:
[EMAIL PROTECTED]
[DEBUG] DefaultTurbineRunData - -getCharSet()
[DEBUG] DefaultTurbineRunData - -Charset was null!
[DEBUG] DefaultTurbineRunData - -getDefaultCharSet()
[DEBUG] DefaultTurbineRunData - -Returning default Charset of ISO-8859-1
[DEBUG] TemplateLink - -setAction(LoginUser)
[DEBUG] BaseURI - -encodeResponse(): http://localhost:8080/fcar/fcar/action/LoginUser
[DEBUG] DefaultTurbineRunData - -getDefaultCharSet()
[DEBUG] DefaultTurbineRunData - -Returning default Charset of ISO-8859-1
[DEBUG] VelocityOnlyLayout - -Now trying to render layout Login.vm
[DEBUG] DefaultTurbineRunData - -getCharSet()
[DEBUG] DefaultTurbineRunData - -Charset was null!
[DEBUG] DefaultTurbineRunData - -getDefaultCharSet()
[DEBUG] DefaultTurbineRunData - -Returning default Charset of ISO-8859-1
[DEBUG] TemplateNavigation - -setTemplate(/DefaultTop.vm)
[DEBUG] ClassMapper - -doMapping(/DefaultTop.vm)
[DEBUG] ClassMapper - -className is /DefaultTop.vm
[DEBUG] ClassMapper - -classPackage is now:
[DEBUG] ClassMapper - -Looking for /DefaultTop
[DEBUG] NavigationLoader - -Loading Navigation /DefaultTop from the
Assembler Broker
[DEBUG] JavaNavigationFactory - -Class Fragment is /DefaultTop
[DEBUG] JavaNavigationFactory - -Trying
fcar.modules.navigations./DefaultTop
[DEBUG] JavaNavigationFactory - -fcar.modules.navigations./DefaultTop: Not
found
[DEBUG] JavaNavigationFactory - -Trying
org.apache.turbine.flux.modules.navigations./DefaultTop
[DEBUG] JavaNavigationFactory -
-org.apache.turbine.flux.modules.navigations./DefaultTop: Not found
[DEBUG] JavaNavigationFactory - -Trying
org.apache.turbine.modules.navigations./DefaultTop
[DEBUG] JavaNavigationFactory -
-org.apache.turbine.modules.navigations./DefaultTop: Not found
[DEBUG] JavaNavigationFactory - -Returning: null
[DEBUG] ClassMapper - -classPackage is now:
[DEBUG] ClassMapper - -Looking for Default
[DEBUG] NavigationLoader - -Loading Navigation Default from the Assembler
Broker
[DEBUG] JavaNavigationFactory - -Class Fragment is Default
[DEBUG] JavaNavigationFactory - -Trying fcar.modules.navigations.Default
[DEBUG] JavaNavigationFactory - -fcar.modules.navigations.Default: Not
found
[DEBUG] JavaNavigationFactory - -Trying
org.apache.turbine.flux.modules.navigations.Default
[DEBUG] JavaNavigationFactory -
-org.apache.turbine.flux.modules.navigations.Default: Not found
[DEBUG] JavaNavigationFactory - -Trying
org.apache.turbine.modules.navigations.Default
[DEBUG] JavaNavigationFactory -
-org.apache.turbine.modules.navigations.Default: Not found
[DEBUG] JavaNavigationFactory - -Returning: null
[DEBUG] ClassMapper - -Returning default
[DEBUG] NavigationLoader - -Loading Navigation VelocityNavigation from the
Assembler Broker
[DEBUG] JavaNavigationFactory - -Class Fragment is VelocityNavigation
[DEBUG] JavaNavigationFactory - -Trying
fcar.modules.navigations.VelocityNavigation
[DEBUG] JavaNavigationFactory -
-fcar.modules.navigations.VelocityNavigation: Not found
[DEBUG] JavaNavigationFactory - -Trying
org.apache.turbine.flux.modules.navigations.VelocityNavigation
[DEBUG] JavaNavigationFactory -
-org.apache.turbine.flux.modules.navigations.VelocityNavigation: Not found
[DEBUG] JavaNavigationFactory - -Trying
org.apache.turbine.modules.navigations.VelocityNavigation
[DEBUG] JavaNavigationFactory - -Returning:
[EMAIL PROTECTED]
[DEBUG] DefaultTurbineRunData - -getCharSet()
[DEBUG] DefaultTurbineRunData - -Charset was null!
[DEBUG] DefaultTurbineRunData - -getDefaultCharSet()
[DEBUG] DefaultTurbineRunData - -Returning default Charset of ISO-8859-1
[DEBUG] TemplateLink - -setPage(Index.vm)
[DEBUG] BaseURI - -encodeResponse(): http://localhost:8080/fcar/fcar/template/Index.vm
[DEBUG] ServerData - -Constructor(null, 80, http, null, null)
[DEBUG] ServerData - -setServerName(null)
[DEBUG] ServerData - -setServerPort(80)
[DEBUG] ServerData - -setServerScheme(http)
[DEBUG] ServerData - -setScriptName(null)
[DEBUG] ServerData - -setContextPath(null)
[DEBUG] BaseURI - -init(http://localhost:8080/fcar/fcar)
[DEBUG] ServerData - -clone()
[DEBUG] ServerData - -Copy Constructor(http://localhost:8080/fcar/fcar)
[DEBUG] ServerData - -setServerName(localhost)
[DEBUG] ServerData - -setServerPort(8080)
[DEBUG] ServerData - -setServerScheme(http)
[DEBUG] ServerData - -setScriptName(/fcar)
[DEBUG] ServerData - -setContextPath(/fcar)
[DEBUG] ServerData -
-setScriptName(resources/ui/skins/default/images/logo_rev.gif)
[DEBUG] BaseURI - -No Response Object!
[DEBUG] BaseURI - -encodeResponse():
http://localhost:8080/fcar/resources/ui/skins/default/images/logo_rev.gif
[DEBUG] TemplateNavigation - -setTemplate(/DefaultBottom.vm)
[DEBUG] ClassMapper - -doMapping(/DefaultBottom.vm)
[DEBUG] ClassMapper - -className is /DefaultBottom.vm
[DEBUG] ClassMapper - -classPackage is now:
[DEBUG] ClassMapper - -Looking for /DefaultBottom
[DEBUG] NavigationLoader - -Loading Navigation /DefaultBottom from the
Assembler Broker
[DEBUG] JavaNavigationFactory - -Class Fragment is /DefaultBottom
[DEBUG] JavaNavigationFactory - -Trying
fcar.modules.navigations./DefaultBottom
[DEBUG] JavaNavigationFactory - -fcar.modules.navigations./DefaultBottom:
Not found
[DEBUG] JavaNavigationFactory - -Trying
org.apache.turbine.flux.modules.navigations./DefaultBottom
[DEBUG] JavaNavigationFactory -
-org.apache.turbine.flux.modules.navigations./DefaultBottom: Not found
[DEBUG] JavaNavigationFactory - -Trying
org.apache.turbine.modules.navigations./DefaultBottom
[DEBUG] JavaNavigationFactory -
-org.apache.turbine.modules.navigations./DefaultBottom: Not found
[DEBUG] JavaNavigationFactory - -Returning: null
[DEBUG] ClassMapper - -classPackage is now:
[DEBUG] ClassMapper - -Looking for Default
[DEBUG] NavigationLoader - -Loading Navigation Default from the Assembler
Broker
[DEBUG] JavaNavigationFactory - -Class Fragment is Default
[DEBUG] JavaNavigationFactory - -Trying fcar.modules.navigations.Default
[DEBUG] JavaNavigationFactory - -fcar.modules.navigations.Default: Not
found
[DEBUG] JavaNavigationFactory - -Trying
org.apache.turbine.flux.modules.navigations.Default
[DEBUG] JavaNavigationFactory -
-org.apache.turbine.flux.modules.navigations.Default: Not found
[DEBUG] JavaNavigationFactory - -Trying
org.apache.turbine.modules.navigations.Default
[DEBUG] JavaNavigationFactory -
-org.apache.turbine.modules.navigations.Default: Not found
[DEBUG] JavaNavigationFactory - -Returning: null
[DEBUG] ClassMapper - -Returning default
[DEBUG] NavigationLoader - -Loading Navigation VelocityNavigation from the
Assembler Broker
[DEBUG] JavaNavigationFactory - -Class Fragment is VelocityNavigation
[DEBUG] JavaNavigationFactory - -Trying
fcar.modules.navigations.VelocityNavigation
[DEBUG] JavaNavigationFactory -
-fcar.modules.navigations.VelocityNavigation: Not found
[DEBUG] JavaNavigationFactory - -Trying
org.apache.turbine.flux.modules.navigations.VelocityNavigation
[DEBUG] JavaNavigationFactory -
-org.apache.turbine.flux.modules.navigations.VelocityNavigation: Not found
[DEBUG] JavaNavigationFactory - -Trying
org.apache.turbine.modules.navigations.VelocityNavigation
[DEBUG] JavaNavigationFactory - -Returning:
[EMAIL PROTECTED]
[DEBUG] DefaultTurbineRunData - -getCharSet()
[DEBUG] DefaultTurbineRunData - -Charset was null!
[DEBUG] DefaultTurbineRunData - -getDefaultCharSet()
[DEBUG] DefaultTurbineRunData - -Returning default Charset of ISO-8859-1
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]