Error launching my .war

41 views
Skip to first unread message
Assigned to matteo.v...@geosolutionsgroup.com by me

Siddiki Aboubakar

unread,
Aug 25, 2021, 6:00:07 AM8/25/21
to mapstore-developers
Hello everyone. I have a problem that I can't seem to find the solution to. Indeed, when I clone the mapstore project and I create my own project as explained in the part (https://mapstore.readthedocs.io/en/latest/developer-guide/project-creation-script/), then I do the npm install, I pull in my repository and I do the npm start, everything works fine. But when I generate the .war with my own project I still can't run this .war in my tomcat even without changing anything.

The error that the browser console gives me is the following:
SchoolMapStore.js: 1 Failed to load resource: the server responded with a status of 500 ()
then by updating incessantly I also have:
GET http: // localhost: 8080 / SchoolMapStore / SchoolMapStore.js? E23851e25e1d47597fdc net :: ERR_ABORTED 500

the environments I use are:
node 14.17.0 and npm 6.14.14
apache maven 3.8.2, python 3.9.2 and tomcat 9.0
java 11 (openjdk 11.0.11)
Geoserver 2.19.0

thanks a lot for your help 

Matteo Velludini

unread,
Aug 26, 2021, 4:03:15 AM8/26/21
to mapstore-...@googlegroups.com
Hi,

This is strange.

Have you created a standard project from the master branch?
Can you, privately, send to me the war or link me to your repository?

Your environment seems ok, so there is something wrong in your configuration

--
You received this message because you are subscribed to the Google Groups "mapstore-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-develo...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/mapstore-developers/2884ef14-477d-425b-b8f2-265db2065297n%40googlegroups.com.


--

Regards,

Matteo Velludini

==

GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us for more information.

==

Matteo Velludini

Frontend Software Engineer


GeoSolutions Group
phone: +39 0584 962313

fax:     +39 0584 1660272

mob:   +39  333 8128928


https://www.geosolutionsgroup.com/

http://twitter.com/geosolutions_it

-------------------------------------------------------


Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.

Lorenzo Natali

unread,
Aug 26, 2021, 4:14:35 AM8/26/21
to mapstore-developers
Hi,
To me looks strange that in production the application is requiring that JS file. Usually webpack bundles everything in a single file. If you did a custom plugin, make you sure to include it in plugins.js so it can be included also in the final bundle.
Instead it looks your page need that additional JS. Did you added it in the html file as a script tag?

If you need to copy some other folders/file, outside the standard usage, you have to explicitly add a copy entry in pom files.

Hope it helps

Lorenzo Natali

unread,
Aug 26, 2021, 5:42:08 AM8/26/21
to mapstore-...@googlegroups.com
Ah, ok. SchoolMapStore is the name of your project. 
Sorry I didn't get it.  So it is correct. So please ignore my previous email

Siddiki Aboubakar

unread,
Aug 26, 2021, 4:03:34 PM8/26/21
to mapstore-developers
Here is the link of my  repository (https://github.com/abakostar/Schoolmapstore.git) and I could not join the .war in question (too large 45 Mo).I reinstalled my node and switched to node-v14.17.5-x64 with npm 6.14.14 because before I had a version of node that did not match this version of npm. But even with this version of npm, it is wrong. now the idea I have is to downgrade the npm again to 6.13 for example.
Reply all
Reply to author
Forward
0 new messages