Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-07-2005, 11:32 AM   #1
Registered: Aug 2004
Posts: 88

Rep: Reputation: 15
applet on linux server behaves differently

We have always run our web app on Tomcat on Windows, but we're trying to move it to Linux. One small but important component of our site is a simple signed applet that allows users to print out 4x6 packing labels on a thermal printer. If the Zebra (or whatever brand) printer driver is installed properly, the label image lines up perfectly.

Everything continues as normal when the web app is running on a Linux box in our internal/private network, but when the server is our new production Linux server (which is sitting outside our internal network), the image that gets pulled down by the applet is half an inch too far to the right. The code is the same, the Tomcat startup parameters telling it to start headless are the same, the version of Enterprise Red Hat is the same...what could be causing this difference?

I know I'm reaching here, but does it have anything to do with SSL or the applet being signed or something like that? Obviously right now, we don't access that new production machine by DNS name yet--we just hit it by its public IP address (which goes through a BigIP load balancer). I just need to know what in the world to look for!

Old 01-07-2005, 11:37 AM   #2
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,991

Rep: Reputation: 76
It's not likely to be related to the network code. I've seen similar problems with printer drivers on other printers; you might try editing the printer configuration to adjust the position of the image on the page, or to change the configuration of the queue.
Old 01-07-2005, 11:53 AM   #3
Registered: Aug 2004
Posts: 88

Original Poster
Rep: Reputation: 15
We instruct our users on how to adjust image position all the time, but here's the situation: when the server is our dev Windows or our dev Linux box on our internal network or our production Windows box that we browse via the public IP address, the image prints fine (and this is when we browse all 3 from the same browser and print from all 3 to the same thermal printer). But when we then go and try to print from the same browser and to the same printer when the server is the new production Linux box that we access over the web, it doesn't work...nothing is different--not the code, nothing...

Old 01-07-2005, 02:09 PM   #4
Registered: Aug 2004
Posts: 88

Original Poster
Rep: Reputation: 15
Weird...that problem was occuring when trying to print with Firefox 0.9.2, but it doesn't occur for IE 6. Both have 1.4.2 Java versions. This doesn't make me happy at all...that same Firefox browser prints labels from our current webserver without a hitch. Why would this Firefox browser scoot the document/image over half an inch when the webserver was a Linux one, but the IE client browser wouldn't do that?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
why video card acts differently in linux exbootie Linux - Newbie 4 11-29-2005 01:34 PM
explore2fs reads linux drives differently in win98 and winxp cranium2004 General 0 12-02-2004 12:10 PM
Firefox fonts render differently on Linux elempoimen Linux - Software 6 12-01-2004 10:01 PM
shell behaves differently in rl5 and rl3 Warmduvet Linux - General 22 09-22-2004 05:05 PM
Monitor power off differently with Linux and Xp...!?? yarnar Linux - Software 1 11-16-2003 12:45 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:43 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration