• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
Bartenders:

Start Tomcat from within IntelliJ

 
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Guys,

I have configured a Tomcat configuration for my project under the Run menu of the IntelliJ IDE. But I would like to know how to get that Tomcat instance up and running?
 
Joe San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nothing on the run dialog comes up when Run the Tomcat configuration in my IntelliJ
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I always run my servers outside of an IDE. Especially Eclipse. Sorry I have to get an Eclipse dig in somewhere. ;)

You create a Server Run configuration. You set your project to have the Web Facet, and have it use that run configuration.

In the documentation, go to the Help/Help Topics menu

The documentation will popup and go to section Procedures/Developing Java EE and Web Applications/Deploying and Running

It describes it in more detail.

Mark
 
Joe San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I already gave that a try, but was not satisfactory. Maybe I would try to ask this in the IntelliJ forums.
 
Ranch Hand
Posts: 952
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jothi Shankar Kumar wrote:I already gave that a try, but was not satisfactory. Maybe I would try to ask this in the IntelliJ forums.



You must have given some name for your tomcat server in the run->Edit Configurations, I have given tomcat6.
In the toolbar you will see a green arrow button, just before that you have to select your tomcat server name from the drop down combo box just before that green button, then you can click on the run button, your tomcat will start and deploy the project.
 
Joe San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Punit Singh wrote:

Jothi Shankar Kumar wrote:I already gave that a try, but was not satisfactory. Maybe I would try to ask this in the IntelliJ forums.



You must have given some name for your tomcat server in the run->Edit Configurations, I have given tomcat6.
In the toolbar you will see a green arrow button, just before that you have to select your tomcat server name from the drop down combo box just before that green button, then you can click on the run button, your tomcat will start and deploy the project.



Yes, I did all that. Did you see some console message in the Run dialogue of your IntelliJ once you clicked on the green button? I do not see anything to happen there. Can you let me know what did you set for your Tomcat home?? Do we have to specify the bin folder of our Tomcat installation?
 
Punit Singh
Ranch Hand
Posts: 952
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What I did:


1. Run -> Edit Configuration and got the Run/Debug configuration window
clicked on the + icon -> Add New Configuration window --> Tomcat Server -> selected local option
2. on Run/Debug configurations window
2.1 in server tab :
filled that name : tomcat 6
-Clicked on the configure button and got the application servers window
- on application servers window-> clicked the +icon -> selected tomcat root folder not bin -> apply ok

2.2 in deployment tab
- fill the ApplicationContext name : this is your project name, mine is SampleWebApp
- click on the configure option
- select the "Create web facet exploded directory" checkbox
- select the location for that or leave whatever default location
- click on ok

Now run the project





 
The fastest and most reliable components of any system are those that are not there. Tiny ad:
The new gardening playing cards kickstarter is now live!
https://www.kickstarter.com/projects/paulwheaton/garden-cards
reply
    Bookmark Topic Watch Topic
  • New Topic