Confusing behaviour with deployment.
Hello, I am quite green in all of this web development and J2EE part of the world.
I've got a project and java module created in the IDE.
I've got my java sources specifed and my jsp/html etc resources specified.
When I build the project, the java files are compiled to the appropriate output path, but intellij also copies some resource files into the classes folder.
For example it after compiling I have:
...\classes\production\myproject\com\...(my compiled classes tree)
...\classes\production\myproject\images
...\classes\production\myproject\WEB-INF
I don't understand why those extra folders and files are in the classes folder. After the build when the web module is deployed to jboss, all the resources are correctly deployed to the correct folder. The compiled classes are also deployed to the correct folder. For example:
C:\jboss-4.0.5.GA\server\default\deploy\myproject.war\WEB-INF\classes
But again this classes folder also has the extra images and WEB-INF folder.
The same images folder is off course also in C:\jboss-4.0.5.GA\server\default\deploy\myproject.war\images and that is the only place it should be.
There are other files that are duplicated in the classes folder which should not be.
I am not sure why this is happening and how to avoid it.
I would appreciate any insight.
Thanks,
-- Sanjay
Please sign in to leave a comment.
http://www.wellho.net/mouth/1192_What-are-WEB-INF-and-META-INF-directories-.html
http://en.wikipedia.org/wiki/WAR_(Sun_file_format)
With best regards,
Konstantin Bulenkov
JetBrains, Inc.
"Sanjay Chugh" <no_reply@jetbrains.com> wrote in message
news:10254836.69261219732578573.JavaMail.jive@app4.labs.intellij.net...
>
>
>
>
>
>
>
>
>
Do not put images that should be available to your web application in the src path.
From there they are copied automatically to the output path - see compiler settings.
Put them in a separate folder images and configure that folder as a web resource directory
(see tab Web Settings of the web facet).
Also don't mix the regular compiler output path with the exploded war.
Specify a separate output path for compilation and let IDEA take care of asembling
the war structure.
Sanjay Chugh wrote: