Re: [xwiki-devs] Problem of Load GWT Application in Edit Panel
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." (1). Yes, I get exception when viewing the Panels. Here is visual: http://picasaweb.google.com/lh/photo/0ZTNIoSvoAWZe9NveH_3SA?feat=directlink (2). Here is the pic, I do not think they are loaded right. http://picasaweb.google.com/lh/photo/U826Ehn6oVWcxiGoUZBsrA?feat=directlin “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 Thank you everyone! Sincerely. Leon
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."
(1). Yes, I get exception when viewing the Panels. Here is visual: http://picasaweb.google.com/lh/photo/0ZTNIoSvoAWZe9NveH_3SA?feat=directlink
So the panel is rendered fine,
(2). Here is the pic, I do not think they are loaded right. http://picasaweb.google.com/lh/photo/U826Ehn6oVWcxiGoUZBsrA?feat=directlin
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/DesignRatio... ). 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 [email protected] http://lists.xwiki.org/mailman/listinfo/devs
participants (2)
-
Leon Wang -
Marius Dumitru Florea