Error: Weblogic Maven Plugin Deployment

I want to use weblogic-maven-plugin in my maven project in eclipse, so I created weblogic-maven-plugin.jar in weblogic server 12c 1.2.1 and I use it.

<plugin> <groupId>com.oracle.weblogic</groupId> <artifactId>weblogic-maven-plugin</artifactId> <version>12.1.2.0</version> <configuration> <adminurl>t3://weblogicServerIP:7001</adminurl> <user>weblogic</user> <password>weblogic123</password> <targets>Cluster-1</targets> <upload>true</upload> <action>deploy</action> <remote>true</remote> <verbose>true</verbose> <source>${project.build.directory}/${project.build.finalName}.${project.packaging}</source> <name>myProject</name> </configuration> <executions> <execution> <phase>install</phase> <goals> <goal>deploy</goal> </goals> </execution> </executions> </plugin> 

But I have a problem with the weblogic maven plugin. if I built my maven project in my local deployment, the built failed;

 The args for the deployer is: -noexit -adminurl t3://weblogicServerIP:7001 -user weblogic -password ******** -deploy -name myProject -source myProject.war -targets Cluster-1 -upload -remote -verbose weblogic.Deployer invoked with options: -noexit -adminurl t3://weblogicServerIP:7001 -user weblogic -deploy -name myProject -source myProject.war -targets Cluster-1 -upload -remote -verbose [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1:04.013s [INFO] Finished at: Mon Jan 13 10:27:27 EET 2014 [INFO] Final Memory: 9M/23M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.oracle.weblogic:weblogic-maven-plugin:12.1.2.0:deploy (default) on project myProject: weblogic.deploy.api.tools.deployer.DeployerException: Unable to connect to 't3://weblogicServerIP:7001': weblogic.security.utils.KeyStoreConfiguration. Ensure the url represents a running admin server and that the credentials are correct. If using http protocol, tunneling must be enabled on the admin server. 

I turned on tunneling of the server protocol, but there is nothing to change in this error. By the way, I run this cmd, which is below in the cmd line of weblogicServer, I did not receive an error message. Finally, my deployment was successful.

 java weblogic.Deployer -noexit -adminurl t3://weblogicServerIP:7001 -user weblogic -password weblogic123 -deploy -name myProject -source myProject.war -targets Cluster-1 -upload -verbose -debug 

By the way, I extracted weblogic-maven-plugin.jar and I did not find KeyStoreConfiguration.java. I did not find anything.

So what should I do? is there a problem with newtwork or is weblogic-maven-plugin.jar defective?

could you help me?

+6
source share
1 answer

The problem is the weblogic.security.utils.KeyStoreConfiguration class is required by the plugin but not found in the classpath.

You can add the corresponding jar file to the classpath this way

  <plugin> <groupId>com.oracle.weblogic</groupId> <artifactId>weblogic-maven-plugin</artifactId> <version>12.1.3.0</version> <configuration> <adminurl>t3://${deploymentServer}:${deploymentServerPort}</adminurl> <user>${deploymentUsername}</user> <password>${deploymentPassword}</password> <debug>true</debug> <upload>true</upload> <action>deploy</action> <remote>false</remote> <verbose>true</verbose> <source>${project.build.directory}/${project.build.finalName}.${project.packaging}</source> <name>${project.build.finalName}</name> </configuration> <executions> <execution> <phase>install</phase> <goals> <goal>deploy</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>com.oracle.weblogic</groupId> <artifactId>wlfullclient</artifactId> <version>12.1.3-0-0</version> </dependency> </dependencies> </plugin> 

See these instructions for creating a wlfullclient container.

+1
source

All Articles