Meaningless Drivel is fun!*
The moose likes JBoss/WildFly and the fly likes jaws.xml configuration not loading for cmp entity beans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "jaws.xml configuration not loading for cmp entity beans" Watch "jaws.xml configuration not loading for cmp entity beans" New topic
Author

jaws.xml configuration not loading for cmp entity beans

Donald Savory
Greenhorn

Joined: Jun 18, 2009
Posts: 2
I'm upgrading an application from jboss 3.2.5 to jboss 4.2. One of the problems I'm having is that the cmp enitity beans are not being loaded from the tables as defined in META-INF/jaws.xml file within the ejb.jar that is deployed in the ear file. This was working in jboss 3.2.5. I can see from the server.log file that the bean is being loaded with a sql statement that selects from fields and table name that are the same as the cmp-feild names and ejb name - instead of the column-names and table-name defined in the jaws.xml. Inside jaws.xml, I do see that the type-mapping value is "MS SQLSERVER" eventhough the application uses oracle; however, this worked with jboss 3.2.5. I'm not sure how important this type-mapping element is and I don't know what to change it to anyway. Here's is an exceprt from the jaws.xml:


Donald Savory
Greenhorn

Joined: Jun 18, 2009
Posts: 2
According to Redhat, jaws.xml is not supported. So I used jbosscmp-jdbc.xml instead. Everything is working fine now. There is much, much work migrating the information in jaws.xml to jbosscmp-jdbc.xml.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jaws.xml configuration not loading for cmp entity beans
 
Similar Threads
CMP 2.0 problem in Jboss 4.0.2
3.2 jbosscmp-jdbc.xml - datasource-mapping tag?
CMP with JBOSS
Can't deploy EJB to JBOSS after adding '@ejb.finder' clause
JBOSS CMP finder methods