In a multiple select item in a class definition, how do you set the
"Join separator (for display)" to be a newline?
--
Mark Wallace
Principal Engineer, Semantic Applications
Modus Operandi, Inc.
CONFIDENTIALITY NOTICE: The information transmitted (including
attachments) is covered by the Electronic Communications Privacy Act, 18
U.S.C. 2510-2521. This transmission is intended only for the person(s)
or entity/entities to which it is addressed and may contain confidential
and/or proprietary material. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient or
have received this transmission in error, please contact the sender by
reply e-mail and destroy all copies of the original message.
Hello,
I'm trying to upgrade from XE 3.1M2 to XE 3.3-RC1 and I am facing an
exception that I can't figure out how to solve. I've set up my xwiki.cfg
activating both updateschema and store.migration flags. I've also enabled
class isolation on my Jboss 4.2.3. I'm running my Xwiki instance on
Postgres 8.3, and the xwiki's hibernate config file is configured properly.
When I try to first call the instance, I got these exceptions. It seems
that data or schema migration are not working for any of the xml pages.
Could you help me?
1) The error is:
com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not
initialize main XWiki context
Wrapped Exception: Error number 3201 in 3: Exception while saving
document xwiki:XWiki.XWikiUsers
Wrapped Exception: Error number 3211 in 3: Exception while updating
archive XWiki.XWikiUsers
Wrapped Exception: Error number 0 in 3: Exception while hibernate execute
Wrapped Exception: could not load an entity:
[com.xpn.xwiki.doc.rcs.XWikiRCSNodeContent#component[docId,version1,version2]{docId=495778886,
version2=6, version1=1}]
2) Then in Jboss log I got these info when starting the xwiki instance
(I took off the timestamp and xwiki path garbage info):
WARN o.i.m.DefaultCacheManager - ISPN000156: You are not
starting all your caches at the same time. This can lead to problems
as asymmetric clusters are not supported, see ISPN-658. We recommend
using EmbeddedCacheManager.startCaches() to start all your caches
upfront.
WARN o.h.u.DTDEntityResolver - recognized obsolete hibernate
namespace http://hibernate.sourceforge.net/. Use namespace
http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6
Migration Guide!
INFO .AbstractXWikiMigrationManager - Current storage version = [0]
INFO .AbstractXWikiMigrationManager - List of migrations that will be executed:
INFO .AbstractXWikiMigrationManager - R4340XWIKI883 - See
http://jira.xwiki.org/jira/browse/XWIKI-883
INFO .AbstractXWikiMigrationManager - R4359XWIKI1459 - See
http://jira.xwiki.org/jira/browse/XWIKI-1459
INFO .AbstractXWikiMigrationManager - R7345XWIKI2079 - See
http://jira.xwiki.org/jira/browse/XWIKI-2079
INFO .AbstractXWikiMigrationManager - R15428XWIKI2977 - Add a GUID
to existing objects when upgrading from pre-1.8M1.
INFO .AbstractXWikiMigrationManager - Running migration
[R4340XWIKI883] with version [4340]
INFO .AbstractXWikiMigrationManager - New storage version is now [4341]
INFO .AbstractXWikiMigrationManager - Running migration
[R4359XWIKI1459] with version [4359]
INFO .AbstractXWikiMigrationManager - New storage version is now [4360]
INFO .AbstractXWikiMigrationManager - Skipping unneeded migration
[R6079XWIKI1878] with version [6079]
INFO .AbstractXWikiMigrationManager - New storage version is now [6080]
INFO .AbstractXWikiMigrationManager - Skipping unneeded migration
[R6405XWIKI1933] with version [6405]
INFO .AbstractXWikiMigrationManager - New storage version is now [6406]
INFO .AbstractXWikiMigrationManager - Running migration
[R7345XWIKI2079] with version [7350]
INFO .AbstractXWikiMigrationManager - New storage version is now [7351]
INFO .AbstractXWikiMigrationManager - Running migration
[R15428XWIKI2977] with version [15428]
INFO .AbstractXWikiMigrationManager - New storage version is now [15429]
3) And then the error exception (many of these arises):
WARN o.h.u.JDBCExceptionReporter - SQL Error: 0, SQLState: 22003
ERROR o.h.u.JDBCExceptionReporter - Bad value for type long : <?xml
version="1.0" encoding="UTF-8"?>
<xwikidoc>
<web>Scheduler</web>
<name>WatchListDailyNotifier</name>
<language></language>
<defaultLanguage></defaultLanguage>
<translation>0</translation>
<parent>XWiki.WatchListClass</parent>
<creator>XWiki.superadmin</creator>
<author>XWiki.superadmin</author>
<customClass></customClass>
<contentAuthor>XWiki.superadmin</contentAuthor> ...
So, when xwiki reads the xml's pages during startup, the first line of
all them seems to not to be expected for the migration class.
Thanks a lot.
Sincerely,
--
Ramon GB
skype: ramongb
i have my banking webapplication on tomcat. i want to host my application
help on xwiki which will sit on another server(probably
xwiki will be having its on app server). Basically what i have to do is i
want to provide a link on my banking application on click of which
i want to take it to wiki help(help shoud not ask any credentialsat
http://platform.xwiki.org/xwiki/bin/view/DevGuide/WebHome)
though it should ask for credential if i hit my xwiki URL directly.i am
not getting how to start it?i have gone thru xwiki devguide but could
not get much out of it. It would be great if somebody can give me heads up
how can i can i start it at high level, it would be a great help.
As xwiki site states many tools to download like
manager,enterprise,platform. which tool one i shoud start with and what
should be the starting point
in that?
i want to give the users to modify the wiki page on the basis of roles in
my banking application. So my application and xwiki has to interact a lot.
looking for how we can proceed for this. My application is using struts 2.
Another question i have is once i dowload xwiki enterprsise, should i host
in seperate tomcat or downloaded xwiki application will have its own
webserver.
Its really urgent for me. Looking for quick reply
Thanks in advance
Mohit GUpta
Hi Users,
I tried to use the xwiki-platform-tool-packager-plugin maven plugin to
import wiki pages into xwiki. However I get following error:
% mvn org.xwiki.platform:xwiki-platform-tool-packager-plugin:3.1:import
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building de.hierlmeier.xwiki.testpages
[INFO] task-segment:
[org.xwiki.platform:xwiki-platform-tool-packager-plugin:3.1:import]
[INFO]
------------------------------------------------------------------------
[INFO] [xwiki-packager-plugin:import {execution: default-cli}]
2011-12-12 15:29:00,854 [main] WARN iPropertiesConfigurationSource -
Failed to load configuration file [/WEB-INF/xwiki.properties]. Using
default configuration values. Internal error [null]
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to import XWiki documents
Embedded error: Failed to load component
[com.xpn.xwiki.store.XWikiStoreInterface] for hint [null]
...
The following exception occured during the import (printed out with
maven -X):
[DEBUG] Configuring mojo
'org.xwiki.platform:xwiki-platform-tool-packager-plugin:3.1:import' -->
[DEBUG] (f) databaseName = xwiki
[DEBUG] (f) hibernateConfig = c:\xwiki\WEB-INF\hibernate.cfg.xml
[DEBUG] (f) sourceDirectory = C:\Users\rh\xwiki\src\documents
[DEBUG] -- end configuration --
[INFO] [xwiki-packager-plugin:import {execution: default-cli}]
2011-12-12 15:44:54,378 [main] WARN iPropertiesConfigurationSource -
Failed to load configuration file [/WEB-INF/xwiki.properties]. Using
default configuration values. Internal error [null]
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to import XWiki documents
Embedded error: Failed to load component
[com.xpn.xwiki.store.XWikiStoreInterface] for hint [null]
[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to import
XWiki documents
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to
import XWiki documents
at com.xpn.xwiki.tool.backup.ImportMojo.execute(ImportMojo.java:62)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
Caused by: java.lang.RuntimeException: Failed to load component
[com.xpn.xwiki.store.XWikiStoreInterface] for hint [null]
at com.xpn.xwiki.web.Utils.getComponent(Utils.java:645)
at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:762)
at com.xpn.xwiki.XWiki.<init>(XWiki.java:710)
at
com.xpn.xwiki.tool.backup.AbstractPackager.createXWikiContext(AbstractPackager.java:108)
at
com.xpn.xwiki.tool.backup.Importer.importDocuments(Importer.java:62)
at com.xpn.xwiki.tool.backup.ImportMojo.execute(ImportMojo.java:60)
... 19 more
Caused by: org.xwiki.component.manager.ComponentLookupException: Failed
to lookup component [role = [com.xpn.xwiki.store.XWikiStoreInterface]
hint = [default]]
at
org.xwiki.component.embed.EmbeddableComponentManager.initialize(EmbeddableComponentManager.java:369)
at
org.xwiki.component.embed.EmbeddableComponentManager.lookup(EmbeddableComponentManager.java:126)
at com.xpn.xwiki.web.Utils.getComponent(Utils.java:643)
... 24 more
Caused by: java.lang.NullPointerException
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.initialize(XWikiHibernateBaseStore.java:99)
at
org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:437)
at
org.xwiki.component.embed.EmbeddableComponentManager.initialize(EmbeddableComponentManager.java:360)
... 26 more
I assume that I need additional configuration options in my pom. So far
I have configured the following options:
<plugins>
<plugin>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-tool-packager-plugin</artifactId>
<version>3.1</version>
<configuration>
<hibernateConfig>c:/xwiki/WEB-INF/hibernate.cfg.xml</hibernateConfig>
<sourceDirectory>src/documents</sourceDirectory>
</configuration>
</plugin>
</plugins>
What is missing?
Richard
As i earlier said i have my project web application on one tomcat instance
and xwiki application on another tomcat instance.
So when i click help link on my project web application it should take me
to xwiki webapplication and whatever class
i mentioned against xwiki.authentication.authclass should do the custom
authentication.
So,I downloaded the war file xwiki-enterprise-web-3.2 and started working
on that. I have got some questions/issues while working
on this. These are:-
1) Is it possible to get the source code of xwiki java files so that if
want have detailed some understanding/or modification as per my
requirements i can go ahead? After modification i will pack it with
existing jar file and deploy it.
2) As i said in the begining i want custom authentication .So my question
is what are interfaces/parent class my custome class
should extend and with which library(jar file ) it should be packed with
.how i can find it out? Is there any api doc like
standard java docs something like this?
Thanks in advance.
hi i downloaded xwiki war and extracted the same war to my tomcat
directory under webapps folder.Now i am hitting the xwiki url and was
expecting welcome page or login page but got below exception
message. Though i have not modified xwiki.cfg and hibernate.cfg.xml . Not
getting what i am missing here.
*root cause*
com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not
initialize main XWiki context
Wrapped Exception: Error number 3001 in 3: Cannot load class
com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager
from param xwiki.store.migration.manager.class
Wrapped Exception: Error number 0 in 3: Exception while hibernate execute
Wrapped Exception: Could not create a DBCP pool. There is an error in
the hibernate configuration file, please review it.
com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:422)
com.xpn.xwiki.XWiki.getXWiki(XWiki.java:491)
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136)
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128)
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144)
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217)
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109)