Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Setting up environment

Posted on 2003-11-28
4
Medium Priority
?
585 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 200 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

618 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