Error while running JSP

Discussions

Web tier: servlets, JSP, Web frameworks: Error while running JSP

  1. Error while running JSP (2 messages)

    Hi Everybody

    I have deployed my JSP in Tomcat Web Container
    It did deployment properly but when i call this JSP
    it's giving error

    Thu Mar 01 11:03:00 GMT+00:00 2001] stderr: 2001-03-01 11:03:00 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007
    [Thu Mar 01 11:03:00 GMT+00:00 2001] stderr: 2001-03-01 11:03:00 - PoolTcpConnector: Starting HttpConnectionHandler on 8080
    [Thu Mar 01 11:08:55 GMT+00:00 2001] stderr: 2001-03-01 11:08:55 - Ctx( /SecondJSP ): JasperException: R( /SecondJSP + /ErrorPage + null) Unable to compile class for JSPC:\Inprise\AppServer\var\servers\localhost\adm\tomcat3\work\localhost_8080%2FSecondJSP\Error_0002ejspError_jsp_0.java:62: Class SampleJSP.ErrorBean not found.
    [Thu Mar 01 11:08:55 GMT+00:00 2001] stderr: SampleJSP.ErrorBean ErrorBeanId = null;
    [Thu Mar 01 11:08:55 GMT+00:00 2001] stderr: ^
    [Thu Mar 01 11:08:55 GMT+00:00 2001] stderr: C:\Inprise\AppServer\var\servers\localhost\adm\tomcat3\work\localhost_8080%2FSecondJSP\Error_0002ejspError_jsp_0.java:65: Class SampleJSP.ErrorBean not found.
    [Thu Mar 01 11:08:55 GMT+00:00 2001] stderr: ErrorBeanId= (SampleJSP.ErrorBean)
    [Thu Mar 01 11:08:55 GMT+00:00 2001] stderr: ^
    [Thu Mar 01 11:08:55 GMT+00:00 2001] stderr: C:\Inprise\AppServer\var\servers\localhost\adm\tomcat3\work\localhost_8080%2FSecondJSP\Error_0002ejspError_jsp_0.java:70: Class SampleJSP.ErrorBean not found.
    [Thu Mar 01 11:08:55 GMT+00:00 2001] stderr: ErrorBeanId = (SampleJSP.ErrorBean) Beans.instantiate(this.getClass().getClassLoader(), "SampleJSP.ErrorBean");
    [Thu Mar 01 11:08:55 GMT+00:00 2001] stderr: ^
    [Thu Mar 01 11:08:55 GMT+00:00 2001] stderr: 3 errors
    [Thu Mar 01 11:08:55 GMT+00:00 2001] stderr:
     

    It obviously cannot find the bean ErrorBean.But While deploying I have added all the necessary java and class files including ErrorBean.java and ErrorBean.class.
    Then what's the problem.

    Please help me!

    Medha
     

    Threaded Messages (2)

  2. Error while running JSP[ Go to top ]

    Check your class path for the bean: SampleJSP.ErrorBean
    is ur bean is in SampleJSP folder??
    Is ur classpath set to the parent folder of SampleJSP ??
    If u do so, it will work fine ...
    if u r not successful, write in detail about the problem ... what exactly u had done in JSPs and about the bean ... where u placed it what is ur classpath etc ..
  3. Error while running JSP[ Go to top ]

    Hi Dasharatham

    Thanks for the reply.
    It did work yesterday only.

    Actually i have deployed the application as WAR.(Tomcat 3.2)
    While deploying war there is option for setting the classpath.But it is disabled!I don't know the reason?
     
    Yes my bean is in SampleJSP folder. After deploying it is putting war file in \localhost\wars\tomcat3 on my server.(Inprise AppServ. 4.5)

    What i did then is I manually put my SampleJSp folder(which contains all the class files and supporting files)in \localhost\classes.
    It's working fine now!

    Can you tell me the reason why the option 'set classpath' is disabled?

    Medha