Re: [xwiki-users] Problem with class sheet

2008-09-24 Thread John Carroll



John Carroll wrote:
 
 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?
 
 

I have tried to delete the class through code.

#set($thisDocum=$xwiki.getDocument(XWiki.ExpenseClass))
#if($thisDocum != )
 $thisDocum.fullName
 $thisDocum.delete()
#else
 could not find document
#end

The following error was shown:
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
Wrapped Exception: Error number 3202 in 3: Exception while reading document
XWiki.ExpenseClass
Wrapped Exception: Error number 2002 in 2: Error parsing xml ?xml
version=1.0 encoding=UTF-8?

Does anybody know what can be done to delete this class?  Any help would be
great.

-- 
View this message in context: 
http://n2.nabble.com/Problem-with-class-sheet-tp1113196p1115396.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] Loginsubmit

2008-09-24 Thread Spinring

Hello,

I am trying to change the registration page, so that it redirects to the
pevious page after you have registered (like after you have logged in)

I know, that login.vm and registerinline.vm are called in global.vm. My
first try was to add xredirect=$xwiki.getURLEncoded($logredir) to the
$regurl, but it did work.
I now asume that sending the parameters (like current page/requested page)
is somehow handled when I call $doc.getURL(loginsubmit) like in login.vm.  

Where can I find the template/page behind this url?

Or the other way round. What is responsible to call the
xwiki/bin/login/XWiki/XWikiLogin page everytime I click on edit a page? 

I hope you can give me an answer.

Thanks!
Spinring
-- 
View this message in context: 
http://n2.nabble.com/Loginsubmit-tp1115532p1115532.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] Initial set-up error

2008-09-24 Thread Evan Pease
Hi Sergiu,

I checked the logs. I see an access denied error that I didn't see on
the error page. I'll go straight to the log files from now on.

Thanks!

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Sergiu Dumitriu
Sent: Tuesday, September 23, 2008 5:16 PM
To: XWiki Users
Subject: Re: [xwiki-users] Initial set-up error

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
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] How do I add code tag in a bulleted list?

2008-09-24 Thread Taro

I have a bulleted list. I want to insert a code section in the list. when I
use the WYSIWIG editor to add the code, the margin of the code block gets
formatted outside of the bulleted list. I've tried using the wiki editor to
put the code, but I haven't figured out the syntax.

Code:
* Item 1
* Item 2
{code}Here's some code.{code}
* Item 3

Expected:
1. Item 1
2. Item 2
   Here's some code.
3. Item 3


Actual:
1. Item 1
2. Item 2
Here's some code.
3. Item 3

What is the best way to do this? I am using XWiki Enterprise version
1.5.1.12494.

Thanks.
Taro
-- 
View this message in context: 
http://n2.nabble.com/How-do-I-add-code-tag-in-a-bulleted-list--tp1116403p1116403.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 add code tag in a bulleted list?

2008-09-24 Thread Vincent Massol
Hi,

On Sep 24, 2008, at 10:35 PM, Taro wrote:


 I have a bulleted list. I want to insert a code section in the list.  
 when I
 use the WYSIWIG editor to add the code, the margin of the code block  
 gets
 formatted outside of the bulleted list. I've tried using the wiki  
 editor to
 put the code, but I haven't figured out the syntax.

 Code:
 * Item 1
 * Item 2
 {code}Here's some code.{code}
 * Item 3

Use:

* Item 1
* Item 2{code}Here's some code.{code}
* Item 3

This will get better in the new syntax coming up soon:
http://dev.xwiki.org/xwiki/bin/view/Drafts/XWikiSyntax20

Thanks
-Vincent



 Expected:
 1. Item 1
 2. Item 2
   Here's some code.
 3. Item 3


 Actual:
 1. Item 1
 2. Item 2
 Here's some code.
 3. Item 3

 What is the best way to do this? I am using XWiki Enterprise version
 1.5.1.12494.

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


Re: [xwiki-users] How do I add code tag in a bulleted list?

2008-09-24 Thread Taro

Thanks Vincent for a quick reply. That works! 


vmassol wrote:
 
 Hi,
 
 On Sep 24, 2008, at 10:35 PM, Taro wrote:
 

 I have a bulleted list. I want to insert a code section in the list.  
 when I
 use the WYSIWIG editor to add the code, the margin of the code block  
 gets
 formatted outside of the bulleted list. I've tried using the wiki  
 editor to
 put the code, but I haven't figured out the syntax.

 Code:
 * Item 1
 * Item 2
 {code}Here's some code.{code}
 * Item 3
 
 Use:
 
 * Item 1
 * Item 2{code}Here's some code.{code}
 * Item 3
 
 This will get better in the new syntax coming up soon:
 http://dev.xwiki.org/xwiki/bin/view/Drafts/XWikiSyntax20
 
 Thanks
 -Vincent
 


 Expected:
 1. Item 1
 2. Item 2
   Here's some code.
 3. Item 3


 Actual:
 1. Item 1
 2. Item 2
 Here's some code.
 3. Item 3

 What is the best way to do this? I am using XWiki Enterprise version
 1.5.1.12494.

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

-- 
View this message in context: 
http://n2.nabble.com/How-do-I-add-code-tag-in-a-bulleted-list--tp1116403p1116566.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