Problème d'installation


#1

Bonjour.

Je suis nouveau dans cette installation.

Je suis sur un Ubuntu server 18,
tomcat8 installé par apt
postgresql 10.6 installé par apt.
openjdk-11 installé par apt
Depuis le tomcat8/manager, je vois bien l’application axelor, et depuis ce manager, j’essaye de démarrer axelor. Cependant dans catalina.out, je vois les messages plus bas.
utilisateur axelor défini dans postgresql
Est-ce que quelqu’un sait ce qui me manquerait pour pouvoir démarrer Axelor sur tomcat?

Merci d’avance. Guy

31-Jan-2019 10:39:49.935 INFO [http-nio-8080-exec-85] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
2019-01-31 10:39:50.512 DEBUG 15536 — [io-8080-exec-85] com.axelor.db.JpaModule : Configuring database…
2019-01-31 10:39:53.332 INFO 15536 — [io-8080-exec-85] com.axelor.app.AppModule : Configuring app modules…
2019-01-31 10:39:53.332 DEBUG 15536 — [io-8080-exec-85] com.axelor.app.AppModule : Configure module: com.axelor.apps.tool.module.ToolModule
2019-01-31 10:39:53.344 DEBUG 15536 — [io-8080-exec-85] com.axelor.app.AppModule : Configure module: com.axelor.apps.message.module.MessageModule
2019-01-31 10:39:53.360 DEBUG 15536 — [io-8080-exec-85] com.axelor.app.AppModule : Configure module: com.axelor.apps.base.module.AdminModule
2019-01-31 10:39:53.373 DEBUG 15536 — [io-8080-exec-85] com.axelor.app.AppModule : Configure module: com.axelor.apps.base.module.BaseModule
2019-01-31 10:39:53.441 DEBUG 15536 — [io-8080-exec-85] com.axelor.app.AppModule : Configure module: com.axelor.apps.stock.module.StockModule
2019-01-31 10:39:53.468 DEBUG 15536 — [io-8080-exec-85] com.axelor.app.AppModule : Configure module: com.axelor.apps.fleet.module.FleetModule
2019-01-31 10:39:53.474 DEBUG 15536 — [io-8080-exec-85] com.axelor.app.AppModule : Configure module: com.axelor.apps.crm.module.CrmModule
2019-01-31 10:39:53.495 DEBUG 15536 — [io-8080-exec-85] com.axelor.app.AppModule : Configure module: com.axelor.apps.sale.module.SaleModule
2019-01-31 10:39:53.529 DEBUG 15536 — [io-8080-exec-85] com.axelor.app.AppModule : Configure module: com.axelor.apps.purchase.module.PurchaseModule
2019-01-31 10:39:53.545 DEBUG 15536 — [io-8080-exec-85] com.axelor.app.AppModule : Configure module: com.axelor.apps.account.module.AccountModule
2019-01-31 10:39:53.610 DEBUG 15536 — [io-8080-exec-85] com.axelor.app.AppModule : Configure module: com.axelor.apps.supplychain.module.SupplychainModule
2019-01-31 10:39:53.672 DEBUG 15536 — [io-8080-exec-85] com.axelor.app.AppModule : Configure module: com.axelor.studio.module.StudioModule
2019-01-31 10:39:53.690 DEBUG 15536 — [io-8080-exec-85] com.axelor.app.AppModule : Configure module: com.axelor.apps.marketing.module.MarketingModule
2019-01-31 10:39:53.697 DEBUG 15536 — [io-8080-exec-85] com.axelor.app.AppModule : Configure module: com.axelor.apps.project.module.ProjectModule
2019-01-31 10:39:53.706 DEBUG 15536 — [io-8080-exec-85] com.axelor.app.AppModule : Configure module: com.axelor.apps.bankpayment.module.BankPaymentModule
2019-01-31 10:39:53.738 DEBUG 15536 — [io-8080-exec-85] com.axelor.app.AppModule : Configure module: com.axelor.apps.hr.module.HumanResourceModule
2019-01-31 10:39:53.780 DEBUG 15536 — [io-8080-exec-85] com.axelor.app.AppModule : Configure module: com.axelor.apps.talent.module.TalentModule
2019-01-31 10:39:53.799 DEBUG 15536 — [io-8080-exec-85] com.axelor.app.AppModule : Configure module: com.axelor.apps.businessproject.module.BusinessProjectModule
2019-01-31 10:39:53.816 DEBUG 15536 — [io-8080-exec-85] com.axelor.app.AppModule : Configure module: com.axelor.apps.contract.module.ContractModule
2019-01-31 10:39:53.823 DEBUG 15536 — [io-8080-exec-85] com.axelor.app.AppModule : Configure module: com.axelor.apps.production.module.ProductionModule
2019-01-31 10:39:53.861 DEBUG 15536 — [io-8080-exec-85] com.axelor.app.AppModule : Configure module: com.axelor.apps.businessproduction.module.BusinessProductionModule
2019-01-31 10:39:53.871 DEBUG 15536 — [io-8080-exec-85] com.axelor.app.AppModule : Configure module: com.axelor.apps.quality.module.QualityModule
2019-01-31 10:39:53.881 DEBUG 15536 — [io-8080-exec-85] com.axelor.app.AppModule : Configure module: com.axelor.apps.helpdesk.module.HelpdeskModule
31-Jan-2019 10:39:54.714 SEVERE [http-nio-8080-exec-85] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
31-Jan-2019 10:39:54.730 SEVERE [http-nio-8080-exec-85] org.apache.catalina.core.StandardContext.startInternal Context [/axelor-erp-5.0.2] startup failed due to previous errors
31-Jan-2019 10:39:54.752 WARNING [http-nio-8080-exec-85] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [axelor-erp-5.0.2] registered the JDBC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.


#2

Bonjour,

Le problème vient du chargement d’un des modules Axelor.
Avez-vous une stacktrace dans le fichier de log tomcat “localhost…” ?


#3

Bonjour .

Est-ce que c’est ceci ?

root@axelort1:/var/log/tomcat8# less localhost.2019-02-01.log
Caused by: java.lang.ClassNotFoundException: javax.xml.ws.Service
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1308)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1136)
… 93 more

01-Feb-2019 14:33:07.530 SEVERE [http-nio-8080-exec-4] org.apache.catalina.core.StandardContext.listenerStop Exception sending context destroyed event to listener instance of class [com.axelor.web.AppContextListener]
java.lang.NullPointerException
at com.axelor.web.AppContextListener.contextDestroyed(AppContextListener.java:105)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4823)
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5462)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:226)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1349)
at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:679)
at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:217)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:136)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:613)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:800)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1463)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Thread.java:844)

01-Feb-2019 14:33:07.547 INFO [http-nio-8080-exec-4] org.apache.catalina.core.ApplicationContext.log HTMLManager: list: Listing contexts for virtual host ‘localhost’
~

Cordialement, Guy


#4

il semblerait que le problème vienne soit de votre openjdk soit de votre tomcat. Le package java javax.xml.ws est manquant. Il manque le jar jaxw-api.


#5

Si j’ai bien compris les informations sur jaxw-api, à priori il n’est plus disponible pour Java 11.
Respectivement je ne vois pas comment je pourrai l’installer.

Est-ce qu’il vaut mieux revenir sur une version Java 8 ?


#6

oui, la version 8 est un pré-requis pour la platforme. https://docs.axelor.com/adk/5.0/getting-started/install.html


#7

cela fonctionne avec la version 8.

Merci pour votre aide.

Guy