Last active
August 29, 2015 14:07
-
-
Save ricston-git/057ce33909c81350c3ac to your computer and use it in GitHub Desktop.
To Jar hell and back - blog post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO] +- com.ricston:contacts-app-api:jar:1.0.0-SNAPSHOT:compile | |
[INFO] | \- org.raml:raml-jaxrs-codegen-core:jar:1.0.OA-SNAPSHOT:compile | |
[INFO] | +- org.raml:raml-parser:jar:0.8.7:compile | |
[INFO] | | +- org.yaml:snakeyaml:jar:1.13:compile | |
[INFO] | | +- commons-validator:commons-validator:jar:1.3.1:compile | |
[INFO] | | | +- commons-beanutils:commons-beanutils:jar:1.7.0:compile | |
[INFO] | | | +- commons-digester:commons-digester:jar:1.6:compile | |
[INFO] | | | | +- commons-collections:commons-collections:jar:2.1:compile | |
[INFO] | | | | \- xml-apis:xml-apis:jar:1.0.b2:compile | |
[INFO] | | | \- commons-logging:commons-logging:jar:1.0.4:compile | |
[INFO] | | \- org.kitchen-eel:json-schema-validator:jar:1.2.2:compile | |
[INFO] | | \- org.mozilla:rhino:jar:1.7R4:compile | |
[INFO] | +- javax.ws.rs:jsr311-api:jar:1.1.1:compile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupId>org.jhades</groupId> | |
<artifactId>jhades</artifactId> | |
<version>1.0.4</version> | |
</dependency> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<listener> | |
<listener-class> org.jhades.JHadesServletListener</listener-class> | |
</listener> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java.lang.reflect.InvocationTargetException | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297) | |
at java.lang.Thread.run(Thread.java:745) | |
Caused by: java.lang.NoSuchMethodError: javax.ws.rs.core.Application.getProperties()Ljava/util/Map; | |
at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:304) | |
at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:285) | |
at org.glassfish.jersey.servlet.WebComponent.<init>(WebComponent.java:311) | |
at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:170) | |
at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:358) | |
at javax.servlet.GenericServlet.init(GenericServlet.java:244) | |
at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:532) | |
at org.eclipse.jetty.servlet.ServletHolder.doStart(ServletHolder.java:344) | |
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) | |
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:791) | |
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265) | |
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717) | |
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) | |
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95) | |
at org.eclipse.jetty.server.Server.doStart(Server.java:282) | |
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) | |
at com.ricston.contacts.Main.main(Main.java:35) | |
... 6 more |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
── contacts-app | |
│ └── pom.xml | |
│ ├── contacts-app-server | |
│ ├── pom.xml | |
│ ├── src | |
├── contacts-app-api | |
│ ├── pom.xml | |
│ └── src | |
└── contacts-app-impl | |
└── src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?> | |
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> | |
<display-name>contacts-app-server</display-name> | |
<!-- REST API servlet: --> | |
<servlet> | |
<servlet-name>restService</servlet-name> | |
<servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class> | |
<init-param> | |
<param-name>javax.ws.rs.Application</param-name> | |
<param-value>com.ricston.contacts.app.ContactsApp</param-value> | |
</init-param> | |
<load-on-startup>1</load-on-startup> | |
</servlet> | |
<servlet-mapping> | |
<servlet-name>restService</servlet-name> | |
<url-pattern>/api/*</url-pattern> | |
</servlet-mapping> | |
</web-app> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment