Java server page compiler can not find a class defined in a java bean file

I have a jsp file using java bean. The java bean class file is uploaded into the server and also the directory to this java bean .class file is included in the Unix environment CLASSPATH. This .jsp file is registered and should be compiled and excecuted automatically.
WHen I try to invoke this .jsp file, the jsp compiler error, saying the class defined by java bean can not be found. I already include this path in teh CLASSPATH, I thought the jsp compiler will go to the right place according to CLASSPATH to find the referenced class.
Can anyone tell me what I have done wrong or what should I do in order to allow jsp compiler to find the class refrenced by .jsp file and defined by java bean file?
Thank you so much

hello friends,
i am also facing the same problem of not finding bean class files for both jsp and servlet though it is placed in same package. the problem of not finding bean class file for jsp is experienced in Tomcat server only whereas in Blazix, there is no such error and the file is compiled and runs successfully.
i have checked Tomcat properly. there is no error in its configuration also servlets without the use of bean files run successfully. so please can anybody guide me about what is the problem and how to solve it. plz its urgent .

Similar Messages

  • Can not find Main Class - Can't Run Application

    I have at this for a while and it is drivng me crazy... I have an application that I want execute in a bat file. I have checked the runtime environment by executing java and javaw, both which give option on error messages. I have set the classpath to point too the class subdirectory. Here it is.., Every time I execute the bath file or execute the javaw command, I get the "Can not find main class" message.
    I am using XP ...
    Help please...
    Thanks for all your help.

    when you set the classpath I presume you mean that your running java or javaw as:
    javaw.exe -cp %classpath%;.;c:\library\myfiles com.mycomp.myapp.MainClassIf your using a jar then you must specify the jar in the class path.
    Don't presume it will find the jar. Other than that, you will have
    to provide more details.

  • Background callable object :  can not find this class name

    Hi All ,
                  I am following this tutorial link for creating background callable object
    http://help.sap.com/saphelp_nwce10/helpdata/en/9a/e8934258a5ca6ae10000000a155106/frameset.htm
    I have created java and enterprise application DC and deployed successfully. But while creating CO in design time when i am selecting application and entering class as com.examples.bckgco.UserDetailsCallableObject  for Implementation Class Name , and on click next i m getting exception as  "can not find this class name".       package and class name are correct still getting this excetpion message. Plz help me to resolve this solution.
    Regards
    Kavita

    Hi, kavita.
    First, make sure you choosed the correct container when you created the background CO.
    Second, make sure your package name was "com.examples.bckgco" and class name was "UserDetailsCallableObject". The exception  which you got just means you entered incorrect name.
    It doesn`t relate to your program.
    Best Regards.
    Louis Huang.

  • CAN NOT FIND MAIN CLASS

    Why after i have unzipped and edited the classes in the jar file and zipped them together again, it gives me the message "CAN NOT FIND MAIN CLASS"?
    This is after i have edited any class in the .jar zip.I did not edit the Manifest text file,can someone who has experienced this problem show me how to overcome it.
    Thank you.

    i think you have to read the "java tutorial on Jar files".
    i guess after you have exracted the .jar file then you've edited the ".class"(i dont know how you did it) but i think you mean ".java" you should create another .jar file to be able to reflect the changes you have made, then set the main-class attribute of the newly created .jar file.

  • Rmi and classloader: some server instances can not find the class on server

    Hi:
    I want to migrate my rmi applications from JDK 1.1 to JDK1.2.2. It exists in the following environments:
    - there is one authentication server and many application servers, all have binded in the main method
    - dynamic loading of the server stubs and interfaces is not used; they are local on the client.
    - security manager is enabled only on the server site and the policy file is created.
    - all server classes, stubs and interfaces are in the same directory on server site
    - the registry and the server are started as follows:
    unsetenv CLASSPATH
    rmiregistry 1103 &
    setenv CLASSPATH ~usr/serverDir:~oracle/jdbc/lib/classes12.zip
    java -Djava.rmi.server.codebase=file://~usr/serverDir/
    -Djava.rmi.server.hostname=myHost -Djava.security.manager myServer
    After starting the client, the rmi client connects to the server and the authentication request comes back with a list of applications.
    When the user chooses one of them, the rmi sends the request to thatapplication (e.g., OMSRmiServer_Stub). The application could not find the other class on the sever directory: (the authenication server can find the same class)
    java.lang.NoClassDefFoundError: JOMPrepStatement
    at java.lang.Class.getFields0(Native Method)
    at java.lang.Class.getFields0(Compiled Code)
    at java.lang.Class.getDeclaredFields(Compiled Code)
    at java.io.ObjectStreamClass$1.run(Compiled Code)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessController.doPrivileged(Compiled Code)
    at java.io.ObjectStreamClass.<init>(Compiled Code)
    at java.io.ObjectStreamClass.lookupInternal(Compiled Code)
    at java.io.ObjectStreamClass.lookup(Compiled Code)
    at java.io.ObjectStreamClass.lookupInternal(Compiled Code)
    at java.io.ObjectStreamClass.lookup(Compiled Code)
    at java.io.ObjectStreamClass.lookupInternal(Compiled Code)
    at java.io.ObjectStreamClass.lookup(Compiled Code)
    at java.io.ObjectStreamClass.lookupInternal(Compiled Code)
    at java.io.ObjectOutputStream.writeObject(Compiled Code)
    at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:256)
    at sun.rmi.server.UnicastRef.invoke(Compiled Code)
    at OMSRmiServer_Stub.executeStringSetSelect(Unknown Source)
    at OMSDeviceRmiClient.getStatusLOV(OMSDeviceRmiClient.java:196)
    at OMSRmiClient.getStatusLOV(OMSRmiClient.java:76)
    at OMSDevicePane.listenToTree(Compiled Code)
         at OMSDeviceContextPane.initComponents(OMSDeviceContextPane.java:107)
    at OMSFrame.jomInit(Compiled Code)
    at JOMCountFrame.init(JOMCountFrame.java:190)
    at JOMCountFrame.run(JOMCountFrame.java:253)
    at java.lang.Thread.run(Thread.java:485)
    Any help is appreciated.
    - Mahan.

    in jdk1.2.2 no need classes12.zip in class path.
    just set CLASSPATH=.;
    that is enough for solving ur problem
    bye
    raghu

  • Compiler can't find other classes

    I've got this bad problem that's been bugging me all weekend, and I can't work out how to fix it. A few months ago I was able to write classes that use other classes I've defined no problem. I just started using my compiler again, and now when I want to use different classes I've written, the compiler says that it can't find the other class:
    D:\uni\2005 Sem2\cse12ipj\assignment\HabitatModule.java:12: cannot find symbol
    symbol: class Module
    public class HabitatModule extends Module
    ^
    1 error
    Tool completed with exit code 1
    I've compiled the Module class and it doesn't have any errors. I'm guessing that there's something wrong with the classpath variable. Is that right? I'm using java 5.0.

    This is the base class. It compiles fine.
    public abstract class Module
    private char type;
    private String axisCode;
    private Module moduleList;
    abstract int getSpareCapacity();
    When I compile this next class, the compiler on my PC says that the class Module can't be found:
    D:\uni\2005 Sem2\cse12ipj\assignment\Habitat.java:12: cannot find symbol
    symbol: class Module
    public class Habitat extends Module
    ^
    1 error
    Tool completed with exit code 1
    public class Habitat extends Module
    private class Person
    private String name;
    private int id;
    private String speciality;
    private int maxPeople;
    private int nrPeople;
    private char subType;
    private Person personList;
    private String purpose;
    public Habitat(int maxPeople, char subType, String purpose)
    this.maxPeople = maxPeople;
    nrPeople = 0;
    this.subType = subType;
    this.purpose = purpose;
    public int getSpareCapacity()
    return maxPeople - nrPeople;
    If I compile it on any other machine, it's fine. I was looking on the web, and the CLASSPATH doesn't have to be changed for classes in the same directory.

  • Please,please help, this drives me crazy,can not find the class but...

    The story is:
    I have alot java class files under directory: c:\myproj\com\pin\sa
    in each of the file, the package signature is: package com.pin.sa
    Then I set the JavaVMInitArgs fVM_args; by setting the classpath to:c:\myproj
    then I use: cls = (*fEnv).FindClass("com/pin/sa/frameWork") to find a class file called frameWork, but failed.
    then i build a test file called test.class (it is just a simple file pls see below for the code)and put package com.pin.sa in it and put it in directory : c:\myproj\com\pin\sa, this means the test.class is under the same directory as the frameWork.class,
    then I use cls = (*fEnv).FindClass("com/pin/sa/test"), and it SUCCEEDED!!!
    I really don't understand why like this, they have same package signature and under same directory why different results.
    In frameWork file, there are some imported packages, does this matter? And there is a static main() in it.
    if you can give an example of how to set the classpath in JavaVMInitArgs fVM_args, and how to deal with the package signature, I will appreciate it very much
    ==test.java==
    package com.pin.sa;
    public class test
    public void printHello()
    System.out.println("Hello World from Java!");
    cls = (*fEnv).FindClass("com/pin/sa/test");
    cls = (*fEnv).FindClass("com/pin/sa/test");
    C:\\myProj\\resiprocate\\myAnalysis\\sipphone\\sipXphone\\main\\softphone\\lib");

    Hi Hufuman,
    What are the packages that you are using in frameWork Class. Add the class path to those classes also. Also check the name of the .class file is exactly the same as frameWork and not FrameWork or framework etc.
    Check whether you have correctly given the package declaration in the frameWork class.
    If you dont have any problem, post the frameWork class definition also here or atleast the packages imported and the classpath set for those referred packages.
    Dhamo.

  • MY BROWSER CAN NOT FIND ANY CLASSES !!!!!

    ...Using Java Plug-in and JRE 1.3
    I have put my JAR file in the same place of the class (root of the Web Server). Why can?t it find the classes????????
    I do the JAR file with the deploy option of Visual Cafe and it generates a folder called symantec with all classes, I don?t understand why.

    make sure that the .jar file is specified in the classpath.

  • Compiler can not find javax.xml.bind package classes

    Hi
    I have quite simple (I hope) problem. I'm trying to run some jaxb example but when I try to compile it I get:
    Test.java:20: package javax.xml.bind does not exist
    import javax.xml.bind.JAXBContext;
                          ^
    Test.java:21: package javax.xml.bind does not exist
    import javax.xml.bind.Marshaller;
                          ^
    Test.java:22: package javax.xml.bind does not exist
    import javax.xml.bind.Unmarshaller;
                          ^
    Test.java:23: package javax.xml.bind does not exist
    import javax.xml.bind.Validator;
                          ^I added to my classpath all packages I found to have anything in common with jaxb:
    jaxb-api.jar
    jaxb-xjc.jar
    jaxb-ri.jar
    jaxb.libs.jar
    jaxp-api.jar
    sax.jar
    dom.jar
    xercesImpl.jar
    xalan.jar
    jax-qname.jar
    namespace.jar
    All of those are taken from jwsdp-1.6
    Any ideas?
    ania

    Add the following .jar files to the CLASSPATH variable.
    <JWSDP>/jaxb/lib/jaxb-api.jar
    <JWSDP>/jaxb/lib/jaxb-impl.jar
    <JWSDP>/jaxb/lib/jaxb-libs.jar
    <JWSDP>/jaxb/lib/jaxb-xjc.jar
    <JWSDP>/jwsdp-shared/lib/namespace.jar
    <JWSDP>/jwsdp-shared/lib/jax-qname.jar
    <JWSDP>/jwsdp-shared/lib/relaxngDatatype.jar
    <JWSDP> is the directory in which Java Web Service Developer Pack 1.5 is installed.

  • My browser can not find jdbc classes !!!!

    I am using jdbc database access with Plugin-in an JRE 1.3, the line that gives me the error is this:
    symantec.itools.db.beans.jdbc.QueryNavigator C_DESARROLLO_INTERNO_HojaGastos___Sectores_Navigator = new symantec.itools.db.beans.jdbc.QueryNavigator();
    What can I do???? Thanks to all.
    java.lang.NoClassDefFoundError: symantec/itools/db/beans/binding/ParentInvalidRecordException
         at Prueba.<init>(Prueba.java:59)
         at java.lang.Class.newInstance0(Native Method)
         at java.lang.Class.newInstance(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

    What database are you accessing through jdbc?

  • HT4059 I downloaded a book on my iPad but I can not find it. I thought there would be an icon on my app pages for the book but there is not. Where do I go to get the book?

    I purchased an I book for the first time and now I can not find it. I thought it would bean icon on my apps page. Where did it go"?

    How/where did you buy it ? If it's an ibook from Apple then you can only download and read them in the iBooks app on an iPad - if you have the iBooks app on your iPad, and that book doesn't show on the bookshelf in the app, then you should be able to redownload it via the Purchased tab in the ibookstore in the app.

  • Can not find symbol

    i am wrting a bean which has methods and i am passing that bean
    object to the method of another class but when i compile the second class i get the error can not find symbol and the method name of bean
    which i want to acces in second class.

    i a using Role.java bean in RoleManager.java the files are as follows
    and when compiling the RoleManager.java i get the above error by showing method getOrderby() can not find symbol
    /******** Role.java (bean class) ************************/
    package com.tattva.pms.employee;
    import java.beans.*;
    public class Role implements java.io.Serializable
    /** Holds value of property code. */
    private String code;
    /** Holds value of property type. */
    private String type;
    /** Holds value of property description. */
    private String description;
         /** Holds value of property orderby */
         private String orderby;
    /** Creates new Role */
    public Role() {
    /** Getter for property code.
    * @return Value of property code.
    public String getCode() {
    return code;
    /** Setter for property code.
    * @param code New value of property code.
    public void setCode(String code) {
    this.code = code;
    /** Getter for property type.
    * @return Value of property type.
    public String getType() {
    return type;
    /** Setter for property type.
    * @param type New value of property type.
    public void setType(String type) {
    this.type = type;
    /** Getter for property description.
    * @return Value of property description.
    public String getDescription() {
    return description;
    /** Setter for property description.
    * @param description New value of property description.
    public void setDescription(String description) {
    this.description = description;
         /** Getter for property code.
    * @return Value of property code.
    public String getOrderby() {
    return orderby;
    /** Setter for property code.
    * @param code New value of property code.
    public void setOrderby(String orderby) {
    this.orderby = orderby;
    /****************************RoleManager.java*************************
    package com.tattva.pms.employee;
    import com.tattva.pms.employee.*;
    //package com.tattva.pms.dept;
    import com.tattva.pms.database.*;
    //import com.tattva.pms.dept.*;
    import java.sql.*;
    import java.util.*;
         * Insert the type's description here.
         * Creation date: (5/22/02     1:53 PM)
         * @author: Sachin Bhansali
    //public class DeptManager
    public class RoleManager
         * The Declaration of the fields
         * to be used.
         * Decleration of Global variables
    //private ConnectionPool ovPool = null;
    //     private QueryManager ovQuery     = null;
         //private ResultSet ovResultSet     = null;
         private int rowCount          = 0;
    /** Creates new DeptManager */
    // public DeptManager()
         public RoleManager()
              super();
         * Creates new JobDtlManager
         * Commented constructor
    /* public DeptManager(ConnectionPool conPool)throws SQLException{
    ovPool = conPool;
    ovQuery = new QueryManager(ovPool);
    conPool = null;
         * throws exception PMSException and the general Exception
         * @param DeptBean contaning the details.
         // public int addDept(DeptBean dept)throws PMSException, Exception
         public int addRole(Role role)throws PMSException,Exception
              ConnectionPool ovPool = null;
              Connection ovCon = null;
              Statement ovStmt = null;
    String sqlStr = null;
    // The SQL query String
         /*     sqlStr = "Insert into DEPARTMENT_MST Name (V_CODE,V_NAME,V_LOCATION,V_FUNCTIONALITY, V_CREATED_BY) values ('"
                             + dept.getDeptCode() +"','" + dept.getDeptName() + "','" + dept.getDeptLoc() + "','" + dept.getDeptFun() +
                             "','" dept.getCreatedBy()"')";
         sqlStr = "Insert into ROLE_MST Name (V_CODE,V_TYPE,V_DESCRIPTION,N_ORDERBY) values "+
                        "('"+role.getCode()+"','"+role.getType()+"','"+role.getDescription()+"','"+role.getOrderby()+"')";
    //start of try block
                   try{
                        ovPool = new ConnectionPool();
                   // ovCon = ovPool.createConnection("DeptManager: addDept(DeptBean dept)");
                        ovCon = ovPool.createConnection();
                   ovStmt = ovCon.createStatement();
                        rowCount = ovStmt.executeUpdate(sqlStr);
                   return 0;
                   }catch(PMSException pmsEx){
                        throw pmsEx;
                   }catch(SQLException sqlEx){
    return sqlEx.getErrorCode();
                   }catch(Exception e){
                        //throw new PMSException("addJob() SQLException Wrapped! " + e.getMessage());
                        throw new PMSException("addRole() SQLException Wrapped! " + e.getMessage());
                   }finally{     
                        role=null;
                                  //dept = null;
                                  if(ovStmt != null)
    ovStmt.close();
                                  ovStmt =null;
                                  ovPool.close(ovCon);
    ovCon = null;
                                       ovPool =null;
    //end of try block
    }

  • JWSDP 2.0/ JAX-WS 2.0: can not find com.bea.xml.stream.MXParserFactory

    Hi,
    when I invoke wsimport with Ant to create the client artifacts with the custom-client-binding file I always get an error like "javax.xml.stream.FactoryConfigurationError, can not find provider class com.bea.xml.stream.MXParserFactory".
    I can not find the BEA provider in the JWSDP 2.0.
    Who can help me?
    wolfgang

    You need an implementation of the JSR-173 API on your classpath, e.g. sjsxp.jar from the JWSDP.

  • Can't find textbox class - help please!

    I'm posting this again, in the hope that more people might help. I already know that the error means that the compiler can't find the class Textbox. I need to know why, because I've copied the relevant parts of the code from another app that builds fine. So why won't this build?
    I'm trying to write and build my first J2ME app. My code starts:
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    import java.lang.Math;
    public class TestMIDlet
    extends MIDlet
    implements CommandListener
    private Textbox tbMain;
    public void startApp()
    The build fails with numerous errors of which the first is:
    C:\WTK22\apps\TestMIDlet\src\TestMIDlet.java:9: cannot find symbol
    symbol : class Textbox
    location: class TestMIDlet
    private Textbox tbMain;
    with the caret under the 'T' of Textbox
    I don't understand what's wrong with this, as it's in many of the sample apps I've looked at.
    Thanks
    Ed

    Thanks very much!
    I've lost count of the times I've been caught by that case-sensitivity thing in Javascript. I thought it was just the first letter that had to be capitalised. Progress at last!

  • Firefox sometime can find specific server then at other times it can not. Also when on a web site and you attempt to go to anotherpage on the site, it lock up or can not find the page.

    Firefox cannot find a server that it has gone to easily in the past. Also it will lock up or can not find a page with in a web site ie like with FoxNews and you want to read and article. Firefox cannot find it. Sometimes I can not even log on to FireFox.

    Hi Corel
    Thank you for your reply
    However I need the lower case version for some sites and the upper case version for the site in question? To make matters worse this site does not allow you to change your log on name unless it is in the form of an e-mail address
    So what I need is Kostas for this site and kostas saved for other sites and allow me to choose which one I want to use
    How do I do this please
    I have no bother with this on Win Internet Explorer but I like Firefox
    Mind it may be as simple as deleting The appropriate entry and resetting with Kostas instead of kostas?
    But I would appreciate knowing the correct solution from an expert

Maybe you are looking for

  • How can I plot Data in StripChart using ActiveX in LW/CVI

    I have a DAQ with multichannel, I use an external synchronisation and I like to display my Data in RT using CWGraphChart. When I use PlotChartXY I can only plot the width my graph and then it stop (no stripchart possible!!!). But when I make the same

  • Customizable Email Filters w/ Alerts in IOS8?

    Hi, I have an iphone5s which I bought after I lost my BB10 powered Z10.  On the Z10, there was an app that let me customize alerts according to filters I could set, either according to email address of the incoming email, or things like text strings

  • Printing non-latin characters

    If I wanted to print unicode characters in JSP, for example, arabic or japanese, what's the best way to go through with this? I tired the <%@ page contentType="text/html; charset=Windows-1256" %>but it won't work I tried this: <meta http-equiv="Conte

  • MSI 648 S-Bracket

    I am intrested in purchasing the optional S-Bracket in order to connect a 5.1 speaker setup to my MSI 648Max board. However I am unable to find an online retailer that actually sells this S-Bracket. Where can I find one in the UK?

  • Multiple Selections Disabled after validation

    Hi experts , Couldsomebody please correct me on this :- I have a validation check for a select-option with NO Intervals. Any incorrect value in the Select option then an error message pops up . Now if there are multiple values in the Selct-option mul