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 replies to this topic
#1
Posted 01 July 2011 - 05:39 AM
|
|
|
#2
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".
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
Posted 01 July 2011 - 12:25 PM
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


Sign In
Create Account

Back to top









