Hi Leon,
Leon Wang wrote:
Hi Everyone, Hi Marius,
"What version of XWiki Enterprise do you use? Looks like an URL is
badly parsed. There shouldn't be any "xwiki:resources.js" page.
There's no resources.js file for sure in the default distribution."
I am using xwiki-enterprise-web-2.1.1, I downloaded the war file,
xwiki-enterprise-web-2.1.1.war, from xwiki website.
"Two questions: (1) do you get the same velocity exception when
viewing the Panels.YourPanelName page? (2) When you get the velocity
exception, is your JavaScript file loaded properly? Check with firebug
in the header of the edited page for the associated script tag."
So the panel is rendered fine,
but your JavaScript file (designrationaletreeview.nocache.js) is not
loaded correctly. I noticed that the application context path you're
using is "xwiki-enterprise-web-2.1.1" instead of "xwiki" (e.g.
http://localhost:8080/xwiki-enterprise-web-2.1.1/bin/view/Panels/DesignRati…
). AFAIK you have to do some configurations if you want a different
context path. My advice is to use the default one, "xwiki".
Also, can you check if the URL from the script tag points indeed to your
JavaScript file? I can see only the final part of the URL (the file
name) in the picture. Paste here the URL.
“An advice: don't leave useless empty lines in the panel content
because they generate paragraphs.” I took your advice, but it is
still not work.
Another example is Design Rationale Type Tree
(
http://picasaweb.google.com/lh/photo/lS-61ZTSh2kbKpl3JiQqSQ?feat=directlink)
I can load it now. In the pass it will give me the same error above.
No matter under \xwiki-web or under \xwiki-web\wysiwyg, when I use mvn
install or mvn gwt:debug, it will report Unable to find resource
'velocity-tools:velocity-tools:pom:1.4'
http://picasaweb.google.com/lh/photo/QxRZUSeo1rdpV7UYC2sIqg?feat=directlink
That is just [INFO] so ignore it as long as the build succeeds.
Hope this helps,
Marius
Thank you everyone! Sincerely.
Leon
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs