On 05/04/2011 12:21 AM, andyp wrote:
> Vincent and Sergiu – thanks both for all your replies.  Unfortunately the
> headache continues.  I'm not sure if this is correct but making the below
> changes to jboss-web.xml no longer crashes JBoss but XWiki still fails with
> the stack trace at the bottom of this message.
>
> “Should we create a jboss-web.xml configuration file as well?
>
> We recently added a sun-web.xml file to fix another classloading
> problem, this time for GlassFish. “
>
> To someone like me – this seems like a great idea.  Anything you can do to
> ease the learning curve for a newbie trying to setup and learn XWiki can't
> be bad.
>
> Cheers,
> Andy
>
>
> $JBOSS_HOME/server/default/deploy/xwiki.war/WEB-INF/jboss-web.xml:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <jboss-web>
>      <loader-repository>
>          com.xwiki:archive=xwiki.war
>      </loader-repository>
>      <resource-ref>
>          <res-ref-name>jdbc/XWikiDS</res-ref-name>
>          <res-type>javax.sql.DataSource</res-type>
>          <jndi-name>java:jdbc/XWikiDS</jndi-name>
>      </resource-ref>
> </jboss-web>
>

Can you try this one:

> <?xml version="1.0" encoding="UTF-8"?>
> <jboss-web>
>   <class-loading java2ClassLoadingCompliance="false">
>     <loader-repository>
>       org.xwiki:archive=xwiki.war
>       
> <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
>     </loader-repository>
>   </class-loading>
>   <resource-ref>
>     <res-ref-name>jdbc/XWikiDS</res-ref-name>
>     <res-type>javax.sql.DataSource</res-type>
>     <jndi-name>java:jdbc/XWikiDS</jndi-name>
>   </resource-ref>
> </jboss-web>

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to