Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8575087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:37:02+00:00 2026-06-11T19:37:02+00:00

I am trying to make a generic script for WebSphere 6.0, 6.1.x and 7

  • 0

I am trying to make a generic script for WebSphere 6.0, 6.1.x and 7 environments. What I need is to read some environment variables of my own that I need to use in the script for which I have been using the os.environ.get[‘MYVAR’]. It works find on a WebSphere 7 and 6.1.x environment. But for a WebSphere 6.0 environment, it gave me the following error :

AttributeError: class 'org.python.modules.os' has no attribute 'environ'

On searching, I found that many of the libraries were introduced as optional libraries in WebSphere 6.1.x onwards and are available under /opt/WebSphere../AppServer/optionalLibraries/jython/Lib but for WebSphere 6.0, it isn’t.

I narrowed it down to the javaos.py and copied that to a shared location and passed the location using -wsadmin_classpath option so that it could be found, yet now it gives me another error (possibly its not finding it.)

ImportError: no module named javaos

What I need is to somehow be able to pass some environment variables seemlessly over WebSphere 6.0, 6.1.x and 7.0 or be able to find out if javaos.py has further dependencies that need to be resolved (the hard way).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T19:37:03+00:00Added an answer on June 11, 2026 at 7:37 pm

    Edit based on @Husain Khambaty’s comment:

    1 – Copy the Jython libraries from WebSphere 6.1.x to 6.0 (Directory ex : ${WAS_INSTALL_ROOT}/AppServer/optionalLibraries/jython/Lib). More Info

    2 – If you’d like to use any custom location for jython libraries (more suitable for situations where the current WP environment directory can not be changed), then you can tell wsadmin.sh to look for the libraries in the custom location by using the -javaoption “-Dpython.path=”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make a generic Search UserControl that can be given some values,
I have a page that I am trying to make a generic style of
I'm trying to make a generic widget which can be used to 'counter scroll'
I'm trying to make a generic class that takes 3 types, either a simple
I'm trying to use va_arg to make a generic factory function in my GUI
Im trying to make a generic script to change images on mouseover and mouseout.
I'm trying to make a generic function of sorts, in some place of my
I'm trying to learn about generics, and I'm trying to make my own generic
Trying to make a make generic select control that I can dynamically add elements
I am trying to make some generic factories for my service factories and dao

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.