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}

7 comments
Comment actions Permalink

Is this a java module or a web module?

R

0
Comment actions Permalink

It is a web module.

0
Comment actions Permalink

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?

0
Comment actions Permalink

Michael Burbidge wrote on 03/09/05 03:52:

<body> <h1>Welcome to the News Portal ${param.name}</h1> </body>
</html>

Instead of evaluating ${param.name}, and display the value, the page
displays "${param.name}" when this app is run from within IntelliJ.

I'm sure that something is not set up correctly. Can anyone give me a
pointer?



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...

0
Comment actions Permalink

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.

0
Comment actions Permalink

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

0
Comment actions Permalink

They're the new JSTL tags, which look as if the designer was a closet FreeMarker user! :)

0

Please sign in to leave a comment.