Monday, August 28, 2006

How can i deploy on AS 10.1.3

I deployed by
$ java -jar $ORACLE_HOME/j2ee/home/admin.jar ormi://localhost:12401 oc4jadmin password -deploy -file ./dbfunc.ear -deploymentName dbfunc

Error: Unexpected error during lookup : Lookup error: javax.naming.NoPermissionException: This operation was denied. The admin.jar utility can not be used to perform operations against OPMN managed OC4J instnaces. Please use Enterprise Manager instead. Refer to the Oracle10iAS Admin Guide or the OC4J User's Guide for more details.; nested exception is:
javax.naming.NoPermissionException: This operation was denied. The admin.jar utility can not be used to perform operations against OPMN managed OC4J instnaces. Please use Enterprise Manager instead. Refer to the Oracle10iAS Admin Guide or the OC4J User's Guide for more details.

I found some problem, So I edited script to deploy.
$ java -DOPMN=true -Doracle.home=$ORACLE_HOME -jar /oracle/product/10.1.3/OracleAS/j2ee/home/admin.jar ormi://localhost:12401 oc4jadmin password -deploy -file ./dbfunc.ear -deploymentName dbfunc

[ 2006-08-28 15:11:04.767 ICT ] Application Deployer for dbfunc STARTS.
[ 2006-08-28 15:11:04.768 ICT ] Stopping application : dbfunc
[ 2006-08-28 15:11:04.794 ICT ] Stopped application : dbfunc
[ 2006-08-28 15:11:04.795 ICT ] Undeploy previous deployment
[ 2006-08-28 15:11:04.860 ICT ] Initialize /oracle/product/10.1.3/OracleAS/j2ee/home/applications/dbfunc.ear begins...
[ 2006-08-28 15:11:04.872 ICT ] Initialize /oracle/product/10.1.3/OracleAS/j2ee/home/applications/dbfunc.ear ends...
[ 2006-08-28 15:11:04.873 ICT ] Starting application : dbfunc
[ 2006-08-28 15:11:04.874 ICT ] Initializing ClassLoader(s)
[ 2006-08-28 15:11:04.875 ICT ] Initializing EJB container
[ 2006-08-28 15:11:04.876 ICT ] Loading connector(s)
[ 2006-08-28 15:11:04.899 ICT ] Starting up resource adapters
[ 2006-08-28 15:11:04.900 ICT ] Initializing EJB sessions
[ 2006-08-28 15:11:04.901 ICT ] Committing ClassLoader(s)
[ 2006-08-28 15:11:04.901 ICT ] Initialize dbfunc_web begins...
[ 2006-08-28 15:11:04.921 ICT ] Initialize dbfunc_web ends...
[ 2006-08-28 15:11:04.926 ICT ] Started application : dbfunc
[ 2006-08-28 15:11:04.932 ICT ] Application Deployer for dbfunc COMPLETES. Operation time: 165 msecs

$ java -DOPMN=true -Doracle.home=$ORACLE_HOME -jar

$ORACLE_HOME/j2ee/home/admin.jar ormi://localhost:12401 oc4jadmin passwordadmin -bindWebApp dbfunc dbfunc_web default-web-site /plsqlsample

No comments: