Re: [xwiki-users] Can't get XWiki to work with Oracle
Hi, I also remember having some trouble to get Xwiki + tomcat + oracle to work. My biggest problem was that I had a too old version of ojdbc14.jar that didn't work with Oracle 10 G. I first thought that the 14 part of the ojdbc14.jar file name was a version number. But that was an incorrect assumption. To check wich ojdbc14.jar version you have, you can do like this: Rename the .jar file to ojdbc14.zip, unzip it and take a look at the manifest file in ojdbc14.zip/META-INF/MANIFEST.MF Containing (among others) a couple of lines looking something like this: *Specification-Version: Oracle JDBC Driver version - 10.2.0.4.0 Implementation-Version: Oracle JDBC Driver version - 10.2.0.4.0 * The 10.2.0.4.0 version of the driver works fine for me/xwiki with both oracle 9 and oragle 10G databases. Kind regards, Jonas 2009/7/15 Gallois Frédéric frederic.gall...@insee.fr Hi I'm running Xwiki with Tomcat5.5 and Oracle 10g. Here's what I've done : - unpack the war under the webapps directory of Tomcat - change the ojdbc.jar because of a bad version - change the hibernate.cfg.xml file : - uncomment only the oracle part - change connection.url, connection.username and connection.password As long as I remember, the Error number 3... came because of a bad version of ojdc14.jar. Hope This Helps Frédéric -Message d'origine- De : users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] De la part de Dean Weber Envoyé : mardi 14 juillet 2009 22:29 À : users@xwiki.org Objet : Re: [xwiki-users] Can't get XWiki to work with Oracle I ran a diff and found only cosmetic changes. However, I pulled that copy down and replaced mine to guarantee I had the most up to date one. Nothing changed. I still got: HTTP ERROR: 500 Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3001 in 3: Cannot load class com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigratio nManager from param xwiki.store.migration.manager.class Wrapped Exception: Error number 0 in 3: Exception while hibernate execute Wrapped Exception: Could not parse mapping document from resource xwiki.oracle.hbm.xml I am not the only one that has seen this problem. I found another posting similar to mine: http://n2.nabble.com/Problems-with-Xwiki-Enterprise-1.8-on-Ora cle---get-Error-number-3001-in-3-td2517809.html#a2518188 It didn't have a resolution as well. If there are more details needed to help my situation please let me know and I will provide any information I can. Thanks Dean Marius Dumitru Florea wrote: Hi Dean, Is this http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-c ore/src/main/resources/xwiki.oracle.hbm.xmlhttp://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-c%0Aore/src/main/resources/xwiki.oracle.hbm.xml the same as your xwiki.oracle.hbm.xml ? Hope this helps, Marius ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- View this message in context: http://n2.nabble.com/Can%27t-get-XWiki-to-work-with-Oracle-tp3 228059p3259203.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] trying to make warning macro work in 2.0
Hi, On Tue, Apr 28, 2009 at 4:54 PM, Thomas Mortagne thomas.morta...@xwiki.comwrote: [snip] Looks like it can't find some python files which are inside a jar file (pygments-1.0-xwiki.jar). A java URL to the files inside the jar is given to jython which is supposed to look at this URL as if it was a folder. Maybe this can't be done with the JVM, the application Server or the configuration of one of theses. Could you try to extract Lib/ folder from pygments-1.0-xwiki.jar to classes/ folder (the one which is at the same level than lib/ folder, create it if it does not exists) and move the jar where jython could not find it. Trying to see if it's working when the Pygments code is in a real folder. (I should maybe add a configuration to be able to set the location of Python code anyway) I have now tried to remove the file pygments-1.0-xwiki.jar from xwiki.war/WEB-INF/lib/ and extracted the Lib/ folder of the pygments-1.0-xwiki.jar to this path: xwiki.war/WEB-INF/classes/Lib/ so that xwiki.war/WEB-INF/classes/Lib/pygments/ contains the python files. And then restarted the app server. But I get the Failed to execute macro: code with part of the stack trace below. Also tried to skip the Lib part of the path and put the pygments folder directly under xwiki.war/WEB-INF/classes/ but it did not do the trick either. ... ... Caused by: LookupError: no codec search functions registered: can't find encoding at org.python.core.PyException.fillInStackTrace(PyException.java:65) at java.lang.Throwable.init(Throwable.java:56) at org.python.core.PyException.init(PyException.java:46) at org.python.core.PyException.init(PyException.java:43) at org.python.core.PyException.init(PyException.java:56) at org.python.core.codecs.lookup(codecs.java:80) at org.python.core.codecs.getEncoder(codecs.java:209) at org.python.core.codecs.encode(codecs.java:187) at org.python.core.PyString.str_encode(PyString.java:2443) at org.python.core.PyString.encode(PyString.java:2434) at org.python.antlr.GrammarActions.extractString(GrammarActions.java:443) at org.python.antlr.GrammarActions.extractStrings(GrammarActions.java:399) at org.python.antlr.PythonParser.atom(PythonParser.java:11244) ... ... Trying to find if it's possible to enable some more detailed log on jython. [snip] -- 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] trying to make warning macro work in 2.0
Hi Vincent, Sorry for my delay in answering. the #info macro works and renders correctly when I type in the following in the (xwiki/2.0 syntax) wiki editor: {{velocity}}{{html wiki=true}}#info(Important info message text){{/html}}{{/velocity}} Is this the correct way to use the #info macro? I can't get the code macro to work though, do you have any idea of what I am doing wrong? typing in the following in the wiki editor (also in xwiki/2.0 syntax mode) {{code}}ls -al{{/code}} results in (after clicking the Save View button): At the place of the {{code}}ls -al{{/code}}: Failed to execute macro: code org.xwiki.rendering.macro.MacroExecutionException: Failed to highlight content at org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:85) at org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:46) at org.xwiki.rendering.macro.box.AbstractBoxMacro.execute(AbstractBoxMacro.java:139) at org.xwiki.rendering.macro.box.AbstractBoxMacro.execute(AbstractBoxMacro.java:55) at org.xwiki.rendering.internal.transformation.MacroTransformation.transformOnce(MacroTransformation.java:168) at org.xwiki.rendering.internal.transformation.MacroTransformation.transform(MacroTransformation.java:112) at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:86) at .. .. Maybe I am not using the code macro correctly? Kind regards, Jonas On Wed, Apr 22, 2009 at 12:45 PM, Vincent Massol vinc...@massol.net wrote: On Apr 22, 2009, at 12:40 PM, Jonas Almfeldt wrote: Hi, I believe I'm having the same problem with rendering of macros (particularly the #info() and also {{code}} macro in the xwiki/2.0 syntax in xwiki 1.8.1. What problem? Have you seen my answer to Kelly? Thanks -Vincent Kind regards, Jonas On 4/21/09, Kelly Lakas kla...@nwlinc.com wrote: Hi - I am trying to make the warning box macro work in 2.0. From the research I did, it looked like I needed to put it in like this: {{velocity}}#warning(this needs an update){{/velocity}}. Then I get this on render: div class=warningmessagespan class=messagetypeWarning: /spanthis needs an update/div. I tried {{velocity}}{{xhtml}}#warning(this needs an update){{/xhtml}}{{/velocity}} as well, but that failed too - I get an error box that says unknown macro: html. I'm using XWiki Enterprise 1.8.1.18545, installed on my local box. I'm not a programmer/developer, so I'm a little stuck on the next step and my investigations so far haven't turned up what I need to do. I saw also on the footnotes macro page that the comment said that it didn't work in 2.0, so I'm assuming that needs an update to get it to work? Or is the comment wrong? Hate to bother, just looking for a little help. Kelly Lakas Project Manager next wave logistics inc. 28377 davis parkway, suite 607a warrenville, il 60555 [office] 847.798.8897 [mobile]312.307.2079 [web] www.nwlinc.com http://www.nwlinc.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] trying to make warning macro work in 2.0
) at org.python.antlr.PythonParser.file_input(PythonParser.java:631) at org.python.antlr.ModuleParser.file_input(ModuleParser.java:31) at org.python.core.ParserFacade.parse(ParserFacade.java:130) at org.python.core.ParserFacade.parse(ParserFacade.java:145) at org.python.core.imp.compileSource(imp.java:231) at org.python.core.imp.compileSource(imp.java:220) at org.python.core.util.importer.getModuleCode(importer.java:198) at org.python.core.util.importer.importer_load_module(importer.java:94) at org.python.modules.zipimport.zipimporter.zipimporter_load_module(zipimporter.java:158) at org.python.modules.zipimport.zipimporter$zipimporter_load_module_exposer.__call__(Unknown Source) at org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:47) at org.python.core.imp.loadFromLoader(imp.java:421) at org.python.core.imp.find_module(imp.java:378) at org.python.core.imp.import_next(imp.java:579) at org.python.core.imp.import_name(imp.java:690) at org.python.core.imp.importName(imp.java:750) at org.python.core.ImportFunction.__call__(__builtin__.java:1265) at org.python.core.PyObject.__call__(PyObject.java:337) at org.python.core.__builtin__.__import__(__builtin__.java:1236) at org.python.core.__builtin__.__import__(__builtin__.java:1219) at org.python.core.imp.importOne(imp.java:761) at org.python.pycode._pyx23.f$0(string:1) at org.python.pycode._pyx23.call_function(string) at org.python.core.PyTableCode.call(PyTableCode.java:166) at org.python.core.PyCode.call(PyCode.java:14) at org.python.core.Py.runCode(Py.java:1206) at org.python.core.Py.exec(Py.java:1237) at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:124) at org.xwiki.rendering.internal.parser.pygments.PygmentsParser.initialize(PygmentsParser.java:142) at org.xwiki.plexus.lifecycle.phase.InitializePhase.execute(InitializePhase.java:44) at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:128) at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:142) at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:132) at org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:90) at org.codehaus.plexus.DefaultComponentLookupManager.lookup(DefaultComponentLookupManager.java:147) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:277) at org.xwiki.plexus.manager.PlexusComponentManager.lookup(PlexusComponentManager.java:76) at org.xwiki.rendering.internal.macro.code.CodeMacro.highlight(CodeMacro.java:122) at org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:82) ... 69 more On Tue, Apr 28, 2009 at 3:20 PM, Jonas Almfeldt jonas.almfe...@gmail.comwrote: On Tue, Apr 28, 2009 at 11:50 AM, Vincent Massol vinc...@massol.netwrote: Hi Jonas, On Apr 28, 2009, at 11:33 AM, Jonas Almfeldt wrote: Hi Vincent, Sorry for my delay in answering. the #info macro works and renders correctly when I type in the following in the (xwiki/2.0 syntax) wiki editor: {{velocity}}{{html wiki=true}}#info(Important info message text){{/html}}{{/velocity}} Is this the correct way to use the #info macro? Right now it is. When we fix http://jira.xwiki.org/jira/browse/XWIKI-3079 you'll be able to write: {{velocity}}#info(...){{/velocity}} And better when we finish http://jira.xwiki.org/jira/browse/XWIKI-2968 (we're close) then you'll be able to write: {{info .../}} Good to know :) Thanks for the info. I can't get the code macro to work though, do you have any idea of what I am doing wrong? typing in the following in the wiki editor (also in xwiki/2.0 syntax mode) {{code}}ls -al{{/code}} results in (after clicking the Save View button): At the place of the {{code}}ls -al{{/code}}: Failed to execute macro: code org.xwiki.rendering.macro.MacroExecutionException: Failed to highlight content at This looks like a bug. Can you raise a jira issue for this? Thanks -Vincent yes I can do that, but I want to be able to describe the problem better first :) If I set the code language clause to =none, then it works, but it does not highlight of course. Trying to specify other languages like, C, PHP, XML, HTML, and even not specifying any language at all gives the error Failed to execute macro: code with the failed to highlight exception. Example that works: {{code language=none}} html headCool!/head /html {{/code}} example that don't work: {{code language=html}} html
Re: [xwiki-users] trying to make warning macro work in 2.0
Hi, I believe I'm having the same problem with rendering of macros (particularly the #info() and also {{code}} macro in the xwiki/2.0 syntax in xwiki 1.8.1. Kind regards, Jonas On 4/21/09, Kelly Lakas kla...@nwlinc.com wrote: Hi - I am trying to make the warning box macro work in 2.0. From the research I did, it looked like I needed to put it in like this: {{velocity}}#warning(this needs an update){{/velocity}}. Then I get this on render: div class=warningmessagespan class=messagetypeWarning: /spanthis needs an update/div. I tried {{velocity}}{{xhtml}}#warning(this needs an update){{/xhtml}}{{/velocity}} as well, but that failed too - I get an error box that says unknown macro: html. I'm using XWiki Enterprise 1.8.1.18545, installed on my local box. I'm not a programmer/developer, so I'm a little stuck on the next step and my investigations so far haven't turned up what I need to do. I saw also on the footnotes macro page that the comment said that it didn't work in 2.0, so I'm assuming that needs an update to get it to work? Or is the comment wrong? Hate to bother, just looking for a little help. Kelly Lakas Project Manager next wave logistics inc. 28377 davis parkway, suite 607a warrenville, il 60555 [office] 847.798.8897 [mobile]312.307.2079 [web] www.nwlinc.com http://www.nwlinc.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] XWiki 1.8.1 Editor problem, lost line breaks and escaped wiki syntax
Hi Maurius, Great! I had a look at the XWIKI-3630 issue. If wanted/needed I might be able to assist with some testing in WAS environment. Perhaps this affects the preview functionality also? I have not tested it yet. I have however tested (after my fix in the template) to include velocity code according to the xwiki/2.0 syntax on my xwiki/2.0 page. the code inserted was: {{velocity}} #info(Some info text) {{/velocity}} But it seems to be only partially rendered as a div element is rendered, but visible on the page, which is rendered ok besides from this. result in wysiwyg and also when viewing the page after saving: div class=infomessageSome info text/div I haven't tested much with macros yet. Another question: I have access to my wiki restricted to registered users. Unauthorised visitors should however be redirected (?) automatically to a page in a public space instead of just being redirected to the log in page. How can that be achieved? Have a nice weekend, Jonas [snip] Is this a bug in WAS 6.1? or is it actually following some servlet standard more strictly than other application servers do? or just interpreting the standard more strictly perhaps :-) The servlet specification says nothing about this so I guess it's not strictly correct to have query string parameters without a value. Some web containers support it, but we should definitely avoid it. How can we solve this? Will this be adressed in a coming xwiki release? Yes, will be fixed for XE 1.8.2. See http://jira.xwiki.org/jira/browse/XWIKI-3630 Thanks for reporting this, Marius ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWiki 1.8.1 Editor problem, lost line breaks and escaped wiki syntax
Hi Maurius, On Fri, Apr 17, 2009 at 12:47 PM, Marius Dumitru Florea mariusdumitru.flo...@xwiki.com wrote: Hi Jonas, Jonas Almfeldt wrote: Hi Maurius and Guillaume, I'm sending this to you in order to not spam the mailing list. We can post final results to the list if/when we have a solution. AFAIK no one complained so far about the increasing number of mails on the users lists. Ok, good :-) The scenario you described in your email reproduces the error for me, each time, when running hte xwiki instance in WebSphere Application Server 6.1 environment. I have now tested some more with the 1.8.1 stable version. I get different results when running the scenario you described in my local test environment based on Tomcat 5.5 and when running it on the server side (WAS). Configurations: Local setup == *Tomcat 5.5 + Oracle 9.2.1 locally on my Win XP pc. * Oracle jdbc driver: ojdbc14.jar (for Oracle 10 G) * downloaded http://repository.jboss.com/maven2/net/jcip/jcip-annotations/1.0/jcip-annotations-1.0.jar and saved as xwiki/WEB-INF/lib/jcip-annotations-1.0.jar (this was a missing dependancy when I deployed it in the hosted set up on WAS, and I want the war files to be as similar as possible except for the db configuration part and log paths, so I included this in the local set up also, although not needed. It seems to be included in the JRE/SDK or in Tomcat already) * Database content (wiki content) imported from XAR file i created from a complete export of the information in the wiki instance running in the hosted setup. I'm not having the problem with this setup. Hosted setup == * WebSphere Application Server 6.1 + Remote Oracle 10 G. * Oracle jdbc driver: ojdbc14.jar (for Oracle 10 G) * downloaded http://repository.jboss.com/maven2/net/jcip/jcip-annotations/1.0/jcip-annotations-1.0.jar and saved as xwiki/WEB-INF/lib/jcip-annotations-1.0.jar (this was a missing dependancy when I deployed it in the hosted set up on WAS) Question: Would it be possible that the proper jcip-annotations-1.0.jar can be included in the official .war distribution of XWiki in the future, since the jcip-annotations classes seem to be required for xwiki to work (out of the box at least)? * Database content was created with the previous xwiki 1.8 stable release. This setup induces the wysiwyg xwiki/2.0 parsing problem. I don't think this problem is related to the application server or the database used, nor even to the imported XAR. It should be caused by the xwiki-rendering jars you have in your WEB-INF/lib directory or by the WYSIWYG velocity templates. Where can I find those templates? in the .war file or in the database? When running the scenario in the hosted setup the following happens: Create new document, wysiwyg editor opens by default, (syntax: xwiki/2.0 is selected but grayed out in the wiki syntax chooser): * typed Heading 1 * applied Title 1 style * pressed Enter twice (to go out of the heading) * clicked the bold button * typed bold text * pressed Enter twice (to create a new paragraph) * typed bold text again * saved (everything was fine) * edited again (everything was NOT fine) In the wysiwyg editor I get: ---8- = Heading 1 = **bold text** **bold text** ---8--- This means the XWiki syntax is no converted to XHTML before loading the editor. Can you try a simpler example just to be sure? For instance to this: * edit a new/empty page * type a word like bug * select the word * click the bold button on the tool bar * save and edit again Do you get **bug** in the WYSIWYG editor? If so, then cancel the edit. The bug is in bold in view mode right? Then please append xpage=wysiwyginput to the query string of your URL and tell me the output. For instance: http://localhost:8080/xwiki/bin/view/Sandbox/Test?xpage=wysiwyginput I suspect the output is **bug** right? Yes, the output is: **bug**\\ Now if you append also render like in: http://localhost:8080/xwiki/bin/view/Sandbox/FF?xpage=wysiwyginputrender is the bug in bold? No :-( the output of ...?xpage=wysiwyginputrender is still: **bug**\\ Some additional details: The WAS 6.1 jvm has java version 1.5.0 btw. My local Tomcat runs with the JRE of jdk1.5.0_08. I also forgot to mention to the list that this problem is not specific to 1.8.1. It happens when I test with 1.8 also. (same wiki db content used, created with 1.8 stable and the 1.8 XAR archive as a base). When upgrading to 1.8.1, I did not apply the xwiki enterprise 1.8.1 XAR archive. I'm also getting quite a lot of error messages/warning messages from xwiki in the system out log of the WAS. Maybe this has something to do with the error? An extract of the reoccurring errors is attached to this email. The errors are not related to the WYSIWYG editor. Thanks, Marius What do you think about this? All help is appreciated
Re: [xwiki-users] XWiki 1.8.1 Editor problem, lost line breaks and escaped wiki syntax
Hi, On Fri, Apr 17, 2009 at 1:58 PM, Marius Dumitru Florea mariusdumitru.flo...@xwiki.com wrote: Hi Jonas Jonas Almfeldt wrote: [snip] Where can I find those templates? in the .war file or in the database? Yes, in the war, in templates directory. Have you changed editwysiwygnew.vm or wysiwyginput.vm? No haven't. I have now deployed the same .war file in both environments and the instance running in Tomcat works fine with the rendering in the wysiwyg editor, but the instance running in WAS environment does not. :-( [snip] This means the XWiki syntax is no converted to XHTML before loading the editor. Can you try a simpler example just to be sure? For instance to this: * edit a new/empty page * type a word like bug * select the word * click the bold button on the tool bar * save and edit again Do you get **bug** in the WYSIWYG editor? If so, then cancel the edit. The bug is in bold in view mode right? Then please append xpage=wysiwyginput to the query string of your URL and tell me the output. For instance: http://localhost:8080/xwiki/bin/view/Sandbox/Test?xpage=wysiwyginput I suspect the output is **bug** right? Yes, the output is: **bug**\\ Now if you append also render like in: http://localhost:8080/xwiki/bin/view/Sandbox/FF?xpage=wysiwyginputrender http://localhost:8080/xwiki/bin/view/Sandbox/FF?xpage=wysiwyginputrender is the bug in bold? No :-( the output of ...?xpage=wysiwyginputrender is still: **bug**\\ Can you try this: * edit a NEW page with the Wiki editor and past this content: -8- {{velocity}} #set($mydoc = $xwiki.getDocument(Sandbox.FF)) $mydoc.getRenderedContent($mydoc.content, $mydoc.syntaxId) {{/velocity}} -8- * replace Sandbox.FF with the space and the page where you wrote **bug**. Save and view. What does it display? I get: pstrongbug/strong/p I also get: pstrongbug/strong/p Some additional details: The WAS 6.1 jvm has java version 1.5.0 btw. My local Tomcat runs with the JRE of jdk1.5.0_08. I also forgot to mention to the list that this problem is not specific to 1.8.1. It happens when I test with 1.8 also. (same wiki db content used, created with 1.8 stable and the 1.8 XAR archive as a base). [snip] Thanks, Marius ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWiki 1.8.1 Editor problem, lost line breaks and escaped wiki syntax
On Fri, Apr 17, 2009 at 4:05 PM, Marius Dumitru Florea mariusdumitru.flo...@xwiki.com wrote: Jonas Almfeldt wrote: [snip] Then something wrong happens in wysiwyginput.vm template. This is what I have http://pastebin.com/m118b997b . Can try the following: (1) Replace line 16 with #set($content = **nobug**) and refresh the page containing bug. What the output if you append xpage=wysiwyginputrender to the query string of the view URL? http://server:8080/xwiki/bin/view/Sandbox/test+2?xpage=wysiwyginputrendergives the output: **nobug** (2) Revert the previous change. Replace line 28 with #set($content = $tdoc.getRenderedContent(**nobug**, $tdoc.getSyntaxId())) and refresh again. What's the output now? Output of http://server:8080/xwiki/bin/view/Sandbox/test+2?xpage=wysiwyginputrenderis now: **bug** and if I edit the page, the wysiwyg opens up displaying: **bug** So the condition in the if statement on line 27: #if($request.render) does not seem to be satisfied. See my result for (3) below. [snip] (3) Revert the changes from (1) and (2) and instead of xpage=wysiwyginputrender put xpage=wysiwyginputrender=true in the query string of the view URL. What's the output this time? I suspect the WAS environment doesn't support query string parameters without a value. Maurius, your suspicion seems very likely! :-) When I have reverted changes (1) and (2), and using url: with render=true instead of just render it displays * bug in bold text, just as it should do. * Thanks for having such good patience to guide me through the troubleshooting! Is this a bug in WAS 6.1? or is it actually following some servlet standard more strictly than other application servers do? or just interpreting the standard more strictly perhaps :-) How can we solve this? Will this be adressed in a coming xwiki release? Kind regards, Jonas ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWiki 1.8.1 Editor problem, lost line breaks and escaped wiki syntax
Yeahh! I figured out a temporary (?) solution to the problem: I added =true after render at line #73 of See http://pastebin.com/m78e1155c I changed #set($inputURLQueryString = $inputURLQueryString + render) to #set($inputURLQueryString = $inputURLQueryString + render=true) It looks like query parameters with no value occurrs in other places of the code as well. I have not suffered from that so far. But it would be good to know if/how this issue will be handled in coming xwiki releases. My personal opinion is that it is probably good for XWiki and the community if it is as platform independent as possible out of the box. Thanks kind regards, Jonas On Fri, Apr 17, 2009 at 10:41 PM, Jonas Almfeldt jonas.almfe...@gmail.comwrote: On Fri, Apr 17, 2009 at 4:05 PM, Marius Dumitru Florea mariusdumitru.flo...@xwiki.com wrote: Jonas Almfeldt wrote: [snip] Then something wrong happens in wysiwyginput.vm template. This is what I have http://pastebin.com/m118b997b . Can try the following: (1) Replace line 16 with #set($content = **nobug**) and refresh the page containing bug. What the output if you append xpage=wysiwyginputrender to the query string of the view URL? http://server:8080/xwiki/bin/view/Sandbox/test+2?xpage=wysiwyginputrendergives the output: **nobug** (2) Revert the previous change. Replace line 28 with #set($content = $tdoc.getRenderedContent(**nobug**, $tdoc.getSyntaxId())) and refresh again. What's the output now? Output of http://server:8080/xwiki/bin/view/Sandbox/test+2?xpage=wysiwyginputrenderis now: **bug** and if I edit the page, the wysiwyg opens up displaying: **bug** So the condition in the if statement on line 27: #if($request.render) does not seem to be satisfied. See my result for (3) below. [snip] (3) Revert the changes from (1) and (2) and instead of xpage=wysiwyginputrender put xpage=wysiwyginputrender=true in the query string of the view URL. What's the output this time? I suspect the WAS environment doesn't support query string parameters without a value. Maurius, your suspicion seems very likely! :-) When I have reverted changes (1) and (2), and using url: with render=true instead of just render it displays * bug in bold text, just as it should do. * Thanks for having such good patience to guide me through the troubleshooting! Is this a bug in WAS 6.1? or is it actually following some servlet standard more strictly than other application servers do? or just interpreting the standard more strictly perhaps :-) How can we solve this? Will this be adressed in a coming xwiki release? Kind regards, Jonas ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] XWiki 1.8.1 Editor problem, lost line breaks and escaped wiki syntax
Hi, I hope someone out there can help me with this very strange problem with the editors. I have WYSIWYG as the default editor, and have edited the xwiki.properties and set xwiki/2.0 as default editor syntax. Scenario: I create a new page. Wysiwyg editor is default. Editing the following content: Heading 1 bold text bold text And saving. It looks nice when viewing the new page, with Title 1 formatting of the heading line and bold text on the second and third lines. But when I chose to edit the page again, the wysiwyg editor appears, with the following faulty content: = heading 1 = **bold text line 1** **bold text line 2**\\ \\ Hitting the Preview button from wysiwyg editor shows the same result, raw xwiki/2.0 syntax, minus the original line breaks in the preview mode. If I instead of preview change to the Wiki editor mode, the content is escaped: ~= heading 1 = ~*~*bold text line 1~*~* ~*~*bold text line 2~*~*~\~\ ~\~\ And if cycling between the editors once more from there, even more escape ~ characters occur. What am I doing wrong? config issue? or is this a bug? wysiwyg editor appears not to be able to parse xwiki/2.0 syntax in 1.8.1? Details: * XWiki 1.8.1 stable * WebSphere Application Server 6.1 fixpack 21 Kind regards, Jonas ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWiki 1.8.1 Editor problem, lost line breaks and escaped wiki syntax
Hi Guillaume, Thanks for your quick reply. I run Firefox 3.0.8 and Internet Explorer 6.0 on Win XP SP2. I'll try to respond later with a more detailed description on how I reproduce this phenomenon. Kind regards, Jonas On Thu, Apr 16, 2009 at 3:19 PM, Guillaume Lerouge guilla...@xwiki.comwrote: Hi Jonas, On Thu, Apr 16, 2009 at 2:50 PM, Jonas Almfeldt jonas.almfe...@gmail.com wrote: Hi, I hope someone out there can help me with this very strange problem with the editors. I have WYSIWYG as the default editor, and have edited the xwiki.properties and set xwiki/2.0 as default editor syntax. Scenario: I create a new page. Wysiwyg editor is default. Editing the following content: Heading 1 bold text bold text And saving. It looks nice when viewing the new page, with Title 1 formatting of the heading line and bold text on the second and third lines. But when I chose to edit the page again, the wysiwyg editor appears, with the following faulty content: = heading 1 = **bold text line 1** **bold text line 2**\\ \\ Hitting the Preview button from wysiwyg editor shows the same result, raw xwiki/2.0 syntax, minus the original line breaks in the preview mode. If I instead of preview change to the Wiki editor mode, the content is escaped: ~= heading 1 = ~*~*bold text line 1~*~* ~*~*bold text line 2~*~*~\~\ ~\~\ And if cycling between the editors once more from there, even more escape ~ characters occur. What am I doing wrong? config issue? or is this a bug? wysiwyg editor appears not to be able to parse xwiki/2.0 syntax in 1.8.1? Details: * XWiki 1.8.1 stable * WebSphere Application Server 6.1 fixpack 21 Which browser / OS are you using? We need to have this information in order to try and reproduce your issue. Thanks for your feedback, Guillaume Kind regards, Jonas ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.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
[xwiki-users] How to make editor panels go left when in left column layout?
Hi, I have changed the layout from the default right column layout to left column instead, and moved the panels from left to right. It works fine until I choose to edit a page. When in edit mode the left column dissapears and the right column suddenly appears containing the following three panels: * Choose Editor * Document Information * Help on the Xwiki syntax How can I move these editor panels to the left? One additional question: Is is possible to edit .vm templates directly in the web browser? Kind regards, Jonas ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users