I've built the httpd muse interface using the sample MYCAPABILITY and have
started and stopped it using a test client. However I have been unable to
do anything that is resource related. For example, I keep getting
java.lang.NullPointerException when I try to access the manager variable
using the following code snippet:
ResourceManager manager = getResource().getResourceManager();
BTW, the following also doesn't work:
ResourceManager manager = getEnvironment().getResourceManager();
There is no getResourceManager method from getEnvironment().
I have to call mycapability initialize() method from my client because it is
not loaded by Apache muse. Also the resource "hhtp-server" associated with
my resource context path subsequently doesn't get created since the manage
variable returns NullPointerException.
Resource resource = manager.createResource("http-server");
I have also tried using the SimpleResource class getEnvironment() and
getResourceManager() methods, both of which return null values.
Also the
String installDir = getInitializationParameter("httpd-install-dir")
returns null although I have the "httpd-install-dir" specified in the
muse.xml. I have been forced to subsequently hardcode the actual value of
httpd-install-dir. It is obvious that the muse environment is not
initialized. Any help would be appreciated. I have exhausted all my
options.
--
View this message in context:
http://www.nabble.com/Muse-Resource-not-initialized-tf3907854.html#a11079789
Sent from the Muse User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]