Solved

Weblogic 10.0 Jar file classpath problem.

Posted on 2008-06-13
3
3,759 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
  • 2
3 Comments
 
LVL 35

Accepted Solution

by:
girionis earned 500 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Less strange, but still introduction This introduction was added (1st August, 2011) to reflect some reactions.  Firstly, the term basics in the title of the article...  As any other word, it is a symbol with meaning attached to the word by some a…
Installing Python 2.7.3 version on Windows operating system For installing Python first we need to download Python's latest version from URL" www.python.org " You can also get information on Python scripting language from the above mentioned we…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
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…

707 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

20 Experts available now in Live!

Get 1:1 Help Now