Why does font-awesome icon not show after deploying? - spring

In my Spring MVC App I am using some Font Awesome icons. They work fine, when I test the application locally.
But when I deploy the war file to a linux server, the icons are not shown.
I checked the page, and in my opinion all resources are found.
Do you have an idea?

found out, that there was an error in the pom.xml. The resources were missing in the war file.

Related

Vue js Development Code is Working fine but Production build Gives Blank white screen on Opening

Developers Recently i am working on a vue js Website, and everything is working fine on Development but when i build the code using npm run build , the production build gets successfully build but when i try to open the index.html file inside dist directory the file gets opened in Browser but a Blank white page gets Displayed.
You need to start your server, not open the file directly.
Because Vue builds files and connects JS and CSS like it would be on the server.
And now, when you are opening the file, it can't find JS/CSS.
How do you want to deploy your app? I think the following post can help you:
How to deploy vue app
Please check if you have a vue.config.js file and if the configuration is correct according to your project setup.

Assets not found in Railo Express

I downloaded and extracted railo express 4.2.1 to the base of my C: drive on windows 7. I started the application without making any configuration changes as I don't know what I would need to change. I created a CustomerService folder inside the webapps/root directory which holds my FW/1 customer service application. The ColdFusion code runs perfect however when I try to link to any other kind of resource such as css, js or image files they are not found. If I place an image in the CustomerService/assets/images/icons folder and add a link to it using the image does not show up (broken link icon instead). If I right click and view image I get a page that says:
Problem accessing /customerservice/assets/images/icons/add.png. Reason:
Not Found
Powered by Jetty://
The url path for the image that is displayed in the address bar is:
http://localhost:8888/customerservice/assets/images/icons/add.png
which from my understanding is correct and I have verified that the add.png image is in the icons folder of the images folder for the assets folder which is in the CustomerService folder.
Does anyone have any suggestions? Do I need to configure something in the Railo server or web administrators or in Jetty some how? If so what and how do I do that?
Thanks,
Jason Presley
When you use the internal server on Railo, it is case sensitive. That may be the issue. I see that you have "CustomerService" in camel case

Birt report viewer installation on glassfish

I'm trying to set up an Birt report viewer (4.3.1) on a glassfish server(4).
The index page works, but when i try to run the test report , the browser gives me some text but not render the player. That doesn´t seems like an exception.
That's the screenshot:
https://dl.dropboxusercontent.com/u/3294352/www/BIRTPROBLEM.PNG
Seems like the path is incorrect (images, styles and js includes)... I did try to solve moving the files on applications folder (on glasshfish domain), but that's not working.
Please, help :)
I had the same issue.
http://developer.actuate.com/community/forum/index.php?/topic/34461-birt-glassfish/#entry127724
I responded to a similar questions about this on the Eclipse BIRT Newsgroup a little while back. I saw the same issue with the frameset and run servlets. If you change the URL to preview, it works as expected. You could file a bug for this in the eclipse.org/birt bugzilla to see what they say.

Is it possible to change the location of the default theme folder in VAADIN?

I'm currently using vaadin 6 with OSGi.
I'd like to create a new theme, but since I'm using OSGi I can't add one under the VAADIN/theme folder since I don't have access to it.
I want to tell vaadin to look for my theme using another URL in my HTTP namespace.
Can I achieve this? The setTheme() method accepts only strings and I couldn't find anywhere if it's possible to register another default folder for themes.
Thanks
You can do this by creating your theme in a fragment Bundle and then attach it to the Vaadin bundle. This will practically merge/append the resources to the host bundle.
So you provide:
VAADIN/themes/mytheme/
in your fragment bundle and create the manifest with the
Fragment-Host
set to
Vaadin 6: com.vaadin;bundle-version="${vaadin.version}"
Vaadin 7: com.vaadin.client-compiled;bundle-version="${vaadin.version}"
No, unfortunally this is not possible.
From here : https://vaadin.com/de/book/vaadin6/-/page/themes.creating.html
Custom themes are placed in VAADIN/themes folder of the web application (in the WebContent directory) as illustrated in Figure 8.1, “Contents of a Theme”. This location is fixed. You need to have a theme folder for each theme you use in your application, although applications rarely need more than a single theme. For example, if you want to define a theme with the name mytheme, you will place it in folder VAADIN/themes/mytheme.
You might also try pax for vaadin, it's not released yet and I'm laking some time to work on it more, but it should work for your use case. It tries to find vaadin applications and themes in your bundles.
https://ops4j1.jira.com/wiki/display/PAXVAADIN/Home

Images not loading through CSS on IIS7.5 MVC4

My web app(MVC4) is hosted on IIS 7.5, Windows 7 Ultimate with .net framework 4.0 and 4.5 installed. On hosting the application, the images are not rendered, giving me a 404 error
The content type is "Text/html" shouldn't it show as "image/jpeg or png"?
On giving the image path directly, the image is rendered, but not through css. The css is loading, as my layout is intact.
I have gone through many questions related to the same issue, have included
<modules runAllManagedModulesForAllRequests="true" />
checked for Static Content under IIS>WWW Services in
control Panel, applied hotfixes (http://support.microsoft.com/kb/980368).. in vain.
My css code is as below,
body{background:url(images/bg.jpg);
image folder structure is
ABC
images (folder)
bg.jpg
main.css
(have tried giving the image path along with .. and /, no use)
ExtensionlessUrlHandler, are present in the webconfig, hosted on .net framework 4.0 (integrated),
My IIS also co-hosts MVC3 application, which runs fine.
Not sure what is the issue? I am missing something, which hasn't been tried yet, your help would give me some sleep.
Update:
Refering to this post
I changed the bundle according to the answer by Calgary Coder, the image is loading now.
As per this post,
I changed my bundle (as per below format/pattern)
bundles.Add(new StyleBundle("~/Content/css/jquery-ui/bundle")
.Include("~/Content/css/jquery-ui/*.css"));
And the images are loading now. Thanks to Calgary Coder.

Resources