• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Unable to compile jsp's

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi everybody,

This is the error i am getting in jboss while i try to run a jsp file named AddConstraint.jsp. can some one help me what to do.
i am using jboss3.2.5.

try.ear
|
- try.war
|
- Addconstraint.jsp


D:\jboss-3.2.5\server\default\work\jboss.web\localhost\try\org\apache\jsp\AddConstraint_jsp.java:173:
handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to java.lang.Throwable)
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
^
1 error

15:58:43,218 ERROR [Engine] StandardWrapperValve[jsp]: Servlet.service() for ser
vlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
D:\jboss-3.2.5\server\default\work\jboss.web\localhost\try\org\apache\jsp\AddCon
straint_jsp.java:173: handlePageException(java.lang.Exception) in javax.servlet.
jsp.PageContext cannot be applied to (java.lang.Throwable)
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t
);
^
1 error



at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErro
rHandler.java:84)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher
.java:332)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext
.java:511)
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you post your JSP code?
 
Chandra S Marappa
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The following is the error i am getting in the browser.

Server Error
org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: D:\jboss-3.2.5\server\default\work\jboss.web\localhost\try\org\apache\jsp\index_jsp.java:116: handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable) if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); ^ 1 error Unable to compile class for JSP Generated servlet error: D:\jboss-3.2.5\server\default\work\jboss.web\localhost\try\org\apache\jsp\index_jsp.java:116: handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable) if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); ^ 1 error


The source of the jsp file nothing except html tags. infact the jsp file is a simple html file saved as jsp containing one line at the top as follows.

<%@ page language="java" import="java.lang.*;" %>


This is my first application in jboss, help me out in configuring the application, what are the settings that has to be done.


Thank you,

Chandru
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And, have you tried removing that tag?
If it blows up with absolutly no JSP in it, it's probably safe to assume that JBoss is misconfigured.
 
Chandra S Marappa
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have not tried it, will try it today. if that does not work, what has to be done, ie. what is the configuration that has to be done in jboss so that it works correctly.

waiting for the same.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Chandra Shekar marappa:
i have not tried it, will try it today. if that does not work, what has to be done, ie. what is the configuration that has to be done in jboss so that it works correctly.



Well, I guess that would depend on whether or not JBoss was misconfigured and what configuration, exactly, is amiss.

My point is that, if a JSP with nothing but HTML code can't be compiled, then there is something wrong with the installation of the server.
It could also be that the application wasn't deployed correctly.

Nobody on a forum is going to be able to debug or fix this for you.
Look at your logs and see if there are any errors being generated.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If it does turn out to be a misconfiguration, you might want to take the question to the JBoss forum on this site. The people who frequent this list are using all kinds of different servers. Many (myself included) have never touched JBoss.
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moved to the JBoss forum.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Am getting the same error for a simple jsp containing only html tags. Tried copying different versions of servlet.jar, but still no luck. Any suggestions would be appreciated.

thanks,
jj
 
reply
    Bookmark Topic Watch Topic
  • New Topic