IDEA 4.5 deployment problem

Hi everyone,

I'm currently moving a project from Eclipse 3.0 to IDEA 4.5. I create a new project with a web module inside it and copy the WEB-INF folder under Eclipse to the newly-created WEB-INF folder under Intellij. IDEA shows the new contents under WEB-INF folder:

/WEB-INF
|_classes
|_conf
|_lib
|_struts-config.xml
|_..
|_web.xml

However, I switch to J2EE view -> Deployment view, I only see the following structure of the WEB-INF folder:

/WEB-INF
|_classes
|_lib
|_web.xml

So IDEA has stripped off a whole bunch of files from the original WEB-INF folder when deploying the project. I've tried to search this forum for hours but couldn't sort out the problem.

Anyone has experience with this problem please help?

Regards,

9 comments
Comment actions Permalink

Anyone? Very urgently! I have to convince my to switch from Eclipse to IDEA!

0
Comment actions Permalink

climbingrose wrote:

Anyone? Very urgently! I have to convince my to switch from Eclipse
to IDEA!


Got to Project Settings -> Paths -> Web Module Settings.
You will see, that everything in "Modules and Libraries to Package" is
marked
as "Do not package". Change that to "Copy directories to" for the thins
you'd
like to deploy and that's it.

Greetings

Marc Salm


0
Comment actions Permalink

Thanks a lot! I've got it! However, I still have a problem with web.xml. It shows "Element taglib is not allowed here"!!! Any ideas?

0
Comment actions Permalink

climbingrose wrote:

Thanks a lot! I've got it! However, I still have a problem with web.xml. It shows "Element taglib is not allowed here"!!! Any ideas?

Please check version of the DTD your web.xml refers to.

--
Maxim Shafirov
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

The version of DTD file is 2.4.

0
Comment actions Permalink

The version of DTD file is 2.4.


You'll almost certainly need to change your web.xml for version 2.4 to have
the taglib definitions within a "jsp-config" element. We just had this
issue. That is you need:

.. .. ]]>

Not sure when this change happened (I think between 2.3 and 2.4). If you
already have the "jsp-config" tags then it must be a different problem!

Cheers,

TicH


0
Comment actions Permalink

Thank you very much! It's sorted out!

0
Comment actions Permalink

The problem now is I can't initilise any servlet. I tried to strip off most part of the module. There's now only a form and its corresponding action but I still get errors:

javax.servlet.ServletException: Servlet.init() for servlet action threw exception
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:805)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:696)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
java.lang.Thread.run(Thread.java:534)


root cause

I attached the stripped off version of the project here. It's only 0.5M. The struts-config file is in /WEB-INF/conf. I didn't put struts library inside /WEB-INF/lib folder. If you kindly want to help me, please copy struts 1.1 lib into this folder. Thanks a lot!

0
Comment actions Permalink

Sorry, I forgot to attach the file!



Attachment(s):
SQASystem.rar
0

Please sign in to leave a comment.