• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Can't start application  RSS feed

 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

after hours of struggling with my problem I finally have decided to post something to see if anybody can see why my application is suddenly not starting. Most of the times whenever I have had the same problem "Clean & Build" in Netbeans solved the issue.

The message Netbeans Debugger returns is as follows:

Starting Tomcat process...
Waiting for Tomcat...
Tomcat server started.
connect-debugger:
Non-existing path "C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\activation.jar" provided.
Non-existing path "C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\dsn.jar" provided.
Non-existing path "C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\ecj-3.3.1.jar" provided.
Non-existing path "C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\imap.jar" provided.
Non-existing path "C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\mail.jar" provided.
Non-existing path "C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\mailapi.jar" provided.
Non-existing path "C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\mysql-connector-java-5.1.6-bin.jar" provided.
Non-existing path "C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\pop3.jar" provided.
Non-existing path "C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\smtp.jar" provided.
Have no file for C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\activation.jar
Have no file for C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\dsn.jar
Have no file for C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\ecj-3.3.1.jar
Have no file for C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\imap.jar
Have no file for C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\mail.jar
Have no file for C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\mailapi.jar
Have no file for C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\mysql-connector-java-5.1.6-bin.jar
Have no file for C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\pop3.jar
Have no file for C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\smtp.jar
Attached JPDA debugger to localhost:tomcat_shared_memory_id
In-place deployment at X:\Documents\Proyectos CuteBytes\Java\netbeans\Vaadin\Sofia\build\web
deploy?config=file%3A%2FC%3A%2FUsers%2FCARLOS%7E1%2FAppData%2FLocal%2FTemp%2Fcontext7800659289703348125.xml&path=/Safi
http://localhost:8080/manager/deploy?config=file%3A%2FC%3A%2FUsers%2FCARLOS%7E1%2FAppData%2FLocal%2FTemp%2Fcontext7800659289703348125.xml&path=/Safi
X:\Documents\Proyectos CuteBytes\Java\netbeans\Vaadin\Sofia\nbproject\build-impl.xml:845: The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 48 seconds)

I have tried rebuilding the whole application a couple of times, reinstalling Tomcat, with no luck.
I believe there is something wrong either with Netbeans or with my Tomcat version. However Tomcat used to work smoothly before this. I also created other test applications and started fine. So I am a bit lost. Don't know if the problem comes from Netbeans, Tomcat, my application or what. However my application is correctly compiled in the war file (at least the compiler doesn't complain at all). So the build seems to be correct. The problem comes only at the point of starting the application, or any of its rebuilds (so creating the application from scratch didn't help either) . I believe I have to look deeper, but don't know where to start from.

Many thanks for your help.


Carlos.
 
Bartender
Posts: 3648
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well since you don't know if it's Netbeans, Tomcat or your app is the problem I suggest you do the following:

In Tomcat do this:
1) Make sure it's turn off
2) Check in the webapps folder if there is any remains of your app from unsuccessful deployments, if so delete it

In Netbeans:
1) Clean your app (no build)
2) Make sure there is no dist folder or build folder in your project directory
3) (optional) in the project properties build page, you may want to add in the compiler flags "-Xlint:path" to check jar file path on Tomcat or even "-Xlint:all" to check everything; also you may want to check the compile JSP page checkbox
4) Build the app check if there is any warnings

Back to Tomcat
1) copy the war file to the webapps folder
2) start Tomcat normally (your app should deploy during startup)
3) check the Tomcat log
 
Bartender
Posts: 1810
28
Chrome Eclipse IDE Firefox Browser jQuery Linux MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Carlos Conti wrote:
Non-existing path "C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\activation.jar" provided.


I'm assuming you've checked this path to make sure that these files do indeed exist at this location. If they don't, right-click the project in NetBeans, click on Libraries on the left pane, and then click on the Compile tab in the right pane. Delete all entries. Then use the "Add JAR/Folder" button to add the required jar files from the correct location.
 
Carlos Conti
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
None of that has worked.

When I start to debug the application the Tomcat console throws this: (perhaps it can clarify, don't know much about Tomcat myself, but there seems to be a problem with the logs, since they seem to have disappeared from TOMCAT_HOME/logs)

Using CATALINA_BASE: "C:\Program Files\Apache Software Foundation\Tomcat 6.0"
Using CATALINA_HOME: "C:\Program Files\Apache Software Foundation\Tomcat 6.0"
Using CATALINA_TMPDIR: "C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp"
Using JRE_HOME: "C:\Java\jdk1.6"
Using CLASSPATH: "C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin\bootstrap.jar"
Listening for transport dt_shmem at address: tomcat_shared_memory_id
java.util.logging.ErrorManager: 4
java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat 6.0\logs\catalina.2013-07-03.log (Acceso denegado)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
at org.apache.juli.FileHandler.openWriter(FileHandler.java:374)
at org.apache.juli.FileHandler.<init>(FileHandler.java:99)
at org.apache.juli.FileHandler.<init>(FileHandler.java:90)
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:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:515)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:460)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:286)
at java.util.logging.LogManager$2.run(LogManager.java:268)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:266)
at java.util.logging.LogManager.getLogManager(LogManager.java:249)
at java.util.logging.Logger.<init>(Logger.java:220)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:958)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:955)
at java.util.logging.LogManager$1.run(LogManager.java:181)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.<clinit>(LogManager.java:158)
at java.util.logging.Logger.getLogger(Logger.java:273)
at org.apache.juli.logging.DirectJDKLog.<init>(DirectJDKLog.java:71)
at org.apache.juli.logging.DirectJDKLog.getInstance(DirectJDKLog.java:178)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:171)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:243)
at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:298)
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:55)
java.util.logging.ErrorManager: 4
java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat 6.0\logs\localhost.2013-07-03.log (Acceso denegado)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
at org.apache.juli.FileHandler.openWriter(FileHandler.java:374)
at org.apache.juli.FileHandler.<init>(FileHandler.java:99)
at org.apache.juli.FileHandler.<init>(FileHandler.java:90)
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:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:515)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:460)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:286)
at java.util.logging.LogManager$2.run(LogManager.java:268)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:266)
at java.util.logging.LogManager.getLogManager(LogManager.java:249)
at java.util.logging.Logger.<init>(Logger.java:220)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:958)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:955)
at java.util.logging.LogManager$1.run(LogManager.java:181)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.<clinit>(LogManager.java:158)
at java.util.logging.Logger.getLogger(Logger.java:273)
at org.apache.juli.logging.DirectJDKLog.<init>(DirectJDKLog.java:71)
at org.apache.juli.logging.DirectJDKLog.getInstance(DirectJDKLog.java:178)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:171)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:243)
at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:298)
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:55)
java.util.logging.ErrorManager: 4
java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat 6.0\logs\manager.2013-07-03.log (Acceso denegado)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
at org.apache.juli.FileHandler.openWriter(FileHandler.java:374)
at org.apache.juli.FileHandler.<init>(FileHandler.java:99)
at org.apache.juli.FileHandler.<init>(FileHandler.java:90)
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:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:515)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:460)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:286)
at java.util.logging.LogManager$2.run(LogManager.java:268)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:266)
at java.util.logging.LogManager.getLogManager(LogManager.java:249)
at java.util.logging.Logger.<init>(Logger.java:220)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:958)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:955)
at java.util.logging.LogManager$1.run(LogManager.java:181)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.<clinit>(LogManager.java:158)
at java.util.logging.Logger.getLogger(Logger.java:273)
at org.apache.juli.logging.DirectJDKLog.<init>(DirectJDKLog.java:71)
at org.apache.juli.logging.DirectJDKLog.getInstance(DirectJDKLog.java:178)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:171)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:243)
at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:298)
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:55)
java.util.logging.ErrorManager: 4
java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat 6.0\logs\host-manager.2013-07-03.log (Acceso denegado)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
at org.apache.juli.FileHandler.openWriter(FileHandler.java:374)
at org.apache.juli.FileHandler.<init>(FileHandler.java:99)
at org.apache.juli.FileHandler.<init>(FileHandler.java:90)
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:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:515)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:460)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:286)
at java.util.logging.LogManager$2.run(LogManager.java:268)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:266)
at java.util.logging.LogManager.getLogManager(LogManager.java:249)
at java.util.logging.Logger.<init>(Logger.java:220)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:958)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:955)
at java.util.logging.LogManager$1.run(LogManager.java:181)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.<clinit>(LogManager.java:158)
at java.util.logging.Logger.getLogger(Logger.java:273)
at org.apache.juli.logging.DirectJDKLog.<init>(DirectJDKLog.java:71)
at org.apache.juli.logging.DirectJDKLog.getInstance(DirectJDKLog.java:178)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:171)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:243)
at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:298)
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:55)
03-jul-2013 19:17:42 org.apache.catalina.core.AprLifecycleListener init
INFO: La biblioteca nativa de Apache Tomcat basada en ARP que permite un rendimiento óptimo en entornos de desarrollo no ha sido hallada en java.library.path: C:\Java\jdk1.6\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\MySQL\MySQL Server 5.1\bin;C:\Java\jdk1.6\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Oce\Repro Desk\;C:\Program Files (x86)\EasyFrom Trial\;C:\Program Files (x86)\Calibre2\;5;C:\Program Files (x86)\AppServ\Apache2.2\bin;C:\Program Files (x86)\AppServ\php5;C:\Program Files (x86)\IDM Computer Solutions\UltraEdit\
03-jul-2013 19:17:43 org.apache.coyote.http11.Http11Protocol init
INFO: Inicializando Coyote HTTP/1.1 en puerto http-8080
03-jul-2013 19:17:43 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 679 ms
03-jul-2013 19:17:43 org.apache.catalina.core.StandardService start
INFO: Arrancando servicio Catalina
03-jul-2013 19:17:43 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.35
03-jul-2013 19:17:43 org.apache.catalina.startup.HostConfig deployWAR
INFO: Despliegue del archivo Sofia.war de la aplicación web
03-jul-2013 19:17:43 org.apache.catalina.startup.ContextConfig init
GRAVE: Excepción arreglando docBase: /Sofia
java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\Sofia\META-INF\MANIFEST.MF (El sistema no puede encontrar la ruta especificada)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:457)
at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:173)
at org.apache.catalina.startup.ContextConfig.fixDocBase(ContextConfig.java:886)
at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:1021)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.StandardContext.init(StandardContext.java:5707)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4449)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
03-jul-2013 19:17:43 org.apache.catalina.loader.WebappLoader start
GRAVE: LifecycleException
java.io.IOException: Failed to copy resources
at org.apache.catalina.loader.WebappLoader.setRepositories(WebappLoader.java:970)
at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:683)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4575)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
03-jul-2013 19:17:43 org.apache.catalina.core.ContainerBase addChildInternal
GRAVE: ContainerBase.addChild: start:
LifecycleException: start: : java.io.IOException: Failed to copy resources
at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:709)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4575)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
03-jul-2013 19:17:43 org.apache.catalina.startup.HostConfig deployWAR
GRAVE: Error durante el despliegue del archivo Sofia.war de la aplicación web
java.lang.IllegalStateException: ContainerBase.addChild: start: LifecycleException: start: : java.io.IOException: Failed to copy resources
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:803)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
03-jul-2013 19:17:43 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Despliegue del directorio docs de la aplicación web
03-jul-2013 19:17:43 org.apache.jasper.EmbeddedServletOptions <init>
GRAVE: El directorio de trabajo especificado: C:\Program Files\Apache Software Foundation\Tomcat 6.0\work\Catalina\localhost\docs no es utilizable.
03-jul-2013 19:17:43 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Despliegue del directorio examples de la aplicación web
03-jul-2013 19:17:44 org.apache.jasper.EmbeddedServletOptions <init>
GRAVE: El directorio de trabajo especificado: C:\Program Files\Apache Software Foundation\Tomcat 6.0\work\Catalina\localhost\examples no es utilizable.
03-jul-2013 19:17:44 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Despliegue del directorio host-manager de la aplicación web
03-jul-2013 19:17:44 org.apache.catalina.startup.HostConfig deployDirectory
GRAVE: Error durante el despliegue del directorio host-manager de la aplicación web
java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\Catalina\localhost\host-manager.xml (El sistema no puede encontrar la ruta especificada)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1051)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
03-jul-2013 19:17:44 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Despliegue del directorio manager de la aplicación web
03-jul-2013 19:17:44 org.apache.catalina.startup.HostConfig deployDirectory
GRAVE: Error durante el despliegue del directorio manager de la aplicación web
java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\Catalina\localhost\manager.xml (El sistema no puede encontrar la ruta especificada)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1051)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
03-jul-2013 19:17:44 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Despliegue del directorio ROOT de la aplicación web
03-jul-2013 19:17:44 org.apache.jasper.EmbeddedServletOptions <init>
GRAVE: El directorio de trabajo especificado: C:\Program Files\Apache Software Foundation\Tomcat 6.0\work\Catalina\localhost\_ no es utilizable.
03-jul-2013 19:17:44 org.apache.coyote.http11.Http11Protocol start
INFO: Arrancando Coyote HTTP/1.1 en puerto http-8080
03-jul-2013 19:17:44 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
03-jul-2013 19:17:44 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/31 config=null
03-jul-2013 19:17:44 org.apache.catalina.startup.Catalina start
INFO: Server startup in 1290 ms



Thanks again.
Carlos.
 
Marshal
Posts: 24468
55
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I recommend that you go through that log and pick out the places where it explains the problems? Like for example this one:



My Spanish is awful but I think that means "Access denied". Which would mean that Tomcat (i.e. the user who is running Tomcat) isn't authorized to create that file. There are many other such places in the log with specific explanations of the problem. Then go and fix the problems with the authorizations or whatever they are.
 
Carlos Conti
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

thanks for your insights. Next time will concentrate the log output Paul so it is more comprehensible.

Finally you were right. Setting appropiate permission for the Tomcat folders solved both the application start problem, and the log entries problem.

I didn't expect that, since those permissions had changed suddenly for no reason at all. Thought more the problem was in my application, netbeans or tomcat.

Thanks to all for this discussion.

Carlos.
 
You guys wanna see my fabulous new place? Or do you wanna look at this tiny ad?
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!