no global web.xml found











up vote
0
down vote

favorite












I tried to use tomcat 8 embedded for my application but i got this error:




Nov 21, 2017 11:37:18 AM org.apache.catalina.core.StandardContext
setPath



WARNUNG: A context path must either be an empty string or
start with a '/' and do not end with a '/'. The path [/] does not meet
these criteria and has been changed to configuring app with
basedir:
C:UsershzammelDownloadsboualiali-gestion_stock_mvc-086417808484boualiali-gestion_stock_mvc-086417808484.srcmainwebapp
Nov 21, 2017 11:37:19 AM org.apache.coyote.AbstractProtocol init



INFORMATION: Initializing ProtocolHandler ["http-nio-8080"] Nov 21,
2017 11:37:19 AM org.apache.tomcat.util.net.NioSelectorPool
getSharedSelector



INFORMATION: Using a shared selector for servlet
write/read Nov 21, 2017 11:37:19 AM
org.apache.catalina.core.StandardService startInternal



INFORMATION:
Starting service Tomcat Nov 21, 2017 11:37:19 AM
org.apache.catalina.core.StandardEngine startInternal



INFORMATION:
Starting Servlet Engine: Apache Tomcat/8.0.36 Nov 21, 2017 11:37:19 AM
org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment



INFORMATION: No global web.xml found Nov 21, 2017 11:37:21 AM
org.apache.catalina.core.ApplicationContext log INFORMATION: No Spring
WebApplicationInitializer types detected on classpath Nov 21, 2017
11:37:21 AM org.apache.jasper.servlet.TldScanner scanJars



INFORMATION:
At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were
scanned but no TLDs were found in them. Skipping unneeded JARs during
scanning can improve startup time and JSP compilation time. Nov 21,
2017 11:37:22 AM org.apache.catalina.core.ApplicationContext log



INFORMATION: Initializing Spring root WebApplicationContext




this is my class Main :



 public static void main(String args) throws LifecycleException,
InterruptedException, ServletException {

String docBase = "src/main/webapp/";

Tomcat tomcat = new Tomcat();
String webPort = System.getenv("PORT");
if(webPort == null || webPort.isEmpty()) {
webPort = "8080";
}
tomcat.setPort(Integer.valueOf(webPort));

StandardContext ctx = (StandardContext) tomcat.addWebapp("/", new File(docBase).getAbsolutePath());
System.out.println("configuring app with basedir: " + new File("./" + docBase).getAbsolutePath());


File additionWebInfClasses = new File("target/classes");
WebResourceRoot resources = new StandardRoot(ctx);
resources.addPreResources(new DirResourceSet(resources, "/WEB-INF/classes", additionWebInfClasses.getAbsolutePath(), "/"));
ctx.setResources(resources);



/*
tomcat.addWebapp("", new File(docBase).getAbsolutePath());
System.out.println("configuring app with basedir: " + new File("./" + docBase).getAbsolutePath());
*/
tomcat.start();
tomcat.getServer().await();


my folders ##:



src



----------main



    ---------- webapp

----------WEB-INF

----------web.xml


any help please ??










share|improve this question
























  • Your stack trace is unreadable in this format
    – Stefan
    Nov 21 '17 at 11:18










  • this is the error :Nov 21, 2017 11:37:19 AM org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment INFORMATION: No global web.xml found
    – h.zammel
    Nov 21 '17 at 11:47















up vote
0
down vote

favorite












I tried to use tomcat 8 embedded for my application but i got this error:




Nov 21, 2017 11:37:18 AM org.apache.catalina.core.StandardContext
setPath



WARNUNG: A context path must either be an empty string or
start with a '/' and do not end with a '/'. The path [/] does not meet
these criteria and has been changed to configuring app with
basedir:
C:UsershzammelDownloadsboualiali-gestion_stock_mvc-086417808484boualiali-gestion_stock_mvc-086417808484.srcmainwebapp
Nov 21, 2017 11:37:19 AM org.apache.coyote.AbstractProtocol init



INFORMATION: Initializing ProtocolHandler ["http-nio-8080"] Nov 21,
2017 11:37:19 AM org.apache.tomcat.util.net.NioSelectorPool
getSharedSelector



INFORMATION: Using a shared selector for servlet
write/read Nov 21, 2017 11:37:19 AM
org.apache.catalina.core.StandardService startInternal



INFORMATION:
Starting service Tomcat Nov 21, 2017 11:37:19 AM
org.apache.catalina.core.StandardEngine startInternal



INFORMATION:
Starting Servlet Engine: Apache Tomcat/8.0.36 Nov 21, 2017 11:37:19 AM
org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment



INFORMATION: No global web.xml found Nov 21, 2017 11:37:21 AM
org.apache.catalina.core.ApplicationContext log INFORMATION: No Spring
WebApplicationInitializer types detected on classpath Nov 21, 2017
11:37:21 AM org.apache.jasper.servlet.TldScanner scanJars



INFORMATION:
At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were
scanned but no TLDs were found in them. Skipping unneeded JARs during
scanning can improve startup time and JSP compilation time. Nov 21,
2017 11:37:22 AM org.apache.catalina.core.ApplicationContext log



INFORMATION: Initializing Spring root WebApplicationContext




this is my class Main :



 public static void main(String args) throws LifecycleException,
InterruptedException, ServletException {

String docBase = "src/main/webapp/";

Tomcat tomcat = new Tomcat();
String webPort = System.getenv("PORT");
if(webPort == null || webPort.isEmpty()) {
webPort = "8080";
}
tomcat.setPort(Integer.valueOf(webPort));

StandardContext ctx = (StandardContext) tomcat.addWebapp("/", new File(docBase).getAbsolutePath());
System.out.println("configuring app with basedir: " + new File("./" + docBase).getAbsolutePath());


File additionWebInfClasses = new File("target/classes");
WebResourceRoot resources = new StandardRoot(ctx);
resources.addPreResources(new DirResourceSet(resources, "/WEB-INF/classes", additionWebInfClasses.getAbsolutePath(), "/"));
ctx.setResources(resources);



/*
tomcat.addWebapp("", new File(docBase).getAbsolutePath());
System.out.println("configuring app with basedir: " + new File("./" + docBase).getAbsolutePath());
*/
tomcat.start();
tomcat.getServer().await();


my folders ##:



src



----------main



    ---------- webapp

----------WEB-INF

----------web.xml


any help please ??










share|improve this question
























  • Your stack trace is unreadable in this format
    – Stefan
    Nov 21 '17 at 11:18










  • this is the error :Nov 21, 2017 11:37:19 AM org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment INFORMATION: No global web.xml found
    – h.zammel
    Nov 21 '17 at 11:47













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I tried to use tomcat 8 embedded for my application but i got this error:




Nov 21, 2017 11:37:18 AM org.apache.catalina.core.StandardContext
setPath



WARNUNG: A context path must either be an empty string or
start with a '/' and do not end with a '/'. The path [/] does not meet
these criteria and has been changed to configuring app with
basedir:
C:UsershzammelDownloadsboualiali-gestion_stock_mvc-086417808484boualiali-gestion_stock_mvc-086417808484.srcmainwebapp
Nov 21, 2017 11:37:19 AM org.apache.coyote.AbstractProtocol init



INFORMATION: Initializing ProtocolHandler ["http-nio-8080"] Nov 21,
2017 11:37:19 AM org.apache.tomcat.util.net.NioSelectorPool
getSharedSelector



INFORMATION: Using a shared selector for servlet
write/read Nov 21, 2017 11:37:19 AM
org.apache.catalina.core.StandardService startInternal



INFORMATION:
Starting service Tomcat Nov 21, 2017 11:37:19 AM
org.apache.catalina.core.StandardEngine startInternal



INFORMATION:
Starting Servlet Engine: Apache Tomcat/8.0.36 Nov 21, 2017 11:37:19 AM
org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment



INFORMATION: No global web.xml found Nov 21, 2017 11:37:21 AM
org.apache.catalina.core.ApplicationContext log INFORMATION: No Spring
WebApplicationInitializer types detected on classpath Nov 21, 2017
11:37:21 AM org.apache.jasper.servlet.TldScanner scanJars



INFORMATION:
At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were
scanned but no TLDs were found in them. Skipping unneeded JARs during
scanning can improve startup time and JSP compilation time. Nov 21,
2017 11:37:22 AM org.apache.catalina.core.ApplicationContext log



INFORMATION: Initializing Spring root WebApplicationContext




this is my class Main :



 public static void main(String args) throws LifecycleException,
InterruptedException, ServletException {

String docBase = "src/main/webapp/";

Tomcat tomcat = new Tomcat();
String webPort = System.getenv("PORT");
if(webPort == null || webPort.isEmpty()) {
webPort = "8080";
}
tomcat.setPort(Integer.valueOf(webPort));

StandardContext ctx = (StandardContext) tomcat.addWebapp("/", new File(docBase).getAbsolutePath());
System.out.println("configuring app with basedir: " + new File("./" + docBase).getAbsolutePath());


File additionWebInfClasses = new File("target/classes");
WebResourceRoot resources = new StandardRoot(ctx);
resources.addPreResources(new DirResourceSet(resources, "/WEB-INF/classes", additionWebInfClasses.getAbsolutePath(), "/"));
ctx.setResources(resources);



/*
tomcat.addWebapp("", new File(docBase).getAbsolutePath());
System.out.println("configuring app with basedir: " + new File("./" + docBase).getAbsolutePath());
*/
tomcat.start();
tomcat.getServer().await();


my folders ##:



src



----------main



    ---------- webapp

----------WEB-INF

----------web.xml


any help please ??










share|improve this question















I tried to use tomcat 8 embedded for my application but i got this error:




Nov 21, 2017 11:37:18 AM org.apache.catalina.core.StandardContext
setPath



WARNUNG: A context path must either be an empty string or
start with a '/' and do not end with a '/'. The path [/] does not meet
these criteria and has been changed to configuring app with
basedir:
C:UsershzammelDownloadsboualiali-gestion_stock_mvc-086417808484boualiali-gestion_stock_mvc-086417808484.srcmainwebapp
Nov 21, 2017 11:37:19 AM org.apache.coyote.AbstractProtocol init



INFORMATION: Initializing ProtocolHandler ["http-nio-8080"] Nov 21,
2017 11:37:19 AM org.apache.tomcat.util.net.NioSelectorPool
getSharedSelector



INFORMATION: Using a shared selector for servlet
write/read Nov 21, 2017 11:37:19 AM
org.apache.catalina.core.StandardService startInternal



INFORMATION:
Starting service Tomcat Nov 21, 2017 11:37:19 AM
org.apache.catalina.core.StandardEngine startInternal



INFORMATION:
Starting Servlet Engine: Apache Tomcat/8.0.36 Nov 21, 2017 11:37:19 AM
org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment



INFORMATION: No global web.xml found Nov 21, 2017 11:37:21 AM
org.apache.catalina.core.ApplicationContext log INFORMATION: No Spring
WebApplicationInitializer types detected on classpath Nov 21, 2017
11:37:21 AM org.apache.jasper.servlet.TldScanner scanJars



INFORMATION:
At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were
scanned but no TLDs were found in them. Skipping unneeded JARs during
scanning can improve startup time and JSP compilation time. Nov 21,
2017 11:37:22 AM org.apache.catalina.core.ApplicationContext log



INFORMATION: Initializing Spring root WebApplicationContext




this is my class Main :



 public static void main(String args) throws LifecycleException,
InterruptedException, ServletException {

String docBase = "src/main/webapp/";

Tomcat tomcat = new Tomcat();
String webPort = System.getenv("PORT");
if(webPort == null || webPort.isEmpty()) {
webPort = "8080";
}
tomcat.setPort(Integer.valueOf(webPort));

StandardContext ctx = (StandardContext) tomcat.addWebapp("/", new File(docBase).getAbsolutePath());
System.out.println("configuring app with basedir: " + new File("./" + docBase).getAbsolutePath());


File additionWebInfClasses = new File("target/classes");
WebResourceRoot resources = new StandardRoot(ctx);
resources.addPreResources(new DirResourceSet(resources, "/WEB-INF/classes", additionWebInfClasses.getAbsolutePath(), "/"));
ctx.setResources(resources);



/*
tomcat.addWebapp("", new File(docBase).getAbsolutePath());
System.out.println("configuring app with basedir: " + new File("./" + docBase).getAbsolutePath());
*/
tomcat.start();
tomcat.getServer().await();


my folders ##:



src



----------main



    ---------- webapp

----------WEB-INF

----------web.xml


any help please ??







java spring tomcat






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 21 '17 at 15:27









ADyson

21.8k112443




21.8k112443










asked Nov 21 '17 at 11:14









h.zammel

11




11












  • Your stack trace is unreadable in this format
    – Stefan
    Nov 21 '17 at 11:18










  • this is the error :Nov 21, 2017 11:37:19 AM org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment INFORMATION: No global web.xml found
    – h.zammel
    Nov 21 '17 at 11:47


















  • Your stack trace is unreadable in this format
    – Stefan
    Nov 21 '17 at 11:18










  • this is the error :Nov 21, 2017 11:37:19 AM org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment INFORMATION: No global web.xml found
    – h.zammel
    Nov 21 '17 at 11:47
















Your stack trace is unreadable in this format
– Stefan
Nov 21 '17 at 11:18




Your stack trace is unreadable in this format
– Stefan
Nov 21 '17 at 11:18












this is the error :Nov 21, 2017 11:37:19 AM org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment INFORMATION: No global web.xml found
– h.zammel
Nov 21 '17 at 11:47




this is the error :Nov 21, 2017 11:37:19 AM org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment INFORMATION: No global web.xml found
– h.zammel
Nov 21 '17 at 11:47












1 Answer
1






active

oldest

votes

















up vote
0
down vote













INFORMATION: No global web.xml found



There is no error here, the logging level here is INFO and Not ERROR. The application should run okay. Check the URL you are typing in the browser to the one that is contained/configured in your project.






share|improve this answer





















    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',
    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%2f47411736%2fno-global-web-xml-found%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    INFORMATION: No global web.xml found



    There is no error here, the logging level here is INFO and Not ERROR. The application should run okay. Check the URL you are typing in the browser to the one that is contained/configured in your project.






    share|improve this answer

























      up vote
      0
      down vote













      INFORMATION: No global web.xml found



      There is no error here, the logging level here is INFO and Not ERROR. The application should run okay. Check the URL you are typing in the browser to the one that is contained/configured in your project.






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        INFORMATION: No global web.xml found



        There is no error here, the logging level here is INFO and Not ERROR. The application should run okay. Check the URL you are typing in the browser to the one that is contained/configured in your project.






        share|improve this answer












        INFORMATION: No global web.xml found



        There is no error here, the logging level here is INFO and Not ERROR. The application should run okay. Check the URL you are typing in the browser to the one that is contained/configured in your project.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 10 at 21:29









        ravi saurav

        13




        13






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f47411736%2fno-global-web-xml-found%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

            Xamarin.iOS Cant Deploy on Iphone

            Glorious Revolution

            Dulmage-Mendelsohn matrix decomposition in Python