Neither exploded directory or jar file is configured for this project - lies all lies

I have been attempting to set up a web project using Idea 4.5.3 and tomcat 5.0 for the past week or so. Eclipse took me < 20 mins but Idea just won't give up on complaining about mysterious configuration problems.

I love Idea as an editor and that's why I have invested the time so far, but the amount of time I spend configuring projects is silly.

So far I have been able to get my webapp running but I could not debug JSP's. After trying to set up a web application again from scratch I of course had all of my source code overwritten by specifying an exploded directory. Now Idea complains that
"Neither exploded directory or jar file is configured for this project "
Even though I have configured both an exploded and jar file. I have tried every possible combination. Adding web modules of the same path, removing them, using the synch check box, no check box. All possible combinations but I cannot get past the message:
"Neither exploded directory or jar file is configured for this project"

Any help? Can I explode anything around my computer to get this working?

4 comments

If you could send me your project where this problem can be reproduced, it
will help us to fix it quickly.
cdr AT intellij.com
Thank you.
--
regards,
Alexey Kudravtsev
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


"mcrusty" <no_mail@jetbrains.com> wrote in message
news:23629400.1103826428492.JavaMail.itn@is.intellij.net...
>I have been attempting to set up a web project using Idea 4.5.3 and tomcat
>5.0 for the past week or so. Eclipse took me < 20 mins but Idea just won't
>give up on complaining about mysterious configuration problems.
>

I love Idea as an editor and that's why I have invested the time so far,
but the amount of time I spend configuring projects is silly.

>

So far I have been able to get my webapp running but I could not debug
JSP's. After trying to set up a web application again from scratch I of
course had all of my source code overwritten by specifying an exploded
directory. Now Idea complains that
"Neither exploded directory or jar file is configured for this project "
Even though I have configured both an exploded and jar file. I have tried
every possible combination. Adding web modules of the same path, removing
them, using the synch check box, no check box. All possible combinations
but I cannot get past the message:
"Neither exploded directory or jar file is configured for this project"

>

Any help? Can I explode anything around my computer to get this working?

>



0

As always, I cannot send my project as it would barely fit on a DVD.

I was able to get most of my project to work. I have two web modules installed both working on an exploded dir in a tomcat 5/jdk 5 installation.

It turns out that things seem to work best in Idea configuration if you apply changes then restart idea - especially for Web J2ee settings. I solved the "Neither exploded direc...." message problem by setting WAR and Directory on then restarting Idea, building, turn off WAR leave exploded dir then restart, then rebuild. Took me 13 hours over 3 days to set up this project. Eclipse was &lt; 20 mins.

One problem I still have left though is Idea is copying my XML files from my my src directories over to the exploded WAR classes path. I have a gen and src dir that contain XML runtime meta data and use a classloaded to load them from the gen and src director (since I am in a dev and not prod mode). Idea is copying the resources when it syncs the exploded war directory. Since it copies the src then gen I have an order issue (src should override gen). But I would rather they were not copied at all. I tried removing the "patterns" from the compile settings tab which worked in previous versions of Idea to turn off this "feature". But not in 4.5.3. I thought it was another restart/start problem but I can't seem to stop Idea from copying the XML files.

Something to note though as a WARNING. If you use exploded directory for your webapp and are switching from having it be your src location, Idea will without warning delete all of your files before it recreates the exploded dir. I lost a fair amount of src this way. Luckily I could recover but this "feature" could be dangerous.

Mike

0

To avoid having your information deleted, turn OFF the synchronize
output directory. However, it's best to have it be a different directory.

Norris Shelton
Sun Certified Java Programmer




mcrusty wrote:

>As always, I cannot send my project as it would barely fit on a DVD.
>
>I was able to get most of my project to work. I have two web modules installed both working on an exploded dir in a tomcat 5/jdk 5 installation.
>
>It turns out that things seem to work best in Idea configuration if you apply changes then restart idea - especially for Web J2ee settings. I solved the "Neither exploded direc...." message problem by setting WAR and Directory on then restarting Idea, building, turn off WAR leave exploded dir then restart, then rebuild. Took me 13 hours over 3 days to set up this project. Eclipse was &lt; 20 mins.
>
>One problem I still have left though is Idea is copying my XML files from my my src directories over to the exploded WAR classes path. I have a gen and src dir that contain XML runtime meta data and use a classloaded to load them from the gen and src director (since I am in a dev and not prod mode). Idea is copying the resources when it syncs the exploded war directory. Since it copies the src then gen I have an order issue (src should override gen). But I would rather they were not copied at all. I tried removing the "patterns" from the compile settings tab which worked in previous versions of Idea to turn off this "feature". But not in 4.5.3. I thought it was another restart/start problem but I can't seem to stop Idea from copying the XML files.
>
>Something to note though as a WARNING. If you use exploded directory for your webapp and are switching from having it be your src location, Idea will without warning delete all of your files before it recreates the exploded dir. I lost a fair amount of src this way. Luckily I could recover but this "feature" could be dangerous.
>
>Mike
>

>

0

Is there a way to keep the synchronization option and not have the XML files copied over from the src directories (/gen and /src)?

>>>>>>
One problem I still have left though is Idea is copying my XML files from my my src directories over to the exploded WAR classes path. I have a gen and src dir that contain XML runtime meta data and use a classloaded to load them from the gen and src director (since I am in a dev and not prod mode). Idea is copying the resources when it syncs the exploded war directory. Since it copies the src then gen I have an order issue (src should override gen). But I would rather they were not copied at all. I tried removing the "patterns" from the compile settings tab which worked in previous versions of Idea to turn off this "feature". But not in 4.5.3. I thought it was another restart/start problem but I can't seem to stop Idea from copying the XML files.

0

Please sign in to leave a comment.