简体   繁体   English

将用户添加到Weblogic服务器

[英]Adding users to weblogic server

I'm strugling a bit with adding users to my weblogic 12.2.1 server. 我正在努力将用户添加到我的weblogic 12.2.1服务器中。 To start the server I use cargo 1.6.2 要启动服务器,我使用货运1.6.2

    [INFO] [talledLocalContainer] Adding users and groups to WebLogic domain.
[WARNING] [talledLocalContainer] ERROR: transport error 202: bind failed: Address already in use
[WARNING] [talledLocalContainer] ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
[WARNING] [talledLocalContainer] JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [debugInit.c:750]
[WARNING] [talledLocalContainer] org.codehaus.cargo.util.CargoException: Cannot execute WLST script.
[ERROR] Starting container [org.codehaus.cargo.container.weblogic.WebLogic121xInstalledLocalContainer@985696] failed
org.codehaus.cargo.util.CargoException: Cannot execute WLST script.
        at org.codehaus.cargo.container.weblogic.WebLogic121xInstalledLocalContainer.executeScript(WebLogic121xInstalledLocalContainer.java:205)
        at org.codehaus.cargo.container.weblogic.WebLogic121xInstalledLocalContainer.executePostStartTasks(WebLogic121xInstalledLocalContainer.java:147)
        at org.codehaus.cargo.container.spi.AbstractLocalContainer.start(AbstractLocalContainer.java:233)
        at org.codehaus.cargo.maven2.ContainerStartMojo.executeLocalContainerAction(ContainerStartMojo.java:84)
        at org.codehaus.cargo.maven2.ContainerRunMojo.doExecute(ContainerRunMojo.java:96)
        at org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:462)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)

The interesting part of my cargo is the property section 我的货物最有趣的部分是财产部分

<properties>
                                <cargo.servlet.port>7001</cargo.servlet.port>
                                <cargo.port.offset>1</cargo.port.offset>

                                <cargo.jvmargs>
                                    -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=6000 -Xnoagent
                                    -Djava.compiler=NONE
                                </cargo.jvmargs>
                                <cargo.servlet.users>
                                    test-clientid:passw0rd:advisor|customer1:passw0rd:
                                </cargo.servlet.users>
                                <cargo.logging>high</cargo.logging>
                                <deployable.location>${project.basedir}/lanc-application/target/land-register-connector.ear
                                </deployable.location>
                                <deployable.plan.env>${env}</deployable.plan.env>
                            </properties>

The profiles works fine when I leave out cargo.servlet.users. 当我省略cargo.servlet.users时,配置文件工作正常。 I have tried another debug port without luck. 我尝试了另一个调试端口,但是没有运气。

Any ideas? 有任何想法吗?

If you tried to change debug port and this did not help and concating it with the fact that without users entry in config all works fine then i strongly recommend to create issue in their jira here: https://codehaus-cargo.atlassian.net . 如果您尝试更改调试端口,而这并没有帮助它,并且在没有用户输入config的情况下一切正常,那么我强烈建议您在此处的jira中创建问题: https : //codehaus-cargo.atlassian.net Here is issue with adding weblogic support: https://codehaus-cargo.atlassian.net/browse/CARGO-1319 . 这是添加Weblogic支持的问题: https : //codehaus-cargo.atlassian.net/browse/CARGO-1319 I looked through their tests and did not find any tests for your case. 我查看了他们的测试,但没有找到适合您的情况的测试。 I found only user verification but nothing else. 我发现只有用户验证,而没有别的。 For me it seems like a possible bug. 对我来说,这似乎是一个可能的错误。 If not at least you will get your question answered. 如果不是这样,至少您会回答您的问题。

It seems that root cause is exception which is telling you that address already in use. 根本原因似乎是异常,它告诉您该地址已在使用中。 Seems that port 6000 is already used. 似乎端口6000已被使用。 First ill try just to change port to something else cause it seems that through jdwp cargo is only communicating with containers and there is no other dependencies from previous jobs or configs which will be affected by port change. 首先,请尝试将端口更改为其他端口,因为似乎通过jdwp货物仅与容器通信,并且以前的作业或配置没有其他依赖项,这些依赖项将受到端口更改的影响。 If this wont work then you will have to detect who uses the port. 如果这不起作用,那么您将不得不检测谁在使用该端口。 Here is root cause exception: 这是根本原因异常:

 
 
 
  
   [WARNING] [talledLocalContainer] ERROR: transport error 202: bind failed: Address already in use [WARNING] [talledLocalContainer] ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) [WARNING] [talledLocalContainer] JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [debugInit.c:750]
 
  

Actually it should be marked as error, not warning. 实际上,应将其标记为错误,而不是警告。

It seems that script execution fails during creating jvmlauncher to connect with your container: https://github.com/codehaus-cargo/cargo/blob/master/core/containers/weblogic/src/main/java/org/codehaus/cargo/container/weblogic/WebLogic121xInstalledLocalContainer.java#L225 似乎在创建jvmlauncher以与您的容器连接期间脚本执行失败: https : //github.com/codehaus-cargo/cargo/blob/master/core/containers/weblogic/src/main/java/org/codehaus/cargo /container/weblogic/WebLogic121xInstalledLocalContainer.java#L225

Script execution is triggered by cargo itself during addind users: https://github.com/codehaus-cargo/cargo/blob/master/core/containers/weblogic/src/main/java/org/codehaus/cargo/container/weblogic/WebLogic121xInstalledLocalContainer.java#L145 脚本执行由addind用户期间的货物本身触发: https : //github.com/codehaus-cargo/cargo/blob/master/core/containers/weblogic/src/main/java/org/codehaus/cargo/container/weblogic /WebLogic121xInstalledLocalContainer.java#L145

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

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