RE: Integrate Apache Shiro with Struts2

2017-06-26 Thread Kofford, C. Todd
OK, I've just uploaded a very simple struts2 - shiro example to github: 
https://github.com/tkofford/struts2shiro. NOTE - this is a very simple example 
that uses a default shiro.ini file for authentication/authorization and struts 
interceptor for "injecting" the shiro subject into the stack.

I'll start building a more complicated example that uses spring to inject the 
shiro parts, and reply back when that's done.

Todd Kofford
University of Kansas
tkoff...@ku.edu

-Original Message-
From: Ken McWilliams [mailto:ken.mcwilli...@gmail.com] 
Sent: Thursday, June 22, 2017 11:10 AM
To: Struts Users Mailing List 
Subject: Re: Integrate Apache Shiro with Struts2

That would be awesome. From having looked around on the web there is very 
little Struts2/Shiro content. Some examples would be a great help.

On Thu, Jun 22, 2017 at 9:51 AM, Kofford, C. Todd  wrote:

> We've been using strut2 and shiro for a long time (actually since the 
> old jsecurity days). I'd be happy to contribute some trivial and more 
> complex examples if needed.
>
> Todd Kofford
> University of Kansas
> tkoff...@ku.edu
>
>
> -Original Message-
> From: Lukasz Lenart [mailto:lukaszlen...@apache.org]
> Sent: Sunday, June 18, 2017 3:23 AM
> To: Struts Users Mailing List 
> Subject: Re: Integrate Apache Shiro with Struts2
>
> 2017-06-17 19:08 GMT+02:00 Ken McWilliams :
> > If not I hope to follow up with a solution.
>
> +1 and we can add it to our docs :)
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

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


Re: Why do I get HTTP Status 404 - Not Found after http://localhost:8080/struts2_maven/User/Login.action?

2017-06-26 Thread Lukasz Lenart
2017-06-24 7:21 GMT+02:00 ssmtpmailtesting ssmtpmailtesting
:
> pom.xml =
>
> http://maven.apache.org/POM/4.0.0;
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
>   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd;>
>   4.0.0
>   com.training
>   struts2_maven
>   war
>   0.0.1-SNAPSHOT
>   struts2_maven Maven Webapp
>   http://maven.apache.org
>   
> 
>   junit
>   junit
>   3.8.1
>   test
> 
> 
>   org.apache.struts
>   struts2-core
>   2.5.10.1
> 
> 
>   javax.servlet
>   javax.servlet-api
>   4.0.0-b01

I would rather use a stable version

> In web.xml web-app_2_5.dtd and  Web Application 2.3 don't work. It
> gets error: "Referenced file contains errors
> (http://java.sun.com/dtd/web-app_2_5.dtd). For more information, right
> click on the message in the Problems View
>  and select "Show Details..."
>
> 
>
>  "-//Sun Microsystems, Inc.//DTD Web Application 2.5//EN"
> "http://java.sun.com/dtd/web-app_2_5.dtd;>

You are using wrong definition, please check this out
http://wiki.metawerx.net/wiki/Web.xmlDTDAndXSD


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

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