> From: Christopher Kohlhaas [mailto:[EMAIL PROTECTED]] 
>
> 3. org.apache.excalibur.source.impl.SourceResolverImpl throws
> a SecurityExcetpion on contextualization. Cause:
> 
> ( (File)m_context.get( "context-root" ) ).toURL()
> 
> The toURL method accesses System-variables (and the local 
> file-system) when trying to convert the file to an URL. The 
> SourceResolverImpl class is needed internally by the 
> ContextManger to resolve the locations of the 
> configuration-filse. But with applets or webstart clients 
> these configurations are normally located on the server and 
> "context-root" should be something like 
> "http://myserver.mydomain:myport/mycontext"; instead of File-Object.
 
Just guessing here but would changing the above to:

            if( m_context.get( "context-root" ) instanceof URL )
            {
                m_baseURL = (URL)m_context.get( "context-root" );
            }
            else
            {
                m_baseURL = ( (File)m_context.get( "context-root" )
).toURL();
            }

work? We allow the context-root entry to be a URL as well.

/LS


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to