Hello, Hope someone can help me on EPICS archiver appliance quickstart. I list what I did in the following, and please point out what I am missing or did wrong. - computer system: ubuntu 22. 04 - archiver appliance quickstart version: archappl_v1. 1. 0
Hello,
Hope someone can help me on EPICS archiver appliance quickstart. I list what I did in the following, and please point out what I am missing or did wrong.
- computer system: ubuntu 22.04
- archiver appliance quickstart version: archappl_v1.1.0
1) epics base: R7.0.8; export EPICS_BASE=/home/archiver/epics/base
2) openjdk-17-jdk; export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
3) download apache-tomcat-10.1.19. But later on disabled it by renaming the file /etc/systemd/system/tomcat.service to tomcat.service_NotUse, to avoid potential conflict with the tomcat loaded by quickstart.sh.
4) installed mysql-server; also downloaded mysql-connector-java-8.3.0.jar, but is probably irrelevant since I can only copy this jar file into system tomcat which is disabled.
5) download archappl_v1.1.0.tar.gz, apache-tomcat-10.1.19.tar.gz into one directory, unzip archappl_v1.1.0; run `./quickstart.sh apache-tomcat-10.1.19.tar.gz`
The only website I can see is localhost:17665, the apache Tomcat/10.1.19 webpage. "HTTP 404" for localhost:17665/mgmt/ui/index.html, or any other pages.
Beginning part of the screen printout and a log file are also included in this email.
Thanks a lot,
Rong
****************
The printout up to first two "SEVERE" INFO:
*****************
SRCDIR=/home/archiver/epics/archive22
DATADIR=/home/archiver/epics/archive22
Using org.epics.archiverappliance.config.persistence.InMemoryPersistence as the persistence layer
Found an older quickstart_tomcat folder. Stopping any existing instances.
Using CATALINA_BASE: /home/archiver/epics/archive22/quickstart_tomcat/apache-tomcat-10.1.19
Using CATALINA_HOME: /home/archiver/epics/archive22/quickstart_tomcat/apache-tomcat-10.1.19
Using CATALINA_TMPDIR: /home/archiver/epics/archive22/quickstart_tomcat/apache-tomcat-10.1.19/temp
Using JRE_HOME: /usr/lib/jvm/java-17-openjdk-amd64
Using CLASSPATH: /home/archiver/epics/archive22/quickstart_tomcat/apache-tomcat-10.1.19/bin/bootstrap.jar:/home/archiver/epics/archive22/quickstart_tomcat/apache-tomcat-10.1.19/bin/tomcat-juli.jar
Using CATALINA_OPTS:
Feb 28, 2024 2:46:43 PM org.apache.catalina.startup.Catalina stopServer
SEVERE: Could not contact [localhost:8005] (base port [8005] and offset [0]). Tomcat may not be running.
Feb 28, 2024 2:46:43 PM org.apache.catalina.startup.Catalina stopServer
SEVERE: Error stopping Catalina
java.net.ConnectException: Connection refused
at java.base/sun.nio.ch.Net.connect0(Native Method)
at java.base/sun.nio.ch.Net.connect(Net.java:579)
at java.base/sun.nio.ch.Net.connect(Net.java:568)
at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:593)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
at java.base/java.net.Socket.connect(Socket.java:633)
at java.base/java.net.Socket.connect(Socket.java:583)
at java.base/java.net.Socket.<init>(Socket.java:507)
at java.base/java.net.Socket.<init>(Socket.java:287)
at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:653)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:393)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:481)
Deleting an older quickstart_tomcat
/home/archiver/epics/archive22/quickstart_tomcat
total 4
drwxrwxr-x 9 archiver archiver 4096 Feb 28 14:47 apache-tomcat-10.1.19
Using 64 bit versions of libraries
Starting in the foreground...
Using CATALINA_BASE: /home/archiver/epics/archive22/quickstart_tomcat/apache-tomcat-10.1.19
Using CATALINA_HOME: /home/archiver/epics/archive22/quickstart_tomcat/apache-tomcat-10.1.19
Using CATALINA_TMPDIR: /home/archiver/epics/archive22/quickstart_tomcat/apache-tomcat-10.1.19/temp
Using JRE_HOME: /usr/lib/jvm/java-17-openjdk-amd64
Using CLASSPATH: /home/archiver/epics/archive22/quickstart_tomcat/apache-tomcat-10.1.19/bin/bootstrap.jar:/home/archiver/epics/archive22/quickstart_tomcat/apache-tomcat-10.1.19/bin/tomcat-juli.jar
Using CATALINA_OPTS:
28-Feb-2024 14:47:17.558 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name: Apache Tomcat/10.1.19
28-Feb-2024 14:47:17.562 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Feb 14 2024 19:36:50 UTC
28-Feb-2024 14:47:17.562 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 10.1.19.0
28-Feb-2024 14:47:17.562 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
28-Feb-2024 14:47:17.563 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 5.15.0-97-generic
28-Feb-2024 14:47:17.563 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
28-Feb-2024 14:47:17.563 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-17-openjdk-amd64
28-Feb-2024 14:47:17.563 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 17.0.10+7-Ubuntu-122.04.1
28-Feb-2024 14:47:17.564 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Private Build
28-Feb-2024 14:47:17.564 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /home/archiver/epics/archive22/quickstart_tomcat/apache-tomcat-10.1.19
28-Feb-2024 14:47:17.564 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /home/archiver/epics/archive22/quickstart_tomcat/apache-tomcat-10.1.19
28-Feb-2024 14:47:17.627 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/home/archiver/epics/archive22/quickstart_tomcat/apache-tomcat-10.1.19/conf/logging.properties
28-Feb-2024 14:47:17.628 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
28-Feb-2024 14:47:17.628 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx1G
28-Feb-2024 14:47:17.628 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -ea
28-Feb-2024 14:47:17.629 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
28-Feb-2024 14:47:17.629 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
28-Feb-2024 14:47:17.629 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
28-Feb-2024 14:47:17.630 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED
28-Feb-2024 14:47:17.630 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED
28-Feb-2024 14:47:17.630 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.util=ALL-UNNAMED
28-Feb-2024 14:47:17.631 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
28-Feb-2024 14:47:17.631 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
28-Feb-2024 14:47:17.631 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/home/archiver/epics/archive22/quickstart_tomcat/apache-tomcat-10.1.19
28-Feb-2024 14:47:17.632 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/home/archiver/epics/archive22/quickstart_tomcat/apache-tomcat-10.1.19
28-Feb-2024 14:47:17.632 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/home/archiver/epics/archive22/quickstart_tomcat/apache-tomcat-10.1.19/temp
28-Feb-2024 14:47:18.258 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-17665"]
28-Feb-2024 14:47:18.290 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [930] milliseconds
28-Feb-2024 14:47:18.322 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
28-Feb-2024 14:47:18.322 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.19]
28-Feb-2024 14:47:18.349 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/home/archiver/epics/archive22/quickstart_tomcat/apache-tomcat-10.1.19/webapps/engine.war]
28-Feb-2024 14:47:21.313 INFO [main] 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.28-Feb-2024 14:47:21.340 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
28-Feb-2024 14:47:21.364 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal Context [/engine] startup failed due to previous errors
******************
the beginning part inside localhost.2024-02-28.log file:
*****************
28-Feb-2024 14:47:21.339 SEVERE [main] org.apache.catalina.core.StandardContext.listenerStart Error configuring application listener of class [org.epics.archiverappliance.config.ArchServletContextListener]
java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2352)
at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:800)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1317)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1165)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:491)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:473)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:143)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4365)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4876)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:683)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:658)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:712)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:969)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1911)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:123)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:771)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:423)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1629)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:303)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:114)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:345)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:893)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:845)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1332)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1322)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:866)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:240)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:433)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:921)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.apache.catalina.startup.Catalina.start(Catalina.java:757)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:476)
Caused by: java.lang.ClassNotFoundException: javax.servlet.ServletContextListener
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1353)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1165)
... 51 more
28-Feb-2024 14:47:21.340 SEVERE [main] org.apache.catalina.core.StandardContext.listenerStart Skipped installing application listeners due to previous error(s)
28-Feb-2024 14:47:22.906 SEVERE [main] org.apache.catalina.core.StandardContext.listenerStart Error configuring application listener of class [org.epics.archiverappliance.config.ArchServletContextListener]
java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)