Btw, according to your first email your problem seems to be this: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'parseGroovyFromPage' in class com.xpn.xwiki.api.XWiki threw exception com.xpn.xwiki.XWikiException: Error number 14001 in 14: Failed compiling groovy script Wrapped Exception: startup failed, script1238667520150.groovy: 1: unexpected token: < @ line 1, column 1. error It appears that there is an opening < (angle bracket) in your groovy source. But your second email has no such bracket. - Asiri On Thu, Apr 2, 2009 at 5:03 PM, Asiri Rathnayake <[email protected]
wrote:
Hi,
On Thu, Apr 2, 2009 at 4:53 PM, walido <[email protected]>wrote:
Hi, yes i did the page name containing my groovy class code is "Groovy.HelloWorldClass" and i still got the same error :Error number 4001 in 4: Error while parsing velocity page Main.HelloWorldFromVelocity Wrapped Exception: Failed to
So, to clear myself, your groovy class is in /Groovy/HelloWorldClass page (Groovy space, HelloWorldClass page). And your snippet is in Main/HelloWorldFromVelocity page (Main space, HelloWorldFromVelocity page).
Which version of xwiki are you using? Did you make sure that the page syntax is XWiki 1.0 ?
Thanks.
- Asiri
evaluate content with id Hello World From Velocity I don't know what to do
-- View this message in context: http://n2.nabble.com/HelloWorld-Class-tp2574406p2574606.html Sent from the XWiki- Dev mailing list archive at Nabble.com.
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs