[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[ews.eclipse.technology.rap] Registering resources - ResourceRegistrationException

Hi,

I'm trying to register a directory which I intend to write files to at runtime, making them available to users via a URL. So far I've specified the directory as a resource in my plugin.xml:

     <extension
        point="org.eclipse.equinox.http.registry.resources">
 	<resource
		alias="/project-bin"
		base-name="/project-bin">
	</resource>
  </extension>

And at runtime I've tried calling RWT.getResourceManager().register("project-bin/testfile"); (testfile is just a file I've placed there). I get the exception:

org.eclipse.rwt.internal.resources.ResourceRegistrationException: Failed to register resource 'project-bin/test'.

Could anyone tell me what I've done wrong and also how to access this directory in my Java code so I write to it?

Thanks,
Mike