ann
冰是没有未来的,因为它的永恒
posts - 107,comments - 34,trackbacks - 0
     摘要: 这个错误信息通常在你更新工作拷贝时出现,可能的原因有两个:

* 版本库中有两个文件的名字只是大小写不同,这在Windows下是不允许签出的,因为Windows的文件系统是大小写不敏感的。很可能其中一个文件是误添加的,所以你要找出是哪一个,然后删除它,以确保不会把更改提交到错误的文件。
* 某个文件的文件名是非法的(对Windows来说非法),比如,"con", "lpr", "com"都是非法的,因为这些都是设备名。当然,含有"/\*?:|"和其它特殊字符在Windows(NTFS 和 FAT)也是不允许的。

是,我们知道这个错误信息对解决问题没什么实质性的帮助,但这个错误信息是来自Subversion库的,我们改不了。

有几个办法可以避免这个问题:

Subversion 是针对大小写敏感的文件系统(比如 Linux )设计的,这在大小写不敏感的Windows下有时就会有问题。一个典型的例子是,重命名文件时,如果文件名仅有大小写不一样,如Makefile改成 MAKEFILE。在工作拷贝中要  阅读全文
posted @ 2009-10-22 12:11 冰是没有未来的,因为它的永恒| 编辑 收藏
     摘要: 在测试发现 当数组返回json格式的String的时候,如果数组中只有一个,则返回的json格式不是数组形式,而是单一对象格式。  阅读全文
posted @ 2009-10-15 09:28 冰是没有未来的,因为它的永恒| 编辑 收藏
     摘要: 这里面用的是jersey

1. 创建一个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 系统中,
要将代理连接为群集,有一个特殊的前提条件。某些 Linux 安装程序自动将 localhost 条目设置为网络回送 IP 地址 (127.0.0.1)。您必须设置系统的 IP 地址,以便为群集中的所有代理设置正确的地址。
也即修改/etc/hosts
把hostname的配置文件为你的静态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时候 在新创建domain class之后 测试 ,发现老是提示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. 重新启动数据库
${postgres_install}/bin/pg_ctl stop -D ${postgres_install}/data
${postgres_install}/bin/postmaster -i -D ${postgres_install}/data>logfile 2>&1 &

4. 这样就可以远程访问数据库了,如下边的命令:
$ psql -h 192.168.1.216 -p 5432   阅读全文
posted @ 2009-07-24 10:37 冰是没有未来的,因为它的永恒| 编辑 收藏
仅列出标题
共9页: 上一页 1 2 3 4 5 6 7 8 9 下一页 

当下,把心放下 放下如果是可能的,那一定是在当下,
不在过去,也不在未来。
当下放下。唯有活在当下,你的问题才能放下。