Is there any tool to automate Oracle Service Bus configuration for CICD and where to get it? - weblogic

I have tried WLST. I am able to deploy wars. I have seen that there is a library to access OSB:
https://docs.oracle.com/middleware/1221/osb/java-api/toc.htm
https://docs.oracle.com/middleware/1221/osb/develop/GUID-AA6A4EAE-5F52-41B4-92A6-E0F3FACF5E2C.htm#OSBDV2771
I have read about WLI. In WLST console, I try the following:
wls:/osbdomain/serverConfig> from com.bea.wli.sb.management.configuration import SessionManagementMBean
Traceback (innermost last):
File "<console>", line 1, in ?
ImportError: no module named wli
I do not know if I have to download some JAR from anywhere or which install manual to follow.
Where is this JAR supposed to be? Where can it be downloaded?

Related

Chromedriver executable path problems even though executable path is in PATH [duplicate]

This question already has answers here:
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH error with Headless Chrome
(1 answer)
WebDriverException: Message: 'chromedriver' executable needs to be in PATH while setting UserAgent through Selenium Chromedriver python
(1 answer)
Closed 2 years ago.
I'm working on a website automation program for 1 month, all went well and worked perfectly fine until I had to reset my laptop to factory settings due to a black screen that kept on going after turning on the laptop.
I'm running a laptop with windows 10, Pycharm is the IDE and I code with Python (64-bit version). I use chromedrivers, sadly there's not a 64-bit version but no problem was ever given by that.
Now, when I try to start the code I saved from the finished project, it just keeps saying
"'chromedriver.exe' executable needs to be in PATH."
I looked for everything I could, I copied the chromedriver into the PyCharm folder, I unzipped it on my Desktop, I used the executable_path=r'...' option, I tried to install the webdriver manager... nothing helped and the webdriver manager couldn't even get downloaded.
I think it's important to say that I have 2 mass storages, one called "Windows (C:)" and the other "Data (D:)", which has 380 GB of space, so I installed Pycharm and Python into Data(D:).
I'd really appreciate it if anyone could help me with this problem, it just makes me crazy how I tried everything fixing this.. seems like no one had ever had such a dumb problem.
Anyways, have a great day dear StackOverflow Community!
This is the error code:
C:\Users\User\PycharmProjects\Ersters\venv\Scripts\python.exe C:/Users/User/PycharmProjects/Ersters/Ersters.py
Automatic generator started, please wait.
Traceback (most recent call last):
File "C:\Users\User\PycharmProjects\Ersters\venv\lib\site-packages\selenium\webdriver\common\service.py", line 72, in start
self.process = subprocess.Popen(cmd, env=self.env,
File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 1307, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the management file
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:/Users/User/PycharmProjects/Ersters/Ersters.py", line 15, in <module>
driver = webdriver.Chrome(options=options, executable_path=r'C:\Users\User\Desktop\Python\chromedriver.exe')
File "C:\Users\User\PycharmProjects\Ersters\venv\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 73, in __init__
self.service.start()
File "C:\Users\User\PycharmProjects\Ersters\venv\lib\site-packages\selenium\webdriver\common\service.py", line 81, in start
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'chromedriver.exe' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
Process finished with exit code 1

headless-selenium-for-win install issues

I am trying to download and install https://github.com/kybu/headless-selenium-for-win to use Headless Chrome and Firefox on windows. As the new headless browsers built within FF and Chrome do not support extensions.
I keep getting:
C:\Users\Dan >pip install -U git+https://github.com/kybu/headless-selenium-for-win.git
Collecting git+https://github.com/kybu/headless-selenium-for-win.git
Cloning https://github.com/kybu/headless-selenium-for-win.git to c:\users\Dan\appdata\local\temp\pip-6wiag0j8-build
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Dan\Anaconda3\lib\tokenize.py", line 452, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Dan\\AppData\\Local\\Temp\\pip-6wiag0j8-build\\setup.py'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Dan\AppData\Local\Temp\pip-6wiag0j8-build\
My question is, why is this not installing correctly? Also, is it likely this method will allow extensions in Chrome or is that just the downsides of using headless browsers?
You are trying to install C++ project as a pip install. This is not going to work. You can download the compiled exe from their releases
https://github.com/kybu/headless-selenium-for-win/releases
Extract the headless_ie_selenium.exe from above in system path. Then run something like below to get to Firefox
import os
os.environ["HEADLESS_DRIVER"] = "geckodriver.exe"
from selenium import webdriver
driver = webdriver.Firefox("headless_ie_selenium.exe")
PS: Since I don't have Windows, can't test the above code but if you read the documentation this is what the documentation says
Selenium uses "drivers" to control web browsers. They are standalone executables driving browsers. headless_ie_selenium.exe by default looks for the IE driver in PATH, but it can be instructed to use other drivers as well. All command line arguments are forwarded to the driver, so the HEADLESS_DRIVER environment variable is used to specify the driver. Put the driver in one of the PATH directories.
Set the HEADLESS_DRIVER environment variable to geckodriver.exe for headless Firefox.

What is causing my WLST scripts to time out when updating node manager credentials?

I'm using WebLogic 10.3.6 (it's old, I know) with Java6 and am trying to install in a new environment. I'm using WLST scripts that worked in other environments where the OS is the same (CentOS 5.11), SELinux is in permissive mode, and the application user has permission to write to the directory where all of the WLS stuff is saved. Each time I try to update anything in the SecurityConfiguration MBean, it get a timeout when trying to activate. Initially I thought it was just for the node manager credentials, but I tried to do
!> cmo.setClearTextCredentialAccessEnabled(true)
!> validate()
!> save()
!> activate()
Everything is fine until the activate... here's my results:
Activating all your changes, this may take a while ...
The edit lock associated with this edit session is released
once the activation is completed.
Traceback (innermost last):
File "<console>", line 1, in ?
File "<iostream>", line 376, in activate
File "<iostream>", line 1847, in raiseWLSTException
WLSTException: Error occured while performing activate : Error while Activating changes. : [DeploymentService:290053]Request with id '1,488,512,657,383' timed out on admin server.
Use dumpStack() to view the full stacktrace
What am I missing?
The real issue causing this problem was the NFS where my binaries were being shared across instances. The NFS was configured in a VERY non-standard way, causing all kinds of file read/write timeouts.

Duplicity "no module named dropbox" error

I try to restore my backup from amazon using the following command as example
duplicity restore --sign-key '7F73FA36' --encrypt-key '5FD0100F' scp://rich#backup_server//mnt/backups/edge/main
and shell returns the following error
"Import of duplicity.backends.dpbxbackend Failed: No module named dropbox
Traceback (most recent call last):
File "/usr/bin/duplicity", line 1466, in <module>
with_tempdir(main)
File "/usr/bin/duplicity", line 1459, in with_tempdir
fn()
File "/usr/bin/duplicity", line 1312, in main"
Any advice will greatly help.
If you do not want to store backups in Dropbox, i suppose that this can be ignored.
I wondered the same as you, and looked a bit: it seems to me that Duplicity tries to load a Dropbox backend. See in /usr/lib64/python2.6/site-packages/duplicity/backends/dpbxbackend.py, there is a line from dropbox import client, rest, session
As i do not have this Python Dropbox library installed, it can not find it, but does not prevent me to use Duplicity for other backends
You may install dropbox python client by running
root#host# pip install dropbox2

websphere jython scripts cannot access AdminTask

We have an auto-deployment script that uses wsadmin and jython. The script appears to work as expected however after 6-7 redeployments the AdminTask object becomes unavilable, resulting in the following error when we attempt to use that object:
WASX7209I: Connected to process "server1" on node ukdlniqa41Node01 using SOAP connector; The type of process is: UnManagedProcess
WASX8011W: AdminTask object is not available.
...
Traceback (innermost last):
File "<string>", line 251, in ?
File "<string>", line 14, in main
File "<string>", line 38, in initialize
NameError: AdminTask
My question is, what would cause this AdminTask object to become unavailable? (it remains unavailable until we restart the server instance)
AdminTask may be available if one of the previous tasks does not finish properly. This happens often especially if your server is in development mode. I would suggest gathering Deployment Mustgather as per http://www-01.ibm.com/support/docview.wss?rs=180&context=SSCR4XA&q1=MustGatherDocument&uid=swg21199344&loc=en_US&cs=utf-8&lang=en and submitting the results to IBM.