Spring application from eclipse to intellij

I have a Spring application that I didn't start building, these dudes made it the old school way with no maven or gradle support in eclipse.

I want to work on it in IntelliJ Idea, project import gives me the following errors:

The event log:

12:13:36 PM Unknown Natures Detected
            Imported projects contain unknown natures:
            org.eclipse.wst.common.modulecore.ModuleCoreNature
            org.eclipse.wst.jsdt.core.jsNature
            org.eclipse.jem.workbench.JavaEMFNature
            org.eclipse.wst.common.project.facet.core.nature
            Some settings may be lost after import.

      

Also when trying to build:

/home/.../src/com/.../controller/servlet/VideoServlet.java
Error:(7, 32) java: package javax.servlet.annotation does not exist
Error:(13, 2) java: cannot find symbol
  symbol: class WebServlet
/home/.../src/com/.../service/CustomUserDetailsService.java
Warning:(10, 51) java: org.springframework.security.core.authority.GrantedAuthorityImpl in org.springframework.security.core.authority has been deprecated
/home/ldurazo/git/arcofi/arcofi/src/com/arcofi/controller/FileDownloadController.java
Error:(35, 40) java: cannot find symbol
  symbol:   method getServletContext()
  location: variable request of type javax.servlet.http.HttpServletRequest

      

I have a library servlet-api2.3.jar

And in the project structure I have the following problems

Module project : invalid item 'org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v7.0' in the dependencies list
Module project : invalid item 'org.eclipse.jst.j2ee.internal.web.container' in the dependencies list
Module project : invalid item 'org.eclipse.jst.j2ee.internal.module.container' in the dependencies list

      

And lastly, in the project structure too:

Unknown facet type: 'Spring'
Unknow facet type 'Web'

      

I am using IntelliJ Idea 14 and Eclipse Luna

+3


source to share





All Articles