Hello everyone,
Need a bit of help with a Java app we had developed for us. It's running on Tomcat as a WAR and works on Windows XP. It runs on Windows 7 without errors but doesn't actually work. The app communicates with an attached modem to make calls. On Windows 7, it outputs that the call is successful but no call is actually made. Any ideas how I can see where it's missing something?
Attached modem? As in broadband via ethernet or an old fashioned dial-up modem hooked up to the RS-232 port (or USB via an adapter)?
If the latter, things can get a little tricky, because you'd likely need a library like RXTX for serial communication, which will need some native libraries to be made available to the Java runtime.
Before we go down that road though, I'm with Bear: we need to see some logging output.
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
There should be an environment variable called CATALINA_HOME that'll point you the location where Tomcat is located on the filesystem. By default all log files should be in a subdirectory called logs.
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
Well, it's impossible to say. There might be something of use in (one of) the catalina.*.log file(s), possibly the localhost.*.log files. It's also likely that the webapp has it's own logging configuration, which outputs relevant information to a different log file altogether. There's just no way we can know. It could be worth scanning all log files for occurences of ERROR or Exception, and possibly WARN, though that might leave you overwhelmed and/or chasing down wrong leads. Doesn't the application come with any documentation, or is there perhaps a developer you can contact to help guide you?
Edit: not much of use in the log sample you provided I'm afraid.
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
Unfortunately, I received no documentation. The developer did try to troubleshoot it but I'd like to also try. I have all the log files so I'll to search for those strings. Thanks for the tips.
If the webapp is attempting to dial out using a modem, it's possible that under Windows 7, the increased security features of that OS are blocking the call.
Worse, since you are almost certainly having to use a JNI class to do the dialing (that level of device access isn't generally possible within java's own write-once/run-anywhere), the failure would be happening within non-Java code which may or may not be using the standard Java logging channels. Or even logging the failure at all.
You might want to scan the Windows Event Manager logs. I don't know that they're that good at logging security violations, but maybe...
Education won't help those who are proudly and willfully ignorant. They'll literally rather die before changing.
Thank you for the reply. It is using JNI. I'll take a look at the windows logs to see if anything is registered. The app does return a "success" status, which complicates things in terms of troubleshooting.
I yam what I yam and that's all that I yam - the great philosopher Popeye. Tiny ad: