You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Russ Ehmke <re...@xerago.com> on 2000/07/27 21:26:34 UTC

Error: Class not found; org.apache.tomcat.server.Http ServerConnector deprecated?

I found that Wrox Press has a pretty good JSP book called Professional JSP.
It uses Tomcat 3.0 in it's examples, along with JServ and the Apache web
server.  It seems that I have everything setup correctly, but when doing the
exercises, I frequently get a Class <classname> not found error when
attempting to encapsulate java code in beans/classes, and am not sure why.

I did notice, in their setup, I was to add a section in the server.xml file
that refered to a class that was apparently removed in Tomcat 3.1, but was
in 3.0 (org.apache.tomcat.server.HttpServerConnector).

<Connector className="org.apache.tomcat.server.HttpServerConnector">
</Connector>

Would this cause the problem?  Why are my beans/classes not able to be found
by my jsp's?

I have attached some sample code.  Any assistance would be greatly
appreciated.  Thank you.

=====

Error: 500

Location: /rehmke/jsp/connectDBtest2.jsp

Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile class for
JSPD:\jakarta-tomcat1.3\work\localhost_8080%2Frehmke\_0002fjsp_0002fconnectD
Btest_00032_0002ejspconnectDBtest2_jsp_0.java:67: Class
jsp.connectDBtestBean not found.
                connectDBtestBean connectDBtestBean = null;
                ^
D:\jakarta-tomcat1.3\work\localhost_8080%2Frehmke\_0002fjsp_0002fconnectDBte
st_00032_0002ejspconnectDBtest2_jsp_0.java:70: Class jsp.connectDBtestBean
not found.
                    connectDBtestBean= (connectDBtestBean)
                                        ^
D:\jakarta-tomcat1.3\work\localhost_8080%2Frehmke\_0002fjsp_0002fconnectDBte
st_00032_0002ejspconnectDBtest2_jsp_0.java:75: Class jsp.connectDBtestBean
not found.
                            connectDBtestBean = (connectDBtestBean)
Beans.instantiate(getClassLoader(), "connectDBtestBean");
                                                 ^
3 errors

        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:247)
        at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
        at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:149)
        at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va:161)
        at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
        at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:160)
        at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
)
        at java.lang.Thread.run(Thread.java:484)

=====

 <<connectDBtest2.jsp>>  <<connectDBtestBean.java>>  <<sqlBean.java>>