Pages

Friday, September 23, 2011

java.lang.IllegalArgumentException: interface is not visible from class loader

Hi

I have generated the web service client using wsimport utility and generated clent classes are copy to the OIM_Home/ThirdParty Directory. Even though I have I have copied client classes to the ThirdParty directory and I am getting the following error while invoking the webservice inside the process task and also plugin.

java.lang.IllegalArgumentException: interface edu.sfsu.powershell.exchange.ExchangeService is not visible from class loader
at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)
at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
at weblogic.wsee.jaxws.spi.ClientInstance.createProxyInstance(ClientInstance.java:143)
at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.getPort(WLSProvider.java:855)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:344)
at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.getPort(WLSProvider.java:792)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:326)
at javax.xml.ws.Service.getPort(Service.java:92)
at edu.sfsu.powershell.exchange.ExchangeServiceService.getExchangeServicePort(ExchangeServiceService.java:56)
at edu.sfsu.connector.target.search.scheduler.SearchTargetReconUsers.execute(SearchTargetReconUsers.java:25)
at oracle.iam.scheduler.vo.TaskSupport.executeJob(TaskSupport.java:145)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.iam.scheduler.impl.quartz.QuartzJob.execute(QuartzJob.java:196)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)

Solution:

Copy the Genrated Class files into the Oracle_IDM1/server/apps/oim.ear/APP-INF/lib directory and restart the OIM Server and issue will be resolved.

3 comments:

  1. Hi,
    Am facing the same issue but not able to find the oim.ear in OIM 9.0.1

    ReplyDelete
  2. Hi Prasant.

    The above solution for OIM 11G. If your not able to find the OIM 9, please make the jar file and added into the weblogic classpath. Please let me know if you have any issues.

    ReplyDelete