Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem with Entity bean .

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
I carry this gun in case a vending machine doesn't give me my fritos. This gun and this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic