Can't deploy webapp

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Can't deploy webapp

matthew couchman (JIC)

Hi,

 

I’m getting an error which I can’t make sense of when I try and deploy the .war file generated by .apollo deploy. Tomcat’s localhost.yyyy-mm-dd.log says:

 

Apr 11, 2016 5:24:53 PM org.apache.catalina.core.ApplicationContext log

INFO: No Spring WebApplicationInitializer types detected on classpath

Apr 11, 2016 5:24:53 PM org.apache.catalina.core.ApplicationContext log

INFO: Initializing Spring root WebApplicationContext

Apr 11, 2016 5:25:00 PM org.apache.catalina.core.StandardContext listenerStart

SEVERE: Exception sending context initialized event to listener instance of class org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is java.lang.NullPointerException

                                                                                                                                                                                         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

                                                                                                                                                                                         at java.util.concurrent.FutureTask.run(FutureTask.java:266)

                                                                                                                                                                                         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

                                                                                                                                                                                         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

                                                                                                                                                                                         at java.lang.Thread.run(Thread.java:745)

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is java.lang.NullPointerException

                                                                                                                                                                                         ... 5 more

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is java.lang.NullPointerException

                                                                                                                                                                                         ... 5 more

Caused by: java.lang.NullPointerException

                                                                                                                                                                                         ... 5 more

 

Apr 11, 2016 5:25:00 PM org.apache.catalina.core.ApplicationContext log

INFO: Closing Spring root WebApplicationContext

Apr 11, 2016 5:25:01 PM org.apache.catalina.core.ApplicationContext log

INFO: ContextListener: contextInitialized()

Apr 11, 2016 5:25:01 PM org.apache.catalina.core.ApplicationContext log

INFO: SessionListener: contextInitialized()

Apr 11, 2016 5:25:01 PM org.apache.catalina.core.ApplicationContext log

INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@6465b52e')

 

The Tomcat examples seem to work OK on my local server. Any help much appreciated.

 

Thanks,

 

Matt.





This list is for the Apollo Annotation Editing Tool. Info at http://genomearchitect.org/
If you wish to unsubscribe from the Apollo List: 1. From the address with which you subscribed to the list, send a message to [hidden email] | 2. In the subject line of your email type: unsubscribe apollo | 3. Leave the message body blank.

Reply | Threaded
Open this post in threaded view
|

Re: Can't deploy webapp

nathandunn

Usually we get this if the database isn’t started or can’t be connected to.  If you are using PostgreSQL, there are some trouble-shooting tips here:


Nathan

On Apr 11, 2016, at 9:34 AM, matthew couchman (JIC) <[hidden email]> wrote:

Hi,
 
I’m getting an error which I can’t make sense of when I try and deploy the .war file generated by .apollo deploy. Tomcat’s localhost.yyyy-mm-dd.log says:
 
Apr 11, 2016 5:24:53 PM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Apr 11, 2016 5:24:53 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Apr 11, 2016 5:25:00 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is java.lang.NullPointerException
                                                                                                                                                                                         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
                                                                                                                                                                                         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                                                                                                                                                                                         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
                                                                                                                                                                                         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
                                                                                                                                                                                         at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is java.lang.NullPointerException
                                                                                                                                                                                         ... 5 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is java.lang.NullPointerException
                                                                                                                                                                                         ... 5 more
Caused by: java.lang.NullPointerException
                                                                                                                                                                                         ... 5 more
 
Apr 11, 2016 5:25:00 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
Apr 11, 2016 5:25:01 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Apr 11, 2016 5:25:01 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Apr 11, 2016 5:25:01 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@6465b52e')
 
The Tomcat examples seem to work OK on my local server. Any help much appreciated.
 
Thanks,
 
Matt.



This list is for the Apollo Annotation Editing Tool. Info at http://genomearchitect.org/
If you wish to unsubscribe from the Apollo List: 1. From the address with which you subscribed to the list, send a message to [hidden email] | 2. In the subject line of your email type: unsubscribe apollo | 3. Leave the message body blank. 





This list is for the Apollo Annotation Editing Tool. Info at http://genomearchitect.org/
If you wish to unsubscribe from the Apollo List: 1. From the address with which you subscribed to the list, send a message to [hidden email] | 2. In the subject line of your email type: unsubscribe apollo | 3. Leave the message body blank.

Reply | Threaded
Open this post in threaded view
|

RE: Can't deploy webapp

matthew couchman (JIC)

Thanks for your help again Nathan. I’m more familiar with MySQL so I tried following the example at http://webapollo.readthedocs.org/en/latest/ExampleBuild.html but i’m seeing the same error. I think some of the problem is my inexperience with Tomcat. Does Tomcat capture any details of the specific problem with the connection?

 

Many thanks,

 

                                Matt.

 

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Nathan Dunn
Sent: 11 April 2016 17:39
To: [hidden email]
Subject: Re: [apollo] Can't deploy webapp

 

 

Usually we get this if the database isn’t started or can’t be connected to.  If you are using PostgreSQL, there are some trouble-shooting tips here:

 

 

Nathan

 

On Apr 11, 2016, at 9:34 AM, matthew couchman (JIC) <[hidden email]> wrote:

 

Hi,

 

I’m getting an error which I can’t make sense of when I try and deploy the .war file generated by .apollo deploy. Tomcat’s localhost.yyyy-mm-dd.log says:

 

Apr 11, 2016 5:24:53 PM org.apache.catalina.core.ApplicationContext log

INFO: No Spring WebApplicationInitializer types detected on classpath

Apr 11, 2016 5:24:53 PM org.apache.catalina.core.ApplicationContext log

INFO: Initializing Spring root WebApplicationContext

Apr 11, 2016 5:25:00 PM org.apache.catalina.core.StandardContext listenerStart

SEVERE: Exception sending context initialized event to listener instance of class org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is java.lang.NullPointerException

                                                                                                                                                                                         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

                                                                                                                                                                                         at java.util.concurrent.FutureTask.run(FutureTask.java:266)

                                                                                                                                                                                         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

                                                                                                                                                                                         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

                                                                                                                                                                                         at java.lang.Thread.run(Thread.java:745)

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is java.lang.NullPointerException

                                                                                                                                                                                         ... 5 more

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is java.lang.NullPointerException

                                                                                                                                                                                         ... 5 more

Caused by: java.lang.NullPointerException

                                                                                                                                                                                         ... 5 more

 

Apr 11, 2016 5:25:00 PM org.apache.catalina.core.ApplicationContext log

INFO: Closing Spring root WebApplicationContext

Apr 11, 2016 5:25:01 PM org.apache.catalina.core.ApplicationContext log

INFO: ContextListener: contextInitialized()

Apr 11, 2016 5:25:01 PM org.apache.catalina.core.ApplicationContext log

INFO: SessionListener: contextInitialized()

Apr 11, 2016 5:25:01 PM org.apache.catalina.core.ApplicationContext log

INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@6465b52e')

 

The Tomcat examples seem to work OK on my local server. Any help much appreciated.

 

Thanks,

 

Matt.




This list is for the Apollo Annotation Editing Tool. Info at 
http://genomearchitect.org/
If you wish to unsubscribe from the Apollo List: 1. From the address with which you subscribed to the list, send a message to 
[hidden email] | 2. In the subject line of your email type: unsubscribe apollo | 3. Leave the message body blank. 

 





This list is for the Apollo Annotation Editing Tool. Info at http://genomearchitect.org/
If you wish to unsubscribe from the Apollo List: 1. From the address with which you subscribed to the list, send a message to [hidden email] | 2. In the subject line of your email type: unsubscribe apollo | 3. Leave the message body blank.

Reply | Threaded
Open this post in threaded view
|

Re: Can't deploy webapp

nathandunn

MySQL is perfectly good.   We test that database as well.    That error is indicative of a database connection failure. So a few thoughts:

0 - compare your apollo-config.groovy to sample-mysql-apollo-config.groovy and see if you notice anything important
1 - make sure that you have the database created.  Apollo will create the schema, but it needs a blank database. 
2 - try using “./apollo run-local” with your specified apollo-config.groovy.   If that doesn’t work, try without the apollo-config.groovy in place (do an ./apollo clean first though) (it will use H2).   This will use a “local” tomcat.
3 - post your config file (without passwords) and we can take a look.   If you know the version of mysql that might help as well (in case we have the wrong jdbc connector). 
4 - ps -ef | grep java . . . just double-check that you are not running two servers

Hope this helps,

Nathan

On Apr 13, 2016, at 4:59 AM, matthew couchman (JIC) <[hidden email]> wrote:

Thanks for your help again Nathan. I’m more familiar with MySQL so I tried following the example at http://webapollo.readthedocs.org/en/latest/ExampleBuild.html but i’m seeing the same error. I think some of the problem is my inexperience with Tomcat. Does Tomcat capture any details of the specific problem with the connection?
 
Many thanks,
 
                                Matt.
 
 
From: [hidden email] [[hidden email]] On Behalf Of Nathan Dunn
Sent: 11 April 2016 17:39
To: [hidden email]
Subject: Re: [apollo] Can't deploy webapp
 
 
Usually we get this if the database isn’t started or can’t be connected to.  If you are using PostgreSQL, there are some trouble-shooting tips here:
 
 
Nathan
 
On Apr 11, 2016, at 9:34 AM, matthew couchman (JIC) <[hidden email]> wrote:
 
Hi,
 
I’m getting an error which I can’t make sense of when I try and deploy the .war file generated by .apollo deploy. Tomcat’s localhost.yyyy-mm-dd.log says:
 
Apr 11, 2016 5:24:53 PM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Apr 11, 2016 5:24:53 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Apr 11, 2016 5:25:00 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is java.lang.NullPointerException
                                                                                                                                                                                         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
                                                                                                                                                                                         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                                                                                                                                                                                         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
                                                                                                                                                                                         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
                                                                                                                                                                                         at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is java.lang.NullPointerException
                                                                                                                                                                                         ... 5 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is java.lang.NullPointerException
                                                                                                                                                                                         ... 5 more
Caused by: java.lang.NullPointerException
                                                                                                                                                                                         ... 5 more
 
Apr 11, 2016 5:25:00 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
Apr 11, 2016 5:25:01 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Apr 11, 2016 5:25:01 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Apr 11, 2016 5:25:01 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@6465b52e')
 
The Tomcat examples seem to work OK on my local server. Any help much appreciated.
 
Thanks,
 
Matt.



This list is for the Apollo Annotation Editing Tool. Info at 
http://genomearchitect.org/
If you wish to unsubscribe from the Apollo List: 1. From the address with which you subscribed to the list, send a message to 
[hidden email] | 2. In the subject line of your email type: unsubscribe apollo | 3. Leave the message body blank. 
 



This list is for the Apollo Annotation Editing Tool. Info at http://genomearchitect.org/
If you wish to unsubscribe from the Apollo List: 1. From the address with which you subscribed to the list, send a message to [hidden email] | 2. In the subject line of your email type: unsubscribe apollo | 3. Leave the message body blank. 





This list is for the Apollo Annotation Editing Tool. Info at http://genomearchitect.org/
If you wish to unsubscribe from the Apollo List: 1. From the address with which you subscribed to the list, send a message to [hidden email] | 2. In the subject line of your email type: unsubscribe apollo | 3. Leave the message body blank.

Reply | Threaded
Open this post in threaded view
|

RE: Can't deploy webapp

matthew couchman (JIC)

Hi Nathan,

 

Thanks for your help again. Looking in the logs it seems that Apollo is connecting OK to apollo-production but that it then attempts to connect to apollo-production-chado which doesn’t exist yet. Should the install process build apollo-production-chado? Would it work if I commented the chado section out of apollo-config.groovy? Is there a mysql dump of the chado schema available to download?

 

Many thanks,

 

                                Matt.

 

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Nathan Dunn
Sent: 13 April 2016 16:50
To: [hidden email]
Subject: Re: [apollo] Can't deploy webapp

 

 

MySQL is perfectly good.   We test that database as well.    That error is indicative of a database connection failure. So a few thoughts:

 

0 - compare your apollo-config.groovy to sample-mysql-apollo-config.groovy and see if you notice anything important

1 - make sure that you have the database created.  Apollo will create the schema, but it needs a blank database. 

2 - try using “./apollo run-local” with your specified apollo-config.groovy.   If that doesn’t work, try without the apollo-config.groovy in place (do an ./apollo clean first though) (it will use H2).   This will use a “local” tomcat.

3 - post your config file (without passwords) and we can take a look.   If you know the version of mysql that might help as well (in case we have the wrong jdbc connector). 

4 - ps -ef | grep java . . . just double-check that you are not running two servers

 

Hope this helps,

 

Nathan

 

On Apr 13, 2016, at 4:59 AM, matthew couchman (JIC) <[hidden email]> wrote:

 

Thanks for your help again Nathan. I’m more familiar with MySQL so I tried following the example at http://webapollo.readthedocs.org/en/latest/ExampleBuild.html but i’m seeing the same error. I think some of the problem is my inexperience with Tomcat. Does Tomcat capture any details of the specific problem with the connection?

 

Many thanks,

 

                                Matt.

 

 

From: [hidden email] [[hidden email]] On Behalf Of Nathan Dunn
Sent: 11 April 2016 17:39
To: [hidden email]
Subject: Re: [apollo] Can't deploy webapp

 

 

Usually we get this if the database isn’t started or can’t be connected to.  If you are using PostgreSQL, there are some trouble-shooting tips here:

 

 

Nathan

 

On Apr 11, 2016, at 9:34 AM, matthew couchman (JIC) <[hidden email]> wrote:

 

Hi,

 

I’m getting an error which I can’t make sense of when I try and deploy the .war file generated by .apollo deploy. Tomcat’s localhost.yyyy-mm-dd.log says:

 

Apr 11, 2016 5:24:53 PM org.apache.catalina.core.ApplicationContext log

INFO: No Spring WebApplicationInitializer types detected on classpath

Apr 11, 2016 5:24:53 PM org.apache.catalina.core.ApplicationContext log

INFO: Initializing Spring root WebApplicationContext

Apr 11, 2016 5:25:00 PM org.apache.catalina.core.StandardContext listenerStart

SEVERE: Exception sending context initialized event to listener instance of class org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is java.lang.NullPointerException

                                                                                                                                                                                         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

                                                                                                                                                                                         at java.util.concurrent.FutureTask.run(FutureTask.java:266)

                                                                                                                                                                                         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

                                                                                                                                                                                         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

                                                                                                                                                                                         at java.lang.Thread.run(Thread.java:745)

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is java.lang.NullPointerException

                                                                                                                                                                                         ... 5 more

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is java.lang.NullPointerException

                                                                                                                                                                                         ... 5 more

Caused by: java.lang.NullPointerException

                                                                                                                                                                                         ... 5 more

 

Apr 11, 2016 5:25:00 PM org.apache.catalina.core.ApplicationContext log

INFO: Closing Spring root WebApplicationContext

Apr 11, 2016 5:25:01 PM org.apache.catalina.core.ApplicationContext log

INFO: ContextListener: contextInitialized()

Apr 11, 2016 5:25:01 PM org.apache.catalina.core.ApplicationContext log

INFO: SessionListener: contextInitialized()

Apr 11, 2016 5:25:01 PM org.apache.catalina.core.ApplicationContext log

INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@6465b52e')

 

The Tomcat examples seem to work OK on my local server. Any help much appreciated.

 

Thanks,

 

Matt.




This list is for the Apollo Annotation Editing Tool. Info at 
http://genomearchitect.org/
If you wish to unsubscribe from the Apollo List: 1. From the address with which you subscribed to the list, send a message to 
[hidden email] | 2. In the subject line of your email type: unsubscribe apollo | 3. Leave the message body blank. 

 




This list is for the Apollo Annotation Editing Tool. Info at 
http://genomearchitect.org/
If you wish to unsubscribe from the Apollo List: 1. From the address with which you subscribed to the list, send a message to 
[hidden email] | 2. In the subject line of your email type: unsubscribe apollo | 3. Leave the message body blank. 

 





This list is for the Apollo Annotation Editing Tool. Info at http://genomearchitect.org/
If you wish to unsubscribe from the Apollo List: 1. From the address with which you subscribed to the list, send a message to [hidden email] | 2. In the subject line of your email type: unsubscribe apollo | 3. Leave the message body blank.

Reply | Threaded
Open this post in threaded view
|

Re: Can't deploy webapp

nathandunn
If you are using MySQL I would comment out the chado section.  Chado is  optimized to work with PostgreSQL afaik though I'm certain you could get it working on MySQL.  You could point the Apollo side to a MySQL instance and the chado one to a PostgreSQL instance.  Furthermore you can set it up without chado now but add it later.  

Nathan

On Apr 15, 2016, at 7:23 AM, matthew couchman (JIC) <[hidden email]> wrote:

Hi Nathan,

 

Thanks for your help again. Looking in the logs it seems that Apollo is connecting OK to apollo-production but that it then attempts to connect to apollo-production-chado which doesn’t exist yet. Should the install process build apollo-production-chado? Would it work if I commented the chado section out of apollo-config.groovy? Is there a mysql dump of the chado schema available to download?

 

Many thanks,

 

                                Matt.

 

 

From: [hidden email] [[hidden email]] On Behalf Of Nathan Dunn
Sent: 13 April 2016 16:50
To: [hidden email]
Subject: Re: [apollo] Can't deploy webapp

 

 

MySQL is perfectly good.   We test that database as well.    That error is indicative of a database connection failure. So a few thoughts:

 

0 - compare your apollo-config.groovy to sample-mysql-apollo-config.groovy and see if you notice anything important

1 - make sure that you have the database created.  Apollo will create the schema, but it needs a blank database. 

2 - try using “./apollo run-local” with your specified apollo-config.groovy.   If that doesn’t work, try without the apollo-config.groovy in place (do an ./apollo clean first though) (it will use H2).   This will use a “local” tomcat.

3 - post your config file (without passwords) and we can take a look.   If you know the version of mysql that might help as well (in case we have the wrong jdbc connector). 

4 - ps -ef | grep java . . . just double-check that you are not running two servers

 

Hope this helps,

 

Nathan

 

On Apr 13, 2016, at 4:59 AM, matthew couchman (JIC) <[hidden email]> wrote:

 

Thanks for your help again Nathan. I’m more familiar with MySQL so I tried following the example at http://webapollo.readthedocs.org/en/latest/ExampleBuild.html but i’m seeing the same error. I think some of the problem is my inexperience with Tomcat. Does Tomcat capture any details of the specific problem with the connection?

 

Many thanks,

 

                                Matt.

 

 

From: [hidden email] [[hidden email]] On Behalf Of Nathan Dunn
Sent: 11 April 2016 17:39
To: [hidden email]
Subject: Re: [apollo] Can't deploy webapp

 

 

Usually we get this if the database isn’t started or can’t be connected to.  If you are using PostgreSQL, there are some trouble-shooting tips here:

 

 

Nathan

 

On Apr 11, 2016, at 9:34 AM, matthew couchman (JIC) <[hidden email]> wrote:

 

Hi,

 

I’m getting an error which I can’t make sense of when I try and deploy the .war file generated by .apollo deploy. Tomcat’s localhost.yyyy-mm-dd.log says:

 

Apr 11, 2016 5:24:53 PM org.apache.catalina.core.ApplicationContext log

INFO: No Spring WebApplicationInitializer types detected on classpath

Apr 11, 2016 5:24:53 PM org.apache.catalina.core.ApplicationContext log

INFO: Initializing Spring root WebApplicationContext

Apr 11, 2016 5:25:00 PM org.apache.catalina.core.StandardContext listenerStart

SEVERE: Exception sending context initialized event to listener instance of class org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is java.lang.NullPointerException

                                                                                                                                                                                         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

                                                                                                                                                                                         at java.util.concurrent.FutureTask.run(FutureTask.java:266)

                                                                                                                                                                                         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

                                                                                                                                                                                         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

                                                                                                                                                                                         at java.lang.Thread.run(Thread.java:745)

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is java.lang.NullPointerException

                                                                                                                                                                                         ... 5 more

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is java.lang.NullPointerException

                                                                                                                                                                                         ... 5 more

Caused by: java.lang.NullPointerException

                                                                                                                                                                                         ... 5 more

 

Apr 11, 2016 5:25:00 PM org.apache.catalina.core.ApplicationContext log

INFO: Closing Spring root WebApplicationContext

Apr 11, 2016 5:25:01 PM org.apache.catalina.core.ApplicationContext log

INFO: ContextListener: contextInitialized()

Apr 11, 2016 5:25:01 PM org.apache.catalina.core.ApplicationContext log

INFO: SessionListener: contextInitialized()

Apr 11, 2016 5:25:01 PM org.apache.catalina.core.ApplicationContext log

INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@6465b52e')

 

The Tomcat examples seem to work OK on my local server. Any help much appreciated.

 

Thanks,

 

Matt.




This list is for the Apollo Annotation Editing Tool. Info at 
http://genomearchitect.org/
If you wish to unsubscribe from the Apollo List: 1. From the address with which you subscribed to the list, send a message to 
[hidden email] | 2. In the subject line of your email type: unsubscribe apollo | 3. Leave the message body blank. 

 




This list is for the Apollo Annotation Editing Tool. Info at 
http://genomearchitect.org/
If you wish to unsubscribe from the Apollo List: 1. From the address with which you subscribed to the list, send a message to 
[hidden email] | 2. In the subject line of your email type: unsubscribe apollo | 3. Leave the message body blank. 

 




This list is for the Apollo Annotation Editing Tool. Info at http://genomearchitect.org/
If you wish to unsubscribe from the Apollo List: 1. From the address with which you subscribed to the list, send a message to [hidden email] | 2. In the subject line of your email type: unsubscribe apollo | 3. Leave the message body blank.





This list is for the Apollo Annotation Editing Tool. Info at http://genomearchitect.org/
If you wish to unsubscribe from the Apollo List: 1. From the address with which you subscribed to the list, send a message to [hidden email] | 2. In the subject line of your email type: unsubscribe apollo | 3. Leave the message body blank.

Reply | Threaded
Open this post in threaded view
|

Re: Can't deploy webapp

nathandunn
In reply to this post by matthew couchman (JIC)

The chado configuration in the mysql (and h2) sample configuration was there in error in the master and has been removed.  

If you are looking for an immediate production release, you might want to use our latest 2.0.2 release: https://github.com/GMOD/Apollo/releases/tag/2.0.2.  

If you need / want Chado integration we will be releasing 2.0.3 based off of master, so please continue to give us feedback on that.  

Nathan

On Apr 15, 2016, at 7:23 AM, matthew couchman (JIC) <[hidden email]> wrote:

Hi Nathan,
 
Thanks for your help again. Looking in the logs it seems that Apollo is connecting OK to apollo-production but that it then attempts to connect to apollo-production-chado which doesn’t exist yet. Should the install process build apollo-production-chado? Would it work if I commented the chado section out of apollo-config.groovy? Is there a mysql dump of the chado schema available to download?
 
Many thanks,
 
                                Matt.
 
 
From: [hidden email] [[hidden email]] On Behalf Of Nathan Dunn
Sent: 13 April 2016 16:50
To: [hidden email]
Subject: Re: [apollo] Can't deploy webapp
 
 
MySQL is perfectly good.   We test that database as well.    That error is indicative of a database connection failure. So a few thoughts:
 
0 - compare your apollo-config.groovy to sample-mysql-apollo-config.groovy and see if you notice anything important
1 - make sure that you have the database created.  Apollo will create the schema, but it needs a blank database. 
2 - try using “./apollo run-local” with your specified apollo-config.groovy.   If that doesn’t work, try without the apollo-config.groovy in place (do an ./apollo clean first though) (it will use H2).   This will use a “local” tomcat.
3 - post your config file (without passwords) and we can take a look.   If you know the version of mysql that might help as well (in case we have the wrong jdbc connector). 
4 - ps -ef | grep java . . . just double-check that you are not running two servers
 
Hope this helps,
 
Nathan
 
On Apr 13, 2016, at 4:59 AM, matthew couchman (JIC) <[hidden email]> wrote:
 
Thanks for your help again Nathan. I’m more familiar with MySQL so I tried following the example at http://webapollo.readthedocs.org/en/latest/ExampleBuild.html but i’m seeing the same error. I think some of the problem is my inexperience with Tomcat. Does Tomcat capture any details of the specific problem with the connection?
 
Many thanks,
 
                                Matt.
 
 
From: [hidden email] [[hidden email]] On Behalf Of Nathan Dunn
Sent: 11 April 2016 17:39
To: [hidden email]
Subject: Re: [apollo] Can't deploy webapp
 
 
Usually we get this if the database isn’t started or can’t be connected to.  If you are using PostgreSQL, there are some trouble-shooting tips here:
 
 
Nathan
 
On Apr 11, 2016, at 9:34 AM, matthew couchman (JIC) <[hidden email]> wrote:
 
Hi,
 
I’m getting an error which I can’t make sense of when I try and deploy the .war file generated by .apollo deploy. Tomcat’s localhost.yyyy-mm-dd.log says:
 
Apr 11, 2016 5:24:53 PM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Apr 11, 2016 5:24:53 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Apr 11, 2016 5:25:00 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is java.lang.NullPointerException
                                                                                                                                                                                         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
                                                                                                                                                                                         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                                                                                                                                                                                         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
                                                                                                                                                                                         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
                                                                                                                                                                                         at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is java.lang.NullPointerException
                                                                                                                                                                                         ... 5 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is java.lang.NullPointerException
                                                                                                                                                                                         ... 5 more
Caused by: java.lang.NullPointerException
                                                                                                                                                                                         ... 5 more
 
Apr 11, 2016 5:25:00 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
Apr 11, 2016 5:25:01 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Apr 11, 2016 5:25:01 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Apr 11, 2016 5:25:01 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@6465b52e')
 
The Tomcat examples seem to work OK on my local server. Any help much appreciated.
 
Thanks,
 
Matt.



This list is for the Apollo Annotation Editing Tool. Info at 
http://genomearchitect.org/
If you wish to unsubscribe from the Apollo List: 1. From the address with which you subscribed to the list, send a message to 
[hidden email] | 2. In the subject line of your email type: unsubscribe apollo | 3. Leave the message body blank. 
 



This list is for the Apollo Annotation Editing Tool. Info at 
http://genomearchitect.org/
If you wish to unsubscribe from the Apollo List: 1. From the address with which you subscribed to the list, send a message to 
[hidden email] | 2. In the subject line of your email type: unsubscribe apollo | 3. Leave the message body blank. 
 



This list is for the Apollo Annotation Editing Tool. Info at http://genomearchitect.org/
If you wish to unsubscribe from the Apollo List: 1. From the address with which you subscribed to the list, send a message to [hidden email] | 2. In the subject line of your email type: unsubscribe apollo | 3. Leave the message body blank. 





This list is for the Apollo Annotation Editing Tool. Info at http://genomearchitect.org/
If you wish to unsubscribe from the Apollo List: 1. From the address with which you subscribed to the list, send a message to [hidden email] | 2. In the subject line of your email type: unsubscribe apollo | 3. Leave the message body blank.

Reply | Threaded
Open this post in threaded view
|

RE: Can't deploy webapp

matthew couchman (JIC)

Commenting out the chado stuff has fixed it. Many thanks for your help and patience.

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Nathan Dunn
Sent: 15 April 2016 15:55
To: [hidden email]
Subject: Re: [apollo] Can't deploy webapp

 

 

The chado configuration in the mysql (and h2) sample configuration was there in error in the master and has been removed.  

 

If you are looking for an immediate production release, you might want to use our latest 2.0.2 release: https://github.com/GMOD/Apollo/releases/tag/2.0.2.  

 

If you need / want Chado integration we will be releasing 2.0.3 based off of master, so please continue to give us feedback on that.  

 

Nathan

 

On Apr 15, 2016, at 7:23 AM, matthew couchman (JIC) <[hidden email]> wrote:

 

Hi Nathan,

 

Thanks for your help again. Looking in the logs it seems that Apollo is connecting OK to apollo-production but that it then attempts to connect to apollo-production-chado which doesn’t exist yet. Should the install process build apollo-production-chado? Would it work if I commented the chado section out of apollo-config.groovy? Is there a mysql dump of the chado schema available to download?

 

Many thanks,

 

                                Matt.

 

 

From: [hidden email] [[hidden email]] On Behalf Of Nathan Dunn
Sent: 13 April 2016 16:50
To: [hidden email]
Subject: Re: [apollo] Can't deploy webapp

 

 

MySQL is perfectly good.   We test that database as well.    That error is indicative of a database connection failure. So a few thoughts:

 

0 - compare your apollo-config.groovy to sample-mysql-apollo-config.groovy and see if you notice anything important

1 - make sure that you have the database created.  Apollo will create the schema, but it needs a blank database. 

2 - try using “./apollo run-local” with your specified apollo-config.groovy.   If that doesn’t work, try without the apollo-config.groovy in place (do an ./apollo clean first though) (it will use H2).   This will use a “local” tomcat.

3 - post your config file (without passwords) and we can take a look.   If you know the version of mysql that might help as well (in case we have the wrong jdbc connector). 

4 - ps -ef | grep java . . . just double-check that you are not running two servers

 

Hope this helps,

 

Nathan

 

On Apr 13, 2016, at 4:59 AM, matthew couchman (JIC) <[hidden email]> wrote:

 

Thanks for your help again Nathan. I’m more familiar with MySQL so I tried following the example at http://webapollo.readthedocs.org/en/latest/ExampleBuild.html but i’m seeing the same error. I think some of the problem is my inexperience with Tomcat. Does Tomcat capture any details of the specific problem with the connection?

 

Many thanks,

 

                                Matt.

 

 

From: [hidden email] [[hidden email]] On Behalf Of Nathan Dunn
Sent: 11 April 2016 17:39
To: [hidden email]
Subject: Re: [apollo] Can't deploy webapp

 

 

Usually we get this if the database isn’t started or can’t be connected to.  If you are using PostgreSQL, there are some trouble-shooting tips here:

 

 

Nathan

 

On Apr 11, 2016, at 9:34 AM, matthew couchman (JIC) <[hidden email]> wrote:

 

Hi,

 

I’m getting an error which I can’t make sense of when I try and deploy the .war file generated by .apollo deploy. Tomcat’s localhost.yyyy-mm-dd.log says:

 

Apr 11, 2016 5:24:53 PM org.apache.catalina.core.ApplicationContext log

INFO: No Spring WebApplicationInitializer types detected on classpath

Apr 11, 2016 5:24:53 PM org.apache.catalina.core.ApplicationContext log

INFO: Initializing Spring root WebApplicationContext

Apr 11, 2016 5:25:00 PM org.apache.catalina.core.StandardContext listenerStart

SEVERE: Exception sending context initialized event to listener instance of class org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is java.lang.NullPointerException

                                                                                                                                                                                         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

                                                                                                                                                                                         at java.util.concurrent.FutureTask.run(FutureTask.java:266)

                                                                                                                                                                                         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

                                                                                                                                                                                         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

                                                                                                                                                                                         at java.lang.Thread.run(Thread.java:745)

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is java.lang.NullPointerException

                                                                                                                                                                                         ... 5 more

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is java.lang.NullPointerException

                                                                                                                                                                                         ... 5 more

Caused by: java.lang.NullPointerException

                                                                                                                                                                                         ... 5 more

 

Apr 11, 2016 5:25:00 PM org.apache.catalina.core.ApplicationContext log

INFO: Closing Spring root WebApplicationContext

Apr 11, 2016 5:25:01 PM org.apache.catalina.core.ApplicationContext log

INFO: ContextListener: contextInitialized()

Apr 11, 2016 5:25:01 PM org.apache.catalina.core.ApplicationContext log

INFO: SessionListener: contextInitialized()

Apr 11, 2016 5:25:01 PM org.apache.catalina.core.ApplicationContext log

INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@6465b52e')

 

The Tomcat examples seem to work OK on my local server. Any help much appreciated.

 

Thanks,

 

Matt.




This list is for the Apollo Annotation Editing Tool. Info at 
http://genomearchitect.org/
If you wish to unsubscribe from the Apollo List: 1. From the address with which you subscribed to the list, send a message to 
[hidden email] | 2. In the subject line of your email type: unsubscribe apollo | 3. Leave the message body blank. 

 




This list is for the Apollo Annotation Editing Tool. Info at 
http://genomearchitect.org/
If you wish to unsubscribe from the Apollo List: 1. From the address with which you subscribed to the list, send a message to 
[hidden email] | 2. In the subject line of your email type: unsubscribe apollo | 3. Leave the message body blank. 

 




This list is for the Apollo Annotation Editing Tool. Info at 
http://genomearchitect.org/
If you wish to unsubscribe from the Apollo List: 1. From the address with which you subscribed to the list, send a message to 
[hidden email] | 2. In the subject line of your email type: unsubscribe apollo | 3. Leave the message body blank. 

 





This list is for the Apollo Annotation Editing Tool. Info at http://genomearchitect.org/
If you wish to unsubscribe from the Apollo List: 1. From the address with which you subscribed to the list, send a message to [hidden email] | 2. In the subject line of your email type: unsubscribe apollo | 3. Leave the message body blank.

Reply | Threaded
Open this post in threaded view
|

Re: Can't deploy webapp

nathandunn

No problem.  Our doc was wrong so thanks for finding that. 

Nathan

On Apr 15, 2016, at 10:01 AM, matthew couchman (JIC) <[hidden email]> wrote:

Commenting out the chado stuff has fixed it. Many thanks for your help and patience.
 
From: [hidden email] [[hidden email]] On Behalf Of Nathan Dunn
Sent: 15 April 2016 15:55
To: [hidden email]
Subject: Re: [apollo] Can't deploy webapp
 
 
The chado configuration in the mysql (and h2) sample configuration was there in error in the master and has been removed.  
 
If you are looking for an immediate production release, you might want to use our latest 2.0.2 release: https://github.com/GMOD/Apollo/releases/tag/2.0.2.  
 
If you need / want Chado integration we will be releasing 2.0.3 based off of master, so please continue to give us feedback on that.  
 
Nathan
 
On Apr 15, 2016, at 7:23 AM, matthew couchman (JIC) <[hidden email]> wrote:
 
Hi Nathan,
 
Thanks for your help again. Looking in the logs it seems that Apollo is connecting OK to apollo-production but that it then attempts to connect to apollo-production-chado which doesn’t exist yet. Should the install process build apollo-production-chado? Would it work if I commented the chado section out of apollo-config.groovy? Is there a mysql dump of the chado schema available to download?
 
Many thanks,
 
                                Matt.
 
 
From: [hidden email] [[hidden email]] On Behalf Of Nathan Dunn
Sent: 13 April 2016 16:50
To: [hidden email]
Subject: Re: [apollo] Can't deploy webapp
 
 
MySQL is perfectly good.   We test that database as well.    That error is indicative of a database connection failure. So a few thoughts:
 
0 - compare your apollo-config.groovy to sample-mysql-apollo-config.groovy and see if you notice anything important
1 - make sure that you have the database created.  Apollo will create the schema, but it needs a blank database. 
2 - try using “./apollo run-local” with your specified apollo-config.groovy.   If that doesn’t work, try without the apollo-config.groovy in place (do an ./apollo clean first though) (it will use H2).   This will use a “local” tomcat.
3 - post your config file (without passwords) and we can take a look.   If you know the version of mysql that might help as well (in case we have the wrong jdbc connector). 
4 - ps -ef | grep java . . . just double-check that you are not running two servers
 
Hope this helps,
 
Nathan
 
On Apr 13, 2016, at 4:59 AM, matthew couchman (JIC) <[hidden email]> wrote:
 
Thanks for your help again Nathan. I’m more familiar with MySQL so I tried following the example at http://webapollo.readthedocs.org/en/latest/ExampleBuild.html but i’m seeing the same error. I think some of the problem is my inexperience with Tomcat. Does Tomcat capture any details of the specific problem with the connection?
 
Many thanks,
 
                                Matt.
 
 
From: [hidden email] [[hidden email]] On Behalf Of Nathan Dunn
Sent: 11 April 2016 17:39
To: [hidden email]
Subject: Re: [apollo] Can't deploy webapp
 
 
Usually we get this if the database isn’t started or can’t be connected to.  If you are using PostgreSQL, there are some trouble-shooting tips here:
 
 
Nathan
 
On Apr 11, 2016, at 9:34 AM, matthew couchman (JIC) <[hidden email]> wrote:
 
Hi,
 
I’m getting an error which I can’t make sense of when I try and deploy the .war file generated by .apollo deploy. Tomcat’s localhost.yyyy-mm-dd.log says:
 
Apr 11, 2016 5:24:53 PM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Apr 11, 2016 5:24:53 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Apr 11, 2016 5:25:00 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is java.lang.NullPointerException
                                                                                                                                                                                         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
                                                                                                                                                                                         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                                                                                                                                                                                         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
                                                                                                                                                                                         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
                                                                                                                                                                                         at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is java.lang.NullPointerException
                                                                                                                                                                                         ... 5 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is java.lang.NullPointerException
                                                                                                                                                                                         ... 5 more
Caused by: java.lang.NullPointerException
                                                                                                                                                                                         ... 5 more
 
Apr 11, 2016 5:25:00 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
Apr 11, 2016 5:25:01 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Apr 11, 2016 5:25:01 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Apr 11, 2016 5:25:01 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@6465b52e')
 
The Tomcat examples seem to work OK on my local server. Any help much appreciated.
 
Thanks,
 
Matt.



This list is for the Apollo Annotation Editing Tool. Info at 
http://genomearchitect.org/
If you wish to unsubscribe from the Apollo List: 1. From the address with which you subscribed to the list, send a message to 
[hidden email] | 2. In the subject line of your email type: unsubscribe apollo | 3. Leave the message body blank. 
 



This list is for the Apollo Annotation Editing Tool. Info at 
http://genomearchitect.org/
If you wish to unsubscribe from the Apollo List: 1. From the address with which you subscribed to the list, send a message to 
[hidden email] | 2. In the subject line of your email type: unsubscribe apollo | 3. Leave the message body blank. 
 



This list is for the Apollo Annotation Editing Tool. Info at 
http://genomearchitect.org/
If you wish to unsubscribe from the Apollo List: 1. From the address with which you subscribed to the list, send a message to 
[hidden email] | 2. In the subject line of your email type: unsubscribe apollo | 3. Leave the message body blank. 
 



This list is for the Apollo Annotation Editing Tool. Info at http://genomearchitect.org/
If you wish to unsubscribe from the Apollo List: 1. From the address with which you subscribed to the list, send a message to [hidden email] | 2. In the subject line of your email type: unsubscribe apollo | 3. Leave the message body blank. 





This list is for the Apollo Annotation Editing Tool. Info at http://genomearchitect.org/
If you wish to unsubscribe from the Apollo List: 1. From the address with which you subscribed to the list, send a message to [hidden email] | 2. In the subject line of your email type: unsubscribe apollo | 3. Leave the message body blank.