Re: [xwiki-users] How do I evaluate a Velocity variable in XWiki syntax?

2012-12-13 Thread crocket
Below is the velocity macro that displays the XWiki link syntax in a
variable literally.
$n.description contains a link, and it is not displayed as a link but
displayed literally in the XWiki syntax.

{{velocity}}
#set($nsrv=$doc.getObjects("Private.NetworkServices"))

#if($nsrv)
$services.objectsort.getInstance().sortByProps($nsrv, ["firewalled:desc",
"port"])
|=Firewalled|=Port|=Protocol|=Service|=Application|=Description
  #foreach ( $n in $nsrv )

|$n.firewalled|$n.port|$n.protocol|$n.service|$n.application|$n.description
  #end

#else
There is no network service defined.
#end
{{/velocity}}


On Sun, Dec 9, 2012 at 6:36 PM, crocket  wrote:

> Suppose str is set by #set($str="[[label>>Space.Page]]")
>
> How do I render $str as a link in a Velocity macro?
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] xwiki render cache not working?

2012-12-13 Thread Thomas Mortagne
On Wed, Dec 12, 2012 at 11:21 AM, David Delbecq wrote:

>
> Well, that's a bit my problem there :/
>
> i don't want to encode every page as they are created. Restarting xwiki
> after each new page or even tracking the list of xwiki page can be a
> nightmare.
> On the other hand, i can't easily go on a space by space basis. Sure some
> spaces are pure xwiki content and no trouble at all, but most spaces will
> have pages here and there that must not be cached :(
>
> I guess i will have to disable cache for most of our xwiki then and only
> enable it on pages that have heavy load.
>
> Could you tell me why the xwiki 1 annotation to disable cache was not
> migrated to xwiki 2?
>

I don't know anything in xwiki/1.0 to disable cache.

Do you mean the velocity method to enable cache ? The cache macro is
supposed to cover more use cases. Producing the HTML does not cost much,
the cache is generally used to not execute again dynamic content.


>
> - Mail original -
>
> De: "Thomas Mortagne" 
> À: "XWiki Users" 
> Envoyé: Vendredi 7 Décembre 2012 16:44:12
> Objet: Re: [xwiki-users] xwiki render cache not working?
>
> On Fri, Dec 7, 2012 at 3:52 PM, David Delbecq  >wrote:
>
> > I still have sme question regarding glocal caching policy. If there is no
> > way on a specific page to disable cache, Does that mean if i ask to cache
> > "all page", administration pages will stop showing up to date
> informations?
> > What is the process in those pages, like group editor, search result, to
> > avoid caching of result and outdated datas?
> >
>
> Yes since that's the point of rendering cache. But you should not enable
> cache for everything and at least choice specific spaces if not pages.
>
>
> >
> > - Mail original -
> >
> > De: "Thomas Mortagne" 
> > À: "XWiki Users" 
> > Envoyé: Vendredi 7 Décembre 2012 10:30:29
> > Objet: Re: [xwiki-users] xwiki render cache not working?
> >
> > On Thu, Dec 6, 2012 at 2:45 PM, David Delbecq  > >wrote:
> >
> > >
> > > > You can also use cache macro (see
> > > > http://extensions.xwiki.org/xwiki/bin/view/Extension/Cache+Macro) to
> > > choose
> > > > different timing for each contents.
> > >
> > > For what i read, it operates at a differente level, i caches the XDOM,
> > not
> > > the rendered content. I am pretty sure XDOM uses more space in memory
> > that
> > > a simple String, you still have the overhead of rendering operation and
> > you
> > > have to manually manage your cache key, which is far mor cumbersome
> thant
> > > saying xwiki "hey, cache this page for 5 minutes, ok?)
> >
> >
> >
> > > Moreover, documentation suggest to avoid haveing different timeToLive
> on
> > > different pages, because that's as much threads :s
> > >
> >
> > That's true only with JBoss Cache but not with Infinispan which is what
> is
> > used by default in recent XWiki versions.
> >
> >
> > >
> > > ___
> > > users mailing list
> > > users@xwiki.org
> > > http://lists.xwiki.org/mailman/listinfo/users
> > >
> >
> >
> >
> > --
> > Thomas Mortagne
> > ___
> > 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
> >
>
>
>
> --
> Thomas Mortagne
> ___
> 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
>



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


[xwiki-users] XWiki fail to start

2012-12-13 Thread Arnaud bourree
Hello,

I've XWiki 4.3 on Ubuntu 12.10 (aptitude install
xwiki-enterprise-tomcat7-mysql).
When migrating from 4.2 to 4.3, as other I change hibernate.cfg.xml
read right and it works.
Yesterday, I add Workspace extensions, update xwiki.cfg with
xwiki.virutal=1 as request by install page and restart tomcat
But now Xwiki doesn't start anymore:
INFO: Deploying configuration descriptor
/etc/tomcat7/Catalina/localhost/xwiki.xml
2012-12-13 17:06:10,031 [localhost-startStop-1] ERROR
ltInstalledExtensionRepository - Invalid extension
[org.xwiki.contrib:xwiki-crash-ui-1.2] on namespace [], it will not be
loaded
org.xwiki.extension.InvalidExtensionException: The dependency
[org.xwiki.contrib:xwiki-crash-api-1.2] of extension
[org.xwiki.contrib:xwiki-crash-ui-1.2] is invalid
at 
org.xwiki.extension.repository.internal.installed.DefaultInstalledExtensionRepository.validateExtension(DefaultInstalledExtensionRepository.java:224)
[xwiki-commons-extension-api-4.3.jar:na]
at 
org.xwiki.extension.repository.internal.installed.DefaultInstalledExtensionRepository.validateExtension(DefaultInstalledExtensionRepository.java:156)
[xwiki-commons-extension-api-4.3.jar:na]
at 
org.xwiki.extension.repository.internal.installed.DefaultInstalledExtensionRepository.initialize(DefaultInstalledExtensionRepository.java:128)
[xwiki-commons-extension-api-4.3.jar:na]
at 
org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:323)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:378)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:346)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:161)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:312)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:378)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:346)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:161)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:312)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:378)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.component.embed.EmbeddableComponentManager.getInstanceMap(EmbeddableComponentManager.java:185)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.component.embed.EmbeddableComponentManager.getInstanceList(EmbeddableComponentManager.java:169)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.observation.internal.DefaultObservationManager.initialize(DefaultObservationManager.java:135)
[xwiki-commons-observation-local-4.3.jar:na]
at 
org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:323)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:378)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:346)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:155)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:99)
[xwiki-platform-container-servlet-4.3.jar:na]
at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
[tomcat-catalina-7.0.30.jar:7.0.30]
at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285

Re: [xwiki-users] Delete Spaces with broken Umlauts

2012-12-13 Thread Ole Mollenhauer
Thanks a lot! I think I've found the error - a wrong jdbc-connection URL in
hibernate.cfg
Nevertheless it's not possible to delete the existent Spaces with broken
Umlauts (neither with your script nor with the "delete Spaces"-Function
from the top-Menu - and though it is visible in the recycle bin). Is it
possible to delete them directly from the database?

Ole


2012/12/13 Sergiu Dumitriu 

> On 12/13/2012 08:36 AM, Ole Mollenhauer wrote:
> > Hi Sergiu,
> >
> > that's all set - from the beginning - nevertheless i do have the
> described
> > problem.
> >
>
> OK, so if the connector encoding is not the problem, you could try and
> delete those documents with a script.
>
> First, you have to find out what's the real document name. Use something
> like this:
>
> {{velocity}}
> #foreach ($d in $xwiki.searchDocuments("where doc.space like 'Gesch%'"))
>   #set ($d = $xwiki.getDocument($d))
>   | $d.space | $d.fullName
> #end
> {{/velocity}}
>
> Once you get the right name for the bad documents, you have to delete
> them from another script:
>
> {{velocity}}
> #xwiki.getDocument('fullName copied from the list above').delete()
> {{/velocity}}
>
>
> There is still the question of how those documents came into
> existence... Make sure all the settings on the encoding guide
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Encoding are correct.
>
> >
> >
> > 2012/12/13 Sergiu Dumitriu 
> >
> >> On 12/13/2012 07:40 AM, Ole Mollenhauer wrote:
> >>> Hi everyone,
> >>>
> >>> somehow I created Spaces with broken Umlauts like:
> >>> Gesch�������¤ftsf�������¼hrung
> >>> or
> >>> Gesch�¤ftsf�¼hrung
> >>> see screenshot:
> >>>
> >>
> https://dl.dropbox.com/u/10128532/Schnappschuss%20%282012-12-13%2013.29.05%29.png
> >>>
> >>> I cannot delete those. They are empty but after deleting from the
> spaces
> >>> menu they still stay in the Spaces-Lists (i.e. on the Dashboard).
> >>>
> >>> Is there any way to get rid of them manually (Using Tomcat/MySQL)
> >>
> >> For Tomcat, you should follow this guide:
> >> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat
> >>
> >> Very important step:
> >>
> >>> Edit your conf/server.xml to set UTF-8 encoding:
> >>> 
> >>
> >> (if you're using mod_proxy_ajp in front of it, then set URIEncoding for
> >> the 8009 connector as well)
>
>
> --
> Sergiu Dumitriu
> http://purl.org/net/sergiu/
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>



-- 
Ole Mollenhauer - Digitale Kommunikation
Northeimer Str. 32
28215 Bremen
0177-5558931
http://www.olemollenhauer.de
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Delete Spaces with broken Umlauts

2012-12-13 Thread Sergiu Dumitriu
On 12/13/2012 08:36 AM, Ole Mollenhauer wrote:
> Hi Sergiu,
> 
> that's all set - from the beginning - nevertheless i do have the described
> problem.
> 

OK, so if the connector encoding is not the problem, you could try and
delete those documents with a script.

First, you have to find out what's the real document name. Use something
like this:

{{velocity}}
#foreach ($d in $xwiki.searchDocuments("where doc.space like 'Gesch%'"))
  #set ($d = $xwiki.getDocument($d))
  | $d.space | $d.fullName
#end
{{/velocity}}

Once you get the right name for the bad documents, you have to delete
them from another script:

{{velocity}}
#xwiki.getDocument('fullName copied from the list above').delete()
{{/velocity}}


There is still the question of how those documents came into
existence... Make sure all the settings on the encoding guide
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Encoding are correct.

> 
> 
> 2012/12/13 Sergiu Dumitriu 
> 
>> On 12/13/2012 07:40 AM, Ole Mollenhauer wrote:
>>> Hi everyone,
>>>
>>> somehow I created Spaces with broken Umlauts like:
>>> Gesch�������¤ftsf�������¼hrung
>>> or
>>> Gesch�¤ftsf�¼hrung
>>> see screenshot:
>>>
>> https://dl.dropbox.com/u/10128532/Schnappschuss%20%282012-12-13%2013.29.05%29.png
>>>
>>> I cannot delete those. They are empty but after deleting from the spaces
>>> menu they still stay in the Spaces-Lists (i.e. on the Dashboard).
>>>
>>> Is there any way to get rid of them manually (Using Tomcat/MySQL)
>>
>> For Tomcat, you should follow this guide:
>> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat
>>
>> Very important step:
>>
>>> Edit your conf/server.xml to set UTF-8 encoding:
>>> 
>>
>> (if you're using mod_proxy_ajp in front of it, then set URIEncoding for
>> the 8009 connector as well)


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


Re: [xwiki-users] How do I evaluate a Velocity variable in XWiki syntax?

2012-12-13 Thread Sergiu Dumitriu
On 12/13/2012 04:39 AM, Jeremie BOUSQUET wrote:
> I just tried on XE 4.1, syntax 2.1, and as expected link is correctly
> displayed as a link ... ?
> 
> Only reason why you would get that IMO would be if you had wiki syntax not
> interpreted inside velocity macro, so you could try:

Those are not the only cases. Here are two more:

- Not inside a wiki document, but a filesystem template
- The document is not using one of the xwiki/2.x syntaxes

> {{velocity wiki="true"}}
> #set($str="[[label>>Space.Page]]")
> Here is the link: $str
> {{/velocity}}
> 
> ... though it should be the default.
> 
> BR,
> Jeremie
> 
> 
> 2012/12/13 crocket 
> 
>> I already tried, but [[label>>Space.Page]] was displayed literally.
>>
>>
>> On Wed, Dec 12, 2012 at 7:44 PM, Eduard Moraru 
>> wrote:
>>
>>> Hi,
>>>
>>> Why not just try it out and see if it works?
>>>
>>> {{velocity}}
>>> #set($str="[[label>>Space.Page]]")
>>> Here is the link: $str
>>> {{/velocity}}
>>>
>>> Thanks,
>>> Eduard
>>>
>>> On Sun, Dec 9, 2012 at 11:36 AM, crocket 
>> wrote:
>>>
 #set($str="[[label>>Space.Page]]")



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


Re: [xwiki-users] Delete Spaces with broken Umlauts

2012-12-13 Thread Ole Mollenhauer
Hi Sergiu,

that's all set - from the beginning - nevertheless i do have the described
problem.

Ole


2012/12/13 Sergiu Dumitriu 

> On 12/13/2012 07:40 AM, Ole Mollenhauer wrote:
> > Hi everyone,
> >
> > somehow I created Spaces with broken Umlauts like:
> > Gesch�������¤ftsf�������¼hrung
> > or
> > Gesch�¤ftsf�¼hrung
> > see screenshot:
> >
> https://dl.dropbox.com/u/10128532/Schnappschuss%20%282012-12-13%2013.29.05%29.png
> >
> > I cannot delete those. They are empty but after deleting from the spaces
> > menu they still stay in the Spaces-Lists (i.e. on the Dashboard).
> >
> > Is there any way to get rid of them manually (Using Tomcat/MySQL)
>
> For Tomcat, you should follow this guide:
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat
>
> Very important step:
>
> > Edit your conf/server.xml to set UTF-8 encoding:
> > 
>
> (if you're using mod_proxy_ajp in front of it, then set URIEncoding for
> the 8009 connector as well)
>
> --
> Sergiu Dumitriu
> http://purl.org/net/sergiu/
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>



-- 
Ole Mollenhauer - Digitale Kommunikation
Northeimer Str. 32
28215 Bremen
0177-5558931
http://www.olemollenhauer.de
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Delete Spaces with broken Umlauts

2012-12-13 Thread Sergiu Dumitriu
On 12/13/2012 07:40 AM, Ole Mollenhauer wrote:
> Hi everyone,
> 
> somehow I created Spaces with broken Umlauts like:
> Gesch�������¤ftsf�������¼hrung
> or
> Gesch�¤ftsf�¼hrung
> see screenshot:
> https://dl.dropbox.com/u/10128532/Schnappschuss%20%282012-12-13%2013.29.05%29.png
> 
> I cannot delete those. They are empty but after deleting from the spaces
> menu they still stay in the Spaces-Lists (i.e. on the Dashboard).
> 
> Is there any way to get rid of them manually (Using Tomcat/MySQL)

For Tomcat, you should follow this guide:
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat

Very important step:

> Edit your conf/server.xml to set UTF-8 encoding: 
> 

(if you're using mod_proxy_ajp in front of it, then set URIEncoding for
the 8009 connector as well)

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


[xwiki-users] Delete Spaces with broken Umlauts

2012-12-13 Thread Ole Mollenhauer
Hi everyone,

somehow I created Spaces with broken Umlauts like:
Gesch�������¤ftsf�������¼hrung
or
Gesch�¤ftsf�¼hrung
see screenshot:
https://dl.dropbox.com/u/10128532/Schnappschuss%20%282012-12-13%2013.29.05%29.png

I cannot delete those. They are empty but after deleting from the spaces
menu they still stay in the Spaces-Lists (i.e. on the Dashboard).

Is there any way to get rid of them manually (Using Tomcat/MySQL)

Thanks a lot!
Ole
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Question About Link Checker Module

2012-12-13 Thread lisalisa
We are having better luck with the Link Checker Module after upgrading to
XWIKI 4.3. However, I have noticed that the table columns do not sort
reliably. Can you suggest any modifications to the syntax? This is what we
currently have:

{{velocity}}
#set($columns = [ 'link', 'page', 'code', 'date'])
#set($columnsProperties = {
'link' : { 'type' : 'text' },
'page' : { 'type' : 'text' },
'code' : { 'type' : 'text' },
'date' : { 'type' : 'text' }
})
#set($options = { 
'resultPage': 'XWiki.ExternalLinksJSON',
'translationPrefix' : 'platform.linkchecker.livetable.',
'rowCount' : 50,
'description' : 'This table lists the states of all external links found
on this wiki. The columns can be sorted.' 
})
#livetable('links' $columns $columnsProperties $options)
{{/velocity}}



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Question-About-Link-Checker-Module-tp7580939p7582857.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] How do I evaluate a Velocity variable in XWiki syntax?

2012-12-13 Thread Jeremie BOUSQUET
I just tried on XE 4.1, syntax 2.1, and as expected link is correctly
displayed as a link ... ?

Only reason why you would get that IMO would be if you had wiki syntax not
interpreted inside velocity macro, so you could try:

{{velocity wiki="true"}}
#set($str="[[label>>Space.Page]]")
Here is the link: $str
{{/velocity}}

... though it should be the default.

BR,
Jeremie


2012/12/13 crocket 

> I already tried, but [[label>>Space.Page]] was displayed literally.
>
>
> On Wed, Dec 12, 2012 at 7:44 PM, Eduard Moraru 
> wrote:
>
> > Hi,
> >
> > Why not just try it out and see if it works?
> >
> > {{velocity}}
> > #set($str="[[label>>Space.Page]]")
> > Here is the link: $str
> > {{/velocity}}
> >
> > Thanks,
> > Eduard
> >
> > On Sun, Dec 9, 2012 at 11:36 AM, crocket 
> wrote:
> >
> > > #set($str="[[label>>Space.Page]]")
> > >
> > ___
> > 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] How do I evaluate a Velocity variable in XWiki syntax?

2012-12-13 Thread crocket
I already tried, but [[label>>Space.Page]] was displayed literally.


On Wed, Dec 12, 2012 at 7:44 PM, Eduard Moraru  wrote:

> Hi,
>
> Why not just try it out and see if it works?
>
> {{velocity}}
> #set($str="[[label>>Space.Page]]")
> Here is the link: $str
> {{/velocity}}
>
> Thanks,
> Eduard
>
> On Sun, Dec 9, 2012 at 11:36 AM, crocket  wrote:
>
> > #set($str="[[label>>Space.Page]]")
> >
> ___
> 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] Could not initialize main XWiki context on Ubuntu

2012-12-13 Thread Hoang Tuan Viet

Hi,

I have checked hibernate file's content before and did not find any problem.

The problem is the file's permission:

root@ubuntu:~# ll /etc/xwiki/
total 144
drwxr-xr-x  6 vietht vietht  4096 Dec 12 18:23 ./
drwxr-xr-x 94 root   root4096 Dec 12 15:19 ../
drwxr-xr-x  5 vietht vietht  4096 Dec 12 11:01 cache/
drwxr-xr-x  3 vietht vietht  4096 Dec 12 11:01 classes/
drwxr-xr-x  2 vietht vietht  4096 Dec 12 11:01 fonts/
-rw-r- 1 root root 8804 Dec 12 18:23 hibernate.cfg.xml
-rw-r--r--  1 vietht vietht  2022 Nov 26 22:12 
jboss-deployment-structure.xml

drwxr-xr-x  3 vietht vietht  4096 Dec 12 11:01 observation/
-rw-r--r--  1 vietht vietht  1181 Nov 26 22:12 portlet.xml
-rw-r--r--  1 vietht vietht 14720 Nov 26 22:12 struts-config.xml
-rw-r--r--  1 vietht vietht   435 Nov 26 22:12 sun-web.xml
-rw-r--r--  1 vietht vietht12 Nov 26 22:12 version.properties
-rw-r--r--  1 vietht vietht 13793 Nov 26 22:12 web.xml
-rw-r--r--  1 vietht vietht 30532 Nov 26 22:12 xwiki.cfg
-rw-r--r--  1 vietht vietht 22514 Nov 26 22:12 xwiki.properties
-rw-r--r--  1 root   root1257 Nov 26 22:13 xwiki-tomcat.xml


I chmod 644 hibernate.cfg.xml file and the problem is solved.

I installed XWiki from deb http://maven.xwiki.org stable/ on a fresh 
Ubuntu server so that there is a mistake on that repository.


Thank you for your support,

Viet


On 12/13/2012 02:07 PM, Vincent Massol wrote:

Hi,

On Dec 13, 2012, at 5:52 AM, Hoang Tuan Viet  wrote:


Hi all,

I have installed XWiki on a fresh Ubuntu 12.04 server followed this guide 
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationViaAPT

My installation: XWiki 4.3, Postgres 9.1, tomcat6.

When I tried to navigate to XWiki from other LAN desktop, this error is 
displayed:


HTTP Status 500 -



*type* Exception report

[snip]


org.hibernate.HibernateException: Can't find [/WEB-INF/hibernate.cfg.xml] for 
hibernate configuration

com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.getConfigurationInputStream(DefaultHibernateSessionFactory.java:143)
org.hibernate.cfg.Configuration.configure(Configuration.java:2157)

The error is pretty clear: XWiki (Hibernate) cannot find the Hibernate 
configuration file.

If you can't figure out why you'll need to show us how you start xwiki and 
where you've setup the files.

Thanks
-Vincent


I tried:

- Check the installation followed 
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationPostgreSQL
xwiki database is created already by dbconfig
- Connect to Postgres DB as xwiki user successfully. I see that there are 
no relations (I think it is correct).

Do you have any idea?

--
Viet Hoang

___
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