I'm trying to configure tomcat 7 with intellij 12 but with no success.
If I run the catalina.sh startup script from command line, tomcat starts properly and I can see tomcat homepage.
If I run tomcat from Intellij, I get the following stacktrace (from intellijs log-file):
2013-03-20 21:11:48,631 [1065007] DEBUG - .util.AbstractConnectorCommand -
javax.management.InstanceNotFoundException: Catalina:type=Server at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1095)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:643)
at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:668)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1442)
at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:75)
..............
Looks like it cannot find any instance of tomcat.
I do not get any errors in the output log in intellij, and no errors when configuring tomcat in intellij.
Output-log:
/Library/Tomcat/bin/catalina.sh run
Mar 20, 2013 9:11:48 PM 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: /Users/rana/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
Mar 20, 2013 9:11:48 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Mar 20, 2013 9:11:48 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Mar 20, 2013 9:11:48 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 482 ms
Mar 20, 2013 9:11:48 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Mar 20, 2013 9:11:48 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.37
Mar 20, 2013 9:11:48 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Mar 20, 2013 9:11:48 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Mar 20, 2013 9:11:48 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 37 ms
Connected to server
Mar 20, 2013 9:11:58 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/local/apache-tomcat-7.0.37/webapps/manager
Does anyone know why this is happening?
Related
I try to follow how-to guide at
https://howto.wildfly-swarm.io/v/2017.5.0/test-in-container/
They wrote:
Since Arquillian is simply an integration with JUnit, you can run your
test by using Maven or your IDE:
When I run the DatasourcesIT#testIt from IDEA with
Arquillian Junit Manual container configuration
or with plain Junit
I got failed test.
org.junit.ComparisonFailure:
Expected :Found the datasource
Actual :
But this test works when I run mvn verify
Why?
May be I missed something in Arquillian Junit Manual container configuration?
I don't add something in manual configuration.
Edit 1
Add logs, but these are very similar.
Maven log:
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.wildfly.swarm.howto.datasources.DatasourcesIT
May 04, 2017 9:49:11 PM org.jboss.arquillian.drone.webdriver.factory.remote.reusable.ReusedSessionPermanentFileStorage readStore
INFO: Reused session store is not available at /home/ar/.drone-webdriver-session-store, a new one will be created.
May 04, 2017 9:49:12 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: executable: /home/ar/projects/github/wildfly-swarm-howto/use-a-bom/target/drone-phantomjs
May 04, 2017 9:49:12 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: port: 21610
May 04, 2017 9:49:12 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: arguments: [--webdriver=21610, --webdriver-logfile=/home/ar/projects/github/wildfly-swarm-howto/use-a-bom/phantomjsdriver.log]
May 04, 2017 9:49:12 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: environment: {}
[INFO - 2017-05-04T18:49:13.840Z] GhostDriver - Main - running on port 21610
[INFO - 2017-05-04T18:49:14.138Z] Session [5e5f4a70-30fa-11e7-bf4c-6fea2c273ecf] - page.settings - {"XSSAuditingEnabled":false,"javascriptCanCloseWindows":true,"javascriptCanOpenWindows":true,"javascriptEnabled":true,"loadImages":true,"localToRemoteUrlAccessEnabled":false,"userAgent":"Mozilla/5.0 (Unknown; Linux x86_64) AppleWebKit/538.1 (KHTML, like Gecko) PhantomJS/2.1.1 Safari/538.1","webSecurityEnabled":true}
[INFO - 2017-05-04T18:49:14.138Z] Session [5e5f4a70-30fa-11e7-bf4c-6fea2c273ecf] - page.customHeaders: - {}
[INFO - 2017-05-04T18:49:14.138Z] Session [5e5f4a70-30fa-11e7-bf4c-6fea2c273ecf] - Session.negotiatedCapabilities - {"browserName":"phantomjs","version":"2.1.1","driverName":"ghostdriver","driverVersion":"1.2.0","platform":"linux-unknown-64bit","javascriptEnabled":true,"takesScreenshot":true,"handlesAlerts":false,"databaseEnabled":false,"locationContextEnabled":false,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"cssSelectorsEnabled":true,"webStorageEnabled":false,"rotatable":false,"acceptSslCerts":false,"nativeEvents":true,"proxy":{"proxyType":"direct"}}
[INFO - 2017-05-04T18:49:14.138Z] SessionManagerReqHand - _postNewSessionCommand - New Session Created: 5e5f4a70-30fa-11e7-bf4c-6fea2c273ecf
[INFO - 2017-05-04T18:49:14.709Z] ShutdownReqHand - _handle - About to shutdown
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.181 sec - in org.wildfly.swarm.howto.datasources.DatasourcesIT
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
IDEA log:
/usr/lib/jvm/java-8-oracle/bin/java -Dphantomjs.binary.version=2.1.1 -Didea.test.cyclic.buffer.size=1048576 -javaagent:/opt/Jetbrains/idea-IU-171.4073.17/lib/idea_rt.jar=44397:/opt/Jetbrains/idea-IU-171.4073.17/bin -Dfile.encoding=UTF-8 -classpath /opt/Jetbrains/idea-IU-171.4073.17/lib/idea_rt.jar:/opt/Jetbrains/idea-IU-171.4073.17/plugins/junit/lib/junit-rt.jar:/usr/lib/jvm/java-8-oracle/jre/lib/charsets.jar:/usr/lib/jvm/java-8-oracle/jre/lib/deploy.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/cldrdata.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/jaccess.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/jfxrt.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/nashorn.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunec.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-8-oracle/jre/lib/javaws.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jce.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jfr.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jfxswt.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jsse.jar:/usr/lib/jvm/java-8-oracle/jre/lib/management-agent.jar:/usr/lib/jvm/java-8-oracle/jre/lib/plugin.jar:/usr/lib/jvm/java-8-oracle/jre/lib/resources.jar:/usr/lib/jvm/java-8-oracle/jre/lib/rt.jar:/home/ar/projects/github/wildfly-swarm-howto/use-a-bom/target/test-classes:/home/ar/projects/github/wildfly-swarm-howto/use-a-bom/target/classes:/home/ar/.m2/repository/com/h2database/h2/1.4.187/h2-1.4.187.jar:/home/ar/.m2/repository/org/wildfly/swarm/jaxrs/2017.6.0-SNAPSHOT/jaxrs-2017.6.0-20170504.101939-7.jar:/home/ar/.m2/repository/org/wildfly/swarm/container/2017.6.0-SNAPSHOT/container-2017.6.0-20170504.101836-7.jar:/home/ar/.m2/repository/org/wildfly/swarm/spi/2017.6.0-SNAPSHOT/spi-2017.6.0-20170504.101825-7.jar:/home/ar/.m2/repository/org/jboss/jandex/2.0.2.Final/jandex-2.0.2.Final.jar:/home/ar/.m2/repository/org/wildfly/swarm/bootstrap/2017.6.0-SNAPSHOT/bootstrap-2017.6.0-20170504.101815-7.jar:/home/ar/.m2/repository/org/jboss/modules/jboss-modules/1.5.2.Final/jboss-modules-1.5.2.Final.jar:/home/ar/.m2/repository/org/yaml/snakeyaml/1.17/snakeyaml-1.17.jar:/home/ar/.m2/repository/org/wildfly/swarm/config-api/1.0.3.Final/config-api-1.0.3.Final.jar:/home/ar/.m2/repository/org/wildfly/swarm/config-api-runtime/1.0.3.Final/config-api-runtime-1.0.3.Final.jar:/home/ar/.m2/repository/org/jboss/logging/jboss-logging/3.3.0.Final/jboss-logging-3.3.0.Final.jar:/home/ar/.m2/repository/org/wildfly/swarm/logging/2017.6.0-SNAPSHOT/logging-2017.6.0-20170504.101843-7.jar:/home/ar/.m2/repository/org/wildfly/swarm/undertow/2017.6.0-SNAPSHOT/undertow-2017.6.0-20170504.101921-7.jar:/home/ar/.m2/repository/org/wildfly/swarm/io/2017.6.0-SNAPSHOT/io-2017.6.0-20170504.101850-7.jar:/home/ar/.m2/repository/org/wildfly/swarm/ee/2017.6.0-SNAPSHOT/ee-2017.6.0-20170504.101908-7.jar:/home/ar/.m2/repository/org/wildfly/swarm/naming/2017.6.0-SNAPSHOT/naming-2017.6.0-20170504.101902-7.jar:/home/ar/.m2/repository/org/jboss/spec/javax/enterprise/concurrent/jboss-concurrency-api_1.0_spec/1.0.0.Final/jboss-concurrency-api_1.0_spec-1.0.0.Final.jar:/home/ar/.m2/repository/org/jboss/spec/javax/interceptor/jboss-interceptors-api_1.2_spec/1.0.0.Final/jboss-interceptors-api_1.2_spec-1.0.0.Final.jar:/home/ar/.m2/repository/org/jboss/spec/javax/el/jboss-el-api_3.0_spec/1.0.7.Final/jboss-el-api_3.0_spec-1.0.7.Final.jar:/home/ar/.m2/repository/org/glassfish/javax.el-impl/3.0.1-b08-jbossorg-1/javax.el-impl-3.0.1-b08-jbossorg-1.jar:/home/ar/.m2/repository/org/wildfly/swarm/request-controller/2017.6.0-SNAPSHOT/request-controller-2017.6.0-20170504.101913-7.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-api-jboss/2.0.0-alpha-9/shrinkwrap-descriptors-api-jboss-2.0.0-alpha-9.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-impl-jboss/2.0.0-alpha-9/shrinkwrap-descriptors-impl-jboss-2.0.0-alpha-9.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-api-javaee/2.0.0-alpha-9/shrinkwrap-descriptors-api-javaee-2.0.0-alpha-9.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-api-base/2.0.0-alpha-9/shrinkwrap-descriptors-api-base-2.0.0-alpha-9.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-impl-javaee/2.0.0-alpha-9/shrinkwrap-descriptors-impl-javaee-2.0.0-alpha-9.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-impl-base/2.0.0-alpha-9/shrinkwrap-descriptors-impl-base-2.0.0-alpha-9.jar:/home/ar/.m2/repository/org/jboss/spec/javax/servlet/jboss-servlet-api_3.1_spec/1.0.0.Final/jboss-servlet-api_3.1_spec-1.0.0.Final.jar:/home/ar/.m2/repository/org/jboss/spec/javax/websocket/jboss-websocket-api_1.1_spec/1.1.1.Final/jboss-websocket-api_1.1_spec-1.1.1.Final.jar:/home/ar/.m2/repository/io/undertow/undertow-servlet/1.4.11.Final/undertow-servlet-1.4.11.Final.jar:/home/ar/.m2/repository/io/undertow/undertow-core/1.4.11.Final/undertow-core-1.4.11.Final.jar:/home/ar/.m2/repository/org/jboss/xnio/xnio-api/3.3.6.Final/xnio-api-3.3.6.Final.jar:/home/ar/.m2/repository/org/jboss/xnio/xnio-nio/3.3.6.Final/xnio-nio-3.3.6.Final.jar:/home/ar/.m2/repository/org/wildfly/swarm/security/2017.6.0-SNAPSHOT/security-2017.6.0-20170504.101926-7.jar:/home/ar/.m2/repository/org/jboss/spec/javax/annotation/jboss-annotations-api_1.2_spec/1.0.0.Final/jboss-annotations-api_1.2_spec-1.0.0.Final.jar:/home/ar/.m2/repository/org/wildfly/swarm/jaxrs-cdi/2017.6.0-SNAPSHOT/jaxrs-cdi-2017.6.0-20170504.101931-7.jar:/home/ar/.m2/repository/org/ow2/asm/asm-all/5.0.4/asm-all-5.0.4.jar:/home/ar/.m2/repository/org/jboss/spec/javax/ws/rs/jboss-jaxrs-api_2.0_spec/1.0.0.Final/jboss-jaxrs-api_2.0_spec-1.0.0.Final.jar:/home/ar/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.7.4/jackson-core-2.7.4.jar:/home/ar/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.7.4/jackson-annotations-2.7.4.jar:/home/ar/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.7.4/jackson-databind-2.7.4.jar:/home/ar/.m2/repository/com/fasterxml/jackson/jaxrs/jackson-jaxrs-json-provider/2.7.4/jackson-jaxrs-json-provider-2.7.4.jar:/home/ar/.m2/repository/com/fasterxml/jackson/jaxrs/jackson-jaxrs-base/2.7.4/jackson-jaxrs-base-2.7.4.jar:/home/ar/.m2/repository/com/fasterxml/jackson/module/jackson-module-jaxb-annotations/2.7.4/jackson-module-jaxb-annotations-2.7.4.jar:/home/ar/.m2/repository/org/wildfly/swarm/meta-spi/2017.6.0-SNAPSHOT/meta-spi-2017.6.0-20170504.101820-7.jar:/home/ar/.m2/repository/org/wildfly/swarm/datasources/2017.6.0-SNAPSHOT/datasources-2017.6.0-20170504.093822-6.jar:/home/ar/.m2/repository/org/wildfly/swarm/jca/2017.6.0-SNAPSHOT/jca-2017.6.0-20170504.093815-6.jar:/home/ar/.m2/repository/org/wildfly/swarm/connector/2017.6.0-SNAPSHOT/connector-2017.6.0-20170504.093806-6.jar:/home/ar/.m2/repository/org/jboss/spec/javax/resource/jboss-connector-api_1.7_spec/1.0.0.Final/jboss-connector-api_1.7_spec-1.0.0.Final.jar:/home/ar/.m2/repository/org/wildfly/swarm/transactions/2017.6.0-SNAPSHOT/transactions-2017.6.0-20170504.093739-6.jar:/home/ar/.m2/repository/org/jboss/narayana/jts/narayana-jts-idlj/5.3.3.Final/narayana-jts-idlj-5.3.3.Final.jar:/home/ar/.m2/repository/org/jboss/openjdk-orb/openjdk-orb/8.0.4.Final/openjdk-orb-8.0.4.Final.jar:/home/ar/.m2/repository/org/jboss/ironjacamar/ironjacamar-jdbc/1.3.4.Final/ironjacamar-jdbc-1.3.4.Final.jar:/home/ar/.m2/repository/org/jboss/spec/javax/transaction/jboss-transaction-api_1.2_spec/1.0.0.Final/jboss-transaction-api_1.2_spec-1.0.0.Final.jar:/home/ar/.m2/repository/junit/junit/4.11/junit-4.11.jar:/home/ar/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/home/ar/.m2/repository/org/jboss/arquillian/junit/arquillian-junit-container/1.1.12.Final/arquillian-junit-container-1.1.12.Final.jar:/home/ar/.m2/repository/org/jboss/arquillian/junit/arquillian-junit-core/1.1.12.Final/arquillian-junit-core-1.1.12.Final.jar:/home/ar/.m2/repository/org/jboss/arquillian/test/arquillian-test-api/1.1.12.Final/arquillian-test-api-1.1.12.Final.jar:/home/ar/.m2/repository/org/jboss/arquillian/core/arquillian-core-api/1.1.12.Final/arquillian-core-api-1.1.12.Final.jar:/home/ar/.m2/repository/org/jboss/arquillian/test/arquillian-test-spi/1.1.12.Final/arquillian-test-spi-1.1.12.Final.jar:/home/ar/.m2/repository/org/jboss/arquillian/core/arquillian-core-spi/1.1.12.Final/arquillian-core-spi-1.1.12.Final.jar:/home/ar/.m2/repository/org/jboss/arquillian/container/arquillian-container-test-api/1.1.12.Final/arquillian-container-test-api-1.1.12.Final.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/shrinkwrap-api/1.2.6/shrinkwrap-api-1.2.6.jar:/home/ar/.m2/repository/org/jboss/arquillian/container/arquillian-container-test-spi/1.1.12.Final/arquillian-container-test-spi-1.1.12.Final.jar:/home/ar/.m2/repository/org/jboss/arquillian/container/arquillian-container-spi/1.1.12.Final/arquillian-container-spi-1.1.12.Final.jar:/home/ar/.m2/repository/org/jboss/arquillian/core/arquillian-core-impl-base/1.1.12.Final/arquillian-core-impl-base-1.1.12.Final.jar:/home/ar/.m2/repository/org/jboss/arquillian/test/arquillian-test-impl-base/1.1.12.Final/arquillian-test-impl-base-1.1.12.Final.jar:/home/ar/.m2/repository/org/jboss/arquillian/container/arquillian-container-impl-base/1.1.12.Final/arquillian-container-impl-base-1.1.12.Final.jar:/home/ar/.m2/repository/org/jboss/arquillian/config/arquillian-config-api/1.1.12.Final/arquillian-config-api-1.1.12.Final.jar:/home/ar/.m2/repository/org/jboss/arquillian/config/arquillian-config-impl-base/1.1.12.Final/arquillian-config-impl-base-1.1.12.Final.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-spi/2.0.0-alpha-9/shrinkwrap-descriptors-spi-2.0.0-alpha-9.jar:/home/ar/.m2/repository/org/jboss/arquillian/container/arquillian-container-test-impl-base/1.1.12.Final/arquillian-container-test-impl-base-1.1.12.Final.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/shrinkwrap-impl-base/1.2.6/shrinkwrap-impl-base-1.2.6.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/shrinkwrap-spi/1.2.6/shrinkwrap-spi-1.2.6.jar:/home/ar/.m2/repository/org/jboss/arquillian/graphene/graphene-webdriver-api/2.1.0.Alpha2/graphene-webdriver-api-2.1.0.Alpha2.jar:/home/ar/.m2/repository/org/jboss/arquillian/graphene/graphene-webdriver-spi/2.1.0.Alpha2/graphene-webdriver-spi-2.1.0.Alpha2.jar:/home/ar/.m2/repository/org/jboss/arquillian/graphene/graphene-webdriver-impl/2.1.0.Alpha2/graphene-webdriver-impl-2.1.0.Alpha2.jar:/home/ar/.m2/repository/org/jboss/arquillian/extension/arquillian-drone-impl/2.0.1.Final/arquillian-drone-impl-2.0.1.Final.jar:/home/ar/.m2/repository/org/jboss/arquillian/extension/arquillian-drone-configuration/2.0.1.Final/arquillian-drone-configuration-2.0.1.Final.jar:/home/ar/.m2/repository/cglib/cglib/2.2.2/cglib-2.2.2.jar:/home/ar/.m2/repository/asm/asm/3.3.1/asm-3.3.1.jar:/home/ar/.m2/repository/org/objenesis/objenesis/1.2/objenesis-1.2.jar:/home/ar/.m2/repository/org/jboss/arquillian/extension/arquillian-drone-api/2.0.1.Final/arquillian-drone-api-2.0.1.Final.jar:/home/ar/.m2/repository/org/jboss/arquillian/extension/arquillian-drone-spi/2.0.1.Final/arquillian-drone-spi-2.0.1.Final.jar:/home/ar/.m2/repository/org/jboss/arquillian/extension/arquillian-drone-webdriver/2.0.1.Final/arquillian-drone-webdriver-2.0.1.Final.jar:/home/ar/.m2/repository/org/seleniumhq/selenium/selenium-api/2.53.1/selenium-api-2.53.1.jar:/home/ar/.m2/repository/com/google/guava/guava/19.0/guava-19.0.jar:/home/ar/.m2/repository/com/google/code/gson/gson/2.3.1/gson-2.3.1.jar:/home/ar/.m2/repository/org/seleniumhq/selenium/selenium-support/2.53.1/selenium-support-2.53.1.jar:/home/ar/.m2/repository/org/seleniumhq/selenium/selenium-chrome-driver/2.53.1/selenium-chrome-driver-2.53.1.jar:/home/ar/.m2/repository/org/seleniumhq/selenium/selenium-firefox-driver/2.53.1/selenium-firefox-driver-2.53.1.jar:/home/ar/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar:/home/ar/.m2/repository/org/apache/commons/commons-exec/1.3/commons-exec-1.3.jar:/home/ar/.m2/repository/org/seleniumhq/selenium/selenium-ie-driver/2.53.1/selenium-ie-driver-2.53.1.jar:/home/ar/.m2/repository/net/java/dev/jna/jna/4.1.0/jna-4.1.0.jar:/home/ar/.m2/repository/net/java/dev/jna/jna-platform/4.1.0/jna-platform-4.1.0.jar:/home/ar/.m2/repository/org/seleniumhq/selenium/selenium-remote-driver/2.53.1/selenium-remote-driver-2.53.1.jar:/home/ar/.m2/repository/cglib/cglib-nodep/2.1_3/cglib-nodep-2.1_3.jar:/home/ar/.m2/repository/org/apache/httpcomponents/httpclient/4.5.1/httpclient-4.5.1.jar:/home/ar/.m2/repository/org/apache/httpcomponents/httpcore/4.4.3/httpcore-4.4.3.jar:/home/ar/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar:/home/ar/.m2/repository/commons-codec/commons-codec/1.9/commons-codec-1.9.jar:/home/ar/.m2/repository/org/seleniumhq/selenium/htmlunit-driver/2.20/htmlunit-driver-2.20.jar:/home/ar/.m2/repository/net/sourceforge/htmlunit/htmlunit/2.20/htmlunit-2.20.jar:/home/ar/.m2/repository/xalan/xalan/2.7.2/xalan-2.7.2.jar:/home/ar/.m2/repository/xalan/serializer/2.7.2/serializer-2.7.2.jar:/home/ar/.m2/repository/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar:/home/ar/.m2/repository/org/apache/httpcomponents/httpmime/4.5.2/httpmime-4.5.2.jar:/home/ar/.m2/repository/net/sourceforge/htmlunit/htmlunit-core-js/2.17/htmlunit-core-js-2.17.jar:/home/ar/.m2/repository/xerces/xercesImpl/2.11.0/xercesImpl-2.11.0.jar:/home/ar/.m2/repository/xml-apis/xml-apis/1.4.01/xml-apis-1.4.01.jar:/home/ar/.m2/repository/net/sourceforge/nekohtml/nekohtml/1.9.22/nekohtml-1.9.22.jar:/home/ar/.m2/repository/net/sourceforge/cssparser/cssparser/0.9.18/cssparser-0.9.18.jar:/home/ar/.m2/repository/org/w3c/css/sac/1.3/sac-1.3.jar:/home/ar/.m2/repository/org/eclipse/jetty/websocket/websocket-client/9.2.15.v20160210/websocket-client-9.2.15.v20160210.jar:/home/ar/.m2/repository/org/eclipse/jetty/jetty-util/9.2.15.v20160210/jetty-util-9.2.15.v20160210.jar:/home/ar/.m2/repository/org/eclipse/jetty/jetty-io/9.2.15.v20160210/jetty-io-9.2.15.v20160210.jar:/home/ar/.m2/repository/org/eclipse/jetty/websocket/websocket-common/9.2.15.v20160210/websocket-common-9.2.15.v20160210.jar:/home/ar/.m2/repository/org/eclipse/jetty/websocket/websocket-api/9.2.15.v20160210/websocket-api-9.2.15.v20160210.jar:/home/ar/.m2/repository/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar:/home/ar/.m2/repository/com/opera/operadriver/1.5/operadriver-1.5.jar:/home/ar/.m2/repository/com/opera/operalaunchers/1.1/operalaunchers-1.1.jar:/home/ar/.m2/repository/com/google/protobuf/protobuf-java/2.4.1/protobuf-java-2.4.1.jar:/home/ar/.m2/repository/commons-jxpath/commons-jxpath/1.3/commons-jxpath-1.3.jar:/home/ar/.m2/repository/org/ini4j/ini4j/0.5.2/ini4j-0.5.2.jar:/home/ar/.m2/repository/org/jboss/arquillian/extension/arquillian-phantom-driver/1.2.1.Final/arquillian-phantom-driver-1.2.1.Final.jar:/home/ar/.m2/repository/com/codeborne/phantomjsdriver/1.2.1/phantomjsdriver-1.2.1.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/resolver/shrinkwrap-resolver-api/2.2.4/shrinkwrap-resolver-api-2.2.4.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/resolver/shrinkwrap-resolver-spi/2.2.4/shrinkwrap-resolver-spi-2.2.4.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/resolver/shrinkwrap-resolver-api-maven/2.2.4/shrinkwrap-resolver-api-maven-2.2.4.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/resolver/shrinkwrap-resolver-spi-maven/2.2.4/shrinkwrap-resolver-spi-maven-2.2.4.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/resolver/shrinkwrap-resolver-api-maven-archive/2.2.4/shrinkwrap-resolver-api-maven-archive-2.2.4.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/resolver/shrinkwrap-resolver-impl-maven/2.2.4/shrinkwrap-resolver-impl-maven-2.2.4.jar:/home/ar/.m2/repository/org/eclipse/aether/aether-api/1.0.0.v20140518/aether-api-1.0.0.v20140518.jar:/home/ar/.m2/repository/org/eclipse/aether/aether-impl/1.0.0.v20140518/aether-impl-1.0.0.v20140518.jar:/home/ar/.m2/repository/org/eclipse/aether/aether-spi/1.0.0.v20140518/aether-spi-1.0.0.v20140518.jar:/home/ar/.m2/repository/org/eclipse/aether/aether-util/1.0.0.v20140518/aether-util-1.0.0.v20140518.jar:/home/ar/.m2/repository/org/eclipse/aether/aether-connector-basic/1.0.0.v20140518/aether-connector-basic-1.0.0.v20140518.jar:/home/ar/.m2/repository/org/eclipse/aether/aether-transport-wagon/1.0.0.v20140518/aether-transport-wagon-1.0.0.v20140518.jar:/home/ar/.m2/repository/org/apache/maven/maven-aether-provider/3.2.5/maven-aether-provider-3.2.5.jar:/home/ar/.m2/repository/org/apache/maven/maven-model/3.2.5/maven-model-3.2.5.jar:/home/ar/.m2/repository/org/apache/maven/maven-model-builder/3.2.5/maven-model-builder-3.2.5.jar:/home/ar/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar:/home/ar/.m2/repository/org/apache/maven/maven-repository-metadata/3.2.5/maven-repository-metadata-3.2.5.jar:/home/ar/.m2/repository/org/apache/maven/maven-settings/3.2.5/maven-settings-3.2.5.jar:/home/ar/.m2/repository/org/apache/maven/maven-settings-builder/3.2.5/maven-settings-builder-3.2.5.jar:/home/ar/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.21/plexus-interpolation-1.21.jar:/home/ar/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.20/plexus-utils-3.0.20.jar:/home/ar/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar:/home/ar/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar:/home/ar/.m2/repository/org/apache/maven/wagon/wagon-provider-api/2.6/wagon-provider-api-2.6.jar:/home/ar/.m2/repository/org/apache/maven/wagon/wagon-file/2.6/wagon-file-2.6.jar:/home/ar/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/home/ar/.m2/repository/org/apache/maven/wagon/wagon-http-lightweight/2.6/wagon-http-lightweight-2.6.jar:/home/ar/.m2/repository/org/apache/maven/wagon/wagon-http-shared/2.6/wagon-http-shared-2.6.jar:/home/ar/.m2/repository/org/jsoup/jsoup/1.7.2/jsoup-1.7.2.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/resolver/shrinkwrap-resolver-impl-maven-archive/2.2.4/shrinkwrap-resolver-impl-maven-archive-2.2.4.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/resolver/shrinkwrap-resolver-spi-maven-archive/2.2.4/shrinkwrap-resolver-spi-maven-archive-2.2.4.jar:/home/ar/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.plexus/0.3.0.M1/org.eclipse.sisu.plexus-0.3.0.M1.jar:/home/ar/.m2/repository/javax/enterprise/cdi-api/1.0/cdi-api-1.0.jar:/home/ar/.m2/repository/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar:/home/ar/.m2/repository/javax/inject/javax.inject/1/javax.inject-1.jar:/home/ar/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.0.M1/org.eclipse.sisu.inject-0.3.0.M1.jar:/home/ar/.m2/repository/org/codehaus/plexus/plexus-compiler-javac/2.3/plexus-compiler-javac-2.3.jar:/home/ar/.m2/repository/org/codehaus/plexus/plexus-compiler-api/2.3/plexus-compiler-api-2.3.jar:/home/ar/.m2/repository/org/seleniumhq/selenium/selenium-java/2.53.1/selenium-java-2.53.1.jar:/home/ar/.m2/repository/org/seleniumhq/selenium/selenium-edge-driver/2.53.1/selenium-edge-driver-2.53.1.jar:/home/ar/.m2/repository/org/seleniumhq/selenium/selenium-safari-driver/2.53.1/selenium-safari-driver-2.53.1.jar:/home/ar/.m2/repository/io/netty/netty/3.5.7.Final/netty-3.5.7.Final.jar:/home/ar/.m2/repository/org/seleniumhq/selenium/selenium-leg-rc/2.53.1/selenium-leg-rc-2.53.1.jar com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 org.wildfly.swarm.howto.datasources.DatasourcesIT,testIt
May 04, 2017 9:53:16 PM org.jboss.arquillian.drone.webdriver.factory.remote.reusable.ReusedSessionPermanentFileStorage readStore
INFO: Reused session store is not available at /home/ar/.drone-webdriver-session-store, a new one will be created.
May 04, 2017 9:53:16 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: executable: /home/ar/projects/github/wildfly-swarm-howto/target/drone-phantomjs
May 04, 2017 9:53:16 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: port: 32428
May 04, 2017 9:53:16 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: arguments: [--webdriver=32428, --webdriver-logfile=/home/ar/projects/github/wildfly-swarm-howto/phantomjsdriver.log]
May 04, 2017 9:53:16 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: environment: {}
[INFO - 2017-05-04T18:53:19.786Z] GhostDriver - Main - running on port 32428
[INFO - 2017-05-04T18:53:20.249Z] Session [f1110070-30fa-11e7-af39-4f2ca589d1f5] - page.settings - {"XSSAuditingEnabled":false,"javascriptCanCloseWindows":true,"javascriptCanOpenWindows":true,"javascriptEnabled":true,"loadImages":true,"localToRemoteUrlAccessEnabled":false,"userAgent":"Mozilla/5.0 (Unknown; Linux x86_64) AppleWebKit/538.1 (KHTML, like Gecko) PhantomJS/2.1.1 Safari/538.1","webSecurityEnabled":true}
[INFO - 2017-05-04T18:53:20.250Z] Session [f1110070-30fa-11e7-af39-4f2ca589d1f5] - page.customHeaders: - {}
[INFO - 2017-05-04T18:53:20.250Z] Session [f1110070-30fa-11e7-af39-4f2ca589d1f5] - Session.negotiatedCapabilities - {"browserName":"phantomjs","version":"2.1.1","driverName":"ghostdriver","driverVersion":"1.2.0","platform":"linux-unknown-64bit","javascriptEnabled":true,"takesScreenshot":true,"handlesAlerts":false,"databaseEnabled":false,"locationContextEnabled":false,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"cssSelectorsEnabled":true,"webStorageEnabled":false,"rotatable":false,"acceptSslCerts":false,"nativeEvents":true,"proxy":{"proxyType":"direct"}}
[INFO - 2017-05-04T18:53:20.250Z] SessionManagerReqHand - _postNewSessionCommand - New Session Created: f1110070-30fa-11e7-af39-4f2ca589d1f5
[INFO - 2017-05-04T18:53:21.149Z] ShutdownReqHand - _handle - About to shutdown
org.junit.ComparisonFailure:
Expected :Found the datasource
Actual :
The issue is that this particular example has modified the wildfly-swarm-plugin to start in the pre integration test phase: https://github.com/wildfly-swarm/wildfly-swarm-howto/blob/master/create-a-datasource/pom.xml#L102
When you run mvn verify on the command line the pre integration test phase will start WildFly Swarm before the test is executed.
If you wanted to run the test in the IDE, you would either need to start the project first, such as with mvn wildfly-swarm:run, or create a different unit test that essentially creates the WildFly Swarm container for the test.
So, I'm pretty much just starting with servlets, jsp and apache tomcat inside eclipse.
I'm doing a project, which was already working, and I accidentally opened a HTML form (which send data to a java method with post) with the web editor inside of eclipse (which does not support the slovenian letters ščćžđ, and the encoding got messed up.
Upon opening back in the default editor and fixing the messed encoding, the file could not be saved. It gave me a popup about ISO encoding and how it needs to be as UTF8 so I just clicked yes and then apache would load not just the forms and methods, it wouldn't even open the whole website (index, etc..)..
When I tried some other fix I found on the web, it gave me 404, 500, and a bunch of other errora..Heck now it won't even run (I located the problem inside the web.xml file --when its commented out, the server runs but off course nothing runs..)..
Here is the error message:
apr. 09, 2017 5:19:21 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Naloga1spletnaTRGbootstrap' did not find a matching property.
apr. 09, 2017 5:19:21 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/8.5.13
apr. 09, 2017 5:19:21 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Mar 27 2017 14:25:04 UTC
apr. 09, 2017 5:19:21 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 8.5.13.0
apr. 09, 2017 5:19:21 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Windows 10
apr. 09, 2017 5:19:21 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 10.0
apr. 09, 2017 5:19:21 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: amd64
apr. 09, 2017 5:19:21 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: C:\Program Files\Java\jre1.8.0_121
apr. 09, 2017 5:19:21 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.8.0_121-b13
apr. 09, 2017 5:19:21 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
apr. 09, 2017 5:19:21 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: C:\Users\Denis Bobovnik\Desktop\FERI\1. letnik\2. Semester\OST - Osnove Spletnih Tehnologij\Eclipse2_delovno_okolje\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
apr. 09, 2017 5:19:21 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: C:\Users\Denis Bobovnik\Desktop\FERI\1. letnik\2. Semester\OST - Osnove Spletnih Tehnologij\apache-tomcat-8.5.13
apr. 09, 2017 5:19:21 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=C:\Users\Denis Bobovnik\Desktop\FERI\1. letnik\2. Semester\OST - Osnove Spletnih Tehnologij\Eclipse2_delovno_okolje\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
apr. 09, 2017 5:19:21 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=C:\Users\Denis Bobovnik\Desktop\FERI\1. letnik\2. Semester\OST - Osnove Spletnih Tehnologij\apache-tomcat-8.5.13
apr. 09, 2017 5:19:21 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dwtp.deploy=C:\Users\Denis Bobovnik\Desktop\FERI\1. letnik\2. Semester\OST - Osnove Spletnih Tehnologij\Eclipse2_delovno_okolje\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
apr. 09, 2017 5:19:21 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=C:\Users\Denis Bobovnik\Desktop\FERI\1. letnik\2. Semester\OST - Osnove Spletnih Tehnologij\apache-tomcat-8.5.13\endorsed
apr. 09, 2017 5:19:21 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=Cp1250
apr. 09, 2017 5:19:21 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\jre1.8.0_121\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre1.8.0_121/bin/server;C:/Program Files/Java/jre1.8.0_121/bin;C:/Program Files/Java/jre1.8.0_121/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files\MySQL\MySQL Utilities 1.6\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Skype\Phone\;C:\Users\Denis Bobovnik\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Java\jdk1.8.0_111\bin\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Users\Denis Bobovnik\AppData\Local\atom\bin;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Users\Denis Bobovnik\Desktop\FERI\1. letnik\2. Semester\OST - Osnove Spletnih Tehnologij\eclipse;;.
apr. 09, 2017 5:19:21 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8080"]
apr. 09, 2017 5:19:22 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
apr. 09, 2017 5:19:22 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-nio-8009"]
apr. 09, 2017 5:19:22 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
apr. 09, 2017 5:19:22 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 987 ms
apr. 09, 2017 5:19:22 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
apr. 09, 2017 5:19:22 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/8.5.13
apr. 09, 2017 5:19:22 PM org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Naloga1spletnaTRGbootstrap]]
at java.util.concurrent.FutureTask.report(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:939)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:872)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Naloga1spletnaTRGbootstrap]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
... 6 more
Caused by: java.lang.IllegalArgumentException: The servlets named [SejnoUgibanje] and [si.um.feri.ost.bobovnik.seje.SejnoUgibanje] are both mapped to the url-pattern [/SejnoUgibanje] which is not permitted
at org.apache.tomcat.util.descriptor.web.WebXml.addServletMappingDecoded(WebXml.java:323)
at org.apache.tomcat.util.descriptor.web.WebXml.addServletMapping(WebXml.java:316)
at org.apache.catalina.startup.ContextConfig.processAnnotationWebServlet(ContextConfig.java:2389)
at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2066)
at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:1952)
at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:1946)
at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:1946)
at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:1946)
at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:1946)
at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:1946)
at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:1946)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1153)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:775)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5105)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 6 more
apr. 09, 2017 5:19:22 PM org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
at java.util.concurrent.FutureTask.report(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:939)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:793)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.startup.Catalina.start(Catalina.java:655)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:355)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:495)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:947)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:872)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 6 more
apr. 09, 2017 5:19:22 PM org.apache.catalina.startup.Catalina start
SEVERE: The required Server component failed to start so Tomcat is unable to start.
org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
at org.apache.catalina.startup.Catalina.start(Catalina.java:655)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:355)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:495)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:793)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 7 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 9 more
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:947)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 11 more
apr. 09, 2017 5:19:22 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-nio-8080"]
apr. 09, 2017 5:19:22 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["ajp-nio-8009"]
apr. 09, 2017 5:19:22 PM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
apr. 09, 2017 5:19:22 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-nio-8080"]
apr. 09, 2017 5:19:22 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["ajp-nio-8009"]
And the XML:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<servlet>
<servlet-name>GetKalkulator</servlet-name>
<servlet-class>si.um.feri.ost.bobovnik.zahteve/GetKalkulator</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>GetKalkulator</servlet-name>
<url-pattern>/GetKalkulator</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>GetZahteva</servlet-name>
<servlet-class>si.um.feri.ost.bobovnik.zahteve/GetZahteva</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>GetZahteva</servlet-name>
<url-pattern>/GetZahteva</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>PostKalkulator</servlet-name>
<servlet-class>si.um.feri.ost.bobovnik.zahteve/PostKalkulator</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>PostKalkulator</servlet-name>
<url-pattern>/PostKalkulator</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>SejnoUgibanje</servlet-name>
<servlet-class>si.um.feri.ost.bobovnik.seje/SejnoUgibanje</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>SejnoUgibanje</servlet-name>
<url-pattern>/SejnoUgibanje</url-pattern>
</servlet-mapping>
</web-app>
I am trying automation of mobile app testing using Selenium.
i used eclipse indigo with plugins.
So far i tried using the but i get error message.
D:\Android\Android>java -jar selendroid.jar -app app.apk
Sep 24, 2015 3:50:58 PM io.selendroid.standalone.SelendroidLauncher main
INFO: ################# Selendroid #################
Sep 24, 2015 3:50:58 PM io.selendroid.standalone.SelendroidLauncher main
INFO: ################# Configuration in use #################
Sep 24, 2015 3:50:58 PM io.selendroid.standalone.SelendroidLauncher main
INFO: io.selendroid.standalone.SelendroidConfiguration#1270107[
port=4444
timeoutEmulatorStart=300000
supportedApps=[app.apk]
verbose=false
emulatorPort=5560
deviceScreenshot=false
selendroidServerPort=8080
keystore=<null>
keystorePassword=<null>
keystoreAlias=<null>
emulatorOptions=<null>
keepEmulator=false
registrationUrl=<null>
proxy=<null>
serverHost=<null>
keepAdbAlive=false
maxSession=5
maxInstances=5
registerCycle=0
noWebViewApp=false
noClearData=false
sessionTimeoutSeconds=1800
forceReinstall=false
logLevel=ERROR
deviceLog=true
serverStartTimeout=20000
printHelp=false
serverStartRetries=5
folder=<null>
deleteTmpFiles=true
]
Sep 24, 2015 3:50:58 PM io.selendroid.standalone.SelendroidLauncher launchServer
INFO: Starting Selendroid standalone on port 4444
Sep 24, 2015 3:50:58 PM io.selendroid.standalone.SelendroidLauncher launchServer
SEVERE: Error building server: Environment variable 'ANDROID_HOME' was not found
!
Exception in thread "main" io.selendroid.server.common.exceptions.SelendroidExce
ption: Environment variable 'ANDROID_HOME' was not found!
at io.selendroid.standalone.android.AndroidSdk.androidHome(AndroidSdk.ja
va:98)
at io.selendroid.standalone.android.AndroidSdk.platformToolsHome(Android
Sdk.java:87)
at io.selendroid.standalone.android.AndroidSdk.aapt(AndroidSdk.java:39)
at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFro
mWithinApk(DefaultAndroidApp.java:107)
at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFr
omAppSilently(SelendroidServerBuilder.java:133)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(Se
lendroidServerBuilder.java:142)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addT
oAppsStore(SelendroidStandaloneDriver.java:121)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.init
ApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.<ini
t>(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initialize
SelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.<init>(Sel
endroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLa
uncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.j
ava:117)
D:\Android\Android>set ANDROID_HOME=D:\Android\Android\sdk
D:\Android\Android>java -jar selendroid.jar -app app.apk
Sep 24, 2015 3:52:18 PM io.selendroid.standalone.SelendroidLauncher main
INFO: ################# Selendroid #################
Sep 24, 2015 3:52:18 PM io.selendroid.standalone.SelendroidLauncher main
INFO: ################# Configuration in use #################
Sep 24, 2015 3:52:18 PM io.selendroid.standalone.SelendroidLauncher main
INFO: io.selendroid.standalone.SelendroidConfiguration#1270107[
port=4444
timeoutEmulatorStart=300000
supportedApps=[app.apk]
verbose=false
emulatorPort=5560
deviceScreenshot=false
selendroidServerPort=8080
keystore=<null>
keystorePassword=<null>
keystoreAlias=<null>
emulatorOptions=<null>
keepEmulator=false
registrationUrl=<null>
proxy=<null>
serverHost=<null>
keepAdbAlive=false
maxSession=5
maxInstances=5
registerCycle=0
noWebViewApp=false
noClearData=false
sessionTimeoutSeconds=1800
forceReinstall=false
logLevel=ERROR
deviceLog=true
serverStartTimeout=20000
printHelp=false
serverStartRetries=5
folder=<null>
deleteTmpFiles=true
]
Sep 24, 2015 3:52:18 PM io.selendroid.standalone.SelendroidLauncher launchServer
INFO: Starting Selendroid standalone on port 4444
Sep 24, 2015 3:52:18 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: D:\Android\Android\sdk\platform-tools\aapt.exe re
move D:\Android\Android\app.apk META-INF/MANIFEST.MF
Sep 24, 2015 3:52:19 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: D:\Android\Android\sdk\platform-tools\aapt.exe re
move D:\Android\Android\app.apk META-INF/CERT.RSA
Sep 24, 2015 3:52:19 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: D:\Android\Android\sdk\platform-tools\aapt.exe re
move D:\Android\Android\app.apk META-INF/CERT.SF
Sep 24, 2015 3:52:19 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: D:\Android\Android\sdk\platform-tools\aapt.exe re
move D:\Android\Android\app.apk META-INF/ANDROIDD.SF
Sep 24, 2015 3:52:19 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: D:\Android\Android\sdk\platform-tools\aapt.exe re
move D:\Android\Android\app.apk META-INF/ANDROIDD.RSA
Sep 24, 2015 3:52:19 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: D:\Android\Android\sdk\platform-tools\aapt.exe re
move D:\Android\Android\app.apk META-INF/NDKEYSTO.SF
Sep 24, 2015 3:52:19 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: D:\Android\Android\sdk\platform-tools\aapt.exe re
move D:\Android\Android\app.apk META-INF/NDKEYSTO.RSA
Sep 24, 2015 3:52:19 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Program Files\Java\jdk1.7.0_71\jre\bin\jarsign
er.exe -sigalg MD5withRSA -digestalg SHA1 -signedjar D:\Android\Android\resigned
-app.apk -storepass android -keystore C:\Users\Soma0013\.android\debug.keystore
D:\Android\Android\app.apk androiddebugkey
Sep 24, 2015 3:52:19 PM io.selendroid.standalone.SelendroidLauncher launchServer
SEVERE: Error building server: An error occurred while resigning the app 'app.ap
k'.
Exception in thread "main" io.selendroid.server.common.exceptions.SessionNotCrea
tedException: An error occurred while resigning the app 'app.apk'.
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addT
oAppsStore(SelendroidStandaloneDriver.java:123)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.init
ApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.<ini
t>(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initialize
SelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.<init>(Sel
endroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLa
uncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.j
ava:117)
Caused by: io.selendroid.standalone.exceptions.ShellCommandException: Error exec
uting shell command: C:\Program Files\Java\jdk1.7.0_71\jre\bin\jarsigner.exe -si
galg MD5withRSA -digestalg SHA1 -signedjar D:\Android\Android\resigned-app.apk -
storepass android -keystore C:\Users\Soma0013\.android\debug.keystore D:\Android
\Android\app.apk androiddebugkey
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:53)
at io.selendroid.standalone.builder.SelendroidServerBuilder.signTestServ
er(SelendroidServerBuilder.java:296)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(Se
lendroidServerBuilder.java:154)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addT
oAppsStore(SelendroidStandaloneDriver.java:121)
... 6 more
Caused by: io.selendroid.standalone.exceptions.ShellCommandException:
... 10 more
D:\Android\Android>
is there any documentation to refer the selendroid testing
is there any documentation to refer the selendroid testing
Yes. See this page.
I al trying to register a node which is a VM with windows 7 on a hub that sits on a physical machine windows 7 also.
My server starts succesfully on port 4444.
I run this command to register the node :
This is what i get from my node console :
C:\grid>java -jar selenium-server-standalone-2.35.0.jar -role node -hub http://
hubip:4444/grid/register -browser browserName=firefox,platform=WINDOWS -
rowser browserName=chrome,platform=WINDOWS -browser "browserName=internet explo
er,platform=WINDOWS" -remoteHost nodeip:4444
26 sept. 2013 11:28:40 org.openqa.grid.selenium.GridLauncher main
INFO: Launching a selenium grid node
26 sept. 2013 11:28:40 org.openqa.grid.common.RegistrationRequest addCapability
romString
INFO: Adding browserName=firefox,platform=WINDOWS
26 sept. 2013 11:28:40 org.openqa.grid.common.RegistrationRequest addCapability
romString
INFO: Adding browserName=chrome,platform=WINDOWS
26 sept. 2013 11:28:40 org.openqa.grid.common.RegistrationRequest addCapability
romString
INFO: Adding browserName=internet explorer,platform=WINDOWS
11:28:41.375 INFO - Java: Sun Microsystems Inc. 20.13-b02
11:28:41.375 INFO - OS: Windows 7 6.1 x86
11:28:41.375 INFO - v2.35.0, with Core v2.35.0. Built from revision c916b9d
11:28:41.531 INFO - RemoteWebDriver instances should connect to: ://127.0.0
1:5555/wd/hub
11:28:41.531 INFO - Version Jetty/5.1.x
11:28:41.531 INFO - Started HttpContext[/selenium-server/driver,/selenium-serve
/driver]
11:28:41.531 INFO - Started HttpContext[/selenium-server,/selenium-server]
11:28:41.531 INFO - Started HttpContext[/,/]
11:28:41.546 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler#111a3
4
11:28:41.546 INFO - Started HttpContext[/wd,/wd]
11:28:41.546 INFO - Started SocketListener on 0.0.0.0:5555
11:28:41.546 INFO - Started org.openqa.jetty.jetty.Server#a9ae05
11:28:41.546 INFO - using the json request : {"class":"org.openqa.grid.common.R
gistrationRequest","capabilities":[{"seleniumProtocol":"WebDriver","platform":"
INDOWS","browserName":"firefox"},{"seleniumProtocol":"WebDriver","platform":"WI
DOWS","browserName":"chrome"},{"seleniumProtocol":"WebDriver","platform":"WINDO
S","browserName":"internet explorer"}],"configuration":{"port":5555,"host":"10.
128.120","hubHost":"192.168.1.110","registerCycle":5000,
"hub":"://hubip:4444/grid/register","url":"nodeip:4444","remoteHost":"
nodeip:4444","register":true,"proxy":"org.openqa.grid.selenium.proxy.Defau
tRemoteProxy","maxSession":5,"browser":"browserName=firefox,platform=WINDOWS","
ole":"node","hubPort":4444}}
11:28:41.546 INFO - Starting auto register thread. Will try to register every 5
00 ms.
11:28:41.546 INFO - Registering the node to hub :://hubip:4444/grid
register
11:29:56.910 INFO - Registering the node to hub :://hubip:4444/grid
register
11:31:12.274 INFO - Registering the node to hub :://hubip:4444/grid
register
11:32:27.684 INFO - Registering the node to hub :://hubip:4444/grid
register
11:33:43.204 INFO - Registering the node to hub :://hubip:4444/grid
register
11:34:58.599 INFO - Registering the node to hub :://hubip:4444/grid
register
--- the node keeps trying to register but the registration is refused.
Here is what i get from the hub console :
Avertissement: Unregistering the node. It's been down for 60113 milliseconds.
sept. 26, 2013 12:00:04 PM org.openqa.grid.internal.Registry removeIfPresent
Avertissement: Proxy 'nodeip:4444 time out : 300000' was prev
iously registered. Cleaning up any stale test sessions.
sept. 26, 2013 12:00:07 PM org.openqa.grid.internal.BaseRemoteProxy <init>
Avertissement: Max instance not specified. Using default = 1 instance
sept. 26, 2013 12:00:07 PM org.openqa.grid.internal.BaseRemoteProxy <init>
Avertissement: Max instance not specified. Using default = 1 instance
sept. 26, 2013 12:00:07 PM org.openqa.grid.internal.BaseRemoteProxy <init>
Avertissement: Max instance not specified. Using default = 1 instance
sept. 26, 2013 12:00:13 PM org.openqa.grid.selenium.proxy.DefaultRemoteProxy isA
live
Avertissement: Failed to check status of node: Connection to nodeip
:4444 refused
sept. 26, 2013 12:00:19 PM org.openqa.grid.selenium.proxy.DefaultRemoteProxy isA
live
Avertissement: Failed to check status of node: Connection to nodeip
:4444 refused
sept. 26, 2013 12:00:19 PM org.openqa.grid.selenium.proxy.DefaultRemoteProxy onE
vent
Avertissement: Marking the node as down. Cannot reach the node for 2 tries.
sept. 26, 2013 12:00:25 PM org.openqa.grid.selenium.proxy.DefaultRemoteProxy isA
live
Avertissement: Failed to check status of node: Connection to nodeip
:4444 refusedsept. 26, 2013 12:00:31 PM
I am trying to deploy RESTful webservice on Apache Tomcat build using Apache Wink in ECLIPSE IDE. I am getting below error while trying to run my app on server:
Feb 02, 2013 8:47:04 PM 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: C:\Program Files\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre7/bin/client;C:/Program Files/Java/jre7/bin;C:/Program Files/Java/jre7/lib/i386;C:\php\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\sw\Java\apache-maven-2.2.1-bin\apache-maven-2.2.1\bin;D:\PR\apache-ant-1.8.4-bin\apache-ant-1.8.4\bin;C:\cTAKES-2.5.0;C:\cTAKES-2.5.0\bin;C:\Program Files\Java\jdk1.7.0_02\bin;C:\Downloads\Apache-Subversion-1.7.6\bin;UIMA_HOME\bin;D:\sw\Apache AXIS and JavaBeans Activation framework\axis-src-1_4\axis-1_4\lib\commons-logging-1.0.4.jar;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\MySQL\MySQL Server 5.5\bin;C:\Program Files\MySQL\MySQL Server 5.1\bin;C:\Program Files\IDM Computer Solutions\UltraEdit\;D:\sw\eclipse-jee-indigo-SR2-win32\eclipse;;.
Feb 02, 2013 8:47:04 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Books' did not find a matching property.
Feb 02, 2013 8:47:04 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Feb 02, 2013 8:47:05 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Feb 02, 2013 8:47:05 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 804 ms
Feb 02, 2013 8:47:05 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Feb 02, 2013 8:47:05 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.22
Feb 02, 2013 8:47:05 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Feb 02, 2013 8:47:05 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Feb 02, 2013 8:47:05 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 458 ms
148 [http-bio-8080-exec-3] INFO org.apache.wink.common.internal.application.ApplicationFileLoader - Loading application from META-INF/core/wink-providers.
471 [http-bio-8080-exec-3] INFO org.apache.wink.server.internal.servlet.RestServlet - Using application class com.ibm.devworks.ws.rest.books.BookWebApp named in init-param javax.ws.rs.Application
472 [http-bio-8080-exec-3] ERROR org.apache.wink.server.internal.servlet.RestServlet - com.ibm.devworks.ws.rest.books.BookWebApp
java.lang.ClassNotFoundException: com.ibm.devworks.ws.rest.books.BookWebApp
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1678)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1523)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.apache.wink.server.internal.servlet.RestServlet.getApplication(RestServlet.java:163)
at org.apache.wink.server.internal.servlet.RestServlet.createRequestProcessor(RestServlet.java:113)
at org.apache.wink.server.internal.servlet.RestServlet.init(RestServlet.java:87)
at javax.servlet.GenericServlet.init(GenericServlet.java:160)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1228)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1147)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:836)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:135)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Feb 02, 2013 8:47:06 PM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet restSdkService as unavailable
Feb 02, 2013 8:47:06 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Allocate exception for servlet restSdkService
javax.servlet.UnavailableException: com.ibm.devworks.ws.rest.books.BookWebApp
at org.apache.wink.server.internal.servlet.RestServlet.init(RestServlet.java:97)
at javax.servlet.GenericServlet.init(GenericServlet.java:160)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1228)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1147)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:836)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:135)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Where am I missing??
Thanks.
Regards,
Piyush