Ankit Doshi

Ranch Hand
+ Follow
since Dec 04, 2002
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 Ankit Doshi

Hi Ram, thanks for your reply.

I think I figured out the problem. The Session bean was being invoked by WAS, though the overall transaction of SB was taking more time than the default transaction timeout of WAS, and that's why WAS was rolling back the MDB transaction with above exception. I increased the default transaction timeout of WAS and also tweaked the processing in SB to reduce the overall processing time and it worked.

Thanks again.
Ankit
Hi, I am getting transaction roll back exception, while trying to call a session bean method with RequiresNew transaction attribute from onMessage of MDB. Any help to resolve this will be appreciated. I am using WAS 6.1.

Code structure:

MyMDBean - CMP, Required
MySessionBean - CMP, RequiresNew (all methods)

MyMDB.onMessage invokes the method processMessage on the MySessionBean. During this call it fails with the below exception. Please note, this error is not consistent, this is happening intermittently. Sometimes the messages gets processed properly, meaning the Session Bean method is invoked and process continues normally.

javax.ejb.TransactionRolledbackLocalException: ; nested exception is: com.ibm.websphere.csi.CSITransactionRolledbackException: Transaction marked rollbackon
ly
com.ibm.websphere.csi.CSITransactionRolledbackException: Transaction marked rollbackonly
at com.ibm.ejs.csi.TranStrategy.postInvoke(TranStrategy.java:200)
at com.ibm.ejs.csi.RequiresNew.postInvoke(RequiresNew.java:93)
at com.ibm.ejs.csi.TransactionControlImpl.postInvoke(TransactionControlImpl.java:581)
at com.ibm.ejs.container.EJSContainer.postInvoke(EJSContainer.java:3986)
at com.ibm.was.services.EJSLocalStatelessMySessionBean_26b161bc.processMessage(Unknown Source)
at com.ibm.was.services.MNPBSCSServiceMDBean.processMessage(MyMDBean.java:86)


Thanks in advance,
Ankit
I am trying to configure SSL on iPlanet 6.1. This is my development environment so I am trying to create local CA and self-signed certificate.

I am facing an issue while trying to create the local CA, here is what I did:

1. I created a new server from Admin console - ddas1502-EASDev5Secure
2. I created database (Manage Servers > Select MyNewServer > Manage > Create Database Link > Password & Re-password)
3. Now when I try to create a local CA, I get an error:




This error doesn't tell much about the root cause. What can be done next?
14 years ago
If i've defined session timeout parameters at three different places:

1. In web.xml file
2. In the application - through HttpSession.setMaxInactiveInternal...
3. In the Web Server console (if the web server supports)

Which one of the above three will take precedence?
15 years ago
I have an application which is deployed on Weblogic application server, and iPlanet sits in between as Web Server.

Now, when I run the application normally (request goes to iPlanet and then to Weblogic) and click a page which takes long time to populate, I get a session timeout error after exactly five minutes.

Whereas if I hit the Weblogic directly, bypassing iPlanet, and then click the same page it takes it's own time to populate but in the end it comes back with proper result. I interpret from this behavior that, there is a five minutes timeout period set on iPlanet.

Can someone please tell me where on iPlanet that timeout would have been set and how can I increase the timeout if needed?

Thanks,
Ankit
15 years ago
I know how to create a Branch using the built-in CVS client of Eclipse. However I am not sure how to create a branch Rooted at a tag, rather than the latest version. To illustrate with example, let say I have a tag named "Release1-stable" with two files F1.txt (version 1.1) and F2.txt (version 1.2).

Now I have modified both the files in preparation for Release1.1, and the current versions of the files are F1.txt (version 1.2) and F2.txt (version 1.4).

Let say a bug is reported in the Release1, which was earlier known to be stable and bug-free release. To apply the patch, I need to create a branch rooted at the "Release1-stable" tag. I think manual unix based commands exist in order to achieve this but does Eclipse provide this facility?
Okay, so based on the above code:

Variable "rows" is an ArrayList, each element of which contains an array.

When we call rows.toArray(), it should return a one-dimensional array, each element of which is again a one-dimensional array. And this "one-dimensional array, each element of which is again a one-dimensional array" would be stored in the variable named "data" which again is a two-dimensional array. Is this understanding correct?
16 years ago
Here's a piece of old code that I have:



I've some confusion on line#9.

If I am not mistaking, java allows to convert one-dimensional array of any type to an Object type and hence converting two-dimensional String array to single-dimensional Object array is syntactically ok.
But the confusion is what is the meaning of this?
16 years ago

Originally posted by Roger Chung-Wee:
What are you doing to manually deploy the application?



Go to console (http://server_ip:8001/console), login with the system user, go to Deployments > Applications. Delete existing application, Deploy new application, then restart the corresponding managed server.
16 years ago
When I deploy under the domains/mydomain/applications/ directory, either as EAR or exploded, the behavior is more or less same.

The difference is when I deploy it manually, that time everything works perfectly fine.
16 years ago
Another interesting thing to note here.

The reason I'm trying to get the Hot Deployment in place is, during development we change lot of things frequently and need to keep redeploying the application frequently and manual redeployment is taking quite long time.

Now, if I take the ear file which I'm deploying manually (which works perfectly fine) and copy this in the domains/applications folder it gets deployed, but at the runtime it is not able to find third party library files (even if I have added that jar in "Class-Path" in META-INF/MANIFEST.MF file under war).

This looks very strange to me
16 years ago
Surprisingly, I am able to re-create exact same problem on a different machine as well.
16 years ago
I tried what you suggested above, but it still doesn't work.

I deployed the EAR with following structure: (MANIFEST.MF in the war > WEB-INF/META-INF and jar > META-INF contains Class-Path as you suggested):

EAR
+ META-INF
- MANIFEST.MF
- application.xml
- myejb.jar
- myweb.war
- mycommon.jar

Now while deploying it is throwing NoClassDefFoundError for one of the classes in mycommon.jar file. Note, here that this class is being loaded normally, not through Class.forName().
16 years ago
I am somehow getting a feeling that the structure in which I'm packaging the EAR is having problem.

In the EJB jar file, I've included all EJB classes, DD and all the other helper classes used by EJBs.

In war file, I've included all the jsps, servlets, DD and helper classes being used by jsps and servlets.

Now, in the EAR file, if I just keep the jar, war and META-INF/application.xml, it throws exception for BasicConfigurator.class which is part of log4j.jar. This is inspite of the fact that log4j.jar file is already present in WEB-INF\lib.

If I include this log4j.jar file in APP-INF\lib directory, then it is able to find that class and then it gives me an exception that not able to find one of the .propertis file.

Now, if I copy this properties file under APP-INF\classes folder, it is able to find the properties file but then gives me NoClassDefFoundError for that class which is being loaded through Class.forName. ((
16 years ago