Hello Vincent,
Actually, I must apologize because I didn't try Maven shapshot after installing Linux, I just kept my settings from Windows and on Windows the snapshot didn't work (I was using 2.0.7 without a problem).
Thanks for your help.
Evelina
Hi,
I have started (and finished, somehow) work on
http://jira.xwiki.org/jira/browse/XWIKI-436 .
I am interested of more opinions on the problems vmassol reported, or
new problems that might raise.
Best regards,
Anca Luca
Hi Artem,
Done all that already. Yes, the profiles are
Active Profiles for Project 'com.xpn.xwiki.platform:xwiki-web-standard:pom:1.1-SNAPSHOT':
The following profiles are active:
- jettyrun (source: pom)
- xwiki (source: settings.xml)
I have maven 2.0.7 installed because last time I tried to install the snapshot it didn't work so...it was the only version that worked on windows...now i'm using linux, but kept the version....i don't know if this is the problem since everything builds fine.
The error from the browser:
HTTP ERROR: 500
Error number 3 in 0: Could not initialize main XWiki context
Wrapped Exception: null
RequestURI=/xwiki/bin/view/Main/WebHome
Caused by:
com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context
Wrapped Exception: null
at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:292)
at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:384)
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:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1098)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:406)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:295)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:827)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:511)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:361)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
Wrapped Exception:
java.lang.NullPointerException
at java.util.Properties$LineReader.readLine(Properties.java:418)
at java.util.Properties.load0(Properties.java:337)
at java.util.Properties.load(Properties.java:325)
at com.xpn.xwiki.XWikiConfig.loadConfig(XWikiConfig.java:56)
at com.xpn.xwiki.XWikiConfig.(XWikiConfig.java:51)
at com.xpn.xwiki.XWiki.(XWiki.java:568)
at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:283)
at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:384)
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:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1098)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:406)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:295)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:827)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:511)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:361)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
Powered by Jetty://
I am waiting for your answer. Thank you very much.
Evelina
So, on xwiki.org it's Spaces.
In the code, it's Webs.
And in the PanelWizard/PanelLayoutUpdate documents, it's Places.
Which one do we want? And whichever that one is, we should stick with it.
--
Waste of a good apple. --Samwise Gamgee
Hi everyone,
I felt that I needed to repeat these instructions about building
XWiki from sources:
1) The XWiki build works fine. Yes it does ;)
2) Whenever you think there's an issue check our CI at http://
teamcity.xwiki.org and if it works don't send an email saying the
build doesn't work. Instead refer to points 3 and 4.
3) If your build fails, it's likely that you haven't read the
documentation closely enough. Go read the Building page again.
4) It's likely your error is one of these 2 (in that case read the
building page again):
A) You're not using the correct version of Maven
B) You haven't defined the repos or the correct repos in your
settings.xml file
Thanks
-Vincent
Hi,
I change mysql url setting in xwiki-2.pom from
<xwiki.db.connection.url
>"jdbc:mysql://localhost/xwiki?useServerPrepStmts=false"</xwiki.db.connection.url>
to <xwiki.db.connection.url
>"jdbc:mysql://localhost/xwiki?useUnicode=true&useServerPrepStmts=false"</xwiki.db.connection.url>
then build 'xwiki-web-standard' by 'mvn install -Pxe,mysql ', get eror:
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
Project ID: unknown:xwiki-web-standard
POM Location:
E:\dev\xwiki\svnroot\xwiki-users\xwiki-platform-web\standard\pom.xml
Reason: Cannot read project model from interpolating filter of serialized
version.
I have build successfully before this modification.
Does pom file can not use the expression '&' ?
I created a PageLayout application in the CodeZone:
http://www.xwiki.org/xwiki/bin/view/Code/PageLayout
As I described to someone on the IRC channel awhile ago (probably Vincent,
as bothering him has become one of my favorite things to do.. :-P),
PageLayout is just a class with some variables, the idea being:
You a PageLayout object to a page, and then select, for that page only,
whether or not you want the left or right sidebars to display, whether or
not you want the collapsable comment/attachment boxes to display, and
which (if any) editor is required.
Some examples are in the description. Template mods are required to
support this, as the code doing the actual rendering has to figure out
what it should or shouldn't do. I included information about/examples of
the changes I had to make to support per-page layout changes.
Let me know what y'all think.
Erin
--
Waste of a good apple. --Samwise Gamgee
Yes, unfortunatelly is Maven 2.0.7 fault. It seems that the snapshot works fine on Linux and I am using it now.
Thanks for trying to help me (especially Sergiu, like always).
Hello all,
I downloaded today xwiki sources and buided with maven as it is described on community->building, the run mvn install -Pjettyrun (the command was changed recently...as far as I remember it was another one...) anyway, the server starts, and in browser at localhost:8080 I see XWiki home page, but when I try to go to it, I have the following error:
HTTP ERROR: 500
Error number 3 in 0: Could not initialize main XWiki context
Wrapped Exception: null
RequestURI=/xwiki/bin/view/Main/WebHome
Caused by:
com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context
Wrapped Exception: null
at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:292)
at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:384)
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:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1098)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:406)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:295)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:827)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:511)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:361)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
etc...
As far as I know, 500 is not a client-side error, so it must be produced by the jetty server. Any ideea how to fix this?
Thank you very much.
Evelina