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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Problem with deployment sample ejb application

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have some trouble with deploying sample apps... Sample comes from EJB 3.0 books. When I deploying it using ant script I get following exception:




I'm beginner in EJB and I don't know how to solve this problem.

 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which version of JBoss AS? You probably don't have jbossall-client.jar (and the list of jars in its META-INF/MANIFEST.MF for AS-5) in the client classpath. Point your client classpath to JBOSS_HOME/client/jbossall-client.jar.
 
Karol Kornecki
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've Jboss-5.0.0.GA and I've jbossall-client.jar in JBOSS_HOME/client directory, but I don't have any jar's list in MANIFEST.MF file just:


I've added jbossall-client.jar to my CLASSPATH but it gives me the same exception
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Sample comes from EJB 3.0 books.



Are you sure that you are reading an EJB 3 book? These line, which causes the exception, looks like an EJB 2 line:



With EJB3, you should use:



The PortableRemoteObject.narrow is required for EJB 2.x, not for EJB 3. If you really got this code from an "EJB3 book", I recommend finding a different book.

By the way, is a JAR file containing TravelAgentRemote in your classpath?

Finally, JBoss in Action has some simple EJB 3 apps that you could use to get started (though the book does not teach EJB3).
 
Karol Kornecki
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sample comes from Enterprise JavaBeans 3.0 Bill Burke, Richard Monson-Haefel 5th edition...
When I've changed for
I've got as following:
 
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Karol Kornecki wrote:Sample comes from Enterprise JavaBeans 3.0 Bill Burke, Richard Monson-Haefel 5th edition...
When I've changed for
I've got as following:



Any update on this? I have the same problem.
 
reply
    Bookmark Topic Watch Topic
  • New Topic