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

Problem with JBoss EJB 2.x J2EE

 
Ranch Hand
Posts: 62
Android PHP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello ! I´ve been assigned to write an Extension to a Client Server Programm which has been created 8 years ago.
Unfortunately im pretty new to the whole Enterprise stuff and even more so to older EJB Technology (prior to 3.0)

Following Situation:

- i have a SVN checkout (Eclipse)
- programm runs on a JBoss 4.02 Server
- JSP used for GUI

Now i have all this source code, but still some classes are missing. I suppose those are the stubs for the EJB
I found the missing classnames in the ejb-jar.xml file inside the checkout. But i cant seem to get the program running on a local JBoss server

I would appreciate any advice on where to start or what do look for.... im pretty much clueless... It seems like the classes im missing arent anywhere or might be created at runtime ?

Thanks in advance !
 
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

Torsten Oppermann wrote:

Now i have all this source code, but still some classes are missing. I suppose those are the stubs for the EJB



JBoss AS created dynamic stubs/proxies for EJBs. Which means that they are not required during compile time. I don't think you are missing the stub classes. Can you post the classnames and also the relevant ejb-jar.xml file contents?
 
Torsten Oppermann
Ranch Hand
Posts: 62
Android PHP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have several xml files:

ejbs.xml


and the ejb-jar.xml which contains exactly the classnames i am missing. Here an excerpt:



would it be possible to port the whole application for a local glassfish server for testing purposes ? i really just need to get this thing running on a local machine and then write a small jsp extension to it

any help very much appreciated !"
 
Jaikiran Pai
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
Classes like these (in the ejb-jar.xml):



are application specific classes and are not generated by the server (neither JBoss nor any other server). So I guess you are missing some source code from your project. You might have to check the documentation or consult someone else about that.

would it be possible to port the whole application for a local glassfish server for testing purposes ?



Irrespective of the server you want to deploy on, you would first need the source code to build the application. You are currently missing some part of that source code, I believe.
 
Torsten Oppermann
Ranch Hand
Posts: 62
Android PHP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok thank you very much, i suspected something like that. Seems like some files aren´t in the actual SVN checkout... must be somewhere else on the server...

thanks again!
 
keep an eye out for scorpions and black widows. But the tiny ads are safe.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic