Cannot start fosstrak epcis repository in tomcat

7 views
Skip to first unread message

Saxon TSE

unread,
Oct 31, 2025, 7:41:58 AM (4 days ago) Oct 31
to fosstrak
Hi everyone,

I am new in RFID, and now starting to learn how to integrate a RFID system.  

The current problem that I am encountering is, after I install the fosstrak epcis repository 0.5.0 .war in tomcat, it cannot be started.

error.jpg

I have searched many websites but I cannot find what the problem is, so I am asking for you guys for help.

The testing environment information: 
OS: Windows 10
Java version: 1.7 & 1.8 
Tomcat Version: 9
EPCIS repository Version: 0.5.0

Windows environment variable information:
CLASSPATH: C:\Program Files\Apache Software Foundation\Tomcat 9.0\lib
JAVA_HOME: C:\Program Files\Java\jdk-1.8

JDBC MySQL connector Version: mysql-connector-j-9.4.0 (Copy the jar file to C:\Program Files\Apache Software Foundation\Tomcat 9.0\lib)

mysql_jar.jpg

I have used wamp for setting up MySQL, I have setup the user epcis as follow:
username hostname password Privilege Grant
epcis localhost YES ALL PRIVILEGES YES

I have created those tables that in epcis SQL scheme.

tables.jpg

Even I cannot test in tomcat, I have tried to connect using PHP with this account and the connection is successful(It should be using port 3306 as I know in PHP)

I have followed the instruction of fosstrak database connection setting that created a xml file for connection:
repos_05.jpg

The whole content of the xml file:
<?xml version="1.0" encoding="UTF-8"?>
<Resource name="jdbc/EPCISDB" type="javax.sql.DataSource" auth="Container" username="epcis" password="epcis" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/epcis?autoReconnect=true">
</Resource>
(I have tried to remove the first sentence to see whether it is different or not, but useless)


When I see the log, I don't know what does it means:

31-Oct-2025 19:08:41.390 CRITICAL [main] org.apache.catalina.startup.HostConfig.deployDescriptor Error deploying deployment descriptor [C:\Program Files\Apache Software Foundation\Tomcat 9.0\conf\Catalina\localhost\epcis-repository-0.5.0.xml]
java.lang.IllegalStateException: Error starting child
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:600)


I don't know where is my problem, can anyone please answer me?

Thank you very much for your attention.

Saxon

Marina Stamatiadou

unread,
Oct 31, 2025, 7:52:52 AM (4 days ago) Oct 31
to fosstrak
 Hi Saxon, 

The error is probably in your xml file. 
Root element must be <Context>. Having only <Resource> will trigger “Error starting child”.

Hope this helps, 
Marina   

Saxon TSE

unread,
Oct 31, 2025, 8:00:15 AM (4 days ago) Oct 31
to fosstrak
Hi  Marina,

Thank you for your reply,

OH! I works! I have been faked by the instruction of fosstrak! Thank you so much for your help!

Marina Stamatiadou 在 2025年10月31日 星期五晚上7:52:52 [UTC+8] 的信中寫道:

Diogo Correia

unread,
Oct 31, 2025, 8:00:37 AM (4 days ago) Oct 31
to fosstrak
I haven't touched anything Fosstrak since my master's dissertation, but I remember being super broken at the time.
Not sure if it helps, but here is my Dockerfile for EPCIS from that time.

Saxon TSE

unread,
Oct 31, 2025, 8:04:34 AM (4 days ago) Oct 31
to fosstrak
Hi Diogo,

Thank you for your reply, the problem is fixed, but I still have many problems about integrating a RFID system. 

Diogo Correia 在 2025年10月31日 星期五晚上8:00:37 [UTC+8] 的信中寫道:
Reply all
Reply to author
Forward
0 new messages