What steps will reproduce the problem?
1.
String oauth_consumer_key = "xxxxxxxxxx";
String secret_key = "xxxxxxxxxxxx" ;
LinkedInOAuthService oauthService =
LinkedInOAuthServiceFactory.getInstance().createLinkedInOAuthService(oauth_consu
mer_key, secret_key);
String callback="http://localhost:8080/trading/loginPage.html";
requestToken = oauthService.getOAuthRequestToken(callback);
session.setAttribute("requestToken", requestToken);
String authUrl = requestToken.getAuthorizationUrl();
response.sendRedirect(authUrl);
2.
3.
What is the expected output? What do you see instead?
Getting Result:
System.out.println("requestToken:" + requestToken );
What version of the product are you using? On what operating system?
Using linkedin-j-1.0.410-binary and Windows Operating system
Please provide any additional information below.
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from
fulfilling this request.
exception
javax.servlet.ServletException: Servlet execution threw an exception
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
java.lang.NoClassDefFoundError:
com/google/code/linkedinapi/client/oauth/LinkedInOAuthServiceFactory
WelcomeServlet.doPost(WelcomeServlet.java:63)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
java.lang.ClassNotFoundException:
com.google.code.linkedinapi.client.oauth.LinkedInOAuthServiceFactory
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
WelcomeServlet.doPost(WelcomeServlet.java:63)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
Original issue reported on code.google.com by ramesh...@gmail.com on 26 Aug 2011 at 12:54
Original issue reported on code.google.com by
ramesh...@gmail.com
on 26 Aug 2011 at 12:54