Jump to content

Check out our Community Blogs

Register and join over 40,000 other developers!

Recent Status Updates

View All Updates

- - - - -

[Servlets/JSP] - No META-INF directory


  • Please log in to reply
2 replies to this topic

#1 skiabox


    CC Lurker

  • Just Joined
  • Pip
  • 3 posts

Posted 01 July 2011 - 05:39 AM

I am reading murach's book about jsp and servlets.
He uses netbeans(I am using intellij idea) and I am at a point when he uses the META-INF folder that netbeans creates to save a context.xml file there that contains a Resource tag with information about a connection pool.
The problem is that intellij idea projects do not contain such a folder.
What should I do?
Thank you!
  • 0

#2 wim DC

wim DC


  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 2681 posts
  • Programming Language:Java, JavaScript, PL/SQL
  • Learning:Python

Posted 01 July 2011 - 06:15 AM

Under the 'webapp' folder you can safely create a META-INF folder, it will be in the final war. (META-INF should be at the same level as the WEB-INF which is allready there normally).

If, for some weird reason, the meta-inf doesn't seem to make it to the war when you package/build/run, then open project settings, go to artifact. There are usually 1 or 2 (exploded and not exploded) wars.
Drag the top of the tree structure of the right screen to the left screen.

In case intelliJ shows errors at the bottom of this window, it's usually enough to click the error and choose "fix".
  • 0

#3 skiabox


    CC Lurker

  • Just Joined
  • Pip
  • 3 posts

Posted 01 July 2011 - 12:25 PM

I created the whole thing by hand and it worked fine!
  • 0

Also tagged with one or more of these keywords: servlet

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download