Re: [xwiki-users] Adding a new language

2008-09-23 Thread Vincent Massol

On Sep 23, 2008, at 6:22 AM, syam_kg wrote:


 Hi Thomas,

 Thanks a lot for the reply. Now it works for me without any core code
 modifications.

And I've added the information to the contribution page:
http://dev.xwiki.org/xwiki/bin/view/Community/Contributing

Thanks
-Vincent

 Thomas Mortagne wrote:

 Hi Syam,

 On Mon, Sep 22, 2008 at 11:54 AM, syam_kg [EMAIL PROTECTED] wrote:

 Hi
 I want to add a new language to my XWiki application. I changed  
 Multi
 Lingual in the 'General' section og Xwiki Preferences to 'Yes' and  
 added
 that language in the 'Languages' text box. Also I created an
 ApplicationResources.properties for the language and added it to the
 XWiki-1.5.jar. Is there any other classes which needs to be  
 modified ? If

 No, you don't need to modify any class for your new language to be
 taken into account.

 yes how that can be done ? In general would it be fare to pull out a
 class
 from a jar file, modify it and put it back ? Please help.. I am  
 using XE
 1.5

 You don't even need to put it back in the jar, simply put it in
 WEB-INF/classes and it will overwrite or be added to what is in jar
 files.

 Regards
 Syam
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Initial set-up error

2008-09-23 Thread Vincent Massol
Hi Evan,

The answer is in your exception. Check the stack trace. It says:


Wrapped Exception: Could not create a DBCP pool. There is an error in
the hibernate configuration file, please review it.


So all you have to do is fix the hibernate.cfg.xml file.

You should also read 
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation

Thanks
-Vincent

On Sep 23, 2008, at 7:04 AM, Evan Pease wrote:

 Hi everyone,



 This is my first post. We're trying to set-up xwiki on Tomcat with
 MySQL. We believe everything is configured properly according to the
 documentation but we keep receiving the following error.



 Any ideas where we should start troubleshooting?



 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: Could not create a DBCP pool. There is an error in
 the hibernate configuration file, please review it.


 org
 .apache.struts.action.RequestProcessor.processException(RequestProces
 sor.java:535)


 org
 .apache.struts.action.RequestProcessor.processActionPerform(RequestPr
 ocessor.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:617)

javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


 com 
 .xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestor
 erFilter.java:287)


 com 
 .xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodi
 ngFilter.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: Could not create a DBCP pool. There is an error in
 the hibernate configuration file, please review it.

com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:322)

com.xpn.xwiki.XWiki.getXWiki(XWiki.java:383)

com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:135)

com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)


 org 
 .apache.struts.action.RequestProcessor.processActionPerform(RequestPr
 ocessor.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:617)

javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


 com 
 .xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestor
 erFilter.java:287)


 com 
 .xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodi
 ngFilter.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
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] DocumentTree Plugin

2008-09-23 Thread hel-o

Hi,

i just tried to install the DocumentTree Plugin but it doesn't seem to work.
i followed the instructions here.

http://code.xwiki.org/xwiki/bin/view/Plugins/DocumentTreePlugin

Downloaded the jar doctree-1.5.jar here

http://code.xwiki.org/xwiki/bin/view/Snippets/ChildPageSnippet

But when i restart my xwiki it doesn't work anymore. 

In the log i find:

INFO: Starting service Catalina
23.09.2008 07:57:21 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.16
23.09.2008 07:57:21 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive ROOT.war
23.09.2008 07:57:21 org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Error in dependencyCheck
java.util.zip.ZipException: invalid entry size (expected 1538260992 but got
25 bytes)
at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:393)
at java.util.zip.ZipInputStream.read(ZipInputStream.java:165)
at java.util.jar.JarInputStream.read(JarInputStream.java:194)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
at java.util.jar.JarInputStream.getBytes(JarInputStream.java:105)
at java.util.jar.JarInputStream.init(JarInputStream.java:82)
at java.util.jar.JarInputStream.init(JarInputStream.java:60)
at
org.apache.catalina.util.ExtensionValidator.getManifest(ExtensionValidator.java:373)
at
org.apache.catalina.util.ExtensionValidator.validateApplication(ExtensionValidator.java:184)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4167)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)
at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:516)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

So it seems the jar provided for download is not working or did i make an
mistake?

Thanks
Helmut
-- 
View this message in context: 
http://n2.nabble.com/DocumentTree-Plugin-tp723p723.html
Sent from the XWiki- Users mailing list archive at Nabble.com.

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Creating a page with dot on the Title

2008-09-23 Thread Art Yeung

Hi all,

When I create a page in a Space called MySpace using Title a.b.c , it
created a page call c under the space a.b. (a.b: c)
Is there anyway I can allow users create document with dot on the Title
please? I would expect the document to be called MySpace: a.b.c

Many Thanks
Art
-- 
View this message in context: 
http://n2.nabble.com/Creating-a-page-with-dot-on-the-Title-tp1112070p1112070.html
Sent from the XWiki- Users mailing list archive at Nabble.com.

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Creating a page with dot on the Title

2008-09-23 Thread Vincent Massol
Hi Art,

On Sep 23, 2008, at 12:49 PM, Art Yeung wrote:


 Hi all,

 When I create a page in a Space called MySpace using Title  
 a.b.c , it
 created a page call c under the space a.b. (a.b: c)
 Is there anyway I can allow users create document with dot on the  
 Title
 please? I would expect the document to be called MySpace: a.b.c

The dot character is reserved so you cannot create documents with  
dots. However you can have a dot in a document's title.

Thanks
-Vincent

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Hiding the Save Cancle buttons in inline mode

2008-09-23 Thread syam_kg

Hi
Can we hide the buttons(Cancel,Preview,SaveContinue and SaveView) in the
inline mode of a document?
I am using XE1.5. Please help...

Regards
Syam
-- 
View this message in context: 
http://n2.nabble.com/Hiding-the-Save---Cancle-buttons-in-inline-mode-tp1112230p1112230.html
Sent from the XWiki- Users mailing list archive at Nabble.com.

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Hiding the Save Cancle buttons in inline mode

2008-09-23 Thread syam_kg

Hi Vincent,

I just want two buttons Cancel and Save. Thats why I was thinking of hiding
these and providing 2 custom buttons which would call the save and cancel
actions.

Regards
Syam

vmassol wrote:
 
 
 On Sep 23, 2008, at 2:01 PM, syam_kg wrote:
 

 Hi
 Can we hide the buttons(Cancel,Preview,SaveContinue and SaveView)  
 in the
 inline mode of a document?
 I am using XE1.5. Please help...
 
 How are you going to save the document if you hide the buttons? :)
 
 -Vincent
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 

-- 
View this message in context: 
http://n2.nabble.com/Hiding-the-Save---Cancle-buttons-in-inline-mode-tp1112230p1112333.html
Sent from the XWiki- Users mailing list archive at Nabble.com.

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Hiding the Save Cancle buttons in inline mode

2008-09-23 Thread Vincent Massol

On Sep 23, 2008, at 2:45 PM, syam_kg wrote:


 Hi Vincent,

 I just want two buttons Cancel and Save. Thats why I was thinking of  
 hiding
 these and providing 2 custom buttons which would call the save and  
 cancel
 actions.

You'll need to modify some template file (don't know which one from  
the top of my head but look in your templates/ dir for *.vm files) or  
create your own custom skin (recommended since it'll be easier for  
upgrades).

-Vincent

 vmassol wrote:


 On Sep 23, 2008, at 2:01 PM, syam_kg wrote:


 Hi
 Can we hide the buttons(Cancel,Preview,SaveContinue and SaveView)
 in the
 inline mode of a document?
 I am using XE1.5. Please help...

 How are you going to save the document if you hide the buttons? :)

 -Vincent
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Hidden input after select, radio or checkbox, why ?

2008-09-23 Thread Sergiu Dumitriu
Denis Gervalle wrote:
 Hi all,
 
 Does anyone here knows why displayEdit of ListClass fields with a  
 display type of checkbox, radiobutton or select is always followed  
 with a hidden input tag, having the same name than the visible control ?
 
 Here is an excerpt of the source code that cause this :
  if (!getDisplayType().equals(input)) {
  org.apache.ecs.xhtml.input hidden = new  
 input(input.hidden, prefix + name, );
  buffer.append(hidden);
  }
 
 I really wonder what is the need for that, and if I can remove it,  
 since this seems to break some screen readers, that makes confusion  
 between listbox and combobox due to this hidden field.
 Thanks in advance for any advices.
 

It is needed because of the way HTML forms work. Without the empty 
field, you would not be able to unselect all options, because the 
browser does not send back the field name if it doesn't have any value 
to associate with it. The empty hidden field is used by the wiki engine 
to detect if it is a field with no values selected, or no field at all.

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Performance of Edit Objects menu call slowed down after creating 1000 users

2008-09-23 Thread Sergiu Dumitriu
Rudolf Tronicek wrote:
 
 Hi,
 
 i've created 1000 users via Groovy script. Each user document (profile) has a 
 TacClass, a XWikiUsers and two XWikiRights objects.
 
 If i call the object editor at user profile page to make some changes to 
 XWikiUsers object it takes long before the data appears.
 
 Other object edits slowed down as well.
 
 Is there a known reason? Is there a known possibility to accelerate access to 
 objects belonging to the current document (creation of some index in 
 database, ...)?
 
 Thanks,
 

It is a problem because the object editor displays the access rights 
objects, which use a list with all the users to choose from. This is 
good for small wikis, but doesn't scale for many users. To fix this, you 
can go edit the XWiki.XWikiRights class 
(http://localhost:8080/xwiki/bin/edit/XWiki/XWikiRights?editor=class) 
and change the display type of the users field to input.

Alternatively, you can open just the XWikiUsers object in the object 
editor, by appending classname=XWiki.XWikiUsers to the URL, for example:

http://localhost:8080/xwiki/bin/edit/XWiki/Admin?editor=objectclassname=XWiki.XWikiUsers

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Problem with class sheet

2008-09-23 Thread John Carroll

Hi all,
I have a problem with a class sheet.  I have been working on a project for
the past few weeks.  The class sheet has been edited many times.  But after
doing the last edit the following happens.

1.
I can not access the class via the class editor page where all classes are
listed, so i cant see the class sheet or the class properties page.  The
same error is displayed when accessing any document created using this
class.  I get this error:

Detailed information:

Error number 3202 in 3: Exception while reading document
XWiki.ExpenseClass
Wrapped Exception: Error number 2002 in 2: Error parsing xml 


XWiki.ExpenseClass





empNumber
2
0
empNumber
30

0


com.xpn.xwiki.objects.classes.StringClass



SuppBusiConfTotal
93
0
SuppBusiConfTotal
30

etc... for every property in the class (150 or so).

I can access the class sheet by using its URL.  Editing or changing the
class sheet makes no difference.
I cannot access the class property page using its URL.

2.
The bread crumb link where parent and space is displayed for documents
created using this class shows this:
Scheduler: ${pdoc.displayTitle}  $tdoc.displayTitle  

3.
I can not see the Expense.webhome page.
In this page I use seachDocuments to find all documents associated with
XWiki.ExpenseClass.
It looks like a class property has been corrupted and any attempt to read
any document associated with the class fails.  

Error number 4001 in 4: Error while parsing velocity page Expenses.WebHome
Wrapped Exception: Failed to evaluate content with id Web Home
com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing
velocity page Expenses.WebHome
Wrapped Exception: Failed to evaluate content with id Web Home

org.apache.velocity.exception.MethodInvocationException: Invocation of
method 'getDocument' in  class com.xpn.xwiki.api.XWiki threw exception
com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while
reading document Expenses.Expensecarrollj15330323092008dgs

4.
To get around this problem I created another class, matching the properties
of the first class.  That worked fine for a little while, even after editing
the class sheet many times.  This second class is now doing the same thing
as the first class.
Just to let you know; in the class sheet i am using searchDocuments to find
documents created using other classes.

So what am i doing wrong?   Is there any way i can fix this?



-- 
View this message in context: 
http://n2.nabble.com/Problem-with-class-sheet-tp1113196p1113196.html
Sent from the XWiki- Users mailing list archive at Nabble.com.

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] WYSIWYG editor: Title 1 formatting generates html syntax instead xwiki syntax

2008-09-23 Thread Cristian SPIESCU
I have just installed XWiki, which I think is a great tool from what I have 
seen until now.

However I'm experiencing a quite annoying problem: the WYSIWYG editor from my 
instance of XWIKI doesn't behave like the one from the playground instance:

1. when I select a text and mark it as Title 1, it generates H1/H1 
instead of 1
2. the wysiwyg editor doesn't display the horizontal line below the text (as it 
is displayed when the page is viewed). I saw that the demo version from 
playground.xwiki.org displayis these bars while editing a content.

Perhaps there is some configuration that needs to be changed?

Thank you in advance for your answer.
Cristi.



  
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] WYSIWYG editor: Title 1 formatting generates html syntax instead xwiki syntax

2008-09-23 Thread Gabriela Radu
WYSIWYG editor is not stable. and dislikes html code.

 






- Original Message 
From: Cristian SPIESCU [EMAIL PROTECTED]
To: users@xwiki.org
Sent: Tuesday, September 23, 2008 11:06:20 PM
Subject: [xwiki-users] WYSIWYG editor: Title 1 formatting generates html syntax 
instead xwiki syntax

I have just installed XWiki, which I think is a great tool from what I have 
seen until now.

However I'm experiencing a quite annoying problem: the WYSIWYG editor from my 
instance of XWIKI doesn't behave like the one from the playground instance:

1. when I select a text and mark it as Title 1, it generates H1/H1 
instead of 1
2. the wysiwyg editor doesn't display the horizontal line below the text (as it 
is displayed when the page is viewed). I saw that the demo version from 
playground.xwiki.org displayis these bars while editing a content.

Perhaps there is some configuration that needs to be changed?

Thank you in advance for your answer.
Cristi.



  
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users



  
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Re : WYSIWYG editor: Title 1 formatting generates html syntax instead xwiki syntax

2008-09-23 Thread Cristian SPIESCU
Dear Gabriela,

I don't want it to generate html. I just want it to generate XWIKI headings 
instead of HTML, when editing a simple document. 
For example I select a text and mark it as Title1, and he outputs h1My 
text/h1 instead of 1 My text

Thanks,


  
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] WYSIWYG editor: Title 1 formatting generates html syntax instead xwiki syntax

2008-09-23 Thread Anca Paula Luca
What XWiki version have you downloaded and installed?

The playground is version 1.5.2 (last stable) but we also have for download a 
1.6 milestone 2.
A lot of things in the rendering have changed in the mean time.
If the playground suits your needs, just download and use the 1.5.2 version.

Anca Luca

Cristian SPIESCU wrote:
 I have just installed XWiki, which I think is a great tool from what I have 
 seen until now.
 
 However I'm experiencing a quite annoying problem: the WYSIWYG editor from my 
 instance of XWIKI doesn't behave like the one from the playground instance:
 
 1. when I select a text and mark it as Title 1, it generates H1/H1 
 instead of 1
 2. the wysiwyg editor doesn't display the horizontal line below the text (as 
 it is displayed when the page is viewed). I saw that the demo version from 
 playground.xwiki.org displayis these bars while editing a content.
 
 Perhaps there is some configuration that needs to be changed?
 
 Thank you in advance for your answer.
 Cristi.
 
 
 
   
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Re : WYSIWYG editor: Title 1 formatting generates html syntax instead xwiki syntax

2008-09-23 Thread Cristian SPIESCU
Dear Anca,

Thank you for your advice. I understand what happened:
I initially downloaded the 1.6.M2, and afterwards the 1.5.2 version. The 1.5.2 
version had the same behaviour because the browser had cached the javascript 
files of the WYSIWYG editor. So after having cleared the browser's cache, it 
works like it should.

However I think that the behaviour mentioned before is not a correct one (in 
the 1.6.M2), but I guess that you already know this and perhaps is on your todo 
list for the next release.

Thank you again.
Best regards,
Cristi.



- Message d'origine 
De : Anca Paula Luca [EMAIL PROTECTED]
À : XWiki Users users@xwiki.org
Envoyé le : Mardi, 23 Septembre 2008, 22h40mn 33s
Objet : Re: [xwiki-users] WYSIWYG editor: Title 1 formatting generates html 
syntax instead xwiki syntax

What XWiki version have you downloaded and installed?

The playground is version 1.5.2 (last stable) but we also have for download a 
1.6 milestone 2.
A lot of things in the rendering have changed in the mean time.
If the playground suits your needs, just download and use the 1.5.2 version.

Anca Luca

Cristian SPIESCU wrote:
 I have just installed XWiki, which I think is a great tool from what I have 
 seen until now.
 
 However I'm experiencing a quite annoying problem: the WYSIWYG editor from my 
 instance of XWIKI doesn't behave like the one from the playground instance:
 
 1. when I select a text and mark it as Title 1, it generates H1/H1 
 instead of 1
 2. the wysiwyg editor doesn't display the horizontal line below the text (as 
 it is displayed when the page is viewed). I saw that the demo version from 
 playground.xwiki.org displayis these bars while editing a content.
 
 Perhaps there is some configuration that needs to be changed?
 
 Thank you in advance for your answer.
 Cristi.
 
 
 
  
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users



  
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Initial set-up error

2008-09-23 Thread Evan Pease
I cannot find any problems in the hibernate.cfg.xml file despite the
error message. Would I receive this error if it cannot connect to the
database or because there is something wrong with the configuration file
itself?

Here is my hibernate.cfg.xml file, we are using MySQL. I've replaced
usernames and passwords. Thank you so much for your help.

===


?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;
!-- Template for hibernate configuration. processing by maven using
profiles.
 Replace original src/main/webapp/WEB-INF/hibernate.cfg.xml --
hibernate-configuration
  session-factory

property name=show_sqlfalse/property
property name=use_outer_jointrue/property

property name=dbcp.defaultAutoCommitfalse/property
property name=dbcp.maxActive50/property
property name=dbcp.maxIdle5/property
property name=dbcp.maxWait3/property
property name=dbcp.whenExhaustedAction1/property
property name=dbcp.ps.whenExhaustedAction1/property
property name=dbcp.ps.maxActive20/property
property name=dbcp.ps.maxWait12/property
property name=dbcp.ps.maxIdle20/property

!-- Please refer to the installation guide on
 http://www.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
--


!-- MySQL configuration.
 Uncomment if you want to use MySQL and comment out other
database configurations.
 Note that the database will be created automatically if it
doesn't already exist.
 We need to set the sql_mode to a less strict value, see
XWIKI-1945 --
property
name=connection.urljdbc:mysql://111.111.111.111:1/xwiki?useServer
PrepStmts=falseamp;sessionVariables=sql_mode=''/property
property name=connection.usernameDBUSERNAME/property
property name=connection.passwordDBPASSWORD/property
property
name=connection.driver_classcom.mysql.jdbc.Driver/property
property
name=dialectorg.hibernate.dialect.MySQLDialect/property
property
name=connection.provider_classcom.xpn.xwiki.store.DBCPConnectionProvi
der/property
property name=connection.pool_size2/property
property name=statement_cache.size2/property
mapping resource=xwiki.hbm.xml/
mapping resource=feeds.hbm.xml/

!-- HSQLDB configuration.
 Uncomment if you want to use HSQLDB and comment out other
database configurations.
 Note that the database will be created automatically if it
doesn't already exist.
property
name=connection.urljdbc:hsqldb:file:/some/path/xwikidb;shutdown=true
/property
property name=connection.usernamesa/property
property name=connection.password/property
property
name=connection.driver_classorg.hsqldb.jdbcDriver/property
property
name=dialectorg.hibernate.dialect.HSQLDialect/property
property
name=connection.provider_classcom.xpn.xwiki.store.DBCPConnectionProvi
der/property
property name=connection.pool_size2/property
property name=statement_cache.size2/property
mapping resource=xwiki.hbm.xml/
mapping resource=feeds.hbm.xml/
--

!-- PostgreSQL configuration.
 Uncomment if you want to use PostgreSQL and comment out other
database configurations.
 Note that the database will be created automatically if it
doesn't already exist.
property name=connection.urljdbc:postgresql:xwiki/property
property name=connection.usernamexwiki/property
property name=connection.passwordxwiki/property
property
name=connection.driver_classorg.postgresql.Driver/property
property
name=dialectorg.hibernate.dialect.PostgreSQLDialect/property
property
name=connection.provider_classcom.xpn.xwiki.store.DBCPConnectionProvi
der/property
property name=connection.pool_size2/property
property name=statement_cache.size2/property
mapping resource=xwiki.hbm.xml/
mapping resource=feeds.hbm.xml/
--

!-- 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.urljdbc:oracle:thin:@localhost:1521:XE/property
property name=connection.usernamexwiki/property
property name=connection.passwordxwiki/property
property
name=connection.driver_classoracle.jdbc.driver.OracleDriver/property

property
name=dialectorg.hibernate.dialect.Oracle10gDialect/property
property
name=connection.provider_classcom.xpn.xwiki.store.DBCPConnectionProvi

Re: [xwiki-users] Initial set-up error

2008-09-23 Thread Sergiu Dumitriu
Evan Pease wrote:
 I cannot find any problems in the hibernate.cfg.xml file despite the
 error message. Would I receive this error if it cannot connect to the
 database or because there is something wrong with the configuration file
 itself?
 
 Here is my hibernate.cfg.xml file, we are using MySQL. I've replaced
 usernames and passwords. Thank you so much for your help.
 

The configuration file looks good. Are you sure you placed the 
mysql-connector jar in the lib folder? If yes, then there should be a 
deeper error in that stacktrace, can you get it from the logs?

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users