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.

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
>
>

Reply via email to