Craeting Stub

Hi All,
I got a problem please try to help me out,iam sending a java file in which i had done some coding but now stuck in middle,
what iam trying to do is that if i got family.java file and it got x number of public methods and i like to create a stub for this
family.java file so i want all these public methods with its return type,parametrs ,Excetpion the method throws means the whole
signature of the public methods to be written in its stub. for example if family.java got this public method
public String[] gotStr(int[] hope,String name,Member mm) throws Exception,
so this whole public method should be writtrn as it is in its
familystub.java file .
can anybody please help me out that what should be done in this CreateStub.java file so that i can get all the public methods of family.java files to familystub.java file using CreateStub.java file as tool.
This is what i had done uptill now
import java.io;
import java.lang.reflect.*;
public class CreateStub
     //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++          
     //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     FileReader fileToRead = null;
     FileWriter fileToCreate = null;
     FileInputStream dataToBeReadedFromFile = null;
     Object [][] methodsNotTobeAdded = null
     String pathOfFileToCreate = null;
     String pathOfFileToRead = null;
     String nameOfClass = null;
     //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++          
     //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     public CreateStub()
     //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++          
     //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     public CreateStub(Object [][] allPublicMthsNotTobeAdded,String nameOfFileToCreate)
          methodsNotTobeAdded = allPublicMthsNotTobeAdded;
          pathOfFileToCreate = nameOfFileToCreate+".java";
          nameOfClass     = nameOfFileToCreate.substring(nameOfFileToCreate.lastIndexOf(File.separator)+1);
          System.out.println(NameOFTrasferFile.lastIndexOf("/"));
          System.out.println("NameOfClass:"+nameOfClass);
          try
               fileToCreate = new FileWriter(pathOfFileToCreate);
          catch(IOException ieo)
               ieo.printStackTrace(System.out);
     //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     public boolean getFileToRead(String nameOfFileToRead)
          Method methodsToBeAnalysed []=null;
          Class classToBeAnalysed= null;
          try
               classToBeAnalysed = java.lang.Class.forName(nameOfFileToRead);
               methodsToBeAnalysed=classToBeAnalysed.getMethods();
               methodsToBeAnalysed.getName();
               Class [] ct = getParameterTypes();
               classToBeAnalysed.getReturnType();
               ct.getExceptionTypes();
          catch(ClassNotFoundException cnfe)
               cnfe.printStackTrace(System.out);
          //Method.getParameterTypes();
     //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     public boolean generatingStub()
          try
               fileToCreate.write("//-***************************************************************************");
               fileToCreate.write("//-***************************************************************************");
               fileToCreate.write("public class"+nameOfClass);
               fileToCreate.write("{");
               fileToCreate.write("\t//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
               fileToCreate.write("\t//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
               fileToCreate.write("}//End of "+nameOfClass);
               fileToCreate.flush();
               fileToCreate.close();
               String CommandToExeJAVAC [] = {"javac",pathOfFileToCreate};
               String CommandToExeJAVA [] = {"javac",pathOfFileToCreate};
               Runtime.getRuntime().exec(CommandToExeJAVAC);
               Runtime.getRuntime().exec(CommandToExeJAVA);
          catch(IOException ieo)
               System.ou.println("Problem in Writing Stub:"+ieo.getMessage());
               return false;
          return true;
}//End of CreateStub class

hi dpz,
i found the solution something like this got through the CreateStub class .
import java.io.*;
import java.util.Vector;
import java.lang.reflect.*;
import java.lang.Class;
public class CreateStub{
     Family thisClassMethods ;
     Method[] methodsToBeRetrived;
     Field[] classFields;
     Vector publicMethods;
     public CreateStub(){
          thisClassMethods = new Family();
     public void     getPublicMethods(){
          methodsToBeRetrived = thisClassMethods.getClass().getMethods();
          classFields = thisClassMethods.getClass().getFields();
          publicMethods = new Vector();
     for (int i=0; i<methodsToBeRetrived.length; i++) {
     String str = methodsToBeRetrived.toString();
               if(str.indexOf("Family") != -1){
                    //System.out.println("The str: "+str);
                    //System.out.println("The index : "+str.indexOf("Family"));
                    String temp = str.substring(0,str.indexOf("Family"));
                    //System.out.println("The temp : "+temp);
                    //System.out.println("The str index : "+ str.indexOf("Family"));
                    //System.out.println("The family length : " + "Family".length());
                    str = str.substring(str.indexOf("Family")+"Family".length()+1);
                    str = temp + str;
                    //System.out.println("The final str : "+str);
                    temp = str;
                    publicMethods.add(str);
     System.out.println ("The methods are ");
     for(int j=0; j< publicMethods.size(); j++){
               System.out.println((String)publicMethods.elementAt(j));
          writeToAFile();
          //return classMethods;
     public void writeToAFile(){
          File temp;
          FileWriter writer;
          String tempFileName = "Family"+"Stub"+".java";
          try
               temp = new File(tempFileName);
               try
                    writer = new FileWriter(temp.getPath());
                    String stringToWrite = "//-*************************************************\n";
                    stringToWrite = "//-*************************************************\n";
                    stringToWrite = "public class FamilyStub \n{\n\t\t public FamilyStub() \n\t\t{\n\t\t}\n";
                    stringToWrite += "\t\t"+"//++++++++++++++++++++++++++++++++++++++++"+"\n";
                    stringToWrite += "\t\t"+"//++++++++++++++++++++++++++++++++++++++++"+"\n";
                    for(int j=0; j< publicMethods.size(); j++){
                         stringToWrite = stringToWrite + "\t\t"+ (String)publicMethods.elementAt(j) + "\n";
                         stringToWrite += "\t\t{"+"\n\n\t\t}\n";
                         stringToWrite += "\t\t"+"//++++++++++++++++++++++++++++++++++++++++"+"\n";
                         stringToWrite += "\t\t"+"//++++++++++++++++++++++++++++++++++++++++"+"\n";
                    stringToWrite += "}";
                    writer.write(stringToWrite,0,stringToWrite.length());
                    writer.close();
               catch(Exception e)
                    System.out.println("Problem in writting the file");
          catch(NullPointerException e)
               System.out.println("Null Pointer for tempFileName");
     public void printClassName(Object obj) {
System.out.println("The class of " + obj +
" is " + obj.getClass().getName());
     public static void main(String args[]){
          CreateStub m = new CreateStub();
          m.getPublicMethods();
hey dpz now can you tell me how can i use this class for many more classes as this is the solution for single Family class now if i want to use this class for many more classes how can i do that
saharey

Similar Messages

  • Can not bind server stubs.

    Hi All,
    i am strugling for a few days (!) now with a starnge problem
    i have created an rmi application and when i run under windows all is well.
    when i tried running it under Linux (Red Hat 7.2) and the stubs where not packed in a jar file all is well as
    well. BUT - if i pack the stubs in a jar i get an exception :
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: (<name of class>...)
    The Exception occour when i try to BIND the stub not when the client is looking for it.
    i have set the policy , classpath , and security manager properly obviously since the appliaction is working
    ok when the stubs are not packed in a jar. the jar file is at the same directory as the unpacked stubs when
    the application is runnig so i dont think it is a classpath issue.
    Can anyone please help ? thanx.

    I don't, sorry. I suppose windows is making a informed guess about the path to the classes. I'm only using linux and Java 1.5 and I have to make sure and expose the interfaces I bind to the rmi registry. Not sure which behavior is supposed to be the correct one.

  • Stubs are getting deleted when we restart the weblogic server

    Hi All,
    We have a EJB jar file Before deploying changed EJB jar, we delete the existing jar from server and consol when we upload the jar using the upload option from admin console of weblogic 8.1 server, then EJBs deploys properly and works fine.
    When we print the remote object class name will get System.out.println("Object "+obj.getClass().getName());
    output -> CnClaimsFacade_wayy6d_HomeImpl_814_WLStub
    However, if i stop the server and start again, the EJB stubs are not created this time and the application does not work.
    When we print the remote object class name will get System.out.println("Object "+obj.getClass().getName());
    the object class name prints as output -> "CnClaimsFacade_wayy6d_HomeImpl"
    Has anyone faced this before?? Pls let me know the reason...
    Thanks in Advance!
    Chandra

    I guess the right place would to be consult Weblogic docs/forums:
    http://www.weblogic.com/docs/techoverview/rmi.html
    http://forums.bea.com/bea/forum.jspa?forumID=2030

  • Wscompile does not seem to be generating a client stub

    When I run the wscompile tool on a WSDL file generated using gSoap the wscompile tool does not generate the client stub. Instead it reports the following errors:
    warning: ignoring port "finsvc": no SOAP address specified
    warning: Service "finsvc" does not contain any usable ports
    The WSDL file and the config file is shown below (please note that the IP address has been changed to 255.255.255.255 in this example but when we ran wscompile it was a valid one):
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="finsvc"
    targetNamespace="http://www.xxxxxxxx.com/abcd/finsvc"
    xmlns:tns="http://www.xxxxxxxx.com/abcd/finsvc"
    xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
    xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:nsfinsvc="http://www.xxxxxxxx.com/abcd/finsvc"
    xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:MIME="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:DIME="http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/"
    xmlns:WSDL="http://schemas.xmlsoap.org/wsdl/"
    xmlns="http://schemas.xmlsoap.org/wsdl/">
    <types>
    <schema targetNamespace="http://www.xxxxxxxx.com/abcd/finsvc"
    xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
    xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:nsfinsvc="http://www.xxxxxxxx.com/abcd/finsvc"
    xmlns="http://www.w3.org/2001/XMLSchema"
    elementFormDefault="unqualified"
    attributeFormDefault="unqualified">
    <import namespace="http://www.w3.org/2003/05/soap-encoding"/>
    <complexType name="getFinStatusRequest">
    <sequence>
    <element name="lswebcmn-dept" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
    <element name="lswebcmn-opr" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
    <element name="lswebcmn-pwd" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
    <element name="lswebcmn-func" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
    <element name="lswebcmn-action" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
    <element name="lswebcmn-option" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
    <element name="lswebcmn-sessid" type="xsd:int" minOccurs="1" maxOccurs="1"/>
    <element name="ltnum" type="xsd:int" minOccurs="1" maxOccurs="1"/>
    </sequence>
    </complexType>
    <complexType name="getFinStatusRspLtdet">
    <sequence>
    <element name="ltnum" type="xsd:int" minOccurs="1" maxOccurs="1"/>
    <element name="ltnum1" type="xsd:int" minOccurs="1" maxOccurs="1"/>
    <element name="ltnum2" type="xsd:int" minOccurs="1" maxOccurs="1"/>
    <element name="ltname" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
    </sequence>
    </complexType>
    <complexType name="ArrayOfgetFinStatusRspLtdet">
    <complexContent>
    <restriction base="SOAP-ENC:Array">
    <sequence>
    <element name="item" type="nsfinsvc:getFinStatusRspLtdet" minOccurs="0" maxOccurs="unbounded"/>
    </sequence>
    <attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="nsfinsvc:getFinStatusRspLtdet[]"/>
    </restriction>
    </complexContent>
    </complexType>
    </schema>
    </types>
    <message name="getFinStatus">
    <part name="p-in" type="nsfinsvc:getFinStatusRequest"/>
    </message>
    <message name="getFinStatusRsp">
    <part name="lswebcmn-status" type="xsd:int"/>
    <part name="lswebcmn-statusmsg" type="xsd:string"/>
    <part name="ptrLtdet" type="nsfinsvc:ArrayOfgetFinStatusRspLtdet"/>
    </message>
    <portType name="finsvcPortType">
    <operation name="getFinStatus">
    <documentation>Service definition of function nsfinsvc__getFinStatus</documentation>
    <input message="tns:getFinStatus"/>
    <output message="tns:getFinStatusRsp"/>
    </operation>
    </portType>
    <binding name="finsvc" type="tns:finsvcPortType">
    <SOAP:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="getFinStatus">
    <SOAP:operation style="rpc"/>
    <input>
    <SOAP:body use="encoded" namespace="http://www.xxxxxxxx.com/abcd/finsvc" encodingStyle="http://www.w3.org/2003/05/soap-encoding"/>
    </input>
    <output>
    <SOAP:body use="encoded" namespace="http://www.xxxxxxxx.com/abcd/finsvc" encodingStyle="http://www.w3.org/2003/05/soap-encoding"/>
    </output>
    </operation>
    </binding>
    <service name="finsvc">
    <documentation>gSOAP 2.7.6d generated service definition</documentation>
    <port name="finsvc" binding="tns:finsvc">
    <SOAP:address location="http://255.255.255.255:18083"/>
    </port>
    </service>
    </definitions>
    And the config file used with the wscompile is as below:
    <configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
    <wsdl location="./FINSVC.wsdl"
    packageName="com"/>
    </configuration>

    Thanks for the reply...
    C:\JavaProgFiles\jwsdp-2.0\jaxrpc\bin>wscompile -version
    JAX-RPC Standard Implementation (1.1.3, build R1)
    C:\JavaProgFiles\jwsdp-2.0\jaxrpc\bin>wscompile -verbose config.xml
    error: no mode was specified, please use one of -import/-define/-gen
    Usage: wscompile [options] configuration_file
    Use "wscompile -help" for a detailed description of options.
    C:\JavaProgFiles\jwsdp-2.0\jaxrpc\bin>wscompile -verbose -gen config.xml
    warning: ignoring port "finsvc": no SOAP address specified
    warning: Service "finsvc" does not contain any usable ports
    [ServiceInterfaceGenerator: creating service interface: com.Finsvc]
    [ServiceGenerator: creating service: com.Finsvc_Impl]
    [SerializerRegistryGenerator: creating serializer registry: com.Finsvc_SerializerRegistry]
    Since then we discovered the following:
    When I change the following line in the WSDL it works:
    From:
    xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap12/"
    To:
    xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/"
    It looks like wscompile (v1.1.3) works with Soap 1.1 WSDL only.
    When using wsimport instead all seems to work fine provided we change from rpc/encoded to document/literal.
    I guess that's the way to go...for Soap 1.2

  • WLS 10.3 [weblogic.appc] - Unable to generate stub/skeleton for 1.5

    Hello,
    I want to deploy the application (EJB) in WLS 10.3 and client is using JDK 1.5.
    When we run the weblogic.appc on the .ear file, the stub and skeleton is created of 1.6 when we run the following command:-
    java weblogic.appc –source 1.5 –output temp_directory Myear-test.earHOwever when we specify the -source as 1.5 it has to create the stub and skeleton for JDK 1.5.
    When we check the version of the MyServiceBean_s_Impl.class file we could see its generating for 1.6, as also shown below:
    (to check the version, run the command “javap –verbose class_name”)
    SourceFile: "MyServiceBean_s_Impl.java"
    minor version: 0
    major version: 50
    I have tried the same thing on the simple EJB application(.jar), every thing works fine.
    Environment Details:-
    WLS 10.3
    JDK 1.6.0_05 (Server)
    JDK 1.5 (client)
    Please provide the provide the pointers.
    Edited by: As91 on Sep 11, 2009 12:05 AM

    we have the same problem with the OSB. The sbconsole was no longer working. I guess that is may be related to an open session during shutdown. Overnight the problem has gone away, and we could login to sbconsole again.
    BEA-423167
    An exception or error occurred in the backing file [com.bea.alsb.console.changemgmt.ChangeCenterBacking] while executing its preRender method. It was java.lang.IllegalStateException: Unable to get Configuration Session Manager java.lang.IllegalStateException: Unable to get Configuration Session Manager at com.bea.alsb.console.support.JMXHelper.sessionExists(JMXHelper.java:673) at com.bea.alsb.console.changemgmt.ChangeMgmtUIHelper.updateButtons(ChangeMgmtUIHelper.java:351) at com.bea.alsb.console.changemgmt.ChangeCenterBacking.preRender(ChangeCenterBacking.java:26) at com.bea.netuix.servlets.controls.Backable$Impl.preRender(Backable.java:191) at com.bea.netuix.servlets.controls.AdministeredBackableControl.preRender(AdministeredBackableControl.java:104) at com.bea.netuix.servlets.controls.window.Window.preRender(Window.java:432) at com.bea.netuix.servlets.controls.portlet.Portlet.preRender(Portlet.java:814) at com.bea.netuix.nf.ControlLifecycle$6.visit(ControlLifecycle.java:428) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:727) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739) at
    weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

  • Clientgen in WL 81 giving problems for stub generation from WL91 WSDL

    Hi,
    I am very new to this forum and new to Weblogic too.
    Here is my problem. I generated a webservice from a Stateless Session bean using annotation in WebLogic 91. Used the "jwsc"/"wldeploy" to generate and deploy the webservice. Also generated the client stubs using "clientgen" in weblogic 91.
    Created a small web application using a single jsp and servlet (the servlet is where i invoke the service).
    Everything works fine till its weblogic 91.
    Now the problem. I need to make the jsp work from Weblogic 81. So I am trying to create the client stubs from the service endpoint WSDL on WebLogic 91 by using the deployed webservice URL.
    The clientgen in WL 81 is complaining that the "parameters" is already defined (Please see the error below".
    I would assume that BEA would have tested this scenario as it should be a no-brainer. So why does the cleintgen in WL 81 complain. Is there any other step or way that I am missing. I have tried all sorts of things before posting to this forum (like 1. generating the stubs using WSDL2JAVA using axis -- WebLogic 81 gives a null pointer exception 2. generating the client stubs using "clientgen" in WL 91 and trying to compile using the jdk 1.4 and using in WL 81 -- complains that the couldnot find something like jax-rpc._._.ServiceImpl
    Will be realy helpful if someone who had this kind of experience of someone from BEA can help me a little bit.
    Thanks in advance to all for your time.
    ERROR WHILE using CLIENGEN
    build-client:
    [clientgen] Generating client jar for http://localhost:7001/webservice/MAC/Metho
    dsAccessControl?WSDL ...
    [clientgen] WARNING: Map ['http://elexnet.bah.com/methods']:ArrayOfint_literal i
    ncompliantly with JAX-RPC, mapping to a Java array of .int
    [clientgen] WARNING: Map ['http://elexnet.bah.com/methods']:ArrayOfMethodUserTO_
    literal incompliantly with JAX-RPC, mapping to a Java array of com.bah.elexnet.s
    erver.to.MethodUserTO
    [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
    198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:15: par
    ameters is already defined in unArchiveUser(com.bah.elexnet.methods.UnArchiveUse
    r,com.bah.elexnet.methods.holders.UnArchiveUserResponseHolder)
    [clientgen] public void unArchiveUser(com.bah.elexnet.methods.UnArchiveUser pa
    rameters, com.bah.elexnet.methods.holders.UnArchiveUserResponseHolder parameters
    [clientgen]
    ^
    [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
    198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:21: par
    ameters is already defined in editUserRoles(com.bah.elexnet.methods.EditUserRole
    s,com.bah.elexnet.methods.holders.EditUserRolesResponseHolder)
    [clientgen] public void editUserRoles(com.bah.elexnet.methods.EditUserRoles pa
    rameters, com.bah.elexnet.methods.holders.EditUserRolesResponseHolder parameters
    [clientgen]
    ^
    [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
    198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:27: par
    ameters is already defined in getUsers(com.bah.elexnet.methods.GetUsers,com.bah.
    elexnet.methods.holders.GetUsersResponseHolder)
    [clientgen] public void getUsers(com.bah.elexnet.methods.GetUsers parameters,
    com.bah.elexnet.methods.holders.GetUsersResponseHolder parameters)
    [clientgen]
    ^
    [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
    198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:33: par
    ameters is already defined in addUserRoles(com.bah.elexnet.methods.AddUserRoles,
    com.bah.elexnet.methods.holders.AddUserRolesResponseHolder)
    [clientgen] public void addUserRoles(com.bah.elexnet.methods.AddUserRoles para
    meters, com.bah.elexnet.methods.holders.AddUserRolesResponseHolder parameters)
    [clientgen]
    ^
    [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
    198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:39: par
    ameters is already defined in archiveUser(com.bah.elexnet.methods.ArchiveUser,co
    m.bah.elexnet.methods.holders.ArchiveUserResponseHolder)
    [clientgen] public void archiveUser(com.bah.elexnet.methods.ArchiveUser parame
    ters, com.bah.elexnet.methods.holders.ArchiveUserResponseHolder parameters)
    [clientgen]
    ^
    [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
    198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:45: par
    ameters is already defined in changeSystemPassword(com.bah.elexnet.methods.Chang
    eSystemPassword,com.bah.elexnet.methods.holders.ChangeSystemPasswordResponseHold
    er)
    [clientgen] public void changeSystemPassword(com.bah.elexnet.methods.ChangeSys
    temPassword parameters, com.bah.elexnet.methods.holders.ChangeSystemPasswordResp
    onseHolder parameters)
    [clientgen]
    ^
    [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
    198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:51: par
    ameters is already defined in deleteUser(com.bah.elexnet.methods.DeleteUser,com.
    bah.elexnet.methods.holders.DeleteUserResponseHolder)
    [clientgen] public void deleteUser(com.bah.elexnet.methods.DeleteUser paramete
    rs, com.bah.elexnet.methods.holders.DeleteUserResponseHolder parameters)
    [clientgen]
    ^
    [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
    198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:57: par
    ameters is already defined in getUserRoles(com.bah.elexnet.methods.GetUserRoles,
    com.bah.elexnet.methods.holders.GetUserRolesResponseHolder)
    [clientgen] public void getUserRoles(com.bah.elexnet.methods.GetUserRoles para
    meters, com.bah.elexnet.methods.holders.GetUserRolesResponseHolder parameters)
    [clientgen]
    ^
    [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
    198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:20
    : parameters is already defined in unArchiveUser(com.bah.elexnet.methods.UnArchi
    veUser,com.bah.elexnet.methods.holders.UnArchiveUserResponseHolder)
    [clientgen] public void unArchiveUser(com.bah.elexnet.methods.UnArchiveUser pa
    rameters, com.bah.elexnet.methods.holders.UnArchiveUserResponseHolder parameters
    [clientgen]
    ^
    [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
    198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:39
    : parameters is already defined in editUserRoles(com.bah.elexnet.methods.EditUse
    rRoles,com.bah.elexnet.methods.holders.EditUserRolesResponseHolder)
    [clientgen] public void editUserRoles(com.bah.elexnet.methods.EditUserRoles pa
    rameters, com.bah.elexnet.methods.holders.EditUserRolesResponseHolder parameters
    [clientgen]
    ^
    [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
    198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:58
    : parameters is already defined in getUsers(com.bah.elexnet.methods.GetUsers,com
    .bah.elexnet.methods.holders.GetUsersResponseHolder)
    [clientgen] public void getUsers(com.bah.elexnet.methods.GetUsers parameters,
    com.bah.elexnet.methods.holders.GetUsersResponseHolder parameters)
    [clientgen]
    ^
    [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
    198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:77
    : parameters is already defined in addUserRoles(com.bah.elexnet.methods.AddUserR
    oles,com.bah.elexnet.methods.holders.AddUserRolesResponseHolder)
    [clientgen] public void addUserRoles(com.bah.elexnet.methods.AddUserRoles para
    meters, com.bah.elexnet.methods.holders.AddUserRolesResponseHolder parameters)
    [clientgen]
    ^
    [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
    198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:96
    : parameters is already defined in archiveUser(com.bah.elexnet.methods.ArchiveUs
    er,com.bah.elexnet.methods.holders.ArchiveUserResponseHolder)
    [clientgen] public void archiveUser(com.bah.elexnet.methods.ArchiveUser parame
    ters, com.bah.elexnet.methods.holders.ArchiveUserResponseHolder parameters)
    [clientgen]
    ^
    [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
    198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:11
    5: parameters is already defined in changeSystemPassword(com.bah.elexnet.methods
    .ChangeSystemPassword,com.bah.elexnet.methods.holders.ChangeSystemPasswordRespon
    seHolder)
    [clientgen] public void changeSystemPassword(com.bah.elexnet.methods.ChangeSys
    temPassword parameters, com.bah.elexnet.methods.holders.ChangeSystemPasswordResp
    onseHolder parameters)
    [clientgen]
    ^
    [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
    198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:13
    4: parameters is already defined in deleteUser(com.bah.elexnet.methods.DeleteUse
    r,com.bah.elexnet.methods.holders.DeleteUserResponseHolder)
    [clientgen] public void deleteUser(com.bah.elexnet.methods.DeleteUser paramete
    rs, com.bah.elexnet.methods.holders.DeleteUserResponseHolder parameters)
    [clientgen]
    ^
    [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
    198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:15
    3: parameters is already defined in getUserRoles(com.bah.elexnet.methods.GetUser
    Roles,com.bah.elexnet.methods.holders.GetUserRolesResponseHolder)
    [clientgen] public void getUserRoles(com.bah.elexnet.methods.GetUserRoles para
    meters, com.bah.elexnet.methods.holders.GetUserRolesResponseHolder parameters)
    [clientgen]
    ^
    [clientgen] 16 errors
    [clientgen] java.io.IOException: Compiler failed executable.exec
    [clientgen] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Comp
    ilerInvoker.java:470)
    [clientgen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok
    er.java:328)
    [clientgen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok
    er.java:336)
    [clientgen] at weblogic.webservice.tools.build.internal.CompilerHelper.compi
    leFiles(CompilerHelper.java:80)
    [clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.compil
    eStubs(ClientGenImpl.java:627)
    [clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.genera
    teStub(ClientGenImpl.java:572)
    [clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.doClie
    ntGenFromWsdl(ClientGenImpl.java:409)
    [clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.run(Cl
    ientGenImpl.java:340)
    [clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.doC
    lientGen(ClientGenTask.java:351)
    [clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.exe
    cute(ClientGenTask.java:208)
    [clientgen] at org.apache.tools.ant.Task.perform(Task.java:341)
    [clientgen] at org.apache.tools.ant.Target.execute(Target.java:309)
    [clientgen] at org.apache.tools.ant.Target.performTasks(Target.java:336)
    [clientgen] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    [clientgen] at org.apache.tools.ant.Project.executeTargets(Project.java:1255
    [clientgen] at org.apache.tools.ant.Main.runBuild(Main.java:609)
    [clientgen] at org.apache.tools.ant.Main.start(Main.java:196)
    [clientgen] at org.apache.tools.ant.Main.main(Main.java:235)
    BUILD FAILED
    file:C:/Projects/OtherProjects/WL/soaws/build/build.xml:122: weblogic.webservice
    .tools.build.WSBuildException: Compiler failed executable.exec - with nested exc
    eption:
    [java.io.IOException: Compiler failed executable.exec]

    did you get a solution for this issue. I am trying to generate a stub to connect to a webservice i created by exposing my stateless session EJB as a web service, using annotations. I want to create a client stub using the clientgen from weblogic 81. I am unable to do this, do you have any solution to this.

  • Calling soap web service using stub

    I have created a stub class from an existing BPEL process and want to write a small java client (ultimately to be used in a JSP).
    The problem is that the generated stub creates the calling method with an Element parameter instead of a string that the web service needs. I have been playing around with the org.w3c.dom.Element and oracle.xml.parser.v2.XMLDocument classes to try to create an instance of Element to pass into the method but I'm having no success.
    Has anyone had the same problem? What's the best way to go about this?
    I'm using JDeveloper 10.1.2 and the BPEL is hosted on Apps Server 10.1.2.0.2
    Thanks in advance..

    I have created a stub class from an existing BPEL process and want to write a small java client (ultimately to be used in a JSP).
    The problem is that the generated stub creates the calling method with an Element parameter instead of a string that the web service needs. I have been playing around with the org.w3c.dom.Element and oracle.xml.parser.v2.XMLDocument classes to try to create an instance of Element to pass into the method but I'm having no success.
    Has anyone had the same problem? What's the best way to go about this?
    I'm using JDeveloper 10.1.2 and the BPEL is hosted on Apps Server 10.1.2.0.2
    Thanks in advance..

  • Questions on InitialContext and replica-aware stub caching

    Hi All,
    We have a cluster and deployed with some stateless ejb session beans. Currently we only cached the InitialContext object in the client code, and I have several questions:
    1. in the current case, if we call lookup() to get a replica-aware stub, which server will return the stub object, the same server we get the InitialContext, or it will load balanced to other servers every time we call the lookup method?
    2. should we just cache the stub? is it thread safe? if it is, how does the stub handle concurrent requests from the client threads? in parallels or in sequence?
    One more question, when we call new InitialContext(), it will take a long time before it can return a timeout exception if the servers are not reachable, how can we set a timeout for this case?

    809364 wrote:
    You can set the timeout value programatically by using the
    weblogic.jndi.Environment.setRequestTimeout()
    Refer: http://docs.oracle.com/cd/E12839_01/apirefs.1111/e13941/weblogic/jndi/Environment.html
    or
    set the REQUEST_TIMEOUT in the weblogic.jndi.WLContext
    Refer: http://docs.oracle.com/cd/E11035_01/wls100/javadocs/weblogic/jndi/WLContext.html
    Hi, I tried setting the parameters before, but it only works for stub lookup and ejb call timeout, not for the creation of InitialContext. And any idea for my 2nd question?

  • File not found error while trying to generate stub using wsdl2java

    Hi
    I am facing this peculiar problem while generating the stub thru the wsdl2java command.
    It shows series of file not found exception.
    What all thing need to be set or taken care while we execute the command . anybody having window script for doing this please share it with me.
    Your help is higly appreciated
    Thanks
    Ottran

    It could be that the wsdl file is not found if you are invoking this command for a wsdl which is locally existing
    Could you send the command and the exception msgs that you are getting
    Regards
    Mari

  • Class name of  stub for EJBHome Impl

    Hi,
    I am doing a context.lookup to find the EJBHome stub and I print the class name
    of the object that is looked up, every time a diffrent name comes up.
    Object obj = ic.lookup("ejb/test");
    System.out.println(hh.getClass().getName());
    I get $Proxy1
    and when I add the two more lines
    Object obj1 = ic.lookup("javax/jms/QueueConnectionFactory");
    System.out.println(obj1.getClass().getName());
    Object obj = ic.lookup("ejb/test");
    System.out.println(obj.getClass().getName());
    and re-run only my client I get:
    weblogic.jms.client.JMSConnectionFactory
    $Proxy2
    I understand that weblogic generates the stub dynamically, but how come (class name
    of) a object bound to JNDI tree keeps changing?
    and why does that happen for the connection factory(is that not a RMI stub too)?
    viswa

    viswa <[email protected]> wrote:
    Hi,
    I am doing a context.lookup to find the EJBHome stub and I print the class name
    of the object that is looked up, every time a diffrent name comes up.
    Object obj = ic.lookup("ejb/test");
    System.out.println(hh.getClass().getName());
    I get $Proxy1
    and when I add the two more lines
    Object obj1 = ic.lookup("javax/jms/QueueConnectionFactory");
    System.out.println(obj1.getClass().getName());
    Object obj = ic.lookup("ejb/test");
    System.out.println(obj.getClass().getName());
    and re-run only my client I get:
    weblogic.jms.client.JMSConnectionFactory
    $Proxy2
    I understand that weblogic generates the stub dynamically, but how come (class name
    of) a object bound to JNDI tree keeps changing?You can look at java/lang/reflect/Proxy.java to see how proxy class names are generated.
    BTW, it looks like WebLogic 7.0 doesn't use JDK dynamic proxies anymore and generates
    stub/skeleton bytecode by itself, so Stub class names are no longer $Proxy123 but xxx_WLStub.
    and why does that happen for the connection factory(is that not a RMI stub too)?My guess is that the actual stub reference is buried somewhere else.
    viswa--
    Dimitri

  • How to create client stub while deployign EAR on Oracle Application Server

    Hi,
    I have deployed an EJB on Oracle Application Server 10g 10.1.2.0.2. And i want to call this ejb from other app server using ejb client. For that i need client stub.
    Is there any way I can create client stub while deploying EJB on the OC4J?
    I am sure there will be some options.
    Thanks and Regards
    AT

    Amit,
    It depends on which transport protocol you use to transmit both the client requests and the server responses: either IIOP or ORMI.
    Here's how it works: if you've chosen the IIOP protocol, the client stubs are generated at deploy time and stored in the iiopClient.jar file. Once created, you append this file to your java client's classpath.
    Now, if your choice is ORMI, the client stubs are created on demand by the container, so there is no need to append any jar file to the client classpath.
    Consult the OC4J Services Guide in the Official Oracle Application Server docs for further inforrmation on this topic, specially the "Remote Method Invocation" chapter.
    RB

  • Geting "Incorrect client ID.The stub is not connected yet" during deploying

    Hai all,
          I am unable to deploy a J2EE application from Deploy Tool. The following trace is comg in defaultTrace.trc.2
    #1.5#000D9D9FAF62003C0000000900000F080003FC0472DB309D#1121520967258#com.sap.engine.services.rmi_p4##com.sap.engine.services.rmi_p4#Guest#2##sap_J2E_1009250#Guest#097b3220f5fd11d9b557000d9d9faf62#Finalizer##0#0#Error#1#/System/Server#Plain#ID:Can't send inform message.: Incorrect client ID. The stub is not connected yet.#com.sap.engine.services.monitor.mbeans.MonitorResourceBundle##
    #1.5#000D9D9FAF62003C0000000A00000F080003FC0472DB33DE#1121520967258#com.sap.engine.services.rmi_p4##com.sap.engine.services.rmi_p4#Guest#2##sap_J2E_1009250#Guest#097b3220f5fd11d9b557000d9d9faf62#Finalizer##0#0#Error#1#/System/Server#Plain###Incorrect client ID. The stub is not connected yet.#
    #1.5#000D9D9FAF62003C0000000B00000F080003FC0472DB3A15#1121520967258#com.sap.engine.services.rmi_p4##com.sap.engine.services.rmi_p4.com.sap.engine.services.rmi_p4.StubImpl p4_finalize#Guest#2##sap_J2E_1009250#Guest#097b3220f5fd11d9b557000d9d9faf62#Finalizer##0#0#Error##Plain###
    com.sap.engine.services.rmi_p4.exception.P4BaseIOException: Incorrect client ID. The stub is not connected yet.
         at com.sap.engine.services.rmi_p4.server.P4ObjectBrokerServerImpl.getException(P4ObjectBrokerServerImpl.java:860)
         at com.sap.engine.services.rmi_p4.server.P4ObjectBrokerServerImpl.getException(P4ObjectBrokerServerImpl.java:853)
         at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.reply(P4SessionProcessor.java:169)
         at com.sap.engine.services.rmi_p4.StubImpl.p4_finalize(StubImpl.java:221)
         at com.sap.engine.services.rmi_p4.StubBase.finalize(StubBase.java:121)
         at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
         at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
         at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
         at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)
    #1.5#000D9D9FAF62003C0000000C00000F080003FC0472DB3F36#1121520967258#com.sap.engine.services.rmi_p4##com.sap.engine.services.rmi_p4#Guest#2##sap_J2E_1009250#Guest#097b3220f5fd11d9b557000d9d9faf62#Finalizer##0#0#Error#1#/System/Server#Plain#ID:Can't send inform message.: Incorrect client ID. The stub is not connected yet.#com.sap.engine.services.monitor.mbeans.MonitorResourceBundle##
    #1.5#000D9D9FAF62003C0000000D00000F080003FC0472DB423D#1121520967258#com.sap.engine.services.rmi_p4##com.sap.engine.services.rmi_p4#Guest#2##sap_J2E_1009250#Guest#097b3220f5fd11d9b557000d9d9faf62#Finalizer##0#0#Error#1#/System/Server#Plain###Incorrect client ID. The stub is not connected yet.#
    #1.5#000D9D9FAF62003C0000000E00000F080003FC0472DB47AA#1121520967258#com.sap.engine.services.rmi_p4##com.sap.engine.services.rmi_p4.com.sap.engine.services.rmi_p4.StubImpl p4_finalize#Guest#2##sap_J2E_1009250#Guest#097b3220f5fd11d9b557000d9d9faf62#Finalizer##0#0#Error##Plain###
    com.sap.engine.services.rmi_p4.exception.P4BaseIOException: Incorrect client ID. The stub is not connected yet.
         at com.sap.engine.services.rmi_p4.server.P4ObjectBrokerServerImpl.getException(P4ObjectBrokerServerImpl.java:860)
         at com.sap.engine.services.rmi_p4.server.P4ObjectBrokerServerImpl.getException(P4ObjectBrokerServerImpl.java:853)
         at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.reply(P4SessionProcessor.java:169)
         at com.sap.engine.services.rmi_p4.StubImpl.p4_finalize(StubImpl.java:221)
         at com.sap.engine.services.rmi_p4.StubBase.finalize(StubBase.java:121)
         at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
         at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
         at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
         at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)
    #1.5#000D9D9FAF62003B0000000100000F080003FC047395DF47#1121520979492#com.sap.engine.compilation##com.sap.engine.compilation.ExternalCompiler.compile()#Administrator#32###Administrator#8c8d9e90f5fe11d99d3d000d9d9faf62#SAPEngine_Application_Thread[impl:3]_32##0#0#Error##Plain###Error while compiling :
    java.io.IOException: CreateProcess: javac -encoding Cp1252 -d C:/usr/sap/J2E/JC00/j2ee/cluster/server0/apps/sap.com/onlyear/EJBContainer/temp/temp1121520967445 -classpath .;./bin/system/frame.jar;C:/usr/sap/J2E/JC00/j2ee/cluster/server0/bin/ext/jms/jms.jar;C:/usr/sap/J2E/JC00/j2ee/cluster/server0/bin/ext/tcsecssl/iaik_jsse.jar;C:/usr/sap/J2E/JC00/j2ee/cluster/server0/bin/ext/webservices_lib/saaj-api.jar;C:/usr/sap/J2E/JC00/j2ee/cluster/server0/bin/ext/tcsecssl/iaik_smime.jar;C:/usr/sap/J2E/JC00/j2ee/cluster/server0/bin/ext/add_ejb/add_ejb.jar;C:/usr/sap/J2E/JC00/j2ee/cluster/server0/bin/ext/servlet/servlet.jar;C:/usr/sap/J2E/JC00/j2ee/cluster/server0/bin/services/naming/naming.jar;C:/usr/sap/J2E/JC00/j2ee/cluster/server0/bin/ext/webservices_lib/webservices_lib.jar;C:/usr/sap/J2E/JC00/j2ee/cluster/server0/bin/interfaces/resourcecontext_api/resourcecontext_api.jar;C:/usr/sap/J2E/JC00/j2ee/cluster/server0/bin/ext/tcsecssl/w3c_http.jar;C:/usr/sap/J2E/JC00/j2ee/cluster/server0/bin/interfaces/webservices/webservices_api.jar;C:/us?
         at java.lang.Win32Process.create(Native Method)
         at java.lang.Win32Process.<init>(Win32Process.java:66)
         at java.lang.Runtime.execInternal(Native Method)
         at java.lang.Runtime.exec(Runtime.java:566)
         at java.lang.Runtime.exec(Runtime.java:491)
         at java.lang.Runtime.exec(Runtime.java:457)
         at com.sap.engine.compilation.ExternalCompiler.compile(ExternalCompiler.java:65)
         at com.sap.engine.services.ejb.util.AdminUtils.compile(AdminUtils.java:449)
         at com.sap.engine.services.ejb.deploy.DeployAdmin.deploySingleJar(DeployAdmin.java:625)
         at com.sap.engine.services.ejb.deploy.DeployAdmin.generate(DeployAdmin.java:266)
         at com.sap.engine.services.ejb.EJBAdmin.deploy(EJBAdmin.java:2093)
         at com.sap.engine.services.deploy.server.application.DeploymentTransaction.makeComponents(DeploymentTransaction.java:1015)
         at com.sap.engine.services.deploy.server.application.DeploymentTransaction.begin(DeploymentTransaction.java:594)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:300)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:331)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:2910)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:451)
         at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1511)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:286)
         at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:172)
         at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:104)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:140)
    #1.5#000D9D9FAF62003B0000000900000F080003FC04739BCB45#1121520979883#com.sap.engine.services.rmi_p4##com.sap.engine.services.rmi_p4#Administrator#32###Administrator#8c8d9e90f5fe11d99d3d000d9d9faf62#SAPEngine_Application_Thread[impl:3]_32##0#0#Error##Plain###com.sap.engine.services.rmi_p4.DispatchImpl _runInternal Cannot deploy application sap.com/onlyear..
    Reason: Exception during generation of components of application sap.com/onlyear in container EJBContainer.; nested exception is:
         com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Exception during generation of components of application sap.com/onlyear in container EJBContainer.#
    #1.5#000D9D9FAF62003B0000000A00000F080003FC04739BD41D#1121520979883#com.sap.engine.services.rmi_p4##com.sap.engine.services.rmi_p4.com.sap.engine.services.rmi_p4.DispatchImpl runInternal#Administrator#32###Administrator#8c8d9e90f5fe11d99d3d000d9d9faf62#SAPEngineApplication_Thread[impl:3]_32##0#0#Error##Plain###
    java.rmi.RemoteException: Cannot deploy application sap.com/onlyear..
    Reason: Exception during generation of components of application sap.com/onlyear in container EJBContainer.; nested exception is:
         com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Exception during generation of components of application sap.com/onlyear in container EJBContainer.
         at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:466)
         at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1511)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:286)
         at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:172)
         at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:104)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:140)
    Caused by: com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Exception during generation of components of application sap.com/onlyear in container EJBContainer.
         at com.sap.engine.services.deploy.server.application.DeploymentTransaction.makeComponents(DeploymentTransaction.java:1021)
         at com.sap.engine.services.deploy.server.application.DeploymentTransaction.begin(DeploymentTransaction.java:594)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:300)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:331)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:2910)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:451)
         ... 10 more
    Caused by: java.lang.NullPointerException
         at com.sap.engine.compilation.ExternalCompiler.getErrorMessage(ExternalCompiler.java:123)
         at com.sap.engine.services.ejb.util.AdminUtils.compile(AdminUtils.java:451)
         at com.sap.engine.services.ejb.deploy.DeployAdmin.deploySingleJar(DeployAdmin.java:625)
         at com.sap.engine.services.ejb.deploy.DeployAdmin.generate(DeployAdmin.java:266)
         at com.sap.engine.services.ejb.EJBAdmin.deploy(EJBAdmin.java:2093)
         at com.sap.engine.services.deploy.server.application.DeploymentTransaction.makeComponents(DeploymentTransaction.java:1015)
         ... 15 more
    #1.5#000D9D9FAF62003B0000000D00000F080003FC04739BDA8D#1121520979883#com.sap.engine.services.rmi_p4##com.sap.engine.services.rmi_p4#Administrator#32###Administrator#8c8d9e90f5fe11d99d3d000d9d9faf62#SAPEngine_Application_Thread[impl:3]_32##0#0#Error#1#/System/Server#Plain#ID:011403: Cannot deploy application sap.com/onlyear..
    Reason: Exception during generation of components of application sap.com/onlyear in container EJBContainer.; nested exception is:
         com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Exception during generation of components of application sap.com/onlyear in container EJBContainer.#com.sap.engine.services.monitor.mbeans.MonitorResourceBundle##
    #1.5#000D9D9FAF62003B0000000E00000F080003FC04739BDCAE#1121520979883#com.sap.engine.services.rmi_p4##com.sap.engine.services.rmi_p4#Administrator#32###Administrator#8c8d9e90f5fe11d99d3d000d9d9faf62#SAPEngine_Application_Thread[impl:3]_32##0#0#Error#1#/System/Server#Plain###Cannot deploy application sap.com/onlyear..
    Reason: Exception during generation of components of application sap.com/onlyear in container EJBContainer.; nested exception is:
         com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Exception during generation of components of application sap.com/onlyear in container EJBContainer.#
    #1.5#000D9D9FAF62003B0000000F00000F080003FC04739BDEA3#1121520979883#com.sap.engine.services.rmi_p4##com.sap.engine.services.rmi_p4#Administrator#32###Administrator#8c8d9e90f5fe11d99d3d000d9d9faf62#SAPEngine_Application_Thread[impl:3]_32##0#0#Error##Plain###TraceException in DispatchImpl...#
    #1.5#000D9D9FAF62003B0000001000000F080003FC04739BDFA7#1121520979883#com.sap.engine.services.rmi_p4##com.sap.engine.services.rmi_p4#Administrator#32###Administrator#8c8d9e90f5fe11d99d3d000d9d9faf62#SAPEngine_Application_Thread[impl:3]_32##0#0#Error##Plain###P4:SAPEngine_Application_Thread[impl:3]_32: TraceException in DispatchImpl...#
    The above trace repeating all the time when I try to deploy.
    Can any body tell whether is it a configuration problem or any application problem. Also on the same server another j2ee application is deploying successfully.
    Thanks a lot,
    Gangadhar.

    Hai,
        Thanks Brandelik, actually the problem was coming because of java.lang.outOfMemory exception during compilation time.
         As of now I am not able to fix that problem. I am changing all the available options for memory settings.
        Anybody please help me how to set the memory parameters for deploying an application. My application needs minimum of -Xmx512m for deployment on oracle10g server.
    Thanx,
    Gangadhar.

  • How do I generate stub classes with wsimport for secured (SSL) WSDL?

    I'm trying to use the wsimport utility from the JWSDP1.6 to generate the stub classes for a web service client. The problem is that the WSDL location is secured on it's server, and when you navigate to it via a browser it asks you to authenticate before it'll show it. I have access to the WSDL, via a username and password, but I have no idea how to send those parameters to it through wsimport. Here's my error message from wsimport:
    [ERROR] Failed to read the WSDL document: https://-removed4companysecurityreasons-.com/ObsidianAdService.asmx?WSDL, because 1) could not find the document
    ; /2) the document could not be read; 3) the root element of the document is not <wsdl:definitions>.
    unknown location
    Can anyone offer me any advice/solutions here?

    I'm not sure we had support for secured web services access in 10.1.2 - try JDeveloper 10.1.3 instead:
    http://www.oracle.com/technology/products/jdev/howtos/1013/wssecure/10gwssecurity_howto.html#CreateSecureProxy

  • JDeveloper 10.1.3.2 - how to create a stub from WSDL?

    Hello to all..
    I have installet the last version of Jdeveloper.. since this I used JDev 10.1.2...
    Can anybody help me how can i make classes (stub) from WSDL?
    I have a WSDL file located on remote HTTPS server.. In JDev 10.1.2 i get error when i like to connect on https to retrive data...
    But in JDev 10.1.3.2 I can't find a function to create a stub from wsdl..
    There is only a option to create a java webservice from wsdl.. (but this will create a new webservice (right?)..
    so.. how can I create a stub from remote wsdl..
    best regards

    Another question...
    For retriving information i must install a certificate...
    I installed it for mozilla and explorer.. so if i acess to the url i get the wsdl definition
    picture 1: http://freeweb.siol.net/peterv6i/picc2.jpg
    In JDeveloper i get error DCA-40002
    here is the picture: http://freeweb.siol.net/peterv6i/picc1.jpg
    how to acess to wsdl if it requires a certificate?

  • View Paycheck Stub Error: (Form xyz does not exist)

    Hi Portal Knowledgeable ones,
    I am running EP 6.0 SP 13.  My SAP target is ECC 5.0.
    I have a problem in the ESS application.  When I attempt to view the paycheck stub for any employee, the portal returns the error:
    <b>com.sap.pcuigp.xssfpm.java.FPMRuntimeException: Form ZCHK does not exist</b>
    Form ZCHK is our custom paystub form.
    Thanks,
    Kevin
    <i></i>

    Had to include form via IMG.

Maybe you are looking for

  • How to Setup Apple Magic Mouse in Windows 7?

    Hi, I have a MBP that runs "Apple OS X 10.6.3" and "Windows 7 Ultimate". I also purchased an "Apple Magic Mouse". I have no problem setting up the Apple Magic Mouse on the Mac side, but don't know how to set up the Apple Magic Mouse in the Windows 7.

  • Http receiver adapter - url parameters

    I have a scenario where I'm calling a client proxy and passing a file name to xi.  I have a receiver http adapter configured to post to a servlet.  I want to pass the file name from payload to my query string variable.  i.e PATH = parser/servlet/pars

  • Weird beeping/blinking. After reseting SMC the fan/battery is out of control.

    I honestly just got my MacBook Pro back from the shop yesterday (it got a new harddrive) and the first time I let it run out of battery life, this happens. So basically what's going on is that I cannot start up my computer unless I reset the SMC. Whe

  • Can't print Wifi / Epson 837

    Just bought the new Epson Aritisan 837 mainly to print wirelessly.  Just did the install and I can't add the new printer.  I get the error "The software for this printer is currently unavailable. Please contact the printer's manufacturer for the late

  • Firefox only shows 12 sites in toolbar,,i have 47 sites i need to see 24/7

    when i open FF i only see 12 sites listed in the drop down box.I need to see all 47 ,,,24/7,,if there is no fix i will go back to 2.0...3.6 is pretty but doesnt work well for what i do..Is there any way to make all 47 sites show in dropdown box,,if i