Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Weblogic 10.0 Jar file classpath problem.

Posted on 2008-06-13
3
Medium Priority
?
3,906 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 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Flask is a microframework for Python based on Werkzeug and Jinja 2. This requires you to have a good understanding of Python 2.7. Lets install Flask! To install Flask you can use a python repository for libraries tool called pip. Download this f…
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
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 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…

876 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