Hello everybody,
we just stuck on installing xwiki on our devserver. We tried almost 10 times
to get it work by ourselves but I didn't work. We still want to get it
working. Here are the steps we did already:
1. we created a user xwiki on our DB server with the instructions from the
official site
2. then we deployed xwiki on our server with the geronimo console
3. we made some changes to the hibernate configuration file, as you can see:
<?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">
<hibernate-configuration>
<session-factory>
<!-- Please refer to the installation guide on
http://platform.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 (and comment
the default
database configuration if it doesn't match your DB)
-->
<!-- Generic parameters common to all Databases -->
<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>
<!-- Without it, some queries fail in MS SQL. XWiki doesn't need
scrollable result sets, anyway. -->
<property name="jdbc.use_scrollable_resultset">false</property>
<!-- 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:@10.233.106.132:1521
:devORA</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"/>
<mapping resource="activitystream.hbm.xml"/>
<property
name="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property>
</session-factory>
</hibernate-configuration>
4. We still get this error. We can simply connect to the xwiki users on the
solaris console with sqlplus, but we cannot get it work. The user for the
xwiki has all privileges to work the database. We cannot understand what
goes wrong. Is there a simple how to how to really xwiki working on oracle
10g? Thank you very much.
HTTP Status 500 -
_____
type Exception report
message
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception
javax.servlet.ServletException: com.xpn.xwiki.XWikiException: 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: invalid configuration
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:117)
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
root cause
com.xpn.xwiki.XWikiException: 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: invalid configuration
com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:341)
com.xpn.xwiki.XWiki.getXWiki(XWiki.java:402)
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:135)
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:117)
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
note The full stack trace of the root cause is available in the Apache
Tomcat/6.0.18 logs.
_____
Apache Tomcat/6.0.18
sincerely Oskar
Hi Sergiu,
Thanks for filing this issue as a bug & your prompt response.
> The JS code will have to be fixed, I'll work on it, see
> http://jira.xwiki.org/jira/browse/XWIKI-4773
Hi Sergiu,
Sorry about the delay in response. I checked the httpheader.
It is exactly what you had stated. It accesses the rest api & is in
the "${request.contextPath}/rest/wikis/${context.database}/search?scope=name&number=10&media=json&"
format.
Even though I am in the child wiki the ${context.database} still says
"xwiki"...It should say "draft" where draft is the name of the child
wiki.
Since, the wikis I use are path based wikis, do I need to make any
change somewhere to make the auto suggest to work. Or would I have to
go to url based wikis (with different domain names). At the same time,
I've an application which uses XWiki RESTful api without any
modifications at all despite the XEM being path based.
Please help...thanks.
>
> Message: 1
> Date: Wed, 20 Jan 2010 12:17:58 -0500
> From: Dilipkumar Jadhav <jadhav.dilipkumar(a)gmail.com>
> Subject: Re: [xwiki-users] Meta+G feature on XEM
> To: users(a)xwiki.org
> Message-ID:
> Â Â Â Â <a5b160b51001200917q6f4e7116oee4e4e59c5a4ef46(a)mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Thanks for your quick response Sergiu. The wiki is a path-based wiki.
>
>
>>
>> That is strange, it should work perfectly well in a virtual wiki, and
>> you can try to see that it works on the *.xwiki.org farm, and on
>> incubator.myxwiki.org.
>>
>> You can check with Firebug or HttpHeaders to check where does the
>> suggest request go to, maybe there's something weird in the URL setup.
>>
>> Normally, the request goes to something like:
>>
>> "${request.contextPath}/rest/wikis/${context.database}/search?scope=name&number=10&media=json&"
>>
>> Here, ${request.contextPath} is usually /xwiki, and ${context.database}
>> is the name of the virtual wiki.
>>
>> Could it be that you're using a path-based virtual wiki?
>>
>> --
>> Sergiu Dumitriu
>> http://purl.org/net/sergiu/
>>
>
>
Thanks for your quick response Sergiu. The wiki is a path-based wiki.
>
> That is strange, it should work perfectly well in a virtual wiki, and
> you can try to see that it works on the *.xwiki.org farm, and on
> incubator.myxwiki.org.
>
> You can check with Firebug or HttpHeaders to check where does the
> suggest request go to, maybe there's something weird in the URL setup.
>
> Normally, the request goes to something like:
>
> "${request.contextPath}/rest/wikis/${context.database}/search?scope=name&number=10&media=json&"
>
> Here, ${request.contextPath} is usually /xwiki, and ${context.database}
> is the name of the virtual wiki.
>
> Could it be that you're using a path-based virtual wiki?
>
> --
> Sergiu Dumitriu
> http://purl.org/net/sergiu/
>
Hello folks,
The Meta+G feature is one of the coolest & widely used feature at my
organization.
I am trying to use the Meta+G/Jump To Page feature over XEM 2.1.1 "wikis".
The feature works fine over the "Main" XWiki instance. However, when I
use this from a child wiki in a wiki farm, it still picks it's pages
from the main XEM instance. It does not pickup any documents from the
child farm.
I checked the JIRA for the Meta+G feature but couldn't find any
documentation in this regard.
Can we change something in the ajaxSuggest.js so it will pick pages
from the child wikis?
Is there a page called XWiki.JumpToPage such as mentioned on
http://jira.xwiki.org/jira/browse/XWIKI-1485 where we could probably
point the ajax suggest to the appropriate child wiki. I looked up my
XWiki instance but could not find this JumpToPage.
Any help will be appreciated. Thank you.
Im running a wiki farm and when i log on as the admin user on the wiki farm
main page the "Tags auto suggest" feature does work. But when i log on as a
normal user on one of the wikis, the auto suggest feature does not suggest
any tags even though there are about 10 tags already in place.
Does anyone know why this happens?