Hello.

I added a new package definition into my struts.xml file like this:

        <package name="withSsl" extends="ssl-default" namespace="/secured">
                <interceptors>
                        <interceptor-stack name="SecureStack">
                                <interceptor-ref name="defaultStack"/>
                                <interceptor-ref name="secure">
                                        <param 
name="useAnnotations">true</param>
                                        <param name="httpPort">8080</param>
                                        <param name="httpsPort">8443</param>
                                </interceptor-ref>
                        </interceptor-stack>
                </interceptors>

                <action name="ManagePortalLogin" class="com.XXXX" 
method="portalLogin">
                        <result name="error">/login/Error.jsp</result>
                        <result>/login/Success.jsp</result>
                </action>
        </package>

The namespace of the package is "/secured", so the name of the action is 
"/secured/ManagePortalLogin.action".
All my other actions that do not need SSL are in the package "/", so this 
actions are called like "/DoSomething.action".

This works fine, so the only configuration was in my struts.xml file.

I receive a error message like yours when I call a action that is not defined 
in my struts.xml file or the namespace for the action is wrong.

I hope this helps.
Regards,

Anastasios.


-----Ursprüngliche Nachricht-----
Von: xianwinwin [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 11. August 2008 22:07
An: user@struts.apache.org
Betreff: [S2] using SSL; configuration error


Hi all,

I downloaded the SSL plugin from
http://code.google.com/p/struts2-ssl-plugin/

I added the jar to my application path and as the tutorial describes:

"The plug-in extends struts-default so you can extend the "ssl-default"
package to get these additional features." /under usage

I simply changed my "security-default.xml" 

from
 <package name="security-default" namespace="/" extends="struts-default">

to
 <package name="security-default" namespace="/" extends="ssl-default">

but the application throws an exception:

Struts Problem Report
Struts has detected an unhandled exception: 

Messages: There is no Action mapped for namespace / and action name
register_forwardPage. 
 


--------------------------------------------------------------------------------

Stacktraces
There is no Action mapped for namespace / and action name
register_forwardPage. - [unknown location] 
   
com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:186)
   
org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:41)
   
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:494)
   
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)
   
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
   
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
   
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
   
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
   
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    java.lang.Thread.run(Unknown Source)




I tried to add other lines to the xml file such as 
        <interceptor-stack name="SecureStack">
        <interceptor-ref name="secure">
            false
         </interceptor-ref>
         <interceptor-ref name="defaultStack"/>
        </interceptor-stack>


but I keep getting the same error message.

can anyone advise why this happens? 

thank you!
-- 
View this message in context: 
http://www.nabble.com/-S2--using-SSL--configuration-error-tp18932729p18932729.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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]

Reply via email to