[xwiki-users] Problems configuring XWiki
Hy, I want to instal manually Xwiki and I use Apache Tomcat 5.5 am MySQL Server 5.1. I created the database that Xwiki needs using the following commands: 1. create database xwikiDB 2. grant all privileges on xwikiDB.* to xwikiUser@localhost identified by 'xwikiPwd' 3. show databases and I have changed the hibernate.cfg.xml file: <property name="connection.url">jdbc:mysqlDB://localhost/xwiki?useServerPrepStmts=false&sessionVariables=sql_mode=''</property> <property name="connection.username">xwikiUser</property> <property name="connection.password">xwikiPwd</property> <property name="connection.driver_class">com.mysql.jdbc.Driver</property> <property name="dialect">org.hibernate.dialect.MySQLDialect</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"/> I restarted the server and when I want to view to XWiki HomePage it tells me that I have a server error, that I have an error in my hibernate.cfg.xml file. But I have modified this file as the tutorials say... So, I installed the fully-featured wiki and it works and I looked at the configuration file and it is like I wrote. I don't want to instal the fully-featured wiki... so, what can I do? -- View this message in context: http://n2.nabble.com/Problems-configuring-XWiki-tp2513789p2513789.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi, On Sat, Mar 21, 2009 at 15:42, RoxanaM <[email protected]> wrote:
Hy,
I want to instal manually Xwiki and I use Apache Tomcat 5.5 am MySQL Server 5.1. I created the database that Xwiki needs using the following commands:
1. create database xwikiDB 2. grant all privileges on xwikiDB.* to xwikiUser@localhost identified by 'xwikiPwd' 3. show databases
and I have changed the hibernate.cfg.xml file:
<property name="connection.url">jdbc:mysqlDB://localhost/xwiki?useServerPrepStmts=false&sessionVariables=sql_mode=''</property> <property name="connection.username">xwikiUser</property> <property name="connection.password">xwikiPwd</property> <property name="connection.driver_class">com.mysql.jdbc.Driver</property> <property name="dialect">org.hibernate.dialect.MySQLDialect</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"/>
I restarted the server and when I want to view to XWiki HomePage it tells me that I have a server error, that I have an error in my hibernate.cfg.xml file. But I have modified this file as the tutorials say...
So, I installed the fully-featured wiki and it works and I looked at the configuration file and it is like I wrote. I don't want to instal the fully-featured wiki... so, what can I do?
It seems you are using "xwikiDB" on Mysql ("create database xwikiDB") but in the hibernate.cfg.xml it's "xwiki" ("/localhost/xwiki")
-- View this message in context: http://n2.nabble.com/Problems-configuring-XWiki-tp2513789p2513789.html Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
RoxanaM wrote:
Hy,
I want to instal manually Xwiki and I use Apache Tomcat 5.5 am MySQL Server 5.1. I created the database that Xwiki needs using the following commands:
1. create database xwikiDB 2. grant all privileges on xwikiDB.* to xwikiUser@localhost identified by 'xwikiPwd' 3. show databases
and I have changed the hibernate.cfg.xml file:
<property name="connection.url">jdbc:mysqlDB://localhost/xwiki?useServerPrepStmts=false&sessionVariables=sql_mode=''</property>
This is wrong. Try: <property name="connection.url">jdbc:mysql://localhost/xwikiDB?useServerPrepStmts=false&sessionVariables=sql_mode=''</property>
<property name="connection.username">xwikiUser</property> <property name="connection.password">xwikiPwd</property> <property name="connection.driver_class">com.mysql.jdbc.Driver</property> <property name="dialect">org.hibernate.dialect.MySQLDialect</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"/>
I restarted the server and when I want to view to XWiki HomePage it tells me that I have a server error, that I have an error in my hibernate.cfg.xml file. But I have modified this file as the tutorials say...
So, I installed the fully-featured wiki and it works and I looked at the configuration file and it is like I wrote. I don't want to instal the fully-featured wiki... so, what can I do?
-- Sergiu Dumitriu http://purl.org/net/sergiu/
It still doesn't work. It says that I have the same error... I don't understand why.... I have done this one month ago and it worked... but now I reinstalled Windows and it doesn't work.... By the way... I have Windows Vista now and last time when it worked I had XP... this may be the cause of my problem? Sergiu Dumitriu-2 wrote:
RoxanaM wrote:
Hy,
I want to instal manually Xwiki and I use Apache Tomcat 5.5 am MySQL Server 5.1. I created the database that Xwiki needs using the following commands:
1. create database xwikiDB 2. grant all privileges on xwikiDB.* to xwikiUser@localhost identified by 'xwikiPwd' 3. show databases
and I have changed the hibernate.cfg.xml file:
<property name="connection.url">jdbc:mysqlDB://localhost/xwiki?useServerPrepStmts=false&sessionVariables=sql_mode=''</property>
This is wrong. Try:
<property name="connection.url">jdbc:mysql://localhost/xwikiDB?useServerPrepStmts=false&sessionVariables=sql_mode=''</property>
<property name="connection.username">xwikiUser</property> <property name="connection.password">xwikiPwd</property> <property name="connection.driver_class">com.mysql.jdbc.Driver</property> <property name="dialect">org.hibernate.dialect.MySQLDialect</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"/>
I restarted the server and when I want to view to XWiki HomePage it tells me that I have a server error, that I have an error in my hibernate.cfg.xml file. But I have modified this file as the tutorials say...
So, I installed the fully-featured wiki and it works and I looked at the configuration file and it is like I wrote. I don't want to instal the fully-featured wiki... so, what can I do?
-- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- View this message in context: http://n2.nabble.com/Problems-configuring-XWiki-tp2513789p2513947.html Sent from the XWiki- Users mailing list archive at Nabble.com.
RoxanaM wrote:
It still doesn't work. It says that I have the same error... I don't understand why.... I have done this one month ago and it worked... but now I reinstalled Windows and it doesn't work.... By the way... I have Windows Vista now and last time when it worked I had XP... this may be the cause of my problem?
I restarted the server and when I want to view to XWiki HomePage it tells me that I have a server error, that I have an error in my hibernate.cfg.xml file. But I have modified this file as the tutorials say...
Can you send the exact error you get? -- Sergiu Dumitriu http://purl.org/net/sergiu/
HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3001 in 3: Cannot load class com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager from param xwiki.store.migration.manager.class Wrapped Exception: Error number 0 in 3: Exception while hibernate execute Wrapped Exception: Could not create a DBCP pool. There is an error in the hibernate configuration file, please review it. org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) javax.servlet.http.HttpServlet.service(HttpServlet.java:627) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:145) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:111) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295) com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112) root cause com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3001 in 3: Cannot load class com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager from param xwiki.store.migration.manager.class Wrapped Exception: Error number 0 in 3: Exception while hibernate execute Wrapped Exception: Could not create a DBCP pool. There is an error in the hibernate configuration file, please review it. com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:326) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:387) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:135) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) javax.servlet.http.HttpServlet.service(HttpServlet.java:627) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:145) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:111) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295) com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.27 logs. Sergiu Dumitriu-2 wrote:
RoxanaM wrote:
It still doesn't work. It says that I have the same error... I don't understand why.... I have done this one month ago and it worked... but now I reinstalled Windows and it doesn't work.... By the way... I have Windows Vista now and last time when it worked I had XP... this may be the cause of my problem?
I restarted the server and when I want to view to XWiki HomePage it tells me that I have a server error, that I have an error in my hibernate.cfg.xml file. But I have modified this file as the tutorials say...
Can you send the exact error you get?
-- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- View this message in context: http://n2.nabble.com/Problems-configuring-XWiki-tp2513789p2514015.html Sent from the XWiki- Users mailing list archive at Nabble.com.
RoxanaM wrote:
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.27 logs.
Can you check the full stack trace in the logs? XWiki has the bad habit of catching and throwing exceptions in several places, so the useful information is usually buried somewhere deep. A random guess, did you install the mysql connector jar? -- Sergiu Dumitriu http://purl.org/net/sergiu/
Thank you very much ! I haven't installed the mysql connector jar....... Sorry if I bother you with these questions... But now I have a new problem that I had it at the last xwiki installation too. I created a simple page where I put some simple text. When I want to export this page as pdf it tells me that I have this error: A problem occured while trying to process your request. Please contact the webmaster if this happens again. Detailed information: Error number 0 in 11: Uncaught exception Wrapped Exception: Java heap space com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception Wrapped Exception: Java heap space at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:241) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:627) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:145) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:111) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Unknown Source) Wrapped Exception: java.lang.OutOfMemoryError: Java heap space Sergiu Dumitriu-2 wrote:
RoxanaM wrote:
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.27 logs.
Can you check the full stack trace in the logs? XWiki has the bad habit of catching and throwing exceptions in several places, so the useful information is usually buried somewhere deep.
A random guess, did you install the mysql connector jar?
-- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- View this message in context: http://n2.nabble.com/Problems-configuring-XWiki-tp2513789p2521879.html Sent from the XWiki- Users mailing list archive at Nabble.com.
RoxanaM wrote:
Thank you very much ! I haven't installed the mysql connector jar.......
Sorry if I bother you with these questions... But now I have a new problem that I had it at the last xwiki installation too.
I created a simple page where I put some simple text. When I want to export this page as pdf it tells me that I have this error:
A problem occured while trying to process your request. Please contact the webmaster if this happens again.
Wrapped Exception:
java.lang.OutOfMemoryError: Java heap space
It means that you should give more memory to the JVM. If you're using tomcat, search in the configuration files for a property named CATALINA_OPTS and add -Xmx512m to it. -- Sergiu Dumitriu http://purl.org/net/sergiu/
participants (3)
-
RoxanaM -
Sergiu Dumitriu -
Thomas Mortagne