Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-1866

sqlResources.xml need in bin directory otherwisewill error when start server

    Details

    • Type: Bug
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0-beta5
    • Fix Version/s: None
    • Component/s: Build System
    • Labels:
    • Environment:
      jdk1.6, centos7
    • Flags:
      Patch

      Description

      use default config with jpa, we will get error as below

      INFO | jvm 1 | 2016/11/23 14:33:35 | Caused by: java.io.FileNotFoundException: /home/levi/softwear/server/james-server-app-3.0.0-beta6-SNAPSHOT/bin/sqlResources.xml (没有那个文件或目录)
      INFO | jvm 1 | 2016/11/23 14:33:35 | at java.io.FileInputStream.open0(Native Method)
      INFO | jvm 1 | 2016/11/23 14:33:35 | at java.io.FileInputStream.open(FileInputStream.java:195)
      INFO | jvm 1 | 2016/11/23 14:33:35 | at java.io.FileInputStream.<init>(FileInputStream.java:138)
      INFO | jvm 1 | 2016/11/23 14:33:35 | at java.io.FileInputStream.<init>(FileInputStream.java:93)
      INFO | jvm 1 | 2016/11/23 14:33:35 | at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
      INFO | jvm 1 | 2016/11/23 14:33:35 | at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
      INFO | jvm 1 | 2016/11/23 14:33:35 | at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:623)
      INFO | jvm 1 | 2016/11/23 14:33:35 | at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:189)
      INFO | jvm 1 | 2016/11/23 14:33:35 | at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:812)
      INFO | jvm 1 | 2016/11/23 14:33:35 | at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
      INFO | jvm 1 | 2016/11/23 14:33:35 | at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
      INFO | jvm 1 | 2016/11/23 14:33:35 | at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243)
      INFO | jvm 1 | 2016/11/23 14:33:35 | at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
      INFO | jvm 1 | 2016/11/23 14:33:35 | at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:205)
      INFO | jvm 1 | 2016/11/23 14:33:35 | at org.apache.james.util.sql.SqlResources.init(SqlResources.java:84)
      INFO | jvm 1 | 2016/11/23 14:33:35 | at org.apache.james.transport.mailets.WhiteListManager.initSqlQueries(WhiteListManager.java:760)
      INFO | jvm 1 | 2016/11/23 14:33:35 | at org.apache.james.transport.mailets.WhiteListManager.init(WhiteListManager.java:231)
      INFO | jvm 1 | 2016/11/23 14:33:35 | ... 37 more
      ^C
      [levi@vm01 log]$ sed by: org.apache.commons.configuration.ConfigurationException: Unable to init mailet WhiteListManager

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              luo877280 leviluo
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 4h
                4h
                Remaining:
                Remaining Estimate - 4h
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified