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.

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
>>
>>

Reply via email to