Hi Craig!
    Only a curiosity...
    Proving the execution of beans through a jsp page, I discovered that if
I directly put my class in "MyApp/WEB-INF/classes" and made the call from
the jsp page,

        <jsp:useBean id="formbean" class="z.testBean" scope="session" />

    TC gives me this error:

        java.lang.ClassNotFoundException: testBean

    Only after including my class in a package, the call worked. Why?
    Thanks in advance...

                Marcelo

----- Original Message -----
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>; "jEff oNg"
<[EMAIL PROTECTED]>
Sent: Thursday, January 24, 2002 8:47 AM
Subject: Re: setting classpath in TOMCAT 4.0


>
>
> On Thu, 24 Jan 2002, Jeff Ong wrote:
>
> > Date: Thu, 24 Jan 2002 18:47:10 +0800
> > From: Jeff Ong <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>,
> >      jEff oNg <[EMAIL PROTECTED]>
> > To: Tomcat Users List <[EMAIL PROTECTED]>
> > Subject: setting classpath in TOMCAT 4.0
> >
> > hi all,
> >
> > I faced problem when try to set CLASSPATH in TOMCAT. I have my own java
> > beans and servlets which located in others path. Where should i set
these
> > path in order to let TOMCAT refer it in runtime?
> >
>
> You don't -- CLASSPATH causes more grief for Tomcat users than anything
> except web connector configuration.
>
> Move the beans into the directories identified by the Tomcat documentation
> (http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html).
>
> Alternatively, you can modify the startup/shutdown scripts in the "bin"
> directory, but then you're on your own for figuring out class loading
> problems.
>
> Craig


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to