error "valide index.jsp file"
Hello.
I created a simple maven project that contains a basic index.jsp file with the IDE IntelliJ IDEA
when I click on "valide index.jsp file"
I get the error:
Error:org.apache.jasper.JasperException: The -uriroot option must specify a pre-existing directory
1) what is the operation " valide index.jsp file" ?
2) that caused the error and how to fix this ?
Thank you
Please sign in to leave a comment.
What packaging is used for your Maven project? Is that a web project?
In a properly configured Maven web project with war packaging and a JSP file located in src/main/webapp directory this action will run Jasper validator that will try to compile the JSP into bytecode and will report any errors that could occur during compilation.
Yes I do . This project is created with maven-archetype-webapp
the packaging used is: war
This project contains default file: index.jsp that exists in src/main/webapp
I have not added anything more to the project created by IntelliJ 15
then ; I click "valide index.jsp file" and I get the following error :
Error:org.apache.jasper.JasperException: The -uriroot option must specify a pre-existing directory
Please attach a project to reproduce.
the projet attached
Attachment(s):
FolderProjet.rar.zip
Validation works against target folder which may not exist yet.
Do a build of the project, either via Maven or Buld | Build Artifacts for a war artifact. Once target folder is created, validation will work.
yes
thank you