- Create domain directory
- Go to {weblogic.dir}\weblogic92\common\bin and run config.cmd
- Select Create a new Weblogic domain
- Select the source (automatic or with template)
- Input admin username and password
- Choose startup mode and JDK. Use JRocket for JDK.
- Enter domain name & location and click Create Check Start Admin Server and click Done
- Change port number
- Go to http://{hostname/localhost}:7001/console and login
- Navigate to {domain name}->Environment-Servers. Select AdminServer(admin)
- Change the Listen Port and save changes.,/li>
- Activate changes
- Add the db2jcc jars for the DB2 driver classes
- Go to your DB2 installation or <sqllib_home>\java directory
- Copy the following jars to your <weblogic_domain>\lib directory:
- db2jcc.jar
- db2jcc_license_cu.jar
- db2jcc_license_cisuz.jar
- Restart server
- Add JDBC Data Source
- Navigate to {domain name}->Services->JDBC->Data Sources. Add new data source.
- Set Data Source properties and click Next
Name: db2Pool JNDI Name: db2Pool Database Type: DB2 Database Driver: IBM's DB2 Driver(Type 2)
- Select transaction options (use defaults)
- Set connection properties and click Next
Database Name: db2test Host Name: Port: Database User Name: coreusrt Password:
- Test Database Connection. Update the following:
Driver Class Name: com.ibm.db2.jcc.DB2Driver URL: jdbc:db2://db2t.vigslbp.bear.com:5510/DB2TEST
click Test Configuration and Next - Select the server and click Finish
- Activate changes
- Deploy Web App
Note: Make sure that the WEB-INF/lib of the webapp contains all needed lib (ex. by copy.runtime.lib)- Navigate to {domain name}->Deployments. Click Install
- Select the path of your application root directory (webapp directory). Click Next
- Select Install this deployment as an application and click Next
- Set settings (use default) and click Next
- Review choices and click Finish
- Activate changes
- Navigate back to {domain name}->Deployments. Select webapp and click Start servicing all requests. Start deployment
- Finish! You may now go to your webapp.
Sample: http://pbctx60.bsna.bsroot.bear.com:7831/acctsvcs-nae/nae/acctvwup?action=showPage
Monday, February 22, 2010
Weblogic 9 setup
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment