Michael,
two exceptions to take a look at before getting to bottom this:
1.
10:56:53,571 |-INFO in ch.qos.logback.classic.LoggerContext[default] -
Found resource [logback.xml] at
[file:/var/lib/tomcat7/webapps/mifosng-provider/WEB-INF/classes/logback.xml]
10:56:53,669 |-INFO in
ch.qos.logback.classic.joran.action.ConfigurationAction - debug
attribute not set
10:56:53,933 |-ERROR in ch.qos.logback.core.util.ContextUtil@101fa9e -
Failed to get local hostname java.net.UnknownHostException: grant:
grant
at java.net.UnknownHostException: grant: grant
at at java.net.InetAddress.getLocalHost(InetAddress.java:1426)
at at ch.qos.logback.core.util.ContextUtil.getLocalHostName(ContextUtil.java:32)
do you have your /etc/hosts setup as?
127.0.0.1 grant localhost
2.
10:56:54,045 |-INFO in ch.qos.logback.core.FileAppender[FILE] - File
property is set to [/usr/share/tomcat7/logs/mifos-platform.log]
10:56:54,046 |-ERROR in ch.qos.logback.core.FileAppender[FILE] -
Failed to create parent directories for
[/usr/share/tomcat7/logs/mifos-platform.log]
10:56:54,046 |-ERROR in ch.qos.logback.core.FileAppender[FILE] -
openFile(/usr/share/tomcat7/logs/mifos-platform.log,true) call failed.
java.io.FileNotFoundException:
/usr/share/tomcat7/logs/mifos-platform.log (No such file or directory)
at java.io.FileNotFoundException:
/usr/share/tomcat7/logs/mifos-platform.log (No such file or directory)
at at java.io.FileOutputStream.openAppend(Native Method)
at at java.io.FileOutputStream.<init>(FileOutputStream.java:207)
There is instructions for creating this file (and give it appropriate
permissions on the wiki page so that its available for logging)
3.
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException:
No qualifying bean of type [javax.sql.DataSource]
found for dependency: expected at least 1 bean which qualifies as
autowire candidate for this dependency. Dependency annotations:
{@org.springframework.beans.factory.annotation.Qualifier(value=tenantDataSourceJndi)}
For this exception I would see to see your server.xml setup for tomcat
On Tue, Feb 12, 2013 at 11:05 AM, michaelg <[email protected]> wrote:
> Keith,
>
> I have replaced the tomcat-jdbc jar with a newer version and this it the
> error logs
> :https://gist.github.com/amichaelgrant/4761593
>
> About JNDI, I am pretty certain it has been well setup, unless there is
> something i am missing
>
>
> On Monday, February 11, 2013 6:42:45 PM UTC, keithw wrote:
>>
>> Michael,
>>
>> The tomcat-jdbc jar seems to be from a much earlier version of tomcat
>> 7 (7.0.19) its probably not the reason for what you are seeing - it
>> would be good to follow those steps to put in all the tomcat 7 jars
>> from a later release e.g. apache-tomcat-7.0.29 or later
>>
>> It the problem persists please post back link to the expection you are
>> getting this time round (might not be exact same)
>>
>> If it is the same - its likely to be to do with the JNDI setup
>>
>> Keith.
>>
>> On Mon, Feb 11, 2013 at 6:25 PM, michaelg <[email protected]> wrote:
>> > Keith,
>> > Here is a snapshot of the tomcat7 lib folder, mysql connector and
>> > tomcat-jdbc.jar are available:
>> >
>> > root@cnocgrant-OptiPlex-380:/var/local/tomcat7# ls lib/
>> > annotations-api.jar jasper.jar
>> > tomcat-dbcp.jar
>> > catalina-ant.jar javax.servlet.jsp.jstl-1.2.1.jar
>> > tomcat-i18n-es.jar
>> > catalina-ha.jar javax.servlet.jsp.jstl-api-1.2.1.jar
>> > tomcat-i18n-fr.jar
>> > catalina.jar jsp-api.jar
>> > tomcat-i18n-ja.jar
>> > catalina-tribes.jar mysql-connector-java-5.1.21.jar
>> > tomcat-jdbc-7.0.19.jar
>> > ecj-3.6.2.jar servlet-api.jar
>> > tomcat-util.jar
>> > el-api.jar tomcat-api.jar
>> > jasper-el.jar tomcat-coyote.jar
>> >
>> >
>> > On Monday, February 11, 2013 5:58:35 PM UTC, keithw wrote:
>> >>
>> >> Michael,
>> >>
>> >> from
>> >>
>> >> https://mifosforge.jira.com/wiki/display/MIFOSX/Install+Tomcat+7+on+Ubuntu+11.10+for+Mifos+X
>> >>
>> >> 1. Have you done the step of moving mysql/j connector file to the
>> >> tomcat lib folder?
>> >>
>> >> 2. Can you confirm after your installation of tomcat 7 on ubuntu that
>> >> theres a file called tomcat-jdbc.jar in the tomcat 7 lib directory -
>> >> anything I installed tomcat 7 using apt-get it never had this so had
>> >> to follow the steps outlined in 'Some Extra Steps'
>> >>
>> >> regards,
>> >> Keith.
>> >>
>> >>
>> >> On Mon, Feb 11, 2013 at 5:50 PM, Michael Grant
>> >> <[email protected]> wrote:
>> >> >
>> >> > Hi,
>> >> >
>> >> > I am trying to deploy mifosx for production on ubuntu 11.04, tomcat7.
>> >> > Mysql database is setup as described here :
>> >> > https://github.com/keithwoodlock/mifosx/wiki/MySQL-Database-Setup
>> >> > I also read this already :
>> >> >
>> >> >
>> >> > https://github.com/keithwoodlock/mifosx/wiki/Launching-platform-server-locally-from-the-command-line
>> >> > SSL and JNDI have been configured and tested and are working fine.
>> >> > The mifosx war has been built with gradle and works fine when ran
>> >> > using
>> >> > gradle.
>> >> > Mysql user and passwords are root and mysql
>> >> >
>> >> > When I drop the mifosng-provider in tomcat7's webapps folder I get
>> >> > the
>> >> > following error message:
>> >> > https://gist.github.com/amichaelgrant/4753857
>> >> >
>> >> > Has anybody encountered the same problem? how was it fixed?
>> >> > --
>> >> > Michael Grant
>> >> >
>> >> >
>> >> > "The greatest battles of our lives are not fought in the field, but
>> >> > in
>> >> > our
>> >> > minds. The battle between good and evil" - anonymous
>> >> >
>> >> >
>> >> > ------------------------------------------------------------------------------
>> >> > Free Next-Gen Firewall Hardware Offer
>> >> > Buy your Sophos next-gen firewall before the end March 2013
>> >> > and get the hardware for free! Learn more.
>> >> > http://p.sf.net/sfu/sophos-d2d-feb
>> >> > _______________________________________________
>> >> > Mifos-users mailing list
>> >> > [email protected]
>> >> > https://lists.sourceforge.net/lists/listinfo/mifos-users
>> >> >
>> >>
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> Free Next-Gen Firewall Hardware Offer
>> >> Buy your Sophos next-gen firewall before the end March 2013
>> >> and get the hardware for free! Learn more.
>> >> http://p.sf.net/sfu/sophos-d2d-feb
>> >> _______________________________________________
>> >> Mifos-users mailing list
>> >> [email protected]
>> >> https://lists.sourceforge.net/lists/listinfo/mifos-users
>> >
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > Free Next-Gen Firewall Hardware Offer
>> > Buy your Sophos next-gen firewall before the end March 2013
>> > and get the hardware for free! Learn more.
>> > http://p.sf.net/sfu/sophos-d2d-feb
>> > _______________________________________________
>> > Mifos-users mailing list
>> > [email protected]
>> > https://lists.sourceforge.net/lists/listinfo/mifos-users
>> >
>>
>>
>> ------------------------------------------------------------------------------
>> Free Next-Gen Firewall Hardware Offer
>> Buy your Sophos next-gen firewall before the end March 2013
>> and get the hardware for free! Learn more.
>> http://p.sf.net/sfu/sophos-d2d-feb
>> _______________________________________________
>> Mifos-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/mifos-users
>
>
> ------------------------------------------------------------------------------
> Free Next-Gen Firewall Hardware Offer
> Buy your Sophos next-gen firewall before the end March 2013
> and get the hardware for free! Learn more.
> http://p.sf.net/sfu/sophos-d2d-feb
> _______________________________________________
> Mifos-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mifos-users
>
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Mifos-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-users