Hi Christian,

Thanks for your detailed message.

As you have said, I wasn't compiling the XXXXBean.java
files into their corresponding .class files, thereby
causing the error.

Saket

--- "Christian Bollmeyer (GMX)" <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> > -----Original Message-----
> > From: A mailing list about Java Server Pages
> specification
> > and reference [mailto:[EMAIL PROTECTED]]
> On Behalf Of
> > Saket Barve
> > Sent: Thursday, December 19, 2002 7:08 PM
> > To: [EMAIL PROTECTED]
> > Subject: JSP/TOMCAT problem
> >
> >
> > I have tomcat 4.1.12 installed on a UNIX machine.
> For
> > now, all I am trying to do is use a
> testConnection.jsp
> > page to access database through a
> ConnectionBean.java
> > file. The files are under package ta
>
> You also put this into /WEB-INF/classes/ta then? And
> compiled the package sources to .class files? Just
> to
> make sure.
>
> > All the files are located in the appropriate
> > directories (viz .java file in
> /classes/package_name/
> > and .jsp in webapps/package_name/) within the
> tomcat
>
> JSPs don't have to be put into 'package' dirs, but
> still.
>
> > installation. Also, I have made appropriate
> changes to
> > the server.xml file.
>
> This is not necessary. If you follow the web app
> specs,
> making an app directory underneath /webapps with the
> structure (/WEB-INF, /WEB-INF/classes, WEB-INF/lib/
> and so on) described there and then putting your
> files
> there accordingly, the class loader(s) will
> automatically
> mount your app.
>
> > Every time I try to open the testConnection.jsp
> file
> > on the browser, I get an error saying that the
> package
> > ta does not exist.
>
> So it's not found, then.
>
> > I removed the package only to get an error of the
> type
> > undefined variable: class ConnectionBean.
> >
> > CLASSPATH doesn't seem to be the issue because I
> > copied the one from my team member's .cshrc and he
> can
> > access his database over the browser just fine.
>
> .cshrc contains the user-specific 'system'
> classpath,
> among other things. I'd recommend to have a look at
> Tomcat's Classloader HOW-TO again, it's included in
> the documentation. In Tomcat 4, there are multiple
> class loaders. Normally, classes specified in the
> system
> classpath should be available to Tomcat as well, but
> as I almost never use this approach, I can't tell
> for
> sure if it works. In any case, I wouldn't make use
> of
> the system classpath in a web app. Makes no real
> sense when later deploying your app in a .war
> file...
> It's much better to just have to tell your customers
> to copy the .war to the /webapps directory and have
> everything else handled by common magic than
> explaining a whole lot of Java or Unix details and
> have Java illicits follow your instructions in vi
> or something comparable.
>
> > Any suggestions or ideas to resolve this issue
> would
> > be really appreciated.
> >
> > Thanks,
> > Saket
>
> HTH,
>
> -- Chris (SCPJ2)
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body:
> "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to