Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8183499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:10:49+00:00 2026-06-07T01:10:49+00:00

I can not figure out the correct syntax for my properties. Any sugestions? This

  • 0

I can not figure out the correct syntax for my properties.
Any sugestions?
This 4 lines are in my config.properties

 url=jdbc:sybase:Tds:localhost:2638?servicename=db
 driver=com.sybase.jdbc4.jdbc.SybDataSource
 username=myUserName
 password=myPass

I have tried several ways … with no luck?

and my mybats-config.xml is as folow.

    <environment id="development">
        <transactionManager type="JDBC" />
        <dataSource type="POOLED">  
            <property name="driver" value="${driver}" />
            <property name="url" value="${url}" />
            <property name="username" value="${username}" />
            <property name="password" value="${password}" />
        </dataSource>
    </environment>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T01:10:50+00:00Added an answer on June 7, 2026 at 1:10 am

    You need to have an <environments> element around the <environment> xml block you have above. Do you have one and just didn’t show it? If not, add that and it should work (assuming the rest of your config properties are set up correctly).

    <environments>
      <environment id="development">
        <transactionManager type="JDBC" />
        <dataSource type="POOLED">  
          <property name="driver" value="${driver}" />
          <property name="url" value="${url}" />
          <property name="username" value="${username}" />
          <property name="password" value="${password}" />
        </dataSource>
      </environment>
    </environments>
    

    Also, in case it helps, the order of xml elements in the MyBatis XML config is important, it has to be:

    • properties
    • settings
    • typeAliases
    • typeHandlers
    • objectFactory
    • plugins
    • environments
      • environment
        • transactionManager
        • dataSource
    • databaseIdProvider
    • mappers

    So make sure you are following that pattern as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm not sure if this is possible, but I can't figure out how to
I have the following method that I can't figure out correct syntax to call:
I can not figure out why my rich:dataTable is not rendering. I am using
I have something of a logical puzzle I can not figure out. I have
For the life of me, I can not figure out why some styles are
I use a Mahout (version 0.8) and MySQL. I can not figure out how
I have to implement simple ray tracing algorithm, but I can not figure out
I can not seem to figure out how to count the number of seconds
I can not for the life of me, figure out how I can reposition
Can someone figure out how to get rid of the NOT EXISTS statements in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.