⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 398.html

📁 关于jsp的一些好文章 主要介绍一些关于JSP的应用技巧方面的东西
💻 HTML
📖 第 1 页 / 共 4 页
字号:
     <br><br>41) Since some of the work we do will involve CORBA, and we use the<br>    ORBacus from Object Oriented Concepts (http://www.ooc.com/)<br>    I created /usr/local/orbacus-3.3.1, created there subdirectories:<br>    JOB, JTC, OB, and jidl, and downloaded LICENSES/READMES and tar balls<br>    from ftp.ooc.com: JOB-3.3.1*, JTC-1.0.10*, OB-3.3.1*,<br>    jidl-3.3.1-solaris.tar.gz  and diligently unpacked them.<br>    a) cd /usr/local/orbacus-3.3.1/jidl<br>       tar zxvf jidl-3.3.1-solaris.tar.gz<br>       then made links:<br>        cd /usr/local/bin<br>        ln -s ../orbacus-3.3.1/jidl/idlcpp idlcpp<br>        ln -s ../orbacus-3.3.1/jidl/iordump iordump<br>        ln -s ../orbacus-3.3.1/jidl/irdel irdel    <br>        ln -s ../orbacus-3.3.1/jidl/irfeed irfeed<br>        ln -s ../orbacus-3.3.1/jidl/irserv irserv<br>        ln -s ../orbacus-3.3.1/jidl/jidl jidl    <br>    b) cd /usr/local/orbacus-3.3.1/JOB<br>       tar zxvf JOB-3.3.1.jars.tar.gz<br>       which produced:<br>            OBEvent.jar<br>            OB.jar<br>            OBNaming.jar<br>            OBProperty.jar<br>            OBTest.jar<br>            OBTrading.jar<br>            OBUtil.jar<br>       which will be later added to CLASSPATH<br>    I copied *jar to $TOMCAT_HOME/lib       <br>    At this moment, other files were not needed. <br><br>42) I installed the old version of XML4J (xml4j_2_0_15) from IBM, since<br>    we have some older servlets to port. The IBM site<br>       <a href="http://www.alphaworks.ibm.com/tech/xml4j/" target=_blank>http://www.alphaworks.ibm.com/tech/xml4j/</a><br>    distributes only the newest stuff, and I know of no way to retrieve<br>    the older thing. But I had the old tar in my old instalation. So I did:<br>       mkdir /usr/local/xml4j<br>       cp .../xml4j_2_0_15.tar.gz .<br>       tar zxvf xml4j_2_0_15.tar.gz<br>    I linked doc directories to the Web tree<br>       cd $APACHE_HOME/htdocs<br>       ln -s /usr/local/xml4j/xml4j_2_0_15/apiDocs xml4j-apiDocs<br>       ln -s /usr/local/xml4j/xml4j_2_0_15/docs xml4j-docs <br>       ln -s /usr/local/xml4j/xml4j_2_0_15/TXapiDocs TXapiDocs <br>    Doug Dale-Johnson, found the XML4J_2_0_15 at this site:<br>       <a href="http://www.jp.ibm.com/alphaWorks/xml4j/xml4j.htm" target=_blank>http://www.jp.ibm.com/alphaWorks/xml4j/xml4j.htm</a><br>    Catch it while you can...<br><br>43) Installed Xalan-J:<br>    Created directory and unpacked tar, and made links<br>      mkdir /usr/local/Xalan-J<br>      cd /usr/local/Xalan-J<br>      wget <a href="http://xml.apache.org/dist/xalan-j/xalan-j_1_2_D02.tar.gz" target=_blank>http://xml.apache.org/dist/xalan-j/xalan-j_1_2_D02.tar.gz</a>    <br>    Unfortunately this tar.gz is strangely packed (does not have top<br>    directory as version) so you need to create directory first:<br>      mkdir xalan-j_1_2_D02<br>      cd xalan-j_1_2_D02 <br>      gtar zxvf ../xalan-j_1_2_D02.tar.gz<br>    I made the docs available by creating the link below:<br>      cd $APACHE_HOME/htdocs<br>      ln -s /usr/local/Xalan-J/xalan_j_1_2_D02/docs  xalan-docs <br><br>44) Installed Xerces-J version 1.1.3 (the one in synch with Xalan above)<br>      mkdir /usr/local/Xerces-J<br>      cd /usr/local/Xerces-J<br>      wget <a href="http://xml.apache.org/dist/xerces-j/Xerces-J-bin.1.1.3.tar.gz" target=_blank>http://xml.apache.org/dist/xerces-j/Xerces-J-bin.1.1.3.tar.gz</a> <br>      tar zxvf Xerces-J-bin.1.1.3.tar.gz<br>    I made the docs available on the Web by: <br>      cd $APACHE_HOME/htdocs<br>      ln -s /usr/local/Xerces-J/xerces-1_1_3/docs xerces-docs <br><br>45)   Linked JCE (Java Cryptography Extension) docs to Web tree:<br>      cd $APACHE_HOME/htdocs<br>      ln -s /usr/local/JCE/jce1.2.1/doc jce-docs<br><br>46) I also installed Cocoon from xml.apache.org, but I am exploring<br>    the matter further, since supposedly (but I am not sure at this time)<br>    cocoon uses the older versions of xerces which is<br>    not compatible with the latest one (the one  which I installed).<br>      mkdir /usr/local/Cocoon<br>      cd /usr/local/Cocoon<br>      wget <a href="http://xml.apache.org/dist/cocoon/Cocoon-1.8.tar.gz" target=_blank>http://xml.apache.org/dist/cocoon/Cocoon-1.8.tar.gz</a><br>      gtar zxvf Cocoon-1.8.tar.gz<br>    and linked the docs to the Web Root.<br>      cd $APACHE_HOME/htdocs<br>      ln -s /usr/local/Cocoon/cocoon-1.8/docs cocoon-docs <br>      <br>47) Linked docs from JSSE to the Web documents.<br>      cd /usr/local/jsse<br>      cd jsse1.0.2<br>      cd doc<br>      cp -p ../*.html .<br>    and linked the docs to the Web Root.<br>      cd $APACHE_HOME/htdocs<br>      ln -s /usr/local/jsse/jsse1.0.2/doc jsse-docs <br>    <br>48) Installed JAF JavaBeansTM Activation Framework<br>       <a href="http://java.sun.com/beans/glasgow/jaf.html." target=_blank>http://java.sun.com/beans/glasgow/jaf.html.</a>  <br>    Click on download, continue, accept, FTP download<br>    get jaf1_0_1.zip  <br>       mkdir /usr/local/jaf<br>       cd /usr/local/jaf<br>       cp .../jaf1_0_1.zip .<br>       unzip jaf1_0_1.zip<br>    and linked the docs to the Web Root.<br>      cd $APACHE_HOME/htdocs<br>      ln -s /usr/local/jaf/jaf-1.0.1/doc jaf-docs<br><br>49) Installed JavaMail 1.1.3 release:<br>    With your browser go to:<br>       <a href="http://www.javasoft.com/products/javamail/index.html" target=_blank>http://www.javasoft.com/products/javamail/index.html</a><br>    Click on continue, accept, get javamail1_1_3.zip = 1,960,787 bytes. <br>       mkdir /usr/local/JavaMail<br>       cd /usr/local/JavaMail<br>       cp .../javamail1_1_3.zip .<br>       unzip javamail1_1_3.zip<br>    and linked the docs to the Web Root.<br>      cd $APACHE_HOME/htdocs<br>      ln -s /usr/local/JavaMail/javamail-1.1.3/docs JavaMail-docs<br><br>50) Installed jdom beta 5 release from <a href="http://www.jdom.org:" target=_blank>http://www.jdom.org:</a><br>      mkdir /usr/local/JDOM<br>      cd /usr/local/JDOM<br>      wget <a href="http://www.jdom.org/dist/source/jdom-b5.tar.gz" target=_blank>http://www.jdom.org/dist/source/jdom-b5.tar.gz</a><br>      wget <a href="http://www.jdom.org/dist/source/jdom-contrib-b5.tar.gz" target=_blank>http://www.jdom.org/dist/source/jdom-contrib-b5.tar.gz</a><br>      I also have my own copy:<br>       jdom-b5.tar.gz<br>       jdom-contrib-b5.tar.gz<br>      Then I built it:<br>        cd /usr/local/JDOM<br>        ./build.sh compile<br>        ./build.sh<br>        ./build.sh samples<br>        ./build.sh javadoc<br>      and linked the docs to the Web Root.<br>        cd $APACHE_HOME/htdocs<br>        ln -s /usr/local/JDOM/jdom-b5/build/apidocs jdom-docs<br><br>51) I copied the jars to the Tomcat lib directory (yes, I am lazy... ).<br>      cd $TOMCAT_HOME/lib<br>      cp /usr/local/orbacus-3.3.1/JOB/*jar .<br>      cp /usr/local/jaf/jaf-1.0.1/activation.jar .<br>      cp $ANT_HOME/lib/ant.jar .<br>      cp $SERVLETAPI_HOME/lib/servlet.jar .<br>      cp /usr/local/Xalan-J/xalan-j_1_2_D02/bsf.jar .<br>      cp /usr/local/Xalan-J/xalan-j_1_2_D02/bsfengines.jar .<br>      cp /usr/local/jaxp1.0.1/jaxp.jar .<br>      cp /usr/local/jaxp1.0.1/parser.jar .<br>      cp /usr/local/JDOM/jdom-b5/build/jdom.jar .<br>      cp /usr/local/JavaMail/javamail-1.1.3/mail.jar .<br>      cp /usr/local/Xalan-J/xalan-j_1_2_D02/xalan.jar .<br>      cp /usr/local/Xerces-J/xerces-1_1_3/xerces.jar .<br>      cp /usr/local/xml4j/xml4j_2_0_15/xml4j.jar .<br><br>    and then chowned the directories under $TOMCAT_HOME to webinst3 or webrun3<br><br>      cd $TOMCAT_HOME<br>      chown -R webinst3 bin classes doc lib src webapps<br>      chgrp -R webinst3 bin classes doc lib src webapps<br>      chown -R webrun3 logs work<br>      chgrp -R webrun3 logs work<br>      <br><br>52) Basic environment for working with Java on webinst3 account.<br>    The assumption is that all content for this Apache server<br>    is owned by user webinst3, beside some files which<br>    are owned by webrun3 (a user/group which runs Web server and <br>    servlet containers).<br><br>    The webinst3 runs /bin/tcsh as default shell. The .cshrc file<br>    in the HOME directory is:<br><br>    /home/webinst3/.cshrc<br><br>    I provided short scripts which allow users to switch from<br>    java1.1 (for applets) to 1.2(latest production release)<br>    to 1.3(lastest beta) <br>    /home/webinst3/bin/cjdk1.1 <br>    /home/webinst3/bin/cjdk1.2 <br>    /home/webinst3/bin/cjdk1.3 <br><br>    and have put the following aliases into .cshrc<br><br>alias jdk1.1 'source /home/webinst3/bin/cjdk1.1'<br>alias jdk1.2 'source /home/webinst3/bin/cjdk1.2'<br>alias jdk1.3 'source /home/webinst3/bin/cjdk1.3'<br><br>    e.g., typing:<br>      jdk1.1<br>    when you are logged in as webinst3 with set your environment<br>    to the Java 1.1 needed for applets compilation, and you can get<br>    back to Java 1.3 by typing<br>      jdk1.3<br>    And if you have problems with JDK1.3, you can always try the J2SE<br>    by typing<br>      jdk1.2<br><br>53) I also created the basic running environment for user webrun3.<br>    The webrun3 is running ksh and is not expected to be used often,<br>    though, during development, it may be used occassionally.<br>    The webrun3 user (see point 34 above) is the id which<br>    Apache/Tomcat are using to run. I created the .profile file:<br>    /home/webrun3/.profile<br>    and also the kjdk1.x which allow you to switch the release of JDK..<br>    /home/webrun3/bin/kjdk1.1<br>    /home/webrun3/bin/kjdk1.2<br>    /home/webrun3/bin/kjdk1.3<br><br>    To run it, you should cd to the directory where you have your servlet<br>    source, and then execute: <br>       cs MyNiceServlet.java<br>    You can also add more options to the the java compiler (javac) but you<br>    need to enclose it in quotes. For example, to have more output you can do:<br>       cs "-verbose MyNiceServlet.java"<br><br>54) I created a skeleton of the web application called SciPortal<br>    and mounted it as SciPortal under Apache DocumentRoot. My $APACHE_HOME<br>    is /usr/local/apache_1.3.14. I created directory SciPortal under <br>    $APACHE_HOME/htdocs:<br>        cd $APACHE_HOME/htdocs<br>        mkdir SciPortal<br>        cd SciPortal<br>        mkdir WEB-INF<br>        mkdir WEB-INF/classes<br>        mkdir WEB-INF/lib<br><br><br>55) For doc directories which came with commercial software, and <br>    which are linked in the $APACHE_HOME/htdocs<br>    I placed the .htaccess file. The docs may have some copyright<br>    restrictions and I am too lazy to read the small print..<br><br>      /usr/local/WebRoot/jkl/.htaccess<br><br>56) I added added application /SciPortal and others to Tomcat. I had to<br>    change again the server.xml and  mod_jk.conf. Also copied<br>    default $TOMCAT_HOME/conf/web.xml to ...WEB-INF/web.xml for each<br>    application and edited it as needed. For example:<br>        server.xml<br>        mod_jk.conf<br>        web.xml<br></p></td>
  </tr>
</table>

<p>
<CENTER><a href="http://www.jsp001.com/forum/newreply.php?action=newreply&threadid=398">点这里对该文章发表评论</a></CENTER>
<p>该文章总得分是 <font color=red>0</font> 分,你认为它对你有帮助吗?
				[<a href=javascript:void(0) onclick=window.open("http://www.jsp001.com/forum/codeVote.php?threadid=398&intVote=4","","menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width=70,height=40,top=0,left=0")>非常多</a>](<font color=red>0</font>) 
				[<a href=javascript:void(0) onclick=window.open("http://www.jsp001.com/forum/codeVote.php?threadid=398&intVote=2","","menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width=70,height=40,top=0,left=0")>有一些</a>](<font color=red>0</font>) 
				[<a href=javascript:void(0) onclick=window.open("http://www.jsp001.com/forum/codeVote.php?threadid=398&intVote=1","","menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width=70,height=40,top=0,left=0")>无帮助</a>](<font color=red>0</font>) 
				[<a href=javascript:void(0) onclick=window.open("http://www.jsp001.com/forum/codeVote.php?threadid=398&intVote=-1","","menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width=70,height=40,top=0,left=0")>是灌水</a>](<font color=red>0</font>) </p>
<script language="javascript" src="http://www.jsp001.com/include/read_thread_script.php?threadid=398"></script>
<p><CENTER>
Copyright &copy; 2001 - 2009 JSP001.com . All Rights Reserved <P>

<IMG SRC="../image/jsp001_small_logo.gif" WIDTH="85" HEIGHT="30" BORDER=0 ALT="">
</CENTER></p>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -