Advertisement

06.26.2008 at 11:43AM PDT, ID: 23519366
[x]
Attachment Details

Python script to connect with weblogic Admin server

Asked by Jayamurugan83 in BEA WebLogic Application Server, Python Scripting Language

Tags: ,

I have written a python script to connect with weblogic Admin server through WLST script. I have used storeUserConfig() funxtion in WLST to store username and password in a file. So I dont want to specify it when I run connect function. I am getting below error when I run my code. I have attached the code. The "wl" which I have imported is the file contains WLST functions imported as Jython module. If I specify command as connect('weblogic', 'weblogic', t3://localhost:7001) it works.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
import wl
 
serverName = 't3://localhost:7001'
 
userconfig = '/usr/local/bea/bea-WebLogicConfig.properties'
userkey = '/usr/local/bea/bea-WebLogicKey.properties'
 
wl.connect(userConfigFile=userconfig, userKeyFile=userkey, serverName)
[+][-]06.26.2008 at 06:49PM PDT, ID: 21880458

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.26.2008 at 07:21PM PDT, ID: 21880581

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.27.2008 at 05:49AM PDT, ID: 21883060

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: BEA WebLogic Application Server, Python Scripting Language
Tags: python, SyntaxError: non-keyword argument following keyword
Sign Up Now!
Solution Provided By: girionis
Participating Experts: 2
Solution Grade: A
 
 
[+][-]06.27.2008 at 03:40PM PDT, ID: 21888212

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628