>> >> 1. See a link to Eclipse IDE FAQ here: >> >> https://wiki.apache.org/tomcat/FAQ/Developing#Q6
The actual Tomcat configuration that is running is in ".metadata/.plugins/org.eclipse.wst.server.core" directory (the Eclipse Web Tools FAQ should provide more pointers). There may be situations when it becomes stale. >> 2. See the >> following thread on how to turn on "Publish module >> context to separate XML files" option in Eclipse. >> >> By default >> (without that option) Eclipse IDE places <Context> >> elements into server.xml, which is a rather >> discourage practice. >> >> http://markmail.org/message/7zkyocvph56b6t6q > > OK. I managed to turn on "Publish module context..but my problem of context > not bound is still there. > >> 3. >> Documentation on Context: >> >> http://tomcat.apache.org/tomcat-8.0-doc/config/context.html >> >> The <Context> element in >> your context.xml has a lot of attributes that >> should not be there, starting with >> "debug". What (bad) example were >> they copied from? > > 4. The current version of > Tomcat 8.0 is 8.0.46. > There were security > fixes in Java as well (8u141 was a security update > in July 2017) > > Also EOL date for Tomcat 8.0 has been > announced. Users are advised to > migrate to > 8.5. > http://tomcat.apache.org/tomcat-80-eol.html > > Hi kolinko, I have now installed Tomcat 8.5.20 but same problem. Even if it is "the same problem", it 'd better if you provide the actual log messages and stacktraces. Those differ between versions. >> 5. Your >> META-INF/context.xml is broken: [...] >> > > I have changed my context.xml as follows : > > <?xml version="1.0" encoding="UTF-8"?> > <Context path="/Hi5S" docBase="Hi5S" crossContext="true" reloadable="true" > "path" and "docBase" should not be here. > <Resource > name="jdbc/hi5" > auth="Container" > type="javax.sql.DataSource" > maxTotal="8" > maxActive="100" > maxIdle="30" > maxWait="-1" > username="root" > singleton="true" > override="true" > factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" > password="password" > alternateUsernameAllowed="true" > driverClassName="com.mysql.jdbc.Driver" > url="jdbc:mysql://localhost:3306/hi5" /> > </Context> > > And my web.xml ; > > <?xml version="1.0" encoding="UTF-8"?> > <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns="http://xmlns.jcp.org/xml/ns/javaee" > xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee > http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" version="3.1"> > <display-name>Hi5S</display-name> > <welcome-file-list> > <welcome-file>Index.jsp</welcome-file> Are you sure? Usually the name of a welcome file is "index.jsp" (lowercase). > </welcome-file-list> > <resource-ref> > <description>MySQL dataSource</description> > <res-ref-name>JDBC/hi5</res-ref-name> "JDBC/hi5" here != "jdbc/hi5" used in your Resource Case matters. > <res-type>javax.sql.DataSource</res-type> > <res-auth>Container</res-auth> > </resource-ref> > <listener> > <listener-class>util.HibernateSessionFactoryListener</listener-class> > // I do not know if this is necessary. Wld like to have your comments. Tks. > </listener> > </web-app> Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org