#How to run tomcat on intellij IDEA community edition?

1 messages · Page 1 of 1 (latest)

marble burrow
#

Hello!

I'm having a large complex Spring Maven project, composed of multiple separated modules. the final module outputs a war file, that must be deployed within tomcat 8 or higher.

On eclipse everything works fine, but when I switch to Intellij, I find no clue to configure tomcat correctly.

Any suggestions are highly appreciated

white geyserBOT
#

<@&987246527741304832> please have a look, thanks.

white geyserBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

marble burrow
#

NOTE: I've succeeded to deploy the war with 2 ways so far:

  1. Using external tools menu: where I refer to tomcat directory, then Tools > External tools > Tomcat
  2. Using a plugin called smart tomcat

But when I launch the server, i got errors, some beans aren't instantiated, by which the database properties aren't read

runic heath
#

If you go to Project Structure > Artifacts you can add a add Web Application: Exploded artifact

#

Select the folder that contains the output .war file

#

And to run it...

#

sec

#

go to Run/Debug Configurations

#

and add a new configuration which is Tomcat Server > Local

#

There will be a Deployment tab, click the + and choose the Web Application: Exploded thing you made

#

That should be it

marble burrow
#

Im on Community edition

#

that plugin doesn't exist

runic heath
#

you can't find this in plugins?

#

the second on in the list

marble burrow
#

there is smart tomcat

runic heath
#

ah... then it really isn't in the community edition

#

rip

marble burrow
#

the other one is only for ultimate

runic heath
#

okay, let me try with this smart tomcat

marble burrow
#

it doesnt work

runic heath
#

what happens if you set that up?

marble burrow
#

as I told you, the app is getting deployed, but some beans aren't instantiated

runic heath
#

Are you using maven by chance?

marble burrow
#

some properties aren't getting read

#

yes

runic heath
#

Have you added the smart-tomcat-maven-plugin?

marble burrow
#

👀

#

no

runic heath
#

sec, reading google

marble burrow
#

there is no plugin like this

runic heath
#

mvn clean compile tomcat7:run

marble burrow
#

I did that already, and got errors too

runic heath
#

not sure then

#

upgrade to intellij ultimate ;p

#

but if you can figure out the maven way to do it, that would be good for you I think

marble burrow
#

that means there is no way to do it with community edition :/

runic heath
#

I think there is but we're just doing something wrong

#

that smart tomcat plugin should work

runic heath
marble burrow
#

I believe its going to be a waste of time

#

lets close this topic

#

sorry but I don't want to continue on it