×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jun 2004
    Posts
    1

    Problem building gateway

    I am having trouble building the gateway 0.6.3.
    I basically get the following exception:

    com.nokia.mws.db.DbExc: Could not create DB instance from file mws-gw-db.cfg: mws-gw-db.cfg (No such file or directory)

    Yet, the file exists in {tomcat}/bin.
    All the unit test execute successfully and "./testdb.sh testcreate" in gw/gwdb/bin works just fine.

    However, I could not get dbmngr.sh to execute properly. It kept trying to append some of the parameter to the classpath:

    create
    Trying to locate, and append create to the classpath
    COULD NOT FIND JAR
    mws-gw-db.cfg
    Trying to locate, and append mws-gw-db.cfg to the classpath
    USING mws-gw-db.cfg
    com.nokia.mws.gwdb.mysql.DbImpl
    Trying to locate, and append com.nokia.mws.gwdb.mysql.DbImpl to the classpath
    COULD NOT FIND JAR

    so I executed the DbMgr create manually with the full classpath.

    any ideas?

  2. #2
    Registered User
    Join Date
    Nov 2006
    Posts
    9

    Re: Problem building gateway

    Hi,

    Some tomcat installations require the db config file not in the bin directory, but for instance in the "root" tomcat directory. It all boils down from where the tomcat process is started - that's where the db config file has to be.

    feri

Similar Threads

  1. Problem while building jsp/servlet in j2me
    By sachinwarang in forum Mobile Java General
    Replies: 4
    Last Post: 2007-08-22, 12:08
  2. Problem while building 40 series application
    By sachinwarang in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2006-03-16, 10:35
  3. Problem while building 40 series application
    By sachinwarang in forum Mobile Java General
    Replies: 9
    Last Post: 2006-03-16, 10:22
  4. wap gateway problem
    By chandanp in forum WAP Servers
    Replies: 1
    Last Post: 2002-08-21, 09:04

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×