Problem running Tomcat/JSP app from IntelliJ...
I have a very simple JSP based application that doesn't work when I run it from within IntelliJ, but does work when I deploy it to Tomcat.
The problem is that none of the JSP pages are getting processed. They are getting treated as straight HTML.
So for example, I have a page that retrieves some parameters and simplly displays them. For example:
News Portal
Welcome to the News Portal ${param.name}
Please sign in to leave a comment.
Is this a java module or a web module?
R
It is a web module.
Michael - is this straight JSP? Probably just my ignorance but I'm not seeing anything that would provide ${param.name} with a value. Also I'd usually write something like <%= paramName %> or <jsp:getProperty name="paramName">, I'm assuming the ${param.name} is just another way of doing things but having never done it that way I'm wondering if that is causing the problem with IDEA?
Michael Burbidge wrote on 03/09/05 03:52:
Sounds like you're missing JSTL libraries/jars from the
tomcat/application classpath when running under IDEA.
I'd check your project/module path/jar settings, and optionally the
tomcat application server settings...
The jstl.jar and standard.jar both show up in the project hierarchy under Libraries. They also show up in the hierarchy under lib, that is they are part of the web application.
Also if I opend the Run/Debug Configurations dialog and select the Deployment tab and then select my web module in the left pane and then on the right select the expanded drop down and the configure button this brings up a new dialog titled modules. I select the web module settings tab. Both jstl.jar and standard.jar show up in the middle section under "modules and libraries to package"
I'm not sure where else to try and configure the class path for my web application.
I noticed that when I run this web application from within IDEA the Tomcat log reports the following errors:
INFO: Processing Context configuration file URL file:/Users/mburbidg/Library/Caches/IntelliJIDEA50/tomcat_Ex2_a2c72f0b/conf/Catalina/localhost/Ex2.xml
Sep 5, 2005 9:22:58 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /balancer from URL file:/usr/local/jakarta-tomcat-5.0.28/webapps/balancer
Sep 5, 2005 9:22:58 AM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Sep 5, 2005 9:22:58 AM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
They're the new JSTL tags, which look as if the designer was a closet FreeMarker user! :)