Wednesday, July 18, 2007
Tuesday, July 10, 2007
Display web site logo on the address bar
then, Saving the icon as 'favicon.ico' and put in the root directory of your web site.
Friday, June 15, 2007
Prepare web server for Intranet
Prepare web server for Intranet
1. Configure Website
Starting IIS manager, create a new web site ‘Intranet’.
Select ‘Web site’ -->'New’-->'Web site…’, System show ‘Web Site Creation Wizard’
Click ‘Next’.
Click ‘Next’
Click ‘Next’
Click ‘Next’
Click ‘Next’
Click ‘Finish’
Setting access right for site as below
Install java
download java SDK from http://java.sun.com/javase/downloads/index.jsp
Followed the screen instruction to install downloaded exe file.
Edit environment variables ‘Path’, add ‘C:Program FilesJavajre1.6.0_01bin’.
Install Tomcat
Download Tomcat from http://tomcat.apache.org/download-60.cgi
Followed the on screen instructions to install downloaded exe file.
Launch http://localhost:8080/ in explorer to confirm Tomcat installed successfully.
Install Tomcat & IIS connector
Download Tomcat connector ‘isapi_redirect.msi’ from http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.15/.
Run download msi file.
Download last ‘isapi_redirect.dll’ and replace the one created in step 2.
Add two environment variables ‘TOMCAT_HOME’ and ‘JAVA_HOME’.
Tuesday, May 15, 2007
Setup Java Web Start
I look to the document in Sun's web site and found the reason that I need set the MIME type for JNLP.
Following is the document I read.
http://java.sun.com/developer/technicalArticles/WebServices/JWS_2/JWS_White_Paper.pdf
Friday, May 11, 2007
Link Apache 2.2 and Tomcat 5.5 on Windows
2. Download & install Tomcat 5.5
3. Download Tomcat connector, my file is 'mod_jk-apache-2.2.4.so', rename it to 'mod_jk.so' and save in 'modules' directory under Apache installation directory.
4. create a file called 'workers.properties', Below is the contents.
# workers.properties.minimal -
#
# This file provides minimal jk configuration properties needed to
# connect to Tomcat.
#
# The workers that jk should create and work with
#
worker.list=ajp13w
#
# Defining a worker named ajp13w and of type ajp13
# Note that the name and the type do not have to match.
#
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009
#
# Defining a load balancer
#
worker.wlb.type=lb
worker.wlb.balance_workers=ajp13w
#
# Define status worker
#
worker.jkstatus.type=status
5. add following text at the bottom of httpd.conf file
# add by wangzj for tomcat
# Load mod_jk module
LoadModule jk_module modules/mod_jk.so
# Where to find workers.properties
JkWorkersFile "C:\Program Files\Apache Software Foundation\Jakarta Isapi Redirector\conf\workers.properties"
# Where to put jk shared memory
JkShmFile "C:\Program Files\Apache Software Foundation\Jakarta Isapi Redirector\log\mod_jk.shm"
# Where to put jk logs
JkLogFile "C:\Program Files\Apache Software Foundation\Jakarta Isapi Redirector\log\mod_jk.log"
# Set the jk log level [debug/error/info]
JkLogLevel info
# Select the timestamp log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
# Send servlet for context /examples to worker named worker1 JkMount /examples/servlet/* worker1
# Send JSPs for context /examples to worker named worker1
JkMount /examples/*.jsp worker1
# send context /THG to worker named ajp13w
JkMount /THG/* ajp13w
6. that is all.
Tuesday, January 23, 2007
Using Eclipse
1. Download Eclipse IDE for Java EE Developers (163 MB) .
1. Download Eclipse 3.21. from http://www.eclipse.org/downloads/.
The download file is eclipse-SDK-3.2.1-win32.zip.
2. Extract to C:\Eclipse by winzip
3. Run Eclipse.exe, and create workplace at 'C:\Documents and Settings\wangzj\My Documents\My Eclipse Workplace'
4. install plugin
goto 'Help', then select 'Software Updates',
then select ' Find and Install',
then choice 'Search for new features to install' and click 'Next' button,
then choice 'Callisto Discovery Site' and click 'Finish' button,
after a while, choice plugins, then followed the instruction on screen to download and install plugins. for develop gwt, need wtp.
5.