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!
Personally when creating a new project (even for IntelliJ) I always prefer to use Maven's archetypes but that's just me.
You should be able to just create the directory (in the root of the src) and define it as a Source directory in the Project Settings. I'm going to fire up IntelliJ myself to see if this is correct.
Last edited by blaurent; July 1st, 2011 at 10:08 AM.
Reason: I meant Source directory, not Resource directory.
Ok so the Maven Archetype I use does not create the META-INF folder. All you need to do is create the directory in the src directory and include it as a source in your module (Ctrl-alt-shift-a, click on Modules, then on your module. In the sources tab (RHS) right click the META-INF folder and pick "Sources").
I think that the META-INF folder must be created in the web directory and not the src directory.
That is what netbeans do.(In fact murach uses in his books netbeans)
Correct me if I am telling somthing wrong.
Thank you again.
I think that the META-INF folder must be created in the web directory and not the src directory.
That is what netbeans do.(In fact murach uses in his books netbeans)
Correct me if I am telling somthing wrong.
Thank you again.
I'm actually not entirely sure so I'm hoping that somebody with more experience can help me out on this.
I believe that the WAR you generate includes all of the META-INF information since it is included as a source. When it is loaded/deployed into the web server it is extracted from the war and therefore the META-INF directory created.
No matter how far down the wrong road you have gone, turn back now...
Turkish proverb
Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.
Bookmarks