Changing environment variables not reflected in axis2.

Hi,
I am using axis2(1.2).And my problem is that I am trying to call two or more webservice from the same host .Let me explain.I have a web page .Its take some info to serach and also the parameter to which service to call.Suppose there are two service running (A and B).For A, need the following environment to set before calling :
System.setProperty("javax.net.ssl.keyStore",keyStore);
System.setProperty("javax.net.ssl.keyStorePassword", keyPwd);
System.setProperty("javax.net.ssl.keyStoreType",keyType);
System.setProperty("javax.net.ssl.trustStoreType",trustType);
System.setProperty("javax.net.ssl.trustStore",trustStore);
System.setProperty("javax.net.ssl.trustStorePassword",trustPwd);And for B do not required any environment variable.
When I try to connect the B(clear all the environment) after accessing the A its throw the following exception :
org.apache.axis2.AxisFault: sun.security.validator.ValidatorException:
PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested targetBut if I restart the webserver and try to call B its working but if I try to access A its failed.
So its seem to me that once the environment is set its not possible to reset it.
So is there any solution.
Thanks & Regrads

i haven't used axis2 specifically, but i would imagine that it provides a way to configure that connection information for a specific webservice connection (as opposed to globally for the jvm). a quick google for "axis 2 custom keystore" found this link: http://shivendra-tripathi.blogspot.com/2010/11/enabling-ssl-for-axis2-service-and.html which shows how to configured an axis2 client with a custom keystore ("Approach 2", at the very end of the article). actually, looking again at that article, it may be configuring a system-wide setting (the Protocol.registerProtocol() call looks to be static). this looks better: http://wso2.org/library/1646 .
Edited by: jtahlborn on Jul 11, 2011 2:06 PM

Similar Messages

  • Changing Environment Variables (not jre path)

    I am writing a setup program which will modify an Environment Variables. I need to add the string ";%PROGRAM_HOME%bin"to the Path variable. The problem lies in appending the new string onto the old one. For instance, say that
    Path=%SystemRoot%\system32;andSystemRoot=C:\WINDOWSIf I get the current Path variable (so I can append to it) I get Path=C:\WINDOWS\system32After appending my new variable I getPath=C:\WINDOWS\system32;%PROGRAM_HOME%\binWhile this will work, problems will arise in the future if changes are made to the SystemRoot variable, since the Path value no longer contains a link to the SystemRoot variable.
    Basically, is there a way to append to Environmental Variables?

    I am writing a setup program which will modify an
    Environment Variables. I need to add the string
    ";%PROGRAM_HOME%bin"to the Path
    variable. The problem lies in appending the new
    string onto the old one. For instance, say that
    Path=%SystemRoot%\system32;andSystemRoot=C:\WINDOWSIf I get the current Path variable (so I can append
    to it) I get Path=C:\WINDOWS\system32After appending my new variable I
    getPath=C:\WINDOWS\system32;%PROGRAM_HOME%\bin[/
    code]
    While this will *work,* problems will arise in the
    future if changes are made to the SystemRoot
    variable, since the Path value no longer contains a
    link to the SystemRoot variable. 
    Basically, is there a way to append to Environmental
    Variables?set PATH=%PROGRAM_HOME%\bin;%PATH%
    (T)

  • How to change Environment variables Windows Vista SP1 Home premuim 32 bit

    Hei. I run Windows Vista Home Premium 32bit SP1. Now i have a huge problem. By a mistake i changed the name in the environment variables settings. Now i cant access it to change it back. the message is "cannot find systemproperteis, control the
    settings and try again" But i cant controll the settings when i dont get access!! I remember it was %SystemRoot% before. If i right click My Computer-->Properties i cannot access the advanced tab. I cannot run anything from System32. If i run
    services.msc i get the note "the path do not exist, controll the setttings and try again". I am adminstrator. I can run cmd but not in adminstrator. Is it som way i can change or restore it to the right variables??

    Have you tried System Restore? See:
    http://www.howtogeek.com/howto/windows-vista/using-windows-vista-system-restore/
    If the initial instructions don't work, scroll down to the heading "If Your System Won't Boot"

  • Ora-7217 sltln environ variable not set..

    Here's the story..
    Oracle 8.1.7 on RHat 6.2..
    Installation unbelievably perfect!!!
    no core dump in any programs like sqlpus, svrmgrl..but..
    trying to start with svrmgrl..connect internal or thru sqlplus as sysdba
    ora-7217--sltln environment var not set
    keeps coming..made sure all the vars are
    set in .profile..any clue what's happening?
    vinny.

    A way to set environment variables to binaries is to specify
    it on the command line. For example:
    LD_LIBRARY_PATH=/usr/mylibs httpd
    If you are using apache, it could be changed in the /etc/init.d/apache
    script.
    If you use a script to startup the server, you can use the same approach.
    I am not sure about the obj.conf file.
    Sun - DTS

  • Changes in RFC not reflecting in WebService

    Hi everyone,
    I´ve made a simple WebService using SAP-PI, that is sync. It received a request, uses a RFC to check data in SAP and then gives the response. It's working just fine.
    Now, the RFC has change - some business rule - and for some reason, it's not reflecting on my WebService. (I can see that because the response should have 3 itens but I have 4).
    I mean: if I run the RFC in the SAP R3, it returns one thing (3 itens), if I run my WebService, that calls this RFC, it's returning 'the same old data' (4 itens).
    I think I should not change anything in my SAP-PI since the input and output are the SAME. Only the RFC ABAP rule changed.
    What should I do?
    I did all sort of 'cache cleanig' already.
    I did re-import the RFC already.
    I did re-generate the WSDL already.
    Nothing... still not able to see the change in the RFC business rule.
    What should I do?
    Regards!

    Hi,
      For this need to clear matadata loaded ...
    RFC Changes not working in XI
    Check the above thread for doing the same..i.e activate the RFC channel by modifying something
    HTH
    Rajesh

  • Changes in .RDF not reflected in template

    Hi,
    I am wondering if anyone else has had this issue. I made a change for a function in my .RDF file and moved it to our reports directory. The change is not reflected in the BI Publisher output. Is there something else I need to do to get the template to pick up the change as well. The problem seems to be that the XML output does not change and seems to only be running the old file. Is there somewhere else I need to move the file to or does anything have to be bounced to make changes effective? Any help is greatly appreciated.

    Hi Jason,
    Check if there is a Load balancer in use...
    If the address you give to users to access EBS (http://erp.company.com:8001/) looks different from the server you upload the files onto (e.g. server1.company.com), you have good reason to suspect may be a Load balancer in use. Load balancing in EBS context means e.g. that the work load is automatically balanced between two or more application servers. In this case you would need to upload the updated file to every server used (server1.company.com, server2.company.com, etc).
    The load balancer gives assignments to the application servers according to some internal logic. You can query fnd_concurrent_requests to see which AS was assigned to carry out each request. If you have an obsolete version of the report on one AS, and new one on the other AS, whichever could be picked. Actually you may have the old one picked dozen times in a row. This could explain why the updates are not reflected when you run the concurrent program.
    Best Regards, Matilda Smeds

  • Changes in MM02 not reflecting in COPA lin item report

    Hi,
    In my project during data conversion material was grouped wrongly. We realised it later once we started designing COPA reports. The material is used by seven company codes. The basic material group defined in basic data is used by all company codes while Material group 1,2,3 4 and 5 are used by company specific defined in sales orgs 2 View in MM master(MM01).
    I am designing report for three companies by using material group 1,2,3,4 and 5.
    We tried changing the material group 1,2,3,4 and 5 for wrongly grouped materials in MM02. But in COPA report these changes are not reflecting. The grouping in report is still as per the data conversion grouping.
    Please suggest on how should we rectify our material grouping to reflect in COPA report.
    Regds

    Hi,
    in COPA reports characteristics are read from the COPA tables, they are not dynamically derived at the time of executing the report. In the COPA tables oyu will find the characteristic as derived at the moment of posting the line item.
    If the characeristic that you want to rectify is in the definition of your your COPA segments - which you can check through TC KEQ3 - then there is possibility to carry changed master data over to past COPA data.
    TC KEND allows you change the existing COPA segments according to current master data. However, it will not make changes to table CE1XXXX, where COPA line items are stored, but changes happen on the segment level (CE4XXXX).
    This means that you always see the changes in COPA reports that read from segments, but not in line item based reports.
    To change your output from line item based reports I see no other possibilty but to make correcting entries in CE1XXXX using KE21N or KEFC.
    If you should consider using KEND please read the documentation for "realignment". It can create problems, for example if you have a SAP BW that is delta-updated from CE11XXX. Also your summarization levels for COPA have to be rebuilt after KEND.

  • SQLPATH environment variable not read by Sql Developer

    Does anyone know why Sql Developer doesn't seem to read the SQLPATH environment variable? I've googled this situation quite a bit with no luck. Am frankly very confused...How can Sql Developer not have the ability to read from the SQLPATH environment variable?
    Considering all the scripts out there that have been written for Sql*Plus, with the assumption that the SQLPATH variable has been set to allow for multiple directories?
    I feel like I'm just missing something in Tools->Preferences in Sql Developer. I just can't see what it is. As a side note, my overall intention is to enable my team members to run the db build scripts from Sql Developer, rather than Sql*Plus...
    Thanks in advance.

    Hi 917092 ,
    Gary Graham wrote:
    Hi,
    The closest equivalent is Tools|Preferences|Database|Worksheet|Select default path to look for scripts, but supports only a single directory.
    This parameter takes multiple directories. For example in Windows the separation character is ";" . The chooser only allows one directory to be chosen at a time - but multiple paths can be typed in.
    SQLPATH reads the environmental variable (it may not read the windows registry setting).
    set SQLPATH=C:\Documents and Settings\THE_USER\first;C:\Documents and Settings\THE_USER\second
    @first
    (reads first.sql from C:\Documents and Settings\THE_USER\first)
    @second
    (reads second.sql from C:\Documents and Settings\THE_USER\second)
    Is that sufficient?
    If there is a bug to be logged please provide more details:
    Including:
    -OS
    -SQLPATH (environmental variable or set via preferences)
    -worksheet command
    -.sql file / reproducible test case
    -output
    -expected output
    Turloch
    SQLDeveloper Team

  • Buyer changed Promised should not reflect in supplier portal.

    Hi,
    I am creating a PO with NBD to D30 and promised date (NBD - Transit time) to D25 and approve it.
    Now this PO goes to supplier through iSupplier.
    Supplier changes the date to D40 as new promised date.
    This goes back to Buyer and Buyer changes the Promised date and reapprove it.
    Now since FOB on buyer's side, he can decide the transit only before 1 week time of shipment. So the transit time may change 5 to 10 days or 20 days or remains 5 days only.
    Based on that, Buyer will change the promised date 1 week shipment and reapprove the PO.
    Now this change should not reflect in iSupplier. Because the pomised date may some time more than (D45) what supplier promised (D40).And this may affect their performance report (Supplier point of view)
    Please suggest, Is there workaround?
    Thanks,
    Jey

    Hi,
    As Infocube is additive and ODS is over write, if you want single value and that is addition of both first and second then compress the data in the cube. it is not possible to have latest value from the cube. in ODS it is possible to have latest value.
    Best regards,
    Malli.

  • Changes to Query not reflected in views

    We want to use various views off of a 'master' query to publish in our portal.  I was working on the assumption that an advantage of the views was that if a change needed to be made it could be made in the query and then all the views off of that query would reflect the change.  However I have discovered that some changes made in the query do not get reflected in the views.  For example if I change the scaling on a key figure, this change does not get reflected in the views.  In one case, as a test, I modified a formula in the query and also changed the scaling.  The view reflected the modified calculation but did not reflect the new scale.
    Does anyone know how to force these type of changes or is there documentation that at least list those changes made to the query that will not get reflected in the views?
    Any help would be appreciated.
    Stan Pickford

    Hi Stan,
    in general: Everything which belongs to the query view object won't be overwritten by query changes.
    What belongs to the query view object? Basically everything you can change during execution of a query (Dynamic filters, Drill-Down-State, Properties of characteristics, structure elements (keyfigures) and Query-View).
    What does not belong the query-view object: Definition of structure elements, Navigation space (characteristics available during runtime), Static filters.
    Heike

  • Changes to component not reflected after transport

    We recently modified the  BT115QIT_SLSQ assignment block to rearrange some of the fields and column headers and also add in some newer standard fields. When transported up to quality, we noticed that only some of the changes came in, but others did not. Looking at the setup in the component workbench, it looks identical to the setup in DEV and we didn't receive any errors on the transport. I do  notice the View Navigation tab is now gone in quality and we were getting a "Error in runtime repository' error when we opened up the component in quality which has disappeared all of a sudden. The changes that do come in work fine.
    I tried to do a comparison between the repository.xml files between the 2 environments but they are identical. This was verified using WinMerge, a file comparison utility.
    What else could be causing the changes to the component to not reflect correctly or for that View Navigation tab to be missing?

    Hi James,
    When u transport the Enhanced component to Quality/Prod system the SICF node for that component in SICF transaction will be deactive in the target system, Activate the SICF node for all the enhanced components by right clicking in the SICF transaction manually in the Quality system, this will remove the 'Error in runtime repository' error.
    If you have added the custom fields through UI configuration tool, go to the personalize option for the view/component, select 'Reset to default' option.
    Regards,
    S Reddy

  • Environment variables not passed through to player in flexunit 4.1.0-beta3

    fyi, to get flexunit-4.1.0-beta3 FlexUnit4AntTasks invocation of flashplayer to not be rejected by the vncserver, i needed to modify the FlexUnitLauncher to pass through the environment variables to the command environment.
    the reason this is required, i think, is the use of Runtime.exec() directly in CustomPlayerCommand -- in flexunit-4.0.0, the same function was accomplished using the ant executor, which does passthrough by default.
    anyway, curious if anyone else has seen this issue, or if i'm doing something dumb.
    --- flexunit/flexunit-4.1.0-beta3/flexunit-flexunit-da29198/FlexUnit4AntTasks/src/org/flexuni t/ant/launcher/FlexUnitLauncher.java    (revision 7250)
    +++ flexunit/flexunit-4.1.0-beta3/flexunit-flexunit-da29198/FlexUnit4AntTasks/src/org/flexuni t/ant/launcher/FlexUnitLauncher.java    (revision 7251)
    @@ -79,7 +82,13 @@
           command.setSwf(swf);
           if (runHeadless())
    -         command.setEnvironment(new String[]{ "DISPLAY=:" + xvncStart.getCurrentDisplay() });
    +         Map<String, String> env = System.getenv();
    +         List<String> envArgs = new ArrayList<String>();
    +         for (Map.Entry<String, String> entry : env.entrySet()) {
    +            envArgs.add(entry.getKey() + "=" + entry.getValue());
    +         }
    +         envArgs.add("DISPLAY=:"+xvncStart.getCurrentDisplay());
    +         command.setEnvironment(envArgs.toArray(new String[0]));
              LoggingUtil.log("Setting DISPLAY=:" + xvncStart.getCurrentDisplay());

    ok. i went looking for a JIRA link somewhere around here and couldn't find it.  do you have a URL handy?
    there are a couple of other things too:
    you probably want trustDirectory.mkdirs() rather than mkdir() in TrustFile.java
    you probably want CustomPlayerCommand.setLocalTrusted() -- my player command isn't in the machine's path, but i still want to be able to touch the trust file.  So I copied the trustFile.add() stuff from FlashPlayerCommand.launch() into CustomPlayerCommand.launch().  probably a better solution would be refactoring CustomPlayerCommand to be more like FlashPlayerCommand.
    anyway, if you want patches, tell me where to put them and i'll post some.

  • Win7 11g  -- Environment variables not set?

    I have an 11g installation on a school harddrive that doesn't seem to have any of the environment variables set properly. Even ORACLE_HOME is not set. How can I fix that situation and how many environment variables need to be defined?
    Also some of the Oracle scripts seem to use the forward-slash rather than the back-slash for paths. Will Win7 care?
    Thanks

    >
    I have an 11g installation on a school harddrive that doesn't seem to have any of the environment variables set properly. Even ORACLE_HOME is not set. How can I fix that situation and how many environment variables need to be defined?
    >
    You can set the following 3 basic environment variable in your system variables list. So that you can connect to database with out manually specifying the variables every time.
    ORACLE_HOME: the ORACLE_HOME variable should be set.
    ORACLE_SID: it is the name of the instance.
    PATH=$ORACLE_HOME/bin : this is the place where your oracle binaries exists.
    >
    Also some of the Oracle scripts seem to use the forward-slash rather than the back-slash for paths. Will Win7 care?
    >
    Windows server uses back-slash
    Unix flavours use forward-slash

  • [SOLVED] Change environment variables with Shell scripts

    How can I change the "BROWSER" environment variable with a shell script; so I can change it on the fly?
    Last edited by oldtimeyjunk (2012-10-31 12:57:42)

    If you just want to do it for BROWSER so that you can change your default web browser on the fly, you could set BROWSER to e.g. ~/bin/mybrowser and create a symlink to the browser you want at ~/bin/mybrowser. Then you could change the symlink at will.
    EDIT: man xdg-settings
    Last edited by cfr (2012-10-31 02:20:16)

  • Changes in prompts not reflecting for some users

    Good Morning all,
    I have changed a number of dashboard prompts in 11.1.1.5 to default to a dynamic repos variable.
    The changes are shown on my obiee, and some other users obiee. But some users are not seeing the changes that I have made. i.e. the prompt still defaults to a hardcoded value which was the case before I changed it.
    Tried:
    -logging in and out
    -closing cursors
    -removing any saved customizations.
    Note I made the changes last week so everyone has logged in and out.
    Any ideas why this is happening?
    Thanks
    Kev

    Thanks for the swift response.
    Users have cleared browser caches,
    I have cleared obiee cache.
    Do you mean clearing the query cache via command line?
    Please note that this is dev environment so caching is turned off for obiee.
    thanks
    Kev

Maybe you are looking for

  • How to Show Graph

    Hii     I have issues showing Business Graphics in SAP . My exact issue is that i have to show data in a table which has the following format : Date - Val1 - Val2 - Val3                    Now there can be any no. of rows in this table and i have to

  • How do I sync a new Iphone 4S when I already have an Iphone on the same account?

    I told it that it was a new phone, but it grabbed my existing name and downloaded the data.

  • ITunes 9 Screwing Up Video Tags?

    Hello All, I'm running iTunes 9 on 10.6.1. I've been organising my TV Shows... adding Series, Episode ID, Number etc. In iTunes 8 I would load a Series into iTunes (copy to my internal drive), add the tagging data and move the files from the internal

  • Unable to add an alias...

    Hi all, here is what i try to do : Under Solaris 9, logged as root user, i edit the ~/.profile to add alias command like this : # cat .profile PATH=/usr/sbin:/usr/bin:/usr/local/bin:/usr/lib:/opt/local/bin:/usr/ccs/bin:/opt/apache/bin:/export/home/vp

  • Lenovo T420 Intel LAN Vista drivers missing from Lenovo download site

    Hi, Im trying to find Intel LAN Vista driver for Lenovo T420. I cannot see Vista driver listed here http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-77167 I need Vista driver for Windows PE2.1 so i can use PXE boot on Altiris Deplo