biemond / soa_tools

Oracle soa suite / osb deployment tools
biemond.blogspot.com
51 stars 77 forks source link

OSB_build script error #1

Open Mahi2011 opened 12 years ago

Mahi2011 commented 12 years ago

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:


<?xml version="1.0" encoding="WINDOWS-1252"?> -

- -


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


biemond commented 12 years ago

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 reply@reply.github.com 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:


<?xml version="1.0" encoding="WINDOWS-1252"?> -

- -


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: https://github.com/biemond/soa_tools/issues/1

Mahi2011 commented 12 years ago

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

biemond commented 12 years ago

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 reply@reply.github.com 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: https://github.com/biemond/soa_tools/issues/1#issuecomment-2888567

Mahi2011 commented 12 years ago

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 commented 12 years ago

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

Regards Kiran