• 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

remote exception

 
Ranch Hand
Posts: 647
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
In my ejb examples i am able to create the home object..but while creating the remote object it throws an exception. I am able to see the jndi object on the jndi tree.i am using wls 6.1
please let me know the possible reasons..
thanks,
trupti
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hate to be blunt, but you're going to have to be more specific if you want anyone to provide any meaningful insight. perhaps posting the exception stack trace would help.
 
trupti nigam
Ranch Hand
Posts: 647
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
From the server side that is on wls server i am able to see
java.rmi.UnexpectedError
saying "failed to invoke on method create"
thanks,
trupti
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
in your home interface,
- do you have a create(...) method that matches an ejbCreate(...) method in the bean class?
- is the create(...) method public?
- and does it return an object implementing your remote reference?
cheers,
-miftah
 
trupti nigam
Ranch Hand
Posts: 647
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
I have done all the things that you have mentioned earlier..
my create() method in the home interface matches with the ejbCreate() of the bean.
create() method is public.
The create() method returns the remote object.
but still i am getting that error.
I hope the problem is not with the wls6.1 as i am using the evaluation copy..
what i have observered is ..when i deploy the Bean on the wls console i see the check box checked meaning it is deployed.
but when i view the jndi tree..suppose the name of the jndi tree is "helloWorld.hello"..i am able to see only the naming context & the Bound object is not visible..but when i shut down the server & restart it..& again build the example..it's getting deplyoed & i can see the naming context & the bound object too..
This is something wiered i have observed .i don't know the error which i am getting has some relation to this problem..
please let me know the reason if any body knows it..
thanks,
trupti
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
as you are using the wls6.1 evaluation, its better to deploy your EJB manually(without using the console gui). For this, run the server in Development mode (for this set STARTMODE=false in your startWebLogic.cmd file). Once you are running in Development mode, you create your .jar file with all related files and copy this file to the 'applications' folder of your Server. Check the running default server's output buffer for any error messages/exceptions. If it is throwing some exceptions, the problem mostly lies within the deployment descriptors. Viewing the logs/wl-domain.log file will give you a better picture.
------------------
Take care
r@njith
 
reply
    Bookmark Topic Watch Topic
  • New Topic