google-code-export / nutz

Automatically exported from code.google.com/p/nutz
Apache License 2.0
1 stars 1 forks source link

castors: 在 weblogic 下不工作 #240

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
问题产生的条件:
   在 weblogic 服务下, Castors 不工作

发生问题的调用代码:
   Resources.getJarPath()
     ...
     int posBegin = fpath.indexOf("file:") + 5;
     ...

问题的详细说明:
    weblogic 返回的 URL,不是以 file: 开头的

异常堆栈:
   Fail to set value for object [com.user.bean.User_Base]->[id], because: 'Can not find castor for 'java.lang.String'=>'long' in (0) because

相关日志:
    17:21:06,218 DEBUG org.nutz.lang.util.Resources:125 - getBasePath for: 'org/nutz/castor/castor/Array2Array.class'
 17:21:06,234 DEBUG org.nutz.lang.util.Resources:141 - file<new ClassLoader: 'null'
 17:21:06,234 DEBUG org.nutz.lang.util.Resources:148 - file<Files.findFile: 'F:\weblogic_workspace\mydomain\servers\AdminServer\tmp\_WL_user\_appsdir_BSProject_dir\j3p1fb\war\WEB-INF\lib\nutz-1.a.30.jar!\org\nutz\castor\castor\Array2Array.class'
 17:21:06,234 DEBUG org.nutz.lang.util.Resources:164 - it is file, use parent: 'F:\weblogic_workspace\mydomain\servers\AdminServer\tmp\_WL_user\_appsdir_BSProject_dir\j3p1fb\war\WEB-INF\lib\nutz-1.a.30.jar!\org\nutz\castor\castor'
 17:21:06,234 DEBUG org.nutz.lang.util.Resources:57 - scan class in 'F:\weblogic_workspace\mydomain\servers\AdminServer\tmp\_WL_user\_appsdir_BSProject_dir\j3p1fb\war\WEB-INF\lib\nutz-1.a.30.jar!\org\nutz\castor\castor' :: package org.nutz.castor.castor
 17:21:06,234 DEBUG org.nutz.lang.util.Resources:65 - jar-path: eblogic_workspace\mydomain\servers\AdminServer\tmp\_WL_user\_appsdir_BSProject_dir\j3p1fb\war\WEB-INF\lib\nutz-1.a.30.jar

Original issue reported on code.google.com by zozoh...@gmail.com on 23 Jun 2010 at 9:35

GoogleCodeExporter commented 9 years ago
增加 JUnit:

 > ResourcesTest
    >  test_get_jar_path()

Original comment by zozoh...@gmail.com on 23 Jun 2010 at 9:51

GoogleCodeExporter commented 9 years ago
fixed in r1354

Original comment by zozoh...@gmail.com on 23 Jun 2010 at 9:52

GoogleCodeExporter commented 9 years ago

Original comment by zozoh...@gmail.com on 23 Jun 2010 at 9:53