2 Replies Latest reply on Jul 15, 2019 3:45 PM by cezar.oliveira

    Arquillian + Weblogic 12.2.1 = Issue in Remote Deployment.

    sami429

      Hi There,

       

      Been stuck with this issue for a long time now.

      Need some help badly.

       

      So here is what am stuck with:

      Am testing out the Greeter example, where I want to deploy my application on a remote (different machine) weblogic 12.x

      For starters, I setup everything and tried the example out with a local weblogic installation. by local I mean weblogic on my machine itself.

      Everything works great.

      Problem occurs when I modify the arquillian.xml to connect to a remote weblogic which is running on a different machine on my network.

      I get the following error:

      org.jboss.arquillian.container.spi.client.container.DeploymentException: java.lang.RuntimeException: [Deployer:149003]Unable to access application source information in "/Users/Rim/AppData/Local/Temp/arquillian713201797141282408test.war/test.war" for application "test". The specific error is: No application files exist.

       

      Not sure if this can even work.. any help on this will be great.

      Following are some other details related to the issue :

       

       

      GreeterTest.java

      @RunWith(Arquillian.class)

      public class GreeterTest {

       

          @Deployment

          public static JavaArchive createDeployment() {

              JavaArchive jar = ShrinkWrap.create(JavaArchive.class).addClass(Greeter.class)

                      .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");

              System.out.println(jar.toString(true));

              return jar;

          }

         

          @Inject

          Greeter greeter;

         

          @Test

          public void should_create_greeting() {

              Assert.assertEquals("Hello, Earthling!",

                      greeter.createGreeting("Earthling"));

                  greeter.greet(System.out, "Earthling");

          }

      }

       

       

      arquillian.xml

      <?xml version="1.0" encoding="UTF-8"?>

      <arquillian xmlns="http://jboss.org/schema/arquillian" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                  xsi:schemalocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian-1.0.xsd">

          <container default="true" qualifier="wls-remote">

              <configuration>

                    <property name="adminUrl">t3://172.xx.xx.x:7030/</property>

                  <property name="adminUserName">wlsadmin</property>

                  <property name="adminPassword">xxxxxxx</property>

                  <property name="target">server</property>

                  <property name="wlHome">C:\Oracle\Middleware\ORACLE_HOME\wlserver</property>  <!-- TRIED OUT POINTING THIS PATH TO BOTH LOCAL AND REMOTE WEBLOGIC. THIS ERROR IS WHILE POINTING IT TO LOCAL WLSERVER-->

              </configuration>

          </container>

      </arquillian>

       

       

      pom.xml

      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

        <modelVersion>4.0.0</modelVersion>

        <groupId>my.arq</groupId>

        <artifactId>my-arq</artifactId>

        <version>0.0.1-SNAPSHOT</version>

        <packaging>jar</packaging>

        <name>MyArquillilan</name>

       

      <dependencyManagement>

      <dependencies>

      <dependency>

      <groupId>org.jboss.arquillian</groupId>

      <artifactId>arquillian-bom</artifactId>

      <version>1.4.1.Final</version>

      <type>pom</type>

      <scope>import</scope>

      </dependency>

      <dependency>

          <groupId>org.jboss.shrinkwrap.resolver</groupId>

          <artifactId>shrinkwrap-resolver-bom</artifactId>

          <version>3.1.3</version>

          <type>pom</type>

      </dependency>

      </dependencies>

      </dependencyManagement>

       

      <dependencies>

      <dependency>

      <groupId>org.jboss.spec</groupId>

      <artifactId>jboss-javaee-6.0</artifactId>

      <version>1.0.0.Final</version>

      <type>pom</type>

      <scope>provided</scope>

      </dependency>

       

      <dependency>

      <groupId>org.jboss.arquillian.junit</groupId>

      <artifactId>arquillian-junit-container</artifactId>

      <scope>test</scope>

      </dependency>

       

      <dependency>

      <groupId>junit</groupId>

      <artifactId>junit</artifactId>

      <version>4.12</version>

      <scope>test</scope>

      </dependency>

       

      <dependency>

      <groupId>org.jboss.arquillian.testenricher</groupId>

      <artifactId>arquillian-testenricher-cdi</artifactId>

      </dependency>

       

      <dependency>

      <groupId>org.jboss.arquillian.container</groupId>

      <artifactId>arquillian-wls-remote-12.1.2</artifactId>

      <version>1.0.1.Final</version>

      <scope>test</scope>

      </dependency>

       

      <dependency>

          <groupId>org.jboss.shrinkwrap</groupId>

          <artifactId>shrinkwrap-api</artifactId>

          <version>1.2.6</version>

      </dependency>

       

      <dependency>

      <groupId>org.jboss.arquillian</groupId>

      <artifactId>arquillian-spi</artifactId>

      <version>1.0.0.Alpha5</version>

      <scope>test</scope>

      </dependency>

       

      <dependency>

          <groupId>org.apache.maven.plugins</groupId>

          <artifactId>maven-compiler-plugin</artifactId>

          <version>2.5</version>

      </dependency>

       

      </dependencies>

        <build>

          <pluginManagement>

            <plugins>

              <plugin>

                <artifactId>maven-resources-plugin</artifactId>

                <version>2.5</version>

              </plugin>          

            </plugins>

          </pluginManagement>  

      </build>

       

      </project>

       

       

      Exception :

      Running test.java.GreeterTest

      458a294d-895f-46f7-9881-ec16993fdf08.jar:

      /main/

      /main/java/

      /main/java/Greeter.class

      /META-INF/

      /META-INF/beans.xml

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

      test.java.GreeterTest  Time elapsed: 4.966 sec  <<< ERROR!

      org.jboss.arquillian.container.spi.client.container.DeploymentException: java.lang.RuntimeException: [Deployer:149003]Unable to access application source information in "/Users/Rzee/AppData/Local/Temp/arquillian713201797141282408test.war/test.war" for application "test". The specific error is: No application files exist.

      at org.jboss.arquillian.container.wls.WebLogicJMXClient.doDeploy(WebLogicJMXClient.java:221)

      at org.jboss.arquillian.container.wls.WebLogicJMXClient.deploy(WebLogicJMXClient.java:97)

      at org.jboss.arquillian.container.wls.jmx.FullJMXRemoteContainer.deploy(FullJMXRemoteContainer.java:64)

      at org.jboss.arquillian.container.wls.remote_12_1_2.WebLogicContainer.deploy(WebLogicContainer.java:61)

      at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:151)

      at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:118)

      at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.executeOperation(ContainerDeployController.java:239)

      at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.deploy(ContainerDeployController.java:118)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:498)

      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)

      at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:103)

      at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:90)

      at org.jboss.arquillian.container.impl.client.container.DeploymentExceptionHandler.verifyExpectedExceptionDuringDeploy(DeploymentExceptionHandler.java:47)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:498)

      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)

      at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:95)

      at org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createDeploymentContext(ContainerDeploymentContextHandler.java:71)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:498)

      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)

      at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:95)

      at org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createContainerContext(ContainerDeploymentContextHandler.java:54)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:498)

      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)

      at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:95)

      at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:133)

      at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:105)

      at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:62)

      at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:92)

      at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:77)

      at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.forEachDeployment(ContainerDeployController.java:232)

      at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.forEachManagedDeployment(ContainerDeployController.java:212)

      at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.deployManaged(ContainerDeployController.java:77)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:498)

      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)

      at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:103)

      at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:90)

      at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:133)

      at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:105)

      at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:62)

      at org.jboss.arquillian.container.test.impl.client.ContainerEventController.execute(ContainerEventController.java:96)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:498)

      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)

      at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:103)

      at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:90)

      at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:83)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:498)

      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)

      at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:95)

      at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:69)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:498)

      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)

      at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:95)

      at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:133)

      at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:105)

      at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeClass(EventTestRunnerAdaptor.java:89)

      at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:163)

      at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:350)

      at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:54)

      at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:177)

      at org.junit.runners.ParentRunner.run(ParentRunner.java:363)

      at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:115)

      at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)

      at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)

      at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:498)

      at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)

      at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)

      at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)

      at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)

      at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)

      Caused by: javax.management.RuntimeMBeanException: java.lang.RuntimeException: [Deployer:149003]Unable to access application source information in "/Users/Rzee/AppData/Local/Temp/arquillian713201797141282408test.war/test.war" for application "test". The specific error is: No application files exist.

      at weblogic.utils.StackTraceDisabled.unknownMethod()

      Caused by: java.lang.RuntimeException: [Deployer:149003]Unable to access application source information in "/Users/Rzee/AppData/Local/Temp/arquillian713201797141282408test.war/test.war" for application "test". The specific error is: No application files exist.

      ... 1 more

       

      Results :

      Tests in error:

        test.java.GreeterTest: java.lang.RuntimeException: [Deployer:149003]Unable to access application source information in "/Users/Rzee/AppData/Local/Temp/arquillian713201797141282408test.war/test.war" for application "test". The specific error is: No application files exist.

       

      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0

       

       

      Appreciate any help on this..

        • 1. Re: Arquillian + Weblogic 12.2.1 = Issue in Remote Deployment.
          cezar.oliveira

          I have the same issue.

           

          I tried the follows:

          * from Windows to Solaris

          * from Windows to Windows

          * from Solaris to Solaris

           

          I saw that Arquillian uses "weblogic.Deployer" and as we can see in https://docs.oracle.com/cd/E24329_01/web.1211/e24443/wldeployer.htm#DEPGD333 the deploy has a "-upload" argument.

           

          -upload 

          Transfers the specified deployment files, including deployment plans and alternate deployment descriptors, to the Administration Server. Use this option when you are on a remote machine and you cannot copy the deployment files to the Administration Server by other means. The application files are uploaded to the WebLogic Server Administration Server upload directory prior to distribution and deployment.

          Has some way to indicate this argument to Arquillian use during deploy?

           

          The error below was from Windows to Solaris:

           

          09:22:56 [INFO] -------------------------------------------------------

          09:22:56 [INFO] T E S T S

          09:22:56 [INFO] -------------------------------------------------------

          09:23:07 [INFO] Running ProtocoloArquillianTest

          09:23:08 Problem creating dummy orb: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 203 completed: No

          09:23:10 testeArquillian.ear:

          09:23:10 /META-INF/

          09:23:10 /META-INF/application.xml

          09:23:10 /META-INF/weblogic-application.xml

          09:23:10 /lib/

          09:23:10 /lib/testeArquillian.jar

          09:23:10 /lib/junit-platform-launcher-1.5.0-M1.jar

          09:23:10 /lib/apiguardian-api-1.0.0.jar

          09:23:10 /lib/junit-platform-engine-1.5.0-M1.jar

          09:23:10 /lib/junit-vintage-engine-5.3.1.jar

          09:23:10 /lib/junit-4.12.jar

          09:23:10 /lib/hamcrest-core-1.3.jar

          09:23:10 /lib/junit-jupiter-api-5.4.2.jar

          09:23:10 /lib/junit-platform-commons-1.4.2.jar

          09:23:10 /lib/junit-jupiter-engine-5.4.2.jar

          09:23:10 /lib/opentest4j-1.1.1.jar

          09:23:10 /protocolonegocio-1.0.0.jar

          09:23:28 [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 20.389 s <<< FAILURE! - in ProtocoloArquillianTest
          09:23:28 [ERROR] ProtocoloArquillianTest Time elapsed: 20.388 s <<< ERROR!
          09:23:28 org.jboss.arquillian.container.spi.client.container.DeploymentException: java.lang.RuntimeException: [Deployer:149003]Unable to access application source information in "/WINDOWS/TEMP/arquillian8040097571805580741testeArquillian.ear/testeArquillian.ear" for application "testeArquillian". The specific error is: No application files exist.

          09:23:28 Caused by: javax.management.RuntimeMBeanException: java.lang.RuntimeException: [Deployer:149003]Unable to access application source information in "/WINDOWS/TEMP/arquillian8040097571805580741testeArquillian.ear/testeArquillian.ear" for application "testeArquillian". The specific error is: No application files exist.

          09:23:28 Caused by: java.lang.RuntimeException: [Deployer:149003]Unable to access application source information in "/WINDOWS/TEMP/arquillian8040097571805580741testeArquillian.ear/testeArquillian.ear" for application "testeArquillian". The specific error is: No application files exist.

          09:23:28

          09:23:28 [INFO]

          09:23:28 [INFO] Results:

          09:23:28 [INFO]

          09:23:28 [ERROR] Errors:
          09:23:28 [ERROR] ProtocoloArquillianTest ¯ Deployment java.lang.RuntimeException: [Deployer:149...
          09:23:28 [INFO]

          09:23:28 [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
          09:23:28 [INFO]

          09:23:28 [INFO]

          09:23:28 [INFO] --- maven-failsafe-plugin:3.0.0-M3:verify (default) @ protocolonegocio ---
          09:23:28 [INFO] ------------------------------------------------------------------------

          09:23:28 [INFO] BUILD FAILURE

          09:23:28 [INFO] ------------------------------------------------------------------------

          09:23:28 [INFO] Total time: 01:01 min

          09:23:28 [INFO] Finished at: 2019-06-27T09:23:28-03:00

          09:23:28 [INFO] Final Memory: 16M/159M

          09:23:28 [INFO] ------------------------------------------------------------------------

          09:23:28 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:3.0.0-M3:verify (default) on project protocolonegocio: There are test failures.
          09:23:28 [ERROR]
          09:23:28 [ERROR] Please refer to C:\Ambiente\Jenkins\workspace\TESTE FOLDER CEZAR\TESTE HOM PROTOCOLONEGOCIO\protocolonegocio\..\protocolonegocio\target\failsafe-reports for the individual test results.
          09:23:28 [ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
          09:23:28 [ERROR] -> [Help 1]
          09:23:28 [ERROR]
          09:23:28 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
          09:23:28 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
          09:23:28 [ERROR]
          09:23:29 [ERROR] For more information about the errors and possible solutions, please read the following articles:
          09:23:29 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
          09:23:29 Build step 'Chamar alvos Maven de alto nível' marked build as failure

          09:23:29 Set build name.

          09:23:29 New build name is '#13 MANUALTRIGGER Iniciado pelo usuário Cezar Oliveira'

          09:23:29 Finished: FAILURE

           

          Thanks!

          • 2. Re: Arquillian + Weblogic 12.2.1 = Issue in Remote Deployment.
            cezar.oliveira

            I found a solution.

             

            I changed my project to use "arquillian-wls-remote-rest" instead of the previous.

             

            I changed the dependency...

             

            <dependency>

            <groupId>org.jboss.arquillian.container</groupId>

            <artifactId>arquillian-wls-remote-12.1.x</artifactId>

            <version>1.0.1.Final</version>

            <scope>provided</scope>

            </dependency>

             

            For the dependency...

             

            <dependency>

            <groupId>org.jboss.arquillian.container</groupId>

            <artifactId>arquillian-wls-remote-rest</artifactId>

            <version>1.0.1.Final</version>

            <scope>test</scope>

            </dependency>

             

            And in the file "arquillian.xml" I changed the protocol from "t3" to "http".

             

            I hope I've helped.