Announcement Announcement Module
Collapse
No announcement yet.
ERROR: Context initialization failed Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ERROR: Context initialization failed

    Hi everybody,

    When i try to get my application running on tomcat(5.5.9) i get the following message: FAIL - Application at context path /myclient could not be started.

    application log file gives the following error messages:

    ERROR [org.springframework.web.context.ContextLoader] - Context initialization failed
    org.springframework.beans.factory.BeanCreationExce ption:
    Error creating bean with name 'sqlMapClient' defined in ServletContext resource [/WEB-INF/daoContext-local.xml]: Initialization of bean failed; nested exception is com.ibatis.common.exception.NestedRuntimeException : Error occurred. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMap/resultMap/result'. Cause: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMap/resultMap/result'. Cause: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMap/resultMap/result'. Cause: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMap/resultMap/result'. Cause: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMap/resultMap/result'. Cause: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMap/resultMap/result'. Cause: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMap/resultMap/result'. Cause: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMap/resultMap/result'. Cause: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    com.ibatis.common.exception.NestedRuntimeException : Error occurred. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMap/resultMap/result'. Cause: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMap/resultMap/result'. Cause: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMap/resultMap/result'. Cause: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMap/resultMap/result'. Cause: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMap/resultMap/result'. Cause: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMap/resultMap/result'. Cause: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMap/resultMap/result'. Cause: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMap/resultMap/result'. Cause: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMap/resultMap/result'. Cause: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMap/resultMap/result'. Cause: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMap/resultMap/result'. Cause: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMap/resultMap/result'. Cause: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMap/resultMap/result'. Cause: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMap/resultMap/result'. Cause: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMap/resultMap/result'. Cause: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMap/resultMap/result'. Cause: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Caused by: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'

    Can somebody helps me to solve this problem. Every help is appreciated.

    Thnx,

  • #2
    Caused by: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'firstname' in class 'com.myclient.domain.Account'
    Seams like Account does not have not setFirstname method or even does not have any property called firstname at all.

    Can I see the mapping for the Account + the Account class please?


    Cheers,

    Martin (Kersten)

    Comment


    • #3
      ERROR: Context initialization failed

      I looked in the Account class and Account mapping. There is a setFirstName() method and a firstname property in the Account mapping.

      I tried almost everything, but keeps the error message: Context initialization faild. When i remove the contextLoaderlistener in web.xml my application is running= true in tomcat webapplication manager.

      But the problem is that i need the contextloaderlistener to startup Spring's root WebApplicationContext.

      Every help is apreciated

      Greetings,

      ////////////////////////////////////////////////////////////////////////////////

      import java.io.Serializable;


      public class Account implements Serializable {

      /* Private Fields */

      private String username;
      private String password;
      private String email;
      private String firstname;
      private String lastname;
      private String phone;


      /* JavaBeans Properties */

      public String getUsername() { return username; }
      public void setUsername(String username) { this.username = username; }

      public String getPassword() { return password; }
      public void setPassword(String password) { this.password = password; }

      public String getEmail() { return email; }
      public void setEmail(String email) { this.email = email; }

      public String getFirstName() { return firstname; }
      public void setFirstName(String firstname) { this.firstname = firstname; }

      public String getLastName() { return lastname; }
      public void setLastName(String lastname) { this.lastname = lastname; }

      public String getPhone() { return phone; }
      public void setPhone(String phone) { this.phone = phone; }

      }

      ///////////////////////////////////////////////////////////////////////////////////

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd">

      <sqlMap namespace="Account">

      <resultMap id="result" class="com.myclient.domain.Account">
      <result property="username" column="user_id" />
      <result property="password" column="password" />
      <result property="email" column="email" />
      <result property="firstname" column="firstname" />
      <result property="lastname" column="lastname" />
      <result property="phone" column="phone" />
      </resultMap>

      <select id="getAccountByUsernameAndPassword" resultMap="result">
      select * from account
      where
      account.user_id = #username#
      and
      account.password = #password#
      </select>

      <update id="updateAccount">
      update account set email = #email#, firstname = #firstname#, lastname = #lastname#, phone = #phone#, password = #password# where user_id = #username#
      </update>

      <insert id="insertAccount">
      insert into account (email, firstname, lastname, phone, password, user_id) values (#email#, #firstname#, #lastname#, #phone#, #password, #username#)
      </insert>

      </sqlMap>

      ////////////////////////////////////////////////////////////////////////////////////

      Comment


      • #4
        I think the casing in your configuration is incorrect. Try this:

        Code:
         <resultMap id="result" class="com.myclient.domain.Account">
        <result property="username" column="user_id" />
        <result property="password" column="password" />
        <result property="email" column="email" />
        <result property="firstName" column="firstname" />
        <result property="lastName" column="lastname" />
        <result property="phone" column="phone" />
        </resultMap>
        Notice the casing of the property attributes for firstName and lastName.

        Rob

        Comment


        • #5
          Like Rob already said, properties are case sensitive here.

          So iBatis try to set the value of 'firstname' which results in looking for a setFirstname(String) method. ("set" + capitalizeFirstCharacter(propertyName)).


          Cheers,

          Martin (Kersten)

          Comment


          • #6
            ERROR: Context initialization failed

            I still keep the error message: Context initialization faild. When i remove the contextLoaderlistener in web.xml my application is running= true in tomcat webapplication manager.

            But the problem is that i need the contextloaderlistener to startup Spring's root WebApplicationContext.

            <listener>
            <listener-class>org.springframework.web.context.ContextLoade rListener</listener-class>
            </listener>


            Thnx,

            /////////////////////////////myclient.log////////////////////////////////////////////////////////

            2005-04-17 22:26:59,609 INFO [org.springframework.web.context.ContextLoader] - Root WebApplicationContext: initialization started
            2005-04-17 22:26:59,609 INFO [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/myclient]] - Loading Spring root WebApplicationContext
            2005-04-17 22:26:59,703 INFO [org.springframework.beans.factory.xml.XmlBeanDefin itionReader] - Loading XML bean definitions from ServletContext resource [/WEB-INF/daoContext-local.xml]
            2005-04-17 22:26:59,796 INFO [org.springframework.beans.factory.xml.XmlBeanDefin itionReader] - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml]
            2005-04-17 22:26:59,843 INFO [org.springframework.web.context.support.XmlWebAppl icationContext] - Bean factory for application context [org.springframework.web.context.support.XmlWebAppl icationContext;hashCode=24417480]: org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [dataSource,transactionManager,sqlMapClient,account Dao,propertyConfigurer,baseTransactionProxy,myClie nt]; root of BeanFactory hierarchy
            2005-04-17 22:26:59,859 INFO [org.springframework.web.context.support.XmlWebAppl icationContext] - 7 beans defined in application context [org.springframework.web.context.support.XmlWebAppl icationContext;hashCode=24417480]
            2005-04-17 22:26:59,859 INFO [org.springframework.core.CollectionFactory] - JDK 1.4+ collections available
            2005-04-17 22:26:59,859 INFO [org.springframework.beans.factory.support.DefaultL istableBeanFactory] - Creating shared instance of singleton bean 'propertyConfigurer'
            2005-04-17 22:26:59,953 INFO [org.springframework.beans.factory.config.PropertyP laceholderConfigurer] - Loading properties from ServletContext resource [/WEB-INF/jdbc.properties]
            2005-04-17 22:26:59,953 INFO [org.springframework.web.context.support.XmlWebAppl icationContext] - Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMess ageSource@106fc94]
            2005-04-17 22:26:59,953 INFO [org.springframework.web.context.support.XmlWebAppl icationContext] - Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicatio nEventMulticaster@7f5580]
            2005-04-17 22:26:59,968 INFO [org.springframework.ui.context.support.UiApplicati onContextUtils] - No ThemeSource found for [org.springframework.web.context.support.XmlWebAppl icationContext;hashCode=24417480]: using ResourceBundleThemeSource
            2005-04-17 22:26:59,968 INFO [org.springframework.beans.factory.support.DefaultL istableBeanFactory] - Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [dataSource,transactionManager,sqlMapClient,account Dao,propertyConfigurer,baseTransactionProxy,myClie nt]; root of BeanFactory hierarchy]
            2005-04-17 22:26:59,968 INFO [org.springframework.beans.factory.support.DefaultL istableBeanFactory] - Creating shared instance of singleton bean 'dataSource'
            2005-04-17 22:26:59,984 INFO [org.springframework.beans.factory.support.DefaultL istableBeanFactory] - Creating shared instance of singleton bean 'transactionManager'
            2005-04-17 22:27:00,000 INFO [org.springframework.beans.factory.support.DefaultL istableBeanFactory] - Creating shared instance of singleton bean 'sqlMapClient'
            2005-04-17 22:27:00,343 INFO [org.springframework.beans.factory.support.DefaultL istableBeanFactory] - Destroying singletons in factory {org.springframework.beans.factory.support.Default ListableBeanFactory defining beans [dataSource,transactionManager,sqlMapClient,account Dao,propertyConfigurer,baseTransactionProxy,myClie nt]; root of BeanFactory hierarchy}
            2005-04-17 22:27:00,343 ERROR [org.springframework.web.context.ContextLoader] - Context initialization failed
            org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'sqlMapClient' defined in ServletContext resource [/WEB-INF/daoContext-local.xml]: Initialization of bean failed; nested exception is com.ibatis.common.exception.NestedRuntimeException : Error occurred. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMap/insert'. Cause: com.ibatis.sqlmap.client.SqlMapException: Incorrect inline parameter map format (missmatched name=value pairs): password,
            Caused by: com.ibatis.sqlmap.client.SqlMapException: Incorrect inline parameter map format (missmatched name=value pairs): password,
            Caused by: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMap/insert'. Cause: com.ibatis.sqlmap.client.SqlMapException: Incorrect inline parameter map format (missmatched name=value pairs): password,
            Caused by: com.ibatis.sqlmap.client.SqlMapException: Incorrect inline parameter map format (missmatched name=value pairs): password,
            Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMap/insert'. Cause: com.ibatis.sqlmap.client.SqlMapException: Incorrect inline parameter map format (missmatched name=value pairs): password,
            Caused by: com.ibatis.sqlmap.client.SqlMapException: Incorrect inline parameter map format (missmatched name=value pairs): password,
            Caused by: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMap/insert'. Cause: com.ibatis.sqlmap.client.SqlMapException: Incorrect inline parameter map format (missmatched name=value pairs): password,
            Caused by: com.ibatis.sqlmap.client.SqlMapException: Incorrect inline parameter map format (missmatched name=value pairs): password,
            Caused by: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMap/insert'. Cause: com.ibatis.sqlmap.client.SqlMapException: Incorrect inline parameter map format (missmatched name=value pairs): password,
            Caused by: com.ibatis.sqlmap.client.SqlMapException: Incorrect inline parameter map format (missmatched name=value pairs): password,
            Caused by: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMap/insert'. Cause: com.ibatis.sqlmap.client.SqlMapException: Incorrect inline parameter map format (missmatched name=value pairs): password,
            Caused by: com.ibatis.sqlmap.client.SqlMapException: Incorrect inline parameter map format (missmatched name=value pairs): password,
            Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMap/insert'. Cause: com.ibatis.sqlmap.client.SqlMapException: Incorrect inline parameter map format (missmatched name=value pairs): password,
            Caused by: com.ibatis.sqlmap.client.SqlMapException: Incorrect inline parameter map format (missmatched name=value pairs): password,
            Caused by: com.ibatis.common.exception.NestedRuntimeException : Error parsing XPath '/sqlMap/insert'. Cause: com.ibatis.sqlmap.client.SqlMapException: Incorrect inline parameter map format (missmatched name=value pairs): password,
            Caused by: com.ibatis.sqlmap.client.SqlMapException: Incorrect inline parameter map format (missmatched name=value pairs): password,

            /////////////////////////////////////////////////////////////////////////////////////////////////////////

            Comment


            • #7
              Again, the exception here is an error in your config file:

              <insert id="insertAccount">
              insert into account (email, firstname, lastname, phone, password, user_id) values (#email#, #firstname#, #lastname#, #phone#, #password, #username#)
              </insert>


              should be:

              <insert id="insertAccount">
              insert into account (email, firstname, lastname, phone, password, user_id) values (#email#, #firstname#, #lastname#, #phone#, #password#, #username#)
              </insert>

              Notice the additional # after password.

              Rob

              Comment


              • #8
                Context initialization failed

                The problem is resolved by you're help.

                Thnx a lot :wink:

                Comment


                • #9
                  bean mapping problem

                  hi makhlo,

                  thanks for support, i have been solved my problem by getting ur answer...

                  bye.

                  Comment

                  Working...
                  X