intellij 6.0 and tomcat server issue (new problem now)

I created a web module on my system and added a tomcat server.  When I try to start the tomcat server from intellij I get this error:

"Cannot start compiler: the output path is not specified for module "web".
Specify the output path in Configure Project.
                       OK"

I am unclear as to what setting this refers to.  As far as I know everything is configured.  I have the Web module Exploded Directory set up.  I have exclude form module content and synchronize exploded directory selected.    In the output and javadoc I have Inherit Project compile output path selected.

What am I missing?
thanks

5 comments
Comment actions Permalink

Looks like "Project compiler output" isn't specified for your project (Project Structure -> Project).

I created a web module on my system and added a tomcat server. When I try to start the tomcat server from intellij I get this error:

"Cannot start compiler: the output path is not specified for module "web".
Specify the output path in Configure Project.
OK"

I am unclear as to what setting this refers to. As far as I know everything is configured. I have the Web module Exploded Directory set up. I have exclude form module content and synchronize exploded directory selected. In the output and javadoc I have Inherit Project compile output path selec
ted.

What am I missing?
thanks

---
Original message URL: http://www.jetbrains.net/devnet/message/5230992#5230992



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

0
Comment actions Permalink

Thanks, that helped, now I am a lot closer.  Tomcat starts and my project compiles but I am getting errors because none of my .class files are being copied to the exploded directory.  I thought it would synchronize this automatically?  I have that option clicked.  How do i get my compiler output to be copied to the exploded directory?

For that matter, I have another directory of resources that would need to be copied into my WEB-INF/ folder.  How do I set it up so random directory would be copied there?


Edit:It seems like when you add a web module that it can't see any other resources except ones below the web module path.  I think I need to attach my main code base src directory to the web module so it knows to synchronize the output paths but how can this be done?

My project tree is as so:

project/
project/src  -my code
project/classes  -my compiled output which needs to be synchronized to the exploded web directory
project/misc_resources -other resources that need to be included in the exploded web directory
project/web  -my web module
project/web/WEB-INF
project/web/src  -it seems like this is the only folder it will synchronize with, why?

Are we forced to put our code tree under the Web app src directory?

0
Comment actions Permalink

Please check your Web facet settings. Does "Modules and libraries to package" tree contain "]]> compile output" node under "WEB-INF/classes"
node?
If you want to add additional resources into WEB-INF you should add new Web Resource directory in Web facet settings and specify "relative output
path" for it to "/WEB-INF".

Thanks, that helped, now I am a lot closer. Tomcat starts and my project compiles but I am getting errors because none of my .class files are being copied to the exploded directory. I thought it would synchronize this automatically? I have that option clicked. How do i get my compiler output to
be copied to the exploded directory?

For that matter, I have another directory of resources that would need to be copied into my WEB-INF/ folder. How do I set it up so random directory would be copied there?


thanks!

---
Original message URL: http://www.jetbrains.net/devnet/message/5231052#5231052



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

0
Comment actions Permalink

All the "Module and Libraries to Package" section contains is a line for my library modules and they are set to be copied to the /WEB-INF/lib

How do I add my src compiler output package to this???

  When I try to add stuff in the web resource directories it constantly complains that i am trying to add resources outside of my web module root.

I don't understand this:

If you want to add additional resources into WEB-INF you should add new Web Resource directory in Web facet settings and specify "relative output
path" for it to "/WEB-INF"

I do have it set to relative but there are no Web "facet" settings, this is intellij 6.0?  I want to upgrade but my computer doesn't seem fast enough to run 8.0

0
Comment actions Permalink

There were several bugs in IDEA 6.0 which may cause problems with copying files to the exploded directory. Try to clear the exploded directory and
invoke "Rebuild" command.

If you want to add web resources which are located outside your module roots you should first add the directory which contains it as a module content
root.
I've mentioned Web "facet" through habit because Web modules was replaced by Web facets in IDEA 7.

All the "Module and Libraries to Package" section contains is a line for my library modules and they are set to be copied to the /WEB-INF/lib

How do I add my src compiler output package to this???

When I try to add stuff in the web resource directories it constantly complains that i am trying to add resources outside of my web module root.

I don't understand this:

If you want to add additional resources into WEB-INF you should add new Web Resource directory in Web facet settings and specify "relative output
> path" for it to "/WEB-INF"

I do have it set to relative but there are no Web "facet" settings, this is intellij 6.0? I want to upgrade but my computer doesn't seem fast enough to run 8.0

---
Original message URL: http://www.jetbrains.net/devnet/message/5231104#5231104



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

0

Please sign in to leave a comment.