On Sun, 1/21/18, Alex O'Ree <alexo...@apache.org> wrote: Subject: Re: No movement at Debug mode To: "Tomcat Users List" <users@tomcat.apache.org>, "Karen Goh" <karenwo...@yahoo.com> Date: Sunday, January 21, 2018, 11:44 PM Do you mean you cannot get a debugger to attach to Tomcat and thus step through your app? Make sure you start tomcat with "catalina jpda run". I think it listens on port 8000 by default. You can then use just about any IDE to attach the debugger via JPDA to localhost port 8000.
Hi Alex, Actually, I found out that there is actually debugging going on cos I found out in the Tomcat log the following details : 127.0.0.1 - - [23/Jan/2018:12:14:49 +0800] "GET / HTTP/1.1" 404 1074 0:0:0:0:0:0:0:1 - - [23/Jan/2018:12:14:51 +0800] "GET /Hi5S/tutorRegister.jsp HTTP/1.1" 200 13656 0:0:0:0:0:0:0:1 - - [23/Jan/2018:12:14:51 +0800] "GET /Hi5S/BootStrap/bootstrap-multiselect.js HTTP/1.1" 404 1121 0:0:0:0:0:0:0:1 - - [23/Jan/2018:12:14:51 +0800] "GET /Hi5S/BootStrap/Checkbox.js HTTP/1.1" 404 1108 0:0:0:0:0:0:0:1 - - [23/Jan/2018:12:14:51 +0800] "GET /Hi5S/js/jquery.js HTTP/1.1" 404 1099 0:0:0:0:0:0:0:1 - - [23/Jan/2018:12:14:51 +0800] "GET /Hi5S/js/bootstrap.min.js HTTP/1.1" 404 1106 0:0:0:0:0:0:0:1 - - [23/Jan/2018:12:14:51 +0800] "GET /Hi5S/js/jqBootstrapValidation.js HTTP/1.1" 404 1114 0:0:0:0:0:0:0:1 - - [23/Jan/2018:12:14:51 +0800] "GET /Hi5S/js/contact_me.js HTTP/1.1" 404 1103 0:0:0:0:0:0:0:1 - - [23/Jan/2018:12:14:51 +0800] "GET /Hi5S/Image/aa1.png HTTP/1.1" 404 1100 0:0:0:0:0:0:0:1 - - [23/Jan/2018:12:16:36 +0800] "POST /Hi5S/addTutor HTTP/1.1" 200 - But, I could not understand why Tomcat can't read the URL tutorRegister.jsp, as there is a 404. I have make sure I have all the right thing in my web.xml as follows : <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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>tutorRegister.jsp</welcome-file> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> </welcome-file-list> <resource-ref> <description>MySQL Datasource</description> <res-ref-name>jdbc/hi5s</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref> </web-app> I have used the option of use workspace meta data for my tomcat server location and it does shows the 2 folders : ROOTS and the project name : Hi5S folders inside C:\Users\\workspace5\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps So, why is tomcat not able to read the URL ? Hope that you could tell me the way to resolve this. Thanks & regards, Karen On Sun, Jan 21, 2018 at 10:37 AM, Karen Goh <karenwo...@yahoo.com.invalid> wrote: > Hi expert, > > I have been stuck at this problem - No debug movement , for quite some > time and am seeking help from this user group. > > After submitting my form using JSP, > > So, here's what appeared at the console : > > an 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener > log > INFO: Server version: Apache Tomcat/8.5.24 > Jan 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener > log > INFO: Server built: Nov 27 2017 13:05:30 UTC > Jan 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener > log > INFO: Server number: 8.5.24.0 > Jan 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener > log > INFO: OS Name: Windows 10 > Jan 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener > log > INFO: OS Version: 10.0 > Jan 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener > log > INFO: Architecture: amd64 > Jan 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener > log > INFO: Java Home: C:\Program Files\Java\jdk1.8.0_151\jre > Jan 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener > log > INFO: JVM Version: 1.8.0_151-b12 > Jan 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener > log > INFO: JVM Vendor: Oracle Corporation > Jan 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener > log > INFO: CATALINA_BASE: C:\Users\Karen.Goh\workspace5\Servers2\Tomcat > v8.5 Server at localhost-config\Hi5SProject > Jan 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener > log > INFO: CATALINA_HOME: C:\Program Files\Apache\apache-tomcat-8.5.24 > Jan 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener > log > INFO: Command line argument: -agentlib:jdwp=transport=dt_ > socket,suspend=y,address=localhost:51917 > Jan 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener > log > INFO: Command line argument: -Dcatalina.base=C:\Users\ > Karen.Goh\workspace5\Servers2\Tomcat v8.5 Server at > localhost-config\Hi5SProject > Jan 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener > log > INFO: Command line argument: -Dcatalina.home=C:\Program > Files\Apache\apache-tomcat-8.5.24 > Jan 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener > log > INFO: Command line argument: -Dwtp.deploy=C:\Users\Karen.Goh\workspace5\Servers2\Tomcat > v8.5 Server at localhost-config\Hi5SProject\wtpwebapps > Jan 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener > log > INFO: Command line argument: -Djava.endorsed.dirs=C:\Program > Files\Apache\apache-tomcat-8.5.24\endorsed > Jan 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener > log > INFO: Command line argument: -Dfile.encoding=Cp1252 > Jan 21, 2018 11:25:58 PM org.apache.catalina.core.AprLifecycleListener > lifecycleEvent > INFO: The APR based Apache Tomcat Native library which allows optimal > performance in production environments was not found on the > java.library.path: [C:\Program Files\Java\jdk1.8.0_151\bin;C: > \WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program > Files\Java\jdk1.8.0_151\jre\bin;C:/Program Files/Java/jdk1.8.0_151/bin/../jre/bin/server;C:/Program > Files/Java/jdk1.8.0_151/bin/../jre/bin;C:/Program > Files/Java/jdk1.8.0_151/bin/../jre/lib/amd64;C:\Program > Files\MySQL\mysql-5.7.20-win32\bin;C:\Program > Files\Java\jdk1.8.0_151\bin;C:\Program Files\eclipse;;.] > Jan 21, 2018 11:25:59 PM org.apache.coyote.AbstractProtocol init > INFO: Initializing ProtocolHandler ["http-nio-8080"] > Jan 21, 2018 11:26:00 PM org.apache.tomcat.util.net.NioSelectorPool > getSharedSelector > INFO: Using a shared selector for servlet write/read > Jan 21, 2018 11:26:00 PM org.apache.coyote.AbstractProtocol init > INFO: Initializing ProtocolHandler ["ajp-nio-8009"] > Jan 21, 2018 11:26:00 PM org.apache.tomcat.util.net.NioSelectorPool > getSharedSelector > INFO: Using a shared selector for servlet write/read > Jan 21, 2018 11:26:00 PM org.apache.catalina.startup.Catalina load > INFO: Initialization processed in 5550 ms > Jan 21, 2018 11:26:00 PM org.apache.catalina.core.StandardService > startInternal > INFO: Starting service [Catalina] > Jan 21, 2018 11:26:00 PM org.apache.catalina.core.StandardEngine > startInternal > INFO: Starting Servlet Engine: Apache Tomcat/8.5.24 > Jan 21, 2018 11:26:02 PM org.apache.jasper.servlet.TldScanner scanJars > INFO: 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. > Jan 21, 2018 11:26:03 PM org.apache.catalina.startup.HostConfig > deployDescriptor > INFO: Deploying configuration descriptor [C:\Users\Karen.Goh\workspace5\Servers2\Tomcat > v8.5 Server at localhost-config\Hi5SProject\conf\Catalina\localhost\Hi5S. > xml] > Jan 21, 2018 11:26:03 PM org.apache.catalina.startup.SetContextPropertiesRule > begin > WARNING: [SetContextPropertiesRule]{Context} Setting property 'source' to > 'org.eclipse.jst.jee.server:Hi5S' did not find a matching property. > Jan 21, 2018 11:26:09 PM org.apache.jasper.servlet.TldScanner scanJars > INFO: 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. > Jan 21, 2018 11:26:09 PM org.apache.catalina.startup.HostConfig > deployDescriptor > INFO: Deployment of configuration descriptor [C:\Users\Karen.Goh\workspace5\Servers2\Tomcat > v8.5 Server at localhost-config\Hi5SProject\conf\Catalina\localhost\Hi5S.xml] > has finished in [6,495] ms > Jan 21, 2018 11:26:09 PM org.apache.coyote.AbstractProtocol start > INFO: Starting ProtocolHandler ["http-nio-8080"] > Jan 21, 2018 11:26:09 PM org.apache.coyote.AbstractProtocol start > INFO: Starting ProtocolHandler ["ajp-nio-8009"] > Jan 21, 2018 11:26:09 PM org.apache.catalina.startup.Catalina start > INFO: Server startup in 9774 ms > > I am using Tomcat version 8.5.24 and changed the server location to : > C:\Users\Karen.Goh\workspace5\Servers2\Tomcat v8.5 Server at > localhost-config\Hi5SProject after I got the same problem at localhost. > > Project background > ---------------------------- > My project is a Java EE, JSP, JPA and hibernate with Maven. > Eclipse NEON 3. > MySQL 5.1.45. > Log4j2 > > Here's my pom.xml > > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/xsd/maven-4.0.0.xsd"> > <modelVersion>4.0.0</modelVersion> > <groupId>Hi5S</groupId> > <artifactId>Hi5S</artifactId> > <version>0.0.1-SNAPSHOT</version> > <packaging>war</packaging> > <properties> > <project.build.sourceEncoding>UTF-8</project.build. > sourceEncoding> > <maven.compiler.source>1.8</maven.compiler.source> > <maven.compiler.target>1.8</maven.compiler.target> > </properties> > > <dependencies> > <dependency> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-war-plugin</artifactId> > <version>3.1.0</version> > <scope>provided</scope> > </dependency> > > <!-- https://mvnrepository.com/ > artifact/commons-dbcp/commons-dbcp --> > <dependency> > <groupId>commons-dbcp</groupId> > <artifactId>commons-dbcp</artifactId> > <version>1.4</version> > </dependency> > <!-- https://mvnrepository.com/artifact/org.apache.tomcat/ > tomcat --> > <dependency> > <groupId>org.apache.tomcat</groupId> > <artifactId>tomcat</artifactId> > <version> 8.5.24</version> > <type>pom</type> > </dependency> > <!--Log4j2 API --> > <dependency> > <groupId>org.apache.logging.log4j</groupId> > <artifactId>log4j-api</artifactId> > <version>2.9.1</version> > </dependency> > <dependency> > <groupId>javax.servlet</groupId> > <artifactId>jstl</artifactId> > <version>1.2</version> > </dependency> > <dependency> > <groupId>org.apache.logging.log4j</groupId> > <artifactId>log4j-core</artifactId> > <version>2.9.1</version> > </dependency> > <!-- datasource-proxy --> > <dependency> > <groupId>commons-digester</groupId> > <artifactId>commons-digester</artifactId> > <version>2.1</version> > </dependency> > <dependency> > <groupId>commons-logging</groupId> > <artifactId>commons-logging</artifactId> > <version>1.2</version> > </dependency> > <dependency> > <groupId>javax.servlet</groupId> > <artifactId>jsp-api</artifactId> > <version>2.0</version> > </dependency> > <dependency> > <groupId>jstl</groupId> > <artifactId>jstl</artifactId> > <scope>provided</scope> > <version>1.2</version> > </dependency> > <dependency> > <groupId>javax.servlet</groupId> > <artifactId>javax.servlet-api</artifactId> > <version>3.1.0</version> > <scope>provided</scope> > </dependency> > <!-- https://mvnrepository.com/artifact/org.apache.tomee/ > javaee-api --> > <dependency> > <groupId>org.slf4j</groupId> > <artifactId>slf4j-jdk14</artifactId> > <version>1.7.21</version> > <type>jar</type> > <scope>compile</scope> > </dependency> > <!-- https://mvnrepository.com/artifact/mysql/mysql- > connector-java --> > <dependency> > <groupId>mysql</groupId> > <artifactId>mysql-connector-java</artifactId> > <version>5.1.45</version> > <scope>provided</scope> > </dependency> > > <!-- https://mvnrepository.com/artifact/javax/javaee-api > --> > <!-- https://mvnrepository.com/artifact/org.hibernate/ > hibernate-core --> > <dependency> > <groupId>org.hibernate</groupId> > <artifactId>hibernate-core</artifactId> > <version>5.2.10.Final</version> > </dependency> > <dependency> > <groupId>javax.validation</groupId> > <artifactId>validation-api</artifactId> > <version>2.0.0.Final</version> > </dependency> > <dependency> > <groupId>javax.transaction</groupId> > <artifactId>jta</artifactId> > <version>1.1</version> > </dependency> > <!-- https://mvnrepository.com/artifact/javax/javaee-api > --> > <dependency> > <groupId>javax</groupId> > <artifactId>javaee-api</artifactId> > <version>8.0</version> > <scope>provided</scope> > </dependency> > <!-- https://mvnrepository.com/artifact/com.google.guava/ > guava --> > <dependency> > <groupId>com.google.guava</groupId> > <artifactId>guava</artifactId> > <version>19.0</version> > </dependency> > <!-- https://mvnrepository.com/artifact/org.javassist/ > javassist --> > <dependency> > <groupId>org.javassist</groupId> > <artifactId>javassist</artifactId> > <version>3.19.0-GA</version> > </dependency> > <dependency> > <groupId>org.apache.geronimo.specs</groupId> > <artifactId>geronimo-osgi-locator</artifactId> > <version>1.1</version> > </dependency><!-- https://mvnrepository.com/ > artifact/org.jboss.logging/jboss-logging --> > <dependency> > <groupId>org.jboss.logging</groupId> > <artifactId>jboss-logging</artifactId> > <version>3.3.1.Final</version> > <scope>runtime</scope> > </dependency> > <!-- https://mvnrepository.com/artifact/com.fasterxml/ > classmate --> > <dependency> > <groupId>com.fasterxml</groupId> > <artifactId>classmate</artifactId> > <version>0.8.0</version> > </dependency> > <dependency> > <groupId>org.hibernate</groupId> > <artifactId>hibernate-commons- > annotations</artifactId> > <version>3.2.0.Final</version> > </dependency> > </dependencies> > </project> > > I hope someone can tell me how to get debug going or is this the fault of > the Ecllpse ? > > > > I used to be able to get hibernate Info showing the output in the console > but ever since I changed my machine to Windows 10, the debug mode is just > not working. > > Please help. > > Thanks. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org