• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with Entity bean .

 
Tirthankar Dutta Chaudhuri
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
when i am running the command java weblogic.ejbc on the jar file created i am getting a warning :

" <Warning> <EJB> <BEA-010212> <The EJB 'Ord
rEJB(Jar: build\tmp_day11ex_Order.jar)' contains at least one method without an
explicit transaction attribute setting."

Total error msg :

c:\examples\day11ex>java weblogic.ejbc -keepgenerated -g -depre
ation build\tmp_day11ex_Order.jar build\day11ex_Order.jar
<Apr 30, 2005 12:32:37 AM GMT+05:30> <Warning> <EJB> <BEA-010212> <The EJB 'Ord
rEJB(Jar: build\tmp_day11ex_Order.jar)' contains at least one method without an
explicit transaction attribute setting. The default transaction attribute of Su
ports will be used for the following methods: home[createQuery(), getTotalAmoun
OfAllOrders(), create(java.lang.String,java.lang.String,double), findByPrimaryK
y(java.lang.String), findByStatus(java.lang.String), remove(java.lang.Object),
indAllOrders(), remove(javax.ejb.Handle)] remote[getOrderDate(), remove(), set
mount(double), getStatus(), setOrderDate(java.sql.Timestamp), getAmount(), setS
atus(java.lang.String), setStudentId(java.lang.String), getStudentId(), getOrde
Id()] >

When i am going to deploy it in weblogic 8.1 server i am getting a error :
Exception:weblogic.management.ApplicationException: activate failed for day11ex_
Order
Module: day11ex_Order Error: Exception activating module: EJBModule(da
y11ex_Order,status=PREPARED)


Unable to deploy EJB: OrderEJB from day11ex_Order.jar:

[EJB:011076]Unable to deploy the EJB 'OrderEJB' because the database table 'orde
rs' is not accessible. Please ensure that this table exists and is accessible.


]
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(S
laveDeployer.java:2491)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
veDeployer.java:798)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDepl
oyer.java:507)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
loyer.java:465)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
dler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>

Table order is present in the database and the data source mentioned in the weblogic-cmp-rdbms-jar.xml maps to data base which contains this table .
Can any one tell me the raeson . I am doing all this in my local machine so i dont think there is any network reletted problem .
Thanks ,
Tirthankar
 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know its a basic thing. But is the data source showing up as active on the target server? I mean the target server on which the beans and the datasource are deployed are the same?
You can ofcourse verify from weblogic console.
 
Tirthankar Dutta Chaudhuri
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The data source is active and is deployed in the same server . When i am running the entity beans using bmp ( with thesame data source ) its working .
looking at the nature of the problem can you tell me what can be the cause of the problem .

Thanks,
Tirthankar
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!