웹서버(톰캣,UNIX등)2014. 3. 6. 14:51

JSP 컴파일 경로

 - user_projects/domains/자신의도메인/servers/프로젝트명/tmp/_WL_user/프로젝트명/임의폴더/jsp_servlet

파일 실시간 반영 방법

- http://blog.naver.com/PostView.nhn?blogId=ailov&logNo=60185838900

- WEB-INF/weblogic.xml 에

<jsp-descriptor> 
    <page-check-seconds>1</page-check-seconds>
</jsp-descriptor> 
<container-descriptor>
    <servlet-reload-check-secs>1</servlet-reload-check-secs>
    <resource-reload-check-secs>1</resource-reload-check-secs> 
</container-descriptor>

포트 설정    : user_projects/domains/자신의도메인/config/config.xml

웹서버위치  : user_projects/domains/자신의도메인/config/config.xml

Context 설정 : 웹서버폴더/WEB-INF/Weblogic.xml 파일 안에  context-root 설정있음

 

config.xml

-----------------------------------------------------------------

 <server>
    <name>서버명</name>
    <listen-port>포트입력</listen-port>
    <web-server>
      <web-server-log>
        <number-of-files-limited>false</number-of-files-limited>
      </web-server-log>
    </web-server>
    <listen-address>IP주소 입력</listen-address>
  </server>
  <server>

 

 

<app-deployment>
    <name>cuwapp</name>
    <target>???</target>
    <module-type>war</module-type>
    <source-path>절대경로위치</source-path>
    <security-dd-model>DDOnly</security-dd-model>
  </app-deployment>

-----------------------------------------------------------------

 

개발,운영모드 확인

  - 이클립스에서 weblogic 은 startWebLogic.cmd 실행시 파일안에서 \bin\startWebLogic.cmd 실행

    ( \bin\startWebLogic.cmd 의 PRODUCTION_MODE= true 이면 운영 , 값이 없으면 개발

  - 차이 http://blog.naver.com/PostView.nhn?blogId=dae0park&logNo=140160363241&redirect=Dlog&widgetTypeCall=true

 

 

Posted by 선한열심
웹서버(톰캣,UNIX등)2014. 2. 26. 22:09

 

윈도우

- 웹로직서버폴더\user_projects\domains\사용자도메인\servers\AdminServer\

 

 

Unix

- 웹로직서버폴더\user_projects\domains\사용자도메인???\ start???.sh 파일안에 파일위치 확인가능 

Posted by 선한열심
웹서버(톰캣,UNIX등)2014. 2. 6. 11:33

org.springframework.web.filter.CharacterEncodingFilter cannot be cast to javax.servlet.Filter

 

[해결]

출처 - https://www.okjsp.net/seq/171143

 

Servers 에서 설정한 톰켓서버 더블클릭 하고...
Server modules without publishing 체크한 위에 보면...
Open launch configuration 이라고 있는데... 클릭해서 창을 띄운 후
Classpath 탭에 Bootstrap Entries 에서 Add External JARs... 로
톰캣 디렉토리 lib 폴더에 있는 servlet-api.jar 를 추가

 

 

근본적인문제해결은 아닌거 같다

Posted by 선한열심
웹서버(톰캣,UNIX등)2014. 1. 23. 17:12

profile 파일 안에

 

mycd()
{
cd $1 && pwd > ~/pwd
}
alias cd=mycd

 

출처 - http://chinmaykamat.wordpress.com/2009/09/16/bash-alias-and-parameters/

 

Posted by 선한열심
웹서버(톰캣,UNIX등)2014. 1. 23. 16:57

grep -rni [검색어] [경로명 또는 파일명]

r :  하위디렉토리까지 검색
n:  파일의 몇번째 라인에 있는지 표시
i :  검색어를 대소 문자 구분없이 검색

 

 

검색된 행 번호의 열을 보기  ( more : 출처 http://dump.com.ne.kr/linux/more.html )

 

예) 로그 위치 확인 후 파일 보기

grep -ni "===== HeaderParamInfo >>>>>"  로그파일명

more +5460 로그파일명     => space 으로 가능, Q : 종료

 

 

참고 (tail : tial -f 파일명  )

http://wingh.egloos.com/viewer/4773020

 

 

* 마지막 100줄 보기

==> tail -n 100 파일명

 

출처 - http://jjh1626.blog.me/60105778957

history : 최근 명령어 목록 보기

r : 이전 명령 실행

r history번호

 

Posted by 선한열심
웹서버(톰캣,UNIX등)2014. 1. 23. 11:52

unix 서버에서 alias 를 통한 간단한 명령

 

 

자신의 아이디로 로그인 후 .profile 파일에

alias log2='tail -f /log//로그파일명'

Posted by 선한열심
웹서버(톰캣,UNIX등)2014. 1. 17. 00:37

workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\_\

Posted by 선한열심
웹서버(톰캣,UNIX등)2013. 10. 25. 13:52

[Spring] Spring 3.0 mvc:interceptors 설정




xml 환경 변수 읽기 

tokenizeToStringArray  ( configLocation 이 여러개 일 수 있다 ) 


CombinedConfiguration  (링크 맨아래 샘플) 


- private static CombinedConfiguration config = null; // 이런식으로 초기화에서 작업해준다 


XMLConfiguration 샘플

Posted by 선한열심
웹서버(톰캣,UNIX등)2013. 7. 24. 15:09

[출처] - http://blog.daum.net/widesea/3427734

 

그 외 JNDI 를 이용한 DataSource 설정 방법 (두가지)

1. <jee:jndi-lookup> 태그로 설정

<jee:jndi-lookup id="dataSource" jndi-name="jdbc/guestbook" resource-ref="true">

 

2. JndiObjectFactoryBean 클래스를 이용방법

    <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
        <property name="jndiName" value="jdbc/guestbook" />
        <property name="resourceRef" value="true" />
    </bean>

==> 샘플 파일 $JBOSS_HOME/docs/examples/jca 있고

     작성 후  $JBOSS_HOME/server/default/deploy/~.xml 에 복사해야함   ( 자세한 내용은 참조글 확인 )

 예) 오라클 oracle-ds.xml , Mysql : mysql-ds.xml  

Posted by 선한열심
웹서버(톰캣,UNIX등)2013. 6. 18. 13:58

1. is exceeding the 65535 bytes limit
 서버(톰캣등등)의 web.xml 에 설정한다.
 JBOSS 3군데 수정함 ( 한곳만 수정하면될거 같은데 몰라서 다 수정함 @.@ )
 1) [자신의 서버위치]\server\all\deployers\jbossweb.deployer\web.xml
 2) [자신의 서버위치]\server\standard\deployers\jbossweb.deployer\web.xml
 3) [자신의 서버위치]\server\web\deployers\jbossweb.deployer\web.xml

 4) [자신의 서버위치]\server\default\deployers\jbossweb.deployer\web.xml (요것만해도 되는거 같다 )
 
 <servlet>
    <servlet-name>jsp</servlet-name>
    <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
    ...
    <init-param>
        <param-name>mappedfile</param-name>
        <param-value>false</param-value>
    </init-param>

    ...
 </servlet>
 
 ★★ mappedfile 추가
 

Posted by 선한열심