O
O
Oleg Burca2016-05-31 12:06:47
Oracle
Oleg Burca, 2016-05-31 12:06:47

Where is the error when deploying in Oracle Weblocig using Maven?

Hello!

I'm trying to automate deployment from Maven to Oracle Middleware Weblogic 12.1.3 via t3s protocol (t3 is not available).
Configured weblogic-maven-plugin, Java KeyStore, uploaded Weblogic server certificate, added Unrestricted JCE components for Java.
I did not set up the Weblogic server, I have read-only access and deploy.

When I run the command: mvn install I get the error:
[ERROR] Failed to execute goal com.oracle.weblogic:weblogic-maven-plugin:12.1.3-0-0:deploy (default-cli) on project weblogic-deployment: weblogic. management.ManagementException: [Deployer:149003]Unable to access application source information in "/app/sample.war" for application "sample". The specific error is: No application files exist.
Same error on Weblogic server, plus:
Servlet failed with an Exception java.lang.IllegalArgumentException: Not a directory: /path_to_folder /sample/

pom.xml file code:

<?xml version="1.0" encoding="UTF-8"?>
<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>com.project.deployment</groupId>
  <artifactId>weblogic-deployment</artifactId>
  <version>12.1.3-0-0</version>
  <packaging>pom</packaging>
  <name>Weblogic Deployment</name>
  <description>Weblogic Deployment with Maven</description>
  <profiles>
    <profile>
      <id>deploy-wls</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>com.oracle.weblogic</groupId>
            <artifactId>weblogic-maven-plugin</artifactId>
            <version>12.1.3-0-0</version>
            <configuration>
              <source>sample.war</source>
              <adminurl>t3s://server:port</adminurl>
              <targets>target</targets>
              <user>user</user>
              <password>password</password>
              <upload>true</upload>
              <remote>true</remote>
              <verbose>true</verbose>
            </configuration>
            <executions>
              <execution>
                <goals>
                  <goal>deploy</goal>
                </goals>
                <phase>install</phase>
              </execution>
           </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
</project>


What could be the problem? Have the Weblogic admins failed to install / misconfigured something, or do I need to specify some additional parameters in pom.xml?

Thank you!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question