블로그 이미지
평범하게 살고 싶은 월급쟁이 기술적인 토론 환영합니다.같이 이야기 하고 싶으시면 부담 말고 연락주세요:이메일-bwcho75골뱅이지메일 닷컴. 조대협


Archive»


 

'Tomcat 6.0'에 해당되는 글 2

  1. 2009.07.23 삽질 Tomcat 6.0 + ADF(JSF)
  2. 2009.04.27 Tomcat 6.0과 Apache 2.X 연동 (2)
 

삽질 Tomcat 6.0 + ADF(JSF)

프로그래밍/JSF & Oracle ADF Faces | 2009.07.23 18:14 | Posted by 조대협
Tomcat 환경에서. ADF(JSF)를 사용할 수 있는 환경을 만드려고 꽤나 많은 시간을 삽질을 했습니다. 퇴근시간 되니까는 이제야 되네요.

==
Dear all,

Now it works for me!

I was using the build-in tomcat6 which comes bundled with Ubuntu Linux and couldnt get it to work. 

But with apache-tomcat-6.0.18
downloaded from the Tomcat web site it works!

Here are the steps, which I think is much easier than what has been mentioned before:
1) Make a (simple) web app using ADF
2) In Project properties / Deployment create or edit a deployment profile.
Goto WEB-INF/lib | Contributors and simply check ALL boxes, except from 'JSP Runtime'
3) Now you can see all the required JARs in WEB-INF/lib | Filters
4) Deploy the application to a WAR file
5) Unzip the WAR file and copy all the JARs from 
WEB-INF/lib into Tomcat's lib/ directory.
6) Go to the deployment profile and uncheck all JARs from WEB-INF/lib | Filters

Tadaa, no tedious searching for files in JDeveloper diretory.

For the record, here are the JAR files I need for my project (on Linux). As some file names appear in several places in JDeveloper installation, I show also the file sizes, if you need to check that you have copied the right file.

-rw-r--r-- 1 j j 43875 2009-01-04 10:48 adf-dt-at-rt.jar
-rw-r--r-- 1 j j 1133197 2009-01-04 10:48 adfdt_common.jar
-rw-r--r-- 1 j j 5456 2009-01-04 10:48 adflogginghandler.jar
-rw-r--r-- 1 j j 7192374 2009-01-04 10:48 adfm.jar
-rw-r--r-- 1 j j 1081920 2009-01-04 10:48 adf-richclient-api-11.jar
-rw-r--r-- 1 j j 5195904 2009-01-04 10:48 adf-richclient-impl-11.jar
-rw-r--r-- 1 j j 300838 2009-01-04 10:48 adf-share-base.jar
-rw-r--r-- 1 j j 550371 2009-01-04 10:48 adf-share-ca.jar
-rw-r--r-- 1 j j 187838 2009-01-04 10:48 adf-share-support.jar
-rw-r--r-- 1 j j 3138 2009-01-04 10:49 adf-transactions-dt.jar
-rw-r--r-- 1 j j 1618653 2009-01-04 10:48 cache.jar
-rw-r--r-- 1 j j 73604 2009-01-04 10:47 com.bea.core.antlr.runtime_2.7.7.jar
-rw-r--r-- 1 j j 112307 2009-01-04 10:48 commons-el.jar
-rw-r--r-- 1 j j 52353 2009-01-04 10:48 db-ca.jar
-rw-r--r-- 1 j j 3166578 2009-01-04 10:48 dvt-faces.jar
-rw-r--r-- 1 j j 5885712 2009-01-04 10:48 dvt-jclient.jar
-rw-r--r-- 1 j j 1141790 2009-01-04 10:48 dvt-utils.jar
-rw-r--r-- 1 j j 4488218 2009-01-04 10:48 eclipselink.jar
-rw-r--r-- 1 j j 376639 2009-01-04 10:47 glassfish.jstl_1.2.0.1.jar
-rw-r--r-- 1 j j 2827517 2009-01-04 10:48 groovy-all-1.5.4.jar
-rw-r--r-- 1 j j 296940 2009-01-04 10:48 identitystore.jar
-rw-r--r-- 1 j j 364781 2009-01-04 10:48 inspect4.jar
-rw-r--r-- 1 j j 62837 2009-01-04 10:47 javax.activation_1.1.0.0_1-1.jar
-rw-r--r-- 1 j j 45264 2009-01-04 10:47 javax.persistence_1.0.0.0_1-0.jar
-rw-r--r-- 1 j j 121001 2009-01-04 10:48 jdev-cm.jar
-rw-r--r-- 1 j j 2115001 2009-01-04 10:48 jewt4.jar
-rw-r--r-- 1 j j 338644 2009-01-04 10:48 jsf-api.jar
-rw-r--r-- 1 j j 793732 2009-01-04 10:48 jsf-ri.jar
-rw-r--r-- 1 j j 3086 2009-01-04 10:48 jsp-el-api.jar
-rw-r--r-- 1 j j 280984 2004-09-03 08:02 mail.jar
-rw-r--r-- 1 j j 24609 2009-01-04 10:48 ojmisc.jar
-rw-r--r-- 1 j j 3503 2009-01-04 10:48 oracle-el.jar
-rw-r--r-- 1 j j 56420 2009-01-04 10:48 share.jar
-rw-r--r-- 1 j j 122371 2009-01-04 10:48 sun-commons-beanutils.jar
-rw-r--r-- 1 j j 177543 2009-01-04 10:48 sun-commons-collections.jar
-rw-r--r-- 1 j j 112394 2009-01-04 10:48 sun-commons-digester.jar
-rw-r--r-- 1 j j 26077 2009-01-04 10:48 sun-commons-logging.jar
-rw-r--r-- 1 j j 1052899 2009-01-04 10:48 trinidad-api.jar
-rw-r--r-- 1 j j 4216915 2009-01-04 10:48 trinidad-impl.jar
-rw-r--r-- 1 j j 1484 2009-01-04 10:48 weblogic-injection-provider.jar
-rw-r--r-- 1 j j 562059 2009-01-04 10:48 xml.jar
-rw-r--r-- 1 j j 1431960 2009-01-04 10:48 xmlparserv2.jar


Another question: I didn't buy any Oracle products, I just downloaded JDeveloper.
Are there any restrictions on what I am allowed to do with ADF Faces in this case?
(I would like to use ADF Faces in an Open Source product).

Jacob

==

http://forums.oracle.com/forums/thread.jspa?threadID=722037&start=15&tstart=0


이 순서대로 하니까는 되더군요..
내일 다시 문서랑 동영상으로 정리해봐야 쓰겄습니다.


server.xml에 AJP 프로토콜 설정하는 부분의 샘플이 빠져 있어서 삽질을 좀 했네.
아래와 같이 server.xml에서 AJP Port를 열어줘야함.

<Server port="8000" shutdown="SHUTDOWN" debug="0">
    <Service name="Tomcat-Standalone">
        <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8080" minProcessors="5"
                   maxProcessors="75"
                   enableLookups="false" redirectPort="8443" acceptCount="10" debug="0" connectionTimeout="20000"
                   useURIValidationHack="false" URIEncoding="UTF-8"/>
        <Connector port="8009" protocol="AJP/1.3" redirectPort="8443"
                   minProcessors="50" maxProcessors="150"/>

        <Engine name="Standalone" defaultHost="localhost" debug="0">
        <!--
        <Listener className="org.apache.jk.config.ApacheConfig" modJk="/usr/local/apache2/modules/mod_jk.so" />
        -->


            <Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="false">

                <Context path="" docBase="../confluence" debug="0" reloadable="false">
                    <!-- Logger is deprecated in Tomcat 5.5. Logging configuration for Confluence is specified in confluence/WEB-INF/classes/log4j.properties -->
                    <Manager pathname="" />
                </Context>
            </Host>

        </Engine>

Apache에서는 mod_jk 설치한후

LoadModule jk_module modules/mod_jk.so
<IfModule jk_module>
 JkWorkersFile /usr/local/apache2/conf/workers.properties
 JkLogFile logs/mod_jk.log
 JkLogLevel info
</IfModule>

# First Virtual Host.
#
<VirtualHost 61.109.254.15:80>
DocumentRoot "/usr/local/confluence-2.10.3-std/conf"
ServerName wiki.javastudy.co.kr
JkMount /* confluence
</VirtualHost>

workers.propertis에 다음가 같이 기술
==
worker.list=confluence
worker.confluence.port=8009
worker.confluence.host=61.109.254.15
worker.confluence.type=ajp13

==