JSF Wizard with Weld

Hi All,
Wanna show my imaginary design of wizard using Wizard and JSF... but it seems not works some where. firstly let us the classes I have...
2 inferfaces and 1 abstract class
package wziard;
public interface IWizard {
     // The return string for the JSF path
     public String next();
     public String back();
     public String abort();
     public boolean hasNext();
     public boolean hasBack();
package wziard;
public interface WizardStep {
     //do the business and return JSF path
     String onNext();
     String onBack();
}One wizard contains couple of wizardStep
package wziard;
import java.util.List;
public abstract class WizardBean {
     public String next() {
          String next = getCurrentStep().onNext();
          setCurrentStep(ListUtils.getNext(getWizSteps(), getCurrentStep()));
          return next;
     public String back() {
          String back = getCurrentStep().onBack();
          setCurrentStep(ListUtils.getBack(getWizSteps(), getCurrentStep()));
          return back;
     public boolean hasNext() {
          return !ListUtils.isLast(getWizSteps(), getCurrentStep());
     public boolean hasBack() {
          return !ListUtils.isFirst(getWizSteps(), getCurrentStep());
     public abstract WizardStep getCurrentStep();
     public abstract void setCurrentStep(WizardStep curStep);
     public abstract List<WizardStep> getWizSteps();
     public abstract String abort();
}Abstract wizardbean is to implement the wizard's constitutional features.
Then the wizard implements
package wziard;
import java.util.List;
@Stateful
@ConversationScope
@Named
public class RegisterWizard extends WizardBean implements IWizard {
     @RegisterWizard // qualifier for wizards producers
     @Inject
     private List<WizardStep> wizardSteps;
     private WizardStep currentStep;
     private Conversation conversation;
     @Override
     public String abort() {
          // TODO Go the JSF and end session
          conversation.end();
          return null;
     @Override
     public WizardStep getCurrentStep() {
          // TODO Auto-generated method stub
          return currentStep;
     @Override
     public List<WizardStep> getWizSteps() {
          // TODO Auto-generated method stub
          return wizardSteps;
     @Override
     public void setCurrentStep(WizardStep curStep) {
          this.currentStep = curStep;
}The steps implementations:
package wziard.step;
import wziard.WizardStep;
import wziard.model.Account;
public class AccountInfoStep implements WizardStep {
     @Named("newAccount");
     @ConversationScope
     private Account account;
     public Account getAccount() {
          return account;
     public void setAccount(Account account) {
          this.account = account;
     @Override
     public String onBack() {
          // TODO Auto-generated method stub
          return null;
     @Override
     public String onNext() {
          // TODO Auto-generated method stub
          return null;
package wziard.step;
import wziard.WizardStep;
import wziard.model.Person;
public class PersonInfoStep implements WizardStep {
     @Named("newPerson");
     @ConversationScope
     private Person person;
     public Person getPerson() {
          return person;
     public void setPerson(Person person) {
          this.person = person;
     @Override
     public String onBack() {
          // TODO Auto-generated method stub
          return null;
     @Override
     public String onNext() {
          // TODO Auto-generated method stub
          return null;
package wziard.step;
import wziard.model.Contact;
public class ContactInfoStep implements WizardStep {
     @Named("newContact");
     @ConversationScope
     private Contact contact;
     public Contact getContact() {
          return contact;
     public void setContact(Contact contact) {
          this.contact = contact;
     @Override
     public String onBack() {
          // TODO do the business and return JSF path
          return null;
     @Override
     public String onNext() {
          // do the business and return JSF path
          return null;
}other classes:
package wziard.utils;
import java.util.List;
public class ListUtils {
     public static <T> T getNext(List<T> list, T obj) {
          // TODO Auto-generated method stub
          return null;
     public static <T> T getBack(List<T> list, T obj) {
          // TODO Auto-generated method stub
          return null;
     public static <T> boolean isLast(List<T> list, T obj) {
          // TODO Auto-generated method stub
          return false;
     public static <T> boolean isFirst(List<T> list, T obj) {
          // TODO Auto-generated method stub
          return false;
package wziard;
import java.util.ArrayList;
import java.util.List;
import wziard.step.AccountInfoStep;
import wziard.step.PersonInfoStep;
public class WizardProducer {
     @RegisterWizard
     @Produces
     private List<WizardStep> wizardSteps(@New AccountInfoStep s1,
               @New PersonInfoStep s2, @New ContactInfoStep s3) {
          List<WizardStep> steps = new ArrayList<WizardStep>();
          steps.add(s1);
          steps.add(s2);
          steps.add(s3);
          return steps;
}after all these in the JSF page
<h:inputtext name="username" value="#{newAccount.userName}">
<h:inputtext name="password" value="#{newAccount.password}">These ideas should be very straightforward, while the newAccount, newPerson, and newContact, which @Named in the WizardStep seems not hook up with JSF component, these value were not populated at all....
Can anyone kindly advise? thanks.

Hello,
I faced the same problem, but on a Weblogic 10 server.
The problem with Weblogic 10 is, even if it's "supposed" to be a EE5 compliant server, it is not.
As described here http://e-docs.bea.com/wls/docs100/webapp/annotateservlet.html , there is no Dependency Injection in JSF managed beans:
The web container will not process annotations on classes like Java Beans and other helper classes.
But, WL 10 offers DI on Servlets, Filters and Listeners.
Here is how I solved it (probably not the best way, but it works for me):
- created a filter with a list of EJB injected (as it works). For every filtered request, set a list of known (enum) as request attributes mapped each to a EJB service:
public class EJBInjectFilter implements Filter {
@EJB
private MyEJBService ejbRef;
public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws IOException,
               ServletException {
log.debug("Setting EJB ref into request as attribute ");
          req.setAttribute(ServiceEnum.MY_EJB_SERVICE.toString(), ejbRef);
          chain.doFilter(req, resp);     
- for every managed bean who needs a service you can do something like:
(MyEJBService) ((HttpServletRequest) FacesContext.getCurrentInstance().
               getExternalContext().getRequest()).getAttribute(ServiceEnum.MY_EJB_SERVICE.toString())
to get a reference to service.
I agree it is a totally not elegant solution. But why does WL 10 say it's a full JEE5 compliant server, and though does not provide DI for managed beans?
A drawbacks I could think of is performance slow-down (for every request, apply filter, set list of attributes + references into request) - probably it does take some time.
Let me know your thoughts.
Edited by: cosminj on Nov 20, 2007 8:16 AM

Similar Messages

  • Returning from a JSF flow with faces-redirect

    I'm using Glassfish 4.1 with JSF 2.2.9. I can't figure out how to return from a JSF flow with a redirect. I've tried this in the flow definition xml:
    <flow-return id="returnFromFlow">
        <from-outcome>/index.xhtml?faces-redirect=true</from-outcome>
    </flow-return>
    This does the redirect but results in navigation errors on the page, specifically the button that enters the flow again: "Unable to find matching navigation case from view ID '/index.xhtml' for outcome 'select-person'" (the flow is called select-person).
    I've also tried appending faces-redirect=true to the action of the commandButton that exits the flow. Now the flow does not exit, it reloads the current page within the flow and says "Unable to find matching navigation case with from-view-id '/select-person/select-person.xhtml' for action 'returnFromFlow?faces-redirect=true' with outcome 'returnFromFlow?faces-redirect=true'"
    Exiting the flow with h:link works, but I want to be able to call an action and submit form values with the button so that isn't a good workaround for me.
    What's kind of interesting is that navigating between views within the flow DOES work with faces-redirect=true. I can add a "step2" node, and a commandButton with action="step2?faces-redirect=true", and it works. It's just exiting the flow that does not work.
    Any ideas?

    Hi Frank,
    Thanks so much for your response.
    Yes, since the user can do a commit prior to exiting my edit task flow, option 1 will not work for me.
    Option 2 sounded feasible, but jdeveloper would not let me set the restore point to true, since my btf didn't require a transaction. Is there a step I'm missing here??
    The thing that is really getting me when return via the cancel button from this edit task flow, back to my parent task flow, the record pointer is always moving back to the beginning of the data set in my parent task flow. For example,if I have a data set
    rec1, rec2, rec3..
    On my parent taskflow call it browser task flow, I navigate (via the next button) to rec3, and I click edit. At this point, my edit task flow kicks off, and since both task flows share the same data control, the edit task flow rec pointer is the same as the browse one.
    Okay I decide I don't want to change anything in my rec3, so I click cancel.
    At this point, when I return back to the navigator task flow, it points me back to rec1 ..
    HOwever, the savepoint seems to fix this. When I set my cancel return from edit taskflow to savePoint = true, the rec pointer stays in the correct spot. However, I cannot always do this, because the user can make iterative saves in the edit task flow which (based on your previous email) stales out the savepoint id.
    Question, so in this case, how can I make the parent browser task flow call stay on the same record I was just editing, opposed to going back to the beginning of the data set(ie. rec1)??

  • JSF combined with EJB, how??

    Hi @ll,
    I have been trying for some days to combine my JSF pages with EJB Session Beans, but I haven't really found a working way to do it.
    First, I had my session bean directly as the backing bean for the JSF page, but I read somewhere that this isn't "allowed", so I created a helper bean as managed bean. This is now the backing bean for the jsf page and has as attribute the session bean.
    My helper bean:
    public class ManagedHelperBean {
    @EJB private JDDACReaderBeanRemote reader;
    public JDDACReaderBeanRemote getReader() {
         return reader;
    public void setReader(JDDACReaderBeanRemote reader) {
         this.reader = reader;
    }Part of my faces-config.xml
    <managed-bean>
    <managed-bean-name>helper</managed-bean-name>
    <managed-bean-class>com.company.ManagedHelperBean</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>Part of my jsp page:
    <h:outputText value="#{helper}"/>
    <h:outputText value="#{helper.reader}"/>Now, the first output in the jsp page works, the second one doesn't. Why can't the property reader be accessed?? What is the correct way to combine JSF with EJB?
    Kind regards,
    Wiebke

    Hello,
    I faced the same problem, but on a Weblogic 10 server.
    The problem with Weblogic 10 is, even if it's "supposed" to be a EE5 compliant server, it is not.
    As described here http://e-docs.bea.com/wls/docs100/webapp/annotateservlet.html , there is no Dependency Injection in JSF managed beans:
    The web container will not process annotations on classes like Java Beans and other helper classes.
    But, WL 10 offers DI on Servlets, Filters and Listeners.
    Here is how I solved it (probably not the best way, but it works for me):
    - created a filter with a list of EJB injected (as it works). For every filtered request, set a list of known (enum) as request attributes mapped each to a EJB service:
    public class EJBInjectFilter implements Filter {
    @EJB
    private MyEJBService ejbRef;
    public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws IOException,
                   ServletException {
    log.debug("Setting EJB ref into request as attribute ");
              req.setAttribute(ServiceEnum.MY_EJB_SERVICE.toString(), ejbRef);
              chain.doFilter(req, resp);     
    - for every managed bean who needs a service you can do something like:
    (MyEJBService) ((HttpServletRequest) FacesContext.getCurrentInstance().
                   getExternalContext().getRequest()).getAttribute(ServiceEnum.MY_EJB_SERVICE.toString())
    to get a reference to service.
    I agree it is a totally not elegant solution. But why does WL 10 say it's a full JEE5 compliant server, and though does not provide DI for managed beans?
    A drawbacks I could think of is performance slow-down (for every request, apply filter, set list of attributes + references into request) - probably it does take some time.
    Let me know your thoughts.
    Edited by: cosminj on Nov 20, 2007 8:16 AM

  • Announcing: Developing JSF Portlets with WebLogic Portal Whitepaper

    Just Released: Developing JSF Portlets with WebLogic Portal Whitepaper
    A supplemental developer's guide has been published to help guide WLP 10.x customers that wish to use JSF as the web framework for building portlets on WebLogic Portal. This is a sizable document (150 pages) that covers a large number of topics. It also coaches developers on best practices and common pitfalls.
    Important: It also clarifies the supported configuration of JSF within Portal Web Projects. Workshop for WebLogic by default configures a web project in a configuration that is not supported by WebLogic Portal. The guide explains how to address this:
    * Change from the unsupported MyFaces JSF implementation to the supported Sun Reference Implementation (RI)
    * Change from the unsupported "client" STATE_SAVING_METHOD to the supported "server"
    The guide can be downloaded here:
    http://download.oracle.com/technology/products/weblogic/portal/weblogic-portal-jsf-whitepaper.pdf
    To help internet searches locate this document, the table of contents is reproduced below:
    Introduction
    1.1. Prerequisites...................................................................... 8
    1.2. Applicable Versions............................................................ 8
    1.3. Native Portlet Bridges and Standard Portlet Bridges .......... 8
    1.4. JSF Portlet Support Roadmap ........................................... 9
    1.5. Whitepaper Structure ....................................................... 10
    1.6. Look Before You Leap ..................................................... 10
    1.7. For More Information........................................................ 10
    Part 1: Converting JSF Applications into Portlets
    2. IDE Support for JSF Portlets Chapter ...................................... 12
    2.1. Workshop for WebLogic – WebLogic Portal's Supported IDE 12
    2.2. Workshop Features for JSF Support in WebLogic Portal.. 12
    3. Introduction to JSF Portlets Chapter ........................................ 18
    3.1. Creating Your First JSF Portlet......................................... 18
    3.2. Essentials of JSF Portlet Views........................................ 21
    3.3. WebLogic Portal Artifacts................................................. 22
    4. Configuring JSF within WebLogic Portal Chapter..................... 24
    4.1. JSF Library Modules in WebLogic Server ........................ 24
    4.2. Installing the JSF Libraries into a Portal Web Project ....... 25
    4.3. JSF Configuration Settings............................................... 27
    4.4. Configuring JSF 1.2 ......................................................... 29
    4.5. Building an Unsupported JSF Implementation Library Module 31
    4.6. Faces Configuration is Web Application Scoped.............. 31
    5. Navigation within a JSF Portlet Chapter................................... 33
    5.1. Navigating within a Portlet with the JSF Controller ........... 33
    5.2. Redirects.......................................................................... 34
    6. Namespacing Chapter ............................................................. 35
    6.1. Namespacing Managed Bean Names.............................. 35
    6.2. Client ID Namespacing with the View and Subview Components 35
    6.3. Client ID Namespacing with the WLP NamingContainer .. 36
    7. Logging, Iterative Development, and Debugging Chapter ........ 39
    7.1. Logging............................................................................ 39
    7.2. Iterative Development ...................................................... 39
    7.3. Debugging ....................................................................... 40
    8. Custom JavaScript Chapter ..................................................... 42
    8.1. DOM Manipulation within a JSF ....................................... 42
    8.2. Form Validation within a JSF Portlet ................................ 45
    9. Preparing JSF Portlets for Production Chapter ........................ 46
    9.1. Configuration.................................................................... 46
    9.2. Performance and Scalability............................................. 47
    9.3. Security............................................................................ 49
    9.4. Localization...................................................................... 50
    Part 2: Interacting with the Portal Environment
    10. Native Bridge Architecture Chapter ...................................... 54
    10.1. Container Architecture Overview.................................. 54
    10.2. Container Architecture.................................................. 54
    10.3. Container Interactions .................................................. 55
    11. Interportlet Communication Chapter .................................... 56
    11.1. Using Session and Request Attributes for IPC (Anti-pattern) 56
    11.2. Using the WLP Event Facility for IPC with JSF Portlets 56
    11.3. Notifications ................................................................. 60
    11.4. Comparison of the IPC Approaches ............................. 60
    12. Scopes Chapter ................................................................... 62
    12.1. Conceptual Scopes for Standard JSF Applications ...... 62
    12.2. Conceptual Scopes for Portal Applications................... 63
    12.3. Implementation Patterns for Portal Scopes .................. 63
    13. State Sharing Patterns Chapter ........................................... 66
    13.1. State Sharing Concepts ............................................... 66
    13.2. HttpSession Versus HttpServletRequest ...................... 66
    13.3. Base Code for HttpSession Patterns ............................ 67
    13.4. Single Portlet Pattern ................................................... 68
    13.5. Multiple Portlet Patterns ............................................... 69
    14. Rendering Lifecycles Chapter .............................................. 77
    14.1. WLP and JSF Lifecycles .............................................. 77
    14.2. Invocation Order of WLP and JSF Lifecycle Methods... 77
    14.3. Accessing WLP Context Objects from JSF Managed Beans 78
    15. Portal Navigation Chapter .................................................... 80
    15.1. Programmatically Constructing JSF Portlet URLs ........ 80
    15.2. Changing the Active Portal Page.................................. 80
    15.3. Redirects within a Portal............................................... 83
    16. Ajax Enablement Chapter .................................................... 85
    16.1. Ajax in JSF Portlets...................................................... 85
    16.2. Partial Page Rendering Pattern.................................... 85
    16.3. Stateless API Request Pattern ..................................... 86
    16.4. Portlet Aware API Request Pattern .............................. 87
    16.5. Controlling the WLP Ajax Framework........................... 91
    17. Additional WLP Features Chapter........................................ 93
    17.2. Portlet Container Features ........................................... 93
    17.3. Portal Container Features ............................................ 98
    18. Example: Implementing a Login Portlet Chapter .................. 99
    18.1. Login Portlet Motivation................................................ 99
    18.2. Login Portlet Design..................................................... 99
    18.3. Login Portlet Implementation...................................... 101
    Part 3: Integrating Third Party Libraries
    19. Integration Overview Chapter............................................. 111
    19.1. Types of Libraries....................................................... 111
    19.2. Roadmap for MyFaces Trinidad and ADF Faces Rich Client 111
    20. Using the Facelets View Technology Chapter.................... 113
    20.1. Introduction to Facelets .............................................. 113
    20.2. Configuring Facelets Support ..................................... 113
    21. Using the Apache MyFaces Tomahawk Component Library Chapter 115
    21.1. What is Apache MyFaces Tomahawk? ...................... 115
    21.2. Support for Tomahawk in WLP................................... 115
    21.3. Tomahawk Component List........................................ 116
    21.4. Installing and Configuring Tomahawk......................... 119
    21.5. Resolving the Duplicate ID Issue................................ 120
    21.6. Referring to Resources .............................................. 120
    21.7. forceId Attribute.......................................................... 124
    21.8. File Upload................................................................. 125
    22. Using the Apache Beehive Navigation Controller Chapter . 126
    22.1. Apache Beehive Page Flow ....................................... 126
    22.2. JSF and Page Flows .................................................. 126
    22.3. Configuring the JSF Integration with Page Flows ....... 127
    Appendices
    23. Appendix 1: Consolidated List of Best Practices ................ 130
    24. Appendix 2: Known Issues and Workarounds.................... 132
    24.1. CR383659, CR383662 Inconsistent failures with JSF portlets 132
    24.2. CR342124: IllegalStateException due to duplicate client-id 132
    24.3. CR384916: IllegalStateException due to duplicate client-id when using certain components such as Tomahawk and Trinidad...... 133
    24.4. CR361477 Problems with the integration of JSF portlets with Apache Beehive Page Flows.................................................................. 133
    24.5. CR377945 JSF 1.2 suffers from a memory leak during iterative development .............................................................................. 134
    25. Appendix 3: The JSFPortletHelper Class ........................... 135
    26. Appendix 4: The CleanupPhaseListener Class .................. 147

    Hi Peter!
    First, I wish to thank you for the great work.
    We followed your whitepaper and managed to deploy a JSF portlet on WLS.
    But we are not able to register it (consume it) as remote portlet in Oracle Portal 10.1.4. The error log is as follows:
    An error occurred while trying to refresh the provider. (WWC-43190)
    An error occurred during the call to the WSRP Provider:
    java.rmi.RemoteException: serialization error: serialization error:
    unexpected null value for literal data; nested exception is:
    serialization error: serialization error: unexpected null value for literal data
    com.sun.xml.rpc.encoding.SerializationException: serialization error:
    serialization error: unexpected null value for literal data
    com.sun.xml.rpc.encoding.SerializationException: serialization error:
    unexpected null value for literal data
    Java stack trace from root exception:
    unexpected null value for literal data
    at
    oracle.webdb.wsrp.RegistrationContext_LiteralSerializer.doSerialize(RegistrationContext_LiteralSerializer.java:107)
    at
    com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase.internalSerialize(LiteralObjectSerializerBase.java:119)
    at
    com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase.serialize(LiteralObjectSerializerBase.java:70)
    at
    oracle.webdb.wsrp.GetServiceDescription_LiteralSerializer.doSerialize(GetServiceDescription_LiteralSerializer.java:88)
    at
    com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase.internalSerialize(LiteralObjectSerializerBase.java:119)
    at
    com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase.serialize(LiteralObjectSerializerBase.java:70)
    at
    com.sun.xml.rpc.client.StreamingSender._writeRequest(StreamingSender.java:473)
    at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:62)
    at
    oracle.webdb.wsrp.WSRP_v1_ServiceDescription_PortType_Stub.getServiceDescription(WSRP_v1_ServiceDescription_PortType_Stub.java:63)
    at
    oracle.webdb.wsrp.client.design.v1.OraWSRP_v1_ServiceDescription_PortType.getServiceDescription(Unknown
    Source)Do you have any idea why this happens? Or you can provide some useful links to WLP -Oracle Portal federation?
    Thank you and best regards,
    PaKo

  • JSF tree with radiobuttons support

    Hi everybody,
    I need to create JSF tree with possibility to select both nodes and leaves with radio button.
    The only idea I have now is to create my own component, which will generate [BlueShoes JavaScript tree|http://www.blueshoes.org/_bsJavascript/components/tree/examples/example8.html]
    Perhaps anyone has better idea? Maybe anyone has already met JSF trees with radiob uttons support?
    Thanks beforehand

    unfortunately, the browser usually uses right click to bring up a browser's menu for copy/paste, etc. I don't think javascript can intercept that though I could be wrong.

  • JSF compatibility with Weblogic8.1

    Hi,
    I've a question regarding JSF compatibility with Weblogic 8.1.
    I'm developing web application using JSF and Rich Faces.I'm using rich faces 3.2 and JSF 1.2. And i'm calling services which is written using JDK1.4 and deployed on weblogic8 .
    So I'm worried whether I can deploy my JSF web application on Weblogic 8.1 or not ? I don't know which version of Servlet API JSF uses,I believe if it uses 2.3 then
    it might be compatible with Weblogic8.1
    Please let me know any info about this ?
    Thanks,
    Anand

    So can I use Servlet 2.3 with JSF 1.2 at Facelets. Will it work ?
    As I've google some of the sites and it seems Weblogic 8.1 supports JEE 1.3 technologies and JEE1.3 is fully compliant with the Servlet 2.3 specification only.
    So I'm not sure if my application which has presentation layer developed using JSF/facelet could be deployed on weblogic 8.1 or not?

  • JSF Portlet with RichFaces implementation

    I am trying to build a JSF 1.1 portlet with RichFaces implementation.
    Although, the portlet gets displayed with out any errors. I do not see the RichFaces capabilities getting executed such as "A4J:support" tag is not doing an Ajax based form validation.
    Any help on this? Are there any completed PoCs on RF compatibility with JSF portlets.
    Thanks
    Rajesh

    Hello,
    Have you resolved your issue ? I am also trying to run a RichFaces-based webapp on an Oracle portal (WCI) and I have some troubles.
    If you have time to look at my problem, I created a post here Oracle JSF Bridge with JBoss Richfaces .
    Thanks
    K.L.

  • JSF errors with - 10g Early Access 10.1.3.0.3

    I am trying to create some JSF apps with JDeveloper and running into some issues. I've tried the tutorials and a couple simple projects. However, I am getting errors when trying to run it. The following is an example of the errors I am getting. Anybody have any insight into this? Any pointers would be appreciated.
    The info from the "about version" is:
    ADF Business Components     10.1.3.34.12
    Java™ Platform     1.4.2_07
    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
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    **** Unable to obtain password from principals.xml. Using default.
    C:\JDeveloper\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\config>
    C:\j2sdk1.4.2_07\bin\javaw.exe -ojvm -classpath C:\JDeveloper\j2ee\home\oc4j.jar;C:\JDeveloper\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config C:\JDeveloper\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    05/10/27 11:06:33 oracle.classloader.util.AnnotatedClassFormatError: MBeanServerEjbHome_StatefulSessionHomeWrapper1
         Invalid class: MBeanServerEjbHome_StatefulSessionHomeWrapper1
         Loader: system.root:0.0.0
         Code-Source: /C:/JDeveloper/jdev/system/oracle.j2ee.10.1.3.34.12/embedded-oc4j/application-deployments/admin_ejb/deployment-cache.jar
         Configuration: <ejb> in wrappers
         Dependent class: com.evermind.server.ejb.deployment.SessionBeanDescriptor
         Loader: oc4j:10.1.3
         Code-Source: /C:/JDeveloper/j2ee/home/lib/oc4j-internal.jar
         Configuration: <code-source> in boot.xml in C:\JDeveloper\j2ee\home\oc4j.jar
    05/10/27 11:06:33      at oracle.classloader.PolicyClassLoader.findLocalClass (PolicyClassLoader.java) [C:/JDeveloper/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@4]
         at oracle.classloader.SearchPolicy$FindLocal.getClass (SearchPolicy.java:165) [C:/JDeveloper/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@4]
         at oracle.classloader.SearchSequence.getClass (SearchSequence.java:92) [C:/JDeveloper/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@4]
         at oracle.classloader.PolicyClassLoader.internalLoadClass (PolicyClassLoader.java:1676) [C:/JDeveloper/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@4]
         at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1633) [C:/JDeveloper/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@4]
         at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1618) [C:/JDeveloper/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@4]
         at java.lang.ClassLoader.loadClassInternal (ClassLoader.java:302) [jre bootstrap, by jre.bootstrap]
         at java.lang.Class.forName0 (Native method) [unknown, by unknown]
         at java.lang.Class.forName (Class.java:219) [jre bootstrap, by jre.bootstrap]
         at com.evermind.server.ejb.deployment.SessionBeanDescriptor.createHomeInstance (SessionBeanDescriptor.java:407) [C:/JDeveloper/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\JDeveloper\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.ejb.EJBPackageDeployment.getHomeInstanceCore (EJBPackageDeployment.java:1048) [C:/JDeveloper/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\JDeveloper\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.ejb.EJBPackageDeployment.getHomeInstance (EJBPackageDeployment.java:1101) [C:/JDeveloper/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\JDeveloper\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.ejb.EJBPackageDeployment.bindRemoteHome (EJBPackageDeployment.java:500) [C:/JDeveloper/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\JDeveloper\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.ejb.EJBPackageDeployment.bindHomes (EJBPackageDeployment.java:401) [C:/JDeveloper/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\JDeveloper\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.ejb.EJBContainer.postInit (EJBContainer.java:1015) [C:/JDeveloper/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\JDeveloper\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.ApplicationStateRunning.initializeApplication (ApplicationStateRunning.java:206) [C:/JDeveloper/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\JDeveloper\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.Application.setConfig (Application.java:392) [C:/JDeveloper/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\JDeveloper\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.Application.setConfig (Application.java:310) [C:/JDeveloper/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\JDeveloper\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.ApplicationServer.initializeSystemApplication (ApplicationServer.java:1418) [C:/JDeveloper/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\JDeveloper\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.ApplicationServer.initializeAutoDeployedApplications (ApplicationServer.java:1401) [C:/JDeveloper/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\JDeveloper\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.ApplicationServer.setConfig (ApplicationServer.java:896) [C:/JDeveloper/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\JDeveloper\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.ApplicationServerLauncher.run (ApplicationServerLauncher.java:98) [C:/JDeveloper/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\JDeveloper\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at java.lang.Thread.run (Thread.java:534) [jre bootstrap, by jre.bootstrap]

    Thnak you but
    Drag the findAllLocations() - Locations data control to the start facet and Select Trees - ADF Tree in the pop-up menu. will appear but the next step will not execute
    please help me

  • Custom JSF component with custom value datatype

    I've created a simple custom JSF component with a decode, encodeBegin as follows:
    public void decode(FacesContext context) {
        Map<String, String> requestParameters = context.getExternalContext().getRequestParameterMap();
        String clientId = getClientId(context);
        String value = requestParameters.get(clientId);
        setSubmittedValue(value);
        super.decode(context);
    public void encodeBegin(FacesContext context) throws IOException {
        ResponseWriter response = context.getResponseWriter();
        String clientId = getClientId(context);
        response.startElement("input", this);
        response.writeAttribute("name", clientId, "id");
        response.writeAttribute("type", "text", null);
        String value = (String) getValue();
        if (null != value) {
             response.writeAttribute("value", value, "value");
        response.endElement("input");
    }With also:
    setRendererType(null);as part of the constructor.
    This component works just fine both inside and outside of a dataTable component, as expected.
    What I would like to do now is to replace the String value datatype with a custom class, for example MyDataType. For this I do:
    public void decode(FacesContext context) {
        Map<String, String> requestParameters = context.getExternalContext().getRequestParameterMap();
        String clientId = getClientId(context);
        String value = requestParameters.get(clientId);
        MyDataType myData = (MyDataType) getValue();
        MyDataType newData = (MyDataType) myData.clone();
        newData.setValue(value);
        // copy old object and only update the changed field of this object
        setSubmittedValue(newData);
        super.decode(context);
    public void encodeBegin(FacesContext context) throws IOException {
        ResponseWriter response = context.getResponseWriter();
        String clientId = getClientId(context);
        response.startElement("input", this);
        response.writeAttribute("name", clientId, "id");
        response.writeAttribute("type", "text", null);
        MyDataType value = (MyDataType) getValue();
        if (null != value) {
             response.writeAttribute("value", value.getValue(), "value");
        response.endElement("input");
    }Now this works perfect outside of a dataTable component, but inside it fails to update the property on the BB.
    Are there somewhere examples on how to properly use custom datatypes as values for UIInput components? Also how to only partially update the value (like I do, I only want to update the value field of the MyDataType object)

    Even if I encode the entire MyDataType via hidden input elements and decode it again (i.e. not using a cloned getValue) it's still not working side a dataTable.
    Could it have to do something with me using Facelets?

  • Problem connecting JSF page with SQL server 2005 DB

    hello guys,
    i have tried working with the visual web JSF in NET BEANS 6.1 IDE.
    i get an error connecting the jsf page witht he sql server 2005 db.
    i get an odbc:jdbc error.
    can anyone gimme the exact correct coding to connect a a jsf page with the sql server 2005 db.
    expecting a reply soon...
    thanks a lot....
    sandeep

    You need to elaborate a bit more about the problem.
    Read this to get more chance on suitable help: [http://www.catb.org/~esr/faqs/smart-questions.html].

  • Is there a way to use the Maintenance Wizard with a .profile file...

    Good afternoon all...
    In my environment we have the same applmgr account for multiple databases. The .profile delivers a menu that allows the user to pick which database they wish to work with, and then a script runs which changes the environment specific variables for the desired database.
    In many environments I have worked in the .profile is used to setup environmental variables for the applmgr account.
    In looking at the instructions for setting up Maintenance Wizard it says to ensure ssh or rsh access to each of the applications servers using the applmgr account, and removing any .profile or .login scripts. This is not viable in my environment.
    In asking on metalink I was told 1) just ignore the ssh setup stuff; and 2)the ssh setup is essential for maintenance wizard to work. Clearly conflicting advice.
    How can I install/implement maintenance wizard without the loss of my current .profile configuration?
    Please advise,
    Adam

    Oracle support's assessment was that that there is no way around the requirement to use ssh/remsh, I did a bit of further research into the issue. I developed a resolution for hpux as follows...
    I used ssh rather than remsh for my shell and created a conditional statement in my .profile to handle the issue...
    # Set environment script if not secure shell -- 100311 MAC
    if [ -n "$SSH_CLIENT" ]
    then
    #Set up the shell environment
    set -u
    trap "echo 'logout'" 0
    umask 012
    else
    #Set up the shell environment
    set -u
    trap "echo 'logout'" 0
    umask 012
    # Set up Oracle environment
    . /usr/local/bin/envch
    fi
    The conditional uses -n for not null, or in other words it is True if the variable is defined but false if it is not.
    The variable $SSH_CLIENT is defined when logging in through ssh, but undefined when using another terminal method.
    If it is an ssh shell I still setup other environment variables, but I have to move the "set -u" line to a result of the conditional as placing it before the conditional will make the -n test condition invalid. (It will cause references to an undefined variable to return an error rather than null). If it is not an ssh shell I again setup the variables but also call the interactive component of the login as it's own script.
    I have tested this successfully and will now move on with the rest of the maintenance wizard installation.
    Thank you,
    Adam

  • How to populate a jsf table with an array?

    I have a JSF project where I'm using a table and I would like to populate that table with some custom information without using a database. I'm trying to write my own data provider. I was wondering if anyone knows how to populate a jsf table using an array. Any help would be appreciated. Thanks.

    Hey thanks for replying. I'm not quite sure what you mean, but I am using a woodstock table in Netbeans. I would love to skip writing the data provider since I've never done that before, but I'm not sure how I would go about populating the table with a regular List or Model. I have populated a JTable with my own model, but never a woodstock table. They don't seem to work the same way. Thanks for the help. I've spent hours trying to figure this out.

  • Locale in JSF pages with a permanent link

    Hi there,
    I am migrating an application from Struts2 to JSF. In struts2 I had mapped most of the actions so that the same action returned different locale content depending on the URL:
    http://site.com/en/content.action
    http://site.com/es/content.action
    The action returned the same JSP which showed spanish or english depending on the URL.
    Is there any approach for doing this with JSF? If not, which is the recommended approach for making the same JSF (xhtml) show different locale content depending on a request parameter (?locale=en for example)
    I have solved it using a changeLocale method in a managed bean, which works OK and changes locale, but as it uses Post, the pages are not SEO as cannot be crawled (the URL doesn't even change)
    Thanks for any ideas/approach.
    Ignacio

    You can set the locale of the JSF UIViewRoot within a PhaseListener to cause JSF to use the desired locale.
    Another, more comprehensive approach is to use a servlet filter to set the locales returned by ServletRequest. This is the source for the locale JSF uses if not overridden. If you configure the filter to cover your entire application you have the bonus of every technology being covered, not just JSF.

  • When using Java Wizard with Firefox 3.6.23 on a Mac OS X 10.6.8 it keep getting an error message: "The Java Wizard cannot run. Please configure your browser to allow Java applets to access the filesystem." Have NO idea how to fix this problem.

    When trying to upload files I received the following error: "The Java Wizard cannot run. Please configure your browser to allow Java applets to access the filesystem."

    If the problem is with a site that is hosted using MOVEit DMZ by Ipswitch, please notify the site owner of the issue and ask them to apply the patch that is available on the support site to resolve the issue.
    This is a better resolution than downgrading your version of Java that was updated due to security issues.

  • Outgoing payment with Payment Wizard with Bank Transfer

    Hello to everyone !!!
    I'm Configuring a Company who want to use the 'Payment Wizard' to make Outgoing Bank Transfers payments with it.
    I did the configuration in 'Payment Methods' of Outgoing Bank Transfers, where I chose a File Format from the list (Even I don't know which one should I choose) and I also chose de 'House bank', bank and account where the Outgoing Bank Transfers will come.
    At the time when I did the payment wizard it suggest me to make an outgoing payment of my due A/P invoice very well. The problem is in the next step (STEP 7) when i run the execution and in STEP 8 it says:
    0 Payments were added
    0 Bank transfers were added
    So, It did not make any bank transfer Transaction!!!! =S
    Someone knows what i'm missing from the configuration???
    Someone knows if this is a bug??
    Thanks for your Help!!!!

    Hi Karina,
    please see the info from SAP Note 725786. The note is currently being updated with the new information relating to system behaviour in version 2007  & should be released again shortly:
    In order for the payment wizard and subsequently the payment engine to
    work properly, SAP Business One must be defined correctly as follows:
    1. Define the House Bank:
    a) Administration -> Setup -> Banking -> House Bank Accounts - Setup.
    b) Choose the Bank Code, Country and Account Number.
    c) If the business partner bank is a postoffice bank, tick the Post Office box.
    d) Update the window.
    e) Enter into the House Bank Account Setup winod again and enter the Branch and the account number of the corresponding G/L Account.
    f) Update the window.
    2. Define Business Partner bank:
    a) Administration -> Setup -> Banking -> Banks.
    b) Choose the Country Code, Bank Code and Bank Name, if necessary Swift number.
    c) If the business partner bank is a postoffice bank, tick the Post Office box.
    d) Update the window.
    3. Define Payment Methods:
    a) Administration -> Setup -> Banking -> Payment Methods.
    b) Enter the Payment Method Code, Description and the Transaction Type.
    c) Select the Payment Type and the Payment Means.
    d) In "File Format" choose the correct plug-in for the transaction (refer to the Payment Engine Online Help for the correct plug-in for the transaction you have defined).
    e) Select your House Bank for this particular payment method.
    f) Select the validation options and remember to tick Post Office Bank, if the bank is a Post Office Bank.
    g) If the outgoing payment is by cheque, restrictions can also be defined here.
    h) Add or update the window.
    4. Set up a Business Partner for the payment wizard:
    a) Business Partner -> Business Partner Master Data.
    b) Under the "Payment Terms" tab, enter the bank country.
    c) Enter the account number and the branch, update to return to Business Partner Master Data.
    d) Under the Tab "Payment system" tab, tick the desired Payment Method to include it in a payment run.
    e) Under the Tab "Payment system", select the house bank that was defined for the desired payment method used for transactions with this business partner.
    f) Update the window.
    5. Generate invoices for this business partner.
    6. Define the standards for the payment run:
    a) Banking -> Payment System -> Define Payment Run Defaults (In 2007 A version the path is: Administration -> Setup -> Banking -> Payment Run Defaults).
    b) Define tolerance days, cash discounts etc as needed.
    c) Define minimum and  maximum payments if necessary.
    d) Tick the box beside "Payment Methods".
    e) Click on the radiobutton beside "Payment Methods" and select the payment method(s) to be executed in this payment run by putting a tick in the tick box.
    f) Update the window.
    7. Open the Payment Wizard (Banking -> Payment System -> Payment Wizard).
    a) Select a new payment run - Step 1.
    b) Click on "Next" and define the Payment Run Name and the Posting Date, the payment type and the payment means - Step 2.
    c) Click on "Next" and select the business partners to be included in this payment run, make sure that the tick box for the relevant Business Partner Name is ticked - Step 3.
    d) Click on "Next" and define the document parameters - Step 4.
    e) Click on "Next" and select the payment method this payment run is applied to by ticking the box to the left of the payment method code - Step 5.
    f) Click on "Next" and tick the payment number for the business partner to be included, individual invoices can be selected by clicking on the "Expand All" button and either selected or deselected. This also applies to Credit Memos (and to manual Journal ENtries in 2007 A). Click on "Non-included Trans." to identify any troublesome transactions - Step 6.
    g) Select to either "Save the selection criteria", or "Mark as recommended" to process at a later point in time or select to "Execute" immediately - Step 7.
    h) In Step 8, you are given the Payments Run Summary.
    i) If you selected to execute the payment run, in Step 9 the Document and Report Printing options will be displayed. To generate the bankfile and any associated documents relevant to your localisation, click on the radiobutton "Bankfile".
    j) A "Browse for Folder" window will pop up where the destination directory of the output files must be selected. Once a folder was selected and "OK" was clicked, the payment engine will take the data out of Business One and create the defined files.
    k) Once the procedure has completed, an information system message will be displayed: Payment Engine run was successful"
    8. Go to the destination folder and check the logfile and the bank file(s).
    All the best,
    kerstin

Maybe you are looking for

  • X11 term disappearance

    Since I upgraded to Leopard on my Mini I no longer can get an X11 terminal to surface. As a consequence I can't run Open Office either. ps -A | grep X11 results in an indication that there is a terminal but it isn't visible. What's not happening? I d

  • Adobe CS5 start up issue resolved by deleting startup items - Mac OS X

    I'd like to share what happened to me just now. After uninstalling and installing Adobe CS5 five times and talking with Adobe and Apple support for five hours, Apple customer support suggested +I delete the start up items in my administrator account'

  • Smart Object drag-n-drop displacement. Photoshop CC

    For some reason I observe Smart Object displacement by 4 px on both axis during drag and drop files from OS into Photoshop document (Photoshop CC, Windows). I believe such behavior did not occur in previous versions. Maybe I do something wrong? P.s.

  • I can't access my pages documents when i downgraded from yosemite to maverick

    So i do a backup before i get yosemite and then i get yosemite. i also get the update for pages. a week later i decide i do not want yosemite so i downgrade by restoring the time machine backup i did before i got yosemite but in the week i had yosemi

  • Mysql connect to java

    i have a rt.jar file to connect java to mysql database