Getting error "Could not find or load main class weblogic.Admin " while connecting to weblogic server - middleware

I am trying to run below command in shell script but i am getting error like:
Error: Could not find or load main class weblogic.Admin
${SUN_JAVA_HOME}/bin/java -classpath $CLASSPATH weblogic.Admin -url t3://localhost:7001 -username weblogic -password weblogic123 PING
Can anyone comment on it

This is a known error. Admin has been removed in weblogic 12.2.1.
you may use wlst to try connecting to the Admin server.

Related

WorkerExtensions.csproj trying to access private feed

WorkerExtensions.csproj : error NU1301: Unable to load the service index for source...
WorkerExtensions.csproj was trying to access our private feed, hence it did not have the permissions to do so encountered the above error.
How can it be resolved?
Nuget.exe sources update -Name “xxpackages” -UserName xxx -Password token
by running the above command in the package console, I successfully managed to resolve this error.

How to safe restart jenkins?

I tried few ways to safe restart either in CLI using the command "java -jar jenkins-cli.jar -s http://localhost:8080/ -webSocket safe-restart" which says - "ERROR: Unexpected exception occurred while performing safe-restart command.
hudson.lifecycle.RestartNotSupportedException: Default Windows lifecycle does not support restart."
Tried http://localhost:8080/safeRestart - Jenkins cannot restart itself as currently configured.
Can anyone solve this issue of mine. I'm using generic jenkins via jenkins.war file

Installing local plugin via jenkins-cli

I've enabled 'Enable CLI over remoting'.
I've set TCP port for JNLP either fixed or random.
I've downloaded the jenkins-cli.jar successfully.
when preforming plugin-install command i receive:
When executing: java -jar jenkins-cli.jar -auth user:pass -s http://localhost:8080 install-plugin file:///folder/plugin.hpi
ERROR: Unexpected exception occurred while performing install-plugin command.
java.io.FileNotFoundException: /folder/plugin.hpi (No such file or directory)
Without the file://
/folder/plugin.hpi is neither a valid file, URL, nor a plugin artifact name in the update center
I've tried every possible combination, the file does exist.
Edit: from the exception it keeps thinking that it's url instead of file:
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at java.io.FileInputStream.<init>(FileInputStream.java:93)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
at java.net.URL.openStream(URL.java:1045)
at hudson.FilePath.copyFrom(FilePath.java:890)
"
Edit 2: It does work when given HTTP URL, but it will require me to upload it to a server which I don't have every time.
Edit 3: I tried moving the file to the same folder of Jenkins /var/lib/jenkins and give it permissions of 777.
It was a combination of #Alex O solution, and that I used -auth myuser:mypass instead of --username admin --password password and toggled --remoting.
It looks like this:
java -jar jenkins-cli.jar -s http://host-ip:8080/ -remoting install-plugin ./plugin.hpi --username my-user --password my-pass -restart
The URL that you provide as argument to install-plugin must be accessible by the Jenkins master process. If you get the error message
/folder/plugin.hpi (No such file or directory)
then there's most likely a problem with access rights, or /folder is not mounted on the master's host (or in the master's container, if you use docker).
This is why a HTTP URL does work.
So, for file:// URLs, you need to align filesystem mounts and permissions between CLI user/machine and Jenkins master user/machine.

'SQL1024N A database connection does not exist. SQLSTATE=08003' error while executing 'db2 -x' command through command stage in Datastage 9.1

I'm getting 'SQL1024N A database connection does not exist. SQLSTATE=08003' error, while executing 'db2 -x' command through execute command stage in Datastage 9.1(AIX Server). Can any one please help me out ?
To connect to DB2 - you need a catalog entry on your Linux server ( or wherever the Datastage in installed)
You may need to check with the datastage administrator.
Use the below command on the server to see all the cataloged db2 databases
db2 list db directory
You may need to source the dsenv before you run this.

How to start Gerrit in Windows 7 after Initialization

I did the procedures as recommended by vogella to install gerrit on windows.
I downloaded gerrit2.10.war from the releaase site
Then I created a gerrit folder in C drive
I ran the commands
cd C:/gerrit
java -jar gerrit.war init -d C:/gerrit
Then on pressing enter (i.e using default) for every questions I got the message:
Initialized C:\gerrit
Then to start I tried the command
java -jar gerrit.war daemon -d C:\gerrit
but it didnt show any message or performed any action.
On checking the error_log in logs in C:\gerrit it was shown like
ERROR com.google.gerrit.pgm.Daemon : Unable to start daemon
If someone knows to resolve this issue please help.
Thanks

Resources