tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pradeep Sethi <pra_se...@yahoo.co.in>
Subject Problem with Tomcat
Date Tue, 06 Nov 2001 07:57:10 GMT
Hi everyone,

I am using Tomcat for developing a web application,
but i have been facing some problems with it. I added
a new context for my application as given in the
Documentation and JSPs which do not use a bean work
but ones that use a bean don't. At transalation time a
error message saying class not found (the class that
is the bean). I have put the class files in the
classes folder under the web-inf folder of my
application. This is the problem with Tomcat 4.0 beta
7. While when I try and use Tomcat 3.2.3 it doesn't
even run the examples tomcat itself has put on its
main page that gets displayed when we start tomcat in
the browser. I have Windows 98 SE, JDK 1.3 and my
autoexec.bat is this:

doskey /insert
PATH
.;c:\windows;e:\jdk1.3\bin;e:\orawin95\bin;e:\tomcat\bin
set JAVA_HOME=e:\jdk1.3 
set CATALINA_HOME=e:\Tomcat
set
CLASSPATH=.;e:\jdk1.3\jre\lib\rt.jar;e:\jdk1.3\lib\tools.jar
set PATH=%PATH%;C:\PROGRA~1\COMMON~1\AUTODE~1

A Servlet Exception Has Occurred
org.apache.jasper.JasperException: Unable to compile
class for JSP

An error occurred at line: 63 in the jsp file:
/jsp/colors/colrs.jsp

Generated servlet error:
E:\Tomcat\work\localhost\examples\jsp\colors\_0002fjsp_0002fcolors_0002fcolrs_jsp.java:70:
Wrong number of arguments in constructor.
throw new ServletException (" Cannot create bean of
class "+"colors.ColorGameBean", exc);
^
1 error

at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
at
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:528)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:458)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:215)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2314)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1000)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1093)
at java.lang.Thread.run(Thread.java:484)



Please anyone any kind of help or hints abt this one.
Urgent help needed on this one.
Reply to pra_sethi@yahoo.co.in or post a message at
this forum.  
 




___________________________________________________________________
*NEW*   Yahoo! Messenger for SMS. Now on your Cellforce phone    *NEW*
        Visit http://in.mobile.yahoo.com/smsmgr_signin.html

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message