You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by zhangjian <ad...@163.com> on 2015/03/18 12:32:19 UTC

class compile error after import ranger projects into eclipse

HI guys, i am a newbie on ranger,I follow the quick start guide to make eclipse projects of ranger,sucessful when compile  in mvn cmd, but when i import projects  into eclipse, 2 classes got compile errors like below:
class SpringEventLisentener:
The type ApplicationListener is not generic; it cannot be parameterized with arguments <AbstractAuthenticationEvent>SpringEventListener.java/security-admin-web/src/main/java/org/apache/ranger/security/listenerline 36Java Problem


The method onApplicationEvent(AbstractAuthenticationEvent) of type SpringEventListener must override or implement a supertype methodSpringEventListener.java/security-admin-web/src/main/java/org/apache/ranger/security/listenerline 44Java Problem


class CLIUitl:
The constructor ClassPathXmlApplicationContext(String, String, String) is undefinedCLIUtil.java/security-admin-web/src/main/java/org/apache/ranger/utilline 48Java Problem
The method getBean(String) in the type BeanFactory is not applicable for the arguments (Class<capture#1-of ?>)CLIUtil.java/security-admin-web/src/main/java/org/apache/ranger/utilline 57Java Problem


seems the spring version is not correct, it will be much appreciated if anybody tell me how to solve this problem.

Re: class compile error after import ranger projects into eclipse

Posted by Alok Lal <al...@hortonworks.com>.
I have seen this error in the past but I have seen this happen when I import our maven project into IntelliJ but not in Eclipse.  I don't have a good explanation as to why this happens but I can suggest that you try the following.

  *   Create a new workspace in eclipse, say, "ranger 2".  This is so are starting fresh without anything from the old workspace.
  *   Run mvn eclipse:clean followed by mvn eclipse:eclipse in your directory.
  *   When importing the project into eclipse don't import the following projects
     *   The parent "ranger" project
     *   The credValidator project.

Hope that helps,
Alok


On 3/18/15, 4:32 AM, "zhangjian" <ad...@163.com>> wrote:

HI guys, i am a newbie on ranger,I follow the quick start guide to make eclipse projects of ranger,sucessful when compile  in mvn cmd, but when i import projects  into eclipse, 2 classes got compile errors like below:
class SpringEventLisentener:
The type ApplicationListener is not generic; it cannot be parameterized with arguments <AbstractAuthenticationEvent>SpringEventListener.java/security-admin-web/src/main/java/org/apache/ranger/security/listenerline 36Java Problem


The method onApplicationEvent(AbstractAuthenticationEvent) of type SpringEventListener must override or implement a supertype methodSpringEventListener.java/security-admin-web/src/main/java/org/apache/ranger/security/listenerline 44Java Problem


class CLIUitl:
The constructor ClassPathXmlApplicationContext(String, String, String) is undefinedCLIUtil.java/security-admin-web/src/main/java/org/apache/ranger/utilline 48Java Problem
The method getBean(String) in the type BeanFactory is not applicable for the arguments (Class<capture#1-of ?>)CLIUtil.java/security-admin-web/src/main/java/org/apache/ranger/utilline 57Java Problem


seems the spring version is not correct, it will be much appreciated if anybody tell me how to solve this problem.