I created a web application in Netbeans, and it packages the application in a file called "aa-bb.war". When I run the project in netbeans, I can access it at "localhost:8080/aa/bb". This is all good.
Moving the .war file into a standard tomcat installation though, gives me problems. When I drop the .war into the "webapp" directory, it gets exploded into "webapp/aa-bb", but what I really want is "webapp/aa/bb" (note the "-" vs "/" in between "aa" and "bb")... so bb should be in a subdirectory of "aa".
My understanding of this is because tomcat uses the filename of the .war to create the exploded dir, and so since the war is called "aa-bb", it obviously uses the hyphen. My "context.xml" file does have the correct path "aa/bb", but I've read that Tomcat 5+ will ignore the context path specified in the .war and create a path based on filename instead.
How can I force tomcat to use a subdirectory (it may seem like a small difference in the resulting url ("aa-bb" vs "aa/bb"), but it actually is a big problem for reasons that I won't get into right now (just complicates things).
Thanks...