'개발관련'에 해당되는 글 54건
- 2013.10.10 :: rockmongo 설치후 연결 안될때..
- 2013.10.08 :: Spring Bean 으로 Servlet filter 개발시 주의점..
- 2013.09.13 :: 디자인 패턴 참조 사이트
- 2013.08.21 :: ttf2eot 컴파일 오류 문제
- 2013.08.09 :: 서블릿 get 요청에서 UTF-8 한글 parameter value 깨짐
- 2013.07.19 :: 특정 component의 모든 event 보기 (ExtJS 4기준)
- 2013.05.31 :: centos 6 에서 php-mcrypt 설치하기
- 2013.04.29 :: grid row 선택시 페이지 위로 스크롤되는 버그 수정
- 2013.02.18 :: apache common XMLConfigurator 에서 CDATA 사용
- 2013.01.30 :: quartz.scheduler 설정 파일 path 설정
selinux 관련 문제일 경우가 많다.
아래와 같이 해준다.
> /usr/bin/setsebool -P httpd_can_network_connect 1
'NO Sql > Mongo DB' 카테고리의 다른 글
Aggregation Framework (0) | 2013.01.14 |
---|---|
Java Mongo QueryBuilder 예제 (0) | 2012.07.31 |
mongoDB 기본 웹 admin 모니터 (0) | 2012.07.03 |
mongoDB 기본 사용법 (0) | 2012.07.03 |
CentOS에서 mongoDB 설치 (0) | 2012.07.03 |
org.springframework.web.filter.DelegatingFilterProxy 를 써서 Servlet filter을 작성할때, web.xml 파일의 contextConfigLocation 을 사용을 주의해야 한다.
아래와 같이 servlet 태그안에서 contextConfigLocation을 지정해 주어도 이유는 모르지만 서버 구동시 Servlet filter를 찾을 수 없다고 나온다.
<servlet>
<servlet-name>dispatcher</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/config/servletContext.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
아래와 같이 해야 제대로 나온다.
<context-param>
<param-name>contextConfigLoction</param-name>
<param-value>
/WEB-INF/config/xxxFilterContext.xml
</param-value>
</context-param>
이것땜시, 거의 하루를 까먹었다. 아놔..
http://www.javajigi.net/display/SWD/ch01_designpatternworld
'JAVA' 카테고리의 다른 글
apache common XMLConfigurator 에서 CDATA 사용 (0) | 2013.02.18 |
---|---|
quartz.scheduler 설정 파일 path 설정 (0) | 2013.01.30 |
map to json string (0) | 2013.01.16 |
JSON string to Map (0) | 2012.07.12 |
리눅스에서 ttf2eot 컴파일시 아래와 같은 오류 발생시..
root@debian:~/ttf2eot-0.0.2-2# make
g++ -c -o OpenTypeUtilities.o OpenTypeUtilities.cpp
OpenTypeUtilities.cpp:227:18: warning: multi-character character constant [-Wmultichar]
OpenTypeUtilities.cpp:247:18: warning: multi-character character constant [-Wmultichar]
OpenTypeUtilities.cpp:257:18: warning: multi-character character constant [-Wmultichar]
OpenTypeUtilities.cpp: In function ‘bool getEOTHeader(unsigned char*, size_t, std::vector<unsigned char>&, size_t&, size_t&, size_t&)’:
OpenTypeUtilities.cpp:197:41: error: expected primary-expression before ‘,’ token
OpenTypeUtilities.cpp:197:43: error: ‘tables’ was not declared in this scope
OpenTypeUtilities.cpp:197:49: error: ‘offsetof’ was not declared in this scope
OpenTypeUtilities.cpp:202:41: error: expected primary-expression before ‘,’ token
OpenTypeUtilities.cpp:202:43: error: ‘tables’ was not declared in this scope
OpenTypeUtilities.cpp:202:49: error: ‘offsetof’ was not declared in this scope
OpenTypeUtilities.cpp:259:70: error: expected primary-expression before ‘,’ token
OpenTypeUtilities.cpp:259:72: error: ‘nameRecords’ was not declared in this scope
OpenTypeUtilities.cpp:259:83: error: ‘offsetof’ was not declared in this scope
OpenTypeUtilities.cpp:265:74: error: expected primary-expression before ‘,’ token
OpenTypeUtilities.cpp:265:76: error: ‘nameRecords’ was not declared in this scope
OpenTypeUtilities.cpp:265:87: error: ‘offsetof’ was not declared in this scope
make: *** [OpenTypeUtilities.o] 오류 1
해결 방안 : 아래의 파일로 patch 해준다.
서블릿에서 get 메소드 호출을 받았을때 request.getParameter("키값") 을 했을때 결과 값이 UTF-8 한글일 경우 글자가 깨지는 증상 발생.
HttpServletRequest 의 getParameter을 쓰지말고 직접 query string을 사용..
String queryString = URLDecoder.decode(request.getQueryString(), "UTF-8");
String filename = Util.getQueryMap(queryString).get("filename");
'Web > Tomcat' 카테고리의 다른 글
catalina.out 로그, 파일관련 억세스시 파일의 한글 깨짐 (0) | 2012.07.12 |
---|---|
SEVERE: Error listenerStart 발생시 로그로 원인 파악하기 (0) | 2012.07.09 |
톰켓 DIGEST 인증 (0) | 2012.07.03 |
톰캣 인증 추가 (0) | 2012.07.03 |
tomcat 설치 (0) | 2012.07.03 |
// to capture ALL events use:
Ext.util.Observable.fireEvent = Ext.Function.createInterceptor(function() {
console.log(this.name);
console.log(arguments);
return true;
});
// to capture events for a particular component:
Ext.util.Observable.capture(
Ext.getCmp('id-1212'), // <= 여기에 찾고자 하는 컴포넌트를 넣어준다.
function(e) {
console.info(e);
}
);
'Web > ExtJS' 카테고리의 다른 글
grid row 선택시 페이지 위로 스크롤되는 버그 수정 (0) | 2013.04.29 |
---|
'Web' 카테고리의 다른 글
HttpRequestCopyFilter, HttpResponseCopyFilter (0) | 2012.08.29 |
---|
ExtJS 4.1.3 기준..
원인은 Ext.selection.*Model 에서 onRowMouseDown함수의 view.el.focus(); 가 문제의 원인임.
따라서 Ext.selection.*Model 의 onRowMouseDown을 override 하여 view.el.focus(); 라인을 주석처리하여 수정.
다른 model 도 소스를 복사하여 아래의 부분만 수정해주면 됨.
Ext.application({
...
launch: function() {
// fix bug for being moved to top on gridview click
Ext.override(Ext.selection.CheckboxModel, {
onRowMouseDown: function(view, record, item, index, e) {
//view.el.focus();
var me = this,
checker = e.getTarget('.' + Ext.baseCSSPrefix + 'grid-row-checker'),
mode;
if (!me.allowRightMouseSelection(e)) {
return;
}
// checkOnly set, but we didn't click on a checker.
if (me.checkOnly && !checker) {
return;
}
if (checker) {
mode = me.getSelectionMode();
// dont change the mode if its single otherwise
// we would get multiple selection
if (mode !== 'SINGLE') {
me.setSelectionMode('SIMPLE');
}
me.selectWithEvent(record, e);
me.setSelectionMode(mode);
} else {
me.selectWithEvent(record, e);
}
}
});
...
Ext.create('Ext.container.Viewport', {
});
});
'Web > ExtJS' 카테고리의 다른 글
특정 component의 모든 event 보기 (ExtJS 4기준) (0) | 2013.07.19 |
---|
아래와 같이 CDATA 를 사용한 값을 읽을때,
<property>
<name>sql</name>
<value><![CDATA[select a, b from c]]></value>
</property>
default delimiter이 컴마(,)이기 때문에 아래처럼 리스트로 읽혀 진다.
select a
b from c
아래의 코드는 스트링을 split 하지 않도록 하는 코드이다.
AbstractConfiguration.setDefaultListDelimiter((char) 0);
'JAVA' 카테고리의 다른 글
디자인 패턴 참조 사이트 (0) | 2013.09.13 |
---|---|
quartz.scheduler 설정 파일 path 설정 (0) | 2013.01.30 |
map to json string (0) | 2013.01.16 |
JSON string to Map (0) | 2012.07.12 |
quartz scheduler 는 기본으로 root classpath에 있는 quartz.properties를 참조하도록 되어 있고, 없을 경우 org.quartz 에 있는 quartz.properties를 참조한다.
이것을 변경하려면 이름이 org.quartz.properties인 system property를 설정해야 한다.
System.setProperty("org.quartz.properties", "com/mycompany/conf/quartz.properties");
'JAVA' 카테고리의 다른 글
디자인 패턴 참조 사이트 (0) | 2013.09.13 |
---|---|
apache common XMLConfigurator 에서 CDATA 사용 (0) | 2013.02.18 |
map to json string (0) | 2013.01.16 |
JSON string to Map (0) | 2012.07.12 |