Building stubs & Client-side bindings

Hi everyone
I have created a simple web service from my EmployeeRecord class.
I am using Static Stub to test it.
The add(2,3) method works  but not the getName() 
when String  getName() invoked  Null value is returned.
----------------------- my  Static Stub Client -----------------------------
public class Tester
  public static void main(String [] args) throws Exception {
    // Make a service
   EmployeeRecordServiceLocator service = new EmployeeRecordServiceLocator();
    // Now use the service to get a stub .
   EmployeeRecord  port = service.getEmployeeRecord();
    // Make the actual call
   int adding = port.add(2,3);
   System.out.println("Show adding -->" + adding );
   port.setName("reza");
   String myName = port.getName();
   System.out.println("Show my name -->" +  myName  );
------------------------ my Java class which is being used ------------------------------------
package bankStaff;
import java.io.*;
public class EmployeeRecord
private String name ;
public String getName()
return name;
public void setName(String name)
this.name = name;
public int add(int a, int b)
return a+b;
The only way that will return a value is when I modify it as the following but don't think is correct.
Because it behaves as setter & getter at the same time!!!!!!!!!!
public String setName(String name)
   return (this.name = name);
But When I use the EmployeeRecord class in  standalone application  (Non Web service) the String getName() works! It returns  String value.
EmployeeRecord class used in  standalone application
EmployeeRecord myVar = new EmployeeRecord():
myVar.setName(String name);
myVar.getName();
(Obivosualy the class EmployeeRecord has to be instantiated)
Q2 - Also How can we instantiate a class  in the Web services or do we have to?
e.g. EmployeeRecord myVar = new EmployeeRecord():  
Any clues please?
Kind regards
reza

Does debugger help ???
Please post the soln, if u solve
L.

Similar Messages

  • Client-side bindings

    Hi everyone
    I have created a simple web service from my EmployeeRecord class.
    I am using Static Stub to test it.
    The add(2,3) method works  but not the getName() 
    when String  getName() invoked  Null value is returned.
    ----------------------- my  Static Stub Client -----------------------------
    public class Tester
      public static void main(String [] args) throws Exception {
        // Make a service
       EmployeeRecordServiceLocator service = new EmployeeRecordServiceLocator();
        // Now use the service to get a stub .
       EmployeeRecord  port = service.getEmployeeRecord();
        // Make the actual call
       int adding = port.add(2,3);
       System.out.println("Show adding -->" + adding );
       port.setName("reza");
       String myName = port.getName();
       System.out.println("Show my name -->" +  myName  );
    ------------------------ my Java class which is being used ------------------------------------
    package bankStaff;
    import java.io.*;
    public class EmployeeRecord
    private String name ;
    public String getName()
    return name;
    public void setName(String name)
    this.name = name;
    public int add(int a, int b)
    return a+b;
    The only way that will return a value is when I modify it as the following but don't think is correct.
    Because it behaves as setter & getter at the same time!!!!!!!!!!
    public String setName(String name)
       return (this.name = name);
    But When I use the EmployeeRecord class in  standalone application  (Non Web service) the String getName() works! It returns  String value.
    EmployeeRecord class used in  standalone application
    EmployeeRecord myVar = new EmployeeRecord():
    myVar.setName(String name);
    myVar.getName();
    (Obivosualy the class EmployeeRecord has to be instantiated)
    Q2 - Also How can we instantiate a class  in the Web services or do we have to?
    e.g. EmployeeRecord myVar = new EmployeeRecord():  
    Any clues please?
    Kind regards

    Does debugger help ???
    Please post the soln, if u solve
    L.

  • Client-side RA stub didn't find environment on thread

    Hi,
    When I running my application which invokes an EJB then I am geeting message
    [ReplicaAwareRemoteRef] : WARNING: client-side RA stub didn't find environment
    on thread
    there is no cluster in my weblogic server.
    Thanks
    Rakesh

    Rob Thanks for replying. Details are Below..
    Console Release Build 7.0.2.0
    Server Release Build 7.0.2.0
    Server BuildWebLogic Server 7.0 SP2 Sun Jan 26 23:09:32 PST 2003 234192
    All Server Product VersionsWebLogic Server 7.0 SP2 Sun Jan 26 23:09:32 PST 2003
    34192
    Rob Woollen <[email protected]> wrote:
    What version of WLS are you using? I believe I've seen this before,
    and
    I thought one of the service packs fixed it.
    -- Rob
    Rakesh wrote:
    Hi,
    When I running my application which invokes an EJB then I am geetingmessage
    [ReplicaAwareRemoteRef] : WARNING: client-side RA stub didn't findenvironment
    on thread
    there is no cluster in my weblogic server.
    Thanks
    Rakesh

  • Client side stub in oc4j

    Hi all,
    How to get the client stub in oc4j from wsdl. I am using linux environment where i installed oc4j. I have WSDL from which i need to get the client side code. Any infomation on this will be helpful.
    Thanks in advance.

    Found a solution see:
    SAOP Error running PL/SQL tutorial
    Flemming

  • Good name (or maybe a pattern) for a client-side data accessor

    Hello,
    I am building a client/server app, the client is a Swing application.
    The client needs to read/write information to the server. I have a set of "DAO" classes that encapsulate remote acces:
    package myapp.client;
    public class OrderDAO {
        public OrderDTO getDaylyOrders();
        public void saveOrder(OrderDTO order);
    }The implementing class connects to an RMI server which exposes an OrderService interface with more technical methods (getOrdersForDate(Date), getPendingOrders(),...).
    I just feel the name DAO is misleading on the client side, because traditionnally it is a server-side pattern, and indeed in the myapp.server package, I have a set of classes named OrderDAO as well, which do what I think is the usual work of DAOs (mask the usage of the DB to the server logic).
    I'm wondering whether my client-side "DAO" actually follows the intent of the DAO pattern. Otherwise what is it, or how should it be named?
    Isn't it a BusinessDelegate instead, as it encapsulates the usage of the OrderService?
    Note that it is not just a Proxy to the server-side DAO class, because there is a bit of sever-side business logic (filtering and aggregation by the OrderService) between what the server side DAO returns (essentially Lists of entities mapped from the database tables) and what the client-side "DAO" returns.

    It has been a while for me, but when I designed
    applications I favored using some part of a design
    patttern name for the main class of the pattern. For
    Business Delegate objects, using the "Delegate" part
    is helpful if there will ever be other software
    develoeprs working with the code. Even if not, it
    will help you remember the design when/if you return
    to it in a few years or so.I see where you are coming from here but I think that this doesn't really hold up under scrutiny and from my paast experience. First of all, it's not feasible to rely the design with class names. You'll end up with something similar to Hungarian notation if you try. This means that you must have external design documents. It's tempting to think that classnames and JavaDocs will be enough but they aren't. They are necessary but not sufficient.
    When I talk about the 'users of the class' I'm talking about other developers. The 'users of the application' don't see the classes. My experience is that naming classes or anything else with notes about it's internal implementation seems like it would be helpful but is of limited usefulness to maintenance developers. For most work the developer is only going to care what the class does (e.g. retreieve business objects) not how it does it. If the developer need to know that, they can easily open the class documentation and even the source (assuming that's available.
    If you do end up doing this, you also need to think about what will happen if you change the design under the hood of the class. Do you change the name of the class? You really should, if it's name is based on the design. What I've seen happen too often is that it does not happen and the class is named as it if does one thing but acutally does something else entirely.
    OrderServiceDelegate would be an informative
    name because it would imply that the actual code for
    implementing the "order service" is in another class
    and that this class is for "delegating" only.That's easily determined by looking at the class documentation and like I said above, doesn't usually matter to other classes using it. That's one of the main tenets of OO design. Separation of concerns. The classes that use this shouldn't need to know how it does it's job (althought, this is not always feasible IMO.) If the classes depend on a BusinessDelegate, then what do you do if you move the class to an environment where they use the Facade directly, for example. You are in effect coupling related classes to a pattern. If I have a FooRetriever, I might want one that's a business delegate, one that's a DAO and one that is a stub. The idea of coupling an interface to a pattern is strange to me.
    For implementations of the Abstract Factory pattern,
    I typically would include the term "Factory" in the
    class name. Same goes for Facade and Proxy. Factory classes are the most likely misnamed. Often implementations of factories (I know that's not a GoF pattern) or abstract factories are named FooBarSingleton. So, if anything, don't name Singleton classes with the word Singleton.

  • Stub/Client Generation of WSDL for Windows Communication Foundation Service

    Hii,
    I am building a client for the WCF service using Soap1.2 and ws-security. I have tried building a stub for the service using JDeveloper 10 g and also tried to validate the wsdl using XML spy. Both are giving errors. I wanna know how could i genrate the stub for the service and also Validate WSDL? I know i might have to modify the WSDL, but dont know what changes must be required? And Also which std i must adhere?
    Here is the WSDL
    <?xml version="1.0" encoding="utf-8"?>
    <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
                      xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
                      xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
                      xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
                      xmlns:wsap10="http://www.w3.org/2005/08/addressing"
                      xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
                      xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
                      xmlns:i0="http://Corona.Services.UserMgmt.UserMgmtSrv"
                      xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/09/policy/addressing"
                      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                      xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract"
                      xmlns:tns="http://tempuri.org/"
                      xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
                      xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex"
                      xmlns:wsa10="http://www.w3.org/2005/08/addressing"
                      targetNamespace="http://tempuri.org/" name="UserMgmtSrv">
      <wsdl:import namespace="http://Corona.Services.UserMgmt.UserMgmtSrv"
                   location="http://debugger/Corona.Services/Corona.Services.svc?wsdl"/>
      <wsdl:types/>
      <wsdl:binding name="WSHttpBinding_UserMgmtSrv" type="i0:UserMgmtSrv">
        <wsp:PolicyReference URI="#WSHttpBinding_UserMgmtSrv_policy"/>
        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="Authenticate">
          <wsdl:input>
            <soap12:body use="literal"/>
          </wsdl:input>
          <wsdl:output>
            <soap12:body use="literal"/>
          </wsdl:output>
          <wsdl:fault name="ArgumentExceptionFault">
            <soap12:fault name="ArgumentExceptionFault"
                          namespace="http://Corona.Services.UserMgmt.UserMgmtSrv.FaultException"/>
          </wsdl:fault>
        </wsdl:operation>
        <wsdl:operation name="SaveHealthProfileWrapper">
          <wsdl:input>
            <soap12:body use="literal"/>
          </wsdl:input>
          <wsdl:output>
            <soap12:body use="literal"/>
          </wsdl:output>
        </wsdl:operation>
      </wsdl:binding>
      <wsdl:service name="UserMgmtSrv">
        <wsdl:port name="WSHttpBinding_UserMgmtSrv"
                   binding="tns:WSHttpBinding_UserMgmtSrv">
          <soap12:address location="https://debugger/Corona.Services/Corona.Services.svc"/>
          <wsa10:EndpointReference>
            <wsa10:Address>https://debugger/Corona.Services/Corona.Services.svc</wsa10:Address>
          </wsa10:EndpointReference>
        </wsdl:port>
      </wsdl:service>
      <wsp:Policy wsu:Id="WSHttpBinding_UserMgmtSrv_policy">
        <wsp:ExactlyOne>
          <wsp:All>
            <wspe:Utf816FFFECharacterEncoding xmlns:wspe="http://schemas.xmlsoap.org/ws/2004/09/policy/encoding"/>
            <sp:TransportBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
              <wsp:Policy>
                <sp:TransportToken>
                  <wsp:Policy>
                    <sp:HttpsToken RequireClientCertificate="false"/>
                  </wsp:Policy>
                </sp:TransportToken>
                <sp:AlgorithmSuite>
                  <wsp:Policy>
                    <sp:Basic128/>
                  </wsp:Policy>
                </sp:AlgorithmSuite>
                <sp:Layout>
                  <wsp:Policy>
                    <sp:Strict/>
                  </wsp:Policy>
                </sp:Layout>
                <sp:IncludeTimestamp/>
              </wsp:Policy>
            </sp:TransportBinding>
            <sp:EndorsingSupportingTokens xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
              <wsp:Policy>
                <sp:SecureConversationToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
                  <wsp:Policy>
                    <mssp:RequireCancel wsp:Optional="true"
                                        xmlns:mssp="http://schemas.microsoft.com/ws/2005/07/securitypolicy"/>
                    <sp:BootstrapPolicy>
                      <wsp:Policy>
                        <sp:TransportBinding>
                          <wsp:Policy>
                            <sp:TransportToken>
                              <wsp:Policy>
                                <sp:HttpsToken RequireClientCertificate="false"/>
                              </wsp:Policy>
                            </sp:TransportToken>
                            <sp:AlgorithmSuite>
                              <wsp:Policy>
                                <sp:Basic128/>
                              </wsp:Policy>
                            </sp:AlgorithmSuite>
                            <sp:Layout>
                              <wsp:Policy>
                                <sp:Strict/>
                              </wsp:Policy>
                            </sp:Layout>
                            <sp:IncludeTimestamp/>
                          </wsp:Policy>
                        </sp:TransportBinding>
                        <sp:EndorsingSupportingTokens>
                          <wsp:Policy>
                            <sp:SpnegoContextToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
                              <wsp:Policy>
                                <mssp:RequireCancel wsp:Optional="true"
                                                    xmlns:mssp="http://schemas.microsoft.com/ws/2005/07/securitypolicy"/>
                              </wsp:Policy>
                            </sp:SpnegoContextToken>
                          </wsp:Policy>
                        </sp:EndorsingSupportingTokens>
                        <sp:Trust10>
                          <wsp:Policy>
                            <sp:MustSupportIssuedTokens/>
                            <sp:RequireClientEntropy/>
                            <sp:RequireServerEntropy/>
                          </wsp:Policy>
                        </sp:Trust10>
                      </wsp:Policy>
                    </sp:BootstrapPolicy>
                  </wsp:Policy>
                </sp:SecureConversationToken>
              </wsp:Policy>
            </sp:EndorsingSupportingTokens>
            <sp:Trust10 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
              <wsp:Policy>
                <sp:MustSupportIssuedTokens/>
                <sp:RequireClientEntropy/>
                <sp:RequireServerEntropy/>
              </wsp:Policy>
            </sp:Trust10>
            <wsap10:UsingAddressing/>
          </wsp:All>
        </wsp:ExactlyOne>
      </wsp:Policy>
      <wsp:UsingPolicy/>
    </wsdl:definitions>

    I had the problem with JDev (9.0.4) when trying to generate server side classes from a homemade wsdl which took a complex type as a parameter. The only thing I got from JDeveloper was a class receiving an Element. Which pretty much means you have to do the work yourself.
    Quite disappointing....!
    I see to possibilities:
    1) If you are stuck with 9.0.4 you will have to parse to and from xml yourself. For this you can use jax-b which is a Sun API used to create classes for a given XML Schema to parse and validate XML. You have some work creating the classes, but it runs very fast when you have generated the classes.
    2) You use the topdown approach described on OTN. http://www.oracle.com/technology/sample_code/tech/java/codesnippet/webservices/doc-lit/index.html
    I think this is the example for OC4J (9.0.4). There is a new and improved version of the tool (wsa.jar) with the new OC4J (10.1.3)
    Have fun......and I am sure that Oracle quite soon will deliver the functionality directly from JDev....:-)
    /Peter

  • How to copy a page( webpart page) with its content using client side.

    How to copy a page(in my case  webpart page) with its content(it may contain webparts) using client code (i mean using SPservices or ECMA script).
    What i am planning is ,to give end user a page where it will contain text box to specify  name of page and a button with the help of  content editor webpart.
    where on click of button we need to write client side code such that it should create a new page from a existing page in a library with given name by user.
    Any suggestion would be helpful. For your information we can do it through UI with the help Site Actions / Manage Content and Structure.But i want to automate it using client side code.Server side code is restricted.
    or can we create a template of an existing page with content without the help of sharepoint designer.
    Thanks in advance
    with regards Ravichandra

    This is good example
    http://balajiindia.wordpress.com/2011/05/27/using-jquery-with-custom-web-services-in-sharepoint/
    Create web service
    http://balajiindia.wordpress.com/2011/05/27/using-jquery-with-custom-web-services-in-sharepoint/. Create method "Create Page" http://www.learningsharepoint.com/2010/09/17/create-publishing-pages-sharepoint-2010-programmatically/
    Build your Java Script. You can use Content Editor Web Part if you want to avoid custom web part development http://www.codeproject.com/Articles/544538/JQuery-with-SharePoint
    Oleg

  • Merging randomly-named XML data file on client-side with pdf designed in Livecycle 7.0 (and addition

    Okay, as a heads up I work for a financial institution and we are converting our legacy "jetforms" to pdf format. I have in my staff for the project, 2 code developers and myself- a form designer. We have currently spent 2 months in trial and error attempting to resolve this problem, please let us know anything you can have. All client-side (internal) machines are running Windows XP and Adobe Reader 7.0.7
    The software we use as a financial institution allows our users to export a customer's data file onto their machine which is then renamed to include the member's account number and first and last name for our staff to determine which data file they need more accurately. In legacy jetforms, we have developed a program that pushes the data from the customers file that they select, into the jetform that they want to open and the matching fields in the data file fill in the fields of the jetform. Clean and simple.
    Now, i have hit nothing but frustration when attempting to perform the same process with pdfs using a form designed in livecycle designer 7. First, i see no obvious command for opening a pdf and importing a data file using a command line, like pdfmerge or something of the sort in which an xml data file can be specified and a pdf can be specified. I saw something like it using an fdf format and attempted to do this but apparently reader cannot import the data into the pdf that was designed adobe livecycle 7. All i have been seeing is database connections and using javascript inside the form to populate fields based on these database connections, etc. etc. or doing a manual file>import data>etc. which we don't want to have our staff do. We do not have reader extensions enabled, simply because i cannot get an adobe representative to call me and discuss pricing nor see any estimated pricing chart around. I don't know if reader extensions are necessary for this or not but i'm becoming very very frustrated with it.
    We don't want a complex server-side data connection binding with dynamic input. No, we just want it where our developers can say "if this data file is selected, and this pdf form is selected run this command" which would be a simple pdfmerge type solution. Is this possible or do i need to stay with jetforms until our software the billion dollar financial institution uses does form building inside its own application? I don't want to fight about who is better, what version to use, etc. I just want the straight up honest truth. If you need to know the pricing that the reader extensions would have to go by, assume there will be 500 client computers that will need to use it.

    From your post it sounds like you are Central Pro (a product for which I am by no means an expert), but you say you want to upgrade to a newer product from your "legacy" one. Is there a reason for this? Have your requirements change so that it no longer fits them? Central is still in the current Adobe roster and as far as I know there is no plans to get rid of it any time soon, so if it does everything you want I don't see why you would want to change.
    There is no product in the LiveCycle suite that merges xml data into a form from the command line. LiveCycle (with the exception of Designer) is a suite of server products, so the closest you would come is LiveCycle Forms (merge the xml and create a fillable PDF) or LiveCycle Print (merge the xml and print the form).
    Hope this helps somewhat.
    Chris
    Adobe Enterprise Developer Support

  • How can i look up a EJB residing in different machine from client side?

    hai ,
    How can i look up a EJB residing in different machine from client side?
    this is my code...........i don't know what should i use as Initial Context Factory...................i am using a sun appserver 8............
    package com.parx.lms.lmsdelegate;
    import com.parx.lms.exception.LMSException;
    import javax.naming.Context;
    import javax .ejb.CreateException;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.rmi.PortableRemoteObject;
    import java.rmi.RemoteException;
    import com.parx.lms.controller.*;
    import com.parx.lms.vo.UserVo;
    import com.parx.lms.exception.BusinessException;
    import java.util.Hashtable;
    import java.lang.*;
    public class LmsDelegate{
    private final static String JNDI_NAME="LmsBean";
    private static String url="http://localhost:4848";
    public static Lms lms = null;
    public void getController() throws CreateException,
    NamingException,RemoteException{
    if(lms == null){
    Hashtable h=new Hashtable();
    h.put(Context.INITIAL_CONTEXT_FACTORY," ********what should i use here???????*************************");
    h.put(Context.PROVIDER_URL,url);
    System.out.println("Before Loading Context in Delegate");
    Context ctx=new InitialContext(h);
    System.out.println("Loaded Context in Delegate");
    Object obj=ctx.lookup(JNDI_NAME);
    System.out.println("Loaded Object in Delegate");
    System.out.println("Before Loading Home in Delegate");
    LmsHome home = (LmsHome )PortableRemoteObject.narrow(obj,com.parx.lms.controller.LmsHome.class);
    System.out.println("Loaded Home in Delegate");
    lms = home.create();
    System.out.println("Loaded remote in Delegate");
    public void addUserDelegate(UserVo vo) throws BusinessException{
    try{
    getController();
    System.out.println("Before calling the addUser of Session");
    lms.addUser(vo);
    }catch(CreateException e){
    System.out.println("Create Exception in Delegate due to--->"+e);
    e.printStackTrace();
    throw new BusinessException(e);
    }catch(NamingException e){
    System.out.println("Naming Exception in Delegate due to--->"+e);
    e.printStackTrace();
    throw new BusinessException(e);
    catch(RemoteException e){
    System.out.println("Remote Exception in Delegate due to--->"+e);
    e.printStackTrace();
    throw new BusinessException(e);
    }catch(LMSException e){
    System.out.println("duplicate user name--->"+e);
    e.printStackTrace();
    throw new BusinessException(e);
    pls help me..........

    h.put(Context.INITIAL_CONTEXT_FACTORY," ********what should i use here???????*************************")
    Each app server provides their own jndi factory class. For ex for weblogic it is weblogic.jndi.WLInitialContextFactory. SInce you are using sun app server, check if there are any examples to find out or the docs.
    private static String url="http://localhost:4848
    Since the client is in a different machine the localhost is not going to work here. provide the url or the machine name of the system in which ur sunapp server is running. In addition u will need to have the stubs of the remote interfaces in ur client machine.

  • Client Side Javascript Validation not Working in Struts 1.x version

    hi,
    I'm following the steps provioded in the below link for Javascript Client side validation but still it is not working.I'm struggling to get this work.
    [http://www.visualbuilder.com/jsp/struts/tutorial2/pageorder/9/|http://www.visualbuilder.com/jsp/struts/tutorial2/pageorder/9/]
    "The framework automatically generates the browser specific JavaScript and validate the data only at the client side."From the above statement i undertstand that framework itself generates the javascript function for validating the field mentioned in validations.xml file so that we dont have to explicitly write a javascript function for
    validating the fields
    (or)
    Do we need to call an explicit function
    Please need help on this.
    I have followed all the steps mentioned on the above link but Client Side Javascript Validation not Working in Struts 1.x version....
    Thanks and Regards,
    Deepak

    Hi,
    Please find my steps below....still getting an error.
    2> which version of commons-validation.jar needs to be downloaded ...Link please
        downloaded the latest commons-validation.jar and placed in lib.refreshed the project,and did a build.
        3> which DTD name to be specified in "validator-rules.xml" which is in accordance to commons-validator.jar file.
    validator-rules.xml ::
    <!DOCTYPE form-validation PUBLIC
              "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN"
              "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd">validation.xml:
    <!DOCTYPE form-validation PUBLIC
    "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN"
    "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd">
    i did as u said and im gettiong the below errorNov 5, 2009 4:33:08 PM org.apache.struts.validator.ValidatorPlugIn initResources
    SEVERE: Invalid byte 2 of 2-byte UTF-8 sequence.
    org.apache.commons.digester.xmlrules.XmlLoadException: Invalid byte 2 of 2-byte UTF-8 sequence.
         at org.apache.commons.digester.xmlrules.FromXmlRuleSet.addRuleInstances(FromXmlRuleSet.java:139)
         at org.apache.commons.digester.Digester.addRuleSet(Digester.java:1610)
         at org.apache.commons.digester.xmlrules.DigesterLoader.createDigester(DigesterLoader.java:89)
         at org.apache.commons.validator.ValidatorResourcesInitializer.initialize(ValidatorResourcesInitializer.java:122)
         at org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:238)
         at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:181)
         at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1036)
         at org.apache.struts.action.ActionServlet.init(ActionServlet.java:455)
         at javax.servlet.GenericServlet.init(GenericServlet.java:212)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
         at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:927)
         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:890)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
         at org.apache.catalina.core.StandardService.start(StandardService.java:448)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
    Need help forum members.....
    Please reply to my question 1  which has been asked before as belowDo i need to write explicit javascript function for validation in Struts (or) struts generates the javascript function by itself.??? Please explain with an example....
    Edited by: Deepak_A_L on Nov 5, 2009 4:37 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Tutorial and SDRDemo ..Build Rich Client Forms in JDeveloper .

    I am doing the self learn tutorial in Jdeveloper
    ADF Business Components     10.1.3.34.12
    CVS Version (External)     (CVSNT) 2.5.03 (Scorpio) Build 2260 (client/server)
    Java™ Platform     1.5.0_05
    Oracle IDE     10.1.3.34.12
    Struts Modeler Version     10.1.3.34.12
    UML Modelers Version     10.1.3.34.12
    Versioning Support          10.1.3.34.12
    First one is simple
    1. I am using the "Build Rich Client Forms in JDeveloper using ADF swing .. Tutorial "
    when i select New Application , I cant see Java Application Swing ADF BC value from the application Temp in drop down ?? What am i misssing .???
    The second issue is bit complex I am doing the Tutorial SRDemo
    I am doing on page 2 –14 of Tutorial creating EJBS Session Beans when Running the Wizard I don’t see
    Generate Session Facade
    Entity Implementation
    Options, subsequently the screen shot on next page does which has all the methods are not appearing.
    Also when adding code (2-16) in SPPublic FacadeBean Iam getting snytax error for
    (clearly related to above issue), I have no choice but to redo the tutorial from begin
    but should I change something before I do that ?
    public ServiceRequests createServiceRequests
    (String problemDescription, Integer productId, Integer createdBy)
    { UnitOfWork uow = getSessionFactory().acquireUnitOfWork();
    ServiceRequests newInstance = (ServiceRequests)uow.newInstance(ServiceRequests.class);
    Products product = (Products)uow.executeQuery("findProductById", Products.class, productId);
    Users user = (Users)uow.executeQuery("findUserById", Users.class, createdBy);
    product.addServiceRequests(newInstance);
    user.addCreatedBy(newInstance);
    newInstance.setStatus(null);
    newInstance.setRequestDate(null);
    newInstance.setProblemDescription(problemDescription);
    uow.commit(); return newInstance; }
    ==============
    Other than that in previous steps I came across a few interesting Scenarios
    While following the step by steps operation of Tutorial I see on 2 –6 when I was “adding code to manage Default Value “ while I was doing the code adding
    public Integer getNextLineItem() {
    int maxLineNo = 0;
    for (ServiceHistories svh:getServiceRequests().getServiceHistoriesCollection()){
    if (svh.getLineNo() !=null) {
    int testLineNo = svh.getLineNo().intValue();
    if (testLineNo > maxLineNo){
    maxLineNo = testLineNo;
    return ++maxLineNo;
    for (ServiceHistories svh:getServiceRequests().getServiceHistoriesCollection()){
    I kept on getting the compile error for type casting, which when I tried to compare the source provided at the end of the chapter I found the type cast generated by Jbuilder was missing
    public List <ServiceHistories> getServiceHistoriesCollection() {
    return this.serviceHistoriesCollection;
    2.Another interesting thing I came across was by default the wizrd created the names of these variables and there corresponding getter and setter methods as user1 and user2, which lead to some confusion while doing Named query section on 2 –9 (Once again I took care of the problem by doing File comparison with the )
    private ValueHolderInterface createdBy;
    private ValueHolderInterface assignedTo;
    3. Also by default on 2 - 12 When I was Creating Top link Session, I didn’t get any session.xml file. ( tutorial presumed I will get one by default )
    4. Last is it normal to get Warning when getting report for POJO mapping for some of the Tables

    'Generate Web Service Stub/Skeleton' option in 10.1.2, was replaced by 'Generate Web Service Proxy' in 10.1.3

  • Client-side caching of Javascript (for Google Web Toolkit *.cache.* files

    Hi all,
    I'm trying out the use of Google Web Toolkit (GWT) for AJAX code development, leveraging RPC calling back-end Web Services for a document browser prototype.  When the JavaScript code is generated by GWT, it has the ability to automatically distinguish between cacheable and non-cacheable content via file extensions (.cache. and .nocache.).
    Now when running in a Tomcat environment with appropriate caching settings; the application runs extremely fast even on really poor latency sites (>500ms round trip); however on a NetWeaver stack, I can't find any information on how to set an attribute on .cache. files to set an expiry of 1 year.
    Anyone know how to do this on a NetWeaver J2EE stack?
    Thanks,
    Matt
    PS. For reference, GWT is a very cool open source project worth watching in the Enterprise space for targeted high-usability, high performance apps.  Just the image bundles concept themselves are an awesome approach to minimizing impact of small images on performance.

    Hi again,
    I thought I should post the solution I came up with in case people search on GWT in the future.  In terms of caching, the Portal does a good job of making nearly everything that GWT produces to be cached at the client; and for the life of me, I couldn't get nocache files not cached at the client side. 
    So thanks to my friendly local SAP experts in the portal space; I discovered there's not much you can do to get this working except try use standard browser tags like the following to prevent caching on the browser:
    Note - Can't seem to save this post in SDN with Meta tags that I'm trying to display so check out http://www.willmaster.com/library/tutorials/preventing_content_cache.php for more info...
    Unfortunately, the way that GWT creates the nocache files, it is not possible to modify the .js files to do this so I needed an alternative approach.
    Then I thought, well, the html file that includes the JS file is cached, but it's not very big, so how about I just write a script to modify the html file when I deploy to production to point to the nocache file with a date suffix.
    Let me explain in more detail:
    1. The original html file that includes the nocache.js file gets modified to point to nocache.<date>.js.
    2. The original nocache.js file gets changed to nocache.<date>.js
    3. Now produce an external bat file to do this automatically for you before deployment which DevStudio can call as part of an Ant script or similar.
    That's it.  So when you are developing, you can manually delete your cache, but just before you go to production, you do this conversion, and you will never have an issue with clients having the wrong version of javascript files. 
    Note - GWT takes care of caching of most of the files by using a GUID equivalenet each time you compile, so it's just a couple of files that really need to not be cached.
    Anyway, I'm not explaining this solution very well, but drop us a line if you need to understand this approach further.
    And lastly, my feedback about GWT - It Rocks!  Everyone loves the result, it's easy to build and maintain, it offers a great user experience, and it's fast.  Not a replacement for transactional apps; but for the occasional user - go for it.
    Matt
    Edited by: Matt Harding on May 22, 2008 7:48 AM

  • Client side weblogic.management jar

    Hi,
    Could you help me with the following issue?
    I am writing a simple mgmt application that uses Weblogic's JMX APIs remotely
    via JNDI/RMI either from another VM on the same or another box (no firewall issues).
    All is fine except that the weblogic.management interfaces, stubs, and skeletons
    are all part of the huge weblogic.jar.
    Do you know where I can find a client side classes for weblogic.management? I
    noticed that the Weblogic 8.1 distribution comes with client side jars for other
    APIS (e.g. JMS, Web services, EJB etc.) but cannot find one for JMX.
    Thanks a lot for any insight on this,
    Piotr

    Hi Piotr,
    I do not believe there is a client side jar for wl management. This is
    being considered for our next release.
    Thanks,
    -satya
    Piotr Krychniak wrote:
    Hi,
    Could you help me with the following issue?
    I am writing a simple mgmt application that uses Weblogic's JMX APIs remotely
    via JNDI/RMI either from another VM on the same or another box (no firewall issues).
    All is fine except that the weblogic.management interfaces, stubs, and skeletons
    are all part of the huge weblogic.jar.
    Do you know where I can find a client side classes for weblogic.management? I
    noticed that the Weblogic 8.1 distribution comes with client side jars for other
    APIS (e.g. JMS, Web services, EJB etc.) but cannot find one for JMX.
    Thanks a lot for any insight on this,
    Piotr

  • Client Side Rich Internet Applications in Java. Do we have support for it ?

    What about the use of Java EE technologies on client-side ? The Java EE 5 specification lists different technologies: servlet, JSP, JSF, EJB, JTA, JDBC, JPA, JMS, JNDI, JavaMail, XML processing, JCA, JAAS, web services, JMX...
    Almost all of them are used on the server side. What about building applications on the client side ?
    Is Sun thinking too much hardware these days ? Why is that most of the products come out of 3rd party vendors like apache for instance ?

    There's your fundamental problem... We KNOW from bitter experience that rich client app are NOT scalable. The world simply doesn't work that way.
    Architecture starts from the foundations and works up. Computer systems achitectures start from the server and work out... We're just not out there yet dude.
    My crystal ball says that within 20 years computers will be sooooo freeken fast that "scalable" really won't be an issue any longer, except for worldwide realtime massive transaction rate systems (like VR role playing games)... so enterprise solutions will naturally migrate back towards the desktop.
    In the meantime the kids are having fun on the desktop and us "boring backend people" collect $40 million dollars in twenty minutes with rock-solid server-side solutions. Horses for courses. Watch for pitch reports.

  • 4.9 SP2 - Zfd3.2 SP3 client side files

    Does anyone know if it's possible to build in the updated client-side
    zfd3.2 sp3 files into this client (to save a reboot when the clients
    detect newer server files?)
    I've done this with older clients, not sure about this version.

    Yes, should work the same way.
    Client 4.91 will be the first that will completely leave out Zenworks
    components.
    Regards, Kai Reichert
    Novell Support Forum Sysop
    There is an old saying that if a million monkeys typed on a million
    keyboards for a million years, eventually all the works of Shakespeare
    would be produced. Now, thanks to the Internet, we know this is not
    true.

Maybe you are looking for

  • Computer just turned itself off and now cannot turn on

    Hi. I have a HP Touch smart 310 PC. The last week it has been sounding like it was about to take off, I thought at first that it might of been struggling with to much internal memory. So I went in and deleted a lot of files and photos, this didn't se

  • Arch64 + lib32-wine

    Heya, I keep getting OpenGL errors with lib32-wine, which go as follows: Xlib: extension "GLX" missing on display ":0.0". err:wgl:X11DRV_WineGL_InitOpenglInfo couldn't initialize OpenGL, expect problems Why does this keep happening? I have lib32-libg

  • My space button keeps scrolling down, my internet pages (FB) keeps shutting down??help

    Help! everytime i press space my page scrollsdown , everytime i press delete the option to leave the page im on appears. mY I PHOTO is damaged(i cannot open it ) some pages on the internet sduch as openuniversity when i get onto the page is just clos

  • Create new JAAS login module & have to deploy in OC4J

    Dear Experts, Is it possible to create number of user roles under the group oc4jadmin. Then have to assign task for each user in group. please suggest me. Thanks, Rajesh Edited by: Rajesh A on Mar 12, 2009 10:15 AM Edited by: Rajesh A on Mar 12, 2009

  • Proting HTMLDB 1.6 application  to Apex 3.2 on a new machine

    Hi, I have an application that is running on htmldb 1.6 . We want to port this to apex 3.2 running on a new hardware. Which would be the best approach here? I have exported/imported workspace successfully. But what about the rest of the application?