Installing Seeded Users for BPM 11.1.1.3 on Linux

In previous releases of Oracle SOA Suite users were seeded by default. This is not the case for 11.1.1.3. 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 demo-community.zip 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 build.properties file to match your environment, e.g:

  • Set the admin server location

admin.url=t3://bpm.nz.oracle.com:7001
server.url=http://bpm.oracle.com:8001

  • Set the middleware home, also called the bea home

bea.home=/u01/oracle/product/middleware

  • Set the oracle and domain home.

oracle.home=${bea.home}/Oracle_SOA1
domain.home=${bea.home}/user_projects/domains/fmw_domain

  • Set the authentication

admin.name=weblogic
admin.pwd=welcome1

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

target=soa_server1

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/jdk.sh

echo 'export PATH=$JAVA_HOME/bin:$PATH'>>/etc/profile.d/jdk.sh

source /etc/profile.d/jdk.sh

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]
[java] Initializing WebLogic Scripting Tool (WLST) ...
[java]
[java] Welcome to WebLogic Server Administration Scripting Shell
[java]
[java] Type help() for help on available commands
[java]
[java] --------------------------- Demo Community  ----------------------------------
[java] serverURL: bpm.nz.oracle.com:8001
[java]
[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://bpm.nz.oracle.com:7001 with userid weblogic ...
     [java] Successfully connected to Admin Server 'AdminServer' that belongs to domain 'fmw_domain'.
     [java]
     [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]
     [java] Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root.
     [java] For more help, use help(domainRuntime)
     [java]

BUILD SUCCESSFUL
Total time: 18 seconds

Comments:

Hi James,
I am trying to add user to the myrealm in weblogic using WebLogic console application. I am not able to figure out how to specify the manager for the newly created user. For instance cdoyle has rsteven specified as his manager, I can see this information while searching for users in BPM but when in weblogic console I can not figure out how to specify the manager-reportee relationship.

Posted by Hemant on August 27, 2010 at 01:59 PM GMT+13:00 #

Hemant,

Not sure this can be done via the console as the attributes don't provide a manager.

I do it by using this ulility and edit the default-demo-community.xml. In the oc4j days I edited the users-properties.xml, but this doesn't seem to exist in 11g.

cheers
James

Posted by James Taylor on August 30, 2010 at 04:58 PM GMT+13:00 #

Hello,

I've tried to install this on the BPM Suite 11gR1 PS3
but end up with the following error during the deployment step:

[java] weblogic.management.DeploymentException: [J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: oracle.soa.workflow, exact-match: false].

What steps can I take to solve this?
Regards Léon

Posted by Leon Smiers on February 12, 2011 at 02:09 PM GMT+13:00 #

Resolved,
Had to change the target to AdminServer instead of soa_server1. I had decided to place the SOA server on the AdminServer.

Léon

Posted by Leon Smiers on February 12, 2011 at 02:28 PM GMT+13:00 #

Installing_seeded_users_for_bpm_11113_on_linux.. Awesome :)

Posted by blogs.oracle.com on April 22, 2011 at 08:18 PM GMT+13:00 #

I get this error. My SOA Server is in a cluster as a single node managed server.

[java] Problem invoking WLST - Traceback (innermost last):
[java] File "/weblogic/install/demo-community/./scripts/WLSMbeanGrantSOAAppRole.py", line 61, in ?
[java] File "/weblogic/install/demo-community/./scripts/WLSMbeanGrantSOAAppRole.py", line 42, in WLSMbeanGrantSOAAppRoleImpl
[java] at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
[java] at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
[java] at javax.management.remote.rmi.RMIConnectionImpl_1035_WLStub.invoke(Unknown Source)
[java] at weblogic.management.remote.common.RMIConnectionWrapper$16.run(ClientProviderBase.java:919)
[java] at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
[java] at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
[java] at weblogic.security.Security.runAs(Security.java:61)
[java] at weblogic.management.remote.common.RMIConnectionWrapper.invoke(ClientProviderBase.java:917)
[java] at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.invoke(RMIConnector.java:978)
[java] COMMAND FAILED due to an unknown reason, Check the stack trace for details
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java]
[java] javax.management.MBeanException: javax.management.MBeanException: Cannot add principal to application role.

Posted by Wiz on August 03, 2011 at 02:58 AM GMT+13:00 #

Unsure, clustering should not be an issue as long as the connection details are correct.

Is this the full stack trace?

from the command line, if you type the command

java -version

Does it come back with 1.6.0_XX?

cheers
James

Posted by James Taylor on August 04, 2011 at 09:35 AM GMT+13:00 #

how to set a configured target??
i have a err:

[echo] Deploying SOATestDemoApp.....
[echo] Deploy Arg Line : ${deploy.arg.line}
[java] weblogic.Deployer invoked with options: -adminurl t3://localhost:71
01 -username weblogic -deploy -name SOATestDemoApp -source ./SOATestDemoApp.ear
-targets AdminServer
[java] 'AdminServer' is not a configured target.
[java] Java Result: 1

seedDemoCommunity:

Posted by guest on March 24, 2012 at 01:21 AM GMT+13:00 #

Not sure if that is the complete statck trace but 71, seems like an odd port for your AdminServer.

If you are able to connect to the AdminServer console via a browser this is all you need to do. in the properties file you need to provide the right values for that AdminServer.

cheers
James

Posted by James Taylor on March 24, 2012 at 07:52 AM GMT+13:00 #

Hello

I have the same problem with WLSMbeanGrantSOAAppRole.py
Could you tell me what this script do and why I could get error javax.management.MBeanException: javax.management.MBeanException: Cannot add principal to application role.

Regards Kuba

Posted by guest on June 29, 2012 at 06:23 AM GMT+13:00 #

Not sure what the solution to this was, but can you check that step 5 comes back with 1.6.0_XX version.

cheers
James

Posted by James Taylor on June 29, 2012 at 10:19 AM GMT+13:00 #

I think the issue is with the listenAddress of your server (Admin or managed). I was targeting the admin server and for some reason the listen address was empty when I looked at it through the admin console. I overrode the value in the start up script with -Dweblogic.ListenAddress=localhost and then tried it. It seems to have worked. The other option is to update the listenAddress through the admin console, restert server and try again.

Posted by guest on October 24, 2012 at 01:55 PM GMT+13:00 #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Discussions and Examples using Oracle Fusion Middleware. Some image links are broken when using Firefox, Safari, and Chrome. If you want to see the full image please use IE.

Twitter:@james8001

tumblr hit counter vistors, thanks for your support

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today