You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Nic Hobbs <ni...@yahoo.com> on 2001/08/13 18:16:20 UTC
Re: role based security in struts and workflow
Hi Matt, all,
At the moment I haven't got anything like a demo webapp for it but all you
need to do to try it is to install it all as per the instructions, add your
roles to the struts-config and make sure that you login to your app server
such that isUserInRole etc. return the right thing. In BEA WLS (well in 6.x
at least) this requires using either the J2EE defined login methods (method
as in way if doing it!) (i.e. form based, basic etc.) or using the weblogic
security's weak method (method as in function call!) - other methods don't
work. In other app servers I guess this will be specific to them but all
should support the J2EE defined ways.
At the moment it is necessary to build them in I think, but there is probably
a way to add them as a jar or something similar. It will take me a couple of
days though (see below).
I have been busy in meetings last week and this and am away for the rest of
the week on an oh-so-interesting course, so I won't be able to put something
together to sort these two probs in the next few days. (This, as well as the
fact that I have had trouble with my work PC where I do all my mailing -
moved over to linux now ;) - is also the reason why I haven't responded to
Craig's workflow and security comments on the dev list, which I will hope to
do when I get back, although at first glance it all looks pretty good.) I
will try and put something together and post when I can.
Regards,
Nic
On Monday 13 August 2001 2:35 pm, Matt Raible wrote:
> Nic,
>
> I was looking at your struts-security.zip file (download from husted.com)
> today. Do you have an example app (war) file that shows how to use this
> more thoroughly? For example, I would like to know how to register any new
> classes and such.
>
> Also, it it possible to add these additional classes as a jar, rather than
> downloading the struts source and adding these classes.
>
> Thanks,
>
> Matt
>
> P.S. If anyone else has ways that they've instituted role-based security
> with struts, and have example, please provide!
----------------------------------------
Content-Type: text/html; charset="iso-8859-1"; name="Attachment: 1"
Content-Transfer-Encoding: quoted-printable
Content-Description:
----------------------------------------
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
RE: TILES - cannot run the provided webapps
Posted by nicolas bonvin <ar...@individa.com>.
sorry, it was targeted to the struts-user-list
> -----Original Message-----
> From: nicolas bonvin [mailto:archive@individa.com]
> Sent: Tuesday, August 14, 2001 10:19 AM
> To: struts-dev@jakarta.apache.org
> Subject: TILES - cannot run the provided webapps
>
>
> cedric?,
>
> I downloaded the latest(20010731) version of tiles from
> http://www.lifl.fr/~dumoulin/tiles/ and tried to deploy the tiles-tutorial
> webapp inside of tomcat4.0-b7 (as well as other tomcat versions
> just to make
> sure); unfortunately, here's the error I get upon requesting
> http://localhost:8080/tiles-tutorial/index.jsp
>
> any idea?
>
> thanks,
>
> nicolas b.
>
>
> Root Cause:
> javax.servlet.jsp.JspException: Can't get definitions factory
> from context.
> at
> org.apache.struts.taglib.tiles.InsertTag.processDefinitionName(Ins
> ertTag.jav
> a:589)
> at
> org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTa
> g.java:442
> )
> at
> org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:399)
> at
> org.apache.jsp._0002findex_jsp._jspService(_0002findex_jsp.java:65)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Jsp
> Servlet.ja
> va:201)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:458)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A
> pplication
> FilterChain.java:247)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati
> onFilterCh
> ain.java:193)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp
> erValve.ja
> va:243)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
> ine.java:5
> 66)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardConte
> xtValve.ja
> va:215)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
> ine.java:5
> 66)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2314)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValv
> e.java:164
> )
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
> ine.java:5
> 66)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
> ine.java:5
> 64)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngine
> Valve.java
> :163)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
> ine.java:5
> 66)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.connector.http.HttpProcessor.process(HttpProce
> ssor.java:
> 1000)
> at
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor
> .java:1093
> )
> at java.lang.Thread.run(Thread.java:484)
>
TILES - cannot run the provided webapps
Posted by nicolas bonvin <ar...@individa.com>.
cedric?,
I downloaded the latest(20010731) version of tiles from
http://www.lifl.fr/~dumoulin/tiles/ and tried to deploy the tiles-tutorial
webapp inside of tomcat4.0-b7 (as well as other tomcat versions just to make
sure); unfortunately, here's the error I get upon requesting
http://localhost:8080/tiles-tutorial/index.jsp
any idea?
thanks,
nicolas b.
Root Cause:
javax.servlet.jsp.JspException: Can't get definitions factory from context.
at
org.apache.struts.taglib.tiles.InsertTag.processDefinitionName(InsertTag.jav
a:589)
at
org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:442
)
at org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:399)
at org.apache.jsp._0002findex_jsp._jspService(_0002findex_jsp.java:65)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:201)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:458)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:215)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2314)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1000)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1093
)
at java.lang.Thread.run(Thread.java:484)