Cannot Use Extensions.Packages Reliably in an OSGi Environment
--------------------------------------------------------------

                 Key: STS-652
                 URL: http://www.stripesframework.org/jira/browse/STS-652
             Project: Stripes
          Issue Type: Improvement
          Components: Validation
    Affects Versions: Release 1.5
            Reporter: Walter Rumsby


We're trying to set up our own TypeConverter implementations for dealing with 
Dates. In my web.xml I configured the Extension.Packages parameter, but noticed 
that the default converter was still being used.

Further debugging and stepping through the code revealed that the problem 
appears to be caused by ResolverUtil's use of 
Thread.currentThread().getContextClassLoader() which appears to create issues 
for OSGi applications, i.e. I get the following error:

26 Feb 2009 15:14:37,951 | 378837      [ERROR] {Thread-51} 
(net.sourceforge.stripes.util.ResolverUtil) Could not search jar file 
'\com\orchestral\common\stripes\converter' for classes matching criteria: is 
assignable to Interceptordue to an IOException: 
\com\orchestral\common\stripes\converter (The system cannot find the path 
specified)

If I use the @Validate annotation with converter= I can use TypeConverters from 
the com.orchestral.common.stripes.converter package.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to