-
1. Re: Creating and executing simple jsp page
peterj Oct 4, 2011 10:18 AM (in response to jsulik)The registration.jsp file should be in the base directory of the war, not within WEB-INF/classes. Files within WEB-INF and not accessible via URL.
Based on your pom.xml, I suspect that you did not create a web app project. Your JSP should be at src/main/webapp/registration.jsp. Then if the packaging type in the pom.xml is war, the WAR file will contain the JSP in the correct location. This is just a guess based on the WAR file contents, I would really need to see the complete pom.xml to know better.
-
2. Re: Creating and executing simple jsp page
jsulik Oct 4, 2011 11:17 AM (in response to peterj)Thanks for the quick resonse. I am using WAR as the packaging type and I moved the jsp to src/main/webapp/registration.jsp as you suggested.
I also updated my compile script to use the parameter -DarchetypeArtifactId=maven-archetype-webapp.
It's still compiling the jsp to the WEB-INF/classes folder though so I'm still missing something.
I attached the full pom.xml for review.
-
pom.xml 4.1 KB
-
-
3. Re: Creating and executing simple jsp page
jsulik Oct 4, 2011 12:53 PM (in response to jsulik)It's working!! I had pom.xml in the src folder. I moved it back one directory and it compiled correctly.
Thanks!