简体   繁体   English

错误:Weblogic Maven插件部署

[英]Error : Weblogic Maven Plugin deployment

i want to use weblogic-maven-plugin in my maven project in eclipse so i generated weblogic-maven-plugin.jar in weblogic server 12c 1.2.1 and i am using it. 我想在eclipse的maven项目中使用weblogic-maven-plugin,所以我在weblogic服务器12c 1.2.1中生成了weblogic-maven-plugin.jar,我正在使用它。

    <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 about weblogic maven plugin. 但我有一个关于weblogic maven插件的问题。 if i built my maven project in my local to deploy, built is failed; 如果我在我的本地构建我的maven项目进行部署,则构建失败;

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 enabled tunneling of server protocol but there is nothing to change in this error. 我启用了服务器协议的隧道,但此错误没有任何改变。 By the way i run this cmd which is below in weblogicServer cmd line, i didn't get error message. 顺便说一句,我在weblogicServer cmd行中运行这个cmd,我没有收到错误消息。 Finally my deployment was succeed. 最后,我的部署成功了。

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 didn't find KeyStoreConfiguration.java. 顺便提一下,我提取了weblogic-maven-plugin.jar,但我找不到KeyStoreConfiguration.java。 i didn't find anywhere. 我没找到任何地方。

So what should i do? 所以我该怎么做? is there a newtwork problem or weblogic-maven-plugin.jar is faulty? 是否有新的工作问题或weblogic-maven-plugin.jar有问题?

Could you help me? 你可以帮帮我吗?

The problem is in the class weblogic.security.utils.KeyStoreConfiguration is required by the plugin but is not found on the classpath. 问题出在类weblogic.security.utils.KeyStoreConfiguration是插件所必需的,但是在类路径中找不到。

You can add the relevant jar file to the classpath like so 您可以像这样将相关的jar文件添加到类路径中

        <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 instructiions for generating the wlfullclient jar 请参阅这些指示以生成wlfullclient jar

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM