V
Vidhi Gupta
hello,
i'm using JSP on Tomcat 5.5.15 on WIN 2000 with jdk1.5.0.02 and Oracle
8i.i've the hierarchy of my project as : -
TOMCAT_HOME\webapps\testing\ConsLicResult.jsp
TOMCAT_HOME\webapps\testing\WEB-INF\classes\org\cris\prime\db\DBConnection.java
TOMCAT_HOME\webapps\testing\WEB-INF\classes\org\cris\prime\bl\ConsLicBl.java
whenever i'm compiling my ConsLicBl.java, it is generatind the
following errors as :
package org.cris.prime.db does not exist and cannot resolve symbol
class DBConnection
when i'm executing the ConsLicResult.jsp on localhost the following
error are coming :-
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
Only a type can be imported. org.cris.prime.bl.ConsLicBl resolves to a
package
An error occurred at line: 16 in the jsp file: /ConsLicResult.jsp
Generated servlet error:
ConsLicBl cannot be resolved to a type
An error occurred at line: 16 in the jsp file: /ConsLicResult.jsp
Generated servlet error:
ConsLicBl cannot be resolved to a type
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
Only a type can be imported. org.cris.prime.bl.ConsLicBl resolves to a
package
An error occurred at line: 16 in the jsp file: /ConsLicResult.jsp
Generated servlet error:
ConsLicBl cannot be resolved to a type
An error occurred at line: 16 in the jsp file: /ConsLicResult.jsp
Generated servlet error:
ConsLicBl cannot be resolved to a type
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:409)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
i'm unable to understand why these problems are coming.
Note:- i'd imported DBConnection.java in ConsLicBl.java and
ConsLicBl.java in ConsLicResult.jsp.
Kindly help.
Thanks & Regards,
Vidhi
i'm using JSP on Tomcat 5.5.15 on WIN 2000 with jdk1.5.0.02 and Oracle
8i.i've the hierarchy of my project as : -
TOMCAT_HOME\webapps\testing\ConsLicResult.jsp
TOMCAT_HOME\webapps\testing\WEB-INF\classes\org\cris\prime\db\DBConnection.java
TOMCAT_HOME\webapps\testing\WEB-INF\classes\org\cris\prime\bl\ConsLicBl.java
whenever i'm compiling my ConsLicBl.java, it is generatind the
following errors as :
package org.cris.prime.db does not exist and cannot resolve symbol
class DBConnection
when i'm executing the ConsLicResult.jsp on localhost the following
error are coming :-
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
Only a type can be imported. org.cris.prime.bl.ConsLicBl resolves to a
package
An error occurred at line: 16 in the jsp file: /ConsLicResult.jsp
Generated servlet error:
ConsLicBl cannot be resolved to a type
An error occurred at line: 16 in the jsp file: /ConsLicResult.jsp
Generated servlet error:
ConsLicBl cannot be resolved to a type
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
Only a type can be imported. org.cris.prime.bl.ConsLicBl resolves to a
package
An error occurred at line: 16 in the jsp file: /ConsLicResult.jsp
Generated servlet error:
ConsLicBl cannot be resolved to a type
An error occurred at line: 16 in the jsp file: /ConsLicResult.jsp
Generated servlet error:
ConsLicBl cannot be resolved to a type
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:409)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
i'm unable to understand why these problems are coming.
Note:- i'd imported DBConnection.java in ConsLicBl.java and
ConsLicBl.java in ConsLicResult.jsp.
Kindly help.
Thanks & Regards,
Vidhi