[installation] tomcat not working. HTTP Status 404

429 views
Skip to first unread message

pedro guifi

unread,
Mar 9, 2015, 7:43:28 PM3/9/15
to sen...@googlegroups.com
Hi,

I think I installed & configured appropiately: mongo, mysql, redis.
I see no errors in the mvn compilations. I can log with the authentication needed, I put the expected data.

But seems I have a problem in tomcat, and this generates problem in all the application.
I did nothing more than:
apt-get install tomcat7
[ubuntu 12.04 LTS, Apache Tomcat/7.0.26]

what else I need?

localhost:8080
perform the first test page of tomcat


extra info

errors tomcat:
HTTP Status 404 - /sentilo-catalog-web/api/alert/owners
nested exception is org.sentilo.common.exception.RESTClientException:


# ss -lntp
State      Recv-Q Send-Q                                                           Local Address:Port                                                             Peer Address:Port
LISTEN     0      128                                                                          *:80                                                                          *:*      users:(("nginx",2292,6),("nginx",2291,6),("nginx",2290,6),("nginx",2289,6),("nginx",2288,6))
LISTEN     0      100                                                                         :::8080                                                                       :::*      users:(("java",31945,38))
LISTEN     0      50                                                                          :::8081                                                                       :::*      users:(("java",5535,48))
LISTEN     0      128                                                                         :::22                                                                         :::*      users:(("sshd",7698,4))
LISTEN     0      128                                                                          *:22                                                                          *:*      users:(("sshd",7698,3))
LISTEN     0      128                                                                  127.0.0.1:631                                                                         *:*      users:(("cupsd",13988,9))
LISTEN     0      128                                                                        ::1:631                                                                        :::*      users:(("cupsd",13988,8))
LISTEN     0      100                                                                         :::25                                                                         :::*      users:(("master",14532,13))
LISTEN     0      100                                                                          *:25                                                                          *:*      users:(("master",14532,12))
LISTEN     0      1                                                             ::ffff:127.0.0.1:8005                                                                       :::*      users:(("java",31945,43))
LISTEN     0      128                                                                  127.0.0.1:27017                                                                       *:*      users:(("mongod",6720,6))
LISTEN     0      50                                                                   127.0.0.1:3306                                                                        *:*      users:(("mysqld",939,10))
LISTEN     0      128                                                                  127.0.0.1:6379                                                                        *:*      users:(("redis-server",5062,4))

io.se...@gmail.com

unread,
Mar 10, 2015, 5:07:11 AM3/10/15
to sen...@googlegroups.com
Hi Pedro,

could you post any logs you have of the failure? You can find them on your <tomcat-home>/logs/ directory.

Regards,
  Sentilo Team


pedro guifi

unread,
Mar 10, 2015, 3:32:09 PM3/10/15
to sen...@googlegroups.com
404 means not found

The problem was that the .war file was not deployed in tomcat7,
theoretically it should be done by the script (buildSentilo).

I did it manually and seems that the whole platform is working.

cp sentilo-catalog-web/target/name.war /var/lib/tomcat7/webapps
chown tomcat7 name.war
chgrp tomcat7 name.war

For those who understand spanish, I recommend to read the installation process from this Master's memory, it is more complete and clear:
http://openaccess.uoc.edu/webapps/o2/bitstream/10609/32561/8/esromancaTFM0614memoria.pdf

But the things should be more clear in general, is it planned to make the documentation in a more wiki style manner (collaborative) through github?

io.se...@gmail.com

unread,
Mar 12, 2015, 4:40:18 AM3/12/15
to sen...@googlegroups.com
Hi Pedro,

The buildSentilo script only compiles and constructs the packages. After that, you have to copy the generated packages.
It seems that you have done this step, so you should check the log files of the Tomcat server to review if there is any error in the deployment.

We're working in the documentation and some improvements will be available soon but any suggestions will be appreciated.

Regards,
Sentilo Team.
Reply all
Reply to author
Forward
0 new messages