Hello!
I am trying to install XWiki on a weblogic server in combination with mysql. However I
always get an Error 500 in the Browser. In the admin log of the oracle domain the
following error is written:
####<06.04.2011 17:03 Uhr MESZ> <Error> <HTTP> <ntas1>
<AdminServer> <[ACTIVE] ExecuteThread: '8' for queue:
'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <>
<61e95e7340cb5d5a:f20d7c0:12ed576d9fd:-8000-000000000000053e> <1302102210137>
<BEA-101017> <[ServletContext@59713337[app:xwiki-enterprise-web-2
module:xwiki-enterprise-web-2.7.1 path:/xwiki-enterprise-web-2.7.1 spec-version:2.5]] Root
cause of ServletException.
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: Errors in named queries: listGroupsForUser,
listGroupsForUserInOtherWiki
at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:417)
at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:486)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:137)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:117)
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:1198)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:416)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)
at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:130)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:69)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:218)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:113)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at
weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
In the XWiki the follwoing error is written:
2011-04-06 17:03:30,137
[
http://dev.nettania.at:80/xwiki-enterprise-web-2.7.1/bin/view/Main/] ERROR
impl.SessionFactoryImpl - Error in named query: listGroupsForUserInOtherWiki
org.hibernate.QueryException: dereferenced: stringprop2_.id.id [
select distinct doc.fullName from com.xpn.xwiki.doc.XWikiDocument as doc,
com.xpn.xwiki.objects.BaseObject as obj, com.xpn.xwiki.objects.StringProperty as prop
where obj.name = doc.fullName
and obj.className='XWiki.XWikiGroups'
and obj.id = prop.id.id and prop.id.name='member'
and prop.value=:prefixedmembername
]
at
org.hibernate.hql.classic.PathExpressionParser.token(PathExpressionParser.java:167)
at
org.hibernate.hql.classic.WhereParser.doPathExpression(WhereParser.java:347)
at org.hibernate.hql.classic.WhereParser.doToken(WhereParser.java:382)
at org.hibernate.hql.classic.WhereParser.token(WhereParser.java:263)
at org.hibernate.hql.classic.ClauseParser.token(ClauseParser.java:86)
at
org.hibernate.hql.classic.PreprocessingParser.token(PreprocessingParser.java:108)
at org.hibernate.hql.classic.ParserHelper.parse(ParserHelper.java:28)
at
org.hibernate.hql.classic.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:216)
at
org.hibernate.hql.classic.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:185)
at
org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:77)
at
org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:57)
at
org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72)
at
org.hibernate.impl.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:402)
at
org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:352)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1300)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.initHibernate(XWikiHibernateBaseStore.java:166)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate(XWikiHibernateBaseStore.java:562)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:1073)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.executeRead(XWikiHibernateBaseStore.java:1117)
at
com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager.getDBVersion(XWikiHibernateMigrationManager.java:68)
at
com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager.<init>(AbstractXWikiMigrationManager.java:68)
at
com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager.<init>(XWikiHibernateMigrationManager.java:52)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.xpn.xwiki.XWiki.createClassFromConfig(XWiki.java:1148)
at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:828)
at com.xpn.xwiki.XWiki.<init>(XWiki.java:772)
at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:398)
at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:486)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:137)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:117)
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:1198)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:416)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)
at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:130)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:69)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:218)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:113)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at
weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
2011-04-06 17:03:30,137
[
http://dev.nettania.at:80/xwiki-enterprise-web-2.7.1/bin/view/Main/] WARN
action.RequestProcessor - Unhandled Exception thrown: class
com.xpn.xwiki.XWikiException
How can I fix this, I already tried a lot, but there seems a serious problem with the db
mapping, however I am using a lot of own jav webapplication with hibernate on the server
and I never got any problems. Adding the follwoing line to the hibernate.cfg.xml does not
solve the problem:
<property
name="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property
Thanks,
Florian