10 Replies Latest reply on Oct 27, 2016 11:00 PM by Marjorie Tan-Thronson

    Getting Application Error

    Michael Webb

      Hello all,

       

      I am new to this, I have setup a application server on Heroku, it was fine once I installed Sparkler I got Application error, so I figured I should follow all the steps in the documentation then try again. I am still getting an application error, I tried to look at the logfiles didn't see much, maybe I am doing this wrong.  Any suggestions or places I should look to resolve the issue?

       

      Thank you very much

      Michael

        • 1. Re: Getting Application Error
          Gustavo Quintilhano

          Can you post the error screenshot and the log file?

          • 2. Re: Getting Application Error
            Michael Webb

            An error occurred in the application and your page could not be served. Please try again in a few moments.

            If you are the application owner, check your logs for details.

             

            $ heroku logs

            2012-01-01T12:00:00+00:00 heroku[api]: Config add EXAMPLE by email@example.com

            2012-01-01T12:00:01+00:00 heroku[api]: Release v1 created by email@example.com

             

            I am not sure how to get more info from the logs.

            • 3. Re: Getting Application Error
              Michael Webb

              I've made some progress.. I think..

               

              The application error only happens after I deploy the sparkler war. here are some of the log files.

               

              2015-05-18T19:59:23.192639+00:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=GET

              path="/favicon.ico" host=still-scrubland-6612.herokuapp.com request_id=93e665ef-ca2f-44c6-b67c-dba815cab702 fwd="160.109

              .104.123" dyno=web.1 connect=5000ms service=17430ms status=503 bytes=0

              2015-05-18T19:59:23.191672+00:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=GET

              path="/" host=still-scrubland-6612.herokuapp.com request_id=ce9e75a0-1237-4d01-9218-5c874ed19661 fwd="160.109.104.123" d

              yno=web.1 connect=1ms service=17765ms status=503 bytes=0

              2015-05-18T19:59:23.978070+00:00 heroku[web.1]: State changed from up to crashed

              2015-05-18T19:59:23.961783+00:00 heroku[web.1]: Process exited with status 0

              2015-05-18T19:59:28.565156+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" hos

              t=still-scrubland-6612.herokuapp.com request_id=7bd063f1-e5a8-4e09-81e3-ffae4cc6858d fwd="160.109.104.123" dyno=web.1 co

              nnect=5001ms service= status=503 bytes=

              2015-05-18T19:59:34.827095+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=still-scr

              ubland-6612.herokuapp.com request_id=1d5755e2-678a-4df8-85a9-a31e3f71013f fwd="160.109.104.123" dyno= connect= service=

              status=503 bytes=

              2015-05-18T19:59:35.328165+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" hos

              t=still-scrubland-6612.herokuapp.com request_id=30eb00a2-50a7-4538-97a9-4e9365823ad2 fwd="160.109.104.123" dyno= connect

              = service= status=503 bytes=

              2015-05-18T20:00:38.445878+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=still-scr

              ubland-6612.herokuapp.com request_id=d42c6592-1fca-4045-8ddf-7b11dd3194c9 fwd="160.109.104.123" dyno= connect= service=

              status=503 bytes=

              2015-05-18T20:04:01.155616+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=still-scr

              ubland-6612.herokuapp.com request_id=bc3fa898-ae4e-4cf8-a806-a0d92aba6f08 fwd="160.109.104.123" dyno= connect= service=

              status=503 bytes=

              2015-05-18T20:04:01.272252+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" hos

              t=still-scrubland-6612.herokuapp.com request_id=18843249-c09b-4b24-aaab-bd3e036bef0c fwd="160.109.104.123" dyno= connect

              = service= status=503 bytes=

               

              I am not sure where to go with this.

               

              Thanks!

              • 4. Re: Getting Application Error
                Scott Williams

                I also get an error installing on Heroku. I have tried using a WAR file I just downloaded today (sparkler.war) as well as one I downloaded last week (sparkler-1.0.0.war).

                 

                Now I do have an older version of the war file (sparkler-reference-0.0.2.war) that I was able to use and successfully install using the same exact instructions so something is different between the older war file and the newer war files.

                 

                Here are my log files from my most recent failed installation using sparkler.war I downloaded today.

                 

                2015-05-19T15:00:19.977871+00:00 app[web.1]:    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)

                2015-05-19T15:00:19.977874+00:00 app[web.1]:    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:703)

                2015-05-19T15:00:19.977875+00:00 app[web.1]:    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)

                2015-05-19T15:00:19.979417+00:00 app[web.1]:    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)

                2015-05-19T15:00:19.979426+00:00 app[web.1]:    at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)

                2015-05-19T15:00:19.979428+00:00 app[web.1]:    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)

                2015-05-19T15:00:19.979429+00:00 app[web.1]:    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)

                2015-05-19T15:00:19.979434+00:00 app[web.1]:    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4994)

                2015-05-19T15:00:19.979435+00:00 app[web.1]:    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5492)

                2015-05-19T15:00:19.979440+00:00 app[web.1]:    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

                2015-05-19T15:00:19.979442+00:00 app[web.1]:    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)

                2015-05-19T15:00:19.979443+00:00 app[web.1]:    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)

                2015-05-19T15:00:19.979450+00:00 app[web.1]:    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

                2015-05-19T15:00:19.979448+00:00 app[web.1]:    at java.util.concurrent.FutureTask.run(FutureTask.java:266)

                2015-05-19T15:00:19.979449+00:00 app[web.1]:    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

                2015-05-19T15:00:19.979456+00:00 app[web.1]:    at java.lang.Thread.run(Thread.java:745)

                2015-05-19T15:00:19.979459+00:00 app[web.1]: Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.tsi.bizsys.sparkler.config.SparklerConfig$$EnhancerBySpringCGLIB$$99ffada9]: Constructor threw exception; nested exception is java.lang.RuntimeException: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial

                2015-05-19T15:00:19.979460+00:00 app[web.1]:    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:164)

                2015-05-19T15:00:19.979461+00:00 app[web.1]:    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:89)

                2015-05-19T15:00:19.979466+00:00 app[web.1]:    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1069)

                2015-05-19T15:00:19.979479+00:00 app[web.1]:    ... 22 more

                2015-05-19T15:00:19.979483+00:00 app[web.1]: Caused by: java.lang.RuntimeException: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial

                2015-05-19T15:00:19.979485+00:00 app[web.1]:    at com.tsi.bizsys.sparkler.config.TomcatMapper.getEnvironment(TomcatMapper.java:47)

                2015-05-19T15:00:19.979486+00:00 app[web.1]:    at com.tsi.bizsys.sparkler.config.SparklerEnv.init(SparklerEnv.java:226)

                2015-05-19T15:00:19.979487+00:00 app[web.1]:    at com.tsi.bizsys.sparkler.config.SparklerConfig.<init>(SparklerConfig.java:66)

                2015-05-19T15:00:19.979490+00:00 app[web.1]:    at com.tsi.bizsys.sparkler.config.SparklerConfig$$EnhancerBySpringCGLIB$$99ffada9.<init>(<generated>)

                2015-05-19T15:00:19.979491+00:00 app[web.1]:    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

                2015-05-19T15:00:19.979493+00:00 app[web.1]:    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

                2015-05-19T15:00:19.979494+00:00 app[web.1]:    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

                2015-05-19T15:00:19.979495+00:00 app[web.1]:    at java.lang.reflect.Constructor.newInstance(Constructor.java:422)

                2015-05-19T15:00:19.979496+00:00 app[web.1]:    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)

                2015-05-19T15:00:19.979517+00:00 app[web.1]:    ... 24 more

                2015-05-19T15:00:19.979521+00:00 app[web.1]: Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial

                2015-05-19T15:00:19.979522+00:00 app[web.1]:    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)

                2015-05-19T15:00:19.979523+00:00 app[web.1]:    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)

                2015-05-19T15:00:19.979524+00:00 app[web.1]:    at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:350)

                2015-05-19T15:00:19.979526+00:00 app[web.1]:    at javax.naming.InitialContext.lookup(InitialContext.java:417)

                2015-05-19T15:00:19.979527+00:00 app[web.1]:    at com.tsi.bizsys.sparkler.config.TomcatMapper.getEnvironment(TomcatMapper.java:32)

                2015-05-19T15:00:19.979528+00:00 app[web.1]:    ... 32 more

                2015-05-19T15:00:19.979529+00:00 app[web.1]: May 19, 2015 3:00:19 PM org.apache.catalina.core.StandardContext listenerStart

                2015-05-19T15:00:19.979530+00:00 app[web.1]: SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener

                2015-05-19T15:00:19.979533+00:00 app[web.1]: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sparklerConfig' defined in file [/app/target/tomcat.21073/work/Tomcat/localhost/_/WEB-INF/classes/com/tsi/bizsys/sparkler/config/SparklerConfig.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.tsi.bizsys.sparkler.config.SparklerConfig$$EnhancerBySpringCGLIB$$99ffada9]: Constructor threw exception; nested exception is java.lang.RuntimeException: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial

                2015-05-19T15:00:19.979535+00:00 app[web.1]:    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1076)

                2015-05-19T15:00:19.979539+00:00 app[web.1]:    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1021)

                2015-05-19T15:00:19.979540+00:00 app[web.1]:    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)

                2015-05-19T15:00:19.979541+00:00 app[web.1]:    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)

                2015-05-19T15:00:19.979543+00:00 app[web.1]:    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304)

                2015-05-19T15:00:19.979545+00:00 app[web.1]:    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300)

                2015-05-19T15:00:19.979544+00:00 app[web.1]:    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)

                2015-05-19T15:00:19.979546+00:00 app[web.1]:    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)

                2015-05-19T15:00:19.979547+00:00 app[web.1]:    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:703)

                2015-05-19T15:00:19.979550+00:00 app[web.1]:    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)

                2015-05-19T15:00:19.979549+00:00 app[web.1]:    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)

                2015-05-19T15:00:19.979551+00:00 app[web.1]:    at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)

                2015-05-19T15:00:19.979557+00:00 app[web.1]:    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)

                2015-05-19T15:00:19.979558+00:00 app[web.1]:    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)

                2015-05-19T15:00:19.979559+00:00 app[web.1]:    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4994)

                2015-05-19T15:00:19.979562+00:00 app[web.1]:    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

                2015-05-19T15:00:19.979560+00:00 app[web.1]:    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5492)

                2015-05-19T15:00:19.979563+00:00 app[web.1]:    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)

                2015-05-19T15:00:19.979564+00:00 app[web.1]:    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)

                2015-05-19T15:00:19.979565+00:00 app[web.1]:    at java.util.concurrent.FutureTask.run(FutureTask.java:266)

                2015-05-19T15:00:19.979566+00:00 app[web.1]:    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

                2015-05-19T15:00:19.979567+00:00 app[web.1]:    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

                2015-05-19T15:00:19.979569+00:00 app[web.1]:    at java.lang.Thread.run(Thread.java:745)

                2015-05-19T15:00:19.979570+00:00 app[web.1]: Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.tsi.bizsys.sparkler.config.SparklerConfig$$EnhancerBySpringCGLIB$$99ffada9]: Constructor threw exception; nested exception is java.lang.RuntimeException: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial

                2015-05-19T15:00:19.979573+00:00 app[web.1]:    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:89)

                2015-05-19T15:00:19.979572+00:00 app[web.1]:    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:164)

                2015-05-19T15:00:19.979574+00:00 app[web.1]:    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1069)

                2015-05-19T15:00:19.979575+00:00 app[web.1]:    ... 22 more

                2015-05-19T15:00:19.979577+00:00 app[web.1]: Caused by: java.lang.RuntimeException: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial

                2015-05-19T15:00:19.979578+00:00 app[web.1]:    at com.tsi.bizsys.sparkler.config.TomcatMapper.getEnvironment(TomcatMapper.java:47)

                2015-05-19T15:00:19.979579+00:00 app[web.1]:    at com.tsi.bizsys.sparkler.config.SparklerEnv.init(SparklerEnv.java:226)

                2015-05-19T15:00:19.979580+00:00 app[web.1]:    at com.tsi.bizsys.sparkler.config.SparklerConfig.<init>(SparklerConfig.java:66)

                2015-05-19T15:00:19.979581+00:00 app[web.1]:    at com.tsi.bizsys.sparkler.config.SparklerConfig$$EnhancerBySpringCGLIB$$99ffada9.<init>(<generated>)

                2015-05-19T15:00:19.979583+00:00 app[web.1]:    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

                2015-05-19T15:00:19.979584+00:00 app[web.1]:    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

                2015-05-19T15:00:19.979585+00:00 app[web.1]:    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

                2015-05-19T15:00:19.979586+00:00 app[web.1]:    at java.lang.reflect.Constructor.newInstance(Constructor.java:422)

                2015-05-19T15:00:19.979589+00:00 app[web.1]:    ... 24 more

                2015-05-19T15:00:19.979587+00:00 app[web.1]:    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)

                2015-05-19T15:00:19.979590+00:00 app[web.1]: Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial

                2015-05-19T15:00:19.979591+00:00 app[web.1]:    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)

                2015-05-19T15:00:19.979592+00:00 app[web.1]:    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)

                2015-05-19T15:00:19.979593+00:00 app[web.1]:    at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:350)

                2015-05-19T15:00:19.979595+00:00 app[web.1]:    at javax.naming.InitialContext.lookup(InitialContext.java:417)

                2015-05-19T15:00:19.979596+00:00 app[web.1]:    at com.tsi.bizsys.sparkler.config.TomcatMapper.getEnvironment(TomcatMapper.java:32)

                2015-05-19T15:00:19.979597+00:00 app[web.1]:    ... 32 more

                2015-05-19T15:00:19.979598+00:00 app[web.1]:

                2015-05-19T15:00:19.979599+00:00 app[web.1]: May 19, 2015 3:00:19 PM org.apache.catalina.core.StandardContext startInternal

                2015-05-19T15:00:19.979605+00:00 app[web.1]: SEVERE: Error listenerStart

                2015-05-19T15:00:20.012599+00:00 app[web.1]: May 19, 2015 3:00:20 PM org.apache.catalina.core.StandardContext startInternal

                2015-05-19T15:00:20.012603+00:00 app[web.1]: SEVERE: Context [] startup failed due to previous errors

                2015-05-19T15:00:20.015350+00:00 app[web.1]: SEVERE: Context [] failed in [org.apache.catalina.core.StandardContext] lifecycle. Allowing Tomcat to shutdown.

                2015-05-19T15:00:20.016524+00:00 app[web.1]: May 19, 2015 3:00:20 PM org.apache.catalina.core.ApplicationContext log

                2015-05-19T15:00:20.016527+00:00 app[web.1]: INFO: Closing Spring root WebApplicationContext

                2015-05-19T15:00:20.054634+00:00 app[web.1]: May 19, 2015 3:00:20 PM org.apache.coyote.AbstractProtocol start

                2015-05-19T15:00:20.054639+00:00 app[web.1]: INFO: Starting ProtocolHandler ["http-nio-21073"]

                2015-05-19T15:00:21.360033+00:00 heroku[web.1]: State changed from up to crashed

                2015-05-19T15:00:21.341555+00:00 heroku[web.1]: Process exited with status 0

                2015-05-19T15:07:52.162383+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=scottw-testprod.herokuapp.com request_id=02b320fa-36bc-4843-9ace-c59f327b063e fwd="143.192.71.4" dyno= connect= service= status=503 bytes=

                • 5. Re: Getting Application Error
                  Michael Webb

                  When I did some research the errors we are getting have to do with some environmental variables, unfortunately I have not been able to resolve the issue yet. I may try to call Tableau, never called them before not sure how much help they will be, however, I will update this if I get an answer.

                  • 6. Re: Getting Application Error
                    Michael Webb

                    A co worker at one of our other organizations gave me a heroku app he created a while ago with an older version. I made the variable changes and it worked fine.

                    • 7. Re: Getting Application Error
                      Scott Williams

                      What variables did you set?

                       

                      In the one application I was able to get working - using an older war file - I actually didn't set up any variables and it was still working fine.

                      • 8. Re: Getting Application Error
                        Yuriy Kernosenko

                        Hello.

                        I'm facing with the same error.

                        Can anyone provide me an example of variables for Heroku?

                        • 9. Re: Getting Application Error
                          Yuriy Kernosenko

                          I figured out in what was problem for my case.

                          I added in Config Vars:

                          Key - SPARKLER_SFDC_CONSUMERSECRET

                          Value - HerokuMapper

                          And then restarted my dyno.

                          Then I go to my https://HerokuDomain/keepAlive

                          And it's works as expected.

                          In future SPARKLER_SFDC CONSUMERSECRET value should be changed to value from Salesforce Canvas app.

                          • 10. Re: Getting Application Error
                            Marjorie Tan-Thronson

                            Yuri, I'm getting similar errors...so I configured the Sparkler.xml according to the docs but looks like its not recognizing the xml? 

                            INFO: Initializing Spring root WebApplicationContext

                            2016-10-27 22:50:02,817 INFO (localhost-startStop-1) [org.springframework.web.context.ContextLoader.initWebApplicationContext:285] - Root WebApplicationContext: initialization started

                            2016-10-27 22:50:02,949 INFO (localhost-startStop-1) [org.springframework.web.context.support.AnnotationConfigWebApplicationContext.prepareRefresh:513] - Refreshing Root WebApplicationContext: startup date [Thu Oct 27 22:50:02 PDT 2016]; root of context hierarchy

                            2016-10-27 22:50:03,094 INFO (localhost-startStop-1) [org.springframework.web.context.support.AnnotationConfigWebApplicationContext.loadBeanDefinitions:243] - Found 1 annotated classes in package [com.tsi.bizsys.sparkler.config]

                            2016-10-27 22:50:03,476 ERROR (localhost-startStop-1) [com.tsi.bizsys.sparkler.config.TomcatMapper.getEnvironment:46] - Exception loading Tomcat environment variables at startup.

                            javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial

                              at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)

                              at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)

                              at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:350)

                            ....

                             

                            How did you launch your commands? I used this syntax: on Heroku cmd: 

                            java -jar target/webapp-runner.jar target/sparkler-1.0.4.war --path /x/webapp-runner-master  --context-xml /x/sparkler.xml

                             

                            Thanks,