摘要: 這個錯誤信息通常在你更新工作拷貝時出現(xiàn),可能的原因有兩個:
* 版本庫中有兩個文件的名字只是大小寫不同,這在Windows下是不允許簽出的,因為Windows的文件系統(tǒng)是大小寫不敏感的。很可能其中一個文件是誤添加的,所以你要找出是哪一個,然后刪除它,以確保不會把更改提交到錯誤的文件。
* 某個文件的文件名是非法的(對Windows來說非法),比如,"con", "lpr", "com"都是非法的,因為這些都是設備名。當然,含有"/\*?:|"和其它特殊字符在Windows(NTFS 和 FAT)也是不允許的。
是,我們知道這個錯誤信息對解決問題沒什么實質性的幫助,但這個錯誤信息是來自Subversion庫的,我們改不了。
有幾個辦法可以避免這個問題:
Subversion 是針對大小寫敏感的文件系統(tǒng)(比如 Linux )設計的,這在大小寫不敏感的Windows下有時就會有問題。一個典型的例子是,重命名文件時,如果文件名僅有大小寫不一樣,如Makefile改成 MAKEFILE。在工作拷貝中要
閱讀全文
posted @
2009-10-22 12:11 冰是沒有未來的,因為它的永恒|
編輯 收藏
摘要: 在測試發(fā)現(xiàn) 當數(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 條目設置為網絡回送 IP 地址 (127.0.0.1)。您必須設置系統(tǒng)的 IP 地址,以便為群集中的所有代理設置正確的地址。
也即修改/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)不設 保存或更新靜默失敗(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. 設置postgres遠程連接
1). 修改listen addresses
sudo vim /etc/postgresql/8.3/main/pg_hba.conf
# listen_addresses = 'localhost'
設置為 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 冰是沒有未來的,因為它的永恒|
編輯 收藏