History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-22647
Type: Bug Bug
Status: Open Open
Priority: Blocker Blocker
Assignee: Irina Petrovskaya
Reporter: Serge Baranov
Votes: 2
Watchers: 4
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Classes/resources are not copied to WEB-INF in both exploded and WAR configuration

Created: 16 Oct 07 17:07   Updated: 10 Nov 08 16:45
Component/s: J2EE.Deployment and Run.Tomcat
Fix Version/s: Undefined

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 7,361
Severity: Medium


 Description  « Hide
This probably happens with IDEA 6.0 converted projects, support feedback:

When running a tomcat configuration/deployment, the classes and the resources are not copied to the WEB-INF directory inside the "Web module exploded
directory" (either to the war file).
The same project, run in intellij 6 works fine. Could you please assist me?


OS: Max OS X
JDK: JDK 1.5.0
IDEA: 7.0
Build: 7361

I have a problem with deploying the war file for my project. I'm switching from a pure spring based configuration to tomcats context.xml
configuration for the datasource. However, for that to work correctly, my project needs to be deployed as a war file, while previously in our local
deploy, we used "create web module exploded directoty". The issue I have is that the war file that is built does not contain my .class files.
Libraries I depend upon are copied fine, so is the WEB-INF and META-INF. Just my compiled sources are not packaged.

How can I tell intellij to package my compiled classes as well?

Thanks!
Nick.


OS: Windows XP
JDK: JDK 1.6.0
IDEA: 7.0
Build: 7230



 All   Comments   Work Log   Change History      Sort Order:
Serge Baranov - 16 Oct 07 17:17
More info on the issue:

"Thank you Serge for your suggestion.
The project was created with maven. Recreating all the intellij files
with a mvn idea:idea and converting them to the stable idea 7.0
solved my issue."


Nikolay Chashnikov - 17 Oct 07 10:59
Please check that packaging method for the module containing Web facet is set to "Copy module output to" (Project Structure -> Web Facet node -> "Web Settings" tab -> "Modules and Libraries to package" table). If the packaging method is correct please provide iml-file of your module.

Max Ishchenko - 17 Oct 07 16:55
omg, this bug was just created. I was convinced that it exists and I'm not the only one to suffer. It's a rather old issue, guys.

The workaround is: set your module output path to WEB-INF/classes. This allows correct hot-swapping for webapplication classes.
I used "Copy module output to" before that, but could not hot swap easily. If I chose 'YES', tomcat redeployed the whole context and that was slow. Outputting to WEB-INF/classes solved two problems at once