Hi all,
I'm trying to install the XWiki war file on a Ubuntu virtual machine (KVM)
but as yet with no success. I've installed and configured java, jboss and
mysql using all the information I could find from your website:
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationJBoss
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationMySQL
I've copied the MySQL J/Connector to $JBOSS_HOME/server/default/lib and
below are the relevant configuration settings:
$JBOSS_HOME/server/default/deploy/mysql-ds.xml:
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<local-tx-datasource>
<jndi-name>XWikiDS</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/xwiki</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>xwiki</user-name>
<password>xwiki</password>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
<metadata>
<type-mapping>mySQL</type-mapping>
</metadata>
</local-tx-datasource>
</datasources>
$JBOSS_HOME/server/default/deploy/xwiki.war/WEB-INF/web.xml:
(Uncommented below section...)
<resource-ref>
<description>XWiki MySQL DB Connection</description>
<res-ref-name>jdbc/XWikiDS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
$JBOSS_HOME/server/default/deploy/xwiki.war/WEB-INF/xwiki.cfg:
(Uncommented the following line...)
xwiki.store.hibernate.path=/WEB-INF/hibernate.cfg.xml
$JBOSS_HOME/server/default/deploy/xwiki.war/WEB-INF/hibernate.cfg.xml:
(Commented out HSQLDB section and added the below MySQL bit...)
<property
name="connection.datasource">java:/comp/env/jdbc/XWikiDS</property>
<property
name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="connection.pool_size">2</property>
<property name="statement_cache.size">2</property>
<mapping resource="xwiki.hbm.xml"/>
<mapping resource="feeds.hbm.xml"/>
<mapping resource="activitystream.hbm.xml"/>
$JBOSS_HOME/server/default/deploy/xwiki.war/WEB-INF/jboss-web.xml:
<?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:jdbc/XWikiDS</jndi-name>
</resource-ref>
</jboss-web>
JBoss seems to work fine without XWiki in the deploy directory but as soon
as it's copied across and restarted – JBoss fails to startup and gives a
very long error message. The error all seems very similar so I will only
include a bit from the beginning and the end:
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /usr/local/jboss
JAVA: /usr/lib/jvm/java-6-sun/bin/java
JAVA_OPTS: -server -Xms128m -Xmx512m -XX:MaxPermSize=256m
-Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true
-Dprogram.name=run.sh -Djava.li$
CLASSPATH:
/usr/local/jboss/bin/run.jar:/usr/lib/jvm/java-6-sun/lib/tools.jar
=========================================================================
01:34:42,418 INFO [AbstractJBossASServerBase] Server Configuration:
JBOSS_HOME URL: file:/java/apps/jboss/jboss-6.0.0.Final/
Bootstrap: $JBOSS_HOME/server/default/conf/bootstrap.xml
Common Base: $JBOSS_HOME/common/
Common Library: $JBOSS_HOME/common/lib/
Server Name: default
Server Base: $JBOSS_HOME/server/
Server Library: $JBOSS_HOME/server/default/lib/
Server Config: $JBOSS_HOME/server/default/conf/
Server Home: $JBOSS_HOME/server/default/
Server Data: $JBOSS_HOME/server/default/data/
Server Log: $JBOSS_HOME/server/default/log/
Server Temp: $JBOSS_HOME/server/default/tmp/
01:34:42,422 INFO [AbstractServer] Starting: JBossAS [6.0.0.Final "Neo"]
01:34:44,018 INFO [ServerInfo] Java version: 1.6.0_24,Sun Microsystems Inc.
01:34:44,018 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime
Environment (build 1.6.0_24-b07)
01:34:44,018 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM
19.1-b02,Sun Microsystems Inc.
01:34:44,019 INFO [ServerInfo] OS-System: Linux 2.6.35-28-server,amd64
01:34:44,019 INFO [ServerInfo] VM arguments: -Xms128m -Xmx512m
-XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true
-Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true
-Dprog$
01:34:44,059 INFO [JMXKernel] Legacy JMX core initialized
01:34:50,594 INFO [AbstractServerConfig] JBoss Web Services - Stack CXF
Server 3.4.1.GA
01:34:51,535 INFO [JSFImplManagementDeployer] Initialized 3 JSF
configurations: [Mojarra-1.2, MyFaces-2.0, Mojarra-2.0]
01:34:58,256 WARNING [FileConfigurationParser] AIO wasn't located on this
platform, it will fall back to using pure Java NIO. If your platform is
Linux, install LibAIO to enable the AIO journal
01:36:10,087 WARN [ClassLoaderManager] Unexpected error during load
of:org.apache.jackrabbit.core.query.lucene.WildcardQuery$WildcardQueryWeight:
java.lang.IncompatibleClassChangeError: Implementing class
at java.lang.ClassLoader.defineClass1(Native Method) [:1.6.0_24]
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
[:1.6.0_24]
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
[:1.6.0_24]
at
org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:52)
[jboss-classloader.jar:2.2.0.GA]
at
org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:650)
[jboss-classloader.jar:2.2.0.GA]
at
org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:609)
[jboss-classloader.jar:2.2.0.GA]
at java.security.AccessController.doPrivileged(Native Method)
[:1.6.0_24]
at
org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:608)
[jboss-classloader.jar:2.2.0.GA]
at
org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:585)
[jboss-classloader.jar:2.2.0.GA]
at
org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:156)
[jboss-classloader.jar:2.2.0.GA]
at
org.jboss.classloader.spi.filter.FilteredDelegateLoader.doLoadClass(FilteredDelegateLoader.java:141)
[jboss-classloader.jar:2.2.0.GA]
at
org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:132)
[jboss-classloader.jar:2.2.0.GA]
at
org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:461)
[jboss-classloader.jar:2.2.0.GA]
at
org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:262)
[jboss-classloader.jar:2.2.0.GA]
at
org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:161)
[jboss-classloader.jar:2.2.0.GA]
at
org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:260)
[jboss-classloader.jar:2.2.0.GA]
at
org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1152)
[jboss-classloader.jar:2.2.0.GA]
at
org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:886)
[jboss-classloader.jar:2.2.0.GA]
at
org.jboss.classloader.spi.base.BaseClassLoader.doLoadClass(BaseClassLoader.java:505)
[jboss-classloader.jar:2.2.0.GA]
at
org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:450)
[jboss-classloader.jar:2.2.0.GA]
at java.lang.ClassLoader.loadClass(ClassLoader.java:248) [:1.6.0_24]
at java.lang.Class.forName0(Native Method) [:1.6.0_24]
at java.lang.Class.forName(Class.java:247) [:1.6.0_24]
at
org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.resolveComplexTypeInfo(IntrospectionTypeInfoFactoryImpl.java:458)
[jboss-reflect.jar:2.2.0.GA]
at
org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getTypeInfo(IntrospectionTypeInfoFactoryImpl.java:414)
[jboss-reflect.jar:2.2.0.GA]
at
org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactory.getTypeInfo(IntrospectionTypeInfoFactory.java:54)
[jboss-reflect.jar:2.2.0.GA]
at
org.jboss.config.plugins.AbstractConfiguration.getTypeInfo(AbstractConfiguration.java:121)
[jboss-reflect.jar:2.2.0.GA]
at
org.jboss.kernel.plugins.config.AbstractKernelConfig.getTypeInfo(AbstractKernelConfig.java:95)
[jboss-kernel.jar:2.2.0.GA]
at
org.jboss.kernel.plugins.config.AbstractKernelConfigurator.getTypeInfo(AbstractKernelConfigurator.java:102)
[jboss-kernel.jar:2.2.0.GA]
at
org.jboss.scanning.plugins.visitor.ConfiguratorReflectProvider.getTypeInfo(ConfiguratorReflectProvider.java:47)
[:1.0.0.GA]
at
org.jboss.scanning.plugins.visitor.CachingReflectProvider.getTypeInfo(CachingReflectProvider.java:52)
[:1.0.0.GA]
at
org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.getTypeInfo(ReflectResourceVisitor.java:60)
[:1.0.0.GA]
at
org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.getClassInfo(ReflectResourceVisitor.java:72)
[:1.0.0.GA]
at
org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.doVisit(ReflectResourceVisitor.java:107)
[:1.0.0.GA]
at
org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.visit(ReflectResourceVisitor.java:86)
[:1.0.0.GA]
at
org.jboss.scanning.hierarchy.plugins.HierarchyIndexScanningPlugin.visit(HierarchyIndexScanningPlugin.java:91)
[:1.0.0.GA]
at
org.jboss.scanning.spi.helpers.ScanningPluginWrapper.visit(ScanningPluginWrapper.java:112)
[:1.0.0.GA]
at
org.jboss.classloading.plugins.visitor.FederatedResourceVisitor.visit(FederatedResourceVisitor.java:101)
[jboss-classloading.jar:2.2.0.GA]
at
org.jboss.classloading.plugins.vfs.VFSResourceVisitor.visit(VFSResourceVisitor.java:264)
[jboss-classloading-vfs.jar:2.2.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:408)
[jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410)
[jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410)
[jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410)
[jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410)
[jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410)
[jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410)
[jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:396)
[jboss-vfs.jar:3.0.0.GA]
at
org.jboss.classloading.plugins.vfs.VFSResourceVisitor.visit(VFSResourceVisitor.java:102)
[jboss-classloading-vfs.jar:2.2.0.GA]
at
org.jboss.deployers.vfs.plugins.classloader.VFSDeploymentClassLoaderPolicyModule.visit(VFSDeploymentClassLoaderPolicyModule.java:181)
[:2.2.0.GA]
at
org.jboss.scanning.plugins.DeploymentUnitScanner.scan(DeploymentUnitScanner.java:111)
[:1.0.0.GA]
at
org.jboss.scanning.spi.helpers.UrlScanner.scan(UrlScanner.java:96)
[:1.0.0.GA]
.
.
.
.
01:36:10,936 WARN [ClassLoaderManager] Unexpected error during load
of:org.apache.jackrabbit.core.query.lucene.MatchAllWeight:
java.lang.IncompatibleClassChangeError: Implementing class
at java.lang.ClassLoader.defineClass1(Native Method) [:1.6.0_24]
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
[:1.6.0_24]
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
[:1.6.0_24]
at
org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:52)
[jboss-classloader.jar:2.2.0.GA]
at
org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:650)
[jboss-classloader.jar:2.2.0.GA]
at
org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:609)
[jboss-classloader.jar:2.2.0.GA]
at java.security.AccessController.doPrivileged(Native Method)
[:1.6.0_24]
at
org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:608)
[jboss-classloader.jar:2.2.0.GA]
at
org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:585)
[jboss-classloader.jar:2.2.0.GA]
at
org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:156)
[jboss-classloader.jar:2.2.0.GA]
at
org.jboss.classloader.spi.filter.FilteredDelegateLoader.doLoadClass(FilteredDelegateLoader.java:141)
[jboss-classloader.jar:2.2.0.GA]
at
org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:132)
[jboss-classloader.jar:2.2.0.GA]
at
org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:461)
[jboss-classloader.jar:2.2.0.GA]
at
org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:262)
[jboss-classloader.jar:2.2.0.GA]
at
org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:161)
[jboss-classloader.jar:2.2.0.GA]
at
org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:260)
[jboss-classloader.jar:2.2.0.GA]
at
org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1152)
[jboss-classloader.jar:2.2.0.GA]
at
org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:886)
[jboss-classloader.jar:2.2.0.GA]
at
org.jboss.classloader.spi.base.BaseClassLoader.doLoadClass(BaseClassLoader.java:505)
[jboss-classloader.jar:2.2.0.GA]
at
org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:450)
[jboss-classloader.jar:2.2.0.GA]
at java.lang.ClassLoader.loadClass(ClassLoader.java:248) [:1.6.0_24]
at java.lang.Class.getDeclaredConstructors0(Native Method)
[:1.6.0_24]
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
[:1.6.0_24]
at java.lang.Class.getDeclaredConstructors(Class.java:1836)
[:1.6.0_24]
at
org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getDeclaredConstructors(IntrospectionTypeInfoFactoryImpl.java:559)
[jboss-reflect.jar:2.2.0.GA]
at
org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getConstructors(IntrospectionTypeInfoFactoryImpl.java:158)
[jboss-reflect.jar:2.2.0.GA]
at
org.jboss.reflect.plugins.ClassInfoImpl.getDeclaredConstructors(ClassInfoImpl.java:446)
[jboss-reflect.jar:2.2.0.GA]
at
org.jboss.scanning.plugins.visitor.ClassHierarchyResourceVisitor.handleClass(ClassHierarchyResourceVisitor.java:79)
[:1.0.0.GA]
at
org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.doVisit(ReflectResourceVisitor.java:108)
[:1.0.0.GA]
at
org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.visit(ReflectResourceVisitor.java:86)
[:1.0.0.GA]
at
org.jboss.scanning.annotations.plugins.AnnotationsScanningPlugin.visit(AnnotationsScanningPlugin.java:89)
[:1.0.0.GA]
at
org.jboss.scanning.spi.helpers.ScanningPluginWrapper.visit(ScanningPluginWrapper.java:112)
[:1.0.0.GA]
at
org.jboss.classloading.plugins.visitor.FederatedResourceVisitor.visit(FederatedResourceVisitor.java:101)
[jboss-classloading.jar:2.2.0.GA]
at
org.jboss.classloading.plugins.vfs.VFSResourceVisitor.visit(VFSResourceVisitor.java:264)
[jboss-classloading-vfs.jar:2.2.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:408)
[jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410)
[jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410)
[jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410)
[jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410)
[jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410)
[jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410)
[jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:396)
[jboss-vfs.jar:3.0.0.GA]
at
org.jboss.classloading.plugins.vfs.VFSResourceVisitor.visit(VFSResourceVisitor.java:102)
[jboss-classloading-vfs.jar:2.2.0.GA]
at
org.jboss.deployers.vfs.plugins.classloader.VFSDeploymentClassLoaderPolicyModule.visit(VFSDeploymentClassLoaderPolicyModule.java:181)
[:2.2.0.GA]
at
org.jboss.scanning.plugins.DeploymentUnitScanner.scan(DeploymentUnitScanner.java:111)
[:1.0.0.GA]
at
org.jboss.scanning.spi.helpers.UrlScanner.scan(UrlScanner.java:96)
[:1.0.0.GA]
at
org.jboss.scanning.deployers.ScanningDeployer.deploy(ScanningDeployer.java:95)
[:1.0.0.GA]
at
org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
[:2.2.0.GA]
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832)
[:2.2.0.GA]
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550)
[:2.2.0.GA]
at
org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491)
[:2.2.0.GA]
at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)
[jboss-dependency.jar:2.2.0.GA]
at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)
[jboss-dependency.jar:2.2.0.GA]
at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)
[jboss-dependency.jar:2.2.0.GA]
at
org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)
[jboss-dependency.jar:2.2.0.GA]
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)
[jboss-dependency.jar:2.2.0.GA]
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)
[jboss-dependency.jar:2.2.0.GA]
at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939)
[jboss-dependency.jar:2.2.0.GA]
Can anyone see what I'm doing wrong? All the information on the web seems a
little old – I'm using JBoss 6. I would be grateful if anyone could help
shed any light on this issue.
Cheers,
Andy
--
View this message in context:
http://xwiki.475771.n2.nabble.com/XWiki-war-JBoss-AS6-MySQL-tp6309076p63090…
Sent from the XWiki- Users mailing list archive at
Nabble.com.