org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated. C:\jakarta-tomcat-3.2.4\work\localhost_8080%2Fpegasus\_0002fjsp_0002fmain_0002ejspmain_jsp_0.java:17: Package com.mgtplc.webcrm.controllers not found in import. import com.mgtplc.webcrm.controllers.*; ^ C:\jakarta-tomcat-3.2.4\work\localhost_8080%2Fpegasus\_0002fjsp_0002fmain_0002ejspmain_jsp_0.java:18: Package com.mgtplc.webcrm.utils not found in import. import com.mgtplc.webcrm.utils.*; ^ C:\jakarta-tomcat-3.2.4\work\localhost_8080%2Fpegasus\_0002fjsp_0002fmain_0002ejspmain_jsp_0.java:19: Package com.mgtplc.diary not found in import. import com.mgtplc.diary.*; ^ C:\jakarta-tomcat-3.2.4\work\localhost_8080%2Fpegasus\_0002fjsp_0002fmain_0002ejspmain_jsp_0.java:20: Package com.mgtplc.login not found in import. import com.mgtplc.login.*; ^ C:\jakarta-tomcat-3.2.4\work\localhost_8080%2Fpegasus\_0002fjsp_0002fmain_0002ejspmain_jsp_0.java:21: Package com.mgtplc.login.conf not found in import. import com.mgtplc.login.conf.*; ^ C:\jakarta-tomcat-3.2.4\work\localhost_8080%2Fpegasus\_0002fjsp_0002fmain_0002ejspmain_jsp_0.java:22: Package com.mgt.web.util not found in import. import com.mgt.web.util.*; ^ 6 errors, 1 warning

Oracle Community | 807581 | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecat

    Oracle Community | 1 decade ago | 807581
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated. C:\jakarta-tomcat-3.2.4\work\localhost_8080%2Fpegasus\_0002fjsp_0002fmain_0002ejspmain_jsp_0.java:17: Package com.mgtplc.webcrm.controllers not found in import. import com.mgtplc.webcrm.controllers.*; ^ C:\jakarta-tomcat-3.2.4\work\localhost_8080%2Fpegasus\_0002fjsp_0002fmain_0002ejspmain_jsp_0.java:18: Package com.mgtplc.webcrm.utils not found in import. import com.mgtplc.webcrm.utils.*; ^ C:\jakarta-tomcat-3.2.4\work\localhost_8080%2Fpegasus\_0002fjsp_0002fmain_0002ejspmain_jsp_0.java:19: Package com.mgtplc.diary not found in import. import com.mgtplc.diary.*; ^ C:\jakarta-tomcat-3.2.4\work\localhost_8080%2Fpegasus\_0002fjsp_0002fmain_0002ejspmain_jsp_0.java:20: Package com.mgtplc.login not found in import. import com.mgtplc.login.*; ^ C:\jakarta-tomcat-3.2.4\work\localhost_8080%2Fpegasus\_0002fjsp_0002fmain_0002ejspmain_jsp_0.java:21: Package com.mgtplc.login.conf not found in import. import com.mgtplc.login.conf.*; ^ C:\jakarta-tomcat-3.2.4\work\localhost_8080%2Fpegasus\_0002fjsp_0002fmain_0002ejspmain_jsp_0.java:22: Package com.mgt.web.util not found in import. import com.mgt.web.util.*; ^ 6 errors, 1 warning
  2. 0

    PoolMan 2.0

    Google Groups | 2 decades ago | Christian
    org.apache.jasper.JasperException: Unable to compile class for JSP/usr/local/tomcat/webapps/testdb/WEB-INF/classes/com/codestudio/util/SQLManager.java:23: Package javax.management not found in import. import javax.management.*; ^ /usr/local/tomcat/webapps/testdb/WEB-INF/classes/com/codestudio/util/SQLManager.java:24: Class javax.sql.DataSource not found in import. import javax.sql.DataSource; ^ /usr/local/tomcat/webapps/testdb/WEB-INF/classes/com/codestudio/sql/PoolManDataSource.java:22: Package javax.sql not found in import. import javax.sql.*; ^ /usr/local/tomcat/webapps/testdb/WEB-INF/classes/com/codestudio/sql/PoolManDataSource.java:30: Interface com.codestudio.sql.ConnectionPoolDataSource of class com.codestudio.sql.PoolManDataSource not found. public class PoolManDataSource extends Reference ^ /usr/local/tomcat/webapps/testdb/WEB-INF/classes/com/codestudio/sql/PoolManDataSource.java:30: Interface com.codestudio.sql.XADataSource of class com.codestudio.sql.PoolManDataSource not found. public class PoolManDataSource extends Reference ^ /usr/local/tomcat/webapps/testdb/WEB-INF/classes/com/codestudio/sql/PoolManDataSource.java:31: Interface javax.sql.DataSource of class com.codestudio.sql.PoolManDataSource not found. implements DataSource, ConnectionPoolDataSource, XADataSource { ^ /usr/local/tomcat/webapps/testdb/WEB-INF/classes/com/codestudio/management/PoolManBootstrap.java:25: Package javax.management not found in import. import javax.management.*; ^ /usr/local/tomcat/webapps/testdb/WEB-INF/classes/com/codestudio/management/PoolManBootstrap.java:26: Package javax.management.loading not found in import. import javax.management.loading.*; ^ 8 errors
  3. 0

    redirecting tomcat ROOT problems...

    Google Groups | 1 decade ago | AJ
    org.apache.jasper.JasperException: Unable to compile class for JSP/tomcat/work/localhost_8080/_0002flogin_0002ejsplogin_jsp_0.java:13: Package com.citrix.nfuse not found in import. import com.citrix.nfuse.*; ^ 1 error
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable to use Jakarta JSTL taglibs with JBuilder/Tomcat

    Google Groups | 1 decade ago | Romeo Guastaferri
    org.apache.jasper.JasperException: Unable to open the tag library descriptor java.sun.com Unable to open taglibrary /WEB-INF/tld/c.tld : Unable to open the tag library descriptor java.sun.com at line XXX I was a bit puzzled by this compilation error message. Again with java.sun.com !! Looking deeper into this, I noticed the following DOCTYPE declaration inside of c.tld: <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"> I got to thinking that maybe the compiler couldn't open the dtd file from java.sun.com. So I tried getting the file myself, installed it under /WEB-INF/dtd, and changing the DOCTYPE declaration inside of c.tld : <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "C:/MyApp/WEB-INF/dtd/web-jsptaglibrary_1_2.dtd"> That actually got the compilation to proceed without error ! However, I DID get a truckload of compiler warnings... Warning: Unknown element tlib-version in TLD Warning: Unknown element jsp-version in TLD Warning: Unknown element short-name in TLD Warning: Unknown element display-name in TLD Warning: Unknown element description in TLD Warning: Unknown element validator in TLD ...and so on... Plus a bunch of Warning #: 368 : variable EVAL_BODY_TAG in interface javax.servlet.jsp.tagext.BodyTag has been deprecated at line XXX Now, when I try to run this thing and access my JSP page which contains the tags: <c:if test="${1 < 2}"> hello world ! </c:if> I get the following runtime errors: Warning: validation was turned on but an org.xml.sax.ErrorHandler was not set, which is probably not what is desired. Parser will use a default ErrorHandler to print the first 10 errors. Please call the 'setErrorHandler' method to fix this. Error: URI=null Line=2: Element type "web-app" is not declared in the dtd or schema. Error: URI=null Line=3: Element type "context-param" is not declared in the dtd or schema. Error: URI=null Line=4: Element type "param-name" is not declared in the dtd or schema. Error: URI=null Line=5: Element type "param-value" is not declared in the dtd or schema. Error: URI=null Line=7: Element type "servlet" is not declared in the dtd or schema. Error: URI=null Line=8: Element type "servlet-name" is not declared in the dtd or schema. Error: URI=null Line=9: Element type "display-name" is not declared in the dtd or schema. Error: URI=null Line=10: Element type "jsp-file" is not declared in the dtd or schema. Error: URI=null Line=12: Element type "servlet" is not declared in the dtd or schema. Error: URI=null Line=13: Element type "servlet-name" is not declared in the dtd or schema. 2002-07-19 16:42:11 - Warning: Unknown element tlib-version in TLD 2002-07-19 16:42:11 - Warning: Unknown element jsp-version in TLD 2002-07-19 16:42:11 - Warning: Unknown element short-name in TLD 2002-07-19 16:42:11 - Warning: Unknown element display-name in TLD 2002-07-19 16:42:11 - Warning: Unknown element description in TLD 2002-07-19 16:42:11 - Warning: Unknown element validator in TLD The error that gets reported in the Web browser is: Error: 500 Location: /CSAWeb/CSAWeb Internal Servlet Error: org.apache.jasper.compiler.CompileException: C:\jbproject\CSA\jsp\CSAWeb.jsp(77,8) Unable to load class null
  6. 0

    Tomcat Configuration??

    Google Groups | 2 decades ago | John Gamble
    org.apache.jasper.JasperException: Cannot find any information on property 'PicImages' in a bean of type 'GenerateArticleBean'

  1. treefolk 6 times, last 1 month ago
  2. Andreas Häber 1 times, last 4 months ago
  3. Justin 2 times, last 7 months ago
  4. abrazeneb 4 times, last 8 months ago
  5. andyglick 12 times, last 6 months ago
1 more registered users
71 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.apache.jasper.JasperException

    Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated. C:\jakarta-tomcat-3.2.4\work\localhost_8080%2Fpegasus\_0002fjsp_0002fmain_0002ejspmain_jsp_0.java:17: Package com.mgtplc.webcrm.controllers not found in import. import com.mgtplc.webcrm.controllers.*; ^ C:\jakarta-tomcat-3.2.4\work\localhost_8080%2Fpegasus\_0002fjsp_0002fmain_0002ejspmain_jsp_0.java:18: Package com.mgtplc.webcrm.utils not found in import. import com.mgtplc.webcrm.utils.*; ^ C:\jakarta-tomcat-3.2.4\work\localhost_8080%2Fpegasus\_0002fjsp_0002fmain_0002ejspmain_jsp_0.java:19: Package com.mgtplc.diary not found in import. import com.mgtplc.diary.*; ^ C:\jakarta-tomcat-3.2.4\work\localhost_8080%2Fpegasus\_0002fjsp_0002fmain_0002ejspmain_jsp_0.java:20: Package com.mgtplc.login not found in import. import com.mgtplc.login.*; ^ C:\jakarta-tomcat-3.2.4\work\localhost_8080%2Fpegasus\_0002fjsp_0002fmain_0002ejspmain_jsp_0.java:21: Package com.mgtplc.login.conf not found in import. import com.mgtplc.login.conf.*; ^ C:\jakarta-tomcat-3.2.4\work\localhost_8080%2Fpegasus\_0002fjsp_0002fmain_0002ejspmain_jsp_0.java:22: Package com.mgt.web.util not found in import. import com.mgt.web.util.*; ^ 6 errors, 1 warning

    at org.apache.jasper.compiler.Compiler.compile()
  2. GWT dev
    JspServlet.service
    1. org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
    2. org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
    3. org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
    4. org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
    5. org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
    6. org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
    7. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
    8. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
    8 frames
  3. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    1 frame
  4. org.apache.tomcat
    TcpWorkerThread.runIt
    1. org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
    2. org.apache.tomcat.core.Handler.service(Handler.java:287)
    3. org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
    4. org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)
    5. org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
    6. org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
    7. org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
    7 frames
  5. Tomcat Util
    ThreadPool$ControlRunnable.run
    1. org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
    1 frame
  6. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:534)
    1 frame