tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Patterson <tom...@vittox.com>
Subject Re: JasperException: The value for the useBean class ___ attribute is invalid
Date Fri, 20 Apr 2012 00:31:59 GMT
I solved my proble in the following way:

Renamed Test-03 to ROOT.war
Deleted the /WEB-INF folder in the appBase directory AND all other JSPs 
(inluding sub-directories)
Changed the server.xml file deleting the following context element:
<Context path="" reloadable="true" docBase="/home/domain/public_html" 
debug="1"/>

Still have the context element for the manager:
<Context path="/manager" debug="0" privileged="true"
        docBase="/usr/local/jakarta/tomcat/server/webapps/manager">
</Context>

If I delete it, I cann not access the manager for that virtual host.

So I see the following directories in the appBase (public_html) folder:

images
index.htm
ROOT
ROOT.war

I can access:
www.domain.com to see static index.html
www.domain.com/prg1.jsp calling the class Stringbean
www.domain.com/subdir/prg2.jsp calling that same class

I hope this is correct way ?

Before this configuration I allways worked with different distribution:

images
index.html
prg1.jsp
subdir (subdir/prg2.jsp)
WEB-INF

I hope to read any comments from your side

Chris.


El 19/04/2012 02:49 p.m., Caldarale, Charles R escribió:
>> From: Chris Patterson [mailto:tomcat@vittox.com]
>> Subject: Re: JasperException: The value for the useBean class ___ attribute is invalid
>> So configuration actually is as follows:
>> <Host name="server.com" appBase="/home/server/public_html">
>> <Alias>www.server.com</Alias>
> If you only have one<Host>, no<Alias>  is needed.
>
>> <Context path="" reloadable="true" docBase="." debug="1"/>
>> <Context path="/manager" debug="0" privileged="true"
>>                 docBase="/usr/local/jakarta/tomcat/server/webapps/manager">
>> </Context>
> Please, please read the documentation for the Tomcat version you're using.<Context>
 elements should NOT be placed in server.xml, there is no debug attribute for<Context>,
and a docBase attribute of "." is completely bogus.  Start again.
>
> I still can't figure out exactly what you intend the default webapp (ROOT) to be.
>
>   - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and
is thus for use only by the intended recipient. If you received this in error, please contact
the sender and delete the e-mail and its attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>

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


Mime
View raw message