1 Reply Latest reply: Dec 9, 2012 2:19 AM by 556118 RSS

    Error while deploying on Weblogic 12c

    556118
      Hi all,
      I got an error while trying to deploy my WAR on Weblogic 12c. However, deployment on 11g for the same WAR is successful. Here is the error I got:


      [ERROR] Failed to execute goal com.oracle.weblogic:wls-maven-plugin:12.1.1.0:deploy (default-cli) on project pilot-web: weblogic.deploy.api.tools.deployer.DeployerException: Task 4 failed: [Deployer:149026]deploy application pilot-web on AdminServer.
      Target state: deploy failed on Server AdminServer
      java.lang.ArrayIndexOutOfBoundsException
      java.lang.ArrayIndexOutOfBoundsException: InvocationTargetException: weblogic.deploy.api.tools.deployer.DeployerException: Task 4 failed: [Deployer:149026]deploy application pilot-web on AdminServer.
      Target state: deploy failed on Server AdminServer
      java.lang.ArrayIndexOutOfBoundsException
      java.lang.ArrayIndexOutOfBoundsException
      -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.oracle.weblogic:wls-maven-plugin:12.1.1.0:deploy (default-cli) on project pilot-web: weblogic.deploy.api.tools.deployer.DeployerException: Task 4 failed: [Deployer:149026]deploy application pilot-web on AdminServer.
      Target state: deploy failed on Server AdminServer
      java.lang.ArrayIndexOutOfBoundsException
      java.lang.ArrayIndexOutOfBoundsException



           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:585)
           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:324)
           at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:247)
           at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:104)
           at org.apache.maven.cli.MavenCli.execute(MavenCli.java:427)
           at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:157)
           at org.apache.maven.cli.MavenCli.main(MavenCli.java:121)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
           at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
           at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
           at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
      Caused by: org.apache.maven.plugin.MojoExecutionException: weblogic.deploy.api.tools.deployer.DeployerException: Task 4 failed: [Deployer:149026]deploy application pilot-web on AdminServer.
      Target state: deploy failed on Server AdminServer
      java.lang.ArrayIndexOutOfBoundsException
      java.lang.ArrayIndexOutOfBoundsException



           at weblogic.tools.maven.plugins.deploy.DeployerMojo.handleDeployerException(DeployerMojo.java:459)
           at weblogic.tools.maven.plugins.deploy.DeployAppMojo.execute(DeployAppMojo.java:177)
           at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:105)
           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:577)
           ... 14 more
      Caused by: java.lang.reflect.InvocationTargetException
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at weblogic.tools.maven.plugins.ClasspathMojo.invokeMain(ClasspathMojo.java:41)
           at weblogic.tools.maven.plugins.deploy.DeployAppMojo.execute(DeployAppMojo.java:174)
           ... 16 more
      Caused by: weblogic.Deployer$DeployerException: weblogic.deploy.api.tools.deployer.DeployerException: Task 4 failed: [Deployer:149026]deploy application pilot-web on AdminServer.
      Target state: deploy failed on Server AdminServer
      java.lang.ArrayIndexOutOfBoundsException
      java.lang.ArrayIndexOutOfBoundsException



           at weblogic.Deployer.run(Deployer.java:76)
           at weblogic.Deployer.mainWithExceptions(Deployer.java:63)
           ... 22 more
      Caused by: weblogic.deploy.api.tools.deployer.DeployerException: Task 4 failed: [Deployer:149026]deploy application pilot-web on AdminServer.
      Target state: deploy failed on Server AdminServer
      java.lang.ArrayIndexOutOfBoundsException
      java.lang.ArrayIndexOutOfBoundsException



           at weblogic.deploy.api.tools.deployer.Jsr88Operation.report(Jsr88Operation.java:543)
           at weblogic.deploy.api.tools.deployer.Deployer.perform(Deployer.java:140)
           at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:88)
           at weblogic.utils.compiler.Tool.run(Tool.java:158)
           at weblogic.utils.compiler.Tool.run(Tool.java:115)
           at weblogic.Deployer.run(Deployer.java:74)
           ... 23 more


      Any ideas?

      Thanks,
      Bassam