Path to dir

Hi,
I wonder how I can get the path to the directory where the jsp files are from a javabean. I don't want to get it from a jsp page and then send it to the javabean.

Hi,
what I wan't to do I read and write to a file from a javabean and when I read from the file I only wan't to send the node name, because in this example it's a xml file. So what I did to solve it was:
URL path = this.getClass().getClassLoader().getResource("../../conf/config.xml");So if there is any better way to solve it I would be glad to know.

Similar Messages

  • How to give relative path in web.xml?

    Hi All,
    Im creating a servlet which has to load the properties file.
    I don't want to give the location of the properties file as ABSOLUTE PATH. But I'm unable to provide the same as RELATIVE PATH.
    When I give the path is given as ABSOLUTE PATH (drive:/dir/) it is working. But if I give the RELATIVE PATH(../), the same is not working.
    Kindly help me in this.
    Regards,
    Kumar Madhavan.
    My web.xml file is:
    <?xml version="1.0"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
         <display-name>NGT - ASCII</display-name>
         <description>Application for Safety Critical Information vIew.</description>
         <welcome-file-list>
              <welcome-file>ASCII.html</welcome-file>
         </welcome-file-list>
         <context-param>
              <param-name>asciifiledir</param-name>
    <!-- This is the tag in which I would like to
              <param-value>../</param-value>
         </context-param>
    </web-app

    Hi.
    Exclude the directory path from the <param-value/> in
    the web.xml and just keep the property file name.
    Place the property file in the classpath and load it
    like this from the servlet:
    Properties props = new Properties();
    String propFileName = "" // Read param-value from web.xml
    try {
    InputStream is = TheServlet.class.getResourceAsStream(propFileName);
    props.load(is);
    } catch (Exception ex) {
    System.out.println("Prop file not in classpath!");
    /Jesper

  • How to upload file to server on specific path ?

    Hi ,
    Friends i have written code to check on local machine to upload , using apache commons file upload.
    its working good.
    but when i m giving path for web server it is not uploaded on server, what will be the reason ?
    dirName = request.getContextPath()+"/uploads" ;
    since i want to upload my all files to my : WebAPP_ROOT/uploads
    when i am printing using
    request.getContextPath( ) +"/uploads" its showing me correct path, but file is not uploading.
    I have another issue but might its not secure , as it is showing real physical path to dir
    dirName = application.getRealPath("/");
    also tell me how secure this is ?  it will take by default  ROOT HOME to :
    WebAPP_ROOT / build/web       instead  i want   WebAPP_ROOT/uploads
    provide me solution for this.

    I am asking about the following security issue.
    String picturefile =application.getRealPath("/" + request.getParameter("file"));
    or
    String picturefile =getServletContext().getRealPath("/" + request.getParameter("file"));
    One important note: whenever you access local resources, be very careful to validate the incoming data. A hacker, or a careless
    user, can send bogus data to hack your site. For instance, consider what would happen if the value <code>file=../../../../etc/passwd</code> were entered. The user could in this way read your server's password file.

  • Read Key and Write Key not working as expected with paths on RT

    The configuration file VIs Read Key (Path) and Write Key (Path) don't seem to work as expected (at least not as I was expecting them to) on an RT target.
    When working on my WinXP PC with these two VIs, paths are translated to what looks like is supposed to be a device-independent format before being written to disk. The path C:\dir\file.txt becomes /C/dir/file.txt when writing and vice versa when reading. On my RT target, however, that same path is written to disk as C:\dir\file.txt, unchanged from the native format.
    The translaton of a native path to and from the device-independent format appears to be the responsibility of Specific Path to Common Path and Common Path to Specific Path. These both use the App.TargetOS property to determine the operating system. In the case structure for these two VIs, however, there is no case for PharLap or RTX. (My RT hardware is runnng PharLap; I don't know enough about RTX to comment.) This means that the results of String to Path or Path to String are used without translating between the device-independent format to the native path format.
    This isn't a problem if you create a configuration file on one machine and use it on that same machine. I noticed this only when tranferring a config file from my PC to the RT target, where the target would not open the file paths it loaded from the configuration file.
    This occurs on 7.1.1 and 8.0.  I don't have 8.20 to see if happens there, too.

    In LV 8.2, this was fixed.
    The problem is App.TargetOS returns "Pharlap" on RT systems, and "Pharlap" is handled by the default case ("invalid OS target") in LV 8.0.  In LV 8.2 the default case is "Windows 95/NT", however.  The reason you could write and read an .ini file on RT in LV 8.0 and earlier is because these two VIs (listed below) were both running the default case of "invalid OS target".
    vi.lib\Utility\config.llb\Common Path to Specific Path.vi
    vi.lib\Utility\config.llb\Specific Path to Common Path.vi
    As you saw, this fails when you perform one operation in Pharlap but the other in Windows.  You can fix this by modifying the two VIs listed above.  Just go to the case structure and make "Windows 95/NT" the default case.

  • How to create DIR/File on a raw device in RAC environment.

    Hi all,
    I use a shell script to create DIR and File on a raw device also it creates schema and tablespaces.
    I am facing problem in creating DIR and Files on raw device.
    One more thing, can multiple tablespaces be created on a raw device.
    Thanks & regards,
    Sanjeev

    Thanks for the response. Please help me further.
    About the Script - It asks for the path for creating DIR and uses shell command to create DIR. Later same path and DIR name is used to create Oracle DIR. Now in place of absolute path raw device name is passed. The same script is also used for creating tablespaces and schema.
    There is second script that is .sql script that creates external table in the newly created schema. All this has been working fine on single instance Oracle server. we have tested many times but fails in RAC environment when we use raw device.
    Question is - If I use filesystem will the external table's flat files and Directories be accessible to all the instances.
    I have one application written in java that would be clustered and running on these oracle servers. This application would be accessing those external tables and their flat files. Will there be a problem accessing these flat files accross the instances.
    Regards,
    Sanjeev.

  • Dot in the Path to the Class

    Hi,
    I am trying to run a program that has a "dot" in its path, i.e. /path/to/.dir/MyClass. It seems like JVM command line doesn't accept dot and it converts it to "/" from what I see on the output. Is there a way to enforce the command line to take the path to the class as is and not to convert "." to "/"?

    Hi,
    Yes, this is being run on a Linux system by `crond' which prompted a suspension that it wasn't being run at all. So I tried it manually on the command line and realized it doesn't recognize the path to the class.
    java /home/myuser/.dir/MyClass
    Exception in thread "main" java.lang.NoClassDefFoundException: /home/myuser//dir/MyClassRunning the class from the hidden directory works accordingly:
    cd /home/myuser/.dir
    java MyClass
    /* Right output */I have also tried quotations around the path in no vain

  • Environment variables like classpath,JAVA_HOME,path

    Sir,
    I work as a java developer in a software company.I had more problems when executing servlets."could not create the java vitual machine" error comes when i try to compile java servlet file.also I do not know that how to set environment variables like classpath,path and JAVA_HOME.Also I want to know them with proper examples.
    Thanking you.
    KRamesh

    Hi Teches
    I am facing few problem in starting eclipse 3.0 ; I had gone trogh forum , 1 of the persone suggest me to upgrade the java version.For this
    I had installed java 1.5 and set the following variable
    JAVA_HOME ---> to the home dir of JAVA
    PATH ---><home dir>/bin
    CLASSPATH --><jre>/lib
    But when ever i m giving "java -version" command on console , the result is as follows:
    C:\>java -version
    java version "1.3.1_01"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
    Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)
    suggestion are welcome Plz.
    ;

  • Where do PATH and MANPATH definitions go for OSS12.4 in Solaris 11.2?

    ** Newbie alert **
    Hello,
    This link says what to add to PATH and MANPATH for a new Solaris Studio 12.4 installation
    but not where to put the PATH and MANPATH entries (preferably for all users).
    Setting Up Access to the Developer Tools and Man Pages - Oracle® Solaris Studio 12.4: InstallationGuide
    Note that my "installation" consisted of downloading the appropriate Tarfile and then unpacking it - so this comment is confusing:
    "If you did not enable the installer to create symbolic links in /usr/bin and /usr/share/man, you might    need to change your PATH   and MANPATH  environment variables to enable use of the Oracle Solaris Studio 12.4 software."
    Another confusing entry in the Solaris 11.2 documentation says "the MANPATH definition is no longer required in Solaris 11".
    Sincerely,
    Kent

    Hi Kent,
    If you installed from the tar file you will need to add the directory to your PATH and MANPATH variables.   The steps are platform specific and are listed below:
    On Oracle Solaris platforms
    Add the path /install-dir/solarisstudio12.4/bin to your PATH environment variable.
    Add the path /install-dir/solarisstudio12.4/man to your MANPATH environment variable.
    On Linux platforms
    Add the path /install-dir/oracle/solarisstudio12.4/bin to your PATH environment variable.
    Add the path /install-dir/oracle/solarisstudio12.4/man to your MANPATH environment variable.
    For a more detailed discussion PATH and MANPATH you can review the Solaris documentation on "Setting Environment Variables".  The location to that information is located here:
    https://docs.oracle.com/cd/E19683-01/806-7612/customize-8/index.html
    You might find this link helpful too:
    https://docs.oracle.com/cd/E36784_01/html/E36818/userconcept-39855.html#scrolltoc
    Note - When you install from a tar file you cannot get support or patches for the product from Oracle. If you want such support you must use a package installer. See Chapter 2, Installing Oracle Solaris Studio 12.4 on Oracle Solaris 10 and Linux or Chapter 3, Installing Oracle Solaris Studio 12.4 On Oracle Solaris 11.
    Also, if you haven't installed the latest Solaris 11.2 SRU then you will also need to install the required system libraries.   Here's a link to the instructions:
    https://docs.oracle.com/cd/E37069_01/html/E37072/gouaw.html#scrolltoc
    HTH

  • Any plan for Pro*C to tolerate spaces in paths?

    As of the most recent Pro*C downloaded for use with the Instant Client (11.2.something), it still can't tolerate spaces in any of its inputs.
    Since Visual Studio installs by default into C:\Program Files\Microsoft Visual Studio X\..., there's an immediate problem with specifying "include=C:\Program Files\Microsoft Visual Studio X\VC\Include", whether on the command line or in pcscfg.cfg. Pro*C finds none of the .h files, and the whole process ends.
    This is really complicating our build process, as there's just no good way to construct a generic build script (free of environment variables or a list of possibly conflicting include directories to cover all the bases).
    Does anyone know whether there's any plan for Pro*C to function as an application in the year 2012, rather than 1995, by coping with spaces in these paths?

    I can't speak to the Pro*C side of things, but you can find the short name for those paths using "dir /x".
    C:\>dir /x progr*
    Volume in drive C has no label.
    Volume Serial Number is B8EF-DC7A
    Directory of C:\
    01/25/2012  08:37 AM    <DIR>          PROGRA~1     Program Files
                   0 File(s)              0 bytes
                   1 Dir(s)  62,385,332,224 bytes free
    C:\>dir /x "program files\microsoft visual*"
    Volume in drive C has no label.
    Volume Serial Number is B8EF-DC7A
    Directory of C:\program files
    09/02/2009  07:13 PM    <DIR>          MICROS~3     Microsoft Visual Studio
    05/28/2010  08:07 AM    <DIR>          MID05A~1     Microsoft Visual Studio 8
                   0 File(s)              0 bytes
                   2 Dir(s)  62,385,324,032 bytes free
    C:\>Using the short names in your path will look something like "include=C:\PROGRA~1\MID05A~1\VC\Include" and meets the "no spaces" requirement.

  • How to create a repository(not just custom) using your hard drive

    I don't know if many people know about this, so I am giving this a shot. There are three major articles on wiki.archlinux.org: Custom local repository,
    Using a CD-ROM as a repository, and Offline Installation of Packages. These are available online through the WIKIs at archlinux.org.
    I was first confused because when I was reading "Offline installation of packages", I didn't know what these ".db.tar.gz" files where. I came mainly from a Debian / Ubuntu
    background (I actually tried many distros before this), so getting used to the way the repository works and no graphical install manager for it. However, I enjoyed a challenge and
    I found out that these are database packages that contain descriptions and locations on where these files are located. The ones on the ftp server are already compiled. I don't know if,
    however they are compiled with the most recent versions.
       With all that said, I thought you had to have it all in one directory in order for this to work, but as it turns out, location is not really an issue. I decided to have a directory reside on the root.
    I chose root because it's only for the install of my own packages. I could have done it as a seperate user account, such as "repos" in PCLinuxOS (another distro I tried). I didn't want to have a seperate account for this. Therefore, I created "/root/repository". Within this directory I created directories for all repository archives. I basically did a "cd /mnt/dvd" and migrated to the particular repository directories. I would copy all the "pkg.tar.gz" files into their respective directories with "cp * ~/repository/<name-of-dir>". For intance, I started with the "core" directory, because there was some things I didn't install in the core directory during installation and if the packages needed it, it was there. This follows for the rest of the directories, such as "community", "testing", and "unstable", etc.You can go to the ftp mirrors to find out what directories are available. The main point is that your files should be in the format ".pkg.tar.gz". These are package files that get converted into a sort of database format that as I mentioned, informs the system the description and where the files are located, and so on.
       The command to perform this, is "tar -xvf /root/repository/core/core.db.tar.gz *.pkg.tar.gz". You can replace core with whatever repository you are adding. So, for example, "extra.db.tar.gz" would be in the "extra" directory. This information is located in the "Offline installation of packages".  The command to create this database is called, "repo-add".
    The format for this command is "repo-add /path/to/dir.db.tar.gz *.pkg.tar.gz". So, if it's the core packages you would "cd ~/repository/core" and "repo-add core.db.tar.gz *.pkg.tar.gz".
      Then, you need to edit the "/etc/pacman.conf" configuration file for pacman. I basically would comment all out except for the repositories I need. So, for example "[core]" and "/etc/pacman.d/core" would tell where normally the servers are located for these files. This information is located int the "Custom local repository" article.using the "repo-add" command.
       Furthermore, I edited each server file located in "/etc/pacman.d/<repository>" where repository is core, extra, etc. I would perform,  "nano /etc/pacman.d/core" for example and comment out all servers. I then add a "local repository" by typing in "file:///root/repository/core", saved it, and then did a "pacman -Sy" to update the repository database. Now, I can do "pacman -S <package-name>" where package-name is whatever I wanted to install. Voila! Please let me know of any suggestions, questions, insights, or comments. I hope I'm not missing anything in this article. I do remember using "rm -rf * in the "/var/lib/pacman/<repository>"directories and using "tar xvf <repository>.db.tar.gz". I don't if that something to do with it, though. Be careful with the "rm -rf *" command, because you can erase your hard drive if you are not careful, for those who aren't informed.
    P.S. Please note all these are done with the root user.

    pressh wrote:
    gradgrind wrote:
    smitty wrote:pressh, I understand and appreciate your point of view... well taken! Are you implying that I should have written in steps, such as 1, 2, and 3? Also, should I have got ridden of the redundant information if it is contained in the Wiki article and / or  taken out the commands on how to apply them and left only with the explanation? Is this what you imply? Sorry if I seem redundant with these questions, but I'm curious so I can improve for the future. I am new to this and open to any suggestion and comments.
    Maybe you could either edit the existing wiki pages where they were not clear to you, or else add a new wiki page, or both. Certainly give the whole a clearer (visual) structure, and (if they don't already exist) add links between the connected wiki pages.
    Yes that is partly what I mean. Further you could get rid of the information that is not really needed to follow the guide (for example what the command 'repo-add' does. People could if they are interested look it up in the script itself, or you could add it here and link to it).
    And yes a bit of structure would be nice. You don't have to nessesarily call it 1,2,3, as long as it has some kind of structure in it (the visual point is very important here). You could take a look at existing wiki pages on the web and see how most of them (not all of them are good of course) are structured.
    That's a good point, too. How do I found out what articles are more effective? I am doing research on this particular matter at the moment and came across articles that have tips on technical writing. Could this help in the long run? Or, is it better to get feedback from other users and improve that way? In other words, do first, and ask later, as one user point out?

  • Importing All the files from a folder at a time

    Hi....
    Can any body tell me how to import set of files from a folder into IDM.
    It is becoming very difficult to import the files one after other....
    Waiting for Reply....
    Thanks in advance..........

    We used an ant script to build an XML file that will contain the files. The script is configured to use the folder structure of our CVS repository.
    We'd checkout our XML module and then run the build script and import the resulting init file.
    Code to the script is below -- caveat emptor. You'll need to change the folder structure to suit your own environment.
    <?xml version="1.0" encoding="UTF-8"?>
    <project basedir="." default="all" name="MyInit">
        <target name="init">
            <property location="." name="src.dir"/>
            <property location="." name="dest.dir"/>       
            <property name="project.name" value="${ant.project.name}"/>
            <property location="${dest.dir}/MyInit.xml" name="MyInit.output"/>
            <property name="source.configuration" value="${dest.dir}/configuration"/>       
            <property name="source.emailTemplate" value="${dest.dir}/emailTemplate"/>
            <property name="source.forms" value="${dest.dir}/forms"/>
            <property name="source.reports" value="${dest.dir}/reports"/>               
            <property name="source.resource" value="${dest.dir}/resource"/>          
            <property name="source.rules" value="${dest.dir}/rules"/>
            <property name="source.workflow" value="${dest.dir}/workflow"/>
            <!-- get the source path -->
            <path id="configuration.path">
                <fileset dir="${source.configuration}" >
                   <include name="*.xml" />
                </fileset>
             </path>
             <property name="cp" refid="configuration.path" />
             <path id="emailTemplate.path">
                <fileset dir="${source.emailTemplate}" >
                   <include name="*.xml" />
                </fileset>
             </path>
             <property name="ep" refid="emailTemplate.path" />
             <path id="forms.path">
                <fileset dir="${source.forms}" >
                   <include name="*.xml" />
                </fileset>
             </path>
             <property name="fp" refid="forms.path" />
            <path id="reports.path">
                <fileset dir="${source.reports}" >
                   <include name="*.xml" />
                </fileset>
             </path>
             <property name="rptp" refid="reports.path" />                 
            <path id="resource.path">
                <fileset dir="${source.resource}" >
                   <include name="*.xml" />
                </fileset>
             </path>
             <property name="rep" refid="resource.path" />        
            <path id="rules.path">
                <fileset dir="${source.rules}" >
                   <include name="*.xml" />
                </fileset>
             </path>
             <property name="rp" refid="rules.path" />
            <path id="workflow.path">
                <fileset dir="${source.workflow}" >
                   <include name="*.xml" />
                </fileset>
             </path>
             <property name="wp" refid="workflow.path" />
            <!-- get the path prefix -->
             <path id="source.path">
                <pathelement location="${src.dir}" />
             </path>
             <property name="sp" refid="source.path" />       
        </target>
        <target depends="init"  name="win_init">
            <!-- change the path of xml files to windows path -->
            <property name="importfile.path" value="${sp}"/>                            
        </target>              
        <target depends="init" name="make">
        <!-- using XML character entity references to escape
        <  <
        >  >
        '  &apos;      -->    
            <echo file="${MyInit.output}" append="false"><?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE Waveset PUBLIC 'waveset.dtd' 'waveset.dtd'>
    <Waveset>
    ${cp}
    ${ep}
    ${fp}
    ${rptp}
    ${rp}
    ${wp}
    </Waveset>
            </echo>
         <!-- replace path prefix with ImportCommand -->
         <replace file="${MyInit.output}"
                  token = "${sp}"
                  value = "<ImportCommand name='include' file='${importfile.path}" />
         <!-- deal with file and path separators in an os independent way -->
         <replace file="${MyInit.output}"
                  token = "${file.separator}"
                  value = "/" />        
        <replace file="${MyInit.output}"
                  token = "${path.separator}"
                  value = "${line.separator}" />
        <replace file="${MyInit.output}"
                  token = ".xml"
                  value = ".xml'/>" />
        </target>
        <target depends="init,win_init,clean,make" description="Build everything." name="all"/>
        <target depends="init" description="Clean all build products." name="clean">
            <delete file="${MyInit.output}"/>
        </target>
    </project>

  • How use PHP to read image files from a folder and display them in Flex 3 tilelist.

    Hello. I need help on displaying images from a folder dynamically using PHP and display it on FLEX 3 TileList. Im currently able to read the image files from the folder but i don't know how to display them in the TileList. This is my current code
    PHP :
    PHP Code:
    <?php
    //Open images directory
    $imglist = '';
    $dir = dir("C:\Documents and Settings\april09mpsip\My Documents\Flex Builder 3\PHPTEST\src\Assets\images");
    //List files in images directory
    while (($file = $dir->read()) !== false)
    if (eregi("gif", $file) || eregi("jpg", $file) || eregi("png", $file))
    echo "filename: " . $file . "\n";
    $dir->close();
    ?>
    FLEX 3 :
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="pic.send();">
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    import mx.events.FlexEvent;
    import mx.rpc.events.FaultEvent;
    import mx.events.ItemClickEvent;
    import mx.rpc.events.ResultEvent;
    public var image:Object;
    private function resultHandler(event:ResultEvent):void
    image = (event.result);
    ta1.text = String(event.result);
    private function faultHandler(event:FaultEvent):void
    ta1.text = "Fault Response from HTTPService call:\n ";
    ]]>
    </mx:Script>
    <mx:TileList x="31" y="22" initialize="init();" dataProvider = "{image}" width="630" height="149"/>
    <mx:String id="phpPicture">http://localhost/php/Picture.php</mx:String>
    <mx:HTTPService id="pic" url="{phpPicture}" method="POST"
    result="{resultHandler(event)}" fault="{faultHandler(event)}"/>
    <mx:TextArea x="136" y="325" width="182" height="221" id="ta1" editable="false"/>
    <mx:Label x="136" y="297" text="List of files in the folder" width="182" height="20" fontWeight="bold" fontSize="13"/>
    </mx:Application>
    Thanks. Need help as soon as possbile. URGENT.

    i have made some changes, in the php part too, and following is the resulting code( i tried it, and found that it works.):
    PHP Code:
    <?php
    echo '<?xml version="1.0" encoding="utf-8"?>';
    ?>
    <root>
    <images>
    <?php
    //Open images directory
    $dir = dir("images");
    //List files in images directory
    while (($file = $dir->read()) !== false)
    if (eregi("gif", $file) || eregi("jpg", $file) || eregi("png", $file))
    echo "<image>" . $file . "</image>"; // i expect you to use the relative path in $dir, not C:\..........
    //$dir->close();
    ?>
    </images>
    </root>
    Flex Code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="absolute"
    creationComplete="callPHP();">
    <mx:Script>
    <![CDATA[
    import mx.rpc.http.HTTPService;
    import mx.controls.Alert;
    import mx.events.FlexEvent;
    import mx.rpc.events.FaultEvent;
    import mx.events.ItemClickEvent;
    import mx.collections.ArrayCollection;
    import mx.rpc.events.ResultEvent;
    [Bindable]
    private var arr:ArrayCollection = new ArrayCollection();
    private function callPHP():void
    var hs:HTTPService = new HTTPService();
    hs.url = 'Picture.php';
    hs.addEventListener( ResultEvent.RESULT, resultHandler );
    hs.addEventListener( FaultEvent.FAULT, faultHandler )
    hs.send();
    private function resultHandler( event:ResultEvent ):void
    arr = event.result.root.images.image as ArrayCollection;
    private function faultHandler( event:FaultEvent ):void
    Alert.show( "Fault Response from HTTPService call:\n " );
    ]]>
    </mx:Script>
    <mx:TileList id="tilelist"
    dataProvider="{arr}">
    <mx:itemRenderer>
    <mx:Component>
    <mx:Image source="images/{data}" />
    </mx:Component>
    </mx:itemRenderer>
    </mx:TileList>
    </mx:Application>

  • How to apply security paramters in a main program to interact with webservi

    Hi ,
    I am working with weblogic 10.1.3 and running build.xml in eclipse for EE
    I would like to know the steps to include security parameters to authenticate with weblogic server and call webservice
    I have written a build.xml that takes input as wsdl , When I run the build.xml it generates
    all the necessary stubs and interfaces
    I have written a main program that imports generated classes and invoke the webservice method
    below are buidl.xml and two classes( main program and one java class) which I used to invoke webservice
    Build.xml
    =====
    <project name="webservices-simple_client" default="all">
         <!-- set global properties for this      -->
         <property name="wls.hostname" value="localhost" />
         <property name="wls.port" value="8002" />
         <property name="example-output" value="output" />
         <property name="clientclass-dir" value="${example-output}/srcclasses" />
         <property name="clientclassfiles-dir" value="${example-output}/classfiles" />
         <path id="client.class.path">
              <pathelement path="${clientclass-dir}" />
              <pathelement path="${java.class.path}" />
         </path>
         <taskdef name="clientgen" classname="weblogic.wsee.tools.anttasks.ClientGenTask" />
         <target name="clean">
              <delete dir="${clientclass-dir}" />
              <delete dir="../src/com/bea/wlcp/wlng/ws/presence" />
              <delete dir="../src/org/csapi/schema/paralyx/common/v2_1" />
              <delete dir="../src/org/csapi/schema/paralyx/presence/consumer/v2_3/local" />
              <delete dir="../src/org/csapi/schema/parlayx/presence/v2_3" />
              <echo message="Cleaning Completed" />
         </target>
         <target name="build-client">
              <clientgen wsdl="http://${wls.hostname}:${wls.port}/parlayx21/presence/PresenceConsumer?WSDL" destdir="${clientclass-dir}" generatepolicymethods="true" packageName="com.bea.wlcp.wlng.ws.presence" />
              <javac srcdir="${clientclass-dir}" destdir="${clientclassfiles-dir}" includes="**/*.java" />
              <copy overwrite="true" todir="../src">
                   <fileset dir="${clientclass-dir}" />
              </copy>
              <copy overwrite="true" todir="../src">
                   <fileset dir="${clientclassfiles-dir}" />
              </copy>
              <delete dir="${clientclass-dir}" />
              <delete dir="${clientclassfiles-dir}" />
              <echo message="Building Completed" />
         </target>
         <target name="all" depends="clean,build-client" />
    </project>
    ======================================================
    import java.net.URI;
    import javax.xml.rpc.Stub;
    import javax.xml.ws.BindingProvider;
    import java.net.Proxy;
    import java.net.InetSocketAddress;
    import java.util.ArrayList;
    import java.util.List;
    import weblogic.webservice.wsdl.WsdlPort;
    import weblogic.wsee.connection.transport.http.HttpTransportInfo;
    import weblogic.wsee.jaxrpc.ServiceImpl;
    import org.csapi.schema.parlayx.common.v2_1.PolicyException;
    import org.csapi.schema.parlayx.common.v2_1.SimpleReference;
    import org.csapi.schema.parlayx.presence.consumer.v2_3.local.SubscribePresence;
    import org.csapi.schema.parlayx.presence.consumer.v2_3.local.SubscribePresenceResponse;
    import com.bea.wlcp.wlng.et.core.module.session_manager.GTUsernameTokenPolicy;
    import com.bea.wlcp.wlng.et.core.module.session_manager.SessionManagerService_Impl;
    import com.bea.wlcp.wlng.ws.presence.PresenceConsumer;
    import com.bea.wlcp.wlng.ws.presence.PresenceConsumerService_Impl;
    import com.bea.wlcp.wlng.ws.sessionmanager.SessionManager;
    import com.bea.wlcp.wlng.ws.sessionmanager.SessionManagerService;
    import weblogic.wsee.security.unt.ClientUNTCredentialProvider;
    import weblogic.xml.crypto.wss.WSSecurityContext;
    import weblogic.xml.crypto.wss.provider.CredentialProvider;
    @SuppressWarnings("deprecation")
    public class Main {
         @SuppressWarnings("unchecked")
         public static void main(String[] args) throws javax.xml.rpc.ServiceException,PolicyException{
         try{
         /*PresenceConsumerService_Impl pcs_impl = new PresenceConsumerService_Impl("http://localhost:8002/parlayx21/presence/PresenceConsumer?WSDL");
         PresenceConsumer pc = (PresenceConsumer) pcs_impl.getPresenceConsumer();
         UserCredentialsvalidation gt = new UserCredentialsvalidation("sdpai","sdp");*/
         SimpleReference rf = new SimpleReference();
         rf.setCorrelator("correlatorid");
         rf.setEndpoint(URI.create("http://localhost:8002/PresenceConsumerService/services/PresenceConsumer"));
         rf.setInterfaceName("PresenceConsumer");
         SubscribePresence sb = new SubscribePresence();
         sb.setApplication("sdp");
         sb.setPresentity(URI.create("tel:1234"));
         sb.setReference(rf);
         System.out.println(" Before calling subscribe presence ==" );
         //SubscribePresenceResponse spr = pc.subscribePresence(sb);
         System.out.println(" Hi There here 2226678565");
         System.out.println(" Hi There here 333");
         //raja
         String strUrl = "http://localhost:8002/parlayx21/presence/PresenceConsumer?WSDL";
         Stub objStub = (Stub) new PresenceConsumerService_Impl().getPresenceConsumer();
         objStub._setProperty(javax.xml.rpc.Stub.USERNAME_PROPERTY,"sdpai");
         objStub._setProperty(javax.xml.rpc.Stub.PASSWORD_PROPERTY,"sdp");
         objStub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY,strUrl);
         PresenceConsumer port = (PresenceConsumer) objStub;
         String returnVal = "";
         System.out.println(" Hi There here 77");
         SubscribePresenceResponse spr = port.subscribePresence(sb);
         System.out.println(spr);
         //ended here
              catch(Exception e)
                   e.printStackTrace();
    =======================================
    UserCredentialsvalidation.java
    import com.bea.wlcp.wlng.et.core.module.session_manager.SessionManagerService_Impl;
    import com.bea.wlcp.wlng.schema.ews.common.ServiceException;
    import com.bea.wlcp.wlng.ws.sessionmanager.SessionManager;
    import com.bea.wlcp.wlng.ws.sessionmanager.SessionManagerService;
    import weblogic.wsee.security.unt.ClientUNTCredentialProvider;
    import javax.xml.rpc.Stub;
    import java.util.ArrayList;
    import java.util.List;
    public class UserCredentialsvalidation implements PolicyBase {
         private String username;
         private String password;
         public UserCredentialsvalidation(String username, String password) {
              this.username = username;
              this.password = password;
              String sessionManagerURL="http://localhost:8002/session_manager/SessionManager";
              SessionManagerService accessservice = null;
              try {
              accessservice = (SessionManagerService) new SessionManagerService_Impl(sessionManagerURL+"?WSDL");
              SessionManager port = accessservice.getSessionManager();
              System.out.println(" port >>>>>");
              System.out.println(" port >>>>>" +port);
              UserCredentialsvalidation pbase = new UserCredentialsvalidation();
              pbase.prepareStub((Stub)port,username,password);
              } catch (Exception e) {
                   System.out.println(" helo helo");
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         public UserCredentialsvalidation() {
              // TODO Auto-generated constructor stub
         public void prepareStub(Stub stub,String username,String password) throws Exception {
              List<ClientUNTCredentialProvider> credProviders = new ArrayList<ClientUNTCredentialProvider>();
              System.out.println(" username >>> " + username.getBytes());
              System.out.println(" password >>> " + password.getBytes());
              credProviders.add(new ClientUNTCredentialProvider(username.getBytes(),
                        password.getBytes()));
              System.out.println("setting standard wssec");
              stub._setProperty("weblogic.wsee.security.wss.CredentialProviderList",
                        credProviders);
              System.out.println("Getting property from stub== " + stub._getProperty("weblogic.wsee.security.wss.CredentialProviderList"));
         @Override
         public void prepareStub(Stub port) throws Exception {
              // TODO Auto-generated method stub
    =========================================
    When I run the main program I am getting below exception
    Before calling subscribe presence ==
    Hi There here 2226678565
    Hi There here 333
    Hi There here 77
    java.rmi.RemoteException: SOAPFaultException - FaultCode [{http://schemas.xmlsoap.org/soap/envelope/}Server] FaultString [Unable to add security token for identity] FaultActor [null]No Detail; nested exception is:
         weblogic.wsee.jaxrpc.soapfault.WLSOAPFaultException: Unable to add security token for identity
         at com.bea.wlcp.wlng.ws.presence.PresenceConsumer_Stub.subscribePresence(PresenceConsumer_Stub.java:37)
         at Main.main(Main.java:62)
    Caused by: weblogic.wsee.jaxrpc.soapfault.WLSOAPFaultException: Unable to add security token for identity
         at weblogic.wsee.codec.soap11.SoapCodec.decodeFault(SoapCodec.java:355)
         at weblogic.wsee.ws.dispatch.client.CodecHandler.decodeFault(CodecHandler.java:115)
         at weblogic.wsee.ws.dispatch.client.CodecHandler.decode(CodecHandler.java:100)
         at weblogic.wsee.ws.dispatch.client.CodecHandler.handleFault(CodecHandler.java:88)
         at weblogic.wsee.handler.HandlerIterator.handleFault(HandlerIterator.java:309)
         at weblogic.wsee.handler.HandlerIterator.handleResponse(HandlerIterator.java:269)
         at weblogic.wsee.ws.dispatch.client.ClientDispatcher.handleResponse(ClientDispatcher.java:213)
         at weblogic.wsee.ws.dispatch.client.ClientDispatcher.dispatch(ClientDispatcher.java:150)
         at weblogic.wsee.ws.WsStub.invoke(WsStub.java:87)
         at weblogic.wsee.jaxrpc.StubImpl._invoke(StubImpl.java:337)
         at com.bea.wlcp.wlng.ws.presence.PresenceConsumer_Stub.subscribePresence(PresenceConsumer_Stub.java:32)
         ... 1 more
    Caused by: weblogic.xml.crypto.wss.WSSecurityException: Unable to add security token for identity
         at weblogic.wsee.security.wss.SecurityPolicyDriver.processIdentity(SecurityPolicyDriver.java:175)
         at weblogic.wsee.security.wss.SecurityPolicyDriver.processOutbound(SecurityPolicyDriver.java:73)
         at weblogic.wsee.security.WssClientHandler.processOutbound(WssClientHandler.java:71)
         at weblogic.wsee.security.WssClientHandler.processRequest(WssClientHandler.java:55)
         at weblogic.wsee.security.WssHandler.handleRequest(WssHandler.java:74)
         at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:141)
         at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:107)
         at weblogic.wsee.ws.dispatch.client.ClientDispatcher.dispatch(ClientDispatcher.java:132)
         ... 4 more
    ==========================================================
    I am working for 3 days to solve this issue, but helpless :(
    Please tell me I am going in right way , I read many forums and implemented different ways , but getting same problem, that too before calling webservice method .
    Do i need to do anything more apart from adding username and password parameters
    Please tell me the exact steps how to perform authentication with webservices
    Your answer will help me a lot .
    Thanks in Advance
    Regards
    Rajasekhar

    Please ignore this thread

  • Issues while Deploying using AID

    Hi All,
    We are getting the following errors while deploying a xxxposite using the AID,
    /oracle/product/Middleware/AIA/Infrastructure/Install/AID/AIAInstallDriver.xml:72: The following error occurred while executing this line:
    /oracle/product/Middleware/AIA/Infrastructure/Install/AID/AIAExecuteDriver.xml:79: The following error occurred while executing this line:
    /oracle/product/Middleware/AIA/Infrastructure/Install/AID/AIAExecuteDriver.xml:58: The following error occurred while executing this line:
    /oracle/product/Middleware/AIA/aia_instances/AIA_DEV/tmp/AIDExecuteDP_temp_760097272.xml:6: The following error occurred while executing this line:
    /oracle/product/Middleware/AIA/Infrastructure/Install/AID/lib/AIDConfigurationLibraryTasks.xml:379: Not provided valid values for jdbc-url, username, password for datasource tag in participatingapplications.Ebiz.db.EBIZ01
    This is the xxxmand that I am running
    ant -f AIAInstallDriver.xml -DDeploymentPlan=/oracle/product/Middleware/AIA/util/DeploymentPlanGenerator/POProviderDP.xml -DPropertiesFile=/oracle/product/Middleware/AIA/aia_instances/AIA_DEV/config/AIAInstallProperties.xml
    I am not sure if the generated BOM and DP has the correct values, and whether AIAInstallProperties have been edited correctly.
    They are pasted below,
    BOM.xml
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <svcdoc:BOM xmlns="http://xmlns.oracle.xxx/sca/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:orawsp="http://schemas.oracle.xxx/ws/2006/01/policy" xmlns:ui="http://xmlns.oracle.xxx/soa/designer/" xmlns:svcdoc="http://xmlns.oracle.xxx/Services/Documentation/V1" xsi:noNameSpaceSchemaLocation="AIAPIP.xsd" projectCode="BAERPSOA" xmlns:xsi="http://xmlns.oracle.xxx/Services/Documentation/V1">
    <svcdoc:xxxposite revision="1.0" name="PurchaseOrderListEbizProvider">
    <svcdoc:ServiceSolutionxxxponentAssociation>
    <svcdoc:GUID>def61380-d651-4fd7-87de-054e45eea195</svcdoc:GUID>
    </svcdoc:ServiceSolutionxxxponentAssociation>
    <svcdoc:service name="createpurchaseorderlistebizproviderservice_ep">
    <svcdoc:ImplementationDetails>
    <svcdoc:ApplicationName>Ebiz</svcdoc:ApplicationName>
    <svcdoc:BaseVersion>1.0</svcdoc:BaseVersion>
    <svcdoc:DevelopedBy>BAEIS</svcdoc:DevelopedBy>
    <svcdoc:OracleCertified>Yes</svcdoc:OracleCertified>
    <svcdoc:ArtifactType>TransportAdapter</svcdoc:ArtifactType>
    <svcdoc:ServiceOperation>
    <svcdoc:Name>process</svcdoc:Name>
    </svcdoc:ServiceOperation>
    </svcdoc:ImplementationDetails>
    </svcdoc:service>
    <svcdoc:reference name="InsertPurchaseOrderListEbizProviderDBAdapterService">
    <svcdoc:ArtifactType>TransportAdapter</svcdoc:ArtifactType>
    <svcdoc:ServiceOperation>
    <svcdoc:Name>insert</svcdoc:Name>
    </svcdoc:ServiceOperation>
    <svcdoc:TransportDetails>
    <svcdoc:DBAdapter>
    <svcdoc:ResourceProvider>OracleDB</svcdoc:ResourceProvider>
    <svcdoc:ConnectionFactory>eis/DB/APPS</svcdoc:ConnectionFactory>
    <svcdoc:ApplicationName>Ebiz</svcdoc:ApplicationName>
    <svcdoc:XAEnabled>True</svcdoc:XAEnabled>
    <svcdoc:ResourceTargetIdentifier>EBIZ01</svcdoc:ResourceTargetIdentifier>
    <svcdoc:ResourceName>BAPO_SOA_PO_HEADERS_STAGE</svcdoc:ResourceName>
    <svcdoc:ResourceName>BAPO_SOA_PO_LINES_STAGE</svcdoc:ResourceName>
    <svcdoc:ResourceName>BAPO_SOA_PO_DIST_STAGE</svcdoc:ResourceName>
    </svcdoc:DBAdapter>
    </svcdoc:TransportDetails>
    </svcdoc:reference>
    <svcdoc:reference name="PurchaseOrderAPICall">
    <svcdoc:ArtifactType>TransportAdapter</svcdoc:ArtifactType>
    <svcdoc:ServiceOperation>
    <svcdoc:Name>Procedure</svcdoc:Name>
    </svcdoc:ServiceOperation>
    <svcdoc:TransportDetails>
    <svcdoc:DBAdapter>
    <svcdoc:ResourceProvider>OracleDB</svcdoc:ResourceProvider>
    <svcdoc:ConnectionFactory>eis/DB/APPS</svcdoc:ConnectionFactory>
    <svcdoc:ApplicationName>Ebiz</svcdoc:ApplicationName>
    <svcdoc:XAEnabled>True</svcdoc:XAEnabled>
    <svcdoc:ResourceTargetIdentifier>EBIZ01</svcdoc:ResourceTargetIdentifier>
    <svcdoc:ResourceName>BAPO_SOA_STD_IMPORT_K.BAPO_SOA_VALIDATE_HEADERS_P</svcdoc:ResourceName>
    </svcdoc:DBAdapter>
    </svcdoc:TransportDetails>
    </svcdoc:reference>
    </svcdoc:xxxposite>
    </svcdoc:BOM>
    DP
    <DeploymentPlan xxxponent="BAERPSOA" version="3.0">
    <PreInstallScript>
    <if>
    <equals arg1="${oer.server.publishtooer}" arg2="true"/>
    <then>
    <copy todir="${AIA_INSTANCE}/Infrastructure/LifeCycle/Install/PIPHarvest">
    <fileset file="${AIA_HOME}/Infrastructure/LifeCycle/AIAHarvester/HarvesterSettings.xml" />
    <filterchain>
    <expandproperties/>
    </filterchain>
    </copy>
    <for param="file">
    <path>
    <fileset dir="${AIA_INSTANCE}/Infrastructure/LifeCycle/Install/PIPHarvest">
    <include name="*.xml"/>
    </fileset>
    </path>
    <sequential>
    <OEREncrypt sourceFile="@{file}" destinationFile="@{file}" />
    </sequential>
    </for>
    </then>
    </if>
    </PreInstallScript>
    <Configurations>
    <EndpointConfigurator target-server="pips.BAERPSOA" dir="${AIA_HOME}">
    </EndpointConfigurator>
    <Datasource name="APPS" jndiLocation="jdbc/APPS" action="create" database="participatingapplications.Ebiz.db.EBIZ01" xa-enabled="true" wlserver="pips.BAERPSOA"/>
    <UpdateMetadata wlserver="pips.BAERPSOA" >
    <fileset dir="${AIA_HOME}/AIAMetaData">
    <include name="AIAxxxponents/ApplicationObjectLibrary/Ebiz/**" />
    <include name="AIAxxxponents/ApplicationConnectorServiceLibrary/Ebiz/**" />
    </fileset>
    </UpdateMetadata>
    <ManagedServer wlserver="pips.BAERPSOA" action="shutdown" failonerror="true"/>
    <DbAdapter connection-instance-jndi="eis/DB/APPS" datasource-jndi="jdbc/APPS" xa-enabled="true" action="create" wlserver="pips.BAERPSOA"/>
    <ManagedServer wlserver="pips.BAERPSOA" action="start" failonerror="true"/>
    </Configurations>
    <Deployments>
    <xxxposite xxxpositeName="PurchaseOrderListEbizProvider" xxxpositedir="${AIA_HOME}/xxxposites/PurchaseOrderListEbizProvider" revision="1.0" wlserver="pips.BAERPSOA" action="deploy" />
    </Deployments>
    <PostInstallScript>
    </PostInstallScript>
    </DeploymentPlan>
    AIAInstallProperties
    <?xml version="1.0" encoding="UTF-8"?>
    <properties>
    <aiainstance>
    <aiaHome>/oracle/product/Middleware/AIA</aiaHome>
    <name>AIA_DEV</name>
    <javahome>/oracle/product/jdk16</javahome>
    <remote_install>false</remote_install>
    <domain_root>/oracle/product/Middleware/user_projects/domains/base_domain</domain_root>
    <mwHome>/oracle/product/Middleware</mwHome>
    <soaHome>/oracle/product/Middleware/Oracle_SOA1</soaHome>
    <aiainstalltype>standard</aiainstalltype>
    <isencrypted>false</isencrypted>
    </aiainstance>
    <fp>
    <version>11.1.1.3.0</version>
    <server>
    <adminhostname>xxx.xxx.xxx.xxx</adminhostname>
    <adminport>7001</adminport>
    <domainname>base_domain</domainname>
    <username>*****</username>
    <password>*****</password>
    <servertype>Server</servertype>
    <soaserver>soa_server1</soaserver>
    <soaserverhostname>xxx.xxx.xxx.xxx</soaserverhostname>
    <soaserverport>8001</soaserverport>
    </server>
    <db>
    <aia>
    <jdbc-url*</jdbc-url>
    <username>******</username>
    <password>******</password>
    <createschema>true</createschema>
    <sysusername>system</sysusername>
    <syspassword>********</syspassword>
    <role>SYSDBA</role>
    <defxxxlttablespace>aia_data</defxxxlttablespace>
    <temptablespace>TEMP</temptablespace>
    </aia>
    <mds>
    <jdbc-url>*</jdbc-url>
    <username>*****</username>
    <password>*****</password>
    </mds>
    <sr>
    <jdbc-url>*</jdbc-url>
    <username>*****</username>
    <password>*****</password>
    <createschema>true</createschema>
    <sysusername>*****</sysusername>
    <syspassword>*****</syspassword>
    <role>SYSDBA</role>
    <defxxxlttablespace>aia_data</defxxxlttablespace>
    <temptablespace>TEMP</temptablespace>
    </sr>
    <jms>
    <jdbc-url>jdbc:oracle:thin:@xxx.xxx.xxx.xxx:1521/SOAD</jdbc-url>
    <username>AIA_DEV_JMSUSER</username>
    <password>******</password>
    <createschema>true</createschema>
    <sysusername>*****</sysusername>
    <syspassword>*****</syspassword>
    <role>SYSDBA</role>
    <defxxxlttablespace>aia_data</defxxxlttablespace>
    <temptablespace>TEMP</temptablespace>
    </jms>
    <xref>
    <jdbc-url>jdbc:oracle:thin:@xxx.xxx.xxx.xxx:1521/SOAD</jdbc-url>
    <username>*****</username>
    <password>*****</password>
    <createschema>true</createschema>
    <sysusername>*****</sysusername>
    <syspassword>*****</syspassword>
    <role>SYSDBA</role>
    <defxxxlttablespace>aia_data</defxxxlttablespace>
    <temptablespace>TEMP</temptablespace>
    </xref>
    <aialifecycle>
    <jdbc-url>jdbc:oracle:thin:@xxx.xxx.xxx.xxx:1521/SOAD</jdbc-url>
    <username>*****</username>
    <password>*****</password>
    <createschema>true</createschema>
    <sysusername>*****</sysusername>
    <syspassword>*****</syspassword>
    <role>SYSDBA</role>
    <defxxxlttablespace>aia_data</defxxxlttablespace>
    <temptablespace>TEMP</temptablespace>
    </aialifecycle>
    </db>
    </fp>
    <oer>
    <server>
    <publishtooer>false</publishtooer>
    <oerurl/>
    <username/>
    <password>*****</password>
    </server>
    </oer>
    <participatingapplications>
    <BAERPSOA>
    <server>
    <adminhostname>xxx.xxx.xxx.xxx</adminhostname>
    <adminport>7001</adminport>
    <domainname>base_domain</domainname>
    <username>*****</username>
    <password>*****</password>
    <servertype>Server</servertype>
    <soaserver>soa_server1</soaserver>
    <soaserverhostname>xxx.xxx.xxx.xxx</soaserverhostname>
    <soaserverport>8001</soaserverport>
    </server>
    <db>
    <aiademoparticipatingapp>
    <jdbc-url>jdbc:oracle:thin:@sbuxtdb4.xxx.xxx.xxx:1571/FINDL</jdbc-url>
    <username>*****</username>
    <password>*****</password>
    <createschema>true</createschema>
    <sysusername>*****</sysusername>
    <syspassword>*****</syspassword>
    <role>SYSDBA</role>
    <defxxxlttablespace>apps_ts_data</defxxxlttablespace>
    <temptablespace>TEMP</temptablespace>
    </aiademoparticipatingapp>
    </db>
    </BAERPSOA>
    </participatingapplications>
    <pips>
    <BAERPSOA>
    <version>11.1.1.3.0</version>
    <server>
    <adminhostname>xxx.xxx.xxx.xxx</adminhostname>
    <adminport>7001</adminport>
    <domainname>base_domain</domainname>
    <username>*****</username>
    <password>*****</password>
    <servertype>Server</servertype>
    <soaserver>soa_server1</soaserver>
    <soaserverhostname>xxx.xxx.xxx.xxx</soaserverhostname>
    <soaserverport>8001</soaserverport>
    </server>
    </BAERPSOA>
    </pips>
    </properties>
    Edited by: Anish Raj on Dec 12, 2011 1:52 PM

    <?xml version="1.0" encoding="UTF-8"?>
    <properties>
    <aiainstance>
    <aiaHome>/oracle/product/Middleware/AIA</aiaHome>
    <name>AIA_DEV</name>
    <javahome>/oracle/product/jdk16</javahome>
    <remote_install>false</remote_install>
    <domain_root>/oracle/product/Middleware/user_projects/domains/base_domain</domain_root>
    <mwHome>/oracle/product/Middleware</mwHome>
    <soaHome>/oracle/product/Middleware/Oracle_SOA1</soaHome>
    <aiainstalltype>standard</aiainstalltype>
    <isencrypted>false</isencrypted>
    </aiainstance>
    <fp>
    <version>11.1.1.3.0</version>
    <server>
    <adminhostname>xxx.xxx.com.xxx</adminhostname>
    <adminport>7001</adminport>
    <domainname>base_domain</domainname>
    <username>xxx</username>
    <password>xxx</password>
    <servertype>Server</servertype>
    <soaserver>soa_server1</soaserver>
    <soaserverhostname>xxx.xxx.com.xxx</soaserverhostname>
    <soaserverport>8001</soaserverport>
    </server>
    <db>
    <aia>
    <jdbc-url>jdbc:oracle:thin:@xxx.xxx.com.xxx:1521/SOAD</jdbc-url>
    <username>AIA_DEV_AIA</username>
    <password>xxx</password>
    <createschema>true</createschema>
    <sysusername>system</sysusername>
    <syspassword>******</syspassword>
    <role>SYSDBA</role>
    <defxxxlttablespace>aia_data</defxxxlttablespace>
    <temptablespace>TEMP</temptablespace>
    </aia>
    <mds>
    <jdbc-url>jdbc:oracle:thin:@xxx.xxx.com.xxx:1521/SOAD</jdbc-url>
    <username>DEV_MDS</username>
    <password>xxx</password>
    </mds>
    <sr>
    <jdbc-url>jdbc:oracle:thin:@xxx.xxx.com.xxx:1521/SOAD</jdbc-url>
    <username>AIA_DEV_AIAEBOD</username>
    <password>xxx</password>
    <createschema>true</createschema>
    <sysusername>system</sysusername>
    <syspassword>*****</syspassword>
    <role>SYSDBA</role>
    <defxxxlttablespace>aia_data</defxxxlttablespace>
    <temptablespace>TEMP</temptablespace>
    </sr>
    <jms>
    <jdbc-url>jdbc:oracle:thin:@xxx.xxx.com.xxx:1521/SOAD</jdbc-url>
    <username>AIA_DEV_JMSUSER</username>
    <password>xxx</password>
    <createschema>true</createschema>
    <sysusername>system</sysusername>
    <syspassword>*****</syspassword>
    <role>SYSDBA</role>
    <defxxxlttablespace>aia_data</defxxxlttablespace>
    <temptablespace>TEMP</temptablespace>
    </jms>
    <xref>
    <jdbc-url>jdbc:oracle:thin:@xxx.xxx.com.xxx:1521/SOAD</jdbc-url>
    <username>AIA_DEV_XREF</username>
    <password>xxx</password>
    <createschema>true</createschema>
    <sysusername>system</sysusername>
    <syspassword>*****</syspassword>
    <role>SYSDBA</role>
    <defxxxlttablespace>aia_data</defxxxlttablespace>
    <temptablespace>TEMP</temptablespace>
    </xref>
    <aialifecycle>
    <jdbc-url>jdbc:oracle:thin:@xxx.xxx.com.xxx:1521/SOAD</jdbc-url>
    <username>AIA_DEV_AIALIFECYCLE</username>
    <password>xxx</password>
    <createschema>true</createschema>
    <sysusername>system</sysusername>
    <syspassword>*****</syspassword>
    <role>SYSDBA</role>
    <defxxxlttablespace>aia_data</defxxxlttablespace>
    <temptablespace>TEMP</temptablespace>
    </aialifecycle>
    </db>
    </fp>
    <oer>
    <server>
    <publishtooer>false</publishtooer>
    <oerurl/>
    <username/>
    <password>*****</password>
    </server>
    </oer>
    <participatingapplications>
    <BAERPSOA>
    <server>
    <adminhostname>xxx.xxx.com.xxx</adminhostname>
    <adminport>7001</adminport>
    <domainname>base_domain</domainname>
    <username>xxx</username>
    <password>xxx</password>
    <servertype>Server</servertype>
    <soaserver>soa_server1</soaserver>
    <soaserverhostname>xxx.xxx.com.xxx</soaserverhostname>
    <soaserverport>8001</soaserverport>
    </server>
    <db>
    <aiademoparticipatingapp>
    <jdbc-url>jdbc:oracle:thin:@xxx.xxx.com.xxx:9999/FINDL</jdbc-url>
    <username>apps</username>
    <password>******</password>
    <createschema>true</createschema>
    <sysusername>system</sysusername>
    <syspassword>*****</syspassword>
    <role>SYSDBA</role>
    <defxxxlttablespace>apps_ts_data</defxxxlttablespace>
    <temptablespace>TEMP</temptablespace>
    </aiademoparticipatingapp>
    </db>
    </BAERPSOA>
    <Ebiz>
    <server>
    <adminhostname>xxx.xxx.com.xxx</adminhostname>
    <adminport>7001</adminport>
    <domainname>base_domain</domainname>
    <username>xxx</username>
    <password>xxx</password>
    <servertype>Server</servertype>
    <soaserver>soa_server1</soaserver>
    <soaserverhostname>xxx.xxx.com.xxx</soaserverhostname>
    <soaserverport>8001</soaserverport>
    </server>
    <db>
    <EBIZ01>
    <jdbc-url>jdbc:oracle:thin:@xxx.xxx.com.xxx:9999/FINDL</jdbc-url>
    <username>apps</username>
    <password>********</password>
    <createschema>true</createschema>
    <sysusername>system</sysusername>
    <syspassword>*****</syspassword>
    <role>SYSDBA</role>
    <defxxxlttablespace>apps_ts_data</defxxxlttablespace>
    <temptablespace>TEMP</temptablespace>
    </EBIZ01>
    </db>
    </Ebiz>
    </participatingapplications>
    <pips>
    <BAERPSOA>
    <version>11.1.1.3.0</version>
    <server>
    <adminhostname>xxx.xxx.com.xxx</adminhostname>
    <adminport>7001</adminport>
    <domainname>base_domain</domainname>
    <username>xxx</username>
    <password>xxx</password>
    <servertype>Server</servertype>
    <soaserver>soa_server1</soaserver>
    <soaserverhostname>xxx.xxx.com.xxx</soaserverhostname>
    <soaserverport>8001</soaserverport>
    </server>
    </BAERPSOA>
    </pips>
    </properties>
    I am still getting this error,
    /oracle/product/Middleware/AIA/Infrastructure/Install/AID/AIAInstallDriver.xml:72: The following error occurred while executing this line:
    /oracle/product/Middleware/AIA/Infrastructure/Install/AID/AIAExecuteDriver.xml:79: The following error occurred while executing this line:
    /oracle/product/Middleware/AIA/Infrastructure/Install/AID/AIAExecuteDriver.xml:58: The following error occurred while executing this line:
    /oracle/product/Middleware/AIA/aia_instances/AIA_DEV/tmp/AIDExecuteDP_temp_687973863.xml:6: The following error occurred while executing this line:
    /oracle/product/Middleware/AIA/Infrastructure/Install/AID/lib/AIDConfigurationLibraryTasks.xml:379: Not provided valid values for jdbc-url, username, password for datasource tag in null
    I think there is something wrong, and there are lot of unwanted sections in the file. Actually we took the defxxxlt file and modified it.
    BAERPSOA is the name of the Project from the AIA LCW, EBIZ01 is the SystemID and Ebiz is the short name. As of now, I am trying to deploy just one component, which is the db adapter composite connected to Oracle E Business Suite.
    Regards,
    ANish.
    Edited by: Anish Raj on Dec 12, 2011 2:05 PM

  • Error while running export.py in OSB 11g

    Hi all,
    I am trying to write wlst in osb 11g. I am getting the following error
    export:
    [echo] exportscript: export.py
    [java] Initializing WebLogic Scripting Tool (WLST) ...
    [java] Welcome to WebLogic Server Administration Scripting Shell
    [java] Type help() for help on available commands
    *[java] Problem invoking WLST - Traceback (innermost last):*
    *[java] File "C:\Documents and Settings\Desktop\WLST\test\export.py", line 7, in ?*
    *[java] ImportError: cannot import name EnvValueQuery*
    [java] Java Result: 1
    BUILD SUCCESSFUL
    Total time: 6 seconds
    Below is my build.xml should I make any more changes to run it in 11g I have changed the com.bea.common.configfwk_1.3.0.0.jar file name and directory names.
    Should I set any class path before running this build.xml ?
    <project default="export">
         <!-- ALSB domain creation project -->
         <property environment="env" />
         <!-- set global properties for this build -->
         <!-- The bea.home property hold that name of the directory where you installed ALSB 3.0.
              you need to change this value so that it matches your installation directory.
         -->
         <property name="bea.home" value="C:\Oracle\Middleware" />
         <!-- The workspace.dir is the directory of the workspace that you created to contain the sample
              projects from this book. By default, the namespace is "alsb30_book"
         -->
         <property name="workspace.dir" value="C:\Documents and Settings\workspace\Test OSB Project" />
         <property name="weblogic.home" value="${bea.home}\wlserver_10.3" />
         <property name="domain.export.script" value="export.py" />
         <property name="domain.import.script" value="import.py" />
         <property name="export.config.file" value="export.properties" />
         <property name="import.config.file" value="import.properties" />
         <property name="build" value="build" />
         <property name="dist" value="dist" />
         <path id="wlst.class.path">
              <fileset dir="${bea.home}\Oracle_OSB1\lib">
                   <include name="sb-kernel-api.jar" />
              </fileset>
              <fileset dir="${bea.home}\modules">
                   <include name="com.bea.common.configfwk_1.3.0.0.jar" />
              </fileset>
              <fileset dir="${weblogic.home}\server\lib">
                   <include name="weblogic.jar" />
                   <include name="webserviceclient.jar" />
              </fileset>
         </path>
         <taskdef name="wlst" classname="weblogic.ant.taskdefs.management.WLSTTask" classpathref="wlst.class.path" />
         <target name="export">
              <echo message="exportscript: ${domain.export.script}" />
              <java classname="weblogic.WLST" fork="true" classpathref="wlst.class.path">
                   <arg line="${domain.export.script} ${export.config.file}" />
              </java>
         </target>
         <target name="clean">
              <delete dir="${dist}" />
              <delete dir="${build}" />
              <mkdir dir="${dist}" />
              <mkdir dir="${build}" />
         </target>
    </project>

    Perhaps you are using old WLST code (used for OSB 10g), with OSB 11g.
    The ALSBConfigurationMBean (com.bea.wli.sb.management.configuration.ALSBConfigurationMBean) Interface in the com.bea.wli.sb.management.configuration package in the Oracle Fusion Middleware Java API Reference for Oracle Service Bus includes example code illustrating how to import and export Oracle Service Bus 11g configurations, how to change environment values, how to query resources, and so on. Please find it here -
    http://download.oracle.com/docs/cd/E14571_01/apirefs.1111/e15033/toc.htm
    Regards,
    Anuj

Maybe you are looking for

  • Ibook G3 600 Tiger

    I just erased the entire 20 Gig drive on an ibook that I just bought used. It shows only 18.5 available before I install Tiger. After the installation, it shows only 13.75Gigs available. Is this about the correct amount of space for Tiger or can I tr

  • Yosemite, Security Settings Does Not Unlock

    Hi, I am trying to change my security settings so unapproved software can be also installed. However, when I click on the lock, it does not unlock after I type in my credentials and I am an admin on my computer. Can anyone help with this? By the way,

  • How can i modify a step type description?

    I need to modify the description of some custom step types. I saw how this is made in the Basic Ivi step types. What i want to do is to display the current selected operation for an ivi step type as is done in the basic Ivi step type. Isaw that this

  • How to restore safari

    My computer froze and it was necessary to use the 'apple c' while starting up with the osx install discs. Once everything was restored (the computer only used 2/5 install discs), my safari will not respond. I am unsure what to do.

  • How to get Artwork into ITunes?

    What do I need to do to associate artwork in ITunes? I have all the cover art for each album in each album individual folder as a .jpg. I have tried dropping the .jpg on the album in ITunes... nothing. Whenever I go to Ad Artwork it wants me to setup