On Sat, Jan 15, 2022 at 6:05 PM Satyajit Rout <satyajitrout...@gmail.com> wrote: > > I want to serve the static file of a reactjs application through this > tomcat native image and I don't have any jar/war file to place under the > webapps folder. > > But tomcat native image is not running without a server.xml file in the > same path from where the native image is triggered.
You have to place a server.xml and all the other usual configuration files in the conf folder, this is really the same thing as the usual Tomcat standalone. It seemed explicit enough when I wrote the sentence in the doc. The idea is to not duplicate the default server.xml (and all the others everywhere for no reason. Would you have understood it better if "The main configuration files are placed in the conf folder" -> "The usual configuration files for Tomcat standalone (server.xml, web.xml, etc) should be placed in the conf folder" ? Rémy > > Thanks, > Satyajit > > On Sat, 15 Jan 2022 at 22:29, Satyajit Rout <satyajitrout...@gmail.com> > wrote: > > > > >> Hi Team, > >> > >> I am trying to build a native image of tomcat on GraalVM by referring to > >> the doc at > >> "https://tomcat.apache.org/tomcat-9.0-doc/graal.html#Building_the_native_image". > >> > >> The documentation says, "Inside the tomcat-stuffed folder, the directory > >> structure is the same as for regular Tomcat. The main configuration files > >> are placed in the conf folder, and if using the default server.xml the > >> webapps are placed in the webapps folder." > >> > >> But if you clone the repo > >> "https://github.com/apache/tomcat/tree/main/modules/stuffed" there is no > >> files inside tomcat/module/stuffed/conf folder except .gitignore file. > >> > >> After building the native image, while I am trying to run the native image > >> on another server it fails as it is *unable to find conf/server.xml on > >> that server*. Do we have any workaround to package the conf folder into > >> the native image or any other resolution for this issue? > >> > >> > >> Thanks & Regards, > >> > >> Satyajit > >> > >> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org