Problem in redirect( JSF) onTomcat

Hi All,
I am trying to run a JSF application on Tomcat 5.0.25 , which is already working fine on Websphere. The application uses frames and I am redirecting to a JSF page from a Servlet :
Code:
response.sendRedirect(url);
return;
I am getting a
java.lang.IllegalStateException :cannot forward after response has been committed
error on Tomcat, but it works fine on Websphere..
I am not writing anything to this Servlet's response, and the response.isCommitted() method returns false.
Thanks in advance!!

hi,
Are you using WSAD to develop your JSF app using Tomcat as a server ?
I am trying to do the same and running into issue.
I have WSAD 6.0 and tomcat 5. Are these compatible?
thanks
Ru

Similar Messages

  • Problem with Non JSF Request to JSF Page

    Hi All,
    I am working on dynamic controls generation based on the request come from non jsf page
    For the first request, pageworks perfectly. but when we go for second request, it is not rendering and I am getting same old page.
    What I have identified is if I have 2 pages as JSF, application is not giving any problem.
    For this I have written small test application contains both JSF pages only.
    page1 contains 3 submit buttons.
    When submit buttons are clicked based on the request, I get, am able to see the dynamic controls.
    SO there is no problem with JSF PAGE to JSF Page Communication
    Now I have done some changes in First JSF page. Instead of submitting directly I am submitting the page through JavaScript which is nonb JSF request. There I am facing the problem and based on requested qaction I am not able to see correct rendered page based on the requested action.
    Any Idea why it is giving problem for non JSF requests??
    Thanks
    Sudhakar

    For Your Convenience in understanding the problem
    I am pasting entire test code
    Page 1 -- (here page2 is Page1 and Page1 is page2 - some naming convention errors :) )
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page">
        <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
        <jsp:text><![CDATA[
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    ]]></jsp:text>
        <f:view>
            <html lang="en-US" xml:lang="en-US">
                <head>
                    <meta content="no-cache" http-equiv="Cache-Control"/>
                    <meta content="no-cache" http-equiv="Pragma"/>
                    <title>Page2 Title</title>
                    <link href="resources/stylesheet.css" rel="stylesheet" type="text/css"/>
                </head>
                <body style="-rave-layout: grid">
                    <h:form binding="#{Page2.form1}" id="form1">
    <!-- Non JSF REquests -->
                        <h:commandButton action="#{Page2.button1_action}" binding="#{Page2.button1}" id="button1" style="left: 48px; top: 48px; position: absolute" value="Submit" onclick="document.forms['form1'].action='faces/Page2.jsp?id=1'; document.forms['form1'].submit(); return false;"/>
                        <h:commandButton action="#{Page2.button2_action}" binding="#{Page2.button2}" id="button2" style="left: 48px; top: 96px; position: absolute" value="Submit" onclick="document.forms['form1'].action='faces/Page2.jsp?id=2'; document.forms['form1'].submit(); return false;"/>
                        <h:commandButton action="#{Page2.button3_action}" binding="#{Page2.button3}" id="button3" style="left: 48px; top: 144px; position: absolute" value="Submit" onclick="document.forms['form1'].action='faces/Page2.jsp?id=3'; document.forms['form1'].submit(); return false;"/>
    <!-- this  is JSF request -->
                        <!--
                        <h:commandButton action="#{Page2.button1_action}" binding="#{Page2.button1}" id="button1" style="left: 48px; top: 48px; position: absolute" value="Submit" />
                        <h:commandButton action="#{Page2.button2_action}" binding="#{Page2.button2}" id="button2" style="left: 48px; top: 96px; position: absolute" value="Submit" />
                        <h:commandButton action="#{Page2.button3_action}" binding="#{Page2.button3}" id="button3" style="left: 48px; top: 144px; position: absolute" value="Submit" />-->
                    </h:form>
                </body>
            </html>
        </f:view>
    </jsp:root>Page1 Bean
    * Page2.java
    * Created on June 25, 2005, 11:08 AM
    * Copyright user
    package webapplication8;
    import javax.faces.*;
    import com.sun.jsfcl.app.*;
    import javax.faces.component.html.*;
    import javax.faces.context.ExternalContext;
    import javax.faces.context.FacesContext;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    public class Page2 extends AbstractPageBean {
        // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Definition">
        private int __placeholder;
        private HtmlForm form1 = new HtmlForm();
        public HtmlForm getForm1() {
            return form1;
        public void setForm1(HtmlForm hf) {
            this.form1 = hf;
        private HtmlCommandButton button1 = new HtmlCommandButton();
        public HtmlCommandButton getButton1() {
            return button1;
        public void setButton1(HtmlCommandButton hcb) {
            this.button1 = hcb;
        private HtmlCommandButton button2 = new HtmlCommandButton();
        public HtmlCommandButton getButton2() {
            return button2;
        public void setButton2(HtmlCommandButton hcb) {
            this.button2 = hcb;
        private HtmlCommandButton button3 = new HtmlCommandButton();
        public HtmlCommandButton getButton3() {
            return button3;
        public void setButton3(HtmlCommandButton hcb) {
            this.button3 = hcb;
        // </editor-fold>
        public Page2() {
            // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Initialization">
            try {
            } catch (Exception e) {
                log("Page2 Initialization Failure", e);
                throw e instanceof javax.faces.FacesException ? (FacesException) e: new FacesException(e);
            // </editor-fold>
            // Additional user provided initialization code
        protected webapplication8.ApplicationBean1 getApplicationBean1() {
            return (webapplication8.ApplicationBean1)getBean("ApplicationBean1");
        protected webapplication8.SessionBean1 getSessionBean1() {
            return (webapplication8.SessionBean1)getBean("SessionBean1");
         * Bean cleanup.
        protected void afterRenderResponse() {
        public String button1_action()  throws Exception{
            // TODO Following code was replaced by static navigation
           getSessionBean1().setId(1);       
          /* ExternalContext ctx=(ExternalContext)FacesContext.getCurrentInstance().getExternalContext();
           HttpServletRequest req=(HttpServletRequest)ctx.getRequest();
           HttpServletResponse res=(HttpServletResponse)ctx.getResponse();
           res.sendRedirect("http://localhost:18080/webapplication8/faces/Page2.jsp");
           return null;*/
            return "case1";
        public String button2_action()  throws Exception{
            // TODO Following code was replaced by static navigation
                getSessionBean1().setId(2);
          /*  ExternalContext ctx=(ExternalContext)FacesContext.getCurrentInstance().getExternalContext();
           HttpServletRequest req=(HttpServletRequest)ctx.getRequest();
           HttpServletResponse res=(HttpServletResponse)ctx.getResponse();
           res.sendRedirect("http://localhost:18080/webapplication8/faces/Page2.jsp");
           return null;*/
            return "case2";
        public String button3_action() throws Exception{
            // TODO Following code was replaced by static navigation
                getSessionBean1().setId(3);
            /*    ExternalContext ctx=(ExternalContext)FacesContext.getCurrentInstance().getExternalContext();
           HttpServletRequest req=(HttpServletRequest)ctx.getRequest();
           HttpServletResponse res=(HttpServletResponse)ctx.getResponse();
           res.sendRedirect("http://localhost:18080/webapplication8/faces/Page2.jsp");
            return null;*/
            return "case3";
    }page 2
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page">
        <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
        <jsp:text><![CDATA[
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    ]]></jsp:text>
        <f:view>
            <html lang="en-US" xml:lang="en-US">
                <head>
                    <meta content="no-cache" http-equiv="Cache-Control"/>
                    <meta content="no-cache" http-equiv="Pragma"/>
                    <title>Page1 Title</title>
                    <link href="resources/stylesheet.css" rel="stylesheet" type="text/css"/>
                </head>
                <body style="-rave-layout: grid">
                    <h:form binding="#{Page1.form1}" id="form1">
                        <h:panelGrid binding="#{Page1.gridPanel1}" id="gridPanel1" style="left: 96px; top: 48px; position: absolute"/>
                        <f:selectItems binding="#{Page1.radioButtonList1SelectItems1}" id="radioButtonList1SelectItems1"/>
                        <h:commandButton action="#{Page1.button1_action}" binding="#{Page1.button1}" id="button1"
                            style="left: 384px; top: 120px; position: absolute" value="Submit"/>
                        <h:commandButton action="#{Page1.button1_action}" binding="#{Page1.button1}" id="button1" style="left: 384px; top: 72px; position: absolute" value="Submit"/>
                        <h:outputLink binding="#{Page1.hyperlink1}" id="hyperlink1" style="left: 480px; top: 216px; position: absolute" value="http://www.sun.com/jscreator">
                            <h:outputText binding="#{Page1.hyperlink1Text}" id="hyperlink1Text" value="Hyperlink"/>
                        </h:outputLink>
                        <h:commandLink binding="#{Page1.linkAction1}" id="linkAction1" style="left: 456px; top: 264px; position: absolute">
                            <h:outputText binding="#{Page1.linkAction1Text}" id="linkAction1Text" value="Link Action"/>
                        </h:commandLink>
                    </h:form>
                </body>
            </html>
        </f:view>
    </jsp:root>page2 bean
    * Page1.java
    * Created on June 25, 2005, 10:52 AM
    * Copyright user
    package webapplication8;
    import javax.faces.*;
    import com.sun.jsfcl.app.*;
    import com.sun.jsfcl.data.DefaultSelectItemsArray;
    import java.util.Vector;
    import javax.faces.component.UIComponent;
    import javax.faces.component.UISelectItems;
    import javax.faces.component.html.*;
    import javax.faces.context.ExternalContext;
    import javax.faces.context.FacesContext;
    import javax.faces.el.ValueBinding;
    import javax.faces.model.SelectItem;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class Page1 extends AbstractPageBean {
        // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Definition">
        private int __placeholder;
        private HtmlForm form1 = new HtmlForm();
        public HtmlForm getForm1() {
            return form1;
        public void setForm1(HtmlForm hf) {
            this.form1 = hf;
        private HtmlPanelGrid gridPanel1 = new HtmlPanelGrid();
        public HtmlPanelGrid getGridPanel1() {
            return gridPanel1;
        public void setGridPanel1(HtmlPanelGrid hpg) {
            this.gridPanel1 = hpg;
        private HtmlCommandButton button1 = new HtmlCommandButton();
        public HtmlCommandButton getButton1() {
            return button1;
        public void setButton1(HtmlCommandButton hcb) {
            this.button1 = hcb;
        private HtmlOutputLink hyperlink1 = new HtmlOutputLink();
        public HtmlOutputLink getHyperlink1() {
            return hyperlink1;
        public void setHyperlink1(HtmlOutputLink hol) {
            this.hyperlink1 = hol;
        private HtmlOutputText hyperlink1Text = new HtmlOutputText();
        public HtmlOutputText getHyperlink1Text() {
            return hyperlink1Text;
        public void setHyperlink1Text(HtmlOutputText hot) {
            this.hyperlink1Text = hot;
        private HtmlCommandLink linkAction1 = new HtmlCommandLink();
        public HtmlCommandLink getLinkAction1() {
            return linkAction1;
        public void setLinkAction1(HtmlCommandLink hcl) {
            this.linkAction1 = hcl;
        private HtmlOutputText linkAction1Text = new HtmlOutputText();
        public HtmlOutputText getLinkAction1Text() {
            return linkAction1Text;
        public void setLinkAction1Text(HtmlOutputText hot) {
            this.linkAction1Text = hot;
        // </editor-fold>
        public Page1() {
            // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Initialization">
            try {
                ExternalContext ctx=(ExternalContext)FacesContext.getCurrentInstance().getExternalContext();
                HttpServletRequest req=(HttpServletRequest)ctx.getRequest();
                HttpServletResponse res=(HttpServletResponse)ctx.getResponse();
                String id=req.getParameter("id");
                if(id!=null)
                    getSessionBean1().setId(Integer.parseInt(id));
                if (getSessionBean1().getId()==1) {
                    addTextBox();
                else if (getSessionBean1().getId()==2) {
                    addCheckBox();
                    addRadio();
                else if (getSessionBean1().getId()==3) {
                    addRadio();
                   // addCheckBox();
            } catch (Exception e) {
                log("Page1 Initialization Failure", e);
                throw e instanceof javax.faces.FacesException ? (FacesException) e: new FacesException(e);
            // </editor-fold>
            // Additional user provided initialization code
        protected webapplication8.ApplicationBean1 getApplicationBean1() {
            return (webapplication8.ApplicationBean1)getBean("ApplicationBean1");
        protected webapplication8.SessionBean1 getSessionBean1() {
            return (webapplication8.SessionBean1)getBean("SessionBean1");
         * Bean cleanup.
        protected void afterRenderResponse() {
        private void addRadio() {
            HtmlPanelGrid gridPanel = new HtmlPanelGrid();
            UIComponent parent = gridPanel1;
            HtmlOutputText outputText = new HtmlOutputText();
            outputText.setValue("Some Desc");
            outputText.setId("somedesc2");
            HtmlSelectOneRadio checkBox = new HtmlSelectOneRadio();
            checkBox.setBorder(0);
            checkBox.setLayout("pageDirection");
            checkBox.setId("a3");
            UISelectItems items = new UISelectItems();
            DefaultSelectItemsArray objArray =new DefaultSelectItemsArray();
            vectDefaultSelectItemsArray.add(objArray);
            arrays=(DefaultSelectItemsArray[])vectDefaultSelectItemsArray.toArray(new DefaultSelectItemsArray[vectDefaultSelectItemsArray.size()]);
            int size =arrays.length;
            arrays[size - 1].clear();
            for (int i =0;i<10;i++) {
                arrays[size - 1].add(new SelectItem(""+i+"",""+i));
            // array.setItems(new String[] {"Yes","No" });
            items.setValueBinding("value",getValueBinding("#{Page1.arrays["+(size-1)+"]}"));
            checkBox.getChildren().add(items);
            gridPanel.getChildren().add(outputText);
            gridPanel.getChildren().add(checkBox);
            parent.getChildren().add(gridPanel);
        private void addCheckBox() {
            HtmlPanelGrid gridPanel = new HtmlPanelGrid();
            UIComponent parent = gridPanel1;
            HtmlOutputText outputText = new HtmlOutputText();
            outputText.setValue("Some Desc");
            outputText.setId("somedesc1");
            HtmlSelectManyCheckbox checkBox = new HtmlSelectManyCheckbox();
            checkBox.setBorder(0);
            checkBox.setLayout("pageDirection");
            checkBox.setId("a2");
            UISelectItems items = new UISelectItems();
            DefaultSelectItemsArray objArray =new DefaultSelectItemsArray();
            vectDefaultSelectItemsArray.add(objArray);
            arrays=(DefaultSelectItemsArray[])vectDefaultSelectItemsArray.toArray(new DefaultSelectItemsArray[vectDefaultSelectItemsArray.size()]);
            int size =arrays.length;
            arrays[size - 1].clear();
            for (int i =0;i<10;i++) {
                arrays[size - 1].add(new SelectItem(""+i+"",""+i));
            // array.setItems(new String[] {"Yes","No" });
            items.setValueBinding("value",getValueBinding("#{Page1.arrays["+(size-1)+"]}"));
            checkBox.getChildren().add(items);
            gridPanel.getChildren().add(outputText);
            gridPanel.getChildren().add(checkBox);
            parent.getChildren().add(gridPanel);
        private void addTextBox() {
            HtmlPanelGrid gridPanel = new HtmlPanelGrid();
            UIComponent parent = gridPanel1;
            HtmlOutputText outputText = new HtmlOutputText();
            outputText.setValue("Some Description for Control Text Box");
            outputText.setId("somedesc");
            HtmlInputText textField = new HtmlInputText();
            //  textField.setId("textField_"+control.getId());
            textField.setId("a1");
            HtmlOutputText outputText1 = new HtmlOutputText();
            hyperlink1Text.setValue(" ");
            hyperlink1Text.setStyleClass("bodyText");
            textField.setStyleClass("frmObjects");
            gridPanel.setColumns(3);
            gridPanel.getChildren().add(outputText);
            gridPanel.getChildren().add(hyperlink1Text);
            gridPanel.getChildren().add(textField);
            parent.getChildren().add(gridPanel);
        private DefaultSelectItemsArray array = new DefaultSelectItemsArray();
        public DefaultSelectItemsArray getArray() {
            return array;
        public void setArray(DefaultSelectItemsArray dsia) {
            this.array = dsia;
        private Vector vectDefaultSelectItemsArray = new Vector();
        private DefaultSelectItemsArray[] arrays = new DefaultSelectItemsArray[10];
        public DefaultSelectItemsArray[] getArrays() {
            return arrays;
        public void setArrays(DefaultSelectItemsArray[]dsia) {
            this.arrays = dsia;
        private UISelectItems radioButtonList1SelectItems1 = new UISelectItems();
        public UISelectItems getRadioButtonList1SelectItems1() {
            return radioButtonList1SelectItems1;
        public void setRadioButtonList1SelectItems1(UISelectItems uisi) {
            this.radioButtonList1SelectItems1 = uisi;
        private ValueBinding getValueBinding(String expression) {
            return     FacesContext.getCurrentInstance().getApplication().createValueBinding(expression);
        public String button1_action() {
            // TODO Replace with your code
            return "case1";
    }my navigation.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
                                  "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
    <faces-config>
        <navigation-rule>
            <from-view-id>/Page2.jsp</from-view-id>
            <navigation-case>
                <from-outcome>case1</from-outcome>
                <to-view-id>/Page1.jsp</to-view-id>
            </navigation-case>
            <navigation-case>
                <from-outcome>case2</from-outcome>
                <to-view-id>/Page1.jsp</to-view-id>
            </navigation-case>
            <navigation-case>
                <from-outcome>case3</from-outcome>
                <to-view-id>/Page1.jsp</to-view-id>
            </navigation-case>
        </navigation-rule>
        <navigation-rule>
            <from-view-id>/Page1.jsp</from-view-id>
            <navigation-case>
                <from-outcome>case1</from-outcome>
                <to-view-id>/Page2.jsp</to-view-id>
            </navigation-case>
        </navigation-rule>
    </faces-config>my managed beans xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
                                  "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
    <faces-config>
        <managed-bean>
            <managed-bean-name>Page1</managed-bean-name>
            <managed-bean-class>webapplication8.Page1</managed-bean-class>
            <managed-bean-scope>request</managed-bean-scope>
        </managed-bean>
        <managed-bean>
            <managed-bean-name>SessionBean1</managed-bean-name>
            <managed-bean-class>webapplication8.SessionBean1</managed-bean-class>
            <managed-bean-scope>session</managed-bean-scope>
        </managed-bean>
        <managed-bean>
            <managed-bean-name>ApplicationBean1</managed-bean-name>
            <managed-bean-class>webapplication8.ApplicationBean1</managed-bean-class>
            <managed-bean-scope>application</managed-bean-scope>
        </managed-bean>
        <managed-bean>
            <managed-bean-name>Page2</managed-bean-name>
            <managed-bean-class>webapplication8.Page2</managed-bean-class>
            <managed-bean-scope>request</managed-bean-scope>
        </managed-bean>
        <managed-bean>
    </faces-config>

  • Problem migrating from JSF Mojarra 1.2 to 2.0

    As my subject suggests, I am having a problem migrating from JSF 1.2 to JSF 2.0.
    As a first step, all that I had done was to replace both 'jsf-api.jar' and 'jsf-impl.jar' with the newer version 2.0 and restart my server.
    As expected, server failed to publish with the following error message on the console. Any hint on solving this issue is highly appreciated.
    The error message goes as below:
    <Jun 30, 2009 10:31:54 AM PDT> <Error> <HTTP> <BEA-101371> <There was a failure when processing annotations for application D:\MalcolmX\web. Please make sure that the annotations are valid. The error is com.sun.faces.taglib.jsf_core.BeanValidatorTag>
    <Jun 30, 2009 10:31:54 AM PDT> <Error> <Deployer> <BEA-149205> <Failed to initialize the application '_auto_generated_ear_' due to error weblogic.application.ModuleException: Failed to load webapp: '/'.
    weblogic.application.ModuleException: Failed to load webapp: '/'
         at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:387)
         at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
         Truncated. see log file for complete stacktrace
    java.lang.ClassNotFoundException: com.sun.faces.taglib.jsf_core.BeanValidatorTag
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:283)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:54)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         Truncated. see log file for complete stacktrace
    Thanks.

    SirG wrote:
    As expected, server failedWow :P
    The error message goes as below:
    java.lang.ClassNotFoundException: com.sun.faces.taglib.jsf_core.BeanValidatorTagIs it in classpath? Exception says it is not.
    Don't you have some JSF 1.2 libraries around somewhere else in classpath? Appserver/lib? JDK/lib? Etc. You might have a mix of JSF 1.2 and JSF 2.0 in the classpath and the exception is just been caused by this collision.

  • Problems running the jsf-compnenets demo on Weblogic 8.1

    Hi,
    I am just starting out with with JSF and I'm having problems running the jsf-components demo. Whenever I try to run any of the JSP's in this demo I get the following error :
    /imagemap.jsp(41): Error in using tag library uri='http://java.sun.com/jsf/demo/components' prefix='d': cannot find tag class: 'components.taglib.AreaSelectedTag'
    probably occurred due to an error in /imagemap.jsp line 41:
    <%@ taglib uri="http://java.sun.com/jsf/demo/components" prefix="d" %>
    I have modified the components.tld file (within jsf-components.war) to remove what appears to be the offending tag but the problem still persists.
    Also, when I try to view the source of the demo, by clicking on any of the links I get the following error :
    <01-Jul-2004 12:00:59 o'clock BST> <Error> <HTTP> <BEA-101020> <[ServletContext(
    id=13712942,name=jsf-components,context-path=/jsf-components)] Servlet failed wi
    th Exception
    java.lang.NoClassDefFoundError: javax/servlet/jsp/el/ELException
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:1627)
    at java.lang.Class.getDeclaredMethods(Class.java:1114)
    at java.beans.Introspector$1.run(Introspector.java:1103)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:11
    01)
    at java.beans.Introspector.getTargetMethodInfo(Introspector.java:966)
    at java.beans.Introspector.getBeanInfo(Introspector.java:370)
    at java.beans.Introspector.getBeanInfo(Introspector.java:207)
    at java.beans.Introspector.<init>(Introspector.java:351)
    at java.beans.Introspector.getBeanInfo(Introspector.java:207)
    at java.beans.Introspector.getBeanInfo(Introspector.java:193)
    at weblogic.servlet.jsp.StandardTagLib.parseTagDD(StandardTagLib.java:13
    33)
    at weblogic.servlet.jsp.StandardTagLib.parseDD(StandardTagLib.java:1271)
    at weblogic.servlet.jsp.StandardTagLib.<init>(StandardTagLib.java:292)
    at weblogic.servlet.jsp.TagLibHelper.loadTagLib(TagLibHelper.java:314)
    at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:145)
    at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:50
    04)
    at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:4842)
    at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:4688)
    at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2093)
    at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1879)
    at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1752)
    at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:962)
    at weblogic.servlet.jsp.JspParser.doit(JspParser.java:105)
    at weblogic.servlet.jsp.JspParser.parse(JspParser.java:228)
    at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:120)
    at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:258
    at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:364)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:220)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:172)
    at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
    java:504)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:349)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:431)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:305)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:6310)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:3622)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2569)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Am I missing something ?
    Any help would be greatly appreciated.
    Thanks in advance,
    Brian.

    Hey,
    You are probably missing jsp-impl.jar in the classpath. Please add it to your class path and try again.
    Senthuran

  • Bought the starter pack iap on the game 'Injustice: God Among Us', but it didn't give me what it said it would so I want a refund but finding it diffcult to request one, as reporting a problem just redirects me to this website. How to submit for a refund?

    Bought the starter pack iap on the game 'Injustice: God Among Us', but it didn't give me what it said it would so I want a refund but finding it diffcult to request one, as reporting a problem just redirects me to this website. How to submit for a refund?

    Try going to https://expresslane.apple.com ; select 'All Products and Services' in the first column, 'iTunes' in the second column and then 'iTunes Store' in the third column.

  • Problem with redirection and google analytics

    Hello,
    I created my professional website with iweb and bought a domain name for it can be simplest to remember, so this professional domain name (www.julienchabot.com) redirect to the iweb url (web.mac.com/julienchabot/iweb/com/home.html). Now I subscribed to Google Analytics to know the statistics of my website, but it seems that when people visit www.julienchabot.com, google analytics doesn't register any visit on my website, it only registers something when the iweb url (web.mac.com/julienchabot...) is visited, so only when I visit my website as a webmaster because I'm the only one to know this url.
    So it's very frustrating for I can't know the statistics even if Google analytics seems to provide fantastics results !!!
    However, when we're on julienchabot.com and that we read the source code, the correct code and iweb url appear on the top of the window... Does the problem come from the redirection company I subscribed to ?
    Has someone a solution to this problem ?
    Thank you very much for your help !!
    Julien

    Dear Gretsch,
    Thank you for this website, I just registered but unfortunately the problem is still the same ! I think it's due to the redirect company I subscribed to, they use "frames" for the redirection.
    Do you use frames as well for your website ? StatCounter asks if it's the case before providing the code and I replied "yes", they specify to put the code in the main page where there's not the "frame" code, but I don't know where this "frame" code is written, so I put the StatCounter code on the homepage one, but it's the same than with Google.
    Would you mind provide me the url of your website for I can compare your code to mine ?
    Thank you very much for your help !
    Julien

  • Stange problem in deploying  JSF application to weblogic 10

    hi,OTN
    I think this is the suitable forum for my problem,I had an ADF 10g application which I migrate to Jdeveloper 11g,I want to deploy it to A standalone weblogic server,so I made a Jar file for the model,Awar File for the viewController, and an ear file in the application Assembly of the ear File I check both the Archive and webapp,this is all the libraries which is selected for Deployment
    JSF 1.2
    JSTL 1.2
    JSTL 1.2 Tags
    BC4j Runtime
    ADF Model Runtime
    BC4J Tester
    Oracle JDBC
    BC4J Oracle Domains
    MDS RunTime
    MDS RunTime Dependencies
    BC4J security
    afc.jar
    JSP RunTime
    ADF Common RunTIme
    ADF Faces Cache
    ADF Controller RunTime
    ADF Web RunTime
    ADF Controller Schema
    JPS Design Time
    ADF Controller.jar
    but when I Deploy the Ear File I got an exception
    <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'application20'
    <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException: Failed to load webapp: 'Reg' at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:404)
    at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:507
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41) Truncated. see log file for complete stacktrace
    Caused By: java.lang.ClassNotFoundException: javax.faces.webapp.UIComponentTag
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:280)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:253)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
    Truncated. see log file for complete stacktrace
    >
    there is a problem in the webapp for this class javax.faces.webapp.UIComponentTag ? How i can solve this?

    thanks for help,but I try and also got the same Error:
    <10/10/2010 EET 08:50:26 ع> <Error> <HTTP> <BEA-101371> <There was a failure when processing annotations for application C:\Oracle\Middleware\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\application3\c2qh5c\webapp30.war. Please make sure that the annotations are valid. The error is >
    <10/10/2010 EET 08:50:27 ع> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1286736611640' for task '0'. Error is: 'weblogic.application.ModuleException: Failed to load webapp: 'Reg''
    weblogic.application.ModuleException: Failed to load webapp: 'Reg'
    at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:404)
    Caused By: java.lang.ClassNotFoundException: javax.faces.webapp.UIComponentTag
    also, I did not succeed to run it from my Integrated weblogic server see this
    Re: Unable to find class oracle.adf.controller.faces.lifecycle.ADFPhaseListener
    so I try to deploy it in a standalone weblogic but this different problem appear to me,I think all this problems because of migration ADF faces to Apache trinanad although I fixed all my code after migration and compile it without any problems.can I deploy my app to weblogic 10 from my Jdeveloper 10g without migrating my Application To Apache?
    Edited by: Miar on Oct 10, 2010 12:12 PM

  • Windows 7 pro problem with redirected folder for 1 computer in the domain only.

    Hi.
    We have a computer in the domain we have that started to behave strangely.
    We have redirected folder on the GPO for the Desktop, favorites, and my documents folder.
    The server is 2012 essentials
    Sometimes the customer want to save it's document and the computer refuse to save the file saying that the folder doesn't exist (path unknow). Mostly restarting the machine solve the problem.I verified the synchro between the server and the computer and
    everything seem fine. What I have seen is that went I unplug the system from local network this specific folder disapear. So what I fear is that somethimes the machine can't connect to the server and then the problem start to appear.
    I have tested other account on the domain and they run fine.
    Any idea where I might look?
    Thanks you.

    Hi  MD Info,
    Do you mean that only one account have this issue?
    What policy do you set?
    Please take the following steps for troubleshooting:
    1. Use this account to log in other computers and check if this issue still exists
    2. When this issue occurs, ping the IP address and server name of the server 2012, and share us the result
    3. As you mentioned in the post ‘Mostly restarting the machine solve the problem’, please run the command
    gpupdate /force in powershell and check if this issue still exists.
    Best regards,
    Fangzhou CHEN
    Fangzhou CHEN
    TechNet Community Support

  • Hibernate problem in Tomcat-jsf. Please help me!

    Hello!
    So...I'm using Hiberbate API to deal with database data
    and The Tomcat web server to deploy my app, my page shows
    a database data list, the problem is when I reload (click
    on the browser button or on the originated link) the page
    the data just vanish, I don't know the why.have
    you any suggestion?
    my page.jsf :
    <%
        try{
            HibBean data = new HibBean();
            Iterator i = data.getList().iterator();
            Session sessionH = HibernateUtil.getSessionFactory().getCurrentSession();
            sessionH.beginTransaction();
    (show data from database)
    HibernateUtil.getSessionFactory().close();
    .Thanks!

    This question has asked a lot in different forums. I had same problen, when I compiled RunUSBControllerTest. I got I/O Exception: USB Host support is unavailable. I think I resolve this problem: I think that jusb.dll has compiled in older java version and depends on version. I had Java 1.4.2_05 and it dosen't worked out. I remove it and install java 1.4.1_03. Now the RunUSBControllerTest works fine. I hope this is the answer.

  • Problem Adding Custom JSF Components to Oracle JDeveloper 10g (10.1.3) Prev

    I'm having a problem on Adding Custom JSF Components to Oracle JDeveloper 10g (10.1.3) Preview (http://www.oracle.com/technology/products/jdev/101/collateral/101/adffaces/howto_customcomponents.html)
    The step 1 of 5 isn't visible for me and I don't see the "Install from local file" option to select the adf-faces-bundle.zip from my file system. The OTN check for updates don't prove the ADF Faces...
    What may I do?

    And...
    If "Check for Updates Wizard" is not launched, you can try to set LANG.
    see: 10.1.3 Can't not launch Update Wizard in Japanese environment.
    10.1.3 Can't not launch Update Wizard in Japanese environment.
    Thanks.
    Takuya Ono

  • Problem with Richfaces, JSF 1.2, Facelets application

    Hello
    I have trouble using Weblogic 10.3.3 with my JSF-application which is constructed using Richfaces 3.3.3 and Facelets. First I had problems with deployment but with adding weblogic.xml to project.
    This is the weblogic.xml content :
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <weblogic-web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-web-app http://www.bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd"
    xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app">
    <library-ref>
    <library-name>jsf</library-name>
    <specification-version>1.2</specification-version>
    <implementation-version>1.2</implementation-version>
    <exact-match>false</exact-match>
    </library-ref>
    <container-descriptor>
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
    </weblogic-web-app>
    This application works without problems in Glassfish 2.1 but when I try to access my application in Weblogic, I get following exception :
    Error 500--Internal Server Error
    javax.el.ELException: /Main.xhtml: The class 'katva.soa.logging.web.soaloggerweb.SessionController' does not have the property 'navigateToMonitor'.
         at com.sun.facelets.compiler.AttributeInstruction.write(AttributeInstruction.java:53)
         at com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:39)
         at com.sun.facelets.compiler.UILeaf.encodeAll(UILeaf.java:149)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
         at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
         at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
         at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
         at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
         at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
         at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    SessionController - managed bean has method mentioned above, here is the part of the page where the SessionController - bean is referenced:
    <a4j:form id="linkForm">
    <li><h:commandLink value="#{msgs.Main_logSearchLink}" action="#{SessionController.navigateToMonitor}"/></li>
    <li><h:commandLink value="#{msgs.Main_maintenanceLink}" action="#{SessionController.navigateMaintenance}"/></li>
    </a4j:form>
    Could someone help with this ? I am getting desperate and I would need to solve this quite quickly...
    Thank you for everyone who can help with this
    Best Regards Tuomas Katva

    This is probably related: Facelets not rendered on Weblogic 10.3.3
    A step by step example
    - create a web.xml file, with the following contents:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/javaee"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
             version="2.5">
        <context-param>
            <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
            <param-value>.xhtml</param-value>
        </context-param>
        <context-param>
            <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
            <param-value>server</param-value>
        </context-param>
        <context-param>
            <param-name>org.richfaces.SKIN</param-name>
            <param-value>blueSky</param-value>
        </context-param>
        <context-param>
            <param-name>org.richfaces.CONTROL_SKINNING</param-name>
            <param-value>enable</param-value>
        </context-param>
        <filter>
            <filter-name>RichFaces Filter</filter-name>
            <filter-class>org.ajax4jsf.Filter</filter-class>
        </filter>
        <filter-mapping>
            <filter-name>RichFaces Filter</filter-name>
            <servlet-name>Faces Servlet</servlet-name>
            <dispatcher>REQUEST</dispatcher>
            <dispatcher>FORWARD</dispatcher>
            <dispatcher>INCLUDE</dispatcher>
        </filter-mapping>
        <servlet>
            <servlet-name>Faces Servlet</servlet-name>
            <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>/faces/*</url-pattern>
        </servlet-mapping>
        <listener>
            <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
        </listener>
    </web-app>- create a faces-config.xml file with at least the following contents:
    <?xml version='1.0' encoding='UTF-8'?>
    <faces-config xmlns="http://java.sun.com/xml/ns/javaee"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
                  version="1.2">
        <application>
            <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
        </application>
    </faces-config>- create an example page
    <?xml version="1.0" encoding="UTF-8"?>
    <!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" xml:lang="en" lang="en"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:a4j="http://richfaces.org/a4j"
          xmlns:rich="http://richfaces.org/rich">
    <head>
        <title></title>
    </head>
    <body>
    <a4j:form id="form">
        <rich:panel header="Login" style="width: 750px">
            <h:panelGrid columns="3">
                <h:outputText id="label" value="Password"/>
                <h:inputText id="login" value="Type Your Password"/>
                <rich:message for="login"/>
                <f:facet name="footer">
                    <rich:toolBar height="20" itemSeparator="line">
                        <rich:toolBarGroup location="right">
                            <h:commandButton value="Click To Login"/>
                        </rich:toolBarGroup>
                    </rich:toolBar>
                </f:facet>
            </h:panelGrid>
        </rich:panel>
    </a4j:form>
    </body>
    </html>- package this into the following structure:
    WAR
        WEB-INF
             faces-config.xml
             web.xml
             lib
                commons-beanutils-1.7.0.jar
                commons-collections-3.2.jar
                commons-digester-1.8.jar
                commons-logging-1.0.4.jar
                jhighlight-1.0.jar
                jsf-api.jar
                jsf-facelets.jar
                jsf-impl.jar
                jstl-api-1.2.jar
                jstl-impl-1.2.jar
                richfaces-api-3.3.1.GA.jar
                richfaces-impl-3.3.1.GA.jar
                richfaces-ui-3.3.1.GA.jar
        test.xhtmlAnd deploy it to WebLogic. Upon deployment the following logging is observed:
    Jul 4, 2011 2:09:44 PM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initializing Mojarra (1.2_14-b01-FCS) for context '/JSFFaceletsRichFaces'
    Jul 4, 2011 2:09:45 PM com.sun.faces.spi.InjectionProviderFactory getProviderInstance
    SEVERE: JSF1030: The specified InjectionProvider implementation 'com.bea.faces.WeblogicInjectionProvider' cannot be loaded.
    Jul 4, 2011 2:09:45 PM com.sun.faces.spi.InjectionProviderFactory createInstance
    INFO: JSF1048: PostConstruct/PreDestroy annotations present.  ManagedBeans methods marked with these annotations will have said annotations processed.
    Jul 4, 2011 2:09:45 PM org.ajax4jsf.cache.CacheManager getCacheFactory
    INFO: Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
    Jul 4, 2011 2:09:45 PM org.ajax4jsf.cache.LRUMapCacheFactory createCache
    INFO: Creating LRUMap cache instance using parameters: {org.richfaces.CONTROL_SKINNING=enable, javax.faces.STATE_SAVING_METHOD=server, javax.faces.DEFAULT_SUFFIX=.xhtml, com.sun.faces.injectionProvider=com.bea.faces.WeblogicInjectionProvider, org.richfaces.SKIN=blueSky}
    Jul 4, 2011 2:09:45 PM org.ajax4jsf.cache.LRUMapCacheFactory createCache
    INFO: Creating LRUMap cache instance of default capacity
    Jul 4, 2011 2:09:45 PM org.ajax4jsf.cache.CacheManager getCacheFactory
    INFO: Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
    Jul 4, 2011 2:09:45 PM org.ajax4jsf.cache.LRUMapCacheFactory createCache
    INFO: Creating LRUMap cache instance using parameters: {org.richfaces.CONTROL_SKINNING=enable, javax.faces.STATE_SAVING_METHOD=server, javax.faces.DEFAULT_SUFFIX=.xhtml, com.sun.faces.injectionProvider=com.bea.faces.WeblogicInjectionProvider, org.richfaces.SKIN=blueSky}
    Jul 4, 2011 2:09:45 PM org.ajax4jsf.cache.LRUMapCacheFactory createCache
    INFO: Creating LRUMap cache instance of default capacityEnter the URL to access the application, for example, http://localhost:7001/JSFFaceletsRichFaces/faces/test.xhtml
    et voila RichFaces and Facelets on WebLogic

  • Problem overriding default JSF conversion error messages

    Hello !
    I have a problem to override default JSF conversation error message. I have an inputText which is binded to BigDecimal attribute, so when I enter a character in that field I get this error message: "- Conversion failed."
    I think I need to register the message bundle in my faces config, and put the key of this error message to my properties file.. am I right ?
    Can somebody help me with this ? Which key I need to put into the properties file ?
    Miljan

    Get [Sun's Java EE tutorial |https://www.sun.com/offers/details/JavaEETutorial.xml?cid=20090723ZA_TACO_JVEE_0004] and read the relevant section so you don't have to guess what you need to do.

  • Strange Problem when Redirect to other Servlet using dispatch. Please help!

    I've a servlet which will check login session first, if not logged in, it will redirect to LOGIN servlet using "req.getRequestDispatcher(forwardTo).forward(req, resp);", it works fine. For eg, if I press ServletA it will redirect to LoginServlet. It works fine IF I DON'T RESTART TOMCAT.
    However, if I restart tomcat OR restart tomcat and close browser, then request ServletA again, it will display error:
    Apache Tomcat/4.0.1 - HTTP Status 404 - /sun.userlogin
    type Status report
    message /sun.userlogin
    description The requested resource (/sun.userlogin) is not available.
    BUT if I press RELOAD, it will become normal and REDIRECT me to LoginServlet. It's very strange and it troubles my development. The following is a part of my code, do you have any idea what's going wrong?Thanks.
    public class viewMyAcct extends HttpServlet
    public void doGet(HttpServletRequest req,
    HttpServletResponse resp)
    throws ServletException, java.io.IOException
    // Set the content type of the response
    resp.setContentType("text/html");
    // Create a PrintWriter to write the response
    java.io.PrintWriter out = resp.getWriter();
    HttpSession session = req.getSession(true);
    if (session == null) {
    out.println("ERROR: Internal servlet problem - no session");
    out.flush();
    out.close();
    return;
    UserLog ulog = (UserLog) session.getAttribute(USER);
    cmd = new sqlcmd();
    String uri = req.getRequestURI();
    if (ulog == null) {         
    String forwardTo = "sun.userlogin?where=RegForm"; //return to login page           
    //String forwardTo = "../"+uri.substring(0,uri.indexOf(".")) + ".userlogin?where=RegForm"; //return to login page      
         req.getRequestDispatcher(forwardTo).forward(req, resp);
         //http://127.0.0.1:8080/user/servlet/student.userlogin
         //here sure have login,get user loginid
         else{
    ...

    I got a reply why this problem occurs but do anyone of you know how to solve it? The reason is listed below:
    Hi Ken,
    The trouble starts when u restart tomcat,the servelet which is there in memory gets removed so the next time it has to cater to a request it has to go through init(), before getting into the service(), so when u restart and press for Re-login page,it has still not compiled, which it does on getting the first request and hence when u reload it, it responds

  • Intermittent problems on redirect

    Hi,
    I have a JSP form (test.jsp) for my users to upload a file, and another JSP file (testHelper.jsp) to work in the background, both JSP's are under the same directory (http://www.domain.com:8080/AppName/). After work is done, I send users back to the form (with parameters to determine which status message to show), with the following call:
    response.sendRedirect("test.jsp?message=a");Most of the users get redirected back to the form just fine, however a few users received error messages. On IE7, they will see "Internet Explorer cannot display the webpage", while on Firefox they'll see "This document contains no data."
    I checked their browser settings, cleared their browser cache, made sure it's set to always get the latest version of the webpage. The file they're trying to upload seems fine too.
    I have tried using the absolute path in the sendRedirect call, but that did not help:
    response.sendRedirect("/AppName/test.jsp?message=a");When they saw the error messages, their browser showed the address as "http://www.domain.com:8080/AppName/testHelper.jsp".
    I am new in JSP - Is there something else that I should check to diagnose this problem?
    Any help will be appreciated, thanks!

    It could be a timeout issue? Are they uploading larger files?
    Is this problem always reproducible on certain systems, or just intermittent everywhere?
    Any errors in the server log?
    Do you actually receive the file they are meant to be uploading, even if they get an error response?
    How long does it take before the error message shows up? Is it even trying to upload the file?

  • Problem with redirect script when calling from external - UCCX

    Hi,
    I have a problem with external calls not being redirected when the call comes from an external that begins with a certain prefix on teh ANI.
    The call path goes PSTN - VGW - UCM SUB - UCCX.
    To give you info this should be redirected to a auto attendant on unity but it just hits the fourth option unsuccessful.
    If i change it to match an internal ANI and test it works.
    What trace and log do i look at to see the call coming in from the UCM and what is happening with it why this is failing when it trys to redirect a call coming from external?
    I have also attached my script.
    Thanks for the help.
    Kev

    Hi Martin Braun,
    Go to GUI status which you set in the PBO of your screen,
    and open "Function Keys" part.
    You should have set function key F4 for a button on your GUI status,
    delete this button and create with another function key again.
    I hope it helps.

Maybe you are looking for