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/InstallationJBosshttp://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installationhttp://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.
I'm trying to upgrade from xwiki 2.7 to 3.0.
I am using a PostgreSql database (I created a blank new database).
In the web browser pointing to http://localhost:8087/xwiki/bin/view/Main/, I
got the initial message that the wiki seems to be empty, and pointing to
import xwiki-enterprise-wiki-3.0.xar. So, I imported
xwiki-enterprise-wiki-3.0.xar.
Then in the next step, I exported all the pages from the xwiki 2.7 into a
file, let's say bakup-xwiki2.7.xar which is 78 Mb. I modified the Maximum
Upload Size in the xwiki 3.0 preferences to 999999999999. Then, the next
step was to import bakup-xwiki2.7.xar into xwiki 3.0. Went to the import
page, selected the bakup-xwiki2.7.xar and then clicked "Upload" button. The
file cannot be uploaded. The error that I get in the console is:
2011-04-28 18:39:16,564
[http://localhost:8087/xwiki/bin/upload/XWiki/XWikiPreferences] WARN
web.UploadAction - Saving uploaded file failed
com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving
document xwiki:XWiki.XWikiPreferences
Wrapped Exception: Failed to commit or rollback transaction. Root cause []
...etc...
Did anyone else encounter this problem?
What am I missing? Do I need to configure any other files?
Any input will be greatly appreciated.
Regards,
Alina. --
View this message in context: http://xwiki.475771.n2.nabble.com/Import-pages-from-xwiki-2-7-to-3-0-tp6316…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hey guys. I'm still having trouble figuring out the XWiki platform. I have a
project to do. The main goal is publish information about lectures and allow
users to register to those lectures.
The headache for me is, how to connect these things. I mean in normal
php/mysql project I would know how to do it, there is some tables, I add
information of the user and when I need that information I just make a
query. What could be the methods to do that in XWiki? How to connect that
specific user has registered to that lecture? What would be the best way to
store that kind of information?
Thank you in advance
Marius Vizbaras--
View this message in context: http://xwiki.475771.n2.nabble.com/A-question-about-XWiki-concept-tp6317490p…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Dear all,
I have a class with a UserList attribute. I am trying to add users to
this list from an other page with no success. I try using the following
code :
#if($joinTask!="")
#set($taskDoc = $xwiki.getDocument("Project.${joinTask}"))
#set($taskObj = $taskDoc.getObject("XWiki.TaskClass"))
#set($list = $taskObj.get("assignedPeople"))
$list.add($xwiki.getUser())
$taskObj.set("assignedPeople", ${list})
$taskDoc.save()
#end
but $list.add does not exist so I tried differently :
#if($joinTask!="")
#set($taskDoc = $xwiki.getDocument("Project.${joinTask}"))
#set($taskObj = $taskDoc.getObject("XWiki.TaskClass"))
#set($list = $util.getArrayList())
$list.add($xwiki.getUser())
$taskObj.set("assignedPeople", ${list})
$taskDoc.save()
#end
but I have a casting exception.
I had a look on the velocity website, on this list archives,... with no
success
My question is : Can I add users like that or the only way is through
the edit panel and if yes, what is my mistake ?
Best regards,
Jean
--
----
Jean Couteau
Code Lutin - http://www.codelutin.com
44 Bd des Pas Enchantés - 44230 St-Sébastien/Loire
Tél : 02 40 50 29 28 - Fax : 09 59 92 29 28
I came across an old discussion on automatic numbering of headings,
Vincent Massol offered this solution:
http://www.xwiki.org/xwiki/bin/view/FAQ/NumberedSections
A great feature, but I am a bit at loss how to implement this in XWiki
2.0 syntax.
{{velocity}}
#set ($context.tocNumbered = true)
#set ($context.tocData = $tdoc.getTOC(2, 6, true))
{{/velocity}}
==example header==
didn't do the trick.
Any hints?
Hi again,
were are some paediatric surgeons who foundet a nonprofit company to Share knowledge about paediatric surgery. Could You install a xwiki for us? We love it.
Could the name be kinderchirurgie@myxwiki ?
Username: van Wasen
Thank You so much,
Felix from germany
Hi,
What is the best way to have a livetable sorted when opened (the default sort)
We would like to sort on a attribute that is not in the class/object the livetable is designed on.
We have a livetable on WXikiUsers that will show all users
It is now sorted on firstName
We prefer a default sort on date/time of creation (registration moment) of the users so that latest registrations are on top of the list (first page)
This collumn is not in the table and should not be in the table since it is not seen as relevant for the majority of records
After the default sort (when you land on the page) the user can re-sort based on the columns
Gerritjan
Thanks Sergiu, that is the solution !
Regards,
Philippe
--
Philippe Kernévez
Directeur technique (Suisse)
pkernevez(a)octo.com
+41 79 888 33 32
Retrouvez OCTO sur OCTO Talk : http://blog.octo.com
OCTO Technology http://www.octo.com
Hi
I want to create two categories and for each categorie, we want to create
several articles or pages.
Is space the same thing as categorie ? If yes, how can I show only two
spaces in the main page ? Right now I have the space macro and it shows all
the spaces like blog , main, panels, estc.
thanks
Hi All,
I have a question related with the use of the "." in the name of the
documents. In my company all the employers are creating several new
pages each day. Some of them, create the pages using the character "." .
This generate the malformed name of the document because when XWiki
found a ".", creates a new space.
For example:
The name of the page shouldn't be:
Release 30.2.1 Installer Application -> This generate the following
link: Release 30\.2\.1 Installer Application -> the link is wrong and
will appear in the list of the spaces with the character "?" that
indicates that the document hasn't been created. To fix this I have to
rename the link for something like this:
Release 30_2_1 Installer Application or Release 30 2 1 Installer
Application.
Sometimes I need to delete this type of documents directly from the
database.
I'm wondering if someone knows a plugin to delete the "." or the
solution that I have to implement here is to avoid the use of the
character "." in the name of the pages.
Thanks in advance,
Carolina Ramirez.