简体   繁体   中英

Jars required for REST web services

My project requires Java 1.6 and JRE 6. Initially I developed Rest WS using Jersey 2.7 and it was working successfully. When we deployed the project in production, errors were pouring in. This is because, production environment is using JDK 1.6 and JRE 6. Now am using the below code in web.xml

<servlet>
<servlet-name>Jersey REST Service</servlet-name>
<servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
<init-param>
  <param-name>com.sun.jersey.config.property.packages</param-name>
  <param-value>com.model</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Jersey REST Service</servlet-name>
<url-pattern>/rest/*</url-pattern>
</servlet-mapping>

Can anyone pls let me know the list of jars used for restful WS which are compatible with JDK 6 and JRE 6?

Thanks in advance.

try Jersey 2.6 .

Until version 2.6, Jersey was compiled with Java SE 6. This has changes in Jersey 2.7

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM