Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Weblogic 10.0 Jar file classpath problem.

Posted on 2008-06-13
3
Medium Priority
?
3,880 Views
Last Modified: 2013-12-10
Hi,
     We are migrating from Jboss to weblogic 10.0. As a part of Migration we have written python script to set environment and start management servers instead of using setDomainEnv.sh(cmd) and startWeblogic.sh(cmd). The problem we are facing is no application jar files deployed inside $DOMAIN_HOME/lib directory are added in the classpath when the server startsup. We have 100s of jar files inside 'lib' directory so we would not be able to add them individually. But when I start server using regular scripts they are getting added without any issues. I do not see any external lines in any of our weblogic scripts to tell server to add jar files inside DOMAIN_HOME/lib directory automatically. Here is my CLASSPATH been set when I start the server

CLASSPATH=/usr/local/bea/bea/patch_wlw1001/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/local/bea/bea/patch_wls1001/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/local/bea/jdk1.5.0_15/lib/tools.jar:/usr/local/bea/bea/wlserver_10.0/server/lib/weblogic_sp.jar:/usr/local/bea/bea/wlserver_10.0/server/lib/weblogic.jar:/usr/local/bea/bea/modules/features/weblogic.server.modules_10.0.1.0.jar:/usr/local/bea/bea/modules/features/com.bea.cie.common-plugin.launch_2.1.2.0.jar:/usr/local/bea/bea/wlserver_10.0/server/lib/webservices.jar:/usr/local/bea/bea/modules/org.apache.ant_1.6.5/lib/ant-all.jar:/usr/local/bea/bea/modules/net.sf.antcontrib_1.0b2.0/lib/ant-contrib.jar:::/usr/local/bea/bea/wlserver_10.0/common/eval/pointbase/lib/pbembedded51.jar:/usr/local/bea/bea/wlserver_10.0/common/eval/pointbase/lib/pbupgrade51.jar:/usr/local/bea/bea/wlserver_10.0/common/eval/pointbase/lib/pbclient51.jar:/usr/local/bea/bea/wlserver_10.0/server/lib/xqrl.jar:/usr/local/bea/bea/user_projects/domains/development/conf:/usr/local/bea/bea/modules/com.bea.core.apache.xalan_2.7.0.jar:/usr/local/bea/bea/modules/com.bea.core.apache.xerces.resolver_2.8.1.jar:/usr/local/bea/bea/modules/com.bea.core.apache.xerces.xml-apis_2.8.1.jar:/usr/local/bea/bea/modules/com.bea.core.apache.xercesImpl_2.8.1.jar:/usr/local/bea/bea/modules/com.bea.core.apache.xml.security_1.3.0.jar:/usr/local/bea/bea/modules/com.bea.core.apache.xml.serializer_2.7.0.jar:/usr/local/bea/bea/modules/com.bea.core.apache.bcel_5.2.0.0.jar:/usr/local/bea/bea/modules/com.bea.core.apache.log4j_1.2.13.jar:/usr/local/bea/bea/user_projects/domains/development/lib/wllog4j.jar:/usr/local/bea/bea/modules/com.bea.core.apache.commons.logging_1.1.0.jar::/usr/local/bea/bea/user_projects/domains/development/lib

Please help me to resolve this issue. We have been stuck on this long time.

Thanks

Jayamurugan.B.S
What I am seeing when I use my python script is
 
<Jun 13, 2008 6:11:45 PM EDT> <Notice> <WebLogicServer> <BEA-000395> <Following extensions directory contents added to the end of the classpath:
/usr/local/bea/bea/wlserver_10.0/platform/lib/p13n/p13n-schemas.jar:/usr/local/bea/bea/wlserver_10.0/platform/lib/p13n/p13n_common.jar:/usr/local/bea/bea/wlserver_10.0/platform/lib/p13n/p13n_system.jar:/usr/local/bea/bea/wlserver_10.0/platform/lib/wlp/netuix_common.jar:/usr/local/bea/bea/wlserver_10.0/platform/lib/wlp/netuix_schemas.jar:/usr/local/bea/bea/wlserver_10.0/platform/lib/wlp/netuix_system.jar:/usr/local/bea/bea/wlserver_10.0/platform/lib/wlp/wsrp-client.jar:/usr/local/bea/bea/wlserver_10.0/platform/lib/wlp/wsrp-common.jar>
 
 
What I have to see is
 
<Jun 13, 2008 6:12:31 PM EDT> <Notice> <WebLogicServer> <BEA-000395> <Following extensions directory contents added to the end of the classpath:
/usr/local/bea/bea/user_projects/domains/development/lib/APIServiceStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/AddrValidateStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/AgencyChargebackStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/AgentCustomerDraftStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/ClueBusinessStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/ClueStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/CoverageNotificationStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/CurrentCarrierStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/EnterprisePrintStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/IVRBPMStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/IvrIpmStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/NotesStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/OnstarStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/PaymentBPMStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/PaymentIpmStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/PolicyBpmStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/PolicyIpmStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/PolicyServicesManagerStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/PrintRulesClientAdapter.jar:/usr/local/bea/bea/user_projects/domains/development/lib/PrintRulesStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/RVInfoStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/RatingStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/ReportsServicesManagerStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/ScreenScrapeStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/ToolsServicesManagerStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/UnderwritingRiskControllerStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/UnderwritingRiskModelStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/UnderwritingRiskTransformStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/VICStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/VoiceSupportStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/WSRouterClientAdapter.jar:/usr/local/bea/bea/user_projects/domains/development/lib/WSRouterStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/agencyQuoteIpmStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/agentSupportStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/apxServiceStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/bpxServiceStubs.jar:/usr/local/bea/bea/user_projects/domains/development/lib/casServiceStubs.jar: etc..etc..

Open in new window

0
Comment
Question by:Jayamurugan83
[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
  • 2
3 Comments
 
LVL 35

Accepted Solution

by:
girionis earned 2000 total points
ID: 21785602
Can you start the server by explicitly specifying this directory? You should use the -Dweblogic.ext.dirs parameter

-Dweblogic.ext.dirs=$DOMAIN_HOME/lib

0
 

Author Closing Comment

by:Jayamurugan83
ID: 31467104
Thank you so much. You made my day. I was scratching my head for long time to resolve this issue. It had been resolved now. Once Again. Thanks.
0
 
LVL 35

Expert Comment

by:girionis
ID: 21788607
Thanks for accepting, glad I was of help :)
0

Featured Post

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

A set of related code is known to be a Module, it helps us to organize our code logically which is much easier for us to understand and use it. Module is an object with arbitrarily named attributes which can be used in binding and referencing. …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

688 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