Solved

Setting up environment

Posted on 2003-11-28
4
573 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Simple, centralized multimedia control

Watch and learn to see how ATEN provided an easy and effective way for three jointly-owned pubs to control the 60 televisions located across their three venues utilizing the ATEN Control System, Modular Matrix Switch and HDBaseT extenders.

Question has a verified solution.

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

Suggested Solutions

Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
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.…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Suggested Courses

732 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