Hi All,
cheers to the JBoss Community, this is my first post here
I'm on the way to learn the zen of JBoss.
I'm facing actually to the following issue: I want to define more than one Ressources in the jbossweb.sar/context.xml. I got an exception when JBoss (JBoss_5_1_0_GA date=200905221053) is starting:
org.jboss.xb.binding.JBossXBException: Failed to parse source: Failed to start Resources: the element is not repeatable, repeatable parent expected to be a model group but got element Context
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:183)
at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:133)
The jbossweb.sar/context.xml file looks like:
...
<InstanceListener>org.jboss.web.tomcat.security.RunAsListener</InstanceListener>
<Resources name="bean/name1" auth="Container"
type="myType1"
factory="org.apache.naming.factory.BeanFactory"/>
<Resources name="bean/name2" auth="Container"
type="myType2"
factory="org.apache.naming.factory.BeanFactory"
providerUrl="myURL"/>
...
Many thanks for your help!