Please tell me if you have made your own web application or using the
default and have you put your directories(packages) in the classes directory
of the web-inf directory
i.e.
your package should be placed here
tomcat_home\webapps\web-inf\classes
or if you make your own webapplication e.g. kervin then
tomcat_home\webapps\kervin\web-inf\classes
hope this will help you
karan
----- Original Message -----
From: "Kervin Pierre" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, January 14, 2001 1:09 AM
Subject: Re: need help using bean
> William Brogden wrote:
> >
> > Kervin Pierre wrote:
> > >
> > > Hello,
> > >
> > > I can't seem to get this to work. The bean compiles OK but when I try
to
> > > load it, I get a "Error: 500" below saying that my package couldn't be
> > > loaded.
> > >
> > > ...
> > > org.apache.jasper.JasperException: Unable to compile class for
> > >
JSP/usr/local/jakarta/build/tomcat/work/localhost_8080/_0002fnetworkdb_0002f
index_0002ejspindex_jsp_0.java:15:
> > > Package edu.fit.eng.networkdb.sqlConnObj not found in import.
> > > import edu.fit.eng.networkdb.sqlConnObj.*;
> > > ...
> > >
> > > My jsp page begins like this
> > >
> > > <%@ page language="java" import="edu.fit.eng.networkdb.sqlConnObj.*"%>
> > > <jsp:useBean id="connBean" class="sqlConnBean" scope="page" />
> >
> > When you name your class in the useBean tag you MUST use the
> > complete package - it doesn't matter that you imported the package
> >
>
> Thanks,
>
> I tried this but I'm getting the same error.
>
> [...]
> org.apache.jasper.JasperException: Unable to compile class for
>
JSP/usr/local/jakarta/build/tomcat/work/localhost_8080/_0002fnetworkdb_0002f
index_0002ejspindex_jsp_0.java:15:
> Package edu.fit.eng.networkdb.sqlConnObj not found in import.
> import edu.fit.eng.networkdb.sqlConnObj.*;
> [...]
>
> My page reads now
>
> <%@ page language="java" import="edu.fit.eng.networkdb.sqlConnObj.*"%>
> <jsp:useBean id="connBean"
> class="edu.fit.eng.networkdb.sqlConnObj.sqlConnBean" scope="page" />
> [...]
>
>
> What does this error mean? How do I fix it?
>
> -Kervin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]