![]() 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) $ConnectionHandler.process(AbstractProtocol.java:754) AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:651) ErrorReportValve.invoke(ErrorReportValve.java:81) AuthenticatorBase.invoke(AuthenticatorBase.java:475) : Servlet.init() for servlet threw exception 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. 9 messages 2010 January trunk/src/main/java/org/codehaus/jettison: - mispelled method - trunk: - type converter improvements - trunk/src/test/java/org/codehaus/jettison/mapped/BootstrapTypeConverterTest.java: - type converter improvements - trunk/src/main/java/org/codehaus/jettison: and - namespace at parent level - trunk/src/main/java/org/codehaus/jettison/Node.java: - Node.toString() - trunk/src/main/java/org/codehaus/jettison/AbstractXMLStreamReader.java: - AbstractXMLStreamReader nextTag - trunk/pom.xml: prepare release jettison-1.2 - tags: copy for tag jettison-1.2 - trunk/pom.I am using jdk 1.9.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |