The problem is that you are violation the container principle. According to the specification of Sun, there are a number of programming restrictions.
<SUN EJB 2.0 SPEC>
The enterprise bean must not attempt to set the socket factory used by ServerSocket, Socket, or
the stream handler factory used by URL.
These networking functions are reserved for the EJB Container. Allowing the enterprise bean to use
these functions could compromise security and decrease the Container’s ability to properly manage the
</SUN EJB 2.0 SPEC>
This means that you are not able to use the libraries that you have bought but that you are stuck what weblogic provides us.
Take a look at
Setting up URL connection factories