Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Facing Problem in Deploying EJB in Jboss 4.2.2 GA

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi here is the code and please tell me how to deploy this bean.

This is my remote Interface




This is my session bean



and this is my home interface





This is my ejb-jar.xml




this is my jboss.xml




and finally this is my test.java to test the ejb



when running the test class it prints up to 4 but throws exception before 5


can somebody tell me where I am wrong . I have put the jar file in the default deploy dirctory of the server.

 
Ranch Hand
Posts: 205
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you are giving home interface name in both xml files like



you should mention ejb class name


 
Dilip Mallik
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
after making above changes I am getting the same exception.

the exception is

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I realize it's been a long time since this post, but I had the same problem and wound up here after a few searches.

After a lot of tinkering, I've actually found the solution myself, so I thought I should share.

It's the port that's wrong.

JNDI defaults to 1099 on JBoss, and 8080 is HTTP.

So, instead of

127.0.0.1:8080

it's supposed to be

127.0.0.1:1099
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic