Please check if any jar files missing particularly jars are may have been taken as locally, so put into lib folder then create the WAR file
I thought I'd add that for Tomcat 7.x, <Context>
is not in the server.xml
, but in the context.xml
. Removing and re-adding the project did not seem to help my similar issue, which was a web.xml issue, which I found out by checking the context.xml
which had this line in the <Context>
section:
<WatchedResource>WEB-INF/web.xml</WatchedResource>
The solution in WARNING: Setting property 'source' to 'org.eclipse.jst.jee.server:appname' did not find a matching property brought me closer to my answer, as the change of publishing into a separate XML did resolve the error reported above for me, but unfortunately it generated a second error that I'm still investigating.
WARNING: [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server:myproject' did not find a matching property.
This is simple solution for this warning:
You can change the eclipse tomcat server configuration. Open the server view, double click on you server to open server configuration. There is a server Option Tab. inside that tab click check Box to activate "Publish module contents to separate XML files".
Finally, restart your server, the message must disappear.
Since this commit, this is is fixed in the development version of Tomcat. And now in released versions 9.0.13, 8.5.35, and 7.0.92.
From the 9.0.13 changelog:
Ignore an attribute named source on Context elements provided by StandardContext. This is to suppress warnings generated by the Eclipse / Tomcat integration provided by Eclipse. Based on a patch by mdfst13. (markt)
There are similar entries in the 7.0.92 and 8.5.35 changelogs.
The effect of this change is to suppress a warning when a source
attribute is declared on a Context
element in either server.xml or a context.xml. Since those are the two places that Eclipse puts such an attribute, that fixes this particular issue.
TL;DR: update to the latest Tomcat version in its branch, e.g. 9.0.13 or newer.
In regards to setting the logging.properties value
org.apache.tomcat.util.digester.Digester.level = SEVERE
... if you're running an embedded tomcat server in eclipse, the logging.properties
file used by default is the JDK default at %JAVA_HOME%/jre/lib/logging.properties
If you want to use a different logging.properties file (e.g. in the tomcat server's conf
directory), this needs to be set via the java.util.logging.config.file
system property. e.g. to use the logging properties defined in the file c:\java\apache-tomcat-7.0.54\conf\eclipse-logging.properties
, add this to the VM argument list:
-Djava.util.logging.config.file="c:\java\apache-tomcat-7.0.54\conf\eclipse-logging.properties"
(double-click on the server icon, click 'Open launch configuration', select the Arguments tab, then enter this in the 'VM arguments' text box)
You might also find it useful to add the VM argument
-Djava.util.logging.SimpleFormatter.format="%1$tc %4$s %3$s %5$s%n"
as well, which will then include the source logger name in the output, which should make it easier to determine which logger to throttle in the logging.properties file (as per http://docs.oracle.com/javase/7/docs/api/java/util/logging/SimpleFormatter.html )
I have faced the similar issue. Steps to resolve this.
Hope this works for you too.
Remove the project from the server from the Server View. Then run the project under the same server.
The problem is as @BalusC told corrupt of server.xml of tomcat which is configured in the eclipse. So when you do the above process server.xml will be recreated .
Source: Stackoverflow.com