Error in IDEA 4.5: Destination is not a directory.
When I select the Make Project item from the Build menu, IDEA 4.5 displays an error message similar to the following for each JAR file in my project:
Error: Error copying 'C:\bea\weblogic81\server\lib\weblogic.jar' to 'C:\bea\user_projects\domains\kaweb-2\WEB-INF\lib'. Destination is a directory.
When I first deployed the project (by executing the Make Project command), IDEA appeared to execute correctly. But when I tried to start the application server, it stated that it could not load one of my project's classes. When I looked for my application's /WEB-INF/lib directory, I fould that IDEA had created a file, not a directory, named "lib". I deleted this file and created the directory /WEB-INF/lib by hand. I then re-executed the Make Project command and got the error message listed above.
How do I fix this problem? I didn't experience this problem when using IDEA 4.0.3, but I do when using IDEA 4.5.
Thanks for your help.
请先登录再写评论。
Hi there ,
I encountered the same problem here , using IDEA 4.5.
Could some one help us to fix this issue since I can't validate JSP/make the project anymore !?!?
Another issue to report , is seams the help/documentation is not in synch withhin the IDEA 4.5 since the "J2EE Build Settings" tab is not properly documented.
Anyway , except this problem , my overall experience with IDEA 4.5 is very plesant, faster/smarter than ever (4.*) !!
Regards
Goto Settings|Paths|Web module Settings and change relative path to package
weblogic.jar from 'WEB-INF/lib' to e.g. 'WEB-INF/lib/weblogic.jar'
Otherwise IDEA will try to copy weblogic.jar into WEB-INF/lib file.
--
regards,
Alexey Kudravtsev
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Thomas Eaton" <no_mail@jetbrains.com> wrote in message
news:12087573.1091281004037.JavaMail.itn@is.intellij.net...
an error message similar to the following for each JAR file in my project:
>
'C:\bea\user_projects\domains\kaweb-2\WEB-INF\lib'. Destination is a
directory.
>
IDEA appeared to execute correctly. But when I tried to start the
application server, it stated that it could not load one of my project's
classes. When I looked for my application's /WEB-INF/lib directory, I fould
that IDEA had created a file, not a directory, named "lib". I deleted this
file and created the directory /WEB-INF/lib by hand. I then re-executed the
Make Project command and got the error message listed above.
>
IDEA 4.0.3, but I do when using IDEA 4.5.
>
Dear Mr. Kudravtsev,
Thank you for your help. Your solution solved my problem.
Best regards,
Tom Eaton
Software Engineer
T. Eaton Consulting, Inc.