Friday, 15 March 2013

java - IntelliJIDEA 14 cannot run Spring Project with Tomcat but with Eclipse it runs smoothly -



java - IntelliJIDEA 14 cannot run Spring Project with Tomcat but with Eclipse it runs smoothly -

i've 2 spring projects:

project b - backend project - rest api utilize backend

i'm trying move eclipse intellij , these 2 projects written using eclipse , work fine both in eclipse internal tomcat in "standard" tomcat after bundle in war file.

so problem i've intellij , in particular if deploy project within intellij.

what did:

1) imported project in intellij , configure spring project (it autodetected) 2) imported project b in intellij , configure spring project (it autodetected) 3) added project b module in project 4) configured local instance of tomcat 7 (but tried tomcat8) 5) run project

what see: no deployment errors or related if phone call random rest method in tomcat log see security chain of spring security executed without error seems skip execution of code in controller (that in project a). i've attached debugger since execution stops before entering bytecode execution can't see anything.

i'm newbye of intellij , i'm sure i'm doing mistakes during import of projects said work fine in eclipse or in tomcat, cannot find out where...

update intellij creates directory root in tomcat\webapps , copies in project files. apparently copies not jar file of projectb related src/resources/xml , in original project.

update2 (apparently solved) apparently problem path problem. since deploys under root folder can skip in url. seems me unusual behaviour anyway...

thanks

there should no problems debugging issue, source code of major runtime components available (spring, tomcat, etc). unfortunately saying "execution stops before entering bytecode execution" isn't helpful not familiar project.

if there differences between ides might worth see happens when: 1) projects packaged wars , deployed standalone tomcat 2) tomcat started build scheme (e.g. in maven there's tomcat7-maven-plugin)

option 2 use. way don't have configure ides run command line.

java eclipse spring tomcat intellij-idea

No comments:

Post a Comment