Tim Holloway

Bartender
+ Follow
since Jun 25, 2001
Tim likes ...
Android Eclipse IDE Linux
Forum Moderator
Long-time moderator for the Tomcat and JavaServer Faces forums. Designer and manager for the mousetech.com enterprise server farm, which runs VMs, a private cloud and a whole raft of Docker containers.
These days, doing a lot of IoT stuff with Arduinos and Raspberry Pi's.
Jacksonville, Florida USA
Cows and Likes
Cows
Total received
92
In last 30 days
1
Total given
14
Likes
Total received
1386
Received in last 30 days
26
Total given
54
Given in last 30 days
5
Forums and Threads
Scavenger Hunt
expand Rancher Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Tim Holloway

kulunu Chamath wrote:Did you add "mysql-connector-java-5.1.23-bin" jar library file?



I think we can take that as a "Yes". The error was "Unable to establish connection", and without a driver, there's no way to know where to connect to. If at all.
1 day ago
Welcome to the Ranch, Chicquie!

It sounds like you already have a copy of WebLogic running on that machine.

I'm not sure what "VIP" is supposed to mean, but I guess it's "Virtual IP" and that doesn't make sense in terms of a physical machine. If a physical machine has multiple IP addresses (not counting localhost), they are known as "alias IPs".

In any event, you don't get a separate set of ports for each IP address. The same ports are used by all IP addresses on a host. Even if you have an application that only listens to those ports on a single IP address.
1 day ago
There are actual servlet test frameworks. Or you can launch a webapp server with debugging enabled and attach a Java debugger to it.

The best way to test a servlet, however, is to move as much of the code as possible into POJOs and test the POJOs. Stuff that requires actual access to HttpSession, Servlet Request and Response objects, JNDI, and other JEE facilities can't be tested that way, but at least you can test your business logic without the slow cumbersome business of launching a servlet framework.

And servlets should not be obtaining JDBC drivers in any case. Connection pools are more efficient and more portable.
1 day ago
"Lampoon" isn't common, perhaps a bit old-fashioned, but in addition to its usage as a stronger, less gentle alternative to the verb "satirize", there are 2 famous groups: The Harvard Lampoon (I have their "Bored of the Rings"), which used to have a radio program, and the National Lampoon, which brought you Chevy Chase's Christmas Vacation.

"Visage" is mostly poetical. Or when you've run out of alternatives for saying "face".

"Smite" is also mostly poetical, which is why it hasn't adopted more modern conjugations. In addition to poetry, of course, it's used when describing archaic forms of combat.

Seamy works well with politicians. I'd rate it as a tad less oily than "sleazy". Sadly, outright sleaze is more popular in the modern USA.
1 day ago

Stephan van Hulst wrote:In Dutch the words are 'wijdte' and 'breedte'. They are interchangeable, but I think 'breedte' is used more often.



And since Dutch and English have common ancestry, it appears that the rot goes back even further!
2 days ago
1. Do you have MySQL server running on the same machine?
2. Is it configured to accept TCP/IP connections or just the default (local pipes?)
3. If both of the above are true, do you have any firewall rules defined that would interfere with a localhost tcp connection to port 3306?
2 days ago
Breadth is a fine old English word from back before the Normans polluted the language with a lot of French. It has the same roots as German "breit". A related word is "broad", as in the "broad side of a barn", which in turn has served as the basis for a name of a unit in atomic physics.

Breadth and width are basically 2 words meaning the same thing, but width has become more associated with scientific and mathematical uses, and breadth is more colloquial. Also while "width" is often applied to things that are taller than they are wide, breadth generally implies something that's much wider than it is tall. But there's no precision to this - a hallway could have a breadth of 6 feet and a height of 10 feet. And you'd probably say it's "6 feet wide" if asked about only the horizontal extent. 

A lot of the insanity of the English language can be explained by its tendency to mug other languages and steal their words. But both breadth and width are originally English. Then again, consider how different word usages can be between English and American.
2 days ago
You attach a javascript onclick function to the cell. The onclick function uses AJAX to pull the data value from the appserver and enter it into the cell display.
Up until about the middle of the Tomcat 8 releases, copying a WAR into TOMCAT_HOME/webapps when a webapp of the same name was already deployed via exploding would cause the new WAR to be ignored and the existing webapp in the webapps subdirectory with the same name as the WAR to continue to be used. After that point, supposedly things changed and now you're (theoretically) able to deploy a new version of a webapp just by copying a WAR.

In any event, hot-deploy on Tomcat has been dicey for a very long time, so the safest approach is to terminate Tomcat, delete all the files/subdirectories in the Tomcat work, temp, logs, and webapps directories that are related to that webapp, copy in the WAR to the webapps directory and restart Tomcat.

This is all based on the default cases. If you have a deployment descriptor in TOMCAT_HOME/conf/Catalina/localhost pointing to some other location for the webapp code, if you have auto-explosion turned off, or certain other non-default options set, your results may vary.
3 days ago

Pete Letkeman wrote:Interestingly enough Oktoberfest (http://www.oktoberfest.ca/) which about 90 minutes from me bills itself as the one of the largest if Canada, possibly even North America.
However this could be marketing speak and there are various other Oktoberfest celebrations held in North America and around the world.



I think "Zinzinatti" would dispute that.

Cincinatti, Ohio was settled in large part by Germans who found that particular bend of the Ohio River to be reminiscent of the Rhine, so my Kentucky relatives told me. The seasonal changes are different, so their festival is supposed to be a week or so off from the German one. This year, it's from Sept 21-23d.

I've never been to it, but the zoo serves brat- and mettwurst. And had, to my surprise, a "bug" house.

The local fest down here isn't large - hardly a German restaurant in town at the best of times, and the 90-degree heat helps kill the authenticity. And since I don't care for beer, I've only been once. I loaded up on wurst and German potato salad and ended up on too many sales call lists.

3 days ago
Not even NY. I worked on what you might call the "just-outside" of downtown down here in Jacksonville - a 30 minute walk from the city core. We had 3 lunch places practically outside the door and a whole cluster of restaurants about 4 blocks beyond. You had your choice of "Arabic", Cajun, Chinese, Italian, American diner, and several fast-food joints. I quote "Arabic" because even though only Detroit has a larger Arabic population than Jacksonville, a lot of them are early-1900s Christian emigrants from Ramallah and so the city's signature "Camel Rider" sandwich is decidedly not halal. But it beats Subway.

In the 1990s the company I worked for bought up the property next door and put up a high-rise with an on-campus cafeteria on the ground floor. It's open to the public. Decent food, too. I learned about Spaghetti Carbonara from them.
4 days ago
Welcome to the Ranch, Kiran!

Are you asking about jUnit unit tests for JSF? That's easy! JSF backing beans are POJOs, so ordinary jUnit testing is all you need.

In fact, being able to test JSF code offline was one of the major factors in how JSF was designed.
4 days ago
JSF
I think the numeric type internal data format is always double, even for integer cell values (int is equivalent to floating-point with an exponent value of 0).  You'd have to get the cell's data format to know the precise display formatting for the value.
You should be able to retrieve the cell metadata. That will tell you the data type and the Excel formatting options defined for that cell.
I was afraid you were going to say that.

SQL is not well-designed for this kind of thing. It can work on horizontal slices and on vertical slices, but it has no simple syntax for inter-row operations such as this.

Your simplest approach would either be a stored procedure or an independent application (for example, in Java code).