[All]
Web Run works, but choosing Run | Run Project fails and the Tomcat docBase variable is not correctly set.
By: Christopher Moeller
Abstract: Using the Project Options for JSP/Servlet to configure the Runtime Configuration to use the .JSP/.SHTML file
Question:
|
Using Web Run seems to work, but when I attempt to run my JSP/servlet in the IDE using the run button (Run | Run Project), it fails to start. I notice also that the docBase parameter for Tomcat is empty. How is this resolved?
|
| |
Answer:
|
Tomcat may need to be configured before you are able to run your JSP/Servlet in this way. To do this, right-click on your project file in the Project Pane and choose: Properties | Run | JSP/Servlet. Please be aware that the TAB that you select under the Run tab indicates to the IDE the type of project you are attempting to run.
Now, within this dialogue, click on the ellipsis button to the right of the text that states, "Start file/class:" Use the Explorer to navigate to your .JSP/.SHTML file and select it. Now, save your project and attempt to run it again. You should notice in the message log that your docBase variable is now correctly set.
|
| |
Connect with Us