[QA of JBoss Portal] - Re: Problem with Tomcat SSO valve while being in 'Admin' rol
by sohil.shah@jboss.com
anonymous wrote :
| But from my point of view, the behaviour in situation when you are in role "Admin" (or "User") and not in "Authenticated" is not logical.
|
Needing an "Authenticated" Threshold only makes the difference between an authenticated user and an anonymous user. After that within authenticated state itself, resources are access controlled based on whether they have "Admin" role, "User" role etc.
Atleast thats the default security policy of portal we ship out of the box.
To change this, you can modify the security constraints I mentioned in portal server configuration. I thought you needed a solution that would work with the out of the box portal policy. But, looks like you are looking to modify the default portal security policy, which is fine too. Try the first option I suggested and see if that works.
You will need to add the "User" and "Admin" role references in the web.xml instead of the Authenticated we have today
anonymous wrote :
| Solution may be to inform our customers that for correct usage of Tomcat SSO Valve, they must have users in their web applications in both roles "Admin" and "Authenticated" (or "User" and "Authenticated" for normal non-admin users).
|
Yes that is correct for the default security policy that we ship with
Thanks
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227549#4227549
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227549
15 years, 8 months
[Design of JBossXB] - Re: problem parsing sip.xml with JBossXB
by deruelle_jean
Hi,
I stumbled on a new problem, but that might be due to my newbieness on JAXB still.
The sip app.xsd http://www.jcp.org/xml/ns/sipservlet/sip-app_1_1.xsd defines an element called condition which is abstract and many elements such as and, or, equals ... that are child of this condition (belong to the same substitutiongroup).
My corresponding mapping classes are available here :
http://mobicents.googlecode.com/svn/trunk/servers/sip-servlets/sip-servle...
http://mobicents.googlecode.com/svn/trunk/servers/sip-servlets/sip-servle...
http://mobicents.googlecode.com/svn/trunk/servers/sip-servlets/sip-servle...
When I try to load this sip.xml :
http://mobicents.googlecode.com/svn/trunk/servers/sip-servlets/sip-servle...
I get the following exception :
Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: and not found as a child of pattern
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
| at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)
| at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:199)
| at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:170)
| at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:132)
| at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:118)
| at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:256)
| at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:188)
| at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:323)
| ... 22 more
| Caused by: org.jboss.xb.binding.JBossXBRuntimeException: and not found as a child of pattern
| at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:400)
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:401)
| at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
| at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)
| at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
| at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
| at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
| at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
| at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
| at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:199)
| ... 30 more
| 17:25:41,319 INFO [TomcatConvergedDeployer] vfsfile:/home/deruelle/servers/jboss-5.0.1.G
Any help would be appreciated on how to make the AndMetaData a child of ConditionMetaData
Thanks in advance
Best regards
Jean Deruelle
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227538#4227538
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227538
15 years, 8 months
[Design of JBoss ESB] - Scoped deployments in AS 5.x
by beve
In ESB 4.x you can specify that a deployment be scoped by configuring this in deployment.xml:
<jbossesb-deployment>
| <depends>jboss.esb:test=server</depends>
| <depends>jboss.esb.qa.junit.destination:service=Queue,name=esb_gateway_channel_versioned</depends>
| <depends>jboss.esb.qa.junit.destination:service=Queue,name=esb_channel_versioned</depends>
| <loader-repository>
| org.jboss.soa.esb:loader=simple-scoped
| <loader-repository-config>
| java2ParentDelegaton=false
| </loader-repository-config>
| </loader-repository>
| </jbossesb-deployment>
In AS 5.x something similar can be done by adding a META-INF/jboss-classloading.xml file to a deployment.
I'm guessing that our deployers should act upon a loader-repository element in deployment.xml and take care of this when a .esb archive is deployed into AS 5, and not force users to declare such a file?
/Daniel
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227536#4227536
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227536
15 years, 8 months