ITeye博客

huangxx

huangxx · 共 155 篇文章

SSL and Varnish

We setup all varnish boxes where we need SSL with nginx on :443 and varnishd on :80. The local nginx server proxy-passes everything to localhost:80, with the following config bit: server { ssl on; ssl_certificate /etc/ ssl /certs/your.crt; ssl_certificate_key /etc/ ssl /private/your.key; listen 443…

2011-08-09 13:55 · tec.java.j2ee架构 · 评论(0)

maven3的superpom换地方了

路径是: maven-model-builder-3.0.3.jar\org.apache.maven.model

2011-06-17 16:00 · tec.java · 评论(0)

Hot Deploy Using Mule IDE

http://www.mulesoft.org/documentation/display/MULEIDE/Hot+Deploy+from+Mule+IDE mule ide还没有跟上mule3的步伐,只能采用上面的方法,触发热部署见下面: As a bonus, application's master config file is monitored, so if there are any class changes you want to pick up or simply modify the config, save or touch mule-config.xml and Mu…

2010-10-11 17:38 · tec.java.middleware · 评论(0)

使用maven-archetype-plugin:2.0-alpha-5:create-from-project 创建自己的原型出现异常

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-5:create-from-project (default-cli) on pr oject test.ws: ${maven.home} is not specified as a directory: 'D:\eclipse workspace\test\test.ws\EMBEDDED'. -> [Help 1] 把Eclipse的maven插件自带的maven换成系统的maven就可以了,问题到底在arch…

2010-09-28 17:02 · tec.project · 评论(0)

eclipse 文件本地历史比较功能丢失

如题,原来是我把该功能关闭了,在“首选项-capabilities-team”功能模块中需要开启“core team support”功能就可以了。

2010-09-07 19:01 · tec.java · 评论(0)

Blood.And.Bone.

I AM THE PUNISHMENT OF GOD, IF YOU HAD NOT COMMITED GREAT SINS, GOD WOULD NOT HAVE SENT YOU A PUNISHMENT LIKE ME UPON YOU -GENGKIS KHAN

2010-05-18 13:23 · life · 评论(0)

hibernate criteria like expression for Long

https://forum.hibernate.org/viewtopic.php?f=1&t=937401 http://www.coderanch.com/t/218034/ORM/java/hibernate-criteria-like-expression-Long 上面的文章建议不用criteria,这对于我等懒人是不可接受的,继续找 http://hi.baidu.com/piaokes/blog/item/f9681812f1fed055f919b86d.html 这里给出了思路 hibernate3建议使用如下 Restrictions.sqlRestriction("{al…

2010-05-13 18:11 · tec.java · 评论(0)

给视图添加主键(唯一列值)

参考 http://topic.csdn.net/t/20050629/16/4112826.html 产生唯一值很简单 select newid() as 列名,* from 表 http://huamengxing.iteye.com/blog/120162 NEWID ,而Oracle中使用SYS_GUID

2010-05-09 11:39 · tec.db · 评论(0)

java.lang.ClassFormatError: Incompatible magic value 218762506 in class file

http://bugs.sun.com/view_bug.do?bug_id=4975146 http://forums.oracle.com/forums/thread.jspa?threadID=933725&tstart=0 web应用发布在WebLogic上,使用java applet发生如上问题。 可能的原因: 1、It appears that for some reason it is redirecting to the login page, which it is attempting to read as a Java class resulting in ClassF…

2010-05-07 19:12 · tec.java · 评论(2)

tomcat apr 编译好的DLL下载

windows下编译这个dll有点繁琐,到网上找现成的, 但是在原来的站点找不到匹配最新的tomcat的apr dll, 在bin/tomcat-native.tar.gz文件中的文档中找到站点 http://www.apache.org/dist/tomcat/tomcat-connectors/native/

2010-04-28 16:53 · tec.java.middleware · 评论(0)

maven2 install-file 不能一条命令安装jar source javadoc

http://old.nabble.com/Help-understanding-install:install-file-and--Dsources-or--Djavadoc-td26753937.html 不知哪里定义了内部使用的plugin版本,有2.3的install,还是去下载使用2.2的install,导致不能一次安装3个jar到本地库 continue: 原因:超级pom指定了默认版本; 若需要最新版本的插件需要在自己的pom里面指定,或者修改超级pom;

2010-03-19 16:56 · tec.java · 评论(0)

maven2 eclipse hibernate test 测试类查询不到数据

使用maven2构建的eclipse工程,写的测试类在eclipse里运行通过hibernate查询数据,有数据但是查不出来,连SQL语句都不打印, 问题很怪异,进过一番倒腾,发现是类路径的问题导致没有加载hbm映射文件,hibernate竟然也不报错(害人),根本原因还是在于maven2的项目结构问题。

2010-01-27 13:21 · tec.java · 评论(0)

oracle jdbc nvarchar2 中文字段排序

相关设置参见 http://x-spirit.spaces.live.com/blog/cns!CC0B04AE126337C0!569.entry 可能的性能问题参见 http://www.xjinf.com/technology/database/200804/76.html 但是通过JDBC访问时,nvarchar2类型里面的中文排序还是不对 解决方式要么是换成varchar2,要么对jdbc的connection执行“alter session set nls_sort=SCHINESE_PINYIN_M”(需要在注册表先设置,二者缺一不可)

2010-01-27 13:12 · tec.db · 评论(0)

hibernate tools oracle nvarchar2 被映射成Serializable

http://opensource.atlassian.com/projects/hibernate/browse/HBX-656 貌似问题还没有解决 难道非得用 <hibernate-reverse-engineering> <type-mapping> <sql-type jdbc-type="OTHER" hibernate-type='string'></sql-type> </type-mapping>

2010-01-15 18:29 · tec.java · 评论(3)

maven2 eclipse buildpath resources 问题

https://docs.sonatype.org/display/M2ECLIPSE/Project+FAQ#ProjectFAQ-WhyresourcefoldersinJavaprojecthaveexcluded%3D%22%22 Why resource folders in Java project have excluded="**" Many users are confused that when Java project is configured in Eclipse, resource folders gets excluded="**". This is done …

2010-01-15 09:29 · tec.java · 评论(0)