Web Service @EJB injection isn't working

I'm running WebLogic Server 10.0 MP1
I have a local interface:
@Local
public interface Login {
     boolean loginUser( String username, String password );
}And an implementation:
@Stateless
@Local
public class LoginBean implements Login {
     public boolean loginUser(String username, String password) {
          if (username != null && password != null && username.equals("test")
                    && password.equals("password")) {
               return true;
          return false;
}Those are bundled up in service.jar
I also have a Web Service:
@Stateless
@WebService(name = "LoginService", targetNamespace = "http://my.namespace/here")
@WLHttpTransport(contextPath = "services", serviceUri = "LoginService")
public class LoginService {
     @EJB(name="bLogin")
     private Login login;
     @WebMethod
     public boolean login(String username, String password) {
          return login.loginUser(username, password);
}The webservice is bundled into LoginService.war by the jswc ant task.
LoginService.war and services.jar are together bundled into my .ear file with an appropriate application.xml, and the web console shows both the web service and EJB as being deployed with the EAR.
When I access the LoginService, I always get a NullPointerException on the return login.loginUser() line (and a println indicates that in fact login is null).
So WebLogic isn't injecting my bean into the login variable, however there are no warnings or errors on the console.
I have seen http://forums.bea.com/thread.jspa?threadID=300003881 but that doesn't help, as my web.xml is generated by jswc and I verified that it always sets the version to 2.5 and namespace properly.
One other interesting tidbit: If I set beanName to something crazy (like "foo") on the @EJB annotation in LoginService, I DO get an error (at deployment time) in the server log saying that the ejb-link for 'foo' wasn't found. So the lookup appears to be happening (though there is nothing about an ejb-link in the web.xml, I expect that it is implicitly happening at deploy time from the @EJB annotation) just not the actual injection.
Thoughts?

Since it looks like no one from BEA actually monitors these forums, I'll answer my own question.
I no longer use the jswc ant task to generate LoginService.war. Now, I just drop my Login web service into its own jar file (apparently it doesn't work if it's in a JAR with other EJBs), say, ws.jar and put that into the EAR with everything else, and it works. Here is my web service now (called LoginImpl)
@WebService(name = "Login", targetNamespace = MY_NAMESPACE)
@SOAPBinding(style = Style.DOCUMENT, use = Use.LITERAL, parameterStyle = ParameterStyle.WRAPPED)
@WLHttpTransport(contextPath = "services", serviceUri = "LoginService")
@Stateless
public class LoginImpl {
     @EJB(name = "Login")
     private Login login;
     @WebMethod(operationName="LoginRequest")
     @WebResult(name = "LoginResponse")
     public boolean login(
          @WebParam(name = "Username", targetNamespace = MY_NAMESPACE) String username,
          @WebParam(name = "Password", targetNamespace = MY_NAMESPACE) String password
          return login.loginUser( username, password );
     @WebMethod(operationName="LogoutRequest")
     @WebResult(name="LogoutResponse")
     public void logout( @WebParam(name = "SessionToken", targetNamespace = MY_NAMESPACE) String sessionToken ) {
          login.logoutUser( sessionToken );
}So in summary:
* Put @WebService files in their own JAR
* Don't use jswc
I also used Sun's JAX-WS reference implementation to generate the *.jaxwx.* files, otherwise WebLogic complains

Similar Messages

  • Using Web Service to localhost in IIS works, but remote W/S to IIS does not

    I have built an Air application that connects to a MS CRM web service (port 5555) and it works fine when I am on the server (the web service recognizes the user credentials in .NET function calls), but when I run the AIR app on a workstation and try to connect, the server responds with a 50x error ( authentication). I have tried adding the username and password to the URL and that did not get me any closer to figuring out the problem. I have tried different authentication methods on IIS without success. The client machines are all located in the same Windows Active Directory Domain / local area network with the server - no routing.
    We are not exposing any ports to the Internet.
    I am using the Web Service classes that are generated using the Flex Builder Data/Import
    I am using Flex Builder 3 with the 3.5a version of the Flex framework.
    I have installed Flash player with the latest version
    the Windows server is running IIS 7 on Server 2008
    How do I get a connection that works? (samples anyone?)
    Is this an Air configuration issue, or a limitation of the framework?
    Does my Air app need to use Anonymous connections to IIS only?
    Is there a way for a web service on IIS to identify the user from their Active Directory connection?

    Hello,
    In principle, if a web service can be accessed from localhost, it could also be accessed from remote. So perhaps the traffic was blocked by the firewall. Please check the firewall setting of your machine, especially the Windows firewall. You could turn off the firewall for a while and have a try.
    And you can use some web service client tool (like soupUI) to test if the web service is accessible to the remote.
    Thanks,
    Yang

  • Web Service Client(Console App) not working on Windows Server 2008 R2 Standard Edition

    I am trying to consume an ASMX Web Service in a console app, its working fine in Windows 7,Windows Server 2012 Standard,Windows Server 2008 R2 DataCenter,Windows Server 2008 R2 Enterprise, But its not working in Windows Server 2008 R2 Standard Edition which
    is the deployment server.
    I tried consuming the ASMX web service using Web Reference and Service Reference as well but its not helping. Its throwing up the following error,
    Message:There is an error in XML document (1, 331491).
    Inner Exception : System.Xml.XmlException: '.', hexadecimal value 0x00, is an invalid character. Line 1, position 331491.
    The scenario is that i call the web service and it returns me an XML i am not able to receive the XML on Windows Server 2008 R2 Standard Edition.
    Please provide suggestions on this I need to resolve this ASAP.

    Hi,
    This question is better asked here:
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=asmxandxml
    Experts here are more familiar about it and they can give you more efficient suggestion.
    Thank you.

  • Web service in Xcelsius is not working

    Hi Experts,
    I am new to Xcelsius. I have created Web service through WSCONFIG Tcode in SAP BI.
    This Web service (WSDL) is working fine in portal. I have tried to connect it in Xcelsius through
    DATA MANAGER -> Web service connection.
    WSDL is imported here in Xcelsius and I have provided the credentials as well as infoprovider & query details in data manager screen.
    I am not able to view the result here in Xcelsius (Version 2008) in excel spreadsheet or canvas .
    Can someone explain what extra need to be done?
    Thanks in advance.
    Shamkant

    Hi,
    Can you please let us know how you resolved the same?
    Regards,
    Gourav

  • Web service AddTerms for TaxonomyClientService not working.

    Hello,
    We are trying to get AddTerms method to work in TaxonomyClientService using a web service call (not using the SP client obj model) but the request always returns 500 error. I have compared the headers and body of my request with the Fiddler trace of another
    software which uses the client obj model and they are word-for-word the same.
    A sample one looks like this...
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns="http://schemas.microsoft.com/sharepoint/taxonomy/soap/">
    <soap:Body><AddTerms xmlns="http://schemas.microsoft.com/sharepoint/taxonomy/soap/">
    <sharedServiceId>c6ea8a52-de1b-4957-814d-69bf312c40f2</sharedServiceId>
    <termSetId>8ef9d5d1-f804-410c-b276-9c6251a74abe</termSetId>
    <lcid>1033</lcid>
    <newTerms>
    <newTerm label="someTerm" clientId="1" parentTermId="1ff4cd4f-6996-409f-8e97-d877079f2449">
    </newTerm>
    </newTerms>
    </AddTerms></soap:Body></soap:Envelope>
    I have made sure that the term set is indeed open and able to add terms. But I can never get past the 500 error. Searching around online it seems
    a great amount of people are having same problems. More people are having success working directly with the client obj model. There seems to be something wrong with the XML schema for direct web service calls?
    Thank you,
    Michael

    Hi Jacob,
    Thanks for the reply.
    I have tried taking the snapshot of data but I am getting blank excel spreadsheet.
    I am using Xcelsius 2008 (or 5.0) version. In components I am using REFRESH button under web connectivity folder.
    Somewhere on internet I have seen Web service button (under Web connetivity folder) in Xcelsius 4.5 version which is used to connect  Xcelsius & SAP system.
    My question is :
    I am not able to find similar button in 2008 version. Is this REFRESH button is doing same work or different.
    Please advice.
    Shamkant

  • Web Services with table element dont work

    I, am trying to use a web service that returns a xml with code and description.
    When i test the web service it works fine but when i use it in a page doesnt work at all.
    There is no parameters to call and the response is:
    <?xml version="1.0" encoding="utf-8" ?>
    - <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    - <soap:Body>
    - <instituicaoResponse xmlns="http://tempuri.org/">
    - <instituicaoResult>
    - <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
    - <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:Locale="pt-PT">
    - <xs:complexType>
    - <xs:choice maxOccurs="unbounded">
    - <xs:element name="Table">
    - <xs:complexType>
    - <xs:sequence>
    <xs:element name="INST" type="xs:decimal" minOccurs="0" />
    <xs:element name="DESCRICAO" type="xs:string" minOccurs="0" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:choice>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    - <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
    - <NewDataSet xmlns="">
    - <Table diffgr:id="Table1" msdata:rowOrder="0">
    <INST>0</INST>
    <DESCRICAO>Beneficiários - SAMS Norte</DESCRICAO>
    </Table>
    - <Table diffgr:id="Table2" msdata:rowOrder="1">
    <INST>1</INST>
    <DESCRICAO>Utentes - SAMS Norte (ex.Benef)</DESCRICAO>
    </Table>
    - <Table diffgr:id="Table3" msdata:rowOrder="2">
    <INST>2</INST>
    <DESCRICAO>Beneficiários - SAMS Sul e Ilhas</DESCRICAO>
    </Table>
    - <Table diffgr:id="Table4" msdata:rowOrder="3">
    <INST>3</INST>
    <DESCRICAO>Beneficiários - SAMS Centro</DESCRICAO>
    </Table>
    - <Table diffgr:id="Table5" msdata:rowOrder="4">
    <INST>4</INST>
    <DESCRICAO>Beneficiários - PALOP's (excl. Benef. BCA)</DESCRICAO>
    </Table>
    - <Table diffgr:id="Table6" msdata:rowOrder="5">
    <INST>6</INST>
    <DESCRICAO>Utentes - SAMS Sul e Ilhas</DESCRICAO>
    </Table>
    - <Table diffgr:id="Table7" msdata:rowOrder="6">
    <INST>7</INST>
    <DESCRICAO>Funcionários do SBN/SAMS</DESCRICAO>
    </Table>
    - <Table diffgr:id="Table8" msdata:rowOrder="7">
    <INST>10</INST>
    <DESCRICAO>Utentes - Banco Comercial Angolano</DESCRICAO>
    </Table>
    - <Table diffgr:id="Table9" msdata:rowOrder="8">
    <INST>15</INST>
    <DESCRICAO>Utentes - SAMS Centro</DESCRICAO>
    </Table>
    </NewDataSet>
    </diffgr:diffgram>
    </instituicaoResult>
    </instituicaoResponse>
    </soap:Body>
    </soap:Envelope>
    Can anyoone tell me waht is the problem, thanks

    As far as I can tell the problem is the null namespace attribute on the NewDataSet element:
    <NewDataSet xmlns="">As I understand it, either a namespace value should be given, or the xmlns attribute should not appear at all. If it's removed from the source XML then the data can be extracted:
    SQL> l
      1  with webservice as (
      2    select  xmltype(q'{
      3  <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      4  <soap:Body>
      5  <instituicaoResponse xmlns="http://tempuri.org/">
      6  <instituicaoResult>
      7  <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
      8  <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:Locale="pt-PT">
      9  <xs:complexType>
    10  <xs:choice maxOccurs="unbounded">
    11  <xs:element name="Table">
    12  <xs:complexType>
    13  <xs:sequence>
    14  <xs:element name="INST" type="xs:decimal" minOccurs="0" />
    15  <xs:element name="DESCRICAO" type="xs:string" minOccurs="0" />
    16  </xs:sequence>
    17  </xs:complexType>
    18  </xs:element>
    19  </xs:choice>
    20  </xs:complexType>
    21  </xs:element>
    22  </xs:schema>
    23   <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
    24   <NewDataSet xmlns="">
    25   <Table diffgr:id="Table1" msdata:rowOrder="0">
    26  <INST>0</INST>
    27  <DESCRICAO>Beneficiários - SAMS Norte</DESCRICAO>
    28  </Table>
    29   <Table diffgr:id="Table2" msdata:rowOrder="1">
    30  <INST>1</INST>
    31  <DESCRICAO>Utentes - SAMS Norte (ex.Benef)</DESCRICAO>
    32  </Table>
    33   <Table diffgr:id="Table3" msdata:rowOrder="2">
    34  <INST>2</INST>
    35  <DESCRICAO>Beneficiários - SAMS Sul e Ilhas</DESCRICAO>
    36  </Table>
    37   <Table diffgr:id="Table4" msdata:rowOrder="3">
    38  <INST>3</INST>
    39  <DESCRICAO>Beneficiários - SAMS Centro</DESCRICAO>
    40  </Table>
    41   <Table diffgr:id="Table5" msdata:rowOrder="4">
    42  <INST>4</INST>
    43  <DESCRICAO>Beneficiários - PALOPs (excl. Benef. BCA)</DESCRICAO>
    44  </Table>
    45   <Table diffgr:id="Table6" msdata:rowOrder="5">
    46  <INST>6</INST>
    47  <DESCRICAO>Utentes - SAMS Sul e Ilhas</DESCRICAO>
    48  </Table>
    49   <Table diffgr:id="Table7" msdata:rowOrder="6">
    50  <INST>7</INST>
    51  <DESCRICAO>Funcionários do SBN/SAMS</DESCRICAO>
    52  </Table>
    53   <Table diffgr:id="Table8" msdata:rowOrder="7">
    54  <INST>10</INST>
    55  <DESCRICAO>Utentes - Banco Comercial Angolano</DESCRICAO>
    56  </Table>
    57   <Table diffgr:id="Table9" msdata:rowOrder="8">
    58  <INST>15</INST>
    59  <DESCRICAO>Utentes - SAMS Centro</DESCRICAO>
    60  </Table>
    61  </NewDataSet>
    62  </diffgr:diffgram>
    63  </instituicaoResult>
    64  </instituicaoResponse>
    65  </soap:Body>
    66  </soap:Envelope>}') xml
    67    from dual)
    68  select
    69            extractvalue(
    70             value(t)
    71           , '/Table/INST'
    72           , 'xmlns="http://tempuri.org/"') inst
    73          , extractvalue(
    74             value(t)
    75           , '/Table/DESCRICAO'
    76           , 'xmlns="http://tempuri.org/"') descricao
    77  from
    78            webservice ws
    79          , table(
    80           xmlsequence(
    81             extract(
    82                 ws.xml
    83               , '//instituicaoResponse/instituicaoResult/diffgr:diffgram/NewDataSet/*'
    84*               , 'xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1" xmlns="http://tempuri.org/"'))) t
    SQL> /
    no rows selected
    SQL> l 24
    24*  <NewDataSet xmlns="">
    SQL> c/ xmlns=""//
    24*  <NewDataSet>
    SQL> /
    INST DESCRICAO
    0    Beneficiários - SAMS Norte
    1    Utentes - SAMS Norte (ex.Benef)
    2    Beneficiários - SAMS Sul e Ilhas
    3    Beneficiários - SAMS Centro
    4    Beneficiários - PALOPs (excl. Benef. BCA)
    6    Utentes - SAMS Sul e Ilhas
    7    Funcionários do SBN/SAMS
    10   Utentes - Banco Comercial Angolano
    15   Utentes - SAMS Centro
    9 rows selected.This is not an APEX problem: try the XML DB, but I think the problem lies in the web service XML rather than in Oracle or your XPath expressions...

  • Web services and e print not working on 7520e

    After the update it instructed me to turn off my printer so the update could take effect which I did but my printer would not turn back on. leaving it overnight it was the same the next day so I had to unplug it from the wall outlet. I lost my internet connection and no matter what I did I could not get it to connect.I called cloud services who put in a network address of 192.168.223.1 and hung up leaving me with no printer and sending me an email to get my ISP server to fix.
    I called HP support and they got it connected just fine but when I try to log into my printers web page it still has my
    hp email address but when I try to get to the web page it leads me to Launch HP network check.
     on the front of my printer it says unable to connect to the internet, enter a proxy address, my server does not use one.
    I tried to disable web services and then enabled them again hoping to get a new code but no luck. In my own network it has the last digit different to the one being used and set as a static IP address . I was not able to scroll any Apps before any of this happened, is the server down or has anyone any ideas how to fix this. has anyone else got the same problem. The schedulled Apps printed off just fine before this.

    Hello dylon,
    Thank you for being an active member of the HP support community.  I understand that your Photosmart 7520 printer is indicating that it is not connected since doing a firmware update  last week.
    Please start by setting a manual IP address and manual DNS servers.  Please use this post with the steps and screen shots on how to do this.  The screen shots are for the Photosmart 7510 but the steps are the same.
    If you find that you are still unable to connect to web services please call HP’s Cloud Services at 1-855-785-2777 if you live in the USA/Canada region. If you live outside the USA/Canada region please click here to find the Technical Support number for your country/region.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • Problem compiling Web Service EJB endpoint - URGENT

    I was compiling a simple HelloWorld SLSB as an EJB Endpoints. The problem is with the ejb-jar.xml when compiler encounters xmlns namespace dec -
    <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" version="2.1"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
    I tried compiling this guy using weblogic builtin ant utlity from the example, then I tried using weblogic.ejbc but all are in vain.
    Please suggest, how to get rid of this problem.
    Thanks
    xgr3

    no, it's just like invoking any other webservice.
    That's why it's called a WEBSERVICE ENDPOINT to the EJB, and not an EJB ENDPOINT to a webservice.

  • Web services within HTMLDB does not work

    Hi everybody:
    We recently made an upgrade from HTMLDB 2.0 to 3.0, all of this because the advantage about the Webservices.
    We need to retrieve data from a SQLServer by using Webservices then mixed it up with some ebusiness suite information and display it by HTMLDB.
    I can see the webservices and their description by Internet Explorer ,,, but not within HTMLDB....
    Somebody can give me a clue ???
    Message was edited by:
    user580702

    Both run same browsers (IE9). Can browser settings have an affect robohelp when a webhelp layout is saved and generated ?
    If save/generate system1-- search works
    If save/generate  system2-- search does not work

  • Problem generating Web Service with business methods in multiple EJB's

    Hi,
    I'm I a "web service novice" but I'm working with an
    application which was developed in an earlier version
    of Studio which has
    ~30 business method coming from ~12 EJB's. When I attempt
    to recreate the Web Service in Java Studio Enterprise 7 (had same problem versions 5 and 6) I have trouble. When I execute the "Generate Web Service Files" command I get complilation errors in the <webservice_name>.java file. It is obvious that the
    protected Map theJNDIMap = makeJNDIMap();
    protected Map makeJNDIMap() {
         Map m = new HashMap();
         // This map might get changed at deployment time
         m.put(......
    is all screwed up. Entries are missing and the closing bracket isn't even there.
    Is there some user error on my part?
    Is this a know bug (I couldn't any info. and I get the same behavior on the current and older versions of Studio)?
    Is there a workaround? I can fix this particular java file and compile it sucessfully. However, I'm still missing many of the other web service files that should be generated for me.
    All the tutorials on web services that I've done to looked over all get there business method from 1 EJB :(
    Please advise,
    Freda Phelps

    I had a problem too. Successfully created an EJB and its test application. Tested the same using Web client and works fine. Now created a web service from EJB methods. It created the skeletons. When tried creating Web Svc test client or web svc other files..it gives me an exception saying xmlservices.jar doesnt exist in the C:\Docs and Settings\<$username>\.jstudio\Ent04Q4modules. I have searched for this file and copied (overwritten) it into this directory. But still i cant proceed further.

  • Web Service is not Working

    HI Experts,
    I have created a FM for creation/updating of Business Partner. My FM is working fine and not giving error.
    I published this FM as a Web Service, and it got generated successfully.
    Now when i am running this web service, my FM is not working properly and start throwing errors.
    do i need to follow some specific guidelines in coding?
    any idea what could be the reason?
    Dave

    HI Hemant,
    Error which i am getting are related to ABAP code.
    like i am updating BP's marketing attributes, Relationships Sales Area Data.
    i have used Std. BAPI's for updating these.
    in my FM these are working fine no error is given, but when i test my Web Service these BAPI start giving errors.
    for example: Relation Ship is giving like invalid relation ship category
                         In-valid Sales Area
    Any idea what could be the reason.
    Dave

  • Web Service is not working in COldfusion 8

    Hi,
    I am using the following code for creating the web service.
    this code was perfectly working in Coldfusion 7,
    however not working in Coldfusion 8.
    &lt;cfscript&gt;
        try {
            ws = CreateObject("webservice", CurrentURL & "IntouchDataService.cfc?wsdl");
        } catch (any e) {
            WriteOutput("Error occured while invoking the Web Service at: ");
            WriteOutput('&lt;a href="#CurrentURL#IntouchDataService.cfc?wsdl"&gt;#CurrentURL#IntouchDataService.cfc?wsdl &lt;/a&gt;');
            WriteOutput('&lt;hr /&gt;&lt;h2&gt;');
            WriteOutput(e.message);
            WriteOutput('&lt;/h2&gt;&lt;hr /&gt;');
            WriteOutput(e.detail);
            WriteOutput('&lt;hr /&gt;');
            WriteOutput(e.StackTrace);
    &lt;/cfscript&gt;
    Follwoing error i got:
    coldfusion.jsp.CompilationFailedException: Errors reported by Java compiler: Found 1 semantic error compiling "E:/ColdFusion8/stubs/WS-2123243560/coldfusion/xml/rpc/CFCInvocationException.java": < 10. public class CFCInvocationException extends org.apache.axis.AxisFault implements java.io.Serializable { . . . 88. } > *** Semantic Error: A class file was not generated for the type "coldfusion.xml.rpc.CFCInvocationException" because a library method that it depends on was not found. See system messages for more information. Found 1 semantic error compiling "E:/ColdFusion8/stubs/WS-2123243560/com/intouchsupport/www/IntouchDataService/TestWebServ iceLocator.java": < 10. public class TestWebServiceLocator extends org.apache.axis.client.Service implements com.intouchsupport.www.IntouchDataService.TestWebSe
    Also i did lot of googling to solve this issue but no luck.
    also i found following blog about this issue also and i did the give steps however problem not solved.
    http://tjordahl.blogspot.com/2007/09/coldfusion-8-getting-started-code.html
    Can somebody help me to sort out this issue?
    thanks
    Prashant Gupta

    Hi,
    I got solution to my problem of webservice is not working in CF8.
    the problem was
    we have already a "rt.jar" file in a location and we defined this location in CF Admin >> java jvm >> classpath
    so this file was conflicting.
    i simply removes this file path from CF Admin.
    and restart the CF services.
    and my web service start working.

  • Web service proxy and data control are not working properly

    Hi,
    I am working on jDeveloper 11.1.1.6
    I have a SOA web service which requires 3 inputs and return with a set of data.
    When I tried testing that web service in soapUI it is working perfect. But when I have created a web service proxy in my application and trying to test it from class (*******_ptClient) main method everytime it is replying with the output null
    Also When I am requesting from the main method SOA is getting proper input (which I am providing in the main method) and SOA is returning proper output I have checked the SOA instance in em. So there is no problem in SOA side.
    After that I have created web service data control and tested in that case also it is not showing any result.
    What could be the problem ?
    Please help.
    Thanks
    --NavinK                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi Shay Shmeltzer,
    Thanks for the reply.
    I tried in HTTP Analyzer in JDeveloper and there also it is not working. My concern is :-
    There are many other web services deployed on the same SOA server in same partition and they are working fine in HTTP analyzer and I am able to create and use the web service proxy as well. So as per my understanding there is nothing like network issues between SOA server and jDeveloper.
    1 more thing When I am creating the proxy for this web service and requesting from the proxy's main method SOA is getting proper input (which I am providing in the main method) and SOA is returning proper output I have checked the SOA instance in em. So there is no problem in SOA side. The problem is jDeveloper is not able to get back that response which SOA is returning.
    Please Help.
    -- NavinK

  • Web Service Client: Project Additional Classpath  contributor not working?

    I've created a simple web service client/proxy and it works when debugging and running in JDeveloper 10.1.3.3
    I created a deployment profile that includes "Project Additional Classpath". The preview does not show any of the jar dependencies being included and the client application does not run because it is missing the dependencies.
    Am I missing something simple here? I've searched forever on this with no luck (it's now 2am!)
    Help is much appreciated

    Frank,
    Thank you for your reply. The funny thing is that I had known how to do this in the past.
    I have to say. The layout of that screen just is not intuitive.
    First, if you select file groups\project output\Contributors and select "Project Additional Path" you would think that you'd either get to select the class libraries there or at least in the filters screen.
    Second, the new button on the lower left, beneath the tree control when selecting the File Groups node is an arrangement I havn't seen used in any other application. Usually when you select a tree node, the right side window would have a tool bar over an arrangement of the sub-nodes/folders and you would click new on that tool bar. The new button goes completely unnoticed where it is. I'm sure it's nothng once you get used to it but for a noob like me, it wasn't apparent
    I took a brief look at 11g and it seems they're changing some of the screens so perhaps this stuff will become more intuitive.
    Thank you for your help.

  • How can i use oracle coherence with JPA/ejb  in web service?

    Hi
    I want to make web service using JPA which calls oracle XE via oracle coherence? i want to use JAX-ws? i searched and found you can make and deployed it using web logic but is there any other way i can make it and deployed in tomcat. i want to use oracle coherence + Oracle XE + JAX-WS? if it possible how can i other wise what are other ways i can do it?
    please any one does know it reply please it helps me lot to get.
    Thanks in advance,
    Edited by: 913837 on Feb 22, 2012 3:51 PM

    If you want data cached in Coherence to find it's way into an Oracle database for persistence, then look at the "CacheStore" section of the Coherence Developer Guide. This also works the other way round too, in that you can get data read into a Coherence cache via a database read. Again, look in the Coherence Developer Guide.
    If you want you applications "entry point" into a piece of code to be a web-service, then Tomcat+CXF will work just fine. Once you are in the service, just use the Coherence API to put the data in a cache.
    But also look at the HTTP access offered in later versions of Coherence in the form of REST. This may save you the Tomcat+CXF install, depending upon your needs. See the Coherence Client Guide.
    Still, what exactly are you trying to achieve here? It's not clear from your post why a web service using JPA for persistence needs to go via Coherence at all. More info needed.
    Cheers,
    Steve

Maybe you are looking for