Enviornment :i am deploying my war file on jboss-5.1.0, server.

My JSP code :

<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page  import="java.sql.Connection,java.sql.CallableStatement,javax.naming.*,java.util.*,dataMining.Brige;"%>
<%!

public void jspInit()
{
 
Connection conn = null;
 
String sql = "";
 
CallableStatement stmt = null;

   
try
   
{
         
System.out.println("[REquesting for connection...");
         conn
= Brige.getConnection(2);
         sql
= "{ Call GET_SLNT_NOS(?) } ";
         
System.out.println("Calling SP " + sql);
         stmt
.setString(1,"Hello");
         stmt
= conn.prepareCall(sql);
         stmt
.execute();
         
System.out.println("Loaded **** JSP");

   
} catch (Exception ex) {
       
System.out.println("Error:"+
                ex
.getMessage());
   
}
}
public void jspDestroy() {
}
%>

 

 

"Brige" file is present in WEB-INF/lib/dataMining directory,But still getting above mentioned error,please help This is my Brige.java file

package dataMining;
import java.sql.Connection;
public class Brige
{
 
Util u = new Util();

   
public static Connection getConnection(int id) throws Exception {
 
return Util.getConnection(id);
}
}

 

Error Code stack trace is When i access this application from client side browser getting error Only a type can be imported. dataMining.Brige resolves to a package

Stacktrace:
    at org
.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
    at org
.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
    at org
.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)
    at org
.apache.jasper.compiler.Compiler.compile(Compiler.java:335)
    at org
.apache.jasper.compiler.Compiler.compile(Compiler.java:313)
    at org
.apache.jasper.compiler.Compiler.compile(Compiler.java:300)
    at org
.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:585)
    at org
.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312)
    at org
.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
    at org
.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
    at javax
.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org
.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org
.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
    at org
.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org
.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
    at org
.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
    at org
.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
    at org
.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
    at org
.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org
.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org
.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
    at org
.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org
.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
    at org
.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
    at org
.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
    at org
.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java
.lang.Thread.run(Thread.java:619)

 

My Web.xml

<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/dtd/web-app_2_2.dtd">

<web-app>
<error-page>
<error-code>500</error-code>
<location>/error.html</location>
</error-page>


</web-app>

i am getting same error,if i use import statement in separate line, and I think no need to import Util class,as i am not using this in my jsp,But still i import this then still i am getting same error

How can i solve this problem