troubleshooting Question

class not found exception

Avatar of priyapratheep
priyapratheep asked on
JavaJSPJava EE
33 Comments1 Solution1707 ViewsLast Modified:
i have one jsp program when i run that program i am getting error of class not found exception...

all classes are there and when i run the program as stand alone java program it is working fine.i ried to call from a jsp or as a jsp program i am getting following error'


root cause


my program
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
<%@page language="java"

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
      try {
            SapConnectionBean mysap = new SapConnectionBean();
   client = mysap.getSAPConnection();
   mRepository = new
                        "ARAsoft", client);

            StringBuffer stringbuffer = new StringBuffer();

   function = mysap.createFunction(
                        mRepository, "Z_BC_LABEL");

            out.println("SUCC YOU GOT CONN");
    tableList = function.getTableParameterList().getTable("ZBAR");
            String s3 = "\t";
            stringbuffer.append("vbeln" + s3);
            stringbuffer.append("uecha" + s3);
            stringbuffer.append("kdmat" + s3);
            stringbuffer.append("lifmg" + s3);
            stringbuffer.append("bstkd" + s3);
            stringbuffer.append("groes" + s3);
            stringbuffer.append("name1" + s3);
            stringbuffer.append("lfdat" + s3);

            stringbuffer.append("posnr" + s3);
            stringbuffer.append("lifmg  bstkd " + "\n");
      if (tableList.getNumRows() > 0)
                  do {
                        for ( fI = tableList.fields(); fI.hasMoreElements();
                        stringbuffer.append(tabField.getString()+ s3))
                              tabField = fI.nextField();

                  } while (tableList.nextRow());
                  System.out.println("sorry no records...better luck next time");
      } catch (Exception e) {
            out.println("error" + e);

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 33 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 33 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros