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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Oracle Community by 807581, 1 year ago
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
via Oracle Community by 3004, 1 year ago
Unable to compile class for JSPC:\jakarta\jakarta-tomcat-3.2.1\work\localhost_8080%2Fexamples\_0002fjsp_0002ftest_00032_0002fMyProject_00031_0005fhtml_0002fmain_0002ejspmain_jsp_0.java:16: Package oracle.jbo not found in import. import oracle.jbo
via Oracle Community by 843835, 1 year ago
Unable to compile class for JSPC:\tomcat\intomcat\work\localhost_8080%2Fexamples\_0002fsendhojayar_0002ejspsendhojayar_jsp_0.java:13: Package javax.mail not found in import. import javax.mail.*; ^ C:\tomcat\intomcat\work\localhost_8080%2Fexamples
via Oracle Community by 843835, 1 year ago
Unable to compile class for JSPC:\Program Files\jakarta-tomcat-3.2.4\work\localhost_8080\_0002fsimpleMail_0002ejspsimpleMail_jsp_0.java:65: Class Properties not found. Properties props = new Properties(); ^ C:\Program Files\jakarta-tomcat-3.2.4\work
via Google Groups by wK, 1 month ago
Unable to compile class for JSPC:\tomcat\work\localhost_8080\_0002fjspsmartupload_0002fjsp_0002fsample_0 0032_0002ejspsample2_jsp_0.java:15: Package com.jspsmart.upload not found in import. import com.jspsmart.upload.*; ^ 1 error
via Google Groups by wK, 2 years ago
Unable to compile class for JSPC:\tomcat\work\localhost_8080\_0002fjspsmartupload_0002fjsp_0002fsample_0 0032_0002ejspsample2_jsp_0.java:15: Package com.jspsmart.upload not found in import. import com.jspsmart.upload.*; ^ 1 error
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(Compiler.java:282)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at java.lang.Thread.run(Thread.java:534)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.