Tomson Antony

Greenhorn
+ Follow
since Nov 25, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Tomson Antony

Hi All,
I am facing a problem with Hibernate 2.1.1. The issue was arised while I tried to migrate my application from Hibernate2.0 to Hibernate 2.1.1. The error I am getting is as follows:
net.sf.hibernate.HibernateException: could not instantiate CacheProvider: net.sf.ehcache.hibernate.Provider.
I am not using ehcache plugin, but still its refering ehcache to load. Can any one help me pls....
Thanks in advance
Tomson Antony
Hi friends,
I am facing a problem while defining cmr.
I am having two local entity beans VendorBean and AddressBean.
The prim key (vendorId) of VendorBean is the foreign key for the AddressBean with same name(vendorId).I defined the relation as one to one unidirectional to the VendorBean. ie,
accessor methods are in VendorBean which returns & sets AddressLocal. And there is accessor methods for the foreign key of AccessorBean.
Now the problem is while i am invoking setVendorId(id)from ejbCreate (), i am getting an exception
"When a cmp-field and a cmr-field (relationship) are mapped to the same column, the setXXX method for the cmp-field may not be called. The cmp-field is read-only." So i removed the setVendorId () from ejbCreate , its working but i want to set the foreign key also. So how can i do it?
PLS SOME ONE HELP ME, and its too urgent.
Thanks in advance.
Relation descriptor

<ejb-relation>
<ejb-relation-name>Vendor-CTPATAddress</ejb-relation-name>
<ejb-relationship-role>
<description>vendor</description>
<ejb-relationship-role-name>VendorRelationshipRole</ejb-relationship-role-name>
<multiplicity>One</multiplicity>
<relationship-role-source>
<description>vendor</description>
<ejb-name>Vendor</ejb-name>
</relationship-role-source>
<cmr-field>
<description>cTPATAddress</description>
<cmr-field-name>cTPATAddress</cmr-field-name>
</cmr-field>
</ejb-relationship-role>
<ejb-relationship-role>
<description>cTPATAddress</description>
<ejb-relationship-role-name>CTPATAddressRelationshipRole</ejb-relationship-role-name>
<multiplicity>One</multiplicity>
<relationship-role-source>
<description>cTPATAddress</description>
<ejb-name>CTPATAddress</ejb-name>
</relationship-role-source>
</ejb-relationship-role>
</ejb-relation>

And weblogic relation descriptor

<weblogic-rdbms-relation>
<relation-name>vendor-vendorCTPATAddress</relation-name>
<weblogic-relationship-role>
<relationship-role-name>VendorCTPATAddressRelationshipRole</relationship-role-name>
<column-map>
<foreign-key-column>VENDORID</foreign-key-column>
<key-column>VENDORID</key-column>
</column-map>
</weblogic-relationship-role>
</weblogic-rdbms-relation>
HI,
I want to access a servlet which is running in another context from a struts application which is running in a different context.Whether it is possible? And how we can access a doPost () method of the servlet from a Struts Action class?
Please advise me
Thanks in advance.
15 years ago
JSP