JSF RI 1.2 Duplicate component ID step2Form:j_id9 found in view.

Hi im using JSF RI 1.2 with Facelets
The problem shows when i create a back button :
let say we have pages : step1 and step2 and when im in step2 and click the back button
<h:commandButton action="back" value="#{msg.back}" immediate="true"/>
Then When I TRY to reSubmit the first page (step1) i get this error
maybe becouse the forms are allready added.
i Change the scope of all bean to session the problem is the same
when i submit if the id of the form is allready added i get the exception.
Can i make it more Struts like ? i mean if the id is alrleady created okei grab and get the content of this which is created and put the values in the new one .. dont show me crazy errors ? : )
can i do it ?
The Full Error :
java.lang.IllegalStateException: Duplicate component ID step2Form:j_id9 found in view.
     at com.sun.faces.application.StateManagerImpl.checkIdUniqueness(StateManagerImpl.java:334)
     at com.sun.faces.application.StateManagerImpl.checkIdUniqueness(StateManagerImpl.java:327)
     at com.sun.faces.application.StateManagerImpl.saveSerializedView(StateManagerImpl.java:195)
     at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:601)
     at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108)
     at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:243)
     at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
     at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
     at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
     at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
     at java.lang.Thread.run(Unknown Source)
Hmm Somethink New :
I have binded the <h:form with a fields of type HtmlForm in the backingBeans NOW the result is different
when the 3th time the form will be showed then throws the same exception .
example :
from step 1 go to step2 with next.
go back to step1 - lol it works ( this dont works early )
from step1 go to step 2 it works
now from step2 go back to step1 - exception
you can download the example from here :
http://isy-dc.com/~naiden/Wizzard.rar
the Valid data to be added for the first page is :
first feld : 3-8 symbols
secound field 3-8 sumbols
3th field : 8310282400
4 and 5th field must be the same 3-8 symbols
Message was edited by:
JOKe
Message was edited by:
JOKe

I dont know what is the problem but this is the source code :
The Version is :
Created-By: 1.5.0_04-b05 (Sun Microsystems Inc.)
Specification-Title: JavaServer Faces
Specification-Version: 1.2
Implementation-Title: Sun Microsystems JavaServer Faces Implementation
Implementation-Version: 1.2_01-NIGHTLY_20060603
The Template :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
             <f:loadBundle basename="resources" var="msg" />
          <head>
          <title><ui:insert name="pageTitle">Page Title</ui:insert></title>
          <style type="text/css">
               body {
                      font-family: Verdana, Arial, Helvetica, sans-serif;
                      font-size: 14px;
               .header {
                      font-family: Verdana, Arial, Helvetica, sans-serif;
                      font-size: 18px;
               .bottom {
                      font-family: Verdana, Arial, Helvetica, sans-serif;
                      font-size: 9px;
                      text-align: center;
                      vertical-align: middle;
                      color: #8E969D;
          </style>
          </head>
<body bgcolor="#ffffff">
<table style="border:1px solid #CAD6E0"  align="center" cellpadding="0" cellspacing="0" border="0" width="800">
<tbody>
     <tr>
          <td class="header" height="42" align="center" valign="middle" width="100%" bgcolor="#E4EBEB">
               <ui:insert name="pageHeader">Page Header</ui:insert>
          </td>
     </tr>
     <tr>
          <td height="1" width="100%" bgcolor="#CAD6E0"></td>
     </tr>     
     <tr>
          <td width="100%"  colspan="2">
               <table width="100%" style="height:150px" align="left" cellpadding="0" cellspacing="0" border="0">
               <tbody>
                    <tr>
                         <td align="center" width="100%" valign="middle">
                         <ui:insert name="body">Page Body</ui:insert>
                         </td>
                    </tr>
               </tbody>
               </table>
          </td>
     </tr>     
     <tr>
          <td colspan="2"  valign="bottom" height="1" width="100%" bgcolor="#CAD6E0"></td>
     </tr>
</tbody>
</table>
</body>
</html>Step1 :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:c="http://java.sun.com/jstl/core">
<f:loadBundle basename="resources" var="msg" />
<ui:composition template="/templates/common.xhtml">
     <ui:define name="pageTitle">JSF 1.2 and Facelets under Tomcat. KickStart Application</ui:define>
     <ui:define name="pageHeader">JSF 1.2 Registration Application</ui:define>
     <ui:define name="body">
          <h:messages />
          <p />
          <h:form id="step1Form" binding="#{person.form1}">
          <table width="100%">
               <tr>
                    <td align="right">${msg.prompt}</td>
                    <td><h:inputText label="Name" required="true"
                         id="name" value="#{person.name}" /></td>
                    <td align="left"><h:message showSummary="true"
                         showDetail="false" style="color: red; font-weight: bold;"
                         for="name" /></td>
               </tr>
               <tr>
                    <td align="right">${msg.username}</td>
                    <td><h:inputText binding="#{person.inputText}" id="username"
                         label="Username" required="true">
                         <f:validateLength maximum="8" minimum="3" />
                    </h:inputText></td>
                    <td align="left"><h:message for="username" /></td>
               </tr>
               <tr>
                    <td align="right">${msg.egn}</td>
                    <td><h:inputText label="Egn" validator="#{person.validateEgn}"
                         id="egn" binding="#{person.inputEgn}"/></td>
                    <td align="left"><h:message for="egn"></h:message></td>
               </tr>
               <tr>
                    <td align="right">${msg.password}</td>
                    <td>
                    <h:inputSecret id="pass" label="Password" required="true" binding="#{person.inputPassword}">
                    <f:validateLength minimum="3" maximum="6"/>
                    </h:inputSecret>
                    </td>
                    <td>
                         <h:message for="pass"></h:message>
                    </td>
               </tr>
               <tr>
                    <td align="right">${msg.confirm_password}</td>
                    <td>
                    <h:inputSecret id="cpass" label="Confirm Password" required="true" binding="#{person.inputCPassword}">
                    <f:validateLength minimum="3" maximum="6"/>
                    </h:inputSecret>
                    </td>
                    <td>
                         <h:message for="cpass"></h:message>
                    </td>
               </tr>
               <tr>
                    <td colspan="3" align="center"><h:commandButton type="submit"
                         id="submit" action="${person.submit}"
                         value="#{msg.next}"/></td>
               </tr>
          </table>
          </h:form>
     </ui:define>
</ui:composition>
</html>Step 2 :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:f="http://java.sun.com/jsf/core">
<f:loadBundle basename="resources" var="msg" />
<ui:composition template="/templates/common.xhtml">
     <ui:define name="pageTitle">JSF 1.2 and Facelets under Tomcat. KickStart Application</ui:define>
     <ui:define name="pageHeader">Step 2 </ui:define>
     <ui:define name="body">
          <h:form id="step2Form" binding="#{step2.form2}">
                    #{msg.step2} #{person.name}!
                    <table>
                    <tr>
                         <td align="right">${msg.gender}</td>
                         <td align="left"><h:selectOneRadio
                              binding="#{step2.genderMenu}">
                              <f:selectItem itemValue="M" itemLabel="#{msg.gender_male}" />
                              <f:selectItem itemValue="F" itemLabel="#{msg.gender_female}" />
                         </h:selectOneRadio></td>
                    </tr>
                    <tr>
                         <td align="right">${msg.education}</td>
                         <td align="left"><h:selectManyListbox
                              binding="#{step2.educationList}">
                              <f:selectItem itemValue="1" itemLabel="#{msg.education_level1}" />
                              <f:selectItem itemValue="2" itemLabel="#{msg.education_level2}" />
                              <f:selectItem itemValue="3" itemLabel="#{msg.education_level3}" />
                              <f:selectItem itemValue="4" itemLabel="#{msg.education_level4}" />
                         </h:selectManyListbox></td>
                    </tr>
                    <tr>
                         <td align="right">
<!--                     <h:commandLink value="#{msg.back}" action="back"></h:commandLink> -->     
                         <h:commandButton action="back" value="#{msg.back}" id="back"/>
                         </td>
                         <td align="left"><h:commandButton action="#{step2.submit}"
                              value="#{msg.next}" id="submit2" /></td>
                    </tr>
               </table>
          </h:form>
     </ui:define>
</ui:composition>
</html>Step 3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
     <f:loadBundle basename="resources" var="msg"/>
     <ui:composition template="/templates/common.xhtml">
               <ui:define name="pageTitle">JSF 1.2 and Facelets under Tomcat. KickStart Application</ui:define>
               <ui:define name="pageHeader">Final Page</ui:define>
               <ui:define name="body">
                    #{msg.final} 
                    <h:form id="finalForm" binding="#{registration.form3}">
                    <h:outputText value="#{registration.regResult}"/>
                    <h:commandButton action="#{registration.save}" value="Save to Database" id="save"/>
                    <br/>
                    <h:commandButton action="back" value="#{msg.back}" immediate="true" id="back3"/>
                    </h:form>
               </ui:define>
     </ui:composition>
</html>

Similar Messages

  • Hook methods in component controller vs hook methods in view controller

    Hi,
    I want to know how WDDoInit in component controller differs from the same in view controller.
    How the lifecycle flows in both controllers?
    Eg. if i create a method intialize() in both component  & view controllers and if i called initalize method in view, which one will be called?
    Need to know how the flow works.
    Regards,
    Manoj

    Dear Manoj,
    Please check if it is helpful.
    The order of execution of standard hook methods when a WDJ application is called the first time is as follows:
    1. Component Controller DoInIt()
    2. View Controller DoInIt()
    3. Interface Window Controller
    4. Component Controller DoBeforeNavigation()
    5. Component Controller DoModify()
    6. Component Controller DoPostProcessing()
    After this, if you navigate to some other view, then the order of execution of methods of that New view will be:
    1. Component Controller DoBeforeNavigation()
    2. New View DoInIt()
    3. New View onPlugfromFirstView
    4. Component Controller DoModify()
    5. Component Controller DoPostProcessing()
    Then, if you again navigate back to the first view, then the order of execution of methods is:
    1. Component Controller DoBeforeNavigation()
    2. New View onPlugfromNewView
    3. Component Controller DoModify()
    4. Component Controller DoPostProcessing()
    Webdynpro - Sequence of Execution
    Thanks & Regards,
    Patralekha

  • Can we get  reference of WD component in custom class of enhanced View cont

    Dear Member,
    We are enhancing WD component. We need to get a reference of WD component in custom class of enhanced View controller (post exit) so that popups can be triggered or URLs can be called?. How should we get reference of WD component? I need to know cons of our approach.
    ...Naddy

    Hi,
    Create one static attribute in your custom class with type ref to of your component and populate this attribute in webdynpro enhancement and then use this reference in your custom class.
    Regards,
    Pon Murugesh

  • Deploying an EJB WebService under WLS 9.1 - port component "Hello" is not found in wsdl.

    Hi,
    I'm trying to deploy a simple EJB webservice example on WLS 9.1. The appc
    compile works fine, but the server deployment throw the following error
    message:
    [java] port component "Hello" is not found in wsdl.
    It's simple JAX-RPC based webservice where a SessionBean method is used as
    the service implementation. The same configuration (webservice.xml,
    mapping.xml and HelloService.wsdl) works fine under JBoss 4.0, but not with
    WLS 9.1. Maybe it's a simple configuration error and someone can help.
    Regards
    Guido
    Appendix
    webservice.xml
    <webservices xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1\.xsd"
    version="1.1">
    <webservice-description>
    <webservice-description-name>HelloService</webservice-description-name>
    <wsdl-file>META-INF/wsdl/HelloService.wsdl</wsdl-file>
    <jaxrpc-mapping-file>META-INF/mapping.xml</jaxrpc-mapping-file>
    <port-component>
    <port-component-name>Hello</port-component-name>
    <wsdl-port>HelloPort</wsdl-port>
    <service-endpoint-interface>com.jcoffee.components.ws.Hello</service-endpoin
    t-interface>
    <service-impl-bean>
    <ejb-link>HelloBean</ejb-link>
    </service-impl-bean>
    </port-component>
    </webservice-description>
    </webservices>
    mapping.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <java-wsdl-mapping version="1.1" xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd">
    <package-mapping>
    <package-type>com.jcoffee.components.ws</package-type>
    <namespaceURI>http://ws.components.jcoffee.com/types</namespaceURI>
    </package-mapping>
    <package-mapping>
    <package-type>com.jcoffee.components.ws</package-type>
    <namespaceURI>http://ws.components.jcoffee.com/</namespaceURI>
    </package-mapping>
    <service-interface-mapping>
    <service-interface>com.jcoffee.components.ws.HelloService</service-interface
    >
    <wsdl-service-name
    xmlns:serviceNS="http://ws.components.jcoffee.com/">serviceNS:HelloService</
    wsdl-service-name>
    <port-mapping>
    <port-name>HelloPort</port-name>
    <java-port-name>HelloPort</java-port-name>
    </port-mapping>
    </service-interface-mapping>
    <service-endpoint-interface-mapping>
    <service-endpoint-interface>com.jcoffee.components.ws.Hello</service-endpoin
    t-interface>
    <wsdl-port-type
    xmlns:portTypeNS="http://ws.components.jcoffee.com/">portTypeNS:Hello</wsdl-
    port-type>
    <wsdl-binding
    xmlns:bindingNS="http://ws.components.jcoffee.com/">bindingNS:HelloBinding</
    wsdl-binding>
    <service-endpoint-method-mapping>
    <java-method-name>hello</java-method-name>
    <wsdl-operation>hello</wsdl-operation>
    <method-param-parts-mapping>
    <param-position>0</param-position>
    <param-type>java.lang.String</param-type>
    <wsdl-message-mapping>
    <wsdl-message
    xmlns:wsdlMsgNS="http://ws.components.jcoffee.com/">wsdlMsgNS:Hello_hello</w
    sdl-message>
    <wsdl-message-part-name>String_1</wsdl-message-part-name>
    <parameter-mode>IN</parameter-mode>
    </wsdl-message-mapping>
    </method-param-parts-mapping>
    <wsdl-return-value-mapping>
    <method-return-value>java.lang.String</method-return-value>
    <wsdl-message
    xmlns:wsdlMsgNS="http://ws.components.jcoffee.com/">wsdlMsgNS:Hello_helloRes
    ponse</wsdl-message>
    <wsdl-message-part-name>result</wsdl-message-part-name>
    </wsdl-return-value-mapping>
    </service-endpoint-method-mapping>
    </service-endpoint-interface-mapping>
    </java-wsdl-mapping>
    HelloService.wsdl
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="HelloService"
    targetNamespace="http://ws.components.jcoffee.com/"
    xmlns:tns="http://ws.components.jcoffee.com/"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <types/>
    <message name="Hello_hello">
    <part name="String_1" type="xsd:string"/>
    </message>
    <message name="Hello_helloResponse">
    <part name="result" type="xsd:string"/>
    </message>
    <portType name="Hello">
    <operation name="hello" parameterOrder="String_1">
    <input message="tns:Hello_hello"/>
    <output message="tns:Hello_helloResponse"/>
    </operation>
    </portType>
    <binding name="HelloBinding" type="tns:Hello">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/>
    <operation name="hello">
    <soap:operation soapAction=""/>
    <input>
    <soap:body use="literal" namespace="http://ws.components.jcoffee.com/"/>
    </input>
    <output>
    <soap:body use="literal" namespace="http://ws.components.jcoffee.com/"/>
    </output>
    </operation>
    </binding>
    <service name="HelloService">
    <port name="HelloPort" binding="tns:HelloBinding">
    <soap:address location="REPLACE_WITH_ACTUAL_URL"/>
    </port>
    </service>
    </definitions>
    and last but not least the ejb-jar.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" version="2.1"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
    <display-name>JCoffee web service sample</display-name>
    <enterprise-beans>
    <session>
    <ejb-name>HelloBean</ejb-name>
    <service-endpoint>com.jcoffee.components.ws.Hello</service-endpoint>
    <ejb-class>com.jcoffee.components.ws.HelloBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    <assembly-descriptor>
    <method-permission>
    <unchecked/>
    <method>
    <ejb-name>HelloBean</ejb-name>
    <method-name>*</method-name>
    </method>
    </method-permission>
    <container-transaction>
    <method>
    <ejb-name>HelloBean</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>

    Hi again,
    I got it - i've forgot the namespace prefix for the wsdl-port.
    Now it works.
    Thanks!
    "Ben" <[email protected]> schrieb im Newsbeitrag
    news:[email protected]...
    Hi,
    I'm trying to deploy a simple EJB webservice example on WLS 9.1. The appc
    compile works fine, but the server deployment throw the following error
    message:
    [java] port component "Hello" is not found in wsdl.
    It's simple JAX-RPC based webservice where a SessionBean method is used as
    the service implementation. The same configuration (webservice.xml,
    mapping.xml and HelloService.wsdl) works fine under JBoss 4.0, but notwith
    WLS 9.1. Maybe it's a simple configuration error and someone can help.
    Regards
    Guido
    Appendix
    webservice.xml
    <webservices xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1\.xsd"
    version="1.1">
    <webservice-description>
    <webservice-description-name>HelloService</webservice-description-name>
    <wsdl-file>META-INF/wsdl/HelloService.wsdl</wsdl-file>
    <jaxrpc-mapping-file>META-INF/mapping.xml</jaxrpc-mapping-file>
    <port-component>
    <port-component-name>Hello</port-component-name>
    <wsdl-port>HelloPort</wsdl-port>
    <service-endpoint-interface>com.jcoffee.components.ws.Hello</service-endpoin
    t-interface>
    <service-impl-bean>
    <ejb-link>HelloBean</ejb-link>
    </service-impl-bean>
    </port-component>
    </webservice-description>
    </webservices>
    mapping.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <java-wsdl-mapping version="1.1" xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd">
    <package-mapping>
    <package-type>com.jcoffee.components.ws</package-type>
    <namespaceURI>http://ws.components.jcoffee.com/types</namespaceURI>
    </package-mapping>
    <package-mapping>
    <package-type>com.jcoffee.components.ws</package-type>
    <namespaceURI>http://ws.components.jcoffee.com/</namespaceURI>
    </package-mapping>
    <service-interface-mapping>
    <service-interface>com.jcoffee.components.ws.HelloService</service-interface
    >>
    <wsdl-service-name
    xmlns:serviceNS="http://ws.components.jcoffee.com/">serviceNS:HelloService</
    wsdl-service-name>
    <port-mapping>
    <port-name>HelloPort</port-name>
    <java-port-name>HelloPort</java-port-name>
    </port-mapping>
    </service-interface-mapping>
    <service-endpoint-interface-mapping>
    <service-endpoint-interface>com.jcoffee.components.ws.Hello</service-endpoin
    t-interface>
    <wsdl-port-type
    xmlns:portTypeNS="http://ws.components.jcoffee.com/">portTypeNS:Hello</wsdl-
    port-type>
    <wsdl-binding
    xmlns:bindingNS="http://ws.components.jcoffee.com/">bindingNS:HelloBinding</
    wsdl-binding>
    <service-endpoint-method-mapping>
    <java-method-name>hello</java-method-name>
    <wsdl-operation>hello</wsdl-operation>
    <method-param-parts-mapping>
    <param-position>0</param-position>
    <param-type>java.lang.String</param-type>
    <wsdl-message-mapping>
    <wsdl-message
    xmlns:wsdlMsgNS="http://ws.components.jcoffee.com/">wsdlMsgNS:Hello_hello</w
    sdl-message>
    <wsdl-message-part-name>String_1</wsdl-message-part-name>
    <parameter-mode>IN</parameter-mode>
    </wsdl-message-mapping>
    </method-param-parts-mapping>
    <wsdl-return-value-mapping>
    <method-return-value>java.lang.String</method-return-value>
    <wsdl-message
    xmlns:wsdlMsgNS="http://ws.components.jcoffee.com/">wsdlMsgNS:Hello_helloRes
    ponse</wsdl-message>
    <wsdl-message-part-name>result</wsdl-message-part-name>
    </wsdl-return-value-mapping>
    </service-endpoint-method-mapping>
    </service-endpoint-interface-mapping>
    </java-wsdl-mapping>
    HelloService.wsdl
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="HelloService"
    targetNamespace="http://ws.components.jcoffee.com/"
    xmlns:tns="http://ws.components.jcoffee.com/"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <types/>
    <message name="Hello_hello">
    <part name="String_1" type="xsd:string"/>
    </message>
    <message name="Hello_helloResponse">
    <part name="result" type="xsd:string"/>
    </message>
    <portType name="Hello">
    <operation name="hello" parameterOrder="String_1">
    <input message="tns:Hello_hello"/>
    <output message="tns:Hello_helloResponse"/>
    </operation>
    </portType>
    <binding name="HelloBinding" type="tns:Hello">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
    style="rpc"/>
    >
    >
    <operation name="hello">
    <soap:operation soapAction=""/>
    <input>
    <soap:body use="literal" namespace="http://ws.components.jcoffee.com/"/>
    </input>
    <output>
    <soap:body use="literal" namespace="http://ws.components.jcoffee.com/"/>
    </output>
    </operation>
    </binding>
    <service name="HelloService">
    <port name="HelloPort" binding="tns:HelloBinding">
    <soap:address location="REPLACE_WITH_ACTUAL_URL"/>
    </port>
    </service>
    </definitions>
    and last but not least the ejb-jar.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" version="2.1"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
    <display-name>JCoffee web service sample</display-name>
    <enterprise-beans>
    <session>
    <ejb-name>HelloBean</ejb-name>
    <service-endpoint>com.jcoffee.components.ws.Hello</service-endpoint>
    <ejb-class>com.jcoffee.components.ws.HelloBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    <assembly-descriptor>
    <method-permission>
    <unchecked/>
    <method>
    <ejb-name>HelloBean</ejb-name>
    <method-name>*</method-name>
    </method>
    </method-permission>
    <container-transaction>
    <method>
    <ejb-name>HelloBean</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>

  • A duplicate attribute key has been found when processing

    Hi
    When I process one of my dimensions it fails and I get the following error:
    Errors in the OLAP storage engine: A duplicate attribute key has been found when processing: Table: 'Customers', Column: 'DisplayName', Value: 'Stephen Grant'. The attribute is 'Display Name'.
    I don't know if this is significant, but the attribute to which it is making reference was added through BIDS 2008 (the cube was originally created with BIDS 2005). 
    There are no duplicates of 'Stephen Grant' in the DisplayName column. Not that it should matter if there were as this attribute has a cardinality of Many, with an rigid attribute relationship directly to the dimension's key attribute. The Key column for the Display Name attribute simply refers back to the same (DisplayName) column in the table.
    If I delete this record, or even just update the DisplayName field from 'Stephen Grant' to something else, the dimension processes just fine. I can't work out what it is about this record that is stopping the dimension from being able to process.
    Can anyone help me figure out what's going on?
    Julia.
    P.S. I am using SSAS 2008 on Windows Server 2008

    Hello there,
    Does anybody has the complete resolution for duplicate entries data. I am showing the data below .
    RegionName
    BranchName
    LoanOfficerFullName
    PRIME - TEAM NORTHEASTERN
    CALIFORNIA
    ALONA  HAYES
    PRIME - TEAM WESTERN
    RENO-DAMONTE RANCH
    VINCENT LOTITO
    PRIME - TEAM WARTON
    NEWARK (Chicago)
    CHRISTOPHER CLIFTON
    PRIME - TEAM WARTON
    GRAND HAVEN (West Michigan)
    SEAN  FOLEY
    PRIME - TEAM SALMANS
    LAWTON (Amarillo)
    THOMAS  STEARNS
    PRIME - TEAM BARTON
    CALIFORNIA
    ALONA  HAYES
    PRIME - TEAM ROBINSON
    LAS VEGAS
    ANGELA DEATON
    PRIME - TEAM ROBINSON
    LAS VEGAS
    HERMAN  VANDER VELDT
    PRIME - TEAM ROBINSON
    LAS VEGAS
    DAWN ROBINSON
    PRIME - TEAM ROBINSON
    LAS VEGAS
    MICHAEL  BIRK
     Here i have the Hierachies in order LoanOfficerFullName-->BranchName-->RegionName. Loan Officer is the lowest level. I had created another column and make that unique entries so that I could make the unique column as the Key and the hierachies i have linked with the key column value. The issue
    is that i am getting the expected result in OLAP  from data side. But the data is not getting aggregated like Team Barton is coming twice though for the Dimension I make IsAggregatable property to True. If anybody can help me I will aprecciate. If any other clarification need I can provide.

  • Error when build cube - A duplicate attribute key has been found when processing...

    Hi all,
    I got an error “Errors in the OLAP storage engine: A duplicate attribute key has been found when processing: Table…” when built new cube. It looks strange in my case. I created a small example to re-produce this error as below:
    I create a data source table as below
    AgencyName(varchar(50))-----MediaSpend(float)
    OE------------------------------------100
    Œ-------------------------------------200
    Then I create a cube base on this data source with a dimension AgencyName and 1 Measure MediaSpend.
    The error happened again. This look link a special case when ‘OE’ and ‘Œ’ existed in a dimension.
    Do you have any ideas on this?
    Thanks,

    Hi khoana,
    Here is a similar thread about this topic for your reference, please see:
    A duplicate attribute key has been found when processing:
    http://social.technet.microsoft.com/Forums/en-US/sqlanalysisservices/thread/7c72639b-a050-4243-9f1d-4da906e981d5/
    Regards,
    Elvis Long
    TechNet Community Support

  • Errors in the OLAP storage engine: A duplicate attribute key has been found when processing

    Hi dear MSDN Community,
    I am facing a problem while processing a cube with a customer hierarchy as follows:
    Global Account --> Main Customer --> Master Customer --> Customer
    The data comes from a flatted parent child table, that is, I create an extra column for every level of the hierarchy in the customer view. If a level is empty, then the value is filled with the previous value. Then I can use the property:
    HideMemberIf = OnlyChildWithParentName for the intermediate levels (Main and Master Customer)
    HideMemberIf = ParentName For the leafs (Customer)
    HideMemberIf = never for the root (Global Account)
    Consider this example:
    Then, for the root level I am using as the key the fields in yellow in order to avoid duplicates. However, I am getting the error message "Errors in the OLAP storage engine: A duplicate attribute key has been found when processing" while processing.
    I analyzed the query that SSAS issues to the server (select distinct ....) and I think it should work but it is still failing.
    I had similar problems with the intermediate levels but I was able to solve it using a similar procedure.
    Any help will be appreciated.
    Kind Regards.

    When are you having this error? While processing the dimension or during cube processing?
    http://blog.oraylis.de/2013/08/a-duplicate-attribute-key-has-been-found-during-processing-revisited/
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Error on boot: "STOP c0000135 unable to locate component csrsrv.dll not found reinstalling the application may fix the problem"

    I am running Windows Server 2003 R2 (I know it's old, I'm in the process of upgrading it now to 2012) on an old HP ProLiant server. It's worked for ages, but yesterday morning it booted up with the blue screen of death, saying:
    STOP c0000135 unable to locate component csrsrv.dll not found. Reinstalling the application may fix the problem.
    I have tried coping the file from C:\WINDOWS\ServicePackFiles\i386\csrsrv.dll to C:\WINDOWS\system32\ using a WS2003R2 recovery disk, but it still doesn't work. I'm not sure what to do now...
    I do have backups, but I'd prefer just to get this server back up and running so that I can continue to migration so that I can decommission it permanently and put it out to pasture...
    Any help and guidance is greatly appreciated.
    Thanks in advance!

    If copying the DLL does not help then I would recommend doing a system state restore from a backup.
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • HT1926 Trying to install iTunes for Windows Vista. Says "successfully installed," but when I try to open iTunes I get error messages, "unable to locate component, AVFoundationCF.dll not found," then "Error 7 (Windows error 126)

    Trying to install iTunes for Windows Vista. Says "successfully installed," but when I try to open iTunes, I get error messages, "unable to locate componant AVFoundationCF.dll not found," then "Error 7 Windows error 126." I have tryed to reinstall twice with the same result.

    Repair Apple Application Support.
    START/CONTROL PANEL/PROGRAMS N FEATURES/highlight APPLE APPLICATION SUPPORT, then click the REPAIR button

  • Duplicate form pane name 'AuctionEventInfo' found in /auction/univ/auctione

    Hi All,
    Please can you help me with below error.
    Message: Facility=local4;sessionid=zFboRvxT7xdROeuXcDH1LdKIz17KcTSGMgE-iA8C_SAP;tenantid=#tenant.wftdev#;username=wft_bpa003;Duplicate form pane name 'AuctionEventInfo' found in /auction/univ/auctionevent.xml
    Category: /Applications/E-Sourcing/eso
    Application: sap.com/E-Sourcing-Server
    Thread: Thread[HTTP Worker [@1339509681],5,Dedicated_Application_Thread]
    Regards
    Mahesh

    Hi Mahesh,
    If i am not worng it says that there is a duplicate file existing in the folder"/Applications/E-Sourcing/eso " please cross check and if you dont want the file please delete the existing file then you would be able to inser the new file successfully...
    Regards,
    Naveen

  • Nesting JSF components in a  custom component

    I'm creating a new JSF custom component. my component needs to include an input text and a list box. my question is : how do I add these components to my JSF component ? I want to use to JSF component to render them rather then encoding the HTML myself. how can I do it ?
    I was told I need to use encodeChildren method somehow but I don't know how ?

    I finally found how to set a default skin to a custom component so that users of my component will not have to set again the skinClass value of my component.
    You have to create a defaults.css file at the root of your library and tell the compiler to take it into account.
    The remaining problem is about the compiler. There are some steps before success and they are a bit mysterious/unclear....
    I found 2 or 3 blog articles explaining those steps but the compiler arguments to use are all differents in each article...
    Here are the links I found:
    http://www.unitedmindset.com/jonbcampos/2010/05/12/creating-custom-spark-components/
    http://www.betadesigns.co.uk/Blog/2010/05/14/default-skin-for-custom-flashbuilder-componen ts/
    http://flexdevtips.blogspot.com/2009/06/default-stylesheet-in-swc-flex-library.html
    Following the first article guidelines has been successful for me but I'm not marking this topic as Resolved because I'd like some answers about this whole thing...

  • JSF RI  1.1_01: UIInput component value was not set during render response

    I've just started to learn JSF, read corresponding chapters in J2EE guide and spec and tried to play little bit with JSF RI 1.1_01. I found very strange (at least for me) behaviour of regular input component (corresponds to inputText tag).
    I have very simple example form (contains "select one", input component and command button). Corresponding backing bean has request scope. I set breakpoints in backing bean getters and during debug found:
    1. On initial request both getters were called during rendering phase.
    2. On form submit request getter for property bound to input component was called again (this looks strange for me) but getter for property bound to select box was not called (it looks as I've expected). This strange call occurs during validation phase. As far as I understand it was the following flow:
    a) During initial request rendering response input box value wwas not stored in component state (I even may suggest that it was not set on component, just corresponding HTML tag with initial value was rendered).
    b) On submit form submitted string value of input component was decoded from request parameters but local value was set to null (see above).
    c) During validation phase submitted value was successfully converted and validated.
    d) Then implementation had to detect component value change and called getValue() in order to obtain old value.
    e) Implementation of getValue() first looked for local value field - it is null, then it should request for bound value from model.
    I tried different ways to store state (client or server) but it was the same. Sadly MyFaces 1.1.1 implementation did even worse - local value of select was also null during first postback.
    I wonder why it was implemented this way...
    Thank you

    I've just started to learn JSF, read corresponding chapters in J2EE guide and spec and tried to play little bit with JSF RI 1.1_01. I found very strange (at least for me) behaviour of regular input component (corresponds to inputText tag).
    I have very simple example form (contains "select one", input component and command button). Corresponding backing bean has request scope. I set breakpoints in backing bean getters and during debug found:
    1. On initial request both getters were called during rendering phase.
    2. On form submit request getter for property bound to input component was called again (this looks strange for me) but getter for property bound to select box was not called (it looks as I've expected). This strange call occurs during validation phase. As far as I understand it was the following flow:
    a) During initial request rendering response input box value wwas not stored in component state (I even may suggest that it was not set on component, just corresponding HTML tag with initial value was rendered).
    b) On submit form submitted string value of input component was decoded from request parameters but local value was set to null (see above).
    c) During validation phase submitted value was successfully converted and validated.
    d) Then implementation had to detect component value change and called getValue() in order to obtain old value.
    e) Implementation of getValue() first looked for local value field - it is null, then it should request for bound value from model.
    I tried different ways to store state (client or server) but it was the same. Sadly MyFaces 1.1.1 implementation did even worse - local value of select was also null during first postback.
    I wonder why it was implemented this way...
    Thank you

  • Duplicate component item in BOM

    Hello Guru,
    We having problem on the BOM, when we check via CS03 with a change number 111123, item 0050 and 0060 was duplicate. but when we check CS03 without entering the said change number those item was not duplicate. why this is happening when we tried to display the BOM with change number 111123 having duplicate item components? please help us why this happening. This cause when doing MRP the change number was creating duplicate demand as well.
    For added information as we have check the change number its valid from date was change to 23.12.9999 and it status was now 02 (inactive). And base on the BOM Change document the transaction which realted to the change number added to the BOM the user use tcode CS05. What does CS05 does also?
    Thanks

    Hi,
    for further details in the issue we sited this is what we are inputting in CS03:
    Material: 211
    Plant: 1230
    BOM Usage: 1 (Production BOM)
    Alt. BOM: 01
    Change Number: 111123
    The output was:
    0010 - L - 11100001 - 70 - KG - 11.01.9999 - 31.12.9999 - 111098
    0020 - L - 11100025 - 7.5 - KG - 23.11.2009 - 31.12.9999 - 111122
    0030 - L - 11100008 - 28 - KG - 23.11.2009  - 31.12.9999 - 111122
    0040 - N - 11100789 - 100 - G - 09.07.2009 - 31.12.9999 -
    0050 - L - 11100100 - 10 - KG - 23.12.9999 - 31.12.9999 - 111123
    0050 - L - 11100100 - 10 - KG - 23.12.9999 - 31.12.9999 - 111123
    0060 - L - 11100105 - 10 - KG - 23.12.9999 - 31.12.9999 - 111123
    0060 - L - 11100105 - 10 - KG - 23.12.9999 - 31.12.9999 - 111123
    while when we do CS03 by below input no issue was found:
    Material: 211
    Plant: 1230
    BOM Usage: 1 (Production BOM)
    Alt. BOM: 01
    Change Number:
    Valid from: 13.01.2010
    Valid to: 13.01.2010
    The output was:
    0010 - L - 11100001 - 70 - KG - 14.10.2009 - 31.12.9999 - 111098
    0020 - L - 11100025 - 7.5 - KG - 23.11.2009 - 31.12.9999 - 111122
    0030 - L - 11100008 - 28 - KG - 23.11.2009  - 31.12.9999 - 111122
    0040 - N - 11100789 - 100 - G - 09.07.2009 - 31.12.9999 -
    0050 - L - 11100100 - 10 - KG - 09.07.2009 - 23.12.9999 -
    0060 - L - 11100105 - 10 - KG - 09.07.2009 - 23.12.9999 -

  • JSF RE-Rendering a specific Component

    hey guys,
    need a bit of help here... I am doing a JSF Page.. where a person selects a vehicle type (vehicle he wants to book for... as in a chauffeurs service) the two options he can choose from are - limo and sedan.
    now as per the choice i need to populate a f:oneSelectMenu.... with available models. say if the person picks up a limo.. then the menu should only show limo models but not sedan's.
    for this i have already put up a listener on the f:selectOneRadio that offers the choice of two types of vehicles. as the person selects any type the listener populates a variable... and a backing bean that fetches the data from the database and populates the f:selectItems... that should go ii the f:selectOneMenu.
    everything till here is fine... even i an populate the f:selectItems in the backingbean. But as this is all in the same page.... i want my f:selectOneMenu to re-render so that it can pick those f:selectItems to show the desired data.
    I have struggled a lot searching on google.. but did not get any relevant solution for this prob.
    Could anyone please help me with this.. It would be great help....
    Regards

    Thanks for your reply sir...
    and yes i would like to do it async. what I want is as soon as the user choses a particular value using the :selectOneRadio, the values in the f:selectOneMenu should be populated accordingly.... both of these components are on the same page. and yes without hitting submit...
    Ok is there a way.. to refresh the whole page... using the valueChangeListener? or something equivalent? anything frm the bean?
    Regards

  • Clone / duplicate component

    hi to all,
    i'd need to create a base class that extends UIComponent,
    witch implements a function like clone.
    this function have to return another object like the first
    one
    does any one know a good way to start to work?
    thanks
    Teo

    Yes, that was my first thought and I created a new component but then I looked at collaboration and it's a very elaborated component, so for me to create a component from scratch that looks like collaboration 95% and behaves exactly like doesn't look like the way to go.
    What I'm looking for in this new component is basically change some labels around and some metadata which I can do if I were to change collaboration itself, but I want to be able to use both at the same time: collaboration and "customized collaboration"
    ... hmm another way would be to call the collaboration service but make it use a customized template? No, I guess I'll have to write the service too... then I'll be back to the beginning... rewriting it all... maybe I'm looking at this the wrong way?

Maybe you are looking for

  • Solaris 8 on Ultra 2 Enterprise installation problem...

    I've a Sun Ultra 2 Enterprise with dual 200 Mhz UltraSPARC I and I tried to install Solaris 8, I download the binaries from Sun site and I burnt the CDs. Insert them in the CDROM drive, I type "boot cdrom", the installation started and it started als

  • Streaming from Macbook to TV

    Hi there, Is there a way to stream media from my Macbook to my TV without using a game box? And I mean not only downloaded files but if I go on a site like Hulu and want to stream the feed of a TV show in real time to my TV? Thx!

  • Error while uploading the error

    Hi All, We made customization to a standar workflow POQWFRQAG, but When trying to upload the workflow we are getting the following Error 'POWFRQAG' cannot be accessed while synchronous process in progress. Does any onw know about this, Pls help. Than

  • Wired vs. Wireless network visability to shared music on a NAS

    I have upgraded to 10.2.1.1 iTunes, I am running a wired network in my home that also has a WAP connected for my wireless devices.  The issue is, when connected to the wireless I can see my shared music that resides on my NAS in iTunes.  If I connect

  • How to convert fcp file?

    Hey I have a Final Cut Pro file (blahblah.fcp). When I click on more info it says the kind is a Unix Executable File. This file is a few years back so can't remember what I did to save it and dont have final cut pro anymore but is there anyway I can