[xwiki-users] Post-upgrade issue
After upgrading from 2.3 to 2.4M1 there are lots of text strings everywhere on every page. They look like this: $xwiki.ssfx.use('js/xwiki/widgets/jumpToPage.css', true) $xwiki.jsfx.use('uicomponents/widgets/confirmationBox.js', true) $xwiki.ssfx.use('uicomponents/widgets/confirmationBox.css', true) $xwiki.jsfx.use('uicomponents/widgets/confirmedAjaxRequest.js', true) $xwiki.jsfx.use('uicomponents/widgets/notification.js', true) $xwiki.ssfx.use('uicomponents/widgets/notification.css', true) (snipped) It's an easy-to-edit website that will help you work better together. This Wiki is made of pages sorted by spaces. You're currently in the Main space, looking at its home page (WebHome). $xwiki.ssx.use('Main.Dashboard') Also, there are exceptions java.lang.NullPointerException in logs and lines like this: [#|2010-06-13T12:59:22.015+0700|INFO|sun-appserver2.1| javax.enterprise.system.stream.out| _ThreadID=17;_ThreadName=http://metrolace.ru/bin/view/Main/;| 2010-06-13 12:59:22,015 [http://metrolace.ru/bin/view/Main/] ERROR internal.DefaultVelocityEngine - Left side ($tagCount.size()) of '>' operation has null value at velocity macro[line 54, column 24]|#] What's going on? Did I something wrong while updating?
Additional info: I am playing in Sandbox now. Here are the results: {{velocity}} $xwiki {{/velocity}} turns into com.xpn.xwiki.api.XWiki@223373 =============== {{velocity}} $xwiki.getXMLEncoded('abc') {{/velocity}} turns into abc =============== {{velocity}} $xwiki.ssx.use('Main.Dashboard') {{/velocity}} turns into $xwiki.ssx.use('Main.Dashboard') Velocity seem to be working, it looks like a parser issue. Maybe I should try to downgrade some JAR? Which one? -- If you want to get to the top, you have to start at the bottom
Hi Ivan, It looks like skin extension plugins are not loaded in your XE. You can try: {{velocity}} $xwiki.ssx {{/velocity}} And see if it outputs the plugin API object. Also, can you check whether your xwiki.cfg file has the plugins declared like: #-# List of active plugins. xwiki.plugins=\ com.xpn.xwiki.monitor.api.MonitorPlugin,\ com.xpn.xwiki.plugin.skinx.JsSkinExtensionPlugin,\ com.xpn.xwiki.plugin.skinx.JsSkinFileExtensionPlugin,\ com.xpn.xwiki.plugin.skinx.CssSkinExtensionPlugin,\ com.xpn.xwiki.plugin.skinx.CssSkinFileExtensionPlugin,\ ..... If you are sure that your xwiki.cfg is correct, you should see some exception traces when you start XE. These exceptions will complain that some plugins are missing or was not loaded due to errors. If you can try the above and post the tomcat logs for missing / errornous plugins, may be we can help. Thanks. - Asiri
Asiri Rathnayake <asiri.rathnayake@...> writes:
Hi Ivan,
It looks like skin extension plugins are not loaded in your XE. You can try:
{{velocity}} $xwiki.ssx {{/velocity}}
And see if it outputs the plugin API object.
No, it doesn't.
#-# List of active plugins. xwiki.plugins=\ com.xpn.xwiki.monitor.api.MonitorPlugin,\ com.xpn.xwiki.plugin.skinx.JsSkinExtensionPlugin,\ com.xpn.xwiki.plugin.skinx.JsSkinFileExtensionPlugin,\ com.xpn.xwiki.plugin.skinx.CssSkinExtensionPlugin,\ com.xpn.xwiki.plugin.skinx.CssSkinFileExtensionPlugin,\ .....
There are no skinx entries.
If you are sure that your xwiki.cfg is correct, you should see some exception traces when you start XE. These exceptions will complain that some plugins are missing or was not loaded due to errors.
If you can try the above and post the tomcat logs for missing / errornous plugins, may be we can help.
Thank you very much. My mistake is that I have deployed xwiki-web-2.4-milestone-1\standard\target\ xwiki-web-standard-2.4-milestone-1.war instead of xwiki-enterprise-2.4-milestone-1\web\target\ xwiki-enterprise-web-2.4-milestone-1.war When I was compiling 2.3, there was just 1 .war. -- If you want to get to the top, you have to start at the bottom
participants (2)
-
Asiri Rathnayake -
Ivan Levashew