facebook

The value for the useBean class attribute is invalid

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #245664 Reply

    MCI-IA
    Member

    Hi,

    I have deployed the EAR file in JBOSS 3.2.7. and the applcation works fine. But the same EAR file is not working in JBOSS 4.0.1. The following error coming up while the JSP is getting compiled.
    “The value for the useBean class attribute (my classname) is invalid”.

    Any idea how to fix this error?

    NOTE: I am using Myeclipse 3.8.4
    Thks in advance.

    #245693 Reply

    Scott Anderson
    Participant

    Since the exact same EAR works in 3.2.7 but not in 4.0.1 I’d guess that the issue is likely that the version of Tomcat that ships with JBoss 4.0.1 does a better job at error detection than the one that shipped previously and that the error is a legitimate problem that was simply undetected at compile time by JBoss 3.2.7. In my experience it’s likely a small typo in the attribute name or value in the JSP.

    #245745 Reply

    MCI-IA
    Member

    Scott,

    Thanks for your reply. Looks like the newer version of the Tomcat with the JBoss 4.0.1 is expecting the Class name to be spelled with the package name. For ex: “com.abc.xyz.ProgramName” instead of just “ProgramName” in the attribute. I have the Page Import of this package (com.abc.xyz.ProgramName) in the JSP but it is still expecting the explicit package name in the attribute.

    Is there any way to support the older version of JSP with the JBoss 4.0.1?

    Thanks again.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: The value for the useBean class attribute is invalid

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