Hi,
The scrollable box uggh i which you display code snippets is never as wide
as its containing box and thus usually has both horizontal and vertical
scroll bars uggh. This is very bad ui design. Code is impossible to read
easily and the select and copy. Scroll bars should be avoided whenever
possible.
WDYT?
Cheer
Jim
--
Jim Stuttard
Hi,
Thanks for the compliments on xwiki ! Well, database porting should be
discussed on the developers list (
http://forge.objectweb.org/mail/?group_id=170 ) and added to the xwiki
page on databases (
http://www.xwiki.org/xwiki/bin/view/Dev/Database+Porting )
Concerning your errors, it doesn't look good.. it seems hibernate is
chocking while looking at the capabilities of the DB2 driver.. However
when I look at this (
http://www-128.ibm.com/developerworks/db2/library/techarticle/0306bhogal/03…
) it seems it should work.
Maybe it fails on something specific in the mapping.. So you might want
to remove each column from the xwiki.hbm.xml file until it works to see
what is the cause. Maybe a simple change in the mapping can make it work
with B2 without breaking xwiki..
Ludovic
jhammonds(a)purina.com wrote:
> Hello,
>
> We just started an XWIKI installation in our group, and are pretty impressed
> with its capabilities. Typically, we are a DB2 shop; so, I have begun a
> migration of XWIKI to DB2 from MySQL. I finally got the databases in sync,
> and attempted to configure XWIKI to run against DB2 by doing the following:
> * I added the DB2 driver file to the \shared\lib directory.
> * I modified the "hibernate.cfg.xml" file based on what I thought it
> should be (see attached).
>
> I am using DB2 v7.2.2 and Tomcat v5.5.9.
>
> >From what I see, I believe I am getting a connect to the database, but am
> failing with the following exception (see below).
>
> I appreciate any help that you might have to offer. Also, I tried to find a
> place to post this problem to a general audience, but don't know where to do
> that. If you could direct me to that place I would appreciate it.
>
> Thanks,
> Johnnie Hammonds
>
> <<hibernate.cfg.xml>> <<stderr_20050811.log>>
> ----------------------------------------------------------------------------
> -----
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented it
> from fulfilling this request.
>
> exception
>
> javax.servlet.ServletException: Servlet execution threw an exception
>
> com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFi
> lter.java:127)
>
> root cause
>
> java.lang.AbstractMethodError:
> COM.ibm.db2.jdbc.app.DB2DatabaseMetaData.supportsResultSetType(I)Z
>
> org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:75)
>
> org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
>
> org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
>
> com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.ja
> va:124)
>
> com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.j
> ava:258)
>
> com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.jav
> a:570)
>
> com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:123)
> com.xpn.xwiki.XWiki.getDocument(XWiki.java:565)
> com.xpn.xwiki.XWiki.getDocument(XWiki.java:599)
> com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:1019)
> com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:1014)
> com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:422)
> com.xpn.xwiki.XWiki.initXWiki(XWiki.java:397)
> com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
> com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
> com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
> com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
>
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
> sor.java:421)
>
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
>
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFi
> lter.java:127)
>
> note The full stack trace of the root cause is available in the Apache
> Tomcat/5.5.9 logs.
>
> _____
>
>
>
>
>
--
Ludovic Dubost
XPertNet: http://www.xpertnet.fr/
Blog: http://www.ludovic.org/blog/
XWiki: http://www.xwiki.com
Skype: ldubost AIM: nvludo Yahoo: ludovic
Hi developers,
Artem, the google summer of code student working on the query API has a
first test implementation of an XPath like query implementation based on
the JackRabbit JCR package.
It's pretty neat.. Here is for example how to list child documents of a
page:
//*/*[@parent='Dev.IndependentQueryAPI'/@fullName]
or how to list all users
//*/*/obj/XWiki/XWikiUsers/@name - list all users
More info and feeback welcome here:
http://usunet.ru/xwiki/bin/view/Dev/IndependentQueryAPI
Ludovic
Artem is working on a Google Summer of Code project to build a
independent query API for XWiki..
This will define the new query languages for XWiki.. This has an
important impact on what xwiki will become..
Feel free to join the discussion on the API
http://jira.xwiki.org/jira/browse/XWIKI-98
Ludovic
It seems some people like jwebunit (I've never used it myself) and it may be
a good fit for xwiki functional tests.
It would then be possible to add some xwiki layer on top of it so that
functional tests could be edited in the wiki itself (a la fatcow/fitnesse).
Just an idea that I'm logging for fear of loosing it :-)
-Vincent
I'm using Tomcat 5.9 with XWiki 0.9.794. When i login to xwiki it throws an error like this,
18:14:40,479 ERROR http-8081-Processor23 http://localhost:8878/xwiki/bin/view/Ma
in/WebHome AssertionFailure:<init>:22 - an assertion failure occured (this may i
ndicate a bug in Hibernate, but is more likely due to unsafe use of the session)
org.hibernate.AssertionFailure: possible nonthreadsafe access to session
at org.hibernate.action.EntityDeleteAction.execute(EntityDeleteAction.ja
va:68)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:239)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:223)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:141)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutio
ns(AbstractFlushingEventListener.java:274)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlus
hEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:726)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:320)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java
:86)
at com.xpn.xwiki.store.XWikiHibernateStore.endTransaction(XWikiHibernate
Store.java:342)
at com.xpn.xwiki.store.XWikiHibernateStore.deleteXWikiCollection(XWikiHi
bernateStore.java:974)
at com.xpn.xwiki.stats.impl.XWikiStatsServiceImpl.notify(XWikiStatsServi
ceImpl.java:205)
at com.xpn.xwiki.notify.XWikiActionRule.verify(XWikiActionRule.java:51)
at com.xpn.xwiki.notify.XWikiNotificationManager.verify(XWikiNotificatio
nManager.java:93)
at com.srilogic.xwiki.user.web.ViewEditAction.execute(ViewEditAction.jav
a:283)
at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:421)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:116
4)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEnc
odingFilter.java:127)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at com.srilogic.iportal.security.catalina.authenticator.SingleSignOn.inv
oke(SingleSignOn.java:374)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
at java.lang.Thread.run(Thread.java:534)
com.xpn.xwiki.XWikiException: Error number 3213 in 3: Exception while deleting o
bject XWiki.admin
Wrapped Exception: possible nonthreadsafe access to session
at com.xpn.xwiki.store.XWikiHibernateStore.deleteXWikiCollection(XWikiHi
bernateStore.java:978)
at com.xpn.xwiki.stats.impl.XWikiStatsServiceImpl.notify(XWikiStatsServi
ceImpl.java:205)
at com.xpn.xwiki.notify.XWikiActionRule.verify(XWikiActionRule.java:51)
at com.xpn.xwiki.notify.XWikiNotificationManager.verify(XWikiNotificatio
nManager.java:93)
at com.srilogic.xwiki.user.web.ViewEditAction.execute(ViewEditAction.jav
a:283)
at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:421)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:116
4)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEnc
odingFilter.java:127)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at com.srilogic.iportal.security.catalina.authenticator.SingleSignOn.inv
oke(SingleSignOn.java:374)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
at java.lang.Thread.run(Thread.java:534)
Wrapped Exception:
org.hibernate.AssertionFailure: possible nonthreadsafe access to session
at org.hibernate.action.EntityDeleteAction.execute(EntityDeleteAction.ja
va:68)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:239)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:223)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:141)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutio
ns(AbstractFlushingEventListener.java:274)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlus
hEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:726)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:320)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java
:86)
at com.xpn.xwiki.store.XWikiHibernateStore.endTransaction(XWikiHibernate
Store.java:342)
at com.xpn.xwiki.store.XWikiHibernateStore.deleteXWikiCollection(XWikiHi
bernateStore.java:974)
at com.xpn.xwiki.stats.impl.XWikiStatsServiceImpl.notify(XWikiStatsServi
ceImpl.java:205)
at com.xpn.xwiki.notify.XWikiActionRule.verify(XWikiActionRule.java:51)
at com.xpn.xwiki.notify.XWikiNotificationManager.verify(XWikiNotificatio
nManager.java:93)
at com.srilogic.xwiki.user.web.ViewEditAction.execute(ViewEditAction.jav
a:283)
at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:421)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:116
4)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEnc
odingFilter.java:127)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at com.srilogic.iportal.security.catalina.authenticator.SingleSignOn.inv
oke(SingleSignOn.java:374)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
at java.lang.Thread.run(Thread.java:534)
18:14:43,133 WARN http-8081-Processor24 RequestUtils:createActionForm:177 - No
FormBeanConfig found under 'skin'
Finally it says No FormBeanConfig found under 'skin'. If i'm correct something is missing in the struts-config.xml. But i'm not sure whether this is relevant to above exception
Renaming the webapp to 'xwiki' instead of 'xwiki-exo-0.9.840' didn't
solve the problem.
---------- Forwarded message ----------
From: Ludovic Dubost <ludovic(a)xwiki.org>
Date: Aug 3, 2005 4:07 PM
Subject: Re: XWiki+eXo problem
To: Catalin Hritcu <catalin.hritcu(a)gmail.com>
You should send this to the developers list.
It' seems tehre is an issue with class loading and hibernate..
It might be needed to play around with the jars
Also you should rename the webapp to 'xwiki' instead of 'xwiki-exo-0.9.840'
23:48:58,343 ERROR http-8080-Processor23
http://localhost:8080/xwiki-exo-0.9.840/bin/view/Main/WebHome
BasicLazyInitializer:getProxyFactory:103 - CGLIB Enhancement failed:
com.xpn.xwiki.objects.classes.DateClass
java.lang.NoClassDefFoundError
at net.sf.cglib.proxy.Enhancer.getMethods(Enhancer.java:428)
at net.sf.cglib.proxy.Enhancer.generateClass(Enhancer.java:452)
at
net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
at
net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:215)
at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:373)
at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:281)
at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:640)
at
org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:94)
at
org.hibernate.proxy.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:42)
at
org.hibernate.tuple.PojoTuplizer.buildProxyFactory(PojoTuplizer.java:144)
at org.hibernate.tuple.AbstractTuplizer.<init>(AbstractTuplizer.java:83)
at org.hibernate.tuple.PojoTuplizer.<init>(PojoTuplizer.java:54)
at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:47)
at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:217)
at
org.hibernate.persister.entity.BasicEntityPersister.<init>(BasicEntityPersister.java:400)
at
org.hibernate.persister.entity.JoinedSubclassEntityPersister.<init>(JoinedSubclassEntityPersister.java:87)
Catalin Hritcu wrote:
> Hello Ludovic,
>
> Could you please give me some info on how to use XWiki with eXo Portal
> Platform. I tried a lot of different versions of XWiki, and different
> configurations, but none of them worked. I mention that the standalone
> version (no eXo) worked fine for me. I am attaching the tomcat output,
> maybe you can give me some hints on how to fix this problem. Or maybe
> you already have a description on how to install XWiki with eXo Portal
> Platform, to which you could give me a link.
>
> Many Thanks,
> Catalin Hritcu
>
--
Ludovic Dubost
XPertNet: http://www.xpertnet.fr/
Blog: http://www.ludovic.org/blog/
XWiki: http://www.xwiki.com
Skype: ldubost AIM: nvludo Yahoo: ludovic