facebook

bad class file error in jsp

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #246845 Reply

    Ghazalawahid
    Member

    I am working on a J2EE project following exactly the same pattern of
    traderx example in MyEclipse quickstart:

    Project has:

    – Web module
    – Ejb module
    – App server is jboss 3.2.4
    – JRE System library is j2sdk1.4.1
    – j2ee spec level is 1.3

    Problem is i am trying to access a class in a jsp page
    from one of the package of ejb module,but its giving error
    where i am creating the class.The error says:

    “cannot access packagename.class: bad class file ……”

    Its even not accessing a class from web module ,gives same error.

    what could be the reason?

    #246873

    Riyad Kalla
    Member

    If you load up the traderX example application, are you able to do what you want with that application (access the EJB from your Web module)? If so, can you see any differences between how you have your two projects setup?

    #246878

    Ghazalawahid
    Member

    No,i did not load the traderx example,i will do it now, but could you give some reasons that when do we usually get “bad class file ” error , in other projects also e.g java project or web project?

    Thanks.

    #246882

    Riyad Kalla
    Member

    Is this a runtime error you are getting or is it an error you are getting in MyEclipse that is shown down in the your problem view? Please paste the snippet of code that you are trying to execute that is causing this problem.

    Also, bad class file errors can occur when classes are compiled incorrectly or I believe compiled with incompatible versions of byte code, although I’m not positive.

    #246887

    Ghazalawahid
    Member

    Thanks for support.Yes my compiler level was set on 5.0 and i was using jdk 4,so the problem is solved now.Thanks again.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: bad class file error in jsp

You must be logged in to post in the forum log in