Forum Stats

  • 3,760,131 Users
  • 2,251,648 Discussions
  • 7,870,992 Comments

Discussions

how can we test BPM Application in JDEVELOPER 12c

3329767
3329767 Member Posts: 9

Hi All,

Am Creating hello world  BPM Application in Oracle J Developer. How i can test BPM Process in developer only.

Regards,

SR

Martien van den Akker

Best Answer

Answers

  • Martien van den Akker
    Martien van den Akker Member Posts: 2,776 Bronze Crown
    edited May 1, 2019 2:21AM

    Hi,

    If you have the BPM Quickstart, and you should because you develop it, you can simply run the process in the integrated Weblogic.

    You could run the project, and it will/should spawn the integrated weblogic. First time you need to enter a admin username/password, I used to use weblogic/welcome1. Then it will auto-magically deploy the composite.

    You can also kick off the server through the Run menu:

    pastedImage_0.png

    When it runs you can  (re)deploy the composite to the IntegratedWeblogic as you would with a real server environment.

    There is one caveat when using Java 8 update 181+. Read https://blog.darwin-it.nl/2019/03/javadb-not-bundled-anymore-with-jdk-8.html for that. I think it has to do with the changed support licensing model.

    The BPM QuickStart needs JavaDB/Derby for the SOA Infra repository. Read the blog above to see how to infuse your JDK with the JavaDB download.


    Regards,
    Martien

    3329767
  • 3329767
    3329767 Member Posts: 9
    edited May 2, 2019 4:05AM

    Hi Martien,

    Thanks for the reply.am getting below error while creating default domain.Plese help me.

    pastedImage_1.png

    Adding environment variable to WLST script USER_MEM_ARGS = -Xms32m -Xmx1024m -XX:MaxPermSize=384m

    Log File:      C:\p17888411_R12_GENERIC\jdevhome\jdev\system12.2.1.3.42.170820.0914\o.j2ee.adrs\BuildDefaultDomain.log

    Label:         JDEVADF_12.2.1.PATCHSETS_GENERIC_170820.0914.S

    Product Home:  D:\Oracle\Middleware12213\jdeveloper\jdev\

    Domain:        C:\p17888411_R12_GENERIC\jdevhome\jdev\system12.2.1.3.42.170820.0914\DefaultDomain

    BuildDefaultDomain1.py      2019-05-02 13:30:58

    cmd.exe /c ""D:\Oracle\Middleware12213\oracle_common\common\bin\wlst.cmd" "C:\p17888411_R12_GENERIC\jdevhome\jdev\system12.2.1.3.42.170820.0914\o.j2ee.adrs\BuildDefaultDomain1.py""

    Process started

    wlst > The system cannot find the file D:\Oracle\Middleware12213\oui\bin\..\.globalEnv.properties.

    wlst > ERROR: Unable to locate property "JAVA_HOME" in properties file D:\Oracle\Middleware12213\oui\bin\..\.globalEnv.properties

    wlst > Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0

    wlst >

    wlst > Initializing WebLogic Scripting Tool (WLST) ...

    wlst >

    wlst > WARNING: An illegal reflective access operation has occurred

    wlst > WARNING: Illegal reflective access by com.sun.xml.bind.v2.runtime.reflect.opt.Injector (file:/D:/Oracle/Middleware12213/oracle_common/modules/com.sun.xml.bind.jaxb-impl.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)

    wlst > WARNING: Please consider reporting this to the maintainers of com.sun.xml.bind.v2.runtime.reflect.opt.Injector

    wlst > WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations

    wlst > WARNING: All illegal access operations will be denied in a future release

    wlst > May 02, 2019 1:31:04 PM com.oracle.cie.domain.env.EnvironmentServiceImpl init

    wlst > SEVERE: Failed to get inventory for D:\Oracle\Middleware12213

    wlst > java.lang.reflect.InvocationTargetException

    wlst > at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    wlst > at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

    wlst > at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    wlst > at java.base/java.lang.reflect.Method.invoke(Method.java:567)

    wlst > at com.oracle.cie.common.ReflectionHelper.process(ReflectionHelper.java:48)

    wlst > at com.oracle.cie.domain.env.EnvironmentServiceImpl.init(EnvironmentServiceImpl.java:384)

    wlst > at com.oracle.cie.domain.env.EnvironmentServiceImpl.<init>(EnvironmentServiceImpl.java:89)

    wlst > at com.oracle.cie.domain.env.EnvironmentServiceImpl.getInstance(EnvironmentServiceImpl.java:364)

    wlst > at com.oracle.cie.domain.env.EnvironmentServiceFactory.getEnvironmentService(EnvironmentServiceFactory.java:35)

    wlst > at com.oracle.cie.domain.env.EnvironmentServiceFactory.getEnvironmentService(EnvironmentServiceFactory.java:72)

    wlst > at com.oracle.cie.domain.script.jython.WLScriptContext.init(WLScriptContext.java:303)

    wlst > at com.oracle.cie.domain.script.jython.WLScriptContext.setup(WLScriptContext.java:270)

    wlst > at com.oracle.cie.domain.script.jython.WLST_offline.setupContext(WLST_offline.java:46)

    wlst > at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    wlst > at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

    wlst > at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    wlst > at java.base/java.lang.reflect.Method.invoke(Method.java:567)

    wlst > at weblogic.management.scripting.utils.WLSTUtil.initOfflineContext(WLSTUtil.java:514)

    wlst > at weblogic.management.scripting.utils.WLSTUtil.setupOfflineInternal(WLSTUtil.java:488)

    wlst > at weblogic.management.scripting.utils.WLSTUtil.setupOffline(WLSTUtil.java:361)

    wlst > at weblogic.management.scripting.utils.WLSTUtilWrapper.setupOffline(WLSTUtilWrapper.java:29)

    wlst > at weblogic.management.scripting.utils.WLSTInterpreter.<init>(WLSTInterpreter.java:250)

    wlst > at weblogic.management.scripting.WLST.main(WLST.java:134)

    wlst > at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    wlst > at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

    wlst > at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    wlst > at java.base/java.lang.reflect.Method.invoke(Method.java:567)

    wlst > at weblogic.WLST.main(WLST.java:47)

    wlst > Caused by: com.oracle.cie.gdr.external.InventoryException: java.lang.IllegalArgumentException: D:\Oracle\Middleware12213\inventory\distributions\BPM_QuickStart_12.2.1.3.0.xml (Access is denied)

    wlst > at com.oracle.cie.gdr.external.impl.OracleHomeInventoryImpl.<init>(OracleHomeInventoryImpl.java:55)

    wlst > at com.oracle.cie.gdr.external.impl.OracleHomeInventoryFactory.createInventory(OracleHomeInventoryFactory.java:60)

    wlst > at com.oracle.cie.gdr.external.InventoryFactory.getOracleHomeInventory(InventoryFactory.java:99)

    wlst > ... 28 more

    wlst > Caused by: java.lang.IllegalArgumentException: D:\Oracle\Middleware12213\inventory\distributions\BPM_QuickStart_12.2.1.3.0.xml (Access is denied)

    wlst > at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:196)

    wlst > at com.oracle.cie.common.dao.jaxb.JaxbDataHandlerSpiImpl.create(JaxbDataHandlerSpiImpl.java:118)

    wlst > at com.oracle.cie.gdr.helpers.DaoHelper.parse(DaoHelper.java:173)

    wlst > at com.oracle.cie.gdr.helpers.DaoHelper.getRootWrapper(DaoHelper.java:401)

    wlst > at com.oracle.cie.gdr.helpers.DistributionHelper.getDistribution(DistributionHelper.java:307)

    wlst > at com.oracle.cie.gdr.helpers.DistributionHelper.getDistribution(DistributionHelper.java:290)

    wlst > at com.oracle.cie.gdr.helpers.DistributionHelper.getDistribution(DistributionHelper.java:254)

    wlst > at com.oracle.cie.gdr.DistributionLoader.<init>(DistributionLoader.java:89)

    wlst > at com.oracle.cie.gdr.DistributionLoaderFactory.getDistributionLoader(DistributionLoaderFactory.java:45)

    wlst > at com.oracle.cie.gdr.Home.loadInstalledDistributions(Home.java:1622)

    wlst > at com.oracle.cie.gdr.Home.loadInstalledMetaData(Home.java:1209)

    wlst > at com.oracle.cie.gdr.Home.loadHomeMetaData(Home.java:1190)

    wlst > at com.oracle.cie.gdr.Home.refresh(Home.java:1131)

    wlst > at com.oracle.cie.gdr.Home.setHome(Home.java:320)

    wlst > at com.oracle.cie.gdr.Home.<init>(Home.java:288)

    wlst > at com.oracle.cie.gdr.Home.getHome(Home.java:224)

    wlst > at com.oracle.cie.gdr.Home.getHome(Home.java:187)

    wlst > at com.oracle.cie.gdr.external.impl.OracleHomeInventoryImpl.<init>(OracleHomeInventoryImpl.java:50)

    wlst > ... 30 more

    wlst >

    wlst > java.lang.reflect.InvocationTargetException

    wlst > at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    wlst > at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

    wlst > at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    wlst > at java.base/java.lang.reflect.Method.invoke(Method.java:567)

    wlst > at weblogic.management.scripting.utils.WLSTUtil.initOfflineContext(WLSTUtil.java:514)

    wlst > at weblogic.management.scripting.utils.WLSTUtil.setupOfflineInternal(WLSTUtil.java:488)

    wlst > at weblogic.management.scripting.utils.WLSTUtil.setupOffline(WLSTUtil.java:361)

    wlst > at weblogic.management.scripting.utils.WLSTUtilWrapper.setupOffline(WLSTUtilWrapper.java:29)

    wlst > at weblogic.management.scripting.utils.WLSTInterpreter.<init>(WLSTInterpreter.java:250)

    wlst > at weblogic.management.scripting.WLST.main(WLST.java:134)

    wlst > at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    wlst > at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

    wlst > at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    wlst > at java.base/java.lang.reflect.Method.invoke(Method.java:567)

    wlst > at weblogic.WLST.main(WLST.java:47)

    wlst > Caused by: java.lang.IllegalStateException: com.oracle.cie.domain.env.EnvironmentServiceException: Failed to get inventory for D:\Oracle\Middleware12213

    wlst > at com.oracle.cie.domain.script.jython.WLScriptContext.init(WLScriptContext.java:353)

    wlst > at com.oracle.cie.domain.script.jython.WLScriptContext.setup(WLScriptContext.java:270)

    wlst > at com.oracle.cie.domain.script.jython.WLST_offline.setupContext(WLST_offline.java:46)

    wlst > ... 15 more

    wlst > Caused by: com.oracle.cie.domain.env.EnvironmentServiceException: Failed to get inventory for D:\Oracle\Middleware12213

    wlst > at com.oracle.cie.domain.env.EnvironmentServiceImpl.init(EnvironmentServiceImpl.java:425)

    wlst > at com.oracle.cie.domain.env.EnvironmentServiceImpl.<init>(EnvironmentServiceImpl.java:89)

    wlst > at com.oracle.cie.domain.env.EnvironmentServiceImpl.getInstance(EnvironmentServiceImpl.java:364)

    wlst > at com.oracle.cie.domain.env.EnvironmentServiceFactory.getEnvironmentService(EnvironmentServiceFactory.java:35)

    wlst > at com.oracle.cie.domain.env.EnvironmentServiceFactory.getEnvironmentService(EnvironmentServiceFactory.java:72)

    wlst > at com.oracle.cie.domain.script.jython.WLScriptContext.init(WLScriptContext.java:303)

    wlst > ... 17 more

    wlst > Caused by: java.lang.reflect.InvocationTargetException

    wlst > at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    wlst > at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

    wlst > at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    wlst > at java.base/java.lang.reflect.Method.invoke(Method.java:567)

    wlst > at com.oracle.cie.common.ReflectionHelper.process(ReflectionHelper.java:48)

    wlst > at com.oracle.cie.domain.env.EnvironmentServiceImpl.init(EnvironmentServiceImpl.java:384)

    wlst > ... 22 more

    wlst > Caused by: com.oracle.cie.gdr.external.InventoryException: java.lang.IllegalArgumentException: D:\Oracle\Middleware12213\inventory\distributions\BPM_QuickStart_12.2.1.3.0.xml (Access is denied)

    wlst > at com.oracle.cie.gdr.external.impl.OracleHomeInventoryImpl.<init>(OracleHomeInventoryImpl.java:55)

    wlst > at com.oracle.cie.gdr.external.impl.OracleHomeInventoryFactory.createInventory(OracleHomeInventoryFactory.java:60)

    wlst > at com.oracle.cie.gdr.external.InventoryFactory.getOracleHomeInventory(InventoryFactory.java:99)

    wlst > ... 28 more

    wlst > Caused by: java.lang.IllegalArgumentException: D:\Oracle\Middleware12213\inventory\distributions\BPM_QuickStart_12.2.1.3.0.xml (Access is denied)

    wlst > at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:196)

    wlst > at com.oracle.cie.common.dao.jaxb.JaxbDataHandlerSpiImpl.create(JaxbDataHandlerSpiImpl.java:118)

    wlst > at com.oracle.cie.gdr.helpers.DaoHelper.parse(DaoHelper.java:173)

    wlst > at com.oracle.cie.gdr.helpers.DaoHelper.getRootWrapper(DaoHelper.java:401)

    wlst > at com.oracle.cie.gdr.helpers.DistributionHelper.getDistribution(DistributionHelper.java:307)

    wlst > at com.oracle.cie.gdr.helpers.DistributionHelper.getDistribution(DistributionHelper.java:290)

    wlst > at com.oracle.cie.gdr.helpers.DistributionHelper.getDistribution(DistributionHelper.java:254)

    wlst > at com.oracle.cie.gdr.DistributionLoader.<init>(DistributionLoader.java:89)

    wlst > at com.oracle.cie.gdr.DistributionLoaderFactory.getDistributionLoader(DistributionLoaderFactory.java:45)

    wlst > at com.oracle.cie.gdr.Home.loadInstalledDistributions(Home.java:1622)

    wlst > at com.oracle.cie.gdr.Home.loadInstalledMetaData(Home.java:1209)

    wlst > at com.oracle.cie.gdr.Home.loadHomeMetaData(Home.java:1190)

    wlst > at com.oracle.cie.gdr.Home.refresh(Home.java:1131)

    wlst > at com.oracle.cie.gdr.Home.setHome(Home.java:320)

    wlst > at com.oracle.cie.gdr.Home.<init>(Home.java:288)

    wlst > at com.oracle.cie.gdr.Home.getHome(Home.java:224)

    wlst > at com.oracle.cie.gdr.Home.getHome(Home.java:187)

    wlst > at com.oracle.cie.gdr.external.impl.OracleHomeInventoryImpl.<init>(OracleHomeInventoryImpl.java:50)

    wlst > ... 30 more

    wlst > Welcome to WebLogic Server Administration Scripting Shell

    wlst >

    wlst > Type help() for help on available commands

    wlst >

    wlst > Creating Default Domain

    wlst > [progress] Reading template: Basic WebLogic Server Domain

    wlst > Problem invoking WLST - Traceback (innermost last):

    wlst >   File "C:\p17888411_R12_GENERIC\jdevhome\jdev\system12.2.1.3.42.170820.0914\o.j2ee.adrs\BuildDefaultDomain1.py", line 35, in ?

    wlst >   File "C:\Users\ssannill\AppData\Local\Temp\WLSTOfflineIni17182533298996989431.py", line 53, in setTopologyProfile

    wlst >   File "C:\Users\ssannill\AppData\Local\Temp\WLSTOfflineIni17182533298996989431.py", line 19, in command

    wlst > at com.oracle.cie.domain.script.jython.WLScriptContext.runCmd(WLScriptContext.java:721)

    wlst >

    wlst > at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    wlst >

    wlst > at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

    wlst >

    wlst > at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    wlst >

    wlst > at java.base/java.lang.reflect.Method.invoke(Method.java:567)

    wlst >

    wlst >

    wlst > java.lang.NullPointerException: java.lang.NullPointerException

    wlst >

    Elapsed time:  7866 ms

    Regards,

    Sulochana

  • Martien van den Akker
    Martien van den Akker Member Posts: 2,776 Bronze Crown
    edited May 2, 2019 5:08AM

    Hi,

    I see this: 'D:\Oracle\Middleware12213\inventory\distributions\BPM_QuickStart_12.2.1.3.0.xml (Access is denied)'.

    Maybe you should try to start JDeveloper as administrator and try again.

    Which Java version do you use?

    Regards,
    Martien

    3329767
  • 3329767
    3329767 Member Posts: 9
    edited May 2, 2019 6:16AM

    Hi Martien,

    Thanks for the reply will  try with admin user and let you know.am using jdk1.8.0_101

    Regards,

    Sulochana

  • Martien van den Akker
    Martien van den Akker Member Posts: 2,776 Bronze Crown
    edited May 2, 2019 7:50AM Accepted Answer

    Also try with updating to jdk1.8.0_131+ (but lower than update 181).

    3329767
  • 3329767
    3329767 Member Posts: 9
    edited May 3, 2019 2:17AM

    Hi Martien,

    Thanks for the reply I have updated with jdk1.8.0_131 version and also Started JDeveloper as administrator.now it's working fine

    Regards,

    Sulochana

    Martien van den Akker