[Yanel-dev] Ambiguous file resolving if two resources are contained in the same jar file

Michael Wechner michael.wechner at wyona.com
Sat Jul 23 01:31:46 CEST 2011


On 7/23/11 12:29 AM, Michael Wechner wrote:
> On 7/22/11 5:20 PM, Michael Wechner wrote:
>> Hi
>>
>> I have refactored the search/re-index resources such that these use 
>> the same package.
>>
>> For all other similar cases I have added a bug entry
>>
>> http://bugzilla.wyona.com/cgi-bin/bugzilla/show_bug.cgi?id=8447
>>
>> The search/re-index works now for me locally using jar files (as 
>> binary), but it still doesn't work
>> properly on one of our servers. Will try to figure out what might be 
>> the problem and keep you posted...
>
> I think I have found the problem. Tomcat 5.0.30 on our server seems to 
> extract the jar files into the work directory and the Java class 
> src/core/java/org/wyona/yanel/core/ResourceTypeRegistry.java does only 
> check for files called resource.xml instead resource-*.xml as well.
>
> Whereas on my local machine the jar files are not extracted, but 
> directly used, hence the difference.
>
> The code even contains a TODO, but it didn't say what TODO exactly :-( 
> I guess that's my bad, but it should be improved now soon.

this is fixed now (by improving 
src/core/java/org/wyona/yanel/core/ResourceTypeRegistry.java), whereas 
the difference really was on my local machine with Tomcat 5.5.20 the 
resources were loaded directly from the jar files, whereas on the server 
using Tomcat 5.0.30 the jar files were first extracted into the work 
directory and then loaded from there.

Good night ;-)

Michael


More information about the Yanel-development mailing list