Hi,
It's been a while since I've installed XWiki from scratch, and last time it was for Ubuntu 14 with 7.1.1. It looks like enough things have changed since then that I'm doing something wrong. I'd appreciate any help in diagnosing the problem.
This time I'm using Ubuntu 16.04.1 and Tomcat 8. I'm installing from the debian/Ubuntu xwiki-enterprise-tomcat8-pgsql package version 8.2.1, with Tomcat8 package 8.0.32-1ubuntu1.1. It's running (as before) via an AJP connector behind Apache2.
https://mysite/xwiki correctly redirects to https://mysite/xwiki/bin/view/Main/ so it looks like something is happening, but I'm getting an empty page. The following are the Catalina log entries (please excuse the length) from restarting tomcat onwards. My experience has been that one always gets some warnings, but my guess is that one or more of the following are resulting in pages failing to load.
22-Aug-2016 10:11:46.465 INFO [Thread-11] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["ajp-nio-8009"]
22-Aug-2016 10:11:46.471 INFO [Thread-11] org.apache.catalina.core.StandardService.stopInternal Stopping service Catalina
22-Aug-2016 10:11:46.536 SEVERE [Catalina-startStop-2] org.apache.catalina.core.ContainerBase.stopInternal A child container failed during stop
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to stop component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
at java.util.concurrent.FutureTask.report(java.base@9-internal/FutureTask.java:123)
at java.util.concurrent.FutureTask.get(java.base@9-internal/FutureTask.java:193)
at org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:972)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:224)
at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1424)
at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1413)
at java.util.concurrent.FutureTask.run(java.base@9-internal/FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@9-internal/ThreadPoolExecutor.java:1158)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@9-internal/ThreadPoolExecutor.java:632)
at java.lang.Thread.run(java.base@9-internal/Thread.java:804)
Caused by: org.apache.catalina.LifecycleException: Failed to stop component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:228)
... 6 more
Caused by: org.apache.catalina.LifecycleException: Failed to stop component [WebappLoader[]]
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:228)
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5517)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:224)
... 6 more
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make member of class sun.rmi.transport.Target accessible: module java.rmi does not export sun.rmi.transport to unnamed module @4abdb505
at sun.reflect.Reflection.throwInaccessibleObjectException(java.base@9-internal/Reflection.java:420)
at java.lang.reflect.AccessibleObject.checkCanSetAccessible(java.base@9-internal/AccessibleObject.java:174)
at java.lang.reflect.Field.checkCanSetAccessible(java.base@9-internal/Field.java:170)
at java.lang.reflect.Field.setAccessible(java.base@9-internal/Field.java:164)
at org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesRmiTargets(WebappClassLoaderBase.java:2234)
at org.apache.catalina.loader.WebappClassLoaderBase.clearReferences(WebappClassLoaderBase.java:1553)
at org.apache.catalina.loader.WebappClassLoaderBase.stop(WebappClassLoaderBase.java:1496)
at org.apache.catalina.loader.WebappLoader.stopInternal(WebappLoader.java:446)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:224)
... 8 more
22-Aug-2016 10:12:07.202 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/common/classes], exists: [false], isDirectory: [false], canRead: [false]
22-Aug-2016 10:12:07.262 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/common], exists: [false], isDirectory: [false], canRead: [false]
22-Aug-2016 10:12:07.271 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/server/classes], exists: [false], isDirectory: [false], canRead: [false]
22-Aug-2016 10:12:07.277 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/server], exists: [false], isDirectory: [false], canRead: [false]
22-Aug-2016 10:12:07.281 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/shared/classes], exists: [false], isDirectory: [false], canRead: [false]
22-Aug-2016 10:12:07.285 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/shared], exists: [false], isDirectory: [false], canRead: [false]
22-Aug-2016 10:12:08.760 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.0.32 (Ubuntu)
22-Aug-2016 10:12:08.763 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Jul 6 2016 11:49:29 UTC
22-Aug-2016 10:12:08.768 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.0.32.0
22-Aug-2016 10:12:08.770 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
22-Aug-2016 10:12:08.772 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 4.4.0-28-generic
22-Aug-2016 10:12:08.772 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
22-Aug-2016 10:12:08.776 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-9-openjdk-amd64
22-Aug-2016 10:12:08.779 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 9-internal+0-2016-04-14-195246.buildd.src
22-Aug-2016 10:12:08.780 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
22-Aug-2016 10:12:08.781 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /var/lib/tomcat8
22-Aug-2016 10:12:08.784 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /usr/share/tomcat8
22-Aug-2016 10:12:08.798 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/var/lib/tomcat8/conf/logging.properties
22-Aug-2016 10:12:08.801 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
22-Aug-2016 10:12:08.808 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.awt.headless=true
22-Aug-2016 10:12:08.812 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx1024m
22-Aug-2016 10:12:08.812 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:+UseConcMarkSweepGC
22-Aug-2016 10:12:08.813 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/var/lib/tomcat8
22-Aug-2016 10:12:08.814 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/share/tomcat8
22-Aug-2016 10:12:08.814 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/tmp/tomcat8-tomcat8-tmp
22-Aug-2016 10:12:08.823 SEVERE [main] org.apache.catalina.core.JreMemoryLeakPreventionListener.lifecycleEvent Failed to trigger creation of the GC Daemon thread during Tomcat start to prevent possible memory leaks. This is expected on non-Sun JVMs.
java.lang.ClassNotFoundException: sun.misc.GC
at java.net.URLClassLoader.findClass(java.base@9-internal/URLClassLoader.java:384)
at java.lang.ClassLoader.loadClass(java.base@9-internal/ClassLoader.java:486)
at java.lang.ClassLoader.loadClass(java.base@9-internal/ClassLoader.java:419)
at java.lang.Class.forName0(java.base@9-internal/Native Method)
at java.lang.Class.forName(java.base@9-internal/Class.java:294)
at org.apache.catalina.core.JreMemoryLeakPreventionListener.lifecycleEvent(JreMemoryLeakPreventionListener.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:394)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:99)
at org.apache.catalina.startup.Catalina.load(Catalina.java:580)
at org.apache.catalina.startup.Catalina.load(Catalina.java:603)
at sun.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:531)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:310)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:484)
22-Aug-2016 10:12:09.194 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
22-Aug-2016 10:12:09.241 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
22-Aug-2016 10:12:09.256 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1838 ms
22-Aug-2016 10:12:09.350 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
22-Aug-2016 10:12:09.352 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.32 (Ubuntu)
22-Aug-2016 10:12:09.389 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying configuration descriptor /etc/tomcat8/Catalina/localhost/xwiki.xml
22-Aug-2016 10:12:09.525 WARNING [localhost-startStop-1] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'allowLinking' to 'true' did not find a matching property.
22-Aug-2016 10:12:12.567 INFO [localhost-startStop-1] org.apache.catalina.loader.WebappLoader.buildClassPath Unknown loader jdk.internal.loader.ClassLoaders$AppClassLoader@5f150435 class jdk.internal.loader.ClassLoaders$AppClassLoader
22-Aug-2016 10:12:56.206 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
22-Aug-2016 10:13:31.784 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of configuration descriptor /etc/tomcat8/Catalina/localhost/xwiki.xml has finished in 82,375 ms
22-Aug-2016 10:13:31.791 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /var/lib/tomcat8/webapps/ROOT
22-Aug-2016 10:13:31.828 INFO [localhost-startStop-1] org.apache.catalina.loader.WebappLoader.buildClassPath Unknown loader jdk.internal.loader.ClassLoaders$AppClassLoader@5f150435 class jdk.internal.loader.ClassLoaders$AppClassLoader
22-Aug-2016 10:13:32.824 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
22-Aug-2016 10:13:32.836 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /var/lib/tomcat8/webapps/ROOT has finished in 1,045 ms
22-Aug-2016 10:13:32.849 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
22-Aug-2016 10:13:32.884 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 83627 ms
Visiting the page in my browser then gets a blank page, and there are no further entries in the log. Can anyone advise what might be the next step in resolving things?
Thanks,
Bryn
> I'm still struggling to get XWiki installed on Ubuntu 16.06 using theDebian
> packages. :-(
VICTORY!
sudo apt-get install openjdk-8-jre-headless
sudo apt-get remove openjdk-9-jre-headless
sudo service tomcat8 stop
sudo service tomcat8 start
Hi Everyone,
I installed google app extension. I can see for instance my document on the
drive.
But when i try to use it for login it doesn't work. The authentication
seems working on google but it redirect me to the login page. From there
the button "login with google" doesn't work.
Here is what i did:
my user in google is mathieu(a)rest-soln.com
I created a user in xwiki and the login is mathieu and this user is admin.
I read it on a website.
then i try to login with mathieu(a)rest-soln.com.
Then i redirect to this URL:
http://xxxx:8080/xwiki/bin/login/XWiki/XWikiLogin?srid=aZKKwbDe&xredirect=%…
do i need to do something else in xwiki? do you have documentation?
Thanks for your help,
[image: REST Solution Corporation] <http://www.rest-soln.com>
*Mathieu QUERE*
Co-Founder / Chief Executive Officer
Unit 205 Plaz@ B Northgate Cyberzone, Filinvest Corporate City,
Filinvest Avenue, Muntinlupa, Philippines 1781
*M: *+852 69025059
Follow us:
<https://www.linkedin.com/company/rest-solution>
<https://www.facebook.com/rest.soln>
This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be intercepted,
corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.
The sender therefore does not accept liability for any errors or omissions
in the contents of this message, which arise as a result of e-mail
transmission. If verification is required please request a hard-copy
version.
Sure any improvement to the documentation is welcome but I would probably
present this more as a special Debian Jessie step that somethings everyone
have to check (or maybe add this to a troubleshoot section for the others).
As you want.
Le 23 août 2016 17:05, "Eugen Colesnicov" <ecolesnicov(a)gmail.com> a écrit :
Thomas Mortagne wrote
> Actually looks like you have it in jessie-backports but it's probably
> not enabled by default.
Thomas, you are right. Need to edit /etc/apt/sources.list and add this line:
deb http://ftp.de.debian.org/debian jessie-backports main
After this openjdk-8-jdk will be installing without problem. But as I said,
for non-professional in linux - it is not so clearly :)
Maybe will reorganize InstallationViaAPT instruction?
(http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationViaAPT)
For example, can be possible to rename "second step" to "third step", "first
step" to "second step" and
add new "first step" with something like this:
... first step - you should install or check availability of openjdk-8-jdk
package. For example in Debian Jessie need to add jessie-backports to
repository sources-list ...
If you agree, I can do it.
--
View this message in context: http://xwiki.475771.n2.nabble.
com/Debian-installation-failed-tp7600759p7600805.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
We currently display an attached excel file on a wiki page using the office macro and syntax {{office filterStyles="false" reference="attach:MyFile.xlsx"/}}.
Instead we'd like to use the path of an file saved on our server, a working url for this is [[unc:\\serverhostname\folder\folder\MyFile.xlsx]]
However, {{office reference=" unc:\\serverhostname\folder\folder\MyFile.xlsx " filterStyles="false"/}} does not work (Failed to view office attachment).
The Office Macro documentation states: "The supported resources are URLs (url:) and attachments (attach:)."
Is there currently a way to use a file path with the office macro? I tried variants using url: but none of them worked.
Thank you.
Mario
I am trying to install xwiki on Debian 8.5 using Debian packages.
I made commands (according to instruction):
1) wget -q "http://maven.xwiki.org/public.gpg" -O- | apt-key add -
2) wget "http://maven.xwiki.org/stable/xwiki-stable.list" -P
/etc/apt/sources.list.d/
3) sudo apt-get update
4) apt-cache search xwiki - all ok, I see xwiki packages
When I trying to install -
5) apt-get install xwiki-enterprise-tomcat8-mysql
but result is:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
xwiki-enterprise-tomcat8-mysql : Depends: xwiki-enterprise-mysql-common (=
8.2.1) but it is not going to be installed
Depends: xwiki-enterprise-tomcat8-common (= 8.2.1) but it is not going to
be installed
E: Unable to correct problems, you have held broken packages.
What is the problem and how I can correct it?
--
View this message in context: http://xwiki.475771.n2.nabble.com/Debian-installation-failed-tp7600759.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi. I'm trying to customize permissions in xwiki
using ApplicationReadyEventListener.
I override some permission in XWikiPreferences XWikiGlobalRights page to
get page deletion work by default for all users.
https://gist.github.com/edvorg/4e2771ac02c4c64b705127964bc53c64
I set up permissions in these functions.
https://gist.github.com/edvorg/da7f8e64a46b7bbbf16f953e3fcc0e30
This solutions works fine. But I got a problem with fresh xwiki bootstrap.
Sometimes I get fully broken xwiki - all macros shows error. And I have
something about admin user not having permission to edit some page:
https://gist.github.com/edvorg/1bdec91e5483307696bc68841d2cb1d8
I tried to debug all this code but it doesn't make much sense to me. I only
found that this CacheChecker thing somehow affects the issue. Could someone
point me to possible issues in my solution and maybe describe how this
CacheChecker should be used? I would appreciate any help, as we can not get
rid of xwiki integration bugs for a long time. Thank you!
Hi folks,
I upgraded XWiki from 7.0.1 to 7.4.4 which went fine.
After checking everything is ok I ran the nested pages migration
application and noticed some things I have questions on:
1. After migrating my main wiki the heading "Wiki Home" was replaced by
"$services.localization.render('xe.home.title')". Sub wikis didn't have
this side effect. Maybe a bug in the migrator?
2. After migration I noticed that the spaces that were previously right
below Main stayed but are hidden now. In addition all spaces are now below
the node "XWiki Bereich" (German for "XWiki Space") as nested pages.
Creating new pages on the main page are placed right on the main page and
directly below the wiki node in the tree.
Example:
* Home / XWiki Space / Migrated Space / Sub docs
* Home / New Page / Sub docs
In the database they look like this:
* xwikidoc
** XWD_NAME: WebHome; XWD_TITLE: Migrated Space; XWD_PARENT: Main.WebHome;
XWD_WEB: Main.Migrated Space
** XWD_NAME: WebHome; XWD_TITLE: New Page; XWD_PARENT:
subwiki:Main.WebHome; XWD_WEB: New Page
* xwikispace (2 entries for the migrated space)
** XWS_REFERENCE: Migrated Space; XWS_NAME: Migrated Space; XWS_PARENT:
null; XWS_HIDDEN: 1
XWS_REFERENCE: Main.Migrated Space; XWS_NAME: Migrated Space;
XWS_PARENT: Main; XWS_HIDDEN: 0
** XWS_REFERENCE: New Page; XWS_NAME: New Page; XWS_PARENT: null;
XWS_HIDDEN: 0
I'd like to achieve a "sane" hierarchy which shows the migrated spaces
directly under the wiki node but before deleting anything or doing database
changes I'd like to know the community suggestions.
Thanks in advance for some hints.
Regards,
Dennis