GrantPermission nameError
Hi all,
The following wlst command to add a system policy for CSF access is failing with a nameError. Am I missing a patch or something? Any help will be very much appreciated.
[~]$ java -classpath /scratch/soa/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar weblogic.WLST
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
wls:/offline> version
'WebLogic Server 10.3.6.0 Tue Nov 15 08:52:36 PST 2011 1441050 '
wls:/offline> connect('weblogic', 'xxx', 't3://localhost:8001')
Connecting to t3://localhost:8001 with userid weblogic ...
Successfully connected to managed Server 'soa_server1' that belongs to domain 'base_domain'.
Warning: An insecure protocol was used to connect to the
server. To ensure on-the-wire security, the SSL port or
Admin port should be used instead.
wls:/base_domain/serverConfig> grantPermission(codeBaseURL='file:${domain.home}/servers/${weblogic.Name}/tmp/_WL_user/myapp/-', permClass='oracle.security.jps.service.credstore.CredentialAccessPermission', permTarget='context=SYSTEM,mapName=*,keyName=*', permActions='*')
Traceback (innermost last):
File "<console>", line 1, in ?
NameError: grantPermission
wls:/base_domain/serverConfig>
As it was stated in another thread with a similar issue (see below), I need to use the wlst.sh from the oracle_common directory and not the one from the WLS home directory.
Moving OPSS Policy Store
Similar Messages
-
NameError while registering MDS repository
Hello Experts!
I have a problem with registering MDS repository through WLST.
I have written Python script that should register MDS repository but when I try to run it, it says "[Deployment Script]: Unexpected error: exceptions.NameError"
Here is my Python script:
from java.io import FileInputStream
propInputStream = FileInputStream("MDSRepository.properties")
configProps = Properties()
configProps.load(propInputStream)
repositoryName=configProps.get("repository.name")
dbVendor=configProps.get("db.vendor")
host=configProps.get("host")
port=configProps.get("port")
sid=configProps.get("sid")
user=configProps.get("user")
password=configProps.get("password")
adminURL=configProps.get("admin.url")
adminUserName=configProps.get("admin.userName")
adminPassword=configProps.get("admin.password")
connect(adminUserName, adminPassword, adminURL)
edit()
startEdit()
print '========================================='
print 'Registering MDS Repository....'
print '========================================='
try:
registerMetadataDBRepository(repositoryName, dbVendor, host, port, sid, user, password)
except:
print '***** CANNOT REGISTER MDS REPOSITORY !!! *****'
print "[Deployment Script]: Unexpected error:", sys.exc_info()[0]
print ''
print '========================================='
save()
activate()
disconnect()Here is my properties file:
repository.name=portal-mds
db.vendor=ORACLE
host=localhost
port=1521
sid=orcl
user=DEV_MDS
password=somepassword
admin.url=t3://localhost:7001
admin.userName=weblogic
admin.password=somepasswordHere is how I call this script:
java weblogic.WLST registerMDSRepository.pyHere is output:
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
Connecting to t3://localhost:7001 with userid weblogic ...
Successfully connected to Admin Server 'AdminServer' that belongs to domain 'just_some_domain'.
Warning: An insecure protocol was used to connect to the
server. To ensure on-the-wire security, the SSL port or
Admin port should be used instead.
Location changed to edit tree. This is a writable tree with
DomainMBean as the root. To make changes you will need to start
an edit session via startEdit().
For more help, use help(edit)
Starting an edit session ...
Started edit session, please be sure to save and activate your
changes once you are done.
=========================================
Registering MDS Repository....
=========================================
***** CANNOT REGISTER MDS REPOSITORY !!! *****
[Deployment Script]: Unexpected error: exceptions.NameError
=========================================
Saving all your changes ...
Saved all your changes successfully.
Activating all your changes, this may take a while ...
The edit lock associated with this edit session is released
once the activation is completed.
Activation completed
Disconnected from weblogic server: AdminServerHow to solve this problem? Any idea?I solved this problem by running it via
wlst registerMDSRepository.py -
[Solved] NameError: name 'clawsmail' is not defined
Hello,
I stumble on this problem and I logged a bug report to clawsmail.org.
However I could find the solution myself
import clawsmail
# here start your python script and use the clawsmail functions
It was something that one couldn't obviously think of.
At date my clawsmail version is 3.9.2I should correct the title a bit, I filed a bu report on claws-mail site.
The issue is that no python scripting will run properly. It's supposed that the module will load automatically, but when I tried the simple command like help(clawsmail), it will trow a traceback because of NameError, clawsmail is not declared.
I was on my way to implement some python script to apply simple regex on incoming mails, but there I stopped.
It seems that statement fix the problem, but when I tried a bit further, the clawsmail died and disappeared. -
Error executing sca_undeployComposite :NameError: sca_undeployComposite
Hi,
We are getting this error :
Traceback (innermost last): File "<console>", line 1, in ?NameError: sca_undeployComposite
Even when we are executing the script from MWHOME/soa/common/bin.
Steps that we have followed are:
Went to the location MWHOME/soa/common/bin. Executed ./wlst.sh at this location.
Able to execute connect command. connect(‘user’,’pwd’,’host:port')
But getting error when we try to execute third step sca_undeployComposite("host:port","LocalFileRead", "1.0",user="user",partition='xyz')
Waiting for quick help.
Thanks in advance.Hi Anshul,
Thanks.
We are using SOA version 11.1.1.6.7.
Yes we are able to launch wlst from MW_Home/oracle_common/common/bin and MW_Home/wlserver_10.3/common/bin. But getting same error Traceback (innermost last): File "<console>", line 1, in ?NameError: sca_undeployComposite when we try to execute sca_undeployComposite command.
Please guide.
Regards
Ritika -
Installation OIM on redhat Linux really slow
Hello,
I have a problem with the installation of OIM. When I try to install OIM on a linux server (redhat 5.0 64b) with the JRockit 64bits java 1.6.0 (jrmc 3.2.1-1.6.0) version the installer is just really slow. It takes ages for the command line installer to go to the next step.
has anyone else experienced this and found a solution?
greetings,
BasThe machine on which OIM is to be installed has enough memory, I believe it has 8GB..
The weird thing is that the first time we ran the installer, it was just normal (== fast) but the installation failed when deploying OIM into Weblogic and we can't run the weblogic deploy script, since this also fails.. (it throws a nameError: fail on the configoim.py script) That's when we decided to try to install OIM again from scratch.. so we moved the current installation directory to another location and started the installation again. This when the problems as decribed by Bas began.. The installer is really really slow.. we waited for more then 15 minutes for it to continue to the next step.. but it didn't. We checked the machine for spiking processes but the machine was totally idle..
Does anyone know what could be the problem? Are we doing anything wrong? or are we missing something?
Edited by: SteinWelberg on 3-mrt-2010 12:38 -
WLST command line utility "storeUserConfig()" is not working for 12c OHS
Hi All,
I am facing issue with WLST command line utility with "*storeUserConfig()*" command.
I have installed Standalone OHS 12c (Not managed OHS with WLS), configure and start the Node Manager.
I start the WLST command line utility from : <MW_HOME>/ohs/common/bin/wlst.sh
I connect node manager with : nmConnect('weblogic', 'welcome1', nmType='plain', domainName='base_domain')
wls:/offline> nmConnect('weblogic', 'welcome1', nmType='plain', domainName='base_domain')
Connecting to Node Manager ...
Successfully Connected to Node Manager.
wls:/nm/base_domain> nmStart(serverName='ohs10', serverType='OHS')
Starting server ohs10 ...
Successfully started server ohs10 ...
Now When I am running storeUserConfig(), it's giving me below error :
wls:/nm/base_domain> storeUserConfig()
Traceback (innermost last):
File "<console>", line 1, in ?
NameError: storeUserConfig
I also try with storeUserConfig('/scratch/12cORC/security/myuserconfigfile.secure', '/scratch/12cORC/security/myuserkeyfile.secure') which also give same error.
I am not able to recognize this error. What should I need to do to create the User config file ?
Please suggest me the solution.
I am referring this doc : http://docs.oracle.com/cd/E15586_01/web.1111/e13813/reference.htm#
Thanks,
Amit NagarIt's probably a little late for the original poster, but in case anybody else stumbles on this thread (like me today), I found a workable solution to this problem:
For a Standalone HTTP Server there exists in $domain_home/bin a command startComponent.sh or (on Windows) startComponent.cmd. This accepts as parameter the ComponentName which will typically be ohs1 and as second parameter storeUserConfig. Documentation on this can be found here:
http://docs.oracle.com/middleware/1212/webtier/HSADM/getstart.htm#CHDJGIII (scroll down to
4.3.2.3 Starting Oracle HTTP Server Instances from the Command Line).
startComponent.sh ohs1 storeUserConfig
Unfortunately this doesn't tell you where you'll find the config and key-File. However, on a second invocation I found that - at least on windows where I tested this - they get written into c:\users\<username>\.wlst so I'd expect them in the home directory on unix. After copying the files to a more common location, I was able to reference them the usual way (formatted for better readability):
wls:/offline> nmConnect(userConfigFile='C:/app/Middleware/Oracle_Home/user_projects/domains/base_domain/nodemanager/security/nm-cfg-base_domain.props',
userKeyFile='C:/app/Middleware/Oracle_Home/user_projects/domains/base_domain/nodemanager/security/nm-key-base_domain.props',
host='localhost',
port='5556',
domainName='base_domain')
Connecting to Node Manager ...
Successfully Connected to Node Manager.
Best Regards
Holger -
Using WebCenter Spaces Web Service API through JDeveloper's Data Control
Hi,
I'm trying to access WebCenter Spaces Web Service API (located at http://host:port/webcenter/SpacesWebService)
using JDeveloper's Web Center Data Control.
I created a data control in my portal project using JDeveloper's Web Service Data Control wizard.
I also created and configured key stores (jps-config.xml) at both sides (spaces server and my portal client).
How I created a data control:
* First I entered the name and the URL (http://host:port/webcenter/SpacesWebService?WSDL)
* Then I entered HTTP basic authentication details (user name and password)
* After that I drag-and-drop the getGroupSpaces() method from the data control to a .jspx page as a ADF read-only table.
* Then ran my portal project and navigated to this .jspx page and it worked. List of group spaces appeared well on that page.
The problem is that I got only public group spaces and group spaces created by the user I entered on HTTP basic authentication details.
I makes no sense to enter some static user details in a web service client (or a data control).
So the question is; can I use identity propagation to get only group spaces created by the same user which I logged in my portal?
Edited by: 832886 on Feb 18, 2011 3:09 AMHi,
You generally get NameError when you are executing the createCred/updateCred from a incorrect location. Are you using the wlst from oracle_common\common\bin?
Also, In your steps I don't see what you did to populate the walllet at JDeveloper end after your updateCred failed. This is a required step. Use the wlst from the location emntioned above and you should be able to proceed.
Thanks,
Vishal -
How can I make my Contact Form send info to my email?
Greetings! I have below a contact form that i have creaed with some help but I can't seem to make it send the information to my email address after it is submitted. That is my most important issue right now.
A secondary issue is, can I make it so once this form is submitted it send the info to my email without doing a page redirect?
Thanks in advance!Ok what about this code located at www.ybcreations.com/ContactTest.php?
<?php
// Set email variables
$email_to = '[email protected]';
$email_subject = 'BestMarketingNames Inquiry';
// Set required fields
$required_fields = array('fullname','email','comment');
// set error messages
$error_messages = array(
'fullname' => 'Please enter a Name to proceed.',
'email' => 'Please enter a valid Email Address to continue.',
'comment' => 'Please enter your Message to continue.'
// Set form status
$form_complete = FALSE;
// configure validation array
$validation = array();
// check form submittal
if(!empty($_POST)) {
// Sanitise POST array
foreach($_POST as $key => $value) $_POST[$key] = remove_email_injection(trim($value));
// Loop into required fields and make sure they match our needs
foreach($required_fields as $field) {
// the field has been submitted?
if(!array_key_exists($field, $_POST)) array_push($validation, $field);
// check there is information in the field?
if($_POST[$field] == '') array_push($validation, $field);
// validate the email address supplied
if($field == 'email') if(!validate_email_address($_POST[$field])) array_push($validation, $field);
// basic validation result
if(count($validation) == 0) {
// Prepare our content string
$email_content = 'New Website Comment: ' . "\n\n";
// simple email content
foreach($_POST as $key => $value) {
if($key != 'submit') $email_content .= $key . ': ' . $value . "\n";
// if validation passed ok then send the email
mail($email_to, $email_subject, $email_content);
// Update form switch
$form_complete = TRUE;
function validate_email_address($email = FALSE) {
return (preg_match('/^[^@\s]+@([-a-z0-9]+\.)+[a-z]{2,}$/i', $email))? TRUE : FALSE;
function remove_email_injection($field = FALSE) {
return (str_ireplace(array("\r", "\n", "%0a", "%0d", "Content-Type:", "bcc:","to:","cc:"), '', $field));
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<!-- Contact Form Designed by James Brand @ dreamweavertutorial.co.uk -->
<!-- Covered under creative commons license - http://dreamweavertutorial.co.uk/permissions/contact-form-permissions.htm -->
<title>Contact Form</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="Billy testing/ContactForm.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/mootools/1.3.0/mootools-yui-compressed.js"></script>
<script type="text/javascript" src="Billy testing/validation/validation.js"></script>
<script type="text/javascript">
var nameError = '<?php echo $error_messages['fullname']; ?>';
var emailError = '<?php echo $error_messages['email']; ?>';
var commentError = '<?php echo $error_messages['comment']; ?>';
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
</script>
</head>
<body onload="MM_preloadImages('Billy testing/x.png')">
<div id="formWrap">
<h2>We appreciate your business</h2>
<div id="form">
<?php if($form_complete === FALSE): ?>
<form action="ContactTest.php" method="post" id="comments_form">
<div class="row">
<div class="label">Your Name</div> <!--end .label -->
<div class="input">
<input type="text" id="fullname" class="detail" name="fullname" value="<?php echo isset($_POST['fullname'])? $_POST['fullname'] : ''; ?>"/><?php if(in_array('fullname', $validation)): ?><span class="error"><?php echo $error_messages['fullname']; ?></span><?php endif; ?>
</div><!-- end. input --><!-- end .context -->
</div><!-- end .row -->
<div class="row">
<div class="label">Your Email Address</div> <!--end .label -->
<div class="input">
<input type="text" id="email" class="detail" name="email" value="<?php echo isset($_POST['email'])? $_POST['email'] : ''; ?>"/><?php if(in_array('email', $validation)): ?><span class="error"><?php echo $error_messages['email']; ?></span><?php endif; ?>
</div><!-- end. input --><!-- end .context -->
</div><!-- end .row -->
<div class="row">
<div class="label">Comments</div> <!--end .label -->
<div class="input">
<textarea id="comment" name="comment" class="mess"><?php echo isset($_POST['comment'])? $_POST['comment'] : ''; ?></textarea><?php if(in_array('comment', $validation)): ?><span class="error"><?php echo $error_messages['comment']; ?></span><?php endif; ?>
</div><!-- end. input -->
</div><!-- end .row -->
<div class="submit">
<input type="submit" id="submit" name="submit" value="Send Message" />
</div><!-- end .submit-->
</form>
<?php else: ?>
<p style="font-size:25px; font-family:Arial, Helvetica, sans-serif; color:#255E67; margin-left:25px;">Thank you for your Message!</p>
<script type="text/javascript">
setTimeout('ourRedirect()', 5000)
funtion ourRedirect(){
location.href='contact.html'
</script>
<?php endif; ?>
</div><!-- end #form-->
</div>
<p> </p>
<!-- end formwrap -->
</body>
</html> -
How can i send an auto reply with form content to sender?
Hai!
I'm new to website building, but i already came a long way
i made a form and i like to send a auto reply with the form content (if that isnt too difficult) to the person who filled it in.
The form i made is in PHP (coding i copied partly from someone from the internet .)
You can see the from at: http://vinddit.nl/vindditnu%20php%20version.php
My PHP coding so far
<?php
// Set email variables
$email_to = '[email protected]';
$email_subject = 'Aanvraag - VINDDIT NU!';
// Set required fields
$required_fields = array('Voornaam','email','Achternaam','Plaats');
// set error messages
$error_messages = array(
'Voornaam' => 'Vul hier uw voornaam in a.u.b.',
'email' => 'Vul hier een geldig email adres in a.u.b.',
'Achternaam' => 'Vul hier uw achternaam in a.u.b.',
'Plaats' => 'Vul hier uw woonplaats in a.u.b.'
// Set form status
$form_complete = FALSE;
// configure validation array
$validation = array();
// check form submittal
if(!empty($_POST)) {
// Sanitise POST array
foreach($_POST as $key => $value) $_POST[$key] = remove_email_injection(trim($value));
// Loop into required fields and make sure they match our needs
foreach($required_fields as $field) {
// the field has been submitted?
if(!array_key_exists($field, $_POST)) array_push($validation, $field);
// check there is information in the field?
if($_POST[$field] == '') array_push($validation, $field);
// validate the email address supplied
if($field == 'email') if(!validate_email_address($_POST[$field])) array_push($validation, $field);
// basic validation result
if(count($validation) == 0) {
// Prepare our content string
$email_content = 'New Website Comment: ' . "\n\n";
// simple email content
foreach($_POST as $key => $value) {
if($key != 'submit') $email_content .= $key . ': ' . $value . "\n";
// if validation passed ok then send the email
mail($email_to, $email_subject, $email_content);
// Update form switch
$form_complete = TRUE;
function validate_email_address($email = FALSE) {
return (preg_match('/^[^@\s]+@([-a-z0-9]+\.)+[a-z]{2,}$/i', $email))? TRUE : FALSE;
function remove_email_injection($field = FALSE) {
return (str_ireplace(array("\r", "\n", "%0a", "%0d", "Content-Type:", "bcc:","to:","cc:"), '', $field));
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Aanvraag formulier</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/mootools/1.3.0/mootools-yui-compressed.js"></script>
<script type="text/javascript" src="validation/validation.js"></script>
<script type="text/javascript">
var nameError = '<?php echo $error_messages['fullname']; ?>';
var emailError = '<?php echo $error_messages['email']; ?>';
var commentError = '<?php echo $error_messages['comment']; ?>';
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
</script>
<style type="text/css">
</style>
</head>
<body onload="MM_preloadImages('icons/x.png')">
<p> </p>
<p>
<?php if($form_complete === FALSE): ?>
</p>
<form action="vindditnu php version.php" method="post" enctype="application/x-www-form-urlencoded" name="Form" id="commentsform">
<h1><img src="icons/vinddit3.gif" width="220" height="80" alt="logo" /></h1>
<h1>Wat zoekt u?:</h1>
<table width="690" border="0">
<tr>
<td>In welke categorie zoekt u?*</td>
<td colspan="3"><select name="Ophalen_verzenden" id="Ophalen_verzenden">
<option selected="selected">Meubels </option>
<option>Witgoed </option>
<option>Woon accesoires </option>
<option>Kleding </option>
<option>Schoenen </option>
<option>Mode accesoires </option>
<option>Speelgoed </option>
<option>Boeken, tijdschriften, papierwaren </option>
<option>Overig </option>
</select></td>
</tr>
<tr>
<td>Kleur:* </td>
<td colspan="3"><select name="kleuren" id="kleuren">
<option>Blauw</option>
<option>Rood</option>
<option>WIt</option>
<option>Zwart</option>
<option>Beige</option>
<option>Bruin</option>
<option>Geel</option>
<option>Oranje</option>
<option>Rood</option>
<option>Metallic (Bijv. Zilver/Goud/Brons/Koper</option>
<option>Meerkleurig</option>
<option selected="selected">Overig/ N.v.t</option>
</select></td>
</tr>
<tr>
<td>Merk: </td>
<td colspan="3"><input name="Merk" type="text" id="Merk5" value="<?php echo isset($_POST['Merk'])? $_POST['Merk'] : ''; ?>" />
<?php if(in_array('Merk', $validation)): ?>
<span class="error"><?php echo $error_messages['Merk']; ?></span>
<?php endif; ?></td>
</tr>
<tr>
<td>Type/Model:</td>
<td colspan="3"><input type="text" name="type" id="type" value="<?php echo isset($_POST['type'])? $_POST['type'] : ''; ?>" />
<?php if(in_array('type', $validation)): ?>
<span class="error"><?php echo $error_messages['type']; ?></span>
<?php endif; ?></td>
</tr>
<tr>
<td>Materiaal: </td>
<td colspan="3"><input name="Materiaal" type="text" id="Materiaal" value="<?php echo isset($_POST['Materiaal'])? $_POST['Materiaal'] : ''; ?>" />
<?php if(in_array('Materiaal', $validation)): ?>
<span class="error"><?php echo $error_messages['Materiaal']; ?></span>
<?php endif; ?></td>
</tr>
<tr>
<td>Maat: </td>
<td colspan="3"><input type="text" name="Maat" id="Maat" value="<?php echo isset($_POST['Maat'])? $_POST['Maat'] : ''; ?>" />
<?php if(in_array('Maat', $validation)): ?>
<span class="error"><?php echo $error_messages['Maat']; ?></span>
<?php endif; ?></td>
</tr>
<tr>
<td>Conditie*:</td>
<td colspan="3"><select name="conditie" id="conditie" >
<option>Zo goed als nieuw</option>
<option>Nieuw</option>
<option>Bebruikt</option>
<option selected="selected">Geen voorkeur </option>
</select></td>
</tr>
<tr>
<td>Ophalen/Verzenden:*</td>
<td colspan="3"><select name="ophalen" id="ophalen">
<option>Ophalen</option>
<option>Verzenden</option>
<option>N.v.t</option>
<option>Geen voorkeur </option>
</select></td>
</tr>
<tr>
<td>Prijs Min:</td>
<td><input name="prijsmin" type="text" id="prijsmin" size="10" value="<?php echo isset($_POST['prijsmin'])? $_POST['prijsmin'] : ''; ?>" />
<?php if(in_array('prijsmin', $validation)): ?>
<span class="error"><?php echo $error_messages['prijsmin']; ?></span>
<?php endif; ?></td>
<td>Prijs Max:</td>
<td><input name="Prijs" type="text" id="Prijs" size="10" value="<?php echo isset($_POST['Prijs'])? $_POST['Prijs'] : ''; ?>" />
<?php if(in_array('Prijs', $validation)): ?>
<span class="error"><?php echo $error_messages['Prijs']; ?></span>
<?php endif; ?></td>
</tr>
</table>
<h1>Opmerkingen:</h1>
<table width="690" border="0">
<tr>
<td height="25">Opmerkingen:</td>
<td rowspan="2"><textarea name="Opmerkingen" cols="67" rows="10" id="Opmerkingen"><?php echo isset($_POST['Opmerkingen'])? $_POST['Opmerkingen'] : ''; ?></textarea>
<?php if(in_array('Opmerkingen', $validation)): ?>
<span class="error"><?php echo $error_messages['Opmerkingen']; ?></span>
<?php endif; ?></td>
</tr>
<tr>
<td height="78"> </td>
</tr>
</table>
<h1>Uw Gegevens:</h1>
<table width="690" border="0">
<tr>
<td>Voornaam/Voorletters*:</td>
<td><input type="text" name="Voornaam" id="Voornaam" class='invul' value="<?php echo isset($_POST['Voornaam'])? $_POST['Voornaam'] : ''; ?>" />
<?php if(in_array('Voornaam', $validation)): ?>
<span class="error"><?php echo $error_messages['Voornaam']; ?></span>
<?php endif; ?></td>
<td>Achternaam:* </td>
<td><input type="text" name="Achternaam" id="Achternaam" class='invul' value="<?php echo isset($_POST['Achternaam'])? $_POST['Achternaam'] : ''; ?>" />
<?php if(in_array('Achternaam', $validation)): ?>
<span class="error"><?php echo $error_messages['Achternaam']; ?></span>
<?php endif; ?></td>
</tr>
<tr>
<td>Straatnaam:</td>
<td><input type="text" name="Straat" id="Straat" class='invul' value="<?php echo isset($_POST['Straat'])? $_POST['Straat'] : ''; ?>" />
<?php if(in_array('Straat', $validation)): ?>
<span class="error"><?php echo $error_messages['Straat']; ?></span>
<?php endif; ?></td>
<td>Huisnummer:</td>
<td><input name="Huisnummer" type="text" id="Huisnummer" class='invul' size="10" value="<?php echo isset($_POST['Huisnummer'])? $_POST['Huisnummer'] : ''; ?>" />
<?php if(in_array('Huisnummer', $validation)): ?>
<span class="error"><?php echo $error_messages['Huisnummer']; ?></span>
<?php endif; ?></td>
</tr>
<tr>
<td>Postcode:</td>
<td><input type="text" name="Postcode" id="Postcode" class='invul' value="<?php echo isset($_POST['Postcode'])? $_POST['Postcode'] : ''; ?>" />
<?php if(in_array('Postcode', $validation)): ?>
<span class="error"><?php echo $error_messages['Postcode']; ?></span>
<?php endif; ?></td>
<td>Plaats:* </td>
<td><input type="text" name="Plaats" id="Plaats" class='invul' value="<?php echo isset($_POST['Plaats'])? $_POST['Plaats'] : ''; ?>" />
<?php if(in_array('Plaats', $validation)): ?>
<span class="error"><?php echo $error_messages['Plaats']; ?></span>
<?php endif; ?></td>
</tr>
<tr>
<td>Email Adres:*</td>
<td colspan="3"><input type="text" name="email" id="email" class='invul' value="<?php echo isset($_POST['email'])? $_POST['email'] : ''; ?>" />
<?php if(in_array('email', $validation)): ?>
<span class="error"><?php echo $error_messages['email']; ?></span>
<?php endif; ?></td>
</tr>
<tr>
<td>Telefoonnummer:</td>
<td colspan="3"><input name="Telefoon" type="text" id="Telefoon" class='invul' value="<?php echo isset($_POST['Telefoon'])? $_POST['Telefoon'] : ''; ?>" />
<?php if(in_array('Telefoon', $validation)): ?>
<span class="error"><?php echo $error_messages['Telefoon']; ?></span>
<?php endif; ?></td>
</tr>
</table>
<p>
<label for="Straat"></label>
<label for="Huisnummer"><br />
</label>
<input type="submit" name="Submit" id="Submit" value="Verstuur" />
<input type="reset" name="Reset" id="Reset" value="Wissen" />
</p>
</form>
<?php else: ?>
<div class="bedankt">
<p>Bedankt voor uw aanvraag!</p>
<p>Wij zullen uw aanvraag zo spoedig mogelijk behandelen. Meestal duurt dit 2 a 3 werkdagen.</p>
<p><img src="icons/vinddit3.gif" width="220" height="80" alt="logo" /></p>
</div>
<p>
<script type='text/javascript'>
setTimeout("ourRedirect()", 5000)
function ourRedirect() {
</script>
<?php endif; ?>
</body>
</html>
and .JS
window.addEvent('domready', function() {
// Get the form
var form = $('comments_form');
// if the form is found...
if (form) {
// obtain error fields
var name = $('fullname');
var email = $('email');
var comment = $('comment');
// Set the default status
var isValid = true;
// input error function for the error messages
var addError = function (field, msg) {
field.addClass('error'); // Add error class to field
var error = field.getParent().getElement('span') || new Element('span', {'class': 'error'}); // add error message if not already placed
error.set('text', msg); // error text msg
error.inject(field, 'after'); // Insert error message after field
// detach error function used to delete any error messages and remove the error class
var removeError = function (field) {
field.removeClass('error'); // Remove error class from form fields
var error = field.getParent().getElement('span'); // find any existing error messages
// destroy if error message
if (error) {
error.destroy();
// insert submit form event
form.addEvent('submit', function (e) {
// Test name length
if (name.get('value').length === 0) {
isValid = false;
addError(name, nameError);
} else {
isValid = true;
removeError(name);
// check email length
if (email.get('value').length === 0) {
isValid = false;
addError(email, emailError);
// check email validity
} else if (!email.get('value').test(/^([a-zA-Z0-9\+_\-]+)(\.[a-zA-Z0-9\+_\-]+)*@([a-zA-Z0-9\-]+\.)+ [a-zA-Z]{2,6}$/)) {
isValid = false;
addError(email, emailError);
} else {
isValid = true;
removeError(email);
// check comment length
if (comment.get('value').length === 0) {
isValid = false;
addError(comment, commentError);
} else {
isValid = true;
removeError(comment);
// If form invalid then stop event happening
if (!isValid) {
e.stop();lisavs12686 wrote:
Whould it also be possible to send the sender the submited data (looking like the filled in form or so)?
not really nessecary but whould be a nice jextra
You can but you would need to send it as an html email which is much more complicated.
What you would do is build a page/table construction like below. You would need to use the php variables to echo out the information in the <td></td> cells (example below).
$reply = $_POST['email'];
$from = '[email protected]';
$replysubject = "Auto-Reply: Website Name";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "From: $from\r\nReply-to: $reply";
$replymessage = '
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Comments from Website</title>
</head>
<body>
<table>
<tr>
<td bgcolor="#ffffff" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 13px; padding: 10px 15px;">Name: </strong>'.$name.'
</td>
</tr>
</table>
</body>
</html>';
mail($reply, $replysubject, $replymessage, $headers); -
How can I use custom WLST commands for Oracle SOA Suite in Weblogic
Hi There,
I'm trying to view and search the weblogic log files using WLST on a Solaris/Unix system.
I have come across this "custom WLST commands for Oracle SOA Suite" and thought of using the custom logging commands to get my task done.
However, my WLST shell is not recognizing the commands and giving me the NameError!
wls:/devDomain1/domainRuntime> listLogs()
Traceback (innermost last):
File "<console>", line 1, in ?
NameError: listLogs
I tried the commands listLogs, displayLogs, getLogLevel & setLogLevel but in vain!
I have followed the instructions as per the oracle recommendation of using Custom WLST commands (http://docs.oracle.com/cd/E29597_01/core.1111/e10105/getstart.htm#ASADM10692) as below
- Launched the WLST shell from Oracle Home.
cd ORACLE_HOME/common/bin
./wlst.sh
- Tried to run the listLogs command from domainRuntime()
I would like to know if I need to import any additional libraries to run the custom WLST commands for Oracle SOA Suite in my WLST shell?
I have only weblogic 10.3.1 server installed on my Solaris 10 machine on which I have deployed the OSB application software.
There is no SOA Suite installed.
Or is there any other way I can browse the Server Log file and get the list of log messages? Basically I would like to use this feature in my script to customize it according to my requirement of listing specific error logs which I can work it out if I know how to make these commands work.
Please advise if this is possible and how?
Cheers.
SatishI have tried on my OSB installation (no SOA Suite here), the command listLogs() works (I was in online mode, after a connect), and the classpath is:
CLASSPATH=/opt/oracle/fmw11_1_1_5/patch_wls1035/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/oracle/fw11_1_1_5/patch_ocp360/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.33.x6_64/lib/tools.jar:/opt/oracle/fmw11_1_1_5/wlserver_10.3/server/lib/weblogic_sp.jar:/opt/oracle/fmw11_1_1_5/wlserver_10./server/lib/weblogic.jar:/opt/oracle/fmw11_1_1_5/modules/features/weblogic.server.modules_10.3.5.0.jar:/opt/oracle/fmw111_1_5/wlserver_10.3/server/lib/webservices.jar:/opt/oracle/fmw11_1_1_5/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/optoracle/fmw11_1_1_5/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar::/opt/oracle/fmw11_1_1_5/oracle_common/moules/oracle.jrf_11.1.1/jrf-wlstman.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/lib/adfscripting.jar:/opt/oracl/fmw11_1_1_5/oracle_common/common/wlst/lib/adf-share-mbeans-wlst.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/lb/mdswlst.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/auditwlst.jar:/opt/oracle/fmw11_1_1_5/oracle_cmmon/common/wlst/resources/igfwlsthelp.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/jps-wlst.jar:/optoracle/fmw11_1_1_5/oracle_common/common/wlst/resources/jrf-wlst.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/reources/oamap_help.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/oamAuthnProvider.jar:/opt/oracle/fmw111_1_5/oracle_common/common/wlst/resources/ossoiap_help.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/osoiap.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/ovdwlsthelp.jar:/opt/oracle/fmw11_1_1_5/oracle_comon/common/wlst/resources/sslconfigwlst.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/wsm-wlst.jar:/optoracle/fmw11_1_1_5/utils/config/10.3/config-launch.jar::/opt/oracle/fmw11_1_1_5/wlserver_10.3/common/derby/lib/derbynet.ar:/opt/oracle/fmw11_1_1_5/wlserver_10.3/common/derby/lib/derbyclient.jar:/opt/oracle/fmw11_1_1_5/wlserver_10.3/common/drby/lib/derbytools.jar::
The wlst.sh I have used is /opt/oracle/fmw11_1_1_5/osb/common/bin/wlst.sh
I hope this can help -
Error while configuring the directory in ALBPM Enterprise 6.0 WL edition
Hi,
We have installed ALBPM Enterprise 6.0 for Weblogic edition to deploy ALBPM processes into Enterprise 6.0. I tried to configure directory through ALBPM admin center.
I have checked the below options and provided necessary information asked in the series of dialog boxes.
- Create Directory Service
- Create Process engine
- Create ALBPM application EARs
- BEA Weblogic Configuration
We get error in the last step (BEA weblogic configuration) stating that there is some problem in executing the WLST script:-
Problem invoking WLST - Traceback (innermost last):
File "C:\Documents and Settings\14360\.configWizard\tmp\config.py", line 640, in ?
NameError: engineType
We tried to deploy the ALBPM application EARs manually to weblogic. But there are lot of dependencies, so we couldn't successfuly deploy them.
Appreciate any help on resolving the WLST error.
Thanks in advance
DeepakDeepak:
Could you please check the info on
http://tracker.fuegolabs.com/browse/EAP-985
HTH
Nico
Deepak Vinod Kumar wrote:
Hi,
We have installed ALBPM Enterprise 6.0 for Weblogic edition to deploy ALBPM processes into Enterprise 6.0. I tried to configure directory through ALBPM admin center.
I have checked the below options and provided necessary information asked in the series of dialog boxes.
- Create Directory Service
- Create Process engine
- Create ALBPM application EARs
- BEA Weblogic Configuration
We get error in the last step (BEA weblogic configuration) stating that there is some problem in executing the WLST script:-
Problem invoking WLST - Traceback (innermost last):
File "C:\Documents and Settings\14360\.configWizard\tmp\config.py", line 640, in ?
NameError: engineType
We tried to deploy the ALBPM application EARs manually to weblogic. But there are lot of dependencies, so we couldn't successfuly deploy them.
Appreciate any help on resolving the WLST error.
Thanks in advance
Deepak -
Error while installing OIM 9.1.0.1
Hi,
I am trying to install OIM 9.1.0.1 in windows environment. At the end of installation, am getting following error:
BUILD FAILED
D:\oimserver2\xellerate\Setup\setup.xml:443: The following error occurred while executing this line:
D:\oimserver2\xellerate\setup\***-setup.xml:196: Traceback (innermost last):
File "D:\oimserver2\xellerate\setup\oimconfig.py", line 623, in ?
File "D:\oimserver2\xellerate\setup\oimconfig.py", line 426, in configNonClusterInstall
File "D:\oimserver2\xellerate\setup\oimconfig.py", line 602, in rollBackTransaction
NameError: fail
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: D:\oimserver2\xellerate\setup\***-setup.xml:196: Traceback (innermost last):
File "D:\oimserver2\xellerate\setup\oimconfig.py", line 623, in ?
File "D:\oimserver2\xellerate\setup\oimconfig.py", line 426, in configNonClusterInstall
File "D:\oimserver2\xellerate\setup\oimconfig.py", line 602, in rollBackTransaction
NameError: fail
at ***.ant.taskdefs.management.WLSTTask.execute(WLSTTask.java:168)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
... 12 more
--- Nested Exception ---
D:\oimserver2\xellerate\setup\***-setup.xml:196: Traceback (innermost last):
File "D:\oimserver2\xellerate\setup\oimconfig.py", line 623, in ?
File "D:\oimserver2\xellerate\setup\oimconfig.py", line 426, in configNonClusterInstall
File "D:\oimserver2\xellerate\setup\oimconfig.py", line 602, in rollBackTransaction
NameError: fail
at ***.ant.taskdefs.management.WLSTTask.execute(WLSTTask.java:168)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Can anyone help me out solving this ??
Thanks in advance.I have found the reason for this... Actually i have ANT installed in my system prior to OIM installation... it was the culprit. Build was failing because i have two ANT's (one that comes with OIM and other ANT which is already installed)
I have removed the path and ANT_HOME environment variables.. .and my installation was successful -
I am using the web center portal framework. I have added portals during runtime. I have deployed this application on a standalone server and I donot see the portals I created during runtime.
As far as my knowledge is concerned, these portals are saved in an MDS repository, which have to be exported via web logic scripting tool.
So, after logging in wlst using the integrated server ip address, i tried to use the "exportmetadata" command and I am getting the following error.
wls:/DefaultDomain/serverConfig> exportMetadata(application='FDNYPortal', server
='DefaultServer', toLocation='/tmp/myrepos/mypartition')
Traceback (innermost last):
File "<console>", line 1, in ?
NameError: exportMetadata
This is how I logged in:
wls:/offline> connect()
Please enter your username :weblogic
Please enter your password : weblogic1
Please enter your server URL [t3://localhost:7001] :t3://10.237.20.85:7101
Connecting to t3://10.237.20.85:7101 with userid weblogic ...
Successfully connected to Admin Server 'DefaultServer' that belongs to domain 'D
efaultDomain'.
Warning: An insecure protocol was used to connect to the
server. To ensure on-the-wire security, the SSL port or
Admin port should be used instead.
I want to know what is going wrong in exportmetadata.
Thanks,
RChavanHi RChavan,
Typically the errors occur,when you are using wlst.cmd/sh command from wrong directory.
In the below discussion the resolution is given by PierluigiVernetto-
https://forums.oracle.com/message/9192749
NameError: exportMetadata
run wlst.cmd from
C:\Oracle1\Middleware\Oracle_SOA1\common\bin
it's written in the manual that you should use the right version of WLST.... :o)
What I get is:
wls:/offline> exportMetadata(application='soa-infra',server='AdminServer',toLoca
tion='C:/MDS',docs='/soa/shared/rules/**')
Traceback (innermost last):
File "<console>", line 1, in ?
File "C:\Oracle1\MIDDLE~1\ORACLE~1\common\wlst\mdsWLSTCommands.py", line 134,
in exportMetadata
File "C:\Oracle1\MIDDLE~1\ORACLE~1\common\wlst\mdsWLSTCommands.py", line 558,
in executeAppRuntimeMBeanOperation
File "C:\Oracle1\MIDDLE~1\ORACLE~1\common\wlst\mdsWLSTCommands.py", line 513,
in isConnectedToWLS
UserWarning: MDS-91005: No connection to a Weblogic server exists. The operation
+"exportMetadata" can be executed only in the online mode.+
wls:/offline> exit()
after this I do
connect('weblogic', 'welcome1', 't3://localhost:7001')
exportMetadata(application='soa-infra',server='AdminServer',toLocation='C:/MDS',docs='/soa/shared/rules/**')
and it magically works :o)
Executing operation: exportMetadata.
Operation "exportMetadata" completed. Summary of "exportMetadata" operation is:
List of documents successfully transferred:
+/soa/shared/rules/BpelProcess.xsd+
+/soa/shared/rules/DecisionService.xsd+
+/soa/shared/rules/DecisionServiceMessages.xsd+
+/soa/shared/rules/common.xsd+
+/soa/shared/rules/rpi.xsd+
+5 documents successfully transferred.+
Hope it helps you.
Regards,
Hoque -
Hi all,
I have found this bit of javascript to validate a users form
input, but the problem is that it does it in steps - ie it will
check the name and if that isn't present it will stop the form and
display just the name error.
However I want it to display all the errors in one go (so if
the name AND the email is left blank, it will display both errors
at the same time!). I am sure it has to do with where you place the
return false value but after an hour of mucking about I just don't
seem to be able to get it to work.
Here is the script:
function checkForm() {
name = document.getElementById("name").value;
email = document.getElementById("email").value;
comment = document.getElementById("comment").value;
if (name == "") {
hideAllErrors();
document.getElementById("nameError").style.display =
"inline";
document.getElementById("name").select();
document.getElementById("name").focus();
return false;
} else if (email == "") {
hideAllErrors();
document.getElementById("emailError").style.display =
"inline";
document.getElementById("email").select();
document.getElementById("email").focus();
return false;
} else if (comment == "") {
hideAllErrors();
document.getElementById("commentError").style.display =
"inline";
document.getElementById("comment").select();
document.getElementById("comment").focus();
return false;
return true;
function hideAllErrors() {
document.getElementById("nameError").style.display = "none"
document.getElementById("emailError").style.display = "none"
document.getElementById("commentError").style.display =
"none"I think you need to add a ';' (one of each) in the following
script code as follows below:
Your code as shown earlier:
From here:
document.getElementById("nameError").style.display = "none"
document.getElementById("emailError").style.display = "none"
document.getElementById("commentError").style.display =
"none"
To here:
document.getElementById("nameError").style.display = "none";
document.getElementById("emailError").style.display = "none";
document.getElementById("commentError").style.display =
"none";
I will take a look at Elaine's quick advice. Let us know if
that works with ';' at end of those three codes.
Thanks in advance, DWD -
Running wlst command in embeded mode results in error for deleteMetadata()
I need to use wlst command deleteMetadata() in embeded mode.
I had followed instruction at http://download.oracle.com/docs/cd/E12840_01/wls/docs103/config_scripting/using_WLST.html, to import the wlst interpreter,
The command I use is:
deleteMetadata(application='SetupApp', server='FunctionalSetupServer_1', docs='/META-INF/**/adf-config.xml.xml', restrictCustTo='%')
This command works fine in wlst interactive mode, but when I put it in java, it errors out with the following. Looks like the:
Caused by: Traceback (innermost last):
File "<string>", line 2, in ?
NameError: deleteMetadata
at org.python.core.Py.NameError(Unknown Source)
at org.python.core.PyFrame.getglobal(Unknown Source)
at org.python.core.PyFrame.getname(Unknown Source)
at org.python.pycode._pyx11.f$0(<string>:2)
at org.python.pycode._pyx11.call_function(<string>)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyCode.call(Unknown Source)
at org.python.core.Py.runCode(Unknown Source)
at org.python.core.Py.exec(Unknown Source)
at org.python.util.PythonInterpreter.exec(Unknown Source)
at weblogic.management.scripting.utils.WLSTInterpreter.exec(WLSTInterpreter.java:509)
at oracle.as.install.famigratet2p.cli.cmd.CleanupAdfConfigXml.connect(CleanupAdfConfigXml.java:130)
at oracle.as.install.famigratet2p.cli.cmd.CleanupAdfConfigXml.executeCmd(CleanupAdfConfigXml.java:77)
at oracle.apps.fnd.provisioning.ovm.sdk.cli.FAOVMCLICmd.execute(FAOVMCLICmd.java:709)
... 2 more
My code looks like this:
import weblogic.management.scripting.utils.WLSTInterpreter;
import org.python.util.InteractiveInterpreter;
String conString = "connect('" + mTestAdminServerUserName + "','" +
mTestAdminServerPassword + "','" + mTestAdminServerConnectString + "')\n";
String delString="deleteMetadata(application='SetupApp',server='FunctionalSetupServer_1', docs='/META-INF/**/adf-config.xml.xml', restrictCustTo='%')\n";
interpreter.exec(conString+delString);
Connect() works fine, only failing at deleteMetadata. Is there another jar/library that I need to include?Try excuting the command below before invoking MDS commands:
interpreter.execfile($MW_HOME/oracle_common/common/wlst/mdsWLSTCommands.py);
Thanks,
--Daniel
Maybe you are looking for
-
Not correctly localized for this language???
Error message: this version of iTunes has not been correctly localized for this language. Please run the English version. I get this message when trying to open iTunes. I haven't changed any settings since last accessing iTunes successfully. What do
-
Can anyone help me? When i try to download minecraft and open it up, it says that it gets damaged and it won't work. I have the Macbook Pro with Retina display
-
I tried to join ALECKS. I received a Java warning that Google has not fixed a problem that makes Firefox running on Windows unstable when using a Java version = or > 7.0. I don't want to follow the Alex recommendation to use Chrome or Explorer; using
-
i am in the middle of creating a website and i currently have registration and login page that links to a database and have all the relevant record sets and server behaviours. I would like to arrange it so that when a user logs in they get sent to th
-
Database Lite License and App Tutorial
Hello, I'm looking for information regarding oracle database lite licensing and if any one could provide me with demo/tutorial on an application built using oracle jdev with ADF for mobile that uses oracle lite. Currently I have developed a demo mobi