Hi All,
Using Oracle's OID (LDAP) I am trying to get my installation of xWiki to
authenticate using the LDAP.... with logging fully turned up, here is the
messages I am currently getting:
-----------------------------
2011-08-05 15:32:00,761 INFO [STDOUT] (
http://hostname:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin) 2011-08-05
15:32:00,761 [http://hostname:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
DEBUG c.x.x.p.l.XWikiLDAPConnection - Binding to LDAP server with
credentials login=[uid=204428,cn=users,dc=company,dc=com]
2011-08-05 15:32:00,940 INFO [STDOUT]
(http://hostname:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin)
2011-08-05 15:32:00,940
[http://hostname:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
DEBUG u.i.L.XWikiLDAPAuthServiceImpl - Local LDAP authentication failed.
com.xpn.xwiki.plugin.ldap.XWikiLDAPException: Error number 0 in 5: LDAP bind
failed with LDAPException.
Wrapped Exception: Invalid Credentials
at
com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.open(XWikiLDAPConnection.java:175)
~[xwiki-platform-oldcore-3.1.jar!/:na]
at
com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.open(XWikiLDAPConnection.java:104)
~[xwiki-platform-oldcore-3.1.jar!/:na]
at
com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticateInContext(XWikiLDAPAuthServiceImpl.java:313)
[xwiki-platform-oldcore-3.1.jar!/:na]
at
com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticate(XWikiLDAPAuthServiceImpl.java:190)
[xwiki-platform-oldcore-3.1.jar!/:na]
at
com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.authenticate(XWikiLDAPAuthServiceImpl.java:137)
[xwiki-platform-oldcore-3.1.jar!/:na]
at
com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.authenticate(MyFormAuthenticator.java:284)
[xwiki-platform-oldcore-3.1.jar!/:na]
at
com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:204)
[xwiki-platform-oldcore-3.1.jar!/:na]
at
com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:187)
[xwiki-platform-oldcore-3.1.jar!/:na]
at
com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.checkAuth(XWikiAuthServiceImpl.java:244)
[xwiki-platform-oldcore-3.1.jar!/:na]
at com.xpn.xwiki.XWiki.checkAuth(XWiki.java:4089)
[xwiki-platform-oldcore-3.1.jar!/:na]
at
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkAccess(XWikiRightServiceImpl.java:170)
[xwiki-platform-oldcore-3.1.jar!/:na]
at com.xpn.xwiki.XWiki.checkAccess(XWiki.java:4102)
[xwiki-platform-oldcore-3.1.jar!/:na]
at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:5260)
[xwiki-platform-oldcore-3.1.jar!/:na]
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:189)
[xwiki-platform-oldcore-3.1.jar!/:na]
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
[xwiki-platform-oldcore-3.1.jar!/:na]
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
[struts-1.2.9.jar!/:1.2.9]
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
[struts-1.2.9.jar!/:1.2.9]
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
[struts-1.2.9.jar!/:1.2.9]
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
[struts-1.2.9.jar!/:1.2.9]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
[servlet-api.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
date=200905221634)]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
[servlet-api.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
date=200905221634)]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:129)
[xwiki-platform-oldcore-3.1.jar!/:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]
at
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
[xwiki-platform-wysiwyg-server-3.1.jar!/:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
[xwiki-platform-webdav-server-3.1.jar!/:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]
at
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:218)
[xwiki-platform-container-servlet-3.1.jar!/:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]
at
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
[xwiki-platform-container-servlet-3.1.jar!/:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]
at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
date=200905221634)]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
date=200905221634)]
at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
date=200905221634)]
at
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
date=200905221634)]
at
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
date=200905221634)]
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]
at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
date=200905221634)]
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]
at java.lang.Thread.run(Thread.java:619) [na:1.6.0_16]
2011-08-05 15:32:00,942 INFO [STDOUT]
(http://hostname:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin)
2011-08-05 15:32:00,942
[http://hostname:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
DEBUG c.x.x.s.XWikiCacheStore - Cache: begin for doc
xwiki:XWiki.XWikiPreferences in cache
2011-08-05 15:32:00,942 INFO [STDOUT]
(http://hostname:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin)
2011-08-05 15:32:00,942
[http://hostname:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
DEBUG c.x.x.s.XWikiCacheStore - Cache: Trying to get doc
xwiki:XWiki.XWikiPreferences from cache
2011-08-05 15:32:00,942 INFO [STDOUT]
(http://hostname:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin)
2011-08-05 15:32:00,942
[http://hostname:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
DEBUG c.x.x.s.XWikiCacheStore - Cache: got doc
xwiki:XWiki.XWikiPreferences from cache
2011-08-05 15:32:00,943 INFO [STDOUT]
(http://hostname:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin)
2011-08-05 15:32:00,943
[http://hostname:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
DEBUG c.x.x.s.XWikiCacheStore - Cache: end for doc
xwiki:XWiki.XWikiPreferences in cache
2011-08-05 15:32:00,943 INFO [STDOUT]
(http://hostname:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin)
2011-08-05 15:32:00,943
[http://hostname:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
DEBUG u.i.L.XWikiLDAPAuthServiceImpl - LDAP authentication failed for user
[204428]
2011-08-05 15:32:00,943 INFO [STDOUT]
(http://hostname:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin)
2011-08-05 15:32:00,943
[http://hostname:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
INFO .x.x.u.i.x.MyFormAuthenticator - User 204428 login has failed
2011-08-05 15:32:00,943 INFO [STDOUT]
(http://hostname:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin)
2011-08-05 15:32:00,943
[http://hostname:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
DEBUG x.x.u.i.x.XWikiAuthServiceImpl -
XWikiAuthServiceImpl.checkAuth(XWikiContext) took 391 milliseconds to run.
2011-08-05 15:32:00,944 INFO [STDOUT]
(http://hostname:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin)
2011-08-05 15:32:00,944
[http://hostname:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
DEBUG .x.u.i.x.XWikiRightServiceImpl - Access has been granted for
(XWiki.XWikiGuest,XWiki.XWikiLogin,loginsubmit): login/logout pages
-----------------------------------------
Also, here is my xwiki.cfg LDAP section.
#-------------------------------------------------------------------------------------
# LDAP
#-------------------------------------------------------------------------------------
#-# LDAP authentication service
xwiki.authentication.authclass=com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl
#-# Turn LDAP authentication on - otherwise only XWiki authentication
#-# - 0: disable
#-# - 1: enable
#-# The default is 1
xwiki.authentication.ldap=1
#-# LDAP Server (Active Directory, eDirectory, OpenLDAP, etc.)
xwiki.authentication.ldap.server=ldap.companyname.com
xwiki.authentication.ldap.port=389
#-# LDAP login, empty = anonymous access, otherwise specify full dn
#-# {0} is replaced with the user name, {1} with the password
xwiki.authentication.ldap.bind_DN=cn={0},cn=users,dc=company,dc=com
xwiki.authentication.ldap.bind_pass={1}
#-# LDAP query to search the user in the LDAP database (in case a static
admin user is provided in xwiki.authentication.ldap.bind_DN)
#-# {0} is replaced with the user uid field name and {1} with the user name
#-# The default is ({0}={1})
# xwiki.authentication.ldap.ldap_user_search_fmt=({0}={1})
#-# Only members of the following group will be verified in the LDAP
#-# otherwise only users that are found after searching starting from the
base_DN
#
xwiki.authentication.ldap.user_group=cn=developers,ou=groups,o=MegaNova,c=US
#-# [Since 1.5RC1, XWikiLDAPAuthServiceImpl]
#-# Only users not member of the following group can autheticate
# xwiki.authentication.ldap.exclude_group=cn=admin,ou=groups,o=MegaNova,c=US
#-# The Base DN used in LDAP searches
xwiki.authentication.ldap.base_DN=cn=users,dc=usairways,dc=com
#-# Specifies the LDAP attribute containing the identifier to be used as the
XWiki name
#-# The default is cn
# xwiki.authentication.ldap.UID_attr=cn
#-# [Since 1.5M1, XWikiLDAPAuthServiceImpl]
#-# The potential LDAP groups classes. Separated by commas.
#
xwiki.authentication.ldap.group_classes=group,groupOfNames,groupOfUniqueNames,dynamicGroup,dynamicGroupAux,groupWiseDistributionList
#-# [Since 1.5M1, XWikiLDAPAuthServiceImpl]
#-# The potential names of the LDAP groups fields containings the members.
Separated by commas.
# xwiki.authentication.ldap.group_memberfields=member,uniqueMember
#-# retrieve the following fields from LDAP and store them in the XWiki user
object (xwiki-attribute=ldap-attribute)
xwiki.authentication.ldap.fields_mapping=last_name=sn,first_name=givenName,email=mail
#-# [Since 1.3M2, XWikiLDAPAuthServiceImpl]
#-# On every login update the mapped attributes from LDAP to XWiki otherwise
this happens only once when the XWiki account is created.
#-# - 0: only when creating user
#-# - 1: at each authentication
#-# The default is 1
xwiki.authentication.ldap.update_user=1
#-# [Since 1.3M2, XWikiLDAPAuthServiceImpl]
#-# Mapps XWiki groups to LDAP groups, separator is "|"
xwiki.authentication.ldap.group_mapping=XWiki.XWikiAdminGroup=cn=portal_administrators,cn=portal.071022.163744.037656000,cn=groups,dc=usairways,dc=com\
XWiki.XWikiAllGroup=cn=USPerson,cn=Common,cn=Groups,dc=usairways,dc=com
#-# [Since 1.3M2, XWikiLDAPAuthServiceImpl]
#-# Time in s after which the list of members in a group is refreshed from
LDAP
#-# The default is 2800
xwiki.authentication.ldap.groupcache_expiration=2800
#-# [Since 1.3M2, XWikiLDAPAuthServiceImpl]
#-# - create : synchronize group membership only when the user is first
created
#-# - always: synchronize on every login
#-# The default is always
xwiki.authentication.ldap.mode_group_sync=always
#-# [Since 1.3M2, XWikiLDAPAuthServiceImpl]
#-# if ldap authentication fails for any reason, try XWiki DB authentication
with the same credentials
#-# The default is 1
xwiki.authentication.ldap.trylocal=1
#-# [Since 1.3M2, XWikiLDAPAuthServiceImpl]
#-# SSL connection to LDAP server
#-# - 0: normal
#-# - 1: SSL
#-# The default is 0
# xwiki.authentication.ldap.ssl=0
#-# [Since 1.3M2, XWikiLDAPAuthServiceImpl]
#-# The keystore file to use in SSL connection
# xwiki.authentication.ldap.ssl.keystore=
#-# [Since 1.5M1, XWikiLDAPAuthServiceImpl]
#-# The java secure provider used in SSL connection
#-# The default is com.sun.net.ssl.internal.ssl.Provider
#
xwiki.authentication.ldap.ssl.secure_provider=com.sun.net.ssl.internal.ssl.Provider
#-# Bypass standard LDAP bind validation by doing a direct password
comparison.
#-# If you don't know what you do, don't use that. It's covering very rare
and bad use cases.
#-# - 0: disable
#-# - 1: enable
#-# The default is 0
# xwiki.authentication.ldap.validate_password=0
#-# [Since 1.5M1, XWikiLDAPAuthServiceImpl]
#-# Specifies the LDAP attribute containing the password to be used "when
xwiki.authentication.ldap.validate_password" is set to 1
# xwiki.authentication.ldap.password_field=userPassword
---------------------------
So, one thing my LDAP admin noticed was that in the LOG is looks like it is
trying to bid using:
Binding to LDAP server with credentials login=[*
uid=204428,cn=users,dc=company,dc=com*]
Where as in my xwiki.cfg file, I am using:
*xwiki.authentication.ldap.bind_DN=cn={0},cn=users,dc=company,dc=com*
*
*
Any reason you can think of that would cause this discrepancy?????
Thanks,
Chris
Hi all!
Running XWiki Enterprise 2.4.30451 I'm not able to get 1.2.3 format numbered TOC entries. Here what I'm doing:
http://ebiotic.net/bin/IDIS/AnnualReport
And there the concerned XWiki doc...
http://extensions.xwiki.org/xwiki/bin/view/Extension/TOC+Macro
Please, were is Note 2? Within the Parameters definition section ir reads:
"if should generate numbering (1.2.3 format) for titles (see also Note 2)"
I've browsed Jira issues for a description of the problem (solved or not) to no avail.
Please, where am I wrong? Thanks for your help!
Ricardo
--
Ricardo Rodríguez
Research Management and Promotion Technician
Health Research Institute of Santiago de Compostela (IDIS)
http://www.idisantiago.es
Nota: A información contida nesta mensaxe e os seus posibles documentos adxuntos é privada e confidencial e está dirixida únicamente ó seu destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por favor elimínea. A distribución ou copia desta mensaxe non está autorizada.
Nota: La información contenida en este mensaje y sus posibles documentos adjuntos es privada y confidencial y está dirigida únicamente a su destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, por favor elimínelo. La distribución o copia de este mensaje no está autorizada.
See more languages: http://www.sergas.es/aviso_confidencialidad.htm
I've been battling with partial documentations of
different install configurations on different versions
of systems and trying to collate them. I have probably
done all sorts of wrong things, but perhaps some one
here can set me straight with a few words.
I am remotely installing to a Natty server (a KVM VM)
via an ssh connection.
I installed a bunch of packages,among which are:
apache2, tomcat6, tomcat6-examples, tomcat6-user,
mysql-server, mysql-client
tomcat6 is working and I can get to it by the wiki.myhost.mydomain
DNS name.
I download the current xwiki.war using wget to
/var/lib/tomcat6/webapps/xwiki.war and tomcat6 seemed to have
automatically unpacked it.
The version was xwiki-enterprise-installer-generic-3.1-standard.jar
I downloaded the latest version of the mysql connector.
The version was mysql-connector-java-5.1.17.jar.
What I then discovered was that there was a META-INF directory
but no WEB-INF as described in the various install instructions
I read.
For the hell of it I then installed the openjdk-6-jdk package
which of course loaded a *lot* of other packages. I then tried
jar xf mysql-connector-java-5.1.17.jar
in the /var/lib/tomcat6/webapps/xwiki directory and that gave me
a META-INF and a couple other directories.
There is no hibernate.cfg.xml, described in all the install
info I have read, anywhere to be found.
I am certain I have at some point gone off the narrow twisty
path to success but have no idea where.
Advice would be much appreciated.
Dale Amon
Does anyone know why this code doesn't run? It runs if I comment out the
line on which I have typed //<<
The result of df.parse is a Date object and the property "Active" is of the
date type.
{{groovy}}
def obj = doc.getDocument().getObject("Events.EventClass")
def df = new java.text.SimpleDateFormat("yyyy-MM-dd")
obj.set("Active",df.parse("2001-02-03")) //<<
{{/groovy}}
Thanks,
Martin
Hello!
I want to create a treeview navigation element which looks like the left menu on this confluence page: http://www.stripesframework.org/display/stripes/Home
Therefore I created a new navigation element and tried to manipulate the original velocity code of the treeview. It is working but I have two problems:
- The main problem is that if I choose a page from a sublevel the whole page is reloaded and the sublevel is closed aftwerwards. How can I change this, it is very annoying?
- The second problem is that the menu is not width enough. After some levels the pages are not displayed properly. How can I prevent this?
This is my velocity code:
#panelheader('SpaceTreeMenu')
## Smartclient
$xwiki.jsfx.use('js/smartclient/initsc.js', {'forceSkinAction' : true, 'defer' : false})##
$xwiki.jsfx.use('js/smartclient/modules/ISC_Core.js', {'defer' : false})##
## TODO: remove this line
## when http://forums.smartclient.com/showthread.php?t=3097 will be fixed
$xwiki.jsfx.use('js/smartclient/overwritesc.js', {'defer' : false})##
$xwiki.jsfx.use('js/smartclient/modules/ISC_Foundation.js', {'defer' : false})##
$xwiki.jsfx.use('js/smartclient/modules/ISC_Containers.js', {'defer' : false})##
$xwiki.jsfx.use('js/smartclient/modules/ISC_Grids.js', {'defer' : false})##
$xwiki.jsfx.use('js/smartclient/modules/ISC_Forms.js', {'defer' : false})##
$xwiki.jsfx.use('js/smartclient/modules/ISC_DataBinding.js', {'defer' : false})##
$xwiki.jsfx.use('js/smartclient/skins/Enterprise/load_skin.js', {'defer' : false})##
## XWikiExplorer
$xwiki.jsfx.use('js/xwiki/xwikiexplorer/xwikiexplorer.js', {'forceSkinAction' : true, 'defer' : false})##
<div id="XWEWrapper" style="height:300px;"></div>
<script type="text/javascript">
isc.XWETreeGrid.create({
ID: "Treeview",
// Example of default values:
// defaultValue: "Main.WebHome",
// defaultValue: "Main.RecentChanges(a)lquo.gif",
defaultValue: "",
htmlElement: "XWEWrapper", // Mandatory HTML wrapper.
matchElement: true, // Make the widget match HTML wrapper size.
// Example of data sources:
// dataSource: isc.XWEDataSource.create({}),
// dataSource: isc.XWESpaceDataSource.create({ space: "Main" }),
dataSource: isc.XWEWikiDataSource.create({}),
displaySuggest: true, // Display the input at the bottom.
displayLinks: true, // Node titles are HTML links.
displayAttachments: true, // Display pages attachments.
displayAttachmentsOnTop: true // Display attachments before page children.
}).draw();
</script>
#panelfooter()
I hope someone can help me! Thank you!
Florian
Hello again, XWiki community.
I am working on using XWiki to be the repository for a library of process documents that will be added to and updated on a constant basis by members of our team. It looks like it's going to be a great resource for us.
However, I do have a question that involves rights and permissions. Our manager wants to incorporate an approval process in the process document wiki. She wants users to be able to edit existing process documents and create new process documents, but for those documents to go through a technical/style review by supervisors before they are published for use by the team. I don't see a way to manage permissions/rights to make that idea work for the wiki as a whole, though I can see a workaround for new process documents (force them to be created in a "Review" space). Is there a way to make user edits go through a review process before they can be published/go live?
I realize that this goes against the basic concept of a wiki in some ways, and I explained to our manager that we have version rollback capability, but she wants these controls in place prior to publishing.
Can anyone offer some guidance?
Thanks,
John
Hi,
I am trying to get XEM set up and am running into an HTTP 500 error
that I am unsure how to resolve. I originally went through the XEM
installation tutorial without any results, and thought the problem was
related to port configuration. My hosting provider said that my tomcat
instance was running on port 9001 and could not be changed. Now,
connecting to host.com:9001/xwiki brings up the following:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented
it from fulfilling this request.
exception
javax.servlet.ServletException: 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.
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)
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:627)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:129)
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:218)
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
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:424)
com.xpn.xwiki.XWiki.getXWiki(XWiki.java:493)
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:135)
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
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:627)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:129)
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:218)
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
I have double-checked my hibernate cfg file and think it looks
correct. I have commented out the default configuration and have this:
<property name="connection.url">jdbc:mysql://localhost/xwiki?useServerPrepStmts=false&useUnicode=true&characterEncoding=UTF-8&sessionVariables=sql_mode=''</property>
<property name="connection.username">user_xwiki</property>
<property name="connection.password">password1*</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="connection.provider_class">com.xpn.xwiki.store.DBCPConnectionProvider</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"/>
My database username is user_xwiki instead of xwiki - I cannot change
this, but could it be the problem? I am able to manually connect to
mysql using SSH and the username/password in the hibernate cfg, and
have granted that user all permissions in my control panel.
Poking around the archives, I also saw errors related to the hosts
file bringing up 500 errors. My hosts file is:
127.0.0.1 hornet localhost.localdomain localhost
I do not have permissions to edit the hosts file, but my error is
different from those which were resolved by changing it.
Any ideas?
Thank you,
aaron
The XWiki development team is proud to announce the release of XWiki
Enterprise 3.0.1.
This is the first (and probably last) bugfix release for the 3.0 series,
with 37 issues closed on top of 3.0.
Backported from the 3.1 branch, two new features found their way into
this release: the possibility to export a wiki document into an office
format using a running OpenOffice/LibreOffice installation, and the new
UI for customizing the PDF export. More details in the full release
notes, at
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWikiEnterpris…
Since this is a bugfix release on an older branch, the Download page
doesn't list the new binaries, but you can download them directly from
the OW2 Forge download page:
http://forge.ow2.org/project/showfiles.php?group_id=170
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
I have an instance of XWiki finally running on Cassandra.
http://kk.l.to:8080/xwikiOnCassandra/
Cassandra is a "NoSQL" database, unlike a traditional SQL database it cannot do advanced queries but it can store data in a more flexible way eg: each row is like a hashtable where additional "columns" can be added at will.
The most important feature of Cassandra is that multiple Cassandra nodes can be connected together into potentially very large "swarms" of nodes which reside in different racks or even data centers continents apart, yet all of them represent the same database.
Cassandra was developed by Facebook and their swarm was said to be over 200 nodes strong.
In it's application with XWiki, each node can have an XWiki engine sitting on top of it and users can be directed to the geographically closest node or to the node which is most likely to have a cache of the page which they are looking for.
Where a traditional cluster is a group of XWiki engines sitting atop a single MySQL engine, this allows for a group of XWiki engines to sit atop a group of Cassandra engines in a potentially very scalable way.
In a cloud setting, one would either buy access to a provided NoSQL store such as Google's BigTable or they would setup a number of XWiki/Cassandra stacks in a less managed cloud such as Rackspace's or Amazon's.
How it works:
XWiki objects in the traditional Hibernate based storage engine are persisted by breaking them up into properties which are then joined again when the object is loaded.
A user object which has a name and an age will occupy a row in each of three tables, the xwikiobjects table, the xwikistrings table, and the xwikiintegers table.
The object's metadata will be in the xwikiobjects table while the name will be in a row in the xwikistrings table and the age, a number, will go in the xwikiintegers table.
The NoSQL/Datanucleus based storage engine does this differently, the same object only occupies space in the XWikiDocument table where it takes advantage of Cassandra's flexibility by simply adding a new column for each property.
NOTE: this is not fully implemented yet, objects are still stored serialized.
What works
* Document storage
* Classes and Objects
* Attachments
* Links and Locks
* Basic querying with JDOQL
What doesn't work
* Querying inside of objects
* JPQL/XWQL queries
* Document history
* Permissions (requires unimplemented queries)
* The feature you want
I am interested in what the community thinks is the first priority, I can work on performance which will likely lead to patches being merged into master which will benefit everyone
or I can work on more features which will benefit people who want to use XWiki as a traditional application wiki but use it on top of Cassandra.
You can reply here or add comments to the wiki ;)
Caleb
Hello!
I am trying to install XWiki on a weblogic server in combination with mysql. However I always get an Error 500 in the Browser. In the admin log of the oracle domain the following error is written:
####<06.04.2011 17:03 Uhr MESZ> <Error> <HTTP> <ntas1> <AdminServer> <[ACTIVE] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <61e95e7340cb5d5a:f20d7c0:12ed576d9fd:-8000-000000000000053e> <1302102210137> <BEA-101017> <[ServletContext@59713337[app:xwiki-enterprise-web-2 module:xwiki-enterprise-web-2.7.1 path:/xwiki-enterprise-web-2.7.1 spec-version:2.5]] Root cause of ServletException.
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: Errors in named queries: listGroupsForUser, listGroupsForUserInOtherWiki
at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:417)
at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:486)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:137)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:117)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1198)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:416)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:130)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:69)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:218)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:113)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
>
In the XWiki the follwoing error is written:
2011-04-06 17:03:30,137 [http://dev.nettania.at:80/xwiki-enterprise-web-2.7.1/bin/view/Main/] ERROR impl.SessionFactoryImpl - Error in named query: listGroupsForUserInOtherWiki
org.hibernate.QueryException: dereferenced: stringprop2_.id.id [
select distinct doc.fullName from com.xpn.xwiki.doc.XWikiDocument as doc, com.xpn.xwiki.objects.BaseObject as obj, com.xpn.xwiki.objects.StringProperty as prop
where obj.name = doc.fullName
and obj.className='XWiki.XWikiGroups'
and obj.id = prop.id.id and prop.id.name='member'
and prop.value=:prefixedmembername
]
at org.hibernate.hql.classic.PathExpressionParser.token(PathExpressionParser.java:167)
at org.hibernate.hql.classic.WhereParser.doPathExpression(WhereParser.java:347)
at org.hibernate.hql.classic.WhereParser.doToken(WhereParser.java:382)
at org.hibernate.hql.classic.WhereParser.token(WhereParser.java:263)
at org.hibernate.hql.classic.ClauseParser.token(ClauseParser.java:86)
at org.hibernate.hql.classic.PreprocessingParser.token(PreprocessingParser.java:108)
at org.hibernate.hql.classic.ParserHelper.parse(ParserHelper.java:28)
at org.hibernate.hql.classic.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:216)
at org.hibernate.hql.classic.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:185)
at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:77)
at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:57)
at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72)
at org.hibernate.impl.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:402)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:352)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1300)
at com.xpn.xwiki.store.XWikiHibernateBaseStore.initHibernate(XWikiHibernateBaseStore.java:166)
at com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate(XWikiHibernateBaseStore.java:562)
at com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:1073)
at com.xpn.xwiki.store.XWikiHibernateBaseStore.executeRead(XWikiHibernateBaseStore.java:1117)
at com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager.getDBVersion(XWikiHibernateMigrationManager.java:68)
at com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager.<init>(AbstractXWikiMigrationManager.java:68)
at com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager.<init>(XWikiHibernateMigrationManager.java:52)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.xpn.xwiki.XWiki.createClassFromConfig(XWiki.java:1148)
at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:828)
at com.xpn.xwiki.XWiki.<init>(XWiki.java:772)
at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:398)
at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:486)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:137)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:117)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1198)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:416)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:130)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:69)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:218)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:113)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
2011-04-06 17:03:30,137 [http://dev.nettania.at:80/xwiki-enterprise-web-2.7.1/bin/view/Main/] WARN action.RequestProcessor - Unhandled Exception thrown: class com.xpn.xwiki.XWikiException
How can I fix this, I already tried a lot, but there seems a serious problem with the db mapping, however I am using a lot of own jav webapplication with hibernate on the server and I never got any problems. Adding the follwoing line to the hibernate.cfg.xml does not solve the problem:
<property name="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property>
Thanks,
Florian