What does the jar file contain? Is it a simple utility jar? If yes, then better put it inside the "$PROFILE/lib" (like $JBOSS_HOME/servers/default/lib) so that its contents will be available to the other deployed applications.
Why do you want to deploy a plain JAR to the JBoss ?
Also please elaborate what exactly do you mean by "This jar entry is visible in WAR and for this context path = test.jar" ?
Thanks for your reply.
This is not utility jar. This jar is provided by our client as their one application. They wanted us to deploy this on JBOSS 4.1.0 EAP. Please find folder structure
|---context.xml [contain <Context path="/TestW"/>]
"This jar entry is visible in WAR and for this context path = test.jar" ? - In admin console we have option t
o deploy application as WAR. In that this application is visible with
"context path = test.jar". It should show TestW as per context path specified in context.xml
Please let me know how to deploy JAR
Your applications structure looks like a WAR (Not a JAR)
I will suggest you to rename "test.jar" as "test.war" and simply put it inside the "$PROFILE/deploy" directory and see what happens.
Because the JARs do not include the WEB-INF/web.xml or jboss-web.xml so i guess your client might have done some type and might have said "test.jar" rather than "test.war"