[xwiki-users] PDF styling
Hi there, How does one go about changing the styling of the exported PDFs? Thanks, Nigel
Hi all, I successfully deployed a XWiki war on a Geronimo 2.1 server (without warning), configured with a hsqldb database. When launching the application, I get the following in the server logs : ========================= 11:23:20,411 WARN [RequestUtils] No FormBeanConfig found under 'view' 11:23:21,380 INFO [OSCacheService] Initializing OSCacheService 11:23:21,380 INFO [OSCacheService] Loading cache properties: oscache.properties 11:23:21,380 INFO [OSCacheService] Properties loaded: oscache.properties 11:23:21,380 INFO [OSCacheService] Loading cache properties: oscache-local.properties 11:23:21,380 INFO [OSCacheService] Properties loaded: oscache-local.properties 11:23:21,380 INFO [OSCacheService] Initialized OSCacheService 11:23:21,426 INFO [GeneralCacheAdministrator] Constructed GeneralCacheAdministrator() 11:23:21,426 INFO [GeneralCacheAdministrator] Creating new cache 11:23:21,458 INFO [OSCacheService] Created Cache # 1 of size 100 at lun., 3 mars 2008 11:23:21 +0100, current count is 1 11:23:21,458 INFO [GeneralCacheAdministrator] Constructed GeneralCacheAdministrator() 11:23:21,458 INFO [GeneralCacheAdministrator] Creating new cache 11:23:21,458 INFO [OSCacheService] Created Cache # 2 of size 10000 at lun., 3 mars 2008 11:23:21 +0100, current count is 2 11:23:21,520 INFO [XWiki] Running storage migrations 11:23:21,708 INFO [Environment] Hibernate 3.1.3 11:23:21,817 INFO [Environment] hibernate.properties not found 11:23:21,817 INFO [Environment] using CGLIB reflection optimizer 11:23:21,817 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling 11:23:22,192 INFO [Configuration] configuring from url: jndi:/0.0.0.0/xwiki/WEB-INF/hibernate.cfg.xml 11:23:22,567 INFO [Configuration] Reading mappings from resource: xwiki.hbm.xml 11:23:22,989 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiDocument -> xwikidoc 11:23:23,098 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.rcs.XWikiRCSNodeInfo -> xwikircs 11:23:23,098 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.rcs.XWikiRCSNodeContent -> xwikircs 11:23:23,176 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiDeletedDocument -> xwikirecyclebin 11:23:23,192 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiLock -> xwikilock 11:23:23,192 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiLink -> xwikilinks 11:23:23,192 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiAttachment -> xwikiattachment 11:23:23,192 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiAttachmentContent -> xwikiattachment_content 11:23:23,192 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiAttachmentArchive -> xwikiattachment_archive 11:23:23,192 INFO [HbmBinder] Mapping class: com.xpn.xwiki.objects.classes.PropertyClass -> xwikiclassesprop 11:23:23,317 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.NumberClass -> xwikinumberclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.StringClass -> xwikistringclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.DateClass -> xwikidateclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.PasswordClass -> xwikistringclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.TextAreaClass -> xwikistringclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.BooleanClass -> xwikibooleanclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.StaticListClass -> xwikislistclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.DBListClass -> xwikidblistclasses 11:23:23,333 INFO [HbmBinder] Mapping class: com.xpn.xwiki.objects.classes.BaseClass -> xwikiclasses 11:23:23,333 INFO [HbmBinder] Mapping class: com.xpn.xwiki.objects.BaseProperty -> xwikiproperties 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.IntegerProperty -> xwikiintegers 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.LongProperty -> xwikilongs 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.FloatProperty -> xwikifloats 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.DoubleProperty -> xwikidoubles 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.StringProperty -> xwikistrings 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.DateProperty -> xwikidates 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.LargeStringProperty -> xwikilargestrings 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.StringListProperty -> xwikilargestrings 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.DBStringListProperty -> xwikilists 11:23:23,348 INFO [HbmBinder] Mapping collection: com.xpn.xwiki.objects.DBStringListProperty.list -> xwikilistitems 11:23:23,348 INFO [HbmBinder] Mapping class: com.xpn.xwiki.objects.BaseObject -> xwikiobjects 11:23:23,364 INFO [HbmBinder] Mapping class: com.xpn.xwiki.stats.impl.DocumentStats -> xwikistatsdoc 11:23:23,364 INFO [HbmBinder] Mapping class: com.xpn.xwiki.stats.impl.RefererStats -> xwikistatsreferer 11:23:23,364 INFO [HbmBinder] Mapping class: com.xpn.xwiki.stats.impl.VisitStats -> xwikistatsvisit 11:23:23,364 INFO [HbmBinder] Mapping class: XWiki.XWikiPreferences -> xwikipreferences 11:23:23,364 INFO [HbmBinder] Mapping class: XWiki.XWikiComments -> xwikicomments 11:23:23,364 INFO [HbmBinder] Mapping class: com.xpn.xwiki.store.migration.XWikiDBVersion -> xwikidbversion 11:23:23,364 INFO [Configuration] Reading mappings from resource: feeds.hbm.xml 11:23:23,489 INFO [HbmBinder] Mapping class: XWiki.AggregatorURLClass -> feeds_aggregatorurl 11:23:23,489 INFO [HbmBinder] Mapping collection: XWiki.AggregatorURLClass.group -> feeds_aggregatorurlgroups 11:23:23,489 INFO [HbmBinder] Mapping class: XWiki.AggregatorGroupClass -> feeds_aggregatorgroup 11:23:23,489 INFO [HbmBinder] Mapping class: XWiki.KeywordClass -> feeds_keyword 11:23:23,489 INFO [HbmBinder] Mapping class: XWiki.FeedEntryClass -> feeds_feedentry 11:23:23,489 INFO [HbmBinder] Mapping collection: XWiki.FeedEntryClass.tags -> feeds_feedentrytags 11:23:23,489 INFO [Configuration] Configured SessionFactory: null 11:23:24,317 WARN [RequestProcessor] Unhandled Exception thrown: class com.xpn.xwiki.XWikiException 11:23:24,317 ERROR [[action]] Servlet.service() for servlet action threw exception com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 0 in 3: Exception while hibernate execute Wrapped Exception: java.util.HashSet cannot be cast to java.lang.String at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:250) at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:439) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:94) 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:693) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) 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.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56) at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:396) at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) (...) ========================= What can I do to make this work ? I already searched the archives, but did not find a solution. Thanks in advance. -- Cyril Delmas - Développeur d'applications Compagnie Générale d'Imagerie Numérique 55, route Jean Briaud 33693 Mérignac Cedex France Tél : +33 5 57 89 03 00 (standard) Tél : +33 5 57 89 03 05 (direct)
Hi Nigel, On Mar 3, 2008, at 7:57 AM, Nigel Smith wrote:
Hi there,
How does one go about changing the styling of the exported PDFs?
What do you want to change? Header/footer? content? For the content I'd guess you'll have to modify the xhtml2fo.xsl file in the xwiki core jar in your WEB-INF/lib directory. Thanks -Vincent
On Mar 3, 2008, at 1:50 PM, Vincent Massol wrote:
Hi Nigel,
On Mar 3, 2008, at 7:57 AM, Nigel Smith wrote:
Hi there,
How does one go about changing the styling of the exported PDFs?
What do you want to change?
Header/footer? content?
For the content I'd guess you'll have to modify the xhtml2fo.xsl file in the xwiki core jar in your WEB-INF/lib directory.
Would be nice if you could write a FAQ entry about this on xwiki.org if you succeed in doing what you want to achieve :) thanks -Vincent
Hi, What version of XWiki are you using? Thanks -Vincent On Mar 3, 2008, at 11:32 AM, Cyril wrote:
Hi all, I successfully deployed a XWiki war on a Geronimo 2.1 server (without warning), configured with a hsqldb database. When launching the application, I get the following in the server logs :
========================= 11:23:20,411 WARN [RequestUtils] No FormBeanConfig found under 'view' 11:23:21,380 INFO [OSCacheService] Initializing OSCacheService 11:23:21,380 INFO [OSCacheService] Loading cache properties: oscache.properties 11:23:21,380 INFO [OSCacheService] Properties loaded: oscache.properties 11:23:21,380 INFO [OSCacheService] Loading cache properties: oscache-local.properties 11:23:21,380 INFO [OSCacheService] Properties loaded: oscache-local.properties 11:23:21,380 INFO [OSCacheService] Initialized OSCacheService 11:23:21,426 INFO [GeneralCacheAdministrator] Constructed GeneralCacheAdministrator() 11:23:21,426 INFO [GeneralCacheAdministrator] Creating new cache 11:23:21,458 INFO [OSCacheService] Created Cache # 1 of size 100 at lun., 3 mars 2008 11:23:21 +0100, current count is 1 11:23:21,458 INFO [GeneralCacheAdministrator] Constructed GeneralCacheAdministrator() 11:23:21,458 INFO [GeneralCacheAdministrator] Creating new cache 11:23:21,458 INFO [OSCacheService] Created Cache # 2 of size 10000 at lun., 3 mars 2008 11:23:21 +0100, current count is 2 11:23:21,520 INFO [XWiki] Running storage migrations 11:23:21,708 INFO [Environment] Hibernate 3.1.3 11:23:21,817 INFO [Environment] hibernate.properties not found 11:23:21,817 INFO [Environment] using CGLIB reflection optimizer 11:23:21,817 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling 11:23:22,192 INFO [Configuration] configuring from url: jndi:/0.0.0.0/xwiki/WEB-INF/hibernate.cfg.xml 11:23:22,567 INFO [Configuration] Reading mappings from resource: xwiki.hbm.xml 11:23:22,989 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiDocument -> xwikidoc 11:23:23,098 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.rcs.XWikiRCSNodeInfo -> xwikircs 11:23:23,098 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.rcs.XWikiRCSNodeContent -> xwikircs 11:23:23,176 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiDeletedDocument -> xwikirecyclebin 11:23:23,192 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiLock -> xwikilock 11:23:23,192 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiLink -> xwikilinks 11:23:23,192 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiAttachment -> xwikiattachment 11:23:23,192 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiAttachmentContent -> xwikiattachment_content 11:23:23,192 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiAttachmentArchive -> xwikiattachment_archive 11:23:23,192 INFO [HbmBinder] Mapping class: com.xpn.xwiki.objects.classes.PropertyClass -> xwikiclassesprop 11:23:23,317 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.NumberClass -> xwikinumberclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.StringClass -> xwikistringclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.DateClass -> xwikidateclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.PasswordClass -> xwikistringclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.TextAreaClass -> xwikistringclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.BooleanClass -> xwikibooleanclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.StaticListClass -> xwikislistclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.DBListClass -> xwikidblistclasses 11:23:23,333 INFO [HbmBinder] Mapping class: com.xpn.xwiki.objects.classes.BaseClass -> xwikiclasses 11:23:23,333 INFO [HbmBinder] Mapping class: com.xpn.xwiki.objects.BaseProperty -> xwikiproperties 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.IntegerProperty -> xwikiintegers 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.LongProperty -> xwikilongs 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.FloatProperty -> xwikifloats 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.DoubleProperty -> xwikidoubles 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.StringProperty -> xwikistrings 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.DateProperty -> xwikidates 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.LargeStringProperty -> xwikilargestrings 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.StringListProperty -> xwikilargestrings 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.DBStringListProperty -> xwikilists 11:23:23,348 INFO [HbmBinder] Mapping collection: com.xpn.xwiki.objects.DBStringListProperty.list -> xwikilistitems 11:23:23,348 INFO [HbmBinder] Mapping class: com.xpn.xwiki.objects.BaseObject -> xwikiobjects 11:23:23,364 INFO [HbmBinder] Mapping class: com.xpn.xwiki.stats.impl.DocumentStats -> xwikistatsdoc 11:23:23,364 INFO [HbmBinder] Mapping class: com.xpn.xwiki.stats.impl.RefererStats -> xwikistatsreferer 11:23:23,364 INFO [HbmBinder] Mapping class: com.xpn.xwiki.stats.impl.VisitStats -> xwikistatsvisit 11:23:23,364 INFO [HbmBinder] Mapping class: XWiki.XWikiPreferences -> xwikipreferences 11:23:23,364 INFO [HbmBinder] Mapping class: XWiki.XWikiComments -> xwikicomments 11:23:23,364 INFO [HbmBinder] Mapping class: com.xpn.xwiki.store.migration.XWikiDBVersion -> xwikidbversion 11:23:23,364 INFO [Configuration] Reading mappings from resource: feeds.hbm.xml 11:23:23,489 INFO [HbmBinder] Mapping class: XWiki.AggregatorURLClass -> feeds_aggregatorurl 11:23:23,489 INFO [HbmBinder] Mapping collection: XWiki.AggregatorURLClass.group -> feeds_aggregatorurlgroups 11:23:23,489 INFO [HbmBinder] Mapping class: XWiki.AggregatorGroupClass -> feeds_aggregatorgroup 11:23:23,489 INFO [HbmBinder] Mapping class: XWiki.KeywordClass -> feeds_keyword 11:23:23,489 INFO [HbmBinder] Mapping class: XWiki.FeedEntryClass -> feeds_feedentry 11:23:23,489 INFO [HbmBinder] Mapping collection: XWiki.FeedEntryClass.tags -> feeds_feedentrytags 11:23:23,489 INFO [Configuration] Configured SessionFactory: null 11:23:24,317 WARN [RequestProcessor] Unhandled Exception thrown: class com.xpn.xwiki.XWikiException 11:23:24,317 ERROR [[action]] Servlet.service() for servlet action threw exception com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 0 in 3: Exception while hibernate execute Wrapped Exception: java.util.HashSet cannot be cast to java.lang.String at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:250) at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:439) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:94) 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:693) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) 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 .apache .catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 233) at org .apache .catalina.core.StandardContextValve.invoke(StandardContextValve.java: 175) at org .apache .geronimo .tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56) at org.apache.geronimo.tomcat.GeronimoStandardContext $SystemMethodValve.invoke(GeronimoStandardContext.java:396) at org .apache .geronimo .tomcat .valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java: 47) at org .apache .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org .apache .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org .apache .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 109) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: 563) at org .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 263) at org .apache.coyote.http11.Http11Processor.process(Http11Processor.java: 844) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:584) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: 447) at java.lang.Thread.run(Thread.java:619)
(...)
========================= What can I do to make this work ? I already searched the archives, but did not find a solution. Thanks in advance.
-- Cyril Delmas - Développeur d'applications
Compagnie Générale d'Imagerie Numérique 55, route Jean Briaud 33693 Mérignac Cedex France
Tél : +33 5 57 89 03 00 (standard) Tél : +33 5 57 89 03 05 (direct)
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
I'm using version 1.2.6932 (found in version.properties :)). Vincent Massol a écrit :
Hi,
What version of XWiki are you using?
Thanks -Vincent
On Mar 3, 2008, at 11:32 AM, Cyril wrote:
Hi all, I successfully deployed a XWiki war on a Geronimo 2.1 server (without warning), configured with a hsqldb database. When launching the application, I get the following in the server logs :
========================= 11:23:20,411 WARN [RequestUtils] No FormBeanConfig found under 'view' 11:23:21,380 INFO [OSCacheService] Initializing OSCacheService 11:23:21,380 INFO [OSCacheService] Loading cache properties: oscache.properties 11:23:21,380 INFO [OSCacheService] Properties loaded: oscache.properties 11:23:21,380 INFO [OSCacheService] Loading cache properties: oscache-local.properties 11:23:21,380 INFO [OSCacheService] Properties loaded: oscache-local.properties 11:23:21,380 INFO [OSCacheService] Initialized OSCacheService 11:23:21,426 INFO [GeneralCacheAdministrator] Constructed GeneralCacheAdministrator() 11:23:21,426 INFO [GeneralCacheAdministrator] Creating new cache 11:23:21,458 INFO [OSCacheService] Created Cache # 1 of size 100 at lun., 3 mars 2008 11:23:21 +0100, current count is 1 11:23:21,458 INFO [GeneralCacheAdministrator] Constructed GeneralCacheAdministrator() 11:23:21,458 INFO [GeneralCacheAdministrator] Creating new cache 11:23:21,458 INFO [OSCacheService] Created Cache # 2 of size 10000 at lun., 3 mars 2008 11:23:21 +0100, current count is 2 11:23:21,520 INFO [XWiki] Running storage migrations 11:23:21,708 INFO [Environment] Hibernate 3.1.3 11:23:21,817 INFO [Environment] hibernate.properties not found 11:23:21,817 INFO [Environment] using CGLIB reflection optimizer 11:23:21,817 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling 11:23:22,192 INFO [Configuration] configuring from url: jndi:/0.0.0.0/xwiki/WEB-INF/hibernate.cfg.xml 11:23:22,567 INFO [Configuration] Reading mappings from resource: xwiki.hbm.xml 11:23:22,989 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiDocument -> xwikidoc 11:23:23,098 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.rcs.XWikiRCSNodeInfo -> xwikircs 11:23:23,098 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.rcs.XWikiRCSNodeContent -> xwikircs 11:23:23,176 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiDeletedDocument -> xwikirecyclebin 11:23:23,192 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiLock -> xwikilock 11:23:23,192 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiLink -> xwikilinks 11:23:23,192 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiAttachment -> xwikiattachment 11:23:23,192 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiAttachmentContent -> xwikiattachment_content 11:23:23,192 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiAttachmentArchive -> xwikiattachment_archive 11:23:23,192 INFO [HbmBinder] Mapping class: com.xpn.xwiki.objects.classes.PropertyClass -> xwikiclassesprop 11:23:23,317 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.NumberClass -> xwikinumberclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.StringClass -> xwikistringclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.DateClass -> xwikidateclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.PasswordClass -> xwikistringclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.TextAreaClass -> xwikistringclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.BooleanClass -> xwikibooleanclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.StaticListClass -> xwikislistclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.DBListClass -> xwikidblistclasses 11:23:23,333 INFO [HbmBinder] Mapping class: com.xpn.xwiki.objects.classes.BaseClass -> xwikiclasses 11:23:23,333 INFO [HbmBinder] Mapping class: com.xpn.xwiki.objects.BaseProperty -> xwikiproperties 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.IntegerProperty -> xwikiintegers 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.LongProperty -> xwikilongs 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.FloatProperty -> xwikifloats 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.DoubleProperty -> xwikidoubles 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.StringProperty -> xwikistrings 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.DateProperty -> xwikidates 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.LargeStringProperty -> xwikilargestrings 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.StringListProperty -> xwikilargestrings 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.DBStringListProperty -> xwikilists 11:23:23,348 INFO [HbmBinder] Mapping collection: com.xpn.xwiki.objects.DBStringListProperty.list -> xwikilistitems 11:23:23,348 INFO [HbmBinder] Mapping class: com.xpn.xwiki.objects.BaseObject -> xwikiobjects 11:23:23,364 INFO [HbmBinder] Mapping class: com.xpn.xwiki.stats.impl.DocumentStats -> xwikistatsdoc 11:23:23,364 INFO [HbmBinder] Mapping class: com.xpn.xwiki.stats.impl.RefererStats -> xwikistatsreferer 11:23:23,364 INFO [HbmBinder] Mapping class: com.xpn.xwiki.stats.impl.VisitStats -> xwikistatsvisit 11:23:23,364 INFO [HbmBinder] Mapping class: XWiki.XWikiPreferences -> xwikipreferences 11:23:23,364 INFO [HbmBinder] Mapping class: XWiki.XWikiComments -> xwikicomments 11:23:23,364 INFO [HbmBinder] Mapping class: com.xpn.xwiki.store.migration.XWikiDBVersion -> xwikidbversion 11:23:23,364 INFO [Configuration] Reading mappings from resource: feeds.hbm.xml 11:23:23,489 INFO [HbmBinder] Mapping class: XWiki.AggregatorURLClass -> feeds_aggregatorurl 11:23:23,489 INFO [HbmBinder] Mapping collection: XWiki.AggregatorURLClass.group -> feeds_aggregatorurlgroups 11:23:23,489 INFO [HbmBinder] Mapping class: XWiki.AggregatorGroupClass -> feeds_aggregatorgroup 11:23:23,489 INFO [HbmBinder] Mapping class: XWiki.KeywordClass -> feeds_keyword 11:23:23,489 INFO [HbmBinder] Mapping class: XWiki.FeedEntryClass -> feeds_feedentry 11:23:23,489 INFO [HbmBinder] Mapping collection: XWiki.FeedEntryClass.tags -> feeds_feedentrytags 11:23:23,489 INFO [Configuration] Configured SessionFactory: null 11:23:24,317 WARN [RequestProcessor] Unhandled Exception thrown: class com.xpn.xwiki.XWikiException 11:23:24,317 ERROR [[action]] Servlet.service() for servlet action threw exception com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 0 in 3: Exception while hibernate execute Wrapped Exception: java.util.HashSet cannot be cast to java.lang.String at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:250) at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:439) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:94) 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:693) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) 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 .apache .catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 233) at org .apache .catalina.core.StandardContextValve.invoke(StandardContextValve.java: 175) at org .apache .geronimo .tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56) at org.apache.geronimo.tomcat.GeronimoStandardContext $SystemMethodValve.invoke(GeronimoStandardContext.java:396) at org .apache .geronimo .tomcat .valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java: 47) at org .apache .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org .apache .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org .apache .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 109) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: 563) at org .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 263) at org .apache.coyote.http11.Http11Processor.process(Http11Processor.java: 844) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:584) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: 447) at java.lang.Thread.run(Thread.java:619)
(...)
========================= What can I do to make this work ? I already searched the archives, but did not find a solution. Thanks in advance.
-- Cyril Delmas - Développeur d'applications
Compagnie Générale d'Imagerie Numérique 55, route Jean Briaud 33693 Mérignac Cedex France
Tél : +33 5 57 89 03 00 (standard) Tél : +33 5 57 89 03 05 (direct)
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Cyril Delmas - Développeur d'applications Compagnie Générale d'Imagerie Numérique 55, route Jean Briaud 33693 Mérignac Cedex France Tél : +33 5 57 89 03 00 (standard) Tél : +33 5 57 89 03 05 (direct)
Hi, On Mar 3, 2008, at 3:16 PM, Cyril wrote:
I'm using version 1.2.6932 (found in version.properties :)).
ok, it's hard to read your stack trace below. Could you please paste the error on http://rafb.net/paste or in a text file that you attach to the mail in reply. Make sure to paste the whole stack tracE. Thanks -Vincent
Vincent Massol a écrit :
Hi,
What version of XWiki are you using?
Thanks -Vincent
On Mar 3, 2008, at 11:32 AM, Cyril wrote:
Hi all, I successfully deployed a XWiki war on a Geronimo 2.1 server (without warning), configured with a hsqldb database. When launching the application, I get the following in the server logs :
========================= 11:23:20,411 WARN [RequestUtils] No FormBeanConfig found under 'view' 11:23:21,380 INFO [OSCacheService] Initializing OSCacheService 11:23:21,380 INFO [OSCacheService] Loading cache properties: oscache.properties 11:23:21,380 INFO [OSCacheService] Properties loaded: oscache.properties 11:23:21,380 INFO [OSCacheService] Loading cache properties: oscache-local.properties 11:23:21,380 INFO [OSCacheService] Properties loaded: oscache-local.properties 11:23:21,380 INFO [OSCacheService] Initialized OSCacheService 11:23:21,426 INFO [GeneralCacheAdministrator] Constructed GeneralCacheAdministrator() 11:23:21,426 INFO [GeneralCacheAdministrator] Creating new cache 11:23:21,458 INFO [OSCacheService] Created Cache # 1 of size 100 at lun., 3 mars 2008 11:23:21 +0100, current count is 1 11:23:21,458 INFO [GeneralCacheAdministrator] Constructed GeneralCacheAdministrator() 11:23:21,458 INFO [GeneralCacheAdministrator] Creating new cache 11:23:21,458 INFO [OSCacheService] Created Cache # 2 of size 10000 at lun., 3 mars 2008 11:23:21 +0100, current count is 2 11:23:21,520 INFO [XWiki] Running storage migrations 11:23:21,708 INFO [Environment] Hibernate 3.1.3 11:23:21,817 INFO [Environment] hibernate.properties not found 11:23:21,817 INFO [Environment] using CGLIB reflection optimizer 11:23:21,817 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling 11:23:22,192 INFO [Configuration] configuring from url: jndi:/0.0.0.0/xwiki/WEB-INF/hibernate.cfg.xml 11:23:22,567 INFO [Configuration] Reading mappings from resource: xwiki.hbm.xml 11:23:22,989 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiDocument -> xwikidoc 11:23:23,098 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.rcs.XWikiRCSNodeInfo -> xwikircs 11:23:23,098 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.rcs.XWikiRCSNodeContent -> xwikircs 11:23:23,176 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiDeletedDocument -> xwikirecyclebin 11:23:23,192 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiLock -> xwikilock 11:23:23,192 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiLink -> xwikilinks 11:23:23,192 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiAttachment -> xwikiattachment 11:23:23,192 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiAttachmentContent -> xwikiattachment_content 11:23:23,192 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiAttachmentArchive -> xwikiattachment_archive 11:23:23,192 INFO [HbmBinder] Mapping class: com.xpn.xwiki.objects.classes.PropertyClass -> xwikiclassesprop 11:23:23,317 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.NumberClass -> xwikinumberclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.StringClass -> xwikistringclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.DateClass -> xwikidateclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.PasswordClass -> xwikistringclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.TextAreaClass -> xwikistringclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.BooleanClass -> xwikibooleanclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.StaticListClass -> xwikislistclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.DBListClass -> xwikidblistclasses 11:23:23,333 INFO [HbmBinder] Mapping class: com.xpn.xwiki.objects.classes.BaseClass -> xwikiclasses 11:23:23,333 INFO [HbmBinder] Mapping class: com.xpn.xwiki.objects.BaseProperty -> xwikiproperties 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.IntegerProperty -> xwikiintegers 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.LongProperty -> xwikilongs 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.FloatProperty -> xwikifloats 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.DoubleProperty -> xwikidoubles 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.StringProperty -> xwikistrings 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.DateProperty -> xwikidates 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.LargeStringProperty -> xwikilargestrings 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.StringListProperty -> xwikilargestrings 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.DBStringListProperty -> xwikilists 11:23:23,348 INFO [HbmBinder] Mapping collection: com.xpn.xwiki.objects.DBStringListProperty.list -> xwikilistitems 11:23:23,348 INFO [HbmBinder] Mapping class: com.xpn.xwiki.objects.BaseObject -> xwikiobjects 11:23:23,364 INFO [HbmBinder] Mapping class: com.xpn.xwiki.stats.impl.DocumentStats -> xwikistatsdoc 11:23:23,364 INFO [HbmBinder] Mapping class: com.xpn.xwiki.stats.impl.RefererStats -> xwikistatsreferer 11:23:23,364 INFO [HbmBinder] Mapping class: com.xpn.xwiki.stats.impl.VisitStats -> xwikistatsvisit 11:23:23,364 INFO [HbmBinder] Mapping class: XWiki.XWikiPreferences -> xwikipreferences 11:23:23,364 INFO [HbmBinder] Mapping class: XWiki.XWikiComments -> xwikicomments 11:23:23,364 INFO [HbmBinder] Mapping class: com.xpn.xwiki.store.migration.XWikiDBVersion -> xwikidbversion 11:23:23,364 INFO [Configuration] Reading mappings from resource: feeds.hbm.xml 11:23:23,489 INFO [HbmBinder] Mapping class: XWiki.AggregatorURLClass -> feeds_aggregatorurl 11:23:23,489 INFO [HbmBinder] Mapping collection: XWiki.AggregatorURLClass.group -> feeds_aggregatorurlgroups 11:23:23,489 INFO [HbmBinder] Mapping class: XWiki.AggregatorGroupClass -> feeds_aggregatorgroup 11:23:23,489 INFO [HbmBinder] Mapping class: XWiki.KeywordClass -> feeds_keyword 11:23:23,489 INFO [HbmBinder] Mapping class: XWiki.FeedEntryClass -> feeds_feedentry 11:23:23,489 INFO [HbmBinder] Mapping collection: XWiki.FeedEntryClass.tags -> feeds_feedentrytags 11:23:23,489 INFO [Configuration] Configured SessionFactory: null 11:23:24,317 WARN [RequestProcessor] Unhandled Exception thrown: class com.xpn.xwiki.XWikiException 11:23:24,317 ERROR [[action]] Servlet.service() for servlet action threw exception com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 0 in 3: Exception while hibernate execute Wrapped Exception: java.util.HashSet cannot be cast to java.lang.String at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:250) at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:439) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:94) 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:693) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) 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 .apache .catalina .core.StandardWrapperValve.invoke(StandardWrapperValve.java: 233) at org .apache .catalina .core.StandardContextValve.invoke(StandardContextValve.java: 175) at org .apache .geronimo .tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java: 56) at org.apache.geronimo.tomcat.GeronimoStandardContext $SystemMethodValve.invoke(GeronimoStandardContext.java:396) at org .apache .geronimo .tomcat .valve .GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java: 47) at org .apache .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org .apache .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org .apache .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 109) at org .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: 563) at org .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 263) at org .apache.coyote.http11.Http11Processor.process(Http11Processor.java: 844) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:584) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: 447) at java.lang.Thread.run(Thread.java:619)
(...)
========================= What can I do to make this work ? I already searched the archives, but did not find a solution. Thanks in advance.
-- Cyril Delmas - Développeur d'applications
Compagnie Générale d'Imagerie Numérique 55, route Jean Briaud 33693 Mérignac Cedex France
Tél : +33 5 57 89 03 00 (standard) Tél : +33 5 57 89 03 05 (direct)
Done : http://rafb.net/p/dMEc7y97.html Note : this log appear only when I try to run the app, ie entering the url in my web browser. Vincent Massol a écrit :
Hi,
On Mar 3, 2008, at 3:16 PM, Cyril wrote:
I'm using version 1.2.6932 (found in version.properties :)).
ok, it's hard to read your stack trace below.
Could you please paste the error on http://rafb.net/paste or in a text file that you attach to the mail in reply. Make sure to paste the whole stack tracE.
Thanks -Vincent
Vincent Massol a écrit :
Hi,
What version of XWiki are you using?
Thanks -Vincent
On Mar 3, 2008, at 11:32 AM, Cyril wrote:
Hi all, I successfully deployed a XWiki war on a Geronimo 2.1 server (without warning), configured with a hsqldb database. When launching the application, I get the following in the server logs :
========================= 11:23:20,411 WARN [RequestUtils] No FormBeanConfig found under 'view' 11:23:21,380 INFO [OSCacheService] Initializing OSCacheService 11:23:21,380 INFO [OSCacheService] Loading cache properties: oscache.properties 11:23:21,380 INFO [OSCacheService] Properties loaded: oscache.properties 11:23:21,380 INFO [OSCacheService] Loading cache properties: oscache-local.properties 11:23:21,380 INFO [OSCacheService] Properties loaded: oscache-local.properties 11:23:21,380 INFO [OSCacheService] Initialized OSCacheService 11:23:21,426 INFO [GeneralCacheAdministrator] Constructed GeneralCacheAdministrator() 11:23:21,426 INFO [GeneralCacheAdministrator] Creating new cache 11:23:21,458 INFO [OSCacheService] Created Cache # 1 of size 100 at lun., 3 mars 2008 11:23:21 +0100, current count is 1 11:23:21,458 INFO [GeneralCacheAdministrator] Constructed GeneralCacheAdministrator() 11:23:21,458 INFO [GeneralCacheAdministrator] Creating new cache 11:23:21,458 INFO [OSCacheService] Created Cache # 2 of size 10000 at lun., 3 mars 2008 11:23:21 +0100, current count is 2 11:23:21,520 INFO [XWiki] Running storage migrations 11:23:21,708 INFO [Environment] Hibernate 3.1.3 11:23:21,817 INFO [Environment] hibernate.properties not found 11:23:21,817 INFO [Environment] using CGLIB reflection optimizer 11:23:21,817 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling 11:23:22,192 INFO [Configuration] configuring from url: jndi:/0.0.0.0/xwiki/WEB-INF/hibernate.cfg.xml 11:23:22,567 INFO [Configuration] Reading mappings from resource: xwiki.hbm.xml 11:23:22,989 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiDocument -> xwikidoc 11:23:23,098 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.rcs.XWikiRCSNodeInfo -> xwikircs 11:23:23,098 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.rcs.XWikiRCSNodeContent -> xwikircs 11:23:23,176 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiDeletedDocument -> xwikirecyclebin 11:23:23,192 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiLock -> xwikilock 11:23:23,192 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiLink -> xwikilinks 11:23:23,192 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiAttachment -> xwikiattachment 11:23:23,192 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiAttachmentContent -> xwikiattachment_content 11:23:23,192 INFO [HbmBinder] Mapping class: com.xpn.xwiki.doc.XWikiAttachmentArchive -> xwikiattachment_archive 11:23:23,192 INFO [HbmBinder] Mapping class: com.xpn.xwiki.objects.classes.PropertyClass -> xwikiclassesprop 11:23:23,317 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.NumberClass -> xwikinumberclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.StringClass -> xwikistringclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.DateClass -> xwikidateclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.PasswordClass -> xwikistringclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.TextAreaClass -> xwikistringclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.BooleanClass -> xwikibooleanclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.StaticListClass -> xwikislistclasses 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.classes.DBListClass -> xwikidblistclasses 11:23:23,333 INFO [HbmBinder] Mapping class: com.xpn.xwiki.objects.classes.BaseClass -> xwikiclasses 11:23:23,333 INFO [HbmBinder] Mapping class: com.xpn.xwiki.objects.BaseProperty -> xwikiproperties 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.IntegerProperty -> xwikiintegers 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.LongProperty -> xwikilongs 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.FloatProperty -> xwikifloats 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.DoubleProperty -> xwikidoubles 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.StringProperty -> xwikistrings 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.DateProperty -> xwikidates 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.LargeStringProperty -> xwikilargestrings 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.StringListProperty -> xwikilargestrings 11:23:23,333 INFO [HbmBinder] Mapping joined-subclass: com.xpn.xwiki.objects.DBStringListProperty -> xwikilists 11:23:23,348 INFO [HbmBinder] Mapping collection: com.xpn.xwiki.objects.DBStringListProperty.list -> xwikilistitems 11:23:23,348 INFO [HbmBinder] Mapping class: com.xpn.xwiki.objects.BaseObject -> xwikiobjects 11:23:23,364 INFO [HbmBinder] Mapping class: com.xpn.xwiki.stats.impl.DocumentStats -> xwikistatsdoc 11:23:23,364 INFO [HbmBinder] Mapping class: com.xpn.xwiki.stats.impl.RefererStats -> xwikistatsreferer 11:23:23,364 INFO [HbmBinder] Mapping class: com.xpn.xwiki.stats.impl.VisitStats -> xwikistatsvisit 11:23:23,364 INFO [HbmBinder] Mapping class: XWiki.XWikiPreferences -> xwikipreferences 11:23:23,364 INFO [HbmBinder] Mapping class: XWiki.XWikiComments -> xwikicomments 11:23:23,364 INFO [HbmBinder] Mapping class: com.xpn.xwiki.store.migration.XWikiDBVersion -> xwikidbversion 11:23:23,364 INFO [Configuration] Reading mappings from resource: feeds.hbm.xml 11:23:23,489 INFO [HbmBinder] Mapping class: XWiki.AggregatorURLClass -> feeds_aggregatorurl 11:23:23,489 INFO [HbmBinder] Mapping collection: XWiki.AggregatorURLClass.group -> feeds_aggregatorurlgroups 11:23:23,489 INFO [HbmBinder] Mapping class: XWiki.AggregatorGroupClass -> feeds_aggregatorgroup 11:23:23,489 INFO [HbmBinder] Mapping class: XWiki.KeywordClass -> feeds_keyword 11:23:23,489 INFO [HbmBinder] Mapping class: XWiki.FeedEntryClass -> feeds_feedentry 11:23:23,489 INFO [HbmBinder] Mapping collection: XWiki.FeedEntryClass.tags -> feeds_feedentrytags 11:23:23,489 INFO [Configuration] Configured SessionFactory: null 11:23:24,317 WARN [RequestProcessor] Unhandled Exception thrown: class com.xpn.xwiki.XWikiException 11:23:24,317 ERROR [[action]] Servlet.service() for servlet action threw exception com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 0 in 3: Exception while hibernate execute Wrapped Exception: java.util.HashSet cannot be cast to java.lang.String at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:250) at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:439) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:94) 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:693) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) 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 .apache .catalina .core.StandardWrapperValve.invoke(StandardWrapperValve.java: 233) at org .apache .catalina .core.StandardContextValve.invoke(StandardContextValve.java: 175) at org .apache .geronimo .tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java: 56) at org.apache.geronimo.tomcat.GeronimoStandardContext $SystemMethodValve.invoke(GeronimoStandardContext.java:396) at org .apache .geronimo .tomcat .valve .GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java: 47) at org .apache .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org .apache .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org .apache .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 109) at org .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: 563) at org .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 263) at org .apache.coyote.http11.Http11Processor.process(Http11Processor.java: 844) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:584) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: 447) at java.lang.Thread.run(Thread.java:619)
(...)
========================= What can I do to make this work ? I already searched the archives, but did not find a solution. Thanks in advance.
-- Cyril Delmas - Développeur d'applications
Compagnie Générale d'Imagerie Numérique 55, route Jean Briaud 33693 Mérignac Cedex France
Tél : +33 5 57 89 03 00 (standard) Tél : +33 5 57 89 03 05 (direct)
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Cyril Delmas - Développeur d'applications Compagnie Générale d'Imagerie Numérique 55, route Jean Briaud 33693 Mérignac Cedex France Tél : +33 5 57 89 03 00 (standard) Tél : +33 5 57 89 03 05 (direct)
This seems to be a hibernate error. See http://opensource.atlassian.com/projects/hibernate/browse/HHH-1762 In the XWiki 1.2 installation notes it is recommended to upgrade to Hibernate 3.2.5.ga (although it is recommended only for Oracle). Please upgrade and check if the error is still happening. Cyril wrote:
Done : http://rafb.net/p/dMEc7y97.html Note : this log appear only when I try to run the app, ie entering the url in my web browser.
Vincent Massol a écrit :
Hi,
On Mar 3, 2008, at 3:16 PM, Cyril wrote:
I'm using version 1.2.6932 (found in version.properties :)).
ok, it's hard to read your stack trace below.
Could you please paste the error on http://rafb.net/paste or in a text file that you attach to the mail in reply. Make sure to paste the whole stack tracE.
Thanks -Vincent
Vincent Massol a écrit :
Hi,
What version of XWiki are you using?
Thanks -Vincent
On Mar 3, 2008, at 11:32 AM, Cyril wrote:
Hi all, I successfully deployed a XWiki war on a Geronimo 2.1 server (without warning), configured with a hsqldb database. When launching the application, I get the following in the server logs :
[snip]
========================= What can I do to make this work ? I already searched the archives, but did not find a solution. Thanks in advance.
-- Sergiu Dumitriu http://purl.org/net/sergiu/
I changed the hibernate jar to 3.2.6.ga and it does work. I just get some warnings during execution : 09:29:32,419 WARN [RequestUtils] No FormBeanConfig found under 'login' 09:29:45,154 WARN [RequestUtils] No FormBeanConfig found under 'loginsubmit' 09:30:16,672 WARN [Parameters] Parameters: Invalid chunk ignored. 09:30:20,063 WARN [RequestUtils] No FormBeanConfig found under 'download' 09:30:21,751 WARN [RequestUtils] No FormBeanConfig found under 'skin' 09:30:46,440 WARN [RequestUtils] No FormBeanConfig found under 'view' Is it a normal behavior ? I've never seen them before (I was running xwiki on a Tomcat container). Thanks for all. Sergiu Dumitriu a écrit :
This seems to be a hibernate error. See http://opensource.atlassian.com/projects/hibernate/browse/HHH-1762
In the XWiki 1.2 installation notes it is recommended to upgrade to Hibernate 3.2.5.ga (although it is recommended only for Oracle).
Please upgrade and check if the error is still happening.
Cyril wrote:
Done : http://rafb.net/p/dMEc7y97.html Note : this log appear only when I try to run the app, ie entering the url in my web browser.
Vincent Massol a écrit :
Hi,
On Mar 3, 2008, at 3:16 PM, Cyril wrote:
I'm using version 1.2.6932 (found in version.properties :)).
ok, it's hard to read your stack trace below.
Could you please paste the error on http://rafb.net/paste or in a text file that you attach to the mail in reply. Make sure to paste the whole stack tracE.
Thanks -Vincent
Vincent Massol a écrit :
Hi,
What version of XWiki are you using?
Thanks -Vincent
On Mar 3, 2008, at 11:32 AM, Cyril wrote:
Hi all, I successfully deployed a XWiki war on a Geronimo 2.1 server (without warning), configured with a hsqldb database. When launching the application, I get the following in the server logs :
[snip]
========================= What can I do to make this work ? I already searched the archives, but did not find a solution. Thanks in advance.
On Mar 4, 2008, at 9:36 AM, Cyril wrote:
I changed the hibernate jar to 3.2.6.ga and it does work. I just get some warnings during execution :
09:29:32,419 WARN [RequestUtils] No FormBeanConfig found under 'login' 09:29:45,154 WARN [RequestUtils] No FormBeanConfig found under 'loginsubmit' 09:30:16,672 WARN [Parameters] Parameters: Invalid chunk ignored. 09:30:20,063 WARN [RequestUtils] No FormBeanConfig found under 'download' 09:30:21,751 WARN [RequestUtils] No FormBeanConfig found under 'skin' 09:30:46,440 WARN [RequestUtils] No FormBeanConfig found under 'view'
Is it a normal behavior ? I've never seen them before (I was running xwiki on a Tomcat container). Thanks for all.
yes I think it's normal. Probably some errors in our struts config but nothing to worry about. -Vincent
Sergiu Dumitriu a écrit :
This seems to be a hibernate error. See http://opensource.atlassian.com/projects/hibernate/browse/HHH-1762
In the XWiki 1.2 installation notes it is recommended to upgrade to Hibernate 3.2.5.ga (although it is recommended only for Oracle).
Please upgrade and check if the error is still happening.
Cyril wrote:
Done : http://rafb.net/p/dMEc7y97.html Note : this log appear only when I try to run the app, ie entering the url in my web browser.
Vincent Massol a écrit :
Hi,
On Mar 3, 2008, at 3:16 PM, Cyril wrote:
I'm using version 1.2.6932 (found in version.properties :)).
ok, it's hard to read your stack trace below.
Could you please paste the error on http://rafb.net/paste or in a text file that you attach to the mail in reply. Make sure to paste the whole stack tracE.
Thanks -Vincent
Vincent Massol a écrit :
Hi,
What version of XWiki are you using?
Thanks -Vincent
On Mar 3, 2008, at 11:32 AM, Cyril wrote:
> Hi all, > I successfully deployed a XWiki war on a Geronimo 2.1 server > (without > warning), configured with a hsqldb database. When launching the > application, I get the following in the server logs : > > [snip]
> ========================= > What can I do to make this work ? I already searched the > archives, > but > did not find a solution. > Thanks in advance. > >
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Vincent Massol wrote:
On Mar 4, 2008, at 9:36 AM, Cyril wrote:
I changed the hibernate jar to 3.2.6.ga and it does work. I just get some warnings during execution :
09:29:32,419 WARN [RequestUtils] No FormBeanConfig found under 'login' 09:29:45,154 WARN [RequestUtils] No FormBeanConfig found under 'loginsubmit' 09:30:16,672 WARN [Parameters] Parameters: Invalid chunk ignored. 09:30:20,063 WARN [RequestUtils] No FormBeanConfig found under 'download' 09:30:21,751 WARN [RequestUtils] No FormBeanConfig found under 'skin' 09:30:46,440 WARN [RequestUtils] No FormBeanConfig found under 'view'
Is it a normal behavior ? I've never seen them before (I was running xwiki on a Tomcat container). Thanks for all.
yes I think it's normal. Probably some errors in our struts config but nothing to worry about.
We don't need form beans for some actions, as they are only used for simple GET. And it seems that some containers warn about this. Nothing serious, though, it is normal this way.
-Vincent
Sergiu Dumitriu a écrit :
This seems to be a hibernate error. See http://opensource.atlassian.com/projects/hibernate/browse/HHH-1762
In the XWiki 1.2 installation notes it is recommended to upgrade to Hibernate 3.2.5.ga (although it is recommended only for Oracle).
Please upgrade and check if the error is still happening.
Cyril wrote:
Done : http://rafb.net/p/dMEc7y97.html Note : this log appear only when I try to run the app, ie entering the url in my web browser.
Vincent Massol a écrit :
Hi,
On Mar 3, 2008, at 3:16 PM, Cyril wrote:
I'm using version 1.2.6932 (found in version.properties :)).
ok, it's hard to read your stack trace below.
Could you please paste the error on http://rafb.net/paste or in a text file that you attach to the mail in reply. Make sure to paste the whole stack tracE.
Thanks -Vincent
Vincent Massol a écrit :
> Hi, > > What version of XWiki are you using? > > Thanks > -Vincent > > On Mar 3, 2008, at 11:32 AM, Cyril wrote: > > > > >> Hi all, >> I successfully deployed a XWiki war on a Geronimo 2.1 server >> (without >> warning), configured with a hsqldb database. When launching the >> application, I get the following in the server logs : >> >> [snip]
>> ========================= >> What can I do to make this work ? I already searched the archives, >> but >> did not find a solution. >> Thanks in advance. >> >>
-- Sergiu Dumitriu http://purl.org/net/sergiu/
Hi, vmassol wrote:
For the content I'd guess you'll have to modify the xhtml2fo.xsl file in the xwiki core jar in your WEB-INF/lib directory.
Please, does Export to RTF use the same xhtml2fo.xsl file? I do need to export several XWiki documents to a format editable by Word and I am facing some problems in the process. See following... There are no space before and after most heading levels (this doesn't happen while exporting to PDF)... http://mire.environmentalchange.net/~webmaster/images/ToRtfHeading.png There is no space between the header and the first paragraph, above and below images and images don't fit in the page: they are aligned to the left and the output is at 100% width and height... http://mire.environmentalchange.net/~webmaster/images/ToRtfHeader.png Please, coudl you/anybody outline the export-to-PDF/RTF processes in XWiki to try to find the right way of dealing with these issues? Thank you so much, Ricardo -- View this message in context: http://www.nabble.com/PDF-styling-tp15798886p15950779.html Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (5)
-
[Ricardo Rodríguez] -
Cyril -
Nigel Smith -
Sergiu Dumitriu -
Vincent Massol