problem in JavaMethod classloader
Hi,
When I executing my custom method (on a javamethod server) I received next exception:
java.lang.IllegalArgumentException: Interface ru.custom.IMyInterface is not visible from class loader
at java.lang.reflect.Proxy$ProxyClassFactory.apply(Proxy.java:581)
at java.lang.reflect.Proxy$ProxyClassFactory.apply(Proxy.java:557)
at java.lang.reflect.WeakCache$Factory.get(WeakCache.java:230)
at java.lang.reflect.WeakCache.get(WeakCache.java:127)
at java.lang.reflect.Proxy.getProxyClass0(Proxy.java:419)
at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:719)
I'am understand that this happens when the interface you are trying to proxy is in a library loaded through two different classloaders but I'am not understand how to resolve this. Maybe someone has encountered such a problem?
When I executing my custom method (on a javamethod server) I received next exception:
java.lang.IllegalArgumentException: Interface ru.custom.IMyInterface is not visible from class loader
at java.lang.reflect.Proxy$ProxyClassFactory.apply(Proxy.java:581)
at java.lang.reflect.Proxy$ProxyClassFactory.apply(Proxy.java:557)
at java.lang.reflect.WeakCache$Factory.get(WeakCache.java:230)
at java.lang.reflect.WeakCache.get(WeakCache.java:127)
at java.lang.reflect.Proxy.getProxyClass0(Proxy.java:419)
at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:719)
I'am understand that this happens when the interface you are trying to proxy is in a library loaded through two different classloaders but I'am not understand how to resolve this. Maybe someone has encountered such a problem?
0
Comments
-
What exactly is your interface ? Is it part of a TBO or SBO or module ? How do you deploy it (e.g. packaged in a DAR in the docbase or do you copy the jar file to the JMS and if so where ? How do you call it ?
0 -
You could try to put it under ServerApps.ear/lib or ServerApps.ear/DmMethods.war/WEB-INF/lib even though it's not so clean (beware of upgrades). However, it is best practice to package TBOs in a DAR and deploy it to the docbase. This should solve your classpath issue.
1
Categories
- All Categories
- 108 Developer Announcements
- 53 Articles
- 106 General Questions
- 144 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 899 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 120 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management