How to create Users and Groups in Weblogic server that will be used for the tutorial SOA 11g sample applications

In 10g all the Users and Groups were created by default in Weblogic server, but in 11g we have to manually create the entire sample Users and Groups. For this we have to first download the “workflow-001-DemoCommunitySeedApp” from OTN Samples link

Creation of Sample Users and Groups can be done in two ways. One is Complex approach and another Simple approach. Lets discuss both approaches.

Complex approach:

In previous releases of Oracle SOA Suite users were seeded by default. This is not the case for Therefore we need to load them manually so we get the old name of jcooper, cdickens, etc. This post provide the steps to load these users so you can perform some basic allocation of tasks in BPM Suite. These users can also be used for SOA Suite Human Task activities as well.

1. Download the file provided here:

2. As the oracle user (or owner of BPM / SOA Suite) Unzip this file to a directory of your choice on the BPM / SOA Suite server. For reference I unzipped it in the /home/oracle directory

3.  Change directory to the demo-community folder

cd /home/oracle/demo-community

4. Edit the file to match your environment, e.g:

  • Set the admin server location


  • Set the middleware home, also called the bea home


  • Set the oracle and domain home.


  • Set the authentication

  • Use the managed server for the target or if single
    e.g. target=soa_server1 or target=AdminServer


5. Ensure the JAVA_HOME is correct. The java required is the java that is used to install BPM / SOA Suite. In may case I installed 1.6.0_20 into the /java directory.

java –version

should return the following. The version number should be the same as that which was installed for BPM / SOA Suite.

java version “1.6.0_20”
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)

6. If the above is still pointing to the default install, e.g. 1.4.2_x then perform the following steps as root. Otherwise go to step 8. Please note these instructions are based on the fact that I have installed java in the /java directory. Change according to your environment.

echo ‘export JAVA_HOME=/java/jdk1.6.0_20’>/etc/profile.d/

echo ‘export PATH=$JAVA_HOME/bin:$PATH’>>/etc/profile.d/

source /etc/profile.d/

java –version should now return:

java version “1.6.0_20”
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)

7. Log back in as the oracle user and change directory to the  demo-community done in step 2. Also check the version of java has now changed to the correct version as step 6.

cd /home/oracle/demo-community

8. Run ANT to load the users. If ANT is not in your path you may need to source it. For my environment the following works:

$MW_HOME/modules/org.apache.ant_1.7.1/bin/ant seedDemoUsers

9. Check that the script completed with no errors. Sometimes you can get a build successful when there were some errors. You should see something like this:

[exec] ***************************************************** 
[exec] ** End SOA specific environment setup 
[exec] ***************************************************** 
[exec] ******************************************************* 
[exec] ** SOA specific environment is already set, skipping… 
[exec] ******************************************************* 
[java] Initializing WebLogic Scripting Tool (WLST) … 
[java] Welcome to WebLogic Server Administration Scripting Shell 
[java] Type help() for help on available commands 
[java] ————————— Demo Community  ———————————- 
[java] serverURL: 
[java] Status : 
[java] 200 OK 
[java] Users/Groups Seeded : 
[java] <html> 
[java] <head> 
[java] <title>Demo User Community</title> 
[java] <link rel=”stylesheet” type=”text/css” href=”stylesheet.css”/> 
[java] </head> 
[java] <body> 
[java] <table border=”1″ style=”background-color:#C8C8C8″ align=”center” width=”70%”> 
[java] <tr> 
[java] <td> 
[java] <H1 ALIGN=”CENTER”>Seed Demo Community</H1> 
[java] <BR><B>Users : </B> 
[java] demoadmin 
[java] cdickens 
[java] wfaulk 
[java] sfitzger 
[java] jstein 
[java] istone 
[java] jcooper 
[java] mtwain 
[java] jlondon 
[java] ltolstoy 
[java] fkafka 
[java] szweig 
[java] mmitch 
[java] jausten 
[java] achrist 
[java] rsteven 
[java] cdoyle 
[java] wshake 
[java] JVerne 
[java] EHEMING 
[java] VHUGO 
[java] <BR><B>Groups : </B> 
[java] Supervisor 
[java] LoanAnalyticGroup 
[java] LoanAgentGroup 
[java] California 
[java] WesternRegion 
[java] EasternRegion 
[java] CentralRegion 
[java] RegionalOffices 
[java] Executives 
[java] </td> 
[java] </tr> 
[java] </table> 
[java] </body> 
[java] </html> 
[java] ————————— Grant AppRoles to Demo Community  ——–
     [java] Connecting to t3:// with userid weblogic … 
     [java] Successfully connected to Admin Server ‘AdminServer’ that belongs to domain ‘fmw_domain’. 
     [java] Warning: An insecure protocol was used to connect to the 
     [java] server. To ensure on-the-wire security, the SSL port or 
     [java] Admin port should be used instead. 
     [java] Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root. 
     [java] For more help, use help(domainRuntime) 

Total time: 18 seconds

Simple Approach:

     Once after you download the Zip file, you will find a “SOATestDemoApp.ear” EAR file inside the Zip file.

  • Deploy the “SOATestDemoApp.ear” file in the Weblogic server console.
  • Choose Admin and SOA_SERVER1 servers as targets.
  • In case if you get any strange error while deploying the application, no need to worry, Just restart the Weblogic Admin and SOA_SERVER1 servers and try it again. This time it should be successful.
  • Access the deployed application using http://localhost:8001/integration/SOADemoCommunity/DemoCommunitySeedServlet

Click ‘Submit’ button to create the sample Users and Groups in Weblogic Server. Once the sample Users and Groups are created you will get the Success message as below

  • Make sure in the above link to use the port number 8001 (SOA_SERVER1) and not 7001 (ADMIN), because the link works for both port numbers. But the creation of sample Users and Groups will work only with port 8001 (SOA_SERVER1).

http://hostname:7001/integration/SOADemoCommunity/DemoCommunitySeedServlet (failed and gave the error mentioned)
http://hostname:8001/integration/SOADemoCommunity/DemoCommunitySeedServlet (worked)

When you access the link by using the port number 7001 (ADMIN) and click the ‘Submit’ button, you will receive the below error message –

“Exception: ORABPEL-10518 Failed to load Identity Service Configuration. An error occured while loading configurations from “workflow-identity-config.xml” Ensure that the identity service configurations are well formed and correct. Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.”

This entry was posted in BPEL, Service Oriented Architecture (SOA 11g), WebLogic Server 11g and tagged , , , , , . Bookmark the permalink.

4 Responses to How to create Users and Groups in Weblogic server that will be used for the tutorial SOA 11g sample applications

  1. Madhi says:

    Hi Uday,
    Have you tried invoking this servlet from SOA composite using httpBinder? We need to automate the Users & Groups loading process, instead of creating from Weblogic console.

    We are hitting with “replace_with_actual_url” exception when we invoke this serve.

    We are using Oracle 11G with JDeveloper

    Any help would be highly appreciated.


    • Praven Edwin says:

      Did you find a solution for the “replace_with_actual_url”? If so can you share it with us?

  2. Akhil says:

    Thank you. It worked and it also worked with 7001(ADMIN) port

  3. Generally I do not learn post on blogs, however I would like to say that this write-up very pressured me to check out and do it!
    Your writing style has been surprised me. Thank you, quite
    great post.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s