Bug#1022760: openrefine: localhost:3333 returns HTTP ERROR 404 Not Found

Robert Jäschke jaeschke at l3s.de
Thu Mar 23 09:41:45 GMT 2023


Dear Markus,

I found the problem: the package misses a dependency to libjoda-time-java.

I created a simple log4j.properties file and then run openrefine 
manually with a modified classpath that included the directory that 
contained the log4j.properties file (/tmp/or in my case):

java \
   -cp server/classes:server/*:/tmp/or \
   -Xms1400M \
   -Xmx1400M \
   -Drefine.memory=1400M \
   -Drefine.max_form_content_size=1048576 \
   -Drefine.verbosity=info \
   -Dpython.path=main/webapp/WEB-INF/lib/jython \
   -Dpython.cachedir=/home/<myuser>/.local/share/google/refine/cachedir \
   -Drefine.webapp=main/webapp \
   -Drefine.port=3333 \
   -Drefine.interface=127.0.0.1 \
   -Drefine.host=127.0.0.1 com.google.refine.Refine

Then I got the following output:

INFO  log - Logging initialized @123ms to 
org.eclipse.jetty.util.log.Slf4jLog
INFO  refine_server - Starting Server bound to '127.0.0.1:3333'
INFO  refine_server - refine.memory size: 8000M JVM Max heap: 8388608000
INFO  refine_server - Initializing context: '/' from 
'/usr/share/openrefine/webapp'
INFO  Server - jetty-9.4.50.v20221107; built: unknown; git: unknown; jvm 
17.0.6+10-Debian-1
WARN  WebAppContext - Failed startup of context 
o.e.j.w.WebAppContext at 147ed70f{/,file:///usr/share/openrefine/webapp/,STOPPED}{/usr/share/openrefine/webapp}
java.nio.file.NoSuchFileException: 
/usr/share/openrefine/webapp/WEB-INF/lib/joda-time.jar
	at 
java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
	at 
java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
	at 
java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
	at 
java.base/sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
	at 
java.base/sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:148)
	at 
java.base/sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99)
	at java.base/java.nio.file.Files.readAttributes(Files.java:1851)
	at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1264)
	at 
java.base/java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:709)
	at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:243)
	at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:172)
	at java.base/java.util.jar.JarFile.<init>(JarFile.java:347)
	at 
java.base/sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:103)
	at 
java.base/sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:72)
	at 
java.base/sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:153)
	at 
java.base/sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:131)
	at 
java.base/sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:92)
	at 
org.eclipse.jetty.webapp.MetaInfConfiguration.getTlds(MetaInfConfiguration.java:445)
	at 
org.eclipse.jetty.webapp.MetaInfConfiguration.scanForTlds(MetaInfConfiguration.java:361)
	at 
org.eclipse.jetty.webapp.MetaInfConfiguration.scanJars(MetaInfConfiguration.java:172)
	at 
org.eclipse.jetty.webapp.MetaInfConfiguration.preConfigure(MetaInfConfiguration.java:106)
	at 
org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:488)
	at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:523)
	at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
	at 
org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
	at 
org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
	at 
org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
	at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
	at 
org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
	at org.eclipse.jetty.server.Server.start(Server.java:423)
	at 
org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
	at 
org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
	at org.eclipse.jetty.server.Server.doStart(Server.java:387)
	at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
	at com.google.refine.RefineServer.init(Refine.java:236)
	at com.google.refine.Refine.init(Refine.java:118)
	at com.google.refine.Refine.main(Refine.java:112)
INFO  AbstractConnector - Started ServerConnector at 6b2fad11{HTTP/1.1, 
(http/1.1)}{127.0.0.1:3333}
INFO  Server - Started @361ms

Openrefine now works after I've manually installed joda-time.


Best regards,
Robert

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 659 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-maintainers/attachments/20230323/a7f6fe1c/attachment.sig>


More information about the pkg-java-maintainers mailing list