This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Building Blockchain Apps and have Michael Yuan on-line!
See this thread for details.
Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization 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
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Problem with JBoss EJB 2.x J2EE

 
Ranch Hand
Posts: 62
Android PHP Java
  • 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 !
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • 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 PHP Java
  • 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
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • 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 PHP Java
  • 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!
 
My favorite is a chocolate cupcake with white frosting and tiny ad sprinkles.
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!