aspose file tools*
The moose likes JBoss/WildFly and the fly likes Problem with JBoss EJB 2.x J2EE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Problem with JBoss EJB 2.x J2EE" Watch "Problem with JBoss EJB 2.x J2EE" New topic
Author

Problem with JBoss EJB 2.x J2EE

Torsten Oppermann
Ranch Hand

Joined: Dec 22, 2010
Posts: 62

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 !


OCPJP 6 - 93%
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10285
    
169

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?

[My Blog] [JavaRanch Journal]
Torsten Oppermann
Ranch Hand

Joined: Dec 22, 2010
Posts: 62

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

Joined: Jul 20, 2005
Posts: 10285
    
169

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

Joined: Dec 22, 2010
Posts: 62

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!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problem with JBoss EJB 2.x J2EE