How to fix: FAIL - Deployed application at context path [/PollingApp] but context failed to start error in Netbeans/Tomcat?Tomcat 7.0 service fails to start with ClassNotFoundException: javax.ws.rs.ProcessingExceptionTomcat - A child container failed during start - After converting maven to gradleSEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternalServer Tomcat v8.5 Server at localhost failed to startCan't find solution Failed to create directory 'activemq-datalocalhostKahaDB'Start tomcat9 on eclipseTomcat starting Error while i am using GoogleAPIjava.lang.ClassNotFoundException: org.springFramework.web.context.ContextLoaderListener tomcat 9, maven, springCatalina LifeCycle Exception in Tomcat

How could a self contained organic body propel itself in space

Count the number of triangles

Fantasy Macro Economics: What would Merfolk trade for?

Find feasible point in polynomial time in linear programming

Should I ask for a raise one month before the end of an internship?

Is the internet in Madagascar faster than in UK?

How many petaflops does it take to land on the moon? What does Artemis need with an Aitken?

Why is there no Disney logo in MCU movies?

Why can't I identify major minor chords?

What does GDPR mean to myself regarding my own data?

How to handle inventory and story of a player leaving

Is it unusual for a math department not to have a mail/web server?

Can a network vulnerability be exploited locally?

The meaning of asynchronous vs synchronous

Why does glibc's strlen need to be so complicated to run quickly?

Can I lend a small amount of my own money to a bank at the federal funds rate?

How to deal with anxiety caused by dangerous riding conditions stemming from poor lane design and inconsiderate fellow road users?

Heat output from a 200W electric radiator?

Within what limits can the prime minister ask the queen to prorogue parliament?

Why is the Grievance Studies affair considered to be research requiring IRB approval?

Did anybody find out it was Anakin who blew up the command center?

Term used to describe a person who predicts future outcomes

Was the six engine Boeing-747 ever thought about?

Are sweatpants frowned upon on flights?



How to fix: FAIL - Deployed application at context path [/PollingApp] but context failed to start error in Netbeans/Tomcat?


Tomcat 7.0 service fails to start with ClassNotFoundException: javax.ws.rs.ProcessingExceptionTomcat - A child container failed during start - After converting maven to gradleSEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternalServer Tomcat v8.5 Server at localhost failed to startCan't find solution Failed to create directory 'activemq-datalocalhostKahaDB'Start tomcat9 on eclipseTomcat starting Error while i am using GoogleAPIjava.lang.ClassNotFoundException: org.springFramework.web.context.ContextLoaderListener tomcat 9, maven, springCatalina LifeCycle Exception in Tomcat






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I'm trying to implement my voting app to tomcat web server and I changed my context.xml file BUT to no avail, so what's the default code for context.xml? I tried to delete the file and restart NetBeans but also the same problem occurred... Here's the output of my context.xml error:



compile-jsps:
Incrementally de



ploying http://localhost:8080/PollingApp
Completed incremental distribution of http://localhost:8080/PollingApp
Incrementally redeploying http://localhost:8080/PollingApp
Deploy is in progress...
deploy?config=file%3A%2Fvar%2Ffolders%2F0s%2Fy4my3bp16s98bg06fngwr4t40000gn%2FT%2Fcontext1962805577261409935.xml&path=/PollingApp
FAIL - Deployed application at context path [/PollingApp] but context failed to start
/Users/fabiovreede/NetBeansProjects/PollingApp/nbproject/build-impl.xml:1048: The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 0 seconds)


So what should I do??



This is for my school, I'm working on a web application project for a survey poll app... I'm working with Apache Tomcat 9, MySQL 8.0.15 and Netbeans 8.2 with JSP and after changing META-INF folder with context.xml, adding Resources method, I got this error about not being able to deploy to Tomcat.



Edit added exception stack trace:



29-Mar-2019 19:26:05.134 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal One or more components marked the context as not correctly configured
29-Mar-2019 19:26:05.134 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal Context [/PollingApp] startup failed due to previous errors
29-Mar-2019 19:26:05.135 INFO [main] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of deployment descriptor [/usr/local/tomcat v9.0.17/conf/Catalina/localhost/PollingApp.xml] has finished in [3,870] ms
29-Mar-2019 19:26:05.135 INFO [main] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying deployment descriptor [/usr/local/tomcat v9.0.17/conf/Catalina/localhost/ROOT.xml]
29-Mar-2019 19:26:05.183 WARNING [main] org.apache.catalina.startup.HostConfig.deployDescriptor The path attribute with value [] in deployment descriptor [/usr/local/tomcat v9.0.17/conf/Catalina/localhost/ROOT.xml] has been ignored
29-Mar-2019 19:26:05.186 WARNING [main] org.apache.catalina.webresources.DirResourceSet.initInternal Failed to read manifest from [/Users/USERNAME/NetBeansProjects/PollingApp/build/web/META-INF/MANIFEST.MF]
java.io.IOException: invalid header field
at java.util.jar.Attributes.read(Attributes.java:410)
at java.util.jar.Manifest.read(Manifest.java:199)
at java.util.jar.Manifest.<init>(Manifest.java:69)
at org.apache.catalina.webresources.DirResourceSet.initInternal(DirResourceSet.java:272)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:173)
at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:714)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4797)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4932)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:713)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:695)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:631)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1832)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:526)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:425)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1577)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:424)
at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:367)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:929)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:831)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1377)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1367)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:902)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:423)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:928)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.startup.Catalina.start(Catalina.java:634)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)









share|improve this question


























  • Please follow the advice and See the server log for details.. Then edit your question to share your findings.

    – Selaron
    Mar 28 at 7:23











  • And where can I find "server log" you mentioned? Sorry, I'm quite new on this kind of thing...

    – Haru_Tsubasa
    Mar 28 at 13:51











  • They are in [apacheTomcatBaseDir]/logs/catalina.log

    – Selaron
    Mar 29 at 8:55











  • Oh well, I'm going to edit my post with the error log... I don't know where it's wrong though, I hope you could help me through...

    – Haru_Tsubasa
    Mar 29 at 19:29











  • The most important stuff are full exception stack traces.

    – Selaron
    Mar 29 at 19:44

















0















I'm trying to implement my voting app to tomcat web server and I changed my context.xml file BUT to no avail, so what's the default code for context.xml? I tried to delete the file and restart NetBeans but also the same problem occurred... Here's the output of my context.xml error:



compile-jsps:
Incrementally de



ploying http://localhost:8080/PollingApp
Completed incremental distribution of http://localhost:8080/PollingApp
Incrementally redeploying http://localhost:8080/PollingApp
Deploy is in progress...
deploy?config=file%3A%2Fvar%2Ffolders%2F0s%2Fy4my3bp16s98bg06fngwr4t40000gn%2FT%2Fcontext1962805577261409935.xml&path=/PollingApp
FAIL - Deployed application at context path [/PollingApp] but context failed to start
/Users/fabiovreede/NetBeansProjects/PollingApp/nbproject/build-impl.xml:1048: The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 0 seconds)


So what should I do??



This is for my school, I'm working on a web application project for a survey poll app... I'm working with Apache Tomcat 9, MySQL 8.0.15 and Netbeans 8.2 with JSP and after changing META-INF folder with context.xml, adding Resources method, I got this error about not being able to deploy to Tomcat.



Edit added exception stack trace:



29-Mar-2019 19:26:05.134 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal One or more components marked the context as not correctly configured
29-Mar-2019 19:26:05.134 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal Context [/PollingApp] startup failed due to previous errors
29-Mar-2019 19:26:05.135 INFO [main] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of deployment descriptor [/usr/local/tomcat v9.0.17/conf/Catalina/localhost/PollingApp.xml] has finished in [3,870] ms
29-Mar-2019 19:26:05.135 INFO [main] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying deployment descriptor [/usr/local/tomcat v9.0.17/conf/Catalina/localhost/ROOT.xml]
29-Mar-2019 19:26:05.183 WARNING [main] org.apache.catalina.startup.HostConfig.deployDescriptor The path attribute with value [] in deployment descriptor [/usr/local/tomcat v9.0.17/conf/Catalina/localhost/ROOT.xml] has been ignored
29-Mar-2019 19:26:05.186 WARNING [main] org.apache.catalina.webresources.DirResourceSet.initInternal Failed to read manifest from [/Users/USERNAME/NetBeansProjects/PollingApp/build/web/META-INF/MANIFEST.MF]
java.io.IOException: invalid header field
at java.util.jar.Attributes.read(Attributes.java:410)
at java.util.jar.Manifest.read(Manifest.java:199)
at java.util.jar.Manifest.<init>(Manifest.java:69)
at org.apache.catalina.webresources.DirResourceSet.initInternal(DirResourceSet.java:272)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:173)
at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:714)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4797)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4932)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:713)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:695)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:631)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1832)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:526)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:425)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1577)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:424)
at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:367)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:929)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:831)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1377)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1367)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:902)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:423)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:928)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.startup.Catalina.start(Catalina.java:634)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)









share|improve this question


























  • Please follow the advice and See the server log for details.. Then edit your question to share your findings.

    – Selaron
    Mar 28 at 7:23











  • And where can I find "server log" you mentioned? Sorry, I'm quite new on this kind of thing...

    – Haru_Tsubasa
    Mar 28 at 13:51











  • They are in [apacheTomcatBaseDir]/logs/catalina.log

    – Selaron
    Mar 29 at 8:55











  • Oh well, I'm going to edit my post with the error log... I don't know where it's wrong though, I hope you could help me through...

    – Haru_Tsubasa
    Mar 29 at 19:29











  • The most important stuff are full exception stack traces.

    – Selaron
    Mar 29 at 19:44













0












0








0








I'm trying to implement my voting app to tomcat web server and I changed my context.xml file BUT to no avail, so what's the default code for context.xml? I tried to delete the file and restart NetBeans but also the same problem occurred... Here's the output of my context.xml error:



compile-jsps:
Incrementally de



ploying http://localhost:8080/PollingApp
Completed incremental distribution of http://localhost:8080/PollingApp
Incrementally redeploying http://localhost:8080/PollingApp
Deploy is in progress...
deploy?config=file%3A%2Fvar%2Ffolders%2F0s%2Fy4my3bp16s98bg06fngwr4t40000gn%2FT%2Fcontext1962805577261409935.xml&path=/PollingApp
FAIL - Deployed application at context path [/PollingApp] but context failed to start
/Users/fabiovreede/NetBeansProjects/PollingApp/nbproject/build-impl.xml:1048: The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 0 seconds)


So what should I do??



This is for my school, I'm working on a web application project for a survey poll app... I'm working with Apache Tomcat 9, MySQL 8.0.15 and Netbeans 8.2 with JSP and after changing META-INF folder with context.xml, adding Resources method, I got this error about not being able to deploy to Tomcat.



Edit added exception stack trace:



29-Mar-2019 19:26:05.134 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal One or more components marked the context as not correctly configured
29-Mar-2019 19:26:05.134 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal Context [/PollingApp] startup failed due to previous errors
29-Mar-2019 19:26:05.135 INFO [main] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of deployment descriptor [/usr/local/tomcat v9.0.17/conf/Catalina/localhost/PollingApp.xml] has finished in [3,870] ms
29-Mar-2019 19:26:05.135 INFO [main] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying deployment descriptor [/usr/local/tomcat v9.0.17/conf/Catalina/localhost/ROOT.xml]
29-Mar-2019 19:26:05.183 WARNING [main] org.apache.catalina.startup.HostConfig.deployDescriptor The path attribute with value [] in deployment descriptor [/usr/local/tomcat v9.0.17/conf/Catalina/localhost/ROOT.xml] has been ignored
29-Mar-2019 19:26:05.186 WARNING [main] org.apache.catalina.webresources.DirResourceSet.initInternal Failed to read manifest from [/Users/USERNAME/NetBeansProjects/PollingApp/build/web/META-INF/MANIFEST.MF]
java.io.IOException: invalid header field
at java.util.jar.Attributes.read(Attributes.java:410)
at java.util.jar.Manifest.read(Manifest.java:199)
at java.util.jar.Manifest.<init>(Manifest.java:69)
at org.apache.catalina.webresources.DirResourceSet.initInternal(DirResourceSet.java:272)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:173)
at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:714)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4797)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4932)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:713)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:695)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:631)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1832)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:526)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:425)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1577)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:424)
at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:367)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:929)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:831)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1377)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1367)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:902)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:423)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:928)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.startup.Catalina.start(Catalina.java:634)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)









share|improve this question
















I'm trying to implement my voting app to tomcat web server and I changed my context.xml file BUT to no avail, so what's the default code for context.xml? I tried to delete the file and restart NetBeans but also the same problem occurred... Here's the output of my context.xml error:



compile-jsps:
Incrementally de



ploying http://localhost:8080/PollingApp
Completed incremental distribution of http://localhost:8080/PollingApp
Incrementally redeploying http://localhost:8080/PollingApp
Deploy is in progress...
deploy?config=file%3A%2Fvar%2Ffolders%2F0s%2Fy4my3bp16s98bg06fngwr4t40000gn%2FT%2Fcontext1962805577261409935.xml&path=/PollingApp
FAIL - Deployed application at context path [/PollingApp] but context failed to start
/Users/fabiovreede/NetBeansProjects/PollingApp/nbproject/build-impl.xml:1048: The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 0 seconds)


So what should I do??



This is for my school, I'm working on a web application project for a survey poll app... I'm working with Apache Tomcat 9, MySQL 8.0.15 and Netbeans 8.2 with JSP and after changing META-INF folder with context.xml, adding Resources method, I got this error about not being able to deploy to Tomcat.



Edit added exception stack trace:



29-Mar-2019 19:26:05.134 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal One or more components marked the context as not correctly configured
29-Mar-2019 19:26:05.134 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal Context [/PollingApp] startup failed due to previous errors
29-Mar-2019 19:26:05.135 INFO [main] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of deployment descriptor [/usr/local/tomcat v9.0.17/conf/Catalina/localhost/PollingApp.xml] has finished in [3,870] ms
29-Mar-2019 19:26:05.135 INFO [main] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying deployment descriptor [/usr/local/tomcat v9.0.17/conf/Catalina/localhost/ROOT.xml]
29-Mar-2019 19:26:05.183 WARNING [main] org.apache.catalina.startup.HostConfig.deployDescriptor The path attribute with value [] in deployment descriptor [/usr/local/tomcat v9.0.17/conf/Catalina/localhost/ROOT.xml] has been ignored
29-Mar-2019 19:26:05.186 WARNING [main] org.apache.catalina.webresources.DirResourceSet.initInternal Failed to read manifest from [/Users/USERNAME/NetBeansProjects/PollingApp/build/web/META-INF/MANIFEST.MF]
java.io.IOException: invalid header field
at java.util.jar.Attributes.read(Attributes.java:410)
at java.util.jar.Manifest.read(Manifest.java:199)
at java.util.jar.Manifest.<init>(Manifest.java:69)
at org.apache.catalina.webresources.DirResourceSet.initInternal(DirResourceSet.java:272)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:173)
at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:714)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4797)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4932)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:713)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:695)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:631)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1832)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:526)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:425)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1577)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:424)
at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:367)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:929)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:831)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1377)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1367)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:902)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:423)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:928)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.startup.Catalina.start(Catalina.java:634)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)






tomcat netbeans context.xml






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 30 at 7:11







Haru_Tsubasa

















asked Mar 27 at 21:17









Haru_TsubasaHaru_Tsubasa

33 bronze badges




33 bronze badges















  • Please follow the advice and See the server log for details.. Then edit your question to share your findings.

    – Selaron
    Mar 28 at 7:23











  • And where can I find "server log" you mentioned? Sorry, I'm quite new on this kind of thing...

    – Haru_Tsubasa
    Mar 28 at 13:51











  • They are in [apacheTomcatBaseDir]/logs/catalina.log

    – Selaron
    Mar 29 at 8:55











  • Oh well, I'm going to edit my post with the error log... I don't know where it's wrong though, I hope you could help me through...

    – Haru_Tsubasa
    Mar 29 at 19:29











  • The most important stuff are full exception stack traces.

    – Selaron
    Mar 29 at 19:44

















  • Please follow the advice and See the server log for details.. Then edit your question to share your findings.

    – Selaron
    Mar 28 at 7:23











  • And where can I find "server log" you mentioned? Sorry, I'm quite new on this kind of thing...

    – Haru_Tsubasa
    Mar 28 at 13:51











  • They are in [apacheTomcatBaseDir]/logs/catalina.log

    – Selaron
    Mar 29 at 8:55











  • Oh well, I'm going to edit my post with the error log... I don't know where it's wrong though, I hope you could help me through...

    – Haru_Tsubasa
    Mar 29 at 19:29











  • The most important stuff are full exception stack traces.

    – Selaron
    Mar 29 at 19:44
















Please follow the advice and See the server log for details.. Then edit your question to share your findings.

– Selaron
Mar 28 at 7:23





Please follow the advice and See the server log for details.. Then edit your question to share your findings.

– Selaron
Mar 28 at 7:23













And where can I find "server log" you mentioned? Sorry, I'm quite new on this kind of thing...

– Haru_Tsubasa
Mar 28 at 13:51





And where can I find "server log" you mentioned? Sorry, I'm quite new on this kind of thing...

– Haru_Tsubasa
Mar 28 at 13:51













They are in [apacheTomcatBaseDir]/logs/catalina.log

– Selaron
Mar 29 at 8:55





They are in [apacheTomcatBaseDir]/logs/catalina.log

– Selaron
Mar 29 at 8:55













Oh well, I'm going to edit my post with the error log... I don't know where it's wrong though, I hope you could help me through...

– Haru_Tsubasa
Mar 29 at 19:29





Oh well, I'm going to edit my post with the error log... I don't know where it's wrong though, I hope you could help me through...

– Haru_Tsubasa
Mar 29 at 19:29













The most important stuff are full exception stack traces.

– Selaron
Mar 29 at 19:44





The most important stuff are full exception stack traces.

– Selaron
Mar 29 at 19:44












0






active

oldest

votes










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55386595%2fhow-to-fix-fail-deployed-application-at-context-path-pollingapp-but-contex%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes




Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55386595%2fhow-to-fix-fail-deployed-application-at-context-path-pollingapp-but-contex%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript