Re: [xwiki-users] Unknown Macros after upgrade from 2.x to 3.3

2012-04-22 Thread rhierlmeier

Hi Marius,

thank you for your response. However I am doubt that this the cause of the
problem. I never modified the space or activity macro on
rhierlmeier.myxwiki.org before it got lost. It must be a bug in XWiki.

Futhermore in our internal wiki we have only global users. We imported the
macros as global "Administrator". I found out that the macros disappear
after each restart of xwiki. After adding a comment to the macros the become
available again.

I am willing to debug the problem. Can you please provide me a hint how to
find the root cause of the problem.


Richard

--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Unknown-Macros-after-upgrade-from-2-x-to-3-3-tp7461805p7490735.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] java.lang.OutOfMemoryError: PermGen space||Hosting Two wiki apps under same tomcat

2012-04-22 Thread Guillaume Fenollar
Hi!

You don't mention the value of XX:PermSize you tried in CATALINA_OPTS
variable.
Have you tried to put a value above 300M?


-- 
Guillaume Fenollar
XWiki SysAdmin

2012/4/22 mohit gupta 

> Hi,
>
> I have hosted two different wiki application(wiki1 and wiki2)  under same
> tomcat6. When i hit wiki1 from IE its  works fine.But as soon as i hit
> wiki2, i start getting Permgen space exception. As per my understanding  ,
> probable reason for this is large number of class files gets loaded in
> classloader. Is that correct?(Any rough idea  about number of classes
> deployed in xwiki will help in understanding the problem). Is there a way i
> can host two wiki app under same tomcat? Here are the details of my
> system:-
>
> OS:-window7
> RAM:-4 GB
> java_opt- -Xms1536m -Xmx1536m //(mentioned as environment variable):
> tomcat version:-6.0.26
>
> As per
> http://www.mkyong.com/tomcat/tomcat-javalangoutofmemoryerror-permgen-space/
> ,
> tried to increas the permgensize by mentioning JAVA_OPTS  and suggested
> value against it.But no help.
>
> Now, What else i can i do to resolve this perm gen issue?
> ___
> 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] Live Table headers

2012-04-22 Thread Gerritjan Koekkoek
Hi,

I've generated a livetable.
See code below:

It works good!
It will generated a livetable and extend the table with collumns to the right 
based on a query.
Now the header of the column will be _gben, _eses,  _nlnl (etcetera for all 
country/language combinations in our wiki)
In the translation table (it is a multilanguage wiki) it will be translated to 
gben, eses, nlnl etcetera...

My question is how I can replace these headers with images of countryflags (if 
at all?)
Could I put a url in the translations file that will render intime?

What piece of code in the default lifetable will take care of the header

Gerritjan
{{include document="CdLSATEPublic.TranslationMatrixHeader"/}}
{{include document="CdLSCountries.Macros"/}}

{{velocity}}
#set($columns =[])
#set($discard = $columns.add("AlphabetSort"))
#set($discard = $columns.add("subject"))
#set($discard = $columns.add("topics"))
#set($discard = $columns.add("SACApproved"))
#set($discard = $columns.add("CountryCode"))
#set($columnsProperties = {
  "AlphabetSort" : { "type" : "text", "link" : "view", "size" : 1, 
"filterable" : true, "sortable": true },
  "subject" : { "type" : "text", "link" : "view", "size" : 10, "filterable" 
: true, "sortable": true },
  "topics" : { "type" : "text", "link" : "view", "size" : 10, "filterable" 
: true, "sortable": true },
  "question" : { "type" : "text", "link" : "view", "size" : 10, 
"filterable" : true, "sortable": true },
  "language" : { "type" : "hidden", "link" : "none", "size" : 1, 
"filterable" : false, "sortable": false },
  "CountryCode" : { "type" : "hidden", "link" : "view", "size" : 2, 
"filterable" : false, "sortable": false },
  "answer" : { "type" : "text", "link" : "view", "size" : 10, "filterable" 
: true, "sortable": true },
  "SACApproved" : { "type" : "text", "link" : "view", "size" : 4, 
"filterable" : true, "sortable": true },
  "_avatar" : { "type" : "none", "link" : "none", "html" : "true", 
"sortable":false },
  "_images" : { "type" : "none", "link" : "none", "html" : "true", 
"sortable":false },
  "_attachments" : { "type" : "none", "link" : "none", "html" : "true", 
"sortable":false },
  "_actions" : { "type" : "none", "link" : "none", "html" : "true", 
"sortable":false },
  "doc.name" : { "type" : "text", "link" : "view", "size" : "10", 
"filterable" : true, "sortable": true },
  "doc.space" : { "type" : "text", "link" : "view", "size" : "10", 
"filterable" : true, "sortable": true },
  "doc.fullName" : { "type" : "text", "link" : "view", "size" : "10", 
"filterable" : true, "sortable": true },
  "doc.author" : { "type" : "text", "link" : "view", "size" : "10", 
"filterable" : true, "sortable": true },
  "doc.date" : { "type" : "text", "link" : "view", "size" : "10", 
"filterable" : true, "sortable": true },
  "doc.creator" : { "type" : "text", "link" : "view", "size" : "10", 
"filterable" : true, "sortable": true },
  "doc.creationDate" : { "type" : "text", "link" : "view", "size" : "10", 
"filterable" : true, "sortable": true },
  "doc.title" : { "type" : "text", "link" : "view", "size" : "20", 
"filterable" : true, "sortable": true }
})
#set($options = { 
"className":"CdlsatdCode.CdLSATEPublicQAClass",   
"translationPrefix" : "cdlsatepublicqa.livetable.",  
"topFilters": '',
"topFilters": '',
"tagCloud" : false,  
"rowCount": 15,  
"maxPages" : 50, 
"selectedColumn" : "AlphabetSort", 
"defaultOrder" : "asc" 
})
##
## Find the associations
##
#set ($associationQuery = ", 
BaseObject as associations 
where associations.name=doc.fullName 
and associations.className='CdLSAssociations.CdLSAssociationsClass' 
and associations.name<>'CdLSAssociations.CdLSAssociationsTemplate'
")
#set($associationList = $xwiki.searchDocuments($associationQuery))
#foreach ($association in $associationList)
   #set ($associationDoc = $xwiki.getDocument($association))
   #set($discard = 
$associationDoc.use('CdLSAssociations.CdLSAssociationsClass'))
   #set($countriesSupported = $associationDoc.getValue('CountriesServed'))
   #set($languagesSupported = $associationDoc.getValue('languagesSupported'))
   #foreach ($country in $countriesSupported)
  #foreach($language in $languagesSupported)
 #set($CollumnCode = $country + $language)
 #if($CollumnCode != "usen")
   #set($extraCollumn = "_" + ${CollumnCode})
   #set($discard = $columns.add(${extraCollumn}))
   #set($discard = $columnsProperties.put(${extraCollumn} , { "type" : 
"text", "link" : "view", "size" : "5", "filterable" : false, "sortable": false 
}))
 #end
  #end
   #end
#end

#livetable("cdlsatepublicqa" $columns $columnsProperties $options)
{{/velocity}}
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] java.lang.OutOfMemoryError: PermGen space||Hosting Two wiki apps under same tomcat

2012-04-22 Thread mohit gupta
Hi,

I have hosted two different wiki application(wiki1 and wiki2)  under same
tomcat6. When i hit wiki1 from IE its  works fine.But as soon as i hit
wiki2, i start getting Permgen space exception. As per my understanding  ,
probable reason for this is large number of class files gets loaded in
classloader. Is that correct?(Any rough idea  about number of classes
deployed in xwiki will help in understanding the problem). Is there a way i
can host two wiki app under same tomcat? Here are the details of my system:-

OS:-window7
RAM:-4 GB
java_opt- -Xms1536m -Xmx1536m //(mentioned as environment variable):
tomcat version:-6.0.26

As per
http://www.mkyong.com/tomcat/tomcat-javalangoutofmemoryerror-permgen-space/,
tried to increas the permgensize by mentioning JAVA_OPTS  and suggested
value against it.But no help.

Now, What else i can i do to resolve this perm gen issue?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users