You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Chris <ch...@yahoo.fr> on 2015/11/12 17:23:30 UTC

Re: Some problems with Struts-mailreader

Hello,My mailreader example still doesn't work.
Precisely n the Login button, and the Cancel button, in the Login page
Something strange, the new web.xml file looks like the jboss_blank example...
I tried without those some lines, like the old mailreader example,  but it didn't work neither.
   <!-- Restricts access to pure JSP files - access available only via Struts action   -->
    <security-constraint>
        <display-name>No direct JSP access</display-name>
        <web-resource-collection>
            <web-resource-name>No-JSP</web-resource-name>
            <url-pattern>*.jsp</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <role-name>no-users</role-name>
        </auth-constraint>
    </security-constraint>

???
    <security-role> 
        <description>Don't assign users to this role</description>
        <role-name>no-users</role-name>
    </security-role>

 


     Le Samedi 31 octobre 2015 12h54, Lukasz Lenart <lu...@apache.org> a écrit :
   

 Great! Let me know if everything is ok :)

-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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


  

Re: Some problems with Struts-mailreader

Posted by Lukasz Lenart <lu...@apache.org>.
Ach... right, support for "id" was dropped recently [1] - this must be
fixed in the mailreader app - replacing "id" with "var" should solve
the problem

[1] https://issues.apache.org/jira/browse/WW-2069


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

2015-11-13 10:18 GMT+01:00 Chris <ch...@yahoo.fr>:
> Hello,
>
> Thank you for giving me those explainations.
>
> So I've  tried with struts2-core-2.5-20151112.202249-95.jar or
> struts2-core-2.5-20151104.175152-90.jar but I receive another error ( NB :
> All the jar files are the same as 2.5 BETA2 , except the struts-core )
>
> The error is with the id (?) , in the  /WEB-INF/jsp/Welcome.jsp (line: 26,
> column: 8)
>         <s:url id="en" action="Welcome">  ....accordind to the TLD
>
> nov. 13, 2015 10:05:23 AM org.apache.catalina.core.ApplicationDispatcher
> invoke
> SEVERE: "Servlet.service()" pour la servlet jsp a lancé une exception
> org.apache.jasper.JasperException: /WEB-INF/jsp/Welcome.jsp (line: 26,
> column: 8) L'attribut id est incorrect pour le tag url d'après la TLD
> indiquée
>     at
> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42)
>     at
> org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:408)
>     at
> org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:237)
>     at
> org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1265)
>
>
>
> Le Vendredi 13 novembre 2015 10h17, Chris <ch...@yahoo.fr> a écrit :
>
>
> Hello,
>
> Thank you for giving me those explainations.
>
> So I've  tried with struts2-core-2.5-20151112.202249-95.jar or
> struts2-core-2.5-20151104.175152-90.jar but I receive another error ( NB :
> All the jar files are the same as 2.5 BETA2 , except the struts-core )
>
> The error is with the id (?) , in the  /WEB-INF/jsp/Welcome.jsp (line: 26,
> column: 8)
>         <s:url id="en" action="Welcome">  ....accordind to the TLD
>
> nov. 13, 2015 10:05:23 AM org.apache.catalina.core.ApplicationDispatcher
> invoke
> SEVERE: "Servlet.service()" pour la servlet jsp a lancé une exception
> org.apache.jasper.JasperException: /WEB-INF/jsp/Welcome.jsp (line: 26,
> column: 8) L'attribut id est incorrect pour le tag url d'après la TLD
> indiquée
>     at
> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42)
>     at
> org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:408)
>     at
> org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:237)
>     at
> org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1265)
>
>
>
> Le Vendredi 13 novembre 2015 8h41, Chris <ch...@yahoo.fr> a écrit :
>
>
>
>
> Le Vendredi 13 novembre 2015 8h39, Chris <ch...@yahoo.fr> a écrit :
>
>
>
>
> Le Jeudi 12 novembre 2015 20h28, Lukasz Lenart <lu...@apache.org> a
> écrit :
>
>
> 2015-11-12 18:24 GMT+01:00 Chris <ch...@yahoo.fr>:
>> Hello,
>>
>> I'm sorry . I don't use pom.xml in any of my examples.
>> I work with Netbenas 7.3 and ant, I guess. But no maven.
>> I have no idea what SNAPSHOT is, and how to use it, and where find it.Is
>> it another version of all librairies ?
>
> SNAPSHOT is the latest development build
> https://repository.apache.org/content/groups/snapshots/org/apache/struts/struts2-core/
>
>> Struts has detected an unhandled exception:
>> | Messages: |
>>    - This method: execute for action Login is not allowed!
>>  |
>>
>>
>> Stacktraces
>>  This method: execute for action Login is not allowed! - [unknown
>> location]
>> com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:200)
>>
>> org.apache.struts2.factory.StrutsActionProxy.prepare(StrutsActionProxy.java:63)
>>
>> org.apache.struts2.factory.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:37)
>>
>> com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58)
>>
>> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:543)
>>
>> org.apache.struts2.dispatcher.ExecuteOperations.executeAction(ExecuteOperations.java:81)
>>
>> org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:102)
>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>>
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>>
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>>
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>>
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>>
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>>
>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
>>
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>>
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
>>
>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
>>
>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
>>
>> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
>>
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>    java.lang.Thread.run(Thread.java:722)
>
> This is fixed in the latest development version
>
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
>
>
>
>
>

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


Re: Some problems with Struts-mailreader

Posted by Chris <ch...@yahoo.fr>.
Hello,  Thank you for giving methose explainations. So I've  tried withstruts2-core-2.5-20151112.202249-95.jar orstruts2-core-2.5-20151104.175152-90.jar but I receive another error ( NB : Allthe jar files are the same as 2.5 BETA2 , except the struts-core )

The error is with the id (?) , in the  /WEB-INF/jsp/Welcome.jsp (line: 26,column: 8) 
        <s:url id="en"action="Welcome">  ....accordind to the TLD 

nov. 13, 2015 10:05:23 AM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: "Servlet.service()" pour la servlet jsp a lancé une exception
org.apache.jasper.JasperException: /WEB-INF/jsp/Welcome.jsp (line: 26, column:8) L'attribut id est incorrect pour le tag url d'après la TLD indiquée
    atorg.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42)
    at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:408)
    atorg.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:237)    atorg.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1265) 


     Le Vendredi 13 novembre 2015 10h17, Chris <ch...@yahoo.fr> a écrit :
   

 Hello, 

Thank you for giving me those explainations.
So I've  tried with struts2-core-2.5-20151112.202249-95.jar or struts2-core-2.5-20151104.175152-90.jar but I receive another error ( NB : All the jar files are the same as 2.5 BETA2 , except the struts-core )

The error is with the id (?) , in the  /WEB-INF/jsp/Welcome.jsp (line: 26, column: 8) 
        <s:url id="en" action="Welcome">  ....accordind to the TLD 

nov. 13, 2015 10:05:23 AM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: "Servlet.service()" pour la servlet jsp a lancé une exception
org.apache.jasper.JasperException: /WEB-INF/jsp/Welcome.jsp (line: 26, column: 8) L'attribut id est incorrect pour le tag url d'après la TLD indiquée
    at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42)
    at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:408)
    at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:237)
    at org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1265) 


     Le Vendredi 13 novembre 2015 8h41, Chris <ch...@yahoo.fr> a écrit :
   

 

      Le Vendredi 13 novembre 2015 8h39, Chris <ch...@yahoo.fr> a écrit :
   

 

      Le Jeudi 12 novembre 2015 20h28, Lukasz Lenart <lu...@apache.org> a écrit :
   

 2015-11-12 18:24 GMT+01:00 Chris <ch...@yahoo.fr>:
> Hello,
>
> I'm sorry . I don't use pom.xml in any of my examples.
> I work with Netbenas 7.3 and ant, I guess. But no maven.
> I have no idea what SNAPSHOT is, and how to use it, and where find it.Is it another version of all librairies ?

SNAPSHOT is the latest development build
https://repository.apache.org/content/groups/snapshots/org/apache/struts/struts2-core/

> Struts has detected an unhandled exception:
> | Messages: |
>    - This method: execute for action Login is not allowed!
>  |
>
>
> Stacktraces
>  This method: execute for action Login is not allowed! - [unknown location]      com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:200)
>    org.apache.struts2.factory.StrutsActionProxy.prepare(StrutsActionProxy.java:63)
>    org.apache.struts2.factory.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:37)
>    com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58)
>    org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:543)
>    org.apache.struts2.dispatcher.ExecuteOperations.executeAction(ExecuteOperations.java:81)
>    org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:102)
>    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
>    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
>    org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
>    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
>    org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
>    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>    java.lang.Thread.run(Thread.java:722)

This is fixed in the latest development version


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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


    

    

   

  

Re: Some problems with Struts-mailreader

Posted by Lukasz Lenart <lu...@apache.org>.
2015-11-12 18:24 GMT+01:00 Chris <ch...@yahoo.fr>:
> Hello,
>
> I'm sorry . I don't use pom.xml in any of my examples.
> I work with Netbenas 7.3 and ant, I guess. But no maven.
> I have no idea what SNAPSHOT is, and how to use it, and where find it.Is it another version of all librairies ?

SNAPSHOT is the latest development build
https://repository.apache.org/content/groups/snapshots/org/apache/struts/struts2-core/

> Struts has detected an unhandled exception:
> | Messages: |
>    - This method: execute for action Login is not allowed!
>  |
>
>
> Stacktraces
>  This method: execute for action Login is not allowed! - [unknown location]      com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:200)
>     org.apache.struts2.factory.StrutsActionProxy.prepare(StrutsActionProxy.java:63)
>     org.apache.struts2.factory.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:37)
>     com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58)
>     org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:543)
>     org.apache.struts2.dispatcher.ExecuteOperations.executeAction(ExecuteOperations.java:81)
>     org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:102)
>     org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>     org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>     org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>     org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>     org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>     org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>     org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>     org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
>     org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>     org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
>     org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
>     org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
>     org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
>     java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>     java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>     java.lang.Thread.run(Thread.java:722)

This is fixed in the latest development version


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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


Re: Some problems with Struts-mailreader

Posted by Chris <ch...@yahoo.fr>.
Hello, 

I'm sorry . I don't use pom.xml in any of my examples.
I work with Netbenas 7.3 and ant, I guess. But no maven.
I have no idea what SNAPSHOT is, and how to use it, and where find it.Is it another version of all librairies ?
Regards,
Chris
 

Struts has detected an unhandled exception: 
| Messages: |     
   - This method: execute for action Login is not allowed!
 |


Stacktraces
 This method: execute for action Login is not allowed! - [unknown location]      com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:200)
    org.apache.struts2.factory.StrutsActionProxy.prepare(StrutsActionProxy.java:63)
    org.apache.struts2.factory.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:37)
    com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58)
    org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:543)
    org.apache.struts2.dispatcher.ExecuteOperations.executeAction(ExecuteOperations.java:81)
    org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:102)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
    org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    java.lang.Thread.run(Thread.java:722)
      


     Le Jeudi 12 novembre 2015 17h33, Lukasz Lenart <lu...@apache.org> a écrit :
   

 2015-11-12 17:23 GMT+01:00 Chris <ch...@yahoo.fr>:
> Hello,My mailreader example still doesn't work.
> Precisely n the Login button, and the Cancel button, in the Login page

Have you used 2.5-SNAPSHOT version? You must manually change Struts
version in pom.xml

> Something strange, the new web.xml file looks like the jboss_blank example...
> I tried without those some lines, like the old mailreader example,  but it didn't work neither.
>    <!-- Restricts access to pure JSP files - access available only via Struts action  -->
>    <security-constraint>
>        <display-name>No direct JSP access</display-name>
>        <web-resource-collection>
>            <web-resource-name>No-JSP</web-resource-name>
>            <url-pattern>*.jsp</url-pattern>
>        </web-resource-collection>
>        <auth-constraint>
>            <role-name>no-users</role-name>
>        </auth-constraint>
>    </security-constraint>
>
> ???
>    <security-role>
>        <description>Don't assign users to this role</description>
>        <role-name>no-users</role-name>
>    </security-role>

It's just a security constraint to spread good practises


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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


  

Re: Some problems with Struts-mailreader

Posted by Lukasz Lenart <lu...@apache.org>.
2015-11-12 17:23 GMT+01:00 Chris <ch...@yahoo.fr>:
> Hello,My mailreader example still doesn't work.
> Precisely n the Login button, and the Cancel button, in the Login page

Have you used 2.5-SNAPSHOT version? You must manually change Struts
version in pom.xml

> Something strange, the new web.xml file looks like the jboss_blank example...
> I tried without those some lines, like the old mailreader example,  but it didn't work neither.
>    <!-- Restricts access to pure JSP files - access available only via Struts action   -->
>     <security-constraint>
>         <display-name>No direct JSP access</display-name>
>         <web-resource-collection>
>             <web-resource-name>No-JSP</web-resource-name>
>             <url-pattern>*.jsp</url-pattern>
>         </web-resource-collection>
>         <auth-constraint>
>             <role-name>no-users</role-name>
>         </auth-constraint>
>     </security-constraint>
>
> ???
>     <security-role>
>         <description>Don't assign users to this role</description>
>         <role-name>no-users</role-name>
>     </security-role>

It's just a security constraint to spread good practises


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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