I am using weblogic server6.0.
I am trying to deploy a sample cmp entitibean which has given in the examples, AccountBean.
I have created a connection pool called demopool with all the necessary information.
I have created a data source with name examples-dataSource-demoPool and jndi name examples-dataSource-demoPool, and in this I gave demopool in the pool name.
I hace successfully compiled the .jar file.
But when I tried to deploy this bean I am getting the error like:
C:\>java weblogic.deploy -port 7001 -host localhost deploy harireddy AccountHome
Error Deploying CMP EJB:; nested exception is:
weblogic.ejb20.cmp.rdbms.RDBMSException: JNDI lookup of JDBC datasource
'examples-dataSource-demoPool' failed : javax.naming.NameNotFoundException: Unab
le to resolve examples-dataSource-demoPool. Resolved: '' Unresolved:'examples-da
taSource-demoPool' ; remaining name ''
Error deploying application AccountHome30: Could not deploy: 'AccountHome30.jar'
Possible reasons include:
1. The bean or an interface class has been modified but
the deployment descriptor has not been updated
2. The database mappings in the deployment descriptor do not
match the database definition
3. The jar file is not a valid jar file
4. The jar file does not contain a valid bean
I am able to run session beans in my machine.
But till now I couldn't deploy any Entity bean.
Some details about the connection pool:
Driver class name: oracle.jdbc.driver.OracleDriver
Name : examples-dataSource-demoPool
jndi name : examples-dataSource-demoPool
pool name : demopool
I will be greatfull if some help me to solve this problem.
Awaiting for your replay.