Hi i solved the classloader problem now its working good but if v create two servlet container named sample1 and sample2
i have created two servlet container named sample1 and sample2
i had created same package name for both.
i created one servlet class with package name like com.sample.Hellowrold and /hello1 is alias name
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]);
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..