Some light on how to configure Tomcat properly?

Hi,

I'm new to IntelliJ and trying to figure out how to develop a simple web app. I followed the ajax tutorial http://www.jetbrains.com/idea/training/demos/AJAX_demo.html. I thought that setup my Tomcat server already by adding a new configure and selected the location of my Tomcat 6 installation. But when I clicked the green arrow in the tool bar to deploy the app, nothing happened. My firefox browser didn't appear. I'm attaching my project also.

How can I debug this and how can I tell if I configured my Tomcat properly? I hope this is an easy for problem for IntelliJ experts.

THanks.
Chau



Attachment(s):
Picture 11.png
ajax1.zip
6 comments

Your js- and jspx-files are placed in /web/WEB-INF instead of /web
folder so they aren't accessible from browser.

Hi,

I'm new to IntelliJ and trying to figure out how to develop a simple web app. I followed the ajax tutorial http://www.jetbrains.com/idea/training/demos/AJAX_demo.html. I thought that setup my Tomcat server already by adding a new configure and selected the location of my Tomcat 6 installation. But when I clicked the green arrow in the tool bar to deploy the app, nothing happened. My firefox browser didn't appear. I'm attaching my project also.

How can I debug this and how can I tell if I configured my Tomcat properly? I hope this is an easy for problem for IntelliJ experts.

THanks.
Chau


------------------------------------------------------------------------



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

Thanks for the reply. Unfortunately, I've run into a different problem in the process of verify this ...

I have the same instance of Tomcat that I using for 2 different projects. THe 1st simple "Hello World" project that I deployed to Tomcat ran just fine. But when I try to deploy this ajax application to the same Tomcat, I get this error message:
Error running LocalTomcat6: Address localhost:8080 is already in use

Do you know how I can share the same tomcat with different IntelliJ IDEA web projects?

I'm attaching the snapshots of the Edit Configuration window...

Thanks.
Chau



Attachment(s):
Picture 14.png
Picture 13.png
0

You can use the same Tomcat installation with different IDEA project but
you cannot run two Tomcat instances simultaneously.

Thanks for the reply. Unfortunately, I've run into a different problem in the process of verify this ...

I have the same instance of Tomcat that I using for 2 different projects. THe 1st simple "Hello World" project that I deployed to Tomcat ran just fine. But when I try to deploy this ajax application to the same Tomcat, I get this error message:
Error running LocalTomcat6: Address localhost:8080 is already in use

Do you know how I can share the same tomcat with different IntelliJ IDEA web projects?

I'm attaching the snapshots of the Edit Configuration window...

Thanks.
Chau


------------------------------------------------------------------------


------------------------------------------------------------------------



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

That's what I want to do (e.g. use the same Tomcat installation for different IDEA projects).
But I kept getting the error (see attached) when I tried to run the 2nd project using the same Tomcat instance as my 1st IDEA project. What did I do wrong?

Thanks.
Chau

0

Is Tomcat in first project terminated properly?

That's what I want to do (e.g. use the same Tomcat installation for different IDEA projects).
But I kept getting the error (see attached) when I tried to run the 2nd project using the same Tomcat instance as my 1st IDEA project. What did I do wrong?

Thanks.
Chau



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

Well, not really. I didn't stop / terminate Tomcat after I used it in my 1st project. When I stopped that, I was able to deploy my 2nd project to the same Tomcat (but I had to create a new configuration for this same Tomcat in my 2nd project though).

Do you know if this how-to share same tomcat installation in different IDEA projects documented anywhere?

Thanks.
Chau

0

Please sign in to leave a comment.