• RELEVANCY SCORE 3.35

    DB:3.35:Oracle Jdeveloper j3





    Hi all

    I have a application developed in Oracle JDEveloper10. When i run this app from within JDev IDE its running fine.

    But when i try to create a war for this application using build.xml and deploy this war am getting this error

    [Mar 18, 2008 2:01:03 PM] Exception: NoClassDefFoundError: javax/faces/FacesException
    [Mar 18, 2008 2:01:03 PM] Operation failed with error: javax/faces/FacesException

    Any help

    DB:3.35:Oracle Jdeveloper j3

    In JDeveloper click 'Project Properties' from the 'Tools' menu then click the 'Libraries' entry on the list on the left. This will tell you all the jars that JDeveloper has put into your project.

    How did you create your project, using one of the pre-defined JDeveloper wizards, eg new Web Project?

  • RELEVANCY SCORE 3.24

    DB:3.24:Migrating From Jsf1.1 To Jsf1.2 as





    Hi all,

    I am a newbie at JSF.
    SITUATION:: I have a project already running with Java EE 1.4 and jsf 1.1.
    PROBLEM:: I want to migrate the project to Java EE 1.5 and jsf 1.2.
    SOLUTION:: ??

    I tried using the converter plugin (http://blogs.sun.com/winston/entry/vwpprojectconverter) and managed to get rid of some bugging errors.
    But i am still stuck on one exception::

    SEVERE: Exception sending context initialized event to listener instance of class
    com.sun.faces.config.ConfigureListener
    java.lang.NoClassDefFoundError: javax/faces/application/StateManagerWrapper

    and

    SEVERE: Error configuring application listener of class com.sun.faces.extensions.avatar.event.DynaFacesContextListener
    java.lang.NoClassDefFoundError: javax/faces/FacesException

    I just cant understand why this error is coming.

    What i have ALREADY tried::
    1. copying the jsf-api.jar in tomcat lib.
    2. jsf-extensions-dynamic-faces-0.1.jar to tomcat lib.

    Please give me any suggestions or solutions if any....

    DB:3.24:Migrating From Jsf1.1 To Jsf1.2 as

    HI
    Problem is solved
    I just replaced the lastest jsf-api.jar and jsf-impl.jar in web-inf/lib
    And it worked!!!!
    Phew!!..
    Thanks anyway.

  • RELEVANCY SCORE 3.19

    DB:3.19:Facesexception: Can't Instantiate Class 1a





    I have a simple, proof-of-concept Login page I'm trying out in JavaServer Faces, but I can't get it going.

    Single JavaBean called com.mycompany.LoginHandler has two get/set/properties login and password, and a method doLogin which takes no arguments and returns a String.
    LoginHandler is defined as a managed-bean in faces-config.xml by the name "loginHandler". login and password are properties, but doLogin method is not mentioned in faces-config.

    Web server is apache, with URL rewriting to Tomcat. Apache is supposed to pass all *.faces URLs to Tomcat.
    Tomcat is configured with a single servlet, FacesServlet.

    Whenever I access my login page as /login.faces I get the following dumped error message telling me that the class "login" can't be instantiated. But I'm not trying to instantiate a class called login; I have a login.jsp page being referred to as login.faces, and I have a LoginHandler bean with a login property. Here is the stack trace of the error:
    javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.faces.FacesException:
    javax.faces.FacesException: Can't instantiate class: 'login'.
    org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:841)
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:778)
    org.apache.jsp.login_jsp._jspService(org.apache.jsp.login_jsp:143)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
    com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
    com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
    root cause

    javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.FacesException:
    Can't instantiate class: 'login'.
    com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:206)
    com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
    javax.faces.component.UIOutput.getValue(UIOutput.java:147)
    com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:82)
    com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:191)
    com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:169)
    javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:720)
    javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:623)
    javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:546)
    com.sun.faces.taglib.html_basic.InputTextTag.doEndTag(InputTextTag.java:524)
    org.apache.jsp.login_jsp._jspx_meth_h_inputText_0(org.apache.jsp.login_jsp:313)
    org.apache.jsp.login_jsp._jspx_meth_h_form_0(org.apache.jsp.login_jsp:232)
    org.apache.jsp.login_jsp._jspx_meth_f_view_0(org.apache.jsp.login_jsp:169)
    org.apache.jsp.login_jsp._jspService(org.apache.jsp.login_jsp:132)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
    com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
    com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)package com.mycompany;

    public class LoginHandler implements java.io.Serializable {
    private String login = "";
    private String password = "";

    public LoginHandler() {
    super();
    }

    public void setLogin( String login ) {
    this.login = login;
    }
    public String getLogin() {
    return login;
    }

    public void setPassword( String pass ) {
    this.password = pass;
    }
    public String getPassword() {
    return password;
    }

    public String doLogin() {
    return "success";
    }
    }faces-config:

    !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-nameloginHandler/managed-bean-name
    managed-bean-class
    com.mycompany.LoginHandler
    /managed-bean-class
    managed-bean-scoperequest/managed-bean-scope

    managed-property
    property-namelogin/property-name
    property-classjava.lang.String/property-class
    /managed-property

    managed-property
    property-namepassword/property-name
    property-classjava.lang.String/property-class
    /managed-property

    /managed-bean

    /faces-configweb.xml:
    web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4"

    !-- Faces Servlet --
    servlet
    servlet-nameFacesServlet/servlet-name
    servlet-classjavax.faces.webapp.FacesServlet/servlet-class
    load-on-startup1/load-on-startup
    /servlet

    !-- Faces Servlet Mapping --

    servlet-mapping
    servlet-nameFacesServlet/servlet-name
    url-pattern*.faces/url-pattern
    /servlet-mapping

    servlet-mapping
    servlet-nameinvoker/servlet-name
    url-pattern/servlet/*/url-pattern
    /servlet-mapping

    taglib
    taglib-urihttp://java.sun.com/jsf/html/taglib-uri
    taglib-location/WEB-INF/tld/jsf_html.tld/taglib-location
    /taglib

    taglib
    taglib-urihttp://java.sun.com/jsf/core/taglib-uri
    taglib-location/WEB-INF/tld/jsf_core.tld/taglib-location
    /taglib

    taglib
    taglib-urihttp://java.sun.com/jstl/core/taglib-uri
    taglib-location/WEB-INF/tld/jstl_core.tld/taglib-location
    /taglib

    taglib
    taglib-urihttp://java.sun.com/jstl/fmt/taglib-uri
    taglib-location/WEB-INF/tld/jstl_fmt.tld/taglib-location
    /taglib

    taglib
    taglib-urihttp://java.sun.com/jstl/sql/taglib-uri
    taglib-location/WEB-INF/tld/jstl_sql.tld/taglib-location
    /taglib

    taglib
    taglib-urihttp://java.sun.com/jstl/xml/taglib-uri
    taglib-location/WEB-INF/tld/jstl_xml.tld/taglib-location
    /taglib

    /web-app...I renamed these TLDs and put them in a tld directory in WEB-INF.
    WEB-INF/lib contains the following:
    mycompany.jar (contains com.mycompany.LoginHandler only)
    commons-beanutils.jar
    commons-collections.jar
    commons-digester.jar
    commons-logging.jar
    jsf-api.jar
    jsf-impl.jar
    jstl.jar
    standard.jar
    web-facesconfig_1_0.dtd
    web-facesconfig_1_1.dtdClasses folder is empty. I'm using the default FacesServlet.

    Now, the login.jsp page:
    %@page contentType="text/html" %
    %@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %
    %@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %
    htmlheadtitleJSF Login Test/title/head
    body
    f:view
    h:form
    Login:
    h:inputText value="#{loginHandler.login}" /br /
    Password:
    h:inputSecret value="#{loginHandler.password}" /br /
    h:commandButton value="Login"
    action="#{loginHandler.doLogin}" /br /
    /h:form
    /f:view
    /body/htmlThe catalina log had this error in it:
    May 26, 2005 8:40:19 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 1657 ms
    May 26, 2005 8:40:31 AM com.sun.faces.application.ApplicationAssociate createAndMaybeStoreManagedBeans
    SEVERE: Managedbean loginHandler could not be created Can't instantiate class: 'login'.
    javax.faces.FacesException: Can't instantiate class: 'login'.
    at com.sun.faces.config.ManagedBeanFactory.getPropertyType(ManagedBeanFactory.java:377)
    at com.sun.faces.config.ManagedBeanFactory.setPropertiesIntoBean(ManagedBeanFactory.java:514)
    at com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:233)
    at com.sun.faces.application.ApplicationAssociate.
    createAndMaybeStoreManagedBeans(ApplicationAssociate.java:256)
    at com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:78)
    at com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:125)
    ...(snip)...This tells me it is trying create a class called "login" as part of the value binding expression #{loginHandler.login}, but I don't know why this throws an error. I don't understand. Any help would be greatly appreciated.

    DB:3.19:Facesexception: Can't Instantiate Class 1a

    It looks like you need to initialize the property
    correctly. try
    managed-property
    property-namelogin/property-name

    property-classjava.lang.String/property-class
    valueUsername/value or null-value/
    /managed-propertyin your faces-config.xml

    Maybe you should have a look at:
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSFConf
    igure3.html#wp1000014Success! Thank you very much for your help. Adding the null-value / parameter was the fix.

  • RELEVANCY SCORE 3.16

    DB:3.16:Why Do I Get This Notserializableexception? 3x


    Using NetBeans 6.7, glassfish V2.1.

    The code will compile, deploy and run, but when it initializes I get a NotSerializableException error.
    Any clues as to how I can get rid of this?
    Let me know if more information is needed.
    Thanks.

    In my main session bean (SessionBean1) I do the following in the init method:

    public String enc = "9W4xFQqTa56JZ8z9C+w8xw==";
    AESEncryption aes;

    public void init() {
    super.init();
    try {
    _init();
    } catch (Exception e) {
    log("SessionBean1 Initialization Failure", e);
    throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
    }

    readCfg();
    fillCcList();
    fillStateList();
    fillCountryList();
    fillBusinessTypeList();
    fillContactList();
    fillQuarterList();
    fillMonthList();
    fillCcYearList();
    *aes = new AESEncryption( enc );*
    initialized = false;
    initializeSource();
    }Here is my AESEncryption class

    package fmtax;

    import javax.crypto.*;
    import javax.crypto.spec.*;

    public class AESEncryption {

    byte[] rawKey;

    public AESEncryption( String strKey )
    {
    char[] carray = strKey.toCharArray();
    rawKey = Base64Coder.decode(carray);

    }

    public byte[] encrypt( String message )
    {
    try
    {
    // Get the KeyGenerator
    KeyGenerator kgen = KeyGenerator.getInstance("AES");
    kgen.init(128); // 192 and 256 bits may not be available

    char[] carray = Base64Coder.encode(rawKey);
    String strkey = new String(carray);

    SecretKeySpec skeySpec = new SecretKeySpec(rawKey, "AES");

    // Instantiate the cipher
    Cipher cipher = Cipher.getInstance("AES");
    cipher.init(Cipher.ENCRYPT_MODE, skeySpec);

    byte[] encrypted = cipher.doFinal(message.getBytes());
    return encrypted;
    }
    catch( Exception e )
    {
    return new byte[1];
    }
    }

    public String decrypt( byte[] encrypted )
    {
    try
    {
    SecretKeySpec skeySpec = new SecretKeySpec(rawKey, "AES");

    // Instantiate the cipher
    Cipher cipher = Cipher.getInstance("AES");
    cipher.init(Cipher.DECRYPT_MODE, skeySpec);
    byte[] original = cipher.doFinal(encrypted);
    return new String(original);
    }
    catch( Exception e )
    {
    return "";
    }
    }
    }When the application tries to initialize, I get the following error:

    Initializing Sun's JavaServer Faces implementation (1.2_04-b22-p05) for context '/FMTaxNL'
    PWC2785: Cannot serialize session attribute SessionBean1 for session c6cd82f3f97bd0574ddb969f8df7
    java.io.NotSerializableException: fmtax.AESEncryption
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
    at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
    at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
    at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1947)
    ...CUT TO FIT IN POST CHARACTER LIMIT - will post in separately if neecessary...
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
    at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:670)
    at org.apache.catalina.session.StandardManager.unload(StandardManager.java:584)
    at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
    at com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
    at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:69)
    at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:155)
    at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:122)
    at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:193)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:315)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
    at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:579)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:831)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
    at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116)
    classLoader = WebappClassLoader
    delegate: true

    DB:3.16:Why Do I Get This Notserializableexception? 3x

    ejp wrote:
    That's an error trying to restore an old persisted bean for a new session using the new class that no longer has an aes member. You need to clear out the old persisted data from your container. Don't ask me how. If this is Tomcat 6 you can ignore the exception completely.I don't understand what you are saying.
    It sounds like you are saying that there is some residue from a previoius session that is not cleaned up for the current session. I do not think this is happening.
    The aes member and the only reference to the AESEncryption class is in my main session bean.

    I am working within the NetBeans IDE and using Glassfish 2.1.
    I can stop the server and the IDE, restart the IDE, do a clean and build and then run from within the NetBeans environment, which basically starts the server anew and deploys the application.
    In this context, there cannot be a prior session because the server was not running at the time the IDE was started.

    I can ignore the error within this environment and the application will run.
    However, I am concerned that this may be contributing to a more serious problem where my session bean that stores the program variables sometimes gets re-initialized when changing pages and loses the data in the session bean parameters.

    I am trying to get rid of any initialization errors to see if I can resolve the session bean re-initializing issue.
    Mainly, I am grabbing at straws, since I do not know how a session bean can be reinitilaized during a session.
    I have never had this problem before.
    It appears to be random - it does not always happen, but when it does, it is a very serious problem.

  • RELEVANCY SCORE 3.15

    DB:3.15:3.2.5 Classloader Prob? - Java.Lang.Noclassdeffounderror: Ja 1a



    I am calling my deployed EJB, say E1, from a remote client. The EJB method tries to instantiate one of my utils classes C1 which is in the jboss classpath using Class.forName(). That utils class has a method C1M1 which invokes another EJB E2 using its Local interfaces. E2 is not currently deployed - but I presume that should not matter since I am not yet calling the method C1M1 which invokes E2. But I find that I get the java.lang.NoClassDefFoundError: javax/ejb/EJBLocalHome for the Class.forName statement. When I comment out the C1M1 method or I add the jboss-j2ee.jar in the jboss classpath, everything works fine.1. Why should I get this error when I am not even calling the method C1M1 that has the erroneous call?2. Why is jboss not able to find the EJBLocalHome class which I presume is already included in its classpath?

    DB:3.15:3.2.5 Classloader Prob? - Java.Lang.Noclassdeffounderror: Ja 1a


    I am calling my deployed EJB, say E1, from a remote client. The EJB method tries to instantiate one of my utils classes C1 which is in the jboss classpath using Class.forName(). That utils class has a method C1M1 which invokes another EJB E2 using its Local interfaces. E2 is not currently deployed - but I presume that should not matter since I am not yet calling the method C1M1 which invokes E2. But I find that I get the java.lang.NoClassDefFoundError: javax/ejb/EJBLocalHome for the Class.forName statement. When I comment out the C1M1 method or I add the jboss-j2ee.jar in the jboss classpath, everything works fine.1. Why should I get this error when I am not even calling the method C1M1 that has the erroneous call?2. Why is jboss not able to find the EJBLocalHome class which I presume is already included in its classpath?

  • RELEVANCY SCORE 3.06

    DB:3.06:Why Does The Getchildcount() Method Return 0 7d


    I extend the sun's ViewHandler implementation class:
    class MyViewHandler extends ViewHandlerImpl
    {
    public void renderView(javax.faces.context.FacesContext context,
    javax.faces.component.UIViewRoot viewToRender)
    throws java.io.IOException,
    FacesException
    {
    if (viewToRender.getChldCount()==0) //why does first time the view be rendered it return 0 ???????
    return;
    else
    {
    try
    {
    ......
    ......
    //my code to do something
    }
    finally
    {
    super. renderView;
    }

    }
    }
    }

    DB:3.06:Why Does The Getchildcount() Method Return 0 7d

    That'd be feasible if the page had nothing but JSF content, but what about non-JSF content? You'd end up either processing it twice or ignoring it the second time around, and either would be bad.

    Believe me, this was not a problem casually ignored, and it is something being looked at carefully for coming versions of JSF and JSP.

    -- Adam Winer (EG member)

  • RELEVANCY SCORE 2.94

    DB:2.94:Managed Beans Initialization j9


    According to JWSTutorial, one can instantiate trees or graph of managed beans by declaring them in the faces-config.xml configuration file... Great, that's precisely what I need !

    But when I try with a litte test, I get this :

    javax.faces.FacesException: javax.servlet.ServletException: javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: 'TheTest'.
    com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:327)
    com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147)
    com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)here is my code :

    faces-config.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-nameTheTest/managed-bean-name
    managed-bean-classtest.AppTest/managed-bean-class
    managed-bean-scopeapplication/managed-bean-scope
    /managed-bean
    managed-bean
    managed-bean-namesessionTest/managed-bean-name
    managed-bean-classtest.SessionTest/managed-bean-class
    managed-bean-scopesession/managed-bean-scope
    managed-property
    property-nametest/property-name
    valueTheTest/value
    /managed-property
    /managed-bean
    /faces-configAppTest.java :

    package test;

    public class AppTest {

    private String test = "test";

    public String getTest() {
    return test;
    }

    public void setTest(String test) {
    this.test = test;
    }
    }SessionTest.java :

    package test;

    public class SessionTest {

    private AppTest test;

    public AppTest getTest() {
    return test;
    }

    public void setTest(AppTest test) {
    this.test = test;
    }
    }and finally, index.jsp :

    %@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %
    %@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %
    !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    html
    bodycenter
    f:view
    h:outputText value="#{sessionTest.test.test}"/
    /f:view
    /body
    /htmlit's the simplest example one could imagine, so I suppose I must have made a stupid mistake, or the tutorial has it wrong in some way...

    thx a lot in advance !

  • RELEVANCY SCORE 2.92

    DB:2.92:Org.Richgaces.Renderkit.Html 8j



    Hi, I am used rich 4.0.0.0.final (3.3.3.final to 4.0.0.final) I have the following error:

    Source Document: jar:file:/home/acabrera/.m2/repository/org/richfaces/ui/richfaces-components-ui/4.0.0.Final/richfaces-components-ui-4.0.0.Final.jar!/META-INF/faces-config.xml| Cause: Class 'org.richfaces.renderkit.html.QueueRenderer' is missing a runtime dependency: java.lang.NoClassDefFoundError: javax/faces/event/ComponentSystemEventListener

    my faces-config.xml is this:

    ?xml version="1.0" encoding="UTF-8"?

    faces-config version="1.2" 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"

    application

    view-handlercom.sun.facelets.FaceletViewHandler/view-handler

    !-- view-handlerorg.ajax4jsf.application.AjaxViewHandler/view-handler--

    message-bundlear.ong.padres.web.config.properties.messages/message-bundle

    !-- define el idioma --

    locale-config

    default-localees/default-locale

    /locale-config

    !--

    --

    /application

    thanks...

    DB:2.92:Org.Richgaces.Renderkit.Html 8j


    Remove this entry-

    context-param

    param-namejavax.faces.DISABLE_FACELET_JSF_VIEWHANDLER/param-name

    param-valuetrue/param-value

    /context-param

  • RELEVANCY SCORE 2.87

    DB:2.87:Problem Starting Application df



    HiI am using Rich Faces 3.2.0 SR1 with JSF 1.2 and J2EE 5.When I start the web app I get the following error : Can somebody help me understand the problem with this....-----------------------------------May 21, 2008 3:41:16 PM org.apache.catalina.core.AprLifecycleListener lifecycleEventINFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Java\jdk1.6.0_04\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\nls;C:\WINDOWS\system32\nls\ENGLISH;C:\Program Files\Common Files\Adaptec Shared\System;C:\oracle\bin;C:\oracle\ora92\bin;C:\Program Files\Novell\ZENworks\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\apache-ant-1.7.0\bin;C:\Java\jdk1.6.0_04\bin;C:\Program Files\ArcGIS\java\tools\ant\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\CVSNT\;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\nls;C:\WINDOWS\system32\nls\ENGLISH;C:\Program Files\Common Files\Adaptec Shared\System;C:\oracle\bin;C:\oracle\ora92\bin;C:\Program Files\Novell\ZENworks\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\apache-ant-1.7.0\bin;C:\Java\jdk1.6.0_04\bin;C:\Program Files\ArcGIS\java\tools\ant\bin;C:\Program Files\QuickTime\QTSystem\;C:\PROGRA~1\EXTRA!May 21, 2008 3:41:16 PM org.apache.coyote.http11.Http11BaseProtocol initINFO: Initializing Coyote HTTP/1.1 on http-8181May 21, 2008 3:41:16 PM org.apache.catalina.startup.Catalina loadINFO: Initialization processed in 1109 msMay 21, 2008 3:41:16 PM org.apache.catalina.core.StandardService startINFO: Starting service CatalinaMay 21, 2008 3:41:16 PM org.apache.catalina.core.StandardEngine startINFO: Starting Servlet Engine: Apache Tomcat/5.5.26May 21, 2008 3:41:16 PM org.apache.catalina.core.StandardHost startINFO: XML validation disabled- [ComponentRule]{faces-config/component} Merge(javax.faces.ViewRoot)- [ManagedBeanRule]{faces-config/managed-bean} Merge(mapContext1)- [ManagedBeanRule]{faces-config/managed-bean} Merge(mapContext2)- [ManagedBeanRule]{faces-config/managed-bean} Merge(esriWebSession)- [ManagedBeanRule]{faces-config/managed-bean} Merge(ags1)- [ManagedBeanRule]{faces-config/managed-bean} Merge(ags2)- [ManagedBeanRule]{faces-config/managed-bean} Merge(agsUser1)- [ManagedBeanRule]{faces-config/managed-bean} Merge(processMapBean)- [ManagedBeanRule]{faces-config/managed-bean} Merge(processMapBeanQs)- [ManagedBeanRule]{faces-config/managed-bean} Merge(bean)- Can't instantiate class: 'org.ajax4jsf.application.AjaxStateManager'.:org.ajax4jsf.application.AjaxStateManager:exception:null- Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListenerjava.lang.NoClassDefFoundError: javax/faces/component/ActionSource2 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1853) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:875) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1330) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) at java.lang.Class.getConstructor0(Class.java:2699) at java.lang.Class.newInstance0(Class.java:326) at java.lang.Class.newInstance(Class.java:308) at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:876) at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:925) at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:406) at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:328) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:448) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)Caused by: java.lang.ClassNotFoundException: javax.faces.component.ActionSource2 at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1363) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) ... 32 moreMay 21, 2008 3:41:19 PM com.esri.adf.web.util.ADFServletContextListener contextInitializedINFO: WebSpatialReference loaded.May 21, 2008 3:41:19 PM org.apache.catalina.core.StandardContext startSEVERE: Error listenerStartMay 21, 2008 3:41:19 PM org.apache.catalina.core.StandardContext startSEVERE: Context [/rail_hdw] startup failed due to previous errorsMay 21, 2008 3:41:19 PM com.esri.adf.web.util.ADFServletContextListener contextDestroyedINFO: Destroying WebApplication...May 21, 2008 3:41:19 PM com.esri.adf.web.util.ADFServletContextListener contextDestroyedINFO: WebApplication cleanly destroyed.May 21, 2008 3:41:20 PM org.apache.coyote.http11.Http11BaseProtocol startINFO: Starting Coyote HTTP/1.1 on http-8181May 21, 2008 3:41:21 PM org.apache.jk.common.ChannelSocket initINFO: JK: ajp13 listening on /0.0.0.0:8119May 21, 2008 3:41:21 PM org.apache.jk.server.JkMain startINFO: Jk running ID=0 time=0/203 config=nullMay 21, 2008 3:41:21 PM org.apache.catalina.storeconfig.StoreLoader loadINFO: Find registry server-registry.xml at classpath resourceMay 21, 2008 3:41:21 PM org.apache.catalina.startup.Catalina startINFO: Server startup in 4985 ms

    DB:2.87:Problem Starting Application df


    After some research into this forum I did the following changes and the previous error is gone but I have a new error message as below :The changes I have done ---1. Replaced commons-collections.jar with commons-collections-3.2.1.jar2. Replaced commons-beanutils.jar with latest 3 jars for beanutils3. Replaced commons-digester.jar with latest commons-digester-1.8.jarNow the new error is :- Exception starting filter richfacesjava.lang.ClassNotFoundException: org.ajax4jsf.Filter at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1363) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:207) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302) at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:78) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3635) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4222) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:448) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)May 21, 2008 4:19:05 PM org.apache.catalina.core.StandardContext startSEVERE: Error filterStartMay 21, 2008 4:19:05 PM org.apache.catalina.core.StandardContext startSEVERE: Context [/rail_hdw] startup failed due to previous errorsMay 21, 2008 4:19:05 PM com.esri.adf.web.util.ADFServletContextListener contextDestroyedINFO: Destroying WebApplication...May 21, 2008 4:19:05 PM com.esri.adf.web.util.ADFServletContextListener contextDestroyedINFO: WebApplication cleanly destroyed.May 21, 2008 4:19:05 PM org.apache.coyote.http11.Http11BaseProtocol startINFO: Starting Coyote HTTP/1.1 on http-8181May 21, 2008 4:19:05 PM org.apache.jk.common.ChannelSocket initINFO: JK: ajp13 listening on /0.0.0.0:8119May 21, 2008 4:19:05 PM org.apache.jk.server.JkMain startINFO: Jk running ID=0 time=0/47 config=nullMay 21, 2008 4:19:05 PM org.apache.catalina.storeconfig.StoreLoader loadINFO: Find registry server-registry.xml at classpath resourceMay 21, 2008 4:19:05 PM org.apache.catalina.startup.Catalina startINFO: Server startup in 3032 ms

  • RELEVANCY SCORE 2.82

    DB:2.82:Error Deploying Richfaces 3.3.3 Application In Jboss 6 fk



    Hi

    I have a java application that was targeted for a jboss 4.2 server; but now i need to deploy it in a jboss 6 server

    But everytime i try to do this, i get this error

    00:18:45,604 ERROR [[/davinci]] Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener: java.lang.LinkageError: loader constraint violation: when resolving overridden method "org.ajax4jsf.renderkit.ChameleonRenderKitFactory.getRenderKit(Ljavax/faces/context/FacesContext;Ljava/lang/String;)Ljavax/faces/render/RenderKit;" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, org/ajax4jsf/renderkit/ChameleonRenderKitFactory, and its superclass loader (instance of org/jboss/classloader/spi/base/BaseClassLoader), have different Class objects for the type javax/faces/context/FacesContext used in the signature

    what can be the problem ??

    DB:2.82:Error Deploying Richfaces 3.3.3 Application In Jboss 6 fk


    Hi

    I have a java application that was targeted for a jboss 4.2 server; but now i need to deploy it in a jboss 6 server

    But everytime i try to do this, i get this error

    00:18:45,604 ERROR [[/davinci]] Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener: java.lang.LinkageError: loader constraint violation: when resolving overridden method "org.ajax4jsf.renderkit.ChameleonRenderKitFactory.getRenderKit(Ljavax/faces/context/FacesContext;Ljava/lang/String;)Ljavax/faces/render/RenderKit;" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, org/ajax4jsf/renderkit/ChameleonRenderKitFactory, and its superclass loader (instance of org/jboss/classloader/spi/base/BaseClassLoader), have different Class objects for the type javax/faces/context/FacesContext used in the signature

    what can be the problem ??

  • RELEVANCY SCORE 2.74

    DB:2.74:File Adapter Not Working f1


    OK.....

    I've PM server on linux machine...I've deployed FileAdapter connector and restarted server...

    I've deployed ComplexStructure tutorial but in BPEL Console I've this error for ComplexStructure Process:

    Exception Name:
    Error while creating activation job

    Exception Description:
    An error occurred while attempting to instantiate the activation agent class "oracle.tip.adapter.fw.agent.jca.JCAActivationAgent". The

    exception reported was: "javax/resource/spi/BootstrapContext".

    Where is my error?

    Thank

    Andrea

  • RELEVANCY SCORE 2.71

    DB:2.71:Deployment Issue Jsc , 500 Servlet Exception Can't Instantiate Class fj


    Hi All,

    I have a sun tutorial for JSC which populates a dropdown list from an example travel data base provided with JSC2.

    It populates a dropdown list with names from the DB and when the button is clicked it says hello to the selected name.

    It compiles and runs within the IDE on http://localhost:28080/HelloDB3/faces/Page1.jsp

    However when I deploy a .war file to Resin 2.1.16 running on http://localhost:8080/HelloDB3/faces/Page1.jsp

    I get the following error :

    javax.faces.FacesException: javax.faces.FacesException: Can't instantiate
    class: 'hellodb3.Page1'.. class hellodb3.Page1 : javax.faces.el.EvaluationException:
    java.lang.NullPointerException

    I have checked that hellodb3.Page1 exists .

    If I navigate to : http://localhost:8080/HelloDB3/ I get a directory and I can navigate to the .css file for the application but nat Page1.jsp

    Any help very welcome.

    Regards and Merry Christmas

    Jim Ascroft

    DB:2.71:Deployment Issue Jsc , 500 Servlet Exception Can't Instantiate Class fj

    Hi All,

    I have a sun tutorial for JSC which populates a dropdown list from an example travel data base provided with JSC2.

    It populates a dropdown list with names from the DB and when the button is clicked it says hello to the selected name.

    It compiles and runs within the IDE on http://localhost:28080/HelloDB3/faces/Page1.jsp

    However when I deploy a .war file to Resin 2.1.16 running on http://localhost:8080/HelloDB3/faces/Page1.jsp

    I get the following error :

    javax.faces.FacesException: javax.faces.FacesException: Can't instantiate
    class: 'hellodb3.Page1'.. class hellodb3.Page1 : javax.faces.el.EvaluationException:
    java.lang.NullPointerException

    I have checked that hellodb3.Page1 exists .

    If I navigate to : http://localhost:8080/HelloDB3/ I get a directory and I can navigate to the .css file for the application but nat Page1.jsp

    Any help very welcome.

    Regards and Merry Christmas

    Jim Ascroft

  • RELEVANCY SCORE 2.70

    DB:2.70:Dynamic Faces Components + Apache Tomcat aa


    Hello folks!

    I developed a web application with the Woodstock framework, Visual Web Java Server Faces.
    This application runs on an Apache Tomcat server. Now I want to integrate some ajax functions using the Dynamic Faces Components.

    I copied the AjaxChatRoom project from the tutorials on netbeans.org to see how to handle with this Ajax framework. This application runs without any problems when I choose the glassfish server. However, it couldn't even started when I choose the Apache Tomcat server.

    The errors were:

    1) log:

    Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
    java.lang.NoClassDefFoundError: javax/faces/application/StateManagerWrapper

    2) directly:

    Parse Error at line 27 column 19: Document root element "faces-config", must match DOCTYPE root "null".
    org.xml.sax.SAXParseException: Document root element "faces-config", must match DOCTYPE root "null".

    Is it generally possible to run an application using this ajax framework (Dynamic Faces Components 0.2) on an Apache Tomcat server ?

    DB:2.70:Dynamic Faces Components + Apache Tomcat aa

    Raymond has a good point. Please answer his question and handle his suggestion.

  • RELEVANCY SCORE 2.69

    DB:2.69:Error 500: Can't Instantiate Class zp


    Hi friends,

    When I call the class using ActionListener from my JSF file.. I got this error:
    Error 500: Can't instantiate class: 'Can't instantiate class: 'com.ex.RegisterController'.'.

    I dont know how to clear it..

    This is my JSF file(Register.jsp)
    f:view
    h:form styleClass="form" id="form1"
    h:commandLink styleClass="selectlink" id="link1"
    actionListener="#{RegisterController.process}"
    h utputText value="Login"/h utputText
    /h:commandLink
    /h:form
    /f:viewThis is my RegisterController.java file:

    public abstract class RegisterController implements ActionListener {

    public void process(ActionEvent e)throws AbortProcessingException{
    System.out.println("entered");
    }
    }I have defined the class in the faces-config.xml also..

    can you people help me out..

    DB:2.69:Error 500: Can't Instantiate Class zp

    Hi,

    Thanks a Lot for your reply...

    Actually I tried to instantiate a Abstract class..

    If I remove the abstract keyword from my class..Its working fine..

    Thanks and Regards,
    Joe

  • RELEVANCY SCORE 2.68

    DB:2.68:Ie5.0 Security 73


    Now I am getting new exception when trying to run the client in the browser. The exception from the java console:

    Creating an initial context
    Naming exception occurred!
    Cause: This may be an unknown URL, or some classes required by the EJB are missing from your classpath, or your OAS host is short of resources
    Suggestion: Check the components of the URL, and make sure your project includes a library containing the EJB .jar files generated by the deployment utility.
    javax.naming.NoInitialContextException: Cannot instantiate class: oracle.oas.naming.jndi.RemoteInitCtxFactory. Root exception is java.lang.SecurityException: java/security/AccessController.doPrivileged: Only fully trusted classes can have native methods as members.
    at java/security/AccessController.doPrivileged
    at com/sun/naming/internal/VersionHelper12.getContextClassLoader
    at com/sun/naming/internal/VersionHelper12.loadClass
    at javax/naming/spi/NamingManager.getInitialContext
    at javax/naming/InitialContext.getDefaultInitCtx
    at javax/naming/InitialContext.init
    at javax/naming/InitialContext.init
    at Project/ProjectApplet.getGenericAppMod
    at Project/ProjectApplet.initBC4J
    at Project/ProjectApplet.init
    at com/ms/applet/AppletPanel.securedCall0
    at com/ms/applet/AppletPanel.securedCall
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.run
    at java/lang/Thread.run
    com.ms.security.SecurityExceptionEx[Project/ProjectApplet.getGenericAppMod]
    at com/ms/security/PolicyEngine.deepCheck
    at com/ms/security/PolicyEngine.checkPermission
    at com/ms/security/StandardSecurityManager.chk
    at com/ms/security/StandardSecurityManager.checkExit
    at java/lang/Runtime.exitHelper
    at java/lang/System.exit
    at Project/ProjectApplet.getGenericAppMod
    at Project/ProjectApplet.initBC4J
    at Project/ProjectApplet.init
    at com/ms/applet/AppletPanel.securedCall0
    at com/ms/applet/AppletPanel.securedCall
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.run
    at java/lang/Thread.run
    null
    com.ms.security.SecurityExceptionEx[Project/ProjectApplet.getGenericAppMod]
    at com/ms/security/PolicyEngine.deepCheck
    at com/ms/security/PolicyEngine.checkPermission
    at com/ms/security/StandardSecurityManager.chk
    at com/ms/security/StandardSecurityManager.checkExit
    at java/lang/Runtime.exitHelper
    at java/lang/System.exit
    at Project/ProjectApplet.getGenericAppMod
    at Project/ProjectApplet.initBC4J
    at Project/ProjectApplet.init
    at com/ms/applet/AppletPanel.securedCall0
    at com/ms/applet/AppletPanel.securedCall
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.run
    at java/lang/Thread.run

    Any ideas? Please, this getting very urgent!!!

    DB:2.68:Ie5.0 Security 73

    Now I am getting new exception when trying to run the client in the browser. The exception from the java console:

    Creating an initial context
    Naming exception occurred!
    Cause: This may be an unknown URL, or some classes required by the EJB are missing from your classpath, or your OAS host is short of resources
    Suggestion: Check the components of the URL, and make sure your project includes a library containing the EJB .jar files generated by the deployment utility.
    javax.naming.NoInitialContextException: Cannot instantiate class: oracle.oas.naming.jndi.RemoteInitCtxFactory. Root exception is java.lang.SecurityException: java/security/AccessController.doPrivileged: Only fully trusted classes can have native methods as members.
    at java/security/AccessController.doPrivileged
    at com/sun/naming/internal/VersionHelper12.getContextClassLoader
    at com/sun/naming/internal/VersionHelper12.loadClass
    at javax/naming/spi/NamingManager.getInitialContext
    at javax/naming/InitialContext.getDefaultInitCtx
    at javax/naming/InitialContext.init
    at javax/naming/InitialContext.init
    at Project/ProjectApplet.getGenericAppMod
    at Project/ProjectApplet.initBC4J
    at Project/ProjectApplet.init
    at com/ms/applet/AppletPanel.securedCall0
    at com/ms/applet/AppletPanel.securedCall
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.run
    at java/lang/Thread.run
    com.ms.security.SecurityExceptionEx[Project/ProjectApplet.getGenericAppMod]
    at com/ms/security/PolicyEngine.deepCheck
    at com/ms/security/PolicyEngine.checkPermission
    at com/ms/security/StandardSecurityManager.chk
    at com/ms/security/StandardSecurityManager.checkExit
    at java/lang/Runtime.exitHelper
    at java/lang/System.exit
    at Project/ProjectApplet.getGenericAppMod
    at Project/ProjectApplet.initBC4J
    at Project/ProjectApplet.init
    at com/ms/applet/AppletPanel.securedCall0
    at com/ms/applet/AppletPanel.securedCall
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.run
    at java/lang/Thread.run
    null
    com.ms.security.SecurityExceptionEx[Project/ProjectApplet.getGenericAppMod]
    at com/ms/security/PolicyEngine.deepCheck
    at com/ms/security/PolicyEngine.checkPermission
    at com/ms/security/StandardSecurityManager.chk
    at com/ms/security/StandardSecurityManager.checkExit
    at java/lang/Runtime.exitHelper
    at java/lang/System.exit
    at Project/ProjectApplet.getGenericAppMod
    at Project/ProjectApplet.initBC4J
    at Project/ProjectApplet.init
    at com/ms/applet/AppletPanel.securedCall0
    at com/ms/applet/AppletPanel.securedCall
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.run
    at java/lang/Thread.run

    Any ideas? Please, this getting very urgent!!!

  • RELEVANCY SCORE 2.63

    DB:2.63:Not Able To Access Java Bean On The Faces Jsp 3f


    I am returning a Java Bean from my controller class which I need to display on my Faces JSP.

    I error I get is
    Error 500: ServletException in '/template/main.jsp': ServletException in '/body/memberSearchResultsBody.jsp': javax/servlet/jsp/jstl/sql/Result. The stack trace is at the end of this message

    Environment : WSAD 5.1.2
    Faces Implementation: Apache MyFaces 1.0.9

    The following is the code snippet which is in the Controller class to set the bean on the facesContext

    ValueBinding responseBinding = facesContext.getApplication().createValueBinding("#{MemberResultSet}");
    responseBinding.setValue(facesContext,memberResultSet);The following is code which is on the Faces JSP

    h:dataTable width="100%" cellspacing="1" headerClass="tableColumnHeading" value="#{MemberResultSet}" var="searchResult"
    h:column
    f:facet name="header"
    h:outputText value=" " /
    /f:facet
    /h:column
    h:column
    f:facet name="header"
    h:outputLink value="#" styleClass="hyperLink"
    h:outputText value="Member ID" /
    /h:outputLink
    /f:facet
    h:outputText value="#{searchResult._memberID}" /
    /h:column
    /h:datatableThe following is the faces-config.xml
    managed-bean
    managed-bean-nameMemberResultSet/managed-bean-name
    managed-bean-classcom.aetna.webMEA.castorbeans.MemberResultSet/managed-bean-class
    managed-bean-scopesession/managed-bean-scope
    /managed-beanQuestions:
    1. Is this the correct way to access the bean in the datatable
    2. If someone has come across this problem please let me know.

    [6/3/05 16:40:05:241 EDT] 4a29a6d WebGroup E SRVE0026E: [Servlet Error]-[ServletException in #39;/template/main.jsp#39;: ServletException in #39;/body/memberSearchResultsBody.jsp#39;: javax/servlet/jsp/jstl/sql/Result]: javax.faces.FacesException: ServletException in '/template/main.jsp': ServletException in '/body/memberSearchResultsBody.jsp': javax/servlet/jsp/jstl/sql/Result
    at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:411)
    at org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl.dispatch(JspTilesViewHandlerImpl.java:220)
    at org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl.renderView(JspTilesViewHandlerImpl.java:206)
    at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)

    DB:2.63:Not Able To Access Java Bean On The Faces Jsp 3f

    Can let me know if there is an answer to the problem below

  • RELEVANCY SCORE 2.63

    DB:2.63:Startupcontextlistener zf


    Whenever i am running tomcat through eclipse i am getting the following error:
    SEVERE: Error configuring application listener of class org.apache.myfaces.webapp.StartupServletContextListener
    java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener

    I have the myfaces-api and my-faces impl.jar in my classpath? I searched the forum but to no avail. Plz help..

    DB:2.63:Startupcontextlistener zf

    I reinstalled tomcat and trying to run the tomcat after reinstalling jars in java classpath. But still getting the same error.

  • RELEVANCY SCORE 2.57

    DB:2.57:Configurationexception On Deploying (Linux Only) 3x


    Hello Everyone,

    when I run my web app on my Win7 + Tomcat 6.0.32 + JDK 1.6.0_18 + Mojarra 2.0.6, everything is OK. When the final WAR is deployed into Java hosting (Linux + tomcat 6.0.20 + JDK 1.6.0_22), I am getting the following errors
    INFO: Undeploying context [/dyschart]
    25.7.2011 14:08:40 org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive dyschart.war
    25.7.2011 14:08:41 com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initializing Mojarra 2.0.4 (FCS b09) for context '/dyschart'
    25.7.2011 14:08:42 com.sun.faces.config.ConfigManager initialize
    INFO: Unsanitized stacktrace from failed start...
    com.sun.faces.config.ConfigurationException:
    Source Document: jar:file:/users/system/tomcat_6/lib/struts-faces-1.3.8.jar!/META-INF/faces-config.xml
    Cause: Class 'org.apache.struts.faces.application.ActionListenerImpl' is missing a runtime dependency: java.lang.NoClassDefFoundError: javax/faces/event/ActionListener
    at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:279)There is no struts-faces jar in my Windows tomcat instance so it is hard to me to debug it (to reproduce this problem). There is a shared tomcat at this hosting so I cannot test removing this jar (I think it causes some kind of conflicts - that javax/faces/event/ActionListener is included in jsf-api.jar so I don't know why these complaints appear...).

    Has anybody any idea how to solve this?

    Regards,
    Jan

    DB:2.57:Configurationexception On Deploying (Linux Only) 3x

    Finally my account was migrated to the Tomcat 7 without any additional libraries and it works like a charm. So I have to agree that these additional libraries added there as 'added value' turned out to be pain nowadays. I hope it is good lesson for my host company that this approach is a highway to hell.

  • RELEVANCY SCORE 2.57

    DB:2.57:Cannot Instantiate Class 'Com.Test.Smot.Admin.Ui.Backing.Bkbean' - Why ? zp


    Hi All

    When we deploy our ADF web app to standalone 10.3.6 WLS, we get this error -

    May 24, 2012 6:42:35 PM PDT Warning oracle.adfinternal.view.faces.lifecycle.LifecycleImpl BEA-000000 ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6
    javax.faces.FacesException: javax.servlet.ServletException: OracleJSP error:
    javax.faces.FacesException: javax.faces.FacesException: oracle.adf.controller.ControllerException: ADFC-10001: cannot instantiate class 'com.test.smot.admin.ui.backing.BKBean'
    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:415)
    at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
    at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
    at oracle.adfinternal.view.faces.config.rich.RecordRequestAttributesDuringDispatch.dispatch(RecordRequestAttributesDuringDispatch.java:44)
    :
    :
    Caused By: javax.servlet.ServletException: OracleJSP error:
    javax.faces.FacesException: javax.faces.FacesException: oracle.adf.controller.ControllerException: ADFC-10001: cannot instantiate class 'com.test.smot.admin.ui.backing.BKBean'

    Is this to do with the war, ear or jar file not deployed to the right path ? If so, could you share what steps we could configure in JDev 11.1.1.5 to fix this ?
    If not, how can we troubleshoot further ?
    We can find our class com.test.smot.admin.ui.backing.BKBean in the war file.

    This issue is NOT seen with Integrated WLS in JDev

    Thanks

    Edited by: 898644 on May 24, 2012 7:22 PM

    DB:2.57:Cannot Instantiate Class 'Com.Test.Smot.Admin.Ui.Backing.Bkbean' - Why ? zp

    Hi Frank

    Can I send you the stack trace?
    It's too big to fit in here on the forum.

    Thanks

  • RELEVANCY SCORE 2.56

    DB:2.56:Custom Viewhandler Does Not Work With Jboss As 7.1.1 a1



    I want to implement a custom ViewHandler. Currently I'm only forwarding all calls to the default Viewhandler, but if I enable this ViewHandler in my faces-config.xml, the preRenderView event type (and maybe other functionality) is broken.

    Does anybody no what I'm doing wrong?

    I'm using JBoss AS 7.1.1 and PrimeFaces 3.5.

    Thanks.

    public class ReverseProxyViewHandler extends ViewHandler {

    ViewHandler defaultHandler;

    public ReverseProxyViewHandler(ViewHandler defaultHandler) {
    this.defaultHandler = defaultHandler;
    }

    @Override
    public Locale calculateLocale(FacesContext context) {
    return defaultHandler.calculateLocale(context);
    }

    @Override
    public String calculateRenderKitId(FacesContext context) {
    return defaultHandler.calculateRenderKitId(context);
    }

    @Override
    public UIViewRoot createView(FacesContext context, String viewId) {
    return defaultHandler.createView(context, viewId);
    }

    @Override
    public String getActionURL(FacesContext context, String path) {
    return defaultHandler.getActionURL(context, path);
    }

    @Override
    public String getResourceURL(FacesContext context, String path) {
    return defaultHandler.getResourceURL(context, path);
    }

    @Override
    public void renderView(FacesContext context, UIViewRoot viewToRender) throws IOException, FacesException {
    defaultHandler.renderView(context, viewToRender);
    }

    @Override
    public UIViewRoot restoreView(FacesContext context, String viewId) {
    return defaultHandler.restoreView(context, viewId);
    }

    @Override
    public void writeState(FacesContext context) throws IOException {
    defaultHandler.writeState(context);
    }

    }

    DB:2.56:Custom Viewhandler Does Not Work With Jboss As 7.1.1 a1


    I want to implement a custom ViewHandler. Currently I'm only forwarding all calls to the default Viewhandler, but if I enable this ViewHandler in my faces-config.xml, the preRenderView event type (and maybe other functionality) is broken.

    Does anybody no what I'm doing wrong?

    I'm using JBoss AS 7.1.1 and PrimeFaces 3.5.

    Thanks.

    public class ReverseProxyViewHandler extends ViewHandler {

    ViewHandler defaultHandler;

    public ReverseProxyViewHandler(ViewHandler defaultHandler) {
    this.defaultHandler = defaultHandler;
    }

    @Override
    public Locale calculateLocale(FacesContext context) {
    return defaultHandler.calculateLocale(context);
    }

    @Override
    public String calculateRenderKitId(FacesContext context) {
    return defaultHandler.calculateRenderKitId(context);
    }

    @Override
    public UIViewRoot createView(FacesContext context, String viewId) {
    return defaultHandler.createView(context, viewId);
    }

    @Override
    public String getActionURL(FacesContext context, String path) {
    return defaultHandler.getActionURL(context, path);
    }

    @Override
    public String getResourceURL(FacesContext context, String path) {
    return defaultHandler.getResourceURL(context, path);
    }

    @Override
    public void renderView(FacesContext context, UIViewRoot viewToRender) throws IOException, FacesException {
    defaultHandler.renderView(context, viewToRender);
    }

    @Override
    public UIViewRoot restoreView(FacesContext context, String viewId) {
    return defaultHandler.restoreView(context, viewId);
    }

    @Override
    public void writeState(FacesContext context) throws IOException {
    defaultHandler.writeState(context);
    }

    }

  • RELEVANCY SCORE 2.56

    DB:2.56:Duplicate Class Definition Error While Invoking Ejb From Adf Project kc


    Hi,

    I am using Jdeveloper TP3 and facing the following problem.

    I have built an EJB project and am ran them successfully in the embedded OC4J via a standalone java program.

    Now I created another project with ADF capabilities and when I tried to ping the EJB i get the following exception

    The application named, current-workspace-app, could not start due to an error.
    duplicate class definition: javax/faces/context/FacesContextFactory Invalid class: javax.faces.context.FacesContextFactory Loader

    This is happenning due to class conflicts between javaee.jar and trinidad-impl.jar/adf-richclient-impl.jar.
    Is there any way of bypassing this class loader issue?

    DB:2.56:Duplicate Class Definition Error While Invoking Ejb From Adf Project kc

    Hi,

    actually I didn' try the JNDI lookup but used resource injection instead

    In a JSF managed bean I use

    @EJB Ejb30SessionFacadeLocal myLocalInterface;

    public SortableModel getTableModel() {

    List rows = new ArrayListEmployees();
    rows = myLocalInterface.queryEmployeesFindAll();
    this.tableModel = new SortableModel(rows);
    return tableModel;
    }

    Its a EJB 3.0 session bean that accesses a Local interface. However, if the remote is on the same server then I would think that using @EJB Ejb30SessionFacadeRemote myRemoteInterface; does similar

    Frank

  • RELEVANCY SCORE 2.56

    DB:2.56:Have Upgraded To 3.3.0 Ga - Receievd Nosuchmethoderror For P 83



    I was hoping to use the 'extendedDataTable' component in 3.3 thus upgrade my app to this lib set. I had used v 3.1.4 previously. I am using jsf-1.2_04 as my JSF library along with facelets 1.1.14. When attempting to run I now see this error:[2/26/09 15:44:33:448 EST] 00000021 WebApp E [Servlet Error]-[Faces Servlet]: java.lang.NoSuchMethodError: javax/faces/component/UIViewRoot.addPhaseListener(Ljavax/faces/event/PhaseListener;)V at org.ajax4jsf.application.AjaxViewHandler.createView(AjaxViewHandler.java:94) at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:165) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:220) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:91) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)I validated my class loader configuration in my WebSphere 6.1 is App Class Loader 'first'. Any thoughts or suggestions?

    DB:2.56:Have Upgraded To 3.3.0 Ga - Receievd Nosuchmethoderror For P 83


    To nbelaevski,You are absolutely correct. I utilized the class loader viewer on my WebSphere install and saw that it was pulling jsf from the WebSphere jars which, of course, was the 1.1 version. I was changing the class loader policy but not in the correct manner. I found this tech note: http://wiki.apache.org/myfaces/Websphere_Installationthat explained exactly how to change it. I followed these instructions and the error cleared. Thanks.

  • RELEVANCY SCORE 2.56

    DB:2.56:Richfaces Migration m9



    Hi,

    I want to migrate richfaces 3.3 to richfaces m4.

    i m using jboss server5

    i added all the corresponding jar

    whether google-guava 6.0 jar need ?

    when i deply my application i m getting this error

    "

    Source Document: vfszip:/C:/jboss-5.0.0.GA/server/default/deploy/Richfaces4.war/WEB-INF/lib/richfaces-components-ui-4.0.0.20101110-M4-sources.jar/META-INF/faces-config.xml

    Cause: Class 'org.richfaces.renderkit.html.AttachQueueRenderer' is missing a runtime dependency: java.lang.NoClassDefFoundError: javax/faces/event/ComponentSystemEventListener

    "

    pl help

    DB:2.56:Richfaces Migration m9


    Hi,

    You should be using JSF 2 because RF 4 doesn't work with 1.2.

  • RELEVANCY SCORE 2.56

    DB:2.56:Access Another Class' Property Value That Is Defined In The Faces-Config? ss


    I have a private property "dataTransferType" with public getter and setter in the DataFile class. The initial value of the "dataTransferType" is defined in the faces-config.xml file. I want to get the "initial value" of the "dataTransferType" in another class and the compiler does not like the way I access this property.

    Here is the snippet of the DataFile class, which shows the declaration and the getter and setter for the property:
    public class DataFile implements java.io.Serializable
    {
    private String dataTransferType;

    public DataFile(){}

    public DataFile( String aDataTransferType )
    {
    this.dataTransferType = aDataTransferType;
    }

    public String getDataTransferType()
    {
    return dataTransferType;
    }

    public void setDataTransferType( String dataTransferType )
    {
    this.dataTransferType = dataTransferType;
    }
    .....
    }Here is the way that the initial value of the "dataTransferPropery" is set in the faces-config.xml file:
    managed-bean
    managed-bean-namedataFile/managed-bean-name
    managed-bean-classpropertyBeans.DataFile/managed-bean-class
    managed-bean-scopesession/managed-bean-scope
    managed-property
    property-namedataTransferType/property-name
    property-classjava.lang.String/property-class
    valueimportFile/value
    /managed-property
    /managed-beanNow, in another class FileManagementBean, I first instantiate the DataFile class
    private DataFile datafile;and then in the constructor of the FileManagementBean I tried to access the initial value of the property "dataTransferType":
    this.recordItems = this.getRecordsList( datafile.dataTransferType );The compiler did not like it at all.
    But, if I arbitrary introduced a String in the FileManagementBean:
    String defaultSelectedDataTransferType = "importFile";
    ......
    ......
    this.recordItems = this.getRecordsList( defaultSelectedDataTransferType );My code worked as I had expected without any problem.

    DB:2.56:Access Another Class' Property Value That Is Defined In The Faces-Config? ss

    Thanks for all your attention.

    The runtime error is rather strange:

    javax.servlet.ServletException: javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: 'actions.DataManagementBean'.. class actions.DataManagementBean : java.lang.NullPointerException

    The DataManagementBean is the class that accesses the property "dataTransferType" in the DataFile class. And the initial value of the "dataTransferType" is defined in the faces-config.xml file.

    If I arbitrarily introduced a String value in the DataManagementBean:
    String defaultSelectedDataTransferType = "importFile"and in the DataManagementBean's constructor, I use this statement:
    this.recordItems = this.getRecordsList( defaultSelectedDataTransferType );Things worked as I had expected without problem. But, I think this is not an elegant way of coding it. Because there is a pre-defined value of dataTransferType in the faces-config.xml file, I should access it from there.
    But, when I specify:
    this.recordItems = this.getRecordsList( datafile.getDataTransferType() );The DataManagementBean cannot even be instantiated!
    In my faces-config.xml file, I have:
    ......
    managed-bean
    managed-bean-namedataManagementBean/managed-bean-name
    managed-bean-classactions.DataManagementBean/managed-bean-class
    managed-bean-scopesession/managed-bean-scope
    managed-property
    property-namedatafile/property-name
    property-classpropertyBeans.DataFile/property-class
    value#{dataFile}/value
    /managed-property
    /managed-bean
    managed-bean
    managed-bean-namedataFile/managed-bean-name
    managed-bean-classpropertyBeans.DataFile/managed-bean-class
    managed-bean-scopesession/managed-bean-scope
    managed-property
    property-namedataTransferType/property-name
    property-classjava.lang.String/property-class
    valueimportFile/value
    /managed-property
    /managed-bean
    ......

  • RELEVANCY SCORE 2.55

    DB:2.55:Error When Deploying To Oracle App Server 9k


    Hi

    Issue 1)

    I created a new web project using JSF in JDeveloper 10.1.3.4.
    When I deploy to the server (10.1.3.4) using the Enterprise manager, I get following error:
    [May 11, 2009 2:45:53 PM] Exception: NoClassDefFoundError: javax/faces/FacesException
    [May 11, 2009 2:45:53 PM] Operation failed with error: javax/faces/FacesException

    Can anybody let me know if I am missing any libraries to be included during deploy time?

    Issue 2)

    I tried deploying another application using struts. I created this project in JDeveloper using New Web Project.

    When the application loads, I get following error:
    09/05/11 12:54:39.475 airportweather: Error preloading servlet

    javax.servlet.ServletException: Error instantiating servlet 'action'. Servlet class org.apache.struts.action.ActionServlet not found
    in web-application airportweather
    at com.evermind.server.http.HttpApplication.servletClassNotFound(HttpApplication.java:4886)
    at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4852)
    at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4754)
    at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4942)
    at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1144)
    at com.evermind.server.http.HttpApplication.init(HttpApplication.java:741)

    I have been following the steps to deploy from following page:
    Deploying a Web Application to Oracle Application Server 10g
    http://www.oracle.com/technology/obe/obe1013jdev/deployment/deployment.htm#t0s3

    The struts project which is deployed does not contain orion-web.xml or orion-application.xml.

    Appreciate if anyone can help me.

    Thanks
    Badri

    DB:2.55:Error When Deploying To Oracle App Server 9k

    Please see the following thread. I believe it may help you with your deployment issues.

    Unable to bind web applications during deployment

    Tony

  • RELEVANCY SCORE 2.55

    DB:2.55:Oracle Webcentre Framework Tutorial - Deployment Error c3


    Hi,
    I am currently running through the Oracle WebCentre Framework Tutorial (Chapter 3 - Building and Testing your first Portlet) using the latest version of JDeveloper (10.1.3.2) and deploying to MyLocalOC4J (included in JDeveloper).

    The first time I deploy the portlet the deployment finishes with no errors.

    After creating the JSP Page (MyPage.jpx) and making the subsequent code changes as specified in the tutorial, when I go to redeploy the portlet to MyLocalOC4J I get the following error:

    Binding web application(s) to site default-web-site begins...
    Binding TutorialPortlets web-module for application TutorialPortlets to site default-web-site under context root TutorialPortlets
    Exception: NoClassDefFoundError: javax/faces/FacesException
    Operation failed with error:
    javax/faces/FacesException

    Deployment failed
    Elapsed time for deployment: 1 minute, 12 seconds

    This error is obviously pointing to a missing jar file somewhere. Does anyone know how to fix this issue ?

    Thanks.

    DB:2.55:Oracle Webcentre Framework Tutorial - Deployment Error c3

    Hi,
    No, the Portlet Faces Bridge was missing. Issue has now been resolved.

    Thanks.

  • RELEVANCY SCORE 2.55

    DB:2.55:Can't Instantiate The Backing Bean 18


    In, RAD, I created 2 Faces jsp files.
    One file is a login file (Login.jsp) and the other one is just a simple place holder saying 'hi'.
    Both had backing beans.(by default in RAD)
    Both get displayed on the web browser when I ran it on the server.

    But when I click the submit button, i get an error saying, "ApplicationIm E com.sun.faces.application.ApplicationImpl Can't instantiate class: 'pagecode.Login'."

    DB:2.55:Can't Instantiate The Backing Bean 18

    Do you have a public constructor in your BackingBean? (Not static nor private)

  • RELEVANCY SCORE 2.53

    DB:2.53:Maven Errors When Adding Navigation Dependencies 7s



    Hi

    I'm following the documentation on http://docs.jboss.org/errai/2.2.0.Final/errai/reference/html/sid-54493676.html

    I am using 2.2.0.Final

    And then when I run: mvn clean install I get the following.

    Can anyone help?

    [INFO] Scanning for projects...

    [INFO]

    [INFO] ------------------------------------------------------------------------

    [INFO] Building firestorm-app 1.0-SNAPSHOT

    [INFO] ------------------------------------------------------------------------

    [INFO]

    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ firestorm-app ---

    [INFO] Deleting C:\Magick\dev\app.ui\firestorm-app\target

    [INFO] Deleting C:\Magick\dev\app.ui\firestorm-app\src\main\webapp\WEB-INF\classes

    [INFO] Deleting C:\Magick\dev\app.ui\firestorm-app (includes = [www-test/**, .gwt/**, .errai/**, src/main/webapp/app/**, src/main/webapp/WEB-INF/deploy/**, src/main/webapp/WEB-INF/lib/**, src/main/webapp/WEB-INF/classes/**, **/gwt-unitCache/**, **/*.JUnit/**], excludes = [])

    [INFO]

    [INFO] --- gwt-maven-plugin:2.4.0:clean (gwt-clean) @ firestorm-app ---

    [INFO] auto discovered modules [org.company.firestorm.App]

    [INFO]

    [INFO] --- jacoco-gwt-maven-plugin:0.5.4.201202141554:prepare-agent (jacoco-gwt-prepare-agent) @ firestorm-app ---

    [INFO] argLine set to -javaagent:C:\Users\Anton\.m2\repository\org\jboss\errai\jacoco-gwt-maven-plugin\0.5.4.201202141554\jacoco-gwt-maven-plugin-0.5.4.201202141554.jar=snapshotDirectory=C:\Magick\dev\app.ui\firestorm-app\target\snapshot-classes,snapshotClassLoaders=*gwt* -javaagent:C:\Users\Anton\.m2\repository\org\jacoco\org.jacoco.agent\0.5.4.201111111111\org.jacoco.agent-0.5.4.201111111111-runtime.jar=destfile=C:\Magick\dev\app.ui\firestorm-app\target\jacoco.exec

    [INFO]

    [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ firestorm-app ---

    [debug] execute contextualize

    [INFO] Using 'UTF-8' encoding to copy filtered resources.

    [INFO] Copying 6 resources

    [INFO]

    [INFO] --- gwt-maven-plugin:2.4.0:resources (gwt-compile) @ firestorm-app ---

    [INFO] auto discovered modules [org.company.firestorm.App]

    [INFO] 11 source files from GWT module org.company.firestorm.App

    [INFO]

    [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ firestorm-app ---

    [INFO] Compiling 12 source files to C:\Magick\dev\app.ui\firestorm-app\src\main\webapp\WEB-INF\classes

    [INFO]

    [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ firestorm-app ---

    [debug] execute contextualize

    [INFO] Using 'UTF-8' encoding to copy filtered resources.

    [INFO] Copying 3 resources

    [INFO]

    [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ firestorm-app ---

    [INFO] Nothing to compile - all classes are up to date

    [INFO]

    [INFO] --- maven-surefire-plugin:2.5:test (default-test) @ firestorm-app ---

    [INFO] Tests are skipped.

    [INFO]

    [INFO] --- gwt-maven-plugin:2.4.0:compile (gwt-compile) @ firestorm-app ---

    [INFO] auto discovered modules [org.company.firestorm.App]

    [INFO] Compiling module org.company.firestorm.App

    [INFO] Scanning for additional dependencies: jar:file:/C:/Users/Anton/.m2/repository/org/jboss/errai/errai-ioc/2.2.0.Final/errai-ioc-2.2.0.Final.jar!/org/jboss/errai/ioc/client/Container.java

    [INFO] Computing all possible rebind results for 'org.jboss.errai.ioc.client.QualifierEqualityFactory'

    [INFO] Rebinding org.jboss.errai.ioc.client.QualifierEqualityFactory

    [INFO] Invoking generator org.jboss.errai.ioc.rebind.ioc.bootstrapper.QualifierEqualityFactoryGenerator

    [INFO] Generating Extensions Bootstrapper...

    [ERROR] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

    [ERROR] SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

    [ERROR] java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder

    [ERROR] at org.slf4j.LoggerFactory.getSingleton(LoggerFactory.java:230)

    [ERROR] at org.slf4j.LoggerFactory.bind(LoggerFactory.java:121)

    [ERROR] at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:112)

    [ERROR] at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:275)

    [ERROR] at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:248)

    [ERROR] at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:261)

    [ERROR] at org.jboss.errai.codegen.meta.impl.AbstractMetaClass.clinit(AbstractMetaClass.java:54)

    [ERROR] at org.jboss.errai.codegen.meta.MetaClassFactory.createOrGet(MetaClassFactory.java:250)

    [ERROR] at org.jboss.errai.codegen.meta.MetaClassFactory.get(MetaClassFactory.java:130)

    [ERROR] at org.jboss.errai.codegen.util.GenUtil.clinit(GenUtil.java:625)

    [ERROR] at org.jboss.errai.codegen.Context.init(Context.java:65)

    [ERROR] at org.jboss.errai.codegen.Context.create(Context.java:94)

    [ERROR] at org.jboss.errai.codegen.builder.impl.ClassBuilder.define(ClassBuilder.java:73)

    [ERROR] at org.jboss.errai.ioc.rebind.ioc.bootstrapper.QualifierEqualityFactoryGenerator.generateQualifierEqualityFactory(QualifierEqualityFactoryGenerator.java:92)

    [ERROR] at org.jboss.errai.ioc.rebind.ioc.bootstrapper.QualifierEqualityFactoryGenerator.generate(QualifierEqualityFactoryGenerator.java:65)

    [ERROR] at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:48)

    [ERROR] at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java:60)

    [ERROR] at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:647)

    [ERROR] at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)

    [ERROR] at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:78)

    [ERROR] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:268)

    [ERROR] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:257)

    [ERROR] at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)

    [ERROR] at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:96)

    [ERROR] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:254)

    [ERROR] at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)

    [ERROR] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:173)

    [ERROR] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288)

    [ERROR] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:139)

    [ERROR] at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:588)

    [ERROR] at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:97)

    [ERROR] at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:52)

    [ERROR] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:569)

    [ERROR] at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)

    [ERROR] at com.google.gwt.dev.Precompile.precompile(Precompile.java:284)

    [ERROR] at com.google.gwt.dev.Precompile.precompile(Precompile.java:233)

    [ERROR] at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)

    [ERROR] at com.google.gwt.dev.Compiler.run(Compiler.java:232)

    [ERROR] at com.google.gwt.dev.Compiler.run(Compiler.java:198)

    [ERROR] at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)

    [ERROR] at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)

    [ERROR] at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)

    [ERROR] at com.google.gwt.dev.Compiler.main(Compiler.java:177)

    [INFO] [ERROR] Error generating extensions

    [INFO] java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder

    [INFO] at org.slf4j.LoggerFactory.getSingleton(LoggerFactory.java:230)

    [INFO] at org.slf4j.LoggerFactory.bind(LoggerFactory.java:121)

    [INFO] at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:112)

    [INFO] at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:275)

    [INFO] at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:248)

    [INFO] at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:261)

    [INFO] at org.jboss.errai.codegen.meta.impl.AbstractMetaClass.clinit(AbstractMetaClass.java:54)

    [ERROR] Caused by: java.lang.ClassNotFoundException: org.slf4j.impl.StaticLoggerBinder

    [ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)

    [ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

    [ERROR] at java.security.AccessController.doPrivileged(Native Method)

    [ERROR] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

    [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:423)

    [ERROR] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

    [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:356)

    [ERROR] ... 43 more

    [INFO] at org.jboss.errai.codegen.meta.MetaClassFactory.createOrGet(MetaClassFactory.java:250)

    [INFO] at org.jboss.errai.codegen.meta.MetaClassFactory.get(MetaClassFactory.java:130)

    [INFO] at org.jboss.errai.codegen.util.GenUtil.clinit(GenUtil.java:625)

    [INFO] at org.jboss.errai.codegen.Context.init(Context.java:65)

    [INFO] at org.jboss.errai.codegen.Context.create(Context.java:94)

    [INFO] at org.jboss.errai.codegen.builder.impl.ClassBuilder.define(ClassBuilder.java:73)

    [INFO] at org.jboss.errai.ioc.rebind.ioc.bootstrapper.QualifierEqualityFactoryGenerator.generateQualifierEqualityFactory(QualifierEqualityFactoryGenerator.java:92)

    [INFO] at org.jboss.errai.ioc.rebind.ioc.bootstrapper.QualifierEqualityFactoryGenerator.generate(QualifierEqualityFactoryGenerator.java:65)

    [INFO] at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:48)

    [INFO] at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java:60)

    [INFO] at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:647)

    [INFO] at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)

    [INFO] at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:78)

    [INFO] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:268)

    [INFO] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:257)

    [INFO] at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)

    [INFO] at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:96)

    [INFO] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:254)

    [INFO] at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)

    [INFO] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:173)

    [INFO] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288)

    [INFO] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:139)

    [INFO] at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:588)

    [INFO] at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:97)

    [INFO] at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:52)

    [INFO] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:569)

    [INFO] at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)

    [INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:284)

    [INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:233)

    [INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)

    [INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:232)

    [INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:198)

    [INFO] at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)

    [INFO] at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)

    [INFO] at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)

    [INFO] at com.google.gwt.dev.Compiler.main(Compiler.java:177)

    [INFO] Caused by: java.lang.ClassNotFoundException: org.slf4j.impl.StaticLoggerBinder

    [INFO] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)

    [INFO] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

    [INFO] at java.security.AccessController.doPrivileged(Native Method)

    [INFO] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

    [INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:423)

    [INFO] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

    [INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:356)

    [INFO] ... 43 more

    [INFO] [ERROR] Generator 'org.jboss.errai.ioc.rebind.ioc.bootstrapper.QualifierEqualityFactoryGenerator' threw an exception while rebinding 'org.jboss.errai.ioc.client.QualifierEqualityFactory'

    [INFO] java.lang.RuntimeException: error generating

    [INFO] at org.jboss.errai.ioc.rebind.ioc.bootstrapper.QualifierEqualityFactoryGenerator.generate(QualifierEqualityFactoryGenerator.java:74)

    [INFO] at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:48)

    [INFO] at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java:60)

    [INFO] at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:647)

    [INFO] at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)

    [INFO] at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:78)

    [INFO] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:268)

    [INFO] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:257)

    [INFO] at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)

    [INFO] at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:96)

    [INFO] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:254)

    [INFO] at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)

    [INFO] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:173)

    [INFO] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288)

    [INFO] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:139)

    [INFO] at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:588)

    [INFO] at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:97)

    [INFO] at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:52)

    [INFO] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:569)

    [INFO] at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)

    [INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:284)

    [INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:233)

    [INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)

    [INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:232)

    [INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:198)

    [INFO] at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)

    [INFO] at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)

    [INFO] at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)

    [INFO] at com.google.gwt.dev.Compiler.main(Compiler.java:177)

    [INFO] Caused by: java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder

    [INFO] at org.slf4j.LoggerFactory.getSingleton(LoggerFactory.java:230)

    [INFO] at org.slf4j.LoggerFactory.bind(LoggerFactory.java:121)

    [INFO] at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:112)

    [INFO] at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:275)

    [INFO] at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:248)

    [INFO] at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:261)

    [INFO] at org.jboss.errai.codegen.meta.impl.AbstractMetaClass.clinit(AbstractMetaClass.java:54)

    [INFO] at org.jboss.errai.codegen.meta.MetaClassFactory.createOrGet(MetaClassFactory.java:250)

    [INFO] at org.jboss.errai.codegen.meta.MetaClassFactory.get(MetaClassFactory.java:130)

    [INFO] at org.jboss.errai.codegen.util.GenUtil.clinit(GenUtil.java:625)

    [INFO] at org.jboss.errai.codegen.Context.init(Context.java:65)

    [INFO] at org.jboss.errai.codegen.Context.create(Context.java:94)

    [INFO] at org.jboss.errai.codegen.builder.impl.ClassBuilder.define(ClassBuilder.java:73)

    [INFO] at org.jboss.errai.ioc.rebind.ioc.bootstrapper.QualifierEqualityFactoryGenerator.generateQualifierEqualityFactory(QualifierEqualityFactoryGenerator.java:92)

    [INFO] at org.jboss.errai.ioc.rebind.ioc.bootstrapper.QualifierEqualityFactoryGenerator.generate(QualifierEqualityFactoryGenerator.java:65)

    [INFO] ... 28 more

    [INFO] Caused by: java.lang.ClassNotFoundException: org.slf4j.impl.StaticLoggerBinder

    [INFO] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)

    [INFO] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

    [INFO] at java.security.AccessController.doPrivileged(Native Method)

    [INFO] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

    [INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:423)

    [INFO] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

    [INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:356)

    [INFO] ... 43 more

    [INFO] Computing all possible rebind results for 'org.jboss.errai.ioc.client.Bootstrapper'

    [INFO] Rebinding org.jboss.errai.ioc.client.Bootstrapper

    [INFO] Invoking generator org.jboss.errai.ioc.rebind.ioc.bootstrapper.IOCGenerator

    [INFO] [ERROR] Unexpected error trying to instantiate Generator 'org.jboss.errai.ioc.rebind.ioc.bootstrapper.IOCGenerator'

    [INFO] java.lang.ExceptionInInitializerError

    [INFO] at org.jboss.errai.ioc.rebind.ioc.bootstrapper.IOCGenerator.clinit(IOCGenerator.java:44)

    [INFO] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

    [INFO] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

    [INFO] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

    [INFO] at java.lang.reflect.Constructor.newInstance(Constructor.java:525)

    [INFO] at java.lang.Class.newInstance0(Class.java:372)

    [INFO] at java.lang.Class.newInstance(Class.java:325)

    [INFO] at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:614)

    [INFO] at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)

    [INFO] at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:78)

    [INFO] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:268)

    [INFO] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:257)

    [INFO] at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)

    [INFO] at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:96)

    [INFO] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:254)

    [INFO] at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)

    [INFO] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:173)

    [INFO] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288)

    [INFO] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:139)

    [INFO] at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:588)

    [INFO] at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:97)

    [INFO] at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:52)

    [INFO] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:569)

    [INFO] at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)

    [INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:284)

    [INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:233)

    [INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)

    [INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:232)

    [INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:198)

    [INFO] at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)

    [INFO] at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)

    [INFO] at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)

    [INFO] at com.google.gwt.dev.Compiler.main(Compiler.java:177)

    [INFO] Caused by: java.lang.IllegalStateException: org.slf4j.LoggerFactory could not be successfully initialized. See also http://www.slf4j.org/codes.html#unsuccessfulInit

    [INFO] at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:282)

    [INFO] at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:248)

    [INFO] at org.jboss.errai.config.rebind.EnvUtil.clinit(EnvUtil.java:62)

    [INFO] ... 33 more

    [INFO] [ERROR] Errors in 'jar:file:/C:/Users/Anton/.m2/repository/org/jboss/errai/errai-ioc/2.2.0.Final/errai-ioc-2.2.0.Final.jar!/org/jboss/errai/ioc/client/Container.java'

    [INFO] [ERROR] Line 47: Failed to resolve 'org.jboss.errai.ioc.client.QualifierEqualityFactory' via deferred binding

    [INFO] [ERROR] Line 55: Failed to resolve 'org.jboss.errai.ioc.client.Bootstrapper' via deferred binding

    [INFO] Scanning for additional dependencies: jar:file:/C:/Users/Anton/.m2/repository/org/jboss/errai/errai-marshalling/2.2.0.Final/errai-marshalling-2.2.0.Final.jar!/org/jboss/errai/marshalling/client/api/MarshallerFramework.java

    [INFO] Computing all possible rebind results for 'org.jboss.errai.marshalling.client.api.MarshallerFactory'

    [INFO] Rebinding org.jboss.errai.marshalling.client.api.MarshallerFactory

    [INFO] Invoking generator org.jboss.errai.marshalling.rebind.MarshallersGenerator

    [INFO] [ERROR] Unexpected error trying to instantiate Generator 'org.jboss.errai.marshalling.rebind.MarshallersGenerator'

    [INFO] java.lang.ExceptionInInitializerError

    [INFO] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

    [INFO] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

    [INFO] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

    [INFO] at java.lang.reflect.Constructor.newInstance(Constructor.java:525)

    [INFO] at java.lang.Class.newInstance0(Class.java:372)

    [INFO] at java.lang.Class.newInstance(Class.java:325)

    [INFO] at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:614)

    [INFO] at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)

    [INFO] at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:78)

    [INFO] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:268)

    [INFO] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:257)

    [INFO] at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)

    [INFO] at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:96)

    [INFO] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:254)

    [INFO] at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)

    [INFO] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:173)

    [INFO] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288)

    [INFO] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:139)

    [INFO] at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:588)

    [INFO] at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:97)

    [INFO] at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:52)

    [INFO] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:569)

    [INFO] at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)

    [INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:284)

    [INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:233)

    [INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)

    [INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:232)

    [INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:198)

    [INFO] at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)

    [INFO] at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)

    [INFO] at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)

    [INFO] at com.google.gwt.dev.Compiler.main(Compiler.java:177)

    [INFO] Caused by: java.lang.IllegalStateException: org.slf4j.LoggerFactory could not be successfully initialized. See also http://www.slf4j.org/codes.html#unsuccessfulInit

    [INFO] at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:282)

    [INFO] at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:248)

    [INFO] at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:261)

    [INFO] at org.jboss.errai.marshalling.rebind.MarshallersGenerator.clinit(MarshallersGenerator.java:53)

    [INFO] ... 32 more

    [INFO] [ERROR] Errors in 'jar:file:/C:/Users/Anton/.m2/repository/org/jboss/errai/errai-marshalling/2.2.0.Final/errai-marshalling-2.2.0.Final.jar!/org/jboss/errai/marshalling/client/api/MarshallerFramework.java'

    [INFO] [ERROR] Line 42: Failed to resolve 'org.jboss.errai.marshalling.client.api.MarshallerFactory' via deferred binding

    [INFO] Scanning for additional dependencies: jar:file:/C:/Users/Anton/.m2/repository/com/google/gwt/gwt-user/2.4.0/gwt-user-2.4.0.jar!/com/google/gwt/core/client/impl/SchedulerImpl.java

    [INFO] [WARN] For the following type(s), generated source was never committed (did you forget to call commit()?)

    [INFO] [WARN] org.jboss.errai.ioc.client.QualifierEqualityFactoryImpl

    [INFO] Scanning for additional dependencies: jar:file:/C:/Users/Anton/.m2/repository/org/jboss/errai/errai-bus/2.2.0.Final/errai-bus-2.2.0.Final.jar!/org/jboss/errai/bus/client/framework/ClientMessageBusImpl.java

    [INFO] Computing all possible rebind results for 'org.jboss.errai.bus.client.framework.RpcProxyLoader'

    [INFO] Rebinding org.jboss.errai.bus.client.framework.RpcProxyLoader

    [INFO] Invoking generator org.jboss.errai.bus.rebind.RpcProxyLoaderGenerator

    [INFO] [ERROR] Unexpected error trying to instantiate Generator 'org.jboss.errai.bus.rebind.RpcProxyLoaderGenerator'

    [INFO] java.lang.IllegalStateException: org.slf4j.LoggerFactory could not be successfully initialized. See also http://www.slf4j.org/codes.html#unsuccessfulInit

    [INFO] at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:282)

    [INFO] at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:248)

    [INFO] at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:261)

    [INFO] at org.jboss.errai.bus.rebind.RpcProxyLoaderGenerator.init(RpcProxyLoaderGenerator.java:53)

    [INFO] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

    [INFO] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

    [INFO] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

    [INFO] at java.lang.reflect.Constructor.newInstance(Constructor.java:525)

    [INFO] at java.lang.Class.newInstance0(Class.java:372)

    [INFO] at java.lang.Class.newInstance(Class.java:325)

    [INFO] at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:614)

    [INFO] at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)

    [INFO] at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:78)

    [INFO] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:268)

    [INFO] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:257)

    [INFO] at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)

    [INFO] at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:96)

    [INFO] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:254)

    [INFO] at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)

    [INFO] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:173)

    [INFO] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288)

    [INFO] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:139)

    [INFO] at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:588)

    [INFO] at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:97)

    [INFO] at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:52)

    [INFO] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:569)

    [INFO] at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)

    [INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:284)

    [INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:233)

    [INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)

    [INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:232)

    [INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:198)

    [INFO] at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)

    [INFO] at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)

    [INFO] at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)

    [INFO] at com.google.gwt.dev.Compiler.main(Compiler.java:177)

    [INFO] [ERROR] Errors in 'jar:file:/C:/Users/Anton/.m2/repository/org/jboss/errai/errai-bus/2.2.0.Final/errai-bus-2.2.0.Final.jar!/org/jboss/errai/bus/client/framework/ClientMessageBusImpl.java'

    [INFO] [ERROR] Line 1553: Failed to resolve 'org.jboss.errai.bus.client.framework.RpcProxyLoader' via deferred binding

    [INFO] [ERROR] Cannot proceed due to previous errors

    [INFO] ------------------------------------------------------------------------

    [INFO] BUILD FAILURE

    [INFO] ------------------------------------------------------------------------

    [INFO] Total time: 30.274s

    [INFO] Finished at: Wed Mar 06 12:34:14 CET 2013

    [INFO] Final Memory: 24M/172M

    [INFO] ------------------------------------------------------------------------

    [ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.4.0:compile (gwt-compile) on project firestorm-app: Command [[

    [ERROR] C:\Program Files\Java\jdk1.7.0_03\jre\bin\java -Xmx1000m -XX:MaxPermSize=500m -classpath C:\Magick\dev\app.ui\firestorm-app\src\main\java;C:\Magick\dev\app.ui\firestorm-app\src\main\resources;C:\Magick\dev\app.ui\firestorm-app\src\main\webapp\WEB-INF\classes;C:\Users\Anton\.m2\repository\com\google\gwt\gwt-user\2.4.0\gwt-user-2.4.0.jar;C:\Users\Anton\.m2\repository\javax\validation\validation-api\1.0.0.GA\validation-api-1.0.0.GA.jar;C:\Users\Anton\.m2\repository\javax\validation\validation-api\1.0.0.GA\validation-api-1.0.0.GA-sources.jar;C:\Users\Anton\.m2\repository\org\jboss\errai\errai-navigation\2.2.0.Final\errai-navigation-2.2.0.Final.jar;C:\Users\Anton\.m2\repository\com\google\guava\guava-gwt\12.0\guava-gwt-12.0.jar;C:\Users\Anton\.m2\repository\org\jboss\errai\errai-javaee-all\2.2.0.Final\errai-javaee-all-2.2.0.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\errai\errai-jpa-client\2.2.0.Final\errai-jpa-client-2.2.0.Final.jar;C:\Users\Anton\.m2\repository\org\hibernate\hibernate-entitymanager\4.1.1.Final\hibernate-entitymanager-4.1.1.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\logging\jboss-logging\3.1.0.GA\jboss-logging-3.1.0.GA.jar;C:\Users\Anton\.m2\repository\org\hibernate\hibernate-core\4.1.1.Final\hibernate-core-4.1.1.Final.jar;C:\Users\Anton\.m2\repository\antlr\antlr\2.7.7\antlr-2.7.7.jar;C:\Users\Anton\.m2\repository\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar;C:\Users\Anton\.m2\repository\xml-apis\xml-apis\1.0.b2\xml-apis-1.0.b2.jar;C:\Users\Anton\.m2\repository\org\hibernate\common\hibernate-commons-annotations\4.0.1.Final\hibernate-commons-annotations-4.0.1.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\errai\errai-jaxrs-client\2.2.0.Final\errai-jaxrs-client-2.2.0.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\resteasy\jaxrs-api\2.3.5.Final\jaxrs-api-2.3.5.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\errai\errai-jaxrs-provider\2.2.0.Final\errai-jaxrs-provider-2.2.0.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\errai\errai-ui\2.2.0.Final\errai-ui-2.2.0.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\errai\errai-data-binding\2.2.0.Final\errai-data-binding-2.2.0.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\errai\errai-marshalling\2.2.0.Final\errai-marshalling-2.2.0.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\errai\errai-codegen-gwt\2.2.0.Final\errai-codegen-gwt-2.2.0.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\spec\jboss-javaee-6.0\3.0.1.Final\jboss-javaee-6.0-3.0.1.Final.pom;C:\Users\Anton\.m2\repository\javax\activation\activation\1.1\activation-1.1.jar;C:\Users\Anton\.m2\repository\javax\inject\javax.inject\1\javax.inject-1.jar;C:\Users\Anton\.m2\repository\javax\jws\jsr181-api\1.0-MR1\jsr181-api-1.0-MR1.jar;C:\Users\Anton\.m2\repository\javax\mail\mail\1.4.4\mail-1.4.4.jar;C:\Users\Anton\.m2\repository\org\hibernate\javax\persistence\hibernate-jpa-2.0-api\1.0.1.Final\hibernate-jpa-2.0-api-1.0.1.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\spec\javax\annotation\jboss-annotations-api_1.1_spec\1.0.1.Final\jboss-annotations-api_1.1_spec-1.0.1.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\spec\javax\ejb\jboss-ejb-api_3.1_spec\1.0.2.Final\jboss-ejb-api_3.1_spec-1.0.2.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\spec\javax\el\jboss-el-api_2.2_spec\1.0.1.Final\jboss-el-api_2.2_spec-1.0.1.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\spec\javax\enterprise\deploy\jboss-jad-api_1.2_spec\1.0.1.Final\jboss-jad-api_1.2_spec-1.0.1.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\spec\javax\faces\jboss-jsf-api_2.1_spec\2.0.2.Final\jboss-jsf-api_2.1_spec-2.0.2.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\spec\javax\interceptor\jboss-interceptors-api_1.1_spec\1.0.1.Final\jboss-interceptors-api_1.1_spec-1.0.1.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\spec\javax\management\j2ee\jboss-j2eemgmt-api_1.1_spec\1.0.1.Final\jboss-j2eemgmt-api_1.1_spec-1.0.1.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\spec\javax\resource\jboss-connector-api_1.6_spec\1.0.1.Final\jboss-connector-api_1.6_spec-1.0.1.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\spec\javax\security\jacc\jboss-jacc-api_1.4_spec\1.0.2.Final\jboss-jacc-api_1.4_spec-1.0.2.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\spec\javax\security\auth\message\jboss-jaspi-api_1.0_spec\1.0.1.Final\jboss-jaspi-api_1.0_spec-1.0.1.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\spec\javax\xml\registry\jboss-jaxr-api_1.0_spec\1.0.2.Final\jboss-jaxr-api_1.0_spec-1.0.2.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\spec\javax\jms\jboss-jms-api_1.1_spec\1.0.1.Final\jboss-jms-api_1.1_spec-1.0.1.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\spec\javax\servlet\jboss-servlet-api_3.0_spec\1.0.1.Final\jboss-servlet-api_3.0_spec-1.0.1.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\spec\javax\servlet\jsp\jboss-jsp-api_2.2_spec\1.0.1.Final\jboss-jsp-api_2.2_spec-1.0.1.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\spec\javax\servlet\jstl\jboss-jstl-api_1.2_spec\1.0.3.Final\jboss-jstl-api_1.2_spec-1.0.3.Final.jar;C:\Users\Anton\.m2\repository\xalan\xalan\2.7.1.jbossorg-2\xalan-2.7.1.jbossorg-2.jar;C:\Users\Anton\.m2\repository\xalan\serializer\2.7.1.jbossorg-2\serializer-2.7.1.jbossorg-2.jar;C:\Users\Anton\.m2\repository\org\jboss\spec\javax\transaction\jboss-transaction-api_1.1_spec\1.0.1.Final\jboss-transaction-api_1.1_spec-1.0.1.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\spec\javax\ws\rs\jboss-jaxrs-api_1.1_spec\1.0.1.Final\jboss-jaxrs-api_1.1_spec-1.0.1.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\spec\javax\xml\bind\jboss-jaxb-api_2.2_spec\1.0.4.Final\jboss-jaxb-api_2.2_spec-1.0.4.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\spec\javax\xml\rpc\jboss-jaxrpc-api_1.1_spec\1.0.1.Final\jboss-jaxrpc-api_1.1_spec-1.0.1.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\spec\javax\xml\soap\jboss-saaj-api_1.3_spec\1.0.2.Final\jboss-saaj-api_1.3_spec-1.0.2.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\spec\javax\xml\ws\jboss-jaxws-api_2.2_spec\2.0.1.Final\jboss-jaxws-api_2.2_spec-2.0.1.Final.jar;C:\Users\Anton\.m2\repository\javax\servlet\servlet-api\2.5\servlet-api-2.5.jar;C:\Users\Anton\.m2\repository\javax\servlet\jsp-api\2.0\jsp-api-2.0.jar;C:\Users\Anton\.m2\repository\javax\enterprise\cdi-api\1.0-SP4\cdi-api-1.0-SP4.jar;C:\Users\Anton\.m2\repository\javax\annotation\jsr250-api\1.0\jsr250-api-1.0.jar;C:\Users\Anton\.m2\repository\org\jboss\errai\errai-bus\2.2.0.Final\errai-bus-2.2.0.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\errai\errai-common\2.2.0.Final\errai-common-2.2.0.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\errai\reflections\reflections\2.2.0.Final\reflections-2.2.0.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\errai\errai-config\2.2.0.Final\errai-config-2.2.0.Final.jar;C:\Users\Anton\.m2\repository\com\google\inject\guice\3.0\guice-3.0.jar;C:\Users\Anton\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;C:\Users\Anton\.m2\repository\org\javassist\javassist\3.15.0-GA\javassist-3.15.0-GA.jar;C:\Users\Anton\.m2\repository\org\jboss\errai\io\netty\netty\4.0.0.Alpha1.errai.r1\netty-4.0.0.Alpha1.errai.r1.jar;C:\Users\Anton\.m2\repository\com\google\guava\guava\12.0\guava-12.0.jar;C:\Users\Anton\.m2\repository\com\google\code\findbugs\jsr305\1.3.9\jsr305-1.3.9.jar;C:\Users\Anton\.m2\repository\org\jboss\errai\errai-ioc\2.2.0.Final\errai-ioc-2.2.0.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\errai\errai-codegen\2.2.0.Final\errai-codegen-2.2.0.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\errai\errai-tools\2.2.0.Final\errai-tools-2.2.0.Final.jar;C:\Users\Anton\.m2\repository\hsqldb\hsqldb\1.8.0.7\hsqldb-1.8.0.7.jar;C:\Users\Anton\.m2\repository\org\mvel\mvel2\2.1.Beta8\mvel2-2.1.Beta8.jar;C:\Users\Anton\.m2\repository\org\jboss\errai\errai-cdi-client\2.2.0.Final\errai-cdi-client-2.2.0.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\errai\errai-javax-enterprise\2.2.0.Final\errai-javax-enterprise-2.2.0.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\errai\errai-weld-integration\2.2.0.Final\errai-weld-integration-2.2.0.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\errai\errai-cdi-jetty\2.2.0.Final\errai-cdi-jetty-2.2.0.Final.jar;C:\Users\Anton\.m2\repository\org\mortbay\jetty\jetty\6.1.25\jetty-6.1.25.jar;C:\Users\Anton\.m2\repository\org\mortbay\jetty\jetty-util\6.1.25\jetty-util-6.1.25.jar;C:\Users\Anton\.m2\repository\org\mortbay\jetty\servlet-api\2.5-20081211\servlet-api-2.5-20081211.jar;C:\Users\Anton\.m2\repository\org\mortbay\jetty\jetty-plus\6.1.25\jetty-plus-6.1.25.jar;C:\Users\Anton\.m2\repository\geronimo-spec\geronimo-spec-jta\1.0.1B-rc4\geronimo-spec-jta-1.0.1B-rc4.jar;C:\Users\Anton\.m2\repository\org\mortbay\jetty\jetty-naming\6.1.25\jetty-naming-6.1.25.jar;C:\Users\Anton\.m2\repository\org\jboss\weld\servlet\weld-servlet-core\1.1.6.Final\weld-servlet-core-1.1.6.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\weld\weld-spi\1.1.Final\weld-spi-1.1.Final.jar;C:\Users\Anton\.m2\repository\org\jboss\weld\weld-api\1.1.Final\weld-api-1.1.Final.jar;C:\Users\Anton\.m2\repository\org\slf4j\slf4j-api\1.5.11\slf4j-api-1.5.11.jar;C:\Users\Anton\.m2\repository\org\danvk\dygraphs-gwt\2011.04.18\dygraphs-gwt-2011.04.18.jar;C:\Users\Anton\.m2\repository\com\google\gwt\gwt-user\2.4.0\gwt-user-2.4.0.jar;C:\Users\Anton\.m2\repository\javax\validation\validation-api\1.0.0.GA\validation-api-1.0.0.GA.jar;C:\Users\Anton\.m2\repository\javax\validation\validation-api\1.0.0.GA\validation-api-1.0.0.GA-sources.jar;C:\Users\Anton\.m2\repository\com\google\gwt\gwt-dev\2.4.0\gwt-dev-2.4.0.jar com.google.gwt.dev.Compiler -gen C:\Magick\dev\app.ui\firestorm-app\target\.generated -logLevel INFO -style OBF -war C:\Magick\dev\app.ui\firestorm-app\target\firestorm-app-1.0-SNAPSHOT -localWorkers 4 org.company.firestorm.App

    [ERROR] ]] failed with status 1

    [ERROR] - [Help 1]

    [ERROR]

    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

    [ERROR] Re-run Maven using the -X switch to enable full debug logging.

    [ERROR]

    [ERROR] For more information about the errors and possible solutions, please read the following articles:

    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

    DB:2.53:Maven Errors When Adding Navigation Dependencies 7s


    Hi Charles

    Here is my pom

    ?xml version="1.0" encoding="UTF-8"?

    project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"

    modelVersion4.0.0/modelVersion

    namefirestorm-app/name

    groupIdorg.company.firestorm/groupId

    artifactIdfirestorm-app/artifactId

    packagingwar/packaging

    version1.0-SNAPSHOT/version

    properties

    errai.version2.2.0.Final/errai.version

    gwt.version2.4.0/gwt.version

    slf4j.version1.5.11/slf4j.version

    project.build.sourceEncodingUTF-8/project.build.sourceEncoding

    javaee.version3.0.1.Final/javaee.version

    weld.version1.1.6.Final/weld.version

    gwt.maven.version2.4.0/gwt.maven.version

    mvel.version2.1.Beta8/mvel.version

    jetty.version6.1.25/jetty.version

    uel.impl.version2.1.2-b04/uel.impl.version

    /properties

    dependencies

    dependency

    groupIdorg.jboss.errai/groupId

    artifactIderrai-javaee-all/artifactId

    version${errai.version}/version

    /dependency

    dependency

    groupIdorg.jboss.errai/groupId

    artifactIderrai-navigation/artifactId

    version${errai.version}/version

    /dependency

    dependency

    groupIdorg.jboss.spec/groupId

    artifactIdjboss-javaee-6.0/artifactId

    version${javaee.version}/version

    typepom/type

    scopeprovided/scope

    /dependency

    dependency

    groupIdjavax.servlet/groupId

    artifactIdservlet-api/artifactId

    version2.5/version

    scopeprovided/scope

    /dependency

    !-- dependency groupIdorg.danvk/groupId artifactIddygraphs-gwt/artifactId

    version2011.04.18/version /dependency --

    dependency

    groupIdjavax.servlet/groupId

    artifactIdjsp-api/artifactId

    version2.0/version

    scopeprovided/scope

    /dependency

    dependency

    groupIdjunit/groupId

    artifactIdjunit/artifactId

    version4.10/version

    scopetest/scope

    /dependency

    dependency

    groupIdjavax.enterprise/groupId

    artifactIdcdi-api/artifactId

    scopeprovided/scope

    version1.0-SP4/version

    /dependency

    !-- CDI Development Utils --

    !-- This must be placed above com.google.gwt:gwt-dev to override the Jetty

    that is present there --

    dependency

    groupIdorg.mortbay.jetty/groupId

    artifactIdjetty/artifactId

    version${jetty.version}/version

    /dependency

    dependency

    groupIdorg.mortbay.jetty/groupId

    artifactIdjetty-plus/artifactId

    version${jetty.version}/version

    /dependency

    dependency

    groupIdorg.mortbay.jetty/groupId

    artifactIdjetty-naming/artifactId

    version${jetty.version}/version

    /dependency

    !-- Weld Modules --

    dependency

    groupIdorg.jboss.weld.servlet/groupId

    artifactIdweld-servlet-core/artifactId

    version${weld.version}/version

    /dependency

    !-- GWT and GWT Extensions --

    dependency

    groupIdcom.google.gwt/groupId

    artifactIdgwt-user/artifactId

    version${gwt.version}/version

    scopeprovided/scope

    /dependency

    dependency

    groupIdcom.google.gwt/groupId

    artifactIdgwt-servlet/artifactId

    version${gwt.version}/version

    /dependency

    !-- Runtime / Container dependencies --

    !-- dependency groupIdorg.slf4j/groupId artifactIdslf4j-api/artifactId

    version${slf4j.version}/version /dependency --

    /dependencies

    profiles

    profile

    idjetty/id

    activation

    activeByDefaulttrue/activeByDefault

    /activation

    properties

    webDescriptorjetty/webDescriptor

    /properties

    dependencies

    !-- We need this for CDI BeanManager to work in Dev Mode --

    dependency

    groupIdorg.mortbay.jetty/groupId

    artifactIdjetty-naming/artifactId

    version${jetty.version}/version

    scopecompile/scope

    /dependency

    /dependencies

    /profile

    profile

    !-- It's required that Jetty's plus option is enabled (OPTIONS=plus,..) --

    idjetty7+/id

    properties

    webDescriptorjetty7+/webDescriptor

    /properties

    dependencies

    dependency

    groupIdorg.mortbay.jetty/groupId

    artifactIdjetty/artifactId

    version${jetty.version}/version

    scopeprovided/scope

    /dependency

    dependency

    groupIdorg.mortbay.jetty/groupId

    artifactIdjetty-plus/artifactId

    version${jetty.version}/version

    scopeprovided/scope

    /dependency

    dependency

    groupIdorg.mortbay.jetty/groupId

    artifactIdjetty-naming/artifactId

    version${jetty.version}/version

    scopeprovided/scope

    /dependency

    dependency

    groupIdorg.eclipse.jetty/groupId

    artifactIdjetty-servlet/artifactId

    version7.2.1.v20101111/version

    /dependency

    dependency

    groupIdorg.jboss.errai/groupId

    artifactIderrai-cdi-jetty/artifactId

    version${errai.version}/version

    scopeprovided/scope

    /dependency

    /dependencies

    /profile

    profile

    idjboss6/id

    properties

    webDescriptorjboss6/webDescriptor

    /properties

    dependencies

    dependency

    groupIdorg.jboss.errai/groupId

    artifactIderrai-bus/artifactId

    exclusions

    !-- exclusion --

    !-- groupIdorg.slf4j/groupId --

    !-- artifactIdslf4j-log4j12/artifactId --

    !-- /exclusion --

    exclusion

    groupIdjunit/groupId

    artifactIdjunit/artifactId

    /exclusion

    exclusion

    groupIdcom.google.collections/groupId

    artifactIdgoogle-collections/artifactId

    /exclusion

    exclusion

    artifactIdjavax.inject/artifactId

    groupIdjavax.inject/groupId

    /exclusion

    /exclusions

    version${errai.version}/version

    /dependency

    !-- Exclude all the stuff provided by AS6 --

    dependency

    groupIdjavax.inject/groupId

    artifactIdjavax.inject/artifactId

    version1/version

    scopeprovided/scope

    /dependency

    dependency

    groupIdjavax.annotation/groupId

    artifactIdjsr250-api/artifactId

    version1.0/version

    scopeprovided/scope

    /dependency

    !-- dependency groupIdorg.slf4j/groupId artifactIdslf4j-api/artifactId

    version${slf4j.version}/version scopeprovided/scope /dependency --

    dependency

    groupIddom4j/groupId

    artifactIddom4j/artifactId

    version1.6/version

    scopeprovided/scope

    /dependency

    dependency

    groupIdxml-apis/groupId

    artifactIdxml-apis/artifactId

    version1.0.b2/version

    scopeprovided/scope

    /dependency

    dependency

    groupIdorg.javassist/groupId

    artifactIdjavassist/artifactId

    version3.15.0-GA/version

    scopeprovided/scope

    /dependency

    dependency

    groupIdorg.jboss.errai/groupId

    artifactIderrai-ioc/artifactId

    exclusions

    exclusion

    artifactIdjsr250-api/artifactId

    groupIdjavax.annotation/groupId

    /exclusion

    exclusion

    artifactIdjavax.inject/artifactId

    groupIdjavax.inject/groupId

    /exclusion

    /exclusions

    scopecompile/scope

    version${errai.version}/version

    /dependency

    dependency

    groupIdorg.jboss.errai/groupId

    artifactIderrai-tools/artifactId

    scopeprovided/scope

    version${errai.version}/version

    /dependency

    dependency

    groupIdorg.jboss.errai/groupId

    artifactIderrai-javax-enterprise/artifactId

    version${errai.version}/version

    scopeprovided/scope

    /dependency

    !-- exclude development tools --

    dependency

    groupIdorg.jboss.errai/groupId

    artifactIderrai-cdi-jetty/artifactId

    version${errai.version}/version

    scopeprovided/scope

    /dependency

    dependency

    groupIdorg.jboss.weld.servlet/groupId

    artifactIdweld-servlet-core/artifactId

    scopeprovided/scope

    version${weld.version}/version

    /dependency

    dependency

    groupIdorg.jboss.weld/groupId

    artifactIdweld-core/artifactId

    scopeprovided/scope

    version${weld.version}/version

    /dependency

    dependency

    groupIdorg.jboss.weld.se/groupId

    artifactIdweld-se-core/artifactId

    scopeprovided/scope

    version${weld.version}/version

    /dependency

    dependency

    groupIdorg.jboss.weld/groupId

    artifactIdweld-spi/artifactId

    scopeprovided/scope

    version1.1.Final/version

    /dependency

    dependency

    groupIdorg.mortbay.jetty/groupId

    artifactIdjetty/artifactId

    version${jetty.version}/version

    scopeprovided/scope

    /dependency

    dependency

    groupIdorg.mortbay.jetty/groupId

    artifactIdjetty-plus/artifactId

    scopeprovided/scope

    version${jetty.version}/version

    /dependency

    dependency

    groupIdorg.mortbay.jetty/groupId

    artifactIdjetty-naming/artifactId

    scopeprovided/scope

    version${jetty.version}/version

    /dependency

    dependency

    groupIdorg.jboss.logging/groupId

    artifactIdjboss-logging/artifactId

    scopeprovided/scope

    version3.0.0.Beta4/version

    /dependency

    /dependencies

    /profile

    profile

    idjboss7/id

    properties

    webDescriptorjboss7/webDescriptor

    /properties

    dependencies

    dependency

    groupIdorg.jboss.errai/groupId

    artifactIderrai-bus/artifactId

    exclusions

    exclusion

    groupIdjunit/groupId

    artifactIdjunit/artifactId

    /exclusion

    exclusion

    artifactIdjavax.inject/artifactId

    groupIdjavax.inject/groupId

    /exclusion

    /exclusions

    version${errai.version}/version

    /dependency

    dependency

    groupIdxml-apis/groupId

    artifactIdxml-apis/artifactId

    version1.0.b2/version

    scopeprovided/scope

    /dependency

    dependency

    groupIdorg.javassist/groupId

    artifactIdjavassist/artifactId

    version3.15.0-GA/version

    scopeprovided/scope

    /dependency

    dependency

    groupIdorg.jboss.errai/groupId

    artifactIderrai-tools/artifactId

    scopeprovided/scope

    version${errai.version}/version

    /dependency

    dependency

    groupIdorg.jboss.errai/groupId

    artifactIderrai-javax-enterprise/artifactId

    version${errai.version}/version

    scopeprovided/scope

    /dependency

    !-- Exclude development tools --

    dependency

    groupIdorg.jboss.errai/groupId

    artifactIderrai-cdi-jetty/artifactId

    version${errai.version}/version

    scopeprovided/scope

    /dependency

    dependency

    groupIdorg.jboss.weld.servlet/groupId

    artifactIdweld-servlet-core/artifactId

    version${weld.version}/version

    scopeprovided/scope

    /dependency

    dependency

    groupIdorg.jboss.weld/groupId

    artifactIdweld-core/artifactId

    version${weld.version}/version

    scopeprovided/scope

    /dependency

    dependency

    groupIdorg.jboss.weld.se/groupId

    artifactIdweld-se-core/artifactId

    scopeprovided/scope

    version${weld.version}/version

    /dependency

    !-- Jetty is used for testing only --

    dependency

    groupIdorg.mortbay.jetty/groupId

    artifactIdjetty/artifactId

    version${jetty.version}/version

    scopeprovided/scope

    /dependency

    dependency

    groupIdorg.mortbay.jetty/groupId

    artifactIdjetty-plus/artifactId

    scopeprovided/scope

    version${jetty.version}/version

    /dependency

    dependency

    groupIdorg.mortbay.jetty/groupId

    artifactIdjetty-naming/artifactId

    scopeprovided/scope

    version${jetty.version}/version

    /dependency

    /dependencies

    /profile

    !-- Begin OpenShift Express Profiles --

    profile

    idopenshift/id

    properties

    webDescriptorjboss7/webDescriptor

    /properties

    dependencies

    !-- All errai package are installed with the service archive --

    dependency

    groupIdorg.jboss.errai/groupId

    artifactIderrai-bus/artifactId

    exclusions

    exclusion

    groupIdjunit/groupId

    artifactIdjunit/artifactId

    /exclusion

    exclusion

    artifactIdjavax.inject/artifactId

    groupIdjavax.inject/groupId

    /exclusion

    /exclusions

    version${errai.version}/version

    /dependency

    dependency

    groupIdxml-apis/groupId

    artifactIdxml-apis/artifactId

    version1.0.b2/version

    scopeprovided/scope

    /dependency

    dependency

    groupIdorg.javassist/groupId

    artifactIdjavassist/artifactId

    version3.15.0-GA/version

    scopeprovided/scope

    /dependency

    dependency

    groupIdorg.mvel/groupId

    artifactIdmvel2/artifactId

    version${mvel.version}/version

    /dependency

    dependency

    groupIdorg.jboss.errai/groupId

    artifactIderrai-ioc/artifactId

    exclusions

    exclusion

    artifactIdjsr250-api/artifactId

    groupIdjavax.annotation/groupId

    /exclusion

    exclusion

    artifactIdjavax.inject/artifactId

    groupIdjavax.inject/groupId

    /exclusion

    /exclusions

    scopecompile/scope

    version${errai.version}/version

    /dependency

    dependency

    groupIdorg.jboss.errai/groupId

    artifactIderrai-tools/artifactId

    scopeprovided/scope

    version${errai.version}/version

    /dependency

    dependency

    groupIdorg.jboss.errai/groupId

    artifactIderrai-cdi-client/artifactId

    version${errai.version}/version

    !--scopeprovided/scope --

    /dependency

    dependency

    groupIdorg.jboss.errai/groupId

    artifactIderrai-javax-enterprise/artifactId

    version${errai.version}/version

    scopeprovided/scope

    /dependency

    dependency

    groupIdorg.jboss.errai/groupId

    artifactIderrai-weld-integration/artifactId

    version${errai.version}/version

    /dependency

    !-- Exclude development tools --

    dependency

    groupIdorg.jboss.errai/groupId

    artifactIderrai-cdi-jetty/artifactId

    version${errai.version}/version

    scopeprovided/scope

    /dependency

    !-- Weld is installed within JBoss --

    dependency

    groupIdorg.glassfish.web/groupId

    artifactIdel-impl/artifactId

    version${uel.impl.version}/version

    scopeprovided/scope

    /dependency

    dependency

    groupIdorg.jboss.weld.servlet/groupId

    artifactIdweld-servlet-core/artifactId

    scopeprovided/scope

    version${weld.version}/version

    /dependency

    dependency

    groupIdorg.jboss.weld/groupId

    artifactIdweld-core/artifactId

    scopeprovided/scope

    version${weld.version}/version

    /dependency

    dependency

    groupIdorg.jboss.weld.se/groupId

    artifactIdweld-se-core/artifactId

    scopeprovided/scope

    version${weld.version}/version

    /dependency

    dependency

    groupIdorg.jboss.weld/groupId

    artifactIdweld-spi/artifactId

    scopeprovided/scope

    version1.1.Final/version

    /dependency

    !-- Jetty is used for testing only --

    dependency

    groupIdorg.mortbay.jetty/groupId

    artifactIdjetty/artifactId

    version${jetty.version}/version

    scopeprovided/scope

    /dependency

    dependency

    groupIdorg.mortbay.jetty/groupId

    artifactIdjetty-plus/artifactId

    scopeprovided/scope

    version${jetty.version}/version

    /dependency

    dependency

    groupIdorg.mortbay.jetty/groupId

    artifactIdjetty-naming/artifactId

    scopeprovided/scope

    version${jetty.version}/version

    /dependency

    /dependencies

    build

    plugins

    plugin

    artifactIdmaven-war-plugin/artifactId

    version2.1.1/version

    configuration

    warSourceDirectorysrc/main/webapp//warSourceDirectory

    webappDirectorysrc/main/webapp//webappDirectory

    webXmlsrc/jetty/web.xml/webXml

    outputFileNameMapping@{artifactId}@-@{baseVersion}@@{dashClassifier?}@.@{extension}@/outputFileNameMapping

    packagingExcludes**/javax/**/*.*,**/client/local/**/*.class/packagingExcludes

    outputDirectorydeployments/outputDirectory

    /configuration

    /plugin

    plugin

    groupIdorg.apache.maven.plugins/groupId

    artifactIdmaven-antrun-plugin/artifactId

    version1.2/version

    executions

    execution

    idjboss.package/id

    phaseprepare-package/phase

    configuration

    tasks

    copy file="src/jboss/web.xml" toDir="src/main/webapp/WEB-INF"

    overwrite="true" /

    delete file="src/main/webapp/WEB-INF/jetty-env.xml" /

    delete file="src/main/webapp/WEB-INF/classes/jndi.properties" /

    copy todir="src/main/webapp/app/"

    fileset dir="war.cache/app/" /

    /copy

    /tasks

    /configuration

    goals

    goalrun/goal

    /goals

    /execution

    /executions

    /plugin

    plugin

    groupIdorg.codehaus.mojo/groupId

    artifactIdgwt-maven-plugin/artifactId

    version${gwt.maven.version}/version

    configuration

    skiptrue/skip

    /configuration

    /plugin

    /plugins

    /build

    /profile

    profile

    idopenshift-prepare/id

    properties

    webDescriptorjboss7/webDescriptor

    /properties

    dependencies

    !-- All errai package are installed with the service archive --

    dependency

    groupIdorg.jboss.errai/groupId

    artifactIderrai-bus/artifactId

    exclusions

    exclusion

    groupIdjunit/groupId

    artifactIdjunit/artifactId

    /exclusion

    exclusion

    artifactIdjavax.inject/artifactId

    groupIdjavax.inject/groupId

    /exclusion

    /exclusions

    version${errai.version}/version

    /dependency

    dependency

    groupIdxml-apis/groupId

    artifactIdxml-apis/artifactId

    version1.0.b2/version

    scopeprovided/scope

    /dependency

    dependency

    groupIdorg.javassist/groupId

    artifactIdjavassist/artifactId

    version3.15.0-GA/version

    scopeprovided/scope

    /dependency

    dependency

    groupIdorg.mvel/groupId

    artifactIdmvel2/artifactId

    version${mvel.version}/version

    /dependency

    dependency

    groupIdorg.jboss.errai/groupId

    artifactIderrai-ioc/artifactId

    exclusions

    exclusion

    artifactIdjsr250-api/artifactId

    groupIdjavax.annotation/groupId

    /exclusion

    exclusion

    artifactIdjavax.inject/artifactId

    groupIdjavax.inject/groupId

    /exclusion

    /exclusions

    scopecompile/scope

    version${errai.version}/version

    /dependency

    dependency

    groupIdorg.jboss.errai/groupId

    artifactIderrai-tools/artifactId

    scopeprovided/scope

    version${errai.version}/version

    /dependency

    dependency

    groupIdorg.jboss.errai/groupId

    artifactIderrai-cdi-client/artifactId

    version${errai.version}/version

    !--scopeprovided/scope --

    /dependency

    dependency

    groupIdorg.jboss.errai/groupId

    artifactIderrai-javax-enterprise/artifactId

    version${errai.version}/version

    scopeprovided/scope

    /dependency

    dependency

    groupIdorg.jboss.errai/groupId

    artifactIderrai-weld-integration/artifactId

    version${errai.version}/version

    /dependency

    !-- Exclude development tools --

    dependency

    groupIdorg.jboss.errai/groupId

    artifactIderrai-cdi-jetty/artifactId

    version${errai.version}/version

    scopeprovided/scope

    /dependency

    !-- Weld is installed within JBoss --

    dependency

    groupIdorg.glassfish.web/groupId

    artifactIdel-impl/artifactId

    version${uel.impl.version}/version

    scopeprovided/scope

    /dependency

    dependency

    groupIdorg.jboss.weld.servlet/groupId

    artifactIdweld-servlet-core/artifactId

    scopeprovided/scope

    version${weld.version}/version

    /dependency

    dependency

    groupIdorg.jboss.weld/groupId

    artifactIdweld-core/artifactId

    scopeprovided/scope

    version${weld.version}/version

    /dependency

    dependency

    groupIdorg.jboss.weld.se/groupId

    artifactIdweld-se-core/artifactId

    scopeprovided/scope

    version${weld.version}/version

    /dependency

    dependency

    groupIdorg.jboss.weld/groupId

    artifactIdweld-spi/artifactId

    scopeprovided/scope

    version1.1.Final/version

    /dependency

    !-- Jetty is used for testing only --

    dependency

    groupIdorg.mortbay.jetty/groupId

    artifactIdjetty/artifactId

    version${jetty.version}/version

    scopeprovided/scope

    /dependency

    dependency

    groupIdorg.mortbay.jetty/groupId

    artifactIdjetty-plus/artifactId

    scopeprovided/scope

    version${jetty.version}/version

    /dependency

    dependency

    groupIdorg.mortbay.jetty/groupId

    artifactIdjetty-naming/artifactId

    scopeprovided/scope

    version${jetty.version}/version

    /dependency

    /dependencies

    build

    plugins

    plugin

    artifactIdmaven-war-plugin/artifactId

    version2.1.1/version

    configuration

    warSourceDirectorywar.cache/warSourceDirectory

    webappDirectorywar.cache/webappDirectory

    webXmlsrc/jetty/web.xml/webXml

    outputFileNameMapping@{artifactId}@-@{baseVersion}@@{dashClassifier?}@.@{extension}@/outputFileNameMapping

    packagingExcludes**/javax/**/*.*,**/client/local/**/*.class/packagingExcludes

    archive

    manifestEntries

    Dependenciesorg.jboss.as.naming,org.jboss.as.server,org.jboss.msc/Dependencies

    /manifestEntries

    /archive

    /configuration

    /plugin

    plugin

    groupIdorg.apache.maven.plugins/groupId

    artifactIdmaven-antrun-plugin/artifactId

    version1.2/version

    executions

    execution

    idjboss.package/id

    phaseprepare-package/phase

    configuration

    tasks

    copy file="src/jboss/web.xml" toDir="src/main/webapp/WEB-INF"

    overwrite="true" /

    delete file="src/main/webapp/WEB-INF/jetty-env.xml" /

    delete file="src/main/webapp/WEB-INF/classes/jndi.properties" /

    copy todir="war.cache/app/"

    fileset dir="src/main/webapp/app/" /

    /copy

    exec executable="git"

    arg value="add" /

    arg value="war.cache" /

    /exec

    exec executable="git"

    arg value="commit" /

    arg value="-a" /

    arg value="-m" /

    arg value="'commit war.cache'" /

    /exec

    echo message="Openshift Prepared!" /

    /tasks

    /configuration

    goals

    goalrun/goal

    /goals

    /execution

    /executions

    /plugin

    /plugins

    /build

    /profile

    !-- Begin Tomcat 6 and 7 support --

    profile

    idtomcat/id

    properties

    webDescriptortomcat/webDescriptor

    /properties

    /profile

    !-- Profile that must be enabled when running integration tests (any test

    that extends GWTTestCase directly or indirectly) --

    profile

    idintegration-test/id

    properties

    profile.testOutputDirectorysrc/main/webapp/WEB-INF/classes/profile.testOutputDirectory

    webDescriptorjetty/webDescriptor

    /properties

    build

    testResources

    testResource

    directorysrc/test/java/directory

    /testResource

    testResource

    directorysrc/test/resources/directory

    /testResource

    /testResources

    plugins

    plugin

    artifactIdmaven-surefire-plugin/artifactId

    version2.5/version

    configuration

    skipTestsfalse/skipTests

    additionalClasspathElements

    additionalClasspathElement${basedir}/${profile.testOutputDirectory}/

    /additionalClasspathElement

    additionalClasspathElement${basedir}/src/test/java//additionalClasspathElement

    additionalClasspathElement${basedir}/src/main/java//additionalClasspathElement

    /additionalClasspathElements

    useManifestOnlyJarfalse/useManifestOnlyJar

    forkModepertest/forkMode

    !-- Note: to run the test in a real browser, set -DargLine='-Dgwt.args="-runStyle

    Manual:1"' --

    argLine-Xmx512m ${argLine}/argLine

    systemProperties

    !-- Must disable long polling for automated tests to succeed --

    property

    nameerrai.hosted_mode_testing/name

    valuetrue/value

    /property

    property

    namegwt.args/name

    value-war src/main/webapp/value

    /property

    /systemProperties

    /configuration

    /plugin

    /plugins

    /build

    dependencies

    dependency

    groupIdjavax.servlet/groupId

    artifactIdservlet-api/artifactId

    version2.5/version

    scopeprovided/scope

    /dependency

    dependency

    groupIdjavax.servlet/groupId

    artifactIdjsp-api/artifactId

    version2.0/version

    scopeprovided/scope

    /dependency

    dependency

    groupIdlog4j/groupId

    artifactIdlog4j/artifactId

    version1.2.16/version

    /dependency

    dependency

    groupIdjunit/groupId

    artifactIdjunit/artifactId

    version4.8.1/version

    scopecompile/scope

    /dependency

    dependency

    groupIdorg.jboss.ejb3/groupId

    artifactIdjboss-ejb3-api/artifactId

    scopeprovided/scope

    version3.1.0/version

    /dependency

    !-- Errai Core --

    dependency

    groupIdorg.jboss.errai/groupId

    artifactIderrai-bus/artifactId

    version${errai.version}/version

    /dependency

    dependency

    groupIdorg.jboss.errai/groupId

    artifactIderrai-ioc/artifactId

    version${errai.version}/version

    exclusions

    exclusion

    groupIdjavax.inject/groupId

    artifactIdjavax.inject/artifactId

    /exclusion

    exclusion

    groupIdjavax.annotation/groupId

    artifactIdjsr250-api/artifactId

    /exclusion

    /exclusions

    /dependency

    dependency

    groupIdorg.jboss.errai/groupId

    artifactIderrai-cdi-client/artifactId

    version${errai.version}/version

    scopecompile/scope

    /dependency

    dependency

    groupIdorg.jboss.errai/groupId

    artifactIderrai-tools/artifactId

    version${errai.version}/version

    /dependency

    dependency

    groupIdorg.mvel/groupId

    artifactIdmvel2/artifactId

    version${mvel.version}/version

    /dependency

    dependency

    groupIdorg.jboss.errai/groupId

    artifactIderrai-cdi-jetty/artifactId

    version${errai.version}/version

    /dependency

    !-- CDI Development Utils --

    !-- This must be placed above com.google.gwt:gwt-dev to override the

    Jetty that is present there --

    dependency

    groupIdorg.mortbay.jetty/groupId

    artifactIdjetty/artifactId

    version${jetty.version}/version

    scopecompile/scope

    /dependency

    dependency

    groupIdorg.mortbay.jetty/groupId

    artifactIdjetty-plus/artifactId

    version${jetty.version}/version

    scopecompile/scope

    /dependency

    dependency

    groupIdorg.mortbay.jetty/groupId

    artifactIdjetty-naming/artifactId

    version${jetty.version}/version

    scopecompile/scope

    /dependency

    !-- Weld Modules --

    dependency

    groupIdorg.jboss.weld.se/groupId

    artifactIdweld-se-core/artifactId

    version${weld.version}/version

    scopecompile/scope

    /dependency

    dependency

    groupIdorg.jboss.weld.servlet/groupId

    artifactIdweld-servlet-core/artifactId

    version${weld.version}/version

    scopecompile/scope

    /dependency

    dependency

    groupIdorg.glassfish.web/groupId

    artifactIdel-impl/artifactId

    scoperuntime/scope

    version2.1.2-b04/version

    /dependency

    !-- GWT and GWT Extensions --

    dependency

    groupIdcom.google.gwt/groupId

    artifactIdgwt-user/artifactId

    version${gwt.version}/version

    scopecompile/scope

    /dependency

    dependency

    groupIdcom.google.gwt/groupId

    artifactIdgwt-dev/artifactId

    version${gwt.version}/version

    scopecompile/scope

    /dependency

    dependency

    groupIdjavax.validation/groupId

    artifactIdvalidation-api/artifactId

    version1.0.0.GA/version

    scopecompile/scope

    /dependency

    dependency

    groupIdjavax.validation/groupId

    artifactIdvalidation-api/artifactId

    version1.0.0.GA/version

    classifiersources/classifier

    scopecompile/scope

    /dependency

    !-- Runtime / Container dependencies --

    !-- dependency groupIdorg.slf4j/groupId artifactIdslf4j-api/artifactId

    version${slf4j.version}/version /dependency --

    dependency

    groupIdorg.jboss/groupId

    artifactIdjboss-common-core/artifactId

    version2.2.14.GA/version

    /dependency

    dependency

    groupIdorg.jboss.errai/groupId

    artifactIderrai-javax-enterprise/artifactId

    version${errai.version}/version

    scopeprovided/scope

    /dependency

    /dependencies

    /profile

    /profiles

    build

    outputDirectorysrc/main/webapp/WEB-INF/classes/outputDirectory

    plugins

    plugin

    groupIdorg.codehaus.mojo/groupId

    artifactIdgwt-maven-plugin/artifactId

    version${gwt.maven.version}/version

    configuration

    logLevelDEBUG/logLevel

    runTargetApp.html/runTarget

    extraJvmArgs-Xmx1000m -XX:MaxPermSize=500m/extraJvmArgs

    soycfalse/soyc

    hostedWebappsrc/main/webapp//hostedWebapp

    serverorg.jboss.errai.cdi.server.gwt.JettyLauncher/server

    /configuration

    executions

    execution

    idgwt-clean/id

    phaseclean/phase

    goals

    goalclean/goal

    /goals

    /execution

    execution

    idgwt-compile/id

    goals

    goalresources/goal

    goalcompile/goal

    /goals

    /execution

    /executions

    /plugin

    plugin

    artifactIdmaven-war-plugin/artifactId

    version2.1.1/version

    configuration

    warName${project.artifactId}/warName

    outputFileNameMapping@{artifactId}@-@{baseVersion}@@{dashClassifier?}@.@{extension}@/outputFileNameMapping

    packagingExcludes**/javax/**/*.*,**/client/local/**/*.class/packagingExcludes

    webResources

    resource

    !-- this is relative to the pom.xml directory --

    directorysrc/${webDescriptor}/directory

    /resource

    /webResources

    /configuration

    /plugin

    !-- Tests are skipped by default because they require additional GWT

    dependencies. Run mvn with -Pintegration-test to enable testing. --

    plugin

    artifactIdmaven-surefire-plugin/artifactId

    version2.5/version

    configuration

    skipTeststrue/skipTests

    /configuration

    /plugin

    plugin

    groupIdorg.jboss.errai/groupId

    artifactIdjacoco-gwt-maven-plugin/artifactId

    version0.5.4.201202141554/version

    executions

    execution

    idjacoco-gwt-prepare-agent/id

    phaseinitialize/phase

    goals

    goalprepare-agent/goal

    /goals

    /execution

    execution

    idjacoco-gwt-report/id

    phasesite/phase

    goals

    goalreport/goal

    /goals

    /execution

    /executions

    /plugin

    plugin

    artifactIdmaven-clean-plugin/artifactId

    version2.4.1/version

    configuration

    filesets

    fileset

    directory${basedir}/directory

    includes

    includewww-test/**/include

    include.gwt/**/include

    include.errai/**/include

    includesrc/main/webapp/app/**/include

    includesrc/main/webapp/WEB-INF/deploy/**/include

    includesrc/main/webapp/WEB-INF/lib/**/include

    includesrc/main/webapp/WEB-INF/classes/**/include

    include**/gwt-unitCache/**/include

    include**/*.JUnit/**/include

    /includes

    /fileset

    /filesets

    /configuration

    /plugin

    /plugins

    pluginManagement

    plugins

    plugin

    groupIdorg.eclipse.m2e/groupId

    artifactIdlifecycle-mapping/artifactId

    version1.0.0/version

    configuration

    lifecycleMappingMetadata

    pluginExecutions

    pluginExecution

    pluginExecutionFilter

    groupIdorg.codehaus.mojo/groupId

    artifactIdgwt-maven-plugin/artifactId

    versionRange[2.3.0,)/versionRange

    goals

    goalresources/goal

    /goals

    /pluginExecutionFilter

    action

    execute /

    /action

    /pluginExecution

    pluginExecution

    pluginExecutionFilter

    groupIdorg.jboss.errai/groupId

    artifactIdjacoco-gwt-maven-plugin/artifactId

    versionRange[0.0,)/versionRange

    goals

    goalprepare-agent/goal

    /goals

    /pluginExecutionFilter

    action

    ignore /

    /action

    /pluginExecution

    /pluginExecutions

    /lifecycleMappingMetadata

    /configuration

    /plugin

    /plugins

    /pluginManagement

    /build

    !-- Repositories --

    repositories

    repository

    idjboss-public-repository-group/id

    nameJBoss Public Maven Repository Group/name

    urlhttps://repository.jboss.org/nexus/content/groups/public//url

    layoutdefault/layout

    releases

    updatePolicynever/updatePolicy

    /releases

    snapshots

    updatePolicynever/updatePolicy

    /snapshots

    /repository

    repository

    idJBOSS_NEXUS/id

    urlhttp://repository.jboss.org/nexus/content/groups/public/url

    /repository

    /repositories

    pluginRepositories

    pluginRepository

    idjboss-public-repository-group/id

    nameJBoss Public Maven Repository Group/name

    urlhttps://repository.jboss.org/nexus/content/groups/public//url

    layoutdefault/layout

    releases

    updatePolicynever/updatePolicy

    /releases

    snapshots

    updatePolicynever/updatePolicy

    /snapshots

    /pluginRepository

    /pluginRepositories

    !-- DistributionManagement --

    distributionManagement

    repository

    idjboss-releases-repository/id

    nameJBoss Releases Repository/name

    urlhttps://repository.jboss.org/nexus/service/local/staging/deploy/maven2//url

    /repository

    snapshotRepository

    idjboss-snapshots-repository/id

    nameJBoss Snapshots Repository/name

    urlhttps://repository.jboss.org/nexus/content/repositories/snapshots//url

    /snapshotRepository

    /distributionManagement

    /project

  • RELEVANCY SCORE 2.50

    DB:2.50:Is There Anyway To Get A Page Fragment To Work Like This?... p1


    I am trying to use a page fragment to contain an h:messages like that described in this article:

    http://wiki.apache.org/myfaces/Displaying_Errors/Infos/Warnings_in_JSF_Pages

    I can get the h:messages to display correctly but the value of

    getFacesContext().getMaximumSeverity()

    is always null. I don't understand why this is. Can someone explain how to get this to work?

    public class PageMessagesF extends AbstractFragmentBean
    {
    private static final long serialVersionUID = 1L;
    final static Log log = LogFactory.getLog(PageMessagesF.class);

    private int __placeholder;

    private void _init() throws Exception {
    }

    private HtmlPanelGrid messagePanel = new HtmlPanelGrid();
    public HtmlPanelGrid getMessagePanel() { return messagePanel; }
    public void setMessagePanel(HtmlPanelGrid hpg) { this.messagePanel = hpg; }

    public HtmlGraphicImage messageGraphicImage = new HtmlGraphicImage();
    public HtmlGraphicImage getMessageGraphicImage() { return messageGraphicImage; }
    public void setMessageGraphicImage(HtmlGraphicImage hgi) { this.messageGraphicImage = hgi; }

    private HtmlPanelGrid messageInnerPanel = new HtmlPanelGrid();
    public HtmlPanelGrid getMessageInnerPanel() { return messageInnerPanel; }
    public void setMessageInnerPanel(HtmlPanelGrid hpg) { this.messageInnerPanel = hpg; }

    private HtmlOutputText messageHeaderLabel = new HtmlOutputText();
    public HtmlOutputText getMessageHeaderLabel() { return messageHeaderLabel; }
    public void setMessageHeaderLabel(HtmlOutputText hot) { this.messageHeaderLabel = hot; }

    public HtmlMessages messageList = new HtmlMessages();
    public HtmlMessages getMessageList() { return messageList; }
    public void setMessageList(HtmlMessages hm) { this.messageList = hm; }
    // /editor-fold

    private static final String BEAN_NAME = PageMessagesF.class.getName();
    private String messageHeader;
    private String messageImage;
    private Severity severityLevel;

    public PageMessagesF()
    {
    log.info("FACES CONTEXT == " + getFacesContext().toString());

    FacesContext fc = FacesContext.getCurrentInstance();
    log.info("FACES CONTEXT.SEVERITY == " + fc.getMaximumSeverity());

    Iterator msgIter = fc.getMessages();
    boolean errorMsgExists = false;
    while (msgIter.hasNext())
    {
    //messagePanel.setRendered(true);
    FacesMessage msg = (FacesMessage) msgIter.next();
    log.info("FACES CONTEXT msg.detail == " + msg.getDetail());
    log.info("FACES CONTEXT msg.summary == " + msg.getSummary());
    log.info("FACES CONTEXT msg.severity == " + msg.getSeverity());

    errorMsgExists = true;
    break;
    }

    if (!errorMsgExists)
    {
    //messagePanel.setRendered(false);
    log.info("FACES CONTEXT msgIter == EMPTY");
    }

    messageHeader = null;

    // see if there are messages queued for the page
    severityLevel = getFacesContext().getMaximumSeverity();

    if (severityLevel == null)
    {
    log.info("Severity Level Trapped: level == " + severityLevel);
    messageHeader = "There is a message on the page that is preventing you from proceeding.";
    messageImage = "/resources/about.png";
    }
    else
    {
    log.info("Severity Level Trapped: level = '" + severityLevel.toString() + "'");

    if (severityLevel.compareTo(FacesMessage.SEVERITY_ERROR) == 0)
    {
    messageHeader = "There are errors on the page.";
    messageImage = "/resources/error.png";
    }
    else if (severityLevel.compareTo(FacesMessage.SEVERITY_INFO) == 0)
    {
    messageHeader = "There are messages on the page.)";
    messageImage = "/resources/information.png";
    }
    else if (severityLevel.compareTo(FacesMessage.SEVERITY_WARN) == 0)
    {
    messageHeader = "There are warnings on the page.";
    messageImage = "/resources/warning.png";
    }
    else if (severityLevel.compareTo(FacesMessage.SEVERITY_FATAL) == 0)
    {
    messageHeader = "There is a fatal error on the page.";
    messageImage = "/resources/forbidden.png";
    }
    }
    }

    public ApplicationBean1 getApplicationBean1() {
    return (ApplicationBean1)getBean("ApplicationBean1");
    }

    public SessionBean1 getSessionBean1() {
    return (SessionBean1)getBean("SessionBean1");
    }

    public RequestBean1 getRequestBean1() {
    return (RequestBean1)getBean("RequestBean1");
    }

    public void init()
    {
    super.init();

    try
    {
    _init();
    }
    catch (Exception e)
    {
    log.error("PageMessagesF Initialization Failure", e);
    throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
    }
    }

    /**
    * pCallback method that is called after rendering is completed for
    * this request, if codeinit()/code was called. Override this
    * method to release resources acquired in the codeinit()/code
    * resources that will be needed for event handlers and lifecycle methods./p
    *
    * pThe default implementation does nothing./p
    */
    public void destroy()
    {
    log.info("destroy()");
    }

    public Boolean getRenderMessage()
    {
    log.info("getRenderMessage() == " + StringUtils.isNotBlank(getMessageHeader()));
    return new Boolean(StringUtils.isNotBlank(getMessageHeader()));
    }

    public String getBeanName()
    {
    return BEAN_NAME;
    }

    public String getMessageHeader()
    {
    return messageHeader;
    }

    public String getMessageImage()
    {
    log.info("getMessageImage() == " + messageImage);
    return messageImage;
    }
    }

    thanks

  • RELEVANCY SCORE 2.49

    DB:2.49:Problem With Deploying Application da



    I'm trying to deploy web application containing facelets 1.1.14, jsf 1.2 and spring 2.5 and I'm getting this mistake:
    09:34:44,119 ERROR [[/Projekt]] Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
    java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory;" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, com/sun/faces/config/ConfigureListener, and the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) for resolved class, javax/servlet/jsp/JspApplicationContext, have different Class objects for the type javax/el/ExpressionFactory used in the signature
    at com.sun.faces.config.ConfigureListener.registerELResolverAndListenerWithJsp(ConfigureListener.java:1638) at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:455)

    DB:2.49:Problem With Deploying Application da


    Ohhh, Yes:-) Removal these libraries helped. Thanks.But what about using spring-web-flow and facelets?Are some suprises waiting for me?Thanks for all responses.

  • RELEVANCY SCORE 2.49

    DB:2.49:Error Running Rich Suggestionbox Example - Cant Instantiate Class: Org.Richfaces.Demo.Capitals.Capitalsbean, Pls Suggest mm


    Hi,I am trying to run 1st. example of rich suggestionBox from "http://livedemo.exadel.com/richfaces-demo/richfaces/suggestionBox.jsf".I created a project using seam-gen and followed the instructions for set-up as mentioned in "http://relation.to/11633.lace" but facing some configuration issue.I have entry in faces-config.xml, have capitals.xml, capitals-rules.xml and digester-rules.dtd under deployed project"jboss-4.2.3\server\default\deploy\TestNewEntity.ear\TestNewEntity.war\WEB-INF\classes" and commons-digester is under "WEB-INF\lib" as well as jboss lib....Error when loading xhtml: Cant instantiate class: org.richfaces.demo.capitals.CapitalsBean.....com.sun.faces.mgbean.ManagedBeanCreationException: Cant instantiate class: org.richfaces.demo.capitals.CapitalsBean.at com.sun.faces.mgbean.BeanBuilder.newBeanInstance(BeanBuilder.java:191)at com.sun.faces.mgbean.BeanBuilder.build(BeanBuilder.java:106).....Caused by: org.apache.commons.digester.xmlrules.XmlLoadExceptionat org.apache.commons.digester.xmlrules.FromXmlRuleSet$URLXMLRulesLoader.loadRules(FromXmlRuleSet.java:199).....Caused by: java.lang.NullPointerExceptionat org.apache.commons.digester.xmlrules.FromXmlRuleSet$URLXMLRulesLoader.loadRules(FromXmlRuleSet.java:197)Thanks in advance..

    DB:2.49:Error Running Rich Suggestionbox Example - Cant Instantiate Class: Org.Richfaces.Demo.Capitals.Capitalsbean, Pls Suggest mm

    Hi,
    I am able to run the example but facing issues using suggestion box in ui:repeat.
    We have dynamic row on ui which contains suggestion box, where user can add or remove row. If user clicks Add, row is added to a table in UI with same fields as in previous rows.
    As suggestion box uses id to render, I cannot specify fix id for it...
    Please give your inputs on how I can acheive dynamic addition of suggestionBox.
    RegardsVal

  • RELEVANCY SCORE 2.49

    DB:2.49:Deploying An Application With Managed Libraries xj


    Hi,
    I am trying to deploy an Applicaition on Oracle App Server 10.1.3.
    I develop the application in Jdev 1013
    in my JDeveloper descriptor, i edit the Properties - File Groups/Web-INF/lib - Filters, i deselect the Merged contents.

    Create a war file.

    All libraries that are required [ie. present in the list JDeveloper descriptor, i edit the Properties - File Groups/Web-INF/lib - Filters,], i jar them to create Portal.jar.
    i place the jar at D:\Temp\Portal.jar.
    This location is on the same machine where the Oracle App Server Runs.

    I log into the Oracle Application Server - Enterprise Manager, and Create an entry in oc4J:home - Shared Libraries
    Specify the Path where the Portal.jar exists.

    I then deploy the Application specifing the location where the .war file is present. - procedure is Deploy-Select Archive - Application Attributes.
    In Deploy settings, i click on Deployment Tasks - Configure Class Loading, i go to Import Shared Libraries and check Portal, and then I click on Deploy.

    I then get Deploying Application Failed with the following Errors
    Aug 19, 2006 2:54:02 PM] Exception: NoClassDefFoundError: javax/faces/FacesException
    [Aug 19, 2006 2:54:02 PM] Operation failed with error: javax/faces/FacesException
    ..
    I don't understand why?

    My need is that all Libraries that are required by the Application, I Jar it and place it as a Shared Library on the Server. So whenever i deploy an application it should include the shared libraries present on the server.

    This would ensure my war file is small.

    Instead of all my applications inculding the jar files in thier respietice war files, i would like to place the requiste war in a single place on the Server and link the application to use that shared library war.

    Thanks in advance

    Vishnu

    DB:2.49:Deploying An Application With Managed Libraries xj

    Hi,
    I am trying to deploy an Applicaition on Oracle App Server 10.1.3.
    I develop the application in Jdev 1013
    in my JDeveloper descriptor, i edit the Properties - File Groups/Web-INF/lib - Filters, i deselect the Merged contents.

    Create a war file.

    All libraries that are required [ie. present in the list JDeveloper descriptor, i edit the Properties - File Groups/Web-INF/lib - Filters,], i jar them to create Portal.jar.
    i place the jar at D:\Temp\Portal.jar.
    This location is on the same machine where the Oracle App Server Runs.

    I log into the Oracle Application Server - Enterprise Manager, and Create an entry in oc4J:home - Shared Libraries
    Specify the Path where the Portal.jar exists.

    I then deploy the Application specifing the location where the .war file is present. - procedure is Deploy-Select Archive - Application Attributes.
    In Deploy settings, i click on Deployment Tasks - Configure Class Loading, i go to Import Shared Libraries and check Portal, and then I click on Deploy.

    I then get Deploying Application Failed with the following Errors
    Aug 19, 2006 2:54:02 PM] Exception: NoClassDefFoundError: javax/faces/FacesException
    [Aug 19, 2006 2:54:02 PM] Operation failed with error: javax/faces/FacesException
    ..
    I don't understand why?

    My need is that all Libraries that are required by the Application, I Jar it and place it as a Shared Library on the Server. So whenever i deploy an application it should include the shared libraries present on the server.

    This would ensure my war file is small.

    Instead of all my applications inculding the jar files in thier respietice war files, i would like to place the requiste war in a single place on the Server and link the application to use that shared library war.

    Thanks in advance

    Vishnu

  • RELEVANCY SCORE 2.48

    DB:2.48:Two Jsf Based Portlets Fail To Display fz


    I have two portlets which are JSF based has their own web.xml, faces-config.xml and their own coppies of lib/*.jars but when deployed and put in a single display channel only one succeeds to display and moreover the one in portal which is above other works the other one throws a FacesException.

    Any thoughts?

    DB:2.48:Two Jsf Based Portlets Fail To Display fz

    Hi,

    I'm also getting the following error:

    javax.servlet.jsp.JspException
    at com.sun.faces.taglib.jsf_core.ViewTag.doStartTag(ViewTag.java:117)

    Which was the root of your problem. Did you find out what was the cause?

    TIA,

    Brian

  • RELEVANCY SCORE 2.48

    DB:2.48:Error Attempting To Instantiate The Activation Agent Class "Oracle.Tip.Adap z8


    I am trying to run the JMS and AQ tutorials and experiencing class problems. The BPEL process I am looking at is Queue2Topic.

    When I go to the BPEL console, I have a yellow exclamation mark against the process Queue2Topic, and when I click on the process receive the following error message :-

    Exception Name:
    Error while creating activation job
    Exception Description:
    An error occurred while attempting to instantiate the activation agent class "oracle.tip.adapter.fw.agent.jca.JCAActivationAgent". The exception reported was: "javax/resource/spi/work/WorkManager".
    Suggested Fix:
    Please fix the error and redeploy the class to the server.
    Context:
    Stack Trace:

    DB:2.48:Error Attempting To Instantiate The Activation Agent Class "Oracle.Tip.Adap z8

    could you please run obversion.bat and let us know what version of the server you were running? We will make sure that this is fixed in 2.1.3 and 10.1.2. -Edwin

  • RELEVANCY SCORE 2.47

    DB:2.47:Class Loading Problem a7



    I have a custom tag handler

    import com.sun.facelets.FaceletContext;
    import com.sun.facelets.FaceletException;
    import com.sun.facelets.tag.TagAttribute;
    import com.sun.facelets.tag.TagConfig;
    import com.sun.facelets.tag.TagHandler;

    public class InsertItemTagHandler extends TagHandler {

    ...

    public InsertItemTagHandler(TagConfig config) {
    super(config);

    ...

    }

    public void apply(FaceletContext context, UIComponent component) throws IOException, FacesException, FaceletException, ELException {

    ...

    }

    }

    DB:2.47:Class Loading Problem a7


    You mentioned earlier in the application.xml you had that jar defined as a javaModule. Maybe JBoss is picking it up, then Tomcat is. Have you tried taking the line out of the application.xml?

  • RELEVANCY SCORE 2.47

    DB:2.47:Facesexception m7


    Hi All,

    I am new to JSF.I am trying simple JSF application.But its giving me error as,

    javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: 'com.MyLogin'.. com.MyLogin

    for this I checked if my class file is there in classpath or not ,but its there.

    My faces config is as follows,

    faces-config
    navigation-rule
    from-view-id/login.jsp/from-view-id
    navigation-case
    from-outcomesuccess/from-outcome
    to-view-id/greeting.jsp/to-view-id
    /navigation-case
    navigation-case
    from-outcomefailure/from-outcome
    to-view-id/login.jsp/to-view-id
    /navigation-case
    /navigation-rule
    managed-bean
    descriptionLogin Bean Holder/description
    managed-bean-nameMyBean/managed-bean-name
    managed-bean-classcom.MyLogin/managed-bean-class
    managed-bean-scopesession/managed-bean-scope
    /managed-bean
    /faces-config

    my servlet mapping in web.xml is as,

    servlet-mapping
    servlet-nameFaces Servlet/servlet-name
    url-pattern*.faces/url-pattern
    /servlet-mapping

    My login.jsp contains,
    h:form id="loginForm"
    h:inputText id="username" value="#{MyBean.username}" /

    if i remove value attribute from above , login page is showing in browser.But if I put value attribute itas giving mentioned error.

    I am accessing my application through ,

    http://localhost:8080/application name/jsp/login.faces

    any suggestions ?

    Thx
    sandip

    DB:2.47:Facesexception m7

    Thx Karthikeyan those who helped me.

    My problem is solved.
    The problem was with JDK . I was using j2sdk1.4 which I changed to JDK5.
    Now its working.

    Thx again,
    sandip

  • RELEVANCY SCORE 2.46

    DB:2.46:Deploy .War Created Using Ant ck


    Hi

    am trying to deploy a .war into oc4j AS through its GUI console.

    During the course of deploying the .war file am entering these info....

    parent application : default

    Bind module to site : default-web-site

    but when i deploy a, getting this...

    [Mar 11, 2008 2:59:12 PM] Application Deployer for test333 STARTS.
    [Mar 11, 2008 2:59:12 PM] Copy the archive to D:\Jdev10\j2ee\home\applications\test333.ear
    [Mar 11, 2008 2:59:12 PM] Initialize D:\Jdev10\j2ee\home\applications\test333.ear begins...
    [Mar 11, 2008 2:59:12 PM] Unpacking test333.ear
    [Mar 11, 2008 2:59:12 PM] Done unpacking test333.ear
    [Mar 11, 2008 2:59:12 PM] Unpacking mymap.war
    [Mar 11, 2008 2:59:13 PM] Done unpacking mymap.war
    [Mar 11, 2008 2:59:13 PM] Initialize D:\Jdev10\j2ee\home\applications\test333.ear ends...
    [Mar 11, 2008 2:59:13 PM] Starting application : test333
    [Mar 11, 2008 2:59:13 PM] Initializing ClassLoader(s)
    [Mar 11, 2008 2:59:13 PM] Initializing EJB container
    [Mar 11, 2008 2:59:13 PM] Loading connector(s)
    [Mar 11, 2008 2:59:13 PM] Starting up resource adapters
    [Mar 11, 2008 2:59:13 PM] Initializing EJB sessions
    [Mar 11, 2008 2:59:13 PM] Committing ClassLoader(s)
    [Mar 11, 2008 2:59:13 PM] Initialize mymap begins...
    [Mar 11, 2008 2:59:13 PM] Initialize mymap ends...
    [Mar 11, 2008 2:59:13 PM] Started application : test333
    [Mar 11, 2008 2:59:13 PM] Binding web application(s) to site default-web-site begins...
    [Mar 11, 2008 2:59:13 PM] Binding mymap web-module for application test333 to site default-web-site under context root mymap
    [Mar 11, 2008 2:59:14 PM] Exception: NoClassDefFoundError: javax/faces/FacesException
    [Mar 11, 2008 2:59:14 PM] Operation failed with error: javax/faces/FacesException

    DB:2.46:Deploy .War Created Using Ant ck

    Hi

    am trying to deploy a .war into oc4j AS through its GUI console.

    During the course of deploying the .war file am entering these info....

    parent application : default

    Bind module to site : default-web-site

    but when i deploy a, getting this...

    [Mar 11, 2008 2:59:12 PM] Application Deployer for test333 STARTS.
    [Mar 11, 2008 2:59:12 PM] Copy the archive to D:\Jdev10\j2ee\home\applications\test333.ear
    [Mar 11, 2008 2:59:12 PM] Initialize D:\Jdev10\j2ee\home\applications\test333.ear begins...
    [Mar 11, 2008 2:59:12 PM] Unpacking test333.ear
    [Mar 11, 2008 2:59:12 PM] Done unpacking test333.ear
    [Mar 11, 2008 2:59:12 PM] Unpacking mymap.war
    [Mar 11, 2008 2:59:13 PM] Done unpacking mymap.war
    [Mar 11, 2008 2:59:13 PM] Initialize D:\Jdev10\j2ee\home\applications\test333.ear ends...
    [Mar 11, 2008 2:59:13 PM] Starting application : test333
    [Mar 11, 2008 2:59:13 PM] Initializing ClassLoader(s)
    [Mar 11, 2008 2:59:13 PM] Initializing EJB container
    [Mar 11, 2008 2:59:13 PM] Loading connector(s)
    [Mar 11, 2008 2:59:13 PM] Starting up resource adapters
    [Mar 11, 2008 2:59:13 PM] Initializing EJB sessions
    [Mar 11, 2008 2:59:13 PM] Committing ClassLoader(s)
    [Mar 11, 2008 2:59:13 PM] Initialize mymap begins...
    [Mar 11, 2008 2:59:13 PM] Initialize mymap ends...
    [Mar 11, 2008 2:59:13 PM] Started application : test333
    [Mar 11, 2008 2:59:13 PM] Binding web application(s) to site default-web-site begins...
    [Mar 11, 2008 2:59:13 PM] Binding mymap web-module for application test333 to site default-web-site under context root mymap
    [Mar 11, 2008 2:59:14 PM] Exception: NoClassDefFoundError: javax/faces/FacesException
    [Mar 11, 2008 2:59:14 PM] Operation failed with error: javax/faces/FacesException

  • RELEVANCY SCORE 2.46

    DB:2.46:Error In Deploying Taskspace In Weblogic - Com/Crystaldecisions/Report/Web/Jsf/Jsfviewertag : Javax/Faces/Webapp/Uicomponenttag am



    Hi ,

    While deploying Taskspace application in weblogic server(10.3) Windows, we are getting following error:

    Error Deployer BEA-149205 Failed to initialize the application 'taskspace' due to error java.lang.NoClassDefFoundError: com/crystaldecisions/report/web/jsf/JSFViewerTag : javax/faces/webapp/UIComponentTag.

    java.lang.NoClassDefFoundError: com/crystaldecisions/report/web/jsf/JSFViewerTag : javax/faces/webapp/UIComponentTag

    at java.lang.ClassLoader.defineClass1(Native Method)

    at java.lang.ClassLoader.defineClass(ClassLoader.java:621)

    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)

    at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:335)

    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:288)

    Truncated. see log file for complete stacktrace

    java.lang.NoClassDefFoundError: com/crystaldecisions/report/web/jsf/JSFViewerTag : javax/faces/webapp/UIComponentTag

    at java.lang.ClassLoader.defineClass1(Native Method)

    at java.lang.ClassLoader.defineClass(ClassLoader.java:621)

    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)

    at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:335)

    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:288)

    Truncated. see log file for complete stacktrace


    DB:2.46:Error In Deploying Taskspace In Weblogic - Com/Crystaldecisions/Report/Web/Jsf/Jsfviewertag : Javax/Faces/Webapp/Uicomponenttag am


    Hi ,

    While deploying Taskspace application in weblogic server(10.3) Windows, we are getting following error:

    Error Deployer BEA-149205 Failed to initialize the application 'taskspace' due to error java.lang.NoClassDefFoundError: com/crystaldecisions/report/web/jsf/JSFViewerTag : javax/faces/webapp/UIComponentTag.

    java.lang.NoClassDefFoundError: com/crystaldecisions/report/web/jsf/JSFViewerTag : javax/faces/webapp/UIComponentTag

    at java.lang.ClassLoader.defineClass1(Native Method)

    at java.lang.ClassLoader.defineClass(ClassLoader.java:621)

    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)

    at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:335)

    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:288)

    Truncated. see log file for complete stacktrace

    java.lang.NoClassDefFoundError: com/crystaldecisions/report/web/jsf/JSFViewerTag : javax/faces/webapp/UIComponentTag

    at java.lang.ClassLoader.defineClass1(Native Method)

    at java.lang.ClassLoader.defineClass(ClassLoader.java:621)

    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)

    at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:335)

    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:288)

    Truncated. see log file for complete stacktrace


  • RELEVANCY SCORE 2.46

    DB:2.46:Openscript:Adf Solve Problem 9z


    Should load testing scripts for testing ADF faces application with OpenScript work correctly (OpenScript Version: 9.1.0.0 Production Build ID: 2.4.0.0182).

    {
    http.solve(
    "javax.faces.ViewState_1",
    "input type=\"hidden\" name=\"javax\\.faces\\.ViewState\" value=\"(.+?)\"",
    "", false, Source.Html, 0, EncodeOptions.None);
    http.solve("_adf.ctrl-state_1",
    "\\?_adf\\.ctrl-state=(.+?)\"", "", false,
    Source.Html, 0, EncodeOptions.None);
    }

    the error is
    Failed to solve variable javax.faces.ViewState_1 using regex input type="hidden" name="javax\.faces\.ViewState" value="(.+?)"

    oracle.oats.scripting.modules.http.api.exceptions.SolveException: Failed to solve variable javax.faces.ViewState_1 using regex input type="hidden" name="javax\.faces\.ViewState" value="(.+?)"
    at oracle.oats.scripting.modules.http.api.exceptions.SolveException.createSolveExceptionRegex(SolveException.java:63)
    at oracle.oats.scripting.modules.http.api.HTTPService.solve(HTTPService.java:1784)
    at script.run(script.java:209)
    at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:311)
    at oracle.oats.scripting.modules.basic.api.internal.IteratingAgent.run(IteratingAgent.java:631)
    at java.lang.Thread.run(Thread.java:619)

    DB:2.46:Openscript:Adf Solve Problem 9z

    Should load testing scripts for testing ADF faces application with OpenScript work correctly (OpenScript Version: 9.1.0.0 Production Build ID: 2.4.0.0182).

    {
    http.solve(
    "javax.faces.ViewState_1",
    "input type=\"hidden\" name=\"javax\\.faces\\.ViewState\" value=\"(.+?)\"",
    "", false, Source.Html, 0, EncodeOptions.None);
    http.solve("_adf.ctrl-state_1",
    "\\?_adf\\.ctrl-state=(.+?)\"", "", false,
    Source.Html, 0, EncodeOptions.None);
    }

    the error is
    Failed to solve variable javax.faces.ViewState_1 using regex input type="hidden" name="javax\.faces\.ViewState" value="(.+?)"

    oracle.oats.scripting.modules.http.api.exceptions.SolveException: Failed to solve variable javax.faces.ViewState_1 using regex input type="hidden" name="javax\.faces\.ViewState" value="(.+?)"
    at oracle.oats.scripting.modules.http.api.exceptions.SolveException.createSolveExceptionRegex(SolveException.java:63)
    at oracle.oats.scripting.modules.http.api.HTTPService.solve(HTTPService.java:1784)
    at script.run(script.java:209)
    at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:311)
    at oracle.oats.scripting.modules.basic.api.internal.IteratingAgent.run(IteratingAgent.java:631)
    at java.lang.Thread.run(Thread.java:619)

  • RELEVANCY SCORE 2.45

    DB:2.45:Weblogic Error Javax/Faces/Context/Partialviewcontextwrapper ka


    Hello.

    I have the following problem.

    I develop application Spring+richfaces 3.3.3 +hibernate 3.0 and deploy in weblogic 10.3.5 (Jrockit) on RedHatLinux Enterprise 5.5 64 bits, but when deploy appplication and the console show what is ok, when load init page show message javax/faces/context/PartialViewContextWrapper.

    I investigate and the problem is what my war use jsf 1.2 and when weblogic load page not found class javax/faces/context/PartialViewContextWrapper because this is in jsf 2.0.

    My question is how I can configurate weblogic for load application?

    Thank you

    DB:2.45:Weblogic Error Javax/Faces/Context/Partialviewcontextwrapper ka

    Hello.

    I have the following problem.

    I develop application Spring+richfaces 3.3.3 +hibernate 3.0 and deploy in weblogic 10.3.5 (Jrockit) on RedHatLinux Enterprise 5.5 64 bits, but when deploy appplication and the console show what is ok, when load init page show message javax/faces/context/PartialViewContextWrapper.

    I investigate and the problem is what my war use jsf 1.2 and when weblogic load page not found class javax/faces/context/PartialViewContextWrapper because this is in jsf 2.0.

    My question is how I can configurate weblogic for load application?

    Thank you

  • RELEVANCY SCORE 2.45

    DB:2.45:Wls 10.3 Classloader Problem? pm


    Hi,

    this is a crosspost form java.lang.NoClassDefFoundError: javax/faces/el/VariableResolver

    I figured it's probably a problem related to classLoader hierarchy, right?

    Any ideas how could I resolve this issue?

    Thanks,
    Jernej

    DB:2.45:Wls 10.3 Classloader Problem? pm

    It seems setting prefer-web-inf-classes fixes that.

    ?xml version="1.0" encoding="UTF-8" ?
    weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app"
    container-descriptor
    prefer-web-inf-classestrue/prefer-web-inf-classes
    /container-descriptor
    /weblogic-web-app

  • RELEVANCY SCORE 2.45

    DB:2.45:Javax.Servlet.Servletexception: Can't Instantiate Class.... 78


    It's clear....it failed to initiate backing-bean class... but I can't understand why it happened?

    backing bean:
    package gridpanel;

    public class ItemsBean {
    private HtmlPanelGrid panel;
    private static Vector items;//collect added items
    private String item;
    private Vector headers;
    ................get*/set* .............................
    }faces-config.xml
    ?xml version='1.0' encoding='UTF-8'?

    !DOCTYPE faces-config PUBLIC
    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_1.dtd"

    faces-config
    managed-bean
    descriptionbacking bean class/description
    managed-bean-nameitem/managed-bean-name
    managed-bean-classgridpanel.ItemsBean/managed-bean-class
    managed-bean-scopesession/managed-bean-scope
    /managed-bean

    /faces-config JSP page
    %@page contentType="text/html"%
    %@page pageEncoding="UTF-8"%

    %@taglib prefix="f" uri="http://java.sun.com/jsf/core"%
    %@taglib prefix="h" uri="http://java.sun.com/jsf/html"%

    !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd"

    html
    head
    meta http-equiv="Content-Type" content="text/html; charset=UTF-8"
    titleJSP Page/title
    /head
    body
    f:view
    h:form id="form"
    h:outputText value="Add item:" /
    h:message id="error" for="item_field" style="color:red;" /
    h:inputText id="item_field" required="true" value="#{item.item}"
    f:validateLength maximum="20" minimum="3"/
    /h:inputText
    h:commandButton value="add item" type="submit" action="#{item.updatePanel}"/
    /h:form
    /f:view
    /body
    /html

    DB:2.45:Javax.Servlet.Servletexception: Can't Instantiate Class.... 78

    Try creating a public no-arg constructor for your ItemsBean.

    CowKing

  • RELEVANCY SCORE 2.44

    DB:2.44:Re: Java.Lang.Noclassdeffounderror: Javax/Faces/Context/Facescontext jj


    I was trying to access the FacesContext from the constructor of my bean Now when I try to access from a method I am getting the error

    Root cause of ServletException.
    java.lang.LinkageError: loader constraint violation: when resolving method "org.springframework.web.jsf.FacesContextUtils.getWebApplicationContext(Ljavax/faces/context/FacesContext;)Lorg/springframework/web/context/WebApplicationContext;" the class loader (instance of weblogic/utils/classloaders/ChangeAwareClassLoader) of the current class, br/imediato/ireciclados/controller/ResumoBean, and the class loader (instance of sun/misc/Launcher$AppClassLoader) for resolved class, org/springframework/web/jsf/FacesContextUtils, have different Class objects for the type javax/faces/context/FacesContext used in the signature
    at br.imediato.ireciclados.controller.ResumoBean.getListaAlertasNaoLidos(ResumoBean.java:27)

    In my facesConfig.xml

    el-resolverorg.springframework.web.jsf.el.WebApplicationContextFacesELResolver/el-resolver

    DB:2.44:Re: Java.Lang.Noclassdeffounderror: Javax/Faces/Context/Facescontext jj

    Guys, I think the problem is related to the configuration of the adf faces + spring.
    For some reason the spring is not having access to the FacesContext.
    It would be a classloader problem?

    I'm using SpringBeanFacesELResolver to manage my BackingBeans.

    java.lang.NoClassDefFoundError: javax/faces/context/FacesContext
    at org.springframework.web.jsf.el.SpringBeanFacesELResolver.getWebApplicationContext(SpringBeanFacesELResolver.java:89)
    at org.springframework.web.jsf.el.SpringBeanFacesELResolver.getBeanFactory(SpringBeanFacesELResolver.java:78)
    at org.springframework.beans.factory.access.el.SpringBeanELResolver.getValue(SpringBeanELResolver.java:49)
    at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
    at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
    at com.sun.el.parser.AstIdentifier.getValue(Unknown Source)
    at com.sun.el.parser.AstValue.getValue(Unknown Source)
    at com.sun.el.ValueExpressionImpl.getValue(Unknown Source)
    at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
    at com.sun.faces.application.ApplicationImpl.createComponentApplyAnnotations(ApplicationImpl.java:1889)
    at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:1109)
    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.createComponent(ComponentTagHandlerDelegateImpl.java:511)
    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:157)
    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
    at oracle.adfinternal.view.faces.facelets.rich.PopupHandler.applyNextHandler(PopupHandler.java:84)
    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)
    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
    at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)
    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
    at com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
    at com.sun.faces.facelets.tag.jsf.core.FacetHandler.apply(FacetHandler.java:104)
    at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)
    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)
    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)

  • RELEVANCY SCORE 2.44

    DB:2.44:Facesexception: Can't Instantiate Class 8z


    Hi,

    Iam getting

    javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: 'selectedOne'.
    org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:821)
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
    org.apache.jsp.popup_jsp._jspService(popup_jsp.java:84)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
    com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147)
    com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:198

    this exception .........

    my faces-config.xml is

    managed-bean
    managed-bean-namecountryBean/managed-bean-name
    managed-bean-classcom.admob.accounting.country.bean.CountryBean/managed-bean-class
    managed-bean-scopesession/managed-bean-scope
    managed-property
    property-nameselectedOne/property-name
    list-entries
    value-classjavax.faces.model.SelectItem/value-class
    null-value/
    /list-entries
    /managed-property

    and in my jsp page

    h:selectOneMenu id="countryValues" value="#{countryBean.selectedOne}"
    f:selectItems value="#{countryBean.countryItems}"/
    /h:selectOneMenu

    and in my bean class is

    public class CountryBean {
    private String selectedOne;
    //private ListCountryBO selectItems;

    public ListSelectItem GetCountryItems(){

    ListSelectItem list = new ArrayListSelectItem();
    Session session = null;
    List countryList = new ArrayList();
    try
    {
    session=HibernateUtil.openSession();
    session.beginTransaction();
    System.out.println("Hibernate Connection is Just Opened");
    DefaultDAOCountryBO dao = new DefaultDAOCountryBO(session, CountryBO.class);
    countryList = dao.findAll();
    Iterator itr = countryList.iterator();
    while(itr.hasNext()){
    CountryBO country = (CountryBO) itr.next();
    SelectItem items = new SelectItem(country.getCountryName());
    list.add(items);
    }
    }
    catch (Exception e)
    {
    System.out.println("Error In Connection");
    }
    finally
    {
    HibernateUtil.closeSession();
    }
    return list;
    }

    this is not working .Plz any body suggest?

    DB:2.44:Facesexception: Can't Instantiate Class 8z

    Hi,

    Iam getting

    javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: 'selectedOne'.
    org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:821)
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
    org.apache.jsp.popup_jsp._jspService(popup_jsp.java:84)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
    com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147)
    com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:198

    this exception .........

    my faces-config.xml is

    managed-bean
    managed-bean-namecountryBean/managed-bean-name
    managed-bean-classcom.admob.accounting.country.bean.CountryBean/managed-bean-class
    managed-bean-scopesession/managed-bean-scope
    managed-property
    property-nameselectedOne/property-name
    list-entries
    value-classjavax.faces.model.SelectItem/value-class
    null-value/
    /list-entries
    /managed-property

    and in my jsp page

    h:selectOneMenu id="countryValues" value="#{countryBean.selectedOne}"
    f:selectItems value="#{countryBean.countryItems}"/
    /h:selectOneMenu

    and in my bean class is

    public class CountryBean {
    private String selectedOne;
    //private ListCountryBO selectItems;

    public ListSelectItem GetCountryItems(){

    ListSelectItem list = new ArrayListSelectItem();
    Session session = null;
    List countryList = new ArrayList();
    try
    {
    session=HibernateUtil.openSession();
    session.beginTransaction();
    System.out.println("Hibernate Connection is Just Opened");
    DefaultDAOCountryBO dao = new DefaultDAOCountryBO(session, CountryBO.class);
    countryList = dao.findAll();
    Iterator itr = countryList.iterator();
    while(itr.hasNext()){
    CountryBO country = (CountryBO) itr.next();
    SelectItem items = new SelectItem(country.getCountryName());
    list.add(items);
    }
    }
    catch (Exception e)
    {
    System.out.println("Error In Connection");
    }
    finally
    {
    HibernateUtil.closeSession();
    }
    return list;
    }

    this is not working .Plz any body suggest?

  • RELEVANCY SCORE 2.44

    DB:2.44:Weblogic 10.0 Mp1 And Seam 2.0.1 Ga jd


    Hi,

    I am trying the seam jee5/booking example on Weblogic 10 MP1 and Seam 2.0.1GA. I have followed the guide lines presented in Chapter 27, Seam on Weblogic. I have downloaded the jboss fixes and applied them. I managed to initially get to work bar session bean to session bean injection.

    However, now when I autodeploy it, I get the following exception:

    java.lang.NoClassDefFound
    Error: org/jboss/seam/jsf/SeamPhaseListener : javax/faces/event/PhaseListener.
    java.lang.NoClassDefFoundError: org/jboss/seam/jsf/SeamPhaseListener : javax/fac
    es/event/PhaseListener

    Where should I place the jboss-seam.jar, so that the class loader picks it up. Also on a side note, for seam 2.0.1GA, if I change SessionBeanInterceptor, how would I rebuild seam (I tried rebuilding from jboss-seam-2.0.1.GA dir using ant but I got loads of errors.

    Please advise.

    Thanks,
    B. Dhaliwal

    DB:2.44:Weblogic 10.0 Mp1 And Seam 2.0.1 Ga jd

    Hi Jay,

    I managed to include SessionBeanInterceptor changes and jee5/booking works fine, incl. session bean injection.

    Thanks very much for your help.

    Regards,
    Balvindar

  • RELEVANCY SCORE 2.44

    DB:2.44:Package Javax Does Not Exist kc


    codeimport javax.ejb.EJBObject;
    class test{}
    /code

    compile error:test.java:2: package javax does not exist

    What *.jar file contains javax.ejb?

    Message was edited by:
    petr88

    DB:2.44:Package Javax Does Not Exist kc

    enterprise edition has ejb, not standard edition. that was my mistkake.

  • RELEVANCY SCORE 2.44

    DB:2.44:3.3.0.Beta4 Unable To Deploy Demo War cm



    Hello,finding out that RF does not run on JB0SS AS 5 (https://jira.jboss.org/jira/browse/RF-5292) i tried to deploy it on 4.2.3i have downloaded richfaces-demo-3.3.0.BETA4-jee5.war fromhttp://repository.jboss.org/maven2/org/richfaces/samples/richfaces-demo/3.3.0.BETA4/.Dropping this war into a freshly unzipped JBossAS 4.2.3GA gives this error:
    08:21:21,651 ERROR [BETA4-jee5]] Exception sending context initialized event to listener instance of class com.sun.faces.config.Co
    nfigureListener
    java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.getE
    xpressionFactory()Ljavax/el/ExpressionFactory;" the class loader (instance of org/jboss/web/tomcat/service/WebAppClassLoader) of t
    he current class, com/sun/faces/config/ConfigureListener, and the class loader (instance of org/jboss/mx/loading/UnifiedClassLoade
    r3) for resolved class, javax/servlet/jsp/JspApplicationContext, have different Class objects for the type javax/el/ExpressionFact
    ory used in the signature
    at com.sun.faces.config.ConfigureListener.registerELResolverAndListenerWithJsp(ConfigureListener.java:577)
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:212)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)

    DB:2.44:3.3.0.Beta4 Unable To Deploy Demo War cm


    Hello Nick,Thanks for your time and your answer. We will try it out.

  • RELEVANCY SCORE 2.44

    DB:2.44:Problem When Deploying Jsf Application On Oc4j 10.1.3.3.0 8j


    working environment: jsf1.2 javaee5.0 oc4j 10.1.3.3.0

    It works fine on tomcat, but when I deploy it on oc4j, I got error messages as follows:

    [Jun 19, 2008 11:50:36 AM] Operation failed with error: Absent Code attribute in method that is not native or abstract in class file javax/faces/FacesException

    this is java.lang.ClassFormatError, so I believe the issue comes from the jar file itself, but apparently it isn't, because I have downloaded a new javaee5 jar file and wrap it in ear file but still got same error message again.

    Is there anybody having the same problem ?

    Thanks

    -- Ray --

    DB:2.44:Problem When Deploying Jsf Application On Oc4j 10.1.3.3.0 8j

    Since I get rid of javaee5 jar file and I still get the same error message,
    I now believe that the issue comes from jsf-api-1.2.
    However, according to previous post, it should be working on oc4j.
    I have already had it updated from maven, so the jar file itself is fine.

    Anyone has a clue on this?

  • RELEVANCY SCORE 2.44

    DB:2.44:Javax 78


    I am having a trouble finding javax. I found some zip files that have the folders in them but I put them in my folder and I still get the error can't find class. Anyone know of a good place to get the right javax and where is the proper place to put it. Thanxs in advance.

    DB:2.44:Javax 78

    You are compiling some TagLibrary classes?

    You need to include the javax.servlet classes in your classpath.
    You should be able to find these classes in [TOMCAT]/common/lib/servlet.jar

    Include this file in your classpath/project build path when you compile, and all will be well.

  • RELEVANCY SCORE 2.44

    DB:2.44:Jsf2 Custom Viewhandler Get 404 Error 1d


    Hello everyone.
    I'm using netbeans 6.8.I want to dynamically change user's locale,so that they can select UI language manually.According to some advice from this forum,I make a CustomViewHandler and config it in faces-comfig.xml.Well,it works.But every h:commandLink give 404 error.And,type URL in addressbar,every xhtml is ok.
    How can i do?(Without CustomViewHandler,no problem.)
    Thanks.

    The error:---------------
    HTTP Status 404 - null not found
    type Status report
    message null not found
    description The requested resource (null not found) is not available.

    The config--------------
    application
    resource-bundle
    base-name/Bundle/base-name
    varbundle/var
    /resource-bundle
    locale-config
    default-localezh/default-locale
    supported-localeen/supported-locale
    supported-localeko/supported-locale
    supported-localeja/supported-locale
    /locale-config
    view-handlermyui.CustomLocaleViewHandler/view-handler
    /application

    The code----------------
    public class CustomLocaleViewHandler extends ViewHandler {
    protected ViewHandler baseViewHandler;

    public CustomLocaleViewHandler(ViewHandler baseViewHandler) {
    super();
    this.baseViewHandler = baseViewHandler;
    }

    @Override
    public Locale calculateLocale(FacesContext context) {
    Locale userLocal = Locale.JAPAN;
    if(userLocal != null){
    return userLocal;
    }else{
    return baseViewHandler.calculateLocale(context);
    }
    }

    @Override
    public String calculateRenderKitId(FacesContext context) {
    return baseViewHandler.calculateRenderKitId(context);
    }

    @Override
    public UIViewRoot createView(FacesContext context, String viewId) {
    return baseViewHandler.createView(context, viewId);
    }

    @Override
    public String getActionURL(FacesContext context, String viewId) {
    return baseViewHandler.getActionURL(context, viewId);
    }

    @Override
    public String getResourceURL(FacesContext context, String path) {
    return baseViewHandler.getResourceURL(context, path);
    }

    @Override
    public void renderView(FacesContext context, UIViewRoot viewToRender) throws IOException, FacesException {
    baseViewHandler.renderView(context, viewToRender);
    }

    @Override
    public UIViewRoot restoreView(FacesContext context, String viewId) {
    return baseViewHandler.restoreView(context, viewId);
    }

    @Override
    public void writeState(FacesContext context) throws IOException {
    baseViewHandler.writeState(context);
    }
    }

    DB:2.44:Jsf2 Custom Viewhandler Get 404 Error 1d

    Hello everyone.
    I'm using netbeans 6.8.I want to dynamically change user's locale,so that they can select UI language manually.According to some advice from this forum,I make a CustomViewHandler and config it in faces-comfig.xml.Well,it works.But every h:commandLink give 404 error.And,type URL in addressbar,every xhtml is ok.
    How can i do?(Without CustomViewHandler,no problem.)
    Thanks.

    The error:---------------
    HTTP Status 404 - null not found
    type Status report
    message null not found
    description The requested resource (null not found) is not available.

    The config--------------
    application
    resource-bundle
    base-name/Bundle/base-name
    varbundle/var
    /resource-bundle
    locale-config
    default-localezh/default-locale
    supported-localeen/supported-locale
    supported-localeko/supported-locale
    supported-localeja/supported-locale
    /locale-config
    view-handlermyui.CustomLocaleViewHandler/view-handler
    /application

    The code----------------
    public class CustomLocaleViewHandler extends ViewHandler {
    protected ViewHandler baseViewHandler;

    public CustomLocaleViewHandler(ViewHandler baseViewHandler) {
    super();
    this.baseViewHandler = baseViewHandler;
    }

    @Override
    public Locale calculateLocale(FacesContext context) {
    Locale userLocal = Locale.JAPAN;
    if(userLocal != null){
    return userLocal;
    }else{
    return baseViewHandler.calculateLocale(context);
    }
    }

    @Override
    public String calculateRenderKitId(FacesContext context) {
    return baseViewHandler.calculateRenderKitId(context);
    }

    @Override
    public UIViewRoot createView(FacesContext context, String viewId) {
    return baseViewHandler.createView(context, viewId);
    }

    @Override
    public String getActionURL(FacesContext context, String viewId) {
    return baseViewHandler.getActionURL(context, viewId);
    }

    @Override
    public String getResourceURL(FacesContext context, String path) {
    return baseViewHandler.getResourceURL(context, path);
    }

    @Override
    public void renderView(FacesContext context, UIViewRoot viewToRender) throws IOException, FacesException {
    baseViewHandler.renderView(context, viewToRender);
    }

    @Override
    public UIViewRoot restoreView(FacesContext context, String viewId) {
    return baseViewHandler.restoreView(context, viewId);
    }

    @Override
    public void writeState(FacesContext context) throws IOException {
    baseViewHandler.writeState(context);
    }
    }

  • RELEVANCY SCORE 2.44

    DB:2.44:Adf Faces - Access To Content In Web-Inf Directory d1


    Hello,
    I create simple JSF application that use ADF Faces and deploy it to Oracle iAS. But why can i also access files in WEB-INF directory? For example, the following URL - http://myserver.si/MyApp/faces/WEB-INF/web.xml - will return the content of XML file. By my knowledge of J2EE architecture, access to this directory should be forbidden.
    Should I set some parameter on javax.faces.webapp.FacesServlet servlet filter to prevent access to WEB-INF directory? Thank you for help.

    Google also found the following links:
    - http://mail-archives.apache.org/mod_mbox/myfaces-dev/200602.mbox/%3C1673931445.1139290498508.JavaMail.jira@ajax.apache.org%3E
    - http://svn.apache.org/viewcvs.cgi//myfaces/core/trunk/api/src/main/java/javax/faces/webapp/FacesServlet.java/?rev=375489view=diffr1=375489r2=375488p1=/myfaces/core/trunk/api/src/main/java/javax/faces/webapp/FacesServlet.javap2=/myfaces/core/trunk/api/src/main/java/javax/faces/webapp/FacesServlet.java

    Regards,
    Matic

    DB:2.44:Adf Faces - Access To Content In Web-Inf Directory d1

    Hi,

    the reason for this is that the WEB-INF directory is protected against direct client (browser) requests. Using Faces, the JSF servlet performs this access as a server side forward request in which case there is no container-managed protection.

    If you want to avoid this then you can write a servlet filter in fron of JSF in which you check for any occurences of directories you want to prohibit access to.

    Its not a bug, its the way J2EE is designed ;-(

    Frank

  • RELEVANCY SCORE 2.43

    DB:2.43:How To Debug These Errors... kf


    First Error :

    500 Internal Server Error

    java.lang.RuntimeException: java.security.PrivilegedActionException: javax.servlet.ServletException: java.lang.NoSuchMethodError: com.sun.faces.util.Util.getValueBinding(Ljava/lang/String;)Ljavax/faces/el/ValueBinding;
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:199)
    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:408)
    at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
    at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
    at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:267)
    at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:439)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:114)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:178)
    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:174)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:619)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:241)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:201)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:171)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:171)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
    at oracle.adfinternal.view.faces.webapp.rich.SharedLibraryFilter.doFilter(SharedLibraryFilter.java:135)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:284)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:69)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:284)
    at oracle.adfinternal.view.faces.activedata.ADSFilter.doFilter(ADSFilter.java:74)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:284)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:208)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:165)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:611)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:362)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.HttpRequestHandler.doDispatchRequest(HttpRequestHandler.java:915)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:821)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:626)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:599)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:383)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:161)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:142)
    at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: java.security.PrivilegedActionException: javax.servlet.ServletException: java.lang.NoSuchMethodError: com.sun.faces.util.Util.getValueBinding(Ljava/lang/String;)Ljavax/faces/el/ValueBinding;
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.oc4j.security.OC4JSecurity.internalDoPrivileged(OC4JSecurity.java:384)
    at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:400)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:190)
    ... 40 more
    Caused by: javax.servlet.ServletException: java.lang.NoSuchMethodError: com.sun.faces.util.Util.getValueBinding(Ljava/lang/String;)Ljavax/faces/el/ValueBinding;
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:920)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:822)
    at employeeSearchjspx._jspService(_employeeSearch_jspx.java:135)
    [employeeSearch.jspx]
    at com.orionserver[Oracle Containers for J2EE 10g (11.1.1.0.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:60)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:487)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:706)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:627)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:703)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:362)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:279)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:39)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:185)
    at oracle.oc4j.security.OC4JPrivilegedAction.run(OC4JPrivilegedAction.java:41)
    ... 44 more
    Caused by: java.lang.NoSuchMethodError: com.sun.faces.util.Util.getValueBinding(Ljava/lang/String;)Ljavax/faces/el/ValueBinding;
    at com.sun.j2ee.blueprints.bpcatalog.ajax.components.AjaxTextFieldTag.setProperties(Unknown Source)
    at javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:209)
    at javax.faces.webapp.UIComponentClassicTagBase.createChild(UIComponentClassicTagBase.java:476)
    at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:660)
    at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1111)
    at employeeSearchjspx.__jsp_tag_ctru7_helper_11(_employeeSearch_jspx.java:485)
    [employeeSearch.jspx]
    at employeeSearchjspx.__jsp_tag_ctru6_helper_8(_employeeSearch_jspx.java:458)
    [employeeSearch.jspx]
    at employeeSearchjspx.__jsp_tag_ctru4_helper_5(_employeeSearch_jspx.java:399)
    [employeeSearch.jspx]
    at employeeSearchjspx.__jsp_tag_ctru3_helper_4(_employeeSearch_jspx.java:356)
    [employeeSearch.jspx]
    at employeeSearchjspx.__jsp_tag_ctru1_helper_2(_employeeSearch_jspx.java:271)
    [employeeSearch.jspx]
    at employeeSearchjspx.__jsp_tag_ctru0_helper_1(_employeeSearch_jspx.java:202)
    [employeeSearch.jspx]
    at employeeSearchjspx._jspService(_employeeSearch_jspx.java:124)
    [employeeSearch.jspx]
    ... 55 more

    Second Error
    Project: C:\JDeveloper\mywork\ClientDemos\AutoSuggestDuncan\ViewController\ViewController.jpr
    C:\JDeveloper\mywork\ClientDemos\AutoSuggestDuncan\ViewController\public_html\WEB-INF\lib\textfield(2).jar!\com\sun\j2ee\blueprints\bpcatalog\ajax\components\AjaxTextFieldTag.class
    (39,901): Component sL not expected type. Expected: AjaxTextField. Perhaps you're missing a tag?oyxy\[zy][{y^[|_[java/lang/Boolean}`[~a[java/lang/Classij javax.faces.context.FacesContextlj!javax.faces.component.UIComponentmjjava.lang.Objectjava/lang/Objectjavax/faces/FacesException com.sun.faces.INVALID_EXPRESSIONb[c[nj"javax.faces.event.ValueChangeEventd[java/lang/Integeroe[f[g[h[Bcom/sun/j2ee/blueprints/bpcatalog/ajax/components/AjaxTextFieldTag!javax/faces/webapp/UIComponentTagforName initCause,(Ljava/lang/Throwable;)Ljava/lang/Throwable;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;toStringisValueReference(Ljava/lang/String;)Zcom/sun/faces/util/UtilgetValueBinding1(Ljava/lang/String;)Ljavax/faces/el/ValueBinding;setValueBinding2(Ljava/lang/String;Ljavax/faces/el/ValueBinding;)V javax/faces/context/FacesContextgetCurrentInstance$()Ljavax/faces/context/FacesContext;getApplication'()Ljavax/faces/application/Application;#javax/faces/application/ApplicationcreateConverter3(Ljava/lang/String;)Ljavax/faces/convert/Converter;"(Ljavax/faces/convert/Converter;)VbooleanValue()Z(Z)VcreateMethodBindingD(Ljava/lang/String;[Ljava/lang/Class;)Ljavax/faces/el/MethodBinding;!(Ljavax/faces/el/MethodBinding;)VgetExceptionMessageString9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;(Ljava/lang/Object;)VintValue()I
    (39,952): Component sL not expected type. Expected: AjaxTextField. Perhaps you're missing a tag?oyxy\[zy][{y^[|_[java/lang/Boolean}`[~a[java/lang/Classij javax.faces.context.FacesContextlj!javax.faces.component.UIComponentmjjava.lang.Objectjava/lang/Objectjavax/faces/FacesException com.sun.faces.INVALID_EXPRESSIONb[c[nj"javax.faces.event.ValueChangeEventd[java/lang/Integeroe[f[g[h[Bcom/sun/j2ee/blueprints/bpcatalog/ajax/components/AjaxTextFieldTag!javax/faces/webapp/UIComponentTagforName initCause,(Ljava/lang/Throwable;)Ljava/lang/Throwable;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;toStringisValueReference(Ljava/lang/String;)Zcom/sun/faces/util/UtilgetValueBinding1(Ljava/lang/String;)Ljavax/faces/el/ValueBinding;setValueBinding2(Ljava/lang/String;Ljavax/faces/el/ValueBinding;)V javax/faces/context/FacesContextgetCurrentInstance$()Ljavax/faces/context/FacesContext;getApplication'()Ljavax/faces/application/Application;#javax/faces/application/ApplicationcreateConverter3(Ljava/lang/String;)Ljavax/faces/convert/Converter;"(Ljavax/faces/convert/Converter;)VbooleanValue()Z(Z)VcreateMethodBindingD(Ljava/lang/String;[Ljava/lang/Class;)Ljavax/faces/el/MethodBinding;!(Ljavax/faces/el/MethodBinding;)VgetExceptionMessageString9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;(Ljava/lang/Object;)VintValue()I
    (39,971): Component sL not expected type. Expected: AjaxTextField. Perhaps you're missing a tag?oyxy\[zy][{y^[|_[java/lang/Boolean}`[~a[java/lang/Classij javax.faces.context.FacesContextlj!javax.faces.component.UIComponentmjjava.lang.Objectjava/lang/Objectjavax/faces/FacesException com.sun.faces.INVALID_EXPRESSIONb[c[nj"javax.faces.event.ValueChangeEventd[java/lang/Integeroe[f[g[h[Bcom/sun/j2ee/blueprints/bpcatalog/ajax/components/AjaxTextFieldTag!javax/faces/webapp/UIComponentTagforName initCause,(Ljava/lang/Throwable;)Ljava/lang/Throwable;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;toStringisValueReference(Ljava/lang/String;)Zcom/sun/faces/util/UtilgetValueBinding1(Ljava/lang/String;)Ljavax/faces/el/ValueBinding;setValueBinding2(Ljava/lang/String;Ljavax/faces/el/ValueBinding;)V javax/faces/context/FacesContextgetCurrentInstance$()Ljavax/faces/context/FacesContext;getApplication'()Ljavax/faces/application/Application;#javax/faces/application/ApplicationcreateConverter3(Ljava/lang/String;)Ljavax/faces/convert/Converter;"(Ljavax/faces/convert/Converter;)VbooleanValue()Z(Z)VcreateMethodBindingD(Ljava/lang/String;[Ljava/lang/Class;)Ljavax/faces/el/MethodBinding;!(Ljavax/faces/el/MethodBinding;)VgetExceptionMessageString9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;(Ljava/lang/Object;)VintValue()I
    (39,1021): Component sL not expected type. Expected: AjaxTextField. Perhaps you're missing a tag?oyxy\[zy][{y^[|_[java/lang/Boolean}`[~a[java/lang/Classij javax.faces.context.FacesContextlj!javax.faces.component.UIComponentmjjava.lang.Objectjava/lang/Objectjavax/faces/FacesException com.sun.faces.INVALID_EXPRESSIONb[c[nj"javax.faces.event.ValueChangeEventd[java/lang/Integeroe[f[g[h[Bcom/sun/j2ee/blueprints/bpcatalog/ajax/components/AjaxTextFieldTag!javax/faces/webapp/UIComponentTagforName initCause,(Ljava/lang/Throwable;)Ljava/lang/Throwable;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;toStringisValueReference(Ljava/lang/String;)Zcom/sun/faces/util/UtilgetValueBinding1(Ljava/lang/String;)Ljavax/faces/el/ValueBinding;setValueBinding2(Ljava/lang/String;Ljavax/faces/el/ValueBinding;)V javax/faces/context/FacesContextgetCurrentInstance$()Ljavax/faces/context/FacesContext;getApplication'()Ljavax/faces/application/Application;#javax/faces/application/ApplicationcreateConverter3(Ljava/lang/String;)Ljavax/faces/convert/Converter;"(Ljavax/faces/convert/Converter;)VbooleanValue()Z(Z)VcreateMethodBindingD(Ljava/lang/String;[Ljava/lang/Class;)Ljavax/faces/el/MethodBinding;!(Ljavax/faces/el/MethodBinding;)VgetExceptionMessageString9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;(Ljava/lang/Object;)VintValue()I

    DB:2.43:How To Debug These Errors... kf

    Hi Chris

    I actually got these errors when i was trying to build an application for autosuggest as put up by Duncan Mills on
    http://www.oracle.com/technology/products/jdev/tips/mills/AjaxAutoSuggest/AjaxAutoSuggest.html

    Can you please help me in debugging those errors still not able to remove that error

  • RELEVANCY SCORE 2.43

    DB:2.43:Jsf Global Exception Handler Problem With Jboexceptions jd


    Hi All

    I am using Jdeveloper 11g R2 (11.1.2.3) Weblogic 10.3.5.0

    I developed a general JSF exception handler in my ADF application based on the idea from below blog with some minor changes

    http://javalabor.blogspot.com.au/2011/09/jsf-2-global-exception-handling.html

    my classes are :
    -----------------

    public class ExceptionHandler extends ExceptionHandlerWrapper {

    private static ADFLogger logger = ADFLogger.createADFLogger(ExceptionHandler.class);

    private final javax.faces.context.ExceptionHandler wrapped;

    public ExceptionHandler(final javax.faces.context.ExceptionHandler wrapped) {

    this.wrapped = wrapped;
    }

    @Override
    public void handle() throws FacesException {

    FacesContext facesContext = FacesContext.getCurrentInstance();
    ExternalContext externalContext = facesContext.getExternalContext();
    MapString, Object requestMap = externalContext.getRequestMap();

    Iterator itr = getUnhandledExceptionQueuedEvents().iterator();
    while (itr.hasNext()) {
    String message;
    ExceptionQueuedEvent event = (ExceptionQueuedEvent)itr.next();
    ExceptionQueuedEventContext context = (ExceptionQueuedEventContext)event.getSource();

    //obtain throwable object
    Throwable throwable = context.getException();

    if (throwable instanceof JboException){
    System.out.println("it is a JboException");
    //some code to display message not re direct to error page
    }

    message = throwable.getMessage();

    String redeirectPage = "";

    try {
    // re direct to some error page
    } catch (Exception e) {
    logger.severe("No exceptionBean found");
    } finally {
    itr.remove();
    }

    NavigationHandler navigationHandler = facesContext.getApplication().getNavigationHandler();
    navigationHandler.handleNavigation(facesContext, null, redeirectPage + "?faces-redirect=true");
    facesContext.renderResponse();
    }
    getWrapped().handle();
    }

    @Override
    public javax.faces.context.ExceptionHandler getWrapped() {
    return wrapped;
    }
    }

    -----------------
    public class ExceptionHandlerFactory extends javax.faces.context.ExceptionHandlerFactory {
    private final javax.faces.context.ExceptionHandlerFactory parent;

    public ExceptionHandlerFactory(final javax.faces.context.ExceptionHandlerFactory parent) {
    this.parent = parent;
    }

    @Override
    public ExceptionHandler getExceptionHandler() {
    return new ExceptionHandler(this.parent.getExceptionHandler());
    }
    }

    -----------------
    An register it in Faces Config:

    factory
    exception-handler-factorymyPackage.ExceptionHandlerFactory/exception-handler-factory
    /factory
    -----------------

    Now in my model project I need to throw some Jboexceptions (or Validationexceptions) based on some business rules
    If I by pass above exception handler JBOexceptions is working fine and related message displayed on page
    but when I have exception handler some how it can not catch JBOException and instead I will get AbortProcessingException

    javax.faces.event.AbortProcessingException: ADFv: Abort processing exception.

    My questions:

    Is that way of handling global exception is good in ADF application?
    Am I doing some thing wrong ? and how I can get JBO exception in ExceptionHandler?

    Any comment appreciated

    Regards
    Mohsen

    DB:2.43:Jsf Global Exception Handler Problem With Jboexceptions jd

    Check it

    http://www.adftutorials.com/adf-custom-error-handler-to-display-custom-message-to-user.html

    it may be helpful.

  • RELEVANCY SCORE 2.43

    DB:2.43:Startupservletcontextlistener Problem 8z


    Whenever i am running tomcat through eclipse i am getting the following error:
    SEVERE: Error configuring application listener of class org.apache.myfaces.webapp.StartupServletContextListener
    java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener

    I have the myfaces-api and my-faces impl.jar in my classpath? I searched the forum but to no avail. Plz help..

    DB:2.43:Startupservletcontextlistener Problem 8z

    Well my first and foremost question for you would be what version of TOMCAT are you using.

    If it supports Servlet 2.3 and higher if no please shift your devolopment environment to higher version of tomcat.

    What Servlet version spec have been configured under deployment descriptor for the web application (web.xml) ?

    (!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd")

    Make sure the definations are 2.3 or higher (you'd have XSD specific definations for Servlet 2.4 specs)

    Can you ensure that "servlet-api.jar" is present in the Server Classpath i.e "common/lib".

    And other thing which i'm intrested to know is have you cleared old server logs from your TOMCAT if know please do it and check out the result.

  • RELEVANCY SCORE 2.43

    DB:2.43:Generics In Faces-Config.Xml x3


    Hi!

    Is there a way to instantiate a concrete instance of a generic type as a managed bean?

    How would I configure GenericEntityFinderE:

    managed-bean
    managed-bean-namecategoryFinder/managed-bean-name
    managed-bean-classde.planetswebdesign.cms.blog.GenericEntityFinder/managed-bean-class
    managed-bean-scoperequest/managed-bean-scope
    managed-property
    property-nameid/property-name
    value#{param.categoryId}/value
    /managed-property
    /managed-beanEdited by: basti on Apr 12, 2009 5:23 PM

    DB:2.43:Generics In Faces-Config.Xml x3

    That sounds like a reasonable solution.

    When working with generics keep in mind that it only provides type safety at compile time, not run time.

  • RELEVANCY SCORE 2.43

    DB:2.43:War File Deploy Problem 93


    I m not able to deploy war file which is in netbeans(6.1) using jdk 1.6 on web severs like WAS Tomcat(6.0)

    I m getting the following trace every time.

    May 13, 2008 11:49:11 AM org.apache.catalina.core.StandardContext listenerStart
    SEVERE: Error configuring application listener of class com.sun.faces.extensions.avatar.event.DynaFacesContextListener
    java.lang.NoClassDefFoundError: javax/faces/FacesException
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
    at java.lang.Class.getConstructor0(Class.java:2699)
    at java.lang.Class.newInstance0(Class.java:326)
    at java.lang.Class.newInstance(Class.java:308)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3787)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
    at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1244)
    at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:604)
    at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:129)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:619)

    If I use javee.jar file in libraries then there is another problem arises

    May 13, 2008 11:50:30 AM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Allocate exception for servlet Faces Servlet
    java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory
    at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:263)
    at javax.faces.webapp.FacesServlet.init(FacesServlet.java:142)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
    at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:806)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:619)

    So please help me out from this problem.

    Thanks,
    Mayank

    DB:2.43:War File Deploy Problem 93

    CaMiX

    Please don't post in threads that are long dead. When you have a question, start your own topic. Feel free to provide a link to an old post that may be relevant to your problem.

    I'm locking this thread now.

    db

  • RELEVANCY SCORE 2.42

    DB:2.42:Strange Error: Javax.Faces.Facesexception: Can't Instantiate Class dz


    I'm currently playing a little bit with jsf.

    So I've got he following jsf site that gives me some output

    h:outputText value="#{location.loc_id}" /br/
    h:outputText value="#{location.name}" /br/
    h:outputText value="#{location.address}" /The problem is: when invoking this site I get the error message:
    18.11.2007 19:35:28 com.sun.faces.application.ApplicationAssociate createAndMaybeStoreManagedBeans
    SCHWERWIEGEND: Managedbean location could not be created Can't instantiate class: 'jsf.Location'.. class jsf.Location : java.lang.InstantiationException: jsf.Location
    javax.faces.FacesException: Can't instantiate class: 'jsf.Location'.. class jsf.Location : java.lang.InstantiationException: jsf.Location
    at com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:209)
    at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:256)and some lines furthe down:

    18.11.2007 19:35:28 org.apache.catalina.core.StandardWrapperValve invoke
    SCHWERWIEGEND: Servlet.service() for servlet Faces Servlet threw exception
    java.lang.InstantiationException: jsf.Location
    at java.lang.Class.newInstance0(Class.java:335)
    at java.lang.Class.newInstance(Class.java:303)
    at java.beans.Beans.instantiate(Beans.java:204)
    at java.beans.Beans.instantiate(Beans.java:48)
    at com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:203)Actually I don't understand what this error message is trying to tell me.

    DB:2.42:Strange Error: Javax.Faces.Facesexception: Can't Instantiate Class dz

    Thanks for the answer. The problem was really stupid. I just forgot to add a standard constructor to the Loacation.java. So now I added "public Location() {}" and it works fine.

  • RELEVANCY SCORE 2.42

    DB:2.42:Unable To Run Satsa With J2me Midlet d7


    Hello,
    I am using Eclipse IDE and have developed a small Midlet that uses the SATSA crypto extensions.

    I have unzipped the SATSA zip file and made a JAR file of the "classes" folder so that i can use it in my eclipse project. However, when I try to instantiate a Cipher class, it gives me the following error :-

    java.lang.NoClassDefFoundError: javax/crypto/Cipher
    at satsatest.SATSATestMidlet.commandAction(+66)
    at javax.microedition.lcdui.Display$DisplayAccessor.commandAction(+282)
    at javax.microedition.lcdui.Display$DisplayManagerImpl.commandAction(+10)
    at com.sun.midp.lcdui.DefaultEventHandler.commandEvent(+68)
    at com.sun.midp.lcdui.AutomatedEventHandler.commandEvent(+47)
    at com.sun.midp.lcdui.DefaultEventHandler$QueuedEventHandler.run(+250)
    Execution completed.

    I dont know what is wrong with it :)

    DB:2.42:Unable To Run Satsa With J2me Midlet d7

    Hello,
    I am using Eclipse IDE and have developed a small Midlet that uses the SATSA crypto extensions.

    I have unzipped the SATSA zip file and made a JAR file of the "classes" folder so that i can use it in my eclipse project. However, when I try to instantiate a Cipher class, it gives me the following error :-

    java.lang.NoClassDefFoundError: javax/crypto/Cipher
    at satsatest.SATSATestMidlet.commandAction(+66)
    at javax.microedition.lcdui.Display$DisplayAccessor.commandAction(+282)
    at javax.microedition.lcdui.Display$DisplayManagerImpl.commandAction(+10)
    at com.sun.midp.lcdui.DefaultEventHandler.commandEvent(+68)
    at com.sun.midp.lcdui.AutomatedEventHandler.commandEvent(+47)
    at com.sun.midp.lcdui.DefaultEventHandler$QueuedEventHandler.run(+250)
    Execution completed.

    I dont know what is wrong with it :)

  • RELEVANCY SCORE 2.42

    DB:2.42:[Dm_Vel_Instantiation_Error]Error: "Cannot Instantiate Java Class" 9a


  • RELEVANCY SCORE 2.41

    DB:2.41:Resolving A Bean W/ Jsf 1.2 / Sun Web Server 7 mj


    i use the following in my code,

    public Object resolve(String name) {
    FacesContext fcontext = FacesContext.getCurrentInstance();
    ELResolver resolver = fcontext.getELContext().getELResolver();
    try {
    Object o = resolver.getValue(fcontext.getELContext(), null, name);
    assert(o != null);
    return o;
    } catch (FacesException fe) {
    return legacyResolve(name);
    }
    }to get a handle to a managed bean in my code. it works just about everywhere, but on sun web server 7, i get,

    Caused by: javax.faces.FacesException: javax.faces.FacesException: Cant set managed bean property: realmBean.
    at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:556)
    at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:82)
    at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
    at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
    at com.sun.identity.admin.ManagedBeanResolver.resolve(ManagedBeanResolver.java:48)i had the same problem on glassfish 2.1, and i solved it by replacing the stock JSF 1.2_04 in SWS 7 with JSF 1.2_12. this doesn't work on SWS 7 though, as i get,

    "DTD factory ... does not extend from ...", from xerces code.

    Caused by: com.sun.org.apache.xerces.internal.impl.dv.DVFactoryException: DTD factory class com.sun.org.apache.xerces.internal.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.
    at com.sun.org.apache.xerces.internal.impl.dv.DTDDVFactory.getInstance(DTDDVFactory.java:62)
    at com.sun.org.apache.xerces.internal.impl.dv.DTDDVFactory.getInstance(DTDDVFactory.java:44)
    at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.init(SchemaParsingConfig.java:309)
    at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.init

    i assume the cause of this is that the version of xerces bundled with SWS 7 is not high enough to work with the new version of JSF (1.2_12) i included. it looks like it can't read the header of faces-config.xml (schemaLocation stuff).

    so, i'm stuck. as far as i know, the resolver pattern is quite common and at this point i can't live without it.

    DB:2.41:Resolving A Bean W/ Jsf 1.2 / Sun Web Server 7 mj

    i use the following in my code,

    public Object resolve(String name) {
    FacesContext fcontext = FacesContext.getCurrentInstance();
    ELResolver resolver = fcontext.getELContext().getELResolver();
    try {
    Object o = resolver.getValue(fcontext.getELContext(), null, name);
    assert(o != null);
    return o;
    } catch (FacesException fe) {
    return legacyResolve(name);
    }
    }to get a handle to a managed bean in my code. it works just about everywhere, but on sun web server 7, i get,

    Caused by: javax.faces.FacesException: javax.faces.FacesException: Cant set managed bean property: realmBean.
    at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:556)
    at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:82)
    at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
    at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
    at com.sun.identity.admin.ManagedBeanResolver.resolve(ManagedBeanResolver.java:48)i had the same problem on glassfish 2.1, and i solved it by replacing the stock JSF 1.2_04 in SWS 7 with JSF 1.2_12. this doesn't work on SWS 7 though, as i get,

    "DTD factory ... does not extend from ...", from xerces code.

    Caused by: com.sun.org.apache.xerces.internal.impl.dv.DVFactoryException: DTD factory class com.sun.org.apache.xerces.internal.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.
    at com.sun.org.apache.xerces.internal.impl.dv.DTDDVFactory.getInstance(DTDDVFactory.java:62)
    at com.sun.org.apache.xerces.internal.impl.dv.DTDDVFactory.getInstance(DTDDVFactory.java:44)
    at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.init(SchemaParsingConfig.java:309)
    at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.init

    i assume the cause of this is that the version of xerces bundled with SWS 7 is not high enough to work with the new version of JSF (1.2_12) i included. it looks like it can't read the header of faces-config.xml (schemaLocation stuff).

    so, i'm stuck. as far as i know, the resolver pattern is quite common and at this point i can't live without it.

  • RELEVANCY SCORE 2.41

    DB:2.41:Duplicate Id Error Using Ice Data Paginator - Need Help dd



    I have a problem with getting duplicate id error messages when trying to use an ice data paginator. I know that this is probably not caused by seam, but I am hoping that somone has come across this or something similar and can give me some hints.I get the following error:

    java.lang.IllegalStateException: Client-id : _id45last is duplicated in the faces tree. Component : _id35:_id36:_id45last, path: {Component-Path : [Class: javax
    .faces.component.UIViewRoot,ViewId: /settings.xhtml][Class: com.icesoft.faces.component.UIXhtmlComponent,Id: _id1][Class: com.icesoft.faces.component.UIXhtmlCom
    ponent,Id: _id10][Class: com.icesoft.faces.component.UIXhtmlComponent,Id: _id24][Class: javax.faces.component.html.HtmlPanelGroup,Id: _id34][Class: com.icesoft.
    faces.component.ext.HtmlForm,Id: _id35][Class: com.icesoft.faces.component.paneltabset.PanelTabSet,Id: _id36][Class: com.icesoft.faces.component.paneltabset.Pan
    elTab,Id: _id37][Class: com.icesoft.faces.component.UIXhtmlComponent,Id: _id44][Class: com.icesoft.faces.component.datapaginator.DataPaginator,Id: _id45][Class:
    com.icesoft.faces.component.ext.HtmlCommandLink,Id: _id45last]}

    DB:2.41:Duplicate Id Error Using Ice Data Paginator - Need Help dd


    I have written a small sample that triggers the problem and attached them to a new issue in Jira. http://jira.jboss.org/jira/browse/JBSEAM-884?watch=truefor ICEFaces integration.

  • RELEVANCY SCORE 2.41

    DB:2.41:Error Jdev11.1.1.0.1 - Noclassdeffounderror:Javax/Faces/El/Variableresolver 1s


    Hello everyone

    I just upgraded jdev to 11.1.1.0.1. (build 5188) and migrated my application from 11.1.1.0.0

    Now i get this error during deploy:

    com.sun.faces.config.ConfigurationException:
    Source Document: zip:C:/Oracle/Middleware/jdeveloper/system/system11.1.1.0.31.51.88/DefaultDomain/servers/DefaultServer/tmp/_WL_user/COPNew/lgf6ho/war/WEB-INF/lib/bundleresolver.jar!/META-INF/faces-config.xml
    Cause: Class 'oracle.javatools.resourcebundle.BundleVariableResolver' is missing a runtime dependency: java.lang.NoClassDefFoundError: javax/faces/el/VariableResolver
    at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:222)
    at com.sun.faces.config.processor.ApplicationConfigProcessor.addVariableResolver(ApplicationConfigProcessor.java:481)
    at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:239)
    at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:94)
    at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:119)
    Truncated. see log file for complete stacktrace

    Does anybody have a clue on how to solve it?

    Thanks a lot in advance

    Andre

    DB:2.41:Error Jdev11.1.1.0.1 - Noclassdeffounderror:Javax/Faces/El/Variableresolver 1s

    Exactly, embedded WLS

    I tried through "run" from the context menu and also generated an ear and deployed through WLS's console, same error ocurrs

    I compared the ear generated in jdev 11.1.1.0.0 with other generated in jdev 11.1.1.0.1, the libraries are same, all files are there.

    I'm wondering if my app should not use bundleresolver.jar anymore, since the class contained within this file uses a deprecated class (javax.faces.el.VariableResolver), hope to get some enlightenment

  • RELEVANCY SCORE 2.41

    DB:2.41:Bundlevariableresolver Not Found kc


    I have installed web logic server 10.3(JDeveloper 11.1.2.1.0) in linux and when i deploy my application to the managed server i get this error:

    ConfigurationException:
    Source Document : zip:/optDev/Oracle/Middleware/user_projects/domains/adf_dev/servers/Proveedores/tmp/_WL_user/adf.oracle.domain.webapp/dlupj7/
    WEB-INF/lib/bundleresolver.jar!/META-INF/faces-config.xml
    Cause: Class 'oracle.javatools.resourcebundle.BundleVariableResolver' is missing a
    runtime dependecy: java.lang.NoClassDefFoundError: javax/faces/el/VariableResolver

    DB:2.41:Bundlevariableresolver Not Found kc

    Ok now it is resolved. I have added the jsf and jstl libraries to my proyect and configured the weblogic-application.xml.

  • RELEVANCY SCORE 2.40

    DB:2.40:Errors On Deploy d9



    I have been attempting to create a new Seam app based on the code generated by Seam. I then modified the code and pages, fleshed out the first page (a user login) and that part was working. Then when I tried to build the second page (the query/view results page), things when wrong:

    09:51:35,531 INFO [FacesConfigurator] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
    09:51:35,593 INFO [FacesConfigurator] Reading config jar:file:/C:/Dev/SeamDevelopment/jbossServer/server/default/lib/ui.jar!/META-INF/faces-config.xml
    09:51:37,359 INFO [FacesConfigurator] Reading config jar:file:/C:/Dev/SeamDevelopment/jbossServer/server/default/tmp/deploy/tmp8172DPSLicenseInquiry.ear-contents/jboss-seam.jar!/META-INF/faces-config.xml
    09:51:37,375 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config.xml
    09:51:37,421 ERROR [[/DPSLicenseInquiryWeb]] Exception sending context initialized event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener
    java.lang.NoClassDefFoundError: javax/el/ELException
    at org.apache.myfaces.application.ApplicationFactoryImpl.init(ApplicationFactoryImpl.java:42)

    DB:2.40:Errors On Deploy d9


    Found several messages online but all were unanswered or were dead-ends.BUT, I found one that mentioned having to create a /META-DATA/services folder with these files that referenced the actual class names that implemented the Sun face classes. Got those built and things got a little better.But what's really annoying, is that another message gave me a hint that worked:deploy\jbossweb-tomcat55.sar\jsf-libsI had to put, all the JSF related files in that folder for things to come together. That included: commons-*, jsf-facelets, jsf-impl, jstl, myfaces-*Don't know WHY but at least I'm beyond that problem.

  • RELEVANCY SCORE 2.40

    DB:2.40:Selectitemgroup......... sj


    Trying to write simple application to adjust with SelectItemGroup in JSF.
    It seems that all alright#8230; but I couldn#8217;t even display my .jsp#8230;. Tomcat throws exception Can't instantiate class..
    Would you help me to deal with it?
    --------------------------------------------------------------------

    my jsp page
    f:view
    h1h:outputText value="JavaServer Faces" //h1
    h:message id="error" for="addItemField" errorStyle="color:red"/
    h:form id="addItemForm"
    h:outputLabel for="addItemField"
    h:outputText value="Add new item"/
    /h:outputLabel
    h:inputText id="addItemField" required="true" value="#{bbean.newItem}"/
    h:commandButton value="Add item" action="#{bbean.addNewItem}"/
    /h:form
    h:selectOneListbox style="width:16%"
    f:selectItems value="#{bbean.itemsGroup}"/
    /h:selectOneListbox
    /f:viewbacking bean class
    package backinbean;

    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.model.SelectItem;
    import javax.faces.model.SelectItemGroup;

    public class BackingBeanClass {

    private List itemsList;
    private String newItem;
    private SelectItemGroup itemsGroup;

    public BackingBeanClass() {
    itemsList=new ArrayList();
    itemsGroup = new SelectItemGroup("--registered items--",null, false, (SelectItem[])itemsList.toArray());
    }

    public void setNewItem(String newItem) {
    this.newItem = newItem;
    }

    public String getNewItem() {
    return newItem;
    }

    public SelectItemGroup getItemsGroup() {
    return itemsGroup;
    }

    public void setItemsGroup(SelectItemGroup itemsGroup) {
    this.itemsGroup = itemsGroup;
    }

    public List getItemsList() {
    return itemsList;
    }

    public void setItemsList(List itemsList) {
    this.itemsList = itemsList;
    }

    public void addNewItem(){
    SelectItem item=new SelectItem(new Integer(itemsList.size()),newItem);
    }
    }faces-config.xml
    ?xml version='1.0' encoding='UTF-8'?

    !DOCTYPE faces-config PUBLIC
    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_1.dtd"

    faces-config
    managed-bean
    managed-bean-namebbean/managed-bean-name
    managed-bean-classbackinbean.BackingBeanClass/managed-bean-class
    managed-bean-scopesession/managed-bean-scope
    /managed-bean
    /faces-config

    DB:2.40:Selectitemgroup......... sj

    Actually im new to this tech but i faced the same problem... may be the JSP page ur using and the bean ur binding are to it are different as far as i know only one bean i bound to one jsp... so please check it ..

    may be this might hv helped u...

  • RELEVANCY SCORE 2.40

    DB:2.40:Jdeveloper - 11g - Java.Lang.Noclassdeffounderror: Javax/Faces/Model/Select sd


    Get error in the following snippet in a Managed Bean: -

    ListSelectItem returnValues = new ArrayListSelectItem();
    returnValues.add(new SelectItem("Select One"));
    for (Iterator itList = list.iterator(); itList.hasNext();)
    {
    ABCVO abcVO= (ABCVO) itList.next(); ;
    returnValues.add(new SelectItem(abcVO.getDescription()));
    }

    Error: -

    com.sun.faces.application.ActionListenerImpl processAction
    SEVERE: java.lang.NoClassDefFoundError: javax/faces/model/SelectItem
    javax.faces.el.EvaluationException: java.lang.NoClassDefFoundError: javax/faces/model/SelectItem
    at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)

    I have checked - I have JSF 1.2 added in 'Libraries and Classpath' in Project properties.

    Please help.

    Thanks!

    DB:2.40:Jdeveloper - 11g - Java.Lang.Noclassdeffounderror: Javax/Faces/Model/Select sd

    After repeated efforts, I found one thing, which makes me scratch my head.

    The application is Java EE WebApplication with ViewController and Model. I had created mutual dependencies between View Controller and Model.

    On selecting Model, and removing dependency to View Controller, the problem seems to get resolved. So, in a nutshell - now I have one way dependency and that is View Controller to Model.

    I am new to JDev, and not very comfortable with this jargon. Can you please explain how dependency works and why it seems to work now.

    Thanks!

  • RELEVANCY SCORE 2.39

    DB:2.39:Unable To Bind Web Applications During Deployment aj


    Greetings,

    1. standalone OC4J version 10.1.3.3.0
    2. Windows XP platform in a VM

    We have an ADF application that we routinely successfully deploy from a JDeveloper machine to local and remote Virtual Machines running Windows XP. Using Ant, we build and deploy to a Windows XP VM and this process works great until we reach the bindWebApp step. The process has been done using both admin.jar and admin_client.jar.

    Example 1 using admin.jar

    java classname="c:/oc4j/j2ee/home/admin.jar" fork="true"
    jvmarg value="-jar"/
    arg value="${oc4j.deploy.ormi}"/
    arg value="${oc4j.deploy.username}"/
    arg value="${oc4j.deploy.password}"/
    arg value="-bindWebApp"/
    arg value="${this.application.name}"/
    arg value="${this.application.name}"/
    arg value="default-web-site"/
    arg value="/${this.application.name}"/
    /javaThe error obtained when running this from Ant build or command line is identical:

    [echo] Begin Web Application Binding now!
    [echo]
    [java] Sep 4, 2008 3:53:35 PM oracle.j2ee.rmi.RMIMessages EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER
    [java] WARNING: Exception returned by remote server: {0}
    [java] java.lang.NoClassDefFoundError: javax/faces/FacesException
    [java] at java.lang.Class.forName0(Native Method)
    [java] at java.lang.Class.forName(Class.java:247)
    [java] at com.evermind.server.http.HttpApplication.initDefaultServlets(HttpApplication.java:5150)
    [java] at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1070)
    [java] at com.evermind.server.http.HttpApplication.init(HttpApplication.java:741)
    [java] at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:414)
    [java] at com.evermind.server.Application.getHttpApplication(Application.java:570)
    [java] at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1987)
    [java] at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.init(HttpSite.java:1906)
    [java] at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:1603)
    [java] at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:238)
    [java] at com.evermind.server.administration.DefaultApplicationServerAdministrator.bindWebApp(DefaultApplicationServerAdministrator.java:418)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java] at java.lang.reflect.Method.invoke(Method.java:597)
    [java] at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
    [java] at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    [java] at java.lang.Thread.run(Thread.java:619)
    [java] Error: javax/faces/FacesException
    [java] Java Result: 1It was verified that the faces jar file jsf-api.jar was present and listed in classpath properly.

    We next attempted deployment using admin_client.jar -redeploy followed by a bindWebApp target:

    target name="bind_webapp" depends="deploy_oc4j"
    description="deploy the enterprise archive to a standalone oc4j using admin_client.jar"
    echo
    In the bind_webapp target now!
    /echo
    java classname="${j2ee.home}/admin_client.jar" fork="true"
    jvmarg value="-jar"/
    arg value="${oc4j.deploy.admin_client}"/
    arg value="${oc4j.deploy.username}"/
    arg value="${oc4j.deploy.password}"/
    arg value="-bindWebApp"/
    arg value="-appName"/
    arg value="${this.application.name}"/
    arg value="-webModuleName"/
    arg value="${this.application.name}"/
    arg value="-contextRoot"/
    arg value="/${this.application.name}"/
    /java
    /targetWe now obtain a new error:

    bind_webapp:
    [echo]
    [echo] In the bind_webapp target now!
    [echo]
    [java]
    [java] BindWebApp error: oracle.oc4j.admin.jmx.shared.exceptions.JMXRuntimeException cannot be cast to javax.management.MBeanException
    [java]
    [java] Java Result: 1

    The net result is that with either the admin.jar or admin_client.jar we are able to deploy suceessfully right up to and including the point of starting the application. Following this we run the bindWebApp task and it fails. We have also verified all settings for the commands by referring to the Deployment output from deployments initiated within JDeveloper. The steps we expect to see are:

    Binding web application(s) to site default-web-site begins...
    Binding WebAppName web-module for application ApplicationName to site default-web-site under context root /WebAppName
    Initializing Servlet: oracle.webcache.adf.servlet.AFCStatsServlet for web application WebAppName
    Initializing Servlet: javax.faces.webapp.FacesServlet for web application WebAppName
    Binding web application(s) to site default-web-site ends...
    Application Deployer for WebAppName COMPLETES.

    THX

    -Mike

    DB:2.39:Unable To Bind Web Applications During Deployment aj

    Consider this closed. Adding the adf-controller.jar allowed the deployment to complete. The list of jars required does not match 1-for-1 with the libraries previously added to the Project Properties libraries list, but are certainly required at the time of web application binding.

  • RELEVANCY SCORE 2.39

    DB:2.39:Linker Error----Undefined Reference To cc


    Hi

    i'm getting this error on linking ie on executing the command gcj --main=apps -o apps apps.o
    apps is the name of the file.....the code is compliling without error...

    Can anyone tell why this, 'undefined reference to......' error coming and how to correct it

    Here is the complete error msg...plz help

    [root@localhost ~]# gcj --main=apps -o apps apps.o
    apps.o: In function `javax::mail::PasswordAuthentication* SendMailUsingAuthentication$SMTPAuthenticator::getPasswordAuthentication()':
    apps.java:(.text+0x48cc): undefined reference to `javax::mail::PasswordAuthentication::class$'
    apps.java:(.text+0x48e9): undefined reference to `javax::mail::PasswordAuthentication::PasswordAuthentication(java::lang::String*, java::lang::String*)'
    apps.o: In function `SendMailUsingAuthentication$SMTPAuthenticator::SendMailUsingAuthentication$SMTPAuthenticator(SendMailUsingAuthentication*)':
    apps.java:(.text+0x490c): undefined reference to `javax::mail::Authenticator::Authenticator()'
    apps.o: In function `void SendMailUsingAuthentication::run()':
    apps.java:(.text+0x4ca5): undefined reference to `javax::mail::Session* javax::mail::Session::getDefaultInstance(java::util::Properties*, javax::mail::Authenticator*)'
    apps.java:(.text+0x4cd6): undefined reference to `void javax::mail::Session::setDebug(bool)'
    apps.java:(.text+0x4cdd): undefined reference to `javax::mail::internet::MimeMessage::class$'
    apps.java:(.text+0x4cfd): undefined reference to `javax::mail::internet::MimeMessage::MimeMessage(javax::mail::Session*)'
    apps.java:(.text+0x4d0d): undefined reference to `javax::mail::internet::InternetAddress::class$'
    apps.java:(.text+0x4d3c): undefined reference to `javax::mail::internet::InternetAddress::InternetAddress(java::lang::String*)'
    apps.java:(.text+0x4da1): undefined reference to `javax::mail::internet::InternetAddress::class$'
    apps.java:(.text+0x4de4): undefined reference to `javax::mail::internet::InternetAddress::class$'
    apps.java:(.text+0x4e13): undefined reference to `javax::mail::internet::InternetAddress::InternetAddress(java::lang::String*)'
    apps.java:(.text+0x4e82): undefined reference to `javax::mail::internet::InternetAddress::class$'
    apps.java:(.text+0x4ea5): undefined reference to `javax::mail::internet::InternetAddress::InternetAddress(java::lang::String*)'
    apps.java:(.text+0x4ee7): undefined reference to `javax::mail::Message$RecipientType::class$'
    apps.java:(.text+0x4ef1): undefined reference to `javax::mail::Message$RecipientType::TO'
    apps.java:(.text+0x4fb1): undefined reference to `void javax::mail::Transport::send(javax::mail::Message*)'
    apps.o:(.data+0x3168): undefined reference to `javax::mail::PasswordAuthentication* javax::mail::Authenticator::requestPasswordAuthentication(java::net::InetAddress*, int, java::lang::String*, java::lang::String*, java::lang::String*)'
    apps.o:(.data+0x316c): undefined reference to `java::net::InetAddress* javax::mail::Authenticator::getRequestingSite()'
    apps.o:(.data+0x3170): undefined reference to `int javax::mail::Authenticator::getRequestingPort()'
    apps.o:(.data+0x3174): undefined reference to `java::lang::String* javax::mail::Authenticator::getRequestingProtocol()'
    apps.o:(.data+0x3178): undefined reference to `java::lang::String* javax::mail::Authenticator::getRequestingPrompt()'
    apps.o:(.data+0x317c): undefined reference to `java::lang::String* javax::mail::Authenticator::getDefaultUserName()'
    apps.o:(.data+0x31f0): undefined reference to `javax::mail::Authenticator::class$'
    collect2: ld returned 1 exit status

    DB:2.39:Linker Error----Undefined Reference To cc

    This seems like a C++ problem. I don't think we can help you here.

  • RELEVANCY SCORE 2.39

    DB:2.39:Loadjava Privilege Error jp



    While loading a .jar using loadjava in Oracle 8.1.5 I had this error on all the classes within the jar. Does anyone know what the problem is ?

    Error while creating class javax/mail/internet/NewsAddress
    ORA-01031: insufficient privileges

    Error while creating class javax/mail/internet/UniqueValue
    ORA-01031: insufficient privileges

    Error while creating class javax/mail/NoSuchProviderException
    ORA-01031: insufficient privileges

    Error while creating class javax/mail/search/SizeTerm
    ORA-01031: insufficient privileges

    Error while creating class javax/mail/Flags
    ORA-01031: insufficient privileges

    Error while creating class javax/mail/internet/InternetAddress
    ORA-01031: insufficient privileges

    Error while creating class javax/mail/MessageAware
    ORA-01031: insufficient privileges

    Thanks
    Jeff

    DB:2.39:Loadjava Privilege Error jp

    also check the following :

    Protected Packages
    http://otn.oracle.com/doc/server.815/a64682/04jserve.htm#1001015

  • RELEVANCY SCORE 2.39

    DB:2.39:Package Javax.* a3


    I have just installed the JSDK but I have a big problem with the
    package javax.
    Indeed when I want to compile he didn't find :
    for Instance the class Cookie from the package javax
    or httpServlet

    I have all the .class from the package javax.*
    what can I do???

    DB:2.39:Package Javax.* a3

    I have import in my servlet the httpServlet
    but how can I had in my classpath ??

  • RELEVANCY SCORE 2.39

    DB:2.39:Web Application Deployment Issue In Soa Domain dx


    I have a web application war file which when deployed in Weblogic 10.3.6 separately works fine.
    When I deploy the same in a SOA domain (_Weblogic 10.3.6 + SOA 11.1.1.6 + OSB 11.1.1.6_), it's throwing the below error.

    In both the cases I am targeting the application to the Adminserver only.

    I am deploying the below files:
    Application war file, jsf-1.2.war and jstl-1.2.war.

    Error:
    --------------------------------------------------------------------------------------------------------------------------

    Dec 2, 2012 4:19:59 AM IST Notice WebLogicServer BEA-000365 Server state changed to RUNNING
    Dec 2, 2012 4:19:59 AM IST Notice WebLogicServer BEA-000360 Server started in RUNNING mode
    Dec 2, 2012 4:21:01 AM IST Warning netuix BEA-423420 Redirect is executed in begin or refresh action. Redirect url is /console/console.portal
    ?_nfpb=true_pageLabel=AppDeploymentsControlPage.
    Dec 2, 2012 4:22:15 AM IST Warning netuix BEA-423420 Redirect is executed in begin or refresh action. Redirect url is /console/console.portal
    ?_nfpb=true_pageLabel=LibraryOverviewPageLibraryOverviewPortlethandle=com.bea.console.handles.AppDeploymentHandle%28%22com.bea%3AName%3Djsf%231.2%40
    1.2.9.0%2CType%3DLibrary%22%29.
    Dec 2, 2012 4:22:51 AM IST Warning HTTP BEA-101162 User defined listener com.sun.faces.config.ConfigureListener failed: com.sun.faces.config.
    ConfigurationException: CONFIGURATION FAILED!
    Source Document: file:/C:/Oracle/Middleware/user_projects/domains/SOA_domain/servers/AdminServer/tmp/_WL_user/MI/nkgdo/war/WEB-INF/faces-config.xml
    Cause: Class 'org.springframework.web.jsf.DelegatingVariableResolver' is missing a runtime dependency: java.lang.NoClassDefFoundError: javax/faces/el/VariableResolver.
    com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!
    Source Document: file:/C:/Oracle/Middleware/user_projects/domains/SOA_domain/servers/AdminServer/tmp/_WL_user/MI/nkgdo/war/WEB-INF/faces-config.xml
    Cause: Class 'org.springframework.web.jsf.DelegatingVariableResolver' is missing a runtime dependency: java.lang.NoClassDefFoundError: javax/faces/e
    l/VariableResolver
    at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:215)
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:196)
    at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    Truncated. see log file for complete stacktrace
    Caused By: com.sun.faces.config.ConfigurationException:
    Source Document: file:/C:/Oracle/Middleware/user_projects/domains/SOA_domain/servers/AdminServer/tmp/_WL_user/MI/nkgdo/war/WEB-INF/faces-config.xml
    Cause: Class 'org.springframework.web.jsf.DelegatingVariableResolver' is missing a runtime dependency: java.lang.NoClassDefFoundError: javax/faces/e
    l/VariableResolver
    at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:253)
    at com.sun.faces.config.processor.ApplicationConfigProcessor.addVariableResolver(ApplicationConfigProcessor.java:481)
    at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:239)
    at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:108)
    at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:119)
    Truncated. see log file for complete stacktrace

    Dec 2, 2012 4:22:51 AM IST Error Deployer BEA-149265 Failure occurred in the execution of deployment request with ID '1354402363881' for task
    '4'. Error is: 'weblogic.application.ModuleException: '
    weblogic.application.ModuleException:
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1520)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:484)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    Truncated. see log file for complete stacktrace
    Caused By: com.sun.faces.config.ConfigurationException:
    Source Document: file:/C:/Oracle/Middleware/user_projects/domains/SOA_domain/servers/AdminServer/tmp/_WL_user/MI/nkgdo/war/WEB-INF/faces-config.xml
    Cause: Class 'org.springframework.web.jsf.DelegatingVariableResolver' is missing a runtime dependency: java.lang.NoClassDefFoundError: javax/faces/e
    l/VariableResolver
    at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:253)
    at com.sun.faces.config.processor.ApplicationConfigProcessor.addVariableResolver(ApplicationConfigProcessor.java:481)
    at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:239)
    at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:108)
    at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:119)
    Truncated. see log file for complete stacktrace

    Dec 2, 2012 4:22:51 AM IST Error Deployer BEA-149202 Encountered an exception while attempting to commit the 1 task for the application 'MI'.

    Dec 2, 2012 4:22:51 AM IST Warning Deployer BEA-149004 Failures were detected while initiating deploy task for application 'MI'.
    Dec 2, 2012 4:22:51 AM IST Warning Deployer BEA-149078 Stack trace for message 149004
    weblogic.application.ModuleException: :com.sun.faces.config.ConfigurationException:
    Source Document: file:/C:/Oracle/Middleware/user_projects/domains/SOA_domain/servers/AdminServer/tmp/_WL_user/MI/nkgdo/war/WEB-INF/faces-config.xml
    Cause: Class 'org.springframework.web.jsf.DelegatingVariableResolver' is missing a runtime dependency: java.lang.NoClassDefFoundError: javax/faces/e
    l/VariableResolver
    at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:253)
    at com.sun.faces.config.processor.ApplicationConfigProcessor.addVariableResolver(ApplicationConfigProcessor.java:481)
    at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:239)
    at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:108)
    at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:119)
    Truncated. see log file for complete stacktrace

    Dec 2, 2012 4:22:51 AM IST Error Console BEA-240003 Console encountered the following error weblogic.application.ModuleException: :com.sun.fa
    ces.config.ConfigurationException:
    Source Document: file:/C:/Oracle/Middleware/user_projects/domains/SOA_domain/servers/AdminServer/tmp/_WL_user/MI/nkgdo/war/WEB-INF/faces-config.xml
    Cause: Class 'org.springframework.web.jsf.DelegatingVariableResolver' is missing a runtime dependency: java.lang.NoClassDefFoundError: javax/faces/e
    l/VariableResolver
    at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:253)
    at com.sun.faces.config.processor.ApplicationConfigProcessor.addVariableResolver(ApplicationConfigProcessor.java:481)
    at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:239)
    at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:108)
    at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:119)
    at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:108)
    at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:132)
    at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:205)
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:196)
    at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1868)
    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3154)
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1518)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:484)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
    at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:671)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
    at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:44)
    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
    at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java
    :195)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

    DB:2.39:Web Application Deployment Issue In Soa Domain dx

    Check this thread...
    Spring's JSF DelegatingVariableResolver cause InvocationTargetException

  • RELEVANCY SCORE 2.38

    DB:2.38:Javax/Faces/Exception a9


    Hi:

    I have a visual JSF application that I deployed to a tomcat 6.0.
    I am getting this error
    java.lang.NoClassDefFoundError: javax/faces/FacesException
    I see this class in the libraries that are included in the project.
    Is there some other kind of problem?
    included is the log of tomcat:

    java.lang.NoClassDefFoundError: javax/faces/FacesException
    at com.sun.faces.application.WebappLifecycleListener.clinit(WebappLifecycleListener.java:67)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3787)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924)
    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
    at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1215)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.ClassNotFoundException: javax.faces.FacesException
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)I appreciate your help

    DB:2.38:Javax/Faces/Exception a9

    Another option is to try using GlassFish... it just works (no JSF jars needed in your app at all).

    https://glassfish.dev.java.net

    Ken Paulsen
    https://glassfish.dev.java.net

  • RELEVANCY SCORE 2.38

    DB:2.38:Java Mail From A Servlet f8


    Hi Everyone.
    When I run my java mail program outside of tomcat (ie not via a servlet) everything works fine. I can instantiate the class and call the method which sends out the mail.
    However from inside my servlet I instantiate the class the same way however I receive this error
    exception

    javax.servlet.ServletException: Servlet execution threw an exception

    root cause

    java.lang.NoClassDefFoundError: javax/mail/internet/AddressExceptionFrom my servlet
    SendConfirmation.SendEmail(emailAddress,props);It finds the class easy enough (i verified with a simple return method however gives me that error.
    Again the exact same code works outside of a servlet.
    Thanks in advance
    Tas

    DB:2.38:Java Mail From A Servlet f8

    False alarm, I didn't have mail.jar nor activation.jar located in the lib folder in my Tomcat directory

  • RELEVANCY SCORE 2.38

    DB:2.38:Could Not Find Entitymanagerfactory 88


    Hi,id like to mention that i searched for this issue and read alot of documentation but i couldn't find a solution.I have a project (EJB 3.0, packaged as EAR) with a view (JSF 2.0) and persistence (JPA 2.0, Hibernate) layer. To avoid the lazy initialization support and other issues I tried to introduce a Seam Managed Persistence Context with Seam 3.0.0.Final.For this i wrote the following producer class:import javax.enterprise.context.ConversationScoped;import javax.enterprise.inject.Produces;import javax.persistence.EntityManagerFactory;import javax.persistence.PersistenceUnit;import org.jboss.seam.solder.core.ExtensionManaged;class PersistenceProvider {@SuppressWarnings("unused")@ExtensionManaged@Produces@PersistenceUnit@ConversationScoped private EntityManagerFactory producerField;}And changed the @PersistenceContext Annotation on my EntityManager fields to @Inject.If Iam trying to use the EntityManager now I'm getting the following stacktrace:WARNUNG: StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exceptionjavax.faces.el.EvaluationException: java.lang.RuntimeException: java.lang.RuntimeException: Could not find EntityManagerFactory bean with qualifiers[@javax.enterprise.inject.Any(), @javax.enterprise.inject.Default()]at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)at javax.faces.component.UICommand.broadcast(UICommand.java:315)at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)at javax.faces.webapp.FacesServlet.service(FacesServlet.java:409)at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)at com.sun.grizzly.ContextTask.run(ContextTask.java:71)at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)at java.lang.Thread.run(Thread.java:662)Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Could not find EntityManagerFactory bean with qualifiers[@javax.enterprise.inject.Any(), @javax.enterprise.inject.Default()]at org.jboss.seam.persistence.ManagedPersistenceContextBeanLifecycle.create(ManagedPersistenceContextBeanLifecycle.java:126)at org.jboss.seam.persistence.ManagedPersistenceContextBeanLifecycle.create(ManagedPersistenceContextBeanLifecycle.java:46)at org.jboss.seam.solder.bean.ImmutableBean.create(ImmutableBean.java:87)at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:121)at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:99)at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:124)at org.jboss.weld.proxies.SMPC-org$jboss$seam$persistence$ManagedPersistenceContextExtension-de$wintersolutions$fitnessbuddy$persistence$cdi$PersistenceProvider$producerField[@javax$enterprise$context$ConversationScoped()@javax$enterprise$inject$Produces()@javax$persistence$PersistenceUnit(name=,unitName=)@org$jboss$seam$solder$core$ExtensionManaged()]_$$_WeldClientProxy.persist(SMPC-org$jboss$seam$persistence$ManagedPersistenceContextExtension-de$wintersolutions$fitnessbuddy$persistence$cdi$PersistenceProvider$producerField[@javax$enterprise$context$ConversationScoped()@javax$enterprise$inject$Produces()@javax$persistence$PersistenceUnit(name=,unitName=)@org$jboss$seam$solder$core$ExtensionManaged()]_$$_WeldClientProxy.java)at de.wintersolutions.fitnessbuddy.view.controller.ExerciseController.saveExercise(ExerciseController.java:54)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:597)at javax.el.BeanELResolver.invokeMethod(BeanELResolver.java:737)at javax.el.BeanELResolver.invoke(BeanELResolver.java:467)at javax.el.CompositeELResolver.invoke(CompositeELResolver.java:254)at com.sun.el.parser.AstValue.invoke(AstValue.java:228)at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297)at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:43)at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:56)at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)... 33 moreCaused by: java.lang.RuntimeException: Could not find EntityManagerFactory bean with qualifiers[@javax.enterprise.inject.Any(), @javax.enterprise.inject.Default()]at org.jboss.seam.persistence.ManagedPersistenceContextBeanLifecycle.getEntityManagerFactory(ManagedPersistenceContextBeanLifecycle.java:210)at org.jboss.seam.persistence.ManagedPersistenceContextBeanLifecycle.create(ManagedPersistenceContextBeanLifecycle.java:104)... 53 moreDebugging the applicaton on Glassfish 3.1 provided me with the following insightsThe entity manager is a proxy of the type "entityManager SMPC-org$jboss$seam$persistence$ManagedPersistenceContextExtension-com$example$PersistenceProvider$producerField[@javax$enterprise$context$ConversationScoped()@javax$enterprise$inject$Produces()@javax$persistence$PersistenceUnit(name=,unitName=)@org$jboss$seam$solder$core$ExtensionManaged()]_$$_WeldClientProxy"The producer field can't be found in the beans-Field of the BeanManager in the scope of the method org.jboss.seam.persistence.ManagedPersistenceContextBeanLifecycle.getEntityManagerFactory but in a BeanManager injected into my DAOs.I tried some variations like qualifiying the producer field, trying to inject a entity manager in the view layer services and adding the unitName and/or name of my persistence unit to the @PersistenceUnit Annotation of the producer field.Any suggestions what Im doing wrong here?

    DB:2.38:Could Not Find Entitymanagerfactory 88

    Hi,id like to mention that i searched for this issue and read alot of documentation but i couldn't find a solution.I have a project (EJB 3.0, packaged as EAR) with a view (JSF 2.0) and persistence (JPA 2.0, Hibernate) layer. To avoid the lazy initialization support and other issues I tried to introduce a Seam Managed Persistence Context with Seam 3.0.0.Final.For this i wrote the following producer class:import javax.enterprise.context.ConversationScoped;import javax.enterprise.inject.Produces;import javax.persistence.EntityManagerFactory;import javax.persistence.PersistenceUnit;import org.jboss.seam.solder.core.ExtensionManaged;class PersistenceProvider {@SuppressWarnings("unused")@ExtensionManaged@Produces@PersistenceUnit@ConversationScoped private EntityManagerFactory producerField;}And changed the @PersistenceContext Annotation on my EntityManager fields to @Inject.If Iam trying to use the EntityManager now I'm getting the following stacktrace:WARNUNG: StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exceptionjavax.faces.el.EvaluationException: java.lang.RuntimeException: java.lang.RuntimeException: Could not find EntityManagerFactory bean with qualifiers[@javax.enterprise.inject.Any(), @javax.enterprise.inject.Default()]at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)at javax.faces.component.UICommand.broadcast(UICommand.java:315)at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)at javax.faces.webapp.FacesServlet.service(FacesServlet.java:409)at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)at com.sun.grizzly.ContextTask.run(ContextTask.java:71)at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)at java.lang.Thread.run(Thread.java:662)Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Could not find EntityManagerFactory bean with qualifiers[@javax.enterprise.inject.Any(), @javax.enterprise.inject.Default()]at org.jboss.seam.persistence.ManagedPersistenceContextBeanLifecycle.create(ManagedPersistenceContextBeanLifecycle.java:126)at org.jboss.seam.persistence.ManagedPersistenceContextBeanLifecycle.create(ManagedPersistenceContextBeanLifecycle.java:46)at org.jboss.seam.solder.bean.ImmutableBean.create(ImmutableBean.java:87)at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:121)at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:99)at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:124)at org.jboss.weld.proxies.SMPC-org$jboss$seam$persistence$ManagedPersistenceContextExtension-de$wintersolutions$fitnessbuddy$persistence$cdi$PersistenceProvider$producerField[@javax$enterprise$context$ConversationScoped()@javax$enterprise$inject$Produces()@javax$persistence$PersistenceUnit(name=,unitName=)@org$jboss$seam$solder$core$ExtensionManaged()]_$$_WeldClientProxy.persist(SMPC-org$jboss$seam$persistence$ManagedPersistenceContextExtension-de$wintersolutions$fitnessbuddy$persistence$cdi$PersistenceProvider$producerField[@javax$enterprise$context$ConversationScoped()@javax$enterprise$inject$Produces()@javax$persistence$PersistenceUnit(name=,unitName=)@org$jboss$seam$solder$core$ExtensionManaged()]_$$_WeldClientProxy.java)at de.wintersolutions.fitnessbuddy.view.controller.ExerciseController.saveExercise(ExerciseController.java:54)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:597)at javax.el.BeanELResolver.invokeMethod(BeanELResolver.java:737)at javax.el.BeanELResolver.invoke(BeanELResolver.java:467)at javax.el.CompositeELResolver.invoke(CompositeELResolver.java:254)at com.sun.el.parser.AstValue.invoke(AstValue.java:228)at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297)at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:43)at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:56)at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)... 33 moreCaused by: java.lang.RuntimeException: Could not find EntityManagerFactory bean with qualifiers[@javax.enterprise.inject.Any(), @javax.enterprise.inject.Default()]at org.jboss.seam.persistence.ManagedPersistenceContextBeanLifecycle.getEntityManagerFactory(ManagedPersistenceContextBeanLifecycle.java:210)at org.jboss.seam.persistence.ManagedPersistenceContextBeanLifecycle.create(ManagedPersistenceContextBeanLifecycle.java:104)... 53 moreDebugging the applicaton on Glassfish 3.1 provided me with the following insightsThe entity manager is a proxy of the type "entityManager SMPC-org$jboss$seam$persistence$ManagedPersistenceContextExtension-com$example$PersistenceProvider$producerField[@javax$enterprise$context$ConversationScoped()@javax$enterprise$inject$Produces()@javax$persistence$PersistenceUnit(name=,unitName=)@org$jboss$seam$solder$core$ExtensionManaged()]_$$_WeldClientProxy"The producer field can't be found in the beans-Field of the BeanManager in the scope of the method org.jboss.seam.persistence.ManagedPersistenceContextBeanLifecycle.getEntityManagerFactory but in a BeanManager injected into my DAOs.I tried some variations like qualifiying the producer field, trying to inject a entity manager in the view layer services and adding the unitName and/or name of my persistence unit to the @PersistenceUnit Annotation of the producer field.Any suggestions what Im doing wrong here?

  • RELEVANCY SCORE 2.38

    DB:2.38:Re: Jsf And Database Tables In The Pages... 3a


    Variable catalog represents a data object for a row of data.

    http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/api/javax/faces/component/UIData.html#setVar(java.lang.String)

    DB:2.38:Re: Jsf And Database Tables In The Pages... 3a

    Thanks for the reply. Here is how Iam doing it :
    public MyTable() {
    FacesContext context = FacesContext.getCurrentInstance();
    addColumns(context);
    super.setVar("employee");
    super.setBanding("row");
    super.setBandingInterval(1);
    super.setWidth("721");
    super.setRows(2);
    try {
    super.encodeAll(context);
    } catch (Exception e) {
    e.printStackTrace();
    }
    }

    private void addColumns(FacesContext context) {
    String value = (String) getAttributes().get("model");

    // System.out.println("model : "+value );

    TreeModel tree = new LibraryHandler().getTreeModel();
    CoreTable coreTable = super;
    Object tabColumns = tree.getRowData(0);
    PropertyDescriptor[] props = PropertyUtils.getPropertyDescriptors(tabColumns);

    CoreColumn column1 = new CoreColumn();
    for (int i = 0; i props.length; i++) {
    PropertyDescriptor prop = props;
    if (!prop.getPropertyType().getSimpleName().equalsIgnoreCase("class")) {
    column1 = new CoreColumn();
    CoreOutputText headerComponent = new CoreOutputText();
    headerComponent.setValue(prop.getName().trim().toString());
    convertCamelCase(prop.getName().trim().toString());
    column1.setHeader(headerComponent);

    CoreOutputText column1Text = new CoreOutputText();
    ValueBinding vb =
    context.getApplication().createValueBinding("#{employee." + prop.getName().trim().toString() +
    "}");
    column1Text.setValueBinding("value", vb);
    column1.getChildren().add(column1Text);
    column1.setSortable(true);
    coreTable.getChildren().add(column1);

    }

    }
    coreTable.setValue(tree);

    }

    Is there any better way than this ?

    Another question is how do I gather the EL Expression given on the JSP in the above class ? lets say my jsp has : my:table model="#{LibraryHandler.treeModel}" / .
    From the above EL expression model value given - how do I instatiate the corresponding model. This is where I got stuck. normal values like string or int I can receive them by ValueBinding or by getAttributes() .

    Regards
    Ravi Kumar

  • RELEVANCY SCORE 2.38

    DB:2.38:Com.Sun.Faces.Config.Configurationexception: Configuration Failed! cc


    Hi,

    I installed new 5158 build and I get this exception wlile trying to run MyApp:

    Dec 12, 2008 11:58:00 AM CET Warning HTTP BEA-101162 User defined listener com.sun.faces.config.ConfigureListener failed: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!
    Source Document: zip:C:/Oracle/Middleware/jdeveloper/system/system11.1.1.0.31.51.88/DefaultDomain/servers/DefaultServer/tmp/_WL_user/MyApp/saai2d/war/WEB-INF/lib/adf-controller.jar!/META-INF/faces-config.xml
    Cause: Class 'oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener' is missing a runtime dependency: java.lang.NoClassDefFoundError: javax/faces/event/PhaseListener.
    com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!
    Source Document: zip:C:/Oracle/Middleware/jdeveloper/system/system11.1.1.0.31.51.88/DefaultDomain/servers/DefaultServer/tmp/_WL_user/MyApp/saai2d/war/WEB-INF/lib/adf-controller.jar!/META-INF/faces-config.xml
    Cause: Class 'oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener' is missing a runtime dependency: java.lang.NoClassDefFoundError: javax/faces/event/PhaseListener
    at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:211)
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:184)
    at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:465)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    Truncated. see log file for complete stacktrace
    {code}

    This app worked with 5156, any help?

    Pedja

    DB:2.38:Com.Sun.Faces.Config.Configurationexception: Configuration Failed! cc

    Hi,

    I installed new 5158 build and I get this exception wlile trying to run MyApp:

    Dec 12, 2008 11:58:00 AM CET Warning HTTP BEA-101162 User defined listener com.sun.faces.config.ConfigureListener failed: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!
    Source Document: zip:C:/Oracle/Middleware/jdeveloper/system/system11.1.1.0.31.51.88/DefaultDomain/servers/DefaultServer/tmp/_WL_user/MyApp/saai2d/war/WEB-INF/lib/adf-controller.jar!/META-INF/faces-config.xml
    Cause: Class 'oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener' is missing a runtime dependency: java.lang.NoClassDefFoundError: javax/faces/event/PhaseListener.
    com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!
    Source Document: zip:C:/Oracle/Middleware/jdeveloper/system/system11.1.1.0.31.51.88/DefaultDomain/servers/DefaultServer/tmp/_WL_user/MyApp/saai2d/war/WEB-INF/lib/adf-controller.jar!/META-INF/faces-config.xml
    Cause: Class 'oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener' is missing a runtime dependency: java.lang.NoClassDefFoundError: javax/faces/event/PhaseListener
    at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:211)
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:184)
    at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:465)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    Truncated. see log file for complete stacktrace
    {code}

    This app worked with 5156, any help?

    Pedja

  • RELEVANCY SCORE 2.38

    DB:2.38:Caused By: Java.Lang.Linkageerror: Loader Constraints Violated When Linking cs


    Hi everybody,

    In my application i am having this exception:

    Caused by: java.lang.LinkageError: loader constraints violated when linking javax/faces/model/ListDataModel class

    I tried to find a solution on google but couldn't find useful information for my case.

    My myfaces-all.jar is defined in the web/lib, but i have a external jar that needs to use the ListDataModel. I believe here is the source of my problem. Well thanks in advance.

    DB:2.38:Caused By: Java.Lang.Linkageerror: Loader Constraints Violated When Linking cs

    Hi everybody,

    In my application i am having this exception:

    Caused by: java.lang.LinkageError: loader constraints violated when linking javax/faces/model/ListDataModel class

    I tried to find a solution on google but couldn't find useful information for my case.

    My myfaces-all.jar is defined in the web/lib, but i have a external jar that needs to use the ListDataModel. I believe here is the source of my problem. Well thanks in advance.

  • RELEVANCY SCORE 2.38

    DB:2.38:Noclassdeffounderror When Deploying App With Custom Phaselistener 8k


    Hi all I'm using MyFaces and deploying to a standalone OC4J(10.1.2.0.2). I get the following error when executing the bindWebApp:

    Error: javax/faces/event/PhaseListener
    java.lang.NoClassDefFoundError: javax/faces/event/PhaseListener
    at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMIConnection.java:1621)
    at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java:1572)
    at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:55)
    at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:22)
    at __Proxy0.bindWebApp(Unknown Source)
    at com.evermind.client.orion.BindWebAppCommand.execute(BindWebAppCommand.java:28)
    at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminConsole.java:139)
    at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminConsole.java:30)

    has anyone had this before?

    DB:2.38:Noclassdeffounderror When Deploying App With Custom Phaselistener 8k

    Hi all I'm using MyFaces and deploying to a standalone OC4J(10.1.2.0.2). I get the following error when executing the bindWebApp:

    Error: javax/faces/event/PhaseListener
    java.lang.NoClassDefFoundError: javax/faces/event/PhaseListener
    at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMIConnection.java:1621)
    at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java:1572)
    at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:55)
    at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:22)
    at __Proxy0.bindWebApp(Unknown Source)
    at com.evermind.client.orion.BindWebAppCommand.execute(BindWebAppCommand.java:28)
    at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminConsole.java:139)
    at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminConsole.java:30)

    has anyone had this before?

  • RELEVANCY SCORE 2.38

    DB:2.38:Tableselectmany Selection Validation sz


    Hello all,

    I am using adf tableSelectMany but only want to allow the users to select a maximum of two rows. I tried to use af:validator but got the following error: javax.servlet.ServletException: oracle/adf/view/faces/component/core/data/CoreTableSelectMany incompatible with javax/faces/component/EditableValueHolder.

    Any help is greatly appreciated.

    J

    DB:2.38:Tableselectmany Selection Validation sz

    Hello all,

    I am using adf tableSelectMany but only want to allow the users to select a maximum of two rows. I tried to use af:validator but got the following error: javax.servlet.ServletException: oracle/adf/view/faces/component/core/data/CoreTableSelectMany incompatible with javax/faces/component/EditableValueHolder.

    Any help is greatly appreciated.

    J

  • RELEVANCY SCORE 2.38

    DB:2.38:Java.Lang.Classformaterror: Incompatible Magic Value 1013478509 In Running Applet From Adf cs


    Hi All,I am using Jdev12.1.2.0.0 with JRE 7 update 15I have included an applet by following the steps in Franks bloghttp://www.oracle.com/technetwork/developer-tools/adf/learnmore/71-adf-to-applet-communication-307672.pdfBut some how I keep getting below error.Java Plug-in 10.55.2.14Using JRE version 1.7.0_55-b14 Java HotSpot(TM) Client VMUser home directory = C:\Users\mozakkir----------------------------------------------------CacheEntry[http://127.0.0.1:7101/printers-ViewController-context-root/faces/javax/faces/model/SelectItem.class]: updateAvailable=false,lastModified=Thu Jan 01 03:00:00 AST 1970,length=-1java.lang.IllegalArgumentExceptionIgnored exception: java.lang.RuntimeException: java.lang.ClassFormatError: Incompatible magic value 1013478509 in class file javax/faces/model/SelectItemIn some online posts they have suggested to clear the browser cache but this is also not helping. Below is my applet code af:panelBox text="PanelBox1" id="pb1" f:facet name="toolbar"/ APPLET code="com.blogspot.lucbors.printers.view.beans.TestClient.class" archive="/printers-ViewController-context-root/test.jar" height="130" width="400" align="bottom" /APPLET /af:panelBoxI have placed test.jar inside public_html folder and test.jar contains TestClient.class under package com.blogspot.lucbors.printers.view.beans. I have compiled TestClient.class using jdev jre 7 update 15 and in my machine I have jre 7 update 55 installed. Is this an issue?Any suggestion please

    DB:2.38:Java.Lang.Classformaterror: Incompatible Magic Value 1013478509 In Running Applet From Adf cs

    Looks like the issue is with SelectItem.class which i was using in my Applet I got same error for ActionEvent class. After removing these two from my applet code the applet was loaded successful.Any suggestions on how I can use these two classes??

  • RELEVANCY SCORE 2.38

    DB:2.38:Javax Jars a8


    Getting NoClassDefFound exception while running JBoss:
    The Class name is javax/management/j2ee/statistics/Stats
    Where can I find this?
    In fact I want all Javax classes.Is there a single jar for it?
    I searched JDK/lib and JRE/lib (version 1.4.2_03)
    rt.jar and tools.jar don't have this class.

    Pl. help.

    Thanks

    DB:2.38:Javax Jars a8

    You won't find this class in the J2SE libraries since it is a J2EE class. This class is bundled with JBoss (a J2EE platform). In JBoss 4.0 the javax/management/j2ee/statistics/Stats class is in the jboss-jsr77.jar file which is located in multiple places within a JBoss distribution. It is located in the server\all\lib, server\default\lib, server\standard\lib (different server configs) also in client\jboss-jsr-77-client.jar and client\jbossall-client.jar.

  • RELEVANCY SCORE 2.38

    DB:2.38:Facesexception: Error Performing Conversion xs


    !--[if gte mso 9]xml
    Normal
    0
    false
    false
    false
    MicrosoftInternetExplorer4
    {noformat}/xml![endif]--!--[if gte mso 9]xml{noformat}
    /xml![endif]--
    !--[if gte mso 10]
    style
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin:0in;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:10.0pt;
    font-family:"Times New Roman";
    mso-ansi-language:#0400;
    mso-fareast-language:#0400;
    mso-bidi-language:#0400;}
    /style
    ![endif]--
    I have a managed bean testBean which has a property of
    type java.lang.Class.

    managed-bean

    managed-bean-nametestBean/managed-bean-name

    managed-bean-classpck1.beans.TestBean/managed-bean-class

    managed-bean-scopeapplication/managed-bean-scope

    managed-property

    property-namemyClass/property-name

    property-classjava.lang.Class/property-class

    valuejava.lang.Integer/value

    /managed-property

    /managed-bean

    When I run the application it gives me this error:

    2008-09-15 14:25:40,918 - ERROR - Managedbean testBean
    could not be created Error performing conversion of value 'java.lang.Integer'
    of type 'class java.lang.String' to type 'class java.lang.Class' for managed
    bean 'testBean'.

    javax.faces.FacesException: Error performing conversion
    of value 'java.lang.Integer' of type 'class java.lang.String' to type 'class
    java.lang.Class' for managed bean 'testBean'.

    at
    com.sun.faces.config.ManagedBeanFactory.getConvertedValueConsideringPrimitives(ManagedBeanFactory.java:885)

    at
    com.sun.faces.config.ManagedBeanFactory.setPropertiesIntoBean(ManagedBeanFactory.java:575)

    at
    com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:253)

    at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:282)

    at
    com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:97)

    at
    de.mindmatters.faces.spring.FacesSpringWebApplicationContext$FacesSpringBeanFactory.createManagedBean(FacesSpringWebApplicationContext.java:251)

    at
    de.mindmatters.faces.spring.FacesSpringWebApplicationContext$FacesSpringBeanFactory.createBean(FacesSpringWebApplicationContext.java:238)

    at
    org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)

    at
    org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)

    at
    org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:283)

    at
    org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313)

    at
    org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139)

    at
    de.mindmatters.faces.spring.support.FacesSpringVariableResolver$GetFacesSpringWebApplicationContext.clinit(FacesSpringVariableResolver.java:113)

    at
    de.mindmatters.faces.spring.support.FacesSpringVariableResolver.getFacesSpringWebApplicationContext(FacesSpringVariableResolver.java:146)

    at
    de.mindmatters.faces.spring.support.FacesSpringVariableResolver.resolveVariable(FacesSpringVariableResolver.java:139)

    at
    com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:145)

    at
    com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)

    at
    com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:160)

    .........

    Could anyone please give me some help in this problem? I
    am pretty new in Java Server Faces and I haven't found any solution yet.

    Thanks a lot.

    J_dev7

    DB:2.38:Facesexception: Error Performing Conversion xs

    JSF doesn't know how to convert a literal String value of "java.lang.Integer" to a Class of java.lang.Integer.

    Provide a converter which converts from String to Class in the getAsObject() method and converts from Class to String in the getAsString() method.

  • RELEVANCY SCORE 2.38

    DB:2.38:Java.Lang.Noclassdeffounderror: Javax/Servlet/Jsp/Jstl/Core/Config 88


    when i tried to execute a jsp file i'm getting these 2 exceptions , what is wrong with my program ,

    javax.servlet.ServletException: Servlet execution threw an exception
    java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config

    web.xm
    ----------
    ?xml version="1.0"?
    !DOCTYPE web-app PUBLIC
    "-//Sun Microsystems,Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd"

    web-app
    servlet
    servlet-nameFaces Servlet/servlet-name
    servlet-classjavax.faces.webapp.FacesServlet/servlet-class
    load-on-startup1/load-on-startup
    /servlet

    servlet-mapping
    servlet-nameFaces Servlet/servlet-name
    url-pattern*.faces/url-pattern
    /servlet-mapping

    welcome-file-list
    welcome-fileindex.html/welcome-file
    /welcome-file-list
    /web-app

    faces-config.xml
    ---------------------

    ?xml version="1.0"?
    !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/index.jsp/from-view-id
    navigation-case
    from-outcomelogin/from-outcome
    to-view-id/welcome.jsp/to-view-id
    /navigation-case
    /navigation-rule

    managed-bean
    managed-bean-nameuser/managed-bean-name managed-bean-classcom.corejsf.UserBean/managed-bean-class
    managed-bean-scopesession/managed-bean-scope
    /managed-bean
    /faces-config

    index.html
    ---------------
    html
    %@taglib uri="http://java.sun.com/jsf/core"prefix="f"%
    %@taglib uri="http://java.sun.com/jsf/html"prefix="h"%
    f:view
    head
    titleA Simple JavaServer Faces Application/title
    /head
    body
    h:form
    h3Please enter your name and password./h3
    table
    tr
    td
    Name:
    /td
    td
    h:inputText value="#{user.name}"/
    /td
    /tr
    tr
    td
    Password:
    /td
    td
    h:inputSecret value="#{user.password}"/
    /td
    /tr
    /table

    p
    h:commandButton value="Login"action="login"/
    /p
    /h:form
    /body
    /f:view
    /html

    please help me
    peeths

    DB:2.38:Java.Lang.Noclassdeffounderror: Javax/Servlet/Jsp/Jstl/Core/Config 88

    This topic is ages old and someone resurrected it. Check the dates.

  • RELEVANCY SCORE 2.38

    DB:2.38:Jsf1.0 Implementation Cannot Recognize Initparam zf


    I tried to initialize backing bean properties using initParam by following.
    But instantiate error caused.
    I am using JSF1.0.
    I guess JSF1.0 implementation cannot recognize initParam in faces-config.xml .

    Does anyone experience the same thing?

    -----phone.jsp-------------------------------------------

    .....
    f:view
    h:form
    Phone:
    h:inputText size="4" value="#{telephoneBean2.n1}"/-
    h:inputText size="4" value="#{telephoneBean2.n2}"/-
    h:inputText size="4" value="#{telephoneBean2.n3}"/p
    h:commandButton type="submit" value="submit"/
    brh:messages/
    /h:form
    /f:view
    ......

    result::

    javax.servlet.ServletException: Can't instantiate class: 'Can't instantiate class: 'n1'.'.
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:679)
    org.apache.jsp.propInit2_jsp._jspService(propInit2_jsp.java:82)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:320)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)

    ----backing bean--------------------------------------------------

    package mybeans;
    import java.io.*;
    import java.util.*;
    public class Telephone implements Serializable{
    String n1,n2,n3;
    public Telephone(){
    }
    public String getN1(){
    return n1;
    }
    public String getN2(){
    return n2;
    }
    public String getN3(){
    return n3;
    }
    public void setN1(String n1){
    this.n1=n1;
    }
    public void setN2(String n2){
    this.n2=n2;
    }
    public void setN3(String n3){
    this.n3=n3;
    }
    }

    ---web.xml---------------------------------------------
    context-param
    param-namen1/param-name
    param-value047/param-value
    /context-param
    context-param
    param-namen2/param-name
    param-value8877/param-value
    /context-param

    ---faces-config.xml---------------------------------------------
    managed-bean
    managed-bean-nametelephoneBean2/managed-bean-name
    managed-bean-classmybeans.Telephone/managed-bean-class
    managed-bean-scopesession/managed-bean-scope
    managed-property
    property-namen1/property-name
    value-refinitParam.n1/value-ref
    /managed-property
    managed-property
    property-namen2/property-name
    value-refinitParam.n2/value-ref
    /managed-property
    /managed-bean

    DB:2.38:Jsf1.0 Implementation Cannot Recognize Initparam zf

    i reply myself.

    value-refinitParam.n1/value-ref
    is no longer available.

    value#{initParam.n1}/value
    works fine!

  • RELEVANCY SCORE 2.37

    DB:2.37:Error Compiling Afh Tags After Converting To Jdev 10.1.3.1.0.3856 3k


    I had an JSP/ADF project created and working fine in jdev 10.1.3.0.4 (SU3)
    The project was working fine in the shared linux version of 10.1.3.0.4 jdev.

    Now the shared linux version of jdev has been upgraded to version
    10.1.3.1.0.3856
    Build JDEVADF_10.1.3.1.0_NT_060628.1121.3859

    I am getting these errors when I compile the same ViewController project that was working before:

    "Unable to instantiate tag; afh:html (class: oracle.adfinernal.view.taglib.html.HtmlHtmlTag) Make sure that the tag class is available and that the tag library containing the class is not excluded from this application."

    I have these JSP Tag Libraries defined in the project setting:
    * ADF Faces Componenets 10_1_3_0_4
    * ADF Faces HTML 10_1_3_0_4
    * JSF Core 1.0
    * JSF HTML 1.0

    It looks like the 10_1_3_0_4 tag libraries are not used anymore in 10.1.3.1.0? Are there replacement libraries I should use instead?

    Thanks,
    Ou-Dan

    DB:2.37:Error Compiling Afh Tags After Converting To Jdev 10.1.3.1.0.3856 3k

    I had an JSP/ADF project created and working fine in jdev 10.1.3.0.4 (SU3)
    The project was working fine in the shared linux version of 10.1.3.0.4 jdev.

    Now the shared linux version of jdev has been upgraded to version
    10.1.3.1.0.3856
    Build JDEVADF_10.1.3.1.0_NT_060628.1121.3859

    I am getting these errors when I compile the same ViewController project that was working before:

    "Unable to instantiate tag; afh:html (class: oracle.adfinernal.view.taglib.html.HtmlHtmlTag) Make sure that the tag class is available and that the tag library containing the class is not excluded from this application."

    I have these JSP Tag Libraries defined in the project setting:
    * ADF Faces Componenets 10_1_3_0_4
    * ADF Faces HTML 10_1_3_0_4
    * JSF Core 1.0
    * JSF HTML 1.0

    It looks like the 10_1_3_0_4 tag libraries are not used anymore in 10.1.3.1.0? Are there replacement libraries I should use instead?

    Thanks,
    Ou-Dan

  • RELEVANCY SCORE 2.37

    DB:2.37:Class Loading Problem With Websphere 6.1 ps


    Hello

    We have a jsf application that works fine with tomcat as well as jboss. Now we need to deploy on websphere 6.1 and encounter some problem.
    We followed the specifications of this link [regarding jsf and Weblogic|http://www-01.ibm.com/support/docview.wss?uid=swg21243668] , i.e. made the myfaces jars a shared library (left tomahawk libs in webapp though).

    Now i get java.lang.ClassCastException: javax.faces.component.UIViewRoot incompatible with com.opentext.docviewer.ui.component.toolbar.Toolbar
    at com.opentext.docviewer.ui.component.toolbar.ToolbarTag.setProperties(ToolbarTag.java:66)
    at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:536)
    at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:312)
    at com.ibm._jsp._toolbar._jspx_meth_dv_toolBar_0(_toolbar.java:183)
    at com.ibm._jsp._toolbar._jspService(_toolbar.java:87)
    at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:85)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:118)I wrote a small jsp page that showed me the clasloader order of the class javax.faces.component.UIViewRoot and got this:
    System path

    Webapp path

    * bundleresource://31/javax/faces/component/UIViewRoot.class
    * wsjar:file:/E:/shared/myfaces/myfaces-api-1.1.4.jar!/javax/faces/component/UIViewRoot.class

    So somehow there is a "bundleresource"?
    I changed the classloading mechanisms accoording to the link mentioned above, but now i run out of ideas :-(

    Regards

    Edited by: mark1971 on Sep 10, 2008 2:21 AM

    DB:2.37:Class Loading Problem With Websphere 6.1 ps

    Hello

    We have a jsf application that works fine with tomcat as well as jboss. Now we need to deploy on websphere 6.1 and encounter some problem.
    We followed the specifications of this link [regarding jsf and Weblogic|http://www-01.ibm.com/support/docview.wss?uid=swg21243668] , i.e. made the myfaces jars a shared library (left tomahawk libs in webapp though).

    Now i get java.lang.ClassCastException: javax.faces.component.UIViewRoot incompatible with com.opentext.docviewer.ui.component.toolbar.Toolbar
    at com.opentext.docviewer.ui.component.toolbar.ToolbarTag.setProperties(ToolbarTag.java:66)
    at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:536)
    at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:312)
    at com.ibm._jsp._toolbar._jspx_meth_dv_toolBar_0(_toolbar.java:183)
    at com.ibm._jsp._toolbar._jspService(_toolbar.java:87)
    at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:85)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:118)I wrote a small jsp page that showed me the clasloader order of the class javax.faces.component.UIViewRoot and got this:
    System path

    Webapp path

    * bundleresource://31/javax/faces/component/UIViewRoot.class
    * wsjar:file:/E:/shared/myfaces/myfaces-api-1.1.4.jar!/javax/faces/component/UIViewRoot.class

    So somehow there is a "bundleresource"?
    I changed the classloading mechanisms accoording to the link mentioned above, but now i run out of ideas :-(

    Regards

    Edited by: mark1971 on Sep 10, 2008 2:21 AM

  • RELEVANCY SCORE 2.37

    DB:2.37:Tomcat Error For Jsf Program dz


    Hi all,

    I am using the exadel with eclipse 3.2 and i created one simple jsf program, at first shot program executed fine and when i made the second program i got the error with the tomcat server and even the first executed program is not working.
    This is the error i got when i start the tomcat server--

    Jun 1, 2007 11:11:22 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
    INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.5.0_11\bin;.;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\Java\jdk1.5.0_11\bin
    Jun 1, 2007 11:11:22 AM org.apache.coyote.http11.Http11BaseProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Jun 1, 2007 11:11:22 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1877 ms
    Jun 1, 2007 11:11:22 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Jun 1, 2007 11:11:22 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
    Jun 1, 2007 11:11:23 AM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    Jun 1, 2007 11:11:23 AM org.apache.catalina.core.StandardContext listenerStart
    SEVERE: Error configuring application listener of class com.sun.faces.config.ConfigureListener
    java.lang.NoClassDefFoundError: javax/faces/FacesException
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
    at java.lang.Class.getConstructor0(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3678)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
    at org.apache.catalina.core.StandardService.start(StandardService.java:450)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
    Jun 1, 2007 11:11:23 AM org.apache.catalina.core.StandardContext listenerStart
    SEVERE: Skipped installing application listeners due to previous error(s)
    Jun 1, 2007 11:11:23 AM org.apache.catalina.core.StandardContext start
    SEVERE: Error listenerStart
    Jun 1, 2007 11:11:23 AM org.apache.catalina.core.StandardContext start
    SEVERE: Context [webwayproject] startup failed due to previous errors
    Jun 1, 2007 11:11:23 AM org.apache.coyote.http11.Http11BaseProtocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    Jun 1, 2007 11:11:24 AM org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    Jun 1, 2007 11:11:24 AM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/31 config=null
    Jun 1, 2007 11:11:24 AM org.apache.catalina.storeconfig.StoreLoader load
    INFO: Find registry server-registry.xml at classpath resource
    Jun 1, 2007 11:11:24 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 1668 ms

    and after this the web page shows ---

    type Status report

    message /jsfHello/

    description The requested resource (/jsfHello/) is not available.

    Please help me

    DB:2.37:Tomcat Error For Jsf Program dz

    Hi all,

    I am using the exadel with eclipse 3.2 and i created one simple jsf program, at first shot program executed fine and when i made the second program i got the error with the tomcat server and even the first executed program is not working.
    This is the error i got when i start the tomcat server--

    Jun 1, 2007 11:11:22 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
    INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.5.0_11\bin;.;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\Java\jdk1.5.0_11\bin
    Jun 1, 2007 11:11:22 AM org.apache.coyote.http11.Http11BaseProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Jun 1, 2007 11:11:22 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1877 ms
    Jun 1, 2007 11:11:22 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Jun 1, 2007 11:11:22 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
    Jun 1, 2007 11:11:23 AM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    Jun 1, 2007 11:11:23 AM org.apache.catalina.core.StandardContext listenerStart
    SEVERE: Error configuring application listener of class com.sun.faces.config.ConfigureListener
    java.lang.NoClassDefFoundError: javax/faces/FacesException
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
    at java.lang.Class.getConstructor0(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3678)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
    at org.apache.catalina.core.StandardService.start(StandardService.java:450)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
    Jun 1, 2007 11:11:23 AM org.apache.catalina.core.StandardContext listenerStart
    SEVERE: Skipped installing application listeners due to previous error(s)
    Jun 1, 2007 11:11:23 AM org.apache.catalina.core.StandardContext start
    SEVERE: Error listenerStart
    Jun 1, 2007 11:11:23 AM org.apache.catalina.core.StandardContext start
    SEVERE: Context [webwayproject] startup failed due to previous errors
    Jun 1, 2007 11:11:23 AM org.apache.coyote.http11.Http11BaseProtocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    Jun 1, 2007 11:11:24 AM org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    Jun 1, 2007 11:11:24 AM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/31 config=null
    Jun 1, 2007 11:11:24 AM org.apache.catalina.storeconfig.StoreLoader load
    INFO: Find registry server-registry.xml at classpath resource
    Jun 1, 2007 11:11:24 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 1668 ms

    and after this the web page shows ---

    type Status report

    message /jsfHello/

    description The requested resource (/jsfHello/) is not available.

    Please help me

  • RELEVANCY SCORE 2.37

    DB:2.37:Getting A Linkageerror When Loading Hornetq m7


    Trying to start hornetQ server in jboss 4.2.3 running with java jdk1.5.0_14
    Getting the linkage error below; using the spring definition below the error.
    Wondering if anyone has any suggestions.
    Thanks in advance,
    David

    2010-02-11 08:46:34,664 INFO [com.zilliant.server.util.ZilliantAnnotationSessionFactoryBean] Closing Hibernate SessionFactory
    2010-02-11 08:46:34,664 INFO [org.hibernate.impl.SessionFactoryImpl] closing
    2010-02-11 08:46:34,664 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hornetQ' defined in resource loaded from byte array: Instantiation of bean failed; nested exception is org.springframework.beans.FatalBeanException: Could not instantiate class [org.hornetq.core.server.impl.HornetQServerImpl]; constructor threw exception; nested exception is java.lang.LinkageError: loader constraints violated when linking javax/management/MBeanServer class
    org.springframework.beans.FatalBeanException: Could not instantiate class [org.hornetq.core.server.impl.HornetQServerImpl]; constructor threw exception; nested exception is java.lang.LinkageError: loader constraints violated when linking javax/management/MBeanServer class
    java.lang.LinkageError: loader constraints violated when linking javax/management/MBeanServer class
    at org.hornetq.core.server.impl.HornetQServerImpl.init(HornetQServerImpl.java:247)
    at org.hornetq.core.server.impl.HornetQServerImpl.init(HornetQServerImpl.java:222)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:172)
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:78)

    ?xml version="1.0" encoding="UTF-8"?
    !DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"
    beans
    bean id="inVMTransport" class="org.hornetq.api.core.TransportConfiguration"
    constructor-arg index="0"
    valueorg.hornetq.core.remoting.impl.invm.InVMAcceptorFactory/value
    /constructor-arg
    /bean

    bean id="configuration" class="org.hornetq.core.config.impl.ConfigurationImpl"
    property name="acceptorConfigurations"
    set
    ref bean="inVMTransport"/
    /set
    /property
    property name="securityEnabled"
    valuefalse/value
    /property
    /bean

    bean id="hornetQ" class="org.hornetq.core.server.impl.HornetQServerImpl"
    constructor-arg index="0"ref bean="configuration"//constructor-arg
    /bean

    bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"
    property name="targetObject"ref local="hornetQ"//property
    property name="targetMethod"valuestart/value/property
    /bean

    /beans

    DB:2.37:Getting A Linkageerror When Loading Hornetq m7


    Also pls see https://jira.jboss.org/jira/browse/HORNETQ-269

    There is a bug in the 2.0 quick start docs about how to run the script to install into AS4

    You probably worked it out by now, by looking at the script anyway.

  • RELEVANCY SCORE 2.37

    DB:2.37:Problem With Migration From Beta To Release 8x


    I have a problem with instantiate managed bean. It works fine in the beta.
    What should I change?

    Exception:
    javax.servlet.ServletException: Can't instantiate class: 'Can't set managed bean property: 'items'.'.
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:670)
    org.apache.jsp.pages.place_jsp._jspService(place_jsp.java:83)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
    ...................

    root cause

    javax.faces.el.PropertyNotFoundException: Can't instantiate class: 'Can't set managed bean property: 'items'.'.
    com.sun.faces.application.ApplicationImpl.createAndMaybeStoreManagedBeans(ApplicationImpl.java:872)
    com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:79)
    com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:120)
    com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:141)
    com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:238)
    com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:155)
    com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:136)
    javax.faces.component.UIData.getValue(UIData.java:560)faces-config.xml: managed-bean
    descriptionPlace to go/description
    managed-bean-nameListHolderBean/managed-bean-name
    managed-bean-classdemo.ListHolderBean/managed-bean-class
    managed-bean-scopesession/managed-bean-scope
    managed-property
    property-nameitems/property-name
    property-classjava.lang.String[]/property-class
    value/
    /managed-property
    /managed-beandemo.ListHolderBean class:
    public class ListHolderBean {
    private String[] items;
    ......
    public String[] getItems() {
    return "Canada".equals(country) ? canadaPlaces : usaPlaces;
    }
    public void setItems(String[] strings) {
    items = strings;
    }
    }

    DB:2.37:Problem With Migration From Beta To Release 8x

    I think you'll find that your get/set methods should not be returning a String []

    check the JSF API / Tutorial

    Table 21-5 Acceptable Component Types Component Types
    UIInput, UIOutput, UISelectItem, UISelectOne Any of the standard converters
    UIData array of beans ,java.util.Collection of beans, single bean, java.sql.ResultSet, javax.servlet.jsp.jstl.sql.Result, javax.sql.RowSet
    UISelectBoolean boolean
    UISelectItems java.lang.String, Collection, Array, Map
    UISelectMany array or Collection. Elements of the array or Collection can be any of the standard types.

  • RELEVANCY SCORE 2.36

    DB:2.36:Cannot Instantiate Weblogic.Jndi.Wlinitialcontextfactory fd



    I have VisualCafe4.0 and weblogicserver5.1.0 trial versions when i try to execute the EJB

    In AppConsole getting error as
    WebGain Java! JustInTime Compiler Version 4.00.002(x) for JDK 1.2
    Copyright (C) 2000 WebGain, Inc.

    [Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory]javax
    .naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFacto
    ry
    at javax.naming.spi.NamingManager.getDefaultInitialContextFactory(NamingManager.java:720
    )
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:768)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:169)
    at javax.naming.InitialContext.init(InitialContext.java:146)
    at Base1Client.getInitialContext(Base1Client.java:56)
    at Base1Client.main(Base1Client.java, Compiled Code)
    press any key to exit...

    If you do not want this console to remain after the VM exits,
    clear the "Keep Executed App Console" setting in your Visual Cafe
    environment options

    Any help from anybody!!

    DB:2.36:Cannot Instantiate Weblogic.Jndi.Wlinitialcontextfactory fd

    Add %PATH_TO_WEBLOGIC%\classes to your application's classpath

    Neem wrote:

    I have VisualCafe4.0 and weblogicserver5.1.0 trial versions when i try to execute the EJB

    In AppConsole getting error as
    WebGain Java! JustInTime Compiler Version 4.00.002(x) for JDK 1.2
    Copyright (C) 2000 WebGain, Inc.

    [Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory]javax
    .naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFacto
    ry
    at javax.naming.spi.NamingManager.getDefaultInitialContextFactory(NamingManager.java:720
    )
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:768)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:169)
    at javax.naming.InitialContext.init(InitialContext.java:146)
    at Base1Client.getInitialContext(Base1Client.java:56)
    at Base1Client.main(Base1Client.java, Compiled Code)
    press any key to exit...

    If you do not want this console to remain after the VM exits,
    clear the "Keep Executed App Console" setting in your Visual Cafe
    environment options

    Any help from anybody!!

  • RELEVANCY SCORE 2.36

    DB:2.36:Class Not Found Javax/Interceptor/Invocationcontext 8f



    I just upgqraded the seam and faced this error message:

    javax/interceptor/InvocationContext

    DB:2.36:Class Not Found Javax/Interceptor/Invocationcontext 8f


    upgrading the JBoss sever solved my problem. Ofcourse there was lots of annotations to be changed

  • RELEVANCY SCORE 2.36

    DB:2.36:Problem Upgrading To Richfaces 3.2 On Seam 1.2.1 9k


    Hello,

    Im trying to update my app to use richFaces3.2.

    Now I use seam 1.2.1 on jboss ap 4.0.5.

    When i include the richfaces jars and i change de web.xml as says in the richFaces install manual, i get this error:

    08:59:09,235 INFO Initialization done initializing Seam
    08:59:09,455 INFO FacesConfigurator Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
    08:59:09,546 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp58105jboss-seam.jar!/META-INF/faces-config.xml
    08:59:09,546 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/./deploy/timeReporting.ear/timeReporting.war/WEB-INF/lib/ajax4jsf-1.1.1-SNAPSHOT.jar!/META-INF/faces-config.xml
    08:59:09,616 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/./deploy/timeReporting.ear/timeReporting.war/WEB-INF/lib/jboss-seam-debug.jar!/META-INF/faces-config.xml
    08:59:09,626 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/./deploy/timeReporting.ear/timeReporting.war/WEB-INF/lib/jboss-seam-mail.jar!/META-INF/faces-config.xml
    08:59:09,626 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/./deploy/timeReporting.ear/timeReporting.war/WEB-INF/lib/jboss-seam-pdf.jar!/META-INF/faces-config.xml
    08:59:09,636 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/./deploy/timeReporting.ear/timeReporting.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/faces-config.xml
    08:59:09,666 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/./deploy/timeReporting.ear/timeReporting.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml
    08:59:09,676 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/./deploy/timeReporting.ear/timeReporting.war/WEB-INF/lib/richfaces-impl-3.2.0.GA.jar!/META-INF/faces-config.xml
    08:59:14,481 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/./deploy/timeReporting.ear/timeReporting.war/WEB-INF/lib/richfaces-ui-3.2.0.GA.jar!/META-INF/faces-config.xml
    08:59:19,367 INFO FacesConfigurator Reading config /WEB-INF/faces-config.xml
    08:59:19,527 WARN LocaleUtils Locale name in faces-config.xml null or empty, setting locale to default locale : esES
    08:59:20,178 ERROR timeReporting Exception sending context initialized event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener
    java.lang.NoClassDefFoundError: javax/faces/component/ActionSource2

    DB:2.36:Problem Upgrading To Richfaces 3.2 On Seam 1.2.1 9k

    Hello,

    Im trying to update my app to use richFaces3.2.

    Now I use seam 1.2.1 on jboss ap 4.0.5.

    When i include the richfaces jars and i change de web.xml as says in the richFaces install manual, i get this error:

    08:59:09,235 INFO Initialization done initializing Seam
    08:59:09,455 INFO FacesConfigurator Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
    08:59:09,546 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp58105jboss-seam.jar!/META-INF/faces-config.xml
    08:59:09,546 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/./deploy/timeReporting.ear/timeReporting.war/WEB-INF/lib/ajax4jsf-1.1.1-SNAPSHOT.jar!/META-INF/faces-config.xml
    08:59:09,616 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/./deploy/timeReporting.ear/timeReporting.war/WEB-INF/lib/jboss-seam-debug.jar!/META-INF/faces-config.xml
    08:59:09,626 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/./deploy/timeReporting.ear/timeReporting.war/WEB-INF/lib/jboss-seam-mail.jar!/META-INF/faces-config.xml
    08:59:09,626 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/./deploy/timeReporting.ear/timeReporting.war/WEB-INF/lib/jboss-seam-pdf.jar!/META-INF/faces-config.xml
    08:59:09,636 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/./deploy/timeReporting.ear/timeReporting.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/faces-config.xml
    08:59:09,666 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/./deploy/timeReporting.ear/timeReporting.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml
    08:59:09,676 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/./deploy/timeReporting.ear/timeReporting.war/WEB-INF/lib/richfaces-impl-3.2.0.GA.jar!/META-INF/faces-config.xml
    08:59:14,481 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/./deploy/timeReporting.ear/timeReporting.war/WEB-INF/lib/richfaces-ui-3.2.0.GA.jar!/META-INF/faces-config.xml
    08:59:19,367 INFO FacesConfigurator Reading config /WEB-INF/faces-config.xml
    08:59:19,527 WARN LocaleUtils Locale name in faces-config.xml null or empty, setting locale to default locale : esES
    08:59:20,178 ERROR timeReporting Exception sending context initialized event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener
    java.lang.NoClassDefFoundError: javax/faces/component/ActionSource2

  • RELEVANCY SCORE 2.36

    DB:2.36:How To Handle Jsf Session Timeouts ? d1


    Hi All,

    I want to redirect to a specific ".jsp" file page when the session is timed out in JSF.

    I have tried to implement the same using PhaseListener

    import javax.faces.FacesException;
    import javax.faces.application.Application;
    import javax.faces.application.ViewHandler;
    import javax.faces.component.UIViewRoot;
    import javax.faces.context.ExternalContext;
    import javax.faces.context.FacesContext;
    import javax.faces.event.PhaseEvent;
    import javax.faces.event.PhaseId;
    import javax.faces.event.PhaseListener;
    import javax.servlet.http.HttpSession;

    public class SessionTimeoutPhaseListener implements PhaseListener {

    public void beforePhase(PhaseEvent event) {
    // Session detection code goes here
    System.out.println(event.getPhaseId());
    FacesContext facesCtx = event.getFacesContext();
    ExternalContext extCtx = facesCtx.getExternalContext();
    HttpSession session = (HttpSession) extCtx.getSession(false);

    boolean newSession = (session == null) || (session.isNew());
    boolean postback = !extCtx.getRequestParameterMap().isEmpty();
    boolean timedout = postback newSession;
    if (timedout) {
    Application app = facesCtx.getApplication();
    ViewHandler viewHandler = app.getViewHandler();
    UIViewRoot view = viewHandler.createView(
    facesCtx,
    "sample.jsp");
    facesCtx.setViewRoot(view);
    facesCtx.renderResponse();
    try {
    viewHandler.renderView(facesCtx, view);
    facesCtx.responseComplete();
    } catch(Throwable t) {
    throw new FacesException(
    "Session timed out", t);
    }
    }
    }

    public void afterPhase(PhaseEvent event) {
    // Do nothing
    }

    public PhaseId getPhaseId() {
    return PhaseId.ANY_PHASE;
    }
    } and I added the following lines in my faces-cofig.xml

    lifecycle
    phase-listener
    SessionTimeoutPhaseListener
    /phase-listener
    /lifecycleBut Its not working. Whenever session expires i am getting the following exception in my screen.

    javax.faces.application.ViewExpiredException: viewId:/welcome.jsf - View /welcome.jsf could not be restored.
    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:312)
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
    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:292)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:43)
    at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:247)Have i did anything wrongly in the above mentioned code? Is there any other simple way to handle this situation.

    Thanks in Advance,
    Antany

    DB:2.36:How To Handle Jsf Session Timeouts ? d1

    Thank you very much ferric4

    The below code works as i expected.

    public class TimeOutListener implements PhaseListener {

    public void afterPhase(PhaseEvent e) {
    // TODO Auto-generated method stub
    if(e.getPhaseId()== PhaseId.RESTORE_VIEW) {
    FacesContext facesContext = e.getFacesContext();
    HttpSession sessionx = (HttpSession)facesContext.getExternalContext().getSession(false);
    HttpServletRequest req = (HttpServletRequest) facesContext.getExternalContext().getRequest();

    SessionInfo sessionInfo = (SessionInfo) sessionx.getAttribute("si");

    if(sessionInfo == null){
    facesContext.getApplication().getNavigationHandler().handleNavigation(facesContext, "", "sessionExpired" );
    }
    }
    }

    public void beforePhase(PhaseEvent e) {
    // TODO Auto-generated method stub

    if(e.getPhaseId()== PhaseId.RESTORE_VIEW) {
    FacesContext facesContext = e.getFacesContext();
    HttpSession sessionx = (HttpSession)facesContext.getExternalContext().getSession(false);
    HttpServletRequest req = (HttpServletRequest) facesContext.getExternalContext().getRequest();

    SessionInfo sessionInfo = (SessionInfo) sessionx.getAttribute("si");

    if(sessionInfo == null){
    facesContext.getApplication().getNavigationHandler().handleNavigation(facesContext, "", "sessionExpired" );
    }
    }
    }

    public PhaseId getPhaseId() {
    // TODO Auto-generated method stub
    return PhaseId.RESTORE_VIEW;
    }

    }Thanks,
    Antany

  • RELEVANCY SCORE 2.36

    DB:2.36:Maximize Window State From Within Portlet Faces Hyperlink? 9f


    Does anyone know how to implement/force window state from a hyperlink? I want to maximize the portlet window when any hyperlink is clicked from within the default view mode. The javax portlet api tags allow you to set this attribute like portlet:actionURL windowState="maximized"/. Is there a similar way to do this from within Creator's use of jsf? Or, am I going to have to do this within the class files? Thanks much

  • RELEVANCY SCORE 2.36

    DB:2.36:Startupservletcontextlistener 3x


    Whenever i am running tomcat through eclipse i am getting the following error:
    SEVERE: Error configuring application listener of class org.apache.myfaces.webapp.StartupServletContextListener
    java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener

    I have the myfaces-api and my-faces impl.jar in my classpath? I searched the forum but to no avail. Plz help..

    DB:2.36:Startupservletcontextlistener 3x

    Do you have the j2ee.jar on your classpath as well?

    CowKing

  • RELEVANCY SCORE 2.36

    DB:2.36:Problems With Jenia Popupframe s7


    I can't use popupFrame component

    this is the error
    javax.servlet.ServletException: javax/faces/component/UIComponent
    the class that requests exists in myfaces, I don't understand why

    in consola eclipse

    Overwriting renderer with family = javax.faces.Command rendererType = javax.faces.Button renderer class = org.apache.myfaces.renderkit.html.jsf.DummyFormHtmlButtonRenderer
    23:47:27,921 INFO [HtmlRenderKitImpl] Overwriting renderer with family = javax.faces.Command rendererType = javax.faces.Link renderer class = org.apache.myfaces.renderkit.html.jsf.DummyFormHtmlLinkRenderer

    in my JSP

    jp:popupFrame height="450px" width="550px" actionOpen="#{publicar.ingresarImagenes}"
    h:outputText value="Popup frame"/
    /jp:popupFrame

    and javabean

    public String ingresarImagenes(){

    return (new String("Success"));
    }

    thanks.

    DB:2.36:Problems With Jenia Popupframe s7

    I can't use popupFrame component

    this is the error
    javax.servlet.ServletException: javax/faces/component/UIComponent
    the class that requests exists in myfaces, I don't understand why

    in consola eclipse

    Overwriting renderer with family = javax.faces.Command rendererType = javax.faces.Button renderer class = org.apache.myfaces.renderkit.html.jsf.DummyFormHtmlButtonRenderer
    23:47:27,921 INFO [HtmlRenderKitImpl] Overwriting renderer with family = javax.faces.Command rendererType = javax.faces.Link renderer class = org.apache.myfaces.renderkit.html.jsf.DummyFormHtmlLinkRenderer

    in my JSP

    jp:popupFrame height="450px" width="550px" actionOpen="#{publicar.ingresarImagenes}"
    h:outputText value="Popup frame"/
    /jp:popupFrame

    and javabean

    public String ingresarImagenes(){

    return (new String("Success"));
    }

    thanks.

  • RELEVANCY SCORE 2.35

    DB:2.35:Custom Component Renderer Failing af


    Hello,

    I am trying to implement a file upload custom component by using the Core JSF book. Right now, when I try to access the page where my custom component is, I am getting the following error:

    [ServletException in:/jsps/tiles/User.jsp] com.highmark.qcr.app.customtags.UploadRenderer' ]

    My renderer class for the Tag is set up as:

    package com.highmark.qcr.app.customtags;

    import java.io.File;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.UnsupportedEncodingException;

    import javax.faces.FacesException;
    import javax.faces.component.EditableValueHolder;
    import javax.faces.component.UIComponent;
    import javax.faces.context.ExternalContext;
    import javax.faces.context.FacesContext;
    import javax.faces.context.ResponseWriter;
    import javax.faces.el.ValueBinding;
    import javax.faces.render.Renderer;
    import javax.servlet.ServletContext;
    import javax.servlet.http.HttpServletRequest;

    import org.apache.commons.fileupload.FileItem;

    public class UploadRenderer extends Renderer {

    public UploadRenderer() {
    System.err.println("UploadRenderer cstr");
    }

    public void encodeBegin(FacesContext context, UIComponent component)
    throws IOException {
    System.err.println("UploadRenderer");
    if (!component.isRendered())
    return;
    ResponseWriter writer = context.getResponseWriter();

    String clientId = component.getClientId(context);

    writer.startElement("input", component);
    writer.writeAttribute("type", "file", "type");
    writer.writeAttribute("name", clientId, "clientId");
    writer.endElement("input");
    writer.flush();
    }

    public void decode(FacesContext context, UIComponent component) {
    System.err.println("decode");
    ExternalContext external = context.getExternalContext();
    HttpServletRequest request = (HttpServletRequest) external.getRequest();
    String clientId = component.getClientId(context);
    FileItem item = (FileItem) request.getAttribute(clientId);

    Object newValue;
    ValueBinding binding = component.getValueBinding("value");
    if (binding != null) {
    // sometimes item is null, due to being hidden
    if (item != null) {
    if (binding.getType(context) == byte[].class) {
    newValue = item.get();
    }
    if (binding.getType(context) == InputStream.class) {
    try {
    newValue = item.getInputStream();
    } catch (IOException ex) {
    throw new FacesException(ex);
    }
    } else {
    String encoding = request.getCharacterEncoding();
    if (encoding != null)
    try {
    newValue = item.getString(encoding);
    } catch (UnsupportedEncodingException ex) {
    newValue = item.getString();
    }
    else
    newValue = item.getString();
    }
    } else
    newValue = "";
    ((EditableValueHolder) component).setSubmittedValue(newValue);
    }

    Object target;
    binding = component.getValueBinding("target");
    if (binding != null)
    target = binding.getValue(context);
    else
    target = component.getAttributes().get("target");

    if (target != null) {
    File file;
    if (target instanceof File)
    file = (File) target;
    else {
    ServletContext servletContext = (ServletContext) external.getContext();
    file = new File(servletContext.getRealPath("/"), target.toString());
    }

    try { // ugh--write is declared with "throws Exception"
    item.write(file);
    } catch (Exception ex) {
    throw new FacesException(ex);
    }
    }
    }
    }I also have it defined in faces-config as:

    component
    component-typeUpload/component-type
    component-classcom.highmark.qcr.app.customtags.UploadRenderer/component-class
    attribute
    attribute-nametarget/attribute-name
    attribute-classjava.lang.String/attribute-class
    /attribute
    attribute
    attribute-namevalue/attribute-name
    attribute-classjava.lang.String/attribute-class
    /attribute
    /componentAnd I am calling it on my JSP as:

    %@taglib uri="/WEB-INF/my-custom.tld" prefix="qcr" %
    qcr:upload target="c:/" value="c:/"/Any ideas as to what I'm missing?

    DB:2.35:Custom Component Renderer Failing af

    You've written a renderer (extending Renderer) and not a Component (extending UIComponentBase).

    Message was edited by:
    BrantKnudson -- accidentally put UIComponent rather than UIComponentBase

  • RELEVANCY SCORE 2.35

    DB:2.35:Linker Error----Undefined Reference To fa


    Hi

    i'm getting this error on linking ie on executing the command gcj --main=apps -o apps apps.o
    apps is the name of the file.....the code is compliling without error...

    Can anyone tell why this, 'undefined reference to......' error coming and how to correct it

    Here is the complete error msg...plz help

    [root@localhost ~]# gcj --main=apps -o apps apps.o
    apps.o: In function `javax::mail::PasswordAuthentication* SendMailUsingAuthentication$SMTPAuthenticator::getPasswordAuthentication()':
    apps.java:(.text+0x48cc): undefined reference to `javax::mail::PasswordAuthentication::class$'
    apps.java:(.text+0x48e9): undefined reference to `javax::mail::PasswordAuthentication::PasswordAuthentication(java::lang::String*, java::lang::String*)'
    apps.o: In function `SendMailUsingAuthentication$SMTPAuthenticator::SendMailUsingAuthentication$SMTPAuthenticator(SendMailUsingAuthentication*)':
    apps.java:(.text+0x490c): undefined reference to `javax::mail::Authenticator::Authenticator()'
    apps.o: In function `void SendMailUsingAuthentication::run()':
    apps.java:(.text+0x4ca5): undefined reference to `javax::mail::Session* javax::mail::Session::getDefaultInstance(java::util::Properties*, javax::mail::Authenticator*)'
    apps.java:(.text+0x4cd6): undefined reference to `void javax::mail::Session::setDebug(bool)'
    apps.java:(.text+0x4cdd): undefined reference to `javax::mail::internet::MimeMessage::class$'
    apps.java:(.text+0x4cfd): undefined reference to `javax::mail::internet::MimeMessage::MimeMessage(javax::mail::Session*)'
    apps.java:(.text+0x4d0d): undefined reference to `javax::mail::internet::InternetAddress::class$'
    apps.java:(.text+0x4d3c): undefined reference to `javax::mail::internet::InternetAddress::InternetAddress(java::lang::String*)'
    apps.java:(.text+0x4da1): undefined reference to `javax::mail::internet::InternetAddress::class$'
    apps.java:(.text+0x4de4): undefined reference to `javax::mail::internet::InternetAddress::class$'
    apps.java:(.text+0x4e13): undefined reference to `javax::mail::internet::InternetAddress::InternetAddress(java::lang::String*)'
    apps.java:(.text+0x4e82): undefined reference to `javax::mail::internet::InternetAddress::class$'
    apps.java:(.text+0x4ea5): undefined reference to `javax::mail::internet::InternetAddress::InternetAddress(java::lang::String*)'
    apps.java:(.text+0x4ee7): undefined reference to `javax::mail::Message$RecipientType::class$'
    apps.java:(.text+0x4ef1): undefined reference to `javax::mail::Message$RecipientType::TO'
    apps.java:(.text+0x4fb1): undefined reference to `void javax::mail::Transport::send(javax::mail::Message*)'
    apps.o:(.data+0x3168): undefined reference to `javax::mail::PasswordAuthentication* javax::mail::Authenticator::requestPasswordAuthentication(java::net::InetAddress*, int, java::lang::String*, java::lang::String*, java::lang::String*)'
    apps.o:(.data+0x316c): undefined reference to `java::net::InetAddress* javax::mail::Authenticator::getRequestingSite()'
    apps.o:(.data+0x3170): undefined reference to `int javax::mail::Authenticator::getRequestingPort()'
    apps.o:(.data+0x3174): undefined reference to `java::lang::String* javax::mail::Authenticator::getRequestingProtocol()'
    apps.o:(.data+0x3178): undefined reference to `java::lang::String* javax::mail::Authenticator::getRequestingPrompt()'
    apps.o:(.data+0x317c): undefined reference to `java::lang::String* javax::mail::Authenticator::getDefaultUserName()'
    apps.o:(.data+0x31f0): undefined reference to `javax::mail::Authenticator::class$'
    collect2: ld returned 1 exit status

  • RELEVANCY SCORE 2.35

    DB:2.35:Jsf Fails (Noclassdeffounderror) After Upgrade To 1.2_03 In Glassfish 91


    Hi, I've noticed the following problem:
    Fresh install of glassfish b14 - JSF bundled (1.2_02) works fine. After installing JSF 1.2_03 using glassfish updater, any application that uses JSF fails (see below).
    It seems that that updater replaces javaee.jar with smaller one without javax.faces.*. javax.faces.* are in installed jsf-api.jar, but not visible(?) by glassfish. Any ideas/suggestions?

    #|2006-12-07T12:31:07.069+0100|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.container.web|_ThreadID=10;_ThreadName=main;_RequestID=9977d39e-8860-4cd1-a6c5-3389e4a54b18;|WebModule[]Error configuring application listener of class com.sun.faces.config.ConfigureListener
    java.lang.NoClassDefFoundError: javax/faces/FacesException
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
    at java.lang.Class.getConstructor0(Class.java:2671)
    at java.lang.Class.newInstance0(Class.java:321)
    at java.lang.Class.newInstance(Class.java:303)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4182)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4760)
    at com.sun.enterprise.web.WebModule.start(WebModule.java:292)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1095)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:924)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1095)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:520)
    at org.apache.catalina.startup.Embedded.start(Embedded.java:920)
    at com.sun.enterprise.web.WebContainer.start(WebContainer.java:794)
    at com.sun.enterprise.web.PEWebContainer.startInstance(PEWebContainer.java:722)
    at com.sun.enterprise.web.PEWebContainerLifecycle.onStartup(PEWebContainerLifecycle.java:72)
    at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:326)
    at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:112)
    at com.sun.enterprise.server.PEMain.run(PEMain.java:326)
    at com.sun.enterprise.server.PEMain.main(PEMain.java:260)
    |#]

    DB:2.35:Jsf Fails (Noclassdeffounderror) After Upgrade To 1.2_03 In Glassfish 91

    The classloaders are setup in a special way for certain .jar files. I believe the JSF jar files fall into this category. I think that configuration is done in the install-root/lib/processLauncher.xml file -- you should find the jsf-api.jar and jsf-impl.jar mentioned there. If not, this may be the problem. I'm not the best person to answer classloading issues like these, though. I think Ryan will likely know the problem and the best way to fix it. Until he has a chance to respond, you might try adding the contents of the jsf-api.jar to javaee.jar. This is likely to fix the problem b/c they will be back in the location the server expects to see them.

    Good luck!

    Ken Paulsen
    https://jsftemplating.dev.java.net

  • RELEVANCY SCORE 2.35

    DB:2.35:Mojarra Doesn't Implement Setting Properties On Declared Converters? 3f


    Hi,

    I tried to register a custom converter in faces-config, by means of the following declaration:

    converter
    descriptionFormats a number with exactly two fractional digits./description
    converter-idnumberformat.two/converter-id
    converter-classjavax.faces.convert.NumberConverter/converter-class
    property
    property-namemaxFractionDigits/property-name
    property-classjava.lang.Integer/property-class
    default-value2/default-value
    /property
    property
    property-nameminFractionDigits/property-name
    property-classjava.lang.Integer/property-class
    default-value2/default-value
    /property
    /converterI've used this kind of code before a long time ago when using MyFaces, and this always Just Worked. However, with Mojarra it just doesn't work.

    I used the converter on my view like this:

    h:outputText value="#{bb.someVal}"
    f:converter converterId="numberformat.two"/
    /h:outputTextBy putting a breakpoint in javax.faces.convert.NumberConverter, I can check that the converter is being called, but the properties just aren't set on the instance.

    I hunted the Mojarra source code, but I also can't find any code that is supposed to set these properties.

    For instance, the ApplicationImp.createConverter method consists of this code:

    public Converter createConverter(String converterId) {
    if (converterId == null) {
    String message = MessageUtils.getExceptionMessageString
    (MessageUtils.NULL_PARAMETERS_ERROR_MESSAGE_ID, "convertedId");
    throw new NullPointerException(message);
    }
    Converter returnVal = (Converter) newThing(converterId, converterIdMap);
    if (returnVal == null) {
    Object[] params = {converterId};
    if (logger.isLoggable(Level.SEVERE)) {
    logger.log(Level.SEVERE,
    "jsf.cannot_instantiate_converter_error", converterId);
    }
    throw new FacesException(MessageUtils.getExceptionMessageString(
    MessageUtils.NAMED_OBJECT_NOT_FOUND_ERROR_MESSAGE_ID, params));
    }
    if (logger.isLoggable(Level.FINE)) {
    logger.fine(MessageFormat.format("created converter of type ''{0}''", converterId));
    }
    return returnVal;
    }So without all the error checking, the method basically boils down to just this:

    return (Converter) newThing(converterId, converterIdMap);The heart of newThing consists of this:

    try {
    result = clazz.newInstance();
    } catch (Throwable t) {
    throw new FacesException((MessageUtils.getExceptionMessageString(
    MessageUtils.CANT_INSTANTIATE_CLASS_ERROR_MESSAGE_ID,
    clazz.getName())), t);
    }
    return result;So there's no code that's supposed to set these properties in sight anywhere.

    Also the converter tag (com.sun.faces.taglib.jsf_core.ConverterTag) nor any of its base classes seems to contain such code.

    Either I'm doing something very wrong, or Mojarra has silently removed support for setting properties on custom converters, which would seem awkward.

    Any help would be greatly appreciated.

    DB:2.35:Mojarra Doesn't Implement Setting Properties On Declared Converters? 3f

    I would recommend logging an issue against the spec [1].

    Perhaps it can be dealt with for JSF 2.1.

    [1] https://javaserverfaces-spec-public.dev.java.net

  • RELEVANCY SCORE 2.35

    DB:2.35:Classloading Issue With Beanvalidator pd



    Hi,I've got a classloading issue with BeanValidator and the a resource bundle defined in the faces-config.xml.The problem is within the following code in the org.richfaces.validator.BeanValidator class.

    private ResourceBundle getCurrentResourceBundle(Locale locale) {
    if (null == FacesContext.getCurrentInstance()
    || null == FacesContext.getCurrentInstance().getApplication()) {
    throw new FacesException(FACES_CONTEXT_IS_NULL);
    }
    String appBundle = FacesContext.getCurrentInstance().getApplication()
    .getMessageBundle();
    if (null == appBundle || null == locale) {
    return null;
    }
    ResourceBundle bundle = ResourceBundle.getBundle(appBundle, locale);
    return bundle;
    }

  • RELEVANCY SCORE 2.35

    DB:2.35:Making A New Lifecycle Implementation da


    I need to execute code before and after all phases have executed. I know that I could just use a PhaseListener, but it doesn't look like PhaseListener.afterPhase() is guaranteed to execute if an exception is thrown, so I was just going to basically make a new LifeCycle implementation with all of the code included in a try-finally block like so:

    public class MyLifeCycle implements LifeCycle {
    //
    // other methods
    //

    // the only method i'm changing
    public void execute(FacesContext facesContext) throws FacesException {

    // do my preprocessing
    try {
    // do the regular LifeCycle stuff
    } finally {
    // do my postprocessing
    }
    }

    }I'm guessing that I'll also have to make my own LifeCycleFactory and then have that factory return my implementation. How do I set this up in the faces-config.xml?