Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSB_build script error #1

Open
Mahi2011 opened this issue Nov 25, 2011 · 5 comments
Open

OSB_build script error #1

Mahi2011 opened this issue Nov 25, 2011 · 5 comments

Comments

@Mahi2011
Copy link

I took scriprt from soa/tools:

i need to export OSB projects jar .below script should work for me ...but iam getting error

string trim errors:
unable to invoke WLST ...

script:


-

- <script> adminUser=sys.argv[1] adminPassword=sys.argv[2] adminUrl=sys.argv[3] exportJar = sys.argv[5] customFile = sys.argv[6] passphrase = "osb" project = sys.argv[4] connect(adminUser,adminPassword,adminUrl) domainRuntime() </script>

- <script> adminUser=sys.argv[1] adminPassword=sys.argv[2] adminUrl=sys.argv[3] passphrase = "osb" project=sys.argv[4] importJar=sys.argv[5] customFile=sys.argv[6] connect(adminUser,adminPassword,adminUrl) domainRuntime() </script>


Please helpme how can i execute above script...do i need to follow any specific steps


@biemond
Copy link
Owner

biemond commented Nov 25, 2011

Hi,

Do you have everything installed , WLS , OEPE and OSB .

Then can you check your environment variables maybe generate a
wlfullclient and use that.
Good luck

Sent from my iPad

On 25 nov. 2011, at 20:50, Mahi2011
[email protected]
wrote:

I took scriprt from soa/tools:

i need to export OSB projects jar .below script should work for me ...but iam getting error

string trim errors:
unable to invoke WLST ...

script:


-

- <script> adminUser=sys.argv[1] adminPassword=sys.argv[2] adminUrl=sys.argv[3] exportJar = sys.argv[5] customFile = sys.argv[6] passphrase = "osb" project = sys.argv[4] connect(adminUser,adminPassword,adminUrl) domainRuntime() </script>

- <script> adminUser=sys.argv[1] adminPassword=sys.argv[2] adminUrl=sys.argv[3] passphrase = "osb" project=sys.argv[4] importJar=sys.argv[5] customFile=sys.argv[6] connect(adminUser,adminPassword,adminUrl) domainRuntime() </script>


Please helpme how can i execute above script...do i need to follow any specific steps



Reply to this email directly or view it on GitHub:
#1

@Mahi2011
Copy link
Author

I am getting below error while executing ...

Scripts/Test/Out/sbconfig.jar" "D:/Build/OSB/Scripts/Test/Out/cust.xml"'
[wlst] Adding weblogic to sys.argv
[wlst] Adding weblogic1 to sys.argv
[wlst] Adding t3://172.25.152.152:7001 to sys.argv
[wlst] Adding ShowAccountBalance_SB to sys.argv
[wlst] Adding D:/Build/OSB/Scripts/Test/Out/sbconfig.jar to sys.argv
[wlst] Adding D:/Build/OSB/Scripts/Test/Out/cust.xml to sys.argv
[wlst] sys.argv is ['export.py', 'weblogic', 'weblogic1', 't3://172.25.152.152:7001', 'ShowAccountBalance_SB', 'D:/Build/OSB/Scripts/Test/Out/sbconfig.jar', 'D:/Bui
ld/OSB/Scripts/Test/Out/cust.xml']
[wlst] Traceback (innermost last):
[wlst] Exception in thread "main" java.lang.IllegalStateException: Traceback (innermost last):
[wlst](no code object) at line 0
[wlst](no code object) at line 0
[wlst] SyntaxError: ('invalid syntax', ('C:\Documents and Settings\475037\Local Settings\Temp\wlsttempfile97003897.py', 3, 12, 'adminUrl=t3://172.25.152.152:7001'))
[wlst] SyntaxError: ('invalid syntax', ('C:\Documents and Settings\475037\Local Settings\Temp\wlsttempfile97003897.py', 3, 12, 'adminUrl=t3://172.25.152.152:7001'))
[wlst]
[wlst]
[wlst] at weblogic.management.scripting.WLSTInterpreterInvoker.printError(WLSTInterpreterInvoker.java:110)
[wlst] at weblogic.management.scripting.WLSTInterpreterInvoker.executePyScript(WLSTInterpreterInvoker.java:103)
[wlst] at weblogic.management.scripting.WLSTInterpreterInvoker.main(WLSTInterpreterInvoker.java:27)
[wlst] Java Result: 1

@Mahi2011 Mahi2011 reopened this Nov 27, 2011
@biemond
Copy link
Owner

biemond commented Nov 27, 2011

Hi ,

Can you check the generated py file and look at the invalid syntax
fault. Maybe this will give a glue

Sent from my iPad

On 27 nov. 2011, at 17:48, Mahi2011
[email protected]
wrote:

I am getting below error while executing ...

Scripts/Test/Out/sbconfig.jar" "D:/Build/OSB/Scripts/Test/Out/cust.xml"'
[wlst] Adding weblogic to sys.argv
[wlst] Adding weblogic1 to sys.argv
[wlst] Adding t3://172.25.152.152:7001 to sys.argv
[wlst] Adding ShowAccountBalance_SB to sys.argv
[wlst] Adding D:/Build/OSB/Scripts/Test/Out/sbconfig.jar to sys.argv
[wlst] Adding D:/Build/OSB/Scripts/Test/Out/cust.xml to sys.argv
[wlst] sys.argv is ['export.py', 'weblogic', 'weblogic1', 't3://172.25.152.152:7001', 'ShowAccountBalance_SB', 'D:/Build/OSB/Scripts/Test/Out/sbconfig.jar', 'D:/Bui
ld/OSB/Scripts/Test/Out/cust.xml']
[wlst] Traceback (innermost last):
[wlst] Exception in thread "main" java.lang.IllegalStateException: Traceback (innermost last):
[wlst](no code object) at line 0
[wlst](no code object) at line 0
[wlst] SyntaxError: ('invalid syntax', ('C:\Documents and Settings\475037\Local Settings\Temp\wlsttempfile97003897.py', 3, 12, 'adminUrl=t3://172.25.152.152:7001'))
[wlst] SyntaxError: ('invalid syntax', ('C:\Documents and Settings\475037\Local Settings\Temp\wlsttempfile97003897.py', 3, 12, 'adminUrl=t3://172.25.152.152:7001'))
[wlst]
[wlst]
[wlst] at weblogic.management.scripting.WLSTInterpreterInvoker.printError(WLSTInterpreterInvoker.java:110)
[wlst] at weblogic.management.scripting.WLSTInterpreterInvoker.executePyScript(WLSTInterpreterInvoker.java:103)
[wlst] at weblogic.management.scripting.WLSTInterpreterInvoker.main(WLSTInterpreterInvoker.java:27)
[wlst] Java Result: 1


Reply to this email directly or view it on GitHub:
#1 (comment)

@Mahi2011
Copy link
Author

I have verified the.py file but i couldn't find the syntax error.

it is showing error at admin URL ...but the syntax is correct..could you pls cross verify it once ....it is there in above

@skirankumars31
Copy link

Hi,
I think you have to run setWLSEnv.cmd from C:\Oracle\Middleware\wlserver_10.3\server\bin before doing this.

Regards
Kiran

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants