• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with JBoss EJB 2.x J2EE

 
Torsten Oppermann
Ranch Hand
Posts: 62
Android Java PHP
  • 0
  • Mark post as helpful
  • send pies
  • 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 !
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • 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 Java PHP
  • 0
  • Mark post as helpful
  • send pies
  • 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
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • 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 Java PHP
  • 0
  • Mark post as helpful
  • send pies
  • 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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic