Questions tagged [resource-loading]
44 questions
1
vote
1 answer
How can I make the Topbar extension work with the newest MediaWiki?
I run a MediaWiki site which uses the Topbar extension. I recently upgraded the installation to the bleeding edge version from MediaWiki's master branch: version 1.28.0-alpha (91e56cc).
Afterwards, the Topbar extension no longer works:
Usually, the…

ctrueden
- 6,751
- 3
- 37
- 69
1
vote
1 answer
ResourceNotFoundException on existing path
I have the following class:
public class EmailService {
static {
Velocity.setProperty("resource.loader", "class");
Velocity.setProperty("class.resource.loader.class",…

gstackoverflow
- 36,709
- 117
- 359
- 710
1
vote
2 answers
Wrong URLs generated by Websphere Portal JSF 2 Myfaces Portlet Bridge
I tried to integrate JSF 2 (standard Myfaces 2 implementation from IBM Websphere 8) and Primefaces 4 in a Websphere Portal 8 Portlet.
Primefaces was loaded but the Primefaces resources were not loaded. So I opened my firebug and took a look at the…

Robyn Neundam
- 11
- 2
1
vote
1 answer
JSF resource loading issue (.xhtml loads, .css/.js/.gif etc doesn't)
I have a Liferay 6.0 instance running on Glassfish 3.0.1 with custom portlets written in JSF with RichFaces. All the UI parts (xhtml files, js, css etc.) loaded from jar files within the war's WEB-INF/lib directory. All the resource files are put…

marczeeee
- 181
- 1
- 13
1
vote
1 answer
Resource string in dll not entirely visible after loading it in a program
I made a C++ DLL plugin statically linked to MFC for a certain program (I don't have its source code) using VS2008.
After integrating my plugin to the software, everything worked fine except for a string resource which corresponds to my plugin's…

Norbulak
- 23
- 4
1
vote
0 answers
Implementing a ClassLoader, how should findResources() behave?
I am trying to implement my own class loader, but I have trouble with the resource part - the javadoc on these methods is very brief, and I'm wondering about what the correct behavior for these methods should be.
In particular I'm asking about…

Durandal
- 19,919
- 4
- 36
- 70
0
votes
0 answers
Unable to read file keystore and truststore from classpath resources
I am facing an issue while packaging the spring boot application as jar with secrets externalized with application properties.
It is unable to find the keystore/mykeystore.jks and truststore/mytruststore.jks files from the classpath resources in pod…

MR_K
- 117
- 4
- 17
0
votes
1 answer
babel-plugin-content-transformer is not working on a React Native Expo project
I'm using React Native with Expo, which uses Babel + Metro. If it matters, I'm using Typescript.
I'm trying to import YAML files as text (or potentially an object, but I'd actually like the raw YAML for some more complex parsing). However, when I…

Nathan
- 73,987
- 14
- 40
- 69
0
votes
0 answers
Java - How to load resources form the source folder with gradle and Intelij
I'm using Gradle and IntelliJ.
I have a project with the following structure:
MyProject
-src
-main
-java
-com
-app
-resources
-myfile.json
I want to read myfile.json, but there is no…

Jonatas Fischer
- 1
- 1
0
votes
1 answer
How to get all files with xml extension placed in resources of springboot application?
I have a spring-boot application and I want to collect all XML files which are placed in the /src/main/resources directory which follows a structure as given below :
-resources
-files
-dir1
-dir11
a.xml
b.xml
…

Harshal
- 961
- 1
- 11
- 26
0
votes
1 answer
URL resource = this.getClass().getResource("file-name") is null
Completely puzzled.
I do:
URL resource = this.getClass().getResource("eye-visible.png");
and the URL evaluates to null. "eye-visible.png" is a file in the same package as my class, which is "Controller.java":
I also tried (actually I started with…

seinecle
- 10,118
- 14
- 61
- 120
0
votes
0 answers
SVG Sprite Resource Loading Performance
I have recently switched all of my icons on my site to SVG icons/images. I am serving all of the SVGs from one sprite file. I am using Chrome Dev Tools Performance to try to optimize loading of resources. I was very surprised to see that the…

RJW
- 21
- 4
0
votes
1 answer
.jar will not find internal resource images but compiled program does
I've been trying to load some pictures to use in my Swing UI and while my compiled program will load the images correctly, my .jar does not find the images.
First of all, I've marked my resource file as "Resource Root". The project layout looks like…

g_elef
- 57
- 9
0
votes
1 answer
Let velocity find templates in war
I am using Velocity templates which I store in src/main/webapp/templates.
My Jersey-based REST service needs to find these templates. Locally in my Eclipse (with Sysdeo plugin), I used
p.setProperty("resource.loader",…

J Fabian Meier
- 33,516
- 10
- 64
- 142
0
votes
1 answer
Mediawiki add Jquery plugin via ReourceLoader
I'm trying to add a JQuery plugin which is not one of core plugins of mediawiki (twbsPagination)
The problem is mw.loader.using doesn't support URL so I can't pass url of twbsPagination to be loaded & mw.loader.load doesn't support callback to…

Ariyan
- 14,760
- 31
- 112
- 175