Hello, I am working on new xml-rpc apis for p2pxwiki, and am using
Eclipse as just my editor (I am not doing any development related to
eclipse). I imported the xwiki project in eclipse and used resin to run
xwiki locally. I got some errors (most of them "seems" benign, but I
wanted to point out anyway incase these will lead to more problems later)
a) Eclipse complained about a missing commons-lang-2.0.jar in the lib
directory. I checked the lib directory, it has "commons-lang-2.1.jar"
instead. I am not sure why Eclipse is not using the new library. As a
fix I downloaded the 2.0 version of commons-lang and put it in the lib
directory. It solved this problem.
b) After running xwiki locally,
"http://127.0.0.1:8080/xwiki/bin/view/Main/WebHome" pointed to a xwiki
document. However, I got few errors on the resin console as follows (the
transcript follows below)
Let me know how I can fix these problems. I am using FC4.
Thanks a lot,
-Bikash
-----------------------------o<---------Error Transcript --------------
o<-------------
(i)
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: xwiki.log (Permission denied)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:272)
at
org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:156)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:151)
at
org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:247)
at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:123)
at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:87)
at
org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:645)
at
org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:603)
at
org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:500)
at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:406)
at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:432)
at
org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:460)
at org.apache.log4j.LogManager.<clinit>(LogManager.java:113)
at org.apache.log4j.Logger.getLogger(Logger.java:85)
at
org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:229)
at
org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:65)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
at
org.apache.struts.action.ActionServlet.<clinit>(ActionServlet.java:228)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at
com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:584)
at
com.caucho.server.dispatch.ServletManager.init(ServletManager.java:152)
at com.caucho.server.webapp.Application.start(Application.java:1546)
at
com.caucho.server.deploy.DeployController.startImpl(DeployController.java:563)
at
com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
at
com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:451)
at
com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:157)
at
com.caucho.server.webapp.ApplicationContainer.start(ApplicationContainer.java:610)
at com.caucho.server.host.Host.start(Host.java:385)
at
com.caucho.server.deploy.DeployController.startImpl(DeployController.java:563)
at
com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
at
com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:451)
at
com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:157)
at com.caucho.server.host.HostContainer.start(HostContainer.java:468)
at com.caucho.server.resin.ServletServer.start(ServletServer.java:934)
at
com.caucho.server.deploy.DeployController.startImpl(DeployController.java:563)
at
com.caucho.server.deploy.AbstractDeployControllerStrategy.start(AbstractDeployControllerStrategy.java:56)
at
com.caucho.server.deploy.DeployController.start(DeployController.java:459)
at com.caucho.server.resin.ResinServer.start(ResinServer.java:465)
at com.caucho.server.resin.Resin.init(Resin.java)
at com.caucho.server.resin.Resin.main(Resin.java:612)
(ii)
14:33:23,196 WARN resin-tcp-connection-*:8080-1
RequestUtils:createActionForm:177 - No FormBeanConfig found under 'view'
14:33:29,190 WARN resin-tcp-connection-*:8080-1
http://127.0.0.1:8080/xwiki/bin/view/Main/WebHome
Configurator:configure:126 - No configuration found. Configuring ehcache
from ehcache-failsafe.xml found in the classpath:
jar:file:/home/bikash/work/p2pxwiki/xwiki-svn/xwiki/trunk/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
14:33:33,413 ERROR resin-tcp-connection-*:8080-1
http://127.0.0.1:8080/xwiki/bin/view/Main/WebHome
XWikiHibernateStore:updateSchema:193 - Schema update for wiki xwiki
14:33:37,479 WARN resin-tcp-connection-*:8080-1
http://127.0.0.1:8080/xwiki/bin/view/Main/WebHome
XWikiStatsServiceImpl:addCookie:474 - Setting cookie
FCB7IS5SEPHMCERDOAZCTGSYDBKZXJPN for name visitid with domain null and
path / and maxage 769251
14:33:37,637 ERROR resin-tcp-connection-*:8080-1
http://127.0.0.1:8080/xwiki/bin/view/Main/WebHome
AssertionFailure:<init>:22 - an assertion failure occured (this may
indicate 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.java: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.performExecutions(AbstractFlushingEventListener.java:274)
at
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.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(XWikiHibernateStore.java:409)
at
com.xpn.xwiki.store.XWikiHibernateStore.deleteXWikiCollection(XWikiHibernateStore.java:1097)
at
com.xpn.xwiki.stats.impl.XWikiStatsServiceImpl.notify(XWikiStatsServiceImpl.java:209)
at com.xpn.xwiki.notify.XWikiActionRule.verify(XWikiActionRule.java:51)
at
com.xpn.xwiki.notify.XWikiNotificationManager.verify(XWikiNotificationManager.java:93)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:179)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:115)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
at
com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:99)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
at
com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
at
com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:163)
at
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:208)
at
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:259)
at com.caucho.server.port.TcpConnection.run(TcpConnection.java:363)
at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:490)
at com.caucho.util.ThreadPool.run(ThreadPool.java:423)
at java.lang.Thread.run(Thread.java:595)
(iii)
com.xpn.xwiki.XWikiException: Error number 3213 in 3: Exception while
deleting object XWiki.bikash
Wrapped Exception: possible nonthreadsafe access to session
at
com.xpn.xwiki.store.XWikiHibernateStore.deleteXWikiCollection(XWikiHibernateStore.java:1101)
at
com.xpn.xwiki.stats.impl.XWikiStatsServiceImpl.notify(XWikiStatsServiceImpl.java:209)
at com.xpn.xwiki.notify.XWikiActionRule.verify(XWikiActionRule.java:51)
at
com.xpn.xwiki.notify.XWikiNotificationManager.verify(XWikiNotificationManager.java:93)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:179)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:115)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
at
com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:99)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
at
com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
at
com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:163)
at
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:208)
at
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:259)
at com.caucho.server.port.TcpConnection.run(TcpConnection.java:363)
at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:490)
at com.caucho.util.ThreadPool.run(ThreadPool.java:423)
at java.lang.Thread.run(Thread.java:595)
-----------------------------o<---------Error Transcript --------------
o<-------------
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