Kervin Pierre wrote:
> 
> 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_0002findex_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_0002findex_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?
> 

Here are some possibilites that occur to me:
1) your package name and the path from WEB-INF to the class file dont
agree:
WEB-INF\classes\edu\fit\eng\networkdb\sqlConnObj\sqlConnBean.class

2) Are you sure that should be sqlConnBean - normal naming convention
would be SqlConnBean

WBB


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to