OxalisCommunity / oxalis

Oxalis - PEPPOL Access Point open source implementation - Core component
Other
129 stars 91 forks source link

v4.0.2 does not start. Error listenerStart #352

Closed simakas closed 6 years ago

simakas commented 6 years ago

Apache Maven 3.2.1 Java version: 1.8.0_101 Tomcat: v7

Build builds ok:

[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:59 min

When deploying .war file, vague error is displayed:

Sep 15, 2018 12:59:36 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Sep 15, 2018 12:59:36 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/oxalis] startup failed due to previous errors
christian-andersson commented 6 years ago

You need to look at the log files inside tomcat, not everything is on stdout, I think you will find a stacktrace, etc in catalina.out. (or one of the other files)

simakas commented 6 years ago

this is the output of catalina.out

christian-andersson commented 6 years ago

I think you forgot to attach the file

simakas commented 6 years ago

the lines i originally pasted are from catalina.out, no other details. Oxalis settings are listed and this error follows

christian-andersson commented 6 years ago

the4n you need to look at the other log files in tomcat/logs directory, becsause you will have an stack trace telling you what the problem is.

simakas commented 6 years ago

already checked, its only access log there. -X mode does not reveal much either. found some hints in other bugs suggesting to move outbound.jar to tomcat/oxalis dirs, but no changes either

On Sat, Sep 15, 2018, 16:28 Christian Andersson notifications@github.com wrote:

the4n you need to look at the other log files in tomcat/logs directory, becsause you will have an stack trace telling you what the problem is.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/difi/oxalis/issues/352#issuecomment-421570594, or mute the thread https://github.com/notifications/unsubscribe-auth/ADQgr46q6DxGKrBZuKZDBDluQwLYlpJKks5ubQBvgaJpZM4WqTyc .

simakas commented 6 years ago

Enable package debug:

# nano oxalis/WEB-INF/classes/logging.properties
org.apache.catalina.core.ContainerBase.[Catalina].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].handlers = java.util.logging.ConsoleHandler
# service tomcat7 restart

Problem was with new oxalis.conf file, it was loading defaults and requires valid key.alias value. Example $OXALIS_HOME/oxalis.conf file:

oxalis.keystore {
     # Relative to OXALIS_HOME
     path=oxalis-keystore.jks  # default is peppol-keystore.jks - make sure your name matches
     password = *******
     key.alias = aws  # alias comes from keystore commandline used to generate keystore "openssl <...> -name **aws**", took a lot of digging to find command used 4 years ago...
     key.password = *******
 }
 oxalis.path.plugin = oxalis-plugin
 oxalis.persister.receipt = plugin
 oxalis.path.inbound = /var/peppol