Skip to Content
0
Former Member
Nov 16, 2010 at 07:36 AM

JCo and NetWeaver Application Server

148 Views

Hi JCo expert,

I am trying to deploy a Web app which includes JCo3.0 library to Netweaver 7.1. In my web app, I want to register my own DestinationProvider. But it will result in:

java.lang.IllegalStateException: DestinationDataProvider already registered [com.sap.security.core.server.destinations.provider.DestinationsProviderFrame]
               at com.sap.conn.jco.rt.RuntimeEnvironment.setDestinationDataProvider(RuntimeEnvironment.java:132)
               at com.sap.conn.jco.ext.Environment.registerDestinationDataProvider(Environment.java:216)

I understand that Netweaver must ship its own JCo as well. But I just want my web app to use the JCo in the WEB-INF lib. How can I resolve this ClassLoading issue?

I've tried that deploy multi webapps with their own JCo on Tomcat, everything runs fine. I am wondering if I can do it on Netweaver as well.

Thanks,

Jian