Hi all,
i was about to start my standalone
odiagent(11g) creation in command prompt i am getting the following error.Can anyone suggest me what should i do.
2014-01-30 12:34:47.727 NOTIFICATION ODI-1128 Agent is starting. Container: STANDALONE. Agent Version: 11.1.1.7.0 - 02/03/2013. Port: 20910. JMX Port: 21910.
2014-01-30 12:34:48.492 ERROR Context initialization failed.
Log file:
[2014-01-30T12:54:13.174+02:00] [mortbay] [WARNING] [] [org.mortbay] [tid: 10] [ecid: 0000KFYmDtWF8DG6yzJb6G1IuYxJ000001,0] Nested in org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'runtimeAgent' defined in ServletContext resource [/WEB-INF/ctx/agent.xml]: Initialization of bean failed; nested exception is java.lang.IllegalStateException: Cannot satisfy IAgentNameAware for bean 'runtimeAgent' without agent name:[[
oracle.odi.runtime.agent.support.AgentNameAwareProcessor.postProcessBeforeInitialization(AgentNameAwareProcessor.java:55)
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:304)
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1106)
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:431)
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:254)
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144)
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:251)
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:284)
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:241)
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1239)
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:466)
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
org.mortbay.jetty.Server.doStart(Server.java:224)
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
oracle.odi.Agent.startAgent(Agent.java:306)
oracle.odi.Agent.main(Agent.java:697)
]]
odiparams.bat file
REM #
REM # Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
REM #
REM # PRODUCT
REM # Oracle Data Integrator
REM #
REM # FILENAME
REM # odiparams.bat
REM #
REM # DESCRIPTION
REM # Configuration script. This script contains the parameters for starting
REM # Oracle Data Integrator modules.
REM #
REM # VARIABLES DESCRIPTION
REM #
REM # The following variables should be configured in order to run operations
REM # requiring a repository connection (agent, agentstop, startscen, agentscheduler, etc.)
REM #
REM # ODI_MASTER_DRIVER
REM # JDBC driver used to connect the Master Repository.
REM # ODI_MASTER_URL
REM # JDBC URL used to connect the Master Repository.
REM # ODI_MASTER_USER
REM # Database account used to connect the Master Repository.
REM # ODI_MASTER_ENCODED_PASS
REM # Database account password. The password must be encoded with the
REM # "encode.[sh|bat] <password>" command.
REM #
REM # The following variables should be configured. They are user credentials
REM # used only by the agent startup program.
REM #
REM # ODI_SUPERVISOR
REM # OracleDI supervisor user name.
REM # ODI_SUPERVISOR_ENCODED_PASS
REM # OracleDI supervisor user password. The password must be encoded with the
REM # "encode.[sh|bat] <password>" command.
REM #
REM # The following variables should be configured. They are user credentials
REM # for all the tools (e.g. startscen, restartsession, agentstop, startcmd, etc.)
REM #
REM # ODI_USER
REM # OracleDI user used to launch a scenario.
REM # ODI_ENCODED_PASS
REM # OracleDI user password. The password must be encoded with the
REM # "encode.[sh|bat] <password>" command.
REM #
REM # The following variables are required if HTTPS protocol is selected as incoming
REM # listening protocol on the ODI agent. All passwords must be encoded with the
REM # "encode.[sh|bat] <password>" command.
REM #
REM # ODI_KEYSTORE_ENCODED_PASS
REM # Keystore password, its value is mandatory.
REM # ODI_KEY_ENCODED_PASS
REM # Key password, its value is optional.
REM # ODI_TRUSTSTORE_ENCODED_PASS
REM # Truststore password, its value is optional.
REM # Additionally, -Djavax.net.ssl.keyStore, -Djavax.net.ssl.keyStoreType -Djavax.net.ssl.trustStore
REM # and -Djavax.net.ssl.trustStoreType may be configured through ODI_JAVA_OPTIONS variable.
REM #
REM # The following work repository name variable is required by startcmd (when the specified
REM # command needs to connects to the work repository), startscen, and restartsession scripts.
REM # The agent startup and agentstop programs do not need this variable.
REM #
REM # ODI_SECU_WORK_REP
REM # Name of the Work Repository to connect. This Work Repository must
REM # be attached to the master repository.
REM #
REM # The following variables can be changed to tune OracleDI configuration.
REM #
REM # ODI_INIT_HEAP
REM # Initial java machine heap size used by OracleDI modules.
REM # ODI_MAX_HEAP
REM # Maximum java machine heap size used by OracleDI modules.
REM # ODI_JAVA_HOME
REM # Installation directory of the java virtual machine used for
REM # OracleDI.
REM # ODI_ADDITIONAL_JAVA_OPTIONS
REM # Additional Java options, such as -Duser.language or -Duser.country.
REM # ODI_ADDITIONAL_CLASSPATH
REM # Classpath for additional classes (Windows 95/98/Me Only)
REM # ODI_HOME
REM # Set this environment variable separately. If it is unset, the script can
REM # be launched only from the ./bin directory. If running the setup
REM # program, this variable is automatically set.
REM # ODI_CONNECTION_RETRY_COUNT
REM # The number of retries to re-establish master or work repository
REM # connections during connection failures. If set to 0, no retry will
REM # be performed.
REM # ODI_CONNECTION_RETRY_DELAY
REM # Time in milliseconds between the retries of master or work
REM # repository connections.
REM # ODI_JMX_PROTOCOL
REM # Protocol used to access the ODI MBeans, its value can be either
REM # rmi or iiop
REM #
REM # Other variables should be left unchanged.
REM #
REM # Condition to check instance parameter and if passed set value of ODI_INSTANCE_HOME
if "%1" == "-INSTANCE" set ODI_INSTANCE_HOME=%~2
REM # condition to check from where to pick paramters values;instance.sh or odiparams.sh
if "%ODI_INSTANCE_HOME%" == "" GOTO GET_ODIPARAMS_PROP
GOTO GET_INSTANCE_PROP
:GET_ODIPARAMS_PROP
REM #
REM # Repository Connection Information
REM #
set ODI_MASTER_DRIVER=oracle.jdbc.OracleDriver
set ODI_MASTER_URL=jdbc:oracle:thin:@HyperionSvr1.bnrw.local:1521:BNRHYPUAT
set ODI_MASTER_USER=UATODI1
set ODI_MASTER_ENCODED_PASS=f8yaeEM.9OcEFe0QUUznJj3Pf
REM #
REM # User credentials for agent startup program
REM #
set ODI_SUPERVISOR=SUPERVISOR
set ODI_SUPERVISOR_ENCODED_PASS=hZyHJUFGr7XTVSSH.8iyEy
REM #
REM # User credentials for ODI tools
REM #
set ODI_USER=%ODI_SUPERVISOR%
set ODI_ENCODED_PASS=%ODI_SUPERVISOR_ENCODED_PASS%
REM #
REM # Keystore/Truststore credentials
REM #
Set ODI_KEYSTORE_ENCODED_PASS=
Set ODI_KEY_ENCODED_PASS=
Set ODI_TRUST_STORE_ENCODED_PASS=
REM #
REM # Work Repository Name
REM #
set ODI_SECU_WORK_REP=WORKREP
REM # Config file position
set ODI_JPS_CONFIG=./jps-config.xml
set ODI_LOGGING_CONF_FILE=./ODI-logging-config.xml
REM #
REM # Additional Java Options
REM #
set ODI_ADDITIONAL_JAVA_OPTIONS=
GOTO SET_OTHER_PROP
:GET_INSTANCE_PROP
call "%ODI_INSTANCE_HOME%\instance.bat"
GOTO SET_OTHER_PROP
:SET_OTHER_PROP
REM #
REM # Connection retry parameters
REM #
set ODI_CONNECTION_RETRY_COUNT=0
set ODI_CONNECTION_RETRY_DELAY=7000
REM #
REM # Java virtual machine
REM #
set ODI_JAVA_HOME=C:\Program Files\Java\jdk1.6.0_45
REM #
REM # Other Parameters
REM #
set ODI_INIT_HEAP=32m
set ODI_MAX_HEAP=256m
set ODI_JMX_PROTOCOL=rmi
REM # Windows 95,98, Me users only: Any package files added to the /drivers
REM # or /lib/scripting directory should be manually declared in the
REM # ODI_ADDITIONAL_CLASSPATH variable
REM # set ODI_ADDITIONAL_CLASSPATH=%ODI_ADDITIONAL_CLASSPATH%;\mydir\myfile.jar
REM # DO NOT EDIT BELOW THIS LINE !
REM # ----------------------------------------------------------------------------
set ODI_JAVA_EXE=%ODI_JAVA_HOME%\bin\java.exe
set ODI_JAVAW_EXE=%ODI_JAVA_HOME%\bin\javaw.exe
set ODI_JAVAC_EXE=%ODI_JAVA_HOME%\bin\javac.exe
REM # Testing the java virtual machine
if not exist "%ODI_JAVA_EXE%" goto NOJAVA
if not exist "%ODI_JAVAW_EXE%" goto NOJAVA
if not exist "%ODI_JAVAC_EXE%" goto NOJAVAC
goto OKJAVA
:NOJAVA
@echo The Java Virtual Machine was not found at the following location: %ODI_JAVA_HOME%
@echo The ODI_JAVA_HOME environment variable is not defined correctly.
@echo Please set this variable in odiparams.bat.
goto OKJAVA
:NOJAVAC
@echo A JDK is required to execute Web Services with OracleDI. You are currently using a JRE.
goto OKJAVA
:OKJAVA
if "%ODI_HOME%" == "" set ODI_HOME=..
REM # Change the current directory to %ODI_HOME%/bin
cd "%ODI_HOME%\bin"
REM # default classpath
REM # Note that it is important that the lib directory is first on the classpath.This is to ensure
REM # that any resources such as common-logging.properties will be picked up from this directory
set ODI_CLASSPATH=%ODI_HOME%\lib\.;%ODI_HOME%\drivers\.
:WINNT
REM # Windows NT, 2000, 2003, XP
set ODI_START_TITLE="OracleDI"
REM #
REM # Dynamic construction of the classpath for the JDBC drivers and scripting engines.
REM # To add a new driver or scripting engine, simple copy the .jar or .zip file to
REM # the %ODI_HOME%\drivers or %ODI_HOME%\lib\scripting directory.
REM #
for %%i in ("%ODI_HOME%\..\..\odi_misc\*.zip") do call set ODI_CLASSPATH=%%ODI_CLASSPATH%%;%ODI_HOME%\..\..\odi_misc\%%~ni%%~xi
set ODI_CLASSPATH=%ODI_CLASSPATH%;%ODI_HOME%\..\..\odi_misc\*
for %%i in ("%ODI_HOME%\lib\*.zip") do call set ODI_CLASSPATH=%%ODI_CLASSPATH%%;%ODI_HOME%\lib\%%~ni%%~xi
set ODI_CLASSPATH=%ODI_CLASSPATH%;%ODI_HOME%\lib\oracle.odi-agent-jse_11.1.1.jar
set ODI_CLASSPATH=%ODI_CLASSPATH%;%ODI_HOME%\..\..\setup\manual\oracledi-sdk\oracle.odi-sdk-jse_11.1.1.jar
set ODI_CLASSPATH=%ODI_CLASSPATH%;%ODI_HOME%\..\..\modules\oracle.jps_11.1.1\jps-manifest.jar
for %%i in ("%ODI_HOME%\drivers\*.zip") do call set ODI_CLASSPATH=%%ODI_CLASSPATH%%;%ODI_HOME%\drivers\%%~ni%%~xi
set ODI_CLASSPATH=%ODI_CLASSPATH%;%ODI_HOME%\drivers\*
for %%i in ("%ODI_HOME%\lib\scripting\*.zip") do call set ODI_CLASSPATH=%%ODI_CLASSPATH%%;%ODI_HOME%\lib\scripting\%%~ni%%~xi
set ODI_CLASSPATH=%ODI_CLASSPATH%;%ODI_HOME%\lib\scripting\*
GOTO REPCONNECT
:REPCONNECT
set ODI_CLASSPATH=%ODI_CLASSPATH%;%ODI_ADDITIONAL_CLASSPATH%
set ODI_PARAMS_JAVA_OPTION="-DODI_MASTER_DRIVER=%ODI_MASTER_DRIVER%" "-DODI_MASTER_URL=%ODI_MASTER_URL%" "-DODI_MASTER_USER=%ODI_MASTER_USER%" "-DODI_MASTER_ENCODED_PASS=%ODI_MASTER_ENCODED_PASS%" "-DODI_SECU_WORK_REP=%ODI_SECU_WORK_REP%" "-DODI_SUPERVISOR=%ODI_SUPERVISOR%" "-DODI_SUPERVISOR_ENCODED_PASS=%ODI_SUPERVISOR_ENCODED_PASS%" "-DODI_USER=%ODI_USER%" "-DODI_ENCODED_PASS=%ODI_ENCODED_PASS%" "-DODI_JMX_PROTOCOL=%ODI_JMX_PROTOCOL%"
set ODI_JAVA_OPTIONS="-Doracle.security.jps.config=%ODI_JPS_CONFIG%" %ODI_PARAMS_JAVA_OPTION%
set ODI_LOG_OPTIONS="-Dorg.mortbay.log.class=oracle.odi.logging.AgentJettyLogger" "-Doracle.core.ojdl.logging.config.file=%ODI_LOGGING_CONF_FILE%" "-Djava.util.logging.config.class=oracle.core.ojdl.logging.LoggingConfiguration"
set ODI_JAVAW_START0=start %ODI_START_TITLE% "%ODI_JAVAW_EXE%" -Xms%ODI_INIT_HEAP% -Xmx%ODI_MAX_HEAP% %ODI_JAVA_OPTIONS% %ODI_ADDITIONAL_JAVA_OPTIONS% %ODI_LOG_OPTIONS%
set ODI_JAVA_START0="%ODI_JAVA_EXE%" -Xms%ODI_INIT_HEAP% -Xmx%ODI_MAX_HEAP% %ODI_JAVA_OPTIONS% %ODI_ADDITIONAL_JAVA_OPTIONS% %ODI_LOG_OPTIONS%
set ODI_JAVAW_START=%ODI_JAVAW_START0% -classpath "%ODI_CLASSPATH%"
set ODI_JAVA_START=%ODI_JAVA_START0% -classpath "%ODI_CLASSPATH%"
set ODI_REPOSITORY_PARAMS="-MASTER_DRIVER=%ODI_MASTER_DRIVER%" "-MASTER_URL=%ODI_MASTER_URL%" "-MASTER_USER=%ODI_MASTER_USER%" "-MASTER_ENCODED_PASS=%ODI_MASTER_ENCODED_PASS%" "-WORK_REPOSITORY=%ODI_SECU_WORK_REP%" "-ODI_SUPERVISOR=%ODI_SUPERVISOR%" "-ODI_SUPERVISOR_ENCODED_PASS=%ODI_SUPERVISOR_ENCODED_PASS%" "-ODI_USER=%ODI_USER%" "-ODI_ENCODED_PASS=%ODI_ENCODED_PASS%" "-ODI_CONNECTION_RETRY_COUNT=%ODI_CONNECTION_RETRY_COUNT%" "-ODI_CONNECTION_RETRY_DELAY=%ODI_CONNECTION_RETRY_DELAY%" "-ODI_KEYSTORE_ENCODED_PASS=%ODI_KEYSTORE_ENCODED_PASS%" "-ODI_KEY_ENCODED_PASS=%ODI_KEY_ENCODED_PASS%" "-ODI_TRUST_STORE_ENCODED_PASS=%ODI_TRUST_STORE_ENCODED_PASS%"
regards
roshan