[JBoss-user] [Persistence CMP/JBoss] - Re: Erroneous Error Msg. When Hot-Deploying
Maybe you have another version of the bean class in the classpath? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3838909#3838909 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3838909 --- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: Erroneous Error Msg. When Hot-Deploying
BINGO! thank you for your help, alexey. i had an old .ear from when i had used this project as a template/start for a new project ... and when i deleted that .ear file (which included old versions of VendorContactXXX.java), this particular problem of mine with hot deployment was resolved. now i can move on to my next problem with hot deployment. THANKS!!! -robin View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3838996#3838996 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3838996 --- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: Erroneous Error Msg. When Hot-Deploying
minor correction: when i said: in addition, i changed this line in VendorLocal.java which i found to be a mistake: i mean to say that: in addition, i changed this line in VendorContactLocal.java which i found to be a mistake: View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3838868#3838868 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3838868 --- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: Erroneous Error Msg. When Hot-Deploying
alexey, thank you for your interest. i quadruple-checked and quintuple-checked my two CMP related xml files, and here is an excerpt from both pertaining to one of the fields generating an error message, licenseType: ejb-jar.xml: ejb-nameVendorContactEJB/ejb-name cmp-version2.x/cmp-version local-homecom.eventlogic.ejb.vendor.contact.VendorContactHomeLocal/local-home com.eventlogic.ejb.vendor.contact.VendorContactLocal ejb-classcom.eventlogic.ejb.vendor.contact.VendorContactBean/ejb-class persistence-typeContainer/persistence-type prim-key-classjava.lang.Long/prim-key-class False abstract-schema-namevendorcontact/abstract-schema-name cmp-fieldfield-nameGUID/field-name/cmp-field cmp-fieldfield-namevendorGUID/field-name/cmp-field cmp-fieldfield-namefirstName/field-name/cmp-field cmp-fieldfield-namelastName/field-name/cmp-field cmp-fieldfield-namemiddleInitial/field-name/cmp-field cmp-fieldfield-nameaddress1/field-name/cmp-field cmp-fieldfield-nameaddress2/field-name/cmp-field cmp-fieldfield-namecity/field-name/cmp-field cmp-fieldfield-namestate/field-name/cmp-field cmp-fieldfield-namecountry/field-name/cmp-field cmp-fieldfield-namezip/field-name/cmp-field cmp-fieldfield-nameemail/field-name/cmp-field cmp-fieldfield-nameSSN/field-name/cmp-field cmp-fieldfield-namenotes/field-name/cmp-field cmp-fieldfield-namedriversLicenseNumber/field-name/cmp-field cmp-fieldfield-namedriversLicenseState/field-name/cmp-field cmp-fieldfield-namelicenseType/field-name/cmp-field cmp-fieldfield-namedriversLicenseExpiration/field-name/cmp-field cmp-fieldfield-namedateAdded/field-name/cmp-field cmp-fieldfield-namedateUpdated/field-name/cmp-field primkey-fieldGUID/primkey-field security-identityuse-caller-identity//security-identity ejb-local-ref ejb-ref-nameejb/VendorContactNumberEJB/ejb-ref-name ejb-ref-typeEntity/ejb-ref-type local-homecom.eventlogic.ejb.vendor.contactnumber.VendorContactNumberHomeLocal/local-home com.eventlogic.ejb.vendor.contactnumber.VendorContactNumberLocal ejb-linkVendorContactNumberEJB/ejb-link /ejb-local-ref jboss-jdbc.xml: ejb-nameVendorContactEJB/ejb-name table-namevendor_contacts/table-name cmp-fieldfield-nameGUID/field-namecolumn-nameguid/column-name/cmp-field cmp-fieldfield-namevendorGUID/field-namecolumn-namevendor_guid/column-name/cmp-field cmp-fieldfield-namefirstName/field-namecolumn-namefirst_name/column-name/cmp-field cmp-fieldfield-namelastName/field-namecolumn-namelast_name/column-name/cmp-field cmp-fieldfield-namemiddleInitial/field-namecolumn-namemiddle_initial/column-name/cmp-field cmp-fieldfield-nameaddress1/field-namecolumn-nameaddress1/column-name/cmp-field cmp-fieldfield-nameaddress2/field-namecolumn-nameaddress2/column-name/cmp-field cmp-fieldfield-namecity/field-namecolumn-namecity/column-name/cmp-field cmp-fieldfield-namestate/field-namecolumn-namestate/column-name/cmp-field cmp-fieldfield-namecountry/field-namecolumn-namecountry/column-name/cmp-field cmp-fieldfield-namezip/field-namecolumn-namezip/column-name/cmp-field cmp-fieldfield-nameemail/field-namecolumn-nameemail/column-name/cmp-field cmp-fieldfield-nameSSN/field-namecolumn-namessn/column-name/cmp-field cmp-fieldfield-namenotes/field-namenotes/cmp-field cmp-fieldfield-namedriversLicenseNumber/field-namecolumn-namedrivers_license_number/column-name/cmp-field cmp-fieldfield-namedriversLicenseState/field-namecolumn-namedrivers_license_state/column-name/cmp-field cmp-fieldfield-namelicenseType/field-namecolumn-namelicense_type/column-name/cmp-field cmp-fieldfield-namedriversLicenseExpiration/field-namecolumn-namedrivers_license_expiration/column-name/cmp-field cmp-fieldfield-namedateAdded/field-namecolumn-namedate_added/column-name/cmp-field cmp-fieldfield-namedateUpdated/field-namecolumn-namedate_updated/column-name/cmp-field the thing that is REALLY perplexing me here, causing great suspicion on my part, is the fact that on initial startup of jboss, everything works great, every time. no problem at all with those two fields. however on HOT DEPLOY, and hot deploy only, when building a new .ear from Eclipse and dropping it into ~jboss/server/default/deploy, jboss tries to
[JBoss-user] [Persistence CMP/JBoss] - Re: Erroneous Error Msg. When Hot-Deploying
Make sure you do deploy the correct bean class version and the correct class name is used for VendorContactEJB as ejb-class in ejb-jar.xml. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3838608#3838608 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3838608 --- This SF.Net email is sponsored by the new InstallShield X. From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: Erroneous Error Msg. When Hot-Deploying
yes, i have read the error message ;-) i don't see an option to attach files to posts, so i guess i'm just going to be pasting it here. there are two EJB's in question according to the error message - i'll just paste source code for the first one in order to keep things a bit more managable. as far as i can tell, the CMP field it's complaining about, licenseType, is implemented properly. thank you for your interest. -robin VendorContactBean.java: //BEGIN package com.eventlogic.ejb.vendor.contact; import java.util.*; import javax.ejb.*; public abstract class VendorContactBean implements EntityBean { public Long ejbCreate(Long guid) throws CreateException { setGUID(guid); return null; } public void ejbPostCreate(Long guid) {} // relationship fields public abstract Collection getVendorContactNumbers(); public abstract void setVendorContactNumbers(Collection contactNumbers); // persistence fields public abstract Long getGUID(); public abstract void setGUID(Long guid); public abstract long getVendorGUID(); public abstract void setVendorGUID(long vendorGUID); public abstract String getLastName(); public abstract void setLastName(String lastName); public abstract String getFirstName(); public abstract void setFirstName(String firstName); public abstract String getMiddleInitial(); public abstract void setMiddleInitial(String middleInitial); public abstract String getAddress1(); public abstract void setAddress1(String address1); public abstract String getAddress2(); public abstract void setAddress2(String address2); public abstract String getCity(); public abstract void setCity(String city); public abstract String getState(); public abstract void setState(String state); public abstract String getCountry(); public abstract void setCountry(String country); public abstract String getZip(); public abstract void setZip(String zip); public abstract String getEmail(); public abstract void setEmail(String email); public abstract String getSSN(); public abstract void setSSN(String ssn); public abstract String getDriversLicenseNumber(); public abstract void setDriversLicenseNumber(String driversLicenseNumber); public abstract java.util.Date getDriversLicenseExpiration(); public abstract void setDriversLicenseExpiration(java.util.Date aDate); public abstract String getDriversLicenseState(); public abstract void setDriversLicenseState(String driversLicenseState); public abstract String getLicenseType(); public abstract void setLicenseType(String driversLicenseState); public abstract String getNotes(); public abstract void setNotes(String notes); public abstract java.sql.Timestamp getDateAdded(); public abstract void setDateAdded(java.sql.Timestamp ts); public abstract java.sql.Timestamp getDateUpdated(); public abstract void setDateUpdated(java.sql.Timestamp ts); // standard callback methods public void setEntityContext(EntityContext ctx) {} public void unsetEntityContext() {} public void ejbActivate() {} public void ejbPassivate() {} public void ejbLoad() {} public void ejbStore() {} public void ejbRemove() {} } //END VendorContactHomeLocal.java: //BEGIN package com.eventlogic.ejb.vendor.contact; import javax.ejb.*; public interface VendorContactHomeLocal extends javax.ejb.EJBLocalHome { public VendorContactLocal create(Long guid) throws EJBException, CreateException; public VendorContactLocal findByPrimaryKey(Long pk) throws EJBException, FinderException; } //END VendorLocal.java: //BEGIN package com.eventlogic.ejb.vendor; import com.eventlogic.ejb.vendor.contact.*; import javax.ejb.*; import java.util.*; public interface VendorLocal extends EJBLocalObject { // relationship fields public abstract VendorContactLocal getPrimaryContact() throws EJBException; public abstract void setPrimaryContact(VendorContactLocal contact) throws EJBException; public abstract Collection getVendorServices() throws EJBException; public abstract void setVendorServices(Collection vendorServices) throws EJBException; public abstract Collection getVendorLicenses() throws EJBException; public abstract void setVendorLicenses(Collection vendorLicenses) throws EJBException; public abstract Collection getVendorContainers() throws EJBException; public abstract void setVendorContainers(Collection collContainers) throws EJBException; public abstract Collection getVendorVehicles() throws EJBException; public abstract void setVendorVehicles(Collection vendorVehicles) throws EJBException; public abstract Collection getVendorContacts() throws EJBException; public
[JBoss-user] [Persistence CMP/JBoss] - Re: Erroneous Error Msg. When Hot-Deploying
At the risk of sounding stupid, have you read the error message? Have you definied get and set methods for the CMP fields mentioned? If so, show the bean's code (including the interfaces, etc.) View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3838439#3838439 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3838439 --- This SF.Net email is sponsored by the new InstallShield X. From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user