Consuming Web Services in 11.2 does not work ??

Hello,
Did anyone manage to call a Web Service from Oracle 11.2 database?
We wanted to call a web service from Oracle, so for example if I execute:
SELECT add_numbers(1, 5) FROM dual;
from my database, I get the result 6.
Cool thing is that the add_numbers function is not in my database, but in a database somewhere in the cloud, and I access the function as a web service.
Oracle provides step-by-step documentation how to do it, but we couldn't make it working by following the docs. It was done on a clean Oracle 11.2 database install.
We followed the instructions from: http://www.oracle.com/technology/sample_code/tech/java/jsp/callout_users_guide.htm
The main part of the job is to:
1) Load the java classes into the Oracle database by issuing the following command: % loadjava -u sys\<password> -r -v -f -genmissing dbwsclientws.jar dbwsclientdb11.jar
2) Install the UTL_DBWS package into the database (it is not installed by default in 11g):
SQL> @?/sqlj/lib/utl_dbws_decl.sql
SQL> @?/sqlj/lib/utl_dbws_body.sql
We loaded the classes into the SYS user and installed the UTL_DBWS package into the SYS user as well.
3) Create a function that uses UTL_DBWS package to call a web service: http://www.oracle-base.com/articles/10g/utl_dbws10g.php
However, when we tried to run the add_numbers function, it returned an error from the UTL_DBWS package, from the create_service function (line 190), the function returned that the java class that it calls does not exist:
ORA-29532: Java call terminated by uncaught Java exception: java.lang.IllegalAccessException: java.lang.NoClassDefFoundError
ORA-06512: at "SYS.UTL_DBWS", line 193
ORA-06512: at "SYS.UTL_DBWS", line 190
ORA-06512: at "SYS.ADD_NUMBERS", line 25
Line 193 in UTL_DBWS package goes like this:
function create_service_proxy(wsdl_Document_Location VARCHAR2, service_Name VARCHAR2) return SERVICE
as language java
name 'oracle.jpub.runtime.dbws.DbwsProxy.createService(java.lang.String,java.lang.String) return long';
However, this makes no sense because the class is loaded:
select dbms_java.longname(object_name), status, object_type from all_objects where
object_name like '%DbwsProxy%'
and object_type = 'JAVA CLASS'
Output:
oracle/jpub/runtime/dbws/DbwsProxy$1;VALID;JAVA CLASS
oracle/jpub/runtime/dbws/DbwsProxy$CallProxy;VALID;JAVA CLASS
oracle/jpub/runtime/dbws/DbwsProxy$ServiceProxy;VALID;JAVA CLASS
oracle/jpub/runtime/dbws/DbwsProxy;VALID;JAVA CLASS
Anyone knows the cause of the exception?
Edited by: user8938058 on Feb 1, 2011 2:08 AM

I had the same problem. For me below code works:
CREATE OR REPLACE FUNCTION SYS.add_numbers (p_int_1 IN NUMBER,
p_int_2 IN NUMBER)
RETURN NUMBER
AS
l_service UTL_DBWS.service;
l_call UTL_DBWS.call;
l_wsdl_url VARCHAR2(32767);
l_namespace VARCHAR2(32767);
l_service_qname UTL_DBWS.qname;
l_port_qname UTL_DBWS.qname;
l_operation_qname UTL_DBWS.qname;
l_xmltype_in SYS.XMLTYPE;
l_xmltype_out SYS.XMLTYPE;
l_return NUMBER;
BEGIN
l_wsdl_url := 'http://www.oracle-base.com/webservices/server.php?wsdl';
l_namespace := 'http://www.oracle-base.com/webservices/';
l_service_qname := UTL_DBWS.to_qname(l_namespace, 'Calculator');
l_port_qname := UTL_DBWS.to_qname(l_namespace, 'CalculatorPort');
l_operation_qname := UTL_DBWS.to_qname(l_namespace, 'ws_add');
l_service := UTL_DBWS.create_service (
service_name => l_service_qname);
l_call := UTL_DBWS.create_call (
service_handle => l_service);
utl_dbws.set_target_endpoint_address(l_call, 'http://www.oracle-base.com/webservices/server.php');
utl_dbws.set_property( l_call, 'OPERATION_STYLE', 'rpc');
l_xmltype_in := SYS.XMLTYPE('<?xml version="1.0" encoding="utf-8"?>
<ws_add xmlns="' || l_namespace || '">
<int1>' || p_int_1 || '</int1>
<int2>' || p_int_2 || '</int2>
</ws_add>');
l_xmltype_out := UTL_DBWS.invoke(call_Handle => l_call,
request => l_xmltype_in);
UTL_DBWS.release_call (call_handle => l_call);
UTL_DBWS.release_service (service_handle => l_service);
l_return := l_xmltype_out.extract('//return/text()').getNumberVal();
RETURN l_return;
END;
It seems that the problem is with class oracle.jpub.runtime.dbws.DbwsProxy.createService(java.lang.String,java.lang.String) return long
I rewrite your example that it uses oracle.jpub.runtime.dbws.DbwsProxy.createService(java.lang.String) return long
In the database log I get this stacktrace:
*** 2011-06-03 11:22:37.390
ServiceFacotory: oracle.j2ee.ws.client.ServiceFactoryImpl@3b689a27
WSDL: http://www.oracle-base.com/webservices/server.php?wsdl
ERROR: java.lang.ExceptionInInitializerError
java.lang.ExceptionInInitializerError
     at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readDocument(WSDLReaderImpl.java:309)
     at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:275)
     at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:462)
     at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:440)
     at oracle.j2ee.ws.common.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:161)
     at oracle.j2ee.ws.common.processor.config.ModelInfo.buildModel(ModelInfo.java:167)
     at oracle.j2ee.ws.client.dii.ServiceInfoBuilder.getModel(ServiceInfoBuilder.java:196)
     at oracle.j2ee.ws.client.dii.ServiceInfoBuilder.getModel(ServiceInfoBuilder.java:181)
     at oracle.j2ee.ws.client.dii.ServiceInfoBuilder.buildServiceInfo(ServiceInfoBuilder.java:114)
     at oracle.j2ee.ws.client.dii.ConfiguredService.<init>(ConfiguredService.java:54)
     at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:43)
     at oracle.jpub.runtime.dbws.DbwsProxy$ServiceProxy.<init>(Unknown Source)
     at oracle.jpub.runtime.dbws.DbwsProxy$ServiceProxy.<init>(Unknown Source)
     at oracle.jpub.runtime.dbws.DbwsProxy.createService(Unknown Source)
Caused by: java.util.MissingResourceException: Can't find oracle.j2ee.ws.wsdl.ORAWSDLMessageBundle bundle
     at java.util.logging.Logger.setupResourceInfo(Logger.java:1285)
     at java.util.logging.Logger.<init>(Logger.java:203)
     at java.util.logging.Logger.getLogger(Logger.java:271)
     at oracle.j2ee.ws.wsdl.ORAWSDLMessages.<clinit>(ORAWSDLMessages.java:14)
     ... 14 more
java.lang.IllegalAccessException: java.lang.ExceptionInInitializerError
     at oracle.jpub.runtime.dbws.DbwsProxy.createService(Unknown Source)
ServiceFacotory: oracle.j2ee.ws.client.ServiceFactoryImpl@3b689a27
WSDL: http://www.oracle-base.com/webservices/server.php?wsdl
ERROR: java.lang.NoClassDefFoundError
java.lang.NoClassDefFoundError
     at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readDocument(WSDLReaderImpl.java:309)
     at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:275)
     at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:462)
     at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:440)
     at oracle.j2ee.ws.common.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:161)
     at oracle.j2ee.ws.common.processor.config.ModelInfo.buildModel(ModelInfo.java:167)
     at oracle.j2ee.ws.client.dii.ServiceInfoBuilder.getModel(ServiceInfoBuilder.java:196)
     at oracle.j2ee.ws.client.dii.ServiceInfoBuilder.getModel(ServiceInfoBuilder.java:181)
     at oracle.j2ee.ws.client.dii.ServiceInfoBuilder.buildServiceInfo(ServiceInfoBuilder.java:114)
     at oracle.j2ee.ws.client.dii.ConfiguredService.<init>(ConfiguredService.java:54)
     at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:43)
     at oracle.jpub.runtime.dbws.DbwsProxy$ServiceProxy.<init>(Unknown Source)
     at oracle.jpub.runtime.dbws.DbwsProxy$ServiceProxy.<init>(Unknown Source)
     at oracle.jpub.runtime.dbws.DbwsProxy.createService(Unknown Source)
java.lang.IllegalAccessException: java.lang.NoClassDefFoundError
     at oracle.jpub.runtime.dbws.DbwsProxy.createService(Unknown Source)
Maybe somebody explain why if I use function create_service(wsdl_Document_Location URITYPE, service_Name QNAME)
RETURN SERVICE it throws ORA-29532: Java call terminated by uncaught Java exception: java.lang.IllegalAccessException: java.lang.NoClassDefFoundError
and when I use function create_service(service_Name QNAME) RETURN SERVICE it works ?
Please help
Edited by: user10200937 on 2011-06-03 03:14

Similar Messages

  • Consuming Web Services in 11.2 does not work (UTL_DBWS)

    Hello
    i read some documents for consuming web services on the internet , but i get an error when i call add_numbers function as follows:
    i connected on WSUSER , then
    SQL> select add_numbers(1,3) from dual;
    The Error message is:
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception:
    java.lang.IllegalAccessException: java.lang.ExceptionInInitializerError
    ORA-06512: at "WSUSER.UTL_DBWS", line 193
    ORA-06512: at "WSUSER.UTL_DBWS", line 190
    ORA-06512: at "WSUSER.ADD_NUMBERS", line 25"
    I use the following steps to setup the UTL_DBWS :
    1-     Create new user 'WSUSER'
    2-     Run the UTL_DBWS scripts ( utl_dbws_decl.sql , utl_dbws_body.sql) on WSUSER.
    3-     Execute this command
    loadjava -u scott/tiger -r -v -f -genmissing dbwsclientws.jar dbwsclientdb11.jar
    4-     Log in as sys and grant these privileges to our new user:
    execute dbms_java.grant_permission('WSUSER','SYS:java.util.PropertyPermission','http.proxySet','write');
    execute dbms_java.grant_permission('WSUSER','SYS:java.util.PropertyPermission','http.proxyHost', 'write');
    execute dbms_java.grant_permission('WSUSER','SYS:java.util.PropertyPermission','http.proxyPort', 'write');
    execute dbms_java.grant_permission('WSUSER','SYS:java.lang.RuntimePermission', 'accessClassInPackage.sun.util.calendar','');
    execute dbms_java.grant_permission('WSUSER','SYS:java.lang.RuntimePermission','getClassLoader','');
    execute dbms_java.grant_permission('WSUSER','SYS:java.net.SocketPermission','*','connect,resolve');
    execute dbms_java.grant_permission('WSUSER','SYS:java.util.PropertyPermission','*','read,write');
    execute dbms_java.grant_permission('WSUSER','SYS:java.lang.RuntimePermission','setFactory','');
    execute dbms_java.grant_permission('WSUSER','SYS:java.lang.RuntimePermission', 'createClassLoader', '' )
    5-     Create add_numbers function on wsuser to test utl_dbws:
    CREATE OR REPLACE FUNCTION add_numbers (p_int_1 IN NUMBER,
    p_int_2 IN NUMBER)
    RETURN NUMBER
    AS
    l_service UTL_DBWS.service;
    l_call UTL_DBWS.call;
    l_wsdl_url VARCHAR2(32767);
    l_namespace VARCHAR2(32767);
    l_service_qname UTL_DBWS.qname;
    l_port_qname UTL_DBWS.qname;
    l_operation_qname UTL_DBWS.qname;
    l_xmltype_in SYS.XMLTYPE;
    l_xmltype_out SYS.XMLTYPE;
    l_return NUMBER;
    BEGIN
    l_wsdl_url := 'http://www.oracle-base.com/webservices/server.php?wsdl';
    l_namespace := 'http://www.oracle-base.com/webservices/';
    l_service_qname := UTL_DBWS.to_qname(l_namespace, 'Calculator');
    l_port_qname := UTL_DBWS.to_qname(l_namespace, 'CalculatorPort');
    l_operation_qname := UTL_DBWS.to_qname(l_namespace, 'ws_add');
    l_service := UTL_DBWS.create_service (
    wsdl_document_location => URIFACTORY.getURI(l_wsdl_url),
    service_name => l_service_qname);
    l_call := UTL_DBWS.create_call (
    service_handle => l_service,
    port_name => l_port_qname,
    operation_name => l_operation_qname);
    l_xmltype_in := SYS.XMLTYPE('<?xml version="1.0" encoding="utf-8"?>
    <ws_add xmlns="' || l_namespace || '">
    <int1>' || p_int_1 || '</int1>
    <int2>' || p_int_2 || '</int2>
    </ws_add>');
    l_xmltype_out := UTL_DBWS.invoke(call_Handle => l_call,
    request => l_xmltype_in);
    UTL_DBWS.release_call (call_handle => l_call);
    UTL_DBWS.release_service (service_handle => l_service);
    l_return := l_xmltype_out.extract('//return/text()').getNumberVal();
    RETURN l_return;
    END;
    6-     Test the function
    Select add_numbers(1,2) from dual
    on the test i get the error message :
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception:
    java.lang.IllegalAccessException: java.lang.ExceptionInInitializerError
    ORA-06512: at "WSUSER.UTL_DBWS", line 193
    ORA-06512: at "WSUSER.UTL_DBWS", line 190
    ORA-06512: at "WSUSER.ADD_NUMBERS", line 25
    anyone have an idea to resolve this error .
    thanks alot

    Hi.
    Looking at the code, it seems it is my article you are asking about.
    http://www.oracle-base.com/articles/10g/utl_dbws10g.php
    I've just run through it on an 11.2 instance and it works fine for me.
    Make sure your server has access to the Internet and make sure the java classes are loaded successfully.
    Cheers
    Tim...

  • Web Service Test in SE80 does not work with internal Table

    Hello,
    I have created a web server based on a function module. It works fine when the server is invoked from outside (.Net or SOAPUI).
    However, when I test it in SE80, (open the Server and then F8), it shows error message:
         Access to the table ref. node 'Y02VSI_CAE_CONDITIONITEM' outside a loop
    (Germany Zugriff auf den Tabellen-Ref-Node 'Y02VSI_CAE_CONDITIONITEM' außerhalb einer Schleife )
    The test xml is generated from SAP, I just fill the data as following:
    This XML is absolute correct. Why item ('Y02VSI_CAE_CONDITIONITEM) is outside a loop?
    Is it a bug from SAP?
    Thanks in advance!
    Regards
    Dianlong

    Hi Dianlong,
    Please check if SAP note 1132501 is relevant for your ECC release. If you apply the note, you may have to re-generate the web service from the function module.
    Regards, Trevor

  • RFC works but web service for that RFC does not work..weird??

    hi all,
    I created an RFC enabled function module to create a Sales Order in SAP CRM for both for Varinat Configurable and Normal Materials.
    The RFC Works well...if i test it..it creates an order and if i go and check the sales order in CRM GUI. i find that sales order is perfect with the configuration data for the configurable items..
    Now i created a Web service for this RFC by calling the Web service creation wizard.
    Now i am testing the Web service in SOAMANGER T-code and the sales order is created and weird thing the configuration data is missing for Varinat configurable item..
    But i dont encounter this problem if i am testing the RFC directly
    What could be wrong...why is my web service behaving weird?
    I am dying to find this out..did any body enocunter this situation befor ..please help

    Sure Oliver..
    I put a break point using external debugger and when i was testing the Web service in SOAMANAGER..
    i could then land into ABAP debugger.
    There in my RFC i put a logic such that i diffenetiate between VC and Non-VC items and fill the Charateristic Values only if it is aVC item.
    I saw that the IF condition was not executing as they suddenly changed the material structure in ECC and it reflected in CRM.
    SO i am inputting 18 digits of material no like '000000000000000001' for '1'...but the if condition was checking against 1 =1 so that loop never executed and chara values are not getting filled.
    But if i test RFC in se37 ..it works as i am inputting 1...
    Since Web service works with XML (WSDL) need to be very careful with the format in which data is inputted and the format in which the logic we wrote in RFC works.
    Once again ..thanks to all people who helped me with the answers...
    Regards,
    Jessica Sam

  • Web Services Wrapper Error : License Does Not Exists

    Hi,
    We are trying to connect to SAP Business One via the Web Services Wrapper. We installed the "B1WS: B1 Web Services wrapper " on the same machine running SAP.
    When we try to connect, by either using the WSDL Generator provided with the B1WS application or through SOAP client, we get this error:
    Receiver 100000008 License does not exist
    We have the following licenses :
    1. Coresuite
    2. mYUice
    3. SDK Tools
    4. SAP AddOns
    5. Professional User
    What more licenses do we require, if any?
    Also, are there two licenses with name "SDK" ?
    a. Software Development Kit License
    b. Software Development  Kit - Implementation License
    Regards,
    Mrugendra Bhure.
    Edited by: mrugendrabhure on Jan 29, 2010 11:25 PM

    Mrugendra Bhure,
    B1WS requires the use of the SAP Business One DI Server.  The DI Server has a seperate license that is required and is not part the of the licenses for the SDK Development or Implementation kit.  You need to purchase the DI Server and licensing for the DI Server is per CPU not named user like the rest of SAP Business One.  You can find more information on the DI Server in the SAP Business One SDK Help documentation
    Hope that helps,
    Eddy

  • Web Service error: User [oc4jadmin] does not exist in system

    Attempting to create a HelloWorld Web Service (WS) using JDeveloper 10.1.3 and deploying to OAS10g 10.1.3. Create the WS, deploy to OAS10g, test the Service from OAS10g - not a problem!
    Then enable WS-Security and specify a cleartext password - ONLY. Then when test it from OAS10g I get the following output (HTTP Analyzer): User [oc4jadmin] does not exist in system.
    Which is patently false as I login with oc4jadmin!
    Anyone have an idea what is going on here???????
    THANKS - Casey
    P.S. Thanks in advance for any help

    Casey, see if either of these help:
    Securing a Web Service Client Using WS-Security (viewlet)
    http://www.oracle.com/technology/products/jdev/101/viewlets/101/xesecureunitedloanclient_viewlet_swf.html
    Securing Web Services using JDeveloper and WS-Security
    http://www.oracle.com/technology/products/jdev/101/howtos/securews/index.html
    Oracle JDeveloper 10g (10.1.3) Documentation: Working with Web Services
    http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3/state/content/navId.4/navSetId._/vtAnchor.CJAEHFJD/vtTopicFile.adfdevguide%7Cweb_services%7Ehtm/

  • LV2012 Web Services w/ NI Auth login not working w/ static files in Firefox 19

    Hi!
    I followed this procedure to password protect my web service and the static files. 
    http://digital.ni.com/public.nsf/allkb/DF41D5DA8EEB4840862577D90058C208
    When testing it out with my web service it seems to work fine on any web browser.  http://localhost:8080/add/add/1/2 first will present a login.  Once the user is logged in the page refreshes and the results of the operation are shown.  http://localhost:8080/logout works as well.
    I followed the procedure in the FAQ to include an index.html file.
    http://www.ni.com/white-paper/7747/en#toc15
    When I try to access the page (via http:localhost:8080/add/web/index.html) I'm greeted with the National Instruments login screen.  I enter my credentials and in Chrome and Internet Explorer the screen refreshes and I see my html file.  In Firefox it hangs for awhile on the authentication screen and then reloads back to the authenticaiton screen (as if the username and password did not take).
    Attached are my files.  If you want to try and recreate this please follow this procedure:
    * Unzip the attached project to a folder
    * Open the project in LabVIEW 2012
    * Check the properties of the web service to ensure that the build paths are correct
    * Follow the procedure above for setting up NI Auth on your web service and adding the "testpermission2" permission.  Be sure to remove "Everyone" from that "testpermission2" or you will never see a login prompt.
    * Build/Deploy the web service
    * open http://localhost:8080/logout to ensure that you are not currently authenticated
    * open http://localhost:8080/add/add/1/2 and login, observe behavior
    * open http://localhost:8080/add/web/index.html you should still be logged in so you will see the "Hello World!" just fine
    * open http://localhost:8080/logout to log back out
    * open http://localhost:8080/add/web/index.html and see if you are able to login.
    I've tried disabelling my plugins in Firefox and still have this problem.  I'm really scratching my head on how to overcome this other than throwing away NI Auth and use something else.  My web service is going to run off of a static front end driven by javascript and html.  So the access point will be the html file.  I need to have some username and password scheme worked out.  I also need to be able to see what user is currently logged in with my Web Service VIs (does anyone know if that is possible with NI Auth)? 
    The other BIG issue I have with NI Auth is that it requires Silverlight.  So much for mobile support, eh?  Anyone know of a good plug-and-play alternative so I don't have to reinvent the wheel?  I guess I could impliment some kind of token system on my web service side.
    In the meantime, getting NI Auth to properly work with Firefox would help.
    Thanks for your input,
    -Nic
    Attachments:
    Example Web Service.zip ‏15 KB

    Disclaimer: I in no way mean to bash NI and I have used NI Auth myself in the past
    If you are going to go to the trouble of abstracting NI Auth, I would recommend instead investing your time in your own authentication scheme (or implementing a standard scheme in LV).
    NI Auth is great and works for low security applications where you just don't want people fooling around with your application who shouldn't be.
    However, NI Auth is really not that secure.  If I remember correctly, the username is transmitted in plain text and I don't think the encryption algorithm is that sophisticated.  It is nice that it's already integrated into LV, but there really are very few features at this time.
    If you want something to be really secure, you need to take measures beyond what NI Auth provides and before you go to the work of building abstraction on top of a basic and somewhat shaky protocol, I'd seriously consider implementing a more stable base.
    <insert 2 cents complete>
    Chris
    Certified LabVIEW Architect
    Certified TestStand Architect

  • Trying to create Managed Server service in Win 2003 does not work

    Hello ... I've created an AdminServer service with no problems:
    SETLOCAL
    set DOMAIN_NAME=ClassicDomain
    set USERDOMAIN_HOME=D:\Apps\Middleware\user_projects\domains\ClassicDomain
    set SERVER_NAME=AdminServer
    set PRODUCTION_MODE=true
    set MEM_ARGS=-Xms256m -Xmx512m
    call "D:\Apps\Middleware\user_projects\domains\ClassicDomain\bin\setDomainEnv.cmd"
    call "D:\Apps\Middleware\wlserver_10.3\server\bin\installSvc.cmd"
    ENDLOCAL
    I can get the AdminServer to start and get into the Admin Console.
    I'm trying to create a service for the WLS_Forms Managed Server and can create the service, which does start ... but it does not start my WLS_Forms Managed Server:
    SETLOCAL
    set DOMAIN_NAME=ClassicDomain
    set USERDOMAIN_HOME=D:\Apps\Middleware\user_projects\domains\ClassicDomain
    set SERVER_NAME=WLS_Forms
    set PRODUCTION_MODE=true
    set
    JAVA_OPTIONS=-Dweblogic.Stdout="D:\Apps\Middleware\user_projects\domains\ClassicDomain\stdout.txt" -Dweblogic.Stderr="D:\Apps\Middleware\user_projects\domains\ClassicDomain\stderr.txt"
    set ADMIN_URL=http://localhost:7001
    set MEM_ARGS=-Xms1024m -Xmx1024m
    call "D:\Apps\Middleware\wlserver_10.3\server\bin\installSvc.cmd"
    ENDLOCAL
    Both services/servers reside on the same box.
    Can someone lend a hand and indicate what is failing?
    Thanks

    That is not typically the case since you could normally also use a start script like:
    <DOMAIN_HOME>/bin/startManagedServer(.sh/.cmd) managedServerName
    One thing to note is that Node Manager is the mechanism by which the Admin Console is able to start the managed servers. The Admin Server has not mechanism to do this directly, it is indirectly done via Node Manager.
    You should ask in the Forms / Reports forum for how that product is typically started with WebLogic in 11g.
    Forms

  • Web.xml Security LoginPage / LoginTF does not work

    Hi Guys,
    In JDev 11.1.1.5, using the WebCenter extension we get some strange behaviour I cannot explain.
    I have a feeling I am missing some small step, but I cannot see what step, so I thought to ask :).
    Here are the steps we took:
    We use:
    -     JDeveloper 11.1.1.5
    -     WebCenter extension
    Steps we took, within an WebCenter Portal application:
    1.     Create an index.html which is the default start point of the application.
    2.     index.html redirects to faces/pages_home.
    3.     In pages.xml our home is an landingPage.
    4.     This landingPage is configured for authenticated-role only in pages.xml.
    5.     Configure a custom login-TF with .jspx loginPage on it.
    6.     In the web.xml on the security tab, we configure Form-Based Authentication with our custom login-TF as Login Page.
    7.     In the jazn-data.xml we configure this TF and grant the anonymous-role.
    8.     Run the application, we get an 404.
    I would expect the following:
    1. Application tries to reach the home page.
    2. The home page is only available for authenticated users.
    3. The login mechanism (from the web.xml) starts to work.
    4. The TF/page configured in the web.xml gets launched.
    Some how, as said we get a 404 instead of our loginTF/Page.
    In an Jdevelloper 11.1.1.2 application, this seems to work fine with the same configuration, but now in 11.1.1.5 we get a 404 error.
    Did we miss a configuration / Overlook some setting?
    Why does this not work?
    If anybody has any tips on where to look or what to do, this would be helpful :)
    I have a test case in which I can reproduce this problem, both within an WCP application as in a pure ADF application.
    I can provide this if anyone is interested :)
    Regards,
    Richard Olrichs

    Hmmm, apparently you have to put “/faces/adf.task-flow?adf.tfId=login-TF&amp;adf.tfDoc=/” in front of the TF, which results in the following web.xml tag:
    <login-config>
    <auth-method>FORM</auth-method>
    <form-login-config>
    <form-login-page>/faces/adf.task-flow?adf.tfId=login-TF&amp;adf.tfDoc=/WEB-INF/login-TF.xml</form-login-page>
    <form-error-page>/WEB-INF/error.html</form-error-page>
    </form-login-config>
    </login-config>
    I don't know why, but now it redirects correctly to our custom login-TF.
    Can someone explain this behaviour?
    Anyhow, help is not needed anymore :P
    Cheers,
    Richard
    Edited by: Richard Olrichs on Feb 21, 2012 8:41 AM

  • Web Service deployed with admin_client is not working

    Hi,
    I'm usung SOA Suite 10.1.3.1 and Eclipse WTP 3.2.2.
    The thing is that I developed a Web Service with Eclipse using the plugin for generating web services. Then I exported my project to a .war file from eclipse as well.
    For deploy my web service in oc4j, I tried from the oc4j console in Applications --> Deploy and Next-Next wizard and using the .war file generated by Eclipse. I got the application deployed and I can check that the wsdl is working in http://localhost:8888/Hello_Web2/services/Hello?wsdl
    But the main problem is when I try to deploy using the admin_client command tool running the command: java -jar admin_client.jar deployer:oc4j:opmn://localhost/home oc4jadmin welcome1 -deploy -file d:\TEMP\Hello_Web.war -deploymentName Web5 -contextRoot "/". Everything seems right, I can see the application created in the console, but when I try to access to the web service using "http://localhost:8888/Hello_Web2/services/Hello?wsdl" I get and Http 404.
    What is wrong with the command method?
    Many thanks in Advance,
    Alberto

    Hi,
    As the custom web part works well in other browsers, the issue may be related to the IE itself.
    Have you tried the methods below?
    Use compatibility mode to check whether it works.
    Open IE->Tools->Compatibility View Settings
    Add the site into Trusted sites to check whether it works.
    Open the IE->Internet Options->Security->Trusted Sites->add the site into the zone
    What’s more, you can also switch the Document mode to IE 10 or lower to check whether it works.
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • RAR Web service violation limit setting does not seem to work

    In RAR under config - preformance tuning one can configure the limit for violations of the webservice between RAR and CUP.
    If I set this to 20000, 100000 or even 1.5 miillion I still get the message:
    Risk analysis failed: EXCEPTION_FROM_THE_SERVICEViolations exceeds the threshold limit
    Even though the CUP request only hold a very limited number of violations.
    Does this setting require a server restart or a webservice restart before it works? Or is this a bug in AC 5.3 SP 11.2?
    Edited by: S. Pados on Aug 12, 2010 10:45 AM

    Thanks Sunny,
    But info in the note is well known with us. We have set the parameter however it seems to be ignored as the user in CUP request has a low number of violations and we still get the error even though the threshold has a very high value.

  • HT5559 Java web start does not work

    I have followed the instructions in this article, including the last step about web start, but it still does not work, neither applets or web start. When I try to launch a JWS application by double clicking it I get the dreaded warning dialog:
    To open this Web Start application, you need to download the Java Runtime Environment.
    Click “More Info…” to visit the website for the Java Runtime Environment.
    I do have a JRE installed, 1.6, since I for compatibility reasons can't upgrade.
    Trying to launch a web start application from the commandline looks like this:
    $ javaws /tmp/airview.jnlp
    Java Web Start splash screen process exiting ...
    Can not find message file: No such file or directory
    Regular Java-programs work fine.
    $ java -version
    java version "1.6.0_37"
    Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909)
    Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode)

    Read this thread https://discussions.apple.com/thread/4789691?tstart=0
    This fixed the issue for me:
    sudo /usr/libexec/PlistBuddy -c "Delete :JavaWebComponentVersionMinimum" /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/XProtect.meta. plist
    In the comments to the linked article someone suggests to comment out the node in stead of deleting it. Probably safer (it's explained further down how to do that). Anyway I already spent to much time on this nonsense, deleted it and it worked, so I'm happy.

  • INSTALLED BUT DOES NOT WORK

    FASAYER IINSTALLED BUT DOES NOT WORK. IT SAYS TO INSTAL IT AGAIN WHEN I TRY TO USE IT.

    What is your operating system & version?
    What is your web browser?
    What exactly does "not work" mean?

  • Delphi Client Web Service does not work fine

    I wrote a Hello web service with a method and with a parameter, and import WSDL in delphi, All works very well. But when I add two parameters I receive the error below:
    java.lang.IllegalStateException: Cannot obtain java type for: {urn:CalculatorFacade/types}add
    at org.jboss.axis.description.ServiceDesc.syncOperationToClass(ServiceDesc.java:710)
    at org.jboss.axis.description.ServiceDesc.getSyncedOperationsForName(ServiceDesc.java:1187)
    at org.jboss.axis.description.ServiceDesc.loadServiceDescByIntrospectionRecursive(ServiceDesc.java:1045)
    at org.jboss.axis.description.ServiceDesc.loadServiceDescByIntrospection(ServiceDesc.java:972)
    Using the google I discovery this tutorial.
    http://www.javapassion.com/planning/handsonbyol/netbeanswebservices
    I wrote a calculator web service with Netbeans and deploy it on jboss-4.0.3.
    So I was change my project parameters to change wscompile parameters: rpcliteral, strict
    When I execute the code: x = calc.add(a, b)
    I receive another error:
    faultDetail:
    {http://xml.apache.org/axis/}stackTrace: javax.xml.rpc.JAXRPCException: No such operation 'int_1'
    at org.jboss.axis.providers.java.RPCInvocation.prepareFromRequestEnvelope(RPCInvocation.java:273)
    at org.jboss.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:103)
    at org.jboss.axis.providers.java.JavaProvider.invoke(JavaProvider.java:358)
    I test this web service in a Java client and it works very fine, but with delphi client it does not work :(
    Can someone help me?
    []s, Welington B. Souza

    Welington,
    Could you post the source of the web service that gives you the error?

  • Consuming Web Service In Visual Studio

    Hi there:
    I'm using the sneak preview of SAP NetWeaver 2004s ABAP Server and am able to consume in Visual Studio 2005 (C#) all the 'delivered' Web Services without any problems.  However, when I create a Web Service through SE37 or SE80 (Wizard WS_WZD_START) using a BAPI or Remote enabled RFC (ie RFC_READ_TABLE) I am getting a error when I try to call it in Visual Studio.  In Visual Studio, I am able to add the reference (http://localhost:8000/sap/bc/srt/rfc/sap/ZRFC_READ_TABLE?WSDL) no problem.  When I call it though, I get {"Unable to connect to the remote server"}, with inner exception {"No connection could be made because the target machine actively refused it"}.
    I am providing the credentials (username and password) in the code which are the same as when I go to retrieve the reference.
    Any help would be greatly appreciated.
    Thanks
    Russ

    Hi Russ,
    I had similar problems. You should download the WSDL file to the local file system. Then you can add the downloaded WSDL file as a Web reference rather than using a URL.
    Please note the following issue:
    You have to provide the full qualified path <b>including</b> the file name in the text box for the URL and then press Go.
    For example:
    <i>
    C:\Documents and Settings\USERID\My Documents\downloads\SAP\WebServices
    Z_BAPI_CUSTOMER_FIND_VI.wsdl
    </i>
    If you just provide the path and try to select the WSDL file this probably does not work. At least it was not working for me.
    Best regards,
    Andre

Maybe you are looking for

  • XML string from Java

    Hi I have requirement in which i have a jsp that i use to get information from users. I need to convert the info to XML data into a String , whihc i later use to pass as messages using AQ. I also have to, at a later point retreive the data from the X

  • Find contact bar always visible in Contacts - Noki...

    Hi, I just got my new Nokia 5800 and the manual is very thin. While playing with the Contacts, somehow I made a "Find bar" (or "search bar"), with a Magnifyer on the left and a text field, appear at the bottom of the list of contacts, just above the

  • WISM2-Cannot Login via WEB

    Hi everyone I cannot login the wism2 with browser. But I can use command to login the wism. like this: VSS-6509#session switch 2 slot 9 processor 1 The default escape character is Ctrl-^, then x. You can also type 'exit' at the remote prompt to end t

  • URL Generator Services

    Hello, when I try to change the protocoll in "Host" in the "URL Generator Services" (under "Global Services") from http to https, the TREX monitor shows an SSL error by crawling new documents (but then the links in email notifications are working cor

  • 1 XML node to many Text Frames

    In indesign is it possible to map the content of a single XML node element to multiple text frames within an Indesign document? I have data elements in my XML that I don't want to repeat but they have to appear in multiple places within my document.