[xwiki-users] Derby support working
Vincent Massol
vincent at massol.net
Tue Jun 5 10:26:38 CEST 2007
Hi Brian,
I know what's wrong. We've changed the database model a bit in 1.1
(we've added a comment field) so as you're using 1.0 the
XWikiDocument class doesn't have the getter/setter for comments.
+ <property name="comment" type="string">
+ <column name="XWD_COMMENT" length="1023" not-null="true" />
+ </property>
I've uploaded a fixed HBM file on
http://www.xwiki.org/xwiki/bin/view/AdminGuide/InstallationDerby
Sorry about that
-Vincent
On Jun 5, 2007, at 3:57 AM, Brian J. Sayatovic wrote:
> I tried the XML file you provided in the linked page. I got past
> where I was stuck before, but now got this:
>
> org.hibernate.PropertyNotFoundException: Could not find a getter
> for comment in class com.xpn.xwiki.doc.XWikiDocument
> at org.hibernate.property.BasicPropertyAccessor.createGetter
> (BasicPropertyAccessor.java:282)
> at org.hibernate.property.BasicPropertyAccessor.getGetter
> (BasicPropertyAccessor.java:275)
> at org.hibernate.mapping.Property.getGetter(Property.java:251)
> at org.hibernate.tuple.PojoEntityTuplizer.buildPropertyGetter
> (PojoEntityTuplizer.java:255)
> at org.hibernate.tuple.AbstractEntityTuplizer.<init>
> (AbstractEntityTuplizer.java:121)
> at org.hibernate.tuple.PojoEntityTuplizer.<init>
> (PojoEntityTuplizer.java:55)
> at org.hibernate.tuple.TuplizerLookup.create
> (TuplizerLookup.java:64)
> at org.hibernate.tuple.EntityMetamodel.<init>
> (EntityMetamodel.java:257)
> at org.hibernate.persister.entity.AbstractEntityPersister.<init>
> (AbstractEntityPersister.java:412)
> at
> org.hibernate.persister.entity.SingleTableEntityPersister.<init>
> (SingleTableEntityPersister.java:108)
> at org.hibernate.persister.PersisterFactory.createClassPersister
> (PersisterFactory.java:55)
> at org.hibernate.impl.SessionFactoryImpl.<init>
> (SessionFactoryImpl.java:215)
> at org.hibernate.cfg.Configuration.buildSessionFactory
> (Configuration.java:1176)
> at com.xpn.xwiki.store.XWikiHibernateBaseStore.initHibernate
> (XWikiHibernateBaseStore.java:134)
> at com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate
> (XWikiHibernateBaseStore.java:389)
> at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc
> (XWikiHibernateStore.java:342)
> at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc
> (XWikiCacheStore.java:160)
> at com.xpn.xwiki.XWiki.getDocument(XWiki.java:936)
> at com.xpn.xwiki.XWiki.getDocument(XWiki.java:970)
> at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:2179)
> at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:675)
> at com.xpn.xwiki.XWiki.<init>(XWiki.java:567)
> at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:282)
> at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:383)
> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:96)
> at ...
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
> (ThreadPool.java:684)
> at java.lang.Thread.run(Unknown Source)
>
> This is using XWiki 1.0.
>
> Did you encounter this along the way?
>
> Regards,
> Brian.
>
> Vincent Massol wrote:
>> FWIW I've succeeded in running XWiki on Derby and I have created
>> this page to document it:
>> http://www.xwiki.org/xwiki/bin/view/AdminGuide/InstallationDerby
>>
>> -Vincent
>>
>>
>> --
>> You receive this message as a subscriber of the xwiki-
>> users at objectweb.org mailing list.
>> To unsubscribe: mailto:xwiki-users-unsubscribe at objectweb.org
>> For general help: mailto:sympa at objectweb.org?subject=help
>> ObjectWeb mailing lists service home page: http://
>> www.objectweb.org/wws
>>
>
>
> --
> You receive this message as a subscriber of the xwiki-
> users at objectweb.org mailing list.
> To unsubscribe: mailto:xwiki-users-unsubscribe at objectweb.org
> For general help: mailto:sympa at objectweb.org?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/
> wws
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xwiki.org/pipermail/users/attachments/20070605/fda7af25/attachment-0001.htm
More information about the users
mailing list