shahabas shabeer

Ranch Hand
+ Follow
since Feb 23, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by shahabas shabeer

Thanks Saulius. That works
15 years ago
Hard code the time duration and try in both the systems again. This way you can verify that if the value is read from the properties file properly.

Not sure whether you have tried this already. If not this is worth giving a try.

Please post the code snippet if you are still having issues.
Can you include more info like OS in both the systems, code snipped where you are scheduling the timer etc..
Nope.. There is no clear message in the exception. I do have a try-catch block but I am printing the entire exception details using printStackTrace() method.
Hi,

My application throws a java.lang.Exception when it call ThreadLocal.set() method. This happens only during load test with 1000 concurrent virtual users. I never got this error during development and could not reproduce in my development machine. So I guess the issue is with thread management. Should I call this method in a thread safe manner?. What would happen if I did not synchronize the method?. Will the application throw java.lang.Exception if two threads try to update this value at the same time? Any help would be highly appreciated.

Thanks
Thank you Dittmer. Thank you Cruise..

Yes..That works. I got the Class name and I fixed the bug.

Cheers
16 years ago
Hi friends,

I am trying to debug an existing application. I have handle to a java object (say a.b.MyClass xyz). 'MyClass' is an interface. I want to know the name of the class which has implemented this interface. In other words, I want to know the actual type of a java object xyz. xyz.getClass().getName() returns the interface name and not the actual implementation class name. Is there a way to get the actual implementation class name ?

Thanks in advance!!
16 years ago
Hi Damera

'J2EE WebServices by Richard Monson-Haefel (RMH)' is a good book to start with.

Cheers
17 years ago
Hi,
I developed a java application.
My application connects to postgresql using a database driver(pg73jdbc2.jar).
The database driver jar file is there in my classpath.
My program worked as expected when I executed it using the command

java a.b.c.MyMainClass

Then I bundled my application in to a jar file.
When I tried to execute my program using the command,
java -jar MyJar.jar
it is complaining that the database Driver class(java.lang.ClassNotFoundException: org.postgresql.Driver) is not found.

I am sure that the driver jar is available in my class path and the program is working fine
when a execute it using "java a.b.c.MyMainClass" command

I also tried by copying the driver jar to my "jre/lib/ext" directory, but no luck

What could be the problem ?

Any help would be highly appreciated.

Shahabas E Shabeer
[ June 28, 2005: Message edited by: shahabas shabeer ]
19 years ago
Hi anupa,
Build.xml is not necessory for deploying web apps in Jboss.
It only makes your life easy by doing a lot of tasks (compilation,war creation, file copying ect..) for you.
If you want to learn both ant and Jboss fundamentals from a single tutorial, this is a good place to start with.
Just google the web, you can get lots of Jboss tutorials.

Shahabas E Shabeer
[ June 15, 2005: Message edited by: shahabas shabeer ]
19 years ago
Hi,

This could be because of IIS running in your system.
Shut down IIS first , then start JBoss.
You can stop IIS service from "Control Panel-->Administrative Tools-->services"

Shahabas E Shabeer
19 years ago
Hi guys,
I think my question lacks clarity.

I have jboss installed in my machine.
When I enter http://localhost:8080 in a browser in my machine after running jboss, I am getting a default page with few jboss related links as given below

********************
JBoss Online Resources
* Getting started with JBoss 3.2 [PDF]
* JBoss Wiki
* JBoss forums
JBoss Management
* Tomcat status (full) (XML)
* JMX Console
* JBoss Web Console
***********************

I want to show another page instead of this default page.
How to do this ?
Hope my question is clear now.
19 years ago
Hi friends,
How can I remove jboss defalut page displayed when I enter
http://localhost in the browser.I want to show my home page
instead of this page. How to do this ?

Thanks
Shahabas E Shabeer
19 years ago
Hi friends,
I have a small question.
I am a programmer developing web applications using jsp/servlet and jboss.
If I change a single line in a file, I have to create a war with all the jsp/servlet, WEB-INF and other required files and redeploy the entire application.

My question is, what if my website has a page, which needs to be updated
on a regular basis.
For example, A site with a "What's New?" page, which needs to be updated every day.

Is there an easy way to update only this page in the site as we can't expect the client to create a war and deploy it every day... ?

Thanks
Shahabas E Shabeer

[ June 02, 2005: Message edited by: shahabas shabeer ]
[ June 02, 2005: Message edited by: shahabas shabeer ]
19 years ago