Kaushi
Kaushi

Reputation: 198

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.

Upvotes: 0

Views: 2817

Answers (1)

Janath
Janath

Reputation: 137

try Jersey 2.6.

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

Upvotes: 2

Related Questions