3 Replies Latest reply on Jul 20, 2017 1:21 PM by aanjan RSS
    gbrentegani Newbie

    Error: Could not find or load main class com.thingworx.connectionserver.ConnectionServer

    Hi,

    I'm Gabriele,

    I followed all the guide, i have this issue when I start the bat:   (I started the cmd in administrator mode in the bin directory)

     

    I attach the conf, bat and log files.

     

     

     

    C:\azure\connector\bin>azure-iot

    C:\azure\connector\bin>set AZURE_IOT_OPTS=-Dconfig.file=C:\azure\connector\conf\azure-iot.conf -Dlogback.configurationFile=C:\azure\connector\conf\logback.xml

    C:\azure\connector\bin>if "Windows_NT" == "Windows_NT" setlocal

    C:\azure\connector\bin>set DIRNAME=C:\azure\connector\bin\

    C:\azure\connector\bin>if "C:\azure\connector\bin\" == "" set DIRNAME=.

    C:\azure\connector\bin>set APP_BASE_NAME=azure-iot

    C:\azure\connector\bin>set APP_HOME..
    Environment variable APP_HOME.. not defined

    C:\azure\connector\bin>set DEFAULT_JVM_OPTS=

    C:\azure\connector\bin>if defined JAVA_HOME goto findJavaFromJavaHome

    C:\azure\connector\bin>set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_92

    C:\azure\connector\bin>set JAVA_EXE=C:\Program Files\Java\jdk1.8.0_92/bin/java.exe

    C:\azure\connector\bin>if exist "C:\Program Files\Java\jdk1.8.0_92/bin/java.exe" goto init

    C:\azure\connector\bin>if not "Windows_NT" == "Windows_NT" goto win9xME_args

    C:\azure\connector\bin>if "@eval[2+2]" == "4" goto 4NT_args

    C:\azure\connector\bin>set CMD_LINE_ARGS=

    C:\azure\connector\bin>set _SKIP=2

    C:\azure\connector\bin>if "x" == "x" goto execute

    C:\azure\connector\bin>set CLASSPATH=\lib\azure-iot-hub-adapter-1.1.0.53.jar;\lib\logback-classic-1.2.3.jar;\lib\jackson-core-2.8.7.jar;\lib\guice-4.1.0.jar;\lib\guice-multibindings-4.0.jar;\lib\iot-service-client-1.4.20.jar;\lib\azure-eventhubs-0.14.0.jar;\lib\azure-eventhubs-eph-0.14.0.jar;\lib\thingworx-common-7.2.3-b48.jar;\lib\common-java8-1.1.3.9.jar;\lib\common-slf4j-1.1.3.9.jar;\lib\cxserver-core-1.4.0.10232.jar;\lib\protocol-services-1.4.0.10232.jar;\lib\tw-sdk-core-1.3.0.10.jar;\lib\config-1.3.1.jar;\lib\commons-codec-1.9.jar;\lib\metrics-core-3.2.2.jar;\lib\javax.inject-1.jar;\lib\joda-time-2.9.9.jar;\lib\slf4j-api-1.7.25.jar;\lib\jul-to-slf4j-1.7.21.jar;\lib\azure-storage-5.0.0.jar;\lib\failsafe-1.0.4.jar;\lib\logback-core-1.2.3.jar;\lib\aopalliance-1.0.jar;\lib\guava-21.0.jar;\lib\gson-2.8.0.jar;\lib\iot-deps-serializer-0.4.4.jar;\lib\javax.json-1.0.4.jar;\lib\proton-j-0.18.0.jar;\lib\websocket-transport-layer-0.1.3.jar;\lib\javassist-3.22.0-CR1.jar;\lib\jackson-databind-2.8.7.jar;\lib\annotations-3.0.1u2.jar;\lib\shepard-api-9.0.200.jar;\lib\shepard-consul-9.0.200.jar;\lib\common-aws-1.1.3.9.jar;\lib\fabric-api-1.0.309.jar;\lib\fabric-hazelcast-1.0.309.jar;\lib\fabric-local-1.0.309.jar;\lib\fabric-netty-1.0.309.jar;\lib\router-1.0.309.jar;\lib\tw-sdk-netty-websockets-1.3.0.10.jar;\lib\tw-sdk-internal-1.0.198.jar;\lib\tw-sdk-kafka-1.0.198.jar;\lib\metrics-graphite-3.2.2.jar;\lib\metrics-jvm-3.2.2.jar;\lib\undertow-core-1.2.11.Final.jar;\lib\commons-lang3-3.5.jar;\lib\fluent-hc-4.5.3.jar;\lib\httpclient-4.5.3.jar;\lib\httpcore-4.4.6.jar;\lib\httpmime-4.5.3.jar;\lib\azure-keyvault-core-0.8.0.jar;\lib\jackson-annotations-2.8.7.jar;\lib\hazelcast-3.5.1.jar;\lib\xnio-nio-3.3.1.Final.jar;\lib\netty-all-4.0.33.Final.jar;\lib\scala-library-2.12.1.jar;\lib\kafka-clients-0.10.2.0.jar;\lib\jboss-logging-3.1.4.GA.jar;\lib\xnio-api-3.3.1.Final.jar;\lib\commons-logging-1.2.jar;\lib\lz4-1.3.0.jar;\lib\snappy-java-1.1.2.6.jar

    C:\azure\connector\bin>"C:\Program Files\Java\jdk1.8.0_92/bin/java.exe"   -Dconfig.file=C:\azure\connector\conf\azure-iot.conf -Dlogback.configurationFile=C:\azure\connector\conf\logback.xml  -classpath "\lib\azure-iot-hub-adapter-1.1.0.53.jar;\lib\logback-classic-1.2.3.jar;\lib\jackson-core-2.8.7.jar;\lib\guice-4.1.0.jar;\lib\guice-multibindings-4.0.jar;\lib\iot-service-client-1.4.20.jar;\lib\azure-eventhubs-0.14.0.jar;\lib\azure-eventhubs-eph-0.14.0.jar;\lib\thingworx-common-7.2.3-b48.jar;\lib\common-java8-1.1.3.9.jar;\lib\common-slf4j-1.1.3.9.jar;\lib\cxserver-core-1.4.0.10232.jar;\lib\protocol-services-1.4.0.10232.jar;\lib\tw-sdk-core-1.3.0.10.jar;\lib\config-1.3.1.jar;\lib\commons-codec-1.9.jar;\lib\metrics-core-3.2.2.jar;\lib\javax.inject-1.jar;\lib\joda-time-2.9.9.jar;\lib\slf4j-api-1.7.25.jar;\lib\jul-to-slf4j-1.7.21.jar;\lib\azure-storage-5.0.0.jar;\lib\failsafe-1.0.4.jar;\lib\logback-core-1.2.3.jar;\lib\aopalliance-1.0.jar;\lib\guava-21.0.jar;\lib\gson-2.8.0.jar;\lib\iot-deps-serializer-0.4.4.jar;\lib\javax.json-1.0.4.jar;\lib\proton-j-0.18.0.jar;\lib\websocket-transport-layer-0.1.3.jar;\lib\javassist-3.22.0-CR1.jar;\lib\jackson-databind-2.8.7.jar;\lib\annotations-3.0.1u2.jar;\lib\shepard-api-9.0.200.jar;\lib\shepard-consul-9.0.200.jar;\lib\common-aws-1.1.3.9.jar;\lib\fabric-api-1.0.309.jar;\lib\fabric-hazelcast-1.0.309.jar;\lib\fabric-local-1.0.309.jar;\lib\fabric-netty-1.0.309.jar;\lib\router-1.0.309.jar;\lib\tw-sdk-netty-websockets-1.3.0.10.jar;\lib\tw-sdk-internal-1.0.198.jar;\lib\tw-sdk-kafka-1.0.198.jar;\lib\metrics-graphite-3.2.2.jar;\lib\metrics-jvm-3.2.2.jar;\lib\undertow-core-1.2.11.Final.jar;\lib\commons-lang3-3.5.jar;\lib\fluent-hc-4.5.3.jar;\lib\httpclient-4.5.3.jar;\lib\httpcore-4.4.6.jar;\lib\httpmime-4.5.3.jar;\lib\azure-keyvault-core-0.8.0.jar;\lib\jackson-annotations-2.8.7.jar;\lib\hazelcast-3.5.1.jar;\lib\xnio-nio-3.3.1.Final.jar;\lib\netty-all-4.0.33.Final.jar;\lib\scala-library-2.12.1.jar;\lib\kafka-clients-0.10.2.0.jar;\lib\jboss-logging-3.1.4.GA.jar;\lib\xnio-api-3.3.1.Final.jar;\lib\commons-logging-1.2.jar;\lib\lz4-1.3.0.jar;\lib\snappy-java-1.1.2.6.jar" com.thingworx.connectionserver.ConnectionServer
    Error: Could not find or load main class com.thingworx.connectionserver.ConnectionServer

    C:\azure\connector\bin>if "1" == "0" goto mainEnd

    C:\azure\connector\bin>rem Set variable AZURE_IOT_EXIT_CONSOLE if you need the _script_ return code instead of

    C:\azure\connector\bin>rem the _cmd.exe /c_ return code!

    C:\azure\connector\bin>if not "" == "" exit 1

    C:\azure\connector\bin>exit /b 1

    C:\azure\connector\bin>

     

     

    Any suggestion?

     

    Thanks