Re: [xwiki-users] XWiki Enterprise Manager 4.5.1: Editing a user profile
Thank you for the explanation, Marius. So, if I'm installing Xwiki on a system that does not have Internet access, should I simply ignore this message? Or can I place the required file(s) in a local directory and point Xwiki to that directory? Thank you. Naoufel -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Marius Dumitru Florea Sent: Monday, March 11, 2013 4:15 AM To: XWiki Users Subject: Re: [xwiki-users] XWiki Enterprise Manager 4.5.1: Editing a user profile On Fri, Mar 8, 2013 at 5:13 PM, Naoufel Chbihi naoufel.chb...@ssc-spc.gc.ca wrote: Hello Vincent I have tested XWiki Enterprise for a few weeks and now I decided to install Xwiki Enterprise Manager to set up multiple wikis. The steps that you described are correct; that's what I did. When I first accessed the application as an Admin, the Distribution Wizard appeared but it was showing the following message at the bottom: We couldn't find any extension with id 'org.xwiki.manager:xwiki-manager-ui' and version '4.5.1'. Make sure you have the right extension repositories configured. Assuming you haven't modified xwiki.properties file, this message probably means that the Distribution Wizard couldn't connect to the default configured extension repositories (extensions.xwiki.org and maven.xwiki.org). Above this message you should have a warning message that tells you the installation process requires internet access. Make sure the default extension repositories are accessible. Hope this helps, Marius The only options available were Skip and Cancel. So, I clicked Skip. I have re-run the Distribution Wizard but I ended up with same thing. How can I prevent the above message from appearing in the Distributon Wizard? Am I missing something? Thank you. Naoufel -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Vincent Massol Sent: Friday, March 08, 2013 2:16 AM To: XWiki Users Subject: Re: [xwiki-users] XWiki Enterprise Manager 4.5.1: Editing a user profile Hi, On Mar 7, 2013, at 9:51 PM, Naoufel Chbihi naoufel.chb...@ssc-spc.gc.ca wrote: Hello I have just set up XWiki Enterprise Manager 4.5.1 and installed the Administration application. I logged in and went to the Administration: Users page. However, when I click on the Edit icon to edit a user profile, the popup area that appears doesn't show any fields. It just says For more options to edit this user, please go to the user's profile and there is a Save and Cancel button. There is supposed to be a lot more here. I think that I'm missing an extension. Does anyone know what I need to do? so if I understand here's what you did: * you installed the XWiki WAR * you started it and skipped the Distribution Wizard * you downloaded the Admini app XAR from http://extensions.xwiki.org/xwiki/bin/view/Extension/Administration+Ap plication * you went to the admin of your wiki and imported the downloaded admin XAR is that right? This will indeed not work since the admin app has probably several prerequisites it needs. Note that normally those should be listed on http://extensions.xwiki.org/xwiki/bin/view/Extension/Administration+Application but we haven't defined them yet since usually the admin app is installed when you install the XE XAR from the Distribution Wizard. So I'd recommend that you go through the Distribution Wizard and install what it proposes instead. What was your use case? To start with a minimal wiki? Actually what we need to do in the future is to find a way to have the user install the Extension Manager first so that he can then decide exactly what he wishes to install. I'll have a look at what you did to try to define the required deps. Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWiki Enterprise Manager 4.5.1: Editing a user profile
I think that the simplest solution in my scenario is to edit the xwiki.properties file and leave the extension.repositories property empty, as suggested. As long as the data is migrated properly to the new release, I don't think that I need to run the distribution wizard. What does the Distribution Wizard do? It seems that it's mostly used for migrating extensions, but I'm not sure what else it does. Thank you. Naoufel -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Vincent Massol Sent: Monday, March 11, 2013 10:09 AM To: XWiki Users Subject: Re: [xwiki-users] XWiki Enterprise Manager 4.5.1: Editing a user profile On Mar 11, 2013, at 3:05 PM, Thomas Mortagne thomas.morta...@xwiki.com wrote: On Mon, Mar 11, 2013 at 2:27 PM, Naoufel Chbihi naoufel.chb...@ssc-spc.gc.ca wrote: Thank you for the explanation, Marius. So, if I'm installing Xwiki on a system that does not have Internet access, should I simply ignore this message? Or can I place the required file(s) in a local directory and point Xwiki to that directory? It depends what you need. If you don't plan to use the distribution wizard (you will need to cancel it the first time) or extension manager then you can ignore it or even better make sure XWiki does not try to access those repositories by setting extension.repositories= in WEB-INF/xwiki.properties. This will tell XWiki there is no repositories, not even the default ones. XWiki can also support a repository you would have on your side but the hard part would be to get the required files, we are not really talking about a few files to put in some folder. The simplest would be to mirror http://maven.xwiki.org/releases/ and that's only if you plan to install nothing else than XAR extensions release by the XWiki team or by official contrib on Maven (it's enough for Distribution Wyzard for example). The next level would be to mirror the Nexus[1] repository on http://nexus.xwiki.org/nexus/content/groups/public/ (best probably being to use Nexus itself for that). Mirroring http://extension.xwiki.org would be quite complex, XWiki access it using REST, it require a running instance of XWiki Repository[2] and most of all there is no tool right now do the synchronization (even if that should not be too hard with a script). And I wouldn't really recommend mirroring any of the xwiki servers since that's going going to be expensive for us and if we find people doing this we will need to take some measures to forbid it (as they did on maven central). Thanks -Vincent [1] http://www.sonatype.org/nexus/ [2] http://extensions.xwiki.org/xwiki/bin/view/Extension/Repository+Applic ation Thank you. Naoufel -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Marius Dumitru Florea Sent: Monday, March 11, 2013 4:15 AM To: XWiki Users Subject: Re: [xwiki-users] XWiki Enterprise Manager 4.5.1: Editing a user profile On Fri, Mar 8, 2013 at 5:13 PM, Naoufel Chbihi naoufel.chb...@ssc-spc.gc.ca wrote: Hello Vincent I have tested XWiki Enterprise for a few weeks and now I decided to install Xwiki Enterprise Manager to set up multiple wikis. The steps that you described are correct; that's what I did. When I first accessed the application as an Admin, the Distribution Wizard appeared but it was showing the following message at the bottom: We couldn't find any extension with id 'org.xwiki.manager:xwiki-manager-ui' and version '4.5.1'. Make sure you have the right extension repositories configured. Assuming you haven't modified xwiki.properties file, this message probably means that the Distribution Wizard couldn't connect to the default configured extension repositories (extensions.xwiki.org and maven.xwiki.org). Above this message you should have a warning message that tells you the installation process requires internet access. Make sure the default extension repositories are accessible. Hope this helps, Marius The only options available were Skip and Cancel. So, I clicked Skip. I have re-run the Distribution Wizard but I ended up with same thing. How can I prevent the above message from appearing in the Distributon Wizard? Am I missing something? Thank you. Naoufel -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Vincent Massol Sent: Friday, March 08, 2013 2:16 AM To: XWiki Users Subject: Re: [xwiki-users] XWiki Enterprise Manager 4.5.1: Editing a user profile Hi, On Mar 7, 2013, at 9:51 PM, Naoufel Chbihi naoufel.chb...@ssc-spc.gc.ca wrote: Hello I have just set up XWiki Enterprise Manager 4.5.1 and installed the Administration application. I logged in and went to the Administration: Users page. However, when I click on the Edit icon to edit a user profile, the popup area
Re: [xwiki-users] XWiki Enterprise Manager 4.5.1: Editing a user profile
Hello Vincent I have tested XWiki Enterprise for a few weeks and now I decided to install Xwiki Enterprise Manager to set up multiple wikis. The steps that you described are correct; that's what I did. When I first accessed the application as an Admin, the Distribution Wizard appeared but it was showing the following message at the bottom: We couldn't find any extension with id 'org.xwiki.manager:xwiki-manager-ui' and version '4.5.1'. Make sure you have the right extension repositories configured. The only options available were Skip and Cancel. So, I clicked Skip. I have re-run the Distribution Wizard but I ended up with same thing. How can I prevent the above message from appearing in the Distributon Wizard? Am I missing something? Thank you. Naoufel -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Vincent Massol Sent: Friday, March 08, 2013 2:16 AM To: XWiki Users Subject: Re: [xwiki-users] XWiki Enterprise Manager 4.5.1: Editing a user profile Hi, On Mar 7, 2013, at 9:51 PM, Naoufel Chbihi naoufel.chb...@ssc-spc.gc.ca wrote: Hello I have just set up XWiki Enterprise Manager 4.5.1 and installed the Administration application. I logged in and went to the Administration: Users page. However, when I click on the Edit icon to edit a user profile, the popup area that appears doesn't show any fields. It just says For more options to edit this user, please go to the user's profile and there is a Save and Cancel button. There is supposed to be a lot more here. I think that I'm missing an extension. Does anyone know what I need to do? so if I understand here's what you did: * you installed the XWiki WAR * you started it and skipped the Distribution Wizard * you downloaded the Admini app XAR from http://extensions.xwiki.org/xwiki/bin/view/Extension/Administration+Application * you went to the admin of your wiki and imported the downloaded admin XAR is that right? This will indeed not work since the admin app has probably several prerequisites it needs. Note that normally those should be listed on http://extensions.xwiki.org/xwiki/bin/view/Extension/Administration+Application but we haven't defined them yet since usually the admin app is installed when you install the XE XAR from the Distribution Wizard. So I'd recommend that you go through the Distribution Wizard and install what it proposes instead. What was your use case? To start with a minimal wiki? Actually what we need to do in the future is to find a way to have the user install the Extension Manager first so that he can then decide exactly what he wishes to install. I'll have a look at what you did to try to define the required deps. Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] XWiki Enterprise Manager 4.5.1: Editing a user profile
Hello I have just set up XWiki Enterprise Manager 4.5.1 and installed the Administration application. I logged in and went to the Administration: Users page. However, when I click on the Edit icon to edit a user profile, the popup area that appears doesn't show any fields. It just says For more options to edit this user, please go to the user's profile and there is a Save and Cancel button. There is supposed to be a lot more here. I think that I'm missing an extension. Does anyone know what I need to do? Thank you. Naoufel ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] XWiki Enterprise 4.5 - Adding keys to the resource bundle
Hello I noticed that the $msg object's get method is being used to retrieve text labels. How can I add keys to the resource bundle? I'm running Xwiki Enterprise 4.5. Thank you. Naoufel Chbihi Technical Specialist | Spécialiste technique Mainframe Operating System Technology | Technologie du système d'exploitation des ordinateurs centraux Service Management Delivery (SMD) | Gestion et prestation des services (GPS) Information Technology Services Branch (ITSB) | Direction générale des services d'infotechnologie (DGSIT) Shared Services Canada | Services partagés Canada 7038-700 Montreal Road, Ottawa, ON K1A 0P7 | 7038-700, chemin Montréal, Ottawa, ON K1A 0P7 Tel.: 613-748-2169 Fax: 613-748-2617 E-mail: naoufel.chb...@ssc.gc.ca | naoufel.chb...@spc.gc.ca ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Xwiki Enterprise 4.5 - Group Admin page not displayed properly
Hello I upgraded Xwiki Enterprise from 4.5-milestone-1 to 4.5 today. When I click on the Add new group button in the Administration: Groups page, the resulting page contains a lot of empty space that preceeds the actual page. So, I have to scroll down a lot to actually see the page (including the header). Also, the Create new group field and the related buttons appear before the page header. I think that I had noticed this in 4.5-M1 also. Other pages are being displayed properly so far, but I'm not sure whether this is the only page on which this is happening. I have noticed this in Internet Explorer 8 and Firefox 18.0.2. Is anyone else experiencing this problem? Thank you. Naoufel Chbihi Technical Specialist | Spécialiste technique Mainframe Operating System Technology | Technologie du système d'exploitation des ordinateurs centraux Service Management Delivery (SMD) | Gestion et prestation des services (GPS) Information Technology Services Branch (ITSB) | Direction générale des services d'infotechnologie (DGSIT) Shared Services Canada | Services partagés Canada 7038-700 Montreal Road, Ottawa, ON K1A 0P7 | 7038-700, chemin Montréal, Ottawa, ON K1A 0P7 Tel.: 613-748-2169 Fax: 613-748-2617 E-mail: naoufel.chb...@ssc.gc.ca | naoufel.chb...@spc.gc.ca ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Xwiki Enterprise 4.4: Customizing Velocity macros
Hello I'm using XWiki Enterprise 4.4 and I'm customizing the XWiki skin by using the Colibri skin a as a base. Looking through the menuview.vm Velocity template, I found out that the #xwikitopmenuentry macro is being used generate the HTML for the ADD, XWIKI, Space and Page menus. I have added a Macros attribute to the XWikiSkins class, created a copy of macros.vm into the /xwiki/skins/myskin/templates, and set the Macros attribute to #renderTemplate('templates/macros.vm'). I then wrote a new Velocity macro inside this file (called #xwikitopmenuentry2) and modified the menuview.vm file to call #xwikitopmenuentry2 but I still see the old code being generated. So, it doesn't seem that I'm doing this the right way. Any idea how I can do this? Thank you. Naoufel Chbihi Technical Specialist | Spécialiste technique Mainframe Operating System Technology | Technologie du système d'exploitation des ordinateurs centraux Service Management Delivery (SMD) | Gestion et prestation des services (GPS) Information Technology Services Branch (ITSB) | Direction générale des services d'infotechnologie (DGSIT) Shared Services Canada | Services partagés Canada 7038-700 Montreal Road, Ottawa, ON K1A 0P7 | 7038-700, chemin Montréal, Ottawa, ON K1A 0P7 Tel.: 613-748-2169 Fax: 613-748-2617 E-mail: naoufel.chb...@ssc.gc.ca | naoufel.chb...@spc.gc.ca ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Xwiki Enterprise 4.4: Using Velocity variables inside a custom CSS file
Hello I have created a custom CSS file (/xwiki/skins/myskin/css/mystyle.css) and I created a Velocity template to reference this css file (/xwiki/skins/myskin/templates/customcss.vm). Inside the Velocity template, I have the line link rel=stylesheet href=$xwiki.getSkinFile('css/mystyle.css')/ and it works fine. Now I want to able to use the $theme variable inside my CSS file to use attributes like $theme.pageBackgroundColor and $theme.textColor;. However, I can't seem to get the theme variable to be passed into the CSS file. All references to these attributes return a null value inside the CSS file. In the customcss.vm file, I added the line $theme.menuLinkColor for debugging purposes and it returns a non-null value. So, I know that the value of this variable is available within the Velocity template. Does anyone know how I can do this? Thank you. Naoufel Chbihi Technical Specialist | Spécialiste technique Mainframe Operating System Technology | Technologie du système d'exploitation des ordinateurs centraux Service Management Delivery (SMD) | Gestion et prestation des services (GPS) Information Technology Services Branch (ITSB) | Direction générale des services d'infotechnologie (DGSIT) Shared Services Canada | Services partagés Canada 7038-700 Montreal Road, Ottawa, ON K1A 0P7 | 7038-700, chemin Montréal, Ottawa, ON K1A 0P7 Tel.: 613-748-2169 Fax: 613-748-2617 E-mail: naoufel.chb...@ssc.gc.ca | naoufel.chb...@spc.gc.ca ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Xwiki Enterprise 4.4: Using Velocity variables inside a custom CSS file
Thank you so much Marius! I've been trying to get this to work for several days. Your suggestion provided me with exactly the result that I want. Thank you! Naoufel -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Marius Dumitru Florea Sent: Monday, January 28, 2013 3:22 PM To: XWiki Users Subject: Re: [xwiki-users] Xwiki Enterprise 4.4: Using Velocity variables inside a custom CSS file On Mon, Jan 28, 2013 at 6:43 PM, Naoufel Chbihi naoufel.chb...@ssc-spc.gc.ca wrote: Hello I have created a custom CSS file (/xwiki/skins/myskin/css/mystyle.css) and I created a Velocity template to reference this css file (/xwiki/skins/myskin/templates/customcss.vm). Inside the Velocity template, I have the line link rel=stylesheet href=$xwiki.getSkinFile('css/mystyle.css')/ link rel=stylesheet href=$xwiki.getSkinFile('css/mystyle.css', true)/ See http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/org/xwiki/platform/xwiki-platform-oldcore/4.4.1/xwiki-platform-oldcore-4.4.1-javadoc.jar/!/com/xpn/xwiki/api/XWiki.html#getSkinFile%28java.lang.String,%20boolean%29 . The second parameter ensures that the CSS files is served as a dynamic resource, and thus the Velocity code is parsed. You should also put this at the start of your CSS file: #template('colorThemeInit.vm') Hope this helps, Marius and it works fine. Now I want to able to use the $theme variable inside my CSS file to use attributes like $theme.pageBackgroundColor and $theme.textColor;. However, I can't seem to get the theme variable to be passed into the CSS file. All references to these attributes return a null value inside the CSS file. In the customcss.vm file, I added the line $theme.menuLinkColor for debugging purposes and it returns a non-null value. So, I know that the value of this variable is available within the Velocity template. Does anyone know how I can do this? Thank you. Naoufel Chbihi Technical Specialist | Spécialiste technique Mainframe Operating System Technology | Technologie du système d'exploitation des ordinateurs centraux Service Management Delivery (SMD) | Gestion et prestation des services (GPS) Information Technology Services Branch (ITSB) | Direction générale des services d'infotechnologie (DGSIT) Shared Services Canada | Services partagés Canada 7038-700 Montreal Road, Ottawa, ON K1A 0P7 | 7038-700, chemin Montréal, Ottawa, ON K1A 0P7 Tel.: 613-748-2169 Fax: 613-748-2617 E-mail: naoufel.chb...@ssc.gc.ca | naoufel.chb...@spc.gc.ca ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Xwiki Enterprise 4.4: Custom skin for a space
I figured out how to do it and I'm responding just to provide the solution, in case someone is trying to do the same thing. In my template page, using the inline editor, I set the Base Skin field to myskin, which is the name of the skin directory that created inside /xwiki/skins. Then in the Header field, I used either $xwiki.renderTemplate('templates/header.vm') or #renderTemplate('templates/header.vm') - both of them work. Naoufel -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Naoufel Chbihi Sent: Monday, January 21, 2013 4:51 PM To: 'XWiki Users' Subject: Re: [xwiki-users] Xwiki Enterprise 4.4: Custom skin for a space Hello again I have created a templates directory inside my custom skin directory (i.e. /xwiki/skins/myskin/templates), I created a file called header.vm inside it, and I copied my custom code into the header.vm file. Now, I want to modify the Header attribute in my skin page (using the inline editor) so that it simply contains an import or include statement that references the file /xwiki/skins/myskin/templates/header.vm file. I think that I saw this somewhere but I can't find it now. I have made several attempts but I can't find the right statement. Any suggestions would be much appreciated. Thank you. Naoufel -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Naoufel Chbihi Sent: Monday, January 21, 2013 10:50 AM To: 'XWiki Users' Subject: Re: [xwiki-users] Xwiki Enterprise 4.4: Custom skin for a space Thank you, Caty. I think that I'm starting to understand how Velocity templates are used. I still need to try overriding the template by creating a custom skin directory and placing files inside, as opposed to using class properties. Naoufel Chbihi Technical Specialist | Spécialiste technique Mainframe Operating System Technology | Technologie du système d'exploitation des ordinateurs centraux Service Management Delivery (SMD) | Gestion et prestation des services (GPS) Information Technology Services Branch (ITSB) | Direction générale des services d'infotechnologie (DGSIT) Shared Services Canada | Services partagés Canada 7038-700 Montreal Road, Ottawa, ON K1A 0P7 | 7038-700, chemin Montréal, Ottawa, ON K1A 0P7 Tel.: 613-748-2169 Fax: 613-748-2617 E-mail: naoufel.chb...@ssc.gc.ca | naoufel.chb...@spc.gc.ca -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Ecaterina Moraru (Valica) Sent: Monday, January 21, 2013 9:43 AM To: XWiki Users Subject: Re: [xwiki-users] Xwiki Enterprise 4.4: Custom skin for a space Hi, http://platform.xwiki.org/xwiki/bin/view/DevGuide/Skins already given by Sorin should help you with most of your questions. You could use http://extensions.xwiki.org/xwiki/bin/view/Extension/DebugSkinto see the part you want to change in what template is defined. Also take a look at the current style for Colibri https://github.com/xwiki/xwiki-platform/tree/master/xwiki-platform-core/xwiki-platform-colibri/src/main/resources/colibri and the structure https://github.com/xwiki/xwiki-platform/tree/master/xwiki-platform-core/xwiki-platform-web/src/main/webapp Thanks, Caty On Fri, Jan 18, 2013 at 6:03 PM, Naoufel Chbihi naoufel.chb...@ssc-spc.gc.ca wrote: Thank you Sorin and Vincent for responding. I plan to make a lot of changes to the page layout and I already have CSS and JavaScript files that I would like to use, so I would prefer a solution that would allow the most flexibility. I looked through the ColorTheme Application tutorial page suggested by Sorin but it seems that this application only changes the colors, not the page layout. So, I would like to try to override a skin. Regarding the Toucan skin, I was just tring to use it as a test since it was part of the tutorial - I don't really need it. I finally understood how to use class properties to override the skin. I have been able to attached a logo to the skin document and reference it. Now I'm trying to use custom CSS files and it doesn't seem practical to attach CSS files to the skin document. So, here's what I would like to do: 1. Upload my CSS files to the server (ex. to /xwiki/skins/myskin/) 1. Use class properties to override various Velocity templates 2. Reference the CSS files from the inside the Velocity templates that I will write using the inline editor Question: How can I reference them from within the Velocity template? Thank you. Naoufel Chbihi Technical Specialist | Spécialiste technique Mainframe Operating System Technology | Technologie du système d'exploitation des ordinateurs centraux Service Management Delivery (SMD) | Gestion et prestation des services (GPS) Information Technology Services Branch (ITSB) | Direction générale des services d'infotechnologie (DGSIT) Shared Services Canada | Services partagés Canada 7038-700 Montreal Road
Re: [xwiki-users] Xwiki Enterprise 4.4: Custom skin for a space
Thank you, Caty. I think that I'm starting to understand how Velocity templates are used. I still need to try overriding the template by creating a custom skin directory and placing files inside, as opposed to using class properties. Naoufel Chbihi Technical Specialist | Spécialiste technique Mainframe Operating System Technology | Technologie du système d'exploitation des ordinateurs centraux Service Management Delivery (SMD) | Gestion et prestation des services (GPS) Information Technology Services Branch (ITSB) | Direction générale des services d'infotechnologie (DGSIT) Shared Services Canada | Services partagés Canada 7038-700 Montreal Road, Ottawa, ON K1A 0P7 | 7038-700, chemin Montréal, Ottawa, ON K1A 0P7 Tel.: 613-748-2169 Fax: 613-748-2617 E-mail: naoufel.chb...@ssc.gc.ca | naoufel.chb...@spc.gc.ca -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Ecaterina Moraru (Valica) Sent: Monday, January 21, 2013 9:43 AM To: XWiki Users Subject: Re: [xwiki-users] Xwiki Enterprise 4.4: Custom skin for a space Hi, http://platform.xwiki.org/xwiki/bin/view/DevGuide/Skins already given by Sorin should help you with most of your questions. You could use http://extensions.xwiki.org/xwiki/bin/view/Extension/DebugSkinto see the part you want to change in what template is defined. Also take a look at the current style for Colibri https://github.com/xwiki/xwiki-platform/tree/master/xwiki-platform-core/xwiki-platform-colibri/src/main/resources/colibri and the structure https://github.com/xwiki/xwiki-platform/tree/master/xwiki-platform-core/xwiki-platform-web/src/main/webapp Thanks, Caty On Fri, Jan 18, 2013 at 6:03 PM, Naoufel Chbihi naoufel.chb...@ssc-spc.gc.ca wrote: Thank you Sorin and Vincent for responding. I plan to make a lot of changes to the page layout and I already have CSS and JavaScript files that I would like to use, so I would prefer a solution that would allow the most flexibility. I looked through the ColorTheme Application tutorial page suggested by Sorin but it seems that this application only changes the colors, not the page layout. So, I would like to try to override a skin. Regarding the Toucan skin, I was just tring to use it as a test since it was part of the tutorial - I don't really need it. I finally understood how to use class properties to override the skin. I have been able to attached a logo to the skin document and reference it. Now I'm trying to use custom CSS files and it doesn't seem practical to attach CSS files to the skin document. So, here's what I would like to do: 1. Upload my CSS files to the server (ex. to /xwiki/skins/myskin/) 1. Use class properties to override various Velocity templates 2. Reference the CSS files from the inside the Velocity templates that I will write using the inline editor Question: How can I reference them from within the Velocity template? Thank you. Naoufel Chbihi Technical Specialist | Spécialiste technique Mainframe Operating System Technology | Technologie du système d'exploitation des ordinateurs centraux Service Management Delivery (SMD) | Gestion et prestation des services (GPS) Information Technology Services Branch (ITSB) | Direction générale des services d'infotechnologie (DGSIT) Shared Services Canada | Services partagés Canada 7038-700 Montreal Road, Ottawa, ON K1A 0P7 | 7038-700, chemin Montréal, Ottawa, ON K1A 0P7 Tel.: 613-748-2169 Fax: 613-748-2617 E-mail: naoufel.chb...@ssc.gc.ca | naoufel.chb...@spc.gc.ca -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Vincent Massol Sent: Thursday, January 17, 2013 3:04 AM To: XWiki Users Subject: Re: [xwiki-users] Xwiki Enterprise 4.4: Custom skin for a space On Jan 16, 2013, at 11:27 PM, Sorin Burjan sorin.bur...@xwiki.com wrote: Hello, see my comments below On Wed, Jan 16, 2013 at 11:40 PM, Naoufel Chbihi naoufel.chb...@ssc-spc.gc.ca wrote: Hello I'm running Xwiki Enterprise 4.4 on Apache Tomca 6 and I'm trying to create a custom skin for a space that I defined in the default wiki but nothing is changing. I tried following the steps provided in http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Skins#HChanging th eSkinatspacelevel(and specifying toucan as the skin) but nothing happened. I also tried the procedure described in http://platform.xwiki.org/xwiki/bin/view/DevGuide/Skins under How to override a Skin sections A, B, C, D and F.1 but I didn't see any changes. What you've done should work fine. You just need to specify a skin that exists. Thanks -Vincent The Toucan skin was retired in 4.4-rc1, so it is no longer available in 4.4 final. It was considered deprecated and was not maintained anymore for some quite time now, and we decided to remove it. If you are still you want to use it, you can still download it and deploy
Re: [xwiki-users] Xwiki Enterprise 4.4: Custom skin for a space
Hello again I have created a templates directory inside my custom skin directory (i.e. /xwiki/skins/myskin/templates), I created a file called header.vm inside it, and I copied my custom code into the header.vm file. Now, I want to modify the Header attribute in my skin page (using the inline editor) so that it simply contains an import or include statement that references the file /xwiki/skins/myskin/templates/header.vm file. I think that I saw this somewhere but I can't find it now. I have made several attempts but I can't find the right statement. Any suggestions would be much appreciated. Thank you. Naoufel -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Naoufel Chbihi Sent: Monday, January 21, 2013 10:50 AM To: 'XWiki Users' Subject: Re: [xwiki-users] Xwiki Enterprise 4.4: Custom skin for a space Thank you, Caty. I think that I'm starting to understand how Velocity templates are used. I still need to try overriding the template by creating a custom skin directory and placing files inside, as opposed to using class properties. Naoufel Chbihi Technical Specialist | Spécialiste technique Mainframe Operating System Technology | Technologie du système d'exploitation des ordinateurs centraux Service Management Delivery (SMD) | Gestion et prestation des services (GPS) Information Technology Services Branch (ITSB) | Direction générale des services d'infotechnologie (DGSIT) Shared Services Canada | Services partagés Canada 7038-700 Montreal Road, Ottawa, ON K1A 0P7 | 7038-700, chemin Montréal, Ottawa, ON K1A 0P7 Tel.: 613-748-2169 Fax: 613-748-2617 E-mail: naoufel.chb...@ssc.gc.ca | naoufel.chb...@spc.gc.ca -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Ecaterina Moraru (Valica) Sent: Monday, January 21, 2013 9:43 AM To: XWiki Users Subject: Re: [xwiki-users] Xwiki Enterprise 4.4: Custom skin for a space Hi, http://platform.xwiki.org/xwiki/bin/view/DevGuide/Skins already given by Sorin should help you with most of your questions. You could use http://extensions.xwiki.org/xwiki/bin/view/Extension/DebugSkinto see the part you want to change in what template is defined. Also take a look at the current style for Colibri https://github.com/xwiki/xwiki-platform/tree/master/xwiki-platform-core/xwiki-platform-colibri/src/main/resources/colibri and the structure https://github.com/xwiki/xwiki-platform/tree/master/xwiki-platform-core/xwiki-platform-web/src/main/webapp Thanks, Caty On Fri, Jan 18, 2013 at 6:03 PM, Naoufel Chbihi naoufel.chb...@ssc-spc.gc.ca wrote: Thank you Sorin and Vincent for responding. I plan to make a lot of changes to the page layout and I already have CSS and JavaScript files that I would like to use, so I would prefer a solution that would allow the most flexibility. I looked through the ColorTheme Application tutorial page suggested by Sorin but it seems that this application only changes the colors, not the page layout. So, I would like to try to override a skin. Regarding the Toucan skin, I was just tring to use it as a test since it was part of the tutorial - I don't really need it. I finally understood how to use class properties to override the skin. I have been able to attached a logo to the skin document and reference it. Now I'm trying to use custom CSS files and it doesn't seem practical to attach CSS files to the skin document. So, here's what I would like to do: 1. Upload my CSS files to the server (ex. to /xwiki/skins/myskin/) 1. Use class properties to override various Velocity templates 2. Reference the CSS files from the inside the Velocity templates that I will write using the inline editor Question: How can I reference them from within the Velocity template? Thank you. Naoufel Chbihi Technical Specialist | Spécialiste technique Mainframe Operating System Technology | Technologie du système d'exploitation des ordinateurs centraux Service Management Delivery (SMD) | Gestion et prestation des services (GPS) Information Technology Services Branch (ITSB) | Direction générale des services d'infotechnologie (DGSIT) Shared Services Canada | Services partagés Canada 7038-700 Montreal Road, Ottawa, ON K1A 0P7 | 7038-700, chemin Montréal, Ottawa, ON K1A 0P7 Tel.: 613-748-2169 Fax: 613-748-2617 E-mail: naoufel.chb...@ssc.gc.ca | naoufel.chb...@spc.gc.ca -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Vincent Massol Sent: Thursday, January 17, 2013 3:04 AM To: XWiki Users Subject: Re: [xwiki-users] Xwiki Enterprise 4.4: Custom skin for a space On Jan 16, 2013, at 11:27 PM, Sorin Burjan sorin.bur...@xwiki.com wrote: Hello, see my comments below On Wed, Jan 16, 2013 at 11:40 PM, Naoufel Chbihi naoufel.chb...@ssc-spc.gc.ca wrote: Hello I'm running Xwiki Enterprise 4.4 on Apache Tomca 6 and I'm
Re: [xwiki-users] Xwiki Enterprise 4.4: Custom skin for a space
Thank you Sorin and Vincent for responding. I plan to make a lot of changes to the page layout and I already have CSS and JavaScript files that I would like to use, so I would prefer a solution that would allow the most flexibility. I looked through the ColorTheme Application tutorial page suggested by Sorin but it seems that this application only changes the colors, not the page layout. So, I would like to try to override a skin. Regarding the Toucan skin, I was just tring to use it as a test since it was part of the tutorial - I don't really need it. I finally understood how to use class properties to override the skin. I have been able to attached a logo to the skin document and reference it. Now I'm trying to use custom CSS files and it doesn't seem practical to attach CSS files to the skin document. So, here's what I would like to do: 1. Upload my CSS files to the server (ex. to /xwiki/skins/myskin/) 1. Use class properties to override various Velocity templates 2. Reference the CSS files from the inside the Velocity templates that I will write using the inline editor Question: How can I reference them from within the Velocity template? Thank you. Naoufel Chbihi Technical Specialist | Spécialiste technique Mainframe Operating System Technology | Technologie du système d'exploitation des ordinateurs centraux Service Management Delivery (SMD) | Gestion et prestation des services (GPS) Information Technology Services Branch (ITSB) | Direction générale des services d'infotechnologie (DGSIT) Shared Services Canada | Services partagés Canada 7038-700 Montreal Road, Ottawa, ON K1A 0P7 | 7038-700, chemin Montréal, Ottawa, ON K1A 0P7 Tel.: 613-748-2169 Fax: 613-748-2617 E-mail: naoufel.chb...@ssc.gc.ca | naoufel.chb...@spc.gc.ca -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Vincent Massol Sent: Thursday, January 17, 2013 3:04 AM To: XWiki Users Subject: Re: [xwiki-users] Xwiki Enterprise 4.4: Custom skin for a space On Jan 16, 2013, at 11:27 PM, Sorin Burjan sorin.bur...@xwiki.com wrote: Hello, see my comments below On Wed, Jan 16, 2013 at 11:40 PM, Naoufel Chbihi naoufel.chb...@ssc-spc.gc.ca wrote: Hello I'm running Xwiki Enterprise 4.4 on Apache Tomca 6 and I'm trying to create a custom skin for a space that I defined in the default wiki but nothing is changing. I tried following the steps provided in http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Skins#HChangingth eSkinatspacelevel(and specifying toucan as the skin) but nothing happened. I also tried the procedure described in http://platform.xwiki.org/xwiki/bin/view/DevGuide/Skins under How to override a Skin sections A, B, C, D and F.1 but I didn't see any changes. What you've done should work fine. You just need to specify a skin that exists. Thanks -Vincent The Toucan skin was retired in 4.4-rc1, so it is no longer available in 4.4 final. It was considered deprecated and was not maintained anymore for some quite time now, and we decided to remove it. If you are still you want to use it, you can still download it and deploy it in your wiki instance (see http://extensions.xwiki.org/xwiki/bin/view/Extension/Toucan+Skin ) Colibri is now the only skin we bundle by default in XWiki products. XWiki skins are much more than just some css and js files, writing a full skin from scratch requires quite a lot of work. Could someone please tell me how I can create a custom skin? I don't mind doing it either through web interface or by editing files directly on the server. To solve your issue you have 2 options from my point of view: 1) If you want to have different look for each space, you should use the ColorTheme application (bundled by default), and create custom themes which can be applied on a per space basis. This is the easiest way of achieving what you want. For more info, look http://extensions.xwiki.org/xwiki/bin/view/Extension/Color+Theme+Appli cation 2) You can follow the tutorial on Overriding a skin and override the parts which you want to change. This approach is a little bit harder. Hope it will help Regards, Sorin B. Thank you. Naoufel Chbihi Technical Specialist | Spécialiste technique Mainframe Operating System Technology | Technologie du système d'exploitation des ordinateurs centraux Service Management Delivery (SMD) | Gestion et prestation des services (GPS) Information Technology Services Branch (ITSB) | Direction générale des services d'infotechnologie (DGSIT) Shared Services Canada | Services partagés Canada 7038-700 Montreal Road, Ottawa, ON K1A 0P7 | 7038-700, chemin Montréal, Ottawa, ON K1A 0P7 Tel.: 613-748-2169 Fax: 613-748-2617 E-mail: naoufel.chb...@ssc.gc.ca | naoufel.chb...@spc.gc.ca ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Xwiki Enterprise 4.4: Custom skin for a space
Hello I'm running Xwiki Enterprise 4.4 on Apache Tomca 6 and I'm trying to create a custom skin for a space that I defined in the default wiki but nothing is changing. I tried following the steps provided in http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Skins#HChangingtheSkinatspacelevel (and specifying toucan as the skin) but nothing happened. I also tried the procedure described in http://platform.xwiki.org/xwiki/bin/view/DevGuide/Skins under How to override a Skin sections A, B, C, D and F.1 but I didn't see any changes. Could someone please tell me how I can create a custom skin? I don't mind doing it either through web interface or by editing files directly on the server. Thank you. Naoufel Chbihi Technical Specialist | Spécialiste technique Mainframe Operating System Technology | Technologie du système d'exploitation des ordinateurs centraux Service Management Delivery (SMD) | Gestion et prestation des services (GPS) Information Technology Services Branch (ITSB) | Direction générale des services d'infotechnologie (DGSIT) Shared Services Canada | Services partagés Canada 7038-700 Montreal Road, Ottawa, ON K1A 0P7 | 7038-700, chemin Montréal, Ottawa, ON K1A 0P7 Tel.: 613-748-2169 Fax: 613-748-2617 E-mail: naoufel.chb...@ssc.gc.ca | naoufel.chb...@spc.gc.ca ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Xwiki Enterprise 4.4 doesn't run on Apache Geronimo 3.0
Hello I have deployed Xwiki Enterprise 4.4 on Apache Geronimo 3.0 and I've noticed that the logging error that was preventing Xwiki Enterprise 4.3 from starting has disappeared and the application now starts. Thank you for resolving the issue (XCOMMONS-315). However, exceptions are still being generated and I can't get Xwiki to run properly. Once I get it running, I can look into the logging feature at some point. This time, I'm getting a chain of exceptions that end with the following: Caused by: java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(Unknown Source) at java.lang.ClassLoader.defineClass(Unknown Source) at org.apache.geronimo.hook.equinox.GeronimoClassLoader.defineClass(GeronimoClassLoader.java:213) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:601) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:567) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:490) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:478) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:458) at org.apache.geronimo.hook.equinox.GeronimoClassLoader.findLocalClass(GeronimoClassLoader.java:237) at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400) at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:476) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417) at org.apache.geronimo.hook.equinox.GeronimoClassLoader.loadClass(GeronimoClassLoader.java:85) at java.lang.ClassLoader.loadClass(Unknown Source) at org.apache.xerces.jaxp.DocumentBuilderImpl.newDocument(Unknown Source) at org.xwiki.xml.internal.html.XWikiDOMSerializer.createDOM(XWikiDOMSerializer.java:91) at org.xwiki.xml.internal.html.DefaultHTMLCleaner.clean(DefaultHTMLCleaner.java:160) at org.xwiki.xml.internal.html.DefaultHTMLCleaner.clean(DefaultHTMLCleaner.java:120) at org.xwiki.xml.internal.html.DefaultHTMLCleaner.initialize(DefaultHTMLCleaner.java:114) at org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39) at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:323) at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:378) at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:346) ... 21 more Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ElementTraversal at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:467) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417) at org.apache.geronimo.hook.equinox.GeronimoClassLoader.loadClass(GeronimoClassLoader.java:85) at java.lang.ClassLoader.loadClass(Unknown Source) ... 46 more After doing some research, I discovered that the org.w3c.dom.ElementTraversal class is in the xml-apis-1.4.01.jar file which is included in Xwiki Enterprise's lib directory. So, I can't figure out why it's not finding the class. I tried copy the JAR files xml-apis-1.4.01.jar and xml-apis-ext-1.3.04.jar into {geronimo_home}\lib\endorsed but this prevented Geronimo from starting up. So, I then moved the files into {garonimo_home}\var\shared\lib but the exceptions are still appearing (the files seem to be ignored). I have also tried adding the dep:inverse-classloading/ tag to the geronimo-web.xml file but this didn't help. Any suggestions would be much appreciated. Thank you. Naoufel Chbihi Technical Specialist | Spécialiste technique Mainframe Operating System Technology | Technologie du système d'exploitation des ordinateurs centraux Service Management Delivery (SMD) | Gestion et prestation des services (GPS) Information Technology Services Branch (ITSB) | Direction générale des services d'infotechnologie (DGSIT) Shared Services Canada | Services partagés Canada 7038-700 Montreal Road, Ottawa, ON K1A 0P7 | 7038-700, chemin Montréal, Ottawa, ON K1A 0P7 Tel.: 613-748-2169 Fax: 613-748-2617 E-mail: naoufel.chb...@ssc.gc.ca | naoufel.chb...@spc.gc.ca ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] [ANN] XWiki 4.4-rc1 released
Hello Vincent The files don't seem to be available. Thank you. Naoufel Chbihi Technical Specialist | Spécialiste technique Mainframe Operating System Technology | Technologie du système d'exploitation des ordinateurs centraux Service Management Delivery (SMD) | Gestion et prestation des services (GPS) Information Technology Services Branch (ITSB) | Direction générale des services d'infotechnologie (DGSIT) Shared Services Canada | Services partagés Canada 7038-700 Montreal Road, Ottawa, ON K1A 0P7 | 7038-700, chemin Montréal, Ottawa, ON K1A 0P7 Tel.: 613-748-2169 Fax: 613-748-2617 E-mail: naoufel.chb...@ssc.gc.ca | naoufel.chb...@spc.gc.ca -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Vincent Massol Sent: Thursday, December 27, 2012 8:39 AM To: XWiki Users; XWiki Developers Subject: [xwiki-users] [ANN] XWiki 4.4-rc1 released The XWiki development team is proud to announce the availability of XWiki 4.4-rc-1. This is a stabilization release and as such it mostly contains bug fixes. You can download it here: http://www.xwiki.org/xwiki/bin/view/Main/Download (Note that it can take some time for the files to be available on the OW2 mirror so if the links are broken you can get XWiki from http://forge.ow2.org/projects/xwiki/) Make sure to review the release notes: http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki44RC1 Thanks -The XWiki dev team ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Xwiki Enterprise 4.3 fails to start on Apache Geronimo 3.0
Hello I am interested in running Xwiki Enterprise using the WAR file on an Apache Geronimo 3.0 server. I have been trying to do so for about two weeks now but haven't been able to start Xwiki successfully I initially tried with Xwiki Enterprise 4.2 and then with 4.3 but with no success. Here are the steps that I have performed in my most recent attempt: 1) Installed a MySQL server, created an xwiki database, defined an xwiki user (with password xwiki), and granted the user all permissions to the database. I am able to successful connect to the xwiki database using a database client. 2) Downloaded and extracted the Apache Geronimo 3.0.0 ZIP file 3) Placed the dependency JAR files in the appropriate directories inside the Geronimo repository directory. 4) Created a geronimo-web.xml file and copied-and-pasted the complete sample file contents provided at http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationGeronimo. I updated the version numbers in geronimo-web.xml file to match the versions of the JAR files that I placed in the repository. 5) Defined a JDBC datasource in Geronimo using the procedure described in http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationGeronimo 6) Downloaded the XWiki 4.3 WAR file and deployed it on the Geronimo server (specifying the customized geronimo-web.xml file on the deployment page). The deployment was successful. 7) Modified the hibernate.cfg.xml file by commenting out the default database configuration and specifying the appropriate parameters for the MySQL database (which is what I'm using). 8) Copied the modified geronimo-web.xml file into Xwiki's WEB-INF folder. 9) When I tried to start the XWiki application, the following errors were generated in the log file: 2012-12-06 16:27:01,000 INFO [KernelContextGBean] bound gbean default/xwiki43/1354828503390/war?J2EEApplication=null,WebModule=default/xwiki43/1354828503390/war,j2eeType=ValidatorFactory,name=ValidatorFactory at name jca:/default/xwiki43/ValidatorFactory/ValidatorFactory 2012-12-06 16:27:10,000 ERROR [[/xwiki43]] Exception sending context initialized event to listener instance of class org.xwiki.container.servlet.XWikiServletContextListener java.lang.RuntimeException: Failed to find the Observation Manager component at org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:101) ... at java.lang.Thread.run(Unknown Source) Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.observation.internal.DefaultObservationManager] identifier by [role = [interface org.xwiki.observation.ObservationManager] hint = [default]] at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:348) at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:155) at org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:99) ... 82 more Caused by: org.xwiki.component.phase.InitializationException: Failed to lookup Event Listeners at org.xwiki.observation.internal.DefaultObservationManager.initialize(DefaultObservationManager.java:139) at org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39) at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:323) at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:378) at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:346) ... 84 more Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [role = [interface org.xwiki.observation.EventListener] hint = [LogbackEventGenerator]] at org.xwiki.component.embed.EmbeddableComponentManager.getInstanceMap(EmbeddableComponentManager.java:187) at org.xwiki.component.embed.EmbeddableComponentManager.getInstanceList(EmbeddableComponentManager.java:169) at org.xwiki.observation.internal.DefaultObservationManager.initialize(DefaultObservationManager.java:135) ... 88 more Caused by: java.lang.ClassCastException: org.ops4j.pax.logging.slf4j.Slf4jLoggerFactory cannot be cast to ch.qos.logback.classic.LoggerContext at org.xwiki.logging.logback.internal.LogbackUtils.getLoggerContext(LogbackUtils.java:50) at org.xwiki.logging.logback.internal.LogbackUtils.getRootLogger(LogbackUtils.java:58) at org.xwiki.logging.logback.internal.LogbackEventGenerator.initialize(LogbackEventGenerator.java:96) at org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39) at
Re: [xwiki-users] Xwiki Enterprise 4.3 fails to start on Apache Geronimo 3.0
Thank you for the quick response. I have never posted a JIRA before and I'm new to Xwiki. How will I know when the issue has been fixed? Thank you. Naoufel -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Vincent Massol Sent: Friday, December 07, 2012 10:16 AM To: XWiki Users Subject: Re: [xwiki-users] Xwiki Enterprise 4.3 fails to start on Apache Geronimo 3.0 On Dec 7, 2012, at 4:03 PM, Vincent Massol vinc...@massol.net wrote: Hi, On Dec 7, 2012, at 3:28 PM, Naoufel Chbihi naoufel.chb...@ssc-spc.gc.ca wrote: Hello I am interested in running Xwiki Enterprise using the WAR file on an Apache Geronimo 3.0 server. I have been trying to do so for about two weeks now but haven't been able to start Xwiki successfully I initially tried with Xwiki Enterprise 4.2 and then with 4.3 but with no success. Here are the steps that I have performed in my most recent attempt: 1) Installed a MySQL server, created an xwiki database, defined an xwiki user (with password xwiki), and granted the user all permissions to the database. I am able to successful connect to the xwiki database using a database client. 2) Downloaded and extracted the Apache Geronimo 3.0.0 ZIP file 3) Placed the dependency JAR files in the appropriate directories inside the Geronimo repository directory. 4) Created a geronimo-web.xml file and copied-and-pasted the complete sample file contents provided at http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationGeronimo. I updated the version numbers in geronimo-web.xml file to match the versions of the JAR files that I placed in the repository. 5) Defined a JDBC datasource in Geronimo using the procedure described in http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationGeron imo 6) Downloaded the XWiki 4.3 WAR file and deployed it on the Geronimo server (specifying the customized geronimo-web.xml file on the deployment page). The deployment was successful. 7) Modified the hibernate.cfg.xml file by commenting out the default database configuration and specifying the appropriate parameters for the MySQL database (which is what I'm using). 8) Copied the modified geronimo-web.xml file into Xwiki's WEB-INF folder. 9) When I tried to start the XWiki application, the following errors were generated in the log file: [snip] Caused by: java.lang.ClassCastException: org.ops4j.pax.logging.slf4j.Slf4jLoggerFactory cannot be cast to ch.qos.logback.classic.LoggerContext at org.xwiki.logging.logback.internal.LogbackUtils.getLoggerContext(LogbackUtils.java:50) at org.xwiki.logging.logback.internal.LogbackUtils.getRootLogger(LogbackUtils.java:58) at org.xwiki.logging.logback.internal.LogbackEventGenerator.initialize(LogbackEventGenerator.java:96) at org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39) at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:323) at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:378) at org.xwiki.component.embed.EmbeddableComponentManager.getInstanceMap(E mbeddableComponentManager.java:185) This is the real error and it's bad, it means we're doing something wrong We're wrongly assuming that you're using Logback whereas apparently something else is used, probably because it's on the servlet container's classloader. Could you please file a jira issue for this at http//jira.xwiki.org and we'll fix it? No need, thomas has created it already: http://jira.xwiki.org/browse/XCOMMONS-315 Thanks -Vincent Thanks -Vincent There is mention of an Observation Manager component and SLF4J. I'm not sure what is preventing Xwiki Enterprise from starting correctly. Any assistance would be greatly appreciated. Thank you. Naoufel ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Xwiki Enterprise 4.3 fails to start on Apache Geronimo 3.0
I'll try 4.4 when it becomes available. Thank you. Naoufel -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne Sent: Friday, December 07, 2012 10:41 AM To: XWiki Users Subject: Re: [xwiki-users] Xwiki Enterprise 4.3 fails to start on Apache Geronimo 3.0 On Fri, Dec 7, 2012 at 4:20 PM, Naoufel Chbihi naoufel.chb...@ssc-spc.gc.ca wrote: Thank you for the quick response. I have never posted a JIRA before and I'm new to Xwiki. How will I know when the issue has been fixed? http://jira.xwiki.org/browse/XCOMMONS-315 is fixed, it will be part of 4.4. Thank you. Naoufel -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Vincent Massol Sent: Friday, December 07, 2012 10:16 AM To: XWiki Users Subject: Re: [xwiki-users] Xwiki Enterprise 4.3 fails to start on Apache Geronimo 3.0 On Dec 7, 2012, at 4:03 PM, Vincent Massol vinc...@massol.net wrote: Hi, On Dec 7, 2012, at 3:28 PM, Naoufel Chbihi naoufel.chb...@ssc-spc.gc.ca wrote: Hello I am interested in running Xwiki Enterprise using the WAR file on an Apache Geronimo 3.0 server. I have been trying to do so for about two weeks now but haven't been able to start Xwiki successfully I initially tried with Xwiki Enterprise 4.2 and then with 4.3 but with no success. Here are the steps that I have performed in my most recent attempt: 1) Installed a MySQL server, created an xwiki database, defined an xwiki user (with password xwiki), and granted the user all permissions to the database. I am able to successful connect to the xwiki database using a database client. 2) Downloaded and extracted the Apache Geronimo 3.0.0 ZIP file 3) Placed the dependency JAR files in the appropriate directories inside the Geronimo repository directory. 4) Created a geronimo-web.xml file and copied-and-pasted the complete sample file contents provided at http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationGeronimo. I updated the version numbers in geronimo-web.xml file to match the versions of the JAR files that I placed in the repository. 5) Defined a JDBC datasource in Geronimo using the procedure described in http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationGer on imo 6) Downloaded the XWiki 4.3 WAR file and deployed it on the Geronimo server (specifying the customized geronimo-web.xml file on the deployment page). The deployment was successful. 7) Modified the hibernate.cfg.xml file by commenting out the default database configuration and specifying the appropriate parameters for the MySQL database (which is what I'm using). 8) Copied the modified geronimo-web.xml file into Xwiki's WEB-INF folder. 9) When I tried to start the XWiki application, the following errors were generated in the log file: [snip] Caused by: java.lang.ClassCastException: org.ops4j.pax.logging.slf4j.Slf4jLoggerFactory cannot be cast to ch.qos.logback.classic.LoggerContext at org.xwiki.logging.logback.internal.LogbackUtils.getLoggerContext(Logba ckUtils.java:50) at org.xwiki.logging.logback.internal.LogbackUtils.getRootLogger(LogbackU tils.java:58) at org.xwiki.logging.logback.internal.LogbackEventGenerator.initialize(Lo gbackEventGenerator.java:96) at org.xwiki.component.embed.InitializableLifecycleHandler.handle(Initial izableLifecycleHandler.java:39) at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(Em beddableComponentManager.java:323) at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInsta nce(EmbeddableComponentManager.java:378) at org.xwiki.component.embed.EmbeddableComponentManager.getInstanceMap (E mbeddableComponentManager.java:185) This is the real error and it's bad, it means we're doing something wrong We're wrongly assuming that you're using Logback whereas apparently something else is used, probably because it's on the servlet container's classloader. Could you please file a jira issue for this at http//jira.xwiki.org and we'll fix it? No need, thomas has created it already: http://jira.xwiki.org/browse/XCOMMONS-315 Thanks -Vincent Thanks -Vincent There is mention of an Observation Manager component and SLF4J. I'm not sure what is preventing Xwiki Enterprise from starting correctly. Any assistance would be greatly appreciated. Thank you. Naoufel ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Xwiki Enterprise 4.3 fails to start on Apache Geronimo 3.0
I believe that Geronimo uses Log4j for logging. Aside from configuring Log4j to be used by a Java web application that I wrote, I've never implemented a log manager before so I don't know much about loggers. I'll look into it. Thank you. Naoufel -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne Sent: Friday, December 07, 2012 10:52 AM To: XWiki Users Subject: Re: [xwiki-users] Xwiki Enterprise 4.3 fails to start on Apache Geronimo 3.0 On Fri, Dec 7, 2012 at 4:47 PM, Naoufel Chbihi naoufel.chb...@ssc-spc.gc.ca wrote: I'll try 4.4 when it becomes available. But as Vincent said you will get a degraded XWiki so the best in your case is to make sure Geronimo is letting XWiki use logback. Either that or provide an XWiki log manager implementation for whatever log system Geronimo (i.e. convert https://github.com/xwiki/xwiki-commons/tree/master/xwiki-commons-core/xwiki-commons-logging/xwiki-commons-logging-logbackto a Geronimo version) is using which would be even nicer ;) Thank you. Naoufel -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne Sent: Friday, December 07, 2012 10:41 AM To: XWiki Users Subject: Re: [xwiki-users] Xwiki Enterprise 4.3 fails to start on Apache Geronimo 3.0 On Fri, Dec 7, 2012 at 4:20 PM, Naoufel Chbihi naoufel.chb...@ssc-spc.gc.ca wrote: Thank you for the quick response. I have never posted a JIRA before and I'm new to Xwiki. How will I know when the issue has been fixed? http://jira.xwiki.org/browse/XCOMMONS-315 is fixed, it will be part of 4.4. Thank you. Naoufel -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Vincent Massol Sent: Friday, December 07, 2012 10:16 AM To: XWiki Users Subject: Re: [xwiki-users] Xwiki Enterprise 4.3 fails to start on Apache Geronimo 3.0 On Dec 7, 2012, at 4:03 PM, Vincent Massol vinc...@massol.net wrote: Hi, On Dec 7, 2012, at 3:28 PM, Naoufel Chbihi naoufel.chb...@ssc-spc.gc.ca wrote: Hello I am interested in running Xwiki Enterprise using the WAR file on an Apache Geronimo 3.0 server. I have been trying to do so for about two weeks now but haven't been able to start Xwiki successfully I initially tried with Xwiki Enterprise 4.2 and then with 4.3 but with no success. Here are the steps that I have performed in my most recent attempt: 1) Installed a MySQL server, created an xwiki database, defined an xwiki user (with password xwiki), and granted the user all permissions to the database. I am able to successful connect to the xwiki database using a database client. 2) Downloaded and extracted the Apache Geronimo 3.0.0 ZIP file 3) Placed the dependency JAR files in the appropriate directories inside the Geronimo repository directory. 4) Created a geronimo-web.xml file and copied-and-pasted the complete sample file contents provided at http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationGero nimo . I updated the version numbers in geronimo-web.xml file to match the versions of the JAR files that I placed in the repository. 5) Defined a JDBC datasource in Geronimo using the procedure described in http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationG er on imo 6) Downloaded the XWiki 4.3 WAR file and deployed it on the Geronimo server (specifying the customized geronimo-web.xml file on the deployment page). The deployment was successful. 7) Modified the hibernate.cfg.xml file by commenting out the default database configuration and specifying the appropriate parameters for the MySQL database (which is what I'm using). 8) Copied the modified geronimo-web.xml file into Xwiki's WEB-INF folder. 9) When I tried to start the XWiki application, the following errors were generated in the log file: [snip] Caused by: java.lang.ClassCastException: org.ops4j.pax.logging.slf4j.Slf4jLoggerFactory cannot be cast to ch.qos.logback.classic.LoggerContext at org.xwiki.logging.logback.internal.LogbackUtils.getLoggerContext(Log ba ckUtils.java:50) at org.xwiki.logging.logback.internal.LogbackUtils.getRootLogger(Logbac kU tils.java:58) at org.xwiki.logging.logback.internal.LogbackEventGenerator.initialize( Lo gbackEventGenerator.java:96) at org.xwiki.component.embed.InitializableLifecycleHandler.handle(Initi al izableLifecycleHandler.java:39) at org.xwiki.component.embed.EmbeddableComponentManager.createInstance( Em beddableComponentManager.java:323) at org.xwiki.component.embed.EmbeddableComponentManager.getComponentIns ta nce(EmbeddableComponentManager.java:378