Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Problem with JSP while using JBOSS
Problem with JSP while using JBOSS [message #179791] Mon, 25 September 2006 06:41 Go to next message
Eclipse User
Originally posted by: rajivkrpoddar.gmail.com

I created a dynamic web project with servlets and jsp pages in latest
Eclipse. When I try to run the project on server (JBOSS v4), I get the
following error -

org.apache.jasper.JasperException: Unable to compile class for JSP

Here, the servlets run without any problem. The error comes only while
accessing jsp files. Even when I try to deploy the project on Tomcat
server, it runs well.
Re: Problem with JSP while using JBOSS [message #179833 is a reply to message #179791] Mon, 25 September 2006 11:07 Go to previous messageGo to next message
Eclipse User
Originally posted by: wknauf_NO_._INSIDE_hg-online.de

Hi Rajiv,

one guess: do you need Java5 features in your JSPs ? JBoss 4 initially only
supports Java 1.4 language features, there is one config parameter which
activates Java 1.5.

Hope this helps

Wolfgang

Rajiv Poddar schrieb:
> I created a dynamic web project with servlets and jsp pages in latest
> Eclipse. When I try to run the project on server (JBOSS v4), I get the
> following error - org.apache.jasper.JasperException: Unable to
> compile class for JSP
>
> Here, the servlets run without any problem. The error comes only while
> accessing jsp files. Even when I try to deploy the project on Tomcat
> server, it runs well.
>
Re: Problem with JSP while using JBOSS [message #180037 is a reply to message #179833] Wed, 27 September 2006 05:29 Go to previous messageGo to next message
Eclipse User
Originally posted by: rajivkrpoddar.gmail.com

Thanks for replying, Wolfang.
Though my jsp page doesn't include any java5 faeture, I'd set that config
parameter. Could you please tell me what is that parameter and where and
how can I set that?

Thanks,
Re: Problem with JSP while using JBOSS [message #180061 is a reply to message #180037] Wed, 27 September 2006 09:46 Go to previous message
Eclipse User
Originally posted by: wknauf_NO_._INSIDE_hg-online.de

Hi Rajiv,

the parameter can be found in
"\server\default\deploy\jbossweb-tomcat55.sar\conf\web.xml".

Search this line and uncomment it:
<!-- Uncomment to use jdk1.5 features in jsp pages
<init-param>
<param-name>compilerSourceVM</param-name>
<param-value>1.5</param-value>
</init-param>
-->

Do you see any stacktrace with the Jasper exception ? Either as an errorpage in
your browser or in the servers log ?

Best regards

Wolfgang

Rajiv Poddar schrieb:
> Thanks for replying, Wolfang.
> Though my jsp page doesn't include any java5 faeture, I'd set that
> config parameter. Could you please tell me what is that parameter and
> where and how can I set that?
>
> Thanks,
>
Previous Topic:Adding plugin provided JSP template
Next Topic:Automatic Server Restart / reloadable="false"
Goto Forum:
  


Current Time: Mon Jul 28 04:26:37 EDT 2014

Powered by FUDForum. Page generated in 0.02205 seconds