Windows users can rejoice -- http://www.google.com/chrome -- Because they
work nicely together. Much faster/smoother. Unfortunately, to get it on
linux, you have to switch to google's
linux<http://news.cnet.com/8301-17939_109-10281744-2.html?tag=newsLeadStoriesArea…>.
I didn't realize chrome was worth bothering with until I understood all the
announcements, which is what got me to switch. (I still use Firefox on Linux
(via X protocol) to run "firebug")... I think IE won't be able to
So far, the biggest new feature I get, other than blazing fast javascript,
is that text boxes (e.g. comment panels, object-editor panels, etc) are
resizeable. (If it's in an "accordion" like in the object editor, you have
to collapse/reexpand to get the sizing correct if you make the window larger
than it's original display.)
Niels
http://nielsmayer.com
Dear All
I have inserted a captcha field into our registration page. It validates
correctly. However the user is still registered even if the code is
incorrectly entered.
I have tried to find the part within the code which actaully does the
registering once the fields are correctly filled in. I could then put this
in an if statement which depends on $reg and the captcha field. However I
can't find it.
Please, please, please can someone now just help me finish off.
I attach a short version of the code I have.
## declare the plugin
#set($captchaPlugin = $xwiki.jcaptcha)
##verify captcha
##call the verifyCaptcha
#if($captchaPlugin.verifyCaptcha("edit"))
<h2>captcha correct</h2>
#else
<h2>captcha wrong</h2>
#end
#if(!$reg||$reg<0 )
<p>Welcome ......</p>
#end
#if($reg && $reg<=0)
#if($reg==-2)
#error("$msg.get('core.register.passwordMismatch')")
#elseif($reg==-3)
#error("$msg.get('core.register.userAlreadyExists')")
#elseif($reg==-4)
#error("$msg.get('core.register.invalidUsername')")
#elseif($reg==-8)
#error("$msg.get('core.register.userAlreadyExists')")
#else
#error("$msg.get('core.register.registerFailed', [$reg])")
#end
#elseif($reg)
#set($xwname = "XWiki.${request.xwikiname}")
#info("$msg.get('core.register.successful',
[$xwiki.getUserName($xwname), $request.xwikiname])")
#end
#if(!$reg||$reg<0)
<form id="register" action="verifyCaptcha" method="post">
<div>
#set($captchaPlugin = $xwiki.jcaptcha)
<input type="hidden" name="template" value="XWiki.XWikiUserTemplate"
/>
<input type="hidden" name="register" value="1"/>
#set($class = $xwiki.getClass("XWiki.XWikiUsers"))
#set($obj = $class.newObject())
#set($serverobj = $class.newObject())
#set($discard = $doc.use("XWiki.XWikiUsers"))
#if($request.register_first_name)
$doc.set("first_name", $request.register_first_name)
#end
#if($request.register_last_name)
$doc.set("last_name", $request.register_last_name)
#end
<dl>
##username
<dt>$msg.get("core.register.username")</dt>
<dd><input name="xwikiname" type="text" size="20" onfocus="
prepareName(document.forms.register);" /></dd>
##password
##lots of form fields here
#if ($captchaPlugin)
$captchaPlugin.displayCaptcha("edit","register_captcha")
#end
<span class="buttonwrapper"><input type="submit"
value="$msg.get("core.register.submit")"/></span></div>
</form>
#end
I could use some help on getting an XWiki server working with Oracle.
I followed the instructions here:
http://platform.xwiki.org/XWiki/bin/view/AdminGuide/InstallationOracle
The mentioned xwiki-oracle.hbm.xml file I finally found here:
http://www.xwiki.org/XWiki/bin/view/FAQ/Isthereasimplewaygettingxwikiworkin…
.
I placed it in the suggested xwiki/Web-INF/classes sub-directory.
But, I could not find a feeds.oracle.hbm.xml file anywhere. (Why would the
page mention those XML files yet not provide them?)
I made the necessary changes to hibernate.cfg.xml file in WEB-INF. I even
placed the ojdbc5.jar (latest rev) in the webaps/WEB-INF/lib directory. I
know that the JDBC jar file is correct because I had to put it in the
jetty/ext directory to get groovy script on one of our pages to
successfully connect to a different Oracle instance and pull data onto the
page. (Side note: groovy classes really need to be on their own separate
pages due to parsing issues with velocity and groovy. This was a heard
learned lesson).
So, I made the changes from the above instructions and created an xwiki
user on my Oracle 10g express edition DB which I installed on our Red-Hat
Linux server. So far things seemed to go well until I tried to pull it all
together and fire up the xwiki server and connect to it from the browser.
Below is the error I received:
HTTP ERROR: 500
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 parse mapping document from resource
xwiki.oracle.hbm.xml
RequestURI=/xwiki/bin/CEDSYard/
Powered by Jetty://
The request URI is the configured main page for our wiki. I see no new
tables in the xe Oracle DB.
All of the past emails on the subject in the user list haven't supplied
any answers. I really hope I can get some help on this.
What do I need to do to get Oracle and xwiki to work together since the
instructions I've found miss crucial elements of the puzzle?
Thanks,
Dean Weber
Sr Software Engineer II
Raytheon Technical Services Company LLC
6125 E 21 Street, MS 36
Indianapolis, IN 46219 USA
317.306.2657 Phone
317.306.4253 Fax
Dean.G.Weber(a)raytheon.com
All,
The log-in link on my wiki's main page was broken so I modified its global.vm file in an effort to fix it. After saving my changes and refreshing the wiki, however, I was given an HTTP status 500 error message by my server. I looked into the problem and it appears as though the issue lies with my hibernate.cfg.xml file which is included below:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<!-- Template for hibernate configuration. processing by maven using profiles.
Replace original src/main/webapp/WEB-INF/hibernate.cfg.xml -->
<hibernate-configuration>
<session-factory>
<property name="show_sql">false</property>
<property name="use_outer_join">true</property>
<property name="dbcp.defaultAutoCommit">false</property>
<property name="dbcp.maxActive">50</property>
<property name="dbcp.maxIdle">5</property>
<property name="dbcp.maxWait">30000</property>
<property name="dbcp.whenExhaustedAction">1</property>
<property name="dbcp.ps.whenExhaustedAction">1</property>
<property name="dbcp.ps.maxActive">20</property>
<property name="dbcp.ps.maxWait">120000</property>
<property name="dbcp.ps.maxIdle">20</property>
<!-- Please refer to the installation guide on
http://www.xwiki.org/xwiki/bin/view/AdminGuide/Installation for configuring your
database. You'll need to do 2 things:
1) Copy your database driver JAR in WEB-INF/lib or in some shared lib directory
2) Uncomment the properties below for your specific DB
-->
<property name="connection.url">jdbc:hsqldb:file:database/xwiki_db;shutdown=true</property>
<property name="connection.username">sa</property>
<property name="connection.password"></property>
<property name="connection.driver_class">org.hsqldb.jdbcDriver</property>
<property name="dialect">org.hibernate.dialect.HSQLDialect</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 files -->
<mapping resource="xwiki.hbm.xml"/>
<mapping resource="feeds.hbm.xml"/>
<!-- MySQL configuration.
Uncomment if you want to use MySQL and comment out other database configurations.
Note that the database will be created automatically if it doesn't already exist.
We need to set the sql_mode to a less strict value, see XWIKI-1945
<property name="connection.url">jdbc:mysql://localhost/xwiki?useServerPrepStmts=false&sessionVariables=sql_mode=''</property>
<property name="connection.username">xwiki</property>
<property name="connection.password">xwiki</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"/>
-->
<!-- HSQLDB configuration.
Uncomment if you want to use HSQLDB and comment out other database configurations.
Note that the database will be created automatically if it doesn't already exist.
<property name="connection.url">jdbc:hsqldb:file:/some/path/xwikidb;shutdown=true</property>
<property name="connection.username">sa</property>
<property name="connection.password"></property>
<property name="connection.driver_class">org.hsqldb.jdbcDriver</property>
<property name="dialect">org.hibernate.dialect.HSQLDialect</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"/>
-->
<!-- PostgreSQL configuration.
Uncomment if you want to use PostgreSQL and comment out other database configurations.
Note that the database will be created automatically if it doesn't already exist.
<property name="connection.url">jdbc:postgresql:xwiki</property>
<property name="connection.username">xwiki</property>
<property name="connection.password">xwiki</property>
<property name="connection.driver_class">org.postgresql.Driver</property>
<property name="dialect">org.hibernate.dialect.PostgreSQLDialect</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"/>
-->
<!-- Oracle configuration.
Uncomment if you want to use Oracle and comment out other database configurations.
Note: the 2 properties named "hibernate.connection.SetBigStringTryClob" and
"hibernate.jdbc.batch_size". They are required to tell Oracle to allow CLOBs larger than
32K.
<property name="connection.url">jdbc:oracle:thin:@localhost:1521:XE</property>
<property name="connection.username">xwiki</property>
<property name="connection.password">xwiki</property>
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="dialect">org.hibernate.dialect.Oracle10gDialect</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>
<property name="hibernate.connection.SetBigStringTryClob">true</property>
<property name="hibernate.jdbc.batch_size">0</property>
<mapping resource="xwiki.oracle.hbm.xml"/>
<mapping resource="feeds.oracle.hbm.xml"/>
-->
<!-- Derby configuration.
Uncomment if you want to use Derby and comment out other database configurations.
Note that the database will be created automatically if it doesn't already exist.
<property name="connection.url">jdbc:derby:/some/path/xwikidb;create=true</property>
<property name="connection.driver_class">org.apache.derby.jdbc.EmbeddedDriver</property>
<property name="dialect">org.hibernate.dialect.DerbyDialect</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.derby.hbm.xml"/>
<mapping resource="feeds.hbm.xml"/>
-->
</session-factory>
</hibernate-configuration>
Although I used MySQL to install the wiki, it ran just fine with the MySQL section commented out. I'll do some additional research but for now any comments or suggestions you have would be greatly appreciated.
Thank you in advance.
Respectfully,
Joe Lawry
Hi All,
This problem has been driving me crazy for several days. I have XWiki
running in Tomcat and it works fine, but I am trying to get LDAP
authentication implemented and am unable to get past this current issue.
I have looked at all the past issues mentioned on this group and
searched the internet, but none of the cases seem to be related to mine.
I am able to use LDAP with Apache httpd from my machine against our AD
Server, but unable to get XWiki (in Tomcat) to do the same. I have tried
different versions of XWiki 1.9.2 and 2.0, followed the instructions
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication#HLDAP
ConfigurationforActiveDirectory, and am able to bind and find the user
uid, but then it fails on the password authentication.
This is the problem -- XWiki appears to find the user in the directory
then fails on the userPassword attribute:
2009-07-06 16:00:34,812
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPUtils - Searching for the
user in LDAP: user:rgill base:dc=AcceptSoftware,dc=local
query:(sAMAccountName=rgill) uid:sAMAccountName
2009-07-06 16:00:34,812
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection - LDAP search:
baseDN=[dc=AcceptSoftware,dc=local] query=[(sAMAccountName=rgill)]
attr=[[sAMAccountName, sn, givenName, displayName, mail, dn]]
ldapScope=[2]
2009-07-06 16:00:34,859
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection - - values for
attribute "displayName"
2009-07-06 16:00:34,859
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection - |- [Regan
Gill]
2009-07-06 16:00:34,859
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection - - values for
attribute "givenName"
2009-07-06 16:00:34,859
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection - |- [Regan]
2009-07-06 16:00:34,859
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection - - values for
attribute "sn"
2009-07-06 16:00:34,859
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection - |- [Gill]
2009-07-06 16:00:34,859
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection - - values for
attribute "mail"
2009-07-06 16:00:34,859
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection - |-
[rgill(a)acceptsoftware.com]
2009-07-06 16:00:34,859
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection - - values for
attribute "sAMAccountName"
2009-07-06 16:00:34,859
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection - |- [rgill]
2009-07-06 16:00:34,875
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection - LDAP search found
attributes: [{name=dn value=CN=Regan
Gill,OU=Users,OU=Fremont,OU=ASC,DC=AcceptSoftware,DC=local},
{name=displayName value=Regan Gill}, {name=givenName value=Regan},
{name=sn value=Gill}, {name=mail value=rgill(a)acceptsoftware.com},
{name=sAMAccountName value=rgill}]
2009-07-06 16:00:34,875
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection - Unable to verify
password because userPassword attribute not found.
LDAPException: No Such Attribute (16) No Such Attribute
LDAPException: Server Message: 00002080: AtrErr: DSID-03080139, #1:
0: 00002080: DSID-03080139, problem 1001
(NO_ATTRIBUTE_OR_VAL), data 0, Att 23 (userPassword)
LDAPException: Matched DN:
at
com.novell.ldap.LDAPResponse.getResultException(Unknown Source)
at com.novell.ldap.LDAPResponse.chkResultCode(Unknown
Source)
at com.novell.ldap.LDAPConnection.chkResultCode(Unknown
Source)
at com.novell.ldap.LDAPConnection.compare(Unknown
Source)
at com.novell.ldap.LDAPConnection.compare(Unknown
Source)
at
com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.checkPassword(XWikiLDAPCon
nection.java:251)
at
com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticateIn
Context(XWikiLDAPAuthServiceImpl.java:398)
The error message in red is exactly what the AD server sends back when
the request is made so I know its coming from the AD server itself.
However when I using Apache, it authenticates using the same
information:
[Mon Jul 06 16:05:56 2009] [debug] mod_authnz_ldap.c(474): [client
127.0.0.1] [4444] auth_ldap authenticate: accepting rgill, referer:
In addition we have another application that is also able to bind and
authenticate with the same settings and AD Server. Since the user is
being found in AD in both cases I would expect the authenticate to work
as well in XWiki as in Apache's LDAP module. I am not an LDAP or Active
Directory expert but it unless someone can help, I may need to become
one to get this to work...
Thanks,
Regan
________________________________________________________
Regan Gill | Process Architect | Accept Software Corporation
office: +1.510.403.4023 | mobile: +1.510.798.3082 | fax: +1.510.979.0220
42840 Christy Street, Suite 201, Fremont, CA 94538 USA
www.acceptsoftware.com <http://www.acceptsoftware.com/>
Just updated * XWiki.XWikiGroupSheet
(xwiki-enterprise-wiki-2.0-milestone-1.xar) an got page listing feature
but lost Add User To a group button?
Any ideas?
--------------------------------------------------------
NOTICE
This message and any files transmitted with it is intended for the addressee only and may contain information that is confidential or privileged. Unauthorised use is strictly prohibited. If you are not the addressee, you should not read, copy, disclose or otherwise use this message, except for the purpose of delivery to the addressee.
Any views or opinions expressed within this e-mail are those of the author and do not necessarily represent those of Coventry University.
Hi, can someone help me with setting up CAPTCHA with the albatross skin for
registration and comments? Is there some example code I could look at? Or if
someone has this working could they give some guidence? I have the captcha
plugin enabled but I'm kinda stuck on what to do next. Thanks in advance.
-Marlon
Hello, i'm new to XWiki
I am more used to MediaWiki, thanks to Wikipedia and i was looking for two features from MediaWiki :
- the Category thing : the ability to filter pages by category. Maybe Xwiki does have this functionnality but i have search macro and snippets and FAQs but i can't find how Xwiki named this functionnality.
- the Modele thing : I would like to create several pages on a same modele : like zoologic classification record : all pages should use the same template : name, nature, classification, sub classification etc… Is it possible to create a canvas with XWiki (maybe a page) and include the page with parameters so, once opened, the page will have all the fields fill by the parameters ?
Cordialement
Best Regards
MAI Phương Trâm
Nouvelles Frontières Informatique
=====================
NOUVELLES FRONTIERES
74, rue de Lagny
API 4A10
93107 MONTREUIL CEDEX
+33(0)1 48 51 81 21
Hello there,
I was looking forward to have a more specific statistics website on my xwiki.
Actually, I would like to monitor which user visited a space, how many times he or she did it. Is there any tool (xwiki or external tool) that allows me to do that?
Thanks in advance !
Best Regards