SOA 11g Samples

In SOA 11g the samples are not anymore in the install kit as were in 10g release, instead all samples are now posted on OTN for download.

SOA Suite 11g
Samples -- http://www.oracle.com/technology/sample_code/products/soa/index.html

BPEL 11g Samples -- http://www.oracle.com/technology/sample_code/products/bpel/index.html

Human Workflow 11g Samples -- http://www.oracle.com/technology/sample_code/products/hwf/index.html

Posted in Labels: , , | 1 comments

Deploy EAR or RAR using admin.jar

When trying to deploy an EAR or RAR using "admin.jar" you may get following error

WARNING: Exception returned by remote server: {0} javax.naming.NoPermissionException: This operation was denied. The admin.jar utility can not be used to perform operations against OPMN managed OC4J i nstnaces. Please use Enterprise Manager instead. Refer to the Oracle10iAS Admin Guide or the OC4J User's Guide for more details.

To have an example, let's say you just want to deploy RuleAuthor to a standalone oc4j container :

java -jar admin.jar ormi://localhost:12401 oc4jadmin welcome1 - bindWebApp ruleauthor ruleauthor default-web-site ruleauthor

and you get the error above.


Solution is to add the paramters
-DOPMN=true -Doracle.home=
in the command line

java -DOPMN=true -Doracle.home=/home/oracle/product/10.1.3. 1/OracleAS_1 -jar admin.jar ormi://localhost:12401 oc4jadmin welcome1 - bindWebApp ruleauthor ruleauthor default-web-site ruleauthor

and the deployment will work

[ 2009-04-01 11:37:12.901 BST ] Application Deployer for ruleauthor STARTS.
[ 2009-04-01 11:37:12.921 BST ] Copy the archive to /home/oracle/product/10.1.3
.1/OracleAS_1/j2ee/home/applications/ruleauthor.ear
[ 2009-04-01 11:37:12.945 BST ] Initialize /home/oracle/product/10.1.3.
1/OracleAS_1/j2ee/home/applications/ruleauthor.ear begins...
[ 2009-04-01 11:37:12.946 BST ] Unpacking ruleauthor.ear
[ 2009-04-01 11:37:12.997 BST ] Done unpacking ruleauthor.ear
[ 2009-04-01 11:37:12.999 BST ] Unpacking ruleauthor.war
[ 2009-04-01 11:37:13.299 BST ] Done unpacking ruleauthor.war
[ 2009-04-01 11:37:13.306 BST ] Initialize /home/oracle/product/10.1.3.
1/OracleAS_1/j2ee/home/applications/ruleauthor.ear ends...
[ 2009-04-01 11:37:13.307 BST ] Starting application : ruleauthor
[ 2009-04-01 11:37:13.307 BST ] Initializing ClassLoader(s)
[ 2009-04-01 11:37:13.319 BST ] Initializing EJB container
[ 2009-04-01 11:37:13.320 BST ] Loading connector(s)
[ 2009-04-01 11:37:13.340 BST ] Starting up resource adapters
[ 2009-04-01 11:37:13.351 BST ] Initializing EJB sessions
[ 2009-04-01 11:37:13.352 BST ] Committing ClassLoader(s)
[ 2009-04-01 11:37:13.352 BST ] Initialize ruleauthor begins...
[ 2009-04-01 11:37:13.358 BST ] Initialize ruleauthor ends...
[ 2009-04-01 11:37:13.359 BST ] Started application : ruleauthor
[ 2009-04-01 11:37:13.362 BST ] Application Deployer for ruleauthor COMPLETES.
Operation time: 461 msecs

Posted in Labels: , | 1 comments