Solved

Setting up environment

Posted on 2003-11-28
4
562 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

-Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
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 …
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

758 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now