![]() ![]() On a side note, you might end up still facing some other challenges(I can see conflicting jaxb dependencies, even asm might be transitive from jersey) to resolve which you shall run mvn dependency:analyzeĪnd make sure that conflicting dependencies are excluded in such cases to make use of their updated version. Importantly, use Java 9 compatible maven plugins such as. To start with you shall check your module's mvn dependency:tree to look out for any source of asm that brings in version There are quite a few artifacts that you might need to update. On the same time, the main Jersey parts built without issues. My projects work fine with such a replacement, but I can't guarantee that it's 100% working solution, I wasn't able to build the whole distribution without fails and can't invest time for a full adoption and check right now. You can build only jersey-server and jersey-servlet modules from this branch because only these two depend on asm and use these two custom artifacts in your project. As a temporary solution, I made a branch where I deleted shaded asm, migrated packages in code to use a regular asm dependency and put asm 6.0 in maven dependencies. Looks like Jersey 1.x is not adopted to Java 9 and it's unclear if this support is coming at all. The problem that current Jersey has a shaded asm 5 dependency, which doesn't work with Java 9 bytecode. - javax.activation:activation:jar:1.1.1:compile | \- org.springframework:spring-jcl:jar:5.0.0.RELEASE:compile - org.springframework:spring-core:jar:5.0.0.RELEASE:compile ![]() restWebService:restWebService:war:1.0-SNAPSHOT maven-dependency-plugin:2.8:tree (default-cli) restWebService. The artifact javax.xml:jaxb-api:jar:2.1 has been relocated to :jaxb-api:jar:2.1 What jars should I import in order to make it work with 1.9 ? Or do I need to change maven configuration to make it work ?ĮDIT: Dependency Tree Scanning for projects. I am using Intellij, Project SDK - 9, Project Language Level - 9 The service comes up without any issues and I see the expected result on the browser. When I change the build configuration from 1.9 to 1.8 ![]() asm.ClassReader.(ClassReader.java:424)Ĭom.AnnotationScannerListener.onProcess(AnnotationScannerListener.java:138)Ĭom.$1.f(FileSchemeScanner.java:86)Ĭom.Closing.f(Closing.java:71) threads.TaskThread$n(TaskThread.java:61) Java.base/$n(ThreadPoolExecutor.java:641) Java.base/.runWorker(ThreadPoolExecutor.java:1167) net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1376) AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:651) ErrorReportValve.invoke(ErrorReportValve.java:81) AuthenticatorBase.invoke(AuthenticatorBase.java:475) : Servlet.init() for servlet threw exception jettison 1.5.4 Used in 319 components pkg:maven//jettison1.5. Message Servlet.init() for servlet threw exceptionĭescription The server encountered an unexpected condition that prevented it from fulfilling the request. When I try to hit this URL: - I see the following error: HTTP Status 500 – Internal Server Error My maven config is as shown below: Ĭom.servlet.ServletContainer Then I went ahead and modified the pom.xml and web.xml. Created the project using the maven archetype: jersey-quickstart-webapp. I am trying to bring up a simple ReST service. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |