[xwiki-users] XWIKI installation error on JBOSS 5.0.1 !!!PLEASE HELP!!!
Dear xwiki experts, I politely ask for assistance, since many-days-troubleshooting on my own brought no success. I'm still getting JBoss Application Server errors, as described below. What am I doing wrong? All steps are followed as described on xwiki.org. Many thanks in advance for your expertise! MY INFRASTRUCTURE: DEBIAN 5.0.1 JBoss GA 5.0.1 (no add-ons, no other applications) JDK 5.0 PostgreSQL 8.3.6-1 postgresql-8.3-604.jdbc4.jar JDBC Java Driver MY INSTALLATION STEPS: 1. Installed JBoss GA 5.0.1 2. created directory /usr/local/jboss.ga.5.0.1/server/default/deploy/xwiki.war 3. copied the content of xwiki-enterprise-web-1.8.1.war into directory /usr/local/jboss.ga.5.0.1/server/default/deploy/xwiki.war/ 4. Uncommented the resource-ref in /usr/local/jboss.ga.5.0.1/server/default/deploy/xwiki.war/WEB-INF/web.xml as follows: <resource-ref> <description>DB Connection</description> <res-ref-name>jdbc/XWikiDS</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref> 5. Modified the /usr/local/jboss.ga.5.0.1/server/default/deploy/xwiki.war/WEB-INF/hibernate.cfg.xml as follows: <property name="connection.url">jdbc:postgresql://localhost:5432/xwiki</property> <property name="connection.username">xwiki</property> <property name="connection.password">xwiki</property> <property name="connection.driver_class">org.postgresql.Driver</property> <property name="dialect">org.hibernate.dialect.PostgreSQLDialect</property> <property name="connection.provider_class">com.xpn.xwiki.store.DBCPConnectionProvider</property> <property name="connection.pool_size">2</property> <property name="statement_cache.size">2</property> <mapping resource="xwiki.hbm.xml"/> <mapping resource="feeds.hbm.xml"/> 6. Downloaded the jboss-web.xml and placed it into the directory /usr/local/jboss.ga.5.0.1/server/default/deploy/xwiki.war/WEB-INF 7. Installed PostgreSQL 8.3.6-1 per command apt-get insall postgresql 8. Executed following commands as postgres user: # createuser xwiki -S -D -R -P -Upostgres # createdb xwiki -Eunicode -Oxwiki -Upostgres 9. Copied postgresql-8.3-604.jdbc4.jar Java Driver into /usr/local/jboss.ga.5.0.1/server/default/deploy/xwiki.war/WEB-INF/lib 10. Uncommented xwiki.store.hibernate.path=/WEB-INF/hibernate.cfg.xml line in the file /usr/local/jboss.ga.5.0.1/server/default/deploy/xwiki.war/WEB-INF/xwiki.cfg JBOSS GA ERROR: When I start the JBoss Application Server, I get the following error: 11:12:19,299 INFO [TomcatDeployment] deploy, ctxPath=/ 11:12:19,793 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console 11:12:20,290 INFO [TomcatDeployment] deploy, ctxPath=/xwiki 11:12:21,311 ERROR [JBossContextConfig] XML error parsing: context.xml org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100) at org.jboss.web.tomcat.service.deployers.JBossContextConfig.processContextConfig(JBossContextConfig.java:557) at org.jboss.web.tomcat.service.deployers.JBossContextConfig.init(JBossContextConfig.java:543) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279) -- View this message in context: http://n2.nabble.com/XWIKI-installation-error-on-JBOSS-5.0.1--%21%21%21PLEAS... Sent from the XWiki- Users mailing list archive at Nabble.com.
I just have tried the same wiki installation on JBOSS 4.2.3 - xwiki is working fine here. Would anyone know, what do I have to do, to enable xwiki on JBOSS 5.01? Thank you in advance for your time and expertise! -- View this message in context: http://n2.nabble.com/XWIKI-installation-error-on-JBOSS-5.0.1--%21%21%21PLEAS... Sent from the XWiki- Users mailing list archive at Nabble.com.
cygent wrote:
11:12:21,311 ERROR [JBossContextConfig] XML error parsing: context.xml org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100)
This error suggests a problem with the libraries. Can you try to see if xerces also exist in the container's lib folder? Try to remove xercesImpl-2.8.1.jar from xwiki/WEB-INF/lib and restart. -- Sergiu Dumitriu http://purl.org/net/sergiu/
Sergiu Dumitriu-2 wrote:
This error suggests a problem with the libraries. Can you try to see if xerces also exist in the container's lib folder? Try to remove xercesImpl-2.8.1.jar from xwiki/WEB-INF/lib and restart.
Thanks for the reply Dumitriu! I have this file in the container /usr/local/jboss.ga.5.0.1/lib/endorsed/xercesImpl.jar (is that a correct location?). After I removed the library /usr/local/jboss.ga.5.0.1/server/default/deploy/xwiki.war/WEB-INF/libxercesImpl-2.8.1.jar I've got the following error. Please advice me further! 14:22:37,976 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA' 14:22:38,035 INFO [TomcatDeployment] deploy, ctxPath=/ 14:22:38,201 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console 14:22:38,369 INFO [TomcatDeployment] deploy, ctxPath=/xwiki 14:22:38,931 INFO [[/xwiki]] Loading plexus context properties from: '/WEB-INF/plexus.properties' 14:22:38,939 INFO [[/xwiki]] Initializing Plexus. 14:22:38,941 INFO [[/xwiki]] resource = jndi:/localhost/xwiki/WEB-INF/plexus.xml 14:22:39,826 INFO [[/xwiki]] Plexus initialized. 14:22:41,338 INFO [STDOUT] 2009-05-01 14:22:41,324 [] [main] ERROR digester.Digester - Digester.getParser: java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl cannot be cast to javax.xml.parsers.SAXParserFactory at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source) at org.apache.commons.digester.Digester.getFactory(Digester.java:478) at org.apache.commons.digester.Digester.getParser(Digester.java:683) at org.apache.commons.digester.Digester.getXMLReader(Digester.java:891) -- View this message in context: http://n2.nabble.com/XWIKI-installation-error-on-JBOSS-5.0.1--%21%21%21PLEAS... Sent from the XWiki- Users mailing list archive at Nabble.com.
cygent wrote:
Sergiu Dumitriu-2 wrote:
This error suggests a problem with the libraries. Can you try to see if xerces also exist in the container's lib folder? Try to remove xercesImpl-2.8.1.jar from xwiki/WEB-INF/lib and restart.
Thanks for the reply Dumitriu! I have this file in the container /usr/local/jboss.ga.5.0.1/lib/endorsed/xercesImpl.jar (is that a correct location?).
Yes.
After I removed the library /usr/local/jboss.ga.5.0.1/server/default/deploy/xwiki.war/WEB-INF/libxercesImpl-2.8.1.jar I've got the following error. Please advice me further!
java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl cannot be cast to javax.xml.parsers.SAXParserFactory
This is a classloader problem, now the two classes are in different classloaders, thus the error. Try removing the xml-apis and xmlParserAPIs jars. -- Sergiu Dumitriu http://purl.org/net/sergiu/
Sergiu Dumitriu-2 wrote:
Try removing the xml-apis and xmlParserAPIs jars.
I removed following files: /usr/local/jboss.ga.5.0.1/server/default/deploy/xwiki.war/WEB-INF/lib/xml-apis-1.3.04.jar /usr/local/jboss.ga.5.0.1/server/default/deploy/xwiki.war/WEB-INF/lib/xml-apis-ext-1.3.04.jar /usr/local/jboss.ga.5.0.1/server/default/deploy/xwiki.war/WEB-INF/lib/xmlParserAPIs-2.0.2.jar and got no errors!!! And I can call XWIKI from the browser! :drunk: Long live Dumitriu!!! :drunk: -- View this message in context: http://n2.nabble.com/XWIKI-installation-error-on-JBOSS-5.0.1--%21%21%21PLEAS... Sent from the XWiki- Users mailing list archive at Nabble.com.
cygent wrote:
Sergiu Dumitriu-2 wrote:
Try removing the xml-apis and xmlParserAPIs jars.
I removed following files: /usr/local/jboss.ga.5.0.1/server/default/deploy/xwiki.war/WEB-INF/lib/xml-apis-1.3.04.jar /usr/local/jboss.ga.5.0.1/server/default/deploy/xwiki.war/WEB-INF/lib/xml-apis-ext-1.3.04.jar /usr/local/jboss.ga.5.0.1/server/default/deploy/xwiki.war/WEB-INF/lib/xmlParserAPIs-2.0.2.jar and got no errors!!! And I can call XWIKI from the browser!
:drunk: Long live Dumitriu!!! :drunk:
Glad to help :) -- Sergiu Dumitriu http://purl.org/net/sergiu/
participants (2)
-
cygent -
Sergiu Dumitriu