Good morning!
I have an old
Java application, using
EJB 2.1 and BES application server. It's up and runnig fine today, but we have a project to migrate it to a new architecture (and hopefully, get rid of EJB 2.1), the first step being moving it all to
JBoss AS 5.1. In order to do so, first I isolated one EJB module, called Address, and I'm doing tests with it, to get it working. After that, I will try moving the rest of the application.
I don't have experience with EJB (I'm more familiar with Spring or GWT), and I'm facing some troubles while doing this migration to JBoss. This first EJB module I'm trying to migrate, Address, has the following folder structure:
The ejb-jar.xml is like this:
Note: com.project.name is just an alias for the real package.
The jbosscmp-jdbc.xml:
The jboss.xml:
Another note: this sources are like 15 years old. The team responsible for it is no more here, and I have no ideia why they structured the project like this.
Inside the Facade (well, the class with *Facade name
pattern), the code calling the findByPrimaryKey method it's:
And, retrieving the home is like this:
But, when I run the project and try to make a simple search, I get the error:
I can assure the column does exists in the database. This project is up and working fine today on the BES server, and, no changes in the database or the sources have been made (just configuration files).
Thank you all for any help, and please apologise misspellings. English is not my native language.