Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java WAR Tomcat works on XP but not Windows 7

 
Ash Ahmadzadeh
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 117
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have a stacktrace in the Tomcat logs ?
 
Ash Ahmadzadeh
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64824
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do nothing else until you can find the logs. Anything else is colossal waste of time.
 
Jelle Klap
Bartender
Posts: 1952
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ash Ahmadzadeh
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1952
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1952
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18152
52
Android Eclipse IDE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Ash Ahmadzadeh
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic