This content has been marked as final. Show 3 replies
You mean the servlet class is in a separate jar file, or the web.xml file? You're not clear at all.
I mean servlet class in a jar, and web.xml in war file. Jar is not present in (copied to) war file.
Please keep in mind that both jar & war are placed in ear as at picture above.
"maybe", but then in a jar which is present in the WEB-INF/lib of the war, not in a jar that is part of the ear.
Of course nothing can stop you from trying it out, but I'm pretty sure you'll be met with incredibly nasty deployment error messages.