Solved

Setting up environment

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Exception thrown while starting tomcat on Mac OS 7 86
How following rewrite rule works in Apache? 7 121
websphere 8 listener 3 71
junit test for void methods using mockito 4 254
-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 …
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

810 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