>
> On Nov 9, 2007, at 5:56 PM, pentaho(a)fsck.ch wrote:
>
>>> Hi David,
>>>
>>> All tables are created automatically, you just need to create the
>>> correct empty shema/database (by default "xwiki").
>>
>> For MSSQL to work I had to create my own xwiki.hbm.xml, the default
>> one
>> didn't work.
>
> would be nice if you could contribute it.
Of course, here it is. I actually wanted to provide a complete patch, but
I couldn't yet figure out how put the changes to hibernate.cfg.xml into
the source. Here's what I added manually:
<!-- MSSQL configuration -->
<property
name="connection.url">jdbc:jtds:sqlserver://some.sql-swerver.com:1433/XWiki;tds=8.0;lastupdatecount=true</property>
<property name="connection.username">xwikiuser</property>
<property name="connection.password">xwikipassword</property>
<property
name="connection.driver_class">net.sourceforge.jtds.jdbc.Driver</property>
<property name="dialect">org.hibernate.dialect.SQLServerDialect</property>
<mapping resource="xwiki.mssql.hbm.xml"/>
<mapping resource="feeds.hbm.xml"/>
If you commit this, please send me note with the revision number.
Thanks,
Tobias
> Hi David,
>
> All tables are created automatically, you just need to create the
> correct empty shema/database (by default "xwiki").
For MSSQL to work I had to create my own xwiki.hbm.xml, the default one
didn't work.
Cheers,
Tobias
A second question: according to hibernate.cfg.xml, database objects (tables) will be created automatically, at least for some databases.
Is this database-dependent; that is, do some databases require the tables to be manually created? If so, where can i obtain the .sql files which define the xwiki data model?
i was quite surprised to find no .sql files in the .jar i downloaded.
Thanks,
david bessire
_________________________________________________________________
Peek-a-boo FREE Tricks & Treats for You!
http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us
Hello.
Attempting to install Xwiki in a Websphere / SQLServer environment. Websphere supports only Java1.4.2, but exo apparently requires Java 1.5. Even with xwiki.exo=0 in xwiki.cfg, i still get the exception:
>> java.lang.UnsupportedClassVersionError: org/exoplatform/container/ >> PortalContainer (Unsupported major.minor version 49.0)
which in a previous mailing list discussion Vincent says is caused by running under 1.4. Is there any way to run xwiki without relying on exo, which i don't need?
In the previous discussion i mentioned, Vincent suggested removing the exo libraries; this predictably generates a NoClassDefFoundError on startup.
i don't think xwiki is fundamentally incompatible with WebSphere, as there are websphere installation instructions posted on xwiki.org.
Thanks,
david bessire
_________________________________________________________________
Climb to the top of the charts! Play Star Shuffle: the word scramble challenge with star power.
http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct
Hi
When I build the xwiki 1.1 branch myself, I cannot undeploy or shutdown
JBoss normally anymore. This does noty happen if I use a binary download.
Any idea what might be wrong? Thanks.
15:00:27,254 ERROR [STDERR] 03:00:27.254 WARN - Invalid feed URL:
15:00:41,878 INFO [Server] Runtime shutdown hook called, forceHalt: true
15:00:41,878 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
15:00:41,878 INFO [TomcatDeployer] undeploy,
ctxPath=/xwiki,warUrl=.../tmp/dep
loy/tmp38404xwiki-web-standard-1.1-SNAPSHOT-exp.war/
15:00:43,956 ERROR [STDERR] Exception in thread "AWT-Windows"
15:00:43,956 ERROR [STDERR] java.lang.IllegalStateException: Shutdown in
progress
15:00:43,956 ERROR [STDERR] at
java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:39)
15:00:43,956 ERROR [STDERR] at
java.lang.Runtime.addShutdownHook(Runtime.java:192)
15:00:43,956 ERROR [STDERR] at
sun.awt.windows.WToolkit.run(WToolkit.java:276)
15:00:43,956 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)
Hi all,
I'm using that function to send e-mail from a page inside the wiki: I
ditn't get any error message, but the mail is not sent (even if I set
the parameters in the preference page).
Any idea? Thanks!
Vito
--
Vitantonio Messa
+358 46 889 48 49 - vitantonio.messa(a)coss.fi
COSS - The Finnish Centre for Open Source Solutions
@ Technology Centre Hermia Ltd.
Hermiankatu 1, FIN-33720 Tampere, FINLAND
Hi,
Has anyone experienced this problem or does anyone know what could be wrong when creating classes? I need to create 2 classes 1 for a virtual instance and 1 for a second blog in my xwiki. I'm getting this error which I am posting at the bottom.
Thank you in advance,
Tim
Error number 4001 in 4: Error while parsing velocity page XWiki.BlogArticle
Wrapped Exception: Invocation of method 'substring' in class java.lang.String threw exception java.lang.StringIndexOutOfBoundsException: String index out of range: -1 @ XWiki.BlogArticle4,26? <https://wmail.wssu.edu/exchweb/bin/redir.asp?URL=https://wmail.wssu.edu/xwi…>
com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing velocity page XWiki.BlogArticle
Wrapped Exception: Invocation of method 'substring' in class java.lang.String threw exception java.lang.StringIndexOutOfBoundsException: String index out of range: -1 @ XWiki.BlogArticle4,26? <https://wmail.wssu.edu/exchweb/bin/redir.asp?URL=https://wmail.wssu.edu/xwi…>
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:148)
at com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:91)
at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:222)
at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:154)
at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:125)
at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:117)
at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:401)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:347)
at sun.reflect.GeneratedMethodAccessor165.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:240)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:143)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1275)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1244)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:552)
at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:240)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:143)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1275)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1244)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:94)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:157)
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:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
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:174)
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:151)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
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.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(Unknown Source)
at sun.reflect.GeneratedMethodAccessor148.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:419)
at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:73)
at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:125)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:240)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:143)
at com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:91)
at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:222)
at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:154)
at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:125)
at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:117)
at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:401)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:347)
at sun.reflect.GeneratedMethodAccessor165.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:240)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:143)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1275)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1244)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:552)
at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:240)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:143)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1275)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1244)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:94)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:157)
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:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
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:174)
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:151)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
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)
Hi...
I tried use $xwiki.getUser to get the current user's name but I got a value
like this 'com.xpn.xwiki.api.User@13095c7'.
So, I looked into the API doc and used getLocalUser() but it does not work.
This is the syntax that I used -
#set($user = $xwiki.getLocalUser())
$user
What is wrong here ? It had given me an output for getUser().
Harikrishnan
--
View this message in context: http://www.nabble.com/using-getLocalUser%28%29-tf4763863.html#a13624781
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi
I am attempting to build XWiki from source with the end goal of using a
debugger on it and face the following problem:
After a successful build with maven, when I deploy the war archive and
browse to xwiki, I get the following error:
javax.servlet.ServletException: 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: Hibernate Dialect must be explicitly set
After deployment, I then edited hibernate.cfg.xml in the deployed war and
added a datasource for an xwiki database, and this made the error
disappear.
Now, I would like to do this at "compile time" already, so that a default
hypersonic database is used, and that xwiki works right after building and
deploying the war, without any manual intervention needed after building.
I hope it's more or less clear what I want... Thanks.