ic. In the standalone distribution, the hibernate.cfg.xml is updated, but
it's not the case for the war distribution that I am using. (in fact, i've
double checked before I sent my last message! :-) )

Regards,
mingfai

On Tue, Apr 8, 2008 at 6:10 PM, Jerome Velociter <[EMAIL PROTECTED]> wrote:

> > It works like a charm! No more exception. Thank you very much! :-)
> >
> > Looks like the default hibernate.cfg.xml should be updated.
>
> In fact it is already in XWS default hibernate.cfg.xml now (since M2). You
> may have erased it instead of merging when you moved your configuration
> from M1.
>
> Regards,
> Jerome
>
> >
> > Regards,
> > mingfai
> >
> > On Tue, Apr 8, 2008 at 4:52 PM, Jerome Velociter <[EMAIL PROTECTED]>
> wrote:
> >
> >> Try adding the following line under your database configuration :
> >>
> >> <mapping resource="activitystream.hbm.xml"/>
> >>
> >> Jerome.
> >>
> >> > not really. I run a brand new 1.0m2. My database is re-created. the
> >> whole
> >> > application is new and I manually move configuration to the new war.
> >> Only
> >> > JBoss configurations such as data source configuration are preserved.
> >> if
> >> > no
> >> > one has idea, I may try to use the default hsql database to isolate
> >> the
> >> > problem.
> >> >
> >> > regards,
> >> > mingfai
> >> >
> >> > On Tue, Apr 8, 2008 at 3:50 PM, Jerome Velociter <[EMAIL PROTECTED]>
> >> wrote:
> >> >
> >> >> > hi,
> >> >>
> >> >> Hello,
> >> >>
> >> >> >
> >> >> > Whenever I do any update activity (e.g. creating a space, editing
> >> any
> >> >> page
> >> >> > etc), there is an exception thrown on screen and the update
> >> operation
> >> >> is
> >> >> > successful and I could see that if I reload the page. There was no
> >> >> such
> >> >> > problem in XWS 1.0m1 and I can't tell if it's a problem with my
> >> >> > environment
> >> >> >
> >> >> > I use: Sun JDK 1.6.0_04 (64-bit), JBoss 4.2.2, PostgreSQL 8.3. I
> >> tried
> >> >> to
> >> >> > change from local to XA data source and there is no difference.
> The
> >> >> full
> >> >> > stacktrace is attached at the bottom. Looks like ActivityEventImpl
> >> is
> >> >> > missing? I've loaded everything from the XWS 1.0m2 xar. Any idea?
> >> >>
> >> >> If I understand correctly, you tried to upgrade a XWS 1.0m1 to
> 1.0m2,
> >> is
> >> >> that right ? If it is, installing the XAR is not enough. You can
> >> refer
> >> >> to
> >> >> the upgrading section of the releases notes
> >> >> (http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesWorkspaces10M2
> ).
> >> >> In your case the hibernate mapping for activity events (introduced
> in
> >> >> the
> >> >> milestone 2) is missing in your hibernate conf. You can read
> >> >> http://code.xwiki.org/xwiki/bin/view/Plugins/ActivityStreamPlugin to
> >> >> properly install the plugin.
> >> >>
> >> >> Regards,
> >> >> Jerome
> >> >>
> >> >> >
> >> >> > Regards,
> >> >> > mingfai
> >> >> >
> >> >> >
> >> >> > *hibernate configuration:*
> >> >> >     <property
> >> >> > name="connection.datasource">java:jdbc/hkjug-xwiki</property>
> >> >> >     <property
> >> >> > name="dialect">org.hibernate.dialect.PostgreSQLDialect</property>
> >> >> >     <mapping resource="xwiki.hbm.xml"/>
> >> >> >     <mapping resource="feeds.hbm.xml"/>
> >> >> >
> >> >> > *stacktrace*
> >> >> > 15:42:09,897 INFO  [STDOUT] 2008-04-08 15:42:09,892 [
> >> >> > http://MY_HOST/bin/save/hkjug/WebHome] [ajp-MY_HOST-8009-3] WARN
> >> >> > web.XWikiAction                 - Uncaught exception: Error number
> >> 0
> >> >> in
> >> >> > 11:
> >> >> > Uncaught exception
> >> >> > Wrapped Exception: Unknown entity:
> >> >> > com.xpn.xwiki.plugin.activitystream.impl.ActivityEventImpl
> >> >> > com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught
> >> exception
> >> >> > Wrapped Exception: Unknown entity:
> >> >> > com.xpn.xwiki.plugin.activitystream.impl.ActivityEventImpl
> >> >> >         at
> >> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:223)
> >> >> >         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.doPost(ActionServlet.java:432)
> >> >> >         at
> >> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> >> >> >         at
> >> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >> >> >         at
> >> >> >
> >> >>
> >>
> com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
> >> >> >         at
> >> >> > org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:366)
> >> >> >         at
> >> >> >
> >> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
> >> >> >         at java.lang.Thread.run(Thread.java:619)
> >> >> >
> >> >> >
> >> >> > Wrapped Exception:
> >> >> >
> >> >> >
> >> >> > org.hibernate.MappingException: Unknown entity:
> >> >> > com.xpn.xwiki.plugin.activitystream.impl.ActivityEventImpl
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:550)
> >> >> >         at
> >> >> >
> >>
> org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1338)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:98)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
> >> >> >         at
> >> >> org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:535)
> >> >> >         at
> >> org.hibernate.impl.SessionImpl.save(SessionImpl.java:523)
> >> >> >         at
> >> org.hibernate.impl.SessionImpl.save(SessionImpl.java:519)
> >> >> >         at
> >> >> >
> >> >>
> >>
> com.xpn.xwiki.plugin.activitystream.impl.ActivityStreamImpl.addActivityEvent(ActivityStreamImpl.java:140)
> >> >> >         at
> >> >> >
> >> >>
> >>
> com.xpn.xwiki.plugin.workspacesmanager.activities.WorkspacesActivityStream.notify(WorkspacesActivityStream.java:132)
> >> >> >         at
> >> >> > com.xpn.xwiki.notify.DocChangeRule.verify(DocChangeRule.java:61)
> >> >> >         at
> >> >> >
> >> >>
> >>
> com.xpn.xwiki.notify.XWikiNotificationManager.verify(XWikiNotificationManager.java:146)
> >> >> >         at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1085)
> >> >> >         at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:120)
> >> >> >         at
> com.xpn.xwiki.web.SaveAction.action(SaveAction.java:129)
> >> >> >         at
> >> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:197)
> >> >> >         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.doPost(ActionServlet.java:432)
> >> >> >         at
> >> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> >> >> >         at
> >> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >> >> >         at
> >> >> >
> >> >>
> >>
> com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
> >> >> >         at
> >> >> > org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
> >> >> >         at
> >> >> >
> >> >>
> >>
> org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:366)
> >> >> >         at
> >> >> >
> >> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
> >> >> >         at java.lang.Thread.run(Thread.java:619)
> >> >> > _______________________________________________
> >> >> > users mailing list
> >> >> > [email protected]
> >> >> > http://lists.xwiki.org/mailman/listinfo/users
> >> >> >
> >> >>
> >> >>
> >> >> _______________________________________________
> >> >> users mailing list
> >> >> [email protected]
> >> >> http://lists.xwiki.org/mailman/listinfo/users
> >> >>
> >> > _______________________________________________
> >> > users mailing list
> >> > [email protected]
> >> > http://lists.xwiki.org/mailman/listinfo/users
> >> >
> >>
> >>
> >> _______________________________________________
> >> users mailing list
> >> [email protected]
> >> http://lists.xwiki.org/mailman/listinfo/users
> >>
> > _______________________________________________
> > users mailing list
> > [email protected]
> > http://lists.xwiki.org/mailman/listinfo/users
> >
>
>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to