Hi Ludovic and Jeremi,
Thanks for your responses!
> We also have a backup (import/export) tools which we just released
> which can be adapted for initial import and installs in other
> environments. See http://www.xwiki.org/xwiki/bin/view/AdminGuide/Backup
>
Ok, I looked at this and have xwiki from svn but can't find the
files the page mentions, where can I find these backup tools, or do they
still need more development?
> There are one thing missing in your proposed approach which is loading
> the default data (the import tool can do this just after having done
> the schemaUpdate).
> There is one thing I don't like which is the dependency on ant. We
> need something that doesn't have this dependency. Many users are not
> developers and might not have ant. An shell script and a batch file
> running java is probably the way to go.
>
I don't think that's much of an issue at all, since Ant itself
includes ant.sh, ant.bat to run it as a script. Or you include ant.jar
in your distro and use your own wrapper scripts to call it. In the end,
though, the best reason I've found to do as much as possible in Ant and
write only the simplest wrapper scripts is that means you keep your code
and build/deploy process as platform independent as possible which makes
debugging a lot easier.
You're right about importing default data. I can't really see any
clever way to do this that is database agnostic. One idea is that you
write a simple Main class that uses hibernate and your persistent
classes to programmatically create the data. This in theory would then
work for any database as well and could even be the start of unit
testing with your persistent classes...
My main point here though is I agree you don't want to force users
to become developers, but it's even worse that users have to become
DBA's. In my country a database admin usually gets paid more than a
developer and requires more specialized skills ;-)
Cheers, Jason
> If you want to help you are welcome to.
>
> Ludovic
>
> Jason Novotny wrote:
>
>>
>> Hi Ludovic,
>>
>> I've been looking at the instructions at
>> http://www.xwiki.org/xwiki/bin/view/Main/InstallLinuxTomcat and there
>> are about 8 steps too many for this software to gain widespread
>> adoption in my opinion. One of the biggest issues I see is that it
>> uses Hibernate which is great since technically db tables can be auto
>> generated using the Hibernate schemaexport tool with the xwiki
>> mapping file to create tables in any database of your choosing.
>> However, it looks like I specifically need MySQL and I don't know
>> why. I look at the JBoss + Postgres install page and sure enough it
>> points out the flaws of this approach:
>>
>> "Download the sample database and convert for Postgres. See
>> PostgresDatabase
>> <http://www.xwiki.org/xwiki/bin/view/Dev/PostgresDatabase> -> This
>> tool has been made by Nicholas Vesser.. It was done with an old mysql
>> database for XWiki.. You should try it with the latest database.."
>> hmm, not fun.
>>
>> Personally, what I would like to see is this:
>> 1) Download xwiki.zip
>> 2) Run "ant install" which performs:
>> Creating/deploying xwiki webapp to your Tomcat that you set in
>> your build.properties
>> Uses schemaexport to generate tables in your database that is
>> defined in the hibernate properties file
>>
>> 3) Start your server and voila!
>>
>> Further, it could use hsqldb as a default so if you didn't
>> reconfigure the hibernate properties file it would simply use hsqldb
>> which can be bundled with the wiki webapp and used for test purposes.
>>
>> How does this sound?
>>
>> Cheers, Jason
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>> --
>> You receive this message as a subscriber of the
>> xwiki-dev(a)objectweb.org mailing list.
>> To unsubscribe: mailto:xwiki-dev-unsubscribe@objectweb.org
>> For general help: mailto:sympa@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-dev(a)objectweb.org mailing list.
>To unsubscribe: mailto:xwiki-dev-unsubscribe@objectweb.org
>For general help: mailto:sympa@objectweb.org?subject=help
>ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
Hi Ludovic,
I've been looking at the instructions at
http://www.xwiki.org/xwiki/bin/view/Main/InstallLinuxTomcat and there
are about 8 steps too many for this software to gain widespread adoption
in my opinion. One of the biggest issues I see is that it uses Hibernate
which is great since technically db tables can be auto generated using
the Hibernate schemaexport tool with the xwiki mapping file to create
tables in any database of your choosing. However, it looks like I
specifically need MySQL and I don't know why. I look at the JBoss +
Postgres install page and sure enough it points out the flaws of this
approach:
"Download the sample database and convert for Postgres. See
PostgresDatabase
<http://www.xwiki.org/xwiki/bin/view/Dev/PostgresDatabase> -> This tool
has been made by Nicholas Vesser.. It was done with an old mysql
database for XWiki.. You should try it with the latest database.." hmm,
not fun.
Personally, what I would like to see is this:
1) Download xwiki.zip
2) Run "ant install" which performs:
Creating/deploying xwiki webapp to your Tomcat that you set in your
build.properties
Uses schemaexport to generate tables in your database that is defined
in the hibernate properties file
3) Start your server and voila!
Further, it could use hsqldb as a default so if you didn't reconfigure
the hibernate properties file it would simply use hsqldb which can be
bundled with the wiki webapp and used for test purposes.
How does this sound?
Cheers, Jason
Hi all. I have a need to determine group membership based on criteria defined outside xwiki, and wondering if anyone has done this, or can at least suggest a direction.
We have criteria for groups defined in LDAP, such things as your department or things like that. I would like to be able to say that for a specific space, only people in so-and-so department are allowed in. However department should be only one criteria; in general I want to use an LDAP search the queries on an arbitrary set of attributes. In addition we have something called "Bluegroups", in which you can define a group name and then specify the members through either picking members individually, or again through an LDAP search.
To do this, my idea was that the user would manually create an XWiki group, and then as a member give something like "ldap:(dept=HTV)", or maybe "bluegroups:Support team". Even better would be the ability to put a value such as this in the Access Rights, under group, but I don't think things are setup that way. Anyway, looking at the API, it seems like I need to implement listGroupsForUser(), which is difficult because the group members are not stored in the db. I'm left with querying all the members which begin with "ldap:" or "bluegroups:", determing which the user is a member of via an LDAP call, and then returning them. I could cache these, but since I'm not going to get notifications of group membership changes, I would need to invalidate the cache once a day or something like that.
Does this seem like the most reasonable way of doing things? Or is there something that would make my life really easy and wonderful? Thanks in advance ...
shawn.
Hi, i've just installed xwiki (with the sample db: first with
xwiki-db-0.7.460.txt and then with xwiki-db-0.9.1.sql) and when I edit
(as admin) a page and save it I get the error message (see below). The
page is correctly saved though.
I have looked in the Db and the table "xwikilock" does no exist. The
following is the list of the tables (see below) in the xwiki DB.
I'm using java 1.5, tomcat5.5, mysql4.1
Dou you know what the reason for the problems can be?
Thanks in advance,
Miguel A. Bayona
====== list of tables in xwiki database created by script
xwiki-db-0.9.1.sql =====
CREATE TABLE xwikiattachment (
CREATE TABLE xwikiattachment_archive (
CREATE TABLE xwikiattachment_content (
CREATE TABLE xwikibooleanclasses (
CREATE TABLE xwikiclasses (
CREATE TABLE xwikiclassesprop (
CREATE TABLE xwikidateclasses (
CREATE TABLE xwikidates (
CREATE TABLE xwikidblistclasses (
CREATE TABLE xwikidoc (
CREATE TABLE xwikidoubles (
CREATE TABLE xwikifloats (
CREATE TABLE xwikiintegers (
CREATE TABLE xwikilargestrings (
CREATE TABLE xwikilistitems (
CREATE TABLE xwikilists (
CREATE TABLE xwikilongs (
CREATE TABLE xwikinumberclasses (
CREATE TABLE xwikiobjects (
CREATE TABLE xwikiproperties (
CREATE TABLE xwikislistclasses (
CREATE TABLE xwikistatsdoc (
CREATE TABLE xwikistatsreferer (
CREATE TABLE xwikistatsvisit (
CREATE TABLE xwikistringclasses (
CREATE TABLE xwikistrings (
======= errors and warnings in xwiki.log =========16:55:06,233 WARN
Finalizer JDBCContext:finalize:333 - afterTransactionCompletion() was
never called
16:58:00,649 WARN http-8080-Processor23
RequestUtils:createActionForm:177 - No FormBeanConfig found under 'view'
16:58:00,775 WARN http-8080-Processor23
http://<myserver>:8080/xwiki/bin/view/Main/WebHome
XWikiStatsServiceImpl:addCookie:474 - Setting cookie BV9L1ZG8NVZO
O0MLH37JFTRULRVPXZQW for name visitid with domain null and path / and
maxage 421133
16:58:00,777 WARN http-8080-Processor23
http://<myserver>:8080/xwiki/bin/view/Main/WebHome
XWikiStatsServiceImpl:findVisit:314 - Found visit with cookie R40
F0EXZHJHSXJGB1TCDEFPTDMHDSYGA in session
F892767861A94F264B2FD845B1D6A00E for request with cookie
BV9L1ZG8NVZOO0MLH37JFTRULRVPXZQW
16:58:45,063 WARN http-8080-Processor24
RequestUtils:createActionForm:177 - No FormBeanConfig found under 'view'
16:58:45,270 WARN http-8080-Processor24
http://<myserver>:8080/xwiki/bin/view/XWiki/XWikiUsers
XWikiStatsServiceImpl:addCookie:474 - Setting cookie BS0CHDAW
FDNII0CXXSZEJQBOH0YSQ7XL for name visitid with domain null and path /
and maxage 421088
16:58:45,271 WARN http-8080-Processor24
http://<myserver>:8080/xwiki/bin/view/XWiki/XWikiUsers
XWikiStatsServiceImpl:findVisit:314 - Found visit with cookie
BV9L1ZG8NVZOO0MLH37JFTRULRVPXZQW in session
F892767861A94F264B2FD845B1D6A00E for request with cookie
BS0CHDAWFDNII0CXXSZEJQBOH0YSQ7XL
16:58:59,933 WARN http-8080-Processor24
RequestUtils:createActionForm:177 - No FormBeanConfig found under 'view'
16:59:00,066 WARN http-8080-Processor24
http://<myserver>:8080/xwiki/bin/view/XWiki/Admin
XWikiStatsServiceImpl:addCookie:474 - Setting cookie YBOFE9LSAWOOB
FEQSLRXJW2UZ3ZTQEOK for name visitid with domain null and path / and
maxage 421073
16:59:00,067 WARN http-8080-Processor24
http://<myserver>:8080/xwiki/bin/view/XWiki/Admin
XWikiStatsServiceImpl:findVisit:314 - Found visit with cookie BV9L
1ZG8NVZOO0MLH37JFTRULRVPXZQW in session F892767861A94F264B2FD845B1D6A00E
for request with cookie YBOFE9LSAWOOBFEQSLRXJW2UZ3ZTQEOK
16:59:18,882 WARN http-8080-Processor24
RequestUtils:createActionForm:177 - No FormBeanConfig found under 'login'
16:59:18,886 WARN http-8080-Processor24
http://<myserver>:8080/xwiki/bin/login/XWiki/XWikiLogin?xredirect=http://<myserver>:8080/xwiki/bin/view/Main/WebHome
RequestUtils:createActionForm:177 - No FormBeanConfig found under
'loginerror'
16:59:44,153 WARN http-8080-Processor24
http://<myserver>:8080/xwiki/bin/edit/XWiki/XWikiPreferences?xpage=editrights&global=1
JDBCExceptionReporter:logExce
ptions:71 - SQL Error: 1146, SQLState: 42S02
16:59:44,155 ERROR http-8080-Processor24
http://<myserver>:8080/xwiki/bin/edit/XWiki/XWikiPreferences?xpage=editrights&global=1
JDBCExceptionReporter:logExce
ptions:72 - Table 'xwiki.xwikilock' doesn't exist
16:59:44,157 ERROR http-8080-Processor24
http://<myserver>:8080/xwiki/bin/edit/XWiki/XWikiPreferences?xpage=editrights&global=1
XWikiService:renderEdit:830 -
Exception while setting up lock
com.xpn.xwiki.XWikiException: Error number 13007 in 3: Exception while
loading lock
........
17:00:21,044 ERROR http-8080-Processor23
http://<myserver>:8080/xwiki/bin/objectadd/XWiki/XWikiPreferences
AbstractFlushingEventListener:performExecutions:27
7 - Could not synchronize database state with session
org.hibernate.StaleObjectStateException: Row was updated or deleted by
another transaction (or unsaved-value mapping was incorrect):
[com.xpn.xwiki.objects.c
lasses.StringClass#<?xml version="1.0" encoding="UTF-8"?>
<authenticate_edit>
<name>authenticate_edit</name>
<prettyName>Authenticate On Edit</prettyName>
<unmodifiable>0</unmodifiable>
<size>30</size>
<number>7</number>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</authenticate_edit>
]
at
org.hibernate.persister.entity.BasicEntityPersister.check(BasicEntityPersister.java:1431)
at
org.hibernate.persister.entity.BasicEntityPersister.update(BasicEntityPersister.java:1976)
at
org.hibernate.persister.entity.BasicEntityPersister.updateOrInsert(BasicEntityPersister.java:1899)
at
org.hibernate.persister.entity.BasicEntityPersister.update(BasicEntityPersister.java:2139)
.......
17:13:54,756 WARN http-8080-Processor25
http://<myserver>:8080/xwiki/bin/save/Main/WebHome
XWikiStatsServiceImpl:addCookie:474 - Setting cookie QBBALLSXMJCI
D7V2TZZ9RYKQKX3OHQRI for name visitid with domain null and path / and
maxage 420179
17:13:54,761 WARN http-8080-Processor25
http://<myserver>:8080/xwiki/bin/save/Main/WebHome
XWikiStatsServiceImpl:findVisit:314 - Found visit with cookie VDU
ZYLYTNEUTFDUG2GADQNTDZOFI8CJL in session
F892767861A94F264B2FD845B1D6A00E for request with cookie
QBBALLSXMJCID7V2TZZ9RYKQKX3OHQRI
17:15:07,125 WARN http-8080-Processor24
http://<myserver>:8080/xwiki/bin/save/Main/WebHome
JDBCExceptionReporter:logExceptions:71 - SQL Error: 1146, SQLStat
e: 42S02
17:15:07,126 ERROR http-8080-Processor24
http://<myserver>:8080/xwiki/bin/save/Main/WebHome
JDBCExceptionReporter:logExceptions:72 - Table 'xwiki.xwikilock'
doesn't exist
17:15:07,128 WARN http-8080-Processor24
http://<myserver>:8080/xwiki/bin/save/Main/WebHome
ViewEditAction:execute:242 - Uncaught exception: Error number 130
07 in 3: Exception while loading lock
Wrapped Exception: could not execute query
com.xpn.xwiki.XWikiException: Error number 13007 in 3: Exception while
loading lock
Wrapped Exception: could not execute query
.........
17:47:58,081 WARN http-8080-Processor25
http://<myserver>:8080/xwiki/bin/save/Main/WebHome
XWikiStatsServiceImpl:addCookie:474 - Setting cookie RQH6TYW9XXLY
PW4W9HBT5JATLVZVDHRO for name visitid with domain null and path / and
maxage 418135
17:47:58,082 WARN http-8080-Processor25
http://<myserver>:8080/xwiki/bin/save/Main/WebHome
XWikiStatsServiceImpl:findVisit:314 - Found visit with cookie VDU
ZYLYTNEUTFDUG2GADQNTDZOFI8CJL in session
F892767861A94F264B2FD845B1D6A00E for request with cookie
RQH6TYW9XXLYPW4W9HBT5JATLVZVDHRO
17:48:14,641 WARN http-8080-Processor25
http://<myserver>:8080/xwiki/bin/save/Main/WebHome
JDBCExceptionReporter:logExceptions:71 - SQL Error: 1146, SQLStat
e: 42S02
17:48:14,642 ERROR http-8080-Processor25
http://<myserver>:8080/xwiki/bin/save/Main/WebHome
JDBCExceptionReporter:logExceptions:72 - Table 'xwiki.xwikilock'
doesn't exist
17:48:14,643 WARN http-8080-Processor25
http://<myserver>:8080/xwiki/bin/save/Main/WebHome
ViewEditAction:execute:242 - Uncaught exception: Error number 130
07 in 3: Exception while loading lock
Wrapped Exception: could not execute query
com.xpn.xwiki.XWikiException: Error number 13007 in 3: Exception while
loading lock
=============== message error ===============================
Error number 13007 in 3: Exception while loading lock
Wrapped Exception: could not execute query
com.xpn.xwiki.XWikiException: Error number 13007 in 3: Exception while loading lock
Wrapped Exception: could not execute query
at com.xpn.xwiki.store.XWikiHibernateStore.loadLock(XWikiHibernateStore.java:1549)
at com.xpn.xwiki.doc.XWikiDocument.getLock(XWikiDocument.java:2117)
at com.xpn.xwiki.XWikiService.actionSave(XWikiService.java:446)
at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:155)
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.doPost(ActionServlet.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
Wrapped Exception:
java.sql.SQLException: Table 'xwiki.xwikilock' doesn't exist
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2921)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1570)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1665)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2978)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2902)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:930)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1024)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92)
at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:118)
at org.hibernate.loader.Loader.getResultSet(Loader.java:1239)
at org.hibernate.loader.Loader.doQuery(Loader.java:374)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:210)
at org.hibernate.loader.Loader.doList(Loader.java:1562)
at org.hibernate.loader.Loader.list(Loader.java:1545)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:375)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:271)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:840)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:603)
at com.xpn.xwiki.store.XWikiHibernateStore.loadLock(XWikiHibernateStore.java:1539)
at com.xpn.xwiki.doc.XWikiDocument.getLock(XWikiDocument.java:2117)
at com.xpn.xwiki.XWikiService.actionSave(XWikiService.java:446)
at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:155)
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.doPost(ActionServlet.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
The connection setting must be wrong in the WEB-INF/hibernate.cfg.xml file..
We must have left our own IP address instead of localhost..
What do you have in the file ?
Ludovic
John Rodriguez wrote:
>
> I have the same problem as Jonathan Chauncey posted on 01 Aug 2005.
>
> In you reply, you requested more wrapped exceptions to help determine
> the cause of the error.
>
> Did he provide such and if so, was the solution found?
>
>
>
> Here is my stack trace:
>
>
>
> javax.servlet.ServletException: Error number 3 in 0: Could not initialize main XWiki context
> Wrapped Exception: Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences
> Wrapped Exception: Could not create a DBCP pool
> at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:516)
> at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:423)
> 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:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
> at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
> at java.lang.Thread.run(Thread.java:534)
>
> *root cause*
>
> com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context
> Wrapped Exception: Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences
> Wrapped Exception: Could not create a DBCP pool
> at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:142)
> at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
> at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
> 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:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
> at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
> at java.lang.Thread.run(Thread.java:534)
>
>
> Wrapped Exception:
>
> com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences
> Wrapped Exception: Could not create a DBCP pool
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:540)
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
> at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
> at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
> at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
> at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
> at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
> at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
> at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
> at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
> 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:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
> at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
> at java.lang.Thread.run(Thread.java:534)
>
>
> Wrapped Exception:
>
> org.hibernate.HibernateException: Could not create a DBCP pool
> at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:211)
> at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
> at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
> at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
> at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
> at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
> at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:474)
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
> at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
> at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
> at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
> at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
> at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
> at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
> at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
> at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
> 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:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
> at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
> at java.lang.Thread.run(Thread.java:534)
> Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Communications link failure due to underlying exception:
>
> ** BEGIN NESTED EXCEPTION **
>
> java.net.SocketException
> MESSAGE: java.net.ConnectException: Connection timed out
>
> STACKTRACE:
>
> java.net.SocketException: java.net.ConnectException: Connection timed out
> at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:151)
> at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:280)
> at com.mysql.jdbc.Connection.createNewIO(Connection.java:1765)
> at com.mysql.jdbc.Connection.<init>(Connection.java:430)
> at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:268)
> at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
> at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
> at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
> at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
> at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
> at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
> at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
> at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
> at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
> at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
> at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:474)
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
> at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
> at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
> at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
> at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
> at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
> at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
> at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
> at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
> 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:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
> at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
> at java.lang.Thread.run(Thread.java:534)
>
>
> ** END NESTED EXCEPTION **
>
> )
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
> at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
> at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
> ... 55 more
> Caused by: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
>
> ** BEGIN NESTED EXCEPTION **
>
> java.net.SocketException
> MESSAGE: java.net.ConnectException: Connection timed out
>
> STACKTRACE:
>
> java.net.SocketException: java.net.ConnectException: Connection timed out
> at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:151)
> at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:280)
> at com.mysql.jdbc.Connection.createNewIO(Connection.java:1765)
> at com.mysql.jdbc.Connection.<init>(Connection.java:430)
> at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:268)
> at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
> at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
> at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
> at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
> at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
> at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
> at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
> at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
> at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
> at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
> at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:474)
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
> at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
> at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
> at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
> at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
> at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
> at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
> at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
> at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
> 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:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
> at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
> at java.lang.Thread.run(Thread.java:534)
>
>
> ** END NESTED EXCEPTION **
>
>
> at com.mysql.jdbc.Connection.createNewIO(Connection.java:1830)
> at com.mysql.jdbc.Connection.<init>(Connection.java:430)
> at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:268)
> at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
> at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
> at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
> ... 57 more
>
>
>
--
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, you can use HTML in XWiki pages so using styles with "width, float
and clear" allows to do this.
Now a nice macro would be great, so I tried to do a set of macros that
simplifies creating an InfoBox.
Check it out at:
http://www.xwiki.org/xwiki/bin/view/Dev/InfoBox
Ludovic
BKY wrote:
> Hi,
>
> I read all the help on Xwiki I could find, but I didn't see anything
> about how to put a table on the site of text for an infobox, like on
> Wikipedia (like: http://en.wikipedia.org/wiki/United_States , I want
> the info box (table) on the side of text so it does not take up all
> the page)
>
> If it's done with a table, I don't know how to do it. If I put a table
> tag for splitting the infobox and text, the tag will just be ended
> with the table tag for the info box (as the tag to start a table is
> the same as the one that ends it).
>
> So, how do I put a table off to the side of the page?
>
>
--
Ludovic Dubost
XPertNet: http://www.xpertnet.fr/
Blog: http://www.ludovic.org/blog/
XWiki: http://www.xwiki.com
Skype: ldubost AIM: nvludo Yahoo: ludovic
I have a page with a number of objects, which I want to display in sorted order. I currently have code which can view all the items (the page as well as the class is "Main.Teams":
#set($teamsdoc = $xwiki.getDocument("Main.Teams"))
#foreach($team in $teamsdoc.getObjects("Main.Teams"))
* $team.get('name')
#end
I allow users to add new teams, but they always go to the bottom of the list. However I'd like to print out them in order by the "name" property. I've tried using groovy for this, but I just can't get simple things (like printing list contents any way other than "print teams") to work. Can anyone help? Thanks ...
shawn.
Hello,
I recently installed Xwiki. I did not find information on the data which require to be save if one wishes to carry out a backup or an export to another machine.
Would have additional information about this subject ?
Thanks
Yannick
Hi.
Is source code of Statistics menu anywhere available?
Richard.
--
"First they ignore you. Then they laugh at you. Then they
fight you. Then you win." - Mohandas Gandhi.
Hi All,
Is there a way to include an external css file in a wiki (i.e. <link>)
without having to embed the css within <style> tags in the page itself?
Duke