웹어플리케이션서버2011. 5. 16. 13:50


X11이 없는 리눅스 콘솔에서 발생하는 문제이기 때문에 간단히 java 실행시 headless 모드로 구동하면 된다.

웹서버 구동시 catalina.sh 파일에

CATALINA_OPTS="$CATALINA_OPTS -Djava.awt.headless=true"

라는 옵션을 추가한 후 재구동하면 해결 된다.



Posted by 미랭군

flex4에선 swf를 감싸는 html 템플릿 형식이 약간 변경되었다.

아래와 붉은 색과 같이 사용하면 된다.

  <script type="text/javascript">
          
            var swfVersionStr = "10.0.1";
            var xiSwfUrlStr = "playerProductInstall.swf";
            var flashvars = {};

            flashvars.type = "타입명";
            flashvars.name = "이름";

            var params = {};
            params.quality = "high";
            params.bgcolor = "#ffffff";
            params.allowscriptaccess = "sameDomain";
            params.allowfullscreen = "true";
            var attributes = {};
            attributes.id = "MKBSDashboard";
            attributes.name = "MKBSDashboard";
            attributes.align = "middle";
            swfobject.embedSWF(
                "MKBSDashboard.swf", "flashContent",
                "100%", "100%",
                swfVersionStr, xiSwfUrlStr,
                flashvars, params, attributes);
   <!-- JavaScript enabled so display the flashContent div in case it is not replaced with a swf object. -->
   swfobject.createCSS("#flashContent", "display:block;text-align:left;");
  </script>


Flex Application에선 필시 붉은 색 표시와 같이 creationComplete 이벤트 발생 후에 사용해야 한다.

<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx"
      minWidth="955" minHeight="600"
      preinitialize="onPreinitialize()"
      creationComplete="onCreationComplete()"

   private function onCreationComplete():void
   {
    trace("파라미터", parameters.type as String);
   }

  ]]>
 </fx:Script> 
</s:Application>

'플렉스·플래시·액션스크립트3' 카테고리의 다른 글

null check에 대한 고찰..  (0) 2012.01.04
[Inspectable] 메타 태그 사용하기  (0) 2011.11.11
addEventListener 사용시 주의점  (0) 2011.05.04
AS3 KeyCode Table  (0) 2011.04.30
[FLEX] 드래그 기초  (0) 2010.11.29
Posted by 미랭군
웹어플리케이션서버2011. 5. 11. 13:21

tomcat6를 처음 설치하면(압축풀면)  webapps 폴더 안에 웹페이지에서 디플로이를 관리할 수 있는

host-manager, manager 등이 디폴트로 설치되어 있다. 하지만 이것은 보안적인 측면에서 위배되므로

보통 다 지우는 게 좋다.

하지만 이것을 그냥 지우게 되면

Error Message

심각: Error starting static Resources
java.lang.IllegalArgumentException: Document base /home/msp_solution/web/tomcat/webapps/host-manager does not exist or is not a readable directory

이와 같은 에러를 만나게 된다.

Solution

conf\Catalina\localhost 밑에 context명.xml으로 생성하면, tomcat은 \webapps\context를 docBase 경로로 판단하고 찾는다. 그래서 서버 구동시 위와 같은 에러를 발생시킨다.
아래 xml들을 찾아서 삭제해주면 에러는 발생하지 않는다.

conf\Catalina\localhost\host-manager.xml
conf\Catalina\localhost\manager.xml


Posted by 미랭군