Re: [xwiki-users] How to deploy Java Component and save files?

2016-01-03 Thread vinc...@massol.net
Hi Giordano, You’ve chopped off the root error in the stack trace below so it’s hard to help you with your velocity error. Thanks -Vincent On 26 Dec 2015 at 17:07:25, Giordano Ninonà (giordano.nin...@gmail.com) wrote: Hi Vincent, I've solved the "save files" problem with absolute paths and

Re: [xwiki-users] How to deploy Java Component and save files?

2015-12-26 Thread Giordano Ninonà
Moreover the command prompt tell me that there is an invalid schema name, in this case "Home", but that is the name of my wiki If I use the alias of my wiki (localhost) I get the same error. Giordano. 2015-12-26 17:07 GMT+01:00 Giordano Ninonà : > Hi Vincent, > >

Re: [xwiki-users] How to deploy Java Component and save files?

2015-12-26 Thread Giordano Ninonà
Hi Vincent, I've solved the "save files" problem with absolute paths and it works, however I've another problem, this time with the Velocity macro inside a wiki page. This is the exception that I've got: *org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate Velocity Macro for

Re: [xwiki-users] How to deploy Java Component and save files?

2015-12-26 Thread vinc...@massol.net
Hi Giordano, On 23 Dec 2015 at 19:40:11, Giordano Ninonà (giordano.nin...@gmail.com(mailto:giordano.nin...@gmail.com)) wrote: > Thanks Vincent, > > I found everything I need but I got a nullpointer exeptioneverytime I use the > environment.getTemporaryDirectory() method in my code. > I

Re: [xwiki-users] How to deploy Java Component and save files?

2015-12-23 Thread vinc...@massol.net
On 23 Dec 2015 at 16:56:20, Giordano Ninonà (giordano.nin...@gmail.com(mailto:giordano.nin...@gmail.com)) wrote: > Hi users, > > Thanks for your answers, anyway it wasn't a String problem, and also change > to GET doesn't produce anything. Maybe I've found my problem, when I start > my

Re: [xwiki-users] How to deploy Java Component and save files?

2015-12-23 Thread Giordano Ninonà
Hi users, Thanks for your answers, anyway it wasn't a String problem, and also change to GET doesn't produce anything. Maybe I've found my problem, when I start my component, the very first thing to do is to parse an XML file thus my script service provide a "parseBPXML()" method. The problem is

Re: [xwiki-users] How to deploy Java Component and save files?

2015-12-23 Thread Giordano Ninonà
Thanks Vincent, I found everything I need but I got a nullpointer exeptioneverytime I use the *environment.getTemporaryDirectory() *method in my code. I thought it could be the component manager, so I've tried to inizialize it but I got an error every time I call the method "initialize()", as

Re: [xwiki-users] How to deploy Java Component and save files?

2015-12-22 Thread vinc...@massol.net
Hi Giordano, On 21 Dec 2015 at 15:20:55, Giordano Ninonà (giordano.nin...@gmail.com(mailto:giordano.nin...@gmail.com)) wrote: > Hi users, > > My project in XWiki consists in a java component which offers some APIs > through a script service called by a Velocity script in a wiki page. > > I

Re: [xwiki-users] How to deploy Java Component and save files?

2015-12-22 Thread vinc...@massol.net
  On 22 Dec 2015 at 15:38:48, Giordano Ninonà (giordano.nin...@gmail.com(mailto:giordano.nin...@gmail.com)) wrote: > Dear Vincent, > > Tank you for your reply, I would try what you suggested in the afternoon, but > regarding the "evolver=1 request param", I've set it equal to 1 together

Re: [xwiki-users] How to deploy Java Component and save files?

2015-12-22 Thread Ludovic Dubost
Isn't the problem that it should be #if("$!request.evolver" == "1") And not #if("$!request.evolver" == 1) Ludo Le 22 déc. 2015 21:32, "Giordano Ninonà" a écrit : > Dear Vincent, > > Tank you for your reply, I would try what you suggested in the afternoon, > but

Re: [xwiki-users] How to deploy Java Component and save files?

2015-12-22 Thread Marius Dumitru Florea
On Wed, Dec 23, 2015 at 12:30 AM, Ludovic Dubost wrote: > Isn't the problem that it should be > > #if("$!request.evolver" == "1") > > And not > > > #if("$!request.evolver" == 1) > I thought so too but I tested and it works. I checked the Velocity documentation [1] and the

Re: [xwiki-users] How to deploy Java Component and save files?

2015-12-22 Thread Giordano Ninonà
Dear Vincent, Tank you for your reply, I would try what you suggested in the afternoon, but regarding the "evolver=1 request param", I've set it equal to 1 together with POST command in order to make it always true ensuring that my component is started every time. My thoughts were wrong?

[xwiki-users] How to deploy Java Component and save files?

2015-12-21 Thread Giordano Ninonà
Hi users, My project in XWiki consists in a java component which offers some APIs through a script service called by a Velocity script in a wiki page. I put my .jar in the directory C:\XWiki Enterprise 7.3\*webapps\xwiki\WEB-INF\lib *and this is the Velocity and HTML code that I've put in my