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 ??
java spring tomcat
add a comment |
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 ??
java spring tomcat
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
add a comment |
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 ??
java spring tomcat
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
java spring tomcat
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
add a comment |
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
add a comment |
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.
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Nov 10 at 21:29
ravi saurav
13
13
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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