[xwiki-users] (no subject)

2010-11-30 Thread Boris Gorelik
Dears,
I have tryed to upgrade my XWiki from 2.1.1 to 2.6, but I have an exception:

--

type Exception report

message 

description The server encountered an internal error () that prevented it from 
fulfilling this request.

exception 

javax.servlet.ServletException: Servlet execution threw an exception
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:129)

com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)

com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)

org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:218)

org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)

root cause 

java.lang.NoClassDefFoundError: org/xwiki/rendering/listener/Attachment
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Unknown Source)
.
--
And really there isn't Attachment.class in xwiki-core-rendering-api-2.6.jar! 
(there is in 2.1.1)

What can I do?

Best regards

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


[xwiki-users] Pagination macro with sortable table

2010-11-30 Thread tomasg

Hello, I would like to know whether is possible refresh table data when I
change column for sorting. 
Now, when I click to sort by some column, table is sorted with actual table
data, not with all data. I expect that is needed to add order by to sql
query, but what else should I add? 
If this is not possible could I use livetable with data from sql query? 

Thank you 


Here is my code: 

$xwiki.ssfx.use(js/xwiki/table/table.css) 
$xwiki.jsfx.use(js/xwiki/table/tablefilterNsort.js, true) 

#connectDbTEP($dbc) 
#countRooms($pocetMistnosti) 

#set($paginationParameters = { 
'totalItems' : $pocetMistnosti, 
'defaultItemsPerPage' : 15, 
'url' : $doc.getURL('view', $queryParams) 
  }) 
  #pagination($paginationParameters) 

table  id=searchResults class=grid sortable doOddEven 
  tr class=sortHeader 
thMístnost/th 
thZodpovědná osoba/th 
th class=unsortableOperace/th 
   /tr 

   #foreach($row in $dbc.executeQuery(select id_room, mistnost, prijmeni,
jmeno from room, osoby where room.id_os = osoby.id_os limit
$paginationParameters.firstItem, $paginationParameters.itemsPerPage)) 
   tr 
td $row.getString(mistnost) /td 
td $row.getString(prijmeni) $row.getString(jmeno)/td 
td 
   EditRoom?id_room=$row.getLong(  
   DeleteRoom?id_room=$row.getLong(  
/td 
   /tr 
   #end 
   /table 

  #set($discard = $paginationParameters.put('position', 'bottom')) 
  #pagination($paginationParameters)
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Pagination-macro-with-sortable-table-tp5787879p5787879.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] (no subject)

2010-11-30 Thread Vincent Massol
Hi Boris,

On Nov 30, 2010, at 1:05 PM, Boris Gorelik wrote:

 Dears,
 I have tryed to upgrade my XWiki from 2.1.1 to 2.6, but I have an exception:
 
 --
 
 type Exception report
 
 message 
 
 description The server encountered an internal error () that prevented it 
 from fulfilling this request.
 
 exception 
 
 javax.servlet.ServletException: Servlet execution threw an exception
   com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:129)
   
 com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
   
 com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
   
 org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:218)
   
 org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
 
 root cause 
 
 java.lang.NoClassDefFoundError: org/xwiki/rendering/listener/Attachment
   java.lang.Class.forName0(Native Method)
   java.lang.Class.forName(Unknown Source)
 .
 --
 And really there isn't Attachment.class in xwiki-core-rendering-api-2.6.jar! 
 (there is in 2.1.1)
 
 What can I do?

This means you're using some custom page/code that uses 
org.xwiki.rendering.listener.Attachment but that class was renamed in 2.5
(see Release notes: 
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWikiEnterprise25 )

Of course all the code bundled with XE have had their code updated so it must 
be something custom you added to your wiki that is causing the problem but the 
stack trace you've pasted is not enough to determine what it is. We need the 
full stack trace.

Thanks
-Vincent

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


Re: [xwiki-users] Pagination macro with sortable table

2010-11-30 Thread Jerome Velociter
Hello tomasg,

If you want to have dynamic sorting and filtering, you should rather
use the LiveTable component/macro

Checkout :
* http://code.xwiki.org/xwiki/bin/view/Macros/LiveTableMacro
* http://platform.xwiki.org/xwiki/bin/view/DevGuide/LiveTable

Cheers,
Jérôme

On Tue, Nov 30, 2010 at 1:17 PM, tomasg tomas.gr...@gmail.com wrote:

 Hello, I would like to know whether is possible refresh table data when I
 change column for sorting.
 Now, when I click to sort by some column, table is sorted with actual table
 data, not with all data. I expect that is needed to add order by to sql
 query, but what else should I add?
 If this is not possible could I use livetable with data from sql query?

 Thank you


 Here is my code:

 $xwiki.ssfx.use(js/xwiki/table/table.css)
 $xwiki.jsfx.use(js/xwiki/table/tablefilterNsort.js, true)

 #connectDbTEP($dbc)
 #countRooms($pocetMistnosti)

 #set($paginationParameters = {
    'totalItems' : $pocetMistnosti,
    'defaultItemsPerPage' : 15,
    'url' : $doc.getURL('view', $queryParams)
  })
  #pagination($paginationParameters)

 table  id=searchResults class=grid sortable doOddEven
  tr class=sortHeader
    thMístnost/th
    thZodpovědná osoba/th
    th class=unsortableOperace/th
   /tr

   #foreach($row in $dbc.executeQuery(select id_room, mistnost, prijmeni,
 jmeno from room, osoby where room.id_os = osoby.id_os limit
 $paginationParameters.firstItem, $paginationParameters.itemsPerPage))
   tr
    td $row.getString(mistnost) /td
    td $row.getString(prijmeni) $row.getString(jmeno)/td
    td
       EditRoom?id_room=$row.getLong(
       DeleteRoom?id_room=$row.getLong(
    /td
   /tr
   #end
   /table

  #set($discard = $paginationParameters.put('position', 'bottom'))
  #pagination($paginationParameters)
 --
 View this message in context: 
 http://xwiki.475771.n2.nabble.com/Pagination-macro-with-sortable-table-tp5787879p5787879.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

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


Re: [xwiki-users] Custom Authentication - Error: You are not allowed to view this document or perform this action

2010-11-30 Thread Scardino, Leonard R Jr ERDC-ITL-MS Contractor
Just wanted to say that this was EXTREMELY helpful.  Got my authenticator
working today.  Sweet.  Thanks for the help.

Lenny


-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of
Thomas Mortagne
Sent: Thursday, November 25, 2010 2:22 AM
To: XWiki Users
Subject: Re: [xwiki-users] Custom Authentication - Error: You are not allowed
to view this document or perform this action

http://bodez.wordpress.com/2008/10/15/xwiki-user-authentication-with-oracle-s
so/
seems a bid minimalistic

You can find working authenticator example on
http://svn.xwiki.org/svnroot/xwiki/contrib/sandbox/authenticators/ and
especially some code you can reuse like
http://svn.xwiki.org/svnroot/xwiki/contrib/sandbox/authenticators/xwiki-authe
ntication-puma/src/main/java/com/xwiki/authentication/AbstractAuthServiceImpl
.java

On Wed, Nov 24, 2010 at 22:42, Scardino, Leonard R Jr ERDC-ITL-MS Contractor
leonard.r.scard...@usace.army.mil wrote:
 I've been searching the archive, but coming up short here.

 I'm trying to get custom authentication going on XWiki Enterprise 2.6.

 I've successfully implemented the XWikiAuthService by extending 
 XwikiAuthServiceImpl as suggested here :
 http://bodez.wordpress.com/2008/10/15/xwiki-user-authentication-with-o
 racle-s
 so/

 I have also added the xwiki.authentication.authclass line to my xwiki.cfg.

 I'm able to automatically create a new user in xwiki using the 
 XWiki.createEmptyUser method, and I get logged in.

 However, when I get in as that user all I get is  Error    You are 
 not allowed to view this document or perform this action.  No matter 
 what I try to look at, including the personal profile.

 Can anyone tell me what I'm missing here?

 The XWiki documentation says that you can implement your own right 
 management service, but it doesn't say that is necessary.  Is it?

 Thanks,

 Lenny
 ___
 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


Re: [xwiki-users] Pagination macro with sortable table

2010-11-30 Thread Tomas Grunt
And could I use there data from MySQL db through sql plugin? I have looked
for this usage but did not find it.

2010/11/30 Jerome Velociter jer...@xwiki.com

 Hello tomasg,

 If you want to have dynamic sorting and filtering, you should rather
 use the LiveTable component/macro

 Checkout :
 * http://code.xwiki.org/xwiki/bin/view/Macros/LiveTableMacro
 * http://platform.xwiki.org/xwiki/bin/view/DevGuide/LiveTable

 Cheers,
 Jérôme

 On Tue, Nov 30, 2010 at 1:17 PM, tomasg tomas.gr...@gmail.com wrote:
 
  Hello, I would like to know whether is possible refresh table data when I
  change column for sorting.
  Now, when I click to sort by some column, table is sorted with actual
 table
  data, not with all data. I expect that is needed to add order by to sql
  query, but what else should I add?
  If this is not possible could I use livetable with data from sql query?
 
  Thank you
 
 
  Here is my code:
 
  $xwiki.ssfx.use(js/xwiki/table/table.css)
  $xwiki.jsfx.use(js/xwiki/table/tablefilterNsort.js, true)
 
  #connectDbTEP($dbc)
  #countRooms($pocetMistnosti)
 
  #set($paginationParameters = {
 'totalItems' : $pocetMistnosti,
 'defaultItemsPerPage' : 15,
 'url' : $doc.getURL('view', $queryParams)
   })
   #pagination($paginationParameters)
 
  table  id=searchResults class=grid sortable doOddEven
   tr class=sortHeader
 thMístnost/th
 thZodpovědná osoba/th
 th class=unsortableOperace/th
/tr
 
#foreach($row in $dbc.executeQuery(select id_room, mistnost, prijmeni,
  jmeno from room, osoby where room.id_os = osoby.id_os limit
  $paginationParameters.firstItem, $paginationParameters.itemsPerPage))
tr
 td $row.getString(mistnost) /td
 td $row.getString(prijmeni) $row.getString(jmeno)/td
 td
EditRoom?id_room=$row.getLong(
DeleteRoom?id_room=$row.getLong(
 /td
/tr
#end
/table
 
   #set($discard = $paginationParameters.put('position', 'bottom'))
   #pagination($paginationParameters)
  --
  View this message in context:
 http://xwiki.475771.n2.nabble.com/Pagination-macro-with-sortable-table-tp5787879p5787879.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
 
 ___
 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] [myxwiki] new wiki request

2010-11-30 Thread Jerome Velociter
Hello Brian,

If you are interested in trying out and play with XWiki, you can use
playground.xwiki.org

The myxwiki.org farm is only for wiki you will have a use for.

Sorry if this was not clear. We'll try to improve the message on the home page.

Bye,
Jerome, on behalf of the myxwiki.org community

On Thu, Nov 25, 2010 at 9:34 PM,  br...@icliptv.com wrote:

 would like to check out the xwiki platform

 icliptv


 thx
 ___
 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] Attachments lost !

2010-11-30 Thread Ricardo Rodriguez [eBioTIC.]


Piotr Dziubecki wrote:
 Hi Sergiu,

 W dniu 10-11-22 12:58, Sergiu Dumitriu wrote:
   
 On 11/22/2010 11:20 AM, Piotr Dziubecki wrote:
 
 Hi Ricardo,

 W dniu 10-11-19 19:37, Ricardo Rodriguez [eBioTIC.] wrote:
   
 Hi Piotr,

 Piotr Dziubecki wrote:
 
 Hi,

 today I've noticed that something bad had happen to some of the 
 attachments in my XWiki, here is a
 screenshot from one of the affected pages:

 http://i.imgur.com/p6Xs7.png

 Take a look, a couple of attachments have been uploaded but only one is 
 displayed in the attachment tab.
 Person who uploaded them claims that yesterday they were ok, but today 
 somehow they disappeared.

 It's weird that there is no trace of any operation on them after the 
 uploading phase.

 I'm using XWiki Enterprise 2.5.32127 with MySQL data base (Server version 
 5.1.47).

 To add more context, last days my users started to add more attachements 
 to their pages. Currently the
 database after the dump is around 200 MB large.

 Also looked at the logs and found several interesting fragments ( all of 
 the log snippets are from the time
 this have been noticed ):

 2010-11-18 09:03:09,355
 [http://apps.man.poznan.pl:28181/xwiki/bin/download/Documents/Proposals/2009AUGURISProposalBPartSubmission.pdf?width=1262]
 ERROR web.XWikiAction - Connection aborted
 Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: 
 Followed by 3999
 Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: 
 Followed by 3999
 Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: 
 Followed by 3999
 Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: 
 Followed by 3999
 2010-11-18 13:23:53,118 
 [http://localhost:28181/xwiki/bin/view/Projects/Opinion+Mining] WARN
 xwiki.MyPersistentLoginManager  - Login cookie validation hash mismatch! 
 Cookies have been tampered with
 2010-11-18 13:23:53,119 
 [http://localhost:28181/xwiki/bin/view/Projects/Opinion+Mining] WARN
 xwiki.MyPersistentLoginManager  - Login cookie validation hash mismatch! 
 Cookies have been tampered with
 Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: 
 Followed by 3999
 Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: 
 Followed by 3999
 Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: 
 Followed by 3999
 Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: 
 Followed by 3999
 2010-11-18 13:57:55,471 [Lucene Index Updater] WARN  
 lucene.AttachmentData   - error getting content
 of attachment [2009BEinGRIDwow2greenCONTEXTREVIEW.PPT] for document 
 [xwiki:Documents.Presentations]
 org.apache.tika.exception.TikaException: TIKA-198: Illegal IOException 
 from
 org.apache.tika.parser.microsoft.officepar...@72be25d1
 at 
 org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:138)
 at 
 org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:99)
 at org.apache.tika.Tika.parseToString(Tika.java:267)
 at 
 com.xpn.xwiki.plugin.lucene.AttachmentData.getContentAsText(AttachmentData.java:161)
 at 
 com.xpn.xwiki.plugin.lucene.AttachmentData.getFullText(AttachmentData.java:136)
 at 
 com.xpn.xwiki.plugin.lucene.IndexData.getFullText(IndexData.java:190)
 at 
 com.xpn.xwiki.plugin.lucene.IndexData.addDataToLuceneDocument(IndexData.java:146)
 at 
 com.xpn.xwiki.plugin.lucene.AttachmentData.addDataToLuceneDocument(AttachmentData.java:65)
 at 
 com.xpn.xwiki.plugin.lucene.IndexUpdater.addToIndex(IndexUpdater.java:296)
 at 
 com.xpn.xwiki.plugin.lucene.IndexUpdater.updateIndex(IndexUpdater.java:237)
 at 
 com.xpn.xwiki.plugin.lucene.IndexUpdater.runMainLoop(IndexUpdater.java:171)
 at 
 com.xpn.xwiki.plugin.lucene.IndexUpdater.runInternal(IndexUpdater.java:153)
 at 
 com.xpn.xwiki.util.AbstractXWikiRunnable.run(AbstractXWikiRunnable.java:99)
 at java.lang.Thread.run(Thread.java:662)
 Caused by: java.io.IOException: Cannot remove block[ 4209 ]; out of 
 range[ 0 - 3804 ]
 at 
 org.apache.poi.poifs.storage.BlockListImpl.remove(BlockListImpl.java:98)
 at 
 org.apache.poi.poifs.storage.RawDataBlockList.remove(RawDataBlockList.java:32)
 at 
 org.apache.poi.poifs.storage.BlockAllocationTableReader.init(BlockAllocationTableReader.java:99)
 at 
 org.apache.poi.poifs.filesystem.POIFSFileSystem.init(POIFSFileSystem.java:164)
 at 
 org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:74)
 at 
 org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:132)
 ... 13 more
 Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: 
 Followed by 3999
 Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: 
 Followed by 3999
 

[xwiki-users] XWiki farm Powered by XWiki Enterprise 2.6

2010-11-30 Thread Ricardo Rodriguez [eBioTIC.]
Hi!

Just a one line to congratulate the whole XWiki team and community for 
getting XWiki farm running in the 2.6 XE/XEM featuring colibri skin. It 
looks great!

Thanks for your work!

Ricardo

-- 
Ricardo Rodríguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems

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


[xwiki-users] XWord - strange problem regarding pages and spaces

2010-11-30 Thread Lockie

Hello

I have installed XWord without any problem on my Windows XP  Word 2007
system, however I'm encountering a strange problem. If I create a page in an
existing space in XWord, it gets the name as SpaceName.PageName as normal,
however the page seems to have no parent space, almost as if it is another
WebHome. The breadcrumbs for the page rather then being SpaceName 
PageName, it just has the PageName (again much like a normal WebHome page). 

It's kind of a problem because my menu system automatically lists the pages
within each space using a #foreach($item in $xwiki.searchDocuments($sql))
method, only the pages created in XWord don't appear at all.

Also, if I edit a page originally created in XWiki it suffers the same
problem if I edit it and publish it in XWord. If I go to the Information tab
that lists all child pages, only pages created in XWiki appear, and any that
have been edited or created in XWord do not. The only way I can find them is
to lucene search them.

Is it supposed to function like this? Any help on this would be really
appreciated, I hope I can get this functioning correctly.

Thanks

-

Lockie
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/XWord-strange-problem-regarding-pages-and-spaces-tp5790661p5790661.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] XWord - strange problem regarding pages and spaces

2010-11-30 Thread Lockie

So far the only workaround I have is to manually put SpaceName.WebHome in
the Parent field in the Documentation Information panel when editing the the
page in wysiwyg mode (by default it appears blank for Xword-published
pages). But I don't want my end users to have to manually do that, so is
there some way I can automatically get the XWord-published page to
automatically be associated with the WebHome of the picked space?

-

Lockie
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/XWord-strange-problem-regarding-pages-and-spaces-tp5790661p5790727.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] Glassfish: velocity error 4001

2010-11-30 Thread Michael Beetz
Hi all,

I am running xwiki 2.6 in a farm deployed in a glassfish 3.0.1 server.  
I've seen that error for older wiki versions too.

Accessing the same wiki on the same server deployed in a tomcat (just 
using an other http ports) causes no problem.

Any hint?

Thanks
mb


Browsing w/o login works fine.

Loging on even as an adminstrator leads to the error below shown in the 
comments / attachment ... section

Error number 4001 in 4: Error while parsing velocity page 
/templates/commentsinline.vm Wrapped Exception: Failed to evaluate 
content with id [/templates/commentsinline.vm] 
http://addons.dedavwsk01.infor.com/xwiki/bin/view/XML+Druck+%28Altova%29/Presentations
 


Error number 4001 in 4: Error while parsing velocity page 
/templates/commentsinline.vm
Wrapped Exception: Failed to evaluate content with id 
[/templates/commentsinline.vm]
com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing 
velocity page /templates/commentsinline.vm
Wrapped Exception: Failed to evaluate content with id 
[/templates/commentsinline.vm]
at 
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:122)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1874)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1812)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:896)
at sun.reflect.GeneratedMethodAccessor254.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:613)
at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at 
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at 
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
..

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


[xwiki-users] Glassfish: velocity error 4001

2010-11-30 Thread Michael Beetz

Hi all,

I am running xwiki 2.6 in a farm deployed in a glassfish 3.0.1 server.  
I've seen that error for older wiki versions too.

Accessing the same wiki on the same server deployed in a tomcat (just 
using an other http ports) causes no problem.

Any hint?

Thanks
mb


Browsing w/o login works fine.

Loging on even as an adminstrator leads to the error below shown in the 
comments / attachment ... section

Error number 4001 in 4: Error while parsing velocity page 
/templates/commentsinline.vm Wrapped Exception: Failed to evaluate 
content with id [/templates/commentsinline.vm] 
http://addons.dedavwsk01.infor.com/xwiki/bin/view/XML+Druck+%28Altova%29/Presentations
 


Error number 4001 in 4: Error while parsing velocity page 
/templates/commentsinline.vm
Wrapped Exception: Failed to evaluate content with id 
[/templates/commentsinline.vm]
com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing 
velocity page /templates/commentsinline.vm
Wrapped Exception: Failed to evaluate content with id 
[/templates/commentsinline.vm]
at 
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:122)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1874)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1812)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:896)
at sun.reflect.GeneratedMethodAccessor254.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:613)
at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at 
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at 
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
..


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


[xwiki-users] Xwiki Enterprise 2.6 Apache2 + Tomcat6 + AJP connector + ProxyPass results in Infinite redirect loop on login page

2010-11-30 Thread Mark Blokpoel
Dear all, 

I have recently installed Xwiki Enterprise 2.6 on our server (Ubuntu 10), 
deployed in Tomcat6. For this server we use two domains: domain1.example.com 
and domain2.example.com. By default Tomcat (and the XWiki) can be accessed via 
http://domain1.example.com:8080/xwiki/, but for security and easy-access we 
need the xwiki to be accessed from http://domain2.example.com/xwiki. 

This is why Tomcat is fronted by Apache2 using the AJP connector via a proxy 
pass which is configured in Apache sites-enabled: 

VirtualHost *:80 
ServerAdmin r...@example.com 
DocumentRoot /var/www 
ServerName domain2.example.com 

Proxy * 
 AddDefaultCharset Off 
 Order deny,allow 
 Allow from all 
   /Proxy 

ProxyPass /xwiki ajp://localhost:8009/xwiki/ 
ProxyPassReverse /xwiki ajp://localhost:8009/xwiki/ 
/VirtualHost 

This configuration works, the xwiki can be accessed from domain1 and domain2 
however there are some problems. The first thing I noticed is that the same 
wiki has has a different skin on each domain (no xar loaded, no user logged 
in). Second whereas I can access the login page 
athttp://domain1.example.com:8080/xwiki/bin/login/XWiki/XWikiLogin, trying to 
access the login page 
athttp://domain2.example.com/xwiki/bin/login/XWiki/XWikiLogin fails with an 
infinite http redirect (redirecting to the same login page, HTTP/1.1 302 Moved 
Temporarily). 

My questions are: is this type of configuration supported? If so, why is xwiki 
generating a redirect on the login page to the login page on domain2 and not on 
domain1? Thank you for the help. 

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