tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward Muller" <emul...@learningpatterns.com>
Subject Help getting beans working (take 2)
Date Tue, 01 May 2001 21:23:37 GMT
I can seem to get beans to work.

I've setup a different context
/home/httpd/learningpatterns.com/html/intranet in both apache and tomcat and
while jsps work fine, I have not been able to get beans to work. I am using
numguess.jsp and snoop.jsp to test right now. snoop.jsp works fine, but
numguess.jsp returns the following:

Error: 500
Location: /intranet/jsp/numguess.jsp
Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile class for
JSP/home/httpd/tomcat/work/localhost_8080%2Fintranet/_0002fjsp_0002fnumguess
_0002ejspnumguess_jsp_0.java:15: Class num.NumberGuessBean not found in
import.
import num.NumberGuessBean;
       ^
1 error

	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:254)
	at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
	at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
	at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
	at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)
	at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
	at org.apache.tomcat.core.Handler.service(Handler.java:286)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
	at java.lang.Thread.run(Thread.java:484)


I've created a WEB-INF directory and moved the classes for num over to
/home/httpd/learningpatterns.com/html/intranet/WEB-INF/classes/num and
/home/httpd/learningpatterns.com/html/intranet/jsp/WEB-INF/classes/num, but
it doesn't seem to work.

Anyone know what I am doing wrong?


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Edward Muller
Director of Information Systems
LearningPatterns.com Inc.
Tel: +1-212-422-9410
Fax: +1-212-487-9066
mailto:emuller@learningpatterns.com

Headquarters: +1-212-487-9064
http://www.learningpatterns.com

~~~~~Your Global Source for Java Learning~~~~~

Mime
View raw message