Weblogic 10.3.1.0 is using com.bea.core.apache.commons.net_1.0.0.0_1-4-1.jar… I want to use commons-net-2.0.jar from my code

I want to use commons-net-2.0.jar from my code. WebLogic uses a parent class loader first strategy and you basically have two options to tweak this behavior: Use the prefer-web-inf-classes element in a weblogic.xml Web application deployment descriptor (that goes in WEB-INF next to the web.xml) ~or~ Package your war insider an EAR and use WebLogic … Read more

Spring Boot exception: Could not open ServletContext resource [/WEB-INF/dispatcherServlet-servlet.xml]

I found a workaround putting a dummy dispatcherServlet-servlet.xml file under WEB-INF: <beans xmlns=”http://www.springframework.org/schema/beans” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd”> <!– Do not remove this file! –> </beans>

Weblogic 10.3.5 Overriding Spring Version

I had the same problem. The solution was to create weblogic-application.xml into the META-INF folder of EAR project. Here is the code. <?xml version=”1.0″ encoding=”UTF-8″?> <weblogic-application> <prefer-application-packages> <package-name>org.apache.*</package-name> <package-name>org.springframework.*</package-name> </prefer-application-packages> </weblogic-application> Maybe your problem is that you’re using weblogic.xml into WAR project instead of weblogic-application.xml into EAR project. Hope it helps.

How to lookup JNDI resources on WebLogic?

You should be able to simply do this: Context context = new InitialContext(); dataSource = (javax.sql.DataSource) context.lookup(“jdbc/myDataSource”); If you are looking it up from a remote destination you need to use the WL initial context factory like this: Hashtable<String, String> h = new Hashtable<String, String>(7); h.put(Context.INITIAL_CONTEXT_FACTORY, “weblogic.jndi.WLInitialContextFactory”); h.put(Context.PROVIDER_URL, pURL); //For example “t3://127.0.0.1:7001” h.put(Context.SECURITY_PRINCIPAL, pUsername); h.put(Context.SECURITY_CREDENTIALS, … Read more

How to set order of jars in WebLogic?

There are several ways of doing this. Change your startWeblogic.cmd(sh) in the bin folder for your domain, look for the classpath setting and add the new joda before any other WebLogic jars as was said above, you can change your weblogic.xml if the application is a web application and chose to prefer any lib that … Read more