Solved

Weblogic 10.0 Jar file classpath problem.

Posted on 2008-06-13
3
3,790 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

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 …
Variable is a place holder or reserved memory locations to store any value. Which means whenever we create a variable, indirectly we are reserving some space in the memory. The interpreter assigns or allocates some space in the memory based on the d…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
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…

772 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