Trying to create a script that will be run via Tivoli that will reset the connection pools. Tivoli runs the script as root so I need to su to the weblogic user.
The script is basically one line that su's to the correct user and runs the java command:
su - devsunwl -c "java weblogic.Admin -url t3//10.20.22.97:7001 -username devsunwl -password devsunwl RESET_POOL ORT6_CP"
But I get the following error whe I try to run the script as root:
Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/Admin
It looks like my environment isn't being setup even though I su - to the correct user.
I've tried it logged in as the correct user and the java command is correct.
Any ideas?
THX
The script is basically one line that su's to the correct user and runs the java command:
su - devsunwl -c "java weblogic.Admin -url t3//10.20.22.97:7001 -username devsunwl -password devsunwl RESET_POOL ORT6_CP"
But I get the following error whe I try to run the script as root:
Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/Admin
It looks like my environment isn't being setup even though I su - to the correct user.
I've tried it logged in as the correct user and the java command is correct.
Any ideas?
THX