Question

CLASSPATH setting in WEBLOGIC 8.1

Asked by: cofactor

hi,

i have installed weblogic 8.1

i have usued many third party JAR files etc. how can weblogic find those classes.

IN sun One i set classpath  in server.xml

by this

serverclasspath="c:\..\...\some.jar;c:\..\..\other.jar  // IN SUN ONE  server.xml


how can do the same thing in weblogic 8.1 ?

or how weblogic find my 3 rd party classes ? how do set my classpath in WEBLOGIC 8.1


Plz guide me.



(2) i go to admin console and use myserver. How to STOP the server when i want to go out ?  


(3) i want to create a new server naming MYNEWSERVER and also want to set JDBC connection Pooling there.
 But though i have been able to create new server. but i am not able to do JDBC connection pool for my new server.
 How can create NEW JDBC CONNECTION POOL for my  MYNEWSERVER.

plz give me steps.

thank you

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2005-01-27 at 07:09:47ID21290973
Tags

weblogic

,

classpath

Topic

BEA WebLogic Application Server

Participating Experts
2
Points
50
Comments
17

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Weblogic circularity and classpaths
    I am using Weblogic 5.1 as an application attachment to an Apache Web Server, and I have encountered two puzzling and distressing errors. Weblogic advertises (as does JRun) a "reloadable" classpath that allows you to upload updates on the fly. This is called the se...
  2. Classpath
    Hi I have a strange problem. I have a simple class with one one method. I compile that class and package in jar file. I put this jar file in my war_root/web-inf/lib i also edit my manifest file (in war_root/meta-inf) to have classpath in it. Class-Path: web-inf/lib/my.jar(CR...
  3. Classpath issue - but the jar file is in the classpath
    I'm having an issue getting a JAVA Application Client to run and would welcome any suggestions or input to resolve this problem. I'm not a developer, just the builder/deployer of the applications. There are two developers looking at this problem too, but they are stumped to...
  4. ClassLoaders and classpaths
    Hello, I am a little confused about flow between various classloaders and related concepts. After discussing it with my colleagues, here is how my understanding goes : Please mark true/false for each point and help correct my understanding by giving your comments. 1. An ...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: koppchaPosted on 2005-01-27 at 08:28:32ID: 13153939

Assuming you are working on windows otherwise all .cmd files will be .sh files

1> You can set the classpath in startWeblogic.cmd if the domain is created using a basic server if it is a portalserver then you can set it in setDomainEnc.cmd as well.
it will be like
set CLASSPATH=%CLASSPATH%;%LIB_DIR%\other.jar
2>to stop the server in the admin console click on the server you want to stop and then click on the control in the right panel-->force shut down for this server

3>to create a new server create a domain with configuration wizard.

 

by: koppchaPosted on 2005-01-27 at 08:34:51ID: 13154003

3>to create a new server create a domain with configuration wizard.

go to
C:\bea\weblogic81\common\bin click config.cmd
and follow the below link
http://e-docs.bea.com/wls/docs81/adminguide/createdomain.html#1128250

 

by: koppchaPosted on 2005-01-27 at 08:39:18ID: 13154058

in my first step
 set LIB_DIR=C:\libraries
keep all your .jar files in this folder..i mean keep it in your localmachines and give the address of that to LIB_DIR that is how i will do

 

by: kiranhkPosted on 2005-01-27 at 08:53:26ID: 13154267

for creating connection pools you can check out the following link

http://e-docs.bea.com/wls/docs81/jdbc/programming.html

 

by: cofactorPosted on 2005-01-27 at 20:55:51ID: 13160108

hi

1> i understand how to stop the server.
2> i also understnad how to set the CLASSPATH.

    here i have one more question regarding classpath . IF I PUT ALL MY JAR file manually  inside   MYPROJECTS,s  LIB  directory can weblogic  AUTOMATICALLY   find  it ? ( bcoz in that case , i dont have  to edit CLASSPATH at all in startWLS.cmd ).

does it work ?


3>i am getting dofficulty to create  MYNEWSERVER .

in fact i already have server in mydomain(default).that is also JDBC connection pool configaured

 But i want to create a new MYNEWSERVER  with a new port rather than 7001 and want to have JDBC  connection pool configaured .

bcoz i want  2 server and these 2 server should interact between them.

plz guide me How do create a new MYNEWSERVER ?
can you give steps ? the e-docs is too much clumsy and nested with so many links.

If i can create MYNEWSERVER i can  do the rest bcoz i have done already for myserver (default in mydomain).

thank you

 

by: cofactorPosted on 2005-01-27 at 21:20:25ID: 13160206

hi,

somehow i have managed to make C:\bea\user_projects\domains\mydomain

but how do i configure my server now ?

i opend

http://localhost:7001/console/

and put  userid and password which i had put during using Configauration wizard.

but it is telling authentication failure ?

But if i put my earlier userid and pasword for default admin console
it is showing my default mydomain >myserver.

but i can not see my newly created domain and server in left side tree !!!

How do i do ?
I have told my requirement that i want 2 server  whcih will interact in them.

How do i do ? plz help

 

by: koppchaPosted on 2005-01-27 at 21:36:08ID: 13160272

>here i have one more question regarding classpath . IF I PUT ALL MY JAR file manually  inside   MYPROJECTS,s  LIB  >directory can weblogic  AUTOMATICALLY   find  it ? ( bcoz in that case , i dont have  to edit CLASSPATH at all in >startWLS.cmd ).

>does it work ?
       No if the application has its own domain then you need to something like that i said earlier.

>plz guide me How do create a new MYNEWSERVER ?

Using configuration wizard
Go to C:\bea\weblogic81\common\bin click config.cmd and then wait till the configuration pop up shows up then if you want to extend your extend your current configuration or create a new one,select any of those it is up to you.you can create a new domain with administrator and managed servers to work interactively.After you select that the choices there everything else that follows is  self explanatory follow according to your requirement.

About the jar files....if you create any new domain  as said above you can see the domain that got created in user_projects-->domain-->mydomain.click on startweblogic.cmd and go to admin console(http://localhost:7001/console) and deploy the applications.In the domain you do not find any LIB folder to keep your jar file create a folder ,place your jar files there and do give the path of that in startweblogic.cmd.(you got to bounce the server to pick up the jar files if it is running currently)
     I do not mind explaining it but believe me things will get more interesting when you start analysing yourself with the clues that you have in your hand.

cheers
 

 

by: koppchaPosted on 2005-01-27 at 21:43:08ID: 13160308

you got to create a domain with managed servers that is while using configuration wizard after this selection

create or extend configuration-->select a configurationtemplate-->choose express or custom configuration
in this one select custom and when managed server comes keep how many ever servers you want in your domain. follow this link .Do exactly what they have there
http://e-docs.bea.com/wls/docs81/adminguide/createdomain.html#1130999

 

by: cofactorPosted on 2005-01-28 at 02:33:47ID: 13161819

Hi  i have  been able to do something like this .

C:\bea\weblogic81\server\bin----> startWLS.cmd

http://localhost:7001/console--->It works


AND after  using config wizard

C:\bea\user_projects\domains\mydomain----->startWeblogic.cmd

http://localhost:7001/console--->It works

NOTE THE FOLDER STRUCTURE


so i have been able to create  2 domain and 2 server ...right ?



But is not it good  in one  domain there is  2  SERVER ? so that i could  manage them  simultaneously.

I could  have seen both the server in the leftside applet.

Currentl i have to login 2 times for  c:\bea\server

and also  C:\bea\user_projects\domains\mydomain  seperately.





 

by: cofactorPosted on 2005-01-28 at 02:43:03ID: 13161903



what i mean
I want to log in once.
and want to see 2 server in mydomain.

can a domain have 2 server ? i have only one . how do i get one more ?

i want to interact beteen 2 server.


 

by: cofactorPosted on 2005-01-28 at 02:45:29ID: 13161924

i can create 2 server in a domain.

like myserver  and myserver-1 but  when i click myserver-1 for its  webapplication module. It does not respond .

 

by: cofactorPosted on 2005-01-28 at 02:58:46ID: 13161992

Probabily u people are getting difficulty to understand .

I HAVE  2 WEB APPLICATION MODULE AND I WANT TO DEPLOY BOTH
IN 2 DIFFERENT SERVER .

THEY ARE DIFFERENT MODULE.

 I HAVE DEPLOYED ONE MODULE IN ONE SERVER.

WHERE DO I DEPLOY THE SECOND ? SO I NEED A SECOND SERVER IN THE SAME DOMAIN (OR OTHER DOMAIN ?) .

HOW DO I GET THE  SECOND SERVER FOR ITS WEB DEPLOYMENT ?

thank you

 

by: koppchaPosted on 2005-01-28 at 06:28:38ID: 13163293

>WHERE DO I DEPLOY THE SECOND ? SO I NEED A SECOND SERVER IN THE SAME DOMAIN (OR OTHER DOMAIN ?)

create a domain with one admin server and 2 managed servers.deploy your modules in the managed servers.You can even form a cluster for the two managed servers depending on the requirement.

 

by: cofactorPosted on 2005-01-29 at 06:51:36ID: 13171690

hi,  

thank you . i have made it !  its running perfectly.

i have gone ahead one step further.

i have  made a cluster  called

mycluster.

It has  got two server
( a) server-1   port 7004
(b) server-2    port 7005

Both the server are running.

and my deployment also  succesfull and active.

But how do  a client invoke a URL  now ?

i tried with

http://localhost/mywarfile--------->NO SUCCESS

i tried with other options also but no success

can u tell  what   would be the proper URL ?

thank you


AND YES POINTS are yours.

You are truly a weblogic geneious . are  you from BEA ?



 

by: koppchaPosted on 2005-01-29 at 08:40:30ID: 13172094

In your war file you should be having web.xml and you might have given the URL to call a servlet.If not like that (if entry point is not servlet but JSP) then try to give the name of the JSP in URL.

>http://localhost/mywarfile--------->NO SUCCESS

you should mention the port no it is listening if 7001 is my port number then it would be

http://localhost:7001/mywarfile
 

 

by: cofactorPosted on 2005-01-30 at 20:24:37ID: 13179895

hi, yea  i have web.xml in my warfile.

and i am able to run it in the server like  

http://localhost:7001/mywarfile(in admin)
http://localhost:7004/mywarfile.(in server-1)--->it works
http://localhost:7005/mywarfile.(in server-2 )--->it works

But   HOW DO I RUN IT UNDER CLUSTER ? (bcoz a in my cluster i have  2 server with port 7004 and 7005 and  1 admin with port 7001).

so how do i invoke if i am deploying in cluster ?
that is



Plz tell me what should be the  URL if am  using  CLUSTER ?

I  BELEIVE that there would some special  URL if we use CLUSTER.is not it ?

OR

should i  call it like above to any server and weblogic will  take care of  everything ?


N.B : i can run  mywarfile in two individual server. But I dont know  what should be my URL if  i use CLUSTER .i think CLUTER is invoked by special URL . right ?   plz tell me

thank you

 

by: koppchaPosted on 2005-02-01 at 12:49:20ID: 13197073

Sorry for the delayed response.I was so busy at my work that i could not even open experts-exchange.Anyways..You URL should be

http://localhost:7004/mywarfile as you said..
Feel free to ask any questions :)Let me know what happened

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...