ã¯ããã«
ãç¾å¨ãæãåºãJavaã使ããã¦ããã®ã¯ããµã¼ããã®ä¸çã§ããJavaã®åºç¤ã¯ä¸éãããã£ãã次ã¯ãµã¼ããµã¤ãã ââããæã£ã¦ãã£ã¦ã¿ããã¨ããã¨ãããã以å¤ã«å¤§å¤ããµã¼ãã®ããã°ã©ã ã¯ã©ãããï¼ ãµã¼ãç¨ã®Javaã£ã¦ã©ããã£ã¦ä½ãï¼ å ¬éã¯ï¼ ãªããªãä¸çç¸ã§ã¯ããã¾ããã
ããããªããµã¼ããµã¤ãã»ãã®ãã¼ãã®ããã«ããµã¼ããµã¤ãéçºã®ããã®åºæ¬çãªæ©è½ãä¸éããããããªã¼ãã³ã½ã¼ã¹ã®éçºç°å¢ãEclipse Web Tools Platformï¼WTPï¼ãã使ãããµã¼ããµã¤ãã®è¬åº§ãå§ãããã¨ã¨ãã¾ããããJavaã¯ä¸éãããã£ããã©ããµã¼ããµã¤ãã£ã¦ï¼ãã¨ããããªããä¸ç·ã«ãµã¼ãã®ä¸çãåå¼·ãã¦ããã¾ãããã
対象èªè
- Javaã®åºæ¬ï¼ææ³å ¨è¬ããã³åºæ¬çãªã¯ã©ã¹ã©ã¤ãã©ãªã®ä½¿ãæ¹ç¨åº¦ï¼ããã¹ã¿ã¼ãã¦ãã人ã
- ãµã¼ããµã¤ãï¼JSPããµã¼ãã¬ããï¼ã«ã¤ãã¦åºç¤ããåå¼·ããã人ã
- Eclipse WTPã使ã£ãéçºã«èå³ããã人ã
ãµã¼ããµã¤ãJavaã¨ã¯ï¼
ããJavaã¯ããµã¼ãã§åºã使ããã¦ãããã¨ã¯ãããè³ã«ããè¨èã§ããJavaã®åºç¤ã¯å¤§ä½ããã£ããã¨ãªãã¨ã次ã«é²ãã®ã¯ãã£ã±ãããµã¼ããµã¤ãã®Javaãã§ãããããããããããããµã¼ããµã¤ãJavaã¨ã¯ãã©ããããã®ãªã®ã§ããããä½ãæ®éã®Javaã¨ã¯éãã®ã§ããããã
ããµã¼ããµã¤ãJavaã®æ大ã®ç¹å¾´ãããã¯ãããã¤ãã®æè¡ã®çµã¿åããã§ãããã¨ããç¹ã§ããåºæ¬çã«ãæ®éã®Javaãã¨ããã®ã¯main
ã¡ã½ãããå®ç¾©ãã¦å®è¡ããã¨ããããããã°ã©ã ã®å½¢ããã¯ã£ãã決ã¾ã£ã¦ãã¾ãããããããµã¼ããµã¤ãJavaã¯åç´ãªãã®ã§ã¯ããã¾ããããµã¼ãã®ä¸çã§ã¯ããã®å½¹å²ã«å¿ãã¦ããã¤ãã®ããã°ã©ã ã®å½¢æ
ãããã®ã§ãã
ããµã¼ããµã¤ãJavaãå¦ã¶ã¨ãããã¨ã¯ããããã®ãã¾ãã¾ãªæè¡ã1ã¤1ã¤ç解ã身ã«ã¤ãã¦ããã¨ãããã¨ã«ãªãã¾ããä¸ä½ãã©ããªæè¡ãããã®ããã¡ãã£ã¨æ´çãã¾ãããã
- Java Server Pages
ä¸è¬ã«ãJSPãã¨å¼ã°ãã¾ããHTMLå ã«ã¿ã°ã使ã£ã¦Javaã®ã½ã¼ã¹ã³ã¼ããç´æ¥è¨è¿°ãããã®ã§ãPHPãªã©ã®ãããªã¹ã¯ãªããè¨èªæè¦ã§Javaã使ããã¨ãã§ãã¾ãããµã¼ãã¬ããã³ã³ããã¨å¼ã°ããJavaã®ãµã¼ãã§åä½ãã¾ãã
- ãµã¼ãã¬ãã
ãµã¼ããµã¤ãJavaã®åºæ¬ã¨ãè¨ãããã®ã§ããJavaãµã¼ãï¼ãµã¼ãã¬ããã³ã³ããï¼ã®ä¸ã§åãããã«ãªã£ã¦ããããã©ã¦ã¶å ã§åãã¢ãã¬ããã®ãµã¼ããµã¤ãçã¨ãã£ãã¨ããããããµã¼ãã¬ãããã¨å¼ã°ãã¾ãã
- Enterprise Java Beans
ä¸è¬ã«ãEJBãã¨å¼ã°ãã¾ããJSPããµã¼ãã¬ãããªã©ã¨ç°ãªãããµã¼ãã¬ããã³ã³ããã§ã¯åãã¾ãããJ2EEãµã¼ãã§åä½ããããã«ãªã£ã¦ãã¾ãããµã¼ãã§åä½ããJavaBeansã§ãããç´æ¥ãã©ã¦ã¶ã§ã¢ã¯ã»ã¹ããã¨ããã®ã§ãªããããã°ã©ã å ããEJBã«ã¢ã¯ã»ã¹ãã¦å©ç¨ãããããªå½¢æ ãã¨ãã¾ãã
ã以ä¸ã®3ã¤ãããµã¼ããµã¤ãJavaãæ§æããæãéè¦ãªæè¡ã¨èãã¦ããã§ãããããã®å ãJSP/ãµã¼ãã¬ããã¨ãEJBã¯ãè¥å¹²æ±ããéãã¾ããç¨éãå½¹å²ã¯ãã¡ããã§ãããJSP/ãµã¼ãã¬ãããåä½ããç°å¢ã¨EJBãåä½ããç°å¢ã¯ç°ãªã£ã¦ããã®ã§ãããã®ãããä¸è¬çã«ã¯ãµã¼ããµã¤ãJavaã¯ãJSP/ãµã¼ãã¬ãããã¨ãEJBãã®2ã¤ã«åãã¦èãããããã¨ãå¤ãããã§ãã
ãé常ã®Webã¢ããªã±ã¼ã·ã§ã³éçºãªãã°ãJSPã¨ãµã¼ãã¬ããããã¹ã¿ã¼ã§ããã°ååã§ããEJBã¯ãã¨ã³ã¿ã¼ãã©ã¤ãºéçºã§ä½¿ããããã®ã¨èãã¦ããã§ããããæ¬é£è¼ã§ããJSPã¨ãµã¼ãã¬ããã使ããããã«ãªããã¨ãç®æãã¦ããã¾ãã両è ãèªç±ã«ä½¿ãããªããããã«ãªãã°ãããµã¼ããµã¤ããã®ãã¼åæ¥ãã¨è¨ããã§ãããã
ãµã¼ãã¬ããã³ã³ããã«ã¤ãã¦
ãããããã¯Javaã®åºæ¬ã¯ããã£ã¦ããåæã§èª¬æãé²ãã¾ãã®ã§ãJRE/JDKã«ã¤ãã¦ã¯æ¢ã«ã¤ã³ã¹ãã¼ã«æ¸ã¿ã¨ãã¾ããã¾ã ã¤ã³ã¹ãã¼ã«ãã¦ããªãæ¹ã¯å¥éç¨æãã¦ãã ããã
ãã¾ããJSP/ãµã¼ãã¬ããã¨ãã£ããµã¼ããµã¤ãJavaãèªåã§å¦ç¿ããããã«ã¯ã©ã®ãããªãã®ãå¿ è¦ã«ãªãã§ããããã1ã¤ã¯ãããµã¼ãã¬ããã³ã³ãããã§ããããã¯ãJSP/ãµã¼ãã¬ãããåä½ããç°å¢ã¨ãªãã½ããã¦ã§ã¢ã§ãã
ããããããããµã¼ãã§ããã°ã©ã ãåãããã¨ããã®ã¯ãæ®éã®ã¢ããªã±ã¼ã·ã§ã³ã«æ¯ã¹ã¦ããªãé¢åã§ãããã¨ã¯æ³åã§ãããã¨ã§ãããããããã¯ã¼ã¯ããHTTPã®ãããã³ã«ã§æ å ±ãåãåããããããéä¿¡ãããæ å ±ããããã¼æ å ±ã«å«ã¾ããå種ã®ãã¼ã¿ãªã©ã解æã㦅…ãªã©ã¨ããå¦çããã¹ã¦ä¸ããä½ããªããã°ãªããªãã¨ããã大å¤ãªä½æ¥ã«ãªãã¾ãã
ãããã§ãæåããHTTPãããã³ã«ã使ã£ããã¼ã¿ã®éåãè¡ãåºæ¬çãªä»çµã¿ãç¨æãã¦ããããã®ä¸ã§ããã®é¨åã«å½ã¦ã¯ã¾ãããã°ã©ã ãç¨æããã°ããã¹ã¦ã®å¦çãå®æãããã¨ããæ çµã¿ãèããã®ã§ããããããµã¼ãã¬ããã³ã³ããã§ããããã®ãå½ã¦ã¯ã¾ãé¨åãããµã¼ãã¬ããã¨ããããã§ãã
ããã®ããã«ããµã¼ãå´ã§ã¯ã©ã¤ã¢ã³ãããã®è¦æ±ãåãåããéãè¿ãããã®åºæ¬çãªä»çµã¿ããããããç¨æãã¦ãããã¨ã§ãå¿ è¦æä½éã®ã³ã¼ãããç¨æããã°ãµã¼ããµã¤ãã®å¦çãå®ç¾ã§ããããã«ãªã£ã¦ãã¾ãã
ããã®ãµã¼ãã¬ããã³ã³ããã¯ãæåç¡åãããããªãã®ããªãªã¼ã¹ããã¦ãã¾ããæãåºã使ããã¦ããã®ã¯ãApache Software Foundationããªãªã¼ã¹ãã¦ãããTomcatãã§ããããããã¯ä»ããµã¼ãã¬ããã³ã³ããã®ä»£åè©ã¨ããªã£ã¦ãããã®ã§ããããååãããã¯èãããã¨ãããã¨æãã¾ãããªã¼ãã³ã½ã¼ã¹ã§ãããApacheã®ãµã¤ãããç¡åã§ãã¦ã³ãã¼ããã¦å©ç¨ã§ãããã¨ããåºãæ®åãã¦ãã¾ããæ¬ç¨¿ã§ãTomcatã使ç¨ãããã¨ã«ãã¾ãã
Tomcatã®å ¥æ
ãã¾ãã¯ä»¥ä¸ã®URLã«ã¢ã¯ã»ã¹ãã¦ãTomcatããã¦ã³ãã¼ããã¦ãã ãããWindowsã®å ´åãå°ç¨ã®ã¤ã³ã¹ãã¼ã©ãç¨æããã¦ããã®ã§ããããå©ç¨ããã¨ããã§ãããã
ãä¸è¨URLããTomcatã®ãµã¤ãã§ãããã®å·¦å´ã«ãããDownloadããããTomcat 5.xãã¨ãããªã³ã¯ãã¯ãªãã¯ãããQuick Navigationãã¨ããã¨ããã«ããææ°ãã¼ã¸ã§ã³ï¼2007å¹´4æç¾å¨ã5.5.23ãï¼ãã¯ãªãã¯ããã¨ããã®ãã¼ã¸ã§ã³ã®ãã¦ã³ãã¼ãã³ã¼ãã¼ã«ã¸ã£ã³ããã¾ãããããããBinary Distributionsãã«ãããWindows Service Installerãã¨ãããªã³ã¯ãã¯ãªãã¯ããWindowsç¨ã®ã¤ã³ã¹ãã¼ã©ããã¦ã³ãã¼ããã¾ãã
ãç¾å¨ãTomcatã®ææ°çã¯6.xã¨ãããã®ã«ãªãã¾ãããªãä¸ã¤åã®5.5çªå°ã使ããã®ãã¨ããã¨ããã®å¾ã§ç»å ´ãããEclipseãã¨ããéçºç°å¢ã§ãã¾ã 6.0ããµãã¼ãããã¦ããªãããã§ããã§ãããJSPã¨ãµã¼ãã¬ããã®åºæ¬ãå¦ã¶ã¨ããç®çããããã°5.5ã§ãååã§ãã®ã§ãä»åã¯ãã®ãã¼ã¸ã§ã³ã使ç¨ãã¾ãã