Hi All,Here are my choices/picks for creating a new Class/Sheet/Template...According to: http://www.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorialCan anyone see some obvious mistake ?------------------------------------------Step1 - Create Class------------------------------------------Create Class with these values:>>Web: Try7>>Class: Try7Faq------------------------------------------Step1b - Complete Edit Save of Class------------------------------------------Add Title:>>'Try7 Class Title'Leave Default Parent - but Change defaultweb:>>#set($defaultparent = 'XWiki.${class}Class')>>#set($defaultweb = 'Try7')------------------------------------------Step2 - Edit Class Add Properties------------------------------------------Added two TextArea properties: TestA and TestB - default options------------------------------------------Step3 - Click Create Document Sheet------------------------------------------Add Title:>> Try7 Document Sheet TitleChange Velocity template text:>>#set($class = $doc.getObject('Try7.Try7Faq').xWikiClass)------------------------------------------Step4 - Click Create Document Template------------------------------------------Add Title:>>Try7 Document Template TitleChange Velocity template text:>>#includeForm('Try7.Try7FaqClassSheet')------------------------------------------Step5 - Click Create Document Template------------------------------------------Click on ObjectsTab -- 'Add Object from this Class' dropdown:>>Added Try7.Try7FaqClass to ObjectsTab of Document Template.**NOTE: The two textareas show up fine - OK...Save and Exit...------------------------------------------TEST - Create Instance Of Object/Document------------------------------------------Click on the create document button....>> Only the document title shows -- properties/textareas that wereadded do not show ? I'm not sure why....Attached is an error stack (maybe unrelated) that I'm getting but not consistently when going through the above steps....ThanksFrankFrom: frankmisa(a)hotmail.comTo: xwiki-users(a)objectweb.orgSubject: Authoring templates and design sheets not working for custom classDate: Thu, 9 Aug 2007 19:43:31 +0000Hi All,I'm really disappointed by the lack of in depth XWiki developer tutorial.XWiki has been around for a while -- and the only good material I can find is here:http://www.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorialhttp://www.xwi… above links are the level of tutorial I'm looking for -- but they don't go far/long enough....I've followed the FAQTutorial steps and cannot get the example to work as described.I've performed all steps as described -- without error/warning -- but when I try to create a new custom FAQ document -- my class properties (question & answer) are not being shown on the edit/creation page ? It's just blank space with two rows of Cancel/Save-Continue/Save-View etc buttons.* I'm using XWIKI: 1.1-milestone-3.3933* On Windows XP with Apache Tomcat 5.5.12* I'm using MySQL as the database - I think it's UTF8 - Server version: 5.0.13-rc-nt1) When I'm querying the database -- the tables: xwikiproperties - is being populated -- but newly added entries seem to have negative values for XWO_ID column. xwikiobjects - is being populated -- but newly added entries seem to have negative values for XWO_ID column. xwikiclasses - is empty ? why ?2) I would be very grateful to a link to some decent tutorial/documentation -- even if I have to pay for it...It would be great to see something along the lines of the 'FAQTutorial' but with more indepth look at available Velocity objects/macros and discussion of how Documents/Classes/Objects/Properties are actually related....I can't believe this stuff isn't better documented :(Hope someone can help me out...ThanksFrankExplore the seven wonders of the world Learn more!
_________________________________________________________________
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE
Thanks for replying...Count me in Vincent....If you have some ideas (to get me going with my example) -- I would gladly help expand the tutorial section.What do you think I've done wrong ? Re: Class parameters not showing Do you need anymore info. from me -- or do you already have a good idea of what my mistake is.Let me know....ThanksFrankFrom: vincent(a)massol.netDate: Fri, 10 Aug 2007 09:03:59 +0200To: xwiki-users(a)objectweb.orgSubject: Re: [xwiki-users] Authoring templates and design sheets not working for custom classHi Frank,On Aug 9, 2007, at 9:43 PM, Frank Misa wrote: Hi All,I'm really disappointed by the lack of in depth XWiki developer tutorial.XWiki has been around for a while -- and the only good material I can find is here:http://www.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorialhttp://www.xwi… is a great opportunity for you to set this right! :)Once you understand it, could we count on you to improve the documentation on the xwiki.org wiki?The above links are the level of tutorial I'm looking for -- but they don't go far/long enough....I've followed the FAQTutorial steps and cannot get the example to work as described.I've performed all steps as described -- without error/warning -- but when I try to create a new custom FAQ document -- my class properties (question & answer) are not being shown on the edit/creation page ? It's just blank space with two rows of Cancel/Save-Continue/Save-View etc buttons.* I'm using XWIKI: 1.1-milestone-3.3933* On Windows XP with Apache Tomcat 5.5.12* I'm using MySQL as the database - I think it's UTF8 - Server version: 5.0.13-rc-nt1) When I'm querying the database -- the tables: xwikiproperties - is being populated -- but newly added entries seem to have negative values for XWO_ID column. xwikiobjects - is being populated -- but newly added entries seem to have negative values for XWO_ID column. xwikiclasses - is empty ? why ?2) I would be very grateful to a link to some decent tutorial/documentation -- even if I have to pay for it...It would be great to see something along the lines of the "FAQTutorial" but with more indepth look at available Velocity objects/macros and discussion of how Documents/Classes/Objects/Properties are actually related....I can't believe this stuff isn't better documented :(Documentation is done by the community, i.e. people like you. I agree it's a little bit disappointing that lots of users do not participate more to documentation since they get a software for free, ask a lot of questions and when they get their answers they don't even bother to reinject their knowledge into the documentation for the benefit of others. I hope you're not like these users! :)I can help if you're ok to work on improving the tutorials with the missing information.WDYT?Thanks-Vincent
_________________________________________________________________
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE
Hi,
We had a problem yesterday morning with our xWiki. I exported all pages to a xar file, reinstalled xwiki and imported the xar file but after a long time it says:
No documents found in the selected archive
Any ideas?
Juan Manuel Urraburu
E-mail y MSN: juan(a)prorm.com
Web: http://www.prorm.com
Is the example AD configuration in the Wiki the right way to do things?
My understanding is that the bind_DN and bind_pass are for setting the
username and password XWiki will use to connect to the LDAP server in
order to do a search, then the UID_attr field is searched for the
username entered on the form.
If that is correct then the bind_dn and bind_pass should either be
hardcoded to a special AD user with restricted privileges, or left blank
to bind anonymously. (I see no mention of anonymous binding?)
For the first of these XWiki connects to AD ok but then seems to
'authenticate OK' whatever username/password I enter on the form even if
the user does not exist in AD at all. Is this a bug?
I can't seem to get anonymous binding to work - if I leave bind_dn and
bind_pass empty or comment out the entries entirely I always get the
'LDAP Bind failed with Exception Invalid Credentials' error message. My
LDAP server does allow anonymous binding - I've tested this in LDAP Browser.
Cheers
Neil
Hi all,
I hope I can get some help on this as I really don't know what to do...
I'm making the last preparations to move my experimental xwiki to another machine for actual use but my Imports don't work. I can make a backup.xar file using the Export tool but as I try to import it again I get a huge error message. I tried attaching it and sending it with this mail but I got it back because it was too large... The first part of it goes like this:
Error number 3232 in 3: Exception while saving attachment Backup.xar of document XWiki.Import
Wrapped Exception: Error number 3231 in 3: Exception while loading attachment Backup.xar of document XWiki.Import
Wrapped Exception: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=3Dfalse for more info) setter of com.xpn.xwiki.doc.XWikiAttachmentArchive.setArchive
com.xpn.xwiki.XWikiException: Error number 3232 in 3: Exception while saving attachment Backup.xar of document XWiki.Import
Wrapped Exception: Error number 3231 in 3: Exception while loading attachment Backup.xar of document XWiki.Import
Wrapped Exception: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=3Dfalse for more info) setter of com.xpn.xwiki.doc.XWikiAttachmentArchive.setArchive
After searching the mailinglist archives I've tried the following:
- set the -Xms512m to -Xmx521m in catalina.sh
- remove documents with Swedish carachters in their names
- made a much smaller .xar file by changing the package.xml file and only including what I left in there.
- imported old backups that I know worked back then, but it gives me the same error as all the others.
I'm using MySQL, Tomcat, XWiki 1.0 and it has all worked before... Please help!
Thanks,
//Karin
Hi all,
I've followed the install procedure for XWiki 1.1 milestone 3 - using
HSQL and OC4J. It works in that I can go to
/xwiki
and I get a page 'XWiki Installation' with links to Installation
Instructions and the XWiki Home Page.
The next step according to the documentation is to import the default
wiki XAR file. But when I go to:
xwiki/bin/admin/XWiki/XWikiPreferences
I get a '500 Internal Server Error' along with:
'Servlet error: An exception occurred. The current application
deployment descriptors do not allow for including it in this response.
Please consult the application log for details.'
The xwiki.log file shows the following message:
11:24:11,716 [AJPRequestHandler-RMICallHandler-6] WARN
action.RequestProcessor - Unhandled Exception thrown: class
com.xpn.xwiki.XWikiException
Any suggestions please?
Thanks
Neil
Hello group,
I want to use UTF-8 data in XWiki. It seems it is not recognizing it.
I tried to import unicode data to XWiki (by importing a xar file created
programatically). But export fails with an exception. I tried changing
the xwiki.cfg encoding to utf-8 but to no effect.
Regards
Roopesh
------------------
DigitalGlue, India
Hi!
I'm trying to use $xwiki.getURLContent() but I can't make it to work.
I've tried both from velocity, like this:
#set ($response = $xwiki.getURLContent("http://mysite.com"))
$response
...and invoking the xwiki code from a plugin, like this:
public String getUrlContent(String url) throws IOException {
String content = "";
try {
content = context.getWiki().getURLContent(url, context);
} catch (Exception e) {
//ooops
}
return content;
}
I've been testing with a URL that points to a web server of mine, and
according to the log, no request is done by the above code. Can anyone
tell me what I'm doing wrong?
Any help would be greatly appreciated!
:-)
Thomas
Hi,
I installed xwiki and there are no users installed and no option to create new users. The user's page is empty. The only way I found to work was to allow the superuser account but there is no other user and now way to add users.
Any ideas?
Juan Manuel Urraburu
ProRM
Uruguay
Hi all,
What is the delete access right supposed to do? It doesn't seem to do
anything currently, at least in 1.0. In the albatross skin, if I enable
delete rights in a space for a non-admin, the delete button does not
appear for that user. Thanks ...
shawn.
I am trying to run xwiki with Ingres, for this I have converted file
xwiki-db-0.9.2.sql to ingres compatible format. And I ran this file on
Ingres database. I have everything else in place: drivers, configuration in
hibernate.cfg.xml etc...
My app server is JBoss 4.0.5, so when I start xwiki I get:
17:54:49,830 FATAL [DBCPConnectionProvider] Could not create a DBCP pool
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:396)
at
com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:110)
at
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
at
org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
at
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
at
org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.initHibernate(XWikiHibernateBaseStore.java:125)
so i removed connection.provider_class property from hibernate.cfg.xml.
Afterwards when i tried running xwiki i got this exception and xwiki page is
not coming:
18:11:49,447 ERROR [JDBCExceptionReporter] line 1, Table 'xwikidoc' owned by
'advait.trivedi' does not contain column 'xwd_default_template'.
.......
I noticed that this column is not part of "create table" sql but somehow it
is getting added to the table definition afterwards. Because i noticed this
column using "describe xwikidoc" mysql command. Please help
--
View this message in context: http://www.nabble.com/running-xwiki-on-Ingres-database-tf4110478.html#a1168…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi,
I'm using Albatross and I have no idea why the panels disappear in editing and administration modes. They just aren't there and it seems the Panel Wizard can't change that.
Thanks,
//Karin
-----Ursprungligt meddelande-----
Från: Sergiu Dumitriu [mailto:sergiu.dumitriu@gmail.com]
Skickat: den 2 augusti 2007 16:40
Till: xwiki-users(a)objectweb.org
Ämne: Re: resend: [xwiki-users] Backlinks in administration/editing mode
Hi,
What skin are you using, and why are the panels disappearing?
Karin Wiklund wrote:
> -----Ursprungligt meddelande-----
> Från: Karin Wiklund
> Skickat: den 17 juli 2007 09:55
> Till: 'xwiki-users(a)objectweb.org'
> Ämne: SV: [xwiki-users] Backlinks in administration/editing mode
>
>
> Hi Vincent,
>
> Hi Karin,
>
> On Jul 16, 2007, at 5:08 PM, Karin Wiklund wrote:
>
>
>> Hi,
>>
>> First; thanks to everyone who helped me make more blogs in my
>> xwiki, it works beautifully! (though it's not the most beautiful
>> code ever written...)
>>
>> Second;
>> As far as I can tell there are no links from anywhere in the
>> administration or editing modes to get back to the rest of the
>> wiki. (there are save and cancel options, but that's not the same
>> thing as 'Back') Have I missed something? If not; any hints on how
>> and where to add such links?
>> For usability purposes- to make life easier for the future admins
>> of the xwiki I'm setting up...
>>
>
> * Then I guess you have the same issue when editing pages since the
> navigation on the right disappears? How do you want to solve that?
>
> Yes, it's a problem there too. I want to solve it by constantly showing the same menu, wherever the user goes
>
> * I've noticed that on the Admin page there's a big blank space on
> the right. We shouldn't have that. Either we should put the normal
> navigation there or use the full space for the admin screens. I think
> we should use the full space.
>
> I think showing the menu at all times is better. Giving users the same way to do stuff (such as navigate) wherever they are in the system is good usability practice. I'd say it's preferable that the desicions on what panels to show, and where, should apply on every single page in the wiki. In whatever kind of mode you're in.
>
> Back to your question, you can click on the Space in the breadcrumbs
> or on the logo to go to the home page or cancel/save. What more would
> you like and where?
>
> Ah, but see the breadcrumbs aren't always showing the directory I took to get to a certain page. Example: I'm at "Main: Welcome > All Documents of this Wiki" when
> I realize I should change the rights for a certain user group, so I press Administration and the breadcrumbs are "XWiki: Administration > Preferences" and I can't use them to get back to "All Documents of this Wiki".
>
There's a Recently Visited panel that can help you here.
> The logo takes me to "Main: Welcome" which is also not the place I wanted to go.
> Say I change the rights a bit and press Save, I get directed to "XWiki: Administration". If i hit Cancel instead I end up at "Main: Welcome"
>
That's strange, cancel should also get you to Administration. Are you
sure it goes to Main?
> Not what I'm looking for when I want to get back to "Main: Welcome > All Documents of this Wiki".
> What more would I like? A set of panels (navigation or otherwise) always showing on the side of my choice.
>
> Hopefully I'll have enough time to perform a proper usability test. If my boss lets me I'd love to share the results with you.
>
> Regards,
> //Karin
>
>
> Thanks
> -Vincent
>
>
>
>
> How would a pom-file look for the hello world plugin (from
> the devGuide) for building it with maven?
>
Since Vincent, our maven expert, is on vacation, I'll try to write this
pom tonight and send it to you.
Thanks. I haven't recieved it yet. Is there an e-mail problem again?
> Is there a plug-in (or snippet or script or something, anything) to
> import web pages from elsewhere and show them in the xwiki?
>
It depends on what do you mean by "elsewhere". Please give an example of
such a place, a use case.
A colleague of mine is developing a search engine and the search results are presented on a web page. The idea is to connect his search engine to my xwiki and I would like to be able to import the web pages where the results are presented and show them in the xwiki environement (with the xwiki layout).
>
> Thanks,
> //Karin
Sergiu
Thanks,
//Karin
Hi,
I downloaded xwiki 1.0. Imported xwiki-1.0.xar. While importing the following error appears. (Second error after this error listed below.)
{
20:48:05,234 WARN P1-18 http://localhost:8080/xwiki/bin/import/XWiki/Import?edi
tor=import&space=XWiki InterWiki:<init>:73 - Unable to read conf/intermap.txt
20:48:11,843 WARN P1-18 http://localhost:8080/xwiki/bin/import/XWiki/Import?edi
tor=import&space=XWiki RegexTokenFilter:filter:97 - <span class="error">Exceptio
n</span>: com.xpn.xwiki.render.filter.MacroFilter@df88d2
java.lang.NullPointerException
at org.radeox.macro.parameter.BaseMacroParameter.insertValue(BaseMacroPa
rameter.java:142)
at org.radeox.macro.parameter.BaseMacroParameter.split(BaseMacroParamete
r.java:127)
at org.radeox.macro.parameter.BaseMacroParameter.setParams(BaseMacroPara
meter.java:58)
at org.radeox.filter.MacroFilter.handleMatch(MacroFilter.java:100)
at org.radeox.filter.regex.RegexTokenFilter$1.handleMatch(RegexTokenFilt
er.java:91)
at org.radeox.regex.JdkMatcher.substitute(JdkMatcher.java:48)
at org.radeox.filter.regex.RegexTokenFilter.filter(RegexTokenFilter.java
:89)
at org.radeox.filter.FilterPipe.filter(FilterPipe.java:169)
at org.radeox.engine.BaseRenderEngine.render(BaseRenderEngine.java:108)
at com.xpn.xwiki.render.XWikiRadeoxRenderer.render(XWikiRadeoxRenderer.j
ava:70)
at com.xpn.xwiki.store.XWikiHibernateStore.saveLinks(XWikiHibernateStore
.java:1466)
at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateSt
ore.java:305)
at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java
:100)
at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java
:94)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:895)
at com.xpn.xwiki.plugin.packaging.Package.installDocument(Package.java:5
49)
at com.xpn.xwiki.plugin.packaging.Package.install(Package.java:490)
at com.xpn.xwiki.plugin.packaging.PackageAPI.install(PackageAPI.java:192
)
at com.xpn.xwiki.web.ImportAction.render(ImportAction.java:90)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:150)
at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:119
6)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:616)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428
)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
WebApplicationHandler.java:830)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEnc
odingFilter.java:118)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
WebApplicationHandler.java:821)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati
onHandler.java:471)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5
68)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1565)
at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplication
Context.java:633)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1517)
at org.mortbay.http.HttpServer.service(HttpServer.java:954)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:
244)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
20:48:11,843 WARN P1-18 http://localhost:8080/xwiki/bin/import/XWiki/Import?edi
tor=import&space=XWiki RegexTokenFilter:filter:97 - <span class="error">Exceptio
n</span>: com.xpn.xwiki.render.filter.MacroFilter@b65a68
java.lang.NullPointerException
at org.radeox.macro.parameter.BaseMacroParameter.insertValue(BaseMacroPa
rameter.java:142)
at org.radeox.macro.parameter.BaseMacroParameter.split(BaseMacroParamete
r.java:127)
}
Now if I access any page, then the following Stack overflow error comes
{
02:37:30,538 WARN P1-17 http://localhost:8080/xwiki/bin/view/Main/WebSearch
RegexTokenFilter:filter:99 - <span class="error">Error</span>:
com.xpn.xwiki.render.filter.XWikiListFilter@ada795:
java.lang.StackOverflowError
java.lang.StackOverflowError
at java.util.regex.Pattern$BitClass.match(Pattern.java:2873)
at java.util.regex.Pattern$Curly.match0(Pattern.java:4218)
at java.util.regex.Pattern$Curly.match(Pattern.java:4202)
at java.util.regex.Pattern$GroupTail.match(Pattern.java:4634)
at java.util.regex.Pattern$Curly.match0(Pattern.java:4240)
at java.util.regex.Pattern$Curly.match(Pattern.java:4202)
at java.util.regex.Pattern$GroupHead.match(Pattern.java:4575)
}
This error keeps on coming and finally kills the xwiki.
Can anyone tell me how I can solve this.
Regards
Roopesh
I am having a lot of problems using the raw wiki format to print lists.
The examples don't seem to work as documented. Any ideas?
TIA
John
---
1 Links
A list of useful reference material for build tools.
1. [Maven2>http://maven.apache.org/]
a.[Introduction to
Repositories>http://maven.apache.org/guides/introduction/introduction-to
-repositories.html]
a. [Available Plugins>http://maven.apache.org/plugins/index.html]
a. [maven-jetty-plugin>http://www.mortbay.org/maven-plugin/index.html]
1. [Continuum>http://maven.apache.org/continuum/]
Eurobase International Limited and its subsidiaries (Eurobase) are unable to exercise control over the content of information in E-Mails. Any views and opinions expressed may be personal to the sender and are not necessarily those of Eurobase. Eurobase will not enter into any contractual obligations in respect of any part of its business in any E-mail.
Privileged / confidential information may be contained in this message and /or any attachments. This E-mail is intended for the use of the addressee(s) only and may contain confidential information. If you are not the / an intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited. If you receive this transmission in error, please notify us immediately, and then delete this E-mail.
Neither the sender nor Eurobase accepts any liability whatsoever for any defects of any kind either in or arising from this E-mail transmission. E-Mail transmission cannot be guaranteed to be secure or error-free, as messages can be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or incomplete. Eurobase does not accept any responsibility for viruses and it is your responsibility to scan any attachments.
Eurobase Systems Limited is the main trading company in the Eurobase International Group; registered in England and Wales as company number 02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex CM2 0RE, UK.
Hi,
I am getting the following stack overflow error "every" time I access xwiki. I am using xwiki 1.0. Can anyone please tell me what can be the reason.
{
02:37:30,538 WARN P1-17 http://localhost:8080/xwiki/bin/view/Main/WebSearch RegexTokenFilter:filter:99 - <span class="error">Error</span>: com.xpn.xwiki.render.filter.XWikiListFilter@ada795: java.lang.StackOverflowError
java.lang.StackOverflowError
at java.util.regex.Pattern$BitClass.match(Pattern.java:2873)
at java.util.regex.Pattern$Curly.match0(Pattern.java:4218)
at java.util.regex.Pattern$Curly.match(Pattern.java:4202)
at java.util.regex.Pattern$GroupTail.match(Pattern.java:4634)
at java.util.regex.Pattern$Curly.match0(Pattern.java:4240)
at java.util.regex.Pattern$Curly.match(Pattern.java:4202)
at java.util.regex.Pattern$GroupHead.match(Pattern.java:4575)
}
Thanks
Roopesh
Hi,
I have modify my navigation panel so that a user will see only space he has access rights. Now I have this error :
Error number 4001 in 4: Error while parsing velocity page Panels.Navigation Wrapped Exception: Invocation of method 'getSpaces' in class com.xpn.xwiki.api.XWiki threw exception com.xpn.xwiki.XWikiException: Error number 3223 in 3: Exception while searching documents with sql select distinct doc.web from XWikiDocument doc Wrapped Exception: could not execute query @ Panels.Navigation6,23?
Error number 4001 in 4: Error while parsing velocity page Panels.Navigation
Wrapped Exception: Invocation of method 'getSpaces' in class com.xpn.xwiki.api.XWiki threw exception com.xpn.xwiki.XWikiException: Error number 3223 in 3: Exception while searching documents with sql select distinct doc.web from XWikiDocument doc
Wrapped Exception: could not execute query @ Panels.Navigation6,23?
com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing velocity page Panels.Navigation
Wrapped Exception: Invocation of method 'getSpaces' in class com.xpn.xwiki.api.XWiki threw exception com.xpn.xwiki.XWikiException: Error number 3223 in 3: Exception while searching documents with sql select distinct doc.web from XWikiDocument doc
Wrapped Exception: could not execute query @ Panels.Navigation6,23?
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:148)
at com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:91)
at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:229)
at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:161)
at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:132)
at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:362)......
Do you know what is the problem?
Bye
-----Ursprungligt meddelande-----
Från: Karin Wiklund
Skickat: den 17 juli 2007 09:55
Till: 'xwiki-users(a)objectweb.org'
Ämne: SV: [xwiki-users] Backlinks in administration/editing mode
Hi Vincent,
Hi Karin,
On Jul 16, 2007, at 5:08 PM, Karin Wiklund wrote:
> Hi,
>
> First; thanks to everyone who helped me make more blogs in my
> xwiki, it works beautifully! (though it's not the most beautiful
> code ever written...)
>
> Second;
> As far as I can tell there are no links from anywhere in the
> administration or editing modes to get back to the rest of the
> wiki. (there are save and cancel options, but that's not the same
> thing as 'Back') Have I missed something? If not; any hints on how
> and where to add such links?
> For usability purposes- to make life easier for the future admins
> of the xwiki I'm setting up...
* Then I guess you have the same issue when editing pages since the
navigation on the right disappears? How do you want to solve that?
Yes, it's a problem there too. I want to solve it by constantly showing the same menu, wherever the user goes
* I've noticed that on the Admin page there's a big blank space on
the right. We shouldn't have that. Either we should put the normal
navigation there or use the full space for the admin screens. I think
we should use the full space.
I think showing the menu at all times is better. Giving users the same way to do stuff (such as navigate) wherever they are in the system is good usability practice. I'd say it's preferable that the desicions on what panels to show, and where, should apply on every single page in the wiki. In whatever kind of mode you're in.
Back to your question, you can click on the Space in the breadcrumbs
or on the logo to go to the home page or cancel/save. What more would
you like and where?
Ah, but see the breadcrumbs aren't always showing the directory I took to get to a certain page. Example: I'm at "Main: Welcome > All Documents of this Wiki" when
I realize I should change the rights for a certain user group, so I press Administration and the breadcrumbs are "XWiki: Administration > Preferences" and I can't use them to get back to "All Documents of this Wiki".
The logo takes me to "Main: Welcome" which is also not the place I wanted to go.
Say I change the rights a bit and press Save, I get directed to "XWiki: Administration". If i hit Cancel instead I end up at "Main: Welcome"
Not what I'm looking for when I want to get back to "Main: Welcome > All Documents of this Wiki".
What more would I like? A set of panels (navigation or otherwise) always showing on the side of my choice.
Hopefully I'll have enough time to perform a proper usability test. If my boss lets me I'd love to share the results with you.
Regards,
//Karin
Thanks
-Vincent
Hi,
Two quick questions:
How would a pom-file look for the hello world plugin (from the devGuide) for building it with maven?
Is there a plug-in (or snippet or script or something, anything) to import web pages from elsewhere and show them in the xwiki?
Thanks,
//Karin
Hi,
I successfully swapped the xwiki logo for our company logo in the
albatross skin, but is there a very quick way to get rid of the birds in
the banner please (or even replace them)? Swapping the black-birds.png
doesn't seem to work?
TIA
John
Eurobase International Limited and its subsidiaries (Eurobase) are unable to exercise control over the content of information in E-Mails. Any views and opinions expressed may be personal to the sender and are not necessarily those of Eurobase. Eurobase will not enter into any contractual obligations in respect of any part of its business in any E-mail.
Privileged / confidential information may be contained in this message and /or any attachments. This E-mail is intended for the use of the addressee(s) only and may contain confidential information. If you are not the / an intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited. If you receive this transmission in error, please notify us immediately, and then delete this E-mail.
Neither the sender nor Eurobase accepts any liability whatsoever for any defects of any kind either in or arising from this E-mail transmission. E-Mail transmission cannot be guaranteed to be secure or error-free, as messages can be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or incomplete. Eurobase does not accept any responsibility for viruses and it is your responsibility to scan any attachments.
Eurobase Systems Limited is the main trading company in the Eurobase International Group; registered in England and Wales as company number 02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex CM2 0RE, UK.
Hi All,
Wondering if anyone has coded object removal as yet (for documents other
than the current one)? Basically, two documents both having the same
object, when one document removes it's corresponding object I'm trying
to remove the "paired" object in another document.
NOTE: this is on a local xwiki install.
Trying to do it with the following:
($f_docName and $objid are set further up to be a valid document and a
valid id of the object in that document; same info as would be used by a
deleteobject url)
#set($f_linkDoc=$xwiki.getDocument($f_docName))
#set($f_removeObject=$f_linkDoc.getObject("XWiki.LinkObject",
$xwiki.parseInt("${objid}")))
$f_linkDoc.addObjectsToRemove($f_removeObject)
$f_linkDoc.save()
In the above, I know that "$f_removeObject" seems valid (checking the
result of $f_removeObject.getProperty("track").value returns the
expected value for the other document).
Also, "$f_linkDoc" is valid by extension, I would guess - otherwise the
"$f_removeObject" would be invalid when checking a property value using
Either way, when I run the above code I get an output of:
$f_linkDoc.addObjectsToRemove($f_removeObject)
Is there something else I should be doing to delete objects manually?
Or perhaps this is not possible via velocity?
I want translate Main Space in "Accueil" but XWiki
doesn't work after that: the logo is linked on
Main.WebHome the search doesn't work anymore others
surprises...
Thxs for ur help
Pascal
_____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
Hi there,
Working to solve my SecurityExceptions running on a shared hosting, I
tried to create a similar environment on my local Tomcat. The problem is
not solved, but what I got so far may be useful for some XWiki users.
After running "server.bat -security" I started getting errors related to
Log4J already described by other threads on the mailing list archive,
which I solved this way:
1. Take the log4j.properties from WEB-INF/lib/xwiki.jar and put it as
WEB-INF/classes. The Servlet API specs state that WEB-INF/classes comes
in the web app classpath before jar files placed in WEB-INF/lib.
2. Changed so the log file gets an absolute path under the web app context:
log4j.appender.file.File=C:/java/apache-tomcat-5.5.23/webapps/xwiki/xwiki.log
3. The default security config don't let an application write to its own
files, so I had to add to Tomcat calatina.polity
grant codeBase "file:${catalina.home}/webapps/xwiki/-" {
permission java.io.FilePermission
"c:/java/apache-tomcat-5.5.23/webapps/xwiki/-", "read,write,delete";
};
And them when I start XWiki I get the same error I get from my hosting
provider, that is:
javax.servlet.ServletException: Error number 3 in 0: Could not
initialize main XWiki context
Wrapped Exception: access denied (java.io.FilePermission
\WEB-INF\xwiki.cfg read)
Note that you could have used System Properties in the policy file, such as:
grant codeBase "file:${catalina.home}/webapps/xwiki/-" {
permission java.io.FilePermission
"${catalina.home}/webapps/xwiki/-", "read,write,delete";
};
And you could have specified a file path completely outside the context
tree, which would be better from a security standpoint.
Then I though: Why not adding a permission to "/WEB-INF/xwiki.cfg" so
the (buggy) XWiki configuration file access code works as it would
without a Security Manager?
The changes to catalina.policy become:
grant codeBase "file:${catalina.home}/webapps/xwiki/-" {
permission java.io.FilePermission
"${catalina.home}/webapps/xwiki/-", "read,write,delete";
permission java.io.FilePermission "/WEB-INF/xwiki.cfg", "read";
};
And the result is:
javax.servlet.ServletException: Error number 3 in 0: Could not
initialize main XWiki context
Wrapped Exception: Error number 3001 in 3: Cannot load store class
com.xpn.xwiki.store.XWikiHibernateStore
Wrapped Exception: access denied (java.io.FilePermission
\WEB-INF\hibernate.cfg.xml read)
Hey, XWiki reads the Hibernate configuration file the same way it reads
it's own configuration file... I guess it shouldn't, but let's apply the
same workaround:
permission java.io.FilePermission "/WEB-INF/hibernate.cfg.xml",
"read";
And then I get:
com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize
main XWiki context
Wrapped Exception: Error number 3202 in 3: Exception while reading
document XWiki.XWikiPreferences
Wrapped Exception: Could not create a DBCP pool
com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:291)
com.xpn.xwiki.XWiki.getXWiki(XWiki.java:383)
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:96)
My DBCP Pool config should be ok because the same local XWiki instance
runs fine without a security manager. Probably I need something else
(that is, not a java.io.FilePermission) to reach the local MySQL
database. Hum, who knows using an embebed HSQLDB would be a workaround....
Digging into Tomcat logs, I found:
java.net.SocketException: java.security.AccessControlException: access
denied (java.net.SocketPermission 127.0.0.1:3306 connect,resolve)
at
com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:151)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:280)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:1765)
at com.mysql.jdbc.Connection.<init>(Connection.java:430)
at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:268)
Which leads to a new permission:
permission java.net.SocketPermission "127.0.0.1:3306", "connect,
resolve";
And now to a different exception:
com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize
main XWiki context
Wrapped Exception: Error number 3202 in 3: Exception while reading
document XWiki.XWikiPreferences
Wrapped Exception: net.sf.ehcache.CacheException: Cannot configure
CacheManager:
jar:file:/C:/java/apache-tomcat-5.5.23/webapps/xwiki/WEB-INF/lib/xwiki.jar!/ehcache.xml:12:
Could not set attribute "path".
com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:291)
com.xpn.xwiki.XWiki.getXWiki(XWiki.java:383)
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:96)
Another configuration file to migrate to WEB-INF/classes. Changed it so
ehcache never uses disk:
<ehcache>
<!--
<diskStore path="java.io.tmpdir"/>
-->
<defaultCache
maxElementsInMemory="10000"
eternal="false"
overflowToDisk="false"
timeToIdleSeconds="120"
timeToLiveSeconds="120"
<!--
diskPersistent="true"
-->
diskPersistent="false"
diskExpiryThreadIntervalSeconds="120"
/>
</ehcache>
And I got stuck to a reflection error inside Struts:
javax.servlet.ServletException: Error number 3 in 0: Could not
initialize main XWiki context
Wrapped Exception: Error number 3202 in 3: Exception while reading
document XWiki.XWikiPreferences
Wrapped Exception: access denied (java.lang.reflect.ReflectPermission
suppressAccessChecks)
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)
Well, I know a number of Struts applications that run in shared hosting
plans. There should be a way out of this.
But as I was already messing with catalina.polocy, I added:
permission java.lang.reflect.ReflectPermission
"suppressAccessChecks";
And now finally XWiki starts fine.
But when trying to create a new page:
com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while
saving document Main.Teste do SandBox
Wrapped Exception: Error number 3211 in 3: Exception while updating
archive Main.Teste do SandBox
Wrapped Exception: access denied (java.util.PropertyPermission user.name
read)
And here we go, more messing with catalina.policy:
permission java.util.PropertyPermission "user.name", "read";
No I can create new pages inside the Wiki, and add Comments and files to
the page. Looks like I found all it takes to run XWiki inside a Security
Manager. Here's the final form of my aditions to catalina.policy:
grant codeBase "file:${catalina.home}/webapps/xwiki/-" {
permission java.io.FilePermission
"${catalina.home}/webapps/xwiki/-", "read,write,delete";
permission java.io.FilePermission "/WEB-INF/xwiki.cfg", "read";
permission java.io.FilePermission "/WEB-INF/hibernate.cfg.xml",
"read";
permission java.net.SocketPermission "127.0.0.1:3306", "connect,
resolve";
permission java.lang.reflect.ReflectPermission
"suppressAccessChecks";
permission java.util.PropertyPermission "user.name", "read";
};
And dont' forget changes to lig4j.properties and ehcache.xml which had
to be moved from WEB-INF/lib/xwiki.jar to WEB-INF/classes.
The problem is, I'm almost sure my ISP will refuse to add
[java.lang.reflect.ReflectPermission "suppressAccessChecks"]. Others
should be fine. So I'd be very grateful if someone helps me making
Struts not need this permission.
[]s, Fernando Lozano