Fred Leclerc

Greenhorn
+ Follow
since Aug 29, 2005
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 Fred Leclerc

Here is the problem, I use the maven nbm plugin to create a webstartable app (nbm:webstart-app) on CentOS 6.

If I am using java 1.7.0 update 2 - there is no WEB-INF/lib/ folder in the generated war file, subsequently, the $$codebase values are not modified by tomcat (version 6 in this case) and the application cannot be used.

BUT, if I use java 1.7.0 update 1 - the WEB-INF folder is created in the resulting war file and everything works file and the $$codebase problem is gone.

Any idea why this is so ?

Thanks
12 years ago
I have created a web application with struts 1.3.5 It is deployed on Tomcat 5.5.25 I am presently running stress tests and I am seeing a pretty weird behavior, it goes like this...

I start the test, and response times are acceptable, around 300 ms in average. What is strange is that about 0.03% of requests have a ridiculous response time, over 500000 ms ( yes, 500 thousand milliseconds !! ). Whatever the number of threads I use, from 5 to 50, the same behavior occurs sooner or later... for exaclty the same http requests. The application connects to a postgresql server, with the apache commons connection pool.

Could it be that postgres is accepting the connection although it's too busy to answer it ? FYI, postgres has 250 available connections, and uses 4 or 5 at the same time at peak traffic simulations.

My tomcat configuration is close to default, 500 threads available ... 2 Gb for the jvm ...

I am also wondering if connection timeout configurations could be a plausible issue, since connections to tomcat don't seem to die at all ?

Thanks for your assistance, very appreciated.

ps .. feel free to ask about other configuration parameters, I'll provide more info if needed.
16 years ago
Since you cannot use javascript, try replacing your input button by an input of type image. Depending on the visual aspect, the image could be a plain 1px by 1px image matching the background color. I'm pretty shure that if you display:none an submit button, IE won't submit when the enter key is pressed.

I've tested with a simple form, and if you put an input type image instead of a classic submit button, then add the style="cursor: default;".

Worked fine when I tested it .. hope it helped.

Regards.
18 years ago