problems when trying to update cyclos from 4.13 to 4.14.4 - java.io.FileNotFoundException content index

Bug and problem reporting on Cyclos 4 version

Moderators: hugo, alexandre, rmvanarkel

Post Reply
canoodle
Posts: 12
Joined: Sun Feb 04, 2018 8:33 pm

problems when trying to update cyclos from 4.13 to 4.14.4 - java.io.FileNotFoundException content index

Post by canoodle »

Hello,

this is a test server, those tomcat examples work fine...

https://domain.com/examples/servlets/

when trying to update cyclos from 4.13 to 4.14.4

Code: Select all

VERSION=4.14.4
rm -rf /opt/tomcat/webapps/ROOT/*
cp -rv /software/cyclos-$VERSION/cyclos/* /opt/tomcat/webapps/ROOT/
tomcat throws this fatal error:

Code: Select all

    Caused by: java.io.FileNotFoundException: The requested resource [/content/index] is not available
# the full log

Code: Select all

==> /var/log/httpd/access.log <==
xxx.xxx.xxx.xxx - - [10/Feb/2021:16:01:15 +0100] "GET / HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10-Feb-2021 16:01:16.511 SEVERE [http-nio-8080-exec-5] org.apache.catalina.core.ApplicationDispatcher.invoke Servlet.service() for servlet [default] threw exception
    java.io.FileNotFoundException: The requested resource [/content/index] is not available
        at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:852)
        at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:504)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
        at org.apache.catalina.servlets.DefaultServlet.service(DefaultServlet.java:484)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:64)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:728)
        at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:591)
        at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:527)
        at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:868)
        at org.apache.jsp.index_jsp._jspService(index_jsp.java:115)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:476)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:386)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:330)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:71)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:609)
        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:810)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1623)
        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:748)
10-Feb-2021 16:01:16.518 SEVERE [http-nio-8080-exec-5] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [jsp] in context with path [] threw exception
    java.io.IOException: An exception occurred processing [/index.jsp] at line [3]

1: <%@ page contentType="text/html; charset=UTF-8" session="false" %>
2: <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
3: <jsp:include page="/content/index" flush="false" />


Stacktrace:
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:504)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:386)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:330)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:71)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:609)
        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:810)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1623)
        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:748)
    Caused by: java.io.FileNotFoundException: The requested resource [/content/index] is not available
        at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:852)
        at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:504)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
        at org.apache.catalina.servlets.DefaultServlet.service(DefaultServlet.java:484)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:64)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:728)
        at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:591)
        at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:527)
        at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:868)
        at org.apache.jsp.index_jsp._jspService(index_jsp.java:115)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:476)
        ... 28 more

==> /opt/tomcat/logs/localhost_access_log.2021-02-10.txt <==
127.0.0.1 - - [10/Feb/2021:16:01:16 +0100] "GET / HTTP/1.1" 500 -

what went wrong?

do all previous in-between-updates have to be applied as well?

best regards

Code: Select all

hostnamectl; # system tested on
    Virtualization: kvm
  Operating System: CentOS Linux 8
       CPE OS Name: cpe:/o:centos:centos:8
            Kernel: Linux 5.4.11
      Architecture: x86-64
PS: an automatic within-cyclos update button would be very very cool :) (like in wordpress)

not sure if that is relevant info:

Code: Select all

==> /opt/tomcat/logs/catalina.out <==
10-Feb-2021 16:54:08.890 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/opt/tomcat/webapps/ROOT] has finished in [12,202] ms
10-Feb-2021 16:54:08.897 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]

==> /opt/tomcat/logs/catalina.2021-02-10.log <==
10-Feb-2021 16:54:08.890 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/opt/tomcat/webapps/ROOT] has finished in [12,202] ms
10-Feb-2021 16:54:08.897 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]

==> /opt/tomcat/logs/localhost.2021-02-10.log <==
10-Feb-2021 16:54:08.865 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log No Spring WebApplicationInitializer types detected on classpath
Last edited by canoodle on Wed Feb 10, 2021 1:12 pm, edited 1 time in total.
alexandre
Posts: 938
Joined: Wed Sep 06, 2006 9:06 am

Re: problems when trying to update cyclos from 4.13 to 4.14.4 - java.io.FileNotFoundException content index

Post by alexandre »

Hi,

Since 4.14 version Cyclos requires java 11 and tomcat 9 to run.
Update your env with the latest java1 and tomcat 9 versions and it should work.

regards
Alexandre Caurrinhos
Cyclos development team.
canoodle
Posts: 12
Joined: Sun Feb 04, 2018 8:33 pm

Re: problems when trying to update cyclos from 4.13 to 4.14.4 - java.io.FileNotFoundException content index

Post by canoodle »

thanks for the fast reply, will try that...

does this sound like trouble? (ah only for windows users)

https://stackoverflow.com/questions/531 ... ore-jre-11

what about tomcat 10? (will go with 9)

https://downloads.apache.org/tomcat/
alexandre
Posts: 938
Joined: Wed Sep 06, 2006 9:06 am

Re: problems when trying to update cyclos from 4.13 to 4.14.4 - java.io.FileNotFoundException content index

Post by alexandre »

You need the JRE so use openjdk.
About tomcat better to use 9 since tomcat 10 is quite new.

Regards
Alexandre Caurrinhos
Cyclos development team.
canoodle
Posts: 12
Joined: Sun Feb 04, 2018 8:33 pm

Re: problems when trying to update cyclos from 4.13 to 4.14.4 - java.io.FileNotFoundException content index

Post by canoodle »

YES! WORKS AGAIN! :)

tomcat version used: https://downloads.apache.org/tomcat/tom ... .43.tar.gz

Code: Select all

psql --version
psql (PostgreSQL) 12.5

Post Reply