I have developed an application which allows the user to upload a file.
I am using Primefaces 2.2RC2 / JSF 2.0 / Tomcat 6 / Firefox
Everything works great when I am running it through my local server. When I push it to my live server the entire application freezes when I attempt to upload. An authentication window appears which causes it to freeze.
The upload works fine in IE which seems ridiculous.
I am not very savy when it comes to server configuration and permissions but I am assuming that this issue is probably a permissions problem.
EDIT More information
I am not storing the file locally or anything, I am just using the FileUploadEvent and then getting the contents of the file and storing it to a database like so:
public void upload(FileUploadEvent event) {
byte[] file = event.getFile().getContents();
...
myDao.uploadFile(file);
}
There are no errors in the error logs so I can't even start to track down what is going on, it just locks up.
From doing some research it looks like this Flash bug is causing the problem.
https://bugs.adobe.com/jira/browse/FP-1044
Does anyone know a work around?
On a side note: Can anyone recommend another way of uploading files using Tomcat 6, JSF 2.0 ? Using primefaces was one of the only solutions that I have found for my configuration. Thank you.
#BalusC
I you are correct in that it is a Firefox issue. Anyway what is primefaces file upload is using the SWFupload flash component. For some reason the cred's are not POSTed when the SWFupload component posts back to the page. I have not found much of a work around other than to not use SWFupload. Since primefaces does not offer another option for fileUpload I will have to wait for Primefaces 3 I guess.
Related
So I have an MVC 5 application which has been running fine and is published to two individual servers, with the same configuration, however one gives http status 500, the other works perfectly. Both servers are exactly the same windows release, and patched up to asp.net 4.5.1.
Browsing the site locally gives the source of the problem as the web.config file, with the relevant config source lines being -1: and 0: Both showing blank lines.
I've no idea what's going on with this one. I have copied the app in its entirety back from the working instance to the none working instance no avail.
I'm a bit stumped.
To note, i've also removed IIS and reinstalled as i thought that could be the cause of the issue.
So after much headscratching it turns out that some clown removed URL Rewrite module from this box. After reinstalling using the web platform installer all is well. I hope somebody finds this useful in future.
Nicolas Carlo, your response pushed me down an alternate route of diagnosing the problem and was helpful in this instance, thank you.
I'm using Eclipse 4.2, appengine-java-sdk-1.8.9, gwt-2.5.1, smartgwt-4.0p
I'm trying make the simple project like this - http://uptick.com.au/content/create-gwt-project
but offline.
When I save page (as html page) it doesn't work offline and I receive alert - "GWT module may need to be (re)compiled".
My question is: how to change project to save it as html page (plus project_name_nocache.js file).
Thanks.
You might be getting this error message because you might be trying to run/debug your application in compiled mode. In order to do so, you need to re-compile your application for GWT after every single change in code.
To avoid this, you should run/debug your application in developer mode.
See this link, to have idea on how to run GWT application in dev mode.
Has anyone come across the problem whereby Umbraco says content changes have been saved successfully, you close everything down (including webmatrix), only to go back in and find that the changes have been lost?
I'm working on my localhost.
I think it's to do with caching of data on webmatrix, but I haven't a clue how you'd start up http://localhost:xyz without using webmatrix (if only to rule it out of the equation).
I believe when the message displays, the changes will be stored in database and next time you open your Umbraco for some reason, the XML file does not sync with database. In order to force it to be synced, simply delete the Umbraco.config file and restart WebMatrix and re-open the Umbraco.
The main advantage of using Webmatrix for Umbraco is it's IISExpress. So if you want to work with Umbraco without Webmatrix, add your website to IIS directly and since then you can have access to your site.
Seems to be a mystery problem still happening in SQL CE, for both WebMatrix and Visual Studio users alike. See the ongoing discussion in the umbraco issue tracker for more information at http://issues.umbraco.org/issue/U4-4621
This one is killing me, neither of those files are loaded in my application: images, css, js, everything was working fine before re-installing my PC, so I guess is configuration issue with IIS, since i haven't touch code and works well in a PC of a co-worker.
When seeing the HTML in firebug I see this
Reload the page to get source for: http://localhost/Common/Scripts/jquery-1.4.3.min.js
this is the code
<script src="#Url.Content("~/Scripts/jquery-1.4.3.min.js")" type="text/javascript"></script>
I am running Windows 7 and IIS 7.5, it's an Asp.Net MVC 3 Application.
I have tried the following
uninstall and re-install IIS
added read permission on file system to IUSR and IIS_USRS
In the application in IIS, in feature anonymous authentication, I selected "application pool indentity".
Nothing happens, maybe someone has another idea of what's happening.
Or at least point me a direction to better understand the reason of the problem and I will update the question with the feedback.
help will be appreciated... and rewarded :)
thanks
I found the problem.
I didn't mark Static Content in features for IIS.
In Windows Features go to, Internet Information Services > World Wide Web Services > Common HTTP Features > Static Content
Under Application Development Features I selected Asp.Net it selected automatically everything else, I wonder why It didn't select this option too.
Hope it helps to someone else.
I am unable to show images in CR reports. I'm developing a MVC 2 project in VS 2008 with Crystal Reports that comes with it (10.5). Everything works fine, except for images. I can see them in the preview mode within the CR designer, but not when the app is deployed, which means I am loading data OK but something's wrong with IIS and/or routing.
When running the app, images appear with the red cross and if I navigate to the following url directly I get a 404 error.
http://localhost:1234/CrystalImageHandler.aspx
I think my problem is similar to the one here but that workaround doesn't seem to work for me.
I should also comment that I'm using the Areas feature within MVC.
EDIT: Forgot to add: When exporting the report to PDF the images are shown ok.
I don't know much about crystal reports, but is there an Http Handler? If there is and you are running IIS 7 on the live server, is the handler registered in the web.config under both system.web/httpHandlers and under system.webServer/handlers?
I forget to register the handlers under system.webServer/handlers for our IIS 7 server sometimes and we were having a similar issue with the Microsoft Charting Controls.