[xwiki-users] XWiki 1.8 using JBoss 4.2.3GA Datasource Problems
Hi Setting the configuration for the classloaders for Tomcat on JBoss I was finally able to use the JBoss Datasource but now I am encountering a ton of errors like this: 3:01:38,707 INFO [LucenePlugin] lucene plugin initialized. 13:01:38,946 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started. 13:01:38,966 INFO [DefaultLoadEventListener] Error performing load command org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.xpn.xwiki.objects.classes.BaseClass#-629142642] at org.hibernate.impl.SessionFactoryImpl$1.handleEntityNotFound(SessionFactoryImpl.java:377) at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:145) at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:195) at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:103) at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878) at org.hibernate.impl.SessionImpl.load(SessionImpl.java:784) at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiClass(XWikiHibernateStore.java:1422) at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:669) at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:209) at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1335) at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1375) at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.restoreExistingJobs(SchedulerPlugin.java:265) at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.init(SchedulerPlugin.java:130) at com.xpn.xwiki.plugin.XWikiPluginManager.initPlugin(XWikiPluginManager.java:155) at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugin(XWikiPluginManager.java:92) at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugins(XWikiPluginManager.java:120) at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:1019) at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:740) at com.xpn.xwiki.XWiki.<init>(XWiki.java:668) at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:316) at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:387) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:135) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115) When I tried to login then I see: 13:05:56,306 INFO [XWikiRightServiceImpl] Access has been denied for (XWiki.XWikiGuest,Sandbox.WebHome,comment): global level (restricting right was found) 13:05:58,499 WARN [RequestUtils] No FormBeanConfig found under 'login' 13:05:58,511 INFO [DefaultLoadEventListener] Error performing load command org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.xpn.xwiki.doc.XWikiDocument#487349671] at org.hibernate.impl.SessionFactoryImpl$1.handleEntityNotFound(SessionFactoryImpl.java:377) at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:145) at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:195) at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:103) at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878) The Wiki seems to work fine but these errors make me nervous. What are these errors and why are they thrown. These errors do not show up when using the Hibernate connections. -Andy -- View this message in context: http://n2.nabble.com/XWiki-1.8-using-JBoss-4.2.3GA-Datasource-Problems-tp251... Sent from the XWiki- Users mailing list archive at Nabble.com.
Andreas Schaefer wrote:
Hi
Setting the configuration for the classloaders for Tomcat on JBoss I was finally able to use the JBoss Datasource but now I am encountering a ton of errors like this:
These messages are at a lower logging priority. Did you manually adjust the log4j.properties file? And they look normal, meaning that the wiki does not have to pre-create documents. You can "get" (load) any document, existing or not. An empty object is created, and it is filled with data from the database, if any is found. These logs just indicate that no such data was found.
When I tried to login then I see:
13:05:56,306 INFO [XWikiRightServiceImpl] Access has been denied for (XWiki.XWikiGuest,Sandbox.WebHome,comment): global level (restricting right was found)
This is not a message caused by your login attempt. Somebody tried to comment on a document. If your wiki is publicly accessible, then you should be careful with spambots, always protect your wiki and regularly check for spam.
13:05:58,499 WARN [RequestUtils] No FormBeanConfig found under 'login'
This is another log that's "normal" for XWiki and which is hidden by our default log4j configuration. Either this file is not picked up, or you deliberately changed it.
The Wiki seems to work fine but these errors make me nervous. What are these errors and why are they thrown. These errors do not show up when using the Hibernate connections.
They appear simply because the logging has a different configuration. Most of these errors appear because they are thrown by code that was written several years ago, when the libraries we are using had different best practices which are now discouraged, and we didn't have the time to update our code, so we just hid these errors from our logging configuration. -- Sergiu Dumitriu http://purl.org/net/sergiu/
participants (2)
-
Andreas Schaefer -
Sergiu Dumitriu