struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Pyeron" <jpye...@pdinc.us>
Subject XML based configuration
Date Thu, 31 Jan 2019 02:10:43 GMT
It has been 10+ years since I used the XML configuration, so please bear
with me.

I am attempting to deploy Apache Roller under a sub context
(public#roller.war) so the url would be
http://127.0.0.1:8080/public/roller/roller-ui/login.rol .

When I do so, I get an exception cannot find definition named .Login

<struts>
    <package name="weblogger" namespace="/roller-ui"
extends="struts-default">
        <action name="login"
                class="org.apache.roller.weblogger.ui.struts2.core.Login">
            <result type="tiles">.Login</result>
        </action>


18:58:52.383 [http-bio-8092-exec-3] WARN
org.apache.struts2.views.tiles.TilesResult - could not find @TilesDefinition
for action: login
org.apache.tiles.definition.NoSuchDefinitionException: Cannot find
definition named '.Login'
        at
org.apache.tiles.impl.mgmt.CachingTilesContainer.render(CachingTilesContaine
r.java:123)
        at
org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java:161)
        at
org.apache.struts2.result.StrutsResultSupport.execute(StrutsResultSupport.ja
va:208)
        at
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionI
nvocation.java:373)
        at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:277)
        at
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(D
efaultWorkflowInterceptor.java:176)
        at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Method
FilterInterceptor.java:98)
        at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:247)
        at
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(Validati
onInterceptor.java:260)
        at
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.do
Intercept(AnnotationValidationInterceptor.java:52)
        at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Method
FilterInterceptor.java:98)
        at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:247)
        at
org.apache.roller.weblogger.ui.struts2.util.UIActionPrepareInterceptor.doInt
ercept(UIActionPrepareInterceptor.java:54)


Of course moving the context back to /roller from /public/roller fixes the
issue.

Any ideas where to start?

$ git log -1
commit d456d54200e7c747ef0312ca190c2a15433b6b3d (HEAD -> master,
origin/master, origin/HEAD)
Author: Dave Johnson <snoopdave@gmail.com>
Date:   Fri Jan 18 17:36:28 2019 -0500

    From Kohei's PR

$ git remote -v
origin  https://github.com/apache/roller.git (fetch)


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message