deepa karkala

Ranch Hand
+ Follow
since Jan 29, 2003
Merit badge: grant badges
For More
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 deepa karkala

Can you be please more specific. I need to call "save" method to insert the rows right ? I can only call save. Internally in the log I can see hibernate calls save or update.

Change the bi-directional mapping means ? I was having uni directional mapping and as I mentioned it was updating all old records in the table with new parent id. That's why I changed it to bi-directional.

Appreciate if you provide me more information.

thanks.
Hi, I am using spring LocalSessionFactoryBean and HibernateTransactionManager to carry out one-to-many operation in Oracle XE 10g database.

What is happening is, each time when I add a parent record with bunch of child records, getHibernateTemplate().save(parentRec) updating the current parend id for all other old records
in the child table.

This forced me to define many-to-one relationship in the child class config file which forces me to define a property for parent class in Child class which I do not want to do.


I did not want to define many-to-one relationship in the child class config file.


Parent record hbm.xml :

<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="com.rss.beans">
<class name="Application" table="application">
<meta attribute="class-description">This class contains application details.</meta>
<id name="appid" type="long" column="appid" unsaved-value="0">
<generator class="sequence">
<param name="sequence">App_Seq</param>
</generator>
</id>
<property name="appName" type="string" not-null="true" length="100" column="appname" />
<set name="components" cascade="all" lazy="false" inverse="true" >
<key column="appid" not-null="true" />
<one-to-many class="Component"/>
</set>
</class>
</hibernate-mapping>


Child record hbm.xml : If I remove <many-to-one> in the below xml, the entire child table will be updated with current parent id. Very annoying.


<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="com.rss.beans">
<class name="Component" table="component">

<id name="compid" column="compid" type="long" unsaved-value="0">
<generator class="sequence">
<param name="sequence">Comp_Seq</param>
</generator>
</id>
<property name="compName" type="string" length="20"/>
<many-to-one name="app" class="Application" >
<column name="appid" not-null="true" />
</many-to-one>

</class>
</hibernate-mapping>


Did anyone face this issue earlier ? Does it mean that in hibernte we can only define bi-directional One-to-Many relatinship ? I refered so many posts but no where mentioned about this weird issue.

Any suggestion is helpful.

thanks
Wow ! that's great. Thank you very much Shivendra. I am lucky today :-).

thanks
deepa
13 years ago
Thank you Amit and Shivenra.

Shivendra, after dooing so much research in the web, even I got same thoughts . But my concern is, if I edit wsdl file, I am wondering should I modify any other generated files to ensure that all are in sync. In order to avoid this problem, I looked for any option that we may pass while running java2wsdl but I did not fine one.

But I am wondering this topic was not discussed anywhere in any site ( I did not find one). The tool java2wsdl is used when we already have EJB running in some application and we want to make use of its methods in some application or in some other machines. In most of the examples for java2wsdl, I see that existing EJB was considered to convert to Web service. But in every example, only one method is written in EJB which will not be the real case.

I hope some expert will get back to my question with proper solution (if I am lucky) :-).

thanks
deepa
13 years ago
Hello web service experts, please help me. I have an session ejb having couple of methods out only selective methods need to be converted to web service.

I know that I can run java2wsdl, wsdl2java etc to convert an EJB to webservice. But all the methods will be exposed in web service.

Is there any way that only selective methods can be exposed as web service ? I wan to use Apache Axis tools java2wsdl and wsdl2java to conver EJB to web service.

Greately appreciate your valuable suggestion.

thanks
Deepa.
13 years ago
May be I will have to ask this in bea forum (after Oracle bought it, I am not able to post the topic in Oracle bea site...wiered site error I get when I post ...Hmmmm I will have to spend time now to get oracle bea site access ).
14 years ago
Hi Everyone, I noticed that in weblogic 10 version, from the console we can not assign default web application to a server. This was there in 8.1 console ( server configuration-general tab) If my war or ear file is ready and released into prod but I do not want to untar it again to add <context-root> into the DD. I thought I can do it from console but I am able to set default web application from WLS 10 console.

Appreciate help if anybody knows how to do it from WLS 10 console.

thanks.
14 years ago
Hi All,


can anyone help me in fixing the Embedded Ldap issue I am facing when I bounce weblogic admin and managed server.

As soon as I bounce managed server, I get the following error for every milli second and it creates 1000s of log files with following error messages and it will occupy the entire free space left in the device.

I only can tell that the following Embedded Ldap files are
getting corrupted as soon as I bring up admin and managed server but I do no know why and how they are getting corrupted when I bounce the servers.

EmbeddedLDAP.data
EmbeddedLDAP.delete
EmbeddedLDAP.index
EmbeddedLDAP.lok
EmbeddedLDAP.tran
EmbeddedLDAP.trpos
EmbeddedLDAP.twpos

I am using embedded ldap to store application scoped roles.



####<Apr 12, 2005 10:56:09 AM EDT> <Error> <EmbeddedLDAP> <he1unx30.fhlmc.com> <myAdminServer> <VDE Replication Thread> <<WLS Kernel>> <> <000000> <Error reading changelog entry#: 37>
####<Apr 12, 2005 10:56:09 AM EDT> <Error> <EmbeddedLDAP> <he1unx30.fhlmc.com> <myAdminServer> <VDE Replication Thread> <<WLS Kernel>> <> <000000> <Error reading changelog entry#: 37>
####<Apr 12, 2005 10:56:09 AM EDT> <Error> <EmbeddedLDAP> <he1unx30.fhlmc.com> <myAdminServer> <VDE Replication Thread> <<WLS Kernel>> <> <000000> <Error reading changelog entry#: 37>
####<Apr 12, 2005 10:56:09 AM EDT> <Error> <EmbeddedLDAP> <he1unx30.fhlmc.com> <myAdminServer> <VDE Replication Thread> <<WLS Kernel>> <> <000000> <Error reading changelog entry#: 37>
####<Apr 12, 2005 10:56:09 AM EDT> <Error> <EmbeddedLDAP> <he1unx30.fhlmc.com> <myAdminServer> <VDE Replication Thread> <<WLS Kernel>> <> <000000> <Error reading changelog entry#: 37>
####<Apr 12, 2005 10:56:09 AM EDT> <Error> <EmbeddedLDAP> <he1unx30.fhlmc.com> <myAdminServer> <VDE Replication Thread> <<WLS Kernel>> <> <000000> <Error reading changelog entry#: 37>
####<Apr 12, 2005 10:56:09 AM EDT> <Error> <EmbeddedLDAP> <he1unx30.fhlmc.com> <myAdminServer> <VDE Replication Thread> <<WLS Kernel>> <> <000000> <Error reading changelog entry#: 37>
####<Apr 12, 2005 10:56:09 AM EDT> <Error> <EmbeddedLDAP> <he1unx30.fhlmc.com> <myAdminServer> <VDE Replication Thread> <<WLS Kernel>> <> <000000> <Error reading changelog entry#: 37>
####<Apr 12, 2005 10:56:09 AM EDT> <Error> <EmbeddedLDAP> <he1unx30.fhlmc.com> <myAdminServer> <VDE Replication Thread> <<WLS Kernel>> <> <000000> <Error reading changelog entry#: 37>
####<Apr 12, 2005 10:56:09 AM EDT> <Error> <EmbeddedLDAP> <he1unx30.fhlmc.com> <myAdminServer> <VDE Replication Thread> <<WLS Kernel>> <> <000000> <Error reading changelog entry#: 37>

I really appreciate if any one help me in fixing up this issue. In the log I do not get anything other than the above message and I am unable to trouble shoot this problem.


thanks in advance,
jyothi
18 years ago
I am using java weblogic.marathon.ddinit.EarInit to generate web.xml only if it is not there.

For some reason, it is overwritting existing web.xml.

I am looking for the option which i can use to DDInit to avoid overwritting
web.xml if it already exsits.

Can anyone please tell me any such option is available.

Thanks in advance
19 years ago
Thank you for your time and effort to reply my topic.

jyothi
19 years ago
I want to redeploy an ejb to WLS server (not the entire application) and came to know from bea online document that the following command will do this :

java weblogic.Deployer -adminurl http://myadmin:10720 -username system -password weblogic -name myApp.ear -activate -targets myBean.jar@jytServer -source myApp.ear

I am getting the following error :

weblogic.management.ApplicationException:
[J2EE:160043]Missing deployment descriptor "META-INF/application.xml" at myApp.ear".

The ear file very much contains the application.xml under META-INF directory and in the application.xml, there is an entry for myBean.jar.

I saw similar topic posted in bea newsgroup by someone else but no reply.

I would highly appreicate your help. (admin console access is denied and i have to use weblogic.Deploy only in this case).

thanks,
jyothi
19 years ago
Hi everyone,

is there WLS tool which we can run for our source code to detect any connection leak ?

I have heard that there is one such tool provided by BEA Weblogic itself but i do not know what is exactly and how to use it.

I would greately appreicate for your help in this regard.

Thanks and regards.
jyothi
19 years ago
Hi Everyone, I am updating 2 databases from 2 different EJBs. I am using ORacle XA thing driver oracle.jdbc.xa.client.OracleXADataSource and 2 TX data sources, 2 TX connection pools.


When I start the manager server, I am getting ejb deployment error regarding XA driver.

By the way, in both databases I have taken care of � Grant select on dba_pending_transactions to public� which related to the error XAER_RMERR.

An error occurred while the EJB container was attempting to obtain information a bout the table �table1� from the database. This information is necessary to validate the mapping between the fields of the EJB 'ejb1' and the table. The exception is: XA error: XAER_RMERR : A resource manager error has occur ed in the transaction branch start() failed on resource 'jytPool': XAER_RMERR : A resource manager error has occured in the transaction branch javax.transaction.xa.XAException: Unexpected error during start for XAResource ' jytPool': null at weblogic.jdbc.jta.XA.createException(XA.java:105) at weblogic.jdbc.jta.DataSource.start(DataSource.java:641) at weblogic.transaction.internal.ServerResourceInfo.start(ServerResource Info.java:1202) at weblogic.transaction.internal.ServerResourceInfo.xaStart(ServerResour ceInfo.java:1136) at weblogic.transaction.internal.ServerResourceInfo.enlist(ServerResourc eInfo.java:289) at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(Se rverTransactionImpl.java:411) at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1220) at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1 183) at weblogic.jdbc.jta.Connection.getXAConn(Connection.java:152) at weblogic.jdbc.jta.Connection.createStatement(Connection.java:257) at weblogic.ejb20.utils.TableVerifier.checkTableAndColumns(TableVerifier .java:135) at weblogic.ejb20.utils.TableVerifier.checkTableAndColumns(TableVerifier .java:81) at weblogic.ejb20.utils.TableVerifier.verifyTableAndColumnsExist(TableVe rifier.java:389) at weblogic.ejb20.utils.TableVerifier.verifyTableExistsAndCreateMaybe(Ta bleVerifier.java:440) at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.verifyTablesExist(RD BMSPersistenceManager.java:1120) at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.setup(RDBMSPersisten ceManager.java:150) at weblogic.ejb20.manager.BaseEntityManager.setupPM(BaseEntityManager.ja va:209) at weblogic.ejb20.manager.BaseEntityManager.setup(BaseEntityManager.java :179) at weblogic.ejb20.manager.DBManager.setup(DBManager.java:158) at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.activate(ClientDrive nBeanInfoImpl.java:952) at weblogic.ejb20.deployer.EJBDeployer.activate(EJBDeployer.java:1317) at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:247) at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:85) at weblogic.j2ee.Application.addComponent(Application.java:307) at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:148) at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl oymentTarget.java:375) at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep loymentTarget.java:303) at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy ments(DeploymentTarget.java:256) at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments( DeploymentTarget.java:207) at java.lang.reflect.Method.invoke(Native Method) at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB eanImpl.java:750) at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl

................................................................


Please help me in this regard. thanks, jyothi
[ August 11, 2006: Message edited by: Bear Bibeault ]
20 years ago
Hi everyone,
I have 3 managed servers in Bea7.0 SP4 in a cluster. The client requests are sent through apache web server. I have given cluster address as URL in httpd.conf of apache server which sends the client requests for dynamic pages such as JSPs and servlets to the weblogic cluster.
Load balancing is working fine. I ensured this from the log files of all the 3 servers. All the 3 servers are getting different client requests and thus load balancing is working.
Now, I wanted to achieve Fail-over. I do not think that i should use proxy plug-in for this. I feel the cluster itself will handle fail-over provided i make the http session as memory replicated.
I updated the weblogic.xml with the following entry :

<session-descriptor>
<session-param>
....
</session-param>
<session-param>
<param-name>URLRewritingEnabled</param-name>
....
</session-param>
<session-param>
<param-name>TimeoutSecs</param-name>
<param-value> .....</param-value>
</session-param>
<session-param>
<param-name>PersistentStoreType</param-name>
<param-value>replicated</param-value>
</session-param>
</session-descriptor>

I guess this is sufficient to make the http session as cluster aware.

But when I shutdown server1, the user connected to server1 will be kicked out of the session and come to login page through server2 and server3 are running fine.
Could anyone help me to achieve http session as cluster aware. Does it indicate that I have to go for WLS proxy � HttpClusterServlet to achieve fail over for http session ?
thanks in advance.
20 years ago
you will have to set timer concept inside the JSP using javascript features so that it will be keep refreshing the page at regular intervals.
20 years ago