Jdev generated proxies

Hi,
As a relative beginner to Oracle web services I have a question. Why do the proxies (stubs) generated by jdev contain hard-coded references to the endpoint of the WS? This works fine for the tutorial examples, but in a production environment where you would be working in potentially mulitple environments (dev, test, live) does this not cause a pain for deployment. Obviously you don't want to be re-generating code each time.
I'd be interested to hear how people who use web services for real deal with this issue.
Thanks
Dave

I'll give the product story and a practical implementation story.
This was considered by many to be an "issue" with OC4J 9.0.2. In 9.0.3 (the developer preview is available at: http://otn.oracle.com/tech/java/oc4j/content_preview.html - though it doesn't work with JDev yet (you have to use command line until JDev 9.0.3 comes out at the end of the summer) the stub generator generates a number of setters and getters in the stub to help you generalize the URI endpoint in a development environment. For example, getSOAPURL and setSOAPURL. Still within this stub will exist a hardwired private variable with whatever endpoint was in the WSDL.
This solves of the problem of moving between dev, test and production but does not solve the problem of exposing your backend infrastructure if you have multiple instances of OC4J running and you don't want to tell the outside world about them.
Here the practice seems to use techniques like mod_rewrite (http://otn.oracle.com/docs/products/ias/doc_library/90200doc_otn/web.902/q20201/mod/mod_rewrite.html) to wrapper the real endpoint with something externally consumable. This also lets you play with different endpoints behind the scenes during development yet maintain a single endpoint for developers building on top of your Web service.
If you check out the OTN endpoints for the various live web services you will see that they all use the otn.oracle.com domain whereas in reality it is a cluster of machines behind that externally facing URL. See for example: http://otn.oracle.com/ws/9iasmobile?WSDL.
To give a some confirmation to this, I am checking with the OTN team to see if they will post what they actually did.
Mike.

Similar Messages

  • How can we generate proxies?

    Hi,
    I am doing one POC on ABAP client proxies. I am using WAS 6.20 as sender and receiver is XI server it self. If I use same XI System for both sender and receiver with different clients then I can generate proxies for sender using "SPROXY" transaction. But the sender is different system , how can I generate abap proxy in sender system?
    Do I need to export any things from XI server to Sender system to generate proxies? Please help me on this.
    Thanks in advance.

    Hi,
    I am doing one POC on ABAP client proxies. I am using WAS 6.20 as sender and receiver is XI server it self. If I use same XI System for both sender and receiver with different clients then I can generate proxies for sender using "SPROXY" transaction. But the sender is different system , how can I generate abap proxy in sender system?
    Do I need to export any things from XI server to Sender system to generate proxies? Please help me on this.
    Thanks in advance.

  • JDev 10.1.2/Embedded OC4J / JDev generated Library path

    Hello!
    I migrated a JDeveloper 9.0.3.4 - Workspace and Project to JDeveloper 10.1.2.
    My application uses Struts 1.2.4 and Toplink 9.0.3.
    I don't want to migrate Toplink 9.0.3 to Toplink 10G (9.0.4.5) in that moment.
    Running my application on embedded OC4J it uses not my referenced toplink 9.0.3 but toplink 9.0.4.5 library.
    I edited "$JDEV_HOME\jdev\system10.1.2.0.0.1811\oc4j-config\application.xml" file and commented out the toplink library path, but as this entry is "jdev-generated", this entry is regenerated.
    How can i solve this issue?
    Thank you!
    Harald.

    Refer to
    http://www.oracle.com/technology/products/jdev/htdocs/10.1.2.0.0/install.html#migrating

  • Generating Proxies for SAP Basis Objects?

    All,
    Is it possible to generate proxies for your interfaces under SAP Basis Component?
    1. I checked in SPROXY on my R3 and the SAP Basis Component is not displayed  here.What I also noticed is that none of the SWCV's containing Pre Delivered Integration Content is displayed in SPROXY.
    Is it necessary that the options , <b>All Objects are Modifiable and Original Objects</b> be selected for Proxies to be generated on the SAP Shipped SWCV's?
    2. As a work around ( one which did not work ) I created a Depenedency in the SLD for my SWCV on the SAP BASIS Swcv and I am now able to see the BASIS Objects in the IR under my Custom SWCV .
    But even then in SPROXY , (basis Objects )message interfaces are not displayed.
    Has anyone tried something of this sort? Is there some setting we need to do to enable proxy generation for SAP Delivered Components?
    Regards
    Bhavesh
    PS: I am able to see my custom SWCV in SPROXY and trigger proxy calls Successfully.
    I can generate a Custom Messge interface using the Message Type of the SAP Basis Component and create the Proxy to this Message interface . But, I just want to know if anyone has had success with the above concepts

    ><i>but they are already generated... do you see that ?</i>
    I did notice it. But didnt dig deep enough . Will give this a real close look tom morning .
    <i>>>>>Does this imply, that we cannot generae proxies on SAP Basis Components?
    indeed</i>
    That answered my Question  Thanks for the info.
    I guess I will have to create a message Interface will the Message Type from the BASIS Component and use this Message Interface.
    The only issue I am now wondering with this approach would be, what if the Message Type structure changes during some SP upgrade? Due to some new feature being added?
    Any experiences to share michal?
    Thanks a bunch for all those inputs.
    Regards
    Bhavesh

  • Unable to generate Proxies

    I imported xsd structures in External defintion.
    While generating proxy using outbound message interface i am facing the problem.
    Unable to generate Proxies (M_EROOR_DURING_GEN)
    MESSAGE ID: com.sap.aii.ibrep.gui.tools.proxygen.wizard.rb_all.M_EROOR_DURING_GEN
    com.sap.aii.utilxi.misc.api.InternalErrorException: Unable to generate proxies
         at com.sap.aii.ibrep.gui.tools.proxygen.wizard.Controller.showInternalError(Controller.java:167)
         at com.sap.aii.ibrep.gui.tools.proxygen.wizard.GenerationPage.run(GenerationPage.java:144)
         at com.sap.aii.utilxi.misc.thread.ThreadPool$ThreadPoolThread.run(ThreadPool.java:321)
    Root cause:
    java.lang.NullPointerException: null
         at com.sap.aii.proxy.generation.core.ProxyTypeClass.getBaseType(ProxyTypeClass.java:164)
         at com.sap.aii.proxy.generation.core.ProxyTypeClass.getGenericClass(ProxyTypeClass.java:272)
         at com.sap.aii.proxy.generation.core.ProxyTypeClass.addInnerClasses(ProxyTypeClass.java:352)
         at com.sap.aii.proxy.generation.core.ProxyTypeClass.getGenericClass(ProxyTypeClass.java:285)
         at com.sap.aii.proxy.generation.core.ProxyTypeClass.addInnerClasses(ProxyTypeClass.java:352)
         at com.sap.aii.proxy.generation.core.ProxyTypeClass.getGenericClass(ProxyTypeClass.java:285)
         at com.sap.aii.proxy.generation.core.ElementGenerator.<init>(ElementGenerator.java:39)
         at com.sap.aii.proxy.generation.core.JavaGenerator.toJava(JavaGenerator.java:115)
         at com.sap.aii.proxy.generation.core.JavaGenerator.addProxies(JavaGenerator.java:84)
         at com.sap.aii.proxy.generation.core.JavaGenerator.generateProxy(JavaGenerator.java:375)
         at com.sap.aii.ibrep.gui.tools.proxygen.wizard.GenerationPage.run(GenerationPage.java:110)
         at com.sap.aii.utilxi.misc.thread.ThreadPool$ThreadPoolThread.run(ThreadPool.java:321))
    can you suggest any solution for this??

    Hi Gabriel,
    "Root cause:
    java.lang.NullPointerException: null" i think that this is main cause 4 ur exception.
    A NullPointerException occurs, when you are trying to use a pointer without initializing it...(i.e) when you use a pointer which is NULL.(The name itself suggests it) and also it occurs  when a null variable is sent a message, or in other words, when a receiver object is null.
    Broadly there are two types of Exceptions in JAVA, Checked and Unchecked exception. We can have a Try....Catch for a checked exception but we cant have that for an unchecked exception. NULLPOINTEREXCEPTION is an unchecked exception.
    Check following links for more clarity.
    http://www.javaworld.com/javaworld/jw-07-1998/jw-07-exceptions.html
    http://www.javapractices.com/Topic129.cjp
    http://java.sun.com/docs/books/tutorial/essential/exceptions/runtime.html
    http://www.devx.com/Java/Article/29253
    This happens:
    1)when variablesespecially instance variables or parametersare not initialized;
    2)when a variable is assigned a null value, from another variable, from a method's return value, or directly from the keyword null;
    3)when a null variable is passed as an argument to a method you did not write.
    This does not directly cause a NullPointerException. The invoked method tries to send this null parameter a message, which causes the Exception.
    Consider the Example
    public class test {
    public static void main(String[] args)
    try
    File f=new File("c:
    test");
    String str[]=f.list();
    for(int i=0;i<str.length;i++)
    System.out.println(str);
    catch(Exception e)
    System.out.println(e.toString());
    Here we are trying to get the Files and Directories in the Folder C:
    test.
    If directory test exists,It will display the Files and Folder in it.
    If no such directory exists in the name test then a null pointer exception will be rasied.
    Regards,
    Vinod.

  • Finalcutserver will only generate proxies when admin is logged in to server - how do I solve that?

    Finalcutserver will only generate proxies when admin is logged in to server - how do I solve that?

    Proxies and media are placed on mounted san volume and with correct rights.
    I can duplicate an asset, but no transcoding are taking place -  when admin is logged out. As soon as admin logs in transcoding are working again.
    I really don't know what to look for, any good idea's?

  • Problem accessing JDev Generated Web Service on PL/SQL Package

    Hi,
    I'v generated a web service from a pl package using the wizard in JDev for use with Adobe Flex builder. Adobe says they support two types of web services, WSDL 1.1 RPC-Encoded and Document-literal. When I create the web service as Document literal, I am able to consume the web service without errors, however, adobe cannot parse the xml because of the namespace tags. I then created an RPC-encoded type of webservice but then when I run my Flex application, it gives following error:
    [WSDLError faultString="Type tns1:text_xml not resolvable" faultCode="WSDL.BadType" faultDetail="null"]
         at mx.rpc.soap::WSDLParser/http://www.adobe.com/2006/flex/mx/internal::parseMessage()
         at mx.rpc.soap::WSDLOperation/parseMessages()
         at mx.rpc.soap::Operation/http://www.adobe.com/2006/flex/mx/internal::invokePendingCall()
         at mx.rpc.soap::Operation/send()
         at Function/http://adobe.com/AS3/2006/builtin::apply()
         at mx.rpc.soap.mxml::Operation/send()
         at SandBox/__btnGetEmployees_click()
    It seems that it does not like either something in the encoded message or the WSDL. Below is my WSDL:
    <definitions name="FamWS" targetNamespace="http://labsoma/FamWS.wsdl">

         <types>

         <schema targetNamespace="http://www.oracle.com/webservices/internal">
    <import namespace="http://labsoma/FamWS.wsdl/types/"/>

         <simpleType name="text_xml">
    <restriction base="string"/>
    </simpleType>
    </schema>

         <schema targetNamespace="http://labsoma/FamWS.wsdl/types/">
    <import namespace="http://www.oracle.com/webservices/internal"/>

         <complexType name="ArrayOfGetFamRowUser">

         <complexContent>

         <restriction base="soap11-enc:Array">

         <sequence>
    <element name="item" type="tns:GetFamRowUser"/>
    </sequence>
    <attribute ref="soap11-enc:arrayType" wsdl:arrayType="tns:GetFamRowUser[]"/>
    </restriction>
    </complexContent>
    </complexType>

         <complexType name="GetFamRowUser">

         <complexContent>

         <extension base="tns:GetFamRowBase">

         <sequence>
    <element name="firstName" type="string"/>
    <element name="id" type="decimal"/>
    <element name="lastName" type="string"/>
    </sequence>
    </extension>
    </complexContent>
    </complexType>

         <complexType name="GetFamRowBase">
    <sequence/>
    </complexType>
    </schema>
    </types>
    <message name="FamWS_getFamBeans"/>

         <message name="FamWS_getFamBeansResponse">
    <part name="result" type="tns0:ArrayOfGetFamRowUser"/>
    </message>
    <message name="FamWS_getFamXMLRowSet"/>

         <message name="FamWS_getFamXMLRowSetResponse">
    <part name="result" type="tns1:text_xml"/>
    </message>
    <message name="FamWS_getFamXMLSource"/>

         <message name="FamWS_getFamXMLSourceResponse">
    <part name="result" type="tns1:text_xml"/>
    </message>

         <portType name="FamWS">

         <operation name="getFamBeans">
    <input message="tns:FamWS_getFamBeans"/>
    <output message="tns:FamWS_getFamBeansResponse"/>
    </operation>

         <operation name="getFamXMLRowSet">
    <input message="tns:FamWS_getFamXMLRowSet"/>
    <output message="tns:FamWS_getFamXMLRowSetResponse"/>
    </operation>

         <operation name="getFamXMLSource">
    <input message="tns:FamWS_getFamXMLSource"/>
    <output message="tns:FamWS_getFamXMLSourceResponse"/>
    </operation>
    </portType>

         <binding name="FamWSSoapHttp" type="tns:FamWS">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>

         <operation name="getFamBeans">
    <soap:operation soapAction="http://labsoma/FamWS.wsdl/getFamBeans"/>

         <input>
    <soap:body use="encoded" namespace="http://labsoma/FamWS.wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </input>

         <output>
    <soap:body use="encoded" namespace="http://labsoma/FamWS.wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" parts="result"/>
    </output>
    </operation>

         <operation name="getFamXMLRowSet">
    <soap:operation soapAction="http://labsoma/FamWS.wsdl/getFamXMLRowSet"/>

         <input>
    <soap:body use="encoded" namespace="http://labsoma/FamWS.wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </input>

         <output>
    <soap:body use="encoded" namespace="http://labsoma/FamWS.wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" parts="result"/>
    </output>
    </operation>

         <operation name="getFamXMLSource">
    <soap:operation soapAction="http://labsoma/FamWS.wsdl/getFamXMLSource"/>

         <input>
    <soap:body use="encoded" namespace="http://labsoma/FamWS.wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </input>

         <output>
    <soap:body use="encoded" namespace="http://labsoma/FamWS.wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" parts="result"/>
    </output>
    </operation>
    </binding>

         <service name="FamWS">

         <port name="FamWSSoapHttpPort" binding="tns:FamWSSoapHttp">
    <soap:address location="http://glaptop.sharpanalytics.com:8888/SandBox-GetNums-context-root/FamWSSoapHttpPort"/>
    </port>
    </service>
    </definitions>
    I'm not a XML or Web Service guru, so I hope somebody out there has had similar or can help bridge the gap of my Web Service ignorance.
    Thanks

    There are samples and more information on calling Web services from the database here:
    http://otn.oracle.com/tech/webservices/database.html

  • JDev: Generating Web Services for Streaming Attachments

    Hi,
    I am a newbie in this field. I am trying to generate web service code using JDev (10.1.3.3). I have an interface class and the implementation class. When I am trying to generate J2EE Web Service for the implementation class, I am getting the following error:
    "The selected class doesn't contain any public method publishable in a web service".
    Following is my code:
    Interface:
    package testing;
    import oracle.webservices.attachments.Attachments;
    public interface ImageStore extends java.rmi.Remote {
    public void storeImage (String name, String desc, Attachments attachments) throws java.rmi.RemoteException;
    Impl:
    package testing;
    import java.io.InputStream;
    import javax.activation.DataHandler;
    import oracle.webservices.attachments.Attachment;
    import oracle.webservices.attachments.Attachments;
    import oracle.webservices.attachments.IncomingAttachments;
    public class ImageStoreImpl {
    public static String storeImage(String name, String desc, Attachments attachments) throws Exception {
    IncomingAttachments incomingAtts = attachments.getIncomingAttachments();
    if (incomingAtts == null || !incomingAtts.hasNextAttachment())
    throw new Exception("Expected request attachments");
    Attachment imageAtt = incomingAtts.nextAttachment();
    String id = imageAtt.getId();
    DataHandler dataHandler = imageAtt.getDataHandler();
    InputStream imageStream = dataHandler.getInputStream();
    //-- Store image metadata and stream image bytes
    if (incomingAtts.hasNextAttachment())
    throw new Exception("Expected only one attachment");
    return "success";
    Can someone please let me know how can I generate the web service for this code using JDev.
    Thanks,
    J

    Hi J,
    Why is the concrete class not implementing the ImageStore interface? Anyways, I believe the ImageStoreImpl#storeImage method cannot be static if you want to generate a WS.
    Furthermore, you should consider posting your question in the JDev 10G (JDeveloper and ADF forum as this one is for 11G.
    Olivier

  • JDev: Generating Web Services for Streaming Attachment

    Hi,
    I am a newbie in this field. I am trying to generate web service code using JDev (10.1.3.3). I have an interface class and the implementation class. When I am trying to generate J2EE Web Service for the implementation class, I am getting the following error:
    "The selected class doesn't contain any public method publishable in a web service".
    Following is my code:
    Interface:
    package testing;
    import oracle.webservices.attachments.Attachments;
    public interface ImageStore extends java.rmi.Remote {
    public void storeImage (String name, String desc, Attachments attachments) throws java.rmi.RemoteException;
    Impl:
    package testing;
    import java.io.InputStream;
    import javax.activation.DataHandler;
    import oracle.webservices.attachments.Attachment;
    import oracle.webservices.attachments.Attachments;
    import oracle.webservices.attachments.IncomingAttachments;
    public class ImageStoreImpl {
    public static String storeImage(String name, String desc, Attachments attachments) throws Exception {
    IncomingAttachments incomingAtts = attachments.getIncomingAttachments();
    if (incomingAtts == null || !incomingAtts.hasNextAttachment())
    throw new Exception("Expected request attachments");
    Attachment imageAtt = incomingAtts.nextAttachment();
    String id = imageAtt.getId();
    DataHandler dataHandler = imageAtt.getDataHandler();
    InputStream imageStream = dataHandler.getInputStream();
    //-- Store image metadata and stream image bytes
    if (incomingAtts.hasNextAttachment())
    throw new Exception("Expected only one attachment");
    return "success";
    Can someone please let me know how can I generate the web service for this code using JDev.
    Thanks,
    J

    Can anyone please help me -- I am really stuck.
    Thanks,
    J

  • Generating proxies from WSDL utility

    Hey ..
    Does BEA give a utility to generate client webservice proxy classes from a WSDL
    I mean ..instead of any server classes to run clientgen..I have just the WSDL
    and I need to generate the proxy classes for myself..I guess it defeats the purpose
    of webservices(integration)..if I have to ask the webservice deployer for client
    classes ..!
    Thanx,
    Krish

    "Krishnan Venkataraman" <[email protected]> wrote in message
    news:[email protected]...
    >
    Manoj , u sure this is a valid link ...coz I cannot see a wsdl athttp://example.com/myapp/myservice.wsdl..
    This should be the url to your wsdl. (the wsdl from which you want
    to generate the service). You can also copy the wsdl to your local
    machine and use the file url.
    >
    and is there any WLS70 dependency for me to generate these proxies ...Imean do
    I need anything from WLS70 (jar files etc)for me to do this task ...?You need wls70. the clientgen ant task is provided by wls70.
    >
    BTW.. just to update u on our other issue we talked about...have a look atthe
    below trace...Thanx,Krish
    Shridhar ...
    Couple of things ...
    1) We will ask the webservice provider put the CR080927_70sp1.jar intheir classpath.
    But instead of they generating the client-jar and runningVersionMaker on
    this to give us the output , can we do this on ourside...
    I understand that there is a way in which the client itself generatestheir
    own proxies from the wsdl...In case we can do this ...isCR080927_70sp1.jar required
    on
    the client side also for generating the proxies...or is it required onthe
    WLS70 side only at runtime...once we generate these proxies ourselves thenfor
    compiling our 6.0 client and running it , I will use the output ofversionMaker
    and wsclient70.jar.
    2) Can u possibly mail me the patched jar files which u mention below byemail...and
    send me a confirmation email saying u have sent it..coz we seem to havesome firewall
    issues going to an outside ftpserver....and the confirmation mail is onlyincase
    u send the mail and I do not get it coz of the size etc ..
    Thanx,
    Krish
    Krishnan (Krish) Venkataraman
    Bank of America Corp.
    Senior Technology Analyst
    Email: [email protected]
    Work # : 646 733 4248
    Cell # : 646 210 5482
    -----Original Message-----
    From: Shridhar Mysore [mailto:[email protected]]
    Sent: Friday, November 01, 2002 12:38 PM
    To: Venkataraman, Krishnan
    Subject: Invoking 7.0 WS from 6.0 WS client [ Case 367229 ]
    Hello Krishnan,
    Firstly, your present configuration (involving the use of a SessionBeanin 6.0sp1
    as WS client calling into a WS hosted in 7.0sp1) where you are using 7.0webserviceclient.jar
    alongside 6.0 weblogic.jar is not supported, nay non-viable. The result ofsuch
    a configuration would lead to NoSuchMethodError exceptions which you haveseen
    at your end.
    Secondly, in order to solve this we need to use portable stubs for WSclients,
    a feature, that has been included in
    7.0 SP02 ! We, however have made this feature available on 7.0 SP01 aswell in
    the form of a one-off patch !
    And the following is a procedure for enabling this on 7.0SP01 :
    - Add the one-off patch ( CR080927_70sp1.jar ) at the beginning of theCLASSPATH
    in your 7.0 server startup script. Ensure that you restart the server forthis
    to kick in.
    - Generate the client jar for the 7.0 WS
    - Run the weblogic.webservice.tools.versioning.VersionMaker utility bysupplying
    the client jar to generate re-versioned classes.
    - Compile the WS client in 6.0 by supplying the re-versioned classes(generated
    from VersionMaker ) and wsclient70.jar (note wsclient70.jar should workwith
    6.x versions)
    - Run the WS client in 6.0 by supplying the re-versioned classes(generated from
    VersionMaker ) and wsclient70.jar
    Lastly, please find/download the following files from our FTP server(ftpsupport.beasys.com)
    at /pub/case367229
    by logging in with username/password as support/pechool
    ( Note : this password is valid for the week of Oct 27, 2002 )
    CR080927_70sp1.jar - one-off patch for 7.0sp01
    wsclient70.jar - this would be used instead ofwebserviceclient.jar by
    6.x WS client/s
    "manoj cheenath" <[email protected]> wrote:
    Sure. you can generate client from a WSDL.
    Please try this:
    <clientgen wsdl="http://example.com/myapp/myservice.wsdl"
    packageName="myapp.myservice.client"
    clientJar="c:/myapps/myService_client.jar"/>
    regards,
    -manoj
    "Krishnan Venkataraman" <[email protected]> wrote in message
    news:[email protected]...
    Hey ..
    Does BEA give a utility to generate client webservice proxy classesfrom a
    WSDL
    I mean ..instead of any server classes to run clientgen..I have justthe
    WSDL
    and I need to generate the proxy classes for myself..I guess it defeatsthe purpose
    of webservices(integration)..if I have to ask the webservice deployerfor
    client
    classes ..!
    Thanx,
    Krish

  • ClassCastException running JDev Generated EJB Client

    Hi,
    I'm trying to test a CMP entity bean I created by using the JDev903 generated TestClient class. First I run the EJB I want to test, then I attempt to run the Client class. I get a ClassCastException. The exception occurs on the call to PortableRemoteObject.
    How do I get this to run? I'm not sure how to get past this exception. Is there something else I need to run? Is there something that needs to be set in a config file.
    I kinda expected this to run outta da box.
    package Samplecom.ngit.iis.cmedia.cmptest;
    import java.util.Hashtable;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    import com.ngit.iis.cmedia.cmptest.Tcmmtpic;
    import com.ngit.iis.cmedia.cmptest.TcmmtpicHome;
    import java.util.Collection;
    import java.util.Iterator;
    import javax.naming.NamingException;
    public class TcmmtpicClient {
    public static void main(String [] args) {
    TcmmtpicClient tcmmtpicClient = new TcmmtpicClient();
    try {
    Context context = getInitialContext();
    TcmmtpicHome tcmmtpicHome = (TcmmtpicHome)PortableRemoteObject.narrow(context.lookup("Tcmmtpic"), TcmmtpicHome.class); <=== EXCEPTION OCCURS HERE ===>
    Tcmmtpic tcmmtpic;
    // Retrieve all instances using the findAll() method
    // (CMP Entity beans only)
    Collection coll = tcmmtpicHome.findAll();
    Iterator iter = coll.iterator();
    while (iter.hasNext()) {
    tcmmtpic = (Tcmmtpic)iter.next();
    System.out.println("tpic_cmvg_id = " + tcmmtpic.getTpic_cmvg_id());
    System.out.println("tpic_id = " + tcmmtpic.getTpic_id());
    System.out.println("tpic_sequence_no = " + tcmmtpic.getTpic_sequence_no());
    System.out.println("tpic_nm = " + tcmmtpic.getTpic_nm());
    System.out.println();
    } catch(Throwable ex) {
    ex.printStackTrace();
    private static Context getInitialContext() throws NamingException {
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.SECURITY_PRINCIPAL, "admin");
    env.put(Context.SECURITY_CREDENTIALS, "welcome");
    env.put(Context.PROVIDER_URL, "ormi://localhost:23891/current-workspace-app");
    return new InitialContext(env);
    Thanks,
    Art

    I was attempting to run this under JDev. I created a CMP from a table and then created the client to run it. I started the bean and then ran the client with the following result.
    The stack trace is listed below.
    C:\JDev903\jdk\bin\javaw.exe -ojvm -classpath J:\CM_SOURCE\workspaces\cmee\cmptest\classes;C:\JDev903\jdev\lib\jdev-rt.jar;C:\JDev903\j2ee\home\lib\activation.jar;C:\JDev903\j2ee\home\lib\ejb.jar;C:\JDev903\j2ee\home\lib\jaas.jar;C:\JDev903\j2ee\home\lib\jaxp.jar;C:\JDev903\j2ee\home\lib\jcert.jar;C:\JDev903\j2ee\home\lib\jdbc.jar;C:\JDev903\j2ee\home\lib\jms.jar;C:\JDev903\j2ee\home\lib\jndi.jar;C:\JDev903\j2ee\home\lib\jnet.jar;C:\JDev903\j2ee\home\lib\jsse.jar;C:\JDev903\j2ee\home\lib\jta.jar;C:\JDev903\j2ee\home\lib\mail.jar;C:\JDev903\j2ee\home\oc4j.jar;C:\JDev903\lib\xmlparserv2.jar;C:\JDev903\lib\xmlcomp.jar -Dhttp.proxyHost=spider.northgrum.com -Dhttp.proxyPort=80 -Dhttp.nonProxyHosts=*.ihsxtra.net|*.ihserc.com|*.logicon.com|*.grumman.com|*.northrop.com|*.northgrum.com Samplecom.ngit.iis.cmedia.cmptest.TcmmtpicClient
    javax.naming.NamingException: Lookup error: java.net.ConnectException: Connection refused: connect; nested exception is:
         java.net.ConnectException: Connection refused: connect
         java.lang.Object com.evermind.server.rmi.RMIContext.lookup(java.lang.String)
              RMIContext.java:134
         java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
              InitialContext.java:350
         void Samplecom.ngit.iis.cmedia.cmptest.TcmmtpicClient.main(java.lang.String[])
              TcmmtpicClient.java:20
    Process exited with exit code 0.

  • SAP wsdls used with Axis2 to generate proxies

    Hello,
    I am working on building prototype scenarios using SAP web services. I am using FU2 system.
    Please let me know how SAP wsdls could be used with Axis2 to generate the proxies.
    Any tutorial on the same would be helpful.
    Thanks,
    Apurv

    Hello Apurv,
    I don't know Axis2 but I think by using Basic Auth to retrieve the WSDL File you should be able to create a local Proxy and call the Web Service. Also have a look at <a href="http://www.wso2.net/kb/161">How to configure Axis2 to support Basic, NTLM and Proxy authentication?</a>.
    Regards
    Gregor

  • JDev generates incomplete Tables from JPA entities

    I've got some JPA entities and I'm trying to generate the DB schema from them in Jdeveloper.
    All tables are only generated with the Id (Primary Key) and not any additional fields/constraints I've defined in the Entity classes.
    Any ideas what I should be looking at?
    JDev 11.1.1.3 connecting to Oracle 10g XE
    Edited by: new_to_webcenter on 21-Jan-2011 03:20

    @Shay,
    In a new JPA app, I've created
    New Business Tier > EJB > Entity
    Choose Persistence Unit and OFfline DB , Choose No Inheritance
    Ticked on "Create Offline Table"
    Include @Id field without a Sequencer
    In the generated Entity class, I've added a new private field Name with setter/getter.
    I've added these via the Structure > EJB > Add new field > generate accessors.
    I've also specified @Column for the private field Name .
    Next in the offline DB source, I right-click the Table > Generate to Connection > and go through the steps , choosing CREATE table.
    In the created table as well as the generated SQL script, the Name column does not appear.
    It creates a table in the DB with only the ID column.
    Edit: I've checked again - if i click on the offline db source > table > columns - even there it only shows ID and no NAME column.
    Any ideas - i'm definitely missing a step?
    In persistence.xml I've specified
    <property name="eclipselink.target-server" value="WebLogic_10"/>
    <property name="eclipselink.ddl-generation.output-mode"
                        value="database" />
    @dvohra16 : Nope I dont need the sequencer at present.
    Edited by: new_to_webcenter on 21-Jan-2011 22:37
    Edited by: new_to_webcenter on 21-Jan-2011 22:58

  • JDev generated webservices encodes XML output from PL/SQL procedure

    I have a PL/SQL packaged procedure which takes some input parameters and produces one output parameter. The output parameter is of type CLOB and after the procedure has run, it contains a big piece of XML data.
    Using JDeveloper 10.1.3.1, I've published this packaged procedure as a webservice. The generated webservice is fine and works, except for one tiny little issue: the XML that is taken from the output parameter is encoded.
    Here is an example of the SOAP message that the webservice returns:
    <?xml version="1.0" encoding="UTF-8"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ns0="http://gbv0300u/GBV0300U.wsdl/types/"><env:Body><ns0:gbv0300uResponse
    Element><ns0:result><ns0:obvglijstOut> & gt;type>GBV0001& gt ;/type& lt;
    & gt;diensten& lt;
    & gt;dienst>some value& gt;/dienst& lt;
    & gt;/diensten& lt;
    </ns0:obvglijstOut></ns0:result></ns0:gbv0300uResponseElement></env:Body></env:Envelope>
    (I've manually added an extra space between the & and lt; or gt; to make sure a browser will not translate it into a < or >!)
    The contents of the <ns0:obvglijstOut> element are filled with the output parameter from the PL/SQL package.
    How can I change the generated webservice, so the output from the PL/SQL package is used as is instead of being encoded?

    Update: I've tested a bit more by adding some output statements to the java code that JDeveloper generated. I'm now 100% sure the PL/SQL code gives the XML data correctly to the webservice.
    At this moment my guess is that somewhere in the WSDL definition there is something that enables the encoding of the data. But I'm not sure.
    Any help is greatly appreciated.

  • Ant vs JDev generated jar files

    I'm migrating the 10.1.3 BPEL sources to an automated build environment using ant. Almost all of my processes migrated seamlessly using the 10.1.0,.2 based build hierarchy, but one is choking. I can compile it fine but upon deployment it fails, even after bpelcclasspath updates. It has some local classes supporting the worklist API that JDev wraps up nicely but these are neglected by ant. I haven't been able to resolve these missing classes with any of the available ant arguments. For some reason I understood that JDev leveraged the ant system in 10.1.3 to perform its builds. I don't see how though. The compiler message shows:
    C:\product\10.1.3\OracleAS_1\jdk\jre\bin\java.exe -jar C:\JDEV10132\jdev\lib\ojc.jar -source 1.5 -target 1.5 -noquiet -warn -nowarn:320 -nowarn:486 -nowarn:487 -deprecation:self -nowarn:560 -nowarn:704 -nowarn:489 -nowarn:415 -nowarn:909 -nowarn:412 -nowarn:414 -nowarn:561 -nowarn:376 -nowarn:371 -nowarn:558 -nowarn:375 -nowarn:413 -nowarn:377 -nowarn:372 -nowarn:557 -nowarn:556 -nowarn:559 -encoding Cp1252 -g -d C:\JDEV10132\jdev\mywork\Common\BPELWorkList\output -make C:\JDEV10132\jdev\mywork\Common\BPELWorkList\output\BPELWorkList.cdi -classpath C:\product\10.1.3\OracleAS_1\jdk\jre\lib\rt.jar;C:\product\10.1.3\OracleAS_1\jdk\jre\lib\i18n.jar;C:\product\10.1.3\OracleAS_1\jdk\jre\lib\sunrsasign.jar;C:\product\10.1.3\OracleAS_1\jdk\jre\lib\jsse.jar;C:\product\10.1.3\OracleAS_1\jdk\jre\lib\jce.jar;C:\product\10.1.3\OracleAS_1\jdk\jre\lib\charsets.jar;C:\product\10.1.3\OracleAS_1\jdk\jre\classes;C:\JDEV10132\jdev\mywork\Common\BPELWorkList\output;C:\JDEV10132\integration\lib\bpm-infra.jar;C:\JDEV10132\integration\lib\bpm-services.jar -sourcepath C:\JDEV10132\jdev\mywork\Common\BPELWorkList\src C:\JDEV10132\jdev\mywork\Common\BPELWorkList\src\mypkg\TaskAssignee.java
    You can see the mypkg elements in the JDev command. Comparing the jar files produced by the different utilities shows distinctly different products: Note the size difference:
    -rw-rw-rw- 1 wzscqz root 264624 Apr 26 17:28 bpel_BPELWorkList_1.0.jar
    -rw-rw-rw- 1 wzscqz root 6204184 Apr 26 17:25 bpel_BPELWorkList_v2007_04_26__62657.jar
    The latter is JDev of course. When I look at the contents of the jar file I see that the BPEL-INF library is missing. Here is a snippet of the jar listing for the JDev version:
    drwxrwxrwx 0 26-Apr-2007 17:24:18 BPEL-INF/lib/
    -rw-rw-rw- 2150 26-Apr-2007 17:24:18 BPEL-INF/lib/bpelclasses.jar
    -rw-rw-rw- 1409767 26-Apr-2007 17:24:18 BPEL-INF/lib/bpm-infra.jar
    -rw-rw-rw- 4526876 26-Apr-2007 17:24:18 BPEL-INF/lib/bpm-services.jar
    The private class file is located in bpelclasses.jar.
    I've extracted this file and moved it to the BPEL PM (Solaris) and got the process to deploy and run correctly. I would like to resolve the build process though without this band-aid. Anyone know how I can resolve this missing components?

    Hi JJ,
    After reading your comments, i think i am really a new kid on the block. In the codes I inherit, there are some input text files which contain values to be read by the java files but I didnt include them in my ANT build script. The reason for this input files is to provide flexbility in changing values without the need to re-compile. what commands can I write to include these files during compile? when i build my jar file, how can i "zipped" these input files into my final jar file?
    At the moment, this is what I wrote in my script.
    <target name="MyTask.compile" description="Compiles the Task">
    <mkdir dir="${MyTask.classes}"/>
    <javac srcdir="${MyTask.src}" destdir="${MyTask.classes}"/>
    </target>
    <target name="MyTask.jar" description="JARs the Task" depends="MyTask.compile">
    <jar destfile="${MyTask.dist}/MyTask.jar" basedir="${MyTask.classes}" >
                   <manifest>
                   <attribute name="Main-Class" value="Main"/>
                   <attribute name="Class-Path" value="lib/lib /lib/ant.jar"/>
                   </manifest>
    </jar>
    </target>
    I tried to use javac to decompile the class files produced by ANT and NetBeans and they are the same. I compiled them using the same version of jdk. What do you mean by classpath?
    Thanks.
    Han

Maybe you are looking for

  • Append worksheet from second document with NJAWIN

    Hi, I hope somebody can give me a hint joining two excel documents. I get following macro when I append the second document as object from filename in Excel: Sub Makro1() Sheets.Add Sheets("Tabelle1").Select Workbooks.Open Filename:="C:\exceltest.xls

  • Multiple Apple TVs with one iTunes Library

    I have searched this subject and found one thread that touches on the topic. It says that I should be able to "connect" five Apple TVs to my single iTunes library. I have on original Apple TV that connects to my iTunes library just fine. I just purch

  • Adding Check box in the SRM

    Hello in transaction  <Issue Purchase Orders> after we search for the po's, a list of pos is displayed and actions which can be performed on that. we need to add a check box next to the output push button in the actions coloum . when an action is pre

  • Target=_blank working in standalone ICEbrowser

    Hi I am using 4.2.1.0 Beta. When i have a line like the one below, i get a RuntimeException. <A href="http://otn.oracle.com/tech/java/help/content.html target="_blank">Oracle Help Tech.Web site</A>. So basically i wanted to know, if the bug is inhere

  • My MacBook Pro (Late 2013) keeps crashing

    My MacBook Pro (Late 2013) keeps crashing. When I open up console, it tells me this: Process:         Finder [192] Path:            /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder Identifier:      com.apple.finder Version:         10.9.