We're updating the issue view to help you get more done. 

Adding users to weblogic server

Description

Hi
I am facing a problem when trying to add uses to my project. My profile works fine without cargo.servlet.users but fails when I use it. I have tried altering the debug port without success

The stacktrace

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 [INFO] [talledLocalContainer] 29.09.2017 10:49:52.871 INFO com.bea.core.repackaged.springframework.beans.factory.support.DefaultListableBeanFactory - Pr instantiating singletons in com.bea.core.repackaged.springframework.beans.factory.support.DefaultListableBeanFactory@30cb8f71: defining beans [com.oracle. tchfork.intercept.InterceptionMetadataBeanPostProcessor]; root of factory hierarchy [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@73ba6fe6] 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) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) Caused by: org.codehaus.cargo.util.CargoException: Cannot execute WLST script. at org.codehaus.cargo.container.weblogic.WebLogic121xInstalledLocalContainer.executeScriptFiles(WebLogic121xInstalledLocalContainer.java:239) at org.codehaus.cargo.container.weblogic.WebLogic121xInstalledLocalContainer.executeScript(WebLogic121xInstalledLocalContainer.java:201) ... 27 more Caused by: org.codehaus.cargo.container.ContainerException: Failure when invoking WLST script, java returned 2 at org.codehaus.cargo.container.weblogic.WebLogic121xInstalledLocalContainer.executeScriptFiles(WebLogic121xInstalledLocalContainer.java:233) ... 28 more org.codehaus.cargo.util.CargoException: Cannot execute WLST script. at org.codehaus.cargo.container.weblogic.WebLogic121xInstalledLocalContainer.executeScriptFiles(WebLogic121xInstalledLocalContainer.java:239) at org.codehaus.cargo.container.weblogic.WebLogic121xInstalledLocalContainer.executeScript(WebLogic121xInstalledLocalContainer.java:201) 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) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) Caused by: org.codehaus.cargo.container.ContainerException: Failure when invoking WLST script, java returned 2 at org.codehaus.cargo.container.weblogic.WebLogic121xInstalledLocalContainer.executeScriptFiles(WebLogic121xInstalledLocalContainer.java:233) ... 28 more org.codehaus.cargo.container.ContainerException: Failure when invoking WLST script, java returned 2 at org.codehaus.cargo.container.weblogic.WebLogic121xInstalledLocalContainer.executeScriptFiles(WebLogic121xInstalledLocalContainer.java:233) at org.codehaus.cargo.container.weblogic.WebLogic121xInstalledLocalContainer.executeScript(WebLogic121xInstalledLocalContainer.java:201) 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) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

My maven profile look like this

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 <profile> <id>wls12</id> <dependencies> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>${log4j.version}</version> </dependency> <dependency> <groupId>com.ibm.db2</groupId> <artifactId>db2jcc4</artifactId> <version>10.5.5</version> </dependency> <dependency> <groupId>com.ibm.db2</groupId> <artifactId>db2jcc-license</artifactId> <version>10.5.5</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <configuration> <container> <containerId>weblogic121x</containerId> <home>${WL_HOME}</home> <systemProperties> <config> ${project.basedir}/lanc-application/target/generated-sources/config/${env} </config> <config.endpoints> \\appsrv538\d_webtek\t8\tservice\deployments\endpointsconfig\current\config </config.endpoints> <log4j.configuration> file:/${project.basedir}/lanc-application/src/test/resources/log4j.xml </log4j.configuration> <java.util.logging.config.file> ${project.basedir}/lanc-application/src/test/resources/javalogging.properties </java.util.logging.config.file> <weblogic.configuration.schemavalidationenabled>false</weblogic.configuration.schemavalidationenabled> <org.jboss.weld.xml.disableValidating>true</org.jboss.weld.xml.disableValidating> </systemProperties> <dependencies> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> </dependency> <dependency> <location>${WL_HOME}\modules\databinding.override.jar</location> </dependency> <dependency> <groupId>com.ibm.db2</groupId> <artifactId>db2jcc4</artifactId> </dependency> <dependency> <groupId>com.ibm.db2</groupId> <artifactId>db2jcc-license</artifactId> </dependency> </dependencies> </container> <configuration> <properties> <cargo.servlet.port>7001</cargo.servlet.port> <cargo.jvmargs> -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5000 -Xnoagent -Xms512m -Xmx750m </cargo.jvmargs> <cargo.servlet.users> test-clientid:passw0rd:advisor|customer1:passw0rd: </cargo.servlet.users> <cargo.logging>high</cargo.logging> <deployable.location>${project.basedir}/lanc-mq-connector/target/lanc-mq-connector.rar</deployable.location> <deployable.plan.env>${env}</deployable.plan.env> </properties> <configfiles> <configfile> <file>${project.basedir}/lanc-application/src/test/weblogic-config/config.xml</file> <todir>config</todir> <configfile>true</configfile> </configfile> <configfile> <file>${project.basedir}/lanc-application/src/test/weblogic-config/jms/systemmodule-0-jms.xml</file> <todir>config/jms</todir> <configfile>true</configfile> </configfile> <configfile> <file>${project.basedir}/lanc-application/src/test/weblogic-config/jdbc/DB2DataSource-jdbc.xml</file> <todir>config/jdbc</todir> <configfile>true</configfile> </configfile> </configfiles> </configuration> </configuration> </plugin> </plugins> </build> </profile>

Status

Assignee

Unassigned

Reporter

Christoffer Mortensen

Components

Affects versions

1.6.2

Priority

Major