You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by DEEPA M N <de...@yahoo.co.in> on 2006/02/01 06:07:47 UTC

Re: Re: was 404 - now 500

Hi,
  I jus tried this. I created another folder under webapps and the tree structure is as below.
  Download1--
  --WEB-INF/web.xml
  --WEB-INF/classes/com/deepa/servlet/DownloadFiles.class
  --WEB-INF/lib
   
  Download1 is under webapps folder. 
  But after trying this too i am getting the same error. The web.xml is shown below.
   
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
  <web-app>
  <display-name>Tomcat Documentation</display-name>
  <description>
     Tomcat Documentation.
  </description>
    <servlet>
 <servlet-name>DownloadFiles</servlet-name>
 <servlet-class>com.deepa.servlet.DownloadFiles</servlet-class>
</servlet>
  <servlet-mapping>
 <servlet-name>DownloadFiles</servlet-name>
 <url-pattern>/servlet/DownloadFiles</url-pattern>
</servlet-mapping>
  </web-app>
   
  Here is a error logs file:
   
  2006-02-01 10:15:18 StandardWrapperValve[DownloadFiles]: Servlet DownloadFiles is currently unavailable
2006-02-01 10:15:28 StandardWrapperValve[DownloadFiles]: Servlet DownloadFiles is currently unavailable
2006-02-01 10:28:45 StandardContext[/jsp-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@c6f734')
2006-02-01 10:28:45 StandardContext[/jsp-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@8f9a32')
2006-02-01 10:28:45 StandardContext[/jsp-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@1d47b2b')
2006-02-01 10:28:45 StandardContext[/jsp-examples]SessionListener: contextDestroyed()
2006-02-01 10:28:45 StandardContext[/jsp-examples]ContextListener: contextDestroyed()
2006-02-01 10:28:45 StandardContext[/servlets-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@1aa2c23')
2006-02-01 10:28:45 StandardContext[/servlets-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@137d4a4')
2006-02-01 10:28:45 StandardContext[/servlets-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@6963d0')
2006-02-01 10:28:45 StandardContext[/servlets-examples]SessionListener: contextDestroyed()
2006-02-01 10:28:45 StandardContext[/servlets-examples]ContextListener: contextDestroyed()
2006-02-01 10:28:54 StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
2006-02-01 10:28:54 StandardContext[/jsp-examples]SessionListener: contextInitialized()
2006-02-01 10:28:54 StandardContext[/servlets-examples]SessionListener: contextInitialized()
2006-02-01 10:29:25 StandardContext[/Download1]Marking servlet DownloadFiles as unavailable
2006-02-01 10:29:25 StandardWrapperValve[DownloadFiles]: Allocate exception for servlet DownloadFiles
javax.servlet.ServletException: Error instantiating servlet class com.deepa.servlet.DownloadFiles at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:996)
 at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144)
 at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
 at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
 at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
 at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at org.apache.catalina.core.StandardValveContext.invokeNext at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
 at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
 at java.lang.Thread.run(Thread.java:595)
----- Root Cause -----
java.lang.NullPointerException
 at com.deepa.servlet.DownloadFiles.<init>(DownloadFiles.java:32)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
 at java.lang.Class.newInstance0(Class.java:350)
 at java.lang.Class.newInstance(Class.java:303)
 at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:987)
 at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144)
 at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
 at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
 at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
 at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
 at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
 at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
 at java.lang.Thread.run(Thread.java:595)
  2006-02-01 10:29:29 StandardWrapperValve[DownloadFiles]: Servlet DownloadFiles is currently unavailable
   
  Pls let me wat might be the problem.
  deepa

   
  

 

				
---------------------------------
 Jiyo cricket on Yahoo! India cricket

Re: was 404 - now 500

Posted by vineesh kumar <vi...@gmail.com>.
Ok now u hav created a new hirarchy
 now try make a new file like Download1.xml in the
{TOMCAT_HOME}/conf/Catalina/localhost directory and add the following
lines in that file
  <?xml version="1.0" encoding="UTF-8"?>
<Context docBase="TOMCATDIR/webapps/Download1" path="/Download1"/>
On 2/1/06, Glen Mazza <gr...@verizon.net> wrote:
> DEEPA M N wrote:
>
> > Hi,
> >   I jus tried this. I created another folder under webapps and the tree structure is as below.
> >   Download1--
> >   --WEB-INF/web.xml
> >   --WEB-INF/classes/com/deepa/servlet/DownloadFiles.class
> >   --WEB-INF/lib
> >
> >   Download1 is under webapps folder.
> >   But after trying this too i am getting the same error. The web.xml is shown below.
> >
>
> Since your application appears rather simple, perhaps you can use the
> webapps/servlet-examples (or /jsp-examples) web apps provided by TC by
> default as a base for your work.  (Make sure those are working on your
> TC instance first.)  You can also look at the web.xml files in those two
>   webapps for guidance.
>
> Glen
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: was 404 - now 500

Posted by Glen Mazza <gr...@verizon.net>.
DEEPA M N wrote:

> Hi,
>   I jus tried this. I created another folder under webapps and the tree structure is as below.
>   Download1--
>   --WEB-INF/web.xml
>   --WEB-INF/classes/com/deepa/servlet/DownloadFiles.class
>   --WEB-INF/lib
>    
>   Download1 is under webapps folder. 
>   But after trying this too i am getting the same error. The web.xml is shown below.
>    

Since your application appears rather simple, perhaps you can use the 
webapps/servlet-examples (or /jsp-examples) web apps provided by TC by 
default as a base for your work.  (Make sure those are working on your 
TC instance first.)  You can also look at the web.xml files in those two 
  webapps for guidance.

Glen

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org