I remebered originally my file structure was as follows:

webapps\isotrackingtest

isotrackingtest\isotracking
isotrackingtest\META-INF
isotrackingtest\WEB-INF
isotrackingtest\index.jsp

isotracking\isotracking
isotracking\index.jsp

isotracking\isotracking\*.jsp and *.html

META-INF\context.xml

WEB-INF\classes\isotrakcing\SessionBean.class
WEB-INF\lib\sqljdbc.jar
WEB-INF\src\isotracking\SessionBean.java
WEB-INF\web.xml

I moved META-INF and WEB-INF from isotrackingtest\META-INF and 
isotrackingtest\WEB-INF to isotrakcingtest\isotrakcing\.  Then "the value for 
the useBean class attribute isotracking.SessionBean is invalid" comes up.  I 
put back META-INF and WEB-INF file in isotrackingtest directory and now the 
error has disappeared.  I can see main page but Java Bean call <%= 
sessionBean.getFname() sessioBean.getLname() %> doesn't display the names on 
the browser.  

I can see the function are working fine on the Tomcat console... and I have a 
valid bean class declared as public and has a public default constructor with 
no argument.  

Is this something to do with a library missing?  I'm frustrated ... ANY HELP IS 
HELHLY APPRECIATED!  Thanks a lot!

See the attached web.xml and context.xml file... if it helps.

web.xml

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 
2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>

<web-app>

  <display-name>ISO Tracking</display-name>
  <description>
     ISO Tracking System
  </description>

<!-- JSPC servlet mappings start -->

    <servlet>
        <servlet-name>ISOTracking.Login_jsp</servlet-name>
        <servlet-class>ISOTracking.Login_jsp</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>ISOTracking.Login_jsp</servlet-name>
        <url-pattern>/Login.jsp</url-pattern>
    </servlet-mapping>

    <session-config>
     <session-timeout>30</session-timeout>
    </session-config>

<!-- JSPC servlet mappings end -->

        <resource-ref>
                <res-ref-name>jdbc/sqlserver</res-ref-name>
                <res-type>javax.sql.DataSource</res-type>
                <res-auth>Container</res-auth>
        </resource-ref>

</web-app>

context.xml

<Context debug="0" displayName="ISOTracking" 
docBase="../isotracking/isotracking" path="" reloadable="true">
        
        <Logger className="org.apache.catalina.logger.FileLogger" 
        prefix="ISOTRackingTest_Log." suffix=".txt" timestamp="true"/>
        
 
        <!-- Define a database connection pool for SQL SERVER 2000 -->
        <Resource name="jdbc/sqlserver" auth="Container" 
factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory" 
type="javax.sql.DataSource" 
driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
        url="jdbc:sqlserver://localhost" username="XXX" password="YYY" 
maxActive="100" maxIdle="30" maxWait="10000" removeAbandoned="true" 
removeAbandonedTimeout="60" logAbandoned="true"/>

</Context>

-----Original Message-----
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 11, 2006 8:30 AM
To: Tomcat Users List
Subject: Re: The value for the useBean class attribute... is invalid


Well... the last thought I have is to check file permissions to be sure 
the tomcat service has read access to the class.   Seems like if that 
was the case there would be some kind of exception in the logs when the 
webapp started though.

The link I posted below actually came from near the top of a google 
search on "the value for the useBean class attribute is invalid".  You 
could also try looking through those search results for possibilities.

--David

Aynalem, Seblewengel (Trawick) wrote:

>SessionBean is declared public and it has a public default constructor with no 
>agrument... but still shows "the value for the useBean class attribute 
>ISOTracking.SessionBean is invalid" error.
>
>What could be wrong?  Any help or hint is highly appreciated.
>
>Thanks,
>
>Seble.
>
>
>-----Original Message-----
>From: David Smith [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, October 10, 2006 10:35 PM
>To: Tomcat Users List
>Subject: Re: The value for the useBean class attribute... is invalid
>
>
>Right. The issue is server side access to the class, not client side 
>through httpd.
>
>The following link seems directly related to the OP's issue:
>
>http://forum.java.sun.com/thread.jspa?threadID=567258&messageID=2944921
>
>Essentially the class must be a valid bean declared public with a 
>default (no parameter), public constructor.
>
>--David
>
>Mark Thomas wrote:
>  
>
>>Martin Gainty wrote:
>>  
>>    
>>
>>>David-
>>>
>>>..he could also have execute/read permissions turned off in .htaccess
>>>
>>>M-
>>>    
>>>      
>>>
>>Martin, you are talking nonsense and confusing the issue.
>>
>>1) .htaccess is an httpd configuration feature that does not exist in
>>Tomcat
>>
>>2) The OP made no mention of using httpd in his configuration
>>
>>3) Even if httpd was being used, .htaccess mis-configuration would not
>>cause this error.
>>
>>Mark
>>
>>---------------------------------------------------------------------
>>To start a new topic, e-mail: users@tomcat.apache.org
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>  
>>    
>>
>
>
>---------------------------------------------------------------------
>To start a new topic, e-mail: users@tomcat.apache.org
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>---------------------------------------------------------------------
>To start a new topic, e-mail: users@tomcat.apache.org
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>  
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to