> > > > I have my default.js in a frontend.jar's /META-INF/resources/js/ according > > to the specs (last paragraph of point 10.10 in > > https://download.oracle.com/otn-pub/jcp/servlet-3.0-fr-eval-oth-JSpec/servlet-3_0-final-spec.pdf > > ) it is served successfully. This works great! > > 1. If you unpack the file into a directory in your web application > (into its /js/ directory), > it will take precedence over the version packed in the framework jar.
Ok this will work but I run the app using mvn tomcat:run Any behavioural modification to this process will order modifications to the pom.xml. Since this leads to be more project-specific code under version-control to support I like to avoid this. > > > 2. It is possible to map files from elsewhere on your hard drive into > your web application. > It can be done with "<PreResources>" element in the > META-INF/context.xml file of your web application. > > For reference: > http://tomcat.apache.org/tomcat-9.0-doc/config/resources.html[http://tomcat.apache.org/tomcat-9.0-doc/config/resources.html] > This might do the trick! Ill try that out. If that is confirmed to be working I can get rid of https://github.com./enexusde/devtools-tomcat-bypass . > > 3. If your Tomcat runs on the same computer. you can run the web > application from an expanded directory, without packing it as a war > file. > > 1) Copy your META-INF/context.xml file as > $CATALINA_BASE/conf/Catalina/localhost/yourwebappname.xml > > 2) Add docBase attribute to the <Context> element in it. > > See > http://tomcat.apache.org/tomcat-9.0-doc/config/context.html#Defining_a_context[http://tomcat.apache.org/tomcat-9.0-doc/config/context.html#Defining_a_context] > Since beside the frontend.jar I have other jars who serve static resources. This means I must have multiple docBases what is not possible AFAIK. > > Best regards, > Konstantin Kolinko Kind regards Peter Rader --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org