2017-09-13 35 views
0

我試圖與詹金斯部署。但是,我在Web邏輯服務器12.1.3中出現錯誤。我在Jenkins web邏輯插件中配置了"plugin-configuration.xsd"文件。此外,我還在Jenkins Web界面中配置了Web邏輯Deployment Plugin參數。無法註冊庫擴展名 - 在weblogic服務器上的名稱詹金斯錯誤

additional classpath: C:\Oracle\Middleware\Oracle_Home\wlserver\server\lib\wlthint3client.jar 

Configuration file: myPath\.jenkins\plugins\weblogic-deployer-plugin\config\plugin-configuration.xsd 

我該如何解決這個問題?

另外,我的config.xsd文件是那個;

<?xml version="1.0" encoding="UTF-8"?> 
<config xmlns="http://org.jenkinsci.plugins/WeblogicDeploymentPlugin" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://org.jenkinsci.plugins/WeblogicDeploymentPlugin plugin-configuration.xsd"> 
<weblogic-targets> 
    <weblogic-target> 
     <name>weblogic_local_server</name> 
     <host>127.0.0.1</host> 
     <port>7001</port> 
     <login>admin</login> 
     <password>admin</password> 
     <authMode>BY_LOGIN</authMode> 
    </weblogic-target> 
</weblogic-targets> 
</config> 

錯誤是在這裏:

<BEA-149205> <Failed to initialize the application "jenkins [,LibImplVersion=2.60.3]" due to error weblogic.application.library.LibraryDeploymentException: [J2EE:160144]Failed to register library Extension-Name: jenkins, Implementation-Version: 2.60.3: Library cannot have Implementation-Version set, without also specifying its Specification-Version 
weblogic.application.library.LibraryDeploymentException: [J2EE:160144]Failed to register library Extension-Name: jenkins, Implementation-Version: 2.60.3: Library cannot have Implementation-Version set, without also specifying its Specification-Version 
    at weblogic.application.internal.library.LibraryDeployment.prepare(LibraryDeployment.java:66) 
    at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:158) 
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61) 
    at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:155) 
    at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:39) 
    at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:191) 
    at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21) 
    at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240) 
    at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165) 
    at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122) 
    at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:210) 
    at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:118) 
    at weblogic.server.AbstractServerService.postConstruct(AbstractServerService.java:78) 
    at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:498) 
    at org.glassfish.hk2.utilities.reflection.ReflectionHelper.invoke(ReflectionHelper.java:1017) 
    at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:388) 
    at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:430) 
    at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:456) 
    at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:225) 
    at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:82) 
    at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2488) 
    at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:98) 
    at org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorImpl.java:606) 
    at org.jvnet.hk2.internal.ThreeThirtyResolver.resolve(ThreeThirtyResolver.java:77) 
    at org.jvnet.hk2.internal.ClazzCreator.resolve(ClazzCreator.java:231) 
    at org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:254) 
    at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:413) 
    at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:456) 
    at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:225) 
    at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:82) 
    at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2488) 
    at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:98) 
    at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:87) 
    at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1162) 
    at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1147) 
    at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$UpOneLevel.run(CurrentTaskFuture.java:753) 
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:548) 
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311) 
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:263) 
> 

回答

0

問題是,; Wblogic部署插件額外的類路徑參數是錯誤的。它必須是「C:\ Oracle \ Middleware \ Oracle_Home \ wlserver \ server \ lib \ weblogic.jar」。

java -cp C:/Oracle/Middleware/Oracle_Home/wlserver/server/lib/weblogic.jar weblogic.Deployer -adminurl t3://localhost:7001 -username admin -password q1w2e3r4 -deploy -name sample -targets AdminServer -source C:\sample.war