Re: [xwiki-users] code macro/jython-standalone-2.7.0-xwiki-3.jar problem

2017-01-03 Thread Thomas Mortagne
Ok, thanks for sharing.

On Tue, Jan 3, 2017 at 10:35 AM, Pascal BASTIEN  wrote:
> Hello,
>
> I found how to fix my {{code}} macro issue.
> I must use Tomcat 8.0.33 instead.
> With tomcat-8.0.32 (with same java version) {{code}} macro doesn't work.
>
> Pascal B
>
> 
> En date de : Mer 30.11.16, Pascal BASTIEN  a écrit :
>
>
> ...
>   >
>   > I try to deploy xwiki 8.4 on Tomcat
>   8.0.32/ java 1.8.0_74 on our datacenter but I have a issue
>   with the code macro:
>   > {{code}}
>   > My code
>   > {{/code}}
>   >
>   > The page displayed:
>   "Failed to execute the [code] macro. Cause: [String
>   index out of range: 3]. Click on this message for
>   details.".
>   > I pasted the details
>   here: http://pastebin.ca/3743091
>   >
>
> ...



-- 
Thomas Mortagne


Re: [xwiki-users] code macro/jython-standalone-2.7.0-xwiki-3.jar problem

2017-01-03 Thread Pascal BASTIEN
Hello,

I found how to fix my {{code}} macro issue.
I must use Tomcat 8.0.33 instead.
With tomcat-8.0.32 (with same java version) {{code}} macro doesn't work.

Pascal B


En date de : Mer 30.11.16, Pascal BASTIEN  a écrit :


...
  >
  > I try to deploy xwiki 8.4 on Tomcat
  8.0.32/ java 1.8.0_74 on our datacenter but I have a issue
  with the code macro:
  > {{code}}
  > My code
  > {{/code}}
  >
  > The page displayed:
  "Failed to execute the [code] macro. Cause: [String
  index out of range: 3]. Click on this message for
  details.".
  > I pasted the details
  here: http://pastebin.ca/3743091
  >
  
...


Re: [xwiki-users] code macro/jython-standalone-2.7.0-xwiki-3.jar problem

2016-11-30 Thread Thomas Mortagne
I doubt it has anything to so with anything in front of XWiki. Looks
more related to the JVM, maybe there is a security profile configured
for this instance and it's too restrictive for Jython but the error
message is not super clear on what exactly is failing.

On Wed, Nov 30, 2016 at 9:58 AM, Pascal BASTIEN <pbasnews-xw...@yahoo.fr> wrote:
> No the macro doesn't work with
> {{code}}
>  test
> {{/code}}
> same error.
>
> I must try with same couple tomcat/java on my dev server.
> I think the problem coming from secure stuff (chroot, acl, reverse proxy, 
> etc.) on our data center but i don't know where to search error source :-/
>
> 
> En date de : Mar 29.11.16, Thomas Mortagne <thomas.morta...@xwiki.com> a 
> écrit :
>
>  Objet: Re: [xwiki-users] code macro/jython-standalone-2.7.0-xwiki-3.jar 
> problem
>  À: "Pascal BASTIEN" <pbasnews-xw...@yahoo.fr>, "XWiki Users" 
> <users@xwiki.org>
>  Date: Mardi 29 novembre 2016, 18h33
>
>  The error you pasted have
>  nothing to do with
>  http://jira.xwiki.org/browse/XWIKI-7984
>  plus XWIKI-7984 is specific to
>  Jboss
>  AS.
>
>  The code macro works
>  well with Tomcat and the setup you indicated is
>  pretty standard for XWiki. It's probably a
>  Jython or Pygments bug with
>  the specific
>  content you tried.
>
>  Does the
>  macro work with some very simple content like:
>
>  {{code}}
>  test
>  {{/code}}
>
>  ?
>
>  If it work with other content then please
>  create a jira issue with the
>  content that
>  reproduce the error and we will try to reproduce it and
>  understand where it come from exactly.
>
>  On Tue, Nov 29, 2016 at 3:55 PM, Pascal BASTIEN
>  <pbasnews-xw...@yahoo.fr>
>  wrote:
>  > Hello,
>  >
>  > I try to deploy xwiki 8.4 on Tomcat
>  8.0.32/ java 1.8.0_74 on our datacenter but I have a issue
>  with the code macro:
>  > {{code}}
>  > My code
>  > {{/code}}
>  >
>  > The page displayed:
>  "Failed to execute the [code] macro. Cause: [String
>  index out of range: 3]. Click on this message for
>  details.".
>  > I pasted the details
>  here: http://pastebin.ca/3743091
>  >
>  > I tested this way http://jira.xwiki.org/browse/XWIKI-7984
>  > (open jython-standalon jar/extract
>  everything in Lib/* and put this in a new jar at the root of
>  the jar/put the new ) but it doesn't work.
>  >
>  > Do you have an idea
>  what this problem coming from?
>  >
>  > (It seem that someone else have same
>  problem: https://demon.aeto.net/Macro/CitationBox)
>  >
>  > Thxs for any help
>  >
>  > Pascal
>  BASTIEN
>
>
>
>  --
>  Thomas
>  Mortagne
>



-- 
Thomas Mortagne


Re: [xwiki-users] code macro/jython-standalone-2.7.0-xwiki-3.jar problem

2016-11-30 Thread Pascal BASTIEN
No the macro doesn't work with
{{code}}
 test
{{/code}}
same error.

I must try with same couple tomcat/java on my dev server.
I think the problem coming from secure stuff (chroot, acl, reverse proxy, etc.) 
on our data center but i don't know where to search error source :-/


En date de : Mar 29.11.16, Thomas Mortagne <thomas.morta...@xwiki.com> a écrit :

 Objet: Re: [xwiki-users] code macro/jython-standalone-2.7.0-xwiki-3.jar problem
 À: "Pascal BASTIEN" <pbasnews-xw...@yahoo.fr>, "XWiki Users" <users@xwiki.org>
 Date: Mardi 29 novembre 2016, 18h33
 
 The error you pasted have
 nothing to do with
 http://jira.xwiki.org/browse/XWIKI-7984
 plus XWIKI-7984 is specific to
 Jboss
 AS.
 
 The code macro works
 well with Tomcat and the setup you indicated is
 pretty standard for XWiki. It's probably a
 Jython or Pygments bug with
 the specific
 content you tried.
 
 Does the
 macro work with some very simple content like:
 
 {{code}}
 test
 {{/code}}
 
 ?
 
 If it work with other content then please
 create a jira issue with the
 content that
 reproduce the error and we will try to reproduce it and
 understand where it come from exactly.
 
 On Tue, Nov 29, 2016 at 3:55 PM, Pascal BASTIEN
 <pbasnews-xw...@yahoo.fr>
 wrote:
 > Hello,
 >
 > I try to deploy xwiki 8.4 on Tomcat
 8.0.32/ java 1.8.0_74 on our datacenter but I have a issue
 with the code macro:
 > {{code}}
 > My code
 > {{/code}}
 >
 > The page displayed:
 "Failed to execute the [code] macro. Cause: [String
 index out of range: 3]. Click on this message for
 details.".
 > I pasted the details
 here: http://pastebin.ca/3743091
 >
 > I tested this way http://jira.xwiki.org/browse/XWIKI-7984
 > (open jython-standalon jar/extract
 everything in Lib/* and put this in a new jar at the root of
 the jar/put the new ) but it doesn't work.
 >
 > Do you have an idea
 what this problem coming from?
 >
 > (It seem that someone else have same
 problem: https://demon.aeto.net/Macro/CitationBox)
 >
 > Thxs for any help
 >
 > Pascal
 BASTIEN
 
 
 
 -- 
 Thomas
 Mortagne
 


Re: [xwiki-users] code macro/jython-standalone-2.7.0-xwiki-3.jar problem

2016-11-29 Thread Thomas Mortagne
The error you pasted have nothing to do with
http://jira.xwiki.org/browse/XWIKI-7984 plus XWIKI-7984 is specific to
Jboss AS.

The code macro works well with Tomcat and the setup you indicated is
pretty standard for XWiki. It's probably a Jython or Pygments bug with
the specific content you tried.

Does the macro work with some very simple content like:

{{code}}
test
{{/code}}

?

If it work with other content then please create a jira issue with the
content that reproduce the error and we will try to reproduce it and
understand where it come from exactly.

On Tue, Nov 29, 2016 at 3:55 PM, Pascal BASTIEN  wrote:
> Hello,
>
> I try to deploy xwiki 8.4 on Tomcat 8.0.32/ java 1.8.0_74 on our datacenter 
> but I have a issue with the code macro:
> {{code}}
> My code
> {{/code}}
>
> The page displayed: "Failed to execute the [code] macro. Cause: [String index 
> out of range: 3]. Click on this message for details.".
> I pasted the details here: http://pastebin.ca/3743091
>
> I tested this way http://jira.xwiki.org/browse/XWIKI-7984
> (open jython-standalon jar/extract everything in Lib/* and put this in a new 
> jar at the root of the jar/put the new ) but it doesn't work.
>
> Do you have an idea what this problem coming from?
>
> (It seem that someone else have same problem: 
> https://demon.aeto.net/Macro/CitationBox)
>
> Thxs for any help
>
> Pascal BASTIEN



-- 
Thomas Mortagne


[xwiki-users] code macro

2007-11-16 Thread Vitantonio Messa
Hi all,

If I wrote this in a wiki page:

{code}code1{code}
some text
{code}code2{code}

When the page is displayed, there aren't two code section, but only one, 
and the some text is included in the code section.

I'm using it in the wrong way?
Thanks,

Vito



-- 
Vitantonio Messa
+358 46 889 48 49 - [EMAIL PROTECTED]
COSS - The Finnish Centre for Open Source Solutions
@ Technology Centre Hermia Ltd.
Hermiankatu 1, FIN-33720 Tampere, FINLAND
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] code macro

2007-11-16 Thread Vitantonio Messa
Vincent Massol wrote:
 Hi Vito,
 
 That bug was fixed some time ago  in 1.1.1 if my memory is good.

Ok, thanks, that's good to know: I'm running the version 1.1-rc-1.4635.

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


Re: [xwiki-users] code macro

2007-10-05 Thread Kristian Marinkovic
hi,

this was a bug in xwiki 1.0 i think
update to xwiki 1.1 and it will work :)

g,
kris



anuj sharma [EMAIL PROTECTED] 
Gesendet von: [EMAIL PROTECTED]
05.10.2007 10:52
Bitte antworten an
XWiki Users users@xwiki.org


An
users@xwiki.org
Kopie

Thema
[xwiki-users] code macro






Hi all,

Can anyone please tell me how we can use two code tags in a page 
that is, if i want to print the code and then the text and again the code 
,how i can do that??

I have tried by using another code tag for second code but the whole data 
(with text)
gets embedded in code area.

thanks,


ANUJ SHARMA.
 Download prohibited? No problem. CHAT from any browser, without download.
___
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] code macro

2007-10-05 Thread anuj sharma
Hi Kristian,

I am using 1.1 only, still facing same problem.

Kristian Marinkovic [EMAIL PROTECTED] wrote:  
hi, 
 
this was a bug in xwiki 1.0 i think 
update to xwiki 1.1 and it will work :) 
 
g, 
kris 
 
 
   anuj sharma [EMAIL PROTECTED]  
Gesendet von: [EMAIL PROTECTED] 05.10.2007 10:52Bitte antworten an
 XWiki Users users@xwiki.org
 
 
An
 users@xwiki.org   Kopie
  
  Thema
 [xwiki-users] code macro 


 
 
 
 
Hi all,
 
 Can anyone please tell me how we can use two code tags in a page 
 that is, if i want to print the code and then the text and again the code ,how 
i can do that??
 
 I have tried by using another code tag for second code but the whole data 
(with text)
 gets embedded in code area.
 
 thanks,
 
 
 ANUJ SHARMA.   

-
Download prohibited? No problem. CHAT from any browser, without 
download.___
 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




ANUJ SHARMA.
   
-
 Chat on a cool, new interface. No download required. Click here.___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] code macro

2007-10-05 Thread G.Schoepp
Kristian Marinkovic schrieb:
 this was a bug in xwiki 1.0 i think
 update to xwiki 1.1 and it will work :)

It's been a bug in 1.1 rc1:
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise11RC1#HKnownissues

@anuj: Are you really using 1.1 stable?

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


Re: [xwiki-users] code macro

2007-10-05 Thread anuj sharma
Its 1.1 milestone 4..X.

G.Schoepp [EMAIL PROTECTED] wrote: Kristian Marinkovic schrieb:
 this was a bug in xwiki 1.0 i think
 update to xwiki 1.1 and it will work :)

It's been a bug in 1.1 rc1:
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise11RC1#HKnownissues

@anuj: Are you really using 1.1 stable?

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



ANUJ SHARMA.
   
-
 Forgot the famous last words? Access your message archive online. Click here.___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users