-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simply does not work... #3
Comments
Hello Gary, |
Hello: Here is my web.xml file: Here is my POM file: If you need to see any of the application context files please let me know. However I think I have identified the problem. I have two projects wherein I have installed the virtual-directory-mapping node in the weblogic.xml file. Both of these virtual-directory-mapping entries that were made in these two seperate projects point to the same local directory to find images. You can see the virtual-directory-mapping entry in the attached weblogicXML file. Now on a jsp page in the xxxcms project I have the following html: img src="http://localhost/xxximagemapper/slideshow/scroll image 2.jpg" The result of this html is that the jpg image being pulled from xxximagemapper - which is one of the projects mentioned earlier, works just fine, while the same jpg image being pulled from xxxcms - the other poject mentioned earlier - does not. BTW - the files provided earlier belong to the xxxcms project. Also: In a new browser window I can place the above img src URL that points to the xxximagemapper project and the image returns successfully. However when I enter the img src URL that points to the xxxcms project it returns a 404 - Not Found, even though both projects have the same virtual-directory-mapping entry pointing to the same local directory where the jpg image is stored. This is what I see that could be the problem: In the Chrome inspector, in the Network tab, I see that the image being pulled from the xxxcms project - the one that doesn't work - shows a type of "text/html", which is wrong, while the image being pulled from the xxximagemapper project shows a type of jpeg, which, of course, is correct. |
I have implemented the sample provided here on a Weblogic 12c server. I have this directory established:
C:\nrdImagesDir\slideshow, and \slideshow is populated with, among others, a file named USDA.jpg and a file named V4W_5.jpg.
Here is my weblogic.xml:
On my index.jsp page I have two img tags:
and:
When the page renders I get:
http://localhost:7001/NRDAlphaSpringAngular/slideshow/USDA.jpg 404 (Not Found)
http://localhost/NRDAlphaSpringAngular/V4W_v5.JPG 404 (Not Found)
I've been wrestling with this for the last three hours with no success. I have tried using forward slashes and back slashes in the local-patha nd url-pattern nodes. It appears that WLS is simply ignoring the virtual-directory-mapping tag in the weblogic.xml file. Any ideas? Thank you. Gary
The text was updated successfully, but these errors were encountered: