The real problem is rather tricky. Firstly, one needs to realize that JAR is an archive (e.g. similar to ZIP) and archives are regular files. Thus the archive itself is located somewhere in the file system, hence, it is accessible via URL. On the contrary, the "subfiles" (entries) are just...
java,classpath,velocity,onejar
I managed to find the answer after a lot of digging. The code to use the ClasspathResourceLoader is as follows: VelocityEngine ve = new VelocityEngine(); ve.setProperty(RuntimeConstants.RESOURCE_LOADER, "classpath"); ve.setProperty("classpath.resource.loader.class", ClasspathResourceLoader.class.getName()); ve.init(); Secondly, many people are telling me that inside of a nested jar, the standard classpath loader shouldn't even be able...
There is a bug in socko web server, and I have solved the bug on the following issue in GitHub. GitHub: No resource for my/package in RestRegistry...
What you think about the following: <project> [...] <build> [...] <plugins> <plugin> <!-- NOTE: We don't need a groupId specification because the group is org.apache.maven.plugins ...which is assumed by default. --> <artifactId>maven-assembly-plugin</artifactId> <version>2.5.2</version> <configuration> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> </configuration> [...] </project> That will produce a...
Check this link you have to add the one-jar jar as excluded in Maven pom.xml file.