From: <php...@li...> - 2006-08-29 18:04:29
|
Ayer en la tarde, php...@li... dijo: > Hi, > > do you use the dynamic loader to load the classes? > > We've had two tickets with similar problems (class > cast exception because the proxies were assignment > incompatible to each other). Both of them were closed > because the users provided no feedback. -- One user > reported that the suggested workaround (to move the > libraries to the global classpath) worked, after that > he was unable to reproduce the original problem. > > However, I am quite sure there's still a bug in our > dynamic loader when dynamic proxies are used. Yes, as a matter of fact I load jar files on demand; this is the relevant part of the code (removed for brevity on previous post): ,---- | $cwd = dirname(__FILE__); | | $jars = array( | "$cwd/SpringDemo/", | "$cwd/jars/spring-aop.jar", | "$cwd/jars/spring-beans.jar", | "$cwd/jars/spring-context.jar", | "$cwd/jars/spring-core.jar", | "$cwd/jars/spring-dao.jar", | "$cwd/jars/spring.jar", | "$cwd/jars/spring-jdbc.jar", | "$cwd/jars/spring-remoting.jar", | "$cwd/jars/spring-web.jar", | "/home/staff/crgutier/jars/lib/j2ee/servlet-api.jar", | "$cwd/jars/lib/jakarta-commons/commons-logging.jar", | "$cwd/jars/lib/jakarta-commons/commons-httpclient.jar", | "$cwd/jars/lib/log4j/log4j-1.2.9.jar", | ); | | | java_require(join(";", $jars)); `---- I'll try with the workaround and report back. > Can you please run the server with: > > -Dphp.java.bridge.default_log_file=/tmp/javabridge.log > -Dphp.java.bridge.default_log_level=6 > > open a ticket (please use > http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) > and attach the full log at the end of the ticket? > > The log file will be large, but it should contain > information why our dynamic loader has dropped the > proxy even though spring still keeps a reference to > it. Just did. Thanks for your help. -- Guti cat /dev/coffee | /dev/cup | /dev/mouth | /dev/nose > /dev/keyboard |