Web Module

version 1071 ... how do I add my html, xml, jsps to the project? Do I have
to create a new module. If so which one and how. In the previous version
it was very straightfoward. I am not running an application server. I just
want to be able to edit jsps, xml, etc.

Thanks.
Michael



4 comments
Comment actions Permalink

It's all changed. Some may say it's more complicated now. I'd say it's cleaner the way it is.

Have a look at the web module tutorial at http://www.intellij.org/twiki/bin/view/Main/WebModules or visit the J2EE forum and search for "web module".

And yes, you'll have to make a web module to edit your jsps.

0
Comment actions Permalink

It's all changed. Some may say it's more complicated
now. I'd say it's cleaner the way it is.


It's only complicated until you've successfully created one or two projects. After having gained some experience you will LOVE it!

0
Comment actions Permalink

Martin Fuhrer wrote:

>>It's all changed. Some may say it's more complicated
>>now. I'd say it's cleaner the way it is.


It's only complicated until you've successfully created one or two projects. After having gained some experience you will LOVE it!


I see it's contageous! Now you 'get' (no pun intended) why I love it so
much :)

The new tutorial definitely helps.

R

0
Comment actions Permalink

I tried the Web module tutorial at

http://www.intellij.org/twiki/bin/view/Main/WebModules

and "HelloServlet" works but the hello.jsp returns the error below: "org.apache.jasper.JasperException: Unable to compile class for JSP".

I am using a clean install of Tomcat 5.0.16 (and IDEA build 1108), and I cannot see what has gone wrong. The jsps for Tomcat jsp-examples work fine. Also, if I use the Tomcat manager to deploy the SampleWebApp.war file manually, then hello.jsp works fine (but with the URL beginning /SampleWebApp rather than /examples). Can anyone help?



HTTP Status 500 -

-



type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:587)
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:177)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


root cause

java.lang.IllegalArgumentException
sun.net.www.ParseUtil.decode(ParseUtil.java:155)
sun.misc.URLClassPath$FileLoader.(URLClassPath.java:857)
sun.misc.URLClassPath$3.run(URLClassPath.java:315)
java.security.AccessController.doPrivileged(Native Method)
sun.misc.URLClassPath.getLoader(URLClassPath.java:309)
sun.misc.URLClassPath.getLoader(URLClassPath.java:286)
sun.misc.URLClassPath.getResource(URLClassPath.java:156)
java.net.URLClassLoader$1.run(URLClassLoader.java:191)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:187)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:192)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:110)
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:582)
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:177)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


note The full stack trace of the root cause is available in the Tomcat logs.

0

Please sign in to leave a comment.