Creating stubs for a java class which implements ejbobject and ejbHome

Hi,
I am using the weblogic rmic utility to generate WLStub of a class which implements
EJBHome and EJBObject. The stubs are being generated with the name...WLStub261b2l255i2g1h1324e2u702w6fn1t.class
rather than with the name_WLStub as it should be and as the server wants it to
be when I try to bind this object using JNDI.
I appreciate your help.
Thanks,
Kamps

Have you tried the -nomanglednames option as from:
Usage: java weblogic.rmic [options] <classes>...
where options include:
-help Print this help message.
-version Print version information.
-d <dir> Target (top-level) directory for compilation.
-nontransactional Suspends the transaction before making the
RMI call and resumes after
-verbosemethods Instruments proxies to print debug info to
std err.
-descriptor <example> Associates or creates a descriptor for each
remote class.
-nomanglednames Don't mangle the names of the stubs and
skeletons.
kamps wrote:
>
Hi,
I am using the weblogic rmic utility to generate WLStub of a class which implements
EJBHome and EJBObject. The stubs are being generated with the name...WLStub261b2l255i2g1h1324e2u702w6fn1t.class
rather than with the name_WLStub as it should be and as the server wants it to
be when I try to bind this object using JNDI.
I appreciate your help.
Thanks,
Kamps

Similar Messages

  • Create web service from java class in Jdeveloper 11g

    I have very simple java class which I want to expose as a web service. I am using the Jdeveloper's in-built wizard to "Creat Web Service" from a java class. While doing so when I am selecting a method to be exposed as a web service, I get a error pop-up which says "Failed to load system class."
    I am not able to understand the reson for this error. I tried to do this with a very simple java code too but still no luck!!
    Here is the code:
    public class DownloadFileFromECMWrapper {
    public DownloadFileFromECMWrapper() {}
    public static void main(String args[]){
    DownloadFileFromECMWrapper obj = new DownloadFileFromECMWrapper();
    obj.callDownloadFileFromECM("C:\\shivam\\MyFile.txt");
    public String callDownloadFileFromECM(String filePath){
    System.out.println(filePath);
    return filePath;
    Can someone please help me on this.
    Edited by: 962154 on Sep 28, 2012 2:37 PM

    I have very simple java class which I want to expose as a web service. I am using the Jdeveloper's in-built wizard to "Creat Web Service" from a java class. While doing so when I am selecting a method to be exposed as a web service, I get a error pop-up which says "Failed to load system class."
    I am not able to understand the reson for this error. I tried to do this with a very simple java code too but still no luck!!
    Here is the code:
    public class DownloadFileFromECMWrapper {
    public DownloadFileFromECMWrapper() {}
    public static void main(String args[]){
    DownloadFileFromECMWrapper obj = new DownloadFileFromECMWrapper();
    obj.callDownloadFileFromECM("C:\\shivam\\MyFile.txt");
    public String callDownloadFileFromECM(String filePath){
    System.out.println(filePath);
    return filePath;
    Can someone please help me on this.
    Edited by: 962154 on Sep 28, 2012 2:37 PM

  • How to create stub for C++ client to invoke a  j2ee web service

    Hi All,
    I have developed a j2ee web service which is deployed in Tomcat. I have to call this service from C++ client. I have followed "Axis C++ Client User's Guide" to create stub for my service. I am running WSDL2Ws tool with command
    D:\axisserver\axis-c-win\wsdls>java -cp %AXISCLASSPATH_C%; org.apache.axis.wsdl.wsdl2ws.WSDL2Ws Calculator.wsdl -lc++ -sclient. While running this WSDL2Ws tool , it is giving error.
    Exception Stack is as follows.
    Exception in thread "main" java.lang.NoSuchMethodError
    at org.apache.axis.wsdl.wsdl2ws.info.Type.<init>(Unknown Source)
    at org.apache.axis.wsdl.wsdl2ws.info.TypeMap.getType(Unknown Source)
    at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.createParameterInfo(Unknown Source)
    at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.addRPCStyleInputMessageToMethodInfo(Unknown Source)
    at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.setMethodInfo(Unknown Source)
    at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.getServiceInfo(Unknown Source)
    at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.generateWrappers(Unknown Source)
    at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.main(Unknown Source)
    Anybody can suggest me what i missed...
    Thanks in advance...

    Hi all,
    I have solved this issue. I had JDK1.3 by default. So it was giving error. When i use java from jdk1.4, it created stubs for web service. Java version was the problem. Now it is working fine.
    Thanks....

  • Creating array of objects of class which extends Thread

    getting NullPointerException
    can i not create thread array this way?
    class sample extends Thread
    { int i,id;
      public sample(int c)
       { id=c;
      public void run()
      { for(i=0;i<6;i++)
         System.out.println("Thread "+id+" "+i);
    public class thread extends Frame implements ActionListener
    {  Button b1;
       sample s[];
       thread()
       { for(int i=0;i<2;i++)
              s=new sample(i);
         setLayout(new FlowLayout());
         b1=new Button("OK");
         add(b1);
         b1.addActionListener(this);
         public void actionPerformed(ActionEvent e)
         {   b1.setEnabled(false);
              for(int i=0;i<2;i++)
              { s[i]=new sample(i);
              s[i].start();
         public static void main(String args[])
         { thread t1=new thread(); 
         t1.setVisible(true);
         t1.setSize(150,150);

    You need:
    sample [] s = new sample[2];However
    1) You should get into the habit that class names start with capital letters, variable and field names with lower case.
    2) It's not a good idea to extend Thread, make a class which implements the Runnable interface and hook a standard Thread object to that.

  • How to create Stubs for object

    Hai all,
    I created a object which extends javax.rmi.remote. i want create stubs for this object programatically. is it possible? (like Compiler.compile()).
    Thanks
    with regards
    Sree

    If you use Java 5, you can avoid the need to use stubs at all. Would that be a suitable solution?
    Otherwise you can invoke sun.rmi.rmic.Main declared in tools.jar. E.g.
    java -classpath %JAVA_HOME%\lib\tools.jar sun.rmi.rmic.Main

  • Create a webservice using java class

    Hi,
    I have a java class (which is used to open a URL). I need to create a webservice out of this so that I can publish this. Which is the best tool to convert java to a webservice and what are the steps.
    Any pointers on this would be of great help.
    Thanks,
    Shreevatsa

    If you are using Java 6 use JAX-WS to expose it as a webservice. See the JavaEE tutorial for more information.

  • How to use junit for a java class in netbeans

    hi friends,
    im new to java(fresher) and i need step by step creation of junit class for a java class in net beans6.5.so anybody plz explain me in detail.......

    Hi venkatakrishna.chaithanya,
    With NetBeans :
    - hit F1 to get the Help screen;
    - select the Search tab;
    - enter the word junit;
    - in the left pane, select *7 Creating a JUnit Test*;
    - read the intructions displayed in the right pane.

  • Any tools for converting java class to xml schema ?

    Hi,
    Are there any tools out there that can convert my java class to xml schema. How such tools take care of java collections like HashTable, ArrayList etc. in my class structure. I am not interested in writing any configuration files(like jaxb configuration files, jibx binding xml files etc.) for serving this purpose and the can be able to give me xml schema from the java classes. Please suggest ...
    I am not sure even JAXB 2.0 allows me to do this without writing any jaxb configuration files or annotations in my java class which is not there in JDK 1.4.2
    Thanks & Regards,
    Kr.

    Hi,
    You can convert the EDI file to XML in any of the ways
    1) Using third party seeburger adapters
    2) Conversion agent
    3) Stylus studio.
    I think using java code it will be very difficult.
    Thnx
    Chirag

  • Help for using java class in forms 9i

    hi
    i have been trying to use java class in forms9i but unable to execute ,i have encountered exceptions,for which exception handlers have been declared like ora_java.java_error and exception_thrown but failed to handle run time errors , i have tried all ways from my side.
    my java class returns a simple string
    i need help on various work arounds
    thanks in advance
    yash

    sir
    i have written a simple java class which returns a string hello imported using a java importer in forms 9i
    and i call my class in when button press trigger
    i have also imported java.lang.Exception for my exception handlers,i have no compile errors,but when i run my forms i get run time error and my exception handlers fail to trap it . ihave no idea how to proceed .
    should i use bean area in form and call the class using fbean from custom item rigger if so please explain
    can i get sample code example for calling a java class methods from forms.
    thanks
    yash

  • XJC Tool - For building Java classes from Schema

    Hi all,
    I am using XJC tool for Building java classes from Schema.
    Can we have any other tool for generating java classes from Schema?
    Thanks in advance,
    typurohit

    Solved my own problem and forgot to post the answer: the "xsd:import" is also considered as a targetNamespace, so each xsd:import needs a package specified as well when using oracg. It would be helpful if the Oracle documentation had stated that, but it does not point this out.

  • Template for documenting Java classes

    Could anyone suggest a website that provides a template for the correct format for documenting Java classes, and programs?
    I have been told there is one on the Java website, but after hours of searching it I could not find the specific page for the template.
    Thanks for the help!!!!!

    I assume u want to use the javadoc tool:
    http://java.sun.com/j2se/javadoc/
    http://java.sun.com/j2se/javadoc/writingdoccomments/index.html

  • How to Create Delivery for a delivery detail which is in Released Status 'Y

    Hi All,
    I am trying to create delivery for a delivery detail which is in Release Status (Release status 'Y'). When I am trying to create trips using the API 'wsh_delivery_details_pub.Autocreate_del_Trip', I am getting this error “Delivery ID XXXXX is not eligible for action Auto-create Trip”.
    Please advise.
    Thanks

    Hi Gokula,
    Web Application security is defined in the servlet spec. You should use
    web.xml and weblogic.xml to configure security instead of using acl's
    I am enclosing the link to the relevant documentation below
    http://e-docs.bea.com/wls/docs61/webapp/security.html#100365
    Gokula Krishnan wrote:
    Hi All,
    I am working on Weblogic6.1 and iPlanet Directory Server 5.1. I
    am trying to create ACL's in Weblogic and to test a Web Application
    which I have configured in weblogic. The problem is I am not able to
    create a ACL for the web application resource in weblogic. Could any
    one pls help me on how to create ACL through weblogic console.
    I try creating ACL as per the document but I dont now how to give
    permission and map the ACL for the resource.
    Thanks in advance...
    With regards,
    Gokul.

  • Form that is a map of Ohio. I created layers for each county so I can click and it highlights, but I need to be able to click more than one. How do I do that?

    Form that is a map of Ohio. I created layers for each county so I can click and it highlights, but I need to be able to click more than one. How do I do that?

    Looks nice!
    I understand what you've done now. You used the "Set Layer Visibility" command which sets the on/off state of all the layers at once. What you need is a more subtle approach, one that will only change the state of the specific layer associated with the button, not the rest of them (so that you could have multiple layers enabled at the same time). The way to do that is by using a script.
    I wrote the script for you and applied it to the top-left counties (WILLIAMS and FULTON), in the attached file. You can now copy the actions I associated with those buttons to the rest of them, and it should work as you want it to.
    The file: MAP-HHA-Geographic(3)_edited.pdf - Google Drive

  • I created a large Flash Pro file which includes buttons and I want to share it with others

    I created a large Flash Pro file which includes buttons and I want to share it with others. It's too big for e-mail and youtube and dropbox don't support fla files. I'm new to Flash and I would appreciate a simple solution!
    Thank you!

    Thank you! But based on the link you gave me it seems like I should only have to do step 1 since I am not trying to embed my file into a web page. After I uploaded the SWF file to the Google Drive it still will not play. It keeps opening in Adobe Device Central and won't play anything. Should I go ahead and do step 2?
    I really just want the video available to share with others. It seems like this shouldn't be very difficult.
    Thanks!

  • I am trying to download an epub book from the library, which I have been doing for almost a year. Now I am being asked for my adobe id, which I enter and I get an error message stating Adobe Activation Request Error:2004.. What's this ?

    I am trying to download an epub book from the library, which I have been doing for almost a year. Now I am being asked for my adobe id, which I enter and I get an error message stating Adobe Activation Request Error:2004.. What's this ?

    I downloaded Blue Fire Reader and it requested an adobe id. I clicked on the link that was in the error message stated http//adeactivateadobe.com. Found out that if the date and time on my Ipad is wrong that it won't let me download a book. I was off 5 hours. I reset my clock settings and adobe id let me download a book from the library. I am back to using Overdrive and adobe again on my ipad.
    Thank you.

Maybe you are looking for