Import-Module WebAdministration question

Hello all:
I am writing a script that will copy files to a local root directory for a web app we have.  Once this is done, I want to refresh the application pool.  In reading on the process, I believe I would have to import the WebAdministration module in
order to do so.  Can anyone confirm this and 2) what exactly happens when I use the Import-Module WebAdministration?  Does it do anything to my server?  Or does it just import it into powershell for use? We are running Win 2008 R2.  I want
to make sure it doesn't mess up our application.
Thanks,
jocasio

Hi,
Using Import-Module WebAdministration will make the following cmdlets available to you in your current PowerShell session only:
http://technet.microsoft.com/en-us/library/ee790599.aspx
No changes are made to the server, so no worries there.
Don't retire TechNet! -
(Don't give up yet - 12,830+ strong and growing)

Similar Messages

  • When i am trying to create a report(using graph) in Word97 using Report generation Toolkit from Labview it's giving error in word import Module.vi that no such interface is supported could anyone help me out to solve this problem

    Word import Module.vi is trying to call Vb project and VB components thru active X controls when it's trying to call Vb components it's giving the error no such interface found..I am using Labview 6,MSoffice97,Graph8

    Hi Adam,
    It seems that there have been a couple other instances of the same error occurring and the problem is a conflict that occurs with the Office 97 only. Somehow the MS Office type library has been modified and this is causing incompatibilities with MS Office 97. Have you installed any other application on top of MS Office that plugs into MS Office tools – Adobe Acrobat, Visio, Reflection?? If so, you will want to see about uninstalling or reinstalling those utilities and then reinstalling Office 97 to restore the original MS Office 97 type library.
    Also, if you have a newer version of MS Office, I would highly recommend upgrading your computer. It seems that this problem is only with Office 97 and later versions of Office do not have this issue.
    Thanks again for bringing this question up.
    Kileen

  • Functions from Module Scoping Question

    Hello,
    I have the following case:
    I`m using module that contains several functions, some of them are executing commends in remote sessions. These functions are used from Powershell Script.
    The issue is that when function refers to variable from the local computer using the “$Using:var” syntax, it does not tries to access the variables that is defined in Script scope.
    The exception is:
    “Invoke-Command : The value of the using variable ‘$using:var’ cannot be retrieved because it has not been set in the local session.”
    This behavior is not reproduced when the functions are defined in the Script. I`m aware that Modules have their own “Scope”(or Context or whatever…), so I suppose the behavior is by design
    I`m able to workaround it in two ways:
    Using the “$Using:global:var” syntax in the script block or dot source the script.
    However it`s not so appropriate for my purpose.
    My Question is:
    Can I force the Functions that comes from Module to behave the same way as if they are defined in the Script.
    Any other suggestions are welcome.
    Some examples:
    Module content:
    function Main
    param
    $sb2
    $ses = New-PSSession -ComputerName sof-srv01
    Execute -ses $ses -sb $sb2
    function Execute
    param (
    $sb,
    $ses
    Invoke-Command -Session $ses -ScriptBlock $sb
    Export-ModuleMember Execute,Main
    Script content:
    $var = ‘winrm’
    $scr = {Get-Service $using:var}
    Main -sb2 $scr

    You're wrong as always: there's such a thing as DOT SOURCING MODE when using Import-Module.
    Finally, you must know by now, that your post above is plain RUBBISH. 
    In other words, you are a complete PowerShell ignorant ( probably, you are a good rubbishellian ). 
    Surely, you re-read your BUGGY bug report https://connect.microsoft.com/PowerShell/feedback/details/828782/functions-in-script-modules-do-not-inherit-variables-from-the-scope-of-their-caller.
    Now, someone posted how-to-do-it ...
    I have no idea WHERE and WHY you got these three letters: m, v and p...
    P.S.: How do you dare to post your rubbishell concepts in my reports? Leave my posts
    clean!
    Well, at least you finally had the guts to post what you meant by "Import-Module in DOT SOURCING MODE".  As expected, it's garbage.
    As you've pointed out, when you pass a path to a .ps1 file to Import-Module, it recognizes that a .ps1 file is not a module, and just dot-sources the script to load its contents instead.  (And as you pointed out in your report on connect, this behavior
    is buggy.  Microsoft probably shouldn't have included it at all, and just had Import-Module produce an error if you try to point it as a non-module file, but whatever.  The functionality is there now.)
    Any discussion of Script Modules has nothing do with dot-sourcing a ps1 file, regardless of whether you did it yourself, or called Import-Module.  Script Modules are psm1 files, and when they are imported, it happens in a very different way than when
    a script is dot-sourced.  Modules get their own session state which is separate from the main PowerShell session (except for the Global scope, which is shared by everything).  That separation of session state is what leads to the types
    of problems the OP posted here.
    Now that you've finally owned up to what you were talking about, it would appear that your proposed solution is to stop using Script Modules, and just dot-source ps1 files instead.  Have fun with that.

  • Function module - basic questions

    Hi Experts ,
    I wanted to know some basic concepts of the function module :
    My question is :
    1) What is the "Type ref " in a function module import or export ?
    2) An example of a standard function module where type ref is used.
    3) What is the use of changing tab ? what do we use this tab for ?
    4) An example of a standard function module where a parameter is declared in Changing tab.
    5) what is the use of a Exception tab ? is it any thing similar to exceptions in java ?? can you throw the excetion and write a common code in a catch to handle the exception ?
    Can anyone help me ?
    Regards,
    Ashish Shah

    Hi
    Hi,
    Function Modules;
    Check this matter.
    Function Modules are Glopbal ABAP programs created by SAP for reusable purpose.they have IMPORT,EXPORT and TABLE parameters, and EXCEPTIONS to through when error occurs.
    You can create them from TCode SE37.
    Go through the following doc:
    Function modules are cross-program, reusable procedures that are organized into function groups, and whose functions are implemented between the statements FUNCTION and ENDFUNCTION. Function modules and their interfaces are created in the Function Builder.
    Function Module Interfaces
    The parameter interface of a function module is defined in the Function Builder. It includes the definition of interface parameters and the specification of exceptions that can be triggered by a function module. The Function Builder automatically generates comment lines below the FUNCTION statement in the source code of the function module, which represent the interface of the function module with the following syntax:
    Syntax
    ... [IMPORTING parameters]
    [EXPORTING parameters]
    [CHANGING parameters]
    [TABLES table_parameters]
    [{RAISING|EXCEPTIONS} exc1 exc2 ...]
    The syntax and semantics of IMPORTING, EXPORTING, CHANGING, RAISING, and EXCEPTIONS mainly correspond to the definition of method interfaces with [CLASS-]METHODS. The additional option of defining table parameters using TABLES is obsolete.
    Interface parameters
    The interface parameters are defined on the relevant tab pages in the Function Builder.
    IMPORTING parameters are input parameters. When the function module is called, a suitable actual parameter must be specified for every non-optional input parameter. The content of the actual parameter is passed to the input parameter when the call is made. The content of an input parameter for which 'pass by reference' is defined cannot be changed in the function module.
    EXPORTING parameters are output parameters. When the function module is called, a suitable actual parameter can be specified for every output parameter. The content of an output parameter that is defined for 'pass by value' is transferred to the actual parameter if the function module is completed without errors. An output parameter that is defined for pass by reference is not initialized when the function module is called.
    CHANGING parameters are input and output parameters. When the function module is called, a suitable actual parameter must be specified for every non-optional input or output parameter. When the function module is called, the content of the actual parameter is passed to the input/output parameter, and when the function module is completed, the content of the input/output parameter is passed to the actual parameter.
    TABLES parameters are table parameters. Table parameters are obsolete CHANGING parameters that are typed as standard tables with a header line. If an internal table without a header line or a table body is passed as an actual parameter to a formal parameter of this type, an empty local header line is generated in the function module. If an internal table with a header line is used as an actual parameter, both the table body and the header line are passed to the function module. Pass by value is not possible in formal parameters defined using TABLES. Formal parameters defined with TABLES can be replaced by formal parameters defined with CHANGING. A local work area can be created for the internal table in the function module by using the addition LIKE LINE OF itab of the DATA statement.
    Exceptions
    The exception of a function module are defined on the Exceptions tab page in the Function Builder. Here you can select exception classes to define whether class-based exceptions are declared or non-class-based exception are defined. Class-based exceptions are represented in the above syntax by RAISING, and non-class-based exceptions are represented by EXCEPTIONS.
    The addition RAISING is used to declare class-based exceptions that can be propagated from the function module to the caller. Exceptions in the categories CX_STATIC_CHECK and CX_DYNAMIC_CHECK must be explicitly declared, otherwise a propagation can lead to an interface violation. A violation of the interface leads to the treatable exception CX_SY_NO_HANDLER. Exceptions of the category CX_NO_CHECK are implicitly always declared. The declaration of exceptions of the category CX_STATIC_CHECK is statically checked in the syntax check. For exceptions of the category CX_DYNAMIC_CHECK, the check is not performed until runtime. In a function module in which class-based exceptions are declared with the RAISING addition, the statement CATCH SYSTEM-EXCEPTIONS cannot be used. Instead, the relevant treatable exceptions should be handled in a TRY control structure.
    The addition EXCEPTIONS is used to define a list of non-class-based exceptions that can be triggered in the function module using the statements RAISE or MESSAGE RAISING. Exceptions defined in this way - as with formal parameters - are bound to the function module and cannot be propagated. If an exception of this type is triggered in a function module, and no return value has been assigned to it with the homonymous addition EXCEPTIONS of the CALL FUNCTION statement when the call was made, this leads to a runtime error.
    Note
    For new developments after release 6.10, SAP recommends that you work with class-based exceptions that are independent of the function module.
    RFC is a technology which is used to access a functions (Modules) from
    the remote systems.
    If a function module is set as remote enabled which can be access from
    the remote system via RFC.Eg: U can access the Remote enabled function modules in ur VB,Webdynpro,Java,Visual composer program.
    A function module can be set as remote enabled by SE37->Go to ur FM->click the option Button "remote enabled".
    But Normal function modules can not accessd from the remote system.
    Good Example for RFC enabled function module is : BAPI(Business Application Programming Interface)
    Note: All BAPIs are Remote enabled but not all remote enabled function modules are BAPI.
    CALLING A FUNCTION MODULE:
    1)In U ABAP Editor --> Click "Patter" ---> Selection Option Button "Call Function"
    --> Write the Corresponding FM name --> Hit Enter
    2)The appropriate import ,export Parameters will be displayed in ur editor
    3)Pass the Values Here.
    Also check these links.
    Check this link:
    http://help.sap.com/saphelp_erp2004/helpdata/en/9f/db988735c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/d94b78ebf811d295b100a0c94260a5/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/41341147041806e10000000a1553f6/frameset.htm
    Check this link:
    http://help.sap.com/saphelp_erp2004/helpdata/en/9f/db988735c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/d94b78ebf811d295b100a0c94260a5/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/41341147041806e10000000a1553f6/frameset.htm
    See the following links:
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db970e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db970e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db970e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db970e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db970e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm
    Regards,
    Sree

  • Import-Module NTFSSecurity error

    I downloaded the ZIP file from: https:// gallery technet microsoft com/scriptcenter/1abd77a5-9c0b-4a2b-acef-90dbb2b84e85
    created a folder "NTFSSecurity" in C:\Users\username\Documents\WindowsPowerShell\Modules\
    copied the files in the ZIP file there
    Added Roles and Features to the fileserver
    WebServer (IIS)
    .Net Framework 3.5.1. Features
    Windows Process Activation Service
    set-executionpolicy UnRestricted
    Import-Module NTFSSecurity
    Import-Module : The following error occurred while loading the extended type data file:
    Microsoft.PowerShell, C:\Users\username\Documents\WindowsPowerShell\Modules\NTFSSecurity\NTFSSecurity.types.ps1xml
    : File skipped because it was already present from "Microsoft.PowerShell".
    Microsoft.PowerShell, C:\Users\username\Documents\WindowsPowerShell\Modules\NTFSSecurity\NTFSSecurity.types.ps1xml
    : File skipped because it was already present from "Microsoft.PowerShell".
    At line:1 char:14
    + Import-Module <<<<  NTFSSecurity
        + CategoryInfo          : InvalidOperation: (:) [Import-Module], RuntimeException
        + FullyQualifiedErrorId : FormatXmlUpateException,Microsoft.PowerShell.Commands.ImportModuleCommand
    can someone please tell me what I am doing wrong?
    With regards,
    Wim van Esch

    The name is already in use.  Use a differnt name.
    Start with Get=Module NTFSSecurity.
    YOu likely have more than one.
    ¯\_(ツ)_/¯

  • Programmatic use of Powershell Import-Module fails

    Hi all,
    I've just start to try out Win 8 and have come across a problem with use of Powershell from C#. When trying to run the following in a pipeline:
    Import-Module -Name ServerManager
    a failure is reported that states that the module cannot be loaded due to the manifest containing one or more invalid members. In this case it's the HelpInfoUri that is causing the problem. I did some trawling and found out that this exact same problem was
    reported for the Win 8 Client.
    Is there a workaround that allows v3.0 of Powershell to be used by the C# code (which will load the module as that appears to be what happens when running powershell.exe) rather than v2.0?
    Edit: Forgot to mention, this is with the code compiled to .Net v3.5 rather than v4.0 (which works).
    Cheers!

    Actually this doesn't work in a programmatic environment, for example, attempting to execute the cmdlet "Get-WindowsFeature" results in a CommandNotFoundException being raised, whereas when run from powershell.exe it does work as stated.
    The problem I am seeking an answer to is how to get a program that calls powershell using the C# api, that has a need to be compiled under .Net 3.5 such that it can run on non- .Net 4 powershell 3.0 environments and has a supportedRuntime element in its
    config file set to v2.0, to work when it tries to import a module when it happens to be run on a .Net 4 powershell 3.0 environment that has .Net 3.5 installed, like Windows 8 Server Beta.

  • In Windows Server 2008 : Powershell can't import-module ActiveDirectory

    Hi,
    Thank you in advance for any possible help.
    I am using Windows Server 2008 with a x64 machine and I have Powershell 3.0.
    After searching for similar problems, I found that I have to install the patches KB969166, KB968934, KB967574, KB968930.
    This was done and as a result, the "Web Service Active Directory" appeared in "services".
    However, the "ActiveDirectory Module for Windows Powershell"  is still not visible in "Windows Features" .
    What can I do to make it appear ?
    Is there a different way to go so I can have "ActiveDirectory" module in the list of modules I can import in Powershell 3.0 ?
    Actually, the command "import-module ActiveDirectory" results in a Not Found error.
    I would really appreciate your help.
    Thank you !
    Bill

    Hi Bill,
    You can't use the Active Directory module on WS2008, it requires WS2008R2 at a minimum.
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • SQL Server 2012 Import-Module 'sqlps' breaks the "Test-Path" PowerShell cmdlet

    I've run into something that is "very" frustrating with the new SQL Server 2012 PowerShell module.  When I Import the module, it breaks the "Test-Path" cmdlet when trying to test a UNC path to a directory.
    For example:  
    "Test-Path -path \\server\dirname" returns true as expected before the sqlps module is imported.  But after you import the SQL Server module "Import-Module 'sqlps' –DisableNameChecking" the same Test-Path
    now returns false.
    If I run the following in Windows PowerShell ISE I see the following results:
    Test-Path -path "\\server\directoryname"
    Import-Module 'sqlps' –DisableNameChecking
    Test-Path -path "\\server\directoryname"
    True
    False
    Anyone have any idea what's going on?
    UPDATE: after more testing, it looks like the problem happens with any cmdlet that references a UNC.  The New-Item has the same problem.  Before importing 'sqlps', New-Item is able to create a directory at the UNC path specified, but ater importing
    'sqlps', the New-Item fails.
    Thanks!

    Hi Mikea730,
    Sqlps.exe doesn't take advantage of a couple of these nice PowerShell V2 cmdlets without doing a bit of configuring in your environment. 
    Please refer to the following references to make some configuration in your server
    http://www.maxtblog.com/2010/11/denali-get-your-sqlpsv2-module-set-to-go/
    http://www.simple-talk.com/sql/database-administration/practical-powershell-for-sql-server-developers-and-dbas-%E2%80%93-part-1/
    http://sev17.com/2010/07/making-a-sqlps-module/
    Thanks,
    TechNet Subscriber Support
    If you are
    TechNet Subscription user and have any feedback on our support quality, please send your feedback
    here.
    Iric Wen
    TechNet Community Support

  • Imported modules missing titles

    Hello, all,
    Hopefully, someone has experienced this issue before and can shed some light on the subject, and, hopefully, a viable solution...
    This is a different title issue than I've previously posted (these modules all had correct titles, and no mysterious rewrite of the resources path)...
    We have an application, Main, that acts as a "host" for indiviual nested modules/apps (JAR files)... For instance, Main has the MainModel and MainViewController, and the running app displays Acquisitions, Disposals, and RAP Application modules as tabs. We've placed the paths to the individual ApplicationResources_en.properties, separated by commas, in the "Imported Resource Bundles" property under "Internationalization" in the JHS App Def Editor.
    We had titles showing up, and then one day they stopped, for all but one (RAP Application)... We've been trying to diagnose the issue (hopefully, we just changed a setting on accident), but everything appears to be set up correctly, and we still need to keep merging/importing modules as they are completed in order to meet the deadline...
    We added Management, and RAP still had the only titles... Once we added Work Assignment, though, only the Work Assignment tab would show titles. Then we added Hotline, but Work Assignment still had the only titles... Maybe it's just coincidence, but it seems the last tab name in the alphabet gets titles...
    We're experimenting with a workaround (will post it, if it resolves the issue), but we'd really prefer to get the process to work as described in the documentation...
    Once again, thank you for any replies/advice/assistance...
    Happy Thoughts,
    --DaveB
    "Most people are about as happy as they make up their minds to be."
    --Abraham Lincoln                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Thanks, Steven!
    One of our other developers found that little nugget of knowledge in his research of the issue... Once we deployed them all without the JhsCommon-beans.xml, all was well... :-)
    We also had some server log warnings popping up about duplicate pageDef identifiers for all of the UIShell and PopupShell pageDefs that JHS generates. We fixed that issue by givng them all unique names in each module's DatBindings.cpx before deploying the module(s) as JAR files and importing the libraries...
    I was coming back here to post the solution, but you beat me to it... Many thanks for the reply, though!
    Happy Thoughts,
    --DaveB
    "Most people are about as happy as they make up their minds to be."
    -- Abraham Lincoln

  • 2.3.10 "import module" XmlResolver bug

    Hello,
    I upgraded my application what uses Java bindings from Berkeley DB XML 2.2.13 to 2.3.10 (with patches 1, 2, 3, 4, 5) and came upon a problem with XmlResolver.
    When I register XmlResolver to XmlManager, dbxml crashes (on Mac OS X) with EXC_BAD_ACCESS (resolveEntity method in resolver is not called - exception in test code below is not thrown):
    error: null :: Container - test.dbxml - Node storage container opened.
    error: null :: Optimizer - Started parse
    Invalid memory access of location 00000000 eip=0003200f
    Tested only on Mac OS X, Berkeley DB XML built using:
    CFLAGS="-O0" CXXFLAGS="-O0" ./buildall.sh --enable-java
    Here is stack trace:
    0 <<00000000>>      0x00000000 0 + 0
    1 libdbxml_java-2.3.jnilib      0x5f77fb88 DbXml::DbXmlURIResolver::resolveEntity(xercesc_2_7::XMLResourceIdentifier*) + 704
    2 libxqilla.1.dylib      0x5fbb84a8 XQQuery::importModule(XQilla::Language, unsigned short const*, std::vector<unsigned short const*, XQillaAllocator<unsigned short const*> >*, StaticContext*) + 2122
    3 libxqilla.1.dylib      0x5fc45e6d XQParser::yyparse(void*) + 9387
    4 libxqilla.1.dylib      0x5fbb248f XQilla::parse(unsigned short const*, XQilla::Language, DynamicContext*, unsigned short const*, unsigned, xercesc_2_7::MemoryManager*) + 609
    5 libdbxml_java-2.3.jnilib      0x5f6d25e9 DbXml::QueryExpression::QueryExpression[in-charge](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, DbXml::XmlQueryContext&, DbXml::Transaction*) + 631
    6 libdbxml_java-2.3.jnilib      0x5f71ce45 DbXml::XmlManager::prepare(DbXml::XmlTransaction&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, DbXml::XmlQueryContext&) + 67
    7 libdbxml_java-2.3.jnilib      0x5f71cf19 DbXml::XmlManager::query(DbXml::XmlTransaction&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, DbXml::XmlQueryContext&, unsigned) + 47
    8 libdbxml_java-2.3.jnilib      0x5f7d419e Java_com_sleepycat_dbxml_dbxml_1javaJNI_XmlManager_1query_1_1SWIG_13 + 518
    ..and here is test code:
    public class Main {
         public Main() throws FileNotFoundException, DatabaseException {
              EnvironmentConfig envConf = new EnvironmentConfig();
              envConf.setAllowCreate(true);
              envConf.setInitializeCache(true);
              envConf.setErrorHandler(new ErrorHandler() {
                   public void error(Environment arg0, String arg1, String arg2) {
                        System.out.println("error: " + arg1 + " :: " + arg2);
              Environment env = new Environment(new File("data"), envConf);
              XmlManager.setLogLevel(XmlManager.LEVEL_ALL, true);
              XmlManager.setLogCategory(XmlManager.CATEGORY_ALL, true);
              XmlManagerConfig config = new XmlManagerConfig();
              config.setAllowExternalAccess(true);
              config.setAdoptEnvironment(true);
              config.setAllowAutoOpen(false);
              XmlManager mgr = new XmlManager(env, config);
              mgr.registerResolver(new XmlResolver() {
                   public XmlInputStream resolveEntity(XmlTransaction arg0,
                             XmlManager arg1, String arg2, String arg3)
                             throws XmlException {
                        throw new RuntimeException("not impl.");
              final String cName = "test.dbxml";
              XmlContainerConfig c = new XmlContainerConfig();
              c.setAllowCreate(true);
              XmlContainer testContainer = mgr.openContainer(cName, c);
              XmlQueryContext qc = mgr.createQueryContext();
              XmlResults res = mgr
                        .query(
                                  "import module namespace whatever = 'whatever' at 'whatever.xq'; <whatever/>",
                                  qc);
              while (res.hasNext()) {
                   XmlValue n = res.next();
                   System.out.println(n.asString("UTF8"));
                   n.delete();
              res.delete();
              qc.delete();
              testContainer.close();
              mgr.close();
              System.out.println(">> FINISHED <<");
         public static void main(String[] args) throws FileNotFoundException,
                   DatabaseException {
              new Main();
    regards,
    Arnis

    Hello,
    thank you for reply.
    After adding dynamic_cast Java VM still crashes with similar stack trace:
    Thread 1 Crashed:
    0 <<00000000>>      0x0003200d 0 + 204813
    1 libdbxml_java-2.3.jnilib      0x3c4e90ca DbXml::DbXmlURIResolver::resolveEntity(xercesc_2_7::XMLResourceIdentifier*) + 816
    2 libxqilla.1.dylib      0x3caebc5f XQQuery::importModule(XQilla::Language, unsigned short const*, std::vector<unsigned short const*, XQillaAllocator<unsigned short const*> >*, StaticContext*) + 1781
    3 libxqilla.1.dylib      0x3cb79f96 XQParser::yyparse(void*) + 13068 (XQParser.y:1016)
    4 libxqilla.1.dylib      0x3cae66de XQilla::parse(unsigned short const*, XQilla::Language, DynamicContext*, unsigned short const*, unsigned, xercesc_2_7::MemoryManager*) + 336
    5 libdbxml_java-2.3.jnilib      0x3c4466d9 DbXml::QueryExpression::QueryExpression[in-charge](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, DbXml::XmlQueryContext&, DbXml::Transaction*) + 761
    6 libdbxml_java-2.3.jnilib      0x3c48817b DbXml::XmlManager::prepare(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, DbXml::XmlQueryContext&) + 61
    7 libdbxml_java-2.3.jnilib      0x3c488268 DbXml::XmlManager::query(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, DbXml::XmlQueryContext&, unsigned) + 42
    8 libdbxml_java-2.3.jnilib      0x3c5293fb XmlManager_query__SWIG_2(DbXml::XmlManager*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, DbXml::XmlQueryContext&) + 71
    9 libdbxml_java-2.3.jnilib      0x3c544b0f Java_com_sleepycat_dbxml_dbxml_1javaJNI_XmlManager_1query_1_1SWIG_12 + 553
    10 <<00000000>>      0x045851d1 0 + 72896977
    11 <<00000000>>      0x0457f994 0 + 72874388
    12 <<00000000>>      0x0457f9ea 0 + 72874474
    13 <<00000000>>      0x0457f913 0 + 72874259
    14 <<00000000>>      0x0457d15d 0 + 72864093
    15 libclient.dylib      0x9b9f5ce2 jio_snprintf + 398024
    16 libclient.dylib      0x9b9f5a30 jio_snprintf + 397334
    17 libclient.dylib      0x9ba11d87 JVM_MaxMemory + 7311
    18 libclient.dylib      0x9ba5db9e JVM_FindLoadedClass + 2312
    19 java      0x00003d30 0x1000 + 11568
    20 java      0x00004560 0x1000 + 13664
    21 libSystem.B.dylib      0x90024227 pthreadbody + 84

  • Does OSB support XQuery import module feature ?

    In OSB version 11.1 and Oracle Weblogic Server Version: 10.3.6.0
    I need to create library of XQuery functions (reusable components), to achieve this, I need to use XQuery import module feature.
    When I tried to use it, I got this error message ‘Module feature not supported (sorry)’ …
    Does OSB support XQuery import module feature ?

    You may like to refer Eric's blogpost -
    http://www.xenta.nl/blog/2011/10/19/oracle-service-bus-the-number-of-parameters-for-registered-xquery-resource-system1_to_fault-does-not-match-that-given-to-it-at-runtime/
    Basically, if you are not using a parameter in XQuery then it will not be registered.
    Regards,
    Anuj

  • Import-Module ActiveDirectory - Error - after upgrading DC's to 2012 R2

    Hi.
    We done upgrading our Domain Controllers to 2012 R2 Version, and after upgrade i can't use ActiveDirectory  module outside my DC
    When i\m trying to run  Import-Module ActiveDirectory on my Windows 7 desktop i get error:
    WARNING: Error initializing default drive: 'Unable to contact the server. This may be because this server does not
    exist, it is currently down, or it does not have the Active Directory Web Services running.'.
    ( But if i start it as Domain Admin on the same PC - all is OK. Permissions for my account is ok - i think - checked by: Get-PSSessionConfiguration on DC's ). When it was 2008 R2 DC's - all was fine
    How can i fix this issue? ( i think this is access rights by i cannot manage where... )
    Best Wishes, Andrew Golubenkoff

    Thanks Dan, good article - nowi\m understand... Now i should rewrite all my scripts to new  type of connection ( Import-Pssession instead of import-module ) Thanks again!

  • XQuery import module relative path

    I'd like to use library modules in queries, with the modules stored in one or more configurable places. If I put them in files, and provide the full path to the file like so:
    import module namespace pi = 'http://ceridwen.us/2006/mymodule' at 'file:///path/to/module/file'
    It works fine so long as the path given is absolute. I've tried several variations on relative paths, including using 'declare base-uri' (which didn't seem to do anything) and XmlQueryContext::setBaseURI (which didn't help find the module file and caused the context to not be able to find the container). I've also tried giving paths relative to pwd and to the environment home. No luck.
    It would be even cooler if I could store the modules in a bdb database... but that would require adding a resolver somewhere. Is there a way to use an XmlResolver for this?
    Regards,
    John Ralls

    John,
    documentation: Well, if it's right then I'm reading it wrong. I guess that shouldn't be a surprise.
    base-uri: OIC.
    XmlResolver: Hmm. I added this:
    class Resolver : public DbXml::XmlResolver {
    public:
         Resolver() : DbXml::XmlResolver() {}
         virtual ~Resolver() {}
         DbXml::XmlInputStream* resolveEntity(DbXml::XmlTransaction* txn,
                             DbXml::XmlManager& mgr,
                             const std::string& systemID,
                             const std::string& publicID) {
         std::cout << "Resolver::resolveEntity: Got systemID " << systemID
              << ", publicID " << publicID << std::endl;
         return NULL;
    to my header and
    Resolver* rslv = new Resolver();
    this->registerResolver(*rslv);
    to the constructor of my DbXml::XmlManager-derived manager class.
    The resolveEntity() function doesn't output. What's wrong?
    (FWIW, the signature of resolveEntity in the documentation and that in the header(XmlResolver.hpp) differ: The latter doesn't have the std::string& result parameter. I tried both ways, and neither produced the output message.
    resolveModule: Yes, I think that that would be clearer.
    Regards,
    John Ralls

  • Import Module Woes

    I'm having some problems trying to import one module into another.
    Here's the beginning of a module:
    module namespace bar='http://ceridwen.us/2006/bar';
    import module namespace foo='http://ceridwen.us/2006/foo' at 'file://relative_path/to_foo';
    Module bar is imported into the main module with
    import module namespace bar='http://ceridwen.us/2006/bar' at 'file://relative_path/to_bar';
    Module bar declares functions which use functions from module foo.
    I have registered an XmlResolver which handles the relative path URI; it worked fine when there was only one library module. With the import module line in module bar, trying to prepare a query which imports bar throws "Cannot locate the requested module".
    If the import module line in bar is changed to an absolute path, then the error is "No namespace for prefix foo".
    If the main module prolog imports foo in the second case, xquery throws XQST0034.
    Everything works if the main module prolog imports foo and bar, and bar doesn't import foo.
    In the first case, it's evident that my XmlResolver isn't being called. I don't understand what's going on in the second case.
    The third and fourth case appear to me to violate the requirement that module imports aren't transitive.
    Are these bugs, or do I misunderstand the draft recommendation and XmlResolver docs?
    Regards,
    John Ralls

    Hi John,
    It looks like you are hitting a few module bugs that we have fixed in the development version of DB XML. The XmlResolver not being called in the first case, and the transitiveness of module imports are both incorrect.
    I don't understand why you are getting a namespace error in the second case - but there is good news about that. The development version of DB XML will also give you much better error reporting, including more accurate file, line, and column information in the majority of cases.
    I don't know that I can suggest a work around apart from only using one level of modules for the moment. We are actively working on getting the next version of DB XML out the door as I speak...
    John

  • Import-module Lync

    hey
    i use powershell v3 from win7 , i installed ocscore.msi and try to import-module Lync
    but i get error : the assembly ‘microsoft.rtc.management’ was not loaded because no assembly was found
    why it didn’t work??? any idea?

    Could be because the Lync modules are not in a standard location.  See this link for details...
    http://www.iamblogg.com/2011/12/19/lync-2010-powershell-modules/

Maybe you are looking for

  • Incorrect Apple ID in App Store / How to do a fresh Lion install

    I'm trying to redownload the OSX Lion Install App.  I held the Option key when clicking purchases and instead of saying "Installed", it now says "Download".  However, even though I'm signed into the App Store with my personal Apple ID, it asks me to

  • No sound on iTunes

    The sound works fine on my computer, but there is no sound when I try to listen to a song on iTunes.

  • Vendor Master display

    Hello We don't want to view the bank account or tax id by any user , How to control this view or any sort  encryption ? Any help will be highly appreciated Thanks Nic

  • Microsoft Ecosystem Metadata Exchange

    Installed Microsoft Ecosystem Metadata Exchange from here https://sysdev.microsoft.com/en-US/desktop/member/Telemetry/download/MetadataExchange.msi But it will not start.  From the Event log [Microsoft.Telemetry.MetadataExchange.Presentation.DialogSe

  • BeX personalization after BW upgrade.

    hello all, we are going to upgrade the BW system from 3.1 to 3.5.i was going through the BW upgrade guide and findout that we need to activate the Bex personalization after the upgrade. My question is this has to be done in a respective system cause