Hi Sergiu, I still receive an error in deployment but I feel we're getting closer. Here's an update of the changes I've made and the error I now receive: ============================== In bin\run.conf.bat (if you're on windows) you should search for the line setting Xms and MaxPermSize, and replace it with: set "JAVA_OPTS=-Xms512M -Xmx2048M -XX:MaxPermSize=512M" ============================== I am using Linux so amended the JAVA_OPTS variable as you suggested within bin/run.conf. ==============================
<loader-repository> org.xwiki:archive=xwiki.war </loader-repository>
This is wrong, the server manages to start up because the jboss-web.xml file is invalid, so it won't even try to start xwiki.war Actually, since there is no real class conflict, the classloader configuration is not important, you can remove that part completely. ============================== Like you said, this makes no difference so I have removed this section completely. It now look like: <?xml version="1.0" encoding="UTF-8"?> <jboss-web> <resource-ref> <res-ref-name>jdbc/XWikiDS</res-ref-name> <res-type>javax.sql.DataSource</res-type> <jndi-name>java:/XWikiDS</jndi-name> </resource-ref> </jboss-web> ============================== There is another real error that occurs, and it's caused by a bad jar file. You must solve it manually: - locate WEB-INF/jaxb-xjc-2.1.8.jar - delete the 1.0 directory from it (for example you can extract, delete and repack the jar) ============================== Here I extracted the JAR, removed the “1.0” directory and repacked the JAR as follows: jar xf jaxb-xjc-2.1.8.jar rm -vRf 1.0/ jar cvf jaxb-xjc-2.1.8.jar ./* ============================== Right now I don't get any more class loading errors, but I still have an error about the missing data source, maybe I didn't configure it correctly: ============================== Yeah, looks like I setup the data source wrong – the jndi name within jboss-web.xml should have been “java:/XWiki”, not “java:jdbc/XWikiDS”. Now the JBoss server starts (given enough time) but XWiki fails with the first real error being: 13:20:58,486 INFO [TomcatDeployment] deploy, ctxPath=/ 13:21:54,457 INFO [TomcatDeployment] deploy, ctxPath=/xwiki 13:21:54,657 ERROR [MbeansDescriptorsDOMSource] Error reading descriptors : java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:123) [:1.6.0_24] at org.apache.tomcat.util.DomUtil.readXml(DomUtil.java:242) [:6.0.0.Final] at org.apache.tomcat.util.modeler.modules.MbeansDescriptorsDOMSource.execute(MbeansDescriptorsDOMSource.java:86) [:6.0.0.Final] at org.apache.tomcat.util.modeler.modules.MbeansDescriptorsDOMSource.loadDescriptors(MbeansDescriptorsDOMSource.java:76) [:6.0.0.Final] at org.apache.tomcat.util.modeler.Registry.load(Registry.java:753) [:6.0.0.Final] . . . Please see http://xwiki.475771.n2.nabble.com/file/n6337659/jboss_error.txt here for the full startup log. Thanks again for all the help here. Cheers, Andy -- View this message in context: http://xwiki.475771.n2.nabble.com/XWiki-war-JBoss-AS6-MySQL-tp6309076p633765... Sent from the XWiki- Users mailing list archive at Nabble.com.