javax.servlet.http.HttpSessionIdListener signer information does not match signer information when starting from IDE


#1

Hi guys,

When I tried to start the Engine server from my IDE (GraknEngineServer class), I get the following exception. It used to work!

Thanks,
Boris

Exception in thread "Thread-0" java.lang.ExceptionInInitializerError
	at spark.embeddedserver.jetty.EmbeddedJettyFactory.create(EmbeddedJettyFactory.java:34)
	at spark.embeddedserver.EmbeddedServers.create(EmbeddedServers.java:57)
	at spark.Service.lambda$init$1(Service.java:384)
	at spark.Service$$Lambda$3/302155142.run(Unknown Source)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.SecurityException: class "javax.servlet.http.HttpSessionIdListener"'s signer information does not match signer information of other classes in the same package
	at java.lang.ClassLoader.checkCerts(ClassLoader.java:895)
	at java.lang.ClassLoader.preDefineClass(ClassLoader.java:665)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:758)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at org.eclipse.jetty.server.session.SessionHandler.<clinit>(SessionHandler.java:54)
	... 5 more

#2

Hi @bolerio

There is a solution! You need to explicitly include the Titan factory dependency.

<dependency>
    <groupId>ai.grakn</groupId>
    <artifactId>titan-factory</artifactId>
    <version>${project.version}</version>
</dependency>

Hope that helps. I’ve added it to our shiny new contributor developer FAQ, since it may impact others working on the GRAKN.AI codebase. It’s here: https://grakn.ai/pages/contributors/contributor-faq.html