Results 1 to 5 of 5
  1. #1
    eclectica is offline Member
    Join Date
    May 2012
    Posts
    12
    Rep Power
    0

    Default HTTP Status 404 - Servlet appServlet is not available

    Hi I have a Webapplication and yesterday everything was ok when I tried to run my project.
    Today I wanted to run my project and get the error :HTTP Status 404 - Servlet appServlet is not available

    I dont know how eclipse sunddely dont find my appServlet because i have nothing chanched in my web.xml or another file.

    This is my error
    29-mei-2012 16:56:56 org.apache.catalina.core.AprLifecycleListener init
    INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;C:\Windows\Sun\Java\bin;C:\Win dows\system32;C:\Windows;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\Sys tem32\Wbem;C:\Windows\System32\WindowsPowerShell\v 1.0\;C:\Program Files (x86)\Windows Live\Shared;;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Prog ram Files (x86)\Microsoft SQL Server\100\DTS\Binn\;D:\Semester2\Webontwikkeling\ apache-maven-3.0.4-bin\apache-maven-3.0.4\bin;JAVA_HOME%\bin;C:\Program Files (x86)\VDownloader;C:\Program Files\TortoiseSVN\bin;.
    29-mei-2012 16:56:56 org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:SpringMVCOefeningen' did not find a matching property.
    29-mei-2012 16:56:57 org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    29-mei-2012 16:56:57 org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1285 ms
    29-mei-2012 16:56:57 org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    29-mei-2012 16:56:57 org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.33
    29-mei-2012 16:56:58 org.apache.catalina.core.ApplicationContext log
    INFO: Marking servlet appServlet as unavailable
    29-mei-2012 16:56:58 org.apache.catalina.core.ApplicationContext log
    SEVERE: Error loading WebappClassLoader
    context: /SpringMVCOefeningen
    delegate: false
    repositories:
    /WEB-INF/classes/
    ----------> Parent Classloader:
    org.apache.catalina.loader.StandardClassLoader@5a5 e5a50
    org.springframework.web.servlet.DispatcherServlet
    java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet
    at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1680)
    at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1526)
    at org.apache.catalina.core.StandardWrapper.loadServl et(StandardWrapper.java:1095)
    at org.apache.catalina.core.StandardWrapper.load(Stan dardWrapper.java:993)
    at org.apache.catalina.core.StandardContext.loadOnSta rtup(StandardContext.java:4421)
    at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4734)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1057)
    at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:840)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1057)
    at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:463)
    at org.apache.catalina.core.StandardService.start(Sta ndardService.java:525)
    at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:754)
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:595)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:414)
    29-mei-2012 16:56:58 org.apache.catalina.core.StandardContext loadOnStartup
    SEVERE: Servlet /SpringMVCOefeningen threw load() exception
    java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet
    at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1680)
    at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1526)
    at org.apache.catalina.core.StandardWrapper.loadServl et(StandardWrapper.java:1095)
    at org.apache.catalina.core.StandardWrapper.load(Stan dardWrapper.java:993)
    at org.apache.catalina.core.StandardContext.loadOnSta rtup(StandardContext.java:4421)
    at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4734)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1057)
    at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:840)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1057)
    at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:463)
    at org.apache.catalina.core.StandardService.start(Sta ndardService.java:525)
    at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:754)
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:595)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:414)
    29-mei-2012 16:56:58 org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    29-mei-2012 16:56:58 org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    29-mei-2012 16:56:58 org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/44 config=null
    29-mei-2012 16:56:58 org.apache.catalina.startup.Catalina start
    INFO: Server startup in 1584 ms
    29-mei-2012 16:56:59 org.apache.catalina.core.StandardWrapperValve invoke
    INFO: Servlet appServlet is currently unavailable
    This us my web.xml

    Code:
    Java Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    
    	<!-- Processes application requests -->
    	<servlet>
    		<servlet-name>appServlet</servlet-name>
    		<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
    		<init-param>
    			<param-name>contextConfigLocation</param-name>
    			<param-value>/WEB-INF/spring/appServlet/servlet-context.xml</param-value>
    		</init-param>
    		<load-on-startup>1</load-on-startup>
    	</servlet>		
    	<servlet-mapping>
    		<servlet-name>appServlet</servlet-name>
    		<url-pattern>/</url-pattern>
    	</servlet-mapping>
    		<servlet-mapping>
    		<servlet-name>default</servlet-name>
    		<url-pattern>*.css</url-pattern>
    </servlet-mapping>
    </web-app>

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,856
    Rep Power
    19

    Default Re: HTTP Status 404 - Servlet appServlet is not available

    Looks like your spring jar file has gone.
    Is it deployed in the WEB-INF lib directory?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    eclectica is offline Member
    Join Date
    May 2012
    Posts
    12
    Rep Power
    0

    Default Re: HTTP Status 404 - Servlet appServlet is not available

    Quote Originally Posted by Tolls View Post
    Looks like your spring jar file has gone.
    Is it deployed in the WEB-INF lib directory?
    Hey Toll,
    I'm new in Spring MVC/ Java.
    What needs to been deployed in the WEB_INF lib dir ?

  4. #4
    eclectica is offline Member
    Join Date
    May 2012
    Posts
    12
    Rep Power
    0

    Default Re: HTTP Status 404 - Servlet appServlet is not available

    Problem Solved! I deleted my Tomcat server and it works now :-)

  5. #5
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,856
    Rep Power
    19

    Default Re: HTTP Status 404 - Servlet appServlet is not available

    That's an, um, interesting solution...:)
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. http://localhost:8080/helloservice/HelloService?Tester HTTP Status 404 -
    By vietnamusa in forum Enterprise JavaBeans (EJB)
    Replies: 0
    Last Post: 03-13-2011, 12:02 AM
  2. HTTP Status 500 -
    By gardiann in forum Java Servlet
    Replies: 2
    Last Post: 12-26-2010, 12:49 PM
  3. Replies: 7
    Last Post: 11-11-2009, 08:29 PM
  4. HTTP Status 404 - Servlet action is not available---Error
    By sireesha in forum Web Frameworks
    Replies: 0
    Last Post: 04-18-2008, 07:25 PM
  5. HTTP Status 404 - Servlet action is not available
    By onceuponatime in forum Java Servlet
    Replies: 1
    Last Post: 12-11-2007, 04:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •