Writing a JSR168 portlet WITHOUT using Jdeveloper or "wizards"

I have a JSR168 portlet that is built using Maven (http://maven.apache.org/ if you don't know what that is).
It deploys and operates perfectly well into a portlet container such as Pluto (the standard, reference container from Apache).
Pluto supplies a Maven plugin, that takes the vanilla web.xml and other configuration e.g. portlet.xml and adds the necessary configuration to run the portlet in the container. I believe there is an Ant plugin that does exactly the same thing.
It adds the following conf to teh web.xml;
<servlet>
<servlet-name>my-portlet-name</servlet-name>
<servlet-class>org.apache.pluto.core.PortletServlet</servlet-class>
<init-param>
<param-name>portlet-name</param-name>
<param-value>my-portlet-name</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>my-portlet-name</servlet-name>
<url-pattern>/PlutoInvoker/my-portlet-name</url-pattern>
</servlet-mapping>
This is the "magic" that glues my portlet to the portlet container.
What I wish to know, is how to make my JSR168 portlet deploy into Oracle Portal 10g without EVER using JDeveloper. What is the 'magic' I have to apply to my web.xml or portlet.xml or other configuration that will men I can deploy my portlet war into the app server and make it talk turkey with the portal container. I can cope with just having a customised web.xml that I have to copy into the WAR file if need be ... if I could find some guidance what should be in that file.
It seems that every search I've done in google or though the doco we have here starts with "Start Jdeveloper and select XXX in the portlet wizard".
I do not use Jdeveloper and nor will I. I will continue to build my Java code in a correct fashion, i.e. on the command line with my standard build tools that don't involve the IDE. Don't get me wrong, I use an IDE, but one should never be mandated. In my book, "wizards" are about the worst imaginable way to get any programming task completed.

Hi Marcel
With respect, it's patently obvious that we know how to develop a portlet without Jdeveloper, because if you read the message you would have been able to discern that this is the way we are accustomed to doing it, and it's faster, easier and more portable that way. I've been doing J2EE development since the first version of the spec and well before there was an Oracle implementation of it.
You don't actually need an EAR file, as a WAR will suffice and the dcmctl command-line utility can supply everything else in its arguments (like, context-path and the like), and it allows each WAR artifact to be deployed in different times, i.e. when they are built on the integration server. I find EAR files usually too heavyweight especially as I rarely write EJBs, as opposed to using e.g. Spring.
Using the web browser is not an option for automated deployment and acceptance testing from an integration build server.
Configuring the portal side of things looks decidedly a different matter and I've not found anyway to do it from the command line, it demands the browser, which is a let-down.
It's terribly disappointing the paucity of information about automation of deployment as opposed to the positively verdant amount of presentations, tutorials and documentation that assumes top-to-bottom Oracle tooling and environment and browser-based configuration. Even where it's actually possible Oracle doesn't seem to want to tell people about it or do as I believe they should, which is regard this form of deployment and configuration as the default way to teach developers how to use their products. None of this helps build and deploy to Oracle products using test-driven development, continuous integration, and automated acceptance testing, all of which are usually regarded as essential parts of a modern developers toolkit by the best minds in the business.
So after we're left alone to discover how to do this by ourselves for a month you can forgive my disappointment at being lectured like I was some neophyte who doesn't know how to make a WAR file with textedit.

Similar Messages

  • Regarding ESB Deployment without using JDeveloper

    Hi,
    I would like to deploy my ESB application without using JDeveloper. BPEL Designer automatically creating the build script to deploy the BPEL application. Is there any ant script available to deploy the ESB application in to Oracle integration server.? Please let us know.
    Regards
    Niraimathi R

    Niraimathi,
    I had the same question - see Re: Registering ESB Services without JDeveloper
    Dave Berry from Oracle kindly gave me a sneak preview of the jars and tags required in order to register ESB services from ANT.
    I now have a continuous build environment (using Cruise Control), linked into Subversion which deploys all my BPEL Processes and registers my ESB services.
    I believe that the JARs and instructions on how to register ESB services using ANT will be available on OTN soon.
    Kind Regards,
    Mark.

  • Tutorial without using JDeveloper Wizard!

    Hello,
    Does anybody here know any link of ADF Faces/BC tutorial without using JDeveloper Wizard! Manual coding of pagedefs, and manipulating view objects thru backing beans... Our project is quite complex and the tutorials from the Oracle website is quite dependent on wizards... And it is 50% not suitable to our project's requirements.
    Thanks.

    Hi,
    there is no end-to-end tutorial I am aware of. I would however discourage "manipulating view objects thru backing beans" directly and instead always go through the ADF binding layer.
    Note that building databindings in the pageDef file is pretty straight forward. First you need to selecte the JSF page you want t build a pageDef file for and choose "go to pageDefinition" from the context menu.
    This will crate a pagedef file. The next step is to create the bindings and executable section, again using the context menu on the pageDef file in the Structure Window.
    In the binding section, use the context menu to create list -, attribute -, table bindings (etc.) and then the ExpressionLanguage editor on the JSF page to wire components up to the ADF binding.
    Frank

  • Publish a plsql code as webservice without using JDEVELOPER or APEX

    Hi All,
    I am looking into how can we publish a PLSQL code as web-service without using JDEV OR APEX.
    When I google for this one I can see only by using JDEV or APEX we can publish Code as a web-service.
    Is there any way in oracle, just by using simple PLSQL packages we can publish code as a webservice.
    Appreciate your response.
    Thanks,
    MK.

    Apex does not publish PL/SQL code as web services. It is a web run-time and development framework. Something totally different.
    To turn a PL/SQL function into a web service is simple. You use the orawsv servlet in XDB - without making a single code change to the function. It will not even know it is called as a web service.
    To use orawsv, two basic steps. Configure and enable the servlet (raw HTTP/HTTPS connections will be handled by the Listener). This also entails enabling shared server in the database, if not already enabled. The 2nd step is to allow the function to be executed (via a HTTP call) as a web service, via granting specific roles.
    orawsv handles the HTTP call. It provides the WSDL. It parses SOAP envelopes as input. It makes the call (as a standard PL/SQL call), to the function being used as a web service. It returns the results of the PL/SQL function call, as a SOAP envelope output.
    See Support Notes:
    How to Setup Native Oracle XML DB Web Services [Article ID 444191.1]
    Sample Framework for testing Native Oracle XML DB Web Services [Article ID 803794.1]
    How to Browse Native Oracle XML DB Web Services Example [Article ID 1324235.1]

  • ADF Faces Application without using JDeveloper/TopLink/BC4J

    Hi,
    I want to make a small database driven application using ADF Faces Components without any hlp of JDeveloper, BC4J or Toplink.
    I could not see any document/ sample application which demonstrates creating J2EE application with ADF Faces by avoiding OC4J, JDeveloper IDE & TOPLINK.

    Hi, any luck trying to use adf faces in another IDE besides Jdeveloper?? Please let me know ;)
    thanx.
    T.

  • Creating adf-Faces portlets without using IFrame

    Is there a way we can create portlets with adf-faces that will display inline instead of IFrame? I have been experimenting with portlets creation and the only time the portlet will be rendered inline is when you choose the "generate JSP" at step 3 of the portlet creation wizard. If i select "generate ADF-Faces JSPX" the portlet will be rendered in a IFrame.

    Answer is very easy... You can't!
    The problem is that there will be conflicts between the ADF context of the portlet and the portal. That's why every ADF portlet is rendered by using an iframe. Oracle says they are changing this but it can be a while. Perhaps for this year, maybe later... So currently you can't realy do anything about it...

  • Remote Debugging of OJVM without using JDeveloper

    I need to remotely debug a Java program running in an OJVM started with the following command line:
    java.exe -ojvm -XXdebug,detached,port4000,quiet
    Using Oracle's JDeveloper, which can connect and debug this program, is not an option. The program doing the "debugging" is a home-grown utility that will have very specialized functionality unique to the program its debugging. As of right now we would like to use the plain-vanilla Sun's Hotspot 1.4 JVM, if possible, for the "debugger's" jvm. So, if I can get Sun's jdb.exe to connect to the OJVM then I can get the home-grown "debugger" to work too.
    I know if I change the startup parameters of the debugee java program to this:
    java.exe -classic -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4000 -Xdebug -Xnoagent -Djava.compiler=NONE
    I can get jdb to connect with this:
    jdb -connect com.sun.jdi.SocketAttach:hostname=myhostname,port=4000
    Changing the startup parameters is something that I absolutely, positively want to avoid.
    So what would be the jdb connect string?
    Is it required that the OJVM be installed and used by the PC where jdb is running?
    The debugger would be running under windows 2000 if that's important to know.
    Thanks.

    Hi.
    jdb uses the Java Platform Debugger Architecture (JPDA). See http://java.sun.com/products/jpda for more information. I suspect that your home-grown debugger is built on JPDA.
    Unfortunately, OJVM does not implement JVMDI (Java Virtual Machine Debugger Interface), which is the part of JPDA that a JVM must implement in order to support JPDA.
    So, you are not going to be able to debug with jdb and OJVM together.
    You can use hotspot for the debuggee's JVM by using the following arguments:
    java.exe -client -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4000
    I know you said that you positively want to avoid changing the startup parameters, but if you want to use jdb (or any home-grown debugger built on JPDA), you can't use OJVM. Sorry.
    -Liz Looney

  • Accent marks in Pages. I'm looking for a simple way to employ  accent marks when writing in another language WITHOUT using a different keyboard.

    In Microsoft Word for PC, all one needs to do is hold the CTL key down, press the accent key needed, such as ` or ~ or ' for example, then press the letter key over which the accent should go.  Does Pages and Apple Mail not have such an easy way to do it?  Thanks to anyone who has a better way.

    Type the dead letter and the vowel:
    eg umlat is option u then the vowel = äëïöü
    option i then the vowel = âêîôû
    option e then the vowel i = áéíóú
    option ` (above the tab key) then the vowel = àèìòù
    option n then the letter = ñãõ
    They are characters usually associated with the accent and have been standard on the Mac for decades.
    Peter

  • Choose OU from dropdown list in MDT 2012 without using Lite Touch Wizard??

    Is there a way to adding a dropdown to an hta and javascript file to allow a dropdown selection of the OU's in your AD container. Right now I have set that up with HTML and javascript but it will not succeed in passing the value over. Or is there a way of
    adding a task to the deployment wizard where a dropdown with the xml values of your OU's would show up and prompt? 
    Any other ways of making this work would be accepted. We just don't want to use the Lit Touch Wizard on top of our HTA and java.
    This is my Java code at the moment.
    var oTimer;
    // This is the javascript backend for the The BitLocker FrontEnd HTA - CM12 ver 3.0, Jan, 2013.
    // report bugs, suggestions, corrections, fixes etc to [email protected] or visit windows-noob.com
    // Below are the functions used in the HTA
    function searchcomputer(searchstring ) {
    var WShell = new ActiveXObject("WScript.Shell");
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    oEnvironment("SearchString")=searchstring;
    var oExec = WShell.Run ("cscript //NoLogo " + GetScriptRoot() + "\\wnb\\searchcomputerbyname.wsf", 0, true);
    return oEnvironment("search_Computer");
    function performeComputerSearch() {
    var searchString = '';
    var searchTextBox = document.getElementById('searchstring_association');
    var searchReturnedResult = false;
    Clear the drop down from previous searches and add the first default element to the drop down.
    var el = document.getElementById("destinationComputerList");
    /* Clear drop down list. */
    while(el.options.length > 0)
    el.options.remove(0);
    /* Create first element, showing that the user has to select an element from the drop down list. */
    var opt1 = document.createElement("option");
    el.options.add(opt1);
    opt1.text = 'Select destination';
    opt1.value = '';
    Drop down blanked and first default value is added.
    if( searchTextBox != null ) {
    searchString = searchTextBox.value;
    if( searchString != '' ) {
    searchcomputer(searchString );
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    var currentComputerResourceId = oEnvironment("GetResourceId");
    /* When web service returns process the result. */
    var html = new ActiveXObject("Microsoft.XMLDOM");
    /* Here extract the result from the oEnviroment , remeber to create the oEnviorment object if it's not created before. */
    var result = oEnvironment("search_Computer");
    // alert(result);
    html.loadXML(result);
    /* Retrive all the computers in the search result. */
    var anodes = html.selectNodes("//Resource");
    /* Create drop down elements base on the */
    for (var i=0; i < anodes.length; i++){
    var obsolete = anodes(i).selectSingleNode("Obsolete").text;
    var resourceid = anodes(i).selectSingleNode("ResourceID").text;
    if( obsolete == 'false' && currentComputerResourceId != resourceid ) {
    /* Computer is not Obsolete, added it to the drop down. */
    var name = anodes(i).selectSingleNode("Name").text;
    // alert (name);
    var SMSUniqueIdentifier= anodes(i).selectSingleNode("ResourceID").text;
    var opt = document.createElement("option");
    // Add an Option object to Drop Down/List Box
    el.options.add(opt);
    // Assign text and value to Option object
    opt.text = 'ResourceID: ' + SMSUniqueIdentifier + ', Name: ' + name;
    opt.value = resourceid;
    searchReturnedResult = true;
    if( searchReturnedResult == false ) {
    alert( "Query for '" + searchString + "' didn't return any computer to make association with, please redefine your search string." );
    function makeAssociation () {
    /* Make sure that the user has selected a destination computer. */
    var el = document.getElementById("destinationComputerList");
    var selectedresourceId = el.value;
    if( selectedresourceId == '' ) {
    /* User havn't selected a computer to make association with. */
    alert('No destination computer selected' );
    } else {
    /* Call the other web service to make the association. */
    alert( 'The selected ResourceId is: ' + selectedresourceId);
    var answer = makeAssosiationWebServiceCall(selectedresourceId);
    if(answer == "True" ){
    alert("Successfully Associated Computers");
    } else {
    alert(answer + 'UnSuccessfully Associated Computers');
    function IdentifySCCMDrive()
    var fso = new ActiveXObject("Scripting.FileSystemObject");
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    var drives = new Enumerator(fso.Drives);
    for(drives.moveFirst();!drives.atEnd();drives.moveNext())
    var drive = drives.item();
    if(drive.IsReady && fso.fileexists(drive.path + "\\SMS\\data\\TsmBootstrap.ini"))
    var fileContents = fso.OpenTextFile(drive.Path + "\\SMS\\data\\TsmBootstrap.ini").ReadAll();
    if(fileContents.search("MediaType=FullMedia") > -1)
    oEnvironment("SCCMDRIVE") = drive.Path;
    return drive.Path;
    function makeAssosiationWebServiceCall(dest){
    var WShell = new ActiveXObject("WScript.Shell");
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    oEnvironment("ReferenceComputerResourceId") = oEnvironment("GetResourceId");
    oEnvironment("DestinationComputerResourceId") = dest;
    var oExec = WShell.Run ("cscript //NoLogo " + GetScriptRoot() + "\\wnb\\AddComputerAssociationbyID.wsf", 0, true);
    return oEnvironment("AddComputerAssociationByIDResult");
    function OnLoad()
    var WShell = new ActiveXObject("WScript.Shell");
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    document.getElementById('txtComputerNew').value = oEnvironment("OSDCOMPUTERNAME");
    var oTSProgressUI = new ActiveXObject("Microsoft.SMS.TSProgressUI");
    oTSProgressUI.CloseProgressDialog();
    GetTSVersion();
    GetUSMTVersion()
    IdentifySCCMDrive();
    populateUSMTDropList();
    if(oEnvironment("TPM_Available") == "True")
    document.getElementsByName("RefreshckBoxEnableBitLocker").item(0).disabled = false;
    document.getElementsByName("NewComputerckBoxEnableBitLocker").item(0).disabled = false;
    document.title = "The CM12 BitLocker FrontEnd HTA";
    function inpBoxUser_OnKeyUp(strCaller)
    if(oTimer != undefined)
    window.clearTimeout(oTimer);
    document.getElementById('txtUserRefresh').value = document.getElementById(strCaller).value;
    document.getElementById('txtUserNew').value = document.getElementById(strCaller).value;
    oTimer = window.setTimeout("doADCheck('" + strCaller + "')", 2000);
    function inpBoxComputer_OnKeyUp(strCaller)
    if(oTimer != undefined)
    window.clearTimeout(oTimer);
    // document.getElementById('txtComputerRefresh').value = document.getElementById(strCaller).value;
    document.getElementById('txtComputerNew').value = document.getElementById(strCaller).value;
    oTimer = window.setTimeout("doADCheck('" + strCaller + "')", 2000);
    function doADCheck(strCaller)
    strFullName = GetRealName(document.getElementById(strCaller).value);
    if (strFullName == "NOACCOUNT") {
    document.getElementById('txtUserNew').style.background = "#EC736A";
    document.getElementById('txtUserRefresh').style.background = "#EC736A";
    document.getElementById('txtUserInfoNew').innerHTML = "";
    document.getElementById('txtUserInfoRefresh').innerHTML = "";
    else if(strFullName == "SERVFAIL") {
    document.getElementById('txtUserNew').style.background = "#FFA61C";
    document.getElementById('txtUserRefresh').style.background = "#FFA61C";
    document.getElementById('txtUserInfoNew').innerHTML = "SERVER FAILURE";
    document.getElementById('txtUserInfoRefresh').innerHTML = "SERVER FAILURE";
    else
    document.getElementById('txtUserNew').style.background = "#6EC6F0";
    document.getElementById('txtUserRefresh').style.background = "#6EC6F0";
    document.getElementById('txtUserInfoNew').innerHTML = strFullName;
    document.getElementById('txtUserInfoRefresh').innerHTML = strFullName;
    if (document.getElementById(strCaller).value.length == 0) {
    document.getElementById('txtUserNew').style.background = "#FFFFFF";
    document.getElementById('txtUserRefresh').style.background = "#FFFFFF";
    document.getElementById('txtUserInfoNew').innerHTML = "";
    document.getElementById('txtUserInfoRefresh').innerHTML = "";
    function GetRealName (strUserName)
    var WShell = new ActiveXObject("WScript.Shell");
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    var oExec = WShell.Run ("cscript //NoLogo " + GetScriptRoot() + "\\wnb\\UserNameHelper.wsf /USERNAME:" + strUserName, 0, true);
    return oEnvironment("UserFullName");
    function GetScriptRoot ()
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    return oEnvironment("SCRIPTROOT");
    function Shutdown()
    var WShell = new ActiveXObject("WScript.Shell");
    if(window.confirm("Ok to shutdown?"))
    WShell.Run ("wpeutil shutdown",0, true);
    function Reboot()
    var WShell = new ActiveXObject("WScript.Shell");
    if(window.confirm("Ok to reboot?"))
    WShell.Run ("wpeutil reboot",0, true);
    function closeHTA()
    var WShell = new ActiveXObject("WScript.Shell");
    if(window.confirm("Ok to Exit?"))
    WShell.Run ("wpeutil shutdown",0, true);
    function commandPrompt()
    var WShell = new ActiveXObject("WScript.Shell");
    // if(window.confirm("Open Command Prompt?"))
    WShell.Run ("cmd.exe /k",1, true);
    function cmtrace()
    var WShell = new ActiveXObject("WScript.Shell");
    // if(window.confirm("Open Command Prompt?"))
    WShell.Run ("cmd.exe /k viewlog.cmd",1, true);
    function showreport()
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    alert(oEnvironment("UUID"));
    function GetSCCMAssignedSite()
    var WShell = new ActiveXObject("WScript.Shell");
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    var oExec = WShell.Run ("cscript //NoLogo " + GetScriptRoot() + "\\wnb\\sitecode.wsf", 0, true);
    return oEnvironment("SiteCode");
    function IsComputerKnown()
    var WShell = new ActiveXObject("WScript.Shell");
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    var oExec = WShell.Run ("cscript //NoLogo " + GetScriptRoot() + "\\wnb\\IsComputerKnown.wsf", 0, true);
    return oEnvironment("IsComputerKnown");
    function myFunction()
    var myVal = document.getElementById("ADOU").value;
    var outPut = "";
    switch (myVal) {
    case "1":
    outPut = "OU=Administrative,OU=Workstations,DC=imo-online,DC=com";
    break;
    case "2":
    outPut = "OU=Development,OU=Workstations,DC=imo-online,DC=com";
    break;
    case "3":
    outPut = "OU=External,OU=Workstations,DC=imo-online,DC=com";
    break;
    case "4":
    outPut = "OU=IT,OU=Workstations,DC=imo-online,DC=com";
    break;
    case "5":
    outPut = "OU=Restricted,OU=Workstations,DC=imo-online,DC=com";
    break;
    case "6":
    outPut = "OU=Sales,OU=Workstations,DC=imo-online,DC=com";
    break;
    case "7":
    outPut = "OU=Service Computers,OU=Workstations,DC=imo-online,DC=com";
    break;
    alert(outPut);
    function GetComputerName()
    var WShell = new ActiveXObject("WScript.Shell");
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    var oExec = WShell.Run ("cscript //NoLogo " + GetScriptRoot() + "\\wnb\\GetComputerName.wsf", 0, true);
    return oEnvironment("GetComputerName");
    function GetResourceID()
    var WShell = new ActiveXObject("WScript.Shell");
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    var oExec = WShell.Run ("cscript //NoLogo " + GetScriptRoot() + "\\wnb\\GetResourceID.wsf", 0, true);
    return oEnvironment("GetResourceID");
    function getUserFriendlyBoolValue( value ) {
    if ( value )
    return "Yes";
    else
    return "No";
    function GetTSVersion()
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    sversioninfo = oEnvironment("_SMSTSPackageName");
    sHTML = "Task&nbsp;Sequence&nbsp;&nbsp;=&nbsp;&nbsp;" + sversioninfo ;
    document.getElementsByName('DivTSVersion').item(0).innerHTML = sHTML;
    function GetUSMTVersion()
    var fso = new ActiveXObject("Scripting.FileSystemObject");
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    var drives = new Enumerator(fso.Drives);
    var fileContents = "Unidentified Version"
    for(drives.moveFirst();!drives.atEnd();drives.moveNext())
    var drive = drives.item();
    if(drive.IsReady && fso.fileexists(drive.path + "\\_smstasksequence\\wdpackage\\usmt\\usmt_rulesets_version.txt"))
    fileContents = fso.OpenTextFile(drive.Path + "\\_smstasksequence\\wdpackage\\usmt\\usmt_rulesets_version.txt").Read(25);
    //alert(fileContents);
    sHTML = "USMT&nbsp;RuleSet&nbsp;&nbsp;&nbsp;=&nbsp;&nbsp;" + fileContents ;
    document.getElementsByName('DivUSMTVersion').item(0).innerHTML = sHTML;
    function ShowUSMTVersion()
    var fso = new ActiveXObject("Scripting.FileSystemObject");
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    var drives = new Enumerator(fso.Drives);
    var fileContents = ""
    for(drives.moveFirst();!drives.atEnd();drives.moveNext())
    var drive = drives.item();
    if(drive.IsReady && fso.fileexists(drive.path + "\\_smstasksequence\\wdpackage\\usmt\\usmt_rulesets_version.txt"))
    fileContents = fso.OpenTextFile(drive.Path + "\\_smstasksequence\\wdpackage\\usmt\\usmt_rulesets_version.txt").Read(25);
    alert(fileContents);
    sHTML = "USMT RuleSet&nbsp;&nbsp;=&nbsp;&nbsp;" + fileContents ;
    document.getElementsByName('DivUSMTVersion').item(0).innerHTML = sHTML;
    function ShowVersion()
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    alert('Task Sequence version=' +oEnvironment("_SMSTSPackageName"));
    function populateUSMTDropList()
    var WShell = new ActiveXObject("WScript.Shell");
    var fso = new ActiveXObject("Scripting.FileSystemObject");
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    sHTML = "<option value='NULL'>No Restore</option>\n";
    sHTML = sHTML + "<option value='SMP'>SMP (Requires Computer Association)</option>\n";
    // sUsmtStorePath = "c:\\USMTStores";
    sUsmtStorePath = "\\\\sccm\\USMTStores";
    if(fso.FolderExists(sUsmtStorePath))
    var SubFolders = new Enumerator(fso.GetFolder(sUsmtStorePath).SubFolders);
    for(SubFolders.moveFirst();!SubFolders.atEnd();SubFolders.moveNext())
    var folder = SubFolders.item();
    sLabel = folder.name ;
    sValue = folder.name;
    if (folder.name.toUpperCase() != "X86" && folder.name.toUpperCase() != "X64")
    sHTML = sHTML + "<option value='" + sValue + "'>" + sLabel + "</option>\n" ;
    sHTML = "<select id='shareDropDown' name='shareDropDown'>\n" + sHTML + "</select>";
    // You need to have a <div> in your HTML with the ID and NAME of divCboList
    document.getElementsByName('divUSMTDropDown').item(0).innerHTML = sHTML;
    function buildConfirmationMessage( deploymentType, targetUser, targetComputer, dochkdsk, doBackup, doBackupNetwork, doOffline, regionValue, languageValue, BitLockervalue, ADOU, PreProvBitLockervalue, usmtvalue, AUTOComputerName, SCEPvalueRefresh, SCEPvalueNew, EnableBitLockerRefresh, ADOU, EnableBitLockerNew) {
    var arr = new Array();
    arr[arr.length] = "\r\n";
    arr[arr.length] = "Deployment type variable: ";
    switch(deploymentType) {
    case 0:
    arr[arr.length] = "BACKUPOLD";
    arr[arr.length] = "\r\n";
    arr[arr.length] = "Do CHKDSK: " + getUserFriendlyBoolValue( dochkdsk);
    arr[arr.length] = "\r\n";
    arr[arr.length] = "Do backup: " + getUserFriendlyBoolValue( doBackup);
    arr[arr.length] = "\r\n";
    arr[arr.length] = "Do backupNetwork: " + getUserFriendlyBoolValue( doBackupNetwork);
    arr[arr.length] = "\r\n";
    arr[arr.length] = "Do Offline: " + getUserFriendlyBoolValue( doOffline);
    arr[arr.length] = "\r\n";
    break;
    case 1:
    arr[arr.length] = "REFRESH";
    arr[arr.length] = "\r\n";
    arr[arr.length] = "Do CHKDSK: " + getUserFriendlyBoolValue( dochkdsk);
    arr[arr.length] = "\r\n";
    arr[arr.length] = "Do backup: " + getUserFriendlyBoolValue( doBackup);
    arr[arr.length] = "\r\n";
    arr[arr.length] = "Do backupNetwork: " + getUserFriendlyBoolValue( doBackupNetwork);
    arr[arr.length] = "\r\n";
    arr[arr.length] = "Target user: " + targetUser;
    arr[arr.length] = "\r\n";
    arr[arr.length] = "AUTO-ComputerName: " + getUserFriendlyBoolValue( AUTOComputerName);
    arr[arr.length] = "\r\n";
    arr[arr.length] = "Enable SCEP: " + getUserFriendlyBoolValue( SCEPvalueRefresh);
    arr[arr.length] = "\r\n";
    arr[arr.length] = "EnableBitLockerRefresh: " + getUserFriendlyBoolValue( EnableBitLockerRefresh);
    arr[arr.length] = "\r\n";
    arr[arr.length] = "ADOU: " + getUserFriendlyBoolValue( ADOU);
    arr[arr.length] = "\r\n";
    break;
    case 2:
    arr[arr.length] = "NEWCOMPUTER";
    arr[arr.length] = "\r\n";
    arr[arr.length] = "RegionValue: " + regionValue;
    arr[arr.length] = "\r\n";
    arr[arr.length] = "LanguageValue: " + languageValue;
    arr[arr.length] = "\r\n";
    arr[arr.length] = "Target user: " + targetUser;
    arr[arr.length] = "\r\n";
    arr[arr.length] = "Target computer: " + targetComputer;
    arr[arr.length] = "\r\n";
    arr[arr.length] = "AUTO-ComputerName: " + getUserFriendlyBoolValue( AUTOComputerName);
    arr[arr.length] = "\r\n";
    arr[arr.length] = "Enable SCEP: " + getUserFriendlyBoolValue( SCEPvalueNew);
    arr[arr.length] = "\r\n";
    arr[arr.length] = "EnableBitLockerNew: " + getUserFriendlyBoolValue( EnableBitLockerNew);
    arr[arr.length] = "\r\n";
    arr[arr.length] = "BitLockerdropdown: " + BitLockervalue;
    arr[arr.length] = "\r\n";
    arr[arr.length] = "\r\n";
    arr[arr.length] = "Pre-Provision BitLocker: " + PreProvBitLockervalue;
    arr[arr.length] = "\r\n";
    arr[arr.length] = "USMTdropdown: " + usmtvalue;
    arr[arr.length] = "\r\n";
    break;
    return "Please make sure your selections are ok before proceeding.\nYour Choices:-\n" + arr.join('');
    function Proceed(actionToPerform) {
    var deploymentType = '';
    var targetUser = '';
    var targetComputer = '';
    var dochkdsk = '';
    var doBackup = '';
    var doBackupNetwork = '';
    var AUTOComputerName = '';
    var EnableBitLockerRefresh = '';
    var ADOU1 = '';
    var EnableBitLockerNew = '';
    var doOffline = '';
    var regionValue = '';
    var languageValue = '';
    var BitLockerValue = '';
    var PreProvBitLockerValue = '';
    var SCEPvalueRefresh = '';
    var SCEPvalueNew = '';
    var SCEPvalue = '';
    var usmtvalue = '';
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    // Extract the values.
    switch (actionToPerform) {
    case 'Backup':
    // alert( 'You have chosen Backup.');
    deploymentType = 0;
    dochkdsk= document.getElementById('ckchkdsk').checked;
    doBackup= document.getElementById('ckBoxFullBackup').checked;
    doBackupNetwork= document.getElementById('ckBoxFullBackupNetwork').checked;
    doOffline= document.getElementById('ckBoxDoOffline').checked;
    break;
    case 'Reinstall':
    // alert( 'You have chosen Reinstall.');
    deploymentType = 1;
    dochkdsk= document.getElementById('Refreshckchkdsk').checked;
    doBackup= document.getElementById('RefreshckBoxFullBackup').checked;
    doBackupNetwork= document.getElementById('RefreshckBoxFullBackupNetwork').checked;
    doOffline= true;
    if(document.getElementById('txtUserRefresh').value)
    targetUser = document.getElementById('txtUserRefresh').value;
    else
    targetUser = "EMPTY";
    // targetUser = document.getElementById('txtUserRefresh').value;
    AUTOComputerName= document.getElementById('RefreshckBoxAUTO-ComputerName').checked;
    SCEPvalue= document.getElementById('SCEPckBoxRefresh').checked;
    EnableBitLockerRefresh= document.getElementById('RefreshckBoxEnableBitLocker').checked;
    ADOU= document.getElementById('ADOU').checked;
    break;
    case 'Newcomputer':
    // alert( 'You have chosen New computer.');
    deploymentType = 2;
    var regionDrop = document.getElementById('regionDropDown');
    var languageDrop = document.getElementById('languageDropDown');
    var BitLockerDrop = document.getElementById('BitLockerDropDown');
    var usmtdrop = document.getElementById('shareDropDown');
    // added code to give targetUser a value if none entered
    if(document.getElementById('txtUserNew').value)
    targetUser = document.getElementById('txtUserNew').value;
    else
    targetUser = " ";
    // added code to give targetComputer a value if none entered
    if(document.getElementById('txtComputerNew').value)
    targetComputer = document.getElementById('txtComputerNew').value;
    else
    targetComputer = oEnvironment("OSDCOMPUTERNAME");
    //AUTOComputerName = document.getElementById('ComputerNewckBoxAUTO-ComputerName').checked;
    SCEPvalue= document.getElementById('SCEPckBoxNew').checked;
    EnableBitLockerNew = document.getElementById('NewComputerckBoxEnableBitlocker').checked;
    BitLockerValue = BitLockerDrop.options[BitLockerDrop.selectedIndex].value;
    ADOU1 = ADOU.options[ADOU.selectedIndex].value;
    PreProvBitLockerValue = document.getElementById('ckBoxPreProvBitLocker').checked;
    usmtvalue = usmtdrop.options[usmtdrop.selectedIndex].value;
    break;
    default:
    // keep the values case sensitive !! If no type, Backup, Reinstall or New computer image is selected, the click on the Proceed
    // image will excute this section (between default: and break;. Keep it clear but DON'T remove the break.
    // alert("'" + actionToPerform + "' isn't a valid selection.");
    return;
    break;
    // Ask user if the values are ok to proceed with.
    if(window.confirm( buildConfirmationMessage(deploymentType, targetUser, targetComputer, dochkdsk, doBackup, doBackupNetwork, doOffline, regionValue, languageValue, BitLockerValue,PreProvBitLockerValue, usmtvalue, AUTOComputerName, SCEPvalue, SCEPvalue, ADOU, EnableBitLockerRefresh, EnableBitLockerNew) ) ) {
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    window.moveTo(2000,2000);
    var WShell = new ActiveXObject("WScript.Shell");
    switch(deploymentType) {
    case 0 :
    oEnvironment("DEPLOYMENTTYPE") = "BACKUPOLD";
    oEnvironment("DOCHKDSK") = dochkdsk;
    oEnvironment("DOBACKUP") = doBackup;
    oEnvironment("DOBACKUPNETWORK") = doBackupNetwork;
    oEnvironment("DOOFFLINE") = doOffline;
    break;
    case 1:
    oEnvironment("DEPLOYMENTTYPE") = "REFRESH";
    oEnvironment("DOCHKDSK") = dochkdsk;
    oEnvironment("DOBACKUP") = doBackup;
    oEnvironment("DOBACKUPNETWORK") = doBackupNetwork;
    oEnvironment("TARGETUSER") = targetUser;
    oEnvironment("DOOFFLINE") = doOffline;
    oEnvironment("AUTOComputerName") = AUTOComputerName;
    oEnvironment("SCEPvalue") = SCEPvalue;
    oEnvironment("EnableBitLockerRefresh") = EnableBitLockerRefresh;
    oEnvironment("ADOU1") = ADOU;
    break;
    case 2 :
    oEnvironment("DEPLOYMENTTYPE") = "NEWCOMPUTER";
    oEnvironment("RegionValue") = regionValue;
    oEnvironment("LanguageValue") = languageValue;
    oEnvironment("TARGETUSER") = targetUser;
    oEnvironment("OSDCOMPUTERNAME") = targetComputer;
    oEnvironment("AUTOComputerName") = AUTOComputerName;
    oEnvironment("SCEPvalue") = SCEPvalue;
    oEnvironment("EnableBitLockerNew") = EnableBitLockerNew;
    oEnvironment("BitLockerValue") = BitLockerValue;
    oEnvironment("PreProvBitLockerValue") = PreProvBitLockerValue;
    oEnvironment("uddir") = usmtvalue;
    break;
    if(oEnvironment("_SMSTSMEDIATYPE") && oEnvironment("_SMSTSMEDIATYPE") == "FullMedia") {
    oEnvironment("OSDStateStorePath") = oEnvironment("SCCMDRIVE") + "\\DiskBackups";
    window.setTimeout('window.close()', 2000);

    My issue is it wont complete the task and have to shut down the deployment. 
    I am not sure what I am doing wrong in my java function that is not outputting these OU containers.
    The movetocomputerOU is specified in the customsettings.ini file below
    [MoveComputerToOU]
    WebService=http://server/Deployment/ad.asmx/MoveComputerToOU
    Parameters=OSDComputerName,MachineObjectOU
    OSDComputerName=ComputerName
    MachineObjectOU=OUPath
    function MyFunction()
    var myVal = document.getElementById("ADOU").value;
    var outPut = "";
    switch (myVal) {
    case "1":
    outPut = "OU=Administrative,OU=Workstations,DC=imo-online,DC=com";
    break;
    case "2":
    outPut = "OU=Development,OU=Workstations,DC=imo-online,DC=com";
    break;
    case "3":
    outPut = "OU=External,OU=Workstations,DC=imo-online,DC=com";
    break;
    case "4":
    outPut = "OU=IT,OU=Workstations,DC=imo-online,DC=com";
    break;
    case "5":
    outPut = "OU=Restricted,OU=Workstations,DC=imo-online,DC=com";
    break;
    case "6":
    outPut = "OU=Sales,OU=Workstations,DC=imo-online,DC=com";
    break;
    case "7":
    outPut = "OU=Service Computers,OU=Workstations,DC=imo-online,DC=com";
    break;
    alert(outPut);

  • Deploying Standard JSR 168 Portlets Without JDeveloper

    Is there a way to deploy standard JSR 168 portlets without using JDeveloper?

    Yes,
    You can use the Enterprise Manager web-app to do it, or you can do it from the command line on the server you want to deploy it to, or you can do what we do,
    which is use an ant task which uses the jar from jdeveloper to do the deployment.
    The tools dont care if it is a jsr 168 portlet or not, it just knows how to deploy an ear.
    Let me know if you would like to see the ant task.
    -sean
    ================================================
    Solutions Architect
    http://www.sagelogix.com

  • Error while deploying a JSR 168 portlet developed in JDeveloper 10.1.3.2

    When deploying a JSR 168 portlet created using JDeveloper 10.1.3.2 (Web Center Suite edition), I get the error :
    "Shared library "oracle.wsrp" could not be found."
    Error Log:
    ---- Deployment started. ---- Sep 20, 2007 9:31:42 AM
    Target platform is Oracle Application Server 10g 10.1.3 (PolestarAppServerConnection).
    Wrote WAR file to C:\Projects\eAlliance\JSR168\ViewController\deploy\jsr168.war
    Wrote EAR file to C:\Projects\eAlliance\JSR168\ViewController\deploy\jsr168.ear
    Backing up generic archive file :/C:/Projects/eAlliance/JSR168/ViewController/deploy/jsr168_generic.ear
    Creating WSDLs for the WSRP Application
    WSDLs for the WSRP Application have been created
    Uploading file jsr168.ear ...
    Uploading file jsr168.ear ...
    Application Deployer for jsr168 STARTS.
    Copy the archive to /home/soahome/orasoa/j2ee/home/applications/jsr168.ear
    Initialize /home/soahome/orasoa/j2ee/home/applications/jsr168.ear begins...
    Unpacking jsr168.ear
    Done unpacking jsr168.ear
    Unpacking jsr168.war
    Done unpacking jsr168.war
    Initialize /home/soahome/orasoa/j2ee/home/applications/jsr168.ear ends...
    Starting application : jsr168
    Initializing ClassLoader(s)
    application : jsr168 is in failed state
    Operation failed with error:
    Shared library "oracle.wsrp" could not be found.
    Deployment failed
    Elapsed time for deployment: 39 seconds
    #### Deployment incomplete. #### Sep 20, 2007 9:32:21 AM
    Steps To recreate the error:
    1)Create a new Application in JDeveloper
    2)Click "New" in "ViewController" and click on WebTier->Portlets->Standards based(JSR 168) from the wizard.
    3)Go thru JSR 168 Portlet wizard steps 1 thru' 8 accepting all defaults.
    4)Click "New" in "ViewController" and click on General->Deployment Profiles->WAR File from the wizard.
    5)Enter a name and hit OK. Then in the "WAR Deployment Profile Properties" page, select "Specify J2EE Web Context Root" and enter the name similar to what is in the "Enterprise application name" text box in the same screen. Hit OK.
    6)Right click on the deploy file created under "Resources" and select "Deploy to AppServer" (I am deploying to a remote 10.1.4 Portal Server that has already been configured in my connections tab.
    7)Note the above noted error message in the Deployment Log tab.
    Can you give me any suggestions?
    Thanks,
    Bipin Raj

    Does the \j2ee\home\shared-lib directory contain a directory oracle.wsrp?
    Does the <OC4J_HOME>/j2ee/home/config/server.xml file contain a shared-lib declaration for oracle.wsrp?
    <shared-library name="oracle.wsrp" version="1.0">
    <code-source path="wsrp-container.jar"/>
    <code-source path="wsrp-types.jar"/>
    <code-source path="wsrp-jaxb.jar"/>
    <code-source path="jaxb-api.jar"/>
    <code-source path="jaxb-impl.jar"/>
    <code-source path="jaxb-libs.jar"/>
    <code-source path="namespace.jar"/>
    <code-source path="xsdlib.jar"/>
    <code-source path="relaxngDatatype.jar"/>
    <import-shared-library name="oracle.gdk"/>
    <import-shared-library name="oracle.xml"/>
    <import-shared-library name="oracle.jdbc"/>
    <import-shared-library name="oracle.cache"/>
    </shared-library>

  • Can we create a Portal without Spaces using JDeveloper ?

    Hi
    Is it possible to have Portal without Webcenter Spaces (collaboration) component for WebCenter but I do require a portal with the Administration functionality found in the WL_Spaces managed Server. For instance, securing pages/portlets, LDAP/OAM integration, exchange integration, UCM integration, configuration with WSRP portlets on WL_Portlet and analytics configuration with WL_Utiltiies. Can we create a new portal (one without Spaces) using JDeveloper and create a managed server?
    Cheers
    Khad

    Yes you can!
    WebCenter is more than just WebCenter Spaces.
    WebCenter Spaces is just one part, another part is the WebCenter Portal which is an application in JDeveloper. You might want to read my tutorial: http://www.yonaweb.be/webcenter_tutorial/introduction it explains how to build such a portal.
    All the connections you make in the enterprise manager, can also be configured in JDeveloper so you can also use UCM, mail server, portlets and so on in WebCenter Portal application in JDeveloper.
    It is common practice to create a new managed server on your domain to deploy the custom WebCenter Portal application. You can also manage the connections to the different service from within the enterprise manager, just as you do with spaces.

  • Inter Portlet communication without using workshop

    Hi
    Does any one have any luck trying to do inter portlet communication without using weblogic workshop IDE?

    Hi Curt,
    WLP's eventing system is designed such that portlet's don't have to care
    whether the source/destination is local or remote. If you have a portlet
    that fires/consumes events, when you create a proxy portlet on a
    consumer, the portlet on the producer will be able to fire and receive
    events without any changes to it. In this scenario, the proxy portlets
    work with the WLP's event runtime to collect and dispatch events on
    behalf of portlets on the producer. Going forward, WSRP 2.0 and
    JSR168-next's eventing models will be mapped to the same WLP event runtime.
    Subbu
    Curt Smith wrote:
    Thanks Subbu for your enlightenment here and in this group!!
    You mentioned my next quest, WSRP'ifying my portlet & IPC system.
    Can you suggest an WSRP example anywhere on the net or in bea?
    I guessing that suitability of IPC is also a function of whether the portlets are the remote portlets or the local portlets.
    Might a non-Bea IPC choice be usable within the local portlets, which are WSRP clients to stand alone remote portlets?
    I can imagine now that you mention it that the remote WRSP producer portlets can't use just any IPC facility and the events be pushed inband to the consumer portal...
    tnx curt

  • Developing portlet without JDeveloper

    I would like to develop a portlet using the JPDK. The Portal Developer's Guide (b14134.pdf) explains how to do it using JDeveloper, however, I want to do it manually, without JDeveloper. Does anyone know where this procedure might be documented, i.e. explaining the various parts of all of the configuration files, and where they go in the WAR file?

    The Packaging and Deploying Your Providers article explains what you're looking for.
    Peter

  • Creating Java Portlets without JDeveloper

    I am using Oracle AS 10g, and Portal. I have looked at the Portal Dev Guide (9.0.4), and have not found any information on how to create and deploy Java portlets without the use of JDeveloper. I was able to do this using earlier versions of Portal and JPDK.
    Does anyone know of any documentation that could help me with this? Thanks.

    I think this is the article you're looking for: Packaging and Deploying Your Providers.
    Peter

Maybe you are looking for

  • Umstieg von Win auf mac mit cs6

    Ein freundliches Hallo an die Mitarbeiter von Adobe, vor etwa einem Jahr habe ich eine Win CS6 Studentenversion erworben und nutze sie täglich tatkräftig für meine Projekte. Inzwischen die Zeit reif für einen neuen Rechner. Dabei denke ich über einen

  • Use of wildcharacter in DELETE DATASET dsn

    Hi All, I have a situation where I have to delete a file from application server at runtime while executing a report. But the problem is I don't know exact filename. But I know first few characters of file which will be always same. So my question is

  • How to remove xmls from output?

    Hello All, I have created a BPEL process that takes a flat file and converts to an XML file. I get an output of the following (see below). Is there a way that I can remove xmlns="" from the output? Incorrect Output <?xml version="1.0" encoding="UTF-8

  • Catch text in sapscript into a variable

    Hi , Present  in sapscript printing text  once  this command trigger INCLUDE &VBDPA-TDNAME& OBJECT VBBP ID 0001 NEW-PARAGRAPH ZI but I want to catch  this text in a variable further validation. How should i catch this text? Thanks, Asha

  • Acccount determination issue

    Hi SD experts. I have the following issue. I have two new pricing conditions ZIIB and ZII1 that I have to do account determination. For these conditions I have created two new account key ( ZII and ZIO) and assigned in price procedure. After this I h