Solved

Setting up environment

Posted on 2003-11-28
4
570 Views
Last Modified: 2013-12-10
I'm setting up web application (servlets and DB2) on a WebLogic Server Farm 7.0 For Db2 connection I use the following driver:COM.ibm.db2.jdbc.app.DB2Driver

I have included driver in classpath.  I included the following in the etgenv.sh

setenv CLASSPATH /home/db2clnt7/sqllib/java/db2java.zip:home/db2clnt7/sqllib/java/runtime.zip    

Is this a correct way the set up class path?

But I get 'Service Unavailable' error.  Did I do something wrong?

Also, do I need to stop/start server after I set up enviroment variables?

Thanks in advance!
0
Comment
Question by:ane4ka
  • 3
4 Comments
 
LVL 2

Accepted Solution

by:
egorelik earned 50 total points
ID: 9838776
Ane4ka,

What operating system are you using? As I understand you are using Unix.

Weblogic scripts in Unix are written using Bourne shell (/bin/sh), to set CLASSPATH in the bourne shell you have to use following sintax:

CLASSPATH=/home/db2clnt7/sqllib/java/db2java.zip:/home/db2clnt7/sqllib/java/runtime.zip:$WL_HOME/lib/weblogic_sp.jar:$WL_HOME/lib/weblogic.jar:$CLASSPATH

You can find complete instructions on how to setup DB driver here :

http://edocs.bea.com/wls/docs81/jdbc/thirdparty.html#1096721


Your driver classname is correct, URL in JDBC settings should be jdbc:db2:%database name%

Yes, you have to restart server if you are changing CLASSPATH


Zhene4ka.:)

0
 

Author Comment

by:ane4ka
ID: 9839153
Zhene4ka,

Thanks a lot for your answer.   You are right I'm using UNIX.  

I'm very new to WL, so I have couple of follow up questions.

1. How can I find our my home directory ($WL_HOME)

2. How can I found out my Admin URL

Thanks agian, Ane4ka
0
 
LVL 2

Expert Comment

by:egorelik
ID: 9842920
Ane4ka,

$WL_HOME is the directory where your Weblogic domain configuration files are located, usually it's

$SOME_PATH/bea/user_projects/$your_domain

Main domain configuration file is config.xml

You can find all information about server configuration in config.xml. Don't edit this file manually, unless you know what you are doing.

To find administration server URL, open config.xml file in your domain, using your favorite text editor.

At the beginning of config.xml, you'll see somethng like that:

<Domain ConfigurationVersion="x.x.x" Name="mydomain">
    .......
    ........
    ........
   
<Server ListenAddress="x.x.x.x" ListenPort="xxxx"
        Machine="myserver" Name="Administration_server"

  .................



Server ListenAddress="x.x.x.x" ListenPort="xxxx"  is the ip and port of your admin server, so you can reach admin server by typing:

http://%Server ListenAddress%:%Listen Port%


Read http://edocs.bea.com/wls/docs70/ for more information

If you have any further questions don't hesitate to ask @  ezhik_2000@yahoo.com

Zhene4ka.
0
 
LVL 2

Expert Comment

by:egorelik
ID: 9842927
Correction, you can reach your admin server console by typing http://%Server ListenAddress%:%Listen Port%/console

Z.
0

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question