Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!

Aman Mohd

+ Follow
since Feb 26, 2009
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Aman Mohd


I have deployed my web application in weblogic server. At starting of weblogic server i get the exception StackOverflowError. Any help would be appreciated. i have tried increasing the memory on startup as well. Checked if there were any filters being used in web.xml etc. I am using Liferay 6.0 and jRockit on a 64 BIT machine. Ironically the same setup seems to work fine on a 32 BIT machine.. Any help ... ??
7 years ago
I was thinking if i can put the value in encrypted format, so even if the customer is techy he won’t be able to change value. We can use random salt while encrypting, so that if you encrypt same data multiple times each time you will get different value. Thought of using Jasypt ( This type of information can be encrypted and set in the file or some properties file about which interface has been purchased. when the server starts it decrpts and automatically makes sure to load the right stuff from the database and in the application we would write the code on screens which have data elements which can be hidden.
Do you think this would work? Thanks for your reply.
8 years ago
I am working on a new product which needs to be developed and finally integrated into an existing product. The integration model of these 2 products needs to be planned in such a way that based on what the customer has purchased the appropriate tabs, links and pages show up. If a customer purchases just one of the interfaces; that is the only interface available to be seen by the customer and he can see links pertaining to that application. If there is a situation in which the customer has purchased both the modules, both of them should show up seamlessly without any changes to the application.

Possible solution: Configuring the applications through the database. The information is stored in the database about which application the user can see based on what has been purchased.
Pros: Easily configurable during deployment. Need to set a flag which would render and show certain tabs\links\pages based on permissions
Cons: Less security and easy for the customer to figure out if they are tech savvy. Leaves a lot in the database which is available to the customer.

I am using JBOSS AS 5.1. Is there something that can be done in the file? Just wondering if that can be done and can be encrypted and left.

Are there any good solutions to problems like these? Appreciate any help from your side.

8 years ago
i was looking for something like this in order to implement a scheduling calendar control. I am not referring to the scheduling jobs.

8 years ago
Hi, I am interested in implementing similar scheduling / calendar abilities such as those supplied in MS Outlook. Can any of you suggest a component which will allow for similar functionality. The tool needs to be customizable also at the same time. I was able to see so many open source tools specifically for ASP.NET. There seems to be nothing much available in Java. Would appreciate some inputs.

8 years ago
Hi, I am interested in implementing similar scheduling / calendar abilities such as those supplied in MS Outlook. Can any of you suggest a component which will allow for similar functionality.
8 years ago

I have configured Jboss 5.1 in the eclipse environment. I am able to deploy the ear file in the default instance and start the server through eclipse. T
The stacktrace is fine and i am able to go to the local host url and see my application without any startup errors from JBoss.

The problem is that once i get the message saying JBoss server has started in xx min and xx seconds, it still keeps showing me that the jboss server is starting in eclipse progress bar. I was assuming that it would stop at this point. but that is not happening. It finally times out and stops the server based on the server timeout for startup of Jboss. Can somebody please explain to me what I am doing wrong.

Eclipse 3.4.2

9 years ago
Hi Friends,

1.) I would like to know if it is possible to call the struts framework through a command line or a console application. Can one call an action class? Is there any possibility to do so? I think its not possible as everything would depend on the struts-config file and the Http Request object. From the config file the request would probably know which action class to invoke and the respective bean would be called.

2.) I have a web application which is based on the struts framework. I know for a fact that only once the request is submitted the struts-config would map the action and beans. But in a case where there would be no Http Servlet Request object, instead it would be a call from a console application trying to invoke an action class to perform the business logic; is that possible?

3.) What if i create a HttpServletRequest object in the console app and then call the action class? Then I would probably have to call the bean in the action class itself beating the MVC pattern framework and the use of the config file. Not sure if we can invoke the config file from command line.

Please give your thoughts on this. I am not sure if I have been clear enough in explaining this. My main requirement is to try and see if i can call and execute the business logic implemented on the struts framework (in action and bean) through a console application.

9 years ago
I m facing a few problems with IFrame and sometimes even the table html elements (<tr>, <td>) as they are not rendered well while using Lobo. I know its for free but many good technologies are free and open source and I was hoping to get some help here.
10 years ago

Basically I am trying to build a desktop kind of application for my client. I have to show my website through a java compatible browser, a browser on which I have control so that I enable scripting, play with the address bars and status bar of the window. Can somebody tell me more about such Java API's.

I have already seen Lobo and JBrowser. Lobo is good but its a little weak. JBrowser does not even render static HTML content properly. Does anyone know of any stable Java Browsers?
10 years ago
Well i know that... i guess i cudnt explain wat i needed... i need to sort the hashmap key attributes.
10 years ago

I have one HashMap with Student Objects. And i want to sort this map with student id, student name or any other field in student value object. How can I achieve this?

Student is a POJO Class with student id, student name, student age and some other fields with their respective setters and getters.

My requirement is such that I have to sort the hashmap based on any field of the Student class. This student class is the key in the hashmap


I have made my Student class implement Comparable interface and overidden the compareTo method. In this i have just compared the Ids of the students.

I want to sort this map using the student name field or the student age field or any other field in the student object. How can i accomplish this? This HashMap will have hundreds of Student objects. All of them have to be sorted by any sort parameter which would be stored in the key part of the hashmap.


10 years ago
Hi Guys,

I am working on an application and trying to first deploy drools-guvnor.war on JBossAS 5.0. However I am getting the following error:

java.lang.RuntimeException: Specification violation [EJB3 JPA] - You have not defined a non-jta-data-source for a RESOURCE_LOCAL enabled persistence context named: ACL

Could you please tell me what could be the reason behind this error? I searched a lot online but couldnt find any solution. I found a link where I found some information with the same exact server error trace but no solution.

My Environment Details:

OS: Windows XP Professional
JDK: jdk1.6.0_11
Application Server: jboss-5.0.0.GA
IDE: Eclipse3.4.1

I would also like to add that after trying a lot on jboss-5.0.0.GA, I moved to jboss-4.2.3.GA and was successfully able to deploy and run the Guvnor Drools tool. Is there a problem with respect to the jboss-5.0.0.GA?

I have downloaded drools-guvnor.war from: I am using Drools 5.0.0.M5 Guvnor of size 26.1MB. Please let me know if there is any other information you need.

Amaan M
11 years ago