Jump to content

[Servlets/JSP] - No META-INF directory

- - - - -

  • Please log in to reply
2 replies to this topic

#1
skiabox

skiabox

    Newbie

  • Members
  • Pip
  • 3 posts
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!

#2
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,084 posts
  • Programming Language:Java, JavaScript, PL/SQL
  • Learning:Java
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".

#3
skiabox

skiabox

    Newbie

  • Members
  • Pip
  • 3 posts
I created the whole thing by hand and it worked fine!




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users