user3128302
user3128302

Reputation: 21

xacml with wso2 pdp

I'm new to and wso2. I tried this post. But I got the following error after deploying MediCom.war in Tomcat 7.0.10 and login to the medi_home.jsp via /localhost/MediCom/WebContent/index.jsp.

An error occurred at line: 6 in the generated java file
Only a type can be imported. org.xacmlinfo.xacml.pep.agent.PEPAgent resolves to a package

An error occurred at line: 7 in the generated java file
Only a type can be imported. com.medi.sample.webapp.client.PEPClient resolves to a package

An error occurred at line: 13 in the jsp file: /WebContent/medi_home.jsp
PEPClient cannot be resolved to a type
10: 
11:     String[] staticActionsInPage = new String[] {"create", "read", "update", "delete"};
12:     
13:     PEPClient client = new PEPClient();
14:     List<String> allowedActions = client.getAllowedResources(userName, staticActionsInPage);

Thanks in advance!

Upvotes: 0

Views: 230

Answers (1)

Budhh
Budhh

Reputation: 153

It seems you only have downloaded the web project and not other dependent projects.

There are two ways you can get rid of this error.

1) go to this url : https://svn.wso2.org/repos/wso2/people/asela/xacml/pep/simple-agent/target/

download the jar file and add in your project, its the file which contains this PEPAgent class you are looking for.

Actually, PEP is one of the component in XACML architecture which will enforce your application to get authorized with Identity server using XACMl.

The PEP used in the sample you are using is entire differnet project, you can found the whole project here : https://svn.wso2.org/repos/wso2/people/asela/xacml/pep/simple-agent if you go through with the classes and code you will get more understanding.

In this link : https://svn.wso2.org/repos/wso2/people/asela/xacml/sample/healthcare/

you will find other projects which are used in your webapp sample. They all are maven projects so you can add as a dependency in your main project if you want.

Best of luck

Upvotes: 1

Related Questions