Weblogic war file classpath
Tags: Spring configuration file , Weblogic deployment war. Spring MVC for beginners Notes The most commonly used scenarios for redis The difference between rewriting and overloading Java daily exercises, make progress a little every day 43 Servlet-HelloWorld Spring framework common annotations Interviewer: if the order has not been paid for 30 minutes, it will be automatically cancelled. How to realize it? Pre: China database technology conference was successfully concluded, and lxdb, a new product of digital recording software, appeared at the conference.
Finally, I found the solution to my problem. The strange behavior is given by jaxws. Since it is a native java library, Weblogic loads it with the system class loader. When my objects are declared within a method, they're naturally loaded ad runtime.
The methods signatures, instead, are loaded at deploy time, therefore, since my libraries are defined within the Manifest of the war, they're not "seen" yet, so the ClassNotFoundException. Long story short: I renamed libz to lib and Weblogic loads the ear in the "standard way", that is looking for the application libraries within the well known folders.
Then I completed as follows:. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 3 years, 11 months ago. Active 3 years, 11 months ago. Viewed times.
ClassNotFoundException: com. Foo I tried to play around with the "prefer-web-inf-classes" in the weblogic deployment descriptor, but this approach doesn't work because I need to keep the classloading order for the reason mentioned above and I can't force weblogic to use the one in the war's Manifest.
Thanks a lot. L4zl0w L4zl0w 1, 3 3 gold badges 14 14 silver badges 41 41 bronze badges. Add a comment. Active Oldest Votes. Improve this answer. Place your custom property file Let's say config.
Gladwin Burboz Gladwin Burboz 3, 14 14 silver badges 15 15 bronze badges. If that is so, then please see below Answered here: There are ways to read properties file in Java from weblogic classpath One Properties file located in the weblogic domain : Drop the properties file inside the Domain directory.
FileNotFoundException; import java. IOException; import java. InputStream; import java. Rahul Thotakura Rahul Thotakura 51 4 4 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Stack Gives Back
0コメント