0 Replies Latest reply on Oct 7, 2017 10:49 AM by daniel.platz

    Getting arquillian-was-remote-8.5 to work

    daniel.platz

      Hi All,

      Yes, i know this is old stuff, but I would like to get the arquillian-was-remote-8.5 connector running.

      -------------------------------------------------------

      T E S T S

      -------------------------------------------------------

      Running com.dieboldnixdorf.NewEmptyJUnitTest

      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.539 sec <<< FAILURE!

      com.test.MyUnitTest  Time elapsed: 0.537 sec  <<< ERROR!

      java.lang.NoClassDefFoundError: com/ibm/CORBA/iiop/ORB

      at java.net.URLClassLoader.findClass(URLClassLoader.java:381)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

      My understanding is this is because i run the arquillian test with the Oracle JDK and not with IBM JDK.

      • I added this to my pom.xml to fix it (let me know if you have a better way)

                      <dependency>

                          <groupId>com.ibm.websphere</groupId>

                          <artifactId>ibmorb</artifactId>

                          <version>8.5.0</version>

                          <scope>system</scope>

                          <systemPath>${env.WAS85_HOME}/java/jre/lib/ibmorb.jar</systemPath>

                      </dependency>

      • Now i get below error:

      -------------------------------------------------------

      T E S T S

      -------------------------------------------------------

      Running com.dieboldnixdorf.NewEmptyJUnitTest

      Oct 07, 2017 4:41:45 PM com.ibm.websphere.management.AdminClientFactory

      WARNING: ADMC0046W: The system failed to load properties from com.ibm.SOAP.configURL: file:null/properties/soap.client.props

      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 31.228 sec <<< FAILURE!

      com.test.MyUnitTest  Time elapsed: 31.226 sec  <<< ERROR!

      org.jboss.arquillian.container.spi.client.container.LifecycleException: Could not create AdminClient: ADMC0016E: The system cannot create a SOAP connector to connect to host localhost at port 8880.

      at java.lang.ClassLoader.defineClass1(Native Method)

      at java.lang.ClassLoader.defineClass(ClassLoader.java:763)

      I am not sure what is the problem here. If i use wsadmin to connect to localhost on port 8880 is works. So, port is open. I am not sure if the warning should tell me anything i need to fix?

      Do i need addtitional environment variables?

       

      Any help or experience with the was-8.5 connector is welcome.

       

      For completeness: This is the container-config from arquillian.xml that is used:

       

          <container qualifier="arquillian-was-remote">

              <configuration>

                  <property name="remoteServerAddress">localhost</property>

                  <property name="remoteServerSoapPort">8880</property>

                  <property name="securityEnabled">false</property>

                  <property name="username">admin</property>

              </configuration>

          </container>

       

      Thanks,

      Daniel