[JBoss Portal] - Secure new Instance of CMSAdminPortlet.
by mmontoni
Hi,
I created a new instance of the CMSAdminPortlet. I adde it inside of an "Admin" page of myPortal app. I do have a myPortal-object.xml description where I put the folowing:
| <window>
| <window-name>CMSAdminPortletWindow</window-name>
| <instance-ref>CMSAdminPortletInstance2</instance-ref>
| <region>center</region>
| <height>0</height>
| </window>
|
My problem is that I would like that the "Admin" option is only viewed if you are logged as "Admin". This is not happening. Now, anyone can see it. I did try to add the following in my portlet-instance.xml but it didn't work either. Any ideas?
| <deployment>
| <instance>
| <instance-id>CMSAdminPortletInstance2</instance-id>
| <portlet-ref>CMSAdminPortlet</portlet-ref>
| <security-constraint>
| <policy-permission>
| <role-name>Admin</role-name>
| <action-name>view</action-name>
| </policy-permission>
| </security-constraint>
| </instance>
| </deployment>
|
Thanks!
Mariella.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994702#3994702
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994702
19 years, 4 months
[JBoss Portal] - Jboss Seam App + Portal Installation
by Shinerella
Hi everybody!
I have already several jboss seam applications running on a Jboss AS 4.0.4 GA installer version (ejb3 option enable as it was required to use seam),
The thing is that I want to use jboss portal and start making my intranet applications as portlets, but I have the following problem:
I tried to install portal under this Jboss server, I had a lot of errors, so I just installed the jboss Portal bundle that comes with a Jboss AS in another computer and I tried to deploy my seam applications in there, but I have this famous exception
org.jboss.deployment.DeploymentException: ejb-jar.xml must either obey the right xml schema or define a valid DOCTYPE!
So.. my question is, which is my best shot?
Do I need to have two jboss AS? or there is a way to have my seam aplicactions in the same Jboss AS where jboss portal is deployed and running?
Thanks and regards
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994699#3994699
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994699
19 years, 4 months
[JBossWS] - Handlers
by Redhopter
Hi All!
I have written JBossWS web service and client class for it. Client and service work successfully. Also I have written Handler class such as
| public class MHandler extends GenericHandler{
| public boolean handleRequest(MessageContext context) {
| SOAPMessageContext sctx = (SOAPMessageContext)context;
| SOAPMessage message = sctx.getMessage();
| try {
| SOAPHeader header = message.getSOAPHeader();
| String userName = header.getAttribute("username");
| String password = header.getAttribute("password");
| try {
| FileOutputStream file = new FileOutputStream("C:/Documents and Settings/kbolyand/Desktop/log.txt");
| file.write("Into Handler".getBytes());
| file.write((userName + "=" + password).getBytes());
| file.close();
| }
| catch (FileNotFoundException e) {
| e.printStackTrace();
| }
| catch (IOException e) {
| e.printStackTrace();
| }
|
| }
| catch (SOAPException e) {
| e.printStackTrace();
| }
|
| return true;
| }
| public QName[] getHeaders() {
| return new QName[0];
| }
| }
|
And now I have question: where I must declere my handler class in order use it and intercept SOAP messages?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994694#3994694
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994694
19 years, 4 months