On Tue, Sep 22, 2009 at 7:52 AM, Simon Laws <[email protected]> wrote:
> Hi Ram
>
> Haven't tried with that version. Having looked at the code though
> there does seem to be a rather suspicious "if" statement. The stop()
> method of the DojoModuleActivator is as follows.
>
>
> public void stop(ExtensionPointRegistry registry) {
> Servlet servlet = servletHost.getServletMapping(dojoBaseUri);
> if(servlet == null) {
> servletHost.removeServletMapping(dojoBaseUri);
> servletHost.removeServletMapping(dojoUri);
>
> servletHost.removeServletMapping(tuscanyBaseUri);
> servletHost.removeServletMapping(tuscanyUri);
> }
>
> servletHost = null;
>
> }
>
> Just by visual inspection it would seem that is should read
> if(servlet != null). Is it possible for you to make this change
> locally and give it a spin. If not I'll see if I can get a copy of the
> JDK and try it here.
>
This seems like a required fix, but while trying to generate a local
distro to test this, I keep getting the following exception... has
anyone seen this ?
[java] Caused by: java.lang.ClassNotFoundException:
org.apache.tuscany.sca.web.javascript.dojo.DojoModuleActivator
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:330)
--
Luciano Resende
http://people.apache.org/~lresende
http://lresende.blogspot.com/