You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Pradeep Sethi <pr...@yahoo.co.in> on 2001/11/06 08:57:10 UTC

Problem with Tomcat

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:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Problem with Tomcat

Posted by IService <he...@iservice.bg>.
Put them in WebInf/Classes/...

Dimiter


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Problem with Tomcat

Posted by ria Dimou <rd...@yahoo.com>.
Hi..
i have the same problem with Beans... 
I don't know where to put the bean files in order the
jsp find them and compile them.. If you receive from
anyone a solution please tell me too..
Thanks 
Good luck.!!
Sotiria

 
--- Pradeep Sethi <pr...@yahoo.co.in> wrote:
> 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:  
> <ma...@jakarta.apache.org>
> For additional commands:
> <ma...@jakarta.apache.org>
> Troubles with the list:
> <ma...@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>