[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 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(EmbeddableComponentManager.java:185) ... 90 more 2012-12-06 16:27:10,000 ERROR [StandardContext] Error listenerStart 2012-12-06 16:27:10,000 ERROR [StandardContext] Context [/xwiki43] startup failed due to previous errors ... 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
Hi, On Dec 7, 2012, at 3:28 PM, Naoufel Chbihi <[email protected]> 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/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:
[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(EmbeddableComponentManager.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? 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
On Dec 7, 2012, at 4:03 PM, Vincent Massol <[email protected]> wrote:
Hi,
On Dec 7, 2012, at 3:28 PM, Naoufel Chbihi <[email protected]> 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/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:
[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(EmbeddableComponentManager.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
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: [email protected] [mailto:[email protected]] 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 <[email protected]> wrote:
Hi,
On Dec 7, 2012, at 3:28 PM, Naoufel Chbihi <[email protected]> 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 [email protected] http://lists.xwiki.org/mailman/listinfo/users
On Fri, Dec 7, 2012 at 4:03 PM, Vincent Massol <[email protected]> wrote:
Hi,
On Dec 7, 2012, at 3:28 PM, Naoufel Chbihi <[email protected]> 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/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:
[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(EmbeddableComponentManager.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.
It's not that simple, we are not assuming that logback is always the logger, we are just packing the default XE with a logback implementation of the logger manager which obviously expect to find logback. All we can do is just do nothing if it's not logback but that means losing a few features like the log displayed in the Extension Manager for example.
Could you please file a jira issue for this at http//jira.xwiki.org and we'll fix it?
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 [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
On Dec 7, 2012, at 4:21 PM, Thomas Mortagne <[email protected]> wrote:
On Fri, Dec 7, 2012 at 4:03 PM, Vincent Massol <[email protected]> wrote:
Hi,
On Dec 7, 2012, at 3:28 PM, Naoufel Chbihi <[email protected]> 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/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:
[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(EmbeddableComponentManager.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.
It's not that simple, we are not assuming that logback is always the logger, we are just packing the default XE with a logback implementation of the logger manager which obviously expect to find logback. All we can do is just do nothing if it's not logback but that means losing a few features like the log displayed in the Extension Manager for example.
More specifically it means you need to find a way to configure Geronimo so that the xwiki webapp is isolated from geronimo's classes… It's not normal that geronimo brings its own classes to the xwiki webapp classloader. Thanks -Vincent
Could you please file a jira issue for this at http//jira.xwiki.org and we'll fix it?
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
On Fri, Dec 7, 2012 at 4:20 PM, Naoufel Chbihi <[email protected]
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: [email protected] [mailto:[email protected]] 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 <[email protected]> wrote:
Hi,
On Dec 7, 2012, at 3:28 PM, Naoufel Chbihi <[email protected]> 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 [email protected] http://lists.xwiki.org/mailman/listinfo/users _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
I'll try 4.4 when it becomes available. Thank you. Naoufel -----Original Message----- From: [email protected] [mailto:[email protected]] 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 <[email protected]
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: [email protected] [mailto:[email protected]] 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 <[email protected]> wrote:
Hi,
On Dec 7, 2012, at 3:28 PM, Naoufel Chbihi <[email protected]> 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 [email protected] http://lists.xwiki.org/mailman/listinfo/users _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
On Fri, Dec 7, 2012 at 4:47 PM, Naoufel Chbihi <[email protected]
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-... a Geronimo version) is using which would be even nicer ;)
Thank you.
Naoufel
-----Original Message----- From: [email protected] [mailto:[email protected]] 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 < [email protected]
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: [email protected] [mailto:[email protected]] 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 <[email protected]> wrote:
Hi,
On Dec 7, 2012, at 3:28 PM, Naoufel Chbihi <[email protected]> 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 [email protected] http://lists.xwiki.org/mailman/listinfo/users _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
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: [email protected] [mailto:[email protected]] 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 <[email protected]
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-... a Geronimo version) is using which would be even nicer ;)
Thank you.
Naoufel
-----Original Message----- From: [email protected] [mailto:[email protected]] 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 < [email protected]
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: [email protected] [mailto:[email protected]] 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 <[email protected]> wrote:
Hi,
On Dec 7, 2012, at 3:28 PM, Naoufel Chbihi <[email protected]> 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) at org.xwiki.component.embed.EmbeddableComponentManager.getInstanceM ap (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 [email protected] http://lists.xwiki.org/mailman/listinfo/users _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
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 (SM&D) | 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: [email protected] | [email protected]
participants (3)
-
Naoufel Chbihi -
Thomas Mortagne -
Vincent Massol