[Beginners Corner] - Re: Urgent => java.lang.NoClassDefFoundError : jboss Startup
by gohil_jigar
JAR & WAR both are separate...
& also the Manifest.mf of the WAR doesn't contain a reference to the EJB JAR...
============================
STRUCTURE OF Deploy Directory of Jboss
============================
\jboss-4.0.new3\server\default\deploy]
|- [http-invoker.sar]
| |- [invoker.war]
| | |- [WEB-INF]
| | |- [classes]
| | | |- [org]
| | | |- [jboss]
| | | |- [invocation]
| | | |- [http]
| | | |- [servlet]
| | | |- InvokerServlet$GetCredentialAction.class
| | | |- InvokerServlet$GetPrincipalAction.class
| | | |- InvokerServlet.class
| | | |- NamingFactoryServlet.class
| | | *- ReadOnlyAccessFilter.class
| | |- jboss-web.xml
| | *- web.xml
| |- [META-INF]
| |- jboss-service.xml
|- [jboss-aop.deployer]
| |- [META-INF]
| | |- jboss-service.xml
| | *- MANIFEST.MF
| |- base-aop.xml
| |- javassist.jar
| |- jboss-aop.jar
| |- jboss-aspect-library.jar
| *- trove.jar
|- [jboss-hibernate.deployer]
| |- cglib-full-2.0.1.jar
| *- hibernate2.jar
|- [jbossweb-tomcat50.sar]
|- [jboss-ws4ee.sar]
|- [jfree_demo.war]
|- [jms]
|- [jmx-console.war]
|- [management]
|- [MoneyMaximizerEJB.jar]
|- [MoneyMaximizerWeb.war]
|- bsh-deployer.xml
|- cache-invalidation-service.xml
|- client-deployer-service.xml
|- ear-deployer.xml
|- ejb-deployer.xml
|- hsqldb-ds.xml
|- jbossjca-service.xml
|- jboss-local-jdbc.rar
|- jboss-xa-jdbc.rar
|- jmx-invoker-service.xml
|- mail-ra.rar
|- mail-service.xml
|- monitoring-service.xml
|- mysql-ds.xml
|- mysql-ds.xml.bak
|- mysqlndb-ds.xml
|- mysqlndb-ds.xml.bak
|- properties-service.xml
|- schedule-manager-service.xml
|- scheduler-service.xml
|- sqlexception-service.xml
*- uuid-key-generator.sar
==============
STRUCTURE => jar
==============
\jboss-4.0.new2\server\default\deploy\MoneyMaximizerEJB.jar]
|- [com]
| |- [moneymax]
| |- [apptier]
| | |- [adminworkflow]
| | | |- [broker]
| | | | |- [ejb]
| | | | | |- Broker.class
| | | | | |- BrokerBean.class
| | | | | *- BrokerHome.class
| | | | *- BrokerBOImpl.class
| | | |- [currency]
| | | | |- [ejb]
| | | | | |- Currency.class
| | | | | |- CurrencyEJB.class
| | | | | *- CurrencyHome.class
| | | | *- CurrencyBOImpl.class
| | | |- [exchange]
| | | | |- [ejb]
| | | | | |- Exchange.class
| | | | | |- ExchangeEJB.class
| | | | | *- ExchangeHome.class
| | | | *- ExchangeBOImpl.class
| | | |- [futuregearing]
| | | | |- [ejb]
| | | | | |- FutureGearing.class
| | | | | |- FutureGearingEJB.class
| | | | | *- FutureGearingHome.class
| | | | *- FutureGearingBOImpl.class
| | | |- [holiday]
| | | | |- [ejb]
| | | | | |- Holiday.class
| | | | | |- HolidayEJB.class
| | | | | *- HolidayHome.class
| | | | *- HolidayBOImpl.class
| | | |- [instrument]
| | | | |- [bonds]
| | | | | |- [ejb]
| | | | | | |- Bonds.class
| | | | | | |- BondsEJB.class
| | | | | | *- BondsHome.class
| | | | | *- BondsBOImpl.class
| | | | |- [equity]
| | | | | |- [ejb]
| | | | | | |- Equity.class
| | | | | | |- EquityEJB.class
| | | | | | *- EquityHome.class
| | | | | *- EquityBOImpl.class
| | | | |- [equityoptions]
| | | | | |- [ejb]
| | | | | | |- EquityOption.class
| | | | | | |- EquityOptionEJB.class
| | | | | | *- EquityOptionHome.class
| | | | | *- EquityOptionBOImpl.class
| | | | |- [forex]
| | | | | |- [ejb]
| | | | | | |- Forex.class
| | | | | | *- ForexEJB.class
| | | | | *- ForexBOImpl.class
| | | | |- [futureoptions]
| | | | |- [futures]
| | | | |- [mutualfunds]
| | | |- [instrumentmasterupload]
| | | |- [stocksplit]
| | | |- [usermaintenance]
| | |- [commonworkflow]
| | |- [fix]
| | |- [onlinepricefeed]
| | |- [riskmath]
| | |- [userworkflow]
| | |- [utility]
| |- [datatier]
| |- [framework]
| |- [hibernate]
| |- [hibernatendb]
| |- [processes]
| |- [riskmath]
| |- [util]
| |- [valueobject]
|- [META-INF]
|- Alerts.properties
|- FIX.properties
|- log4j.properties
*- moneymax.properties
==============================
U can check out the path of UtilityDAO class its correct....
==============================
\jboss-4.0.new2\server\default\deploy\MoneyMaximizerEJB.jar\com\moneymax\datatier]
|- [adminworkflow]
| |- [broker]
| | |- BrokerMasterDAO.class
| | |- CountryMasterDAO.class
| | |- TblBrokerTypeDAO.class
| | |- TblBrokerTypeDetDAO.class
| | *- TblInstrumentMasterDAO.class
| |- [currency]
| | |- CurrencyMasterDAO.class
| |- [exchange]
| | |- ExchangeMasterDAO.class
| |- [futuregearing]
| | |- FutureGearingDAO.class
| |- [holiday]
| | |- HolidayMasterDAO.class
| |- [instrument]
| | |- BondsDAO.class
| | |- EquityDAO.class
| | |- EquityOptionDAO.class
| | |- ForexDAO.class
| | |- FuturesDAO.class
| | *- MutualFundDAO.class
| |- [instrumentmasterupload]
| | |- InstrumentMasterUploadDAO.class
| |- [stocksplit]
| | |- StockSplitDAO.class
| |- [usermaintenance]
| |- UserMainDAO.class
|- [commonworkflow]
| |- [alerts]
| | |- AlertsDAO.class
| |- [audittrail]
| | |- AuditTrailDAO.class
| |- [calculator]
| | |- CalculatorDAO.class
| |- [checkit]
| |- [executionorder]
| | |- ExecutionOrderDAO.class
| | *- ExecutionOrderDao1.class
| |- [newscharts]
| | |- NewsChartsDAO.class
| |- [notes]
| | |- NotesDAO.class
| |- [performance]
| | |- PerformanceReportDAO.class
| |- [protectit]
| | |- ProtectItDAO.class
| |- [risk]
| | |- RiskDAO.class
| |- [riskmath]
| |- [riskmonitor]
| | |- RiskMonitorDAO.class
| |- [riskreport]
| | |- RiskReportDAO.class
| |- [setpricealert]
| | |- SetPriceAlertDAO.class
| |- [sizeit]
| | |- InstrumentMasterDAO.class
| | |- StoporderPerVariantsDAO.class
| | *- TransactionTypesDAO.class
| |- [stopadjuster]
| |- [trackit]
| | |- TrackitDao.class
| |- [tradeit]
| | |- TradeItDAO.class
| | |- TradeItInsertDAO.class
| | *- TradeItNDBDao.class
| |- [traderegister]
| |- [workingorder]
|- [fix]
|- [onlinepricefeed]
|- [reuters]
|- [riskmath]
|- [userworkflow]
*- UtilityDAO.class
===============================
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4216473#4216473
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4216473
15 years, 10 months
[EJB 3.0] - Re: @embedable annotation
by itsme
For the first one (use of @Embaddable and @Embedded) Customer class must be changed to:
| @Entity
| public class Customer implements Serializable {
| // ... your member fields
| private Address address;
| // ... your set-/get-Methods
| @Embedded
| public Address getAddress() {
| return address;
| }
| // ... setter as well
| }
|
For the second one (keeping @Embeddable and building a wrapper):
| @Entity
| public class AddressWrapper implements Serializable {
|
| @Id
| private String id;
|
| @Embedded
| private Address address;
|
| // getter and setter
| }
|
In this case your Customer class must be changed like
| @Entity
| public class Customer implements Serializable {
| // ... your member fields
| private AddressWrapper address;
| // ... your set-/get-Methods
| @OneToOne
| public AddressWrapper getAddress() {
| return address;
| }
| // ... setter as well
| }
|
For the last one you must change the annotation of Address to @Entity and change your Customer class like the above (without Wrapper).
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4216472#4216472
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4216472
15 years, 10 months
[EJB 3.0] - Re: @embedable annotation
by kkangsar
This is what i did
@Embeddable
public class Address implements Serializable{
private static final long serialVersionUID = 1L;
private String addr1;
private String addr2;
private String addr3;
@Column(name="ADDR1", length=30)
public String getAddr1() {
return addr1;
}
public void setAddr1(String addr1) {
this.addr1 = addr1;
}
@Column(name="ADDR2", length=30)
public String getAddr2() {
return addr2;
}
public void setAddr2(String addr2) {
this.addr2 = addr2;
}
@Column(name="ADDR3", length=30)
public String getAddr3() {
return addr3;
}
public void setAddr3(String addr3) {
this.addr3 = addr3;
}
}
@Entity
public class Customer implements java.io.Serializable {
private static final long serialVersionUID = 1L;
private String Id;
private String custName;
@Id
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getCustName() {
return custName;
}
public void setCustName(String custName) {
this.custName = custName;
}
}
I dont know how to embed the address into customer.class. Can you please give some help. Thanks
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4216469#4216469
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4216469
15 years, 10 months