wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Java WAR Tomcat works on XP but not Windows 7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Java WAR Tomcat works on XP but not Windows 7" Watch "Java WAR Tomcat works on XP but not Windows 7" New topic
Author

Java WAR Tomcat works on XP but not Windows 7

Ash Ahmadzadeh
Greenhorn

Joined: Dec 10, 2013
Posts: 6
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?

Edson Cezar
Ranch Hand

Joined: Mar 05, 2011
Posts: 75
    
    1
Do you have a stacktrace in the Tomcat logs ?
Ash Ahmadzadeh
Greenhorn

Joined: Dec 10, 2013
Posts: 6
I don't. I have XAMPP with Tomcat, but I can't figure out how to see the stracktrace.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

Do nothing else until you can find the logs. Anything else is colossal waste of time.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Jelle Klap
Bartender

Joined: Mar 10, 2008
Posts: 1756
    
    7

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.
Ash Ahmadzadeh
Greenhorn

Joined: Dec 10, 2013
Posts: 6
I'm having a hard time finding the stack log for tomcat in Xampp. I can see logs but none of them give me a detailed breakdown.

It's attached to a USB modem that's attached to the client's phone line. We've built a kiosk web app that we use to make calls using the USB modem.
Jelle Klap
Bartender

Joined: Mar 10, 2008
Posts: 1756
    
    7

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.
Ash Ahmadzadeh
Greenhorn

Joined: Dec 10, 2013
Posts: 6
Sorry, yes. I did find the logs folder in the tomcat folder. I'm not sure which one I should be looking at. Some have very little info.

This is from today. References to "Way2Call" are for the app I'm having problems with.

Jelle Klap
Bartender

Joined: Mar 10, 2008
Posts: 1756
    
    7

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.
Ash Ahmadzadeh
Greenhorn

Joined: Dec 10, 2013
Posts: 6
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.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15964
    
  19

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...


Customer surveys are for companies who didn't pay proper attention to begin with.
Ash Ahmadzadeh
Greenhorn

Joined: Dec 10, 2013
Posts: 6
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: Java WAR Tomcat works on XP but not Windows 7
 
Similar Threads
System.getProperty("os.name") and compatibility modes with new Windows OS's
web.xml finds servlet but JSP called by servlet cannot get back to the servlet
Tomcat move from Windows to Linux
starting up of tomcat in windows 7
stopping tomcat on windows 7