Hi i solved the classloader problem now its working good but if v create two servlet container named sample1 and sample2
example:
i have created two servlet container named sample1 and sample2
i had created same package name for both.
In sample1,
i created one servlet class with package name like com.sample.Hellowrold and /hello1 is alias name
In sample2,
i created one servlet class like com.sample.Hellowrold and /hello2 is alias name.
i need to register the servlet in registerServlet method.
it takes only the first class name.
pls help me to define the registerServlet for this.
see below code in mainThread class
hs = (HttpServlet) cls.newInstance();
System.out.println("war : "+wars[i]+" context:"+contexts[j][0]);
httpService.registerServlet(wars[i]+contexts[j][0],hs, null,null);
output:
war : /sample1 context:/hello
hs : /sample1 com.sample.HelloWorld@16ba008
war : /sample2 context:/hello
hs : /sample2 com.sample.HelloWorld@@9f2cff
sample1 only work..
pls help me to solve this problem..
Software/Hardware used:
ASKED:
April 29, 2009 7:46 AM
UPDATED:
April 29, 2009 12:48 PM