Project
IntelliJ IDEA
Priority
Normal
Type
Bug
Fix versions
No Fix versions
State
Obsolete
Assignee
Irina Petrovskaya
Subsystem
J2EE.Tomcat
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Serge Baranov
    4 years ago (16 Oct 2007 18:07)
  • Updated by   root
    2 years ago (17 Jan 2010 20:54)
  • Jira: IDEADEV-22647
    (history, comments)
 
IDEA-41580 Classes/resources are not copied to WEB-INF in both exploded and WAR configuration
2
Issue is visible to: All Users
  The issue is visible to the selected user group only
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
Comments (3)
 
History
 
Linked Issues (?)
 
Serge Baranov
  Serge Baranov
16 Oct 2007 18:17
4 years ago
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
  Nikolay Chashnikov
17 Oct 2007 11:59
4 years ago
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
  Max Ishchenko
17 Oct 2007 17:55
4 years ago
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 :)