Re: FAIL - Application at context path /test could not be started

2012-10-17 Thread Rainer Frey

On 16.10.2012, at 15:26, majin_clo...@t-online.de wrote:

 Thanks for your reply. :) 
 
   my web.xml looks like this: 
 
   ?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;
 
  listener
 
 listener-classorg.test.web.servlets.BigBangServletContextListener/listener-class
  /listener
 
 Oct 16, 2012 12:46:47 PM org.apache.catalina.startup.HostConfig
 deployWAR
 INFO: Deploying web application archive test.war
 Oct 16, 2012 12:46:47 PM
 org.apache.catalina.loader.WebappClassLoader
 validateJarFile
 INFO:
 validateJarFile(/var/lib/tomcat6/webapps/test/WEB-INF/lib/servlet-api-2.5-6.1.14.jar)
 - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
 class: javax/servlet/Servlet.class

You must not include the servlet API as .jar in your web app. It is provided by 
the container. Remove this file. This is not your problem though - as the 
message says, it is not loaded.
 SEVERE: Error listenerStart

This means the listener defined above 
(org.test.web.servlets.BigBangServletContextListener) does not start. Either 
that class is not found, it does not implement the ServletContextListener 
interface or it fails to initialize internally.
Maybe other log files have more info, or s.o. else knows more details on how 
these cases are distinguished - or even better just verify all three 
possibilities yourself

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



Re: FAIL - Application at context path /test could not be started

2012-10-16 Thread Daniel Barcellos
could you missing something on you web.xml ?

2012/10/16 majin_clo...@t-online.de majin_clo...@t-online.de

 Hello guys,

 well I could successfull deploy my web-application test on
 tomcat.
 My problem is now: If I want to run my web-application I get the
 following error:

 FAIL - Application at context path /test could not be started

 Does anyone know why this happen? Here ist the content of my
 catalina.out:

 Oct 16, 2012 12:46:46 PM
 org.apache.catalina.startup.ClassLoaderFactory validateFile
 WARNING: Problem with directory [/usr/share/tomcat6/server/classes],
 exists: [false], isDirectory: [false], canRead: [false]
 Oct 16, 2012 12:46:46 PM
 org.apache.catalina.startup.ClassLoaderFactory validateFile
 WARNING: Problem with directory [/usr/share/tomcat6/server], exists:
 [false], isDirectory: [false], canRead: [false]
 Oct 16, 2012 12:46:46 PM
 org.apache.catalina.startup.ClassLoaderFactory validateFile
 WARNING: Problem with directory [/usr/share/tomcat6/shared/classes],
 exists: [false], isDirectory: [false], canRead: [false]
 Oct 16, 2012 12:46:46 PM
 org.apache.catalina.startup.ClassLoaderFactory validateFile
 WARNING: Problem with directory [/usr/share/tomcat6/shared], exists:
 [false], isDirectory: [false], canRead: [false]
 Oct 16, 2012 12:46:46 PM org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on http-8080
 Oct 16, 2012 12:46:46 PM org.apache.catalina.startup.Catalina load
 INFO: Initialization processed in 385 ms
 Oct 16, 2012 12:46:47 PM org.apache.catalina.core.StandardService
 start
 INFO: Starting service Catalina
 Oct 16, 2012 12:46:47 PM org.apache.catalina.core.StandardEngine start
 INFO: Starting Servlet Engine: Apache Tomcat/6.0.35
 Oct 16, 2012 12:46:47 PM org.apache.catalina.startup.HostConfig
 deployDescriptor
 INFO: Deploying configuration descriptor manager.xml
 Oct 16, 2012 12:46:47 PM org.apache.catalina.startup.HostConfig
 deployDescriptor
 INFO: Deploying configuration descriptor host-manager.xml
 Oct 16, 2012 12:46:47 PM org.apache.catalina.startup.HostConfig
 deployDescriptor
 INFO: Deploying configuration descriptor ROOT.xml
 Oct 16, 2012 12:46:47 PM org.apache.catalina.startup.HostConfig
 deployWAR
 INFO: Deploying web application archive test.war
 Oct 16, 2012 12:46:47 PM org.apache.catalina.loader.WebappClassLoader
 validateJarFile
 INFO:

 validateJarFile(/var/lib/tomcat6/webapps/test/WEB-INF/lib/servlet-api-2.5-6.1.14.jar)
 - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
 class: javax/servlet/Servlet.class
 Oct 16, 2012 12:46:47 PM org.apache.catalina.core.StandardContext
 start
 SEVERE: Error listenerStart
 Oct 16, 2012 12:46:47 PM org.apache.catalina.core.StandardContext
 start
 SEVERE: Context [/test] startup failed due to previous errors
 Oct 16, 2012 12:46:47 PM org.apache.coyote.http11.Http11Protocol start
 INFO: Starting Coyote HTTP/1.1 on http-8080
 Oct 16, 2012 12:46:47 PM org.apache.catalina.startup.Catalina start
 INFO: Server startup in 501 ms

 2 things are strange for me in catalina.out but I don't know how to
 solve them:

 INFO:

 validateJarFile(/var/lib/tomcat6/webapps/test/WEB-INF/lib/servlet-api-2.5-6.1.14.jar)
  - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
 class:  javax/servlet/Servlet.class

 SEVERE: Error listenerStart

 Does anyone have tipps or so for me? The full day I ry to run my
 web-application but I can't make it...

 Greetings, Clodan


Re: FAIL - Application at context path /test could not be started

2012-10-16 Thread majin_clo...@t-online.de
Thanks for your reply. :) 

my web.xml looks like this: 

?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;

  listener
   
listener-classorg.test.web.servlets.BigBangServletContextListener/listener-class
  /listener

  servlet
servlet-nameBatchSetPreferences/servlet-name
   
servlet-classorg.test.web.servlets.BatchSetPreferencesServlet/servlet-class
  /servlet

  servlet
servlet-nameSetPreference/servlet-name
   
servlet-classorg.test.web.servlets.SetPreferenceServlet/servlet-class
  /servlet

  servlet
servlet-nameTrain/servlet-name
servlet-classorg.test.web.servlets.TrainServlet/servlet-class
  /servlet

  servlet
servlet-nameRecommend/servlet-name
   
servlet-classorg.test.web.servlets.RecommendServlet/servlet-class
  /servlet

  servlet
servlet-nameAddCandidate/servlet-name
   
servlet-classorg.test.web.servlets.AddCandidateServlet/servlet-class
  /servlet

  servlet
servlet-nameBatchAddCandidates/servlet-name
   
servlet-classorg.test.web.servlets.BatchAddCandidatesServlet/servlet-class
  /servlet

  servlet
servlet-nameDeleteCandidate/servlet-name
   
servlet-classorg.test.web.servlets.DeleteCandidateServlet/servlet-class
  /servlet

  servlet
servlet-nameBatchDeleteCandidates/servlet-name
   
servlet-classorg.test.web.servlets.BatchDeleteCandidatesServlet/servlet-class
  /servlet

  servlet-mapping
servlet-nameBatchSetPreferences/servlet-name
url-pattern/batchSetPreferences/url-pattern
  /servlet-mapping

  servlet-mapping
servlet-nameSetPreference/servlet-name
url-pattern/setPreference/url-pattern
  /servlet-mapping

  servlet-mapping
servlet-nameTrain/servlet-name
url-pattern/train/url-pattern
  /servlet-mapping

  servlet-mapping
servlet-nameRecommend/servlet-name
url-pattern/recommend/url-pattern
  /servlet-mapping

  servlet-mapping
servlet-nameAddCandidate/servlet-name
url-pattern/addCandidate/url-pattern
  /servlet-mapping

  servlet-mapping
servlet-nameBatchAddCandidates/servlet-name
url-pattern/batchAddCandidates/url-pattern
  /servlet-mapping

  servlet-mapping
servlet-nameDeleteCandidate/servlet-name
url-pattern/deleteCandidate/url-pattern
  /servlet-mapping

  servlet-mapping
servlet-nameBatchDeleteCandidates/servlet-name
url-pattern/batchDeleteCandidates/url-pattern
  /servlet-mapping

/web-app  

  Von: Daniel Barcellos danielpoa...@gmail.com
 An: Tomcat Users List users@tomcat.apache.org, 
majin_clo...@t-online.de majin_clo...@t-online.de
 Betreff: Re: FAIL - Application at context path /test could not be
started
 Datum: Tue, 16 Oct 2012 15:19:17 +0200

 could you missing something on you web.xml ?

 2012/10/16 majin_clo...@t-online.de [1] majin_clo...@t-online.de
[2]

  Hello guys,
 
  well I could successfull deploy my web-application test
on
  tomcat.
  My problem is now: If I want to run my web-application I get the
  following error:
 
  FAIL - Application at context path /test could not be
started
 
  Does anyone know why this happen? Here ist the content of
my
  catalina.out:
 
  Oct 16, 2012 12:46:46 PM
  org.apache.catalina.startup.ClassLoaderFactory validateFile
  WARNING: Problem with directory
[/usr/share/tomcat6/server/classes],
  exists: [false], isDirectory: [false], canRead: [false]
  Oct 16, 2012 12:46:46 PM
  org.apache.catalina.startup.ClassLoaderFactory validateFile
  WARNING: Problem with directory [/usr/share/tomcat6/server],
exists:
  [false], isDirectory: [false], canRead: [false]
  Oct 16, 2012 12:46:46 PM
  org.apache.catalina.startup.ClassLoaderFactory validateFile
  WARNING: Problem with directory
[/usr/share/tomcat6/shared/classes],
  exists: [false], isDirectory: [false], canRead: [false]
  Oct 16, 2012 12:46:46 PM
  org.apache.catalina.startup.ClassLoaderFactory validateFile
  WARNING: Problem with directory [/usr/share/tomcat6/shared],
exists:
  [false], isDirectory: [false], canRead: [false]
  Oct 16, 2012 12:46:46 PM org.apache.coyote.http11.Http11Protocol
init
  INFO: Initializing Coyote HTTP/1.1 on http-8080
  Oct 16, 2012 12:46:46 PM org.apache.catalina.startup.Catalina load
  INFO: Initialization processed in 385 ms
  Oct 16, 2012 12:46:47 PM org.apache.catalina.core.StandardService
  start
  INFO: Starting service Catalina
  Oct 16, 2012 12:46:47 PM org.apache.catalina.core.StandardEngine
start
  INFO: Starting Servlet Engine: Apache Tomcat/6.0.35
  Oct 16, 2012 12:46:47 PM org.apache.catalina.startup.HostConfig
  deployDescriptor
  INFO: Deploying configuration descriptor manager.xml
  Oct 16, 2012 12:46:47 PM org.apache.catalina.startup.HostConfig
  deployDescriptor
  INFO: Deploying configuration descriptor host-manager.xml
  Oct 16, 2012 12:46:47 PM

Re: FAIL - Application at context path /test could not be started

2012-10-16 Thread Konstantin Kolinko
2012/10/16 majin_clo...@t-online.de majin_clo...@t-online.de:
 Hello guys,

 well I could successfull deploy my web-application test on tomcat.
 My problem is now: If I want to run my web-application I get the
 following error:

 FAIL - Application at context path /test could not be started

 Does anyone know why this happen? Here ist the content of my
 catalina.out:

 Oct 16, 2012 12:46:46 PM
 org.apache.catalina.startup.ClassLoaderFactory validateFile
 WARNING: Problem with directory [/usr/share/tomcat6/server/classes],
 exists: [false], isDirectory: [false], canRead: [false]

There is no such directory as $CATALINA_HOME/server/classes in Tomcat 6.

I guess that you are trying to start Tomcat 6 using configuration
files from an old version such as 5.5.   Do not do that (as mentioned
in the migration doc on the web site).

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



Re: Re: FAIL - Application at context path /test could not be started

2012-10-16 Thread cantalou89
You can try remove the  test/WEB-INF/lib/servlet-api-2.5-6.1.14.jar ,




cantalou89

From: majin_clo...@t-online.de
Date: 2012-10-16 21:26
To: Tomcat Users List
Subject: Re: FAIL - Application at context path /test could not be started
Thanks for your reply. :) 

my web.xml looks like this: 

?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;

  listener
   
listener-classorg.test.web.servlets.BigBangServletContextListener/listener-class
  /listener

  servlet
servlet-nameBatchSetPreferences/servlet-name
   
servlet-classorg.test.web.servlets.BatchSetPreferencesServlet/servlet-class
  /servlet

  servlet
servlet-nameSetPreference/servlet-name
   
servlet-classorg.test.web.servlets.SetPreferenceServlet/servlet-class
  /servlet

  servlet
servlet-nameTrain/servlet-name
servlet-classorg.test.web.servlets.TrainServlet/servlet-class
  /servlet

  servlet
servlet-nameRecommend/servlet-name
   
servlet-classorg.test.web.servlets.RecommendServlet/servlet-class
  /servlet

  servlet
servlet-nameAddCandidate/servlet-name
   
servlet-classorg.test.web.servlets.AddCandidateServlet/servlet-class
  /servlet

  servlet
servlet-nameBatchAddCandidates/servlet-name
   
servlet-classorg.test.web.servlets.BatchAddCandidatesServlet/servlet-class
  /servlet

  servlet
servlet-nameDeleteCandidate/servlet-name
   
servlet-classorg.test.web.servlets.DeleteCandidateServlet/servlet-class
  /servlet

  servlet
servlet-nameBatchDeleteCandidates/servlet-name
   
servlet-classorg.test.web.servlets.BatchDeleteCandidatesServlet/servlet-class
  /servlet

  servlet-mapping
servlet-nameBatchSetPreferences/servlet-name
url-pattern/batchSetPreferences/url-pattern
  /servlet-mapping

  servlet-mapping
servlet-nameSetPreference/servlet-name
url-pattern/setPreference/url-pattern
  /servlet-mapping

  servlet-mapping
servlet-nameTrain/servlet-name
url-pattern/train/url-pattern
  /servlet-mapping

  servlet-mapping
servlet-nameRecommend/servlet-name
url-pattern/recommend/url-pattern
  /servlet-mapping

  servlet-mapping
servlet-nameAddCandidate/servlet-name
url-pattern/addCandidate/url-pattern
  /servlet-mapping

  servlet-mapping
servlet-nameBatchAddCandidates/servlet-name
url-pattern/batchAddCandidates/url-pattern
  /servlet-mapping

  servlet-mapping
servlet-nameDeleteCandidate/servlet-name
url-pattern/deleteCandidate/url-pattern
  /servlet-mapping

  servlet-mapping
servlet-nameBatchDeleteCandidates/servlet-name
url-pattern/batchDeleteCandidates/url-pattern
  /servlet-mapping

/web-app  

  Von: Daniel Barcellos danielpoa...@gmail.com
 An: Tomcat Users List users@tomcat.apache.org, 
majin_clo...@t-online.de majin_clo...@t-online.de
 Betreff: Re: FAIL - Application at context path /test could not be
started
 Datum: Tue, 16 Oct 2012 15:19:17 +0200

 could you missing something on you web.xml ?

 2012/10/16 majin_clo...@t-online.de [1] majin_clo...@t-online.de
[2]

  Hello guys,
 
  well I could successfull deploy my web-application test
on
  tomcat.
  My problem is now: If I want to run my web-application I get the
  following error:
 
  FAIL - Application at context path /test could not be
started
 
  Does anyone know why this happen? Here ist the content of
my
  catalina.out:
 
  Oct 16, 2012 12:46:46 PM
  org.apache.catalina.startup.ClassLoaderFactory validateFile
  WARNING: Problem with directory
[/usr/share/tomcat6/server/classes],
  exists: [false], isDirectory: [false], canRead: [false]
  Oct 16, 2012 12:46:46 PM
  org.apache.catalina.startup.ClassLoaderFactory validateFile
  WARNING: Problem with directory [/usr/share/tomcat6/server],
exists:
  [false], isDirectory: [false], canRead: [false]
  Oct 16, 2012 12:46:46 PM
  org.apache.catalina.startup.ClassLoaderFactory validateFile
  WARNING: Problem with directory
[/usr/share/tomcat6/shared/classes],
  exists: [false], isDirectory: [false], canRead: [false]
  Oct 16, 2012 12:46:46 PM
  org.apache.catalina.startup.ClassLoaderFactory validateFile
  WARNING: Problem with directory [/usr/share/tomcat6/shared],
exists:
  [false], isDirectory: [false], canRead: [false]
  Oct 16, 2012 12:46:46 PM org.apache.coyote.http11.Http11Protocol
init
  INFO: Initializing Coyote HTTP/1.1 on http-8080
  Oct 16, 2012 12:46:46 PM org.apache.catalina.startup.Catalina load
  INFO: Initialization processed in 385 ms
  Oct 16, 2012 12:46:47 PM org.apache.catalina.core.StandardService
  start
  INFO: Starting service Catalina
  Oct 16, 2012 12:46:47 PM org.apache.catalina.core.StandardEngine
start
  INFO: Starting Servlet Engine: Apache Tomcat/6.0.35
  Oct 16, 2012 12:46:47 PM org.apache.catalina.startup.HostConfig
  deployDescriptor
  INFO: Deploying configuration descriptor