[Design of Security on JBoss] - Re: Security Injection in AS5
by alex.loubyansky@jboss.com
The XSD cannot be found in the classpath.
log wrote : 2008-03-27 15:36:04,375 TRACE [org.jboss.xb.binding.sunday.unmarshalling.DefaultSchemaResolver] (main) Mapped schemaLocation to filename: security-config_5_0.xsd
| 2008-03-27 15:36:04,375 TRACE [org.jboss.xb.binding.sunday.unmarshalling.DefaultSchemaResolver] (main) getInputSource, nsURI=urn:jboss:security-config:5.0, baseURI=null, schemaLocation=resource:schema/security-config_5_0.xsd
| 2008-03-27 15:36:04,375 TRACE [org.jboss.util.xml.JBossEntityResolver] (main) resolvePublicID, publicId=urn:jboss:security-config:5.0
| 2008-03-27 15:36:04,375 TRACE [org.jboss.util.xml.JBossEntityResolver] (main) Found entity from publicId=urn:jboss:security-config:5.0 fileName=security-config_5_0.xsd
| 2008-03-27 15:36:04,375 TRACE [org.jboss.util.xml.JBossEntityResolver] (main) Cannot load publicId from classpath resource: security-config_5_0.xsd
The file is in the schema directory of the jboss-metadata.jar
Changing the schemaLocation in the XML to include "schema/" doesn't work. I tried changing the mapping in the JBossEntityResolver to include the "schema/". Didn't work.
log wrote : 2008-03-27 15:50:25,614 TRACE [org.jboss.util.xml.JBossEntityResolver] (main) Found entity from publicId=urn:jboss:security-config:5.0 fileName=schema/security-config_5_0.xsd
| 2008-03-27 15:50:25,614 TRACE [org.jboss.util.xml.JBossEntityResolver] (main) Cannot load publicId from classpath resource: schema/security-config_5_0.xsd
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139325#4139325
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139325
16 years, 3 months
[Design the new POJO MicroContainer] - Re: Handling contexts in error
by alesj
"adrian(a)jboss.org" wrote :
| PROPOSAL
|
| I've had a seperate thought which is probably more acceptable to both
| you and to me, ;-)
|
| What you really want to do is manage the state of the failed beans.
| i.e. you want to takeover the management of the context in error from the MC
| and fix it manually.
|
| So my solution would be to allow something like:
|
| xml pseudo code as always ;-)
|
| | <bean ... error-handling="manual"/>
| |
|
| If for example the bean threw an error in start() then we no longer just discard
| this bean. Instead we would effectively change its controller mode to "manual"
| (if it isn't already) and just then revert it to the previous state. i.e. Created in this case
| or back to Instantiated if the property configuration failed.
|
| You can then pick up the management of the bean from there.
| When you decide to move the bean, we would just clear the error in the
| controller context and try again (reverting back to automatic if the bean
| was previously in that mode).
|
| We would never try to move a context in such a state without an
| explicit request on the controller to do so.
|
| I don't think this would require a major change in the Controller,
| most of the work would be in the IncompleteDeploymentException
| where we would now have to check all contexts at all states
| to see whether it has an error set (previously we just retrieved those
| in the **ERROR** state).
|
| We may want to only allow this for checked exceptions. i.e. if start throws
| a RuntimeException or Error, we would still discard the bean
| or perhaps make it configurable?
|
| This semantic would deal with my objections above and give you the
| ability to manage the failing beans/contexts without having to re-install them.
Are there any other hooks (api changes), apart ErrorHandlingMode enum, you've had in mind?
Picking up bean in the Controller can be done with Controller::change.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139322#4139322
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139322
16 years, 3 months