Tomcat and Mozilla funny behaviour
Hi,
I have a funny situation going on involving tomcat, mozilla, and internet explorer.
I am using tomcat 3.3 to serve my pages.
When viewed through Internet Explorer, everything is fine, and the pages format quite nicely.
When I view the same pages through Mozilla, it doesn't seem to find the linked stylesheets, and doesn't attempt any formatting at all?!?!
When I view the same pages through apache, both IE and Mozilla format correctly.
So, any ideas why Mozilla wouldn't like Tomcat?
I hate these kind of issues. It happened to me when changing .css contents and then trying to refresh. Mostly due to the unability to refresh contents on pages redirecting to other pages... no time to press the refresh button.
I know it's a bad solution, but might be a good test and will finally discard a caching issue:
Copy res.css to rescopy.css and change the link for that page in question.
I hope it helps!
Similar Messages
-
Transparent taskbar and other funny behaviour
Since I made a fresh install of SL my taskbar has been acting all funny. Sometimes my logged in user name is only "half" displayed. That is the name is cut right in the middle. These last days my taskbar takes forever to load upon boot and when it does it is transparent.
Any cache files or something I can delete?
RegardsI have a similar issue - using the included Vista Business-version that came with my T61.
Sometimes, it seems that the welcome/login-window is showing before the finger-print reader is ready to accept the finger, and hence logging in. Sometimes it doesn't work at all, and I have to log in by typing my password.
This is not consistent either - sometimes it just works right off, sometimes I have to try 4-5-6 times, and sometimes it just plainly refuses to accept the scan (and not as in it's not recognizing it - just doesn't do anything when scanning).
So, you're not alone
IT-technician, running my own company in Bergen, Norway
Thinkpad T61, 8895CTO C2D 2Ghz/4GB/120GB SSD/1400x1050 -
Question about blazeds turnkey, tomcat and directory structure
hi. this question is pretty basic...been reading sujit reddy g's blog on installing/setting up blazeds.
in one article he creates a samplewebapps directory in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\samplewebapps and copies the blazeds WEB-INF/lib into that directory and the configuration files in the flex folder across as well...http://sujitreddyg.wordpress.com/2009/04/07/setting-up-blazeds/
in another article on invoking java methods from flex he configures the remote-config.xml file directly in the blazeds\WEB-INF\flex folder....http://sujitreddyg.wordpress.com/2008/01/14/invoking-java-methods-from-adobe-fle x/
wasn't sure why in the first example he copied the files and folders to the samplewebapps directory while in the second example he just configured the files within the blazeds directory...thanx...(i'm a newbie at server side development)I'll take a stab at it. The key thing to realize is the BlazeDS code is ADDED on
to the appserver. E.g. for Tomcat/WebLogic/et al one adds the reference in the web.xml file in WEB-INF.
So, what is that add-on?
1. Executable files. These are jar files and typically stuck into WEB-INF/lib
2. Configuration files. flex/services-config.xml is specified in web.xml. It refers to the other config files in WEB-INF/flex
So, the config in web.xml tells Tomcat (and its forked commercial products) to load up the Flex jars and run some classes. By standard, the "run some classes" follows the servlet lifecycle and runs specific methods in the class when the servlet is loaded, called, destroyed. So, Flex jars have a class which implements the servlet interface.
Incidentally, you may also see references to log4j, Spring, and other frameworks in the web.xml as well. They do the same sort of stuff. So, Tomcat does the passing of the HTTP packets and stages them into Java classes and the hooked in frameworks do add their own behaviours to the setup.
HTH,
TimJowers
P.S> Also note in Flex when you setup the project properties for a Flex Project then you need to match up your URL and "context" to what you have on your server. In his exampe, the "samples" context may have already been setup so easier to use. What is a "context"? The idea is to have more than one webapp running on an appserver. In Tomcat, its basically just the subdirectory under "webapps". That directory name becomes part of the URL. E.g. webapps/samples -> http://localhost:8080/samples or webapps/mytest -> http://localhost:8080/mytest -
KeyTyped Event: funny behaviour
This should be a very simple question... but I am stuck with it.
I want to implement the usual feature of enabling a button only if a text field is not empty. I suppose you all have seen this before.
I am catching the KeyTyped event and in the event handler I am checking for the length of the text. This is the code inside the handler:
String txt=myTextField.getText();
myButton.setEnabled(txt.length()>0);
So yes, it works, but with a funny behaviour: the button is enabled only after the second keystroke, that is, when the length of the text is >=2 and not >0. A quick explanation is that my event handler is being called before the event handler of the textfield itself so at that moment the text is still empty. But when pressing the "backspace" key... it works fine, so the theory is wrong!!
My workaround is to catch the KeyReleased event... but visual effect is not so satisfactory, and anyway, why is this happening?
And what is the "official" way of implementing this trick?
Thanks in advance,
Luis.
(P.S.: I am using a JTextField and a JButton, and have tested this with JDK 1.2 and 1.4 with the same results.)You'd want to do something like this:
JTextField watchedField = new JTextField();
// construct the action
FieldWatcherAction watcher = new FieldWatcherAction( watchedField );
// make a button with the action
JButton b = new JButton( watcher );
// add a button to a toolbar with the action
jtoolBar.add( watcher );
// etc...
class FieldWatcherAction extends AbstractAction implements DocumentListener
JTextField field;
public FieldWatcherAction( JTextField f )
super( "", someIcon );
setEnabled( false );
field = f;
field.getDocument().addDocumentListener( this );
protected void updateState()
setEnabled( field.getDocument().getLength() > 0 );
public void insertUpdate( DocumentEvent evt )
updateState();
public void removeUpdate( DocumentEvent evt )
updateState().;
public void changedUpdate( DocumentEvent evt )
updateState();
}The action would need to be fleshed out more, obviously. You'd probably want to add text for a label ( empty string in super call in constructor ), define the icon ( second arg in super call ). You can also set tooltip text and other things. All of this can be changed by editing various properties of the action. Relevant constants would be:
javax.swing.Action.ACCELERATOR_KEY // key accelerator for JMenuItems
javax.swing.Action.MNEMONIC_KEY // mnemonic key for JMenuItems
javax.swing.Action.NAME // JButton text or JMenuItem text
javax.swing.Action.SHORT_DESCRIPTION // Tooltip text
javax.swing.Action.SMALL_ICON // image icon for JButton, JMenuItem and JToolBar buttons. -
i have problem with fonts for my site, i have used "Lucida sans unicode " family for certain texts. it shows perfect in mozilla 3.5 and mozilla 4. But the font not supporting in mozilla 5.0? please help me
i have problem with fonts for my site, i have used "Lucida sans unicode " family for certain texts. it shows perfect in mozilla 3.5 and mozilla 4. But the font not supporting in mozilla 5.0? please help me
-
I just got my Mac Pro repaired from Apple but I am experiencing the same issue: Screen freezes and shows funny rectangular bars. I shut it down manually and when I try to turn it back on it beeps 3 times. I know its the RAM but is there a way I can fix it
If you just got it back and it isn't fixed or something else is wrong with it take it back and have them do the repair correctly.
-
I was able to open PDFs online until version 8. Since upgrading to version 9 and now 10, I have crashes every time I try to open a PDF online and can see the form briefly for about two seconds before the plugin crashes. I followed instructions on the solution to update Adobe Flash and Mozilla, and they are both to the most recent version and it still crashes every time, no dent in the symptoms with the upgrades. I tried also downgrading to version 3, and it sill crashes. Although in some cases I can get around by saving the PDFs for reading them through Acrobat on my PC, it is a hassle as I do not want to save everything to my drive just to see what it is, plus sometimes forms are generated on a click and I cannot see these forms at all.
I had to migrate to Chrome as I needed the PDFs and could not wait any longer - any suggestions to make Mozilla work again would be appreciated.Hi,
Please check if this happens in [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode] after enabling only the PDF plugin in '''Tools''' ('''Alt''' + '''T''') > '''Add-ons''' > '''Plugins'''. You can also '''Disable''' the PDF plugin and try an alternative, for eg. [https://addons.mozilla.org/en-US/firefox/addon/pdfjs/?src=cb-dl-created pdf.js]. Please also go through the add-on reviews, ratings, help and FAQ.
[http://kb.mozillazine.org/Problematic_extensions Problematic Extensions]
[https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]
[http://support.mozilla.com/en-US/kb/Uninstalling+add-ons Uninstalling Add-ons]
[http://kb.mozillazine.org/Uninstalling_toolbars Uninstalling Toolbars]
[http://support.mozilla.com/en-US/kb/Cannot%20uninstall%20an%20add-on Cannot Uninstall Add-on]
[https://support.mozilla.com/en-US/kb/Troubleshooting%20plugins Troubleshooting Plugins]
[http://kb.mozillazine.org/Testing_plugins Testing Plugins] -
Windows 7-Internet Explorer 8 and Mozilla Firefox 3.5
Hi friends;
I want to share that great news which is posted Steven Chan (Oracle Development) :
I'm very pleased to announce that Microsoft Windows 7 desktop clients are certified for the Oracle E-Business Suite. Both Microsoft Internet Explorer 8 and Mozilla Firefox 3.5 are certified and supported on Windows 7 desktop clients.
For more details, see:
http://blogs.oracle.com/stevenChan/2009/12/win7_certified_ebs.html
Regard
HeliosHi,
Apologize for the late reply and the misunderstanding about the ActiveX download location, we could change the location through the below registries:
Use Registry Editor to change the "ActiveXCache" value to the location you want in the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings
Use Registry Editor to change the "0" value to the location you want in the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ActiveX Cache
NOTE: The values you enter in steps 1 and 2 must match.
More information, please check
How to Change the Download Location for ActiveX Files (registries exists in IE11).
Regarding the urls that download the cab files into user profile directory, would you mind to share the URL?
And here is some information regarding inf files:
About INF File Architecture
We may check the value of DestDir, DestDir can be set to 10 to place the file into the \Windows directory or to 11 to place the file into the \Windows\System directory. If no value is specified, the file is placed into the \Cache directory.
Best regards
Michael Shao
TechNet Community Support -
Form will not open with adobe reader when using chrome and mozilla
The form opens fine in internet explorer, but when opened with chrome and mozilla it says that parts of the document could not be displayed and the 'submit form' and 'print' functions do not work? how do I get it so that the forms open with adobe reader as a pdf automatically instead of opening in another search engine tab?
ThanksHi
Chrome and Firefox use their default PDF viewers instead of Adobe Acrobat / Reader and hence most PDFs will not be fully functional in those.
For that you just need to change the settings :-
http://helpx.adobe.com/livecycle/kb/xfa-forms-firefox-chrome.html
Thanks and Regards
Rahul JOshi -
Error with pdf, adobe acrobat reader 8 and Mozilla Firefox 2
Hello.
I create view PDF file with following code
String filename = "er.pdf"
File file = new File("C:/" + filename);
FileInputStream fis = new FileInputStream(file);
int length = (int)file.length();
httpServletResponse.setContentType("application/pdf");
httpServletResponse.setContentLength(length);
ServletOutputStream fos = httpServletResponse.getOutputStream();
byte buffer[] = new byte[4096];
int count = fis.read(buffer,0,buffer.length);
while (count > 0) {
fos.write(buffer,0,count);
count = fis.read(buffer,0,buffer.length);
} // end while
// Cleanup
fis.close();
// session.removeAttribute(key);
// file.delete(); // If temporary file
} catch (Exception ex) {
System.out.println("error");
This call Error when I used browser Mozilla 2 and plugin adobe acrobat reader 8, but all work good, when I used adobe acrobat reader 7 and Mozilla 2.
I need help.
Have someone this problem?Hi,
did you search the Mozilla forum for this issue? I don't think that the JDeveloper 11 forum is the right place to post this problem if it is an Adobe/Mozilla issue
Frank -
SharePoint 2010, unable to see the site vertical scroll bar in Safari and Mozilla Firefox
Hi,
I am not able to see the sharepoint site vertical scroll bar in Safari and Mozilla firefox in window OS as well as Mac OS , even I have tried with various option of the browser but still not able to see the vertical scroll bar.
I have tried to check with other sharepoint site in Windows OS and found that I can see others sites vertical scroll bar in Safari and Mozilla firefox , Please let me know why I am not able to see for my sharepoint sites.
Thanks
RoopakScreen in jammed or how it looks without vertical scroll bar ? Check with site master page if you have modified anything related to vertical bar or else Try in other system and check if you are able to see vertical bar .
Let us know your result
Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever you see a reply being an answer to the question of the thread, click "Mark As Answer -
Errors when using tomcat and netbeans combo.[Solved]
Hi I'm trying to set up a netbeans/tomcat7 development environment for servlet development.
I have tried this on 2 machines without any success.
The steps I have followed are as follows.
First I installed tomcat7 and netbeans from using pacman, then to be able to configure tomcat from netbeans I made the config files write permission 777, as it's just a development server security is not an issue.
From there I started up netbeans started a new project and set the server to tomcat and pointed the Catalina home dir to /usr/share/tomcat7.
When I try to run the example jsp project I get the following error:
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: java.lang.IllegalStateException: No Java compiler available
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:584)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:392)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
root cause
java.lang.IllegalStateException: No Java compiler available
org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:226)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:636)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
I've spent the last couple of days trying to find any information on this but I cant find anything, so any advice would be much appreciated.
Last edited by darkclown (2011-12-01 05:15:23)From the error, it appears that there is no JDK installed - only a JRE, could that be the case? If you do have a JDK installed, then Tomcat is not finding it.
I would also not run this on the openJDK, in case you are doing that. I would use the proprietary Oracle/Sun JDK. It's in the AUR, or simply download it from Oracle.
I was not even aware that netbeans and tomcat are available from pacman. I always "install" those myself manually (i.e. unpack them into a folder). They are simply Java apps that can be installed anywhere, as long as you point them to a valid JDK. -
RTE not working in chrome and mozilla
Hi
I have an urgent issue.. My RTE is not working in chrome and mozilla.. It is showing up in my dialog; but when i enter data and submit it is not storing in CRX. Also non of the plugins is active
Any help weill be appreciable
Thanks
VeenaHi Sham
After lot of debug i found out the following issues
In RTE if we put styles plugin only this issue is happening
The issue happens because the RTE is getting disabled because of the following in RichText.js
if (CQ.Ext.isIE) {
var editorSheet = this.doc.createStyleSheet();
for (cssIndex = 0; cssIndex < cssCnt; cssIndex++) {
styleToAdd = cssToAdd[cssIndex];
for (sheetIndex = 0; sheetIndex < styleSheetCnt; sheetIndex++) {
styleToCheck = styleSheets[sheetIndex];
rules = styleToCheck.rules;
ruleCnt = rules.length;
ruleToCopy = null;
for (ruleIndex = 0; ruleIndex < ruleCnt; ruleIndex++) {
ruleToProcess = rules[ruleIndex];
ruleText = ruleToProcess.selectorText;
if (ruleText == "." + styleToAdd) {
editorSheet.addRule(
"." + ruleText, ruleToProcess.style.cssText);
break;
} else {
var styleDef = this.doc.createElement("style");
styleDef.type = 'text/css';
var cssText = "";
for (cssIndex = 0; cssIndex < cssCnt; cssIndex++) {
styleToAdd = cssToAdd[cssIndex];
for (sheetIndex = 0; sheetIndex < styleSheetCnt; sheetIndex++) {
styleToCheck = styleSheets[sheetIndex];
rules = styleToCheck.cssRules;
ruleCnt = rules.length;
ruleToCopy = null;
for (ruleIndex = 0; ruleIndex < ruleCnt; ruleIndex++) {
ruleToProcess = rules[ruleIndex];
if (ruleToProcess.type) {
if (ruleToProcess.type == CSSRule.STYLE_RULE) {
ruleText = ruleToProcess.selectorText;
if (ruleText == ("." + styleToAdd)) {
ruleToCopy = ruleToProcess;
break;
if (ruleToCopy) {
cssText += ruleToCopy.cssText;
break;
styleDef.appendChild(this.doc.createTextNode(cssText));
headEl.appendChild(styleDef);
The above lines are from 650-701 in RichText.js of CQ5.4 . They have handled the code for IE seperately from lines 650-670
The error is happening in line number 679 ; Where the ruleCnt is returning null for some sheetIndex and so the code is breaking and the RTE is disabled.
If i add the following line of code
if(ruleCnt == null){
continue;
just after line 679 . This issue seems fixed. But i think it is not the proper way to fix it and it is only a temporary fix. I dont know if it is a CQ issue.
Does any one have any solution for this.
To replicate the scenario
Create a rtePlugin in ur richtext widget
add a styles dropdown with styles in it
run this in chrome or any other browser except IE
If you have a proper solution please let me know
Thanks
Veena -
I have IE and Mozilla FF loaded on my vista run laptop. I have removed and reloaded the FF program without success. Once loaded I click the shortcut, but nothing happens. Internet Exployer runs fine. Help!!!!!!
== 1 month ago ==
== User Agent ==
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; InfoPath.2; .NET CLR 3.0.30729)A possible cause is security software (firewall) that blocks or restricts Firefox without informing you about that, maybe after detecting changes (update) to the Firefox program.
Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox.
See [[Firewalls]] and http://kb.mozillazine.org/Firewalls
See also http://kb.mozillazine.org/Browser_will_not_start_up -
"View Source" problem in IE and Mozilla
I'm parsing a HTML data source using JAVA.
I do "View Source" of the page in both IE and Mozilla.
#1 below is from IE and #2 is from Mozilla.
1. <p><div class = "sub1"> <a name="..."></a>...</div></p>2. <p><div class =" sub1"> <a name="..."></a>...</div></p>Notice the spaces in the <div> tag. The spaces in IE and Mozilla are different. Could somebody please advise about this?
Thanks in advance for the help.The two browsers use different programs to display the text of the source. IE usually takes the windows default and uses Notepad, whereas Firefox uses its own program. They are going to format it differently.
My approach would be to use the Notepad version and have notepad save it to disk. Only your own program can tell for sure what is really in the file, without notepad introducing display artifacts (like extra newline to do word wraps).
Maybe you are looking for
-
Error while updating JDBD table
Hi all, Am getting the error at the receiver JDBC CC. I have checked the conceren mapping also . i t is working under test tab. Error while parsing or executing XML-SQL document: Error processing request in sax parser: Error when executing statement
-
Getting error in B2B while processing Revison Number EDI
Hi Guru's The EDI file being sent to us by our partener has following ISA/GS header ISA*00* *00* *12*8283234100 *01*041158668 *081103*1315*U*00200*000271883*0*P*> GS*OG*8283234100*9099751019*20081103*1315*271883*T*004010UCS We have setup the B2B with
-
Arc - pdf - Illustrator making odd rasterized data
Hello! A common element of our workflow includes exporting from ArcMap as a pdf, then opening that pdf in Illustrator and taking the resultant linework into our AI work file. All of the sudden, my pdfs are coming into AI as an image would--broken in
-
Boot into os9 shows ?question mark? flashing - How do I fix this?
Hi All - old g4 - from snow leo i was able to boot into os9 classic - but I needed to go farther and boot directly into os9 - so i chose it from startup disk prefs - it came up with os9 happy face for 1/2 second then moved to a page with floppy icon
-
Will PE8 run efficiently on a Mac running Parallels?
Hi. I'm on an Intel iMac. I'd like to try out Premiere Elements 8 but since Adobe has not put out a Mac version............I'm wondering if I went to the trouble of getting and setting up "Parallels" on the Mac.....if it would run the Windows version