You need to sign in to do that
Don't have an account?
vjoshi
Tomcat 6 issue with servlet annotation
What is the alternative to servlet 3.0 annotations that is used in REST API sample Force.com application? I am using Tomcat 6 server that does not support annotation package. How can I solve this issue?
@WebServlet(name = "oauth", urlPatterns = { "/oauth/*", "/oauth" }, initParams = { // clientId is 'Consumer Key' in the Remote Access UI @WebInitParam(name = "clientId", value = "..."), // clientSecret is 'Consumer Secret' in the Remote Access UI //@WebInitParam(name = "clientSecret", value = "..."), // This must be identical to 'Callback URL' in the Remote Access UI @WebInitParam(name = "redirectUri", value = "https://<sample ip>/RESTAPITEST/oauth/_callback"), @WebInitParam(name = "environment", value = "https://login.salesforce.com") })
I am getting error in the bold parts.
Can anyone help with this? I removed the above annotations and added the init parameters to web.xml file.