ann
          冰是沒有未來的,因為它的永恒
          posts - 107,comments - 34,trackbacks - 0
               摘要: 這個錯誤信息通常在你更新工作拷貝時出現(xiàn),可能的原因有兩個:

          * 版本庫中有兩個文件的名字只是大小寫不同,這在Windows下是不允許簽出的,因為Windows的文件系統(tǒng)是大小寫不敏感的。很可能其中一個文件是誤添加的,所以你要找出是哪一個,然后刪除它,以確保不會把更改提交到錯誤的文件。
          * 某個文件的文件名是非法的(對Windows來說非法),比如,"con", "lpr", "com"都是非法的,因為這些都是設(shè)備名。當(dāng)然,含有"/\*?:|"和其它特殊字符在Windows(NTFS 和 FAT)也是不允許的。

          是,我們知道這個錯誤信息對解決問題沒什么實質(zhì)性的幫助,但這個錯誤信息是來自Subversion庫的,我們改不了。

          有幾個辦法可以避免這個問題:

          Subversion 是針對大小寫敏感的文件系統(tǒng)(比如 Linux )設(shè)計的,這在大小寫不敏感的Windows下有時就會有問題。一個典型的例子是,重命名文件時,如果文件名僅有大小寫不一樣,如Makefile改成 MAKEFILE。在工作拷貝中要  閱讀全文
          posted @ 2009-10-22 12:11 冰是沒有未來的,因為它的永恒| 編輯 收藏
               摘要: 在測試發(fā)現(xiàn) 當(dāng)數(shù)組返回json格式的String的時候,如果數(shù)組中只有一個,則返回的json格式不是數(shù)組形式,而是單一對象格式。  閱讀全文
          posted @ 2009-10-15 09:28 冰是沒有未來的,因為它的永恒| 編輯 收藏
               摘要: 這里面用的是jersey

          1. 創(chuàng)建一個project

          2. 建立返回的model

          這里面的model例子

          /*
          * To change this template, choose Tools | Templates
          * and open the template in the editor.
          */

          package com.test.webservice.model;

          /**
          *
          * @author ann
          */
          import com.fg114.model.People;
          import java.util.Date;
          import javax.xml.bind.annotation.XmlAccessType;
          import javax.xml.bind.annotation.XmlAccessorType;
          import javax  閱讀全文
          posted @ 2009-09-27 15:19 冰是沒有未來的,因為它的永恒| 編輯 收藏
               摘要: java.lang.LinkageError: loader constraint violation: when resolving overridden method "com.sun.xml.ws.message.jaxb.AttachmentMarshallerImpl.addMtomAttachment(Ljavax/activation/DataHandler;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;" the class loader (instance of org/mortbay/jetty/webapp/WebAppClassLoader) of the current class, com/sun/xml/ws/message/jaxb/AttachmentMarshallerImpl, and its superclass loader (instance of ), have different Class objects for the type javax/act  閱讀全文
          posted @ 2009-09-18 16:13 冰是沒有未來的,因為它的永恒| 編輯 收藏
               摘要: 在 Linux 系統(tǒng)中,
          要將代理連接為群集,有一個特殊的前提條件。某些 Linux 安裝程序自動將 localhost 條目設(shè)置為網(wǎng)絡(luò)回送 IP 地址 (127.0.0.1)。您必須設(shè)置系統(tǒng)的 IP 地址,以便為群集中的所有代理設(shè)置正確的地址。
          也即修改/etc/hosts
          把hostname的配置文件為你的靜態(tài)ip(linux 查看hostname命令: hostname)

          例如: hostname == etch1
          修改/etc/hosts中
          etch1 192.168.1.18  閱讀全文
          posted @ 2009-09-17 11:32 冰是沒有未來的,因為它的永恒| 編輯 收藏
               摘要: url :http://efforts.embedded.ufcg.edu.br/web/?p=7  閱讀全文
          posted @ 2009-09-01 09:28 冰是沒有未來的,因為它的永恒| 編輯 收藏
               摘要: 例子 class Hotel{
          static constraints = {
          name()
          crTime(nullable:true)
          upTime(nullable:true)
          }

          String name
          Date crTime
          Date upTime

          def beforeInsert = {
          crTime = new Date()
          }

          def beforeUpdate = {
          upTime = new Date()
          }
          }
          crTime(nullable:true)
          upTime(nullable:true)不設(shè) 保存或更新靜默失敗(beforeInsert或beforeUpdate 不起作用)
            閱讀全文
          posted @ 2009-08-28 15:50 冰是沒有未來的,因為它的永恒| 編輯 收藏
               摘要: 測試了grails時候 在新創(chuàng)建domain class之后 測試 ,發(fā)現(xiàn)老是提示is not domain class 錯誤,
          解決的辦法就是grails clean 在重啟app就可以了  閱讀全文
          posted @ 2009-08-26 16:00 冰是沒有未來的,因為它的永恒| 編輯 收藏
               摘要: 1. 修改role密碼
          alter role postgres password 'postgres';

          2. 設(shè)置postgres遠程連接

          1). 修改listen addresses
          sudo vim /etc/postgresql/8.3/main/pg_hba.conf
          # listen_addresses = 'localhost'
          設(shè)置為 listen_addresses = '*'

          2). 添加ip

          sudo vim /etc/postgresql/8.3/main/postgresql.conf
          在 最后一行添加
          host all all 192.168.0.0/16 md5

          3  閱讀全文
          posted @ 2009-07-31 14:23 冰是沒有未來的,因為它的永恒| 編輯 收藏
               摘要: 1. 修改 ${postgres_install}/data/postgresql.conf
          將listen_address = 'localhost' 改為 listen_address = '*'

          2. ${postgres_install}/data/pg_hba.conf
          在文件最后加入:
          host  all  all  192.168.1.0/24  password

          3. 重新啟動數(shù)據(jù)庫
          ${postgres_install}/bin/pg_ctl stop -D ${postgres_install}/data
          ${postgres_install}/bin/postmaster -i -D ${postgres_install}/data>logfile 2>&1 &

          4. 這樣就可以遠程訪問數(shù)據(jù)庫了,如下邊的命令:
          $ psql -h 192.168.1.216 -p 5432   閱讀全文
          posted @ 2009-07-24 10:37 冰是沒有未來的,因為它的永恒| 編輯 收藏
          僅列出標(biāo)題
          共9頁: 上一頁 1 2 3 4 5 6 7 8 9 下一頁 

          當(dāng)下,把心放下 放下如果是可能的,那一定是在當(dāng)下,
          不在過去,也不在未來。
          當(dāng)下放下。唯有活在當(dāng)下,你的問題才能放下。

          主站蜘蛛池模板: 红原县| 涟水县| 云南省| 延边| 邛崃市| 华安县| 三明市| 涟源市| 江津市| 金寨县| 嫩江县| 二连浩特市| 旺苍县| 江西省| 广西| 阳东县| 黔西| 南安市| 德格县| 伊春市| 合川市| 林西县| 沭阳县| 长寿区| 吴堡县| 枣强县| 桦川县| 辰溪县| 东兰县| 祁连县| 海原县| 庆阳市| 宜兰市| 陇川县| 察隅县| 德庆县| 昌乐县| 东乌珠穆沁旗| 德安县| 凤城市| 岚皋县|