tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: The value for the useBean class attribute *class* is invalid
Date Fri, 17 Dec 2010 19:22:32 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

PTaco,

On 12/17/2010 1:21 PM, PTaco wrote:
> I'm using Apache Tomcat/6.0.18

You should seriously consider upgrading: Tomcat 6.0.29 is available and
.18 was released over 2 years ago.

> By library I mean .jar files located in the lib folder under
> webapps/project/WEB-INF/lib
> the URL is www.xsvoice.com/nextel/sprinthoroscopes
> I have found the declaration, its
> <jsp:useBean
>     id="uaBean"
>     scope="application"
>     class="com.upsnap.uatools.UAToolsBean" />

Okay. Where is the class file for com.upsnap.uatools.UAToolsBean? Scan
all your .jar files to make sure it only occurs in a single place. Also
make sure you haven't done something silly like placed that same
class/jar into Tomcat's lib/ directory as well.

Also, please provide the full stack trace (including any "Caused by"
clauses) of the error that you get.

Are there any other errors in either catalina.out or any of the other
log files in the logs/ directory?

> I know this error is usually caused from not having the correct path in the
> class portion of the useBean declaration.  However as I said before, I've
> taken an exact copy/paste from a working web application and just re-named
> the project and it still throws this error.

What did you copy/paste/rename? If you just borrowed this JSP and it
references a bean that was set up explicitly in the old project but not
the new one, then you may have some problems like not being able to
initialize the application-scoped bean properly if it's not found in the
application scope when the JSP runs.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0LuHgACgkQ9CaO5/Lv0PDyKwCfd8KvilMqiSrmk04iPny0ABo+
qWAAoIRXVVdYUZwwGQWqyboNTkZO0hAG
=/AP5
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message