2016-11-23 13:27 GMT+01:00 Emmanuel Touzery <[email protected]> :
> Hello, > > thank you! I'm getting close. One more thing.. When it starts, it gets > the application name "": > > [INFO] Deployed Application(path=) > > well, that may be OK I guess. But more problematic, in the web.xml we > specified that rest calls should go under REST and it ignores that and puts > them straight at the root. I know you advised for > ServletContextInitializer, but I wouldn't change too much at once. How > would tomee-embedded behave differently than the normal tomee on that, > isn't that strange? The web.xml is read otherwise, although I don't see > much in the logs regarding that. > > [answering without really knowing what you do there so can be out of context] web.xml is read from src/main/webapp I assume and there are few ways to read it from elsewhere but ServletContextInitializer would allow to code it and support several environment. Used it quite a few time with success and it is nice to can code it instead of relying on filtering (N values to configure vs 1 which is the environment ;)). However the context is the <context> if you deploy the classpath so it is customizable in the plugi config. > Thank you! > > Emmanuel >
