Migration from Tomcat 7 to Tomcat 9 - java

I am getting this error while running application on tomcat 9.0.13 earlier we used tomcat 7.0.81
Please help me out on this.
In case you need more details please let me know.
StackTrace
"C:\Program Files\Java\jdk1.8.0_181\bin\java.exe" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:51392,suspend=y,server=n -Xms512M -Xmx4096M -javaagent:C:\Users\hemantkumar\.IntelliJIdea2018.2\system\captureAgent\debugger-agent.jar=file:/C:/Users/hemantkumar/AppData/Local/Temp/capture3429.props -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_181\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\rt.jar;C:\TnT\tnt-core\trackntraceserver\target\webapp\WEB-INF\classes;C:\Users\hemantkumar\.m2\repositoryECD\com\axway\sentinel\common\sentinel-ua\3.11.0-2\sentinel-ua-3.11.0-2.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\axway\sentinel\common\sentinel-common-circularbuffer\3.11.0-2\sentinel-common-circularbuffer-3.11.0-2.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\axway\sentinel\common\sentinel-common-core\3.11.0-2\sentinel-common-core-3.11.0-2.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\axway\axway-tools\1.3.3\axway-tools-1.3.3.jar;C:\Program Files\Java\jdk1.8.0_181\lib\tools.jar;C:\Users\hemantkumar\.m2\repositoryECD\jradius\jradius-client\2.0.0\jradius-client-2.0.0.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\flywaydb\flyway-core\4.0.3\flyway-core-4.0.3.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\oracle\ojdbc6\11.2.0.4\ojdbc6-11.2.0.4.jar;C:\Users\hemantkumar\.m2\repositoryECD\commons-cli\commons-cli\1.3.1\commons-cli-1.3.1.jar;C:\Users\hemantkumar\.m2\repositoryECD\commons-beanutils\commons-beanutils\1.9.2\commons-beanutils-1.9.2.jar;C:\Users\hemantkumar\.m2\repositoryECD\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;C:\Users\hemantkumar\.m2\repositoryECD\commons-codec\commons-codec\1.10\commons-codec-1.10.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\commons\commons-collections4\4.1\commons-collections4-4.1.jar;C:\Users\hemantkumar\.m2\repositoryECD\commons-dbcp\commons-dbcp\1.4\commons-dbcp-1.4.jar;C:\Users\hemantkumar\.m2\repositoryECD\commons-pool\commons-pool\1.5.4\commons-pool-1.5.4.jar;C:\Users\hemantkumar\.m2\repositoryECD\commons-dbutils\commons-dbutils\1.6\commons-dbutils-1.6.jar;C:\Users\hemantkumar\.m2\repositoryECD\commons-fileupload\commons-fileupload\1.3.2\commons-fileupload-1.3.2.jar;C:\Users\hemantkumar\.m2\repositoryECD\commons-configuration\commons-configuration\1.10\commons-configuration-1.10.jar;C:\Users\hemantkumar\.m2\repositoryECD\commons-io\commons-io\2.4\commons-io-2.4.jar;C:\Users\hemantkumar\.m2\repositoryECD\commons-logging\commons-logging\1.2\commons-logging-1.2.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\axway\report\axway-report-engine\1.0.1\axway-report-engine-1.0.1.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\axway\ria\toolkit\ria-toolkit-tools-pojo2as3\2.0\ria-toolkit-tools-pojo2as3-2.0.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\sun\xml\ws\servlet\2.2.8\servlet-2.2.8.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\sun\xml\ws\rt\2.2.8\rt-2.2.8.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\sun\xml\ws\policy\2.3.1\policy-2.3.1.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\sun\xml\bind\jaxb-core\2.2.7\jaxb-core-2.2.7.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\sun\istack\istack-commons-runtime\2.16\istack-commons-runtime-2.16.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\sun\xml\bind\jaxb-impl\2.2.7\jaxb-impl-2.2.7.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\sun\xml\fastinfoset\FastInfoset\1.2.12\FastInfoset-1.2.12.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\glassfish\gmbal\gmbal-api-only\3.1.0-b001\gmbal-api-only-3.1.0-b001.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\glassfish\external\management-api\3.0.0-b012\management-api-3.0.0-b012.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\jvnet\staxex\stax-ex\1.7.1\stax-ex-1.7.1.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\sun\xml\stream\buffer\streambuffer\1.5.1\streambuffer-1.5.1.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\jvnet\mimepull\mimepull\1.9.1\mimepull-1.9.1.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\codehaus\woodstox\woodstox-core-asl\4.1.2\woodstox-core-asl-4.1.2.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\codehaus\woodstox\stax2-api\3.1.1\stax2-api-3.1.1.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\sun\org\apache\xml\internal\resolver\20050927\resolver-20050927.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\sun\xml\ws\rt-ha\2.2.8\rt-ha-2.2.8.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\glassfish\ha\ha-api\3.1.9\ha-api-3.1.9.jar;C:\Users\hemantkumar\.m2\repositoryECD\javax\annotation\javax.annotation-api\1.2-b03\javax.annotation-api-1.2-b03.jar;C:\Users\hemantkumar\.m2\repositoryECD\javax\jws\jsr181-api\1.0-MR1\jsr181-api-1.0-MR1.jar;C:\Users\hemantkumar\.m2\repositoryECD\javax\jms\jms\1.1\jms-1.1.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\sun\mail\javax.mail\1.5.6\javax.mail-1.5.6.jar;C:\Users\hemantkumar\.m2\repositoryECD\javax\servlet\javax.servlet-api\4.0.0\javax.servlet-api-4.0.0.jar;C:\Users\hemantkumar\.m2\repositoryECD\log4j\log4j\1.2.17\log4j-1.2.17.jar;C:\Users\hemantkumar\.m2\repositoryECD\log4j\apache-log4j-extras\1.2.17\apache-log4j-extras-1.2.17.jar;C:\Users\hemantkumar\.m2\repositoryECD\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\commons\commons-lang3\3.5\commons-lang3-3.5.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\geronimo\specs\geronimo-annotation_1.2_spec\1.0\geronimo-annotation_1.2_spec-1.0.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\geronimo\specs\geronimo-interceptor_1.2_spec\1.0\geronimo-interceptor_1.2_spec-1.0.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\geronimo\specs\geronimo-atinject_1.0_spec\1.0\geronimo-atinject_1.0_spec-1.0.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\geronimo\specs\geronimo-jcdi_1.1_spec\1.0\geronimo-jcdi_1.1_spec-1.0.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\openwebbeans\openwebbeans-spi\1.6.2\openwebbeans-spi-1.6.2.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\openwebbeans\openwebbeans-impl\1.6.2\openwebbeans-impl-1.6.2.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\xbean\xbean-finder-shaded\4.3\xbean-finder-shaded-4.3.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\xbean\xbean-asm5-shaded\4.3\xbean-asm5-shaded-4.3.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\openwebbeans\openwebbeans-web\1.6.2\openwebbeans-web-1.6.2.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\openwebbeans\openwebbeans-el22\1.6.2\openwebbeans-el22-1.6.2.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\quartz-scheduler\quartz\2.2.3\quartz-2.2.3.jar;C:\Users\hemantkumar\.m2\repositoryECD\c3p0\c3p0\0.9.1.1\c3p0-0.9.1.1.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\slf4j\slf4j-log4j12\1.7.12\slf4j-log4j12-1.7.12.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\slf4j\slf4j-api\1.7.12\slf4j-api-1.7.12.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\axway\tnt\thirdparty\org\eclipse\birt\runtime\org.eclipse.birt.runtime\4.6.0-20160607\org.eclipse.birt.runtime-4.6.0-20160607.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\eclipse\birt\runtime\com.ibm.icu\56.1.0.v201601250100\com.ibm.icu-56.1.0.v201601250100.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\eclipse\birt\runtime\org.eclipse.datatools.connectivity.oda\3.5.0.201603142002\org.eclipse.datatools.connectivity.oda-3.5.0.201603142002.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\eclipse\birt\runtime\org.eclipse.datatools.connectivity.oda.consumer\3.3.0.201603142002\org.eclipse.datatools.connectivity.oda.consumer-3.3.0.201603142002.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\eclipse\birt\runtime\org.eclipse.datatools.enablement.oda.xml\1.3.0.201603142002\org.eclipse.datatools.enablement.oda.xml-1.3.0.201603142002.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\eclipse\birt\runtime\org.w3c.css.sac\1.3.1.v200903091627\org.w3c.css.sac-1.3.1.v200903091627.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\eclipse\scout\sdk\deps\org.eclipse.core.runtime\3.12.0.v20160606-1342\org.eclipse.core.runtime-3.12.0.v20160606-1342.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\eclipse\scout\sdk\deps\org.eclipse.core.jobs\3.8.0.v20160509-0411\org.eclipse.core.jobs-3.8.0.v20160509-0411.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\eclipse\scout\sdk\deps\org.eclipse.equinox.preferences\3.6.0.v20160120-1756\org.eclipse.equinox.preferences-3.6.0.v20160120-1756.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\eclipse\birt\runtime\org.mozilla.javascript\1.7.5.v201504281450\org.mozilla.javascript-1.7.5.v201504281450.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\eclipse\scout\sdk\deps\org.eclipse.equinox.registry\3.6.100.v20160223-2218\org.eclipse.equinox.registry-3.6.100.v20160223-2218.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\eclipse\birt\runtime\3_7_1\org.apache.batik.util\1.6.0\org.apache.batik.util-1.6.0.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\eclipse\scout\sdk\deps\org.eclipse.equinox.common\3.8.0.v20160509-1230\org.eclipse.equinox.common-3.8.0.v20160509-1230.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\eclipse\birt\runtime\3_7_1\org.apache.batik.css\1.6.0\org.apache.batik.css-1.6.0.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\eclipse\scout\sdk\deps\org.eclipse.osgi\3.11.0.v20160603-1336\org.eclipse.osgi-3.11.0.v20160603-1336.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\eclipse\birt\runtime\3_7_1\com.lowagie.text\2.1.7\com.lowagie.text-2.1.7.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\eclipse\birt\runtime\3_7_1\org.apache.xerces\2.9.0\org.apache.xerces-2.9.0.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\poi\poi\3.16\poi-3.16.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\poi\poi-ooxml\3.16\poi-ooxml-3.16.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\github\virtuald\curvesapi\1.04\curvesapi-1.04.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\poi\poi-ooxml-schemas\3.16\poi-ooxml-schemas-3.16.jar;C:\Users\hemantkumar\.m2\repositoryECD\net\sf\jtidy\jtidy\r938\jtidy-r938.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\eclipse\jgit\org.eclipse.jgit\3.7.1.201504261725-r\org.eclipse.jgit-3.7.1.201504261725-r.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\jcraft\jsch\0.1.50\jsch-0.1.50.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\googlecode\javaewah\JavaEWAH\0.7.9\JavaEWAH-0.7.9.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\flex\blazeds\flex-messaging-common\4.7.3\flex-messaging-common-4.7.3.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\flex\blazeds\flex-messaging-core\4.7.3\flex-messaging-core-4.7.3.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\flex\blazeds\flex-messaging-remoting\4.7.3\flex-messaging-remoting-4.7.3.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\commons\commons-exec\1.3\commons-exec-1.3.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\axway\defence\axway-defence\2.0.0-1\axway-defence-2.0.0-1.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\google\code\findbugs\jsr305\2.0.3\jsr305-2.0.3.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\fortify\fortify-annotations\1.0\fortify-annotations-1.0.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\felix\org.osgi.core\1.4.0\org.osgi.core-1.4.0.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\activemq\activemq-kahadb-store\5.14.1\activemq-kahadb-store-5.14.1.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\activemq\protobuf\activemq-protobuf\1.1\activemq-protobuf-1.1.jar;C:\Users\hemantkumar\.m2\repositoryECD\commons-net\commons-net\3.5\commons-net-3.5.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\activemq\activemq-broker\5.14.1\activemq-broker-5.14.1.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\activemq\activemq-client\5.14.1\activemq-client-5.14.1.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\fusesource\hawtbuf\hawtbuf\1.11\hawtbuf-1.11.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\activemq\activemq-openwire-legacy\5.14.1\activemq-openwire-legacy-5.14.1.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\geronimo\specs\geronimo-jms_1.1_spec\1.1.1\geronimo-jms_1.1_spec-1.1.1.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\geronimo\specs\geronimo-j2ee-management_1.1_spec\1.0.1\geronimo-j2ee-management_1.1_spec-1.0.1.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\google\guava\guava\19.0\guava-19.0.jar;C:\Users\hemantkumar\.m2\repositoryECD\javax\ws\rs\javax.ws.rs-api\2.0.1\javax.ws.rs-api-2.0.1.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\glassfish\jersey\core\jersey-server\2.22.2\jersey-server-2.22.2.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\glassfish\jersey\core\jersey-common\2.22.2\jersey-common-2.22.2.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\glassfish\jersey\bundles\repackaged\jersey-guava\2.22.2\jersey-guava-2.22.2.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\glassfish\hk2\osgi-resource-locator\1.0.1\osgi-resource-locator-1.0.1.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\glassfish\jersey\media\jersey-media-jaxb\2.22.2\jersey-media-jaxb-2.22.2.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\glassfish\hk2\hk2-api\2.4.0-b34\hk2-api-2.4.0-b34.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\glassfish\hk2\hk2-utils\2.4.0-b34\hk2-utils-2.4.0-b34.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\glassfish\hk2\external\aopalliance-repackaged\2.4.0-b34\aopalliance-repackaged-2.4.0-b34.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\glassfish\hk2\external\javax.inject\2.4.0-b34\javax.inject-2.4.0-b34.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\glassfish\hk2\hk2-locator\2.4.0-b34\hk2-locator-2.4.0-b34.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\javassist\javassist\3.18.1-GA\javassist-3.18.1-GA.jar;C:\Users\hemantkumar\.m2\repositoryECD\javax\validation\validation-api\1.1.0.Final\validation-api-1.1.0.Final.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\glassfish\jersey\containers\jersey-container-servlet\2.22.2\jersey-container-servlet-2.22.2.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\glassfish\jersey\containers\jersey-container-servlet-core\2.22.2\jersey-container-servlet-core-2.22.2.jar;C:\Users\hemantkumar\.m2\repositoryECD\javax\persistence\persistence-api\1.0.2\persistence-api-1.0.2.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\glassfish\jersey\core\jersey-client\2.22.2\jersey-client-2.22.2.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\glassfish\jersey\ext\cdi\jersey-cdi1x\2.22.2\jersey-cdi1x-2.22.2.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\fasterxml\jackson\jaxrs\jackson-jaxrs-json-provider\2.8.6\jackson-jaxrs-json-provider-2.8.6.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\fasterxml\jackson\jaxrs\jackson-jaxrs-base\2.8.6\jackson-jaxrs-base-2.8.6.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\fasterxml\jackson\core\jackson-core\2.8.6\jackson-core-2.8.6.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\fasterxml\jackson\core\jackson-databind\2.8.6\jackson-databind-2.8.6.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\fasterxml\jackson\core\jackson-annotations\2.8.0\jackson-annotations-2.8.0.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\fasterxml\jackson\module\jackson-module-jaxb-annotations\2.8.6\jackson-module-jaxb-annotations-2.8.6.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\xmlbeans\xmlbeans\2.6.0\xmlbeans-2.6.0.jar;C:\Users\hemantkumar\.m2\repositoryECD\dom4j\dom4j\1.6.1-jboss\dom4j-1.6.1-jboss.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\axway\commons\search\commons-search\1.8.0-2\commons-search-1.8.0-2.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\antlr\antlr4-runtime\4.1\antlr4-runtime-4.1.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\abego\treelayout\org.abego.treelayout.core\1.0.1\org.abego.treelayout.core-1.0.1.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\shiro\shiro-core\1.3.2\shiro-core-1.3.2.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\shiro\shiro-web\1.3.2\shiro-web-1.3.2.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\shiro\shiro-ehcache\1.3.2\shiro-ehcache-1.3.2.jar;C:\Users\hemantkumar\.m2\repositoryECD\net\sf\ehcache\ehcache-core\2.5.3\ehcache-core-2.5.3.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\jolbox\bonecp\0.8.0.RELEASE\bonecp-0.8.0.RELEASE.jar;C:\Users\hemantkumar\.m2\repositoryECD\javax\xml\soap\javax.xml.soap-api\1.3.5\javax.xml.soap-api-1.3.5.jar;C:\Users\hemantkumar\.m2\repositoryECD\javax\xml\bind\jaxb-api\2.2.7\jaxb-api-2.2.7.jar;C:\Users\hemantkumar\.m2\repositoryECD\javax\xml\ws\jaxws-api\2.2.9\jaxws-api-2.2.9.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\santuario\xmlsec\1.5.8\xmlsec-1.5.8.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\glassfish\jersey\ext\jersey-bean-validation\2.25.1\jersey-bean-validation-2.25.1.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\hibernate\hibernate-validator\5.1.3.Final\hibernate-validator-5.1.3.Final.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\jboss\logging\jboss-logging\3.1.3.GA\jboss-logging-3.1.3.GA.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\fasterxml\classmate\1.0.0\classmate-1.0.0.jar;C:\Users\hemantkumar\.m2\repositoryECD\javax\el\javax.el-api\2.2.4\javax.el-api-2.2.4.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\glassfish\web\javax.el\2.2.4\javax.el-2.2.4.jar;C:\Users\hemantkumar\.m2\repositoryECD\junit\junit\4.11\junit-4.11.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\axway\tools\test\test\1.9.0-1\test-1.9.0-1.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\mockito\mockito-core\1.9.5\mockito-core-1.9.5.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\hsqldb\hsqldb\2.3.1\hsqldb-2.3.1.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\h2database\h2\1.3.174\h2-1.3.174.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\mongodb\mongo-java-driver\2.11.4\mongo-java-driver-2.11.4.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\jayway\restassured\rest-assured\2.9.0\rest-assured-2.9.0.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\codehaus\groovy\groovy\2.4.4\groovy-2.4.4.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\codehaus\groovy\groovy-xml\2.4.4\groovy-xml-2.4.4.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\hamcrest\hamcrest-library\1.3\hamcrest-library-1.3.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\ccil\cowan\tagsoup\tagsoup\1.2.1\tagsoup-1.2.1.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\jayway\restassured\json-path\2.9.0\json-path-2.9.0.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\codehaus\groovy\groovy-json\2.4.4\groovy-json-2.4.4.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\jayway\restassured\rest-assured-common\2.9.0\rest-assured-common-2.9.0.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\jayway\restassured\xml-path\2.9.0\xml-path-2.9.0.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\networknt\json-schema-validator\0.1.2\json-schema-validator-0.1.2.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\slf4j\slf4j-ext\1.7.21\slf4j-ext-1.7.21.jar;C:\Users\hemantkumar\.m2\repositoryECD\ch\qos\cal10n\cal10n-api\0.8.1\cal10n-api-0.8.1.jar;C:\Users\hemantkumar\.m2\repositoryECD\io\undertow\undertow-core\1.4.0.Final\undertow-core-1.4.0.Final.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\jboss\xnio\xnio-api\3.3.6.Final\xnio-api-3.3.6.Final.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\jboss\xnio\xnio-nio\3.3.6.Final\xnio-nio-3.3.6.Final.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\httpcomponents\httpclient\4.4.1\httpclient-4.4.1.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\httpcomponents\httpcore\4.4.1\httpcore-4.4.1.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\httpcomponents\httpmime\4.4.1\httpmime-4.4.1.jar;C:\Users\hemantkumar\.m2\repositoryECD\xmlunit\xmlunit\1.4\xmlunit-1.4.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\mockito\mockito-all\1.9.5\mockito-all-1.9.5.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\deltaspike\core\deltaspike-core-api\1.5.2\deltaspike-core-api-1.5.2.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\deltaspike\core\deltaspike-core-impl\1.5.2\deltaspike-core-impl-1.5.2.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\deltaspike\cdictrl\deltaspike-cdictrl-owb\1.5.2\deltaspike-cdictrl-owb-1.5.2.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\deltaspike\cdictrl\deltaspike-cdictrl-api\1.5.2\deltaspike-cdictrl-api-1.5.2.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\deltaspike\modules\deltaspike-test-control-module-api\1.5.2\deltaspike-test-control-module-api-1.5.2.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\deltaspike\modules\deltaspike-test-control-module-impl\1.5.2\deltaspike-test-control-module-impl-1.5.2.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\tomcat\embed\tomcat-embed-core\9.0.13\tomcat-embed-core-9.0.13.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\tomcat\tomcat-annotations-api\9.0.13\tomcat-annotations-api-9.0.13.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\tomcat\embed\tomcat-embed-logging-juli\9.0.0.M1\tomcat-embed-logging-juli-9.0.0.M1.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\tomcat\embed\tomcat-embed-jasper\9.0.13\tomcat-embed-jasper-9.0.13.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\tomcat\embed\tomcat-embed-el\9.0.13\tomcat-embed-el-9.0.13.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\eclipse\jdt\ecj\3.13.102\ecj-3.13.102.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\tomcat\tomcat-jasper\9.0.13\tomcat-jasper-9.0.13.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\tomcat\tomcat-servlet-api\9.0.13\tomcat-servlet-api-9.0.13.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\tomcat\tomcat-juli\9.0.13\tomcat-juli-9.0.13.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\tomcat\tomcat-el-api\9.0.13\tomcat-el-api-9.0.13.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\tomcat\tomcat-api\9.0.13\tomcat-api-9.0.13.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\tomcat\tomcat-util-scan\9.0.13\tomcat-util-scan-9.0.13.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\tomcat\tomcat-util\9.0.13\tomcat-util-9.0.13.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\tomcat\tomcat-jasper-el\9.0.13\tomcat-jasper-el-9.0.13.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\apache\tomcat\tomcat-jsp-api\9.0.13\tomcat-jsp-api-9.0.13.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\awaitility\awaitility\2.0.0\awaitility-2.0.0.jar;C:\Users\hemantkumar\.m2\repositoryECD\cglib\cglib-nodep\3.1\cglib-nodep-3.1.jar;C:\Users\hemantkumar\.m2\repositoryECD\org\objenesis\objenesis\2.1\objenesis-2.1.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\axway\rdops\connectors\qc\notifier\qc-notifier-client\1.4.1-1\qc-notifier-client-1.4.1-1.jar;C:\Users\hemantkumar\.m2\repositoryECD\com\axway\rdops\connectors\qc\notifier\qc-notifier-shared\1.4.1-1\qc-notifier-shared-1.4.1-1.jar;C:\Program Files\JetBrains\IntelliJ IDEA 2018.2\lib\idea_rt.jar" com.axway.tnt.tools.servers.EmbeddedServer
Connected to the target VM, address: '127.0.0.1:51392', transport: 'socket'
log4j:WARN No appenders could be found for logger (org.apache.commons.configuration.PropertiesConfiguration).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Nov 27, 2018 5:51:31 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"]
Nov 27, 2018 5:51:31 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Exception in thread "main" java.lang.RuntimeException: org.apache.catalina.LifecycleException: An invalid Lifecycle transition was attempted ([before_init]) for component [Connector[HTTP/1.1-8443]] in state [INITIALIZED]
at com.axway.tnt.tools.servers.EmbeddedServer.start(EmbeddedServer.java:139)
at com.axway.tnt.tools.servers.EmbeddedServer.main(EmbeddedServer.java:47)
Caused by: org.apache.catalina.LifecycleException: An invalid Lifecycle transition was attempted ([before_init]) for component [Connector[HTTP/1.1-8443]] in state [INITIALIZED]
at org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:431)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:131)
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:533)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:883)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:173)
at org.apache.catalina.startup.Tomcat.start(Tomcat.java:372)
at com.axway.tnt.tools.servers.EmbeddedServer.start(EmbeddedServer.java:133)
... 1 more

The issue is resolved it was because you don't need to use add connector explicitly as setConnector method of tomcat 9 internally adds the connector.

You may look at this previous issue:
Cannot deploy application on Tomcat 7 Due to "invalid Lifecycle transition was attempted " error
The issue is probably unrelated with the upgrade.

Related

Structr startup issues

I've got the right java version installed and the package unpacked, and I'm getting some errors:
WARNING: Error loading module structr-ui-1.1-SNAPSHOT-201505231136.f596a.jar:java.io.FileNotFoundException: structr-ui-1.1-SNAPSHOT-201505231136.f596a.jar (The system cannot find the file specified)
java.io.FileNotFoundException: structr-ui-1.1-SNAPSHOT-201505231136.f596a.jar (The system cannot find the file specified)
Except....this is the SNAPSHOT file in the directory - it looks like the expected version wasn't changed:
structr-ui-2.0-SNAPSHOT-201602031507.0599a.jar
SEVERE: Unable to initialize resource provider for servlet JsonRestServlet, no resource provider found. Please check structr.conf for a valid resource provider class.
and it finally dies with this message:
SEVERE: Vital service HttpService failed to start: No resource provider available for servlet JsonRestServlet. Aborting
For the environment, this is what I've got:
D:\> mvn -v
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-1110T11:41:47-05:00)
Maven home: D:\Applications\Apache\Maven\3.3.9\bin\..
Java version: 1.8.0_66, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_66\jre
Default locale: en_CA, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"
I'm not a java guy so I'm not sure how to interpret this - am I citing the wrong package here? Should I be pathing to something else?
Here's the entire startup log - my guess the failure to open the SNAPSHOT jar file is the cause of the problem.
D:\Graph\Structr\app>java -cp lib/*;structr-ui-1.1-SNAPSHOT-201505231136.f596a.jar org.structr.Server
Feb 17, 2016 4:53:37 PM org.structr.core.Services initialize
INFO: Reading structr.conf..
Feb 17, 2016 4:53:38 PM org.structr.core.Services getResources
INFO: Found 0 possible resources: []
Feb 17, 2016 4:53:39 PM org.structr.module.JarConfigurationProvider scanResource
WARNING: Error loading module structr-ui-1.1-SNAPSHOT-201505231136.f596a.jar: java.io.FileNotFoundException: structr-ui-1.1-SNAPSHOT-201505231136.f596a.jar (The system cannot find the file specified)
java.io.FileNotFoundException: structr-ui-1.1-SNAPSHOT-201505231136.f596a.jar (The system cannot find the file specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:219)
at java.util.zip.ZipFile.(ZipFile.java:149)
at org.structr.module.JarConfigurationProvider.loadResource(JarConfigurationProvider.java:1095)
at org.structr.module.JarConfigurationProvider.scanResource(JarConfigurationProvider.java:1013)
at org.structr.module.JarConfigurationProvider.scanResources(JarConfigurationProvider.java:1002)
at org.structr.module.JarConfigurationProvider.initialize(JarConfigurationProvider.java:119)
at org.structr.core.Services.getConfigurationProvider(Services.java:496)
at org.structr.core.Services.initialize(Services.java:312)
at org.structr.core.Services.initialize(Services.java:296)
at org.structr.core.Services.getInstance(Services.java:144)
at org.structr.Server.main(Server.java:36)
Feb 17, 2016 4:53:39 PM org.structr.module.JarConfigurationProvider scanResources
INFO: 5 JARs scanned
Feb 17, 2016 4:53:39 PM org.structr.core.Services initialize
INFO: Starting services
Feb 17, 2016 4:53:39 PM org.structr.neo4j.Neo4jDatabaseService initialize
INFO: Relationship cache size set to 10,000
Feb 17, 2016 4:53:39 PM org.structr.neo4j.Neo4jDatabaseService initialize
INFO: Node cache size set to 10,000
Feb 17, 2016 4:53:39 PM org.structr.neo4j.Neo4jDatabaseService initialize
INFO: Initializing database (./db) ...
SLF4J: This version of SLF4J requires log4j version 1.2.12 or later. See also http://www.slf4j.org/codes.html#log4j_version
Feb 17, 2016 4:53:55 PM org.structr.core.graph.NodeService initialize
INFO: Database ready.
Feb 17, 2016 4:57:08 PM org.structr.agent.AgentService run
INFO: AgentService started
Feb 17, 2016 4:57:08 PM org.structr.cron.CronService initialize
WARNING: No cron expression for task , ignoring.
Feb 17, 2016 4:57:08 PM org.structr.rest.service.HttpService initialize
INFO: Running in asynchronous mode
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/D:/Graph/Structr/app/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/D:/Graph/Structr/app/lib/logback-classic-1.1.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
Feb 17, 2016 4:57:08 PM org.structr.rest.service.StructrHttpServiceConfig initializeFromProperties
SEVERE: Unable to initialize resource provider for servlet JsonRestServlet, no resource provider found. Please check structr.conf for a valid resource provider class.
java.lang.IllegalStateException: No resource provider available for servlet JsonRestServlet
at org.structr.rest.service.StructrHttpServiceConfig.initializeFromProperties(StructrHttpServiceConfig.java:97)
at org.structr.rest.service.HttpService.collectServlets(HttpService.java:608)
at org.structr.rest.service.HttpService.initialize(HttpService.java:400)
at org.structr.core.Services.createService(Services.java:549)
at org.structr.core.Services.initialize(Services.java:324)
at org.structr.core.Services.initialize(Services.java:296)
at org.structr.core.Services.getInstance(Services.java:144)
at org.structr.Server.main(Server.java:36)
Feb 17, 2016 4:57:08 PM org.structr.core.Services createService
SEVERE: Vital service HttpService failed to start: No resource provider available for servlet JsonRestServlet. Aborting
I tried again, and the only way I got this to work was to remove all the jre* packages from my windows 7 system. The java control panel doesn't seem to work as expected, and structr doesn't run when a jre is driving this particular bus.

Liferay 6.2 - tomcat bundle shutdown issue

I am running into an issue where I am unable to shutdown the Liferay 6.2 tomcat bundle on the server via the bundled shutdown script on the new linux server.
The steps I took are:
Installed the bundle by unziping it.
Uploaded the custom portal-ext.properties in the default liferay home folder
Change the memory args as defined in the deployment best practices guide in the tomcat home/bin/setenv.sh
Added Oracle custom data source in the tomcat home/conf/context.xml
JDK - jdk1.7.0_75
Navigate to the tomcat home/bin folder -> run ./startup.sh
Liferay and the bundle comes up.
To shutdown - Navigate to the tomcat home/bin folder -> run ./shutdown.sh
This displays the following but the tomcat is not shutdown:
$ ./shutdown.sh
Using CATALINA_BASE: /.../liferay-portal-6.2-ee-sp2/tomcat-7.0.42
Using CATALINA_HOME: /.../liferay-portal-6.2-ee-sp2/tomcat-7.0.42
Using CATALINA_TMPDIR: /.../liferay-portal-6.2-ee-sp2/tomcat-7.0.42/temp
Using JRE_HOME: /.../java/jdk1.7.0_75
Using CLASSPATH: /.../liferay-portal-6.2-ee-sp2/tomcat-7.0.42/bin/bootstrap.jar:/.../liferay-portal-6.2-ee-sp2/tomcat-7.0.42/bin/tomcat-juli.jar
I see the following in the Tomcat logs.
apr 27, 2015 1:18:23 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [org.python.google.common.base.internal.Finalizer] but has failed to stop it. This is very likely to create a memory leak.
Apr 27, 2015 1:18:23 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [MulticastListener-239.255.0.523305] but has failed to stop it. This is very likely to create a memory leak.
Apr 27, 2015 1:18:23 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [pool-3-thread-1] but has failed to stop it. This is very likely to create a memory leak.
Apr 27, 2015 1:18:29 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/opensocial-portlet] appears to have started a thread named [com.google.inject.internal.Finalizer] but has failed to stop it. This is very likely to create a memory leak.
Apr 27, 2015 1:18:45 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-bio-8080"]
Apr 27, 2015 1:18:45 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["ajp-bio-8009"]
Apr 27, 2015 1:18:45 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-bio-8080"]
Apr 27, 2015 1:18:45 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["ajp-bio-8009"]
The tomcat process is still showing after a few minutes as an active process and needs to be killed manually. Liferay seems to be down after the shutdown script is run within a minute or so.
I need this to work so all the resources are released cleanly and I can script the startup and shutdown as needed.
Has anyone seen this and resolved this behavior? Any insight would be much appreciated.
Thanks!
After working through this issue and following the steps below, the tomcat process shuts down within a minute or so with the shutdown script and there is no need to kill the process manually.
increased maxpermsize catalina_opts argument to 512m (was 200m) in the setenv.sh - this resolved 2 of the memory leak messages in the logs at shutdown and also resulted in the tomcat process shutdown properly.
removing the opensocial-portlet removed 1 memory leak error prior to the maxpermsize change but the process was still not shutdown properly.
there is 1 remaining memory leak error in the logs on shutdown but that for now is not preventing the tomcat from shutting down and seems to be part of tomcat not necessarily caused by liferay. This message for now seems safe to ignore per this LPS issue below
https://issues.liferay.com/browse/LPS-34498
Hope this helps someone.

ClassNotFoundException while starting the Tomcat 7 Server in MyEclipse

I am using MyEclipse 9 and Tomcat7.0 . I have taken latest code and deployed in Tomcat 7 and started the server. Immediately i got an error log as mentioned below.
INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.
Jan 10, 2014 5:53:40 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class com.aap.apweb.servlet.APServletContextListener
java.lang.ClassNotFoundException: com.aap.apweb.servlet.APServletContextListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1676)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:415)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:397)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:118)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4537)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5097)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5092)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Jan 10, 2014 5:53:40 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class com.aap.apweb.servlet.APHTTPSessionListener
java.lang.ClassNotFoundException: com.aap.apweb.servlet.APHTTPSessionListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1676)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:415)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:397)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:118)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4537)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5097)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5092)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Jan 10, 2014 5:53:40 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
Jan 10, 2014 5:53:40 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Jan 10, 2014 5:53:40 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/apweb] startup failed due to previous errors
Jan 10, 2014 5:53:41 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [/apweb] registered the JDBC driver [net.sourceforge.jtds.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Jan 10, 2014 5:53:41 PM org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["http-apr-8080"]
Jan 10, 2014 5:53:41 PM org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["ajp-apr-8009"]
Jan 10, 2014 5:53:41 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 13243 ms
I think the jars path has to be set. But i am not able to find it.
Is com.aap.apweb.servlet.APHTTPSessionListener one of your classes? I don't get any hits on Google so I'm guessing it is. You need to ensure that you have set all dependencies in your build path and set deployment policies accordingly. Deployment policies for the project can be adjusted by right clicking on the project, selecting Properties, then going to the MyEclipse/Web page and clicking the Deployment tab. On that tab, you can choose to use the workbench settings (in which case most fields will be grayed out) or not (just deselect the "Use workbench default settings").
Note that the most recent release of MyEclipse gives you more explicit control over deployment, via a deployment assembly. A license for MyEclipse 9 also applies to MyEclipse 2014, which can be downloaded from the www.myeclipseide.com web site.
Right click on project
then go to build path -> add library in libraries pane.
then select server run time then add apache tomcat and then try to run your application.
You can export the required projects as jar files and place them in your .WAR file in WEB-INF\lib .This ensures that your classes from your jar files get loaded during application startup.
As per this line from the log:
The web application [/apweb] registered the JDBC driver [net.sourceforge.jtds.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
I have added db2 jdbc 1.6 jars(db2jcc4.jar and db2jcc4_license_cisuz.jar)to my project build path. These jars solved my problem while restarting the server. It started without any issue.
Thanks for all the geeks to responding me.
I am getting the same error when I started tomcat server in Eclipse Luna environment. And my OS is Ubuntu.
Actually the problem is when I build the project the web module not create the M2e-wtp maven folder. When we start the tomcat server it could not see the maven dependencies. That's while the exception came.
I resolve this issue by Downloading the latest Mars eclipse. And again I checked out my project.
After clean installed my project the issue was resolved. It's working fine.

Unable to start grails war on tomcat6

I'm getting this in catalina.out when I try to deploy a grails application:
Feb 9, 2012 10:32:25 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Feb 9, 2012 10:32:25 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/application] startup failed due to previous errors
Feb 9, 2012 10:32:25 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: A web application created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal] (value [Transaction synchronizations]) and a value of type [null] (value [null]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
Feb 9, 2012 10:32:25 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: A web application created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal] (value [Prototype beans currently in creation]) and a value of type [null] (value [null]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
Feb 9, 2012 10:32:25 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: A web application created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal] (value [Transactional resources]) and a value of type [null] (value [null]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
Feb 9, 2012 10:32:25 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: A web application created a ThreadLocal with key of type [org.codehaus.groovy.runtime.GroovyCategorySupport.MyThreadLocal] (value [org.codehaus.groovy.runtime.GroovyCategorySupport$MyThreadLocal#3872a921]) and a value of type [null] (value [null]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
Running Grails 2.0, Tomcat 6, Ubuntu 10.04. I haven't seen anything like this before, is this something I'm doing / can fix or something with how Tomcat is setup?
The real error will be in another log file in the logs directory. The thread leak messages are a concern, but that's an issue when shutting down. Your failure to startup is the problem and it's not described at all in what you've shown other than SEVERE: Context [/application] startup failed due to previous errors
Are you running backgroundthread plugin by any chance? I have seen Tomcat fail to respond because of the plugin which does not give up the thread and prevents the server from shutting down correctly.

Java web-app debugging not possible due to direct undeploy on debug

When i try to debug my webapp it starts up the tomcat server and the application, but shuts down the debugger shortly before the app gets usable. I see the debugging toolbar for a second before it vanishes again, though the app keeps running.
Tomcat-log:
Listening for transport dt_socket at address: 11555
23.03.2010 01:24:35 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
23.03.2010 01:24:35 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8084
23.03.2010 01:24:35 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 847 ms
23.03.2010 01:24:35 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
23.03.2010 01:24:35 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
23.03.2010 01:24:41 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8084
23.03.2010 01:24:41 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
23.03.2010 01:24:41 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/78 config=null
23.03.2010 01:24:41 org.apache.catalina.startup.Catalina start
INFO: Server startup in 5855 ms
23.03.2010 01:24:42 org.apache.catalina.startup.HostConfig checkResources
INFO: Undeploying context []
23.03.2010 01:24:45 org.apache.catalina.core.StandardContext start
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/] has already been started
Debugging log:
Attached JPDA debugger to localhost:11555
Checking data source definitions for missing JDBC drivers...
Deploying JDBC driver to /Applications/NetBeans/apache-tomcat-6.0.20/lib/mysql-connector-java-5.1.6-bin.jar
Stopping Tomcat process...
Waiting for Tomcat...
Tomcat server stopped.
Starting Tomcat process...
Waiting for Tomcat...
Tomcat server started.
Undeploying ...
OK - Undeployed application at context path /
In-place deployment at /path/to/project/dir/build/web
deploy?config=file%3A%2Fvar%2Ffolders%2FZP%2FZPbqxGrbHFaUlXzAfgWV1%2B%2B%2B%2BTQ%2F-Tmp-%2Fcontext734173871283203218.xml&path=/
OK - Deployed application at context path /
start?path=/
Start is in progress...
OK - Started application at context path /
debug-display-browser:
Browsing: http://localhost:8084/
connect-client-debugger:
BUILD SUCCESSFUL (total time: 18 seconds)
System is Netbeans 6.8 on MacOS 10.6.2.
You should see if the TC server is still in debug mode. The easiest way to do that is to Debug->Attach Debugger to localhost;11555. If it is still running 'debuggable', you will be able to do a fair bit of debugging that way.
I had similar problem where debugging started but kind of stopped immediately. The application was deployed however. I was not even able to attach to debugger manually, even if the Tomcat was running in debug mode. By creating a simple debuggable hello world project and starting debugging it also made debugger to break to my "problem project"'s break points as well.. But this was not really way to work.
My problem was "solved" by dropping mysql-connector-java.jar from my web project. I don't see any reasoning, but it simply works now. FYI also, the Netbean's Tomcat config's property "Enable JDBC driver deployment" did not have effect.
My environment was Netbeans 6.9.1 and project type was maven2, run on on Win7.

Categories