Posts Tagged ‘long tweet’
(long tweet) Tip: How to know the location of a resource?
Case:
You have many files with the same names (log4.xml
, applicationContext.xml
, etc.), you need know which of them is loaded.
Tip:
On the debugger and/or in the logs, use an instruction similar to:
getClass().getClassLoader().getResource("log4j.xml")
(long tweet) JOnAS / no security manager: RMI class loader disabled
On server side:
an EJB2 packaged in a JAR within an EAR, deployed on JOnAS 5.
On client side:
java.lang.ClassNotFoundException: org.ow2.jonas_gen.com.clam.indice.api.interfaces.JOnASHelloWorldService150707405Home_Stub (no security manager: RMI class loader disabled)]
Explanation:
This means there is some kind of issue with generated Stubs on client side. Should check whether the Stubs depended on are available in classpath.