Purging OSB Alerts using WLST scripts

Hi,
I am using the below script to purge the OSB Alerts. I am connecting to the OSB managed server to purge the alerts.
*# Connect to server*
*     connect(weblogic,welcome,intdev:8011)*
*     # Calculate the start and end time for purging the alerts*
*     now=System.currentTimeMillis()*
*     startTime=0*
*     endTime=(now - days*3600*24*1000)*
*     # Purging the Alerts*
*     serverRuntime()*
*     print "Deleting records older than", days, "days from OSB Alerts"*
*     print cmo*
*     alsbAlerts = cmo.getWLDFRuntime().getWLDFAccessRuntime().lookupWLDFDataAccessRuntime('CUSTOM/com.bea.wli.monitoring.alert')*
*     numDeleted = alsbAlerts.deleteDataRecords(startTime,endTime,"")*
*     print "No. of Alerts deleted =", numDeleted*
*     # Disconnect from the domain*
*     disconnect()*
I am getting the below error while executing the script
Successfully connected to managed Server 'osb_server1' that belongs to domain 'soa_domain'.
Warning: An insecure protocol was used to connect to the
server. To ensure on-the-wire security, the SSL port or
Admin port should be used instead.
Location changed to serverRuntime tree. This is a read-only tree with ServerRuntimeMBean as the root.
For more help, use help(serverRuntime)
Deleting records older than 60 days from OSB Alerts
+[MBeanServerInvocationHandler]com.bea:Name=osb_server1,Type=ServerRuntime+
Disconnected from weblogic server: osb_server1
Unexpected error:  weblogic.management.ManagementException
Problem invoking WLST - Traceback (innermost last):
File "/home/soadev/WLST/FINAL/purging/purge_Alerts.py", line 41, in ?
weblogic.management.ManagementException:
at weblogic.diagnostics.accessor.WLSAccessorMBeanFactoryImpl.createDiagnosticDataAccessRuntime(WLSAccessorMBeanFactoryImpl.java:206)
at weblogic.diagnostics.accessor.AccessRuntime.lookupDataAccessRuntime(AccessRuntime.java:315)
at weblogic.diagnostics.accessor.DiagnosticAccessRuntime.lookupWLDFDataAccessRuntime(DiagnosticAccessRuntime.java:77)
at weblogic.diagnostics.accessor.DiagnosticAccessRuntime.lookupWLDFDataAccessRuntime(DiagnosticAccessRuntime.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at weblogic.management.jmx.modelmbean.WLSModelMBean.invoke(WLSModelMBean.java:437)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$16.run(WLSMBeanServerInterceptorBase.java:449)
at java.security.AccessController.doPrivileged(Native Method)
at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:447)
at weblogic.management.mbeanservers.internal.JMXContextInterceptor.invoke(JMXContextInterceptor.java:268)
at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$16.run(WLSMBeanServerInterceptorBase.java:449)
at java.security.AccessController.doPrivileged(Native Method)
at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:447)
at weblogic.management.mbeanservers.internal.SecurityInterceptor.invoke(SecurityInterceptor.java:444)
at weblogic.management.jmx.mbeanserver.WLSMBeanServer.invoke(WLSMBeanServer.java:323)
at weblogic.management.mbeanservers.internal.JMXConnectorSubjectForwarder$11$1.run(JMXConnectorSubjectForwarder.java:663)
at java.security.AccessController.doPrivileged(Native Method)
at weblogic.management.mbeanservers.internal.JMXConnectorSubjectForwarder$11.run(JMXConnectorSubjectForwarder.java:661)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.management.mbeanservers.internal.JMXConnectorSubjectForwarder.invoke(JMXConnectorSubjectForwarder.java:654)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
at java.security.AccessController.doPrivileged(Native Method)
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1367)
at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
at javax.management.remote.rmi.RMIConnectionImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
+Caused by: weblogic.management.ManagementException: [Diagnostics:320103]There was an error creating the DiagnosticDataRuntimeMBean instance with the given logical name CUSTOM/com.bea.wli.monitoring.alert.+
at weblogic.diagnostics.accessor.WLSAccessorMBeanFactoryImpl.createDataAccessRuntime(WLSAccessorMBeanFactoryImpl.java:228)
at weblogic.diagnostics.accessor.WLSAccessorMBeanFactoryImpl.access$000(WLSAccessorMBeanFactoryImpl.java:55)
at weblogic.diagnostics.accessor.WLSAccessorMBeanFactoryImpl$1.run(WLSAccessorMBeanFactoryImpl.java:201)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.diagnostics.accessor.WLSAccessorMBeanFactoryImpl.createDiagnosticDataAccessRuntime(WLSAccessorMBeanFactoryImpl.java:197)
+... 39 more+
weblogic.management.ManagementException: weblogic.management.ManagementException:
Please provide pointers to get rid of this issue.
Edited by: Chintan Parekh on Jun 1, 2011 2:41 AM

Please refer -
http://blogs.oracle.com/MarkSmith/entry/osb_alerts_purging_is_essentia
From the blog -
The components that make up WLDF will be targeted to a single managed server in a clustered environment or to the Admin server in a single server environment. To establish what managed server this is, check to see where the WLI Aggregator application is targeted to. The WLDF data will be stored under this single managed server in the following location: //domain_name/servers/server_name/data/store/diagnostics/Check that on which server WLI Aggregator application is targeted and connect to that server from your script.
Regards,
Anuj

Similar Messages

  • Purging ALSB alerts via WLST

    Hello everyone,
    Trying to purge ALSB alerts using the WLST script extract found on the [Oracle website|http://blogs.oracle.com/MarkSmith/2008/11/osb_alerts_purging_is_essentia.html] yields the following exception, specifically when attempting to
    access the com.bea.wli.monitoring.alert MBean using
    alsbAlerts = cmo.getWLDFRuntime().getWLDFAccessRuntime().lookupWLDFDataAccessRuntime('CUSTOM/com.bea.wli.monitoring.alert')
    The resulting strack trace looks like this:
    Traceback (innermost last):
    File "<console>", line 1, in ?
    weblogic.management.ManagementException:
    at weblogic.diagnostics.accessor.DiagnosticAccessRuntime.lookupWLDFDataAccessRuntime(DiagnosticAccessRuntime.java:150)
    at weblogic.diagnostics.accessor.DiagnosticAccessRuntime.lookupWLDFDataAccessRuntime(DiagnosticAccessRuntime.java:95)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at weblogic.management.jmx.modelmbean.WLSModelMBean.invoke(WLSModelMBean.java:443)
    at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
    at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:153)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:153)
    at weblogic.management.mbeanservers.internal.SecurityInterceptor.invoke(SecurityInterceptor.java:443)
    at weblogic.management.mbeanservers.internal.AuthenticatedSubjectInterceptor$10.run(AuthenticatedSubjectInterceptor.java:377)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.management.mbeanservers.internal.AuthenticatedSubjectInterceptor.invoke(AuthenticatedSubjectInterceptor.java:375)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServer.invoke(WLSMBeanServer.java:310)
    at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1408)
    at javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectionImpl.java:81)
    at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1245)
    at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1348)
    at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:782)
    at javax.management.remote.rmi.RMIConnectionImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:479)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:475)
    at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:59)
    at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:1016)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Caused by: weblogic.management.ManagementException: [Diagnostics:320103]There was an error creating the DiagnosticDataRuntimeMBean instance with the given logical name CUSTOM/com.bea.wli.monitoring.alert.
    at weblogic.diagnostics.accessor.DiagnosticDataAccessRuntime.createDiagnosticDataAccessRuntime(DiagnosticDataAccessRuntime.java:114)
    at weblogic.diagnostics.accessor.DiagnosticAccessRuntime$1.run(DiagnosticAccessRuntime.java:145)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.diagnostics.accessor.DiagnosticAccessRuntime.lookupWLDFDataAccessRuntime(DiagnosticAccessRuntime.java:141)
    ... 32 more
    weblogic.management.ManagementException: weblogic.management.ManagementException:
    This is using WebLogic Server 10.0 and ALSB 3.0
    Any ideas what's going on?
    Cheers,
    Jan

    After reading your mail, I assume that you are using JMS reporting provider bundled with OSB. Please be advised that, the bundled version is not full-pledged reporting provider designed to suit all customer needs/use case. More of a bare bones version.
    http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/operations/wwimages/reporting_framework.gif--- Will give you better clarity on the architecture. ReportingDataManager is not designed to hold statistics. So OSB will cannot expose any JMX API.
    The data/statistics showed in sbconsole are directly picked from Database http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/operations/wwimages/jms_reporting_provider.gif .
    So if you wan to purge the details programatically then only option avaialble are
    1) JDBC program to delete records from TABLES WLI_QS_REPORT_ATTRIBUTE,WLI_QS_REPORT_DATA (not recommended as reporting provider internal working is not in pubic domain. Said that it would not take much time to understand how report data is stored in the above tables).
    2) Write a custom reporting provider which will have capability you are looking. http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/javadoc/index.html (easiest way)
    Let me know if you need any clarification on the above.
    Thanks
    Manoj
    Edited by: mneelapu on Apr 24, 2009 2:27 PM

  • Automatic Generation of JMS event generator using WLST script

    is there any way to create and deploy JMS event generator using WLST script. i am using weblogic server 10.3.1

    You could see this informantion here:
    http://docs.oracle.com/cd/E14981_01/wli/docs1031/deploy/cluster.html#wp1519038

  • Why do we use WLST Scripting when things can be done manually??

    Hi experts ,
    It may be a stupid question ,
    why do we use WLST scripting for things like deleting Queue _ _ etc ,      which can be done manually (through console)Please help i am newbie in this technology

    In addition to the practical reasons which Barosa supplied, it is also a best practice for addtional reasons:
    <ul><li>removing human errors from typos, omissions, etc
    </li>
    <li>making certains tasks (domain creation, configuration, application deployments, etc) repeatable, especially ones with many steps
    </li>
    <li>tasks that are repeatable, once tested, have a high degree of confidence that they will be done exactly the same way next time with a script
    </li>
    </ul>
    There are many more, but hopefully this gives you an idea of the benefits.

  • Appending FTP adapter using WLST Script

    Hi Everybody,
    Creating an FTP adapter using wlst script and the adapter is getting created sucessfully in FTP but when trying to creae one more FTP adapter it
    overriding instead of appending the FTP adapter it with new one. Can any help on this please.
    As this is an urgent delivarable which needs to be delivered.
    Regards,
    ChaKra

    Hi,
    I will take it other way as we need to process the Data File not Marker File ( its just for checking the Data File is completely written on FTP server).
    Other way mean " Will Poll for Data.txt File and if  found then Runtime OS Command will do connect to FTP and check if Marker File exists, if yes then delete the marker file and read the actual Data File for processing.
    Please let me know, if Marker File does not exists on FTP folder, will it still read the Data File or will it exit the Adapter execution?
    Your help is much appreciated.
    Regards,
    Anurag

  • OSB  - Creating SLA Alerts using WLST

    Hi,
    I'd like to create SLA Alerts on proxy services using WLST rather than via the service bus console.
    The MBean described at:
    http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/javadoc/com/bea/wli/sb/management/configuration/ProxyServiceConfigurationMBean.html
    only seem to allow enabling or disabling SLA alerts not creating them.
    Can anyone point me in the right direction?
    Thanks
    Nick

    Please refer -
    http://blogs.oracle.com/MarkSmith/entry/osb_alerts_purging_is_essentia
    From the blog -
    The components that make up WLDF will be targeted to a single managed server in a clustered environment or to the Admin server in a single server environment. To establish what managed server this is, check to see where the WLI Aggregator application is targeted to. The WLDF data will be stored under this single managed server in the following location: //domain_name/servers/server_name/data/store/diagnostics/Check that on which server WLI Aggregator application is targeted and connect to that server from your script.
    Regards,
    Anuj

  • Does and how osb 11g support  WLST scripts

    Does 11g support WLST scripts to import and export OSB configuration?
    Here are the old ones (as I see, dated 03.03.2009). For old 10.3 they worked perfectly.
    http://www.oracle.com/technology/products/soa/service-bus/collateral/osbsamples.html
    In new release names of few libraries changed (e.g. from com.bea.common.configfwk_1.2.1.0.jar to com.bea.common.configfwk_1.3.0.0.jar), so I simply changed the names in my scripts to use them for 11g. It didn't work. Old scripts (with old libs) don't work for 11g either.
    So my question is does OSB still support this kind of deploying, and how can I do that?
    Thanks in advance.

    @ frf
    Is it working for you ? The scripts are running fine for me but the values are not geting changed.
    This is my custom xml which is created
    <?xml version="1.0" encoding="UTF-8"?>
    <cus:Customizations xmlns:cus="http://www.bea.com/wli/config/customizations" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xt="http://www.bea.com/wli/config/xmltypes">
    <cus:customization xsi:type="cus:FindAndReplaceCustomizationType">
    <cus:description>Update to the correct server and port number</cus:description>
    <cus:query>
    <xt:refsToSearch xsi:type="xt:LocationRefType">
    <xt:type>Project</xt:type>
    <xt:path>Test OSB Project</xt:path>
    </xt:refsToSearch>
    <xt:includeOnlyModifiedResources>false</xt:includeOnlyModifiedResources>
    <xt:searchString>http://localhost:7001/business/ValidateCoverage/ValidateCoverageService</xt:searchString>
    <xt:isCompleteMatch>false</xt:isCompleteMatch>
    </cus:query>
    <cus:replacement>http://192.20.51.150:7001/business/ValidateCoverage/ValidateCoverageService</cus:replacement>
    </cus:customization>
    </cus:Customizations>
    But import.py is simply not replacing the values in the WSDL

  • Create Customization File in OSB 10g with WLST script

    Is it possible to create a customization file the same as created from the OSB console with a WLST script?
    Can someone show me the syntax to do this? I need to turn this request around quickly and don't have time for a lot of trial and error.
    Edited by: DoubleT on Sep 29, 2009 6:44 PM

    I resolved my problem. The solution is follow (Java language):
    Set<Ref> domainRefs = alsbConfMB.getRefs(businessServiceQuery);
         EnvValueQuery evquery = new EnvValueQuery(null, // search across all
                   // resource types
                   envValueTypesToSearch, domainRefs, // search only in found refs.
                   false, // Search all resources
                   null, // the string we want to replace
                   false // not a complete match of URI.
    Collection<QualifiedEnvValue> founds = alsbConfMB.findEnvValues(evquery);
         List<QualifiedEnvValue> qualifiedEnvValueList = new ArrayList<QualifiedEnvValue>();
         for (QualifiedEnvValue qev : founds) {
              if (qev.getEnvValueType().equals(EnvValueTypes.SERVICE_URI)) {
                   qualifiedEnvValueList.add(qev);
         EnvValueCustomization projectEnvValsCustomization = new EnvValueCustomization("Customizations File for businss services ", qualifiedEnvValueList);
         List<Customization> customizationList = new ArrayList<Customization>();
         customizationList.add(projectEnvValsCustomization);
         OutputStream fileOutputStream = new FileOutputStream("testCustomization.xml");
         Customization.toXML(customizationList, fileOutputStream);
         fileOutputStream.close();

  • ALSB Deployment using WLST scripts

    Hi
    Any body can help me with WLST scripts for Deployments on ALSB ?

    Also, for ALSB particular questions, you should use the SOA Suite forum:
    SOA Suite

  • Email alert using calculation script in essbase

    Hi,
    I am doing email alerts using run calculation script.
    I have created calculation script as per provided guideline but here I am facing problem.
    RUNJAVA com.oracle.essbase.cdf.SetEmailProp "target:target1" "subject:subject_line";
    RUNJAVA com.oracle.essbase.cdf.SendMail target:target1: server:smtpservernamel.om
    from:emailid.com to:toemailid.com "body:body of test mail";
    here instead of target & target1 i m not getting what should i write here.
    & it gives me am error like:
    Error: 1200456 Problem running [com.oracle.essbase.cdf.SetEmailProp "target:starget1"][Can not find class com.oracle.essbase.cdf.SetEmailProp]
    I have created SetEmailProp.java files & also created other files from the provided site.
    is their any need to do changes in this file according to requirement?
    Could you help me out from this.
    Thanks
    Edited by: 949936 on Nov 2, 2012 6:17 AM

    The Detailed Process is :
    I have downloaded CDF_Email .zip here,I got CDF_Email.jar and , SendMail.java,SetEmailProp.Java,AlertFunctions.java classes.Then I have downloaded CDF_export.jar.
    After that I have followed all the process that written in document guide (adistrategies.com) from "KB26_Email In Calculation Script".
    I placed all these .java files and .jar files in ARBORPATH java folder . here I have created one "udf folder" and put all the files in this folder as per the guideline provided in this document.
    About udf.policy I haven't did any changes in this file. could you tell me what is the neccessary changes are required in udf.policy file to achive this task.
    Thanks

  • Configuring Credential mapper using WLST script

    Is it possible to use a wlst script to define a new credential mapper.i.e.to [perform the following steps:
    Check Use cross-domain protocol.
    And then fill in the the values of the attributes which follow like remote host remote user and remote password.
    I tried using the wlst recording for the same.However got the following message.
    A security change to a role, policy, user, group or credential mapping was made, but this change was not recorded.
    I was wondering if we can access the security MBeans using WLST.
    Please advise.
    Thanks in advance.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    It is possible if you export the properties with:
    connect(url='t3://localhost:7001',adminServerName='AdminServer',timeout=60000)
    serverConfig()
    cd('/')
    currentDomainName=cmo.getName()
    cd('serverConfig:/SecurityConfiguration/' + currentDomainName + '/Realms/myrealm/CredentialMappers/DefaultCredentialMapper')
    prop=Properties()
    cmo.exportData('DefaultCreds','/tmp/credentialmapper_properties.txt',prop)Edit them, then import them with:
    cmo.importData('DefaultCreds','/tmp/credentialmapper_properties.txt',prop)You can list the Credential Mapper configuration with:
    connect(url='t3://localhost:7441',adminServerName='AdminServer',timeout=60000)
    serverConfig()
    cd('/')
    currentDomainName=cmo.getName()
    cd('serverConfig:/SecurityConfiguration/' + currentDomainName + '/Realms/myrealm/CredentialMappers/DefaultCredentialMapper')
    cursor=cmo.listMappingsByPattern('*',10)
    while cmo.haveCurrent(cursor):
        # A resource ID looks like:  'type=<remote>, protocol=cross-domain-protocol, remoteHost=testDomain'
        current_mapping_resource_id=cmo.getCurrentMappingResourceID(cursor)  
        cmo.getRemoteUserName(current_mapping_resource_id,'cross-domain')
        cmo.advance(cursor)
    cmo.close(cursor)See also: [url http://download.oracle.com/docs/cd/E12839_01/web.1111/e13707/security_data_migration.htm]Securing WebLogic Server 11g Release 1 (10.3.1) - Migrating Security Data
    Edited by: Mircea Vutcovici on Jun 22, 2011 3:49 PM

  • Creating SessionMBean error while deploying OSB through WLSt script

    Hi All,
    I am trying to deploy my OSB by using WLST scripts.
    After setting the required properties in files,I ran the import.py script.But I got an error while creating an session bean
    I have pasted the whole stcak here.It is going fine till creating a session.After that it is failing:
    Any pointers in this regard will be helpful.
    ****************************the stack************************88
    Your environment has been set.
    CLASSPATH=E:\Oracle\Middleware\patch_wls1033\profiles\default\sys_manifest_class
    path\weblogic_patch.jar;E:\Oracle\Middleware\patch_oepe1033\profiles\default\sys
    manifestclasspath\weblogic_patch.jar;E:\Oracle\Middleware\patch_ocp353\profile
    s\default\sys_manifest_classpath\weblogic_patch.jar;E:\Oracle\Middleware\jrockit
    _160_17_R28.0.0-679\lib\tools.jar;E:\Oracle\Middleware\wlserver_10.3\server\lib\
    weblogic_sp.jar;E:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar;E:\Or
    acle\Middleware\modules\features\weblogic.server.modules_10.3.3.0.jar;E:\Oracle\
    Middleware\wlserver_10.3\server\lib\webservices.jar;E:\Oracle\Middleware\modules
    \org.apache.ant_1.7.1/lib/ant-all.jar;E:\Oracle\Middleware\modules\net.sf.antcon
    trib_1.1.0.0_1-0b2/lib/ant-contrib.jar;;E:\Oracle\Middleware/Oracle_OSB1/lib/sb-
    kernel-api.jar;E:\Oracle\Middleware/Oracle_OSB1/modules/com.bea.common.configfwk
    _1.3.0.0.jar;E:\Oracle\Middleware/modules/com.bea.common.configfwk.wlinterop_10.
    3.1.0
    Apache Ant version 1.7.1 compiled on June 27 2008
    Buildfile: ..\scripts\build.xml
    Detected Java version: 1.6 in: E:\Oracle\Middleware\jrockit_160_17_R28.0.0-679\j
    re
    Detected OS: Windows XP
    parsing buildfile C:\osb\build\scripts\build.xml with URI = file:/C:/osb/build/s
    cripts/build.xml
    Project base dir set to: C:\osb\build\scripts
    [antlib:org.apache.tools.ant] Could not load definitions from resource org/apach
    e/tools/ant/antlib.xml. It could not be found.
    [property] Loading Environment env.
    [property] Loading C:\osb\build\dev\ant.properties
    Build sequence for target(s) `import' is [import]
    Complete build sequence is [import, ]
    import:
    [echo] importscript: c:/osb/build/scripts/import.py
    [echo] importconfig: c:/osb/build/dev/import.properties
    dropping E:\Oracle\Middleware\patch_wls1033\profiles\default\sys_manifest_classp
    ath\weblogic_patch.jar from path as it doesn't exist
    dropping E:\Oracle\Middleware\patch_oepe1033\profiles\default\sys_manifest_class
    path\weblogic_patch.jar from path as it doesn't exist
    dropping E:\Oracle\Middleware\patch_ocp353\profiles\default\sys_manifest_classpa
    th\weblogic_patch.jar from path as it doesn't exist
    dropping E:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic_sp.jar from path
    as it doesn't exist
    dropping E:\Oracle\Middleware\modules\com.bea.common.configfwk.wlinterop_10.3.1.
    0 from path as it doesn't exist
    dropping E:\Oracle\Middleware\patch_wls1033\profiles\default\sys_manifest_classp
    ath\weblogic_patch.jar from path as it doesn't exist
    dropping E:\Oracle\Middleware\patch_oepe1033\profiles\default\sys_manifest_class
    path\weblogic_patch.jar from path as it doesn't exist
    dropping E:\Oracle\Middleware\patch_ocp353\profiles\default\sys_manifest_classpa
    th\weblogic_patch.jar from path as it doesn't exist
    dropping E:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic_sp.jar from path
    as it doesn't exist
    dropping E:\Oracle\Middleware\modules\com.bea.common.configfwk.wlinterop_10.3.1.
    0 from path as it doesn't exist
    [wlst] <WLSTTask> Executing the command line :
    [wlst] E:\Oracle\Middleware\jrockit_160_17_R28.0.0-679\jre\bin\java.exe -Dd
    ebug=true -DfailOnError=true -DexecuteScriptBeforeFile=true -DpropertiesFile=c:/
    osb/build/dev/import.properties -DfileName=c:/osb/build/scripts/import.py -class
    path E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-launcher.jar;E:\O
    racle\Middleware\jrockit_160_17_R28.0.0-679\lib\tools.jar;E:\Oracle\Middleware\w
    lserver_10.3\server\lib\weblogic.jar;E:\Oracle\Middleware\modules\features\weblo
    gic.server.modules_10.3.3.0.jar;E:\Oracle\Middleware\wlserver_10.3\server\lib\we
    bservices.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-all.jar;
    E:\Oracle\Middleware\modules\net.sf.antcontrib_1.1.0.0_1-0b2\lib\ant-contrib.jar
    ;E:\Oracle\Middleware\Oracle_OSB1\lib\sb-kernel-api.jar;E:\Oracle\Middleware\Ora
    cle_OSB1\modules\com.bea.common.configfwk_1.3.0.0.jar;E:\Oracle\Middleware\modul
    es\org.apache.ant_1.7.1\lib\ant-antlr.jar;E:\Oracle\Middleware\modules\org.apach
    e.ant_1.7.1\lib\ant-apache-bcel.jar;E:\Oracle\Middleware\modules\org.apache.ant_
    1.7.1\lib\ant-apache-bsf.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\l
    ib\ant-apache-log4j.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\an
    t-apache-oro.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-apach
    e-regexp.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-apache-re
    solver.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-commons-log
    ging.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-commons-net.j
    ar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-jai.jar;E:\Oracle\M
    iddleware\modules\org.apache.ant_1.7.1\lib\ant-javamail.jar;E:\Oracle\Middleware
    \modules\org.apache.ant_1.7.1\lib\ant-jdepend.jar;E:\Oracle\Middleware\modules\o
    rg.apache.ant_1.7.1\lib\ant-jmf.jar;E:\Oracle\Middleware\modules\org.apache.ant_
    1.7.1\lib\ant-jsch.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant
    -junit.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-netrexx.jar
    ;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-nodeps.jar;E:\Oracle\
    Middleware\modules\org.apache.ant_1.7.1\lib\ant-starteam.jar;E:\Oracle\Middlewar
    e\modules\org.apache.ant_1.7.1\lib\ant-stylebook.jar;E:\Oracle\Middleware\module
    s\org.apache.ant_1.7.1\lib\ant-swing.jar;E:\Oracle\Middleware\modules\org.apache
    .ant_1.7.1\lib\ant-testutil.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.
    1\lib\ant-trax.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-web
    logic.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant.jar;E:\Oracl
    e\Middleware\modules\org.apache.ant_1.7.1\lib\xercesImpl.jar;E:\Oracle\Middlewar
    e\modules\org.apache.ant_1.7.1\lib\xml-apis.jar weblogic.management.scripting.WL
    STInterpreterInvoker
    dropping E:\Oracle\Middleware\patch_wls1033\profiles\default\sys_manifest_classp
    ath\weblogic_patch.jar from path as it doesn't exist
    dropping E:\Oracle\Middleware\patch_oepe1033\profiles\default\sys_manifest_class
    path\weblogic_patch.jar from path as it doesn't exist
    dropping E:\Oracle\Middleware\patch_ocp353\profiles\default\sys_manifest_classpa
    th\weblogic_patch.jar from path as it doesn't exist
    dropping E:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic_sp.jar from path
    as it doesn't exist
    dropping E:\Oracle\Middleware\modules\com.bea.common.configfwk.wlinterop_10.3.1.
    0 from path as it doesn't exist
    dropping E:\Oracle\Middleware\patch_wls1033\profiles\default\sys_manifest_classp
    ath\weblogic_patch.jar from path as it doesn't exist
    dropping E:\Oracle\Middleware\patch_oepe1033\profiles\default\sys_manifest_class
    path\weblogic_patch.jar from path as it doesn't exist
    dropping E:\Oracle\Middleware\patch_ocp353\profiles\default\sys_manifest_classpa
    th\weblogic_patch.jar from path as it doesn't exist
    dropping E:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic_sp.jar from path
    as it doesn't exist
    dropping E:\Oracle\Middleware\modules\com.bea.common.configfwk.wlinterop_10.3.1.
    0 from path as it doesn't exist
    [wlst] Executing 'E:\Oracle\Middleware\jrockit_160_17_R28.0.0-679\jre\bin\j
    ava.exe' with arguments:
    [wlst] '-Ddebug=true'
    [wlst] '-DfailOnError=true'
    [wlst] '-DexecuteScriptBeforeFile=true'
    [wlst] '-DpropertiesFile=c:/osb/build/dev/import.properties'
    [wlst] '-DfileName=c:/osb/build/scripts/import.py'
    [wlst] '-classpath'
    [wlst] 'E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-launcher.
    jar;E:\Oracle\Middleware\jrockit_160_17_R28.0.0-679\lib\tools.jar;E:\Oracle\Midd
    leware\wlserver_10.3\server\lib\weblogic.jar;E:\Oracle\Middleware\modules\featur
    es\weblogic.server.modules_10.3.3.0.jar;E:\Oracle\Middleware\wlserver_10.3\serve
    r\lib\webservices.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-
    all.jar;E:\Oracle\Middleware\modules\net.sf.antcontrib_1.1.0.0_1-0b2\lib\ant-con
    trib.jar;E:\Oracle\Middleware\Oracle_OSB1\lib\sb-kernel-api.jar;E:\Oracle\Middle
    ware\Oracle_OSB1\modules\com.bea.common.configfwk_1.3.0.0.jar;E:\Oracle\Middlewa
    re\modules\org.apache.ant_1.7.1\lib\ant-antlr.jar;E:\Oracle\Middleware\modules\o
    rg.apache.ant_1.7.1\lib\ant-apache-bcel.jar;E:\Oracle\Middleware\modules\org.apa
    che.ant_1.7.1\lib\ant-apache-bsf.jar;E:\Oracle\Middleware\modules\org.apache.ant
    _1.7.1\lib\ant-apache-log4j.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.
    1\lib\ant-apache-oro.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\a
    nt-apache-regexp.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-a
    pache-resolver.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-com
    mons-logging.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-commo
    ns-net.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-jai.jar;E:\
    Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-javamail.jar;E:\Oracle\Mi
    ddleware\modules\org.apache.ant_1.7.1\lib\ant-jdepend.jar;E:\Oracle\Middleware\m
    odules\org.apache.ant_1.7.1\lib\ant-jmf.jar;E:\Oracle\Middleware\modules\org.apa
    che.ant_1.7.1\lib\ant-jsch.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1
    \lib\ant-junit.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-net
    rexx.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-nodeps.jar;E:
    \Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-starteam.jar;E:\Oracle\M
    iddleware\modules\org.apache.ant_1.7.1\lib\ant-stylebook.jar;E:\Oracle\Middlewar
    e\modules\org.apache.ant_1.7.1\lib\ant-swing.jar;E:\Oracle\Middleware\modules\or
    g.apache.ant_1.7.1\lib\ant-testutil.jar;E:\Oracle\Middleware\modules\org.apache.
    ant_1.7.1\lib\ant-trax.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib
    \ant-weblogic.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant.jar;
    E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\xercesImpl.jar;E:\Oracle\M
    iddleware\modules\org.apache.ant_1.7.1\lib\xml-apis.jar'
    [wlst] 'weblogic.management.scripting.WLSTInterpreterInvoker'
    [wlst]
    [wlst] The ' characters around the executable and arguments are
    [wlst] not part of the command.
    dropping E:\Oracle\Middleware\patch_wls1033\profiles\default\sys_manifest_classp
    ath\weblogic_patch.jar from path as it doesn't exist
    dropping E:\Oracle\Middleware\patch_oepe1033\profiles\default\sys_manifest_class
    path\weblogic_patch.jar from path as it doesn't exist
    dropping E:\Oracle\Middleware\patch_ocp353\profiles\default\sys_manifest_classpa
    th\weblogic_patch.jar from path as it doesn't exist
    dropping E:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic_sp.jar from path
    as it doesn't exist
    dropping E:\Oracle\Middleware\modules\com.bea.common.configfwk.wlinterop_10.3.1.
    0 from path as it doesn't exist
    dropping E:\Oracle\Middleware\patch_wls1033\profiles\default\sys_manifest_classp
    ath\weblogic_patch.jar from path as it doesn't exist
    dropping E:\Oracle\Middleware\patch_oepe1033\profiles\default\sys_manifest_class
    path\weblogic_patch.jar from path as it doesn't exist
    dropping E:\Oracle\Middleware\patch_ocp353\profiles\default\sys_manifest_classpa
    th\weblogic_patch.jar from path as it doesn't exist
    dropping E:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic_sp.jar from path
    as it doesn't exist
    dropping E:\Oracle\Middleware\modules\com.bea.common.configfwk.wlinterop_10.3.1.
    0 from path as it doesn't exist
    [wlst] Using input " "
    [wlst] <WLSTTask> Loaded and set the properties from c:/osb/build/dev/impor
    t.properties
    [wlst] <WLSTTask> sys.argv is ['c:/osb/build/scripts/import.py']
    [wlst] Connecting to server: t3://localhost:7001
    [wlst] Connecting to t3://localhost:7001 with userid weblogic ...
    [wlst] Successfully connected to Admin Server 'AdminServer' that belongs to
    domain 'base_domain'.
    [wlst]
    [wlst] Warning: An insecure protocol was used to connect to the
    [wlst] server. To ensure on-the-wire security, the SSL port or
    [wlst] Admin port should be used instead.
    [wlst]
    [wlst] Location changed to domainRuntime tree. This is a read-only tree wit
    h DomainMBean as the root.
    [wlst] For more help, use help(domainRuntime)
    [wlst]
    [wlst] Starting import of: c:/osb/configuration/sbconfig.jar on ALSB Admin
    Server: t3://localhost:7001
    [wlst] Read import jar file
    [wlst] Import file read successfully c:/osb/configuration/sbconfig.jar
    [wlst] Creating unique session name
    [wlst] Created session name : ALSBImportScript-1279101189649
    [wlst] Creating SessionMBean
    [wlst] Unexpected error: java.lang.RuntimeException
    [wlst] Unexpected error: java.lang.RuntimeException
    [wlst] No stack trace available.
    [wlst] Traceback (innermost last):
    [wlst] File "c:\osb\build\scripts\import.py", line 179, in ?
    [wlst] File "c:\osb\build\scripts\import.py", line 47, in importToALSBDom
    ain
    [wlst] File "c:\osb\build\scripts\import.py", line 167, in getSessionMBea
    n
    [wlst] File "<iostream>", line 1162, in findService
    [wlst] at weblogic.management.jmx.MBeanServerInvocationHandler.newProxy
    Instance(MBeanServerInvocationHandler.java:621)
    [wlst] at weblogic.management.jmx.MBeanServerInvocationHandler.invoke(M
    BeanServerInvocationHandler.java:418)
    [wlst] at $Proxy11.findService(Unknown Source)
    [wlst] at weblogic.management.scripting.WLScriptContext.findService(WLS
    criptContext.java:209)
    [wlst] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [wlst] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
    sorImpl.java:39)
    [wlst] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
    hodAccessorImpl.java:25)
    [wlst] at java.lang.reflect.Method.invoke(Method.java:597)
    [wlst]
    [wlst] java.lang.RuntimeException: java.lang.RuntimeException: java.lang.Cl
    assNotFoundException: com.bea.wli.sb.management.configuration.DelegatedSessionMa
    nagementMBean
    [wlst]
    [wlst] Exception in thread "Main Thread" java.lang.IllegalStateException: T
    raceback (innermost last):
    [wlst] File "c:\osb\build\scripts\import.py", line 179, in ?
    [wlst] File "c:\osb\build\scripts\import.py", line 47, in importToALSBDom
    ain
    [wlst] File "c:\osb\build\scripts\import.py", line 167, in getSessionMBea
    n
    [wlst] File "<iostream>", line 1162, in findService
    [wlst] at weblogic.management.jmx.MBeanServerInvocationHandler.newProxy
    Instance(MBeanServerInvocationHandler.java:621)
    [wlst] at weblogic.management.jmx.MBeanServerInvocationHandler.invoke(M
    BeanServerInvocationHandler.java:418)
    [wlst] at $Proxy11.findService(Unknown Source)
    [wlst] at weblogic.management.scripting.WLScriptContext.findService(WLS
    criptContext.java:209)
    [wlst] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [wlst] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
    sorImpl.java:39)
    [wlst] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
    hodAccessorImpl.java:25)
    [wlst] at java.lang.reflect.Method.invoke(Method.java:597)
    [wlst]
    [wlst] java.lang.RuntimeException: java.lang.RuntimeException: java.lang.Cl
    assNotFoundException: com.bea.wli.sb.management.configuration.DelegatedSessionMa
    nagementMBean
    [wlst]
    [wlst] at weblogic.management.scripting.WLSTInterpreterInvoker.printErr
    or(WLSTInterpreterInvoker.java:110)
    [wlst] at weblogic.management.scripting.WLSTInterpreterInvoker.executeP
    yScript(WLSTInterpreterInvoker.java:103)
    [wlst] at weblogic.management.scripting.WLSTInterpreterInvoker.main(WLS
    TInterpreterInvoker.java:27)
    BUILD FAILED
    C:\osb\build\scripts\build.xml:13: Java returned: 1
    at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
    at weblogic.ant.taskdefs.management.WLSTTask.execute(WLSTTask.java:115)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
    a:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1307)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
    cutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1191)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:218)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    Total time: 16 seconds
    C:\osb\build\dev>^A

    Hi,
    I tried debugging it and i am still getting the same error. I used the script provided byoracle and the script which is given here.
    Below is the error i am getting :
    [java] ImportError: cannot import name SessionManagementMBean
    I am getting an error at
    def getSessionManagementMBean(sessionName):
    SessionMBean = findService("SessionManagement", "com.bea.wli.sb.management.configuration.SessionManagementMBean")
    SessionMBean.createSession(sessionName)
    return SessionMBean
    Its able to create a unique session , after that for creating session name its throwing error.
    C:\Development\Build\scripts\build.xml:31: Java returned: 1
    at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
    at weblogic.ant.taskdefs.management.WLSTTask.execute(WLSTTask.java:115)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
    a:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
    cutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    Any help on this??

  • Creation of Customisation file from WLST Script in OSB

    Hi,
    Please help in creating Customisation file in OSB from WLST Scripts

    Hi,
    Please refer -
    Create Customization File in OSB 10g with WLST script
    http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/deploy/config_appx.html
    http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/javadoc/com/bea/wli/config/customization/Customization.html
    Regards,
    Anuj

  • How to create a new Oracle OSB project automaticaly with script without IDE

    Hello,
    I want to create automatically an "Oracle service bus project" and an "Oracle service bus configuration project" with scripts (ANT or Maven or ...) without using IDE, without using workshop or Eclipse. I want to create automatically (ANT or Maven) just a skeleton of an OSB project witch i can use after in workshop.
    I want to create 1 "Oracle service bus configuration project" with many "Oracle service bus project" automatically (ANT or Maven or scripts) witch i can use after in workshop. How to create a new Oracle OSB project automaticaly with script without IDE ? How can i do this ?
    I'm using Oracle service bus 10.3.1
    Thank you for your help.

    Thank you for your response,
    I do not want to just create the services (proxy services and business services) but I want to create a template for 40 OSB project with the same scripts ANT/Maven.
    Template="Oracle service bus configuration project" + "Oracle service bus project" + services of 40 OSB projects
    The goal is that I have more than 40 projects to create and just the name of the projects that changes (when I say the name of the project ie the name of the OSB project, the name of proxy services and the name of business services ).
    So I want to give my script (ANT/Maven) the name of 40 OSB project and the script must generate the skeleton of the 40 projects at once time and after generation of skeleton of the 40 project, I will import them in the workshop to add manually mapping and routing and other things that differs from one project to another.
    So i want to generate automatically a skeletons of 40 OSB projects using a script (ANT / Maven) and I give to the script juste the names of the 40 projects.
    I want to create a "Oracle service bus configuration project" and "Oracle service bus project" automatically of 40 OSB projects (ANT or Maven or scripts) witch i can use after in workshop.
    I want to create one 'template' of all 40 projects in the same time, with the same directory structure (Transforlation, Business services, proxy services, WSDL .....) and all 40 project have the same transport, just the names of projects and services witch changes and i can give to the script all names of projects and services and i can give also all WSDL.
    Regards,
    Tarik

  • WLST script for changing password for userid in Weblogic 9.2

    Hello Everyone,
    We want to change password for userid in weblogic 9.2. Is there a way we can do this by using WLST script? If so please provide me with steps for doing that using WLST. Thanks in advance.
    - - Weblogic Consultant

    Did you try going to the WLST documentation and searching for it? Go to [http://edocs.bea.com/wls/docs92/pdf/config_scripting.pdf] and search for "Changing a Password". The example there seems to be what you need.

Maybe you are looking for