hi all! i have installed xwiki on my Linux machine. When I try to register an user I receive this error : HTTP ERROR 500 Problem accessing /xwiki/bin/register/XWiki/Register. Reason: Could not initialize class com.xpn.xwiki.web.RegisterAction Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.xpn.xwiki.web.RegisterAction at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at java.lang.Class.newInstance0(Class.java:372) at java.lang.Class.newInstance(Class.java:325) at org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:143) at org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcessor.java:292) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:230) 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:735) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:669) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1448) at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:121) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:368) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:488) at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:932) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:994) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:640) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Thread.java:722) why??? -- View this message in context: http://xwiki.475771.n2.nabble.com/Xwiki-RegisterAction-tp7588370.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi, On 12 Dec 2013 at 17:36:18, MaryJane (mgpardi@exis.it(mailto://mgpardi@exis.it)) wrote:
hi all! i have installed xwiki on my Linux machine. When I try to register an user I receive this error :
HTTP ERROR 500
Problem accessing /xwiki/bin/register/XWiki/Register. Reason:
Could not initialize class com.xpn.xwiki.web.RegisterAction Caused by:
java.lang.NoClassDefFoundError: Could not initialize class com.xpn.xwiki.web.RegisterAction
This means you XWiki installation is not correct and it’s missing some JARs in WEB-INF/lib. Specifically you’re missing the oldcore JAR. Please check your setup or let us know exactly what you did to install XWiki. Thanks -Vincent
hi! first thanks for the answer.. here the steps of my installation : 1 ) yum install httpd 2) rpm -ivh jdk-7u45-linux-x64.rpm 3) java -jar xwiki-enterprise-installer-generic-5.2.2-standard.jar 4) mv /usr/local/XWikiEnterprise5.2.2/ /etc/httpd/webapps 5) mv XWikiEnterprise5.2.2/ xwiki (change the name of directory) 6) download of OJDBC6.JAR in /etc/httpd/webapps/xwiki/webapps/WEB-INF/lib 7) creation of xwiki user.... 8) edit of WEB-INF/hibernate.cfg.xml 9) edit of /etc/httpd/webapps/xwiki/webapps/xwiki/WEB-INF/xwiki.cfg 10) import of xwiki-enterprise-ui-mainwiki-all-5.2.2.xar -- View this message in context: http://xwiki.475771.n2.nabble.com/Xwiki-RegisterAction-tp7588370p7588372.htm... Sent from the XWiki- Users mailing list archive at Nabble.com.
ANY IDEAS??? -- View this message in context: http://xwiki.475771.n2.nabble.com/Xwiki-RegisterAction-tp7588370p7588397.htm... Sent from the XWiki- Users mailing list archive at Nabble.com.
Do you always get this problem, even after trying to start XWiki several times? I got a similar problem once but it happened to me only once out of hundreds of xwiki starts. Can you 'ls WEB-INF/lib/*oldcore*.*’? Thanks -Vincent PS: I don’t use yum nor rpm so I may not be the best placed to answer. On 13 Dec 2013 at 09:37:04, MaryJane (mgpardi@exis.it) wrote: hi! first thanks for the answer.. here the steps of my installation : 1 ) yum install httpd 2) rpm -ivh jdk-7u45-linux-x64.rpm 3) java -jar xwiki-enterprise-installer-generic-5.2.2-standard.jar 4) mv /usr/local/XWikiEnterprise5.2.2/ /etc/httpd/webapps 5) mv XWikiEnterprise5.2.2/ xwiki (change the name of directory) 6) download of OJDBC6.JAR in /etc/httpd/webapps/xwiki/webapps/WEB-INF/lib 7) creation of xwiki user.... 8) edit of WEB-INF/hibernate.cfg.xml 9) edit of /etc/httpd/webapps/xwiki/webapps/xwiki/WEB-INF/xwiki.cfg 10) import of xwiki-enterprise-ui-mainwiki-all-5.2.2.xar
hi!... I solved the problem ... recording did not work because I called the start_xwiki.sh from a shell with the option 'Forward X11 Packets' . Once the options are cleared, the recording has started to work! anyway thanks for the help! -- View this message in context: http://xwiki.475771.n2.nabble.com/Xwiki-RegisterAction-tp7588370p7588404.htm... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi, I am having same problem as above. I am going the route of installing xwiki using the WAR file. I got this working without any problems on Windows and MacOS. On Linux, CentOS, the problem arose and I have tried the reinstallation many times. Checking if the *oldcore" jar file is missing the *RegisterAction" class, I tried: jar tvf xwiki-platform-legacy-oldcore-7.1-milestone-2.jar | grep RegisterAction which shows that the class is found. How can this issue be resolved? Thanks for your assistance. Wole -- View this message in context: http://xwiki.475771.n2.nabble.com/Xwiki-RegisterAction-tp7588370p7594924.htm... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi, I am having same problem as above. I am going the route of installing xwiki using the WAR file. I got this working without any problems on Windows and MacOS. On Linux, CentOS, the problem arose and I have tried the reinstallation many times. Checking if the *oldcore" jar file is missing the *RegisterAction" class, I tried: jar tvf xwiki-platform-legacy-oldcore-7.1-milestone-2.jar | grep RegisterAction which shows that the class is found. How can this issue be resolved? Thanks for your assistance. Wole -- View this message in context: http://xwiki.475771.n2.nabble.com/Xwiki-RegisterAction-tp7588370p7594939.htm... Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (3)
-
MaryJane -
vincent@massol.net -
woleadetiba