You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by José Luis Cetina <ma...@gmail.com> on 2012/03/12 17:40:30 UTC

Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

Im triying to start a new project for first time with myfaces, i always
used Mojarra but know i want to change but im having problems at the start:

My only requierement is use Glassfish 3.1.2.1.

Hi i have this WARNING:

*Both MyFaces and the RI are on your classpath. Please make sure to use
only one of the two JSF-implementations.*

Why this happend if im using only jars from myfaces?? maybe for glassfish i
think, i have these in my *glassfish-web.xml* file, under WEB-INF folder:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish
Application Server 3.1 Servlet 3.0//EN" "
http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">
<glassfish-web-app error-url="">
    <!--Para establecer el charset a utf8 y remover el mensaje de: PWC4011:
Unable to set request character encoding to UTF-8 from context-->
    <parameter-encoding default-charset="UTF-8"/>
    *<class-loader delegate="false"/>*
*    <property name="useBundledJsf" value="true"/>*
    <!--<class-loader delegate="true"/>-->
    <jsp-config>
        <property name="keepgenerated" value="true">
            <description>Keep a copy of the generated servlet class' java
code.</description>
        </property>
    </jsp-config>
</glassfish-web-app>

----------------  ----------------  ----------------

This is my web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
    <context-param>
        <param-name>javax.faces.PROJECT_STAGE</param-name>
        <param-value>Development</param-value>
    </context-param>
    <context-param>
        <param-name>com.ocpsoft.pretty.DEVELOPMENT</param-name>
        <param-value>true</param-value>
    </context-param>
    <context-param>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>server</param-value>
    </context-param>
    <context-param>
        <param-name>
javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE</param-name>
        <param-value>true</param-value>
    </context-param>
     <context-param>
        <param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
        <param-value>true</param-value>
    </context-param>
    <context-param>

<param-name>com.sun.faces.enableMissingResourceLibraryDetection</param-name>
        <param-value>true</param-value>
    </context-param>
    <listener>
        *
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
*
    </listener>
    <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <session-config>
        <session-timeout>
            30
        </session-timeout>
    </session-config>
    <welcome-file-list>
        <welcome-file>faces/index.xhtml</welcome-file>
    </welcome-file-list>
</web-app>

----------------  ----------------  ----------------

Here are my libraries:

--MYFACES
myfaces-api-2.1.6.jar
myfaces-impl-2.1.6.jar
commons-beanutils-1.8.3.jar
commons-digester-1.8.jar
commons-logging-1.8.jar
commons-codec-1.1.1.jar
commons-collections-3.2.jar
--MYFACES CODI
myfaces-extcdi-alternative-implementation-module-1.0.4
myfaces-extcdi-bv1-module-api-1.0.4
myfaces-extcdi-bv1-module-impl-1.0.4
myfaces-extcdi-core-alternative-configuration-1.0.4
myfaces-extcdi-core-api-1.0.4
myfaces-extcdi-core-impl-1.0.4
myfaces-extcdi-jpa1-module-api-1.0.4
myfaces-extcdi-jpa1-module-impl-1.0.4
myfaces-extcdi-jsf20-module-api-1.0.4
myfaces-extcdi-jsf20-module-impl-1.0.4
myfaces-extcdi-jsf-alternative-configuration-1.0.4
myfaces-extcdi-message-module-api-1.0.4
myfaces-extcdi-message-module-impl-1.0.4
myfaces-extcdi-scripting-module-api-1.0.4
myfaces-extcdi-scripting-module-impl-1.0.4


I dont know if because the "WARNING" i have other problem:

javax.el.PropertyNotFoundException: Target Unreachable, identifier 'myBean'
resolved to null,

I have in my beans.xml file under WEB-INF this:

<?xml version="1.0" encoding="UTF-8"?>
<beans 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/beans_1_0.xsd">
</beans>

and in my bean:

@Named
@ViewAccessScoped
@Model
@View(Index.class)
public class MyBean implements Serializable{
   public void test(){
     //do nothing
   }

.....
}

and in my index.xhtml

<h:commandButton value="CLICK" action="#{myBean.test}"/>

if i click my button the i get this error:

javax.el.PropertyNotFoundException: Target Unreachable, identifier 'myBean'
resolved to null
viewId=/index.xhtml
location=C:\Users\user\Documents\NetBeansProjects\testweb\build\web\index.xhtml
phaseId=INVOKE_APPLICATION(5)
Caused by:
javax.el.PropertyNotFoundException - Target Unreachable, identifier
'myBean' resolved to null
at com.sun.el.parser.AstValue.getTarget(AstValue.java:153)


I dont know if this is for the first problem  (*Both MyFaces and the RI are
on your classpath. Please make sure to use only one of the two
JSF-implementations.*)
I read i need to have my beans.xml but i have it!!!

Thanks, and sorry for the english, is not my native language


Im using: Netbeans 7.1, *Glassfish 3.1.2.1,* JDK 7u3, MyFaces 2.1.6, CODI
1.0.4, Windows 7.

-- 
-------------------------------------------------------------------
*SCJA. José Luis Cetina*
-------------------------------------------------------------------

Re: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

Posted by Shasi Mitra <sh...@yahoo.com>.
From ur exception I can see that ur application is using Mojarra and not myfaces.  There should be a way to change the class load policy so that your application picks the myfaces classes instead of mojarra's which comes with the server. This setting should be done in your server, somewhere in class loading

Sent from my iPhone

On Mar 12, 2012, at 10:34 PM, José Luis Cetina <ma...@gmail.com> wrote:

> Ok, im a little confusing because it says in spanis:
> 
> *Grave*: Both MyFaces and the RI are on your classpath. Please make sure to
> use only one of the two JSF-implementations.
> 
> Grave it means: seriuos in english.
> 
> But i see the application deploy ok.
> 
> Is there a way to see if the web app is using MyFaces and not Mojarra?
> 
> 2012/3/12 Shasi Mitra <sh...@yahoo.com>
> 
>> We too get that error in our logs when we use myfaces with websphere. It
>> doesn't create a problem. I am sure about that. And the issue related to
>> your bean should be a configuration issue.
>> 
>> Sent from my iPhone
>> 
>> On Mar 12, 2012, at 10:28 PM, José Luis Cetina <ma...@gmail.com>
>> wrote:
>> 
>>> Well sorry, really this says: ERROR Both MyFaces and the RI are on your
>>> classpath. Please make sure to use only one of the two
>> JSF-implementations.
>>> 
>>> Grave: Both MyFaces and the RI are on your classpath. Please make sure to
>>> use only one of the two JSF-implementations.
>>> 
>>> 2012/3/12 Shasi Mitra <sh...@yahoo.com>
>>> 
>>>> It's just a warning rite? You can go ahead with your development. It
>>>> doesn't  affect anything.
>>>> 
>>>> Sent from my iPhone
>>>> 
>>>> On Mar 12, 2012, at 10:10 PM, José Luis Cetina <ma...@gmail.com>
>>>> wrote:
>>>> 
>>>>> Im triying to start a new project for first time with myfaces, i always
>>>>> used Mojarra but know i want to change but im having problems at the
>>>> start:
>>>>> 
>>>>> My only requierement is use Glassfish 3.1.2.1.
>>>>> 
>>>>> Hi i have this WARNING:
>>>>> 
>>>>> *Both MyFaces and the RI are on your classpath. Please make sure to use
>>>>> only one of the two JSF-implementations.*
>>>>> 
>>>>> Why this happend if im using only jars from myfaces?? maybe for
>>>> glassfish i
>>>>> think, i have these in my *glassfish-web.xml* file, under WEB-INF
>> folder:
>>>>> 
>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>> <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish
>>>>> Application Server 3.1 Servlet 3.0//EN" "
>>>>> http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">
>>>>> <glassfish-web-app error-url="">
>>>>>  <!--Para establecer el charset a utf8 y remover el mensaje de:
>>>> PWC4011:
>>>>> Unable to set request character encoding to UTF-8 from context-->
>>>>>  <parameter-encoding default-charset="UTF-8"/>
>>>>>  *<class-loader delegate="false"/>*
>>>>> *    <property name="useBundledJsf" value="true"/>*
>>>>>  <!--<class-loader delegate="true"/>-->
>>>>>  <jsp-config>
>>>>>      <property name="keepgenerated" value="true">
>>>>>          <description>Keep a copy of the generated servlet class' java
>>>>> code.</description>
>>>>>      </property>
>>>>>  </jsp-config>
>>>>> </glassfish-web-app>
>>>>> 
>>>>> ----------------  ----------------  ----------------
>>>>> 
>>>>> This is my web.xml
>>>>> 
>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
>>>> xmlns:xsi="
>>>>> http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
>>>>> http://java.sun.com/xml/ns/javaee
>>>>> http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
>>>>>  <context-param>
>>>>>      <param-name>javax.faces.PROJECT_STAGE</param-name>
>>>>>      <param-value>Development</param-value>
>>>>>  </context-param>
>>>>>  <context-param>
>>>>>      <param-name>com.ocpsoft.pretty.DEVELOPMENT</param-name>
>>>>>      <param-value>true</param-value>
>>>>>  </context-param>
>>>>>  <context-param>
>>>>>      <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
>>>>>      <param-value>server</param-value>
>>>>>  </context-param>
>>>>>  <context-param>
>>>>>      <param-name>
>>>>> 
>>>> 
>> javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE</param-name>
>>>>>      <param-value>true</param-value>
>>>>>  </context-param>
>>>>>   <context-param>
>>>>>      <param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
>>>>>      <param-value>true</param-value>
>>>>>  </context-param>
>>>>>  <context-param>
>>>>> 
>>>>> 
>>>> 
>> <param-name>com.sun.faces.enableMissingResourceLibraryDetection</param-name>
>>>>>      <param-value>true</param-value>
>>>>>  </context-param>
>>>>>  <listener>
>>>>>      *
>>>>> 
>>>> 
>> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
>>>>> *
>>>>>  </listener>
>>>>>  <servlet>
>>>>>      <servlet-name>Faces Servlet</servlet-name>
>>>>>      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
>>>>>      <load-on-startup>1</load-on-startup>
>>>>>  </servlet>
>>>>>  <servlet-mapping>
>>>>>      <servlet-name>Faces Servlet</servlet-name>
>>>>>      <url-pattern>/faces/*</url-pattern>
>>>>>  </servlet-mapping>
>>>>>  <session-config>
>>>>>      <session-timeout>
>>>>>          30
>>>>>      </session-timeout>
>>>>>  </session-config>
>>>>>  <welcome-file-list>
>>>>>      <welcome-file>faces/index.xhtml</welcome-file>
>>>>>  </welcome-file-list>
>>>>> </web-app>
>>>>> 
>>>>> ----------------  ----------------  ----------------
>>>>> 
>>>>> Here are my libraries:
>>>>> 
>>>>> --MYFACES
>>>>> myfaces-api-2.1.6.jar
>>>>> myfaces-impl-2.1.6.jar
>>>>> commons-beanutils-1.8.3.jar
>>>>> commons-digester-1.8.jar
>>>>> commons-logging-1.8.jar
>>>>> commons-codec-1.1.1.jar
>>>>> commons-collections-3.2.jar
>>>>> --MYFACES CODI
>>>>> myfaces-extcdi-alternative-implementation-module-1.0.4
>>>>> myfaces-extcdi-bv1-module-api-1.0.4
>>>>> myfaces-extcdi-bv1-module-impl-1.0.4
>>>>> myfaces-extcdi-core-alternative-configuration-1.0.4
>>>>> myfaces-extcdi-core-api-1.0.4
>>>>> myfaces-extcdi-core-impl-1.0.4
>>>>> myfaces-extcdi-jpa1-module-api-1.0.4
>>>>> myfaces-extcdi-jpa1-module-impl-1.0.4
>>>>> myfaces-extcdi-jsf20-module-api-1.0.4
>>>>> myfaces-extcdi-jsf20-module-impl-1.0.4
>>>>> myfaces-extcdi-jsf-alternative-configuration-1.0.4
>>>>> myfaces-extcdi-message-module-api-1.0.4
>>>>> myfaces-extcdi-message-module-impl-1.0.4
>>>>> myfaces-extcdi-scripting-module-api-1.0.4
>>>>> myfaces-extcdi-scripting-module-impl-1.0.4
>>>>> 
>>>>> 
>>>>> I dont know if because the "WARNING" i have other problem:
>>>>> 
>>>>> javax.el.PropertyNotFoundException: Target Unreachable, identifier
>>>> 'myBean'
>>>>> resolved to null,
>>>>> 
>>>>> I have in my beans.xml file under WEB-INF this:
>>>>> 
>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>> <beans 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/beans_1_0.xsd">
>>>>> </beans>
>>>>> 
>>>>> and in my bean:
>>>>> 
>>>>> @Named
>>>>> @ViewAccessScoped
>>>>> @Model
>>>>> @View(Index.class)
>>>>> public class MyBean implements Serializable{
>>>>> public void test(){
>>>>>   //do nothing
>>>>> }
>>>>> 
>>>>> .....
>>>>> }
>>>>> 
>>>>> and in my index.xhtml
>>>>> 
>>>>> <h:commandButton value="CLICK" action="#{myBean.test}"/>
>>>>> 
>>>>> if i click my button the i get this error:
>>>>> 
>>>>> javax.el.PropertyNotFoundException: Target Unreachable, identifier
>>>> 'myBean'
>>>>> resolved to null
>>>>> viewId=/index.xhtml
>>>>> 
>>>> 
>> location=C:\Users\user\Documents\NetBeansProjects\testweb\build\web\index.xhtml
>>>>> phaseId=INVOKE_APPLICATION(5)
>>>>> Caused by:
>>>>> javax.el.PropertyNotFoundException - Target Unreachable, identifier
>>>>> 'myBean' resolved to null
>>>>> at com.sun.el.parser.AstValue.getTarget(AstValue.java:153)
>>>>> 
>>>>> 
>>>>> I dont know if this is for the first problem  (*Both MyFaces and the RI
>>>> are
>>>>> on your classpath. Please make sure to use only one of the two
>>>>> JSF-implementations.*)
>>>>> I read i need to have my beans.xml but i have it!!!
>>>>> 
>>>>> Thanks, and sorry for the english, is not my native language
>>>>> 
>>>>> 
>>>>> Im using: Netbeans 7.1, *Glassfish 3.1.2.1,* JDK 7u3, MyFaces 2.1.6,
>> CODI
>>>>> 1.0.4, Windows 7.
>>>>> 
>>>>> --
>>>>> -------------------------------------------------------------------
>>>>> *SCJA. José Luis Cetina*
>>>>> -------------------------------------------------------------------
>>>> 
>>> 
>>> 
>>> 
>>> --
>>> -------------------------------------------------------------------
>>> *SCJA. José Luis Cetina*
>>> -------------------------------------------------------------------
>> 
>> 
> 
> 
> -- 
> -------------------------------------------------------------------
> *SCJA. José Luis Cetina*
> -------------------------------------------------------------------

Re: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

Posted by José Luis Cetina <ma...@gmail.com>.
Ok, im a little confusing because it says in spanis:

*Grave*: Both MyFaces and the RI are on your classpath. Please make sure to
use only one of the two JSF-implementations.

Grave it means: seriuos in english.

But i see the application deploy ok.

Is there a way to see if the web app is using MyFaces and not Mojarra?

2012/3/12 Shasi Mitra <sh...@yahoo.com>

> We too get that error in our logs when we use myfaces with websphere. It
> doesn't create a problem. I am sure about that. And the issue related to
> your bean should be a configuration issue.
>
> Sent from my iPhone
>
> On Mar 12, 2012, at 10:28 PM, José Luis Cetina <ma...@gmail.com>
> wrote:
>
> > Well sorry, really this says: ERROR Both MyFaces and the RI are on your
> > classpath. Please make sure to use only one of the two
> JSF-implementations.
> >
> > Grave: Both MyFaces and the RI are on your classpath. Please make sure to
> > use only one of the two JSF-implementations.
> >
> > 2012/3/12 Shasi Mitra <sh...@yahoo.com>
> >
> >> It's just a warning rite? You can go ahead with your development. It
> >> doesn't  affect anything.
> >>
> >> Sent from my iPhone
> >>
> >> On Mar 12, 2012, at 10:10 PM, José Luis Cetina <ma...@gmail.com>
> >> wrote:
> >>
> >>> Im triying to start a new project for first time with myfaces, i always
> >>> used Mojarra but know i want to change but im having problems at the
> >> start:
> >>>
> >>> My only requierement is use Glassfish 3.1.2.1.
> >>>
> >>> Hi i have this WARNING:
> >>>
> >>> *Both MyFaces and the RI are on your classpath. Please make sure to use
> >>> only one of the two JSF-implementations.*
> >>>
> >>> Why this happend if im using only jars from myfaces?? maybe for
> >> glassfish i
> >>> think, i have these in my *glassfish-web.xml* file, under WEB-INF
> folder:
> >>>
> >>> <?xml version="1.0" encoding="UTF-8"?>
> >>> <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish
> >>> Application Server 3.1 Servlet 3.0//EN" "
> >>> http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">
> >>> <glassfish-web-app error-url="">
> >>>   <!--Para establecer el charset a utf8 y remover el mensaje de:
> >> PWC4011:
> >>> Unable to set request character encoding to UTF-8 from context-->
> >>>   <parameter-encoding default-charset="UTF-8"/>
> >>>   *<class-loader delegate="false"/>*
> >>> *    <property name="useBundledJsf" value="true"/>*
> >>>   <!--<class-loader delegate="true"/>-->
> >>>   <jsp-config>
> >>>       <property name="keepgenerated" value="true">
> >>>           <description>Keep a copy of the generated servlet class' java
> >>> code.</description>
> >>>       </property>
> >>>   </jsp-config>
> >>> </glassfish-web-app>
> >>>
> >>> ----------------  ----------------  ----------------
> >>>
> >>> This is my web.xml
> >>>
> >>> <?xml version="1.0" encoding="UTF-8"?>
> >>> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
> >> xmlns:xsi="
> >>> http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
> >>> http://java.sun.com/xml/ns/javaee
> >>> http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
> >>>   <context-param>
> >>>       <param-name>javax.faces.PROJECT_STAGE</param-name>
> >>>       <param-value>Development</param-value>
> >>>   </context-param>
> >>>   <context-param>
> >>>       <param-name>com.ocpsoft.pretty.DEVELOPMENT</param-name>
> >>>       <param-value>true</param-value>
> >>>   </context-param>
> >>>   <context-param>
> >>>       <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
> >>>       <param-value>server</param-value>
> >>>   </context-param>
> >>>   <context-param>
> >>>       <param-name>
> >>>
> >>
> javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE</param-name>
> >>>       <param-value>true</param-value>
> >>>   </context-param>
> >>>    <context-param>
> >>>       <param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
> >>>       <param-value>true</param-value>
> >>>   </context-param>
> >>>   <context-param>
> >>>
> >>>
> >>
> <param-name>com.sun.faces.enableMissingResourceLibraryDetection</param-name>
> >>>       <param-value>true</param-value>
> >>>   </context-param>
> >>>   <listener>
> >>>       *
> >>>
> >>
> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
> >>> *
> >>>   </listener>
> >>>   <servlet>
> >>>       <servlet-name>Faces Servlet</servlet-name>
> >>>       <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> >>>       <load-on-startup>1</load-on-startup>
> >>>   </servlet>
> >>>   <servlet-mapping>
> >>>       <servlet-name>Faces Servlet</servlet-name>
> >>>       <url-pattern>/faces/*</url-pattern>
> >>>   </servlet-mapping>
> >>>   <session-config>
> >>>       <session-timeout>
> >>>           30
> >>>       </session-timeout>
> >>>   </session-config>
> >>>   <welcome-file-list>
> >>>       <welcome-file>faces/index.xhtml</welcome-file>
> >>>   </welcome-file-list>
> >>> </web-app>
> >>>
> >>> ----------------  ----------------  ----------------
> >>>
> >>> Here are my libraries:
> >>>
> >>> --MYFACES
> >>> myfaces-api-2.1.6.jar
> >>> myfaces-impl-2.1.6.jar
> >>> commons-beanutils-1.8.3.jar
> >>> commons-digester-1.8.jar
> >>> commons-logging-1.8.jar
> >>> commons-codec-1.1.1.jar
> >>> commons-collections-3.2.jar
> >>> --MYFACES CODI
> >>> myfaces-extcdi-alternative-implementation-module-1.0.4
> >>> myfaces-extcdi-bv1-module-api-1.0.4
> >>> myfaces-extcdi-bv1-module-impl-1.0.4
> >>> myfaces-extcdi-core-alternative-configuration-1.0.4
> >>> myfaces-extcdi-core-api-1.0.4
> >>> myfaces-extcdi-core-impl-1.0.4
> >>> myfaces-extcdi-jpa1-module-api-1.0.4
> >>> myfaces-extcdi-jpa1-module-impl-1.0.4
> >>> myfaces-extcdi-jsf20-module-api-1.0.4
> >>> myfaces-extcdi-jsf20-module-impl-1.0.4
> >>> myfaces-extcdi-jsf-alternative-configuration-1.0.4
> >>> myfaces-extcdi-message-module-api-1.0.4
> >>> myfaces-extcdi-message-module-impl-1.0.4
> >>> myfaces-extcdi-scripting-module-api-1.0.4
> >>> myfaces-extcdi-scripting-module-impl-1.0.4
> >>>
> >>>
> >>> I dont know if because the "WARNING" i have other problem:
> >>>
> >>> javax.el.PropertyNotFoundException: Target Unreachable, identifier
> >> 'myBean'
> >>> resolved to null,
> >>>
> >>> I have in my beans.xml file under WEB-INF this:
> >>>
> >>> <?xml version="1.0" encoding="UTF-8"?>
> >>> <beans 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/beans_1_0.xsd">
> >>> </beans>
> >>>
> >>> and in my bean:
> >>>
> >>> @Named
> >>> @ViewAccessScoped
> >>> @Model
> >>> @View(Index.class)
> >>> public class MyBean implements Serializable{
> >>>  public void test(){
> >>>    //do nothing
> >>>  }
> >>>
> >>> .....
> >>> }
> >>>
> >>> and in my index.xhtml
> >>>
> >>> <h:commandButton value="CLICK" action="#{myBean.test}"/>
> >>>
> >>> if i click my button the i get this error:
> >>>
> >>> javax.el.PropertyNotFoundException: Target Unreachable, identifier
> >> 'myBean'
> >>> resolved to null
> >>> viewId=/index.xhtml
> >>>
> >>
> location=C:\Users\user\Documents\NetBeansProjects\testweb\build\web\index.xhtml
> >>> phaseId=INVOKE_APPLICATION(5)
> >>> Caused by:
> >>> javax.el.PropertyNotFoundException - Target Unreachable, identifier
> >>> 'myBean' resolved to null
> >>> at com.sun.el.parser.AstValue.getTarget(AstValue.java:153)
> >>>
> >>>
> >>> I dont know if this is for the first problem  (*Both MyFaces and the RI
> >> are
> >>> on your classpath. Please make sure to use only one of the two
> >>> JSF-implementations.*)
> >>> I read i need to have my beans.xml but i have it!!!
> >>>
> >>> Thanks, and sorry for the english, is not my native language
> >>>
> >>>
> >>> Im using: Netbeans 7.1, *Glassfish 3.1.2.1,* JDK 7u3, MyFaces 2.1.6,
> CODI
> >>> 1.0.4, Windows 7.
> >>>
> >>> --
> >>> -------------------------------------------------------------------
> >>> *SCJA. José Luis Cetina*
> >>> -------------------------------------------------------------------
> >>
> >
> >
> >
> > --
> > -------------------------------------------------------------------
> > *SCJA. José Luis Cetina*
> > -------------------------------------------------------------------
>
>


-- 
-------------------------------------------------------------------
*SCJA. José Luis Cetina*
-------------------------------------------------------------------

Re: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

Posted by Shasi Mitra <sh...@yahoo.com>.
We too get that error in our logs when we use myfaces with websphere. It doesn't create a problem. I am sure about that. And the issue related to your bean should be a configuration issue. 

Sent from my iPhone

On Mar 12, 2012, at 10:28 PM, José Luis Cetina <ma...@gmail.com> wrote:

> Well sorry, really this says: ERROR Both MyFaces and the RI are on your
> classpath. Please make sure to use only one of the two JSF-implementations.
> 
> Grave: Both MyFaces and the RI are on your classpath. Please make sure to
> use only one of the two JSF-implementations.
> 
> 2012/3/12 Shasi Mitra <sh...@yahoo.com>
> 
>> It's just a warning rite? You can go ahead with your development. It
>> doesn't  affect anything.
>> 
>> Sent from my iPhone
>> 
>> On Mar 12, 2012, at 10:10 PM, José Luis Cetina <ma...@gmail.com>
>> wrote:
>> 
>>> Im triying to start a new project for first time with myfaces, i always
>>> used Mojarra but know i want to change but im having problems at the
>> start:
>>> 
>>> My only requierement is use Glassfish 3.1.2.1.
>>> 
>>> Hi i have this WARNING:
>>> 
>>> *Both MyFaces and the RI are on your classpath. Please make sure to use
>>> only one of the two JSF-implementations.*
>>> 
>>> Why this happend if im using only jars from myfaces?? maybe for
>> glassfish i
>>> think, i have these in my *glassfish-web.xml* file, under WEB-INF folder:
>>> 
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish
>>> Application Server 3.1 Servlet 3.0//EN" "
>>> http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">
>>> <glassfish-web-app error-url="">
>>>   <!--Para establecer el charset a utf8 y remover el mensaje de:
>> PWC4011:
>>> Unable to set request character encoding to UTF-8 from context-->
>>>   <parameter-encoding default-charset="UTF-8"/>
>>>   *<class-loader delegate="false"/>*
>>> *    <property name="useBundledJsf" value="true"/>*
>>>   <!--<class-loader delegate="true"/>-->
>>>   <jsp-config>
>>>       <property name="keepgenerated" value="true">
>>>           <description>Keep a copy of the generated servlet class' java
>>> code.</description>
>>>       </property>
>>>   </jsp-config>
>>> </glassfish-web-app>
>>> 
>>> ----------------  ----------------  ----------------
>>> 
>>> This is my web.xml
>>> 
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
>> xmlns:xsi="
>>> http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
>>> http://java.sun.com/xml/ns/javaee
>>> http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
>>>   <context-param>
>>>       <param-name>javax.faces.PROJECT_STAGE</param-name>
>>>       <param-value>Development</param-value>
>>>   </context-param>
>>>   <context-param>
>>>       <param-name>com.ocpsoft.pretty.DEVELOPMENT</param-name>
>>>       <param-value>true</param-value>
>>>   </context-param>
>>>   <context-param>
>>>       <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
>>>       <param-value>server</param-value>
>>>   </context-param>
>>>   <context-param>
>>>       <param-name>
>>> 
>> javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE</param-name>
>>>       <param-value>true</param-value>
>>>   </context-param>
>>>    <context-param>
>>>       <param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
>>>       <param-value>true</param-value>
>>>   </context-param>
>>>   <context-param>
>>> 
>>> 
>> <param-name>com.sun.faces.enableMissingResourceLibraryDetection</param-name>
>>>       <param-value>true</param-value>
>>>   </context-param>
>>>   <listener>
>>>       *
>>> 
>> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
>>> *
>>>   </listener>
>>>   <servlet>
>>>       <servlet-name>Faces Servlet</servlet-name>
>>>       <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
>>>       <load-on-startup>1</load-on-startup>
>>>   </servlet>
>>>   <servlet-mapping>
>>>       <servlet-name>Faces Servlet</servlet-name>
>>>       <url-pattern>/faces/*</url-pattern>
>>>   </servlet-mapping>
>>>   <session-config>
>>>       <session-timeout>
>>>           30
>>>       </session-timeout>
>>>   </session-config>
>>>   <welcome-file-list>
>>>       <welcome-file>faces/index.xhtml</welcome-file>
>>>   </welcome-file-list>
>>> </web-app>
>>> 
>>> ----------------  ----------------  ----------------
>>> 
>>> Here are my libraries:
>>> 
>>> --MYFACES
>>> myfaces-api-2.1.6.jar
>>> myfaces-impl-2.1.6.jar
>>> commons-beanutils-1.8.3.jar
>>> commons-digester-1.8.jar
>>> commons-logging-1.8.jar
>>> commons-codec-1.1.1.jar
>>> commons-collections-3.2.jar
>>> --MYFACES CODI
>>> myfaces-extcdi-alternative-implementation-module-1.0.4
>>> myfaces-extcdi-bv1-module-api-1.0.4
>>> myfaces-extcdi-bv1-module-impl-1.0.4
>>> myfaces-extcdi-core-alternative-configuration-1.0.4
>>> myfaces-extcdi-core-api-1.0.4
>>> myfaces-extcdi-core-impl-1.0.4
>>> myfaces-extcdi-jpa1-module-api-1.0.4
>>> myfaces-extcdi-jpa1-module-impl-1.0.4
>>> myfaces-extcdi-jsf20-module-api-1.0.4
>>> myfaces-extcdi-jsf20-module-impl-1.0.4
>>> myfaces-extcdi-jsf-alternative-configuration-1.0.4
>>> myfaces-extcdi-message-module-api-1.0.4
>>> myfaces-extcdi-message-module-impl-1.0.4
>>> myfaces-extcdi-scripting-module-api-1.0.4
>>> myfaces-extcdi-scripting-module-impl-1.0.4
>>> 
>>> 
>>> I dont know if because the "WARNING" i have other problem:
>>> 
>>> javax.el.PropertyNotFoundException: Target Unreachable, identifier
>> 'myBean'
>>> resolved to null,
>>> 
>>> I have in my beans.xml file under WEB-INF this:
>>> 
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <beans 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/beans_1_0.xsd">
>>> </beans>
>>> 
>>> and in my bean:
>>> 
>>> @Named
>>> @ViewAccessScoped
>>> @Model
>>> @View(Index.class)
>>> public class MyBean implements Serializable{
>>>  public void test(){
>>>    //do nothing
>>>  }
>>> 
>>> .....
>>> }
>>> 
>>> and in my index.xhtml
>>> 
>>> <h:commandButton value="CLICK" action="#{myBean.test}"/>
>>> 
>>> if i click my button the i get this error:
>>> 
>>> javax.el.PropertyNotFoundException: Target Unreachable, identifier
>> 'myBean'
>>> resolved to null
>>> viewId=/index.xhtml
>>> 
>> location=C:\Users\user\Documents\NetBeansProjects\testweb\build\web\index.xhtml
>>> phaseId=INVOKE_APPLICATION(5)
>>> Caused by:
>>> javax.el.PropertyNotFoundException - Target Unreachable, identifier
>>> 'myBean' resolved to null
>>> at com.sun.el.parser.AstValue.getTarget(AstValue.java:153)
>>> 
>>> 
>>> I dont know if this is for the first problem  (*Both MyFaces and the RI
>> are
>>> on your classpath. Please make sure to use only one of the two
>>> JSF-implementations.*)
>>> I read i need to have my beans.xml but i have it!!!
>>> 
>>> Thanks, and sorry for the english, is not my native language
>>> 
>>> 
>>> Im using: Netbeans 7.1, *Glassfish 3.1.2.1,* JDK 7u3, MyFaces 2.1.6, CODI
>>> 1.0.4, Windows 7.
>>> 
>>> --
>>> -------------------------------------------------------------------
>>> *SCJA. José Luis Cetina*
>>> -------------------------------------------------------------------
>> 
> 
> 
> 
> -- 
> -------------------------------------------------------------------
> *SCJA. José Luis Cetina*
> -------------------------------------------------------------------


Re: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

Posted by Gerhard Petracek <ge...@gmail.com>.
@ mike - short addition:

only the myfaces-core jars and its dependencies.

regards,
gerhard

http://www.irian.at

Your JSF/JavaEE powerhouse -
JavaEE Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces


2012/3/12 Mike Kienenberger <mk...@gmail.com>

> You are correct in that it is a serious error.   Having both jars in
> your path will result in identically-named, but differently-operating
> classes to be present in your application.
>
> You need to configure Glassfish to disable the RI, or you need to
> remove the myfaces jars.
>
> 2012/3/12 José Luis Cetina <ma...@gmail.com>:
> > Well sorry, really this says: ERROR Both MyFaces and the RI are on your
> > classpath. Please make sure to use only one of the two
> JSF-implementations.
> >
> > Grave: Both MyFaces and the RI are on your classpath. Please make sure to
> > use only one of the two JSF-implementations.
> >
> > 2012/3/12 Shasi Mitra <sh...@yahoo.com>
> >
> >> It's just a warning rite? You can go ahead with your development. It
> >> doesn't  affect anything.
> >>
> >> Sent from my iPhone
> >>
> >> On Mar 12, 2012, at 10:10 PM, José Luis Cetina <ma...@gmail.com>
> >> wrote:
> >>
> >> > Im triying to start a new project for first time with myfaces, i
> always
> >> > used Mojarra but know i want to change but im having problems at the
> >> start:
> >> >
> >> > My only requierement is use Glassfish 3.1.2.1.
> >> >
> >> > Hi i have this WARNING:
> >> >
> >> > *Both MyFaces and the RI are on your classpath. Please make sure to
> use
> >> > only one of the two JSF-implementations.*
> >> >
> >> > Why this happend if im using only jars from myfaces?? maybe for
> >> glassfish i
> >> > think, i have these in my *glassfish-web.xml* file, under WEB-INF
> folder:
> >> >
> >> > <?xml version="1.0" encoding="UTF-8"?>
> >> > <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish
> >> > Application Server 3.1 Servlet 3.0//EN" "
> >> > http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">
> >> > <glassfish-web-app error-url="">
> >> >    <!--Para establecer el charset a utf8 y remover el mensaje de:
> >> PWC4011:
> >> > Unable to set request character encoding to UTF-8 from context-->
> >> >    <parameter-encoding default-charset="UTF-8"/>
> >> >    *<class-loader delegate="false"/>*
> >> > *    <property name="useBundledJsf" value="true"/>*
> >> >    <!--<class-loader delegate="true"/>-->
> >> >    <jsp-config>
> >> >        <property name="keepgenerated" value="true">
> >> >            <description>Keep a copy of the generated servlet class'
> java
> >> > code.</description>
> >> >        </property>
> >> >    </jsp-config>
> >> > </glassfish-web-app>
> >> >
> >> > ----------------  ----------------  ----------------
> >> >
> >> > This is my web.xml
> >> >
> >> > <?xml version="1.0" encoding="UTF-8"?>
> >> > <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
> >> xmlns:xsi="
> >> > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
> >> > http://java.sun.com/xml/ns/javaee
> >> > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
> >> >    <context-param>
> >> >        <param-name>javax.faces.PROJECT_STAGE</param-name>
> >> >        <param-value>Development</param-value>
> >> >    </context-param>
> >> >    <context-param>
> >> >        <param-name>com.ocpsoft.pretty.DEVELOPMENT</param-name>
> >> >        <param-value>true</param-value>
> >> >    </context-param>
> >> >    <context-param>
> >> >        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
> >> >        <param-value>server</param-value>
> >> >    </context-param>
> >> >    <context-param>
> >> >        <param-name>
> >> >
> >>
> javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE</param-name>
> >> >        <param-value>true</param-value>
> >> >    </context-param>
> >> >     <context-param>
> >> >        <param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
> >> >        <param-value>true</param-value>
> >> >    </context-param>
> >> >    <context-param>
> >> >
> >> >
> >>
> <param-name>com.sun.faces.enableMissingResourceLibraryDetection</param-name>
> >> >        <param-value>true</param-value>
> >> >    </context-param>
> >> >    <listener>
> >> >        *
> >> >
> >>
> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
> >> > *
> >> >    </listener>
> >> >    <servlet>
> >> >        <servlet-name>Faces Servlet</servlet-name>
> >> >        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> >> >        <load-on-startup>1</load-on-startup>
> >> >    </servlet>
> >> >    <servlet-mapping>
> >> >        <servlet-name>Faces Servlet</servlet-name>
> >> >        <url-pattern>/faces/*</url-pattern>
> >> >    </servlet-mapping>
> >> >    <session-config>
> >> >        <session-timeout>
> >> >            30
> >> >        </session-timeout>
> >> >    </session-config>
> >> >    <welcome-file-list>
> >> >        <welcome-file>faces/index.xhtml</welcome-file>
> >> >    </welcome-file-list>
> >> > </web-app>
> >> >
> >> > ----------------  ----------------  ----------------
> >> >
> >> > Here are my libraries:
> >> >
> >> > --MYFACES
> >> > myfaces-api-2.1.6.jar
> >> > myfaces-impl-2.1.6.jar
> >> > commons-beanutils-1.8.3.jar
> >> > commons-digester-1.8.jar
> >> > commons-logging-1.8.jar
> >> > commons-codec-1.1.1.jar
> >> > commons-collections-3.2.jar
> >> > --MYFACES CODI
> >> > myfaces-extcdi-alternative-implementation-module-1.0.4
> >> > myfaces-extcdi-bv1-module-api-1.0.4
> >> > myfaces-extcdi-bv1-module-impl-1.0.4
> >> > myfaces-extcdi-core-alternative-configuration-1.0.4
> >> > myfaces-extcdi-core-api-1.0.4
> >> > myfaces-extcdi-core-impl-1.0.4
> >> > myfaces-extcdi-jpa1-module-api-1.0.4
> >> > myfaces-extcdi-jpa1-module-impl-1.0.4
> >> > myfaces-extcdi-jsf20-module-api-1.0.4
> >> > myfaces-extcdi-jsf20-module-impl-1.0.4
> >> > myfaces-extcdi-jsf-alternative-configuration-1.0.4
> >> > myfaces-extcdi-message-module-api-1.0.4
> >> > myfaces-extcdi-message-module-impl-1.0.4
> >> > myfaces-extcdi-scripting-module-api-1.0.4
> >> > myfaces-extcdi-scripting-module-impl-1.0.4
> >> >
> >> >
> >> > I dont know if because the "WARNING" i have other problem:
> >> >
> >> > javax.el.PropertyNotFoundException: Target Unreachable, identifier
> >> 'myBean'
> >> > resolved to null,
> >> >
> >> > I have in my beans.xml file under WEB-INF this:
> >> >
> >> > <?xml version="1.0" encoding="UTF-8"?>
> >> > <beans 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/beans_1_0.xsd">
> >> > </beans>
> >> >
> >> > and in my bean:
> >> >
> >> > @Named
> >> > @ViewAccessScoped
> >> > @Model
> >> > @View(Index.class)
> >> > public class MyBean implements Serializable{
> >> >   public void test(){
> >> >     //do nothing
> >> >   }
> >> >
> >> > .....
> >> > }
> >> >
> >> > and in my index.xhtml
> >> >
> >> > <h:commandButton value="CLICK" action="#{myBean.test}"/>
> >> >
> >> > if i click my button the i get this error:
> >> >
> >> > javax.el.PropertyNotFoundException: Target Unreachable, identifier
> >> 'myBean'
> >> > resolved to null
> >> > viewId=/index.xhtml
> >> >
> >>
> location=C:\Users\user\Documents\NetBeansProjects\testweb\build\web\index.xhtml
> >> > phaseId=INVOKE_APPLICATION(5)
> >> > Caused by:
> >> > javax.el.PropertyNotFoundException - Target Unreachable, identifier
> >> > 'myBean' resolved to null
> >> > at com.sun.el.parser.AstValue.getTarget(AstValue.java:153)
> >> >
> >> >
> >> > I dont know if this is for the first problem  (*Both MyFaces and the
> RI
> >> are
> >> > on your classpath. Please make sure to use only one of the two
> >> > JSF-implementations.*)
> >> > I read i need to have my beans.xml but i have it!!!
> >> >
> >> > Thanks, and sorry for the english, is not my native language
> >> >
> >> >
> >> > Im using: Netbeans 7.1, *Glassfish 3.1.2.1,* JDK 7u3, MyFaces 2.1.6,
> CODI
> >> > 1.0.4, Windows 7.
> >> >
> >> > --
> >> > -------------------------------------------------------------------
> >> > *SCJA. José Luis Cetina*
> >> > -------------------------------------------------------------------
> >>
> >
> >
> >
> > --
> > -------------------------------------------------------------------
> > *SCJA. José Luis Cetina*
> > -------------------------------------------------------------------
>

Re: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

Posted by José Luis Cetina <ma...@gmail.com>.
*This:*

Información:
org.apache.myfaces.extensions.cdi.core.impl.provider.DefaultServiceProvider
installed successfully.
Información:
org.apache.myfaces.extensions.cdi.core.impl.provider.DefaultServiceProviderContext
installed successfully.
Información: Computed the following CODI ProjectStage: Production
Información: com.grupokx.webbeans.Index will be used as page-definition.
Información: com.grupokx.webbeans.Index2 will be used as page-definition.
Información: com.grupokx.webbeans.Index2Mbean will be used as page-bean.
Información: com.grupokx.webbeans.MyBean will be used as page-bean.
Información: com.grupokx.webbeans.Pages$Index2 will be used as
page-definition.
Información: com.grupokx.webbeans.Pages will be used as page-definition.
Información: Reading standard config META-INF/standard-faces-config.xml
Información: Reading config :
jar:file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-extcdi-jsf20-module-impl-1.0.4.jar!/META-INF/faces-config.xml
Información: Artifact 'myfaces-api' was found in version '2.1.6' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-api-2.1.6.jar'
Información: Artifact 'myfaces-extcdi-alternative-implementation-module'
was found in version '1.0.4' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-extcdi-alternative-implementation-module-1.0.4.jar'
Información: Artifact 'myfaces-extcdi-bv1-module-api' was found in version
'1.0.4' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-extcdi-bv1-module-api-1.0.4.jar'
Información: Artifact 'myfaces-extcdi-bv1-module-impl' was found in version
'1.0.4' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-extcdi-bv1-module-impl-1.0.4.jar'
Información: Artifact 'myfaces-extcdi-core-alternative-configuration' was
found in version '1.0.4' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-extcdi-core-alternative-configuration-1.0.4.jar'
Información: Artifact 'myfaces-extcdi-core-api' was found in version
'1.0.4' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-extcdi-core-api-1.0.4.jar'
Información: Artifact 'myfaces-extcdi-core-impl' was found in version
'1.0.4' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-extcdi-core-impl-1.0.4.jar'
Información: Artifact 'myfaces-extcdi-jpa1-module-api' was found in version
'1.0.4' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-extcdi-jpa1-module-api-1.0.4.jar'
Información: Artifact 'myfaces-extcdi-jpa1-module-impl' was found in
version '1.0.4' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-extcdi-jpa1-module-impl-1.0.4.jar'
Información: Artifact 'myfaces-extcdi-jsf-alternative-configuration' was
found in version '1.0.4' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-extcdi-jsf-alternative-configuration-1.0.4.jar'
Información: Artifact 'myfaces-extcdi-jsf20-module-api' was found in
version '1.0.4' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-extcdi-jsf20-module-api-1.0.4.jar'
Información: Artifact 'myfaces-extcdi-jsf20-module-impl' was found in
version '1.0.4' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-extcdi-jsf20-module-impl-1.0.4.jar'
Información: Artifact 'myfaces-extcdi-message-module-api' was found in
version '1.0.4' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-extcdi-message-module-api-1.0.4.jar'
Información: Artifact 'myfaces-extcdi-message-module-impl' was found in
version '1.0.4' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-extcdi-message-module-impl-1.0.4.jar'
Información: Artifact 'myfaces-extcdi-scripting-module-api' was found in
version '1.0.4' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-extcdi-scripting-module-api-1.0.4.jar'
Información: Artifact 'myfaces-extcdi-scripting-module-impl' was found in
version '1.0.4' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-extcdi-scripting-module-impl-1.0.4.jar'
Información: Artifact 'myfaces-impl' was found in version '2.1.6' from path
'file:/C:/Users/maxtorzito/Documents/NetBeansProjects/testweb/build/web/WEB-INF/lib/myfaces-impl-2.1.6.jar'
Información: [Started] MyFaces CODI (Extensions CDI) alternative config
org.apache.myfaces.extensions.cdi.jsf.alternative.config.AlternativeJsfModuleConfig
is active (v1.0.4)

Información: MyFaces Bean Validation support enabled
Información: [Started] MyFaces CODI (Extensions CDI) alternative config
org.apache.myfaces.extensions.cdi.core.alternative.config.AlternativeCodiCoreConfig
is active (v1.0.4)

Información: Serialization provider : class
org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
Información: Using LifecycleProvider
org.apache.myfaces.config.annotation.AllAnnotationLifecycleProvider
Información: ServletContext initialized.
Información: Tomahawk jar not available. Autoscrolling, DetectJavascript,
AddResourceClass and CheckExtensionsFilter are disabled now.
Grave: Both MyFaces and the RI are on your classpath. Please make sure to
use only one of the two JSF-implementations.
Información: Scanning for context init parameters not defined. It is not
necessary to define them all into your web.xml, they are just provided here
for informative purposes. To disable this messages set
org.apache.myfaces.LOG_WEB_CONTEXT_PARAMS config param to 'false'
Información: No context init parameter 'javax.faces.RESOURCE_EXCLUDES'
found, using default value '.class .jsp .jspx .properties .xhtml .groovy'.
Información: No context init parameter
'javax.faces.FULL_STATE_SAVING_VIEW_IDS' found.
Información: No context init parameter 'javax.faces.PARTIAL_STATE_SAVING'
found, using default value 'true (false with 1.2 webapps)'.
Información: No context init parameter 'javax.faces.DEFAULT_SUFFIX' found,
using default value '.xhtml .view.xml .jsp'.
Información: No context init parameter 'javax.faces.FACELETS_SUFFIX' found,
using default value '.xhtml'.
Información: No context init parameter 'javax.faces.FACELETS_VIEW_MAPPINGS'
found.
Información: No context init parameter
'javax.faces.HONOR_CURRENT_COMPONENT_ATTRIBUTES' found, using default value
'false'.
Información: No context init parameter 'javax.faces.VALIDATE_EMPTY_FIELDS'
found, using default value 'auto'.
Información: No context init parameter
'javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL' found, using
default value 'false'.
Información: No context init parameter
'org.apache.myfaces.ENUM_CONVERTER_ALLOW_STRING_PASSTROUGH' found, using
default value 'false'.
Información: No context init parameter
'javax.faces.validator.DISABLE_DEFAULT_BEAN_VALIDATOR' found, using default
value 'true'.
Información: No context init parameter 'javax.faces.CONFIG_FILES' found.
Información: No context init parameter 'javax.faces.LIFECYCLE_ID' found.
Información: No context init parameter 'org.apache.myfaces.ERROR_HANDLER'
found.
Información: No context init parameter
'org.apache.myfaces.CHECKED_VIEWID_CACHE_SIZE' found, using default value
'500'.
Información: No context init parameter
'org.apache.myfaces.CHECKED_VIEWID_CACHE_ENABLED' found, using default
value 'true'.
Información: No context init parameter 'org.apache.myfaces.PRETTY_HTML'
found, using default value 'true'.
Información: No context init parameter
'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value 'true'.
Información: No context init parameter
'org.apache.myfaces.CONFIG_REFRESH_PERIOD' found, using default value '2'.
Información: No context init parameter
'org.apache.myfaces.VIEWSTATE_JAVASCRIPT' found, using default value
'false'.
Información: No context init parameter
'org.apache.myfaces.RENDER_VIEWSTATE_ID' found, using default value 'true'.
Información: No context init parameter
'org.apache.myfaces.STRICT_XHTML_LINKS' found, using default value 'true'.
Información: No context init parameter
'org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON' found, using
default value 'false'.
Información: No context init parameter
'org.apache.myfaces.RENDER_HIDDEN_FIELDS_FOR_LINK_PARAMS' found, using
default value 'false'.
Información: No context init parameter
'org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE' found, using default value
'false'.
Información: No context init parameter
'org.apache.myfaces.DELEGATE_FACES_SERVLET' found.
Información: No context init parameter
'org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS' found, using default
value 'auto'.
Información: No context init parameter
'org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS_PRESERVE_STATE' found,
using default value 'false'.
Información: No context init parameter 'org.apache.myfaces.VALIDATE_XML'
found.
Información: No context init parameter
'org.apache.myfaces.WRAP_SCRIPT_CONTENT_WITH_XML_COMMENT_TAG' found, using
default value 'true'.
Información: No context init parameter
'org.apache.myfaces.RENDER_FORM_SUBMIT_SCRIPT_INLINE' found, using default
value 'false'.
Información: No context init parameter
'org.apache.myfaces.DEBUG_PHASE_LISTENER' found.
Información: No context init parameter
'org.apache.myfaces.STRICT_JSF_2_REFRESH_TARGET_AJAX' found, using default
value 'false'.
Información: No context init parameter
'org.apache.myfaces.STRICT_JSF_2_CC_EL_RESOLVER' found, using default value
'false'.
Información: No context init parameter
'org.apache.myfaces.DEFAULT_RESPONSE_WRITER_CONTENT_TYPE_MODE' found, using
default value 'text/html'.
Información: No context init parameter
'org.apache.myfaces.FLASH_SCOPE_DISABLED' found, using default value
'false'.
Información: No context init parameter
'org.apache.myfaces.RESOURCE_MAX_TIME_EXPIRES' found, using default value
'604800000'.
Información: No context init parameter
'org.apache.myfaces.RESOURCE_HANDLER_CACHE_SIZE' found, using default value
'500'.
Información: No context init parameter
'org.apache.myfaces.RESOURCE_HANDLER_CACHE_ENABLED' found, using default
value 'true'.
Información: No context init parameter 'org.apache.myfaces.USE_ENCRYPTION'
found, using default value 'true'.
Información: No context init parameter 'org.apache.myfaces.SECRET' found.
Información: No context init parameter 'org.apache.myfaces.ALGORITHM'
found, using default value 'DES'.
Información: No context init parameter 'org.apache.myfaces.SECRET.CACHE'
found.
Información: No context init parameter 'org.apache.myfaces.ALGORITHM.IV'
found.
Información: No context init parameter
'org.apache.myfaces.ALGORITHM.PARAMETERS' found, using default value
'ECB/PKCS5Padding'.
Información: No context init parameter 'org.apache.myfaces.SERIAL_FACTORY'
found.
Información: No context init parameter
'org.apache.myfaces.COMPRESS_STATE_IN_CLIENT' found, using default value
'false'.
Información: No context init parameter 'org.apache.myfaces.MAC_ALGORITHM'
found, using default value 'HmacSHA1'.
Información: No context init parameter 'org.apache.myfaces.MAC_SECRET'
found.
Información: No context init parameter
'org.apache.myfaces.MAC_SECRET.CACHE' found.
Información: No context init parameter
'org.apache.myfaces.LAZY_LOAD_CONFIG_OBJECTS' found, using default value
'true'.
Información: No context init parameter
'org.apache.myfaces.STRICT_JSF_2_ALLOW_SLASH_LIBRARY_NAME' found, using
default value 'false'.
Información: No context init parameter 'org.apache.myfaces.VALIDATE' found,
using default value 'false'.
Información: No context init parameter
'org.apache.myfaces.annotation.SCAN_PACKAGES' found.
Información: No context init parameter
'org.apache.myfaces.config.annotation.LifecycleProvider' found.
Información: No context init parameter
'org.apache.myfaces.EL_RESOLVER_COMPARATOR' found.
Información: No context init parameter
'org.apache.myfaces.EL_RESOLVER_PREDICATE' found.
Información: No context init parameter
'org.apache.myfaces.CHECKED_VIEWID_CACHE_SIZE' found, using default value
'500'.
Información: No context init parameter
'org.apache.myfaces.CHECKED_VIEWID_CACHE_ENABLED' found, using default
value 'true'.
Información: No context init parameter
'org.apache.myfaces.ERROR_TEMPLATE_RESOURCE' found, using default value
'META-INF/rsc/myfaces-dev-error.xml'.
Información: No context init parameter
'org.apache.myfaces.DEBUG_TEMPLATE_RESOURCE' found, using default value
'META-INF/rsc/myfaces-dev-debug.xml'.
Información: No context init parameter 'org.apache.myfaces.ERROR_HANDLING'
found, using default value 'false, on Development Project stage: true'.
Información: No context init parameter
'org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION' found, using default value
'20'.
Información: No context init parameter
'org.apache.myfaces.NUMBER_OF_SEQUENTIAL_VIEWS_IN_SESSION' found.
Información: No context init parameter
'org.apache.myfaces.SERIALIZE_STATE_IN_SESSION' found, using default value
'true'.
Información: No context init parameter
'org.apache.myfaces.COMPRESS_STATE_IN_SESSION' found, using default value
'true'.
Información: No context init parameter
'org.apache.myfaces.CACHE_OLD_VIEWS_IN_SESSION_MODE' found, using default
value 'off'.
Información: No context init parameter
'org.apache.myfaces.USE_FLASH_SCOPE_PURGE_VIEWS_IN_SESSION' found, using
default value 'false'.
Información: No context init parameter
'org.apache.myfaces.HANDLE_STATE_CACHING_MECHANICS' found, using default
value 'true'.
Información: No context init parameter
'org.apache.myfaces.USE_MULTIPLE_JS_FILES_FOR_JSF_UNCOMPRESSED_JS' found,
using default value 'false'.
Información: No context init parameter 'org.apache.myfaces.JSF_JS_MODE'
found, using default value 'normal'.
Información: No context init parameter
'org.apache.myfaces.SERVICE_PROVIDER_FINDER' found.
Información: No context init parameter
'javax.faces.DISABLE_FACELET_JSF_VIEWHANDLER' found, using default value
'false'.
Información: No context init parameter
'org.apache.myfaces.SAVE_STATE_WITH_VISIT_TREE_ON_PSS' found, using default
value 'true'.
Información: No context init parameter
'org.apache.myfaces.CHECK_ID_PRODUCTION_MODE' found, using default value
'auto'.
Información: No context init parameter 'javax.faces.FACELETS_BUFFER_SIZE'
found.
Información: No context init parameter 'facelets.BUFFER_SIZE' found.
Información: No context init parameter 'javax.faces.FACELETS_DECORATORS'
found.
Información: No context init parameter 'facelets.DECORATORS' found.
Información: No context init parameter 'javax.faces.FACELETS_LIBRARIES'
found.
Información: No context init parameter 'facelets.LIBRARIES' found.
Información: No context init parameter
'javax.faces.FACELETS_REFRESH_PERIOD' found, using default value '-1'.
Información: No context init parameter 'facelets.REFRESH_PERIOD' found,
using default value '-1'.
Información: No context init parameter
'javax.faces.FACELETS_RESOURCE_RESOLVER' found.
Información: No context init parameter 'facelets.RESOURCE_RESOLVER' found.
Información: No context init parameter 'facelets.SKIP_COMMENTS' found.
Información: No context init parameter
'org.apache.myfaces.MARK_INITIAL_STATE_WHEN_APPLY_BUILD_VIEW' found, using
default value 'false'.
Información: No context init parameter
'org.apache.myfaces.WRAP_TAG_EXCEPTIONS_AS_CONTEXT_AWARE' found, using
default value 'true'.
Información: No context init parameter
'org.apache.myfaces.CACHE_EL_EXPRESSIONS' found, using default value
'noCache'.
Información: No context init parameter
'org.apache.myfaces.EXPRESSION_FACTORY' found.
Información: No context init parameter
'org.apache.myfaces.INITIALIZE_ALWAYS_STANDALONE' found, using default
value 'false'.
Información: No context init parameter
'org.apache.myfaces.LOG_WEB_CONTEXT_PARAMS' found, using default value
'auto'.
Información: No context init parameter
'org.apache.myfaces.FACES_INITIALIZER' found.
Información: No context init parameter
'org.apache.myfaces.FACES_INIT_PLUGINS' found.
Advertencia:
*******************************************************************
*** WARNING: Apache MyFaces-2 is running in DEVELOPMENT mode.   ***
***                                         ^^^^^^^^^^^         ***
*** Do NOT deploy to your live server(s) without changing this. ***
*** See Application#getProjectStage() for more information.     ***
*******************************************************************

Información: MyFaces already initialized
Información: WEB0671: Loading application [testweb] at [/testweb]
Información: testweb se ha desplegado correctamente en 6,143 milisegundos.
Información: [Started] MyFaces CODI (Extensions CDI) alternative config
org.apache.myfaces.extensions.cdi.core.alternative.scope.conversation.config.AlternativeWindowContextConfig
is active (v1.0.4)

Información: [Started] MyFaces CODI (Extensions CDI) alternative config
org.apache.myfaces.extensions.cdi.core.alternative.scope.conversation.config.AlternativeConversationConfig
is active (v1.0.4)

Información: [Started] MyFaces CODI JSF-Module v1.0.4 for JSF 2.0
Used JSF implementation: MyFaces Core v2.1.6
config implementation:
org.apache.myfaces.extensions.cdi.jsf.alternative.config.AlternativeJsfModuleConfig$Proxy$_$$_WeldClientProxy
config implementation:
org.apache.myfaces.extensions.cdi.jsf.alternative.config.AlternativeJsfModuleConfig
config implementation:
org.apache.myfaces.extensions.cdi.jsf.api.config.JsfModuleConfig
   method: isInitialRedirectEnabled
   value: true
   method: isAlwaysKeepMessages
   value: true
   method: isUseViewConfigsAsNavigationCasesEnabled
   value: true
   method: isInvalidValueAwareMessageInterpolatorEnabled
   value: true
config implementation:
org.apache.myfaces.extensions.cdi.core.alternative.scope.conversation.config.AlternativeWindowContextConfig$Proxy$_$$_WeldClientProxy
config implementation:
org.apache.myfaces.extensions.cdi.core.alternative.scope.conversation.config.AlternativeWindowContextConfig
config implementation:
org.apache.myfaces.extensions.cdi.core.api.scope.conversation.config.WindowContextConfig
   method: isUrlParameterSupported
   value: true
   method: isUnknownWindowIdsAllowed
   value: false
   method: getMaxWindowContextCount
   value: 64
   method: isAddWindowIdToActionUrlsEnabled
   value: false
   method: getWindowContextTimeoutInMinutes
   value: 60
   method: isCloseEmptyWindowContextsEnabled
   value: false
   method: isEagerWindowContextDetectionEnabled
   value: true
   method: isCreateWindowContextEventEnabled
   value: false
   method: isCloseWindowContextEventEnabled
   value: false
config implementation:
org.apache.myfaces.extensions.cdi.core.alternative.scope.conversation.config.AlternativeConversationConfig$Proxy$_$$_WeldClientProxy
config implementation:
org.apache.myfaces.extensions.cdi.core.alternative.scope.conversation.config.AlternativeConversationConfig
config implementation:
org.apache.myfaces.extensions.cdi.core.api.scope.conversation.config.ConversationConfig
   method: isScopeBeanEventEnabled
   value: false
   method: isAccessBeanEventEnabled
   value: false
   method: isUnscopeBeanEventEnabled
   value: false
   method: isConversationRequiredEnabled
   value: true
   method: isRestartConversationEventEnabled
   value: false
   method: isCloseConversationEventEnabled
   value: false
   method: isStartConversationEventEnabled
   value: false
   method: getConversationTimeoutInMinutes
   value: 30
MessageContextConfig class:
org.apache.myfaces.extensions.cdi.message.impl.DefaultMessageContextConfig
   MessageInterpolator class: class
org.apache.myfaces.extensions.cdi.jsf.impl.message.FacesMessageInterpolator
   MessageResolver class: class
org.apache.myfaces.extensions.cdi.jsf.impl.message.JsfAwareApplicationMessagesMessageResolver
   MessageHandler class: class
org.apache.myfaces.extensions.cdi.jsf.impl.message.JsfAwareMessageHandler
   LocaleResolver class: class
org.apache.myfaces.extensions.cdi.jsf.impl.message.JsfAwareLocaleResolver
   FormatterFactory class: class
org.apache.myfaces.extensions.cdi.message.impl.DefaultFormatterFactory

Información: [Started] MyFaces CODI JPA-Module v1.0.4

Información: [Started] MyFaces CODI (Extensions CDI) Core v1.0.4
Used CDI implementation: Weld v20111122-2001
project-stage: Production
project-stage class:
org.apache.myfaces.extensions.cdi.core.api.projectstage.ProjectStage$Production
application-parameters:
   name: com.ocpsoft.pretty.DEVELOPMENT
   value: true
   name: com.sun.faces.forceLoadConfiguration
   value: true
   name: javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE
   value: true
   name: com.sun.faces.validateXml
   value: true
   name: com.sun.faces.enableMissingResourceLibraryDetection
   value: true
   name: javax.faces.PROJECT_STAGE
   value: Development
   name: javax.faces.FACELETS_SKIP_COMMENTS
   value: true
   name: javax.faces.STATE_SAVING_METHOD
   value: server
config implementation:
org.apache.myfaces.extensions.cdi.core.alternative.config.AlternativeCodiCoreConfig$Proxy$_$$_WeldClientProxy
config implementation:
org.apache.myfaces.extensions.cdi.core.alternative.config.AlternativeCodiCoreConfig
config implementation:
org.apache.myfaces.extensions.cdi.core.api.config.CodiCoreConfig
   method: isAdvancedQualifierRequiredForDependencyInjection
   value: true
   method: isConfigurationLoggingEnabled
   value: true
   method: isInvalidBeanCreationEventEnabled
   value: false

Advertencia: The value of the JSF 2 project stage (Development) is
different from the CODI project stage (Production)
Información: [Started] MyFaces CODI Scripting-Module v1.0.4

Información: [Started] MyFaces CODI Bean-Validation-Module v1.0.4














2012/3/12 Rafael Pestano <rm...@yahoo.com.br>

> i see, if you are using CODI it should be printing(at startup time) all
> information about your enviroment like JSF, CDI implementations,  is that
> the case? what it is printing?
>
>
>
> Att,
> Rafael M. Pestano
> Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
> Graduando em Ciência da Computação UFRGS
> @realpestano
> http://code.google.com/p/jsf-conventions-framework/
>
>
>
> ----- Mensagem original -----
> De: José Luis Cetina <ma...@gmail.com>
> Para: MyFaces Discussion <us...@myfaces.apache.org>; Rafael Pestano <
> rmpestano@yahoo.com.br>
> Cc:
> Enviadas: Segunda-feira, 12 de Março de 2012 14:24
> Assunto: Re: Both MyFaces and the RI are on your classpath. Please make
> sure to use only one of the two JSF-implementations.
>
> I cant do that , in the server exist other app that use mojarra   :(
>
> and what happend with this:
>
> <class-loader delegate="false"/>
> <property name="useBundledJsf" value="true"/>
>
> 2012/3/12 Rafael Pestano <rm...@yahoo.com.br>
>
> > You can try to remove jsf-api.jar and jsf-impl.jar from glassfish, if
> your
> > app still running you are using myfaces ;).
> >
> > RI jars are under GLASSFISH_HOME\glassfish\modules, also make sure to
> > delete cache folder in
> GLASSFISH_HOME\glassfish\domains\domain1\osgi-cache
> >
> > Att,
> >
> > Rafael M. Pestano
> >
> > Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
> > Graduando em Ciência da Computação UFRGS
> > @realpestano
> > http://code.google.com/p/jsf-conventions-framework/
> >
> >
> >
> > ________________________________
> > De: Mike Kienenberger <mk...@gmail.com>
> > Para: MyFaces Discussion <us...@myfaces.apache.org>
> > Enviadas: Segunda-feira, 12 de Março de 2012 14:17
> > Assunto: Re: Both MyFaces and the RI are on your classpath. Please make
> > sure to use only one of the two JSF-implementations.
> >
> > You are correct in that it is a serious error.   Having both jars in
> > your path will result in identically-named, but differently-operating
> > classes to be present in your application.
> >
> > You need to configure Glassfish to disable the RI, or you need to
> > remove the myfaces jars.
> >
> > 2012/3/12 José Luis Cetina <ma...@gmail.com>:
> > > Well sorry, really this says: ERROR Both MyFaces and the RI are on your
> > > classpath. Please make sure to use only one of the two
> > JSF-implementations.
> > >
> > > Grave: Both MyFaces and the RI are on your classpath. Please make sure
> to
> > > use only one of the two JSF-implementations.
> > >
> > > 2012/3/12 Shasi Mitra <sh...@yahoo.com>
> > >
> > >> It's just a warning rite? You can go ahead with your development. It
> > >> doesn't  affect anything.
> > >>
> > >> Sent from my iPhone
> > >>
> > >> On Mar 12, 2012, at 10:10 PM, José Luis Cetina <ma...@gmail.com>
> > >> wrote:
> > >>
> > >> > Im triying to start a new project for first time with myfaces, i
> > always
> > >> > used Mojarra but know i want to change but im having problems at the
> > >> start:
> > >> >
> > >> > My only requierement is use Glassfish 3.1.2.1.
> > >> >
> > >> > Hi i have this WARNING:
> > >> >
> > >> > *Both MyFaces and the RI are on your classpath. Please make sure to
> > use
> > >> > only one of the two JSF-implementations.*
> > >> >
> > >> > Why this happend if im using only jars from myfaces?? maybe for
> > >> glassfish i
> > >> > think, i have these in my *glassfish-web.xml* file, under WEB-INF
> > folder:
> > >> >
> > >> > <?xml version="1.0" encoding="UTF-8"?>
> > >> > <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish
> > >> > Application Server 3.1 Servlet 3.0//EN" "
> > >> > http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd";>
> > >> > <glassfish-web-app error-url="">
> > >> >    <!--Para establecer el charset a utf8 y remover el mensaje de:
> > >> PWC4011:
> > >> > Unable to set request character encoding to UTF-8 from context-->
> > >> >    <parameter-encoding default-charset="UTF-8"/>
> > >> >    *<class-loader delegate="false"/>*
> > >> > *    <property name="useBundledJsf" value="true"/>*
> > >> >    <!--<class-loader delegate="true"/>-->
> > >> >    <jsp-config>
> > >> >        <property name="keepgenerated" value="true">
> > >> >            <description>Keep a copy of the generated servlet class'
> > java
> > >> > code.</description>
> > >> >        </property>
> > >> >    </jsp-config>
> > >> > </glassfish-web-app>
> > >> >
> > >> > ----------------  ----------------  ----------------
> > >> >
> > >> > This is my web.xml
> > >> >
> > >> > <?xml version="1.0" encoding="UTF-8"?>
> > >> > <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee";
> > >> xmlns:xsi="
> > >> > http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="
> > >> > http://java.sun.com/xml/ns/javaee
> > >> > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd";>
> > >> >    <context-param>
> > >> >        <param-name>javax.faces.PROJECT_STAGE</param-name>
> > >> >        <param-value>Development</param-value>
> > >> >    </context-param>
> > >> >    <context-param>
> > >> >        <param-name>com.ocpsoft.pretty.DEVELOPMENT</param-name>
> > >> >        <param-value>true</param-value>
> > >> >    </context-param>
> > >> >    <context-param>
> > >> >        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
> > >> >        <param-value>server</param-value>
> > >> >    </context-param>
> > >> >    <context-param>
> > >> >        <param-name>
> > >> >
> > >>
> >
> javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE</param-name>
> > >> >        <param-value>true</param-value>
> > >> >    </context-param>
> > >> >     <context-param>
> > >> >        <param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
> > >> >        <param-value>true</param-value>
> > >> >    </context-param>
> > >> >    <context-param>
> > >> >
> > >> >
> > >>
> >
> <param-name>com.sun.faces.enableMissingResourceLibraryDetection</param-name>
> > >> >        <param-value>true</param-value>
> > >> >    </context-param>
> > >> >    <listener>
> > >> >        *
> > >> >
> > >>
> >
> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
> > >> > *
> > >> >    </listener>
> > >> >    <servlet>
> > >> >        <servlet-name>Faces Servlet</servlet-name>
> > >> >
> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> > >> >        <load-on-startup>1</load-on-startup>
> > >> >    </servlet>
> > >> >    <servlet-mapping>
> > >> >        <servlet-name>Faces Servlet</servlet-name>
> > >> >        <url-pattern>/faces/*</url-pattern>
> > >> >    </servlet-mapping>
> > >> >    <session-config>
> > >> >        <session-timeout>
> > >> >            30
> > >> >        </session-timeout>
> > >> >    </session-config>
> > >> >    <welcome-file-list>
> > >> >        <welcome-file>faces/index.xhtml</welcome-file>
> > >> >    </welcome-file-list>
> > >> > </web-app>
> > >> >
> > >> > ----------------  ----------------  ----------------
> > >> >
> > >> > Here are my libraries:
> > >> >
> > >> > --MYFACES
> > >> > myfaces-api-2.1.6.jar
> > >> > myfaces-impl-2.1.6.jar
> > >> > commons-beanutils-1.8.3.jar
> > >> > commons-digester-1.8.jar
> > >> > commons-logging-1.8.jar
> > >> > commons-codec-1.1.1.jar
> > >> > commons-collections-3.2.jar
> > >> > --MYFACES CODI
> > >> > myfaces-extcdi-alternative-implementation-module-1.0.4
> > >> > myfaces-extcdi-bv1-module-api-1.0.4
> > >> > myfaces-extcdi-bv1-module-impl-1.0.4
> > >> > myfaces-extcdi-core-alternative-configuration-1.0.4
> > >> > myfaces-extcdi-core-api-1.0.4
> > >> > myfaces-extcdi-core-impl-1.0.4
> > >> > myfaces-extcdi-jpa1-module-api-1.0.4
> > >> > myfaces-extcdi-jpa1-module-impl-1.0.4
> > >> > myfaces-extcdi-jsf20-module-api-1.0.4
> > >> > myfaces-extcdi-jsf20-module-impl-1.0.4
> > >> > myfaces-extcdi-jsf-alternative-configuration-1.0.4
> > >> > myfaces-extcdi-message-module-api-1.0.4
> > >> > myfaces-extcdi-message-module-impl-1.0.4
> > >> > myfaces-extcdi-scripting-module-api-1.0.4
> > >> > myfaces-extcdi-scripting-module-impl-1.0.4
> > >> >
> > >> >
> > >> > I dont know if because the "WARNING" i have other problem:
> > >> >
> > >> > javax.el.PropertyNotFoundException: Target Unreachable, identifier
> > >> 'myBean'
> > >> > resolved to null,
> > >> >
> > >> > I have in my beans.xml file under WEB-INF this:
> > >> >
> > >> > <?xml version="1.0" encoding="UTF-8"?>
> > >> > <beans 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/beans_1_0.xsd";>
> > >> > </beans>
> > >> >
> > >> > and in my bean:
> > >> >
> > >> > @Named
> > >> > @ViewAccessScoped
> > >> > @Model
> > >> > @View(Index.class)
> > >> > public class MyBean implements Serializable{
> > >> >   public void test(){
> > >> >     //do nothing
> > >> >   }
> > >> >
> > >> > .....
> > >> > }
> > >> >
> > >> > and in my index.xhtml
> > >> >
> > >> > <h:commandButton value="CLICK" action="#{myBean.test}"/>
> > >> >
> > >> > if i click my button the i get this error:
> > >> >
> > >> > javax.el.PropertyNotFoundException: Target Unreachable, identifier
> > >> 'myBean'
> > >> > resolved to null
> > >> > viewId=/index.xhtml
> > >> >
> > >>
> >
> location=C:\Users\user\Documents\NetBeansProjects\testweb\build\web\index.xhtml
> > >> > phaseId=INVOKE_APPLICATION(5)
> > >> > Caused by:
> > >> > javax.el.PropertyNotFoundException - Target Unreachable, identifier
> > >> > 'myBean' resolved to null
> > >> > at com.sun.el.parser.AstValue.getTarget(AstValue.java:153)
> > >> >
> > >> >
> > >> > I dont know if this is for the first problem  (*Both MyFaces and the
> > RI
> > >> are
> > >> > on your classpath. Please make sure to use only one of the two
> > >> > JSF-implementations.*)
> > >> > I read i need to have my beans.xml but i have it!!!
> > >> >
> > >> > Thanks, and sorry for the english, is not my native language
> > >> >
> > >> >
> > >> > Im using: Netbeans 7.1, *Glassfish 3.1.2.1,* JDK 7u3, MyFaces 2.1.6,
> > CODI
> > >> > 1.0.4, Windows 7.
> > >> >
> > >> > --
> > >> > -------------------------------------------------------------------
> > >> > *SCJA. José Luis Cetina*
> > >> > -------------------------------------------------------------------
> > >>
> > >
> > >
> > >
> > > --
> > > -------------------------------------------------------------------
> > > *SCJA. José Luis Cetina*
> > > -------------------------------------------------------------------
> >
>
>
>
> --
> -------------------------------------------------------------------
> *SCJA. José Luis Cetina*
> -------------------------------------------------------------------
>
>


-- 
-------------------------------------------------------------------
*SCJA. José Luis Cetina*
-------------------------------------------------------------------

Re: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

Posted by Rafael Pestano <rm...@yahoo.com.br>.
i see, if you are using CODI it should be printing(at startup time) all information about your enviroment like JSF, CDI implementations,  is that the case? what it is printing?


 
Att, 
Rafael M. Pestano
Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
Graduando em Ciência da Computação UFRGS
@realpestano
http://code.google.com/p/jsf-conventions-framework/



----- Mensagem original -----
De: José Luis Cetina <ma...@gmail.com>
Para: MyFaces Discussion <us...@myfaces.apache.org>; Rafael Pestano <rm...@yahoo.com.br>
Cc: 
Enviadas: Segunda-feira, 12 de Março de 2012 14:24
Assunto: Re: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

I cant do that , in the server exist other app that use mojarra   :(

and what happend with this:

<class-loader delegate="false"/>
<property name="useBundledJsf" value="true"/>

2012/3/12 Rafael Pestano <rm...@yahoo.com.br>

> You can try to remove jsf-api.jar and jsf-impl.jar from glassfish, if your
> app still running you are using myfaces ;).
>
> RI jars are under GLASSFISH_HOME\glassfish\modules, also make sure to
> delete cache folder in GLASSFISH_HOME\glassfish\domains\domain1\osgi-cache
>
> Att,
>
> Rafael M. Pestano
>
> Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
> Graduando em Ciência da Computação UFRGS
> @realpestano
> http://code.google.com/p/jsf-conventions-framework/
>
>
>
> ________________________________
> De: Mike Kienenberger <mk...@gmail.com>
> Para: MyFaces Discussion <us...@myfaces.apache.org>
> Enviadas: Segunda-feira, 12 de Março de 2012 14:17
> Assunto: Re: Both MyFaces and the RI are on your classpath. Please make
> sure to use only one of the two JSF-implementations.
>
> You are correct in that it is a serious error.   Having both jars in
> your path will result in identically-named, but differently-operating
> classes to be present in your application.
>
> You need to configure Glassfish to disable the RI, or you need to
> remove the myfaces jars.
>
> 2012/3/12 José Luis Cetina <ma...@gmail.com>:
> > Well sorry, really this says: ERROR Both MyFaces and the RI are on your
> > classpath. Please make sure to use only one of the two
> JSF-implementations.
> >
> > Grave: Both MyFaces and the RI are on your classpath. Please make sure to
> > use only one of the two JSF-implementations.
> >
> > 2012/3/12 Shasi Mitra <sh...@yahoo.com>
> >
> >> It's just a warning rite? You can go ahead with your development. It
> >> doesn't  affect anything.
> >>
> >> Sent from my iPhone
> >>
> >> On Mar 12, 2012, at 10:10 PM, José Luis Cetina <ma...@gmail.com>
> >> wrote:
> >>
> >> > Im triying to start a new project for first time with myfaces, i
> always
> >> > used Mojarra but know i want to change but im having problems at the
> >> start:
> >> >
> >> > My only requierement is use Glassfish 3.1.2.1.
> >> >
> >> > Hi i have this WARNING:
> >> >
> >> > *Both MyFaces and the RI are on your classpath. Please make sure to
> use
> >> > only one of the two JSF-implementations.*
> >> >
> >> > Why this happend if im using only jars from myfaces?? maybe for
> >> glassfish i
> >> > think, i have these in my *glassfish-web.xml* file, under WEB-INF
> folder:
> >> >
> >> > <?xml version="1.0" encoding="UTF-8"?>
> >> > <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish
> >> > Application Server 3.1 Servlet 3.0//EN" "
> >> > http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd";>
> >> > <glassfish-web-app error-url="">
> >> >    <!--Para establecer el charset a utf8 y remover el mensaje de:
> >> PWC4011:
> >> > Unable to set request character encoding to UTF-8 from context-->
> >> >    <parameter-encoding default-charset="UTF-8"/>
> >> >    *<class-loader delegate="false"/>*
> >> > *    <property name="useBundledJsf" value="true"/>*
> >> >    <!--<class-loader delegate="true"/>-->
> >> >    <jsp-config>
> >> >        <property name="keepgenerated" value="true">
> >> >            <description>Keep a copy of the generated servlet class'
> java
> >> > code.</description>
> >> >        </property>
> >> >    </jsp-config>
> >> > </glassfish-web-app>
> >> >
> >> > ----------------  ----------------  ----------------
> >> >
> >> > This is my web.xml
> >> >
> >> > <?xml version="1.0" encoding="UTF-8"?>
> >> > <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee";
> >> xmlns:xsi="
> >> > http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="
> >> > http://java.sun.com/xml/ns/javaee
> >> > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd";>
> >> >    <context-param>
> >> >        <param-name>javax.faces.PROJECT_STAGE</param-name>
> >> >        <param-value>Development</param-value>
> >> >    </context-param>
> >> >    <context-param>
> >> >        <param-name>com.ocpsoft.pretty.DEVELOPMENT</param-name>
> >> >        <param-value>true</param-value>
> >> >    </context-param>
> >> >    <context-param>
> >> >        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
> >> >        <param-value>server</param-value>
> >> >    </context-param>
> >> >    <context-param>
> >> >        <param-name>
> >> >
> >>
> javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE</param-name>
> >> >        <param-value>true</param-value>
> >> >    </context-param>
> >> >     <context-param>
> >> >        <param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
> >> >        <param-value>true</param-value>
> >> >    </context-param>
> >> >    <context-param>
> >> >
> >> >
> >>
> <param-name>com.sun.faces.enableMissingResourceLibraryDetection</param-name>
> >> >        <param-value>true</param-value>
> >> >    </context-param>
> >> >    <listener>
> >> >        *
> >> >
> >>
> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
> >> > *
> >> >    </listener>
> >> >    <servlet>
> >> >        <servlet-name>Faces Servlet</servlet-name>
> >> >        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> >> >        <load-on-startup>1</load-on-startup>
> >> >    </servlet>
> >> >    <servlet-mapping>
> >> >        <servlet-name>Faces Servlet</servlet-name>
> >> >        <url-pattern>/faces/*</url-pattern>
> >> >    </servlet-mapping>
> >> >    <session-config>
> >> >        <session-timeout>
> >> >            30
> >> >        </session-timeout>
> >> >    </session-config>
> >> >    <welcome-file-list>
> >> >        <welcome-file>faces/index.xhtml</welcome-file>
> >> >    </welcome-file-list>
> >> > </web-app>
> >> >
> >> > ----------------  ----------------  ----------------
> >> >
> >> > Here are my libraries:
> >> >
> >> > --MYFACES
> >> > myfaces-api-2.1.6.jar
> >> > myfaces-impl-2.1.6.jar
> >> > commons-beanutils-1.8.3.jar
> >> > commons-digester-1.8.jar
> >> > commons-logging-1.8.jar
> >> > commons-codec-1.1.1.jar
> >> > commons-collections-3.2.jar
> >> > --MYFACES CODI
> >> > myfaces-extcdi-alternative-implementation-module-1.0.4
> >> > myfaces-extcdi-bv1-module-api-1.0.4
> >> > myfaces-extcdi-bv1-module-impl-1.0.4
> >> > myfaces-extcdi-core-alternative-configuration-1.0.4
> >> > myfaces-extcdi-core-api-1.0.4
> >> > myfaces-extcdi-core-impl-1.0.4
> >> > myfaces-extcdi-jpa1-module-api-1.0.4
> >> > myfaces-extcdi-jpa1-module-impl-1.0.4
> >> > myfaces-extcdi-jsf20-module-api-1.0.4
> >> > myfaces-extcdi-jsf20-module-impl-1.0.4
> >> > myfaces-extcdi-jsf-alternative-configuration-1.0.4
> >> > myfaces-extcdi-message-module-api-1.0.4
> >> > myfaces-extcdi-message-module-impl-1.0.4
> >> > myfaces-extcdi-scripting-module-api-1.0.4
> >> > myfaces-extcdi-scripting-module-impl-1.0.4
> >> >
> >> >
> >> > I dont know if because the "WARNING" i have other problem:
> >> >
> >> > javax.el.PropertyNotFoundException: Target Unreachable, identifier
> >> 'myBean'
> >> > resolved to null,
> >> >
> >> > I have in my beans.xml file under WEB-INF this:
> >> >
> >> > <?xml version="1.0" encoding="UTF-8"?>
> >> > <beans 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/beans_1_0.xsd";>
> >> > </beans>
> >> >
> >> > and in my bean:
> >> >
> >> > @Named
> >> > @ViewAccessScoped
> >> > @Model
> >> > @View(Index.class)
> >> > public class MyBean implements Serializable{
> >> >   public void test(){
> >> >     //do nothing
> >> >   }
> >> >
> >> > .....
> >> > }
> >> >
> >> > and in my index.xhtml
> >> >
> >> > <h:commandButton value="CLICK" action="#{myBean.test}"/>
> >> >
> >> > if i click my button the i get this error:
> >> >
> >> > javax.el.PropertyNotFoundException: Target Unreachable, identifier
> >> 'myBean'
> >> > resolved to null
> >> > viewId=/index.xhtml
> >> >
> >>
> location=C:\Users\user\Documents\NetBeansProjects\testweb\build\web\index.xhtml
> >> > phaseId=INVOKE_APPLICATION(5)
> >> > Caused by:
> >> > javax.el.PropertyNotFoundException - Target Unreachable, identifier
> >> > 'myBean' resolved to null
> >> > at com.sun.el.parser.AstValue.getTarget(AstValue.java:153)
> >> >
> >> >
> >> > I dont know if this is for the first problem  (*Both MyFaces and the
> RI
> >> are
> >> > on your classpath. Please make sure to use only one of the two
> >> > JSF-implementations.*)
> >> > I read i need to have my beans.xml but i have it!!!
> >> >
> >> > Thanks, and sorry for the english, is not my native language
> >> >
> >> >
> >> > Im using: Netbeans 7.1, *Glassfish 3.1.2.1,* JDK 7u3, MyFaces 2.1.6,
> CODI
> >> > 1.0.4, Windows 7.
> >> >
> >> > --
> >> > -------------------------------------------------------------------
> >> > *SCJA. José Luis Cetina*
> >> > -------------------------------------------------------------------
> >>
> >
> >
> >
> > --
> > -------------------------------------------------------------------
> > *SCJA. José Luis Cetina*
> > -------------------------------------------------------------------
>



-- 
-------------------------------------------------------------------
*SCJA. José Luis Cetina*
-------------------------------------------------------------------


Re: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

Posted by José Luis Cetina <ma...@gmail.com>.
I cant do that , in the server exist other app that use mojarra   :(

and what happend with this:

<class-loader delegate="false"/>
<property name="useBundledJsf" value="true"/>

2012/3/12 Rafael Pestano <rm...@yahoo.com.br>

> You can try to remove jsf-api.jar and jsf-impl.jar from glassfish, if your
> app still running you are using myfaces ;).
>
> RI jars are under GLASSFISH_HOME\glassfish\modules, also make sure to
> delete cache folder in GLASSFISH_HOME\glassfish\domains\domain1\osgi-cache
>
> Att,
>
> Rafael M. Pestano
>
> Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
> Graduando em Ciência da Computação UFRGS
> @realpestano
> http://code.google.com/p/jsf-conventions-framework/
>
>
>
> ________________________________
> De: Mike Kienenberger <mk...@gmail.com>
> Para: MyFaces Discussion <us...@myfaces.apache.org>
> Enviadas: Segunda-feira, 12 de Março de 2012 14:17
> Assunto: Re: Both MyFaces and the RI are on your classpath. Please make
> sure to use only one of the two JSF-implementations.
>
> You are correct in that it is a serious error.   Having both jars in
> your path will result in identically-named, but differently-operating
> classes to be present in your application.
>
> You need to configure Glassfish to disable the RI, or you need to
> remove the myfaces jars.
>
> 2012/3/12 José Luis Cetina <ma...@gmail.com>:
> > Well sorry, really this says: ERROR Both MyFaces and the RI are on your
> > classpath. Please make sure to use only one of the two
> JSF-implementations.
> >
> > Grave: Both MyFaces and the RI are on your classpath. Please make sure to
> > use only one of the two JSF-implementations.
> >
> > 2012/3/12 Shasi Mitra <sh...@yahoo.com>
> >
> >> It's just a warning rite? You can go ahead with your development. It
> >> doesn't  affect anything.
> >>
> >> Sent from my iPhone
> >>
> >> On Mar 12, 2012, at 10:10 PM, José Luis Cetina <ma...@gmail.com>
> >> wrote:
> >>
> >> > Im triying to start a new project for first time with myfaces, i
> always
> >> > used Mojarra but know i want to change but im having problems at the
> >> start:
> >> >
> >> > My only requierement is use Glassfish 3.1.2.1.
> >> >
> >> > Hi i have this WARNING:
> >> >
> >> > *Both MyFaces and the RI are on your classpath. Please make sure to
> use
> >> > only one of the two JSF-implementations.*
> >> >
> >> > Why this happend if im using only jars from myfaces?? maybe for
> >> glassfish i
> >> > think, i have these in my *glassfish-web.xml* file, under WEB-INF
> folder:
> >> >
> >> > <?xml version="1.0" encoding="UTF-8"?>
> >> > <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish
> >> > Application Server 3.1 Servlet 3.0//EN" "
> >> > http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd";>
> >> > <glassfish-web-app error-url="">
> >> >    <!--Para establecer el charset a utf8 y remover el mensaje de:
> >> PWC4011:
> >> > Unable to set request character encoding to UTF-8 from context-->
> >> >    <parameter-encoding default-charset="UTF-8"/>
> >> >    *<class-loader delegate="false"/>*
> >> > *    <property name="useBundledJsf" value="true"/>*
> >> >    <!--<class-loader delegate="true"/>-->
> >> >    <jsp-config>
> >> >        <property name="keepgenerated" value="true">
> >> >            <description>Keep a copy of the generated servlet class'
> java
> >> > code.</description>
> >> >        </property>
> >> >    </jsp-config>
> >> > </glassfish-web-app>
> >> >
> >> > ----------------  ----------------  ----------------
> >> >
> >> > This is my web.xml
> >> >
> >> > <?xml version="1.0" encoding="UTF-8"?>
> >> > <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee";
> >> xmlns:xsi="
> >> > http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="
> >> > http://java.sun.com/xml/ns/javaee
> >> > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd";>
> >> >    <context-param>
> >> >        <param-name>javax.faces.PROJECT_STAGE</param-name>
> >> >        <param-value>Development</param-value>
> >> >    </context-param>
> >> >    <context-param>
> >> >        <param-name>com.ocpsoft.pretty.DEVELOPMENT</param-name>
> >> >        <param-value>true</param-value>
> >> >    </context-param>
> >> >    <context-param>
> >> >        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
> >> >        <param-value>server</param-value>
> >> >    </context-param>
> >> >    <context-param>
> >> >        <param-name>
> >> >
> >>
> javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE</param-name>
> >> >        <param-value>true</param-value>
> >> >    </context-param>
> >> >     <context-param>
> >> >        <param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
> >> >        <param-value>true</param-value>
> >> >    </context-param>
> >> >    <context-param>
> >> >
> >> >
> >>
> <param-name>com.sun.faces.enableMissingResourceLibraryDetection</param-name>
> >> >        <param-value>true</param-value>
> >> >    </context-param>
> >> >    <listener>
> >> >        *
> >> >
> >>
> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
> >> > *
> >> >    </listener>
> >> >    <servlet>
> >> >        <servlet-name>Faces Servlet</servlet-name>
> >> >        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> >> >        <load-on-startup>1</load-on-startup>
> >> >    </servlet>
> >> >    <servlet-mapping>
> >> >        <servlet-name>Faces Servlet</servlet-name>
> >> >        <url-pattern>/faces/*</url-pattern>
> >> >    </servlet-mapping>
> >> >    <session-config>
> >> >        <session-timeout>
> >> >            30
> >> >        </session-timeout>
> >> >    </session-config>
> >> >    <welcome-file-list>
> >> >        <welcome-file>faces/index.xhtml</welcome-file>
> >> >    </welcome-file-list>
> >> > </web-app>
> >> >
> >> > ----------------  ----------------  ----------------
> >> >
> >> > Here are my libraries:
> >> >
> >> > --MYFACES
> >> > myfaces-api-2.1.6.jar
> >> > myfaces-impl-2.1.6.jar
> >> > commons-beanutils-1.8.3.jar
> >> > commons-digester-1.8.jar
> >> > commons-logging-1.8.jar
> >> > commons-codec-1.1.1.jar
> >> > commons-collections-3.2.jar
> >> > --MYFACES CODI
> >> > myfaces-extcdi-alternative-implementation-module-1.0.4
> >> > myfaces-extcdi-bv1-module-api-1.0.4
> >> > myfaces-extcdi-bv1-module-impl-1.0.4
> >> > myfaces-extcdi-core-alternative-configuration-1.0.4
> >> > myfaces-extcdi-core-api-1.0.4
> >> > myfaces-extcdi-core-impl-1.0.4
> >> > myfaces-extcdi-jpa1-module-api-1.0.4
> >> > myfaces-extcdi-jpa1-module-impl-1.0.4
> >> > myfaces-extcdi-jsf20-module-api-1.0.4
> >> > myfaces-extcdi-jsf20-module-impl-1.0.4
> >> > myfaces-extcdi-jsf-alternative-configuration-1.0.4
> >> > myfaces-extcdi-message-module-api-1.0.4
> >> > myfaces-extcdi-message-module-impl-1.0.4
> >> > myfaces-extcdi-scripting-module-api-1.0.4
> >> > myfaces-extcdi-scripting-module-impl-1.0.4
> >> >
> >> >
> >> > I dont know if because the "WARNING" i have other problem:
> >> >
> >> > javax.el.PropertyNotFoundException: Target Unreachable, identifier
> >> 'myBean'
> >> > resolved to null,
> >> >
> >> > I have in my beans.xml file under WEB-INF this:
> >> >
> >> > <?xml version="1.0" encoding="UTF-8"?>
> >> > <beans 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/beans_1_0.xsd";>
> >> > </beans>
> >> >
> >> > and in my bean:
> >> >
> >> > @Named
> >> > @ViewAccessScoped
> >> > @Model
> >> > @View(Index.class)
> >> > public class MyBean implements Serializable{
> >> >   public void test(){
> >> >     //do nothing
> >> >   }
> >> >
> >> > .....
> >> > }
> >> >
> >> > and in my index.xhtml
> >> >
> >> > <h:commandButton value="CLICK" action="#{myBean.test}"/>
> >> >
> >> > if i click my button the i get this error:
> >> >
> >> > javax.el.PropertyNotFoundException: Target Unreachable, identifier
> >> 'myBean'
> >> > resolved to null
> >> > viewId=/index.xhtml
> >> >
> >>
> location=C:\Users\user\Documents\NetBeansProjects\testweb\build\web\index.xhtml
> >> > phaseId=INVOKE_APPLICATION(5)
> >> > Caused by:
> >> > javax.el.PropertyNotFoundException - Target Unreachable, identifier
> >> > 'myBean' resolved to null
> >> > at com.sun.el.parser.AstValue.getTarget(AstValue.java:153)
> >> >
> >> >
> >> > I dont know if this is for the first problem  (*Both MyFaces and the
> RI
> >> are
> >> > on your classpath. Please make sure to use only one of the two
> >> > JSF-implementations.*)
> >> > I read i need to have my beans.xml but i have it!!!
> >> >
> >> > Thanks, and sorry for the english, is not my native language
> >> >
> >> >
> >> > Im using: Netbeans 7.1, *Glassfish 3.1.2.1,* JDK 7u3, MyFaces 2.1.6,
> CODI
> >> > 1.0.4, Windows 7.
> >> >
> >> > --
> >> > -------------------------------------------------------------------
> >> > *SCJA. José Luis Cetina*
> >> > -------------------------------------------------------------------
> >>
> >
> >
> >
> > --
> > -------------------------------------------------------------------
> > *SCJA. José Luis Cetina*
> > -------------------------------------------------------------------
>



-- 
-------------------------------------------------------------------
*SCJA. José Luis Cetina*
-------------------------------------------------------------------

Re: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

Posted by Rafael Pestano <rm...@yahoo.com.br>.
You can try to remove jsf-api.jar and jsf-impl.jar from glassfish, if your app still running you are using myfaces ;).

RI jars are under GLASSFISH_HOME\glassfish\modules, also make sure to delete cache folder in GLASSFISH_HOME\glassfish\domains\domain1\osgi-cache

Att, 

Rafael M. Pestano

Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
Graduando em Ciência da Computação UFRGS
@realpestano
http://code.google.com/p/jsf-conventions-framework/



________________________________
De: Mike Kienenberger <mk...@gmail.com>
Para: MyFaces Discussion <us...@myfaces.apache.org> 
Enviadas: Segunda-feira, 12 de Março de 2012 14:17
Assunto: Re: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

You are correct in that it is a serious error.   Having both jars in
your path will result in identically-named, but differently-operating
classes to be present in your application.

You need to configure Glassfish to disable the RI, or you need to
remove the myfaces jars.

2012/3/12 José Luis Cetina <ma...@gmail.com>:
> Well sorry, really this says: ERROR Both MyFaces and the RI are on your
> classpath. Please make sure to use only one of the two JSF-implementations.
>
> Grave: Both MyFaces and the RI are on your classpath. Please make sure to
> use only one of the two JSF-implementations.
>
> 2012/3/12 Shasi Mitra <sh...@yahoo.com>
>
>> It's just a warning rite? You can go ahead with your development. It
>> doesn't  affect anything.
>>
>> Sent from my iPhone
>>
>> On Mar 12, 2012, at 10:10 PM, José Luis Cetina <ma...@gmail.com>
>> wrote:
>>
>> > Im triying to start a new project for first time with myfaces, i always
>> > used Mojarra but know i want to change but im having problems at the
>> start:
>> >
>> > My only requierement is use Glassfish 3.1.2.1.
>> >
>> > Hi i have this WARNING:
>> >
>> > *Both MyFaces and the RI are on your classpath. Please make sure to use
>> > only one of the two JSF-implementations.*
>> >
>> > Why this happend if im using only jars from myfaces?? maybe for
>> glassfish i
>> > think, i have these in my *glassfish-web.xml* file, under WEB-INF folder:
>> >
>> > <?xml version="1.0" encoding="UTF-8"?>
>> > <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish
>> > Application Server 3.1 Servlet 3.0//EN" "
>> > http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd";>
>> > <glassfish-web-app error-url="">
>> >    <!--Para establecer el charset a utf8 y remover el mensaje de:
>> PWC4011:
>> > Unable to set request character encoding to UTF-8 from context-->
>> >    <parameter-encoding default-charset="UTF-8"/>
>> >    *<class-loader delegate="false"/>*
>> > *    <property name="useBundledJsf" value="true"/>*
>> >    <!--<class-loader delegate="true"/>-->
>> >    <jsp-config>
>> >        <property name="keepgenerated" value="true">
>> >            <description>Keep a copy of the generated servlet class' java
>> > code.</description>
>> >        </property>
>> >    </jsp-config>
>> > </glassfish-web-app>
>> >
>> > ----------------  ----------------  ----------------
>> >
>> > This is my web.xml
>> >
>> > <?xml version="1.0" encoding="UTF-8"?>
>> > <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee";
>> xmlns:xsi="
>> > http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="
>> > http://java.sun.com/xml/ns/javaee
>> > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd";>
>> >    <context-param>
>> >        <param-name>javax.faces.PROJECT_STAGE</param-name>
>> >        <param-value>Development</param-value>
>> >    </context-param>
>> >    <context-param>
>> >        <param-name>com.ocpsoft.pretty.DEVELOPMENT</param-name>
>> >        <param-value>true</param-value>
>> >    </context-param>
>> >    <context-param>
>> >        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
>> >        <param-value>server</param-value>
>> >    </context-param>
>> >    <context-param>
>> >        <param-name>
>> >
>> javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE</param-name>
>> >        <param-value>true</param-value>
>> >    </context-param>
>> >     <context-param>
>> >        <param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
>> >        <param-value>true</param-value>
>> >    </context-param>
>> >    <context-param>
>> >
>> >
>> <param-name>com.sun.faces.enableMissingResourceLibraryDetection</param-name>
>> >        <param-value>true</param-value>
>> >    </context-param>
>> >    <listener>
>> >        *
>> >
>> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
>> > *
>> >    </listener>
>> >    <servlet>
>> >        <servlet-name>Faces Servlet</servlet-name>
>> >        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
>> >        <load-on-startup>1</load-on-startup>
>> >    </servlet>
>> >    <servlet-mapping>
>> >        <servlet-name>Faces Servlet</servlet-name>
>> >        <url-pattern>/faces/*</url-pattern>
>> >    </servlet-mapping>
>> >    <session-config>
>> >        <session-timeout>
>> >            30
>> >        </session-timeout>
>> >    </session-config>
>> >    <welcome-file-list>
>> >        <welcome-file>faces/index.xhtml</welcome-file>
>> >    </welcome-file-list>
>> > </web-app>
>> >
>> > ----------------  ----------------  ----------------
>> >
>> > Here are my libraries:
>> >
>> > --MYFACES
>> > myfaces-api-2.1.6.jar
>> > myfaces-impl-2.1.6.jar
>> > commons-beanutils-1.8.3.jar
>> > commons-digester-1.8.jar
>> > commons-logging-1.8.jar
>> > commons-codec-1.1.1.jar
>> > commons-collections-3.2.jar
>> > --MYFACES CODI
>> > myfaces-extcdi-alternative-implementation-module-1.0.4
>> > myfaces-extcdi-bv1-module-api-1.0.4
>> > myfaces-extcdi-bv1-module-impl-1.0.4
>> > myfaces-extcdi-core-alternative-configuration-1.0.4
>> > myfaces-extcdi-core-api-1.0.4
>> > myfaces-extcdi-core-impl-1.0.4
>> > myfaces-extcdi-jpa1-module-api-1.0.4
>> > myfaces-extcdi-jpa1-module-impl-1.0.4
>> > myfaces-extcdi-jsf20-module-api-1.0.4
>> > myfaces-extcdi-jsf20-module-impl-1.0.4
>> > myfaces-extcdi-jsf-alternative-configuration-1.0.4
>> > myfaces-extcdi-message-module-api-1.0.4
>> > myfaces-extcdi-message-module-impl-1.0.4
>> > myfaces-extcdi-scripting-module-api-1.0.4
>> > myfaces-extcdi-scripting-module-impl-1.0.4
>> >
>> >
>> > I dont know if because the "WARNING" i have other problem:
>> >
>> > javax.el.PropertyNotFoundException: Target Unreachable, identifier
>> 'myBean'
>> > resolved to null,
>> >
>> > I have in my beans.xml file under WEB-INF this:
>> >
>> > <?xml version="1.0" encoding="UTF-8"?>
>> > <beans 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/beans_1_0.xsd";>
>> > </beans>
>> >
>> > and in my bean:
>> >
>> > @Named
>> > @ViewAccessScoped
>> > @Model
>> > @View(Index.class)
>> > public class MyBean implements Serializable{
>> >   public void test(){
>> >     //do nothing
>> >   }
>> >
>> > .....
>> > }
>> >
>> > and in my index.xhtml
>> >
>> > <h:commandButton value="CLICK" action="#{myBean.test}"/>
>> >
>> > if i click my button the i get this error:
>> >
>> > javax.el.PropertyNotFoundException: Target Unreachable, identifier
>> 'myBean'
>> > resolved to null
>> > viewId=/index.xhtml
>> >
>> location=C:\Users\user\Documents\NetBeansProjects\testweb\build\web\index.xhtml
>> > phaseId=INVOKE_APPLICATION(5)
>> > Caused by:
>> > javax.el.PropertyNotFoundException - Target Unreachable, identifier
>> > 'myBean' resolved to null
>> > at com.sun.el.parser.AstValue.getTarget(AstValue.java:153)
>> >
>> >
>> > I dont know if this is for the first problem  (*Both MyFaces and the RI
>> are
>> > on your classpath. Please make sure to use only one of the two
>> > JSF-implementations.*)
>> > I read i need to have my beans.xml but i have it!!!
>> >
>> > Thanks, and sorry for the english, is not my native language
>> >
>> >
>> > Im using: Netbeans 7.1, *Glassfish 3.1.2.1,* JDK 7u3, MyFaces 2.1.6, CODI
>> > 1.0.4, Windows 7.
>> >
>> > --
>> > -------------------------------------------------------------------
>> > *SCJA. José Luis Cetina*
>> > -------------------------------------------------------------------
>>
>
>
>
> --
> -------------------------------------------------------------------
> *SCJA. José Luis Cetina*
> ------------------------------------------------------------------- 

Re: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

Posted by Mike Kienenberger <mk...@gmail.com>.
You are correct in that it is a serious error.   Having both jars in
your path will result in identically-named, but differently-operating
classes to be present in your application.

You need to configure Glassfish to disable the RI, or you need to
remove the myfaces jars.

2012/3/12 José Luis Cetina <ma...@gmail.com>:
> Well sorry, really this says: ERROR Both MyFaces and the RI are on your
> classpath. Please make sure to use only one of the two JSF-implementations.
>
> Grave: Both MyFaces and the RI are on your classpath. Please make sure to
> use only one of the two JSF-implementations.
>
> 2012/3/12 Shasi Mitra <sh...@yahoo.com>
>
>> It's just a warning rite? You can go ahead with your development. It
>> doesn't  affect anything.
>>
>> Sent from my iPhone
>>
>> On Mar 12, 2012, at 10:10 PM, José Luis Cetina <ma...@gmail.com>
>> wrote:
>>
>> > Im triying to start a new project for first time with myfaces, i always
>> > used Mojarra but know i want to change but im having problems at the
>> start:
>> >
>> > My only requierement is use Glassfish 3.1.2.1.
>> >
>> > Hi i have this WARNING:
>> >
>> > *Both MyFaces and the RI are on your classpath. Please make sure to use
>> > only one of the two JSF-implementations.*
>> >
>> > Why this happend if im using only jars from myfaces?? maybe for
>> glassfish i
>> > think, i have these in my *glassfish-web.xml* file, under WEB-INF folder:
>> >
>> > <?xml version="1.0" encoding="UTF-8"?>
>> > <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish
>> > Application Server 3.1 Servlet 3.0//EN" "
>> > http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">
>> > <glassfish-web-app error-url="">
>> >    <!--Para establecer el charset a utf8 y remover el mensaje de:
>> PWC4011:
>> > Unable to set request character encoding to UTF-8 from context-->
>> >    <parameter-encoding default-charset="UTF-8"/>
>> >    *<class-loader delegate="false"/>*
>> > *    <property name="useBundledJsf" value="true"/>*
>> >    <!--<class-loader delegate="true"/>-->
>> >    <jsp-config>
>> >        <property name="keepgenerated" value="true">
>> >            <description>Keep a copy of the generated servlet class' java
>> > code.</description>
>> >        </property>
>> >    </jsp-config>
>> > </glassfish-web-app>
>> >
>> > ----------------  ----------------  ----------------
>> >
>> > This is my web.xml
>> >
>> > <?xml version="1.0" encoding="UTF-8"?>
>> > <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
>> xmlns:xsi="
>> > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
>> > http://java.sun.com/xml/ns/javaee
>> > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
>> >    <context-param>
>> >        <param-name>javax.faces.PROJECT_STAGE</param-name>
>> >        <param-value>Development</param-value>
>> >    </context-param>
>> >    <context-param>
>> >        <param-name>com.ocpsoft.pretty.DEVELOPMENT</param-name>
>> >        <param-value>true</param-value>
>> >    </context-param>
>> >    <context-param>
>> >        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
>> >        <param-value>server</param-value>
>> >    </context-param>
>> >    <context-param>
>> >        <param-name>
>> >
>> javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE</param-name>
>> >        <param-value>true</param-value>
>> >    </context-param>
>> >     <context-param>
>> >        <param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
>> >        <param-value>true</param-value>
>> >    </context-param>
>> >    <context-param>
>> >
>> >
>> <param-name>com.sun.faces.enableMissingResourceLibraryDetection</param-name>
>> >        <param-value>true</param-value>
>> >    </context-param>
>> >    <listener>
>> >        *
>> >
>> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
>> > *
>> >    </listener>
>> >    <servlet>
>> >        <servlet-name>Faces Servlet</servlet-name>
>> >        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
>> >        <load-on-startup>1</load-on-startup>
>> >    </servlet>
>> >    <servlet-mapping>
>> >        <servlet-name>Faces Servlet</servlet-name>
>> >        <url-pattern>/faces/*</url-pattern>
>> >    </servlet-mapping>
>> >    <session-config>
>> >        <session-timeout>
>> >            30
>> >        </session-timeout>
>> >    </session-config>
>> >    <welcome-file-list>
>> >        <welcome-file>faces/index.xhtml</welcome-file>
>> >    </welcome-file-list>
>> > </web-app>
>> >
>> > ----------------  ----------------  ----------------
>> >
>> > Here are my libraries:
>> >
>> > --MYFACES
>> > myfaces-api-2.1.6.jar
>> > myfaces-impl-2.1.6.jar
>> > commons-beanutils-1.8.3.jar
>> > commons-digester-1.8.jar
>> > commons-logging-1.8.jar
>> > commons-codec-1.1.1.jar
>> > commons-collections-3.2.jar
>> > --MYFACES CODI
>> > myfaces-extcdi-alternative-implementation-module-1.0.4
>> > myfaces-extcdi-bv1-module-api-1.0.4
>> > myfaces-extcdi-bv1-module-impl-1.0.4
>> > myfaces-extcdi-core-alternative-configuration-1.0.4
>> > myfaces-extcdi-core-api-1.0.4
>> > myfaces-extcdi-core-impl-1.0.4
>> > myfaces-extcdi-jpa1-module-api-1.0.4
>> > myfaces-extcdi-jpa1-module-impl-1.0.4
>> > myfaces-extcdi-jsf20-module-api-1.0.4
>> > myfaces-extcdi-jsf20-module-impl-1.0.4
>> > myfaces-extcdi-jsf-alternative-configuration-1.0.4
>> > myfaces-extcdi-message-module-api-1.0.4
>> > myfaces-extcdi-message-module-impl-1.0.4
>> > myfaces-extcdi-scripting-module-api-1.0.4
>> > myfaces-extcdi-scripting-module-impl-1.0.4
>> >
>> >
>> > I dont know if because the "WARNING" i have other problem:
>> >
>> > javax.el.PropertyNotFoundException: Target Unreachable, identifier
>> 'myBean'
>> > resolved to null,
>> >
>> > I have in my beans.xml file under WEB-INF this:
>> >
>> > <?xml version="1.0" encoding="UTF-8"?>
>> > <beans 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/beans_1_0.xsd">
>> > </beans>
>> >
>> > and in my bean:
>> >
>> > @Named
>> > @ViewAccessScoped
>> > @Model
>> > @View(Index.class)
>> > public class MyBean implements Serializable{
>> >   public void test(){
>> >     //do nothing
>> >   }
>> >
>> > .....
>> > }
>> >
>> > and in my index.xhtml
>> >
>> > <h:commandButton value="CLICK" action="#{myBean.test}"/>
>> >
>> > if i click my button the i get this error:
>> >
>> > javax.el.PropertyNotFoundException: Target Unreachable, identifier
>> 'myBean'
>> > resolved to null
>> > viewId=/index.xhtml
>> >
>> location=C:\Users\user\Documents\NetBeansProjects\testweb\build\web\index.xhtml
>> > phaseId=INVOKE_APPLICATION(5)
>> > Caused by:
>> > javax.el.PropertyNotFoundException - Target Unreachable, identifier
>> > 'myBean' resolved to null
>> > at com.sun.el.parser.AstValue.getTarget(AstValue.java:153)
>> >
>> >
>> > I dont know if this is for the first problem  (*Both MyFaces and the RI
>> are
>> > on your classpath. Please make sure to use only one of the two
>> > JSF-implementations.*)
>> > I read i need to have my beans.xml but i have it!!!
>> >
>> > Thanks, and sorry for the english, is not my native language
>> >
>> >
>> > Im using: Netbeans 7.1, *Glassfish 3.1.2.1,* JDK 7u3, MyFaces 2.1.6, CODI
>> > 1.0.4, Windows 7.
>> >
>> > --
>> > -------------------------------------------------------------------
>> > *SCJA. José Luis Cetina*
>> > -------------------------------------------------------------------
>>
>
>
>
> --
> -------------------------------------------------------------------
> *SCJA. José Luis Cetina*
> -------------------------------------------------------------------

Re: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

Posted by José Luis Cetina <ma...@gmail.com>.
Well sorry, really this says: ERROR Both MyFaces and the RI are on your
classpath. Please make sure to use only one of the two JSF-implementations.

Grave: Both MyFaces and the RI are on your classpath. Please make sure to
use only one of the two JSF-implementations.

2012/3/12 Shasi Mitra <sh...@yahoo.com>

> It's just a warning rite? You can go ahead with your development. It
> doesn't  affect anything.
>
> Sent from my iPhone
>
> On Mar 12, 2012, at 10:10 PM, José Luis Cetina <ma...@gmail.com>
> wrote:
>
> > Im triying to start a new project for first time with myfaces, i always
> > used Mojarra but know i want to change but im having problems at the
> start:
> >
> > My only requierement is use Glassfish 3.1.2.1.
> >
> > Hi i have this WARNING:
> >
> > *Both MyFaces and the RI are on your classpath. Please make sure to use
> > only one of the two JSF-implementations.*
> >
> > Why this happend if im using only jars from myfaces?? maybe for
> glassfish i
> > think, i have these in my *glassfish-web.xml* file, under WEB-INF folder:
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish
> > Application Server 3.1 Servlet 3.0//EN" "
> > http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">
> > <glassfish-web-app error-url="">
> >    <!--Para establecer el charset a utf8 y remover el mensaje de:
> PWC4011:
> > Unable to set request character encoding to UTF-8 from context-->
> >    <parameter-encoding default-charset="UTF-8"/>
> >    *<class-loader delegate="false"/>*
> > *    <property name="useBundledJsf" value="true"/>*
> >    <!--<class-loader delegate="true"/>-->
> >    <jsp-config>
> >        <property name="keepgenerated" value="true">
> >            <description>Keep a copy of the generated servlet class' java
> > code.</description>
> >        </property>
> >    </jsp-config>
> > </glassfish-web-app>
> >
> > ----------------  ----------------  ----------------
> >
> > This is my web.xml
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:xsi="
> > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
> > http://java.sun.com/xml/ns/javaee
> > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
> >    <context-param>
> >        <param-name>javax.faces.PROJECT_STAGE</param-name>
> >        <param-value>Development</param-value>
> >    </context-param>
> >    <context-param>
> >        <param-name>com.ocpsoft.pretty.DEVELOPMENT</param-name>
> >        <param-value>true</param-value>
> >    </context-param>
> >    <context-param>
> >        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
> >        <param-value>server</param-value>
> >    </context-param>
> >    <context-param>
> >        <param-name>
> >
> javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE</param-name>
> >        <param-value>true</param-value>
> >    </context-param>
> >     <context-param>
> >        <param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
> >        <param-value>true</param-value>
> >    </context-param>
> >    <context-param>
> >
> >
> <param-name>com.sun.faces.enableMissingResourceLibraryDetection</param-name>
> >        <param-value>true</param-value>
> >    </context-param>
> >    <listener>
> >        *
> >
> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
> > *
> >    </listener>
> >    <servlet>
> >        <servlet-name>Faces Servlet</servlet-name>
> >        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> >        <load-on-startup>1</load-on-startup>
> >    </servlet>
> >    <servlet-mapping>
> >        <servlet-name>Faces Servlet</servlet-name>
> >        <url-pattern>/faces/*</url-pattern>
> >    </servlet-mapping>
> >    <session-config>
> >        <session-timeout>
> >            30
> >        </session-timeout>
> >    </session-config>
> >    <welcome-file-list>
> >        <welcome-file>faces/index.xhtml</welcome-file>
> >    </welcome-file-list>
> > </web-app>
> >
> > ----------------  ----------------  ----------------
> >
> > Here are my libraries:
> >
> > --MYFACES
> > myfaces-api-2.1.6.jar
> > myfaces-impl-2.1.6.jar
> > commons-beanutils-1.8.3.jar
> > commons-digester-1.8.jar
> > commons-logging-1.8.jar
> > commons-codec-1.1.1.jar
> > commons-collections-3.2.jar
> > --MYFACES CODI
> > myfaces-extcdi-alternative-implementation-module-1.0.4
> > myfaces-extcdi-bv1-module-api-1.0.4
> > myfaces-extcdi-bv1-module-impl-1.0.4
> > myfaces-extcdi-core-alternative-configuration-1.0.4
> > myfaces-extcdi-core-api-1.0.4
> > myfaces-extcdi-core-impl-1.0.4
> > myfaces-extcdi-jpa1-module-api-1.0.4
> > myfaces-extcdi-jpa1-module-impl-1.0.4
> > myfaces-extcdi-jsf20-module-api-1.0.4
> > myfaces-extcdi-jsf20-module-impl-1.0.4
> > myfaces-extcdi-jsf-alternative-configuration-1.0.4
> > myfaces-extcdi-message-module-api-1.0.4
> > myfaces-extcdi-message-module-impl-1.0.4
> > myfaces-extcdi-scripting-module-api-1.0.4
> > myfaces-extcdi-scripting-module-impl-1.0.4
> >
> >
> > I dont know if because the "WARNING" i have other problem:
> >
> > javax.el.PropertyNotFoundException: Target Unreachable, identifier
> 'myBean'
> > resolved to null,
> >
> > I have in my beans.xml file under WEB-INF this:
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <beans 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/beans_1_0.xsd">
> > </beans>
> >
> > and in my bean:
> >
> > @Named
> > @ViewAccessScoped
> > @Model
> > @View(Index.class)
> > public class MyBean implements Serializable{
> >   public void test(){
> >     //do nothing
> >   }
> >
> > .....
> > }
> >
> > and in my index.xhtml
> >
> > <h:commandButton value="CLICK" action="#{myBean.test}"/>
> >
> > if i click my button the i get this error:
> >
> > javax.el.PropertyNotFoundException: Target Unreachable, identifier
> 'myBean'
> > resolved to null
> > viewId=/index.xhtml
> >
> location=C:\Users\user\Documents\NetBeansProjects\testweb\build\web\index.xhtml
> > phaseId=INVOKE_APPLICATION(5)
> > Caused by:
> > javax.el.PropertyNotFoundException - Target Unreachable, identifier
> > 'myBean' resolved to null
> > at com.sun.el.parser.AstValue.getTarget(AstValue.java:153)
> >
> >
> > I dont know if this is for the first problem  (*Both MyFaces and the RI
> are
> > on your classpath. Please make sure to use only one of the two
> > JSF-implementations.*)
> > I read i need to have my beans.xml but i have it!!!
> >
> > Thanks, and sorry for the english, is not my native language
> >
> >
> > Im using: Netbeans 7.1, *Glassfish 3.1.2.1,* JDK 7u3, MyFaces 2.1.6, CODI
> > 1.0.4, Windows 7.
> >
> > --
> > -------------------------------------------------------------------
> > *SCJA. José Luis Cetina*
> > -------------------------------------------------------------------
>



-- 
-------------------------------------------------------------------
*SCJA. José Luis Cetina*
-------------------------------------------------------------------

Re: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

Posted by Shasi Mitra <sh...@yahoo.com>.
It's just a warning rite? You can go ahead with your development. It doesn't  affect anything. 

Sent from my iPhone

On Mar 12, 2012, at 10:10 PM, José Luis Cetina <ma...@gmail.com> wrote:

> Im triying to start a new project for first time with myfaces, i always
> used Mojarra but know i want to change but im having problems at the start:
> 
> My only requierement is use Glassfish 3.1.2.1.
> 
> Hi i have this WARNING:
> 
> *Both MyFaces and the RI are on your classpath. Please make sure to use
> only one of the two JSF-implementations.*
> 
> Why this happend if im using only jars from myfaces?? maybe for glassfish i
> think, i have these in my *glassfish-web.xml* file, under WEB-INF folder:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish
> Application Server 3.1 Servlet 3.0//EN" "
> http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">
> <glassfish-web-app error-url="">
>    <!--Para establecer el charset a utf8 y remover el mensaje de: PWC4011:
> Unable to set request character encoding to UTF-8 from context-->
>    <parameter-encoding default-charset="UTF-8"/>
>    *<class-loader delegate="false"/>*
> *    <property name="useBundledJsf" value="true"/>*
>    <!--<class-loader delegate="true"/>-->
>    <jsp-config>
>        <property name="keepgenerated" value="true">
>            <description>Keep a copy of the generated servlet class' java
> code.</description>
>        </property>
>    </jsp-config>
> </glassfish-web-app>
> 
> ----------------  ----------------  ----------------
> 
> This is my web.xml
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
> http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
>    <context-param>
>        <param-name>javax.faces.PROJECT_STAGE</param-name>
>        <param-value>Development</param-value>
>    </context-param>
>    <context-param>
>        <param-name>com.ocpsoft.pretty.DEVELOPMENT</param-name>
>        <param-value>true</param-value>
>    </context-param>
>    <context-param>
>        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
>        <param-value>server</param-value>
>    </context-param>
>    <context-param>
>        <param-name>
> javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE</param-name>
>        <param-value>true</param-value>
>    </context-param>
>     <context-param>
>        <param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
>        <param-value>true</param-value>
>    </context-param>
>    <context-param>
> 
> <param-name>com.sun.faces.enableMissingResourceLibraryDetection</param-name>
>        <param-value>true</param-value>
>    </context-param>
>    <listener>
>        *
> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
> *
>    </listener>
>    <servlet>
>        <servlet-name>Faces Servlet</servlet-name>
>        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
>        <load-on-startup>1</load-on-startup>
>    </servlet>
>    <servlet-mapping>
>        <servlet-name>Faces Servlet</servlet-name>
>        <url-pattern>/faces/*</url-pattern>
>    </servlet-mapping>
>    <session-config>
>        <session-timeout>
>            30
>        </session-timeout>
>    </session-config>
>    <welcome-file-list>
>        <welcome-file>faces/index.xhtml</welcome-file>
>    </welcome-file-list>
> </web-app>
> 
> ----------------  ----------------  ----------------
> 
> Here are my libraries:
> 
> --MYFACES
> myfaces-api-2.1.6.jar
> myfaces-impl-2.1.6.jar
> commons-beanutils-1.8.3.jar
> commons-digester-1.8.jar
> commons-logging-1.8.jar
> commons-codec-1.1.1.jar
> commons-collections-3.2.jar
> --MYFACES CODI
> myfaces-extcdi-alternative-implementation-module-1.0.4
> myfaces-extcdi-bv1-module-api-1.0.4
> myfaces-extcdi-bv1-module-impl-1.0.4
> myfaces-extcdi-core-alternative-configuration-1.0.4
> myfaces-extcdi-core-api-1.0.4
> myfaces-extcdi-core-impl-1.0.4
> myfaces-extcdi-jpa1-module-api-1.0.4
> myfaces-extcdi-jpa1-module-impl-1.0.4
> myfaces-extcdi-jsf20-module-api-1.0.4
> myfaces-extcdi-jsf20-module-impl-1.0.4
> myfaces-extcdi-jsf-alternative-configuration-1.0.4
> myfaces-extcdi-message-module-api-1.0.4
> myfaces-extcdi-message-module-impl-1.0.4
> myfaces-extcdi-scripting-module-api-1.0.4
> myfaces-extcdi-scripting-module-impl-1.0.4
> 
> 
> I dont know if because the "WARNING" i have other problem:
> 
> javax.el.PropertyNotFoundException: Target Unreachable, identifier 'myBean'
> resolved to null,
> 
> I have in my beans.xml file under WEB-INF this:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <beans 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/beans_1_0.xsd">
> </beans>
> 
> and in my bean:
> 
> @Named
> @ViewAccessScoped
> @Model
> @View(Index.class)
> public class MyBean implements Serializable{
>   public void test(){
>     //do nothing
>   }
> 
> .....
> }
> 
> and in my index.xhtml
> 
> <h:commandButton value="CLICK" action="#{myBean.test}"/>
> 
> if i click my button the i get this error:
> 
> javax.el.PropertyNotFoundException: Target Unreachable, identifier 'myBean'
> resolved to null
> viewId=/index.xhtml
> location=C:\Users\user\Documents\NetBeansProjects\testweb\build\web\index.xhtml
> phaseId=INVOKE_APPLICATION(5)
> Caused by:
> javax.el.PropertyNotFoundException - Target Unreachable, identifier
> 'myBean' resolved to null
> at com.sun.el.parser.AstValue.getTarget(AstValue.java:153)
> 
> 
> I dont know if this is for the first problem  (*Both MyFaces and the RI are
> on your classpath. Please make sure to use only one of the two
> JSF-implementations.*)
> I read i need to have my beans.xml but i have it!!!
> 
> Thanks, and sorry for the english, is not my native language
> 
> 
> Im using: Netbeans 7.1, *Glassfish 3.1.2.1,* JDK 7u3, MyFaces 2.1.6, CODI
> 1.0.4, Windows 7.
> 
> -- 
> -------------------------------------------------------------------
> *SCJA. José Luis Cetina*
> -------------------------------------------------------------------

Re: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

Posted by Gerhard Petracek <ge...@gmail.com>.
hi jose,

usually that depends on the concrete requirements.
however, as mentioned by leo there are application-servers which provide a
better approach for integrating e.g. myfaces-core.

furthermore, there are also a lot of users who don't need an application
server at all and just use e.g. apache tomcat which is more flexible in
view of custom frameworks.

regards,
gerhard

http://www.irian.at

Your JSF/JavaEE powerhouse -
JavaEE Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces



2012/3/14 José Luis Cetina <ma...@gmail.com>

> What application server do u use?
> El 13/03/2012 17:36, "Gerhard Petracek" <ge...@gmail.com>
> escribió:
>
> > hi leo,
> >
> > some months ago we tested myfaces-core + owb on glassfish (within the
> same
> > application) and the config needed for myfaces-core broke owb.
> >
> > regards,
> > gerhard
> >
> >
> >
> > 2012/3/13 Leonardo Uribe <lu...@gmail.com>
> >
> > > Hi
> > >
> > > I almost forgot to say:
> > >
> > >
> > >
> >
> org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
> > > cannot be cast to javassist.util.proxy.ProxyObject*
> > > *java.lang.ClassCastException:
> > >
> > >
> >
> org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
> > > cannot be cast to javassist.util.proxy.ProxyObject*
> > >
> > > It looks like some issue with the classloader.
> > >
> > > And the issue with @Model,@Named and @ViewAccessScoped could be caused
> > > because it is necessary a LifecycleProvider2 implementation for
> > > Glassfish, so the container can resolve such annotations when the bean
> > > is constructed and destroyed. Since Glassfish is CDDL+GPL licensed,
> > > there is no default LifecycleProvider bundled with MyFaces.
> > >
> > > regards,
> > >
> > > Leonardo Uribe
> > >
> > > 2012/3/13 Leonardo Uribe <lu...@gmail.com>:
> > > > Hi
> > > >
> > > > First of all, the problem is related to glassfish. This container
> does
> > > > not provide a clear way to change of jsf implementation.
> > > >
> > > > It is not that myfaces cannot run with glassfish, instead glassfish
> is
> > > > not kind with any other alternate jsf implementation.
> > > >
> > > > The classloader flag is just a workaround in my opinion, but it
> works.
> > > > The message:
> > > >
> > > > *Both MyFaces and the RI are on your classpath. Please make sure to
> use
> > > > only one of the two JSF-implementations.*
> > > >
> > > > Just ignore it. Glassfish classloader will find myfaces jars first
> > > > than mojarra ones.
> > > >
> > > > The other problem you are experiencing is related to the same
> > > > classloader flag. Since myfaces jars should be on WEB-INF/lib, those
> > > > jars cannot be found by weld, so to make it work, you need to use
> > > > another library like OpenWebBeans and put the related jar files on
> > > > WEB-INF/lib folder too. That will work but it is not ideal. Anyway,
> > > > most of the people will not care about this.
> > > >
> > > > The right way to do it should be done from glassfish side, removing
> > > > mojarra jars and including myfaces ones in the container (not
> > > > including myfaces into the webapp). But that's not easy, because I
> > > > suppose it is necessary to check if glassfish internals will still
> > > > work, and it should exists an integration code between mojarra and
> > > > glassfish somewhere. Basically, glassfish does not provide a clean
> > > > extension point to do this.
> > > >
> > > > Other containers like JBoss do things right, they provide a deployer
> > > > that uses myfaces integration code. See:
> > > >
> > > >
> > >
> >
> https://cwiki.apache.org/confluence/display/MYFACES/Integration+with+application+and+web+servers
> > > >
> > > > regards,
> > > >
> > > > Leonardo Uribe
> > > >
> > > >
> > > > 2012/3/13 Gerhard Petracek <ge...@gmail.com>:
> > > >> hi mike,
> > > >>
> > > >> right now geronimo3 isn't in the list [1] of the supported servers.
> > > >>
> > > >> regards,
> > > >> gerhard
> > > >>
> > > >> [1]
> > > >>
> > >
> >
> https://cwiki.apache.org/confluence/display/EXTCDI/Intro#Intro-Compatibility
> > > >>
> > > >>
> > > >> http://www.irian.at
> > > >>
> > > >> Your JSF/JavaEE powerhouse -
> > > >> JavaEE Consulting, Development and
> > > >> Courses in English and German
> > > >>
> > > >> Professional Support for Apache MyFaces
> > > >>
> > > >>
> > > >>
> > > >> 2012/3/13 Mike Kienenberger <mk...@gmail.com>
> > > >>
> > > >>> I don't have much experience with them, but Apache Geronimo and,
> to a
> > > >>> lesser degree, Apache Tomcat would be alternatives to Glassfish.
> > > >>> There may be others.
> > > >>>
> > > >>> 2012/3/13 José Luis Cetina <ma...@gmail.com>:
> > > >>> > Let me tell you that the example deploy and RAN without any
> problem
> > > and i
> > > >>> > dont move any line of code, i only deploy in tomcat without any
> > > problem,
> > > >>> i
> > > >>> > want to use apache  product's like myfaces, CODI, etc, i want to
> > > know if
> > > >>> > you can give me an objective suggestion with what Application
> > Server
> > > i
> > > >>> can
> > > >>> > use with your products, i have the opportunity for choose.
> > > >>> >
> > > >>> > Thanks
> > > >>> >
> > > >>> >
> > > >>> > 2012/3/13 Gerhard Petracek <ge...@gmail.com>
> > > >>> >
> > > >>> >> hi jose,
> > > >>> >>
> > > >>> >> you can run the generated demos with a servlet container like
> > jetty
> > > (see
> > > >>> >> the comment in the generated pom.xml file), tomcat,... .
> > > >>> >> by default the myfaces-core profile is activated.
> > > >>> >>
> > > >>> >> we just need to know if your implementation works with such a
> > > generated
> > > >>> >> application.
> > > >>> >> esp. because glassfish adds further complexity with the
> mentioned
> > > >>> >> classloader-config (e.g. with this config-entries you can't use
> > > >>> >> myfaces-core and owb in parallel - that's a known classloading
> > issue
> > > >>> >> of glassfish).
> > > >>> >>
> > > >>> >> regards,
> > > >>> >> gerhard
> > > >>> >>
> > > >>> >>
> > > >>> >>
> > > >>> >> 2012/3/13 José Luis Cetina <ma...@gmail.com>
> > > >>> >>
> > > >>> >> > I downloaded the example number 11 and i run the project
> without
> > > any
> > > >>> >> > problem, but i can see that the project is using Mojarra
> > > "Profile" as
> > > >>> JSF
> > > >>> >> > Impl (the log sayed to me Mojarra...). Then if i change to use
> > > MyFaces
> > > >>> >> > chossing the myfaces profile and adding these lines to my
> > > >>> >> > g*lassfish-web.xml
> > > >>> >> > *:
> > > >>> >> >
> > > >>> >> > <class-loader delegate="false"/>
> > > >>> >> > <property name="useBundledJsf" value="true"/>
> > > >>> >> >
> > > >>> >> > then i got an *exception *and i CANT run the project:
> > > >>> >> >
> > > >>> >> > Here is the *glassfish log:*
> > > >>> >> > -----------------------------------------------------
> > > >>> >> >
> > > >>> >> > Launching GlassFish on Felix platform
> > > >>> >> > Información: Running GlassFish Version: GlassFish Server Open
> > > Source
> > > >>> >> > Edition 3.1.2 (build 23)
> > > >>> >> > Información: Grizzly Framework 1.9.46 started in: 78ms - bound
> > to
> > > [
> > > >>> >> > 0.0.0.0:8080]
> > > >>> >> > Información: Grizzly Framework 1.9.46 started in: 56ms - bound
> > to
> > > [
> > > >>> >> > 0.0.0.0:8181]
> > > >>> >> > Información: Grizzly Framework 1.9.46 started in: 106ms -
> bound
> > > to [
> > > >>> >> > 0.0.0.0:3700]
> > > >>> >> > Información: Grizzly Framework 1.9.46 started in: 120ms -
> bound
> > > to [
> > > >>> >> > 0.0.0.0:4848]
> > > >>> >> > Información: Grizzly Framework 1.9.46 started in: 146ms -
> bound
> > > to [
> > > >>> >> > 0.0.0.0:7676]
> > > >>> >> > Información: The Admin Console is already installed, but not
> yet
> > > >>> loaded.
> > > >>> >> > Información: Registered
> > > >>> >> > org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy
> for
> > > >>> >> > persistence-type = replicated in BackingStoreFactoryRegistry
> > > >>> >> > Información: GlassFish Server Open Source Edition 3.1.2 (23)
> > > tiempo de
> > > >>> >> > inicio: Felix (2,441ms), servicios de inicio(1,240ms),
> > > total(3,681ms)
> > > >>> >> > Información: JMX005: JMXStartupService had Started
> JMXConnector
> > on
> > > >>> >> > JMXService URL service:jmx:rmi://
> > > >>> >> > 192.168.1.209:8686/jndi/rmi://192.168.1.209:8686/jmxrmi
> > > >>> >> > Información: Hibernate Validator 4.2.0.Final
> > > >>> >> > Información: Grizzly Framework 1.9.46 started in: 49ms - bound
> > to
> > > [
> > > >>> >> > 0.0.0.0:8080]
> > > >>> >> > Información: SEC1002: Security Manager is OFF.
> > > >>> >> > Información: SEC1010: Entering Security Startup Service
> > > >>> >> > Información: SEC1143: Loading policy provider
> > > >>> >> > com.sun.enterprise.security.provider.PolicyWrapper.
> > > >>> >> > Información: SEC1115: Realm [admin-realm] of classtype
> > > >>> >> > [com.sun.enterprise.security.auth.realm.file.FileRealm]
> > > successfully
> > > >>> >> > created.
> > > >>> >> > Información: SEC1115: Realm [file] of classtype
> > > >>> >> > [com.sun.enterprise.security.auth.realm.file.FileRealm]
> > > successfully
> > > >>> >> > created.
> > > >>> >> > Información: SEC1115: Realm [certificate] of classtype
> > > >>> >> >
> > > [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm]
> > > >>> >> > successfully created.
> > > >>> >> > Información: SEC1011: Security Service(s) Started Successfully
> > > >>> >> > Información: WEB0169: Created HTTP listener [http-listener-1]
> on
> > > >>> >> host/port
> > > >>> >> > [
> > > >>> >> > 0.0.0.0:8080]
> > > >>> >> > Información: WEB0169: Created HTTP listener [http-listener-2]
> on
> > > >>> >> host/port
> > > >>> >> > [
> > > >>> >> > 0.0.0.0:8181]
> > > >>> >> > Información: WEB0169: Created HTTP listener [admin-listener]
> on
> > > >>> >> host/port [
> > > >>> >> > 0.0.0.0:4848]
> > > >>> >> > Información: WEB0171: Created virtual server [server]
> > > >>> >> > Información: WEB0171: Created virtual server [__asadmin]
> > > >>> >> > Información: WEB0172: Virtual server [server] loaded default
> web
> > > >>> module
> > > >>> >> []
> > > >>> >> > Información: WELD-000900 1.1.4 (Final)
> > > >>> >> > Grave: Exception while loading the app
> > > >>> >> > *Grave: Exception while loading the app :
> > > >>> >> >
> > > >>> >> >
> > > >>> >>
> > > >>>
> > >
> >
> org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
> > > >>> >> > cannot be cast to javassist.util.proxy.ProxyObject*
> > > >>> >> > *java.lang.ClassCastException:
> > > >>> >> >
> > > >>> >> >
> > > >>> >>
> > > >>>
> > >
> >
> org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
> > > >>> >> > cannot be cast to javassist.util.proxy.ProxyObject*
> > > >>> >> > at
> > > >>>
> org.jboss.weld.bean.proxy.ProxyFactory.create(ProxyFactory.java:245)
> > > >>> >> > at
> > > >>> >> >
> > > >>> >> >
> > > >>> >>
> > > >>>
> > >
> >
> org.jboss.weld.bean.builtin.ee.AbstractEEBean.<init>(AbstractEEBean.java:43)
> > > >>> >> > at
> > > >>> >> >
> > > >>> >> >
> > > >>> >>
> > > >>>
> > >
> >
> org.jboss.weld.bean.builtin.ee.UserTransactionBean.<init>(UserTransactionBean.java:52)
> > > >>> >> > at
> > > >>> >> >
> > > >>> >> >
> > > >>> >>
> > > >>>
> > >
> >
> org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:177)
> > > >>> >> > at
> > > >>> >> >
> > > >>> >>
> > > >>>
> > >
> >
> org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:336)
> > > >>> >> > at
> org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:179)
> > > >>> >> > at
> > org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:128)
> > > >>> >> > at
> > > >>> >> >
> > > >>> >>
> > > >>>
> > >
> >
> org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:277)
> > > >>> >> > at
> > > >>> >> >
> > > >>> >> >
> > > >>> >>
> > > >>>
> > >
> >
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:460)
> > > >>> >> > at
> > > >>> >> >
> > > >>> >> >
> > > >>> >>
> > > >>>
> > >
> >
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
> > > >>> >> > at
> > > >>> >> >
> > > >>> >> >
> > > >>> >>
> > > >>>
> > >
> >
> org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
> > > >>> >> > at
> > > >>> >> >
> > > >>> >> >
> > > >>> >>
> > > >>>
> > >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
> > > >>> >> > at
> > > >>> >> >
> > > >>> >> >
> > > >>> >>
> > > >>>
> > >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
> > > >>> >> > at
> > > >>> >> >
> > > >>> >> >
> > > >>> >>
> > > >>>
> > >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
> > > >>> >> > at
> > > >>> >> >
> > > >>> >> >
> > > >>> >>
> > > >>>
> > >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
> > > >>> >> > at
> > > >>> >> >
> > > >>> >> >
> > > >>> >>
> > > >>>
> > >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
> > > >>> >> > at
> > > >>> >> >
> > > >>> >> >
> > > >>> >>
> > > >>>
> > >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
> > > >>> >> > at
> > > >>> >> >
> > > >>>
> > >
> com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)
> > > >>> >> > at
> > > >>> >>
> > > com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)
> > > >>> >> > at
> > > >>> >> >
> > > >>> >>
> > > >>>
> > >
> >
> com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
> > > >>> >> > at
> > > >>> >> >
> > > >>> >>
> > > >>>
> > >
> >
> com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
> > > >>> >> > at
> > > >>> >> >
> > > >>> >> >
> > > >>> >>
> > > >>>
> > >
> >
> com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
> > > >>> >> > at
> > > >>> >> >
> > > >>> >> >
> > > >>> >>
> > > >>>
> > >
> >
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
> > > >>> >> > at
> > > >>> >>
> > >
> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
> > > >>> >> > at
> > > >>>
> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
> > > >>> >> > at
> > > com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
> > > >>> >> > at
> > > >>> >> >
> > > >>> >> >
> > > >>> >>
> > > >>>
> > >
> >
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
> > > >>> >> > 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:722)
> > > >>> >> >
> > > >>> >> > Información: WEB0169: Created HTTP listener [http-listener-2]
> on
> > > >>> >> host/port
> > > >>> >> > [
> > > >>> >> > 0.0.0.0:8181]
> > > >>> >> > Información: Grizzly Framework 1.9.46 started in: 45ms - bound
> > to
> > > [
> > > >>> >> > 0.0.0.0:8181]
> > > >>> >> >
> > > >>> >> >
> > > >>> >> > -----------------------------------------------------
> > > >>> >> >
> > > >>> >> > 2012/3/13 Gerhard Petracek <ge...@gmail.com>
> > > >>> >> >
> > > >>> >> > > hi jose,
> > > >>> >> > >
> > > >>> >> > > you can use the myfaces-archetype to generate the correct
> > > config for
> > > >>> >> > > myfaces-core (as well as mojarra) + owb (+ myfaces codi):
> > > >>> >> > >
> > > >>> >> > > mvn archetype:generate -DarchetypeCatalog=
> > > http://myfaces.apache.org
> > > >>> >> > > -> e.g. select #11 (afterwards you just have to update the
> > > versions
> > > >>> in
> > > >>> >> > the
> > > >>> >> > > generated pom.xml file.)
> > > >>> >> > >
> > > >>> >> > > if it still doesn't work with the generated example, you can
> > > provide
> > > >>> >> the
> > > >>> >> > > example and we can have a look at it.
> > > >>> >> > >
> > > >>> >> > > regards,
> > > >>> >> > > gerhard
> > > >>> >> > >
> > > >>> >> > >
> > > >>> >> > >
> > > >>> >> > > 2012/3/13 José Luis Cetina <ma...@gmail.com>
> > > >>> >> > >
> > > >>> >> > > > I see, i erase and only put @Named and @ ViewAccessScoped
> > and
> > > get
> > > >>> the
> > > >>> >> > > same
> > > >>> >> > > > error, but i try with only @Named and @RequestScoped
> (java)
> > > and
> > > >>> still
> > > >>> >> > the
> > > >>> >> > > > error, i think the problem is the @Named is not injecting
> my
> > > bean,
> > > >>> >> not
> > > >>> >> > > > MyFaces, because if i use @ManagedBean this works ok, but
> i
> > > dont
> > > >>> >> > > understand
> > > >>> >> > > > why if i chagen from MyFaces to Mojarra the @Named and
> > > >>> >> > @ViewAccessScoped
> > > >>> >> > > > works ok!!
> > > >>> >> > > >
> > > >>> >> > > > :(
> > > >>> >> > > >
> > > >>> >> > > >
> > > >>> >> > > > 2012/3/13 Rafael Pestano <rm...@yahoo.com.br>
> > > >>> >> > > >
> > > >>> >> > > > > just a question, why do you have @Model,@Named and
> > > >>> >> @ViewAccessScoped
> > > >>> >> > in
> > > >>> >> > > > > the same bean?
> > > >>> >> > > > >
> > > >>> >> > > > > i think you need @model OR @Named and @ViewAccessScoped
> > > >>> >> > > > >
> > > >>> >> > > > > or im wrong?
> > > >>> >> > > > >
> > > >>> >> > > > > Att,
> > > >>> >> > > > > Rafael M. Pestano
> > > >>> >> > > > > Desenvolvedor Java Cia. de Processamento de Dados do Rio
> > > Grande
> > > >>> do
> > > >>> >> > Sul
> > > >>> >> > > > > Graduando em Ciência da Computação UFRGS
> > > >>> >> > > > > @realpestano
> > > >>> >> > > > > http://code.google.com/p/jsf-conventions-framework/
> > > >>> >> > > > >
> > > >>> >> > > > >
> > > >>> >> > > > >
> > > >>> >> > > > > ----- Mensagem original -----
> > > >>> >> > > > > De: José Luis Cetina <ma...@gmail.com>
> > > >>> >> > > > > Para: MyFaces Discussion <us...@myfaces.apache.org>
> > > >>> >> > > > > Cc:
> > > >>> >> > > > > Enviadas: Terça-feira, 13 de Março de 2012 12:28
> > > >>> >> > > > > Assunto: Re: Both MyFaces and the RI are on your
> > classpath.
> > > >>> Please
> > > >>> >> > make
> > > >>> >> > > > > sure to use only one of the two JSF-implementations.
> > > >>> >> > > > >
> > > >>> >> > > > > I see now im using MyFaces instead of Mojarra, the
> "ERROR"
> > > >>> Message
> > > >>> >> > > still
> > > >>> >> > > > > there, but the application can deploy. My second problem
> > > >>> persist:
> > > >>> >> > > > >
> > > >>> >> > > > > javax.el.PropertyNotFoundException: Target Unreachable,
> > > >>> identifier
> > > >>> >> > > > 'myBean'
> > > >>> >> > > > > resolved to null
> > > >>> >> > > > > viewId=/index.xhtml
> > > >>> >> > > > >
> > > >>> >> > > > >
> > > >>> >> > > >
> > > >>> >> > >
> > > >>> >> >
> > > >>> >>
> > > >>>
> > >
> >
> location=C:\Users\user\Documents\NetBeansProjects\testweb\build\web\index.xhtml
> > > >>> >> > > > > phaseId=INVOKE_APPLICATION(5)
> > > >>> >> > > > >
> > > >>> >> > > > >
> > > >>> >> > > > > i have the my beans.xml under WEB-INF folder:
> > > >>> >> > > > > beans.xml:
> > > >>> >> > > > >
> > > >>> >> > > > > <?xml version="1.0" encoding="UTF-8"?>
> > > >>> >> > > > > <beans 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/beans_1_0.xsd">
> > > >>> >> > > > > </beans>
> > > >>> >> > > > >
> > > >>> >> > > > >
> > > >>> >> > > > > And my bean its ok:
> > > >>> >> > > > >
> > > >>> >> > > > > @Named
> > > >>> >> > > > > @ViewAccessScoped
> > > >>> >> > > > > @Model
> > > >>> >> > > > > @View(Index.class)
> > > >>> >> > > > > public class MyBean implements Serializable{
> > > >>> >> > > > > }
> > > >>> >> > > > >
> > > >>> >> > > > > If i change from MyFaces to Mojarra this work ok!!!   :(
> > > >>> >> > > > >
> > > >>> >> > > > > Somebody know what can i do?
> > > >>> >> > > > >
> > > >>> >> > > > > *Im using: Netbeans 7.1, Glassfish 3.1.2.1, JDK 7u3,
> > MyFaces
> > > >>> 2.1.6,
> > > >>> >> > > > > CODI 1.0.4, Windows 7. *
> > > >>> >> > > > > *
> > > >>> >> > > > > *
> > > >>> >> > > > > *Thanks.*
> > > >>> >> > > > > *
> > > >>> >> > > > > *
> > > >>> >> > > > >
> > > >>> >> > > >
> > > >>> >> > >
> > > >>> >> >
> > > >>> >>
> > > >>>
> > >
> >
> *-------------------------------------------------------------------------*
> > > >>> >> > > > >
> > > >>> >> > > > >
> > > >>> >> > > > > 2012/3/13 Werner Punz <we...@gmail.com>
> > > >>> >> > > > >
> > > >>> >> > > > > > Mhh this looks like a bug in Glassfish to me, the
> > entries
> > >  in
> > > >>> the
> > > >>> >> > > > > > glassfish-web.xml look correct to me. Problem is
> > generally
> > > >>> that
> > > >>> >> > > > glassfish
> > > >>> >> > > > > > is not to keen on overrides of its system libs in my
> > > >>> experience.
> > > >>> >> > Even
> > > >>> >> > > > > while
> > > >>> >> > > > > > myfaces runs, try to replace Weld for instance and you
> > run
> > > >>> into a
> > > >>> >> > > mess.
> > > >>> >> > > > > > Glassfish as good as it is is an all or nothing pack
> in
> > > many
> > > >>> >> cases.
> > > >>> >> > > > > > But it has been some time since I last touched
> > Glassfish,
> > > >>> things
> > > >>> >> > > might
> > > >>> >> > > > > > have changed.
> > > >>> >> > > > > >
> > > >>> >> > > > > >
> > > >>> >> > > > > >
> > > >>> >> > > > > > Werner
> > > >>> >> > > > > >
> > > >>> >> > > > > >
> > > >>> >> > > > > > Am 12.03.12 17:40, schrieb José Luis Cetina:
> > > >>> >> > > > > >
> > > >>> >> > > > > >> Im triying to start a new project for first time with
> > > >>> myfaces, i
> > > >>> >> > > > always
> > > >>> >> > > > > >> used Mojarra but know i want to change but im having
> > > >>> problems at
> > > >>> >> > the
> > > >>> >> > > > > >> start:
> > > >>> >> > > > > >>
> > > >>> >> > > > > >> My only requierement is use Glassfish 3.1.2.1.
> > > >>> >> > > > > >>
> > > >>> >> > > > > >> Hi i have this WARNING:
> > > >>> >> > > > > >>
> > > >>> >> > > > > >> *Both MyFaces and the RI are on your classpath.
> Please
> > > make
> > > >>> sure
> > > >>> >> > to
> > > >>> >> > > > use
> > > >>> >> > > > > >> only one of the two JSF-implementations.*
> > > >>> >> > > > > >>
> > > >>> >> > > > > >>
> > > >>> >> > > > > >> Why this happend if im using only jars from myfaces??
> > > maybe
> > > >>> for
> > > >>> >> > > > > glassfish
> > > >>> >> > > > > >> i
> > > >>> >> > > > > >> think, i have these in my *glassfish-web.xml* file,
> > under
> > > >>> >> WEB-INF
> > > >>> >> > > > > folder:
> > > >>> >> > > > > >>
> > > >>> >> > > > > >>
> > > >>> >> > > > > >> <?xml version="1.0" encoding="UTF-8"?>
> > > >>> >> > > > > >> <!DOCTYPE glassfish-web-app PUBLIC
> > "-//GlassFish.org//DTD
> > > >>> >> > GlassFish
> > > >>> >> > > > > >> Application Server 3.1 Servlet 3.0//EN" "
> > > >>> >> > > > > >>
> > http://glassfish.org/dtds/**glassfish-web-app_3_0-1.dtd<
> > > >>> >> > > > > http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd>
> > > >>> >> > > > > >> ">
> > > >>> >> > > > > >> <glassfish-web-app error-url="">
> > > >>> >> > > > > >>     <!--Para establecer el charset a utf8 y remover
> el
> > > >>> mensaje
> > > >>> >> de:
> > > >>> >> > > > > >> PWC4011:
> > > >>> >> > > > > >> Unable to set request character encoding to UTF-8
> from
> > > >>> >> context-->
> > > >>> >> > > > > >>     <parameter-encoding default-charset="UTF-8"/>
> > > >>> >> > > > > >>     *<class-loader delegate="false"/>*
> > > >>> >> > > > > >> *<property name="useBundledJsf" value="true"/>*
> > > >>> >> > > > > >>
> > > >>> >> > > > > >>     <!--<class-loader delegate="true"/>-->
> > > >>> >> > > > > >>     <jsp-config>
> > > >>> >> > > > > >>         <property name="keepgenerated" value="true">
> > > >>> >> > > > > >>             <description>Keep a copy of the generated
> > > servlet
> > > >>> >> > class'
> > > >>> >> > > > > java
> > > >>> >> > > > > >> code.</description>
> > > >>> >> > > > > >>         </property>
> > > >>> >> > > > > >>     </jsp-config>
> > > >>> >> > > > > >> </glassfish-web-app>
> > > >>> >> > > > > >>
> > > >>> >> > > > > >> ----------------  ----------------  ----------------
> > > >>> >> > > > > >>
> > > >>> >> > > > > >> This is my web.xml
> > > >>> >> > > > > >>
> > > >>> >> > > > > >> <?xml version="1.0" encoding="UTF-8"?>
> > > >>> >> > > > > >> <web-app version="3.0" xmlns="
> > > >>> >> http://java.sun.com/**xml/ns/javaee
> > > >>> >> > <
> > > >>> >> > > > > http://java.sun.com/xml/ns/javaee>"
> > > >>> >> > > > > >> xmlns:xsi="
> > > >>> >> > > > > >> http://www.w3.org/2001/**XMLSchema-instance<
> > > >>> >> > > > > http://www.w3.org/2001/XMLSchema-instance>"
> > > >>> >> > > > > >> xsi:schemaLocation="
> > > >>> >> > > > > >> http://java.sun.com/xml/ns/**javaee <
> > > >>> >> > > > http://java.sun.com/xml/ns/javaee>
> > > >>> >> > > > > >> http://java.sun.com/xml/ns/**javaee/web-app_3_0.xsd<
> > > >>> >> > > > > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd>
> > > >>> >> > > > > >> ">
> > > >>> >> > > > > >>     <context-param>
> > > >>> >> > > > > >>
> > > <param-name>javax.faces.**PROJECT_STAGE</param-name>
> > > >>> >> > > > > >>         <param-value>Development</**param-value>
> > > >>> >> > > > > >>     </context-param>
> > > >>> >> > > > > >>     <context-param>
> > > >>> >> > > > > >>
> > > >>> >> > <param-name>com.ocpsoft.**pretty.DEVELOPMENT</param-**name>
> > > >>> >> > > > > >>         <param-value>true</param-**value>
> > > >>> >> > > > > >>     </context-param>
> > > >>> >> > > > > >>     <context-param>
> > > >>> >> > > > > >>
> > > >>> >> <param-name>javax.faces.STATE_**SAVING_METHOD</param-name>
> > > >>> >> > > > > >>         <param-value>server</param-**value>
> > > >>> >> > > > > >>     </context-param>
> > > >>> >> > > > > >>     <context-param>
> > > >>> >> > > > > >>         <param-name>
> > > >>> >> > > > > >>
> > > javax.faces.DATETIMECONVERTER_**DEFAULT_TIMEZONE_IS_SYSTEM_**
> > > >>> >> > > > > >> TIMEZONE</param-name>
> > > >>> >> > > > > >>         <param-value>true</param-**value>
> > > >>> >> > > > > >>     </context-param>
> > > >>> >> > > > > >>      <context-param>
> > > >>> >> > > > > >>
> > > >>> >> > > >
> > > <param-name>javax.faces.**FACELETS_SKIP_COMMENTS</param-**name>
> > > >>> >> > > > > >>         <param-value>true</param-**value>
> > > >>> >> > > > > >>     </context-param>
> > > >>> >> > > > > >>     <context-param>
> > > >>> >> > > > > >>
> > > >>> >> > > > > >>
> > > <param-name>com.sun.faces.**enableMissingResourceLibraryDe**
> > > >>> >> > > > > >> tection</param-name>
> > > >>> >> > > > > >>         <param-value>true</param-**value>
> > > >>> >> > > > > >>     </context-param>
> > > >>> >> > > > > >>     <listener>
> > > >>> >> > > > > >>         *
> > > >>> >> > > > > >> <listener-class>org.apache.**myfaces.webapp.**
> > > >>> >> > > > > >> StartupServletContextListener<**/listener-class>
> > > >>> >> > > > > >> *
> > > >>> >> > > > > >>     </listener>
> > > >>> >> > > > > >>     <servlet>
> > > >>> >> > > > > >>         <servlet-name>Faces Servlet</servlet-name>
> > > >>> >> > > > > >>
> > > >>> >> > <servlet-class>javax.faces.**webapp.FacesServlet</servlet-**
> > > >>> >> > > > > >> class>
> > > >>> >> > > > > >>         <load-on-startup>1</load-on-**startup>
> > > >>> >> > > > > >>     </servlet>
> > > >>> >> > > > > >>     <servlet-mapping>
> > > >>> >> > > > > >>         <servlet-name>Faces Servlet</servlet-name>
> > > >>> >> > > > > >>         <url-pattern>/faces/*</url-**pattern>
> > > >>> >> > > > > >>     </servlet-mapping>
> > > >>> >> > > > > >>     <session-config>
> > > >>> >> > > > > >>         <session-timeout>
> > > >>> >> > > > > >>             30
> > > >>> >> > > > > >>         </session-timeout>
> > > >>> >> > > > > >>     </session-config>
> > > >>> >> > > > > >>     <welcome-file-list>
> > > >>> >> > > > > >>
> > <welcome-file>faces/index.**xhtml</welcome-file>
> > > >>> >> > > > > >>     </welcome-file-list>
> > > >>> >> > > > > >> </web-app>
> > > >>> >> > > > > >>
> > > >>> >> > > > > >> ----------------  ----------------  ----------------
> > > >>> >> > > > > >>
> > > >>> >> > > > > >> Here are my libraries:
> > > >>> >> > > > > >>
> > > >>> >> > > > > >> --MYFACES
> > > >>> >> > > > > >> myfaces-api-2.1.6.jar
> > > >>> >> > > > > >> myfaces-impl-2.1.6.jar
> > > >>> >> > > > > >> commons-beanutils-1.8.3.jar
> > > >>> >> > > > > >> commons-digester-1.8.jar
> > > >>> >> > > > > >> commons-logging-1.8.jar
> > > >>> >> > > > > >> commons-codec-1.1.1.jar
> > > >>> >> > > > > >> commons-collections-3.2.jar
> > > >>> >> > > > > >> --MYFACES CODI
> > > >>> >> > > > > >>
> > myfaces-extcdi-alternative-**implementation-module-1.0.4
> > > >>> >> > > > > >> myfaces-extcdi-bv1-module-api-**1.0.4
> > > >>> >> > > > > >> myfaces-extcdi-bv1-module-**impl-1.0.4
> > > >>> >> > > > > >>
> myfaces-extcdi-core-**alternative-configuration-1.0.**4
> > > >>> >> > > > > >> myfaces-extcdi-core-api-1.0.4
> > > >>> >> > > > > >> myfaces-extcdi-core-impl-1.0.4
> > > >>> >> > > > > >> myfaces-extcdi-jpa1-module-**api-1.0.4
> > > >>> >> > > > > >> myfaces-extcdi-jpa1-module-**impl-1.0.4
> > > >>> >> > > > > >> myfaces-extcdi-jsf20-module-**api-1.0.4
> > > >>> >> > > > > >> myfaces-extcdi-jsf20-module-**impl-1.0.4
> > > >>> >> > > > > >>
> myfaces-extcdi-jsf-**alternative-configuration-1.0.**4
> > > >>> >> > > > > >> myfaces-extcdi-message-module-**api-1.0.4
> > > >>> >> > > > > >> myfaces-extcdi-message-module-**impl-1.0.4
> > > >>> >> > > > > >> myfaces-extcdi-scripting-**module-api-1.0.4
> > > >>> >> > > > > >> myfaces-extcdi-scripting-**module-impl-1.0.4
> > > >>> >> > > > > >>
> > > >>> >> > > > > >>
> > > >>> >> > > > > >> I dont know if because the "WARNING" i have other
> > > problem:
> > > >>> >> > > > > >>
> > > >>> >> > > > > >> javax.el.**PropertyNotFoundException: Target
> > Unreachable,
> > > >>> >> > identifier
> > > >>> >> > > > > >> 'myBean'
> > > >>> >> > > > > >> resolved to null,
> > > >>> >> > > > > >>
> > > >>> >> > > > > >> I have in my beans.xml file under WEB-INF this:
> > > >>> >> > > > > >>
> > > >>> >> > > > > >> <?xml version="1.0" encoding="UTF-8"?>
> > > >>> >> > > > > >> <beans xmlns="http://java.sun.com/**xml/ns/javaee<
> > > >>> >> > > > > http://java.sun.com/xml/ns/javaee>
> > > >>> >> > > > > >> "
> > > >>> >> > > > > >>        xmlns:xsi="
> > > >>> http://www.w3.org/**2001/XMLSchema-instance<
> > > >>> >> > > > > http://www.w3.org/2001/XMLSchema-instance>
> > > >>> >> > > > > >> "
> > > >>> >> > > > > >>        xsi:schemaLocation="http://**
> > > >>> java.sun.com/xml/ns/javaee<
> > > >>> >> > > > > http://java.sun.com/xml/ns/javaee>
> > > >>> >> > > > > >> http://java.sun.com/xml/ns/**javaee/beans_1_0.xsd<
> > > >>> >> > > > > http://java.sun.com/xml/ns/javaee/beans_1_0.xsd>
> > > >>> >> > > > > >> ">
> > > >>> >> > > > > >> </beans>
> > > >>> >> > > > > >>
> > > >>> >> > > > > >> and in my bean:
> > > >>> >> > > > > >>
> > > >>> >> > > > > >> @Named
> > > >>> >> > > > > >> @ViewAccessScoped
> > > >>> >> > > > > >> @Model
> > > >>> >> > > > > >> @View(Index.class)
> > > >>> >> > > > > >> public class MyBean implements Serializable{
> > > >>> >> > > > > >>    public void test(){
> > > >>> >> > > > > >>      //do nothing
> > > >>> >> > > > > >>    }
> > > >>> >> > > > > >>
> > > >>> >> > > > > >> .....
> > > >>> >> > > > > >> }
> > > >>> >> > > > > >>
> > > >>> >> > > > > >> and in my index.xhtml
> > > >>> >> > > > > >>
> > > >>> >> > > > > >> <h:commandButton value="CLICK"
> > action="#{myBean.test}"/>
> > > >>> >> > > > > >>
> > > >>> >> > > > > >> if i click my button the i get this error:
> > > >>> >> > > > > >>
> > > >>> >> > > > > >> javax.el.**PropertyNotFoundException: Target
> > Unreachable,
> > > >>> >> > identifier
> > > >>> >> > > > > >> 'myBean'
> > > >>> >> > > > > >> resolved to null
> > > >>> >> > > > > >> viewId=/index.xhtml
> > > >>> >> > > > > >>
> location=C:\Users\user\**Documents\NetBeansProjects\**
> > > >>> >> > > > > >> testweb\build\web\index.xhtml
> > > >>> >> > > > > >> phaseId=INVOKE_APPLICATION(5)
> > > >>> >> > > > > >> Caused by:
> > > >>> >> > > > > >> javax.el.**PropertyNotFoundException - Target
> > > Unreachable,
> > > >>> >> > > identifier
> > > >>> >> > > > > >> 'myBean' resolved to null
> > > >>> >> > > > > >> at
> > > com.sun.el.parser.AstValue.**getTarget(AstValue.java:153)
> > > >>> >> > > > > >>
> > > >>> >> > > > > >>
> > > >>> >> > > > > >> I dont know if this is for the first problem  (*Both
> > > MyFaces
> > > >>> and
> > > >>> >> > the
> > > >>> >> > > > RI
> > > >>> >> > > > > >> are
> > > >>> >> > > > > >>
> > > >>> >> > > > > >> on your classpath. Please make sure to use only one
> of
> > > the
> > > >>> two
> > > >>> >> > > > > >> JSF-implementations.*)
> > > >>> >> > > > > >>
> > > >>> >> > > > > >> I read i need to have my beans.xml but i have it!!!
> > > >>> >> > > > > >>
> > > >>> >> > > > > >> Thanks, and sorry for the english, is not my native
> > > language
> > > >>> >> > > > > >>
> > > >>> >> > > > > >>
> > > >>> >> > > > > >> Im using: Netbeans 7.1, *Glassfish 3.1.2.1,* JDK 7u3,
> > > MyFaces
> > > >>> >> > 2.1.6,
> > > >>> >> > > > > CODI
> > > >>> >> > > > > >> 1.0.4, Windows 7.
> > > >>> >> > > > > >>
> > > >>> >> > > > > >>
> > > >>> >> > > > > >
> > > >>> >> > > > > >
> > > >>> >> > > > >
> > > >>> >> > > > >
> > > >>> >> > > > > --
> > > >>> >> > > > >
> > > >>> -------------------------------------------------------------------
> > > >>> >> > > > > *SCJA. José Luis Cetina*
> > > >>> >> > > > >
> > > >>> -------------------------------------------------------------------
> > > >>> >> > > > >
> > > >>> >> > > > >
> > > >>> >> > > >
> > > >>> >> > > >
> > > >>> >> > > > --
> > > >>> >> > > >
> > > >>> -------------------------------------------------------------------
> > > >>> >> > > > *SCJA. José Luis Cetina*
> > > >>> >> > > >
> > > >>> -------------------------------------------------------------------
> > > >>> >> > > >
> > > >>> >> > >
> > > >>> >> >
> > > >>> >> >
> > > >>> >> >
> > > >>> >> > --
> > > >>> >> >
> > > -------------------------------------------------------------------
> > > >>> >> > *SCJA. José Luis Cetina*
> > > >>> >> >
> > > -------------------------------------------------------------------
> > > >>> >> >
> > > >>> >>
> > > >>> >
> > > >>> >
> > > >>> >
> > > >>> > --
> > > >>> >
> -------------------------------------------------------------------
> > > >>> > *SCJA. José Luis Cetina*
> > > >>> >
> -------------------------------------------------------------------
> > > >>>
> > >
> >
>

Re: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

Posted by José Luis Cetina <ma...@gmail.com>.
What application server do u use?
El 13/03/2012 17:36, "Gerhard Petracek" <ge...@gmail.com>
escribió:

> hi leo,
>
> some months ago we tested myfaces-core + owb on glassfish (within the same
> application) and the config needed for myfaces-core broke owb.
>
> regards,
> gerhard
>
>
>
> 2012/3/13 Leonardo Uribe <lu...@gmail.com>
>
> > Hi
> >
> > I almost forgot to say:
> >
> >
> >
> org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
> > cannot be cast to javassist.util.proxy.ProxyObject*
> > *java.lang.ClassCastException:
> >
> >
> org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
> > cannot be cast to javassist.util.proxy.ProxyObject*
> >
> > It looks like some issue with the classloader.
> >
> > And the issue with @Model,@Named and @ViewAccessScoped could be caused
> > because it is necessary a LifecycleProvider2 implementation for
> > Glassfish, so the container can resolve such annotations when the bean
> > is constructed and destroyed. Since Glassfish is CDDL+GPL licensed,
> > there is no default LifecycleProvider bundled with MyFaces.
> >
> > regards,
> >
> > Leonardo Uribe
> >
> > 2012/3/13 Leonardo Uribe <lu...@gmail.com>:
> > > Hi
> > >
> > > First of all, the problem is related to glassfish. This container does
> > > not provide a clear way to change of jsf implementation.
> > >
> > > It is not that myfaces cannot run with glassfish, instead glassfish is
> > > not kind with any other alternate jsf implementation.
> > >
> > > The classloader flag is just a workaround in my opinion, but it works.
> > > The message:
> > >
> > > *Both MyFaces and the RI are on your classpath. Please make sure to use
> > > only one of the two JSF-implementations.*
> > >
> > > Just ignore it. Glassfish classloader will find myfaces jars first
> > > than mojarra ones.
> > >
> > > The other problem you are experiencing is related to the same
> > > classloader flag. Since myfaces jars should be on WEB-INF/lib, those
> > > jars cannot be found by weld, so to make it work, you need to use
> > > another library like OpenWebBeans and put the related jar files on
> > > WEB-INF/lib folder too. That will work but it is not ideal. Anyway,
> > > most of the people will not care about this.
> > >
> > > The right way to do it should be done from glassfish side, removing
> > > mojarra jars and including myfaces ones in the container (not
> > > including myfaces into the webapp). But that's not easy, because I
> > > suppose it is necessary to check if glassfish internals will still
> > > work, and it should exists an integration code between mojarra and
> > > glassfish somewhere. Basically, glassfish does not provide a clean
> > > extension point to do this.
> > >
> > > Other containers like JBoss do things right, they provide a deployer
> > > that uses myfaces integration code. See:
> > >
> > >
> >
> https://cwiki.apache.org/confluence/display/MYFACES/Integration+with+application+and+web+servers
> > >
> > > regards,
> > >
> > > Leonardo Uribe
> > >
> > >
> > > 2012/3/13 Gerhard Petracek <ge...@gmail.com>:
> > >> hi mike,
> > >>
> > >> right now geronimo3 isn't in the list [1] of the supported servers.
> > >>
> > >> regards,
> > >> gerhard
> > >>
> > >> [1]
> > >>
> >
> https://cwiki.apache.org/confluence/display/EXTCDI/Intro#Intro-Compatibility
> > >>
> > >>
> > >> http://www.irian.at
> > >>
> > >> Your JSF/JavaEE powerhouse -
> > >> JavaEE Consulting, Development and
> > >> Courses in English and German
> > >>
> > >> Professional Support for Apache MyFaces
> > >>
> > >>
> > >>
> > >> 2012/3/13 Mike Kienenberger <mk...@gmail.com>
> > >>
> > >>> I don't have much experience with them, but Apache Geronimo and, to a
> > >>> lesser degree, Apache Tomcat would be alternatives to Glassfish.
> > >>> There may be others.
> > >>>
> > >>> 2012/3/13 José Luis Cetina <ma...@gmail.com>:
> > >>> > Let me tell you that the example deploy and RAN without any problem
> > and i
> > >>> > dont move any line of code, i only deploy in tomcat without any
> > problem,
> > >>> i
> > >>> > want to use apache  product's like myfaces, CODI, etc, i want to
> > know if
> > >>> > you can give me an objective suggestion with what Application
> Server
> > i
> > >>> can
> > >>> > use with your products, i have the opportunity for choose.
> > >>> >
> > >>> > Thanks
> > >>> >
> > >>> >
> > >>> > 2012/3/13 Gerhard Petracek <ge...@gmail.com>
> > >>> >
> > >>> >> hi jose,
> > >>> >>
> > >>> >> you can run the generated demos with a servlet container like
> jetty
> > (see
> > >>> >> the comment in the generated pom.xml file), tomcat,... .
> > >>> >> by default the myfaces-core profile is activated.
> > >>> >>
> > >>> >> we just need to know if your implementation works with such a
> > generated
> > >>> >> application.
> > >>> >> esp. because glassfish adds further complexity with the mentioned
> > >>> >> classloader-config (e.g. with this config-entries you can't use
> > >>> >> myfaces-core and owb in parallel - that's a known classloading
> issue
> > >>> >> of glassfish).
> > >>> >>
> > >>> >> regards,
> > >>> >> gerhard
> > >>> >>
> > >>> >>
> > >>> >>
> > >>> >> 2012/3/13 José Luis Cetina <ma...@gmail.com>
> > >>> >>
> > >>> >> > I downloaded the example number 11 and i run the project without
> > any
> > >>> >> > problem, but i can see that the project is using Mojarra
> > "Profile" as
> > >>> JSF
> > >>> >> > Impl (the log sayed to me Mojarra...). Then if i change to use
> > MyFaces
> > >>> >> > chossing the myfaces profile and adding these lines to my
> > >>> >> > g*lassfish-web.xml
> > >>> >> > *:
> > >>> >> >
> > >>> >> > <class-loader delegate="false"/>
> > >>> >> > <property name="useBundledJsf" value="true"/>
> > >>> >> >
> > >>> >> > then i got an *exception *and i CANT run the project:
> > >>> >> >
> > >>> >> > Here is the *glassfish log:*
> > >>> >> > -----------------------------------------------------
> > >>> >> >
> > >>> >> > Launching GlassFish on Felix platform
> > >>> >> > Información: Running GlassFish Version: GlassFish Server Open
> > Source
> > >>> >> > Edition 3.1.2 (build 23)
> > >>> >> > Información: Grizzly Framework 1.9.46 started in: 78ms - bound
> to
> > [
> > >>> >> > 0.0.0.0:8080]
> > >>> >> > Información: Grizzly Framework 1.9.46 started in: 56ms - bound
> to
> > [
> > >>> >> > 0.0.0.0:8181]
> > >>> >> > Información: Grizzly Framework 1.9.46 started in: 106ms - bound
> > to [
> > >>> >> > 0.0.0.0:3700]
> > >>> >> > Información: Grizzly Framework 1.9.46 started in: 120ms - bound
> > to [
> > >>> >> > 0.0.0.0:4848]
> > >>> >> > Información: Grizzly Framework 1.9.46 started in: 146ms - bound
> > to [
> > >>> >> > 0.0.0.0:7676]
> > >>> >> > Información: The Admin Console is already installed, but not yet
> > >>> loaded.
> > >>> >> > Información: Registered
> > >>> >> > org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for
> > >>> >> > persistence-type = replicated in BackingStoreFactoryRegistry
> > >>> >> > Información: GlassFish Server Open Source Edition 3.1.2 (23)
> > tiempo de
> > >>> >> > inicio: Felix (2,441ms), servicios de inicio(1,240ms),
> > total(3,681ms)
> > >>> >> > Información: JMX005: JMXStartupService had Started JMXConnector
> on
> > >>> >> > JMXService URL service:jmx:rmi://
> > >>> >> > 192.168.1.209:8686/jndi/rmi://192.168.1.209:8686/jmxrmi
> > >>> >> > Información: Hibernate Validator 4.2.0.Final
> > >>> >> > Información: Grizzly Framework 1.9.46 started in: 49ms - bound
> to
> > [
> > >>> >> > 0.0.0.0:8080]
> > >>> >> > Información: SEC1002: Security Manager is OFF.
> > >>> >> > Información: SEC1010: Entering Security Startup Service
> > >>> >> > Información: SEC1143: Loading policy provider
> > >>> >> > com.sun.enterprise.security.provider.PolicyWrapper.
> > >>> >> > Información: SEC1115: Realm [admin-realm] of classtype
> > >>> >> > [com.sun.enterprise.security.auth.realm.file.FileRealm]
> > successfully
> > >>> >> > created.
> > >>> >> > Información: SEC1115: Realm [file] of classtype
> > >>> >> > [com.sun.enterprise.security.auth.realm.file.FileRealm]
> > successfully
> > >>> >> > created.
> > >>> >> > Información: SEC1115: Realm [certificate] of classtype
> > >>> >> >
> > [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm]
> > >>> >> > successfully created.
> > >>> >> > Información: SEC1011: Security Service(s) Started Successfully
> > >>> >> > Información: WEB0169: Created HTTP listener [http-listener-1] on
> > >>> >> host/port
> > >>> >> > [
> > >>> >> > 0.0.0.0:8080]
> > >>> >> > Información: WEB0169: Created HTTP listener [http-listener-2] on
> > >>> >> host/port
> > >>> >> > [
> > >>> >> > 0.0.0.0:8181]
> > >>> >> > Información: WEB0169: Created HTTP listener [admin-listener] on
> > >>> >> host/port [
> > >>> >> > 0.0.0.0:4848]
> > >>> >> > Información: WEB0171: Created virtual server [server]
> > >>> >> > Información: WEB0171: Created virtual server [__asadmin]
> > >>> >> > Información: WEB0172: Virtual server [server] loaded default web
> > >>> module
> > >>> >> []
> > >>> >> > Información: WELD-000900 1.1.4 (Final)
> > >>> >> > Grave: Exception while loading the app
> > >>> >> > *Grave: Exception while loading the app :
> > >>> >> >
> > >>> >> >
> > >>> >>
> > >>>
> >
> org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
> > >>> >> > cannot be cast to javassist.util.proxy.ProxyObject*
> > >>> >> > *java.lang.ClassCastException:
> > >>> >> >
> > >>> >> >
> > >>> >>
> > >>>
> >
> org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
> > >>> >> > cannot be cast to javassist.util.proxy.ProxyObject*
> > >>> >> > at
> > >>> org.jboss.weld.bean.proxy.ProxyFactory.create(ProxyFactory.java:245)
> > >>> >> > at
> > >>> >> >
> > >>> >> >
> > >>> >>
> > >>>
> >
> org.jboss.weld.bean.builtin.ee.AbstractEEBean.<init>(AbstractEEBean.java:43)
> > >>> >> > at
> > >>> >> >
> > >>> >> >
> > >>> >>
> > >>>
> >
> org.jboss.weld.bean.builtin.ee.UserTransactionBean.<init>(UserTransactionBean.java:52)
> > >>> >> > at
> > >>> >> >
> > >>> >> >
> > >>> >>
> > >>>
> >
> org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:177)
> > >>> >> > at
> > >>> >> >
> > >>> >>
> > >>>
> >
> org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:336)
> > >>> >> > at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:179)
> > >>> >> > at
> org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:128)
> > >>> >> > at
> > >>> >> >
> > >>> >>
> > >>>
> >
> org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:277)
> > >>> >> > at
> > >>> >> >
> > >>> >> >
> > >>> >>
> > >>>
> >
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:460)
> > >>> >> > at
> > >>> >> >
> > >>> >> >
> > >>> >>
> > >>>
> >
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
> > >>> >> > at
> > >>> >> >
> > >>> >> >
> > >>> >>
> > >>>
> >
> org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
> > >>> >> > at
> > >>> >> >
> > >>> >> >
> > >>> >>
> > >>>
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
> > >>> >> > at
> > >>> >> >
> > >>> >> >
> > >>> >>
> > >>>
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
> > >>> >> > at
> > >>> >> >
> > >>> >> >
> > >>> >>
> > >>>
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
> > >>> >> > at
> > >>> >> >
> > >>> >> >
> > >>> >>
> > >>>
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
> > >>> >> > at
> > >>> >> >
> > >>> >> >
> > >>> >>
> > >>>
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
> > >>> >> > at
> > >>> >> >
> > >>> >> >
> > >>> >>
> > >>>
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
> > >>> >> > at
> > >>> >> >
> > >>>
> > com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)
> > >>> >> > at
> > >>> >>
> > com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)
> > >>> >> > at
> > >>> >> >
> > >>> >>
> > >>>
> >
> com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
> > >>> >> > at
> > >>> >> >
> > >>> >>
> > >>>
> >
> com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
> > >>> >> > at
> > >>> >> >
> > >>> >> >
> > >>> >>
> > >>>
> >
> com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
> > >>> >> > at
> > >>> >> >
> > >>> >> >
> > >>> >>
> > >>>
> >
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
> > >>> >> > at
> > >>> >>
> > com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
> > >>> >> > at
> > >>> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
> > >>> >> > at
> > com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
> > >>> >> > at
> > >>> >> >
> > >>> >> >
> > >>> >>
> > >>>
> >
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
> > >>> >> > 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:722)
> > >>> >> >
> > >>> >> > Información: WEB0169: Created HTTP listener [http-listener-2] on
> > >>> >> host/port
> > >>> >> > [
> > >>> >> > 0.0.0.0:8181]
> > >>> >> > Información: Grizzly Framework 1.9.46 started in: 45ms - bound
> to
> > [
> > >>> >> > 0.0.0.0:8181]
> > >>> >> >
> > >>> >> >
> > >>> >> > -----------------------------------------------------
> > >>> >> >
> > >>> >> > 2012/3/13 Gerhard Petracek <ge...@gmail.com>
> > >>> >> >
> > >>> >> > > hi jose,
> > >>> >> > >
> > >>> >> > > you can use the myfaces-archetype to generate the correct
> > config for
> > >>> >> > > myfaces-core (as well as mojarra) + owb (+ myfaces codi):
> > >>> >> > >
> > >>> >> > > mvn archetype:generate -DarchetypeCatalog=
> > http://myfaces.apache.org
> > >>> >> > > -> e.g. select #11 (afterwards you just have to update the
> > versions
> > >>> in
> > >>> >> > the
> > >>> >> > > generated pom.xml file.)
> > >>> >> > >
> > >>> >> > > if it still doesn't work with the generated example, you can
> > provide
> > >>> >> the
> > >>> >> > > example and we can have a look at it.
> > >>> >> > >
> > >>> >> > > regards,
> > >>> >> > > gerhard
> > >>> >> > >
> > >>> >> > >
> > >>> >> > >
> > >>> >> > > 2012/3/13 José Luis Cetina <ma...@gmail.com>
> > >>> >> > >
> > >>> >> > > > I see, i erase and only put @Named and @ ViewAccessScoped
> and
> > get
> > >>> the
> > >>> >> > > same
> > >>> >> > > > error, but i try with only @Named and @RequestScoped (java)
> > and
> > >>> still
> > >>> >> > the
> > >>> >> > > > error, i think the problem is the @Named is not injecting my
> > bean,
> > >>> >> not
> > >>> >> > > > MyFaces, because if i use @ManagedBean this works ok, but i
> > dont
> > >>> >> > > understand
> > >>> >> > > > why if i chagen from MyFaces to Mojarra the @Named and
> > >>> >> > @ViewAccessScoped
> > >>> >> > > > works ok!!
> > >>> >> > > >
> > >>> >> > > > :(
> > >>> >> > > >
> > >>> >> > > >
> > >>> >> > > > 2012/3/13 Rafael Pestano <rm...@yahoo.com.br>
> > >>> >> > > >
> > >>> >> > > > > just a question, why do you have @Model,@Named and
> > >>> >> @ViewAccessScoped
> > >>> >> > in
> > >>> >> > > > > the same bean?
> > >>> >> > > > >
> > >>> >> > > > > i think you need @model OR @Named and @ViewAccessScoped
> > >>> >> > > > >
> > >>> >> > > > > or im wrong?
> > >>> >> > > > >
> > >>> >> > > > > Att,
> > >>> >> > > > > Rafael M. Pestano
> > >>> >> > > > > Desenvolvedor Java Cia. de Processamento de Dados do Rio
> > Grande
> > >>> do
> > >>> >> > Sul
> > >>> >> > > > > Graduando em Ciência da Computação UFRGS
> > >>> >> > > > > @realpestano
> > >>> >> > > > > http://code.google.com/p/jsf-conventions-framework/
> > >>> >> > > > >
> > >>> >> > > > >
> > >>> >> > > > >
> > >>> >> > > > > ----- Mensagem original -----
> > >>> >> > > > > De: José Luis Cetina <ma...@gmail.com>
> > >>> >> > > > > Para: MyFaces Discussion <us...@myfaces.apache.org>
> > >>> >> > > > > Cc:
> > >>> >> > > > > Enviadas: Terça-feira, 13 de Março de 2012 12:28
> > >>> >> > > > > Assunto: Re: Both MyFaces and the RI are on your
> classpath.
> > >>> Please
> > >>> >> > make
> > >>> >> > > > > sure to use only one of the two JSF-implementations.
> > >>> >> > > > >
> > >>> >> > > > > I see now im using MyFaces instead of Mojarra, the "ERROR"
> > >>> Message
> > >>> >> > > still
> > >>> >> > > > > there, but the application can deploy. My second problem
> > >>> persist:
> > >>> >> > > > >
> > >>> >> > > > > javax.el.PropertyNotFoundException: Target Unreachable,
> > >>> identifier
> > >>> >> > > > 'myBean'
> > >>> >> > > > > resolved to null
> > >>> >> > > > > viewId=/index.xhtml
> > >>> >> > > > >
> > >>> >> > > > >
> > >>> >> > > >
> > >>> >> > >
> > >>> >> >
> > >>> >>
> > >>>
> >
> location=C:\Users\user\Documents\NetBeansProjects\testweb\build\web\index.xhtml
> > >>> >> > > > > phaseId=INVOKE_APPLICATION(5)
> > >>> >> > > > >
> > >>> >> > > > >
> > >>> >> > > > > i have the my beans.xml under WEB-INF folder:
> > >>> >> > > > > beans.xml:
> > >>> >> > > > >
> > >>> >> > > > > <?xml version="1.0" encoding="UTF-8"?>
> > >>> >> > > > > <beans 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/beans_1_0.xsd">
> > >>> >> > > > > </beans>
> > >>> >> > > > >
> > >>> >> > > > >
> > >>> >> > > > > And my bean its ok:
> > >>> >> > > > >
> > >>> >> > > > > @Named
> > >>> >> > > > > @ViewAccessScoped
> > >>> >> > > > > @Model
> > >>> >> > > > > @View(Index.class)
> > >>> >> > > > > public class MyBean implements Serializable{
> > >>> >> > > > > }
> > >>> >> > > > >
> > >>> >> > > > > If i change from MyFaces to Mojarra this work ok!!!   :(
> > >>> >> > > > >
> > >>> >> > > > > Somebody know what can i do?
> > >>> >> > > > >
> > >>> >> > > > > *Im using: Netbeans 7.1, Glassfish 3.1.2.1, JDK 7u3,
> MyFaces
> > >>> 2.1.6,
> > >>> >> > > > > CODI 1.0.4, Windows 7. *
> > >>> >> > > > > *
> > >>> >> > > > > *
> > >>> >> > > > > *Thanks.*
> > >>> >> > > > > *
> > >>> >> > > > > *
> > >>> >> > > > >
> > >>> >> > > >
> > >>> >> > >
> > >>> >> >
> > >>> >>
> > >>>
> >
> *-------------------------------------------------------------------------*
> > >>> >> > > > >
> > >>> >> > > > >
> > >>> >> > > > > 2012/3/13 Werner Punz <we...@gmail.com>
> > >>> >> > > > >
> > >>> >> > > > > > Mhh this looks like a bug in Glassfish to me, the
> entries
> >  in
> > >>> the
> > >>> >> > > > > > glassfish-web.xml look correct to me. Problem is
> generally
> > >>> that
> > >>> >> > > > glassfish
> > >>> >> > > > > > is not to keen on overrides of its system libs in my
> > >>> experience.
> > >>> >> > Even
> > >>> >> > > > > while
> > >>> >> > > > > > myfaces runs, try to replace Weld for instance and you
> run
> > >>> into a
> > >>> >> > > mess.
> > >>> >> > > > > > Glassfish as good as it is is an all or nothing pack in
> > many
> > >>> >> cases.
> > >>> >> > > > > > But it has been some time since I last touched
> Glassfish,
> > >>> things
> > >>> >> > > might
> > >>> >> > > > > > have changed.
> > >>> >> > > > > >
> > >>> >> > > > > >
> > >>> >> > > > > >
> > >>> >> > > > > > Werner
> > >>> >> > > > > >
> > >>> >> > > > > >
> > >>> >> > > > > > Am 12.03.12 17:40, schrieb José Luis Cetina:
> > >>> >> > > > > >
> > >>> >> > > > > >> Im triying to start a new project for first time with
> > >>> myfaces, i
> > >>> >> > > > always
> > >>> >> > > > > >> used Mojarra but know i want to change but im having
> > >>> problems at
> > >>> >> > the
> > >>> >> > > > > >> start:
> > >>> >> > > > > >>
> > >>> >> > > > > >> My only requierement is use Glassfish 3.1.2.1.
> > >>> >> > > > > >>
> > >>> >> > > > > >> Hi i have this WARNING:
> > >>> >> > > > > >>
> > >>> >> > > > > >> *Both MyFaces and the RI are on your classpath. Please
> > make
> > >>> sure
> > >>> >> > to
> > >>> >> > > > use
> > >>> >> > > > > >> only one of the two JSF-implementations.*
> > >>> >> > > > > >>
> > >>> >> > > > > >>
> > >>> >> > > > > >> Why this happend if im using only jars from myfaces??
> > maybe
> > >>> for
> > >>> >> > > > > glassfish
> > >>> >> > > > > >> i
> > >>> >> > > > > >> think, i have these in my *glassfish-web.xml* file,
> under
> > >>> >> WEB-INF
> > >>> >> > > > > folder:
> > >>> >> > > > > >>
> > >>> >> > > > > >>
> > >>> >> > > > > >> <?xml version="1.0" encoding="UTF-8"?>
> > >>> >> > > > > >> <!DOCTYPE glassfish-web-app PUBLIC
> "-//GlassFish.org//DTD
> > >>> >> > GlassFish
> > >>> >> > > > > >> Application Server 3.1 Servlet 3.0//EN" "
> > >>> >> > > > > >>
> http://glassfish.org/dtds/**glassfish-web-app_3_0-1.dtd<
> > >>> >> > > > > http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd>
> > >>> >> > > > > >> ">
> > >>> >> > > > > >> <glassfish-web-app error-url="">
> > >>> >> > > > > >>     <!--Para establecer el charset a utf8 y remover el
> > >>> mensaje
> > >>> >> de:
> > >>> >> > > > > >> PWC4011:
> > >>> >> > > > > >> Unable to set request character encoding to UTF-8 from
> > >>> >> context-->
> > >>> >> > > > > >>     <parameter-encoding default-charset="UTF-8"/>
> > >>> >> > > > > >>     *<class-loader delegate="false"/>*
> > >>> >> > > > > >> *<property name="useBundledJsf" value="true"/>*
> > >>> >> > > > > >>
> > >>> >> > > > > >>     <!--<class-loader delegate="true"/>-->
> > >>> >> > > > > >>     <jsp-config>
> > >>> >> > > > > >>         <property name="keepgenerated" value="true">
> > >>> >> > > > > >>             <description>Keep a copy of the generated
> > servlet
> > >>> >> > class'
> > >>> >> > > > > java
> > >>> >> > > > > >> code.</description>
> > >>> >> > > > > >>         </property>
> > >>> >> > > > > >>     </jsp-config>
> > >>> >> > > > > >> </glassfish-web-app>
> > >>> >> > > > > >>
> > >>> >> > > > > >> ----------------  ----------------  ----------------
> > >>> >> > > > > >>
> > >>> >> > > > > >> This is my web.xml
> > >>> >> > > > > >>
> > >>> >> > > > > >> <?xml version="1.0" encoding="UTF-8"?>
> > >>> >> > > > > >> <web-app version="3.0" xmlns="
> > >>> >> http://java.sun.com/**xml/ns/javaee
> > >>> >> > <
> > >>> >> > > > > http://java.sun.com/xml/ns/javaee>"
> > >>> >> > > > > >> xmlns:xsi="
> > >>> >> > > > > >> http://www.w3.org/2001/**XMLSchema-instance<
> > >>> >> > > > > http://www.w3.org/2001/XMLSchema-instance>"
> > >>> >> > > > > >> xsi:schemaLocation="
> > >>> >> > > > > >> http://java.sun.com/xml/ns/**javaee <
> > >>> >> > > > http://java.sun.com/xml/ns/javaee>
> > >>> >> > > > > >> http://java.sun.com/xml/ns/**javaee/web-app_3_0.xsd<
> > >>> >> > > > > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd>
> > >>> >> > > > > >> ">
> > >>> >> > > > > >>     <context-param>
> > >>> >> > > > > >>
> > <param-name>javax.faces.**PROJECT_STAGE</param-name>
> > >>> >> > > > > >>         <param-value>Development</**param-value>
> > >>> >> > > > > >>     </context-param>
> > >>> >> > > > > >>     <context-param>
> > >>> >> > > > > >>
> > >>> >> > <param-name>com.ocpsoft.**pretty.DEVELOPMENT</param-**name>
> > >>> >> > > > > >>         <param-value>true</param-**value>
> > >>> >> > > > > >>     </context-param>
> > >>> >> > > > > >>     <context-param>
> > >>> >> > > > > >>
> > >>> >> <param-name>javax.faces.STATE_**SAVING_METHOD</param-name>
> > >>> >> > > > > >>         <param-value>server</param-**value>
> > >>> >> > > > > >>     </context-param>
> > >>> >> > > > > >>     <context-param>
> > >>> >> > > > > >>         <param-name>
> > >>> >> > > > > >>
> > javax.faces.DATETIMECONVERTER_**DEFAULT_TIMEZONE_IS_SYSTEM_**
> > >>> >> > > > > >> TIMEZONE</param-name>
> > >>> >> > > > > >>         <param-value>true</param-**value>
> > >>> >> > > > > >>     </context-param>
> > >>> >> > > > > >>      <context-param>
> > >>> >> > > > > >>
> > >>> >> > > >
> > <param-name>javax.faces.**FACELETS_SKIP_COMMENTS</param-**name>
> > >>> >> > > > > >>         <param-value>true</param-**value>
> > >>> >> > > > > >>     </context-param>
> > >>> >> > > > > >>     <context-param>
> > >>> >> > > > > >>
> > >>> >> > > > > >>
> > <param-name>com.sun.faces.**enableMissingResourceLibraryDe**
> > >>> >> > > > > >> tection</param-name>
> > >>> >> > > > > >>         <param-value>true</param-**value>
> > >>> >> > > > > >>     </context-param>
> > >>> >> > > > > >>     <listener>
> > >>> >> > > > > >>         *
> > >>> >> > > > > >> <listener-class>org.apache.**myfaces.webapp.**
> > >>> >> > > > > >> StartupServletContextListener<**/listener-class>
> > >>> >> > > > > >> *
> > >>> >> > > > > >>     </listener>
> > >>> >> > > > > >>     <servlet>
> > >>> >> > > > > >>         <servlet-name>Faces Servlet</servlet-name>
> > >>> >> > > > > >>
> > >>> >> > <servlet-class>javax.faces.**webapp.FacesServlet</servlet-**
> > >>> >> > > > > >> class>
> > >>> >> > > > > >>         <load-on-startup>1</load-on-**startup>
> > >>> >> > > > > >>     </servlet>
> > >>> >> > > > > >>     <servlet-mapping>
> > >>> >> > > > > >>         <servlet-name>Faces Servlet</servlet-name>
> > >>> >> > > > > >>         <url-pattern>/faces/*</url-**pattern>
> > >>> >> > > > > >>     </servlet-mapping>
> > >>> >> > > > > >>     <session-config>
> > >>> >> > > > > >>         <session-timeout>
> > >>> >> > > > > >>             30
> > >>> >> > > > > >>         </session-timeout>
> > >>> >> > > > > >>     </session-config>
> > >>> >> > > > > >>     <welcome-file-list>
> > >>> >> > > > > >>
> <welcome-file>faces/index.**xhtml</welcome-file>
> > >>> >> > > > > >>     </welcome-file-list>
> > >>> >> > > > > >> </web-app>
> > >>> >> > > > > >>
> > >>> >> > > > > >> ----------------  ----------------  ----------------
> > >>> >> > > > > >>
> > >>> >> > > > > >> Here are my libraries:
> > >>> >> > > > > >>
> > >>> >> > > > > >> --MYFACES
> > >>> >> > > > > >> myfaces-api-2.1.6.jar
> > >>> >> > > > > >> myfaces-impl-2.1.6.jar
> > >>> >> > > > > >> commons-beanutils-1.8.3.jar
> > >>> >> > > > > >> commons-digester-1.8.jar
> > >>> >> > > > > >> commons-logging-1.8.jar
> > >>> >> > > > > >> commons-codec-1.1.1.jar
> > >>> >> > > > > >> commons-collections-3.2.jar
> > >>> >> > > > > >> --MYFACES CODI
> > >>> >> > > > > >>
> myfaces-extcdi-alternative-**implementation-module-1.0.4
> > >>> >> > > > > >> myfaces-extcdi-bv1-module-api-**1.0.4
> > >>> >> > > > > >> myfaces-extcdi-bv1-module-**impl-1.0.4
> > >>> >> > > > > >> myfaces-extcdi-core-**alternative-configuration-1.0.**4
> > >>> >> > > > > >> myfaces-extcdi-core-api-1.0.4
> > >>> >> > > > > >> myfaces-extcdi-core-impl-1.0.4
> > >>> >> > > > > >> myfaces-extcdi-jpa1-module-**api-1.0.4
> > >>> >> > > > > >> myfaces-extcdi-jpa1-module-**impl-1.0.4
> > >>> >> > > > > >> myfaces-extcdi-jsf20-module-**api-1.0.4
> > >>> >> > > > > >> myfaces-extcdi-jsf20-module-**impl-1.0.4
> > >>> >> > > > > >> myfaces-extcdi-jsf-**alternative-configuration-1.0.**4
> > >>> >> > > > > >> myfaces-extcdi-message-module-**api-1.0.4
> > >>> >> > > > > >> myfaces-extcdi-message-module-**impl-1.0.4
> > >>> >> > > > > >> myfaces-extcdi-scripting-**module-api-1.0.4
> > >>> >> > > > > >> myfaces-extcdi-scripting-**module-impl-1.0.4
> > >>> >> > > > > >>
> > >>> >> > > > > >>
> > >>> >> > > > > >> I dont know if because the "WARNING" i have other
> > problem:
> > >>> >> > > > > >>
> > >>> >> > > > > >> javax.el.**PropertyNotFoundException: Target
> Unreachable,
> > >>> >> > identifier
> > >>> >> > > > > >> 'myBean'
> > >>> >> > > > > >> resolved to null,
> > >>> >> > > > > >>
> > >>> >> > > > > >> I have in my beans.xml file under WEB-INF this:
> > >>> >> > > > > >>
> > >>> >> > > > > >> <?xml version="1.0" encoding="UTF-8"?>
> > >>> >> > > > > >> <beans xmlns="http://java.sun.com/**xml/ns/javaee<
> > >>> >> > > > > http://java.sun.com/xml/ns/javaee>
> > >>> >> > > > > >> "
> > >>> >> > > > > >>        xmlns:xsi="
> > >>> http://www.w3.org/**2001/XMLSchema-instance<
> > >>> >> > > > > http://www.w3.org/2001/XMLSchema-instance>
> > >>> >> > > > > >> "
> > >>> >> > > > > >>        xsi:schemaLocation="http://**
> > >>> java.sun.com/xml/ns/javaee<
> > >>> >> > > > > http://java.sun.com/xml/ns/javaee>
> > >>> >> > > > > >> http://java.sun.com/xml/ns/**javaee/beans_1_0.xsd<
> > >>> >> > > > > http://java.sun.com/xml/ns/javaee/beans_1_0.xsd>
> > >>> >> > > > > >> ">
> > >>> >> > > > > >> </beans>
> > >>> >> > > > > >>
> > >>> >> > > > > >> and in my bean:
> > >>> >> > > > > >>
> > >>> >> > > > > >> @Named
> > >>> >> > > > > >> @ViewAccessScoped
> > >>> >> > > > > >> @Model
> > >>> >> > > > > >> @View(Index.class)
> > >>> >> > > > > >> public class MyBean implements Serializable{
> > >>> >> > > > > >>    public void test(){
> > >>> >> > > > > >>      //do nothing
> > >>> >> > > > > >>    }
> > >>> >> > > > > >>
> > >>> >> > > > > >> .....
> > >>> >> > > > > >> }
> > >>> >> > > > > >>
> > >>> >> > > > > >> and in my index.xhtml
> > >>> >> > > > > >>
> > >>> >> > > > > >> <h:commandButton value="CLICK"
> action="#{myBean.test}"/>
> > >>> >> > > > > >>
> > >>> >> > > > > >> if i click my button the i get this error:
> > >>> >> > > > > >>
> > >>> >> > > > > >> javax.el.**PropertyNotFoundException: Target
> Unreachable,
> > >>> >> > identifier
> > >>> >> > > > > >> 'myBean'
> > >>> >> > > > > >> resolved to null
> > >>> >> > > > > >> viewId=/index.xhtml
> > >>> >> > > > > >> location=C:\Users\user\**Documents\NetBeansProjects\**
> > >>> >> > > > > >> testweb\build\web\index.xhtml
> > >>> >> > > > > >> phaseId=INVOKE_APPLICATION(5)
> > >>> >> > > > > >> Caused by:
> > >>> >> > > > > >> javax.el.**PropertyNotFoundException - Target
> > Unreachable,
> > >>> >> > > identifier
> > >>> >> > > > > >> 'myBean' resolved to null
> > >>> >> > > > > >> at
> > com.sun.el.parser.AstValue.**getTarget(AstValue.java:153)
> > >>> >> > > > > >>
> > >>> >> > > > > >>
> > >>> >> > > > > >> I dont know if this is for the first problem  (*Both
> > MyFaces
> > >>> and
> > >>> >> > the
> > >>> >> > > > RI
> > >>> >> > > > > >> are
> > >>> >> > > > > >>
> > >>> >> > > > > >> on your classpath. Please make sure to use only one of
> > the
> > >>> two
> > >>> >> > > > > >> JSF-implementations.*)
> > >>> >> > > > > >>
> > >>> >> > > > > >> I read i need to have my beans.xml but i have it!!!
> > >>> >> > > > > >>
> > >>> >> > > > > >> Thanks, and sorry for the english, is not my native
> > language
> > >>> >> > > > > >>
> > >>> >> > > > > >>
> > >>> >> > > > > >> Im using: Netbeans 7.1, *Glassfish 3.1.2.1,* JDK 7u3,
> > MyFaces
> > >>> >> > 2.1.6,
> > >>> >> > > > > CODI
> > >>> >> > > > > >> 1.0.4, Windows 7.
> > >>> >> > > > > >>
> > >>> >> > > > > >>
> > >>> >> > > > > >
> > >>> >> > > > > >
> > >>> >> > > > >
> > >>> >> > > > >
> > >>> >> > > > > --
> > >>> >> > > > >
> > >>> -------------------------------------------------------------------
> > >>> >> > > > > *SCJA. José Luis Cetina*
> > >>> >> > > > >
> > >>> -------------------------------------------------------------------
> > >>> >> > > > >
> > >>> >> > > > >
> > >>> >> > > >
> > >>> >> > > >
> > >>> >> > > > --
> > >>> >> > > >
> > >>> -------------------------------------------------------------------
> > >>> >> > > > *SCJA. José Luis Cetina*
> > >>> >> > > >
> > >>> -------------------------------------------------------------------
> > >>> >> > > >
> > >>> >> > >
> > >>> >> >
> > >>> >> >
> > >>> >> >
> > >>> >> > --
> > >>> >> >
> > -------------------------------------------------------------------
> > >>> >> > *SCJA. José Luis Cetina*
> > >>> >> >
> > -------------------------------------------------------------------
> > >>> >> >
> > >>> >>
> > >>> >
> > >>> >
> > >>> >
> > >>> > --
> > >>> > -------------------------------------------------------------------
> > >>> > *SCJA. José Luis Cetina*
> > >>> > -------------------------------------------------------------------
> > >>>
> >
>

Re: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

Posted by Gerhard Petracek <ge...@gmail.com>.
hi leo,

some months ago we tested myfaces-core + owb on glassfish (within the same
application) and the config needed for myfaces-core broke owb.

regards,
gerhard



2012/3/13 Leonardo Uribe <lu...@gmail.com>

> Hi
>
> I almost forgot to say:
>
>
> org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
> cannot be cast to javassist.util.proxy.ProxyObject*
> *java.lang.ClassCastException:
>
> org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
> cannot be cast to javassist.util.proxy.ProxyObject*
>
> It looks like some issue with the classloader.
>
> And the issue with @Model,@Named and @ViewAccessScoped could be caused
> because it is necessary a LifecycleProvider2 implementation for
> Glassfish, so the container can resolve such annotations when the bean
> is constructed and destroyed. Since Glassfish is CDDL+GPL licensed,
> there is no default LifecycleProvider bundled with MyFaces.
>
> regards,
>
> Leonardo Uribe
>
> 2012/3/13 Leonardo Uribe <lu...@gmail.com>:
> > Hi
> >
> > First of all, the problem is related to glassfish. This container does
> > not provide a clear way to change of jsf implementation.
> >
> > It is not that myfaces cannot run with glassfish, instead glassfish is
> > not kind with any other alternate jsf implementation.
> >
> > The classloader flag is just a workaround in my opinion, but it works.
> > The message:
> >
> > *Both MyFaces and the RI are on your classpath. Please make sure to use
> > only one of the two JSF-implementations.*
> >
> > Just ignore it. Glassfish classloader will find myfaces jars first
> > than mojarra ones.
> >
> > The other problem you are experiencing is related to the same
> > classloader flag. Since myfaces jars should be on WEB-INF/lib, those
> > jars cannot be found by weld, so to make it work, you need to use
> > another library like OpenWebBeans and put the related jar files on
> > WEB-INF/lib folder too. That will work but it is not ideal. Anyway,
> > most of the people will not care about this.
> >
> > The right way to do it should be done from glassfish side, removing
> > mojarra jars and including myfaces ones in the container (not
> > including myfaces into the webapp). But that's not easy, because I
> > suppose it is necessary to check if glassfish internals will still
> > work, and it should exists an integration code between mojarra and
> > glassfish somewhere. Basically, glassfish does not provide a clean
> > extension point to do this.
> >
> > Other containers like JBoss do things right, they provide a deployer
> > that uses myfaces integration code. See:
> >
> >
> https://cwiki.apache.org/confluence/display/MYFACES/Integration+with+application+and+web+servers
> >
> > regards,
> >
> > Leonardo Uribe
> >
> >
> > 2012/3/13 Gerhard Petracek <ge...@gmail.com>:
> >> hi mike,
> >>
> >> right now geronimo3 isn't in the list [1] of the supported servers.
> >>
> >> regards,
> >> gerhard
> >>
> >> [1]
> >>
> https://cwiki.apache.org/confluence/display/EXTCDI/Intro#Intro-Compatibility
> >>
> >>
> >> http://www.irian.at
> >>
> >> Your JSF/JavaEE powerhouse -
> >> JavaEE Consulting, Development and
> >> Courses in English and German
> >>
> >> Professional Support for Apache MyFaces
> >>
> >>
> >>
> >> 2012/3/13 Mike Kienenberger <mk...@gmail.com>
> >>
> >>> I don't have much experience with them, but Apache Geronimo and, to a
> >>> lesser degree, Apache Tomcat would be alternatives to Glassfish.
> >>> There may be others.
> >>>
> >>> 2012/3/13 José Luis Cetina <ma...@gmail.com>:
> >>> > Let me tell you that the example deploy and RAN without any problem
> and i
> >>> > dont move any line of code, i only deploy in tomcat without any
> problem,
> >>> i
> >>> > want to use apache  product's like myfaces, CODI, etc, i want to
> know if
> >>> > you can give me an objective suggestion with what Application Server
> i
> >>> can
> >>> > use with your products, i have the opportunity for choose.
> >>> >
> >>> > Thanks
> >>> >
> >>> >
> >>> > 2012/3/13 Gerhard Petracek <ge...@gmail.com>
> >>> >
> >>> >> hi jose,
> >>> >>
> >>> >> you can run the generated demos with a servlet container like jetty
> (see
> >>> >> the comment in the generated pom.xml file), tomcat,... .
> >>> >> by default the myfaces-core profile is activated.
> >>> >>
> >>> >> we just need to know if your implementation works with such a
> generated
> >>> >> application.
> >>> >> esp. because glassfish adds further complexity with the mentioned
> >>> >> classloader-config (e.g. with this config-entries you can't use
> >>> >> myfaces-core and owb in parallel - that's a known classloading issue
> >>> >> of glassfish).
> >>> >>
> >>> >> regards,
> >>> >> gerhard
> >>> >>
> >>> >>
> >>> >>
> >>> >> 2012/3/13 José Luis Cetina <ma...@gmail.com>
> >>> >>
> >>> >> > I downloaded the example number 11 and i run the project without
> any
> >>> >> > problem, but i can see that the project is using Mojarra
> "Profile" as
> >>> JSF
> >>> >> > Impl (the log sayed to me Mojarra...). Then if i change to use
> MyFaces
> >>> >> > chossing the myfaces profile and adding these lines to my
> >>> >> > g*lassfish-web.xml
> >>> >> > *:
> >>> >> >
> >>> >> > <class-loader delegate="false"/>
> >>> >> > <property name="useBundledJsf" value="true"/>
> >>> >> >
> >>> >> > then i got an *exception *and i CANT run the project:
> >>> >> >
> >>> >> > Here is the *glassfish log:*
> >>> >> > -----------------------------------------------------
> >>> >> >
> >>> >> > Launching GlassFish on Felix platform
> >>> >> > Información: Running GlassFish Version: GlassFish Server Open
> Source
> >>> >> > Edition 3.1.2 (build 23)
> >>> >> > Información: Grizzly Framework 1.9.46 started in: 78ms - bound to
> [
> >>> >> > 0.0.0.0:8080]
> >>> >> > Información: Grizzly Framework 1.9.46 started in: 56ms - bound to
> [
> >>> >> > 0.0.0.0:8181]
> >>> >> > Información: Grizzly Framework 1.9.46 started in: 106ms - bound
> to [
> >>> >> > 0.0.0.0:3700]
> >>> >> > Información: Grizzly Framework 1.9.46 started in: 120ms - bound
> to [
> >>> >> > 0.0.0.0:4848]
> >>> >> > Información: Grizzly Framework 1.9.46 started in: 146ms - bound
> to [
> >>> >> > 0.0.0.0:7676]
> >>> >> > Información: The Admin Console is already installed, but not yet
> >>> loaded.
> >>> >> > Información: Registered
> >>> >> > org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for
> >>> >> > persistence-type = replicated in BackingStoreFactoryRegistry
> >>> >> > Información: GlassFish Server Open Source Edition 3.1.2 (23)
> tiempo de
> >>> >> > inicio: Felix (2,441ms), servicios de inicio(1,240ms),
> total(3,681ms)
> >>> >> > Información: JMX005: JMXStartupService had Started JMXConnector on
> >>> >> > JMXService URL service:jmx:rmi://
> >>> >> > 192.168.1.209:8686/jndi/rmi://192.168.1.209:8686/jmxrmi
> >>> >> > Información: Hibernate Validator 4.2.0.Final
> >>> >> > Información: Grizzly Framework 1.9.46 started in: 49ms - bound to
> [
> >>> >> > 0.0.0.0:8080]
> >>> >> > Información: SEC1002: Security Manager is OFF.
> >>> >> > Información: SEC1010: Entering Security Startup Service
> >>> >> > Información: SEC1143: Loading policy provider
> >>> >> > com.sun.enterprise.security.provider.PolicyWrapper.
> >>> >> > Información: SEC1115: Realm [admin-realm] of classtype
> >>> >> > [com.sun.enterprise.security.auth.realm.file.FileRealm]
> successfully
> >>> >> > created.
> >>> >> > Información: SEC1115: Realm [file] of classtype
> >>> >> > [com.sun.enterprise.security.auth.realm.file.FileRealm]
> successfully
> >>> >> > created.
> >>> >> > Información: SEC1115: Realm [certificate] of classtype
> >>> >> >
> [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm]
> >>> >> > successfully created.
> >>> >> > Información: SEC1011: Security Service(s) Started Successfully
> >>> >> > Información: WEB0169: Created HTTP listener [http-listener-1] on
> >>> >> host/port
> >>> >> > [
> >>> >> > 0.0.0.0:8080]
> >>> >> > Información: WEB0169: Created HTTP listener [http-listener-2] on
> >>> >> host/port
> >>> >> > [
> >>> >> > 0.0.0.0:8181]
> >>> >> > Información: WEB0169: Created HTTP listener [admin-listener] on
> >>> >> host/port [
> >>> >> > 0.0.0.0:4848]
> >>> >> > Información: WEB0171: Created virtual server [server]
> >>> >> > Información: WEB0171: Created virtual server [__asadmin]
> >>> >> > Información: WEB0172: Virtual server [server] loaded default web
> >>> module
> >>> >> []
> >>> >> > Información: WELD-000900 1.1.4 (Final)
> >>> >> > Grave: Exception while loading the app
> >>> >> > *Grave: Exception while loading the app :
> >>> >> >
> >>> >> >
> >>> >>
> >>>
> org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
> >>> >> > cannot be cast to javassist.util.proxy.ProxyObject*
> >>> >> > *java.lang.ClassCastException:
> >>> >> >
> >>> >> >
> >>> >>
> >>>
> org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
> >>> >> > cannot be cast to javassist.util.proxy.ProxyObject*
> >>> >> > at
> >>> org.jboss.weld.bean.proxy.ProxyFactory.create(ProxyFactory.java:245)
> >>> >> > at
> >>> >> >
> >>> >> >
> >>> >>
> >>>
> org.jboss.weld.bean.builtin.ee.AbstractEEBean.<init>(AbstractEEBean.java:43)
> >>> >> > at
> >>> >> >
> >>> >> >
> >>> >>
> >>>
> org.jboss.weld.bean.builtin.ee.UserTransactionBean.<init>(UserTransactionBean.java:52)
> >>> >> > at
> >>> >> >
> >>> >> >
> >>> >>
> >>>
> org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:177)
> >>> >> > at
> >>> >> >
> >>> >>
> >>>
> org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:336)
> >>> >> > at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:179)
> >>> >> > at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:128)
> >>> >> > at
> >>> >> >
> >>> >>
> >>>
> org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:277)
> >>> >> > at
> >>> >> >
> >>> >> >
> >>> >>
> >>>
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:460)
> >>> >> > at
> >>> >> >
> >>> >> >
> >>> >>
> >>>
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
> >>> >> > at
> >>> >> >
> >>> >> >
> >>> >>
> >>>
> org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
> >>> >> > at
> >>> >> >
> >>> >> >
> >>> >>
> >>>
> com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
> >>> >> > at
> >>> >> >
> >>> >> >
> >>> >>
> >>>
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
> >>> >> > at
> >>> >> >
> >>> >> >
> >>> >>
> >>>
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
> >>> >> > at
> >>> >> >
> >>> >> >
> >>> >>
> >>>
> com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
> >>> >> > at
> >>> >> >
> >>> >> >
> >>> >>
> >>>
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
> >>> >> > at
> >>> >> >
> >>> >> >
> >>> >>
> >>>
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
> >>> >> > at
> >>> >> >
> >>>
> com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)
> >>> >> > at
> >>> >>
> com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)
> >>> >> > at
> >>> >> >
> >>> >>
> >>>
> com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
> >>> >> > at
> >>> >> >
> >>> >>
> >>>
> com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
> >>> >> > at
> >>> >> >
> >>> >> >
> >>> >>
> >>>
> com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
> >>> >> > at
> >>> >> >
> >>> >> >
> >>> >>
> >>>
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
> >>> >> > at
> >>> >>
> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
> >>> >> > at
> >>> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
> >>> >> > at
> com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
> >>> >> > at
> >>> >> >
> >>> >> >
> >>> >>
> >>>
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
> >>> >> > 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:722)
> >>> >> >
> >>> >> > Información: WEB0169: Created HTTP listener [http-listener-2] on
> >>> >> host/port
> >>> >> > [
> >>> >> > 0.0.0.0:8181]
> >>> >> > Información: Grizzly Framework 1.9.46 started in: 45ms - bound to
> [
> >>> >> > 0.0.0.0:8181]
> >>> >> >
> >>> >> >
> >>> >> > -----------------------------------------------------
> >>> >> >
> >>> >> > 2012/3/13 Gerhard Petracek <ge...@gmail.com>
> >>> >> >
> >>> >> > > hi jose,
> >>> >> > >
> >>> >> > > you can use the myfaces-archetype to generate the correct
> config for
> >>> >> > > myfaces-core (as well as mojarra) + owb (+ myfaces codi):
> >>> >> > >
> >>> >> > > mvn archetype:generate -DarchetypeCatalog=
> http://myfaces.apache.org
> >>> >> > > -> e.g. select #11 (afterwards you just have to update the
> versions
> >>> in
> >>> >> > the
> >>> >> > > generated pom.xml file.)
> >>> >> > >
> >>> >> > > if it still doesn't work with the generated example, you can
> provide
> >>> >> the
> >>> >> > > example and we can have a look at it.
> >>> >> > >
> >>> >> > > regards,
> >>> >> > > gerhard
> >>> >> > >
> >>> >> > >
> >>> >> > >
> >>> >> > > 2012/3/13 José Luis Cetina <ma...@gmail.com>
> >>> >> > >
> >>> >> > > > I see, i erase and only put @Named and @ ViewAccessScoped and
> get
> >>> the
> >>> >> > > same
> >>> >> > > > error, but i try with only @Named and @RequestScoped (java)
> and
> >>> still
> >>> >> > the
> >>> >> > > > error, i think the problem is the @Named is not injecting my
> bean,
> >>> >> not
> >>> >> > > > MyFaces, because if i use @ManagedBean this works ok, but i
> dont
> >>> >> > > understand
> >>> >> > > > why if i chagen from MyFaces to Mojarra the @Named and
> >>> >> > @ViewAccessScoped
> >>> >> > > > works ok!!
> >>> >> > > >
> >>> >> > > > :(
> >>> >> > > >
> >>> >> > > >
> >>> >> > > > 2012/3/13 Rafael Pestano <rm...@yahoo.com.br>
> >>> >> > > >
> >>> >> > > > > just a question, why do you have @Model,@Named and
> >>> >> @ViewAccessScoped
> >>> >> > in
> >>> >> > > > > the same bean?
> >>> >> > > > >
> >>> >> > > > > i think you need @model OR @Named and @ViewAccessScoped
> >>> >> > > > >
> >>> >> > > > > or im wrong?
> >>> >> > > > >
> >>> >> > > > > Att,
> >>> >> > > > > Rafael M. Pestano
> >>> >> > > > > Desenvolvedor Java Cia. de Processamento de Dados do Rio
> Grande
> >>> do
> >>> >> > Sul
> >>> >> > > > > Graduando em Ciência da Computação UFRGS
> >>> >> > > > > @realpestano
> >>> >> > > > > http://code.google.com/p/jsf-conventions-framework/
> >>> >> > > > >
> >>> >> > > > >
> >>> >> > > > >
> >>> >> > > > > ----- Mensagem original -----
> >>> >> > > > > De: José Luis Cetina <ma...@gmail.com>
> >>> >> > > > > Para: MyFaces Discussion <us...@myfaces.apache.org>
> >>> >> > > > > Cc:
> >>> >> > > > > Enviadas: Terça-feira, 13 de Março de 2012 12:28
> >>> >> > > > > Assunto: Re: Both MyFaces and the RI are on your classpath.
> >>> Please
> >>> >> > make
> >>> >> > > > > sure to use only one of the two JSF-implementations.
> >>> >> > > > >
> >>> >> > > > > I see now im using MyFaces instead of Mojarra, the "ERROR"
> >>> Message
> >>> >> > > still
> >>> >> > > > > there, but the application can deploy. My second problem
> >>> persist:
> >>> >> > > > >
> >>> >> > > > > javax.el.PropertyNotFoundException: Target Unreachable,
> >>> identifier
> >>> >> > > > 'myBean'
> >>> >> > > > > resolved to null
> >>> >> > > > > viewId=/index.xhtml
> >>> >> > > > >
> >>> >> > > > >
> >>> >> > > >
> >>> >> > >
> >>> >> >
> >>> >>
> >>>
> location=C:\Users\user\Documents\NetBeansProjects\testweb\build\web\index.xhtml
> >>> >> > > > > phaseId=INVOKE_APPLICATION(5)
> >>> >> > > > >
> >>> >> > > > >
> >>> >> > > > > i have the my beans.xml under WEB-INF folder:
> >>> >> > > > > beans.xml:
> >>> >> > > > >
> >>> >> > > > > <?xml version="1.0" encoding="UTF-8"?>
> >>> >> > > > > <beans 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/beans_1_0.xsd">
> >>> >> > > > > </beans>
> >>> >> > > > >
> >>> >> > > > >
> >>> >> > > > > And my bean its ok:
> >>> >> > > > >
> >>> >> > > > > @Named
> >>> >> > > > > @ViewAccessScoped
> >>> >> > > > > @Model
> >>> >> > > > > @View(Index.class)
> >>> >> > > > > public class MyBean implements Serializable{
> >>> >> > > > > }
> >>> >> > > > >
> >>> >> > > > > If i change from MyFaces to Mojarra this work ok!!!   :(
> >>> >> > > > >
> >>> >> > > > > Somebody know what can i do?
> >>> >> > > > >
> >>> >> > > > > *Im using: Netbeans 7.1, Glassfish 3.1.2.1, JDK 7u3, MyFaces
> >>> 2.1.6,
> >>> >> > > > > CODI 1.0.4, Windows 7. *
> >>> >> > > > > *
> >>> >> > > > > *
> >>> >> > > > > *Thanks.*
> >>> >> > > > > *
> >>> >> > > > > *
> >>> >> > > > >
> >>> >> > > >
> >>> >> > >
> >>> >> >
> >>> >>
> >>>
> *-------------------------------------------------------------------------*
> >>> >> > > > >
> >>> >> > > > >
> >>> >> > > > > 2012/3/13 Werner Punz <we...@gmail.com>
> >>> >> > > > >
> >>> >> > > > > > Mhh this looks like a bug in Glassfish to me, the entries
>  in
> >>> the
> >>> >> > > > > > glassfish-web.xml look correct to me. Problem is generally
> >>> that
> >>> >> > > > glassfish
> >>> >> > > > > > is not to keen on overrides of its system libs in my
> >>> experience.
> >>> >> > Even
> >>> >> > > > > while
> >>> >> > > > > > myfaces runs, try to replace Weld for instance and you run
> >>> into a
> >>> >> > > mess.
> >>> >> > > > > > Glassfish as good as it is is an all or nothing pack in
> many
> >>> >> cases.
> >>> >> > > > > > But it has been some time since I last touched Glassfish,
> >>> things
> >>> >> > > might
> >>> >> > > > > > have changed.
> >>> >> > > > > >
> >>> >> > > > > >
> >>> >> > > > > >
> >>> >> > > > > > Werner
> >>> >> > > > > >
> >>> >> > > > > >
> >>> >> > > > > > Am 12.03.12 17:40, schrieb José Luis Cetina:
> >>> >> > > > > >
> >>> >> > > > > >> Im triying to start a new project for first time with
> >>> myfaces, i
> >>> >> > > > always
> >>> >> > > > > >> used Mojarra but know i want to change but im having
> >>> problems at
> >>> >> > the
> >>> >> > > > > >> start:
> >>> >> > > > > >>
> >>> >> > > > > >> My only requierement is use Glassfish 3.1.2.1.
> >>> >> > > > > >>
> >>> >> > > > > >> Hi i have this WARNING:
> >>> >> > > > > >>
> >>> >> > > > > >> *Both MyFaces and the RI are on your classpath. Please
> make
> >>> sure
> >>> >> > to
> >>> >> > > > use
> >>> >> > > > > >> only one of the two JSF-implementations.*
> >>> >> > > > > >>
> >>> >> > > > > >>
> >>> >> > > > > >> Why this happend if im using only jars from myfaces??
> maybe
> >>> for
> >>> >> > > > > glassfish
> >>> >> > > > > >> i
> >>> >> > > > > >> think, i have these in my *glassfish-web.xml* file, under
> >>> >> WEB-INF
> >>> >> > > > > folder:
> >>> >> > > > > >>
> >>> >> > > > > >>
> >>> >> > > > > >> <?xml version="1.0" encoding="UTF-8"?>
> >>> >> > > > > >> <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD
> >>> >> > GlassFish
> >>> >> > > > > >> Application Server 3.1 Servlet 3.0//EN" "
> >>> >> > > > > >> http://glassfish.org/dtds/**glassfish-web-app_3_0-1.dtd<
> >>> >> > > > > http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd>
> >>> >> > > > > >> ">
> >>> >> > > > > >> <glassfish-web-app error-url="">
> >>> >> > > > > >>     <!--Para establecer el charset a utf8 y remover el
> >>> mensaje
> >>> >> de:
> >>> >> > > > > >> PWC4011:
> >>> >> > > > > >> Unable to set request character encoding to UTF-8 from
> >>> >> context-->
> >>> >> > > > > >>     <parameter-encoding default-charset="UTF-8"/>
> >>> >> > > > > >>     *<class-loader delegate="false"/>*
> >>> >> > > > > >> *<property name="useBundledJsf" value="true"/>*
> >>> >> > > > > >>
> >>> >> > > > > >>     <!--<class-loader delegate="true"/>-->
> >>> >> > > > > >>     <jsp-config>
> >>> >> > > > > >>         <property name="keepgenerated" value="true">
> >>> >> > > > > >>             <description>Keep a copy of the generated
> servlet
> >>> >> > class'
> >>> >> > > > > java
> >>> >> > > > > >> code.</description>
> >>> >> > > > > >>         </property>
> >>> >> > > > > >>     </jsp-config>
> >>> >> > > > > >> </glassfish-web-app>
> >>> >> > > > > >>
> >>> >> > > > > >> ----------------  ----------------  ----------------
> >>> >> > > > > >>
> >>> >> > > > > >> This is my web.xml
> >>> >> > > > > >>
> >>> >> > > > > >> <?xml version="1.0" encoding="UTF-8"?>
> >>> >> > > > > >> <web-app version="3.0" xmlns="
> >>> >> http://java.sun.com/**xml/ns/javaee
> >>> >> > <
> >>> >> > > > > http://java.sun.com/xml/ns/javaee>"
> >>> >> > > > > >> xmlns:xsi="
> >>> >> > > > > >> http://www.w3.org/2001/**XMLSchema-instance<
> >>> >> > > > > http://www.w3.org/2001/XMLSchema-instance>"
> >>> >> > > > > >> xsi:schemaLocation="
> >>> >> > > > > >> http://java.sun.com/xml/ns/**javaee <
> >>> >> > > > http://java.sun.com/xml/ns/javaee>
> >>> >> > > > > >> http://java.sun.com/xml/ns/**javaee/web-app_3_0.xsd<
> >>> >> > > > > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd>
> >>> >> > > > > >> ">
> >>> >> > > > > >>     <context-param>
> >>> >> > > > > >>
> <param-name>javax.faces.**PROJECT_STAGE</param-name>
> >>> >> > > > > >>         <param-value>Development</**param-value>
> >>> >> > > > > >>     </context-param>
> >>> >> > > > > >>     <context-param>
> >>> >> > > > > >>
> >>> >> > <param-name>com.ocpsoft.**pretty.DEVELOPMENT</param-**name>
> >>> >> > > > > >>         <param-value>true</param-**value>
> >>> >> > > > > >>     </context-param>
> >>> >> > > > > >>     <context-param>
> >>> >> > > > > >>
> >>> >> <param-name>javax.faces.STATE_**SAVING_METHOD</param-name>
> >>> >> > > > > >>         <param-value>server</param-**value>
> >>> >> > > > > >>     </context-param>
> >>> >> > > > > >>     <context-param>
> >>> >> > > > > >>         <param-name>
> >>> >> > > > > >>
> javax.faces.DATETIMECONVERTER_**DEFAULT_TIMEZONE_IS_SYSTEM_**
> >>> >> > > > > >> TIMEZONE</param-name>
> >>> >> > > > > >>         <param-value>true</param-**value>
> >>> >> > > > > >>     </context-param>
> >>> >> > > > > >>      <context-param>
> >>> >> > > > > >>
> >>> >> > > >
> <param-name>javax.faces.**FACELETS_SKIP_COMMENTS</param-**name>
> >>> >> > > > > >>         <param-value>true</param-**value>
> >>> >> > > > > >>     </context-param>
> >>> >> > > > > >>     <context-param>
> >>> >> > > > > >>
> >>> >> > > > > >>
> <param-name>com.sun.faces.**enableMissingResourceLibraryDe**
> >>> >> > > > > >> tection</param-name>
> >>> >> > > > > >>         <param-value>true</param-**value>
> >>> >> > > > > >>     </context-param>
> >>> >> > > > > >>     <listener>
> >>> >> > > > > >>         *
> >>> >> > > > > >> <listener-class>org.apache.**myfaces.webapp.**
> >>> >> > > > > >> StartupServletContextListener<**/listener-class>
> >>> >> > > > > >> *
> >>> >> > > > > >>     </listener>
> >>> >> > > > > >>     <servlet>
> >>> >> > > > > >>         <servlet-name>Faces Servlet</servlet-name>
> >>> >> > > > > >>
> >>> >> > <servlet-class>javax.faces.**webapp.FacesServlet</servlet-**
> >>> >> > > > > >> class>
> >>> >> > > > > >>         <load-on-startup>1</load-on-**startup>
> >>> >> > > > > >>     </servlet>
> >>> >> > > > > >>     <servlet-mapping>
> >>> >> > > > > >>         <servlet-name>Faces Servlet</servlet-name>
> >>> >> > > > > >>         <url-pattern>/faces/*</url-**pattern>
> >>> >> > > > > >>     </servlet-mapping>
> >>> >> > > > > >>     <session-config>
> >>> >> > > > > >>         <session-timeout>
> >>> >> > > > > >>             30
> >>> >> > > > > >>         </session-timeout>
> >>> >> > > > > >>     </session-config>
> >>> >> > > > > >>     <welcome-file-list>
> >>> >> > > > > >>         <welcome-file>faces/index.**xhtml</welcome-file>
> >>> >> > > > > >>     </welcome-file-list>
> >>> >> > > > > >> </web-app>
> >>> >> > > > > >>
> >>> >> > > > > >> ----------------  ----------------  ----------------
> >>> >> > > > > >>
> >>> >> > > > > >> Here are my libraries:
> >>> >> > > > > >>
> >>> >> > > > > >> --MYFACES
> >>> >> > > > > >> myfaces-api-2.1.6.jar
> >>> >> > > > > >> myfaces-impl-2.1.6.jar
> >>> >> > > > > >> commons-beanutils-1.8.3.jar
> >>> >> > > > > >> commons-digester-1.8.jar
> >>> >> > > > > >> commons-logging-1.8.jar
> >>> >> > > > > >> commons-codec-1.1.1.jar
> >>> >> > > > > >> commons-collections-3.2.jar
> >>> >> > > > > >> --MYFACES CODI
> >>> >> > > > > >> myfaces-extcdi-alternative-**implementation-module-1.0.4
> >>> >> > > > > >> myfaces-extcdi-bv1-module-api-**1.0.4
> >>> >> > > > > >> myfaces-extcdi-bv1-module-**impl-1.0.4
> >>> >> > > > > >> myfaces-extcdi-core-**alternative-configuration-1.0.**4
> >>> >> > > > > >> myfaces-extcdi-core-api-1.0.4
> >>> >> > > > > >> myfaces-extcdi-core-impl-1.0.4
> >>> >> > > > > >> myfaces-extcdi-jpa1-module-**api-1.0.4
> >>> >> > > > > >> myfaces-extcdi-jpa1-module-**impl-1.0.4
> >>> >> > > > > >> myfaces-extcdi-jsf20-module-**api-1.0.4
> >>> >> > > > > >> myfaces-extcdi-jsf20-module-**impl-1.0.4
> >>> >> > > > > >> myfaces-extcdi-jsf-**alternative-configuration-1.0.**4
> >>> >> > > > > >> myfaces-extcdi-message-module-**api-1.0.4
> >>> >> > > > > >> myfaces-extcdi-message-module-**impl-1.0.4
> >>> >> > > > > >> myfaces-extcdi-scripting-**module-api-1.0.4
> >>> >> > > > > >> myfaces-extcdi-scripting-**module-impl-1.0.4
> >>> >> > > > > >>
> >>> >> > > > > >>
> >>> >> > > > > >> I dont know if because the "WARNING" i have other
> problem:
> >>> >> > > > > >>
> >>> >> > > > > >> javax.el.**PropertyNotFoundException: Target Unreachable,
> >>> >> > identifier
> >>> >> > > > > >> 'myBean'
> >>> >> > > > > >> resolved to null,
> >>> >> > > > > >>
> >>> >> > > > > >> I have in my beans.xml file under WEB-INF this:
> >>> >> > > > > >>
> >>> >> > > > > >> <?xml version="1.0" encoding="UTF-8"?>
> >>> >> > > > > >> <beans xmlns="http://java.sun.com/**xml/ns/javaee<
> >>> >> > > > > http://java.sun.com/xml/ns/javaee>
> >>> >> > > > > >> "
> >>> >> > > > > >>        xmlns:xsi="
> >>> http://www.w3.org/**2001/XMLSchema-instance<
> >>> >> > > > > http://www.w3.org/2001/XMLSchema-instance>
> >>> >> > > > > >> "
> >>> >> > > > > >>        xsi:schemaLocation="http://**
> >>> java.sun.com/xml/ns/javaee<
> >>> >> > > > > http://java.sun.com/xml/ns/javaee>
> >>> >> > > > > >> http://java.sun.com/xml/ns/**javaee/beans_1_0.xsd<
> >>> >> > > > > http://java.sun.com/xml/ns/javaee/beans_1_0.xsd>
> >>> >> > > > > >> ">
> >>> >> > > > > >> </beans>
> >>> >> > > > > >>
> >>> >> > > > > >> and in my bean:
> >>> >> > > > > >>
> >>> >> > > > > >> @Named
> >>> >> > > > > >> @ViewAccessScoped
> >>> >> > > > > >> @Model
> >>> >> > > > > >> @View(Index.class)
> >>> >> > > > > >> public class MyBean implements Serializable{
> >>> >> > > > > >>    public void test(){
> >>> >> > > > > >>      //do nothing
> >>> >> > > > > >>    }
> >>> >> > > > > >>
> >>> >> > > > > >> .....
> >>> >> > > > > >> }
> >>> >> > > > > >>
> >>> >> > > > > >> and in my index.xhtml
> >>> >> > > > > >>
> >>> >> > > > > >> <h:commandButton value="CLICK" action="#{myBean.test}"/>
> >>> >> > > > > >>
> >>> >> > > > > >> if i click my button the i get this error:
> >>> >> > > > > >>
> >>> >> > > > > >> javax.el.**PropertyNotFoundException: Target Unreachable,
> >>> >> > identifier
> >>> >> > > > > >> 'myBean'
> >>> >> > > > > >> resolved to null
> >>> >> > > > > >> viewId=/index.xhtml
> >>> >> > > > > >> location=C:\Users\user\**Documents\NetBeansProjects\**
> >>> >> > > > > >> testweb\build\web\index.xhtml
> >>> >> > > > > >> phaseId=INVOKE_APPLICATION(5)
> >>> >> > > > > >> Caused by:
> >>> >> > > > > >> javax.el.**PropertyNotFoundException - Target
> Unreachable,
> >>> >> > > identifier
> >>> >> > > > > >> 'myBean' resolved to null
> >>> >> > > > > >> at
> com.sun.el.parser.AstValue.**getTarget(AstValue.java:153)
> >>> >> > > > > >>
> >>> >> > > > > >>
> >>> >> > > > > >> I dont know if this is for the first problem  (*Both
> MyFaces
> >>> and
> >>> >> > the
> >>> >> > > > RI
> >>> >> > > > > >> are
> >>> >> > > > > >>
> >>> >> > > > > >> on your classpath. Please make sure to use only one of
> the
> >>> two
> >>> >> > > > > >> JSF-implementations.*)
> >>> >> > > > > >>
> >>> >> > > > > >> I read i need to have my beans.xml but i have it!!!
> >>> >> > > > > >>
> >>> >> > > > > >> Thanks, and sorry for the english, is not my native
> language
> >>> >> > > > > >>
> >>> >> > > > > >>
> >>> >> > > > > >> Im using: Netbeans 7.1, *Glassfish 3.1.2.1,* JDK 7u3,
> MyFaces
> >>> >> > 2.1.6,
> >>> >> > > > > CODI
> >>> >> > > > > >> 1.0.4, Windows 7.
> >>> >> > > > > >>
> >>> >> > > > > >>
> >>> >> > > > > >
> >>> >> > > > > >
> >>> >> > > > >
> >>> >> > > > >
> >>> >> > > > > --
> >>> >> > > > >
> >>> -------------------------------------------------------------------
> >>> >> > > > > *SCJA. José Luis Cetina*
> >>> >> > > > >
> >>> -------------------------------------------------------------------
> >>> >> > > > >
> >>> >> > > > >
> >>> >> > > >
> >>> >> > > >
> >>> >> > > > --
> >>> >> > > >
> >>> -------------------------------------------------------------------
> >>> >> > > > *SCJA. José Luis Cetina*
> >>> >> > > >
> >>> -------------------------------------------------------------------
> >>> >> > > >
> >>> >> > >
> >>> >> >
> >>> >> >
> >>> >> >
> >>> >> > --
> >>> >> >
> -------------------------------------------------------------------
> >>> >> > *SCJA. José Luis Cetina*
> >>> >> >
> -------------------------------------------------------------------
> >>> >> >
> >>> >>
> >>> >
> >>> >
> >>> >
> >>> > --
> >>> > -------------------------------------------------------------------
> >>> > *SCJA. José Luis Cetina*
> >>> > -------------------------------------------------------------------
> >>>
>

Re: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

Posted by Leonardo Uribe <lu...@gmail.com>.
Hi

I almost forgot to say:

org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
cannot be cast to javassist.util.proxy.ProxyObject*
*java.lang.ClassCastException:
org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
cannot be cast to javassist.util.proxy.ProxyObject*

It looks like some issue with the classloader.

And the issue with @Model,@Named and @ViewAccessScoped could be caused
because it is necessary a LifecycleProvider2 implementation for
Glassfish, so the container can resolve such annotations when the bean
is constructed and destroyed. Since Glassfish is CDDL+GPL licensed,
there is no default LifecycleProvider bundled with MyFaces.

regards,

Leonardo Uribe

2012/3/13 Leonardo Uribe <lu...@gmail.com>:
> Hi
>
> First of all, the problem is related to glassfish. This container does
> not provide a clear way to change of jsf implementation.
>
> It is not that myfaces cannot run with glassfish, instead glassfish is
> not kind with any other alternate jsf implementation.
>
> The classloader flag is just a workaround in my opinion, but it works.
> The message:
>
> *Both MyFaces and the RI are on your classpath. Please make sure to use
> only one of the two JSF-implementations.*
>
> Just ignore it. Glassfish classloader will find myfaces jars first
> than mojarra ones.
>
> The other problem you are experiencing is related to the same
> classloader flag. Since myfaces jars should be on WEB-INF/lib, those
> jars cannot be found by weld, so to make it work, you need to use
> another library like OpenWebBeans and put the related jar files on
> WEB-INF/lib folder too. That will work but it is not ideal. Anyway,
> most of the people will not care about this.
>
> The right way to do it should be done from glassfish side, removing
> mojarra jars and including myfaces ones in the container (not
> including myfaces into the webapp). But that's not easy, because I
> suppose it is necessary to check if glassfish internals will still
> work, and it should exists an integration code between mojarra and
> glassfish somewhere. Basically, glassfish does not provide a clean
> extension point to do this.
>
> Other containers like JBoss do things right, they provide a deployer
> that uses myfaces integration code. See:
>
> https://cwiki.apache.org/confluence/display/MYFACES/Integration+with+application+and+web+servers
>
> regards,
>
> Leonardo Uribe
>
>
> 2012/3/13 Gerhard Petracek <ge...@gmail.com>:
>> hi mike,
>>
>> right now geronimo3 isn't in the list [1] of the supported servers.
>>
>> regards,
>> gerhard
>>
>> [1]
>> https://cwiki.apache.org/confluence/display/EXTCDI/Intro#Intro-Compatibility
>>
>>
>> http://www.irian.at
>>
>> Your JSF/JavaEE powerhouse -
>> JavaEE Consulting, Development and
>> Courses in English and German
>>
>> Professional Support for Apache MyFaces
>>
>>
>>
>> 2012/3/13 Mike Kienenberger <mk...@gmail.com>
>>
>>> I don't have much experience with them, but Apache Geronimo and, to a
>>> lesser degree, Apache Tomcat would be alternatives to Glassfish.
>>> There may be others.
>>>
>>> 2012/3/13 José Luis Cetina <ma...@gmail.com>:
>>> > Let me tell you that the example deploy and RAN without any problem and i
>>> > dont move any line of code, i only deploy in tomcat without any problem,
>>> i
>>> > want to use apache  product's like myfaces, CODI, etc, i want to know if
>>> > you can give me an objective suggestion with what Application Server i
>>> can
>>> > use with your products, i have the opportunity for choose.
>>> >
>>> > Thanks
>>> >
>>> >
>>> > 2012/3/13 Gerhard Petracek <ge...@gmail.com>
>>> >
>>> >> hi jose,
>>> >>
>>> >> you can run the generated demos with a servlet container like jetty (see
>>> >> the comment in the generated pom.xml file), tomcat,... .
>>> >> by default the myfaces-core profile is activated.
>>> >>
>>> >> we just need to know if your implementation works with such a generated
>>> >> application.
>>> >> esp. because glassfish adds further complexity with the mentioned
>>> >> classloader-config (e.g. with this config-entries you can't use
>>> >> myfaces-core and owb in parallel - that's a known classloading issue
>>> >> of glassfish).
>>> >>
>>> >> regards,
>>> >> gerhard
>>> >>
>>> >>
>>> >>
>>> >> 2012/3/13 José Luis Cetina <ma...@gmail.com>
>>> >>
>>> >> > I downloaded the example number 11 and i run the project without any
>>> >> > problem, but i can see that the project is using Mojarra "Profile" as
>>> JSF
>>> >> > Impl (the log sayed to me Mojarra...). Then if i change to use MyFaces
>>> >> > chossing the myfaces profile and adding these lines to my
>>> >> > g*lassfish-web.xml
>>> >> > *:
>>> >> >
>>> >> > <class-loader delegate="false"/>
>>> >> > <property name="useBundledJsf" value="true"/>
>>> >> >
>>> >> > then i got an *exception *and i CANT run the project:
>>> >> >
>>> >> > Here is the *glassfish log:*
>>> >> > -----------------------------------------------------
>>> >> >
>>> >> > Launching GlassFish on Felix platform
>>> >> > Información: Running GlassFish Version: GlassFish Server Open Source
>>> >> > Edition 3.1.2 (build 23)
>>> >> > Información: Grizzly Framework 1.9.46 started in: 78ms - bound to [
>>> >> > 0.0.0.0:8080]
>>> >> > Información: Grizzly Framework 1.9.46 started in: 56ms - bound to [
>>> >> > 0.0.0.0:8181]
>>> >> > Información: Grizzly Framework 1.9.46 started in: 106ms - bound to [
>>> >> > 0.0.0.0:3700]
>>> >> > Información: Grizzly Framework 1.9.46 started in: 120ms - bound to [
>>> >> > 0.0.0.0:4848]
>>> >> > Información: Grizzly Framework 1.9.46 started in: 146ms - bound to [
>>> >> > 0.0.0.0:7676]
>>> >> > Información: The Admin Console is already installed, but not yet
>>> loaded.
>>> >> > Información: Registered
>>> >> > org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for
>>> >> > persistence-type = replicated in BackingStoreFactoryRegistry
>>> >> > Información: GlassFish Server Open Source Edition 3.1.2 (23) tiempo de
>>> >> > inicio: Felix (2,441ms), servicios de inicio(1,240ms), total(3,681ms)
>>> >> > Información: JMX005: JMXStartupService had Started JMXConnector on
>>> >> > JMXService URL service:jmx:rmi://
>>> >> > 192.168.1.209:8686/jndi/rmi://192.168.1.209:8686/jmxrmi
>>> >> > Información: Hibernate Validator 4.2.0.Final
>>> >> > Información: Grizzly Framework 1.9.46 started in: 49ms - bound to [
>>> >> > 0.0.0.0:8080]
>>> >> > Información: SEC1002: Security Manager is OFF.
>>> >> > Información: SEC1010: Entering Security Startup Service
>>> >> > Información: SEC1143: Loading policy provider
>>> >> > com.sun.enterprise.security.provider.PolicyWrapper.
>>> >> > Información: SEC1115: Realm [admin-realm] of classtype
>>> >> > [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully
>>> >> > created.
>>> >> > Información: SEC1115: Realm [file] of classtype
>>> >> > [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully
>>> >> > created.
>>> >> > Información: SEC1115: Realm [certificate] of classtype
>>> >> > [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm]
>>> >> > successfully created.
>>> >> > Información: SEC1011: Security Service(s) Started Successfully
>>> >> > Información: WEB0169: Created HTTP listener [http-listener-1] on
>>> >> host/port
>>> >> > [
>>> >> > 0.0.0.0:8080]
>>> >> > Información: WEB0169: Created HTTP listener [http-listener-2] on
>>> >> host/port
>>> >> > [
>>> >> > 0.0.0.0:8181]
>>> >> > Información: WEB0169: Created HTTP listener [admin-listener] on
>>> >> host/port [
>>> >> > 0.0.0.0:4848]
>>> >> > Información: WEB0171: Created virtual server [server]
>>> >> > Información: WEB0171: Created virtual server [__asadmin]
>>> >> > Información: WEB0172: Virtual server [server] loaded default web
>>> module
>>> >> []
>>> >> > Información: WELD-000900 1.1.4 (Final)
>>> >> > Grave: Exception while loading the app
>>> >> > *Grave: Exception while loading the app :
>>> >> >
>>> >> >
>>> >>
>>> org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
>>> >> > cannot be cast to javassist.util.proxy.ProxyObject*
>>> >> > *java.lang.ClassCastException:
>>> >> >
>>> >> >
>>> >>
>>> org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
>>> >> > cannot be cast to javassist.util.proxy.ProxyObject*
>>> >> > at
>>> org.jboss.weld.bean.proxy.ProxyFactory.create(ProxyFactory.java:245)
>>> >> > at
>>> >> >
>>> >> >
>>> >>
>>> org.jboss.weld.bean.builtin.ee.AbstractEEBean.<init>(AbstractEEBean.java:43)
>>> >> > at
>>> >> >
>>> >> >
>>> >>
>>> org.jboss.weld.bean.builtin.ee.UserTransactionBean.<init>(UserTransactionBean.java:52)
>>> >> > at
>>> >> >
>>> >> >
>>> >>
>>> org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:177)
>>> >> > at
>>> >> >
>>> >>
>>> org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:336)
>>> >> > at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:179)
>>> >> > at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:128)
>>> >> > at
>>> >> >
>>> >>
>>> org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:277)
>>> >> > at
>>> >> >
>>> >> >
>>> >>
>>> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:460)
>>> >> > at
>>> >> >
>>> >> >
>>> >>
>>> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
>>> >> > at
>>> >> >
>>> >> >
>>> >>
>>> org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
>>> >> > at
>>> >> >
>>> >> >
>>> >>
>>> com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
>>> >> > at
>>> >> >
>>> >> >
>>> >>
>>> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
>>> >> > at
>>> >> >
>>> >> >
>>> >>
>>> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
>>> >> > at
>>> >> >
>>> >> >
>>> >>
>>> com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
>>> >> > at
>>> >> >
>>> >> >
>>> >>
>>> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
>>> >> > at
>>> >> >
>>> >> >
>>> >>
>>> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
>>> >> > at
>>> >> >
>>> com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)
>>> >> > at
>>> >> com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)
>>> >> > at
>>> >> >
>>> >>
>>> com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
>>> >> > at
>>> >> >
>>> >>
>>> com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
>>> >> > at
>>> >> >
>>> >> >
>>> >>
>>> com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
>>> >> > at
>>> >> >
>>> >> >
>>> >>
>>> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
>>> >> > at
>>> >> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
>>> >> > at
>>> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
>>> >> > at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
>>> >> > at
>>> >> >
>>> >> >
>>> >>
>>> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
>>> >> > 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:722)
>>> >> >
>>> >> > Información: WEB0169: Created HTTP listener [http-listener-2] on
>>> >> host/port
>>> >> > [
>>> >> > 0.0.0.0:8181]
>>> >> > Información: Grizzly Framework 1.9.46 started in: 45ms - bound to [
>>> >> > 0.0.0.0:8181]
>>> >> >
>>> >> >
>>> >> > -----------------------------------------------------
>>> >> >
>>> >> > 2012/3/13 Gerhard Petracek <ge...@gmail.com>
>>> >> >
>>> >> > > hi jose,
>>> >> > >
>>> >> > > you can use the myfaces-archetype to generate the correct config for
>>> >> > > myfaces-core (as well as mojarra) + owb (+ myfaces codi):
>>> >> > >
>>> >> > > mvn archetype:generate -DarchetypeCatalog=http://myfaces.apache.org
>>> >> > > -> e.g. select #11 (afterwards you just have to update the versions
>>> in
>>> >> > the
>>> >> > > generated pom.xml file.)
>>> >> > >
>>> >> > > if it still doesn't work with the generated example, you can provide
>>> >> the
>>> >> > > example and we can have a look at it.
>>> >> > >
>>> >> > > regards,
>>> >> > > gerhard
>>> >> > >
>>> >> > >
>>> >> > >
>>> >> > > 2012/3/13 José Luis Cetina <ma...@gmail.com>
>>> >> > >
>>> >> > > > I see, i erase and only put @Named and @ ViewAccessScoped and get
>>> the
>>> >> > > same
>>> >> > > > error, but i try with only @Named and @RequestScoped (java) and
>>> still
>>> >> > the
>>> >> > > > error, i think the problem is the @Named is not injecting my bean,
>>> >> not
>>> >> > > > MyFaces, because if i use @ManagedBean this works ok, but i dont
>>> >> > > understand
>>> >> > > > why if i chagen from MyFaces to Mojarra the @Named and
>>> >> > @ViewAccessScoped
>>> >> > > > works ok!!
>>> >> > > >
>>> >> > > > :(
>>> >> > > >
>>> >> > > >
>>> >> > > > 2012/3/13 Rafael Pestano <rm...@yahoo.com.br>
>>> >> > > >
>>> >> > > > > just a question, why do you have @Model,@Named and
>>> >> @ViewAccessScoped
>>> >> > in
>>> >> > > > > the same bean?
>>> >> > > > >
>>> >> > > > > i think you need @model OR @Named and @ViewAccessScoped
>>> >> > > > >
>>> >> > > > > or im wrong?
>>> >> > > > >
>>> >> > > > > Att,
>>> >> > > > > Rafael M. Pestano
>>> >> > > > > Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande
>>> do
>>> >> > Sul
>>> >> > > > > Graduando em Ciência da Computação UFRGS
>>> >> > > > > @realpestano
>>> >> > > > > http://code.google.com/p/jsf-conventions-framework/
>>> >> > > > >
>>> >> > > > >
>>> >> > > > >
>>> >> > > > > ----- Mensagem original -----
>>> >> > > > > De: José Luis Cetina <ma...@gmail.com>
>>> >> > > > > Para: MyFaces Discussion <us...@myfaces.apache.org>
>>> >> > > > > Cc:
>>> >> > > > > Enviadas: Terça-feira, 13 de Março de 2012 12:28
>>> >> > > > > Assunto: Re: Both MyFaces and the RI are on your classpath.
>>> Please
>>> >> > make
>>> >> > > > > sure to use only one of the two JSF-implementations.
>>> >> > > > >
>>> >> > > > > I see now im using MyFaces instead of Mojarra, the "ERROR"
>>> Message
>>> >> > > still
>>> >> > > > > there, but the application can deploy. My second problem
>>> persist:
>>> >> > > > >
>>> >> > > > > javax.el.PropertyNotFoundException: Target Unreachable,
>>> identifier
>>> >> > > > 'myBean'
>>> >> > > > > resolved to null
>>> >> > > > > viewId=/index.xhtml
>>> >> > > > >
>>> >> > > > >
>>> >> > > >
>>> >> > >
>>> >> >
>>> >>
>>> location=C:\Users\user\Documents\NetBeansProjects\testweb\build\web\index.xhtml
>>> >> > > > > phaseId=INVOKE_APPLICATION(5)
>>> >> > > > >
>>> >> > > > >
>>> >> > > > > i have the my beans.xml under WEB-INF folder:
>>> >> > > > > beans.xml:
>>> >> > > > >
>>> >> > > > > <?xml version="1.0" encoding="UTF-8"?>
>>> >> > > > > <beans 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/beans_1_0.xsd">
>>> >> > > > > </beans>
>>> >> > > > >
>>> >> > > > >
>>> >> > > > > And my bean its ok:
>>> >> > > > >
>>> >> > > > > @Named
>>> >> > > > > @ViewAccessScoped
>>> >> > > > > @Model
>>> >> > > > > @View(Index.class)
>>> >> > > > > public class MyBean implements Serializable{
>>> >> > > > > }
>>> >> > > > >
>>> >> > > > > If i change from MyFaces to Mojarra this work ok!!!   :(
>>> >> > > > >
>>> >> > > > > Somebody know what can i do?
>>> >> > > > >
>>> >> > > > > *Im using: Netbeans 7.1, Glassfish 3.1.2.1, JDK 7u3, MyFaces
>>> 2.1.6,
>>> >> > > > > CODI 1.0.4, Windows 7. *
>>> >> > > > > *
>>> >> > > > > *
>>> >> > > > > *Thanks.*
>>> >> > > > > *
>>> >> > > > > *
>>> >> > > > >
>>> >> > > >
>>> >> > >
>>> >> >
>>> >>
>>> *-------------------------------------------------------------------------*
>>> >> > > > >
>>> >> > > > >
>>> >> > > > > 2012/3/13 Werner Punz <we...@gmail.com>
>>> >> > > > >
>>> >> > > > > > Mhh this looks like a bug in Glassfish to me, the entries  in
>>> the
>>> >> > > > > > glassfish-web.xml look correct to me. Problem is generally
>>> that
>>> >> > > > glassfish
>>> >> > > > > > is not to keen on overrides of its system libs in my
>>> experience.
>>> >> > Even
>>> >> > > > > while
>>> >> > > > > > myfaces runs, try to replace Weld for instance and you run
>>> into a
>>> >> > > mess.
>>> >> > > > > > Glassfish as good as it is is an all or nothing pack in many
>>> >> cases.
>>> >> > > > > > But it has been some time since I last touched Glassfish,
>>> things
>>> >> > > might
>>> >> > > > > > have changed.
>>> >> > > > > >
>>> >> > > > > >
>>> >> > > > > >
>>> >> > > > > > Werner
>>> >> > > > > >
>>> >> > > > > >
>>> >> > > > > > Am 12.03.12 17:40, schrieb José Luis Cetina:
>>> >> > > > > >
>>> >> > > > > >> Im triying to start a new project for first time with
>>> myfaces, i
>>> >> > > > always
>>> >> > > > > >> used Mojarra but know i want to change but im having
>>> problems at
>>> >> > the
>>> >> > > > > >> start:
>>> >> > > > > >>
>>> >> > > > > >> My only requierement is use Glassfish 3.1.2.1.
>>> >> > > > > >>
>>> >> > > > > >> Hi i have this WARNING:
>>> >> > > > > >>
>>> >> > > > > >> *Both MyFaces and the RI are on your classpath. Please make
>>> sure
>>> >> > to
>>> >> > > > use
>>> >> > > > > >> only one of the two JSF-implementations.*
>>> >> > > > > >>
>>> >> > > > > >>
>>> >> > > > > >> Why this happend if im using only jars from myfaces?? maybe
>>> for
>>> >> > > > > glassfish
>>> >> > > > > >> i
>>> >> > > > > >> think, i have these in my *glassfish-web.xml* file, under
>>> >> WEB-INF
>>> >> > > > > folder:
>>> >> > > > > >>
>>> >> > > > > >>
>>> >> > > > > >> <?xml version="1.0" encoding="UTF-8"?>
>>> >> > > > > >> <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD
>>> >> > GlassFish
>>> >> > > > > >> Application Server 3.1 Servlet 3.0//EN" "
>>> >> > > > > >> http://glassfish.org/dtds/**glassfish-web-app_3_0-1.dtd<
>>> >> > > > > http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd>
>>> >> > > > > >> ">
>>> >> > > > > >> <glassfish-web-app error-url="">
>>> >> > > > > >>     <!--Para establecer el charset a utf8 y remover el
>>> mensaje
>>> >> de:
>>> >> > > > > >> PWC4011:
>>> >> > > > > >> Unable to set request character encoding to UTF-8 from
>>> >> context-->
>>> >> > > > > >>     <parameter-encoding default-charset="UTF-8"/>
>>> >> > > > > >>     *<class-loader delegate="false"/>*
>>> >> > > > > >> *<property name="useBundledJsf" value="true"/>*
>>> >> > > > > >>
>>> >> > > > > >>     <!--<class-loader delegate="true"/>-->
>>> >> > > > > >>     <jsp-config>
>>> >> > > > > >>         <property name="keepgenerated" value="true">
>>> >> > > > > >>             <description>Keep a copy of the generated servlet
>>> >> > class'
>>> >> > > > > java
>>> >> > > > > >> code.</description>
>>> >> > > > > >>         </property>
>>> >> > > > > >>     </jsp-config>
>>> >> > > > > >> </glassfish-web-app>
>>> >> > > > > >>
>>> >> > > > > >> ----------------  ----------------  ----------------
>>> >> > > > > >>
>>> >> > > > > >> This is my web.xml
>>> >> > > > > >>
>>> >> > > > > >> <?xml version="1.0" encoding="UTF-8"?>
>>> >> > > > > >> <web-app version="3.0" xmlns="
>>> >> http://java.sun.com/**xml/ns/javaee
>>> >> > <
>>> >> > > > > http://java.sun.com/xml/ns/javaee>"
>>> >> > > > > >> xmlns:xsi="
>>> >> > > > > >> http://www.w3.org/2001/**XMLSchema-instance<
>>> >> > > > > http://www.w3.org/2001/XMLSchema-instance>"
>>> >> > > > > >> xsi:schemaLocation="
>>> >> > > > > >> http://java.sun.com/xml/ns/**javaee <
>>> >> > > > http://java.sun.com/xml/ns/javaee>
>>> >> > > > > >> http://java.sun.com/xml/ns/**javaee/web-app_3_0.xsd<
>>> >> > > > > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd>
>>> >> > > > > >> ">
>>> >> > > > > >>     <context-param>
>>> >> > > > > >>         <param-name>javax.faces.**PROJECT_STAGE</param-name>
>>> >> > > > > >>         <param-value>Development</**param-value>
>>> >> > > > > >>     </context-param>
>>> >> > > > > >>     <context-param>
>>> >> > > > > >>
>>> >> > <param-name>com.ocpsoft.**pretty.DEVELOPMENT</param-**name>
>>> >> > > > > >>         <param-value>true</param-**value>
>>> >> > > > > >>     </context-param>
>>> >> > > > > >>     <context-param>
>>> >> > > > > >>
>>> >> <param-name>javax.faces.STATE_**SAVING_METHOD</param-name>
>>> >> > > > > >>         <param-value>server</param-**value>
>>> >> > > > > >>     </context-param>
>>> >> > > > > >>     <context-param>
>>> >> > > > > >>         <param-name>
>>> >> > > > > >> javax.faces.DATETIMECONVERTER_**DEFAULT_TIMEZONE_IS_SYSTEM_**
>>> >> > > > > >> TIMEZONE</param-name>
>>> >> > > > > >>         <param-value>true</param-**value>
>>> >> > > > > >>     </context-param>
>>> >> > > > > >>      <context-param>
>>> >> > > > > >>
>>> >> > > > <param-name>javax.faces.**FACELETS_SKIP_COMMENTS</param-**name>
>>> >> > > > > >>         <param-value>true</param-**value>
>>> >> > > > > >>     </context-param>
>>> >> > > > > >>     <context-param>
>>> >> > > > > >>
>>> >> > > > > >> <param-name>com.sun.faces.**enableMissingResourceLibraryDe**
>>> >> > > > > >> tection</param-name>
>>> >> > > > > >>         <param-value>true</param-**value>
>>> >> > > > > >>     </context-param>
>>> >> > > > > >>     <listener>
>>> >> > > > > >>         *
>>> >> > > > > >> <listener-class>org.apache.**myfaces.webapp.**
>>> >> > > > > >> StartupServletContextListener<**/listener-class>
>>> >> > > > > >> *
>>> >> > > > > >>     </listener>
>>> >> > > > > >>     <servlet>
>>> >> > > > > >>         <servlet-name>Faces Servlet</servlet-name>
>>> >> > > > > >>
>>> >> > <servlet-class>javax.faces.**webapp.FacesServlet</servlet-**
>>> >> > > > > >> class>
>>> >> > > > > >>         <load-on-startup>1</load-on-**startup>
>>> >> > > > > >>     </servlet>
>>> >> > > > > >>     <servlet-mapping>
>>> >> > > > > >>         <servlet-name>Faces Servlet</servlet-name>
>>> >> > > > > >>         <url-pattern>/faces/*</url-**pattern>
>>> >> > > > > >>     </servlet-mapping>
>>> >> > > > > >>     <session-config>
>>> >> > > > > >>         <session-timeout>
>>> >> > > > > >>             30
>>> >> > > > > >>         </session-timeout>
>>> >> > > > > >>     </session-config>
>>> >> > > > > >>     <welcome-file-list>
>>> >> > > > > >>         <welcome-file>faces/index.**xhtml</welcome-file>
>>> >> > > > > >>     </welcome-file-list>
>>> >> > > > > >> </web-app>
>>> >> > > > > >>
>>> >> > > > > >> ----------------  ----------------  ----------------
>>> >> > > > > >>
>>> >> > > > > >> Here are my libraries:
>>> >> > > > > >>
>>> >> > > > > >> --MYFACES
>>> >> > > > > >> myfaces-api-2.1.6.jar
>>> >> > > > > >> myfaces-impl-2.1.6.jar
>>> >> > > > > >> commons-beanutils-1.8.3.jar
>>> >> > > > > >> commons-digester-1.8.jar
>>> >> > > > > >> commons-logging-1.8.jar
>>> >> > > > > >> commons-codec-1.1.1.jar
>>> >> > > > > >> commons-collections-3.2.jar
>>> >> > > > > >> --MYFACES CODI
>>> >> > > > > >> myfaces-extcdi-alternative-**implementation-module-1.0.4
>>> >> > > > > >> myfaces-extcdi-bv1-module-api-**1.0.4
>>> >> > > > > >> myfaces-extcdi-bv1-module-**impl-1.0.4
>>> >> > > > > >> myfaces-extcdi-core-**alternative-configuration-1.0.**4
>>> >> > > > > >> myfaces-extcdi-core-api-1.0.4
>>> >> > > > > >> myfaces-extcdi-core-impl-1.0.4
>>> >> > > > > >> myfaces-extcdi-jpa1-module-**api-1.0.4
>>> >> > > > > >> myfaces-extcdi-jpa1-module-**impl-1.0.4
>>> >> > > > > >> myfaces-extcdi-jsf20-module-**api-1.0.4
>>> >> > > > > >> myfaces-extcdi-jsf20-module-**impl-1.0.4
>>> >> > > > > >> myfaces-extcdi-jsf-**alternative-configuration-1.0.**4
>>> >> > > > > >> myfaces-extcdi-message-module-**api-1.0.4
>>> >> > > > > >> myfaces-extcdi-message-module-**impl-1.0.4
>>> >> > > > > >> myfaces-extcdi-scripting-**module-api-1.0.4
>>> >> > > > > >> myfaces-extcdi-scripting-**module-impl-1.0.4
>>> >> > > > > >>
>>> >> > > > > >>
>>> >> > > > > >> I dont know if because the "WARNING" i have other problem:
>>> >> > > > > >>
>>> >> > > > > >> javax.el.**PropertyNotFoundException: Target Unreachable,
>>> >> > identifier
>>> >> > > > > >> 'myBean'
>>> >> > > > > >> resolved to null,
>>> >> > > > > >>
>>> >> > > > > >> I have in my beans.xml file under WEB-INF this:
>>> >> > > > > >>
>>> >> > > > > >> <?xml version="1.0" encoding="UTF-8"?>
>>> >> > > > > >> <beans xmlns="http://java.sun.com/**xml/ns/javaee<
>>> >> > > > > http://java.sun.com/xml/ns/javaee>
>>> >> > > > > >> "
>>> >> > > > > >>        xmlns:xsi="
>>> http://www.w3.org/**2001/XMLSchema-instance<
>>> >> > > > > http://www.w3.org/2001/XMLSchema-instance>
>>> >> > > > > >> "
>>> >> > > > > >>        xsi:schemaLocation="http://**
>>> java.sun.com/xml/ns/javaee<
>>> >> > > > > http://java.sun.com/xml/ns/javaee>
>>> >> > > > > >> http://java.sun.com/xml/ns/**javaee/beans_1_0.xsd<
>>> >> > > > > http://java.sun.com/xml/ns/javaee/beans_1_0.xsd>
>>> >> > > > > >> ">
>>> >> > > > > >> </beans>
>>> >> > > > > >>
>>> >> > > > > >> and in my bean:
>>> >> > > > > >>
>>> >> > > > > >> @Named
>>> >> > > > > >> @ViewAccessScoped
>>> >> > > > > >> @Model
>>> >> > > > > >> @View(Index.class)
>>> >> > > > > >> public class MyBean implements Serializable{
>>> >> > > > > >>    public void test(){
>>> >> > > > > >>      //do nothing
>>> >> > > > > >>    }
>>> >> > > > > >>
>>> >> > > > > >> .....
>>> >> > > > > >> }
>>> >> > > > > >>
>>> >> > > > > >> and in my index.xhtml
>>> >> > > > > >>
>>> >> > > > > >> <h:commandButton value="CLICK" action="#{myBean.test}"/>
>>> >> > > > > >>
>>> >> > > > > >> if i click my button the i get this error:
>>> >> > > > > >>
>>> >> > > > > >> javax.el.**PropertyNotFoundException: Target Unreachable,
>>> >> > identifier
>>> >> > > > > >> 'myBean'
>>> >> > > > > >> resolved to null
>>> >> > > > > >> viewId=/index.xhtml
>>> >> > > > > >> location=C:\Users\user\**Documents\NetBeansProjects\**
>>> >> > > > > >> testweb\build\web\index.xhtml
>>> >> > > > > >> phaseId=INVOKE_APPLICATION(5)
>>> >> > > > > >> Caused by:
>>> >> > > > > >> javax.el.**PropertyNotFoundException - Target Unreachable,
>>> >> > > identifier
>>> >> > > > > >> 'myBean' resolved to null
>>> >> > > > > >> at com.sun.el.parser.AstValue.**getTarget(AstValue.java:153)
>>> >> > > > > >>
>>> >> > > > > >>
>>> >> > > > > >> I dont know if this is for the first problem  (*Both MyFaces
>>> and
>>> >> > the
>>> >> > > > RI
>>> >> > > > > >> are
>>> >> > > > > >>
>>> >> > > > > >> on your classpath. Please make sure to use only one of the
>>> two
>>> >> > > > > >> JSF-implementations.*)
>>> >> > > > > >>
>>> >> > > > > >> I read i need to have my beans.xml but i have it!!!
>>> >> > > > > >>
>>> >> > > > > >> Thanks, and sorry for the english, is not my native language
>>> >> > > > > >>
>>> >> > > > > >>
>>> >> > > > > >> Im using: Netbeans 7.1, *Glassfish 3.1.2.1,* JDK 7u3, MyFaces
>>> >> > 2.1.6,
>>> >> > > > > CODI
>>> >> > > > > >> 1.0.4, Windows 7.
>>> >> > > > > >>
>>> >> > > > > >>
>>> >> > > > > >
>>> >> > > > > >
>>> >> > > > >
>>> >> > > > >
>>> >> > > > > --
>>> >> > > > >
>>> -------------------------------------------------------------------
>>> >> > > > > *SCJA. José Luis Cetina*
>>> >> > > > >
>>> -------------------------------------------------------------------
>>> >> > > > >
>>> >> > > > >
>>> >> > > >
>>> >> > > >
>>> >> > > > --
>>> >> > > >
>>> -------------------------------------------------------------------
>>> >> > > > *SCJA. José Luis Cetina*
>>> >> > > >
>>> -------------------------------------------------------------------
>>> >> > > >
>>> >> > >
>>> >> >
>>> >> >
>>> >> >
>>> >> > --
>>> >> > -------------------------------------------------------------------
>>> >> > *SCJA. José Luis Cetina*
>>> >> > -------------------------------------------------------------------
>>> >> >
>>> >>
>>> >
>>> >
>>> >
>>> > --
>>> > -------------------------------------------------------------------
>>> > *SCJA. José Luis Cetina*
>>> > -------------------------------------------------------------------
>>>

Re: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

Posted by Leonardo Uribe <lu...@gmail.com>.
Hi

First of all, the problem is related to glassfish. This container does
not provide a clear way to change of jsf implementation.

It is not that myfaces cannot run with glassfish, instead glassfish is
not kind with any other alternate jsf implementation.

The classloader flag is just a workaround in my opinion, but it works.
The message:

*Both MyFaces and the RI are on your classpath. Please make sure to use
only one of the two JSF-implementations.*

Just ignore it. Glassfish classloader will find myfaces jars first
than mojarra ones.

The other problem you are experiencing is related to the same
classloader flag. Since myfaces jars should be on WEB-INF/lib, those
jars cannot be found by weld, so to make it work, you need to use
another library like OpenWebBeans and put the related jar files on
WEB-INF/lib folder too. That will work but it is not ideal. Anyway,
most of the people will not care about this.

The right way to do it should be done from glassfish side, removing
mojarra jars and including myfaces ones in the container (not
including myfaces into the webapp). But that's not easy, because I
suppose it is necessary to check if glassfish internals will still
work, and it should exists an integration code between mojarra and
glassfish somewhere. Basically, glassfish does not provide a clean
extension point to do this.

Other containers like JBoss do things right, they provide a deployer
that uses myfaces integration code. See:

https://cwiki.apache.org/confluence/display/MYFACES/Integration+with+application+and+web+servers

regards,

Leonardo Uribe


2012/3/13 Gerhard Petracek <ge...@gmail.com>:
> hi mike,
>
> right now geronimo3 isn't in the list [1] of the supported servers.
>
> regards,
> gerhard
>
> [1]
> https://cwiki.apache.org/confluence/display/EXTCDI/Intro#Intro-Compatibility
>
>
> http://www.irian.at
>
> Your JSF/JavaEE powerhouse -
> JavaEE Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>
>
>
> 2012/3/13 Mike Kienenberger <mk...@gmail.com>
>
>> I don't have much experience with them, but Apache Geronimo and, to a
>> lesser degree, Apache Tomcat would be alternatives to Glassfish.
>> There may be others.
>>
>> 2012/3/13 José Luis Cetina <ma...@gmail.com>:
>> > Let me tell you that the example deploy and RAN without any problem and i
>> > dont move any line of code, i only deploy in tomcat without any problem,
>> i
>> > want to use apache  product's like myfaces, CODI, etc, i want to know if
>> > you can give me an objective suggestion with what Application Server i
>> can
>> > use with your products, i have the opportunity for choose.
>> >
>> > Thanks
>> >
>> >
>> > 2012/3/13 Gerhard Petracek <ge...@gmail.com>
>> >
>> >> hi jose,
>> >>
>> >> you can run the generated demos with a servlet container like jetty (see
>> >> the comment in the generated pom.xml file), tomcat,... .
>> >> by default the myfaces-core profile is activated.
>> >>
>> >> we just need to know if your implementation works with such a generated
>> >> application.
>> >> esp. because glassfish adds further complexity with the mentioned
>> >> classloader-config (e.g. with this config-entries you can't use
>> >> myfaces-core and owb in parallel - that's a known classloading issue
>> >> of glassfish).
>> >>
>> >> regards,
>> >> gerhard
>> >>
>> >>
>> >>
>> >> 2012/3/13 José Luis Cetina <ma...@gmail.com>
>> >>
>> >> > I downloaded the example number 11 and i run the project without any
>> >> > problem, but i can see that the project is using Mojarra "Profile" as
>> JSF
>> >> > Impl (the log sayed to me Mojarra...). Then if i change to use MyFaces
>> >> > chossing the myfaces profile and adding these lines to my
>> >> > g*lassfish-web.xml
>> >> > *:
>> >> >
>> >> > <class-loader delegate="false"/>
>> >> > <property name="useBundledJsf" value="true"/>
>> >> >
>> >> > then i got an *exception *and i CANT run the project:
>> >> >
>> >> > Here is the *glassfish log:*
>> >> > -----------------------------------------------------
>> >> >
>> >> > Launching GlassFish on Felix platform
>> >> > Información: Running GlassFish Version: GlassFish Server Open Source
>> >> > Edition 3.1.2 (build 23)
>> >> > Información: Grizzly Framework 1.9.46 started in: 78ms - bound to [
>> >> > 0.0.0.0:8080]
>> >> > Información: Grizzly Framework 1.9.46 started in: 56ms - bound to [
>> >> > 0.0.0.0:8181]
>> >> > Información: Grizzly Framework 1.9.46 started in: 106ms - bound to [
>> >> > 0.0.0.0:3700]
>> >> > Información: Grizzly Framework 1.9.46 started in: 120ms - bound to [
>> >> > 0.0.0.0:4848]
>> >> > Información: Grizzly Framework 1.9.46 started in: 146ms - bound to [
>> >> > 0.0.0.0:7676]
>> >> > Información: The Admin Console is already installed, but not yet
>> loaded.
>> >> > Información: Registered
>> >> > org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for
>> >> > persistence-type = replicated in BackingStoreFactoryRegistry
>> >> > Información: GlassFish Server Open Source Edition 3.1.2 (23) tiempo de
>> >> > inicio: Felix (2,441ms), servicios de inicio(1,240ms), total(3,681ms)
>> >> > Información: JMX005: JMXStartupService had Started JMXConnector on
>> >> > JMXService URL service:jmx:rmi://
>> >> > 192.168.1.209:8686/jndi/rmi://192.168.1.209:8686/jmxrmi
>> >> > Información: Hibernate Validator 4.2.0.Final
>> >> > Información: Grizzly Framework 1.9.46 started in: 49ms - bound to [
>> >> > 0.0.0.0:8080]
>> >> > Información: SEC1002: Security Manager is OFF.
>> >> > Información: SEC1010: Entering Security Startup Service
>> >> > Información: SEC1143: Loading policy provider
>> >> > com.sun.enterprise.security.provider.PolicyWrapper.
>> >> > Información: SEC1115: Realm [admin-realm] of classtype
>> >> > [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully
>> >> > created.
>> >> > Información: SEC1115: Realm [file] of classtype
>> >> > [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully
>> >> > created.
>> >> > Información: SEC1115: Realm [certificate] of classtype
>> >> > [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm]
>> >> > successfully created.
>> >> > Información: SEC1011: Security Service(s) Started Successfully
>> >> > Información: WEB0169: Created HTTP listener [http-listener-1] on
>> >> host/port
>> >> > [
>> >> > 0.0.0.0:8080]
>> >> > Información: WEB0169: Created HTTP listener [http-listener-2] on
>> >> host/port
>> >> > [
>> >> > 0.0.0.0:8181]
>> >> > Información: WEB0169: Created HTTP listener [admin-listener] on
>> >> host/port [
>> >> > 0.0.0.0:4848]
>> >> > Información: WEB0171: Created virtual server [server]
>> >> > Información: WEB0171: Created virtual server [__asadmin]
>> >> > Información: WEB0172: Virtual server [server] loaded default web
>> module
>> >> []
>> >> > Información: WELD-000900 1.1.4 (Final)
>> >> > Grave: Exception while loading the app
>> >> > *Grave: Exception while loading the app :
>> >> >
>> >> >
>> >>
>> org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
>> >> > cannot be cast to javassist.util.proxy.ProxyObject*
>> >> > *java.lang.ClassCastException:
>> >> >
>> >> >
>> >>
>> org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
>> >> > cannot be cast to javassist.util.proxy.ProxyObject*
>> >> > at
>> org.jboss.weld.bean.proxy.ProxyFactory.create(ProxyFactory.java:245)
>> >> > at
>> >> >
>> >> >
>> >>
>> org.jboss.weld.bean.builtin.ee.AbstractEEBean.<init>(AbstractEEBean.java:43)
>> >> > at
>> >> >
>> >> >
>> >>
>> org.jboss.weld.bean.builtin.ee.UserTransactionBean.<init>(UserTransactionBean.java:52)
>> >> > at
>> >> >
>> >> >
>> >>
>> org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:177)
>> >> > at
>> >> >
>> >>
>> org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:336)
>> >> > at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:179)
>> >> > at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:128)
>> >> > at
>> >> >
>> >>
>> org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:277)
>> >> > at
>> >> >
>> >> >
>> >>
>> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:460)
>> >> > at
>> >> >
>> >> >
>> >>
>> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
>> >> > at
>> >> >
>> >> >
>> >>
>> org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
>> >> > at
>> >> >
>> >> >
>> >>
>> com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
>> >> > at
>> >> >
>> >> >
>> >>
>> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
>> >> > at
>> >> >
>> >> >
>> >>
>> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
>> >> > at
>> >> >
>> >> >
>> >>
>> com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
>> >> > at
>> >> >
>> >> >
>> >>
>> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
>> >> > at
>> >> >
>> >> >
>> >>
>> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
>> >> > at
>> >> >
>> com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)
>> >> > at
>> >> com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)
>> >> > at
>> >> >
>> >>
>> com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
>> >> > at
>> >> >
>> >>
>> com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
>> >> > at
>> >> >
>> >> >
>> >>
>> com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
>> >> > at
>> >> >
>> >> >
>> >>
>> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
>> >> > at
>> >> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
>> >> > at
>> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
>> >> > at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
>> >> > at
>> >> >
>> >> >
>> >>
>> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
>> >> > 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:722)
>> >> >
>> >> > Información: WEB0169: Created HTTP listener [http-listener-2] on
>> >> host/port
>> >> > [
>> >> > 0.0.0.0:8181]
>> >> > Información: Grizzly Framework 1.9.46 started in: 45ms - bound to [
>> >> > 0.0.0.0:8181]
>> >> >
>> >> >
>> >> > -----------------------------------------------------
>> >> >
>> >> > 2012/3/13 Gerhard Petracek <ge...@gmail.com>
>> >> >
>> >> > > hi jose,
>> >> > >
>> >> > > you can use the myfaces-archetype to generate the correct config for
>> >> > > myfaces-core (as well as mojarra) + owb (+ myfaces codi):
>> >> > >
>> >> > > mvn archetype:generate -DarchetypeCatalog=http://myfaces.apache.org
>> >> > > -> e.g. select #11 (afterwards you just have to update the versions
>> in
>> >> > the
>> >> > > generated pom.xml file.)
>> >> > >
>> >> > > if it still doesn't work with the generated example, you can provide
>> >> the
>> >> > > example and we can have a look at it.
>> >> > >
>> >> > > regards,
>> >> > > gerhard
>> >> > >
>> >> > >
>> >> > >
>> >> > > 2012/3/13 José Luis Cetina <ma...@gmail.com>
>> >> > >
>> >> > > > I see, i erase and only put @Named and @ ViewAccessScoped and get
>> the
>> >> > > same
>> >> > > > error, but i try with only @Named and @RequestScoped (java) and
>> still
>> >> > the
>> >> > > > error, i think the problem is the @Named is not injecting my bean,
>> >> not
>> >> > > > MyFaces, because if i use @ManagedBean this works ok, but i dont
>> >> > > understand
>> >> > > > why if i chagen from MyFaces to Mojarra the @Named and
>> >> > @ViewAccessScoped
>> >> > > > works ok!!
>> >> > > >
>> >> > > > :(
>> >> > > >
>> >> > > >
>> >> > > > 2012/3/13 Rafael Pestano <rm...@yahoo.com.br>
>> >> > > >
>> >> > > > > just a question, why do you have @Model,@Named and
>> >> @ViewAccessScoped
>> >> > in
>> >> > > > > the same bean?
>> >> > > > >
>> >> > > > > i think you need @model OR @Named and @ViewAccessScoped
>> >> > > > >
>> >> > > > > or im wrong?
>> >> > > > >
>> >> > > > > Att,
>> >> > > > > Rafael M. Pestano
>> >> > > > > Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande
>> do
>> >> > Sul
>> >> > > > > Graduando em Ciência da Computação UFRGS
>> >> > > > > @realpestano
>> >> > > > > http://code.google.com/p/jsf-conventions-framework/
>> >> > > > >
>> >> > > > >
>> >> > > > >
>> >> > > > > ----- Mensagem original -----
>> >> > > > > De: José Luis Cetina <ma...@gmail.com>
>> >> > > > > Para: MyFaces Discussion <us...@myfaces.apache.org>
>> >> > > > > Cc:
>> >> > > > > Enviadas: Terça-feira, 13 de Março de 2012 12:28
>> >> > > > > Assunto: Re: Both MyFaces and the RI are on your classpath.
>> Please
>> >> > make
>> >> > > > > sure to use only one of the two JSF-implementations.
>> >> > > > >
>> >> > > > > I see now im using MyFaces instead of Mojarra, the "ERROR"
>> Message
>> >> > > still
>> >> > > > > there, but the application can deploy. My second problem
>> persist:
>> >> > > > >
>> >> > > > > javax.el.PropertyNotFoundException: Target Unreachable,
>> identifier
>> >> > > > 'myBean'
>> >> > > > > resolved to null
>> >> > > > > viewId=/index.xhtml
>> >> > > > >
>> >> > > > >
>> >> > > >
>> >> > >
>> >> >
>> >>
>> location=C:\Users\user\Documents\NetBeansProjects\testweb\build\web\index.xhtml
>> >> > > > > phaseId=INVOKE_APPLICATION(5)
>> >> > > > >
>> >> > > > >
>> >> > > > > i have the my beans.xml under WEB-INF folder:
>> >> > > > > beans.xml:
>> >> > > > >
>> >> > > > > <?xml version="1.0" encoding="UTF-8"?>
>> >> > > > > <beans 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/beans_1_0.xsd">
>> >> > > > > </beans>
>> >> > > > >
>> >> > > > >
>> >> > > > > And my bean its ok:
>> >> > > > >
>> >> > > > > @Named
>> >> > > > > @ViewAccessScoped
>> >> > > > > @Model
>> >> > > > > @View(Index.class)
>> >> > > > > public class MyBean implements Serializable{
>> >> > > > > }
>> >> > > > >
>> >> > > > > If i change from MyFaces to Mojarra this work ok!!!   :(
>> >> > > > >
>> >> > > > > Somebody know what can i do?
>> >> > > > >
>> >> > > > > *Im using: Netbeans 7.1, Glassfish 3.1.2.1, JDK 7u3, MyFaces
>> 2.1.6,
>> >> > > > > CODI 1.0.4, Windows 7. *
>> >> > > > > *
>> >> > > > > *
>> >> > > > > *Thanks.*
>> >> > > > > *
>> >> > > > > *
>> >> > > > >
>> >> > > >
>> >> > >
>> >> >
>> >>
>> *-------------------------------------------------------------------------*
>> >> > > > >
>> >> > > > >
>> >> > > > > 2012/3/13 Werner Punz <we...@gmail.com>
>> >> > > > >
>> >> > > > > > Mhh this looks like a bug in Glassfish to me, the entries  in
>> the
>> >> > > > > > glassfish-web.xml look correct to me. Problem is generally
>> that
>> >> > > > glassfish
>> >> > > > > > is not to keen on overrides of its system libs in my
>> experience.
>> >> > Even
>> >> > > > > while
>> >> > > > > > myfaces runs, try to replace Weld for instance and you run
>> into a
>> >> > > mess.
>> >> > > > > > Glassfish as good as it is is an all or nothing pack in many
>> >> cases.
>> >> > > > > > But it has been some time since I last touched Glassfish,
>> things
>> >> > > might
>> >> > > > > > have changed.
>> >> > > > > >
>> >> > > > > >
>> >> > > > > >
>> >> > > > > > Werner
>> >> > > > > >
>> >> > > > > >
>> >> > > > > > Am 12.03.12 17:40, schrieb José Luis Cetina:
>> >> > > > > >
>> >> > > > > >> Im triying to start a new project for first time with
>> myfaces, i
>> >> > > > always
>> >> > > > > >> used Mojarra but know i want to change but im having
>> problems at
>> >> > the
>> >> > > > > >> start:
>> >> > > > > >>
>> >> > > > > >> My only requierement is use Glassfish 3.1.2.1.
>> >> > > > > >>
>> >> > > > > >> Hi i have this WARNING:
>> >> > > > > >>
>> >> > > > > >> *Both MyFaces and the RI are on your classpath. Please make
>> sure
>> >> > to
>> >> > > > use
>> >> > > > > >> only one of the two JSF-implementations.*
>> >> > > > > >>
>> >> > > > > >>
>> >> > > > > >> Why this happend if im using only jars from myfaces?? maybe
>> for
>> >> > > > > glassfish
>> >> > > > > >> i
>> >> > > > > >> think, i have these in my *glassfish-web.xml* file, under
>> >> WEB-INF
>> >> > > > > folder:
>> >> > > > > >>
>> >> > > > > >>
>> >> > > > > >> <?xml version="1.0" encoding="UTF-8"?>
>> >> > > > > >> <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD
>> >> > GlassFish
>> >> > > > > >> Application Server 3.1 Servlet 3.0//EN" "
>> >> > > > > >> http://glassfish.org/dtds/**glassfish-web-app_3_0-1.dtd<
>> >> > > > > http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd>
>> >> > > > > >> ">
>> >> > > > > >> <glassfish-web-app error-url="">
>> >> > > > > >>     <!--Para establecer el charset a utf8 y remover el
>> mensaje
>> >> de:
>> >> > > > > >> PWC4011:
>> >> > > > > >> Unable to set request character encoding to UTF-8 from
>> >> context-->
>> >> > > > > >>     <parameter-encoding default-charset="UTF-8"/>
>> >> > > > > >>     *<class-loader delegate="false"/>*
>> >> > > > > >> *<property name="useBundledJsf" value="true"/>*
>> >> > > > > >>
>> >> > > > > >>     <!--<class-loader delegate="true"/>-->
>> >> > > > > >>     <jsp-config>
>> >> > > > > >>         <property name="keepgenerated" value="true">
>> >> > > > > >>             <description>Keep a copy of the generated servlet
>> >> > class'
>> >> > > > > java
>> >> > > > > >> code.</description>
>> >> > > > > >>         </property>
>> >> > > > > >>     </jsp-config>
>> >> > > > > >> </glassfish-web-app>
>> >> > > > > >>
>> >> > > > > >> ----------------  ----------------  ----------------
>> >> > > > > >>
>> >> > > > > >> This is my web.xml
>> >> > > > > >>
>> >> > > > > >> <?xml version="1.0" encoding="UTF-8"?>
>> >> > > > > >> <web-app version="3.0" xmlns="
>> >> http://java.sun.com/**xml/ns/javaee
>> >> > <
>> >> > > > > http://java.sun.com/xml/ns/javaee>"
>> >> > > > > >> xmlns:xsi="
>> >> > > > > >> http://www.w3.org/2001/**XMLSchema-instance<
>> >> > > > > http://www.w3.org/2001/XMLSchema-instance>"
>> >> > > > > >> xsi:schemaLocation="
>> >> > > > > >> http://java.sun.com/xml/ns/**javaee <
>> >> > > > http://java.sun.com/xml/ns/javaee>
>> >> > > > > >> http://java.sun.com/xml/ns/**javaee/web-app_3_0.xsd<
>> >> > > > > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd>
>> >> > > > > >> ">
>> >> > > > > >>     <context-param>
>> >> > > > > >>         <param-name>javax.faces.**PROJECT_STAGE</param-name>
>> >> > > > > >>         <param-value>Development</**param-value>
>> >> > > > > >>     </context-param>
>> >> > > > > >>     <context-param>
>> >> > > > > >>
>> >> > <param-name>com.ocpsoft.**pretty.DEVELOPMENT</param-**name>
>> >> > > > > >>         <param-value>true</param-**value>
>> >> > > > > >>     </context-param>
>> >> > > > > >>     <context-param>
>> >> > > > > >>
>> >> <param-name>javax.faces.STATE_**SAVING_METHOD</param-name>
>> >> > > > > >>         <param-value>server</param-**value>
>> >> > > > > >>     </context-param>
>> >> > > > > >>     <context-param>
>> >> > > > > >>         <param-name>
>> >> > > > > >> javax.faces.DATETIMECONVERTER_**DEFAULT_TIMEZONE_IS_SYSTEM_**
>> >> > > > > >> TIMEZONE</param-name>
>> >> > > > > >>         <param-value>true</param-**value>
>> >> > > > > >>     </context-param>
>> >> > > > > >>      <context-param>
>> >> > > > > >>
>> >> > > > <param-name>javax.faces.**FACELETS_SKIP_COMMENTS</param-**name>
>> >> > > > > >>         <param-value>true</param-**value>
>> >> > > > > >>     </context-param>
>> >> > > > > >>     <context-param>
>> >> > > > > >>
>> >> > > > > >> <param-name>com.sun.faces.**enableMissingResourceLibraryDe**
>> >> > > > > >> tection</param-name>
>> >> > > > > >>         <param-value>true</param-**value>
>> >> > > > > >>     </context-param>
>> >> > > > > >>     <listener>
>> >> > > > > >>         *
>> >> > > > > >> <listener-class>org.apache.**myfaces.webapp.**
>> >> > > > > >> StartupServletContextListener<**/listener-class>
>> >> > > > > >> *
>> >> > > > > >>     </listener>
>> >> > > > > >>     <servlet>
>> >> > > > > >>         <servlet-name>Faces Servlet</servlet-name>
>> >> > > > > >>
>> >> > <servlet-class>javax.faces.**webapp.FacesServlet</servlet-**
>> >> > > > > >> class>
>> >> > > > > >>         <load-on-startup>1</load-on-**startup>
>> >> > > > > >>     </servlet>
>> >> > > > > >>     <servlet-mapping>
>> >> > > > > >>         <servlet-name>Faces Servlet</servlet-name>
>> >> > > > > >>         <url-pattern>/faces/*</url-**pattern>
>> >> > > > > >>     </servlet-mapping>
>> >> > > > > >>     <session-config>
>> >> > > > > >>         <session-timeout>
>> >> > > > > >>             30
>> >> > > > > >>         </session-timeout>
>> >> > > > > >>     </session-config>
>> >> > > > > >>     <welcome-file-list>
>> >> > > > > >>         <welcome-file>faces/index.**xhtml</welcome-file>
>> >> > > > > >>     </welcome-file-list>
>> >> > > > > >> </web-app>
>> >> > > > > >>
>> >> > > > > >> ----------------  ----------------  ----------------
>> >> > > > > >>
>> >> > > > > >> Here are my libraries:
>> >> > > > > >>
>> >> > > > > >> --MYFACES
>> >> > > > > >> myfaces-api-2.1.6.jar
>> >> > > > > >> myfaces-impl-2.1.6.jar
>> >> > > > > >> commons-beanutils-1.8.3.jar
>> >> > > > > >> commons-digester-1.8.jar
>> >> > > > > >> commons-logging-1.8.jar
>> >> > > > > >> commons-codec-1.1.1.jar
>> >> > > > > >> commons-collections-3.2.jar
>> >> > > > > >> --MYFACES CODI
>> >> > > > > >> myfaces-extcdi-alternative-**implementation-module-1.0.4
>> >> > > > > >> myfaces-extcdi-bv1-module-api-**1.0.4
>> >> > > > > >> myfaces-extcdi-bv1-module-**impl-1.0.4
>> >> > > > > >> myfaces-extcdi-core-**alternative-configuration-1.0.**4
>> >> > > > > >> myfaces-extcdi-core-api-1.0.4
>> >> > > > > >> myfaces-extcdi-core-impl-1.0.4
>> >> > > > > >> myfaces-extcdi-jpa1-module-**api-1.0.4
>> >> > > > > >> myfaces-extcdi-jpa1-module-**impl-1.0.4
>> >> > > > > >> myfaces-extcdi-jsf20-module-**api-1.0.4
>> >> > > > > >> myfaces-extcdi-jsf20-module-**impl-1.0.4
>> >> > > > > >> myfaces-extcdi-jsf-**alternative-configuration-1.0.**4
>> >> > > > > >> myfaces-extcdi-message-module-**api-1.0.4
>> >> > > > > >> myfaces-extcdi-message-module-**impl-1.0.4
>> >> > > > > >> myfaces-extcdi-scripting-**module-api-1.0.4
>> >> > > > > >> myfaces-extcdi-scripting-**module-impl-1.0.4
>> >> > > > > >>
>> >> > > > > >>
>> >> > > > > >> I dont know if because the "WARNING" i have other problem:
>> >> > > > > >>
>> >> > > > > >> javax.el.**PropertyNotFoundException: Target Unreachable,
>> >> > identifier
>> >> > > > > >> 'myBean'
>> >> > > > > >> resolved to null,
>> >> > > > > >>
>> >> > > > > >> I have in my beans.xml file under WEB-INF this:
>> >> > > > > >>
>> >> > > > > >> <?xml version="1.0" encoding="UTF-8"?>
>> >> > > > > >> <beans xmlns="http://java.sun.com/**xml/ns/javaee<
>> >> > > > > http://java.sun.com/xml/ns/javaee>
>> >> > > > > >> "
>> >> > > > > >>        xmlns:xsi="
>> http://www.w3.org/**2001/XMLSchema-instance<
>> >> > > > > http://www.w3.org/2001/XMLSchema-instance>
>> >> > > > > >> "
>> >> > > > > >>        xsi:schemaLocation="http://**
>> java.sun.com/xml/ns/javaee<
>> >> > > > > http://java.sun.com/xml/ns/javaee>
>> >> > > > > >> http://java.sun.com/xml/ns/**javaee/beans_1_0.xsd<
>> >> > > > > http://java.sun.com/xml/ns/javaee/beans_1_0.xsd>
>> >> > > > > >> ">
>> >> > > > > >> </beans>
>> >> > > > > >>
>> >> > > > > >> and in my bean:
>> >> > > > > >>
>> >> > > > > >> @Named
>> >> > > > > >> @ViewAccessScoped
>> >> > > > > >> @Model
>> >> > > > > >> @View(Index.class)
>> >> > > > > >> public class MyBean implements Serializable{
>> >> > > > > >>    public void test(){
>> >> > > > > >>      //do nothing
>> >> > > > > >>    }
>> >> > > > > >>
>> >> > > > > >> .....
>> >> > > > > >> }
>> >> > > > > >>
>> >> > > > > >> and in my index.xhtml
>> >> > > > > >>
>> >> > > > > >> <h:commandButton value="CLICK" action="#{myBean.test}"/>
>> >> > > > > >>
>> >> > > > > >> if i click my button the i get this error:
>> >> > > > > >>
>> >> > > > > >> javax.el.**PropertyNotFoundException: Target Unreachable,
>> >> > identifier
>> >> > > > > >> 'myBean'
>> >> > > > > >> resolved to null
>> >> > > > > >> viewId=/index.xhtml
>> >> > > > > >> location=C:\Users\user\**Documents\NetBeansProjects\**
>> >> > > > > >> testweb\build\web\index.xhtml
>> >> > > > > >> phaseId=INVOKE_APPLICATION(5)
>> >> > > > > >> Caused by:
>> >> > > > > >> javax.el.**PropertyNotFoundException - Target Unreachable,
>> >> > > identifier
>> >> > > > > >> 'myBean' resolved to null
>> >> > > > > >> at com.sun.el.parser.AstValue.**getTarget(AstValue.java:153)
>> >> > > > > >>
>> >> > > > > >>
>> >> > > > > >> I dont know if this is for the first problem  (*Both MyFaces
>> and
>> >> > the
>> >> > > > RI
>> >> > > > > >> are
>> >> > > > > >>
>> >> > > > > >> on your classpath. Please make sure to use only one of the
>> two
>> >> > > > > >> JSF-implementations.*)
>> >> > > > > >>
>> >> > > > > >> I read i need to have my beans.xml but i have it!!!
>> >> > > > > >>
>> >> > > > > >> Thanks, and sorry for the english, is not my native language
>> >> > > > > >>
>> >> > > > > >>
>> >> > > > > >> Im using: Netbeans 7.1, *Glassfish 3.1.2.1,* JDK 7u3, MyFaces
>> >> > 2.1.6,
>> >> > > > > CODI
>> >> > > > > >> 1.0.4, Windows 7.
>> >> > > > > >>
>> >> > > > > >>
>> >> > > > > >
>> >> > > > > >
>> >> > > > >
>> >> > > > >
>> >> > > > > --
>> >> > > > >
>> -------------------------------------------------------------------
>> >> > > > > *SCJA. José Luis Cetina*
>> >> > > > >
>> -------------------------------------------------------------------
>> >> > > > >
>> >> > > > >
>> >> > > >
>> >> > > >
>> >> > > > --
>> >> > > >
>> -------------------------------------------------------------------
>> >> > > > *SCJA. José Luis Cetina*
>> >> > > >
>> -------------------------------------------------------------------
>> >> > > >
>> >> > >
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > -------------------------------------------------------------------
>> >> > *SCJA. José Luis Cetina*
>> >> > -------------------------------------------------------------------
>> >> >
>> >>
>> >
>> >
>> >
>> > --
>> > -------------------------------------------------------------------
>> > *SCJA. José Luis Cetina*
>> > -------------------------------------------------------------------
>>

Re: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

Posted by Gerhard Petracek <ge...@gmail.com>.
hi mike,

right now geronimo3 isn't in the list [1] of the supported servers.

regards,
gerhard

[1]
https://cwiki.apache.org/confluence/display/EXTCDI/Intro#Intro-Compatibility


http://www.irian.at

Your JSF/JavaEE powerhouse -
JavaEE Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces



2012/3/13 Mike Kienenberger <mk...@gmail.com>

> I don't have much experience with them, but Apache Geronimo and, to a
> lesser degree, Apache Tomcat would be alternatives to Glassfish.
> There may be others.
>
> 2012/3/13 José Luis Cetina <ma...@gmail.com>:
> > Let me tell you that the example deploy and RAN without any problem and i
> > dont move any line of code, i only deploy in tomcat without any problem,
> i
> > want to use apache  product's like myfaces, CODI, etc, i want to know if
> > you can give me an objective suggestion with what Application Server i
> can
> > use with your products, i have the opportunity for choose.
> >
> > Thanks
> >
> >
> > 2012/3/13 Gerhard Petracek <ge...@gmail.com>
> >
> >> hi jose,
> >>
> >> you can run the generated demos with a servlet container like jetty (see
> >> the comment in the generated pom.xml file), tomcat,... .
> >> by default the myfaces-core profile is activated.
> >>
> >> we just need to know if your implementation works with such a generated
> >> application.
> >> esp. because glassfish adds further complexity with the mentioned
> >> classloader-config (e.g. with this config-entries you can't use
> >> myfaces-core and owb in parallel - that's a known classloading issue
> >> of glassfish).
> >>
> >> regards,
> >> gerhard
> >>
> >>
> >>
> >> 2012/3/13 José Luis Cetina <ma...@gmail.com>
> >>
> >> > I downloaded the example number 11 and i run the project without any
> >> > problem, but i can see that the project is using Mojarra "Profile" as
> JSF
> >> > Impl (the log sayed to me Mojarra...). Then if i change to use MyFaces
> >> > chossing the myfaces profile and adding these lines to my
> >> > g*lassfish-web.xml
> >> > *:
> >> >
> >> > <class-loader delegate="false"/>
> >> > <property name="useBundledJsf" value="true"/>
> >> >
> >> > then i got an *exception *and i CANT run the project:
> >> >
> >> > Here is the *glassfish log:*
> >> > -----------------------------------------------------
> >> >
> >> > Launching GlassFish on Felix platform
> >> > Información: Running GlassFish Version: GlassFish Server Open Source
> >> > Edition 3.1.2 (build 23)
> >> > Información: Grizzly Framework 1.9.46 started in: 78ms - bound to [
> >> > 0.0.0.0:8080]
> >> > Información: Grizzly Framework 1.9.46 started in: 56ms - bound to [
> >> > 0.0.0.0:8181]
> >> > Información: Grizzly Framework 1.9.46 started in: 106ms - bound to [
> >> > 0.0.0.0:3700]
> >> > Información: Grizzly Framework 1.9.46 started in: 120ms - bound to [
> >> > 0.0.0.0:4848]
> >> > Información: Grizzly Framework 1.9.46 started in: 146ms - bound to [
> >> > 0.0.0.0:7676]
> >> > Información: The Admin Console is already installed, but not yet
> loaded.
> >> > Información: Registered
> >> > org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for
> >> > persistence-type = replicated in BackingStoreFactoryRegistry
> >> > Información: GlassFish Server Open Source Edition 3.1.2 (23) tiempo de
> >> > inicio: Felix (2,441ms), servicios de inicio(1,240ms), total(3,681ms)
> >> > Información: JMX005: JMXStartupService had Started JMXConnector on
> >> > JMXService URL service:jmx:rmi://
> >> > 192.168.1.209:8686/jndi/rmi://192.168.1.209:8686/jmxrmi
> >> > Información: Hibernate Validator 4.2.0.Final
> >> > Información: Grizzly Framework 1.9.46 started in: 49ms - bound to [
> >> > 0.0.0.0:8080]
> >> > Información: SEC1002: Security Manager is OFF.
> >> > Información: SEC1010: Entering Security Startup Service
> >> > Información: SEC1143: Loading policy provider
> >> > com.sun.enterprise.security.provider.PolicyWrapper.
> >> > Información: SEC1115: Realm [admin-realm] of classtype
> >> > [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully
> >> > created.
> >> > Información: SEC1115: Realm [file] of classtype
> >> > [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully
> >> > created.
> >> > Información: SEC1115: Realm [certificate] of classtype
> >> > [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm]
> >> > successfully created.
> >> > Información: SEC1011: Security Service(s) Started Successfully
> >> > Información: WEB0169: Created HTTP listener [http-listener-1] on
> >> host/port
> >> > [
> >> > 0.0.0.0:8080]
> >> > Información: WEB0169: Created HTTP listener [http-listener-2] on
> >> host/port
> >> > [
> >> > 0.0.0.0:8181]
> >> > Información: WEB0169: Created HTTP listener [admin-listener] on
> >> host/port [
> >> > 0.0.0.0:4848]
> >> > Información: WEB0171: Created virtual server [server]
> >> > Información: WEB0171: Created virtual server [__asadmin]
> >> > Información: WEB0172: Virtual server [server] loaded default web
> module
> >> []
> >> > Información: WELD-000900 1.1.4 (Final)
> >> > Grave: Exception while loading the app
> >> > *Grave: Exception while loading the app :
> >> >
> >> >
> >>
> org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
> >> > cannot be cast to javassist.util.proxy.ProxyObject*
> >> > *java.lang.ClassCastException:
> >> >
> >> >
> >>
> org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
> >> > cannot be cast to javassist.util.proxy.ProxyObject*
> >> > at
> org.jboss.weld.bean.proxy.ProxyFactory.create(ProxyFactory.java:245)
> >> > at
> >> >
> >> >
> >>
> org.jboss.weld.bean.builtin.ee.AbstractEEBean.<init>(AbstractEEBean.java:43)
> >> > at
> >> >
> >> >
> >>
> org.jboss.weld.bean.builtin.ee.UserTransactionBean.<init>(UserTransactionBean.java:52)
> >> > at
> >> >
> >> >
> >>
> org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:177)
> >> > at
> >> >
> >>
> org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:336)
> >> > at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:179)
> >> > at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:128)
> >> > at
> >> >
> >>
> org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:277)
> >> > at
> >> >
> >> >
> >>
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:460)
> >> > at
> >> >
> >> >
> >>
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
> >> > at
> >> >
> >> >
> >>
> org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
> >> > at
> >> >
> >> >
> >>
> com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
> >> > at
> >> >
> >> >
> >>
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
> >> > at
> >> >
> >> >
> >>
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
> >> > at
> >> >
> >> >
> >>
> com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
> >> > at
> >> >
> >> >
> >>
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
> >> > at
> >> >
> >> >
> >>
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
> >> > at
> >> >
> com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)
> >> > at
> >> com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)
> >> > at
> >> >
> >>
> com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
> >> > at
> >> >
> >>
> com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
> >> > at
> >> >
> >> >
> >>
> com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
> >> > at
> >> >
> >> >
> >>
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
> >> > at
> >> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
> >> > at
> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
> >> > at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
> >> > at
> >> >
> >> >
> >>
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
> >> > 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:722)
> >> >
> >> > Información: WEB0169: Created HTTP listener [http-listener-2] on
> >> host/port
> >> > [
> >> > 0.0.0.0:8181]
> >> > Información: Grizzly Framework 1.9.46 started in: 45ms - bound to [
> >> > 0.0.0.0:8181]
> >> >
> >> >
> >> > -----------------------------------------------------
> >> >
> >> > 2012/3/13 Gerhard Petracek <ge...@gmail.com>
> >> >
> >> > > hi jose,
> >> > >
> >> > > you can use the myfaces-archetype to generate the correct config for
> >> > > myfaces-core (as well as mojarra) + owb (+ myfaces codi):
> >> > >
> >> > > mvn archetype:generate -DarchetypeCatalog=http://myfaces.apache.org
> >> > > -> e.g. select #11 (afterwards you just have to update the versions
> in
> >> > the
> >> > > generated pom.xml file.)
> >> > >
> >> > > if it still doesn't work with the generated example, you can provide
> >> the
> >> > > example and we can have a look at it.
> >> > >
> >> > > regards,
> >> > > gerhard
> >> > >
> >> > >
> >> > >
> >> > > 2012/3/13 José Luis Cetina <ma...@gmail.com>
> >> > >
> >> > > > I see, i erase and only put @Named and @ ViewAccessScoped and get
> the
> >> > > same
> >> > > > error, but i try with only @Named and @RequestScoped (java) and
> still
> >> > the
> >> > > > error, i think the problem is the @Named is not injecting my bean,
> >> not
> >> > > > MyFaces, because if i use @ManagedBean this works ok, but i dont
> >> > > understand
> >> > > > why if i chagen from MyFaces to Mojarra the @Named and
> >> > @ViewAccessScoped
> >> > > > works ok!!
> >> > > >
> >> > > > :(
> >> > > >
> >> > > >
> >> > > > 2012/3/13 Rafael Pestano <rm...@yahoo.com.br>
> >> > > >
> >> > > > > just a question, why do you have @Model,@Named and
> >> @ViewAccessScoped
> >> > in
> >> > > > > the same bean?
> >> > > > >
> >> > > > > i think you need @model OR @Named and @ViewAccessScoped
> >> > > > >
> >> > > > > or im wrong?
> >> > > > >
> >> > > > > Att,
> >> > > > > Rafael M. Pestano
> >> > > > > Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande
> do
> >> > Sul
> >> > > > > Graduando em Ciência da Computação UFRGS
> >> > > > > @realpestano
> >> > > > > http://code.google.com/p/jsf-conventions-framework/
> >> > > > >
> >> > > > >
> >> > > > >
> >> > > > > ----- Mensagem original -----
> >> > > > > De: José Luis Cetina <ma...@gmail.com>
> >> > > > > Para: MyFaces Discussion <us...@myfaces.apache.org>
> >> > > > > Cc:
> >> > > > > Enviadas: Terça-feira, 13 de Março de 2012 12:28
> >> > > > > Assunto: Re: Both MyFaces and the RI are on your classpath.
> Please
> >> > make
> >> > > > > sure to use only one of the two JSF-implementations.
> >> > > > >
> >> > > > > I see now im using MyFaces instead of Mojarra, the "ERROR"
> Message
> >> > > still
> >> > > > > there, but the application can deploy. My second problem
> persist:
> >> > > > >
> >> > > > > javax.el.PropertyNotFoundException: Target Unreachable,
> identifier
> >> > > > 'myBean'
> >> > > > > resolved to null
> >> > > > > viewId=/index.xhtml
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> location=C:\Users\user\Documents\NetBeansProjects\testweb\build\web\index.xhtml
> >> > > > > phaseId=INVOKE_APPLICATION(5)
> >> > > > >
> >> > > > >
> >> > > > > i have the my beans.xml under WEB-INF folder:
> >> > > > > beans.xml:
> >> > > > >
> >> > > > > <?xml version="1.0" encoding="UTF-8"?>
> >> > > > > <beans 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/beans_1_0.xsd">
> >> > > > > </beans>
> >> > > > >
> >> > > > >
> >> > > > > And my bean its ok:
> >> > > > >
> >> > > > > @Named
> >> > > > > @ViewAccessScoped
> >> > > > > @Model
> >> > > > > @View(Index.class)
> >> > > > > public class MyBean implements Serializable{
> >> > > > > }
> >> > > > >
> >> > > > > If i change from MyFaces to Mojarra this work ok!!!   :(
> >> > > > >
> >> > > > > Somebody know what can i do?
> >> > > > >
> >> > > > > *Im using: Netbeans 7.1, Glassfish 3.1.2.1, JDK 7u3, MyFaces
> 2.1.6,
> >> > > > > CODI 1.0.4, Windows 7. *
> >> > > > > *
> >> > > > > *
> >> > > > > *Thanks.*
> >> > > > > *
> >> > > > > *
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> *-------------------------------------------------------------------------*
> >> > > > >
> >> > > > >
> >> > > > > 2012/3/13 Werner Punz <we...@gmail.com>
> >> > > > >
> >> > > > > > Mhh this looks like a bug in Glassfish to me, the entries  in
> the
> >> > > > > > glassfish-web.xml look correct to me. Problem is generally
> that
> >> > > > glassfish
> >> > > > > > is not to keen on overrides of its system libs in my
> experience.
> >> > Even
> >> > > > > while
> >> > > > > > myfaces runs, try to replace Weld for instance and you run
> into a
> >> > > mess.
> >> > > > > > Glassfish as good as it is is an all or nothing pack in many
> >> cases.
> >> > > > > > But it has been some time since I last touched Glassfish,
> things
> >> > > might
> >> > > > > > have changed.
> >> > > > > >
> >> > > > > >
> >> > > > > >
> >> > > > > > Werner
> >> > > > > >
> >> > > > > >
> >> > > > > > Am 12.03.12 17:40, schrieb José Luis Cetina:
> >> > > > > >
> >> > > > > >> Im triying to start a new project for first time with
> myfaces, i
> >> > > > always
> >> > > > > >> used Mojarra but know i want to change but im having
> problems at
> >> > the
> >> > > > > >> start:
> >> > > > > >>
> >> > > > > >> My only requierement is use Glassfish 3.1.2.1.
> >> > > > > >>
> >> > > > > >> Hi i have this WARNING:
> >> > > > > >>
> >> > > > > >> *Both MyFaces and the RI are on your classpath. Please make
> sure
> >> > to
> >> > > > use
> >> > > > > >> only one of the two JSF-implementations.*
> >> > > > > >>
> >> > > > > >>
> >> > > > > >> Why this happend if im using only jars from myfaces?? maybe
> for
> >> > > > > glassfish
> >> > > > > >> i
> >> > > > > >> think, i have these in my *glassfish-web.xml* file, under
> >> WEB-INF
> >> > > > > folder:
> >> > > > > >>
> >> > > > > >>
> >> > > > > >> <?xml version="1.0" encoding="UTF-8"?>
> >> > > > > >> <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD
> >> > GlassFish
> >> > > > > >> Application Server 3.1 Servlet 3.0//EN" "
> >> > > > > >> http://glassfish.org/dtds/**glassfish-web-app_3_0-1.dtd<
> >> > > > > http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd>
> >> > > > > >> ">
> >> > > > > >> <glassfish-web-app error-url="">
> >> > > > > >>     <!--Para establecer el charset a utf8 y remover el
> mensaje
> >> de:
> >> > > > > >> PWC4011:
> >> > > > > >> Unable to set request character encoding to UTF-8 from
> >> context-->
> >> > > > > >>     <parameter-encoding default-charset="UTF-8"/>
> >> > > > > >>     *<class-loader delegate="false"/>*
> >> > > > > >> *<property name="useBundledJsf" value="true"/>*
> >> > > > > >>
> >> > > > > >>     <!--<class-loader delegate="true"/>-->
> >> > > > > >>     <jsp-config>
> >> > > > > >>         <property name="keepgenerated" value="true">
> >> > > > > >>             <description>Keep a copy of the generated servlet
> >> > class'
> >> > > > > java
> >> > > > > >> code.</description>
> >> > > > > >>         </property>
> >> > > > > >>     </jsp-config>
> >> > > > > >> </glassfish-web-app>
> >> > > > > >>
> >> > > > > >> ----------------  ----------------  ----------------
> >> > > > > >>
> >> > > > > >> This is my web.xml
> >> > > > > >>
> >> > > > > >> <?xml version="1.0" encoding="UTF-8"?>
> >> > > > > >> <web-app version="3.0" xmlns="
> >> http://java.sun.com/**xml/ns/javaee
> >> > <
> >> > > > > http://java.sun.com/xml/ns/javaee>"
> >> > > > > >> xmlns:xsi="
> >> > > > > >> http://www.w3.org/2001/**XMLSchema-instance<
> >> > > > > http://www.w3.org/2001/XMLSchema-instance>"
> >> > > > > >> xsi:schemaLocation="
> >> > > > > >> http://java.sun.com/xml/ns/**javaee <
> >> > > > http://java.sun.com/xml/ns/javaee>
> >> > > > > >> http://java.sun.com/xml/ns/**javaee/web-app_3_0.xsd<
> >> > > > > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd>
> >> > > > > >> ">
> >> > > > > >>     <context-param>
> >> > > > > >>         <param-name>javax.faces.**PROJECT_STAGE</param-name>
> >> > > > > >>         <param-value>Development</**param-value>
> >> > > > > >>     </context-param>
> >> > > > > >>     <context-param>
> >> > > > > >>
> >> > <param-name>com.ocpsoft.**pretty.DEVELOPMENT</param-**name>
> >> > > > > >>         <param-value>true</param-**value>
> >> > > > > >>     </context-param>
> >> > > > > >>     <context-param>
> >> > > > > >>
> >> <param-name>javax.faces.STATE_**SAVING_METHOD</param-name>
> >> > > > > >>         <param-value>server</param-**value>
> >> > > > > >>     </context-param>
> >> > > > > >>     <context-param>
> >> > > > > >>         <param-name>
> >> > > > > >> javax.faces.DATETIMECONVERTER_**DEFAULT_TIMEZONE_IS_SYSTEM_**
> >> > > > > >> TIMEZONE</param-name>
> >> > > > > >>         <param-value>true</param-**value>
> >> > > > > >>     </context-param>
> >> > > > > >>      <context-param>
> >> > > > > >>
> >> > > > <param-name>javax.faces.**FACELETS_SKIP_COMMENTS</param-**name>
> >> > > > > >>         <param-value>true</param-**value>
> >> > > > > >>     </context-param>
> >> > > > > >>     <context-param>
> >> > > > > >>
> >> > > > > >> <param-name>com.sun.faces.**enableMissingResourceLibraryDe**
> >> > > > > >> tection</param-name>
> >> > > > > >>         <param-value>true</param-**value>
> >> > > > > >>     </context-param>
> >> > > > > >>     <listener>
> >> > > > > >>         *
> >> > > > > >> <listener-class>org.apache.**myfaces.webapp.**
> >> > > > > >> StartupServletContextListener<**/listener-class>
> >> > > > > >> *
> >> > > > > >>     </listener>
> >> > > > > >>     <servlet>
> >> > > > > >>         <servlet-name>Faces Servlet</servlet-name>
> >> > > > > >>
> >> > <servlet-class>javax.faces.**webapp.FacesServlet</servlet-**
> >> > > > > >> class>
> >> > > > > >>         <load-on-startup>1</load-on-**startup>
> >> > > > > >>     </servlet>
> >> > > > > >>     <servlet-mapping>
> >> > > > > >>         <servlet-name>Faces Servlet</servlet-name>
> >> > > > > >>         <url-pattern>/faces/*</url-**pattern>
> >> > > > > >>     </servlet-mapping>
> >> > > > > >>     <session-config>
> >> > > > > >>         <session-timeout>
> >> > > > > >>             30
> >> > > > > >>         </session-timeout>
> >> > > > > >>     </session-config>
> >> > > > > >>     <welcome-file-list>
> >> > > > > >>         <welcome-file>faces/index.**xhtml</welcome-file>
> >> > > > > >>     </welcome-file-list>
> >> > > > > >> </web-app>
> >> > > > > >>
> >> > > > > >> ----------------  ----------------  ----------------
> >> > > > > >>
> >> > > > > >> Here are my libraries:
> >> > > > > >>
> >> > > > > >> --MYFACES
> >> > > > > >> myfaces-api-2.1.6.jar
> >> > > > > >> myfaces-impl-2.1.6.jar
> >> > > > > >> commons-beanutils-1.8.3.jar
> >> > > > > >> commons-digester-1.8.jar
> >> > > > > >> commons-logging-1.8.jar
> >> > > > > >> commons-codec-1.1.1.jar
> >> > > > > >> commons-collections-3.2.jar
> >> > > > > >> --MYFACES CODI
> >> > > > > >> myfaces-extcdi-alternative-**implementation-module-1.0.4
> >> > > > > >> myfaces-extcdi-bv1-module-api-**1.0.4
> >> > > > > >> myfaces-extcdi-bv1-module-**impl-1.0.4
> >> > > > > >> myfaces-extcdi-core-**alternative-configuration-1.0.**4
> >> > > > > >> myfaces-extcdi-core-api-1.0.4
> >> > > > > >> myfaces-extcdi-core-impl-1.0.4
> >> > > > > >> myfaces-extcdi-jpa1-module-**api-1.0.4
> >> > > > > >> myfaces-extcdi-jpa1-module-**impl-1.0.4
> >> > > > > >> myfaces-extcdi-jsf20-module-**api-1.0.4
> >> > > > > >> myfaces-extcdi-jsf20-module-**impl-1.0.4
> >> > > > > >> myfaces-extcdi-jsf-**alternative-configuration-1.0.**4
> >> > > > > >> myfaces-extcdi-message-module-**api-1.0.4
> >> > > > > >> myfaces-extcdi-message-module-**impl-1.0.4
> >> > > > > >> myfaces-extcdi-scripting-**module-api-1.0.4
> >> > > > > >> myfaces-extcdi-scripting-**module-impl-1.0.4
> >> > > > > >>
> >> > > > > >>
> >> > > > > >> I dont know if because the "WARNING" i have other problem:
> >> > > > > >>
> >> > > > > >> javax.el.**PropertyNotFoundException: Target Unreachable,
> >> > identifier
> >> > > > > >> 'myBean'
> >> > > > > >> resolved to null,
> >> > > > > >>
> >> > > > > >> I have in my beans.xml file under WEB-INF this:
> >> > > > > >>
> >> > > > > >> <?xml version="1.0" encoding="UTF-8"?>
> >> > > > > >> <beans xmlns="http://java.sun.com/**xml/ns/javaee<
> >> > > > > http://java.sun.com/xml/ns/javaee>
> >> > > > > >> "
> >> > > > > >>        xmlns:xsi="
> http://www.w3.org/**2001/XMLSchema-instance<
> >> > > > > http://www.w3.org/2001/XMLSchema-instance>
> >> > > > > >> "
> >> > > > > >>        xsi:schemaLocation="http://**
> java.sun.com/xml/ns/javaee<
> >> > > > > http://java.sun.com/xml/ns/javaee>
> >> > > > > >> http://java.sun.com/xml/ns/**javaee/beans_1_0.xsd<
> >> > > > > http://java.sun.com/xml/ns/javaee/beans_1_0.xsd>
> >> > > > > >> ">
> >> > > > > >> </beans>
> >> > > > > >>
> >> > > > > >> and in my bean:
> >> > > > > >>
> >> > > > > >> @Named
> >> > > > > >> @ViewAccessScoped
> >> > > > > >> @Model
> >> > > > > >> @View(Index.class)
> >> > > > > >> public class MyBean implements Serializable{
> >> > > > > >>    public void test(){
> >> > > > > >>      //do nothing
> >> > > > > >>    }
> >> > > > > >>
> >> > > > > >> .....
> >> > > > > >> }
> >> > > > > >>
> >> > > > > >> and in my index.xhtml
> >> > > > > >>
> >> > > > > >> <h:commandButton value="CLICK" action="#{myBean.test}"/>
> >> > > > > >>
> >> > > > > >> if i click my button the i get this error:
> >> > > > > >>
> >> > > > > >> javax.el.**PropertyNotFoundException: Target Unreachable,
> >> > identifier
> >> > > > > >> 'myBean'
> >> > > > > >> resolved to null
> >> > > > > >> viewId=/index.xhtml
> >> > > > > >> location=C:\Users\user\**Documents\NetBeansProjects\**
> >> > > > > >> testweb\build\web\index.xhtml
> >> > > > > >> phaseId=INVOKE_APPLICATION(5)
> >> > > > > >> Caused by:
> >> > > > > >> javax.el.**PropertyNotFoundException - Target Unreachable,
> >> > > identifier
> >> > > > > >> 'myBean' resolved to null
> >> > > > > >> at com.sun.el.parser.AstValue.**getTarget(AstValue.java:153)
> >> > > > > >>
> >> > > > > >>
> >> > > > > >> I dont know if this is for the first problem  (*Both MyFaces
> and
> >> > the
> >> > > > RI
> >> > > > > >> are
> >> > > > > >>
> >> > > > > >> on your classpath. Please make sure to use only one of the
> two
> >> > > > > >> JSF-implementations.*)
> >> > > > > >>
> >> > > > > >> I read i need to have my beans.xml but i have it!!!
> >> > > > > >>
> >> > > > > >> Thanks, and sorry for the english, is not my native language
> >> > > > > >>
> >> > > > > >>
> >> > > > > >> Im using: Netbeans 7.1, *Glassfish 3.1.2.1,* JDK 7u3, MyFaces
> >> > 2.1.6,
> >> > > > > CODI
> >> > > > > >> 1.0.4, Windows 7.
> >> > > > > >>
> >> > > > > >>
> >> > > > > >
> >> > > > > >
> >> > > > >
> >> > > > >
> >> > > > > --
> >> > > > >
> -------------------------------------------------------------------
> >> > > > > *SCJA. José Luis Cetina*
> >> > > > >
> -------------------------------------------------------------------
> >> > > > >
> >> > > > >
> >> > > >
> >> > > >
> >> > > > --
> >> > > >
> -------------------------------------------------------------------
> >> > > > *SCJA. José Luis Cetina*
> >> > > >
> -------------------------------------------------------------------
> >> > > >
> >> > >
> >> >
> >> >
> >> >
> >> > --
> >> > -------------------------------------------------------------------
> >> > *SCJA. José Luis Cetina*
> >> > -------------------------------------------------------------------
> >> >
> >>
> >
> >
> >
> > --
> > -------------------------------------------------------------------
> > *SCJA. José Luis Cetina*
> > -------------------------------------------------------------------
>

Re: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

Posted by Mike Kienenberger <mk...@gmail.com>.
I don't have much experience with them, but Apache Geronimo and, to a
lesser degree, Apache Tomcat would be alternatives to Glassfish.
There may be others.

2012/3/13 José Luis Cetina <ma...@gmail.com>:
> Let me tell you that the example deploy and RAN without any problem and i
> dont move any line of code, i only deploy in tomcat without any problem, i
> want to use apache  product's like myfaces, CODI, etc, i want to know if
> you can give me an objective suggestion with what Application Server i can
> use with your products, i have the opportunity for choose.
>
> Thanks
>
>
> 2012/3/13 Gerhard Petracek <ge...@gmail.com>
>
>> hi jose,
>>
>> you can run the generated demos with a servlet container like jetty (see
>> the comment in the generated pom.xml file), tomcat,... .
>> by default the myfaces-core profile is activated.
>>
>> we just need to know if your implementation works with such a generated
>> application.
>> esp. because glassfish adds further complexity with the mentioned
>> classloader-config (e.g. with this config-entries you can't use
>> myfaces-core and owb in parallel - that's a known classloading issue
>> of glassfish).
>>
>> regards,
>> gerhard
>>
>>
>>
>> 2012/3/13 José Luis Cetina <ma...@gmail.com>
>>
>> > I downloaded the example number 11 and i run the project without any
>> > problem, but i can see that the project is using Mojarra "Profile" as JSF
>> > Impl (the log sayed to me Mojarra...). Then if i change to use MyFaces
>> > chossing the myfaces profile and adding these lines to my
>> > g*lassfish-web.xml
>> > *:
>> >
>> > <class-loader delegate="false"/>
>> > <property name="useBundledJsf" value="true"/>
>> >
>> > then i got an *exception *and i CANT run the project:
>> >
>> > Here is the *glassfish log:*
>> > -----------------------------------------------------
>> >
>> > Launching GlassFish on Felix platform
>> > Información: Running GlassFish Version: GlassFish Server Open Source
>> > Edition 3.1.2 (build 23)
>> > Información: Grizzly Framework 1.9.46 started in: 78ms - bound to [
>> > 0.0.0.0:8080]
>> > Información: Grizzly Framework 1.9.46 started in: 56ms - bound to [
>> > 0.0.0.0:8181]
>> > Información: Grizzly Framework 1.9.46 started in: 106ms - bound to [
>> > 0.0.0.0:3700]
>> > Información: Grizzly Framework 1.9.46 started in: 120ms - bound to [
>> > 0.0.0.0:4848]
>> > Información: Grizzly Framework 1.9.46 started in: 146ms - bound to [
>> > 0.0.0.0:7676]
>> > Información: The Admin Console is already installed, but not yet loaded.
>> > Información: Registered
>> > org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for
>> > persistence-type = replicated in BackingStoreFactoryRegistry
>> > Información: GlassFish Server Open Source Edition 3.1.2 (23) tiempo de
>> > inicio: Felix (2,441ms), servicios de inicio(1,240ms), total(3,681ms)
>> > Información: JMX005: JMXStartupService had Started JMXConnector on
>> > JMXService URL service:jmx:rmi://
>> > 192.168.1.209:8686/jndi/rmi://192.168.1.209:8686/jmxrmi
>> > Información: Hibernate Validator 4.2.0.Final
>> > Información: Grizzly Framework 1.9.46 started in: 49ms - bound to [
>> > 0.0.0.0:8080]
>> > Información: SEC1002: Security Manager is OFF.
>> > Información: SEC1010: Entering Security Startup Service
>> > Información: SEC1143: Loading policy provider
>> > com.sun.enterprise.security.provider.PolicyWrapper.
>> > Información: SEC1115: Realm [admin-realm] of classtype
>> > [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully
>> > created.
>> > Información: SEC1115: Realm [file] of classtype
>> > [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully
>> > created.
>> > Información: SEC1115: Realm [certificate] of classtype
>> > [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm]
>> > successfully created.
>> > Información: SEC1011: Security Service(s) Started Successfully
>> > Información: WEB0169: Created HTTP listener [http-listener-1] on
>> host/port
>> > [
>> > 0.0.0.0:8080]
>> > Información: WEB0169: Created HTTP listener [http-listener-2] on
>> host/port
>> > [
>> > 0.0.0.0:8181]
>> > Información: WEB0169: Created HTTP listener [admin-listener] on
>> host/port [
>> > 0.0.0.0:4848]
>> > Información: WEB0171: Created virtual server [server]
>> > Información: WEB0171: Created virtual server [__asadmin]
>> > Información: WEB0172: Virtual server [server] loaded default web module
>> []
>> > Información: WELD-000900 1.1.4 (Final)
>> > Grave: Exception while loading the app
>> > *Grave: Exception while loading the app :
>> >
>> >
>> org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
>> > cannot be cast to javassist.util.proxy.ProxyObject*
>> > *java.lang.ClassCastException:
>> >
>> >
>> org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
>> > cannot be cast to javassist.util.proxy.ProxyObject*
>> > at org.jboss.weld.bean.proxy.ProxyFactory.create(ProxyFactory.java:245)
>> > at
>> >
>> >
>> org.jboss.weld.bean.builtin.ee.AbstractEEBean.<init>(AbstractEEBean.java:43)
>> > at
>> >
>> >
>> org.jboss.weld.bean.builtin.ee.UserTransactionBean.<init>(UserTransactionBean.java:52)
>> > at
>> >
>> >
>> org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:177)
>> > at
>> >
>> org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:336)
>> > at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:179)
>> > at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:128)
>> > at
>> >
>> org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:277)
>> > at
>> >
>> >
>> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:460)
>> > at
>> >
>> >
>> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
>> > at
>> >
>> >
>> org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
>> > at
>> >
>> >
>> com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
>> > at
>> >
>> >
>> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
>> > at
>> >
>> >
>> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
>> > at
>> >
>> >
>> com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
>> > at
>> >
>> >
>> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
>> > at
>> >
>> >
>> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
>> > at
>> > com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)
>> > at
>> com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)
>> > at
>> >
>> com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
>> > at
>> >
>> com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
>> > at
>> >
>> >
>> com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
>> > at
>> >
>> >
>> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
>> > at
>> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
>> > at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
>> > at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
>> > at
>> >
>> >
>> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
>> > 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:722)
>> >
>> > Información: WEB0169: Created HTTP listener [http-listener-2] on
>> host/port
>> > [
>> > 0.0.0.0:8181]
>> > Información: Grizzly Framework 1.9.46 started in: 45ms - bound to [
>> > 0.0.0.0:8181]
>> >
>> >
>> > -----------------------------------------------------
>> >
>> > 2012/3/13 Gerhard Petracek <ge...@gmail.com>
>> >
>> > > hi jose,
>> > >
>> > > you can use the myfaces-archetype to generate the correct config for
>> > > myfaces-core (as well as mojarra) + owb (+ myfaces codi):
>> > >
>> > > mvn archetype:generate -DarchetypeCatalog=http://myfaces.apache.org
>> > > -> e.g. select #11 (afterwards you just have to update the versions in
>> > the
>> > > generated pom.xml file.)
>> > >
>> > > if it still doesn't work with the generated example, you can provide
>> the
>> > > example and we can have a look at it.
>> > >
>> > > regards,
>> > > gerhard
>> > >
>> > >
>> > >
>> > > 2012/3/13 José Luis Cetina <ma...@gmail.com>
>> > >
>> > > > I see, i erase and only put @Named and @ ViewAccessScoped and get the
>> > > same
>> > > > error, but i try with only @Named and @RequestScoped (java) and still
>> > the
>> > > > error, i think the problem is the @Named is not injecting my bean,
>> not
>> > > > MyFaces, because if i use @ManagedBean this works ok, but i dont
>> > > understand
>> > > > why if i chagen from MyFaces to Mojarra the @Named and
>> > @ViewAccessScoped
>> > > > works ok!!
>> > > >
>> > > > :(
>> > > >
>> > > >
>> > > > 2012/3/13 Rafael Pestano <rm...@yahoo.com.br>
>> > > >
>> > > > > just a question, why do you have @Model,@Named and
>> @ViewAccessScoped
>> > in
>> > > > > the same bean?
>> > > > >
>> > > > > i think you need @model OR @Named and @ViewAccessScoped
>> > > > >
>> > > > > or im wrong?
>> > > > >
>> > > > > Att,
>> > > > > Rafael M. Pestano
>> > > > > Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do
>> > Sul
>> > > > > Graduando em Ciência da Computação UFRGS
>> > > > > @realpestano
>> > > > > http://code.google.com/p/jsf-conventions-framework/
>> > > > >
>> > > > >
>> > > > >
>> > > > > ----- Mensagem original -----
>> > > > > De: José Luis Cetina <ma...@gmail.com>
>> > > > > Para: MyFaces Discussion <us...@myfaces.apache.org>
>> > > > > Cc:
>> > > > > Enviadas: Terça-feira, 13 de Março de 2012 12:28
>> > > > > Assunto: Re: Both MyFaces and the RI are on your classpath. Please
>> > make
>> > > > > sure to use only one of the two JSF-implementations.
>> > > > >
>> > > > > I see now im using MyFaces instead of Mojarra, the "ERROR" Message
>> > > still
>> > > > > there, but the application can deploy. My second problem persist:
>> > > > >
>> > > > > javax.el.PropertyNotFoundException: Target Unreachable, identifier
>> > > > 'myBean'
>> > > > > resolved to null
>> > > > > viewId=/index.xhtml
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> location=C:\Users\user\Documents\NetBeansProjects\testweb\build\web\index.xhtml
>> > > > > phaseId=INVOKE_APPLICATION(5)
>> > > > >
>> > > > >
>> > > > > i have the my beans.xml under WEB-INF folder:
>> > > > > beans.xml:
>> > > > >
>> > > > > <?xml version="1.0" encoding="UTF-8"?>
>> > > > > <beans 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/beans_1_0.xsd">
>> > > > > </beans>
>> > > > >
>> > > > >
>> > > > > And my bean its ok:
>> > > > >
>> > > > > @Named
>> > > > > @ViewAccessScoped
>> > > > > @Model
>> > > > > @View(Index.class)
>> > > > > public class MyBean implements Serializable{
>> > > > > }
>> > > > >
>> > > > > If i change from MyFaces to Mojarra this work ok!!!   :(
>> > > > >
>> > > > > Somebody know what can i do?
>> > > > >
>> > > > > *Im using: Netbeans 7.1, Glassfish 3.1.2.1, JDK 7u3, MyFaces 2.1.6,
>> > > > > CODI 1.0.4, Windows 7. *
>> > > > > *
>> > > > > *
>> > > > > *Thanks.*
>> > > > > *
>> > > > > *
>> > > > >
>> > > >
>> > >
>> >
>> *-------------------------------------------------------------------------*
>> > > > >
>> > > > >
>> > > > > 2012/3/13 Werner Punz <we...@gmail.com>
>> > > > >
>> > > > > > Mhh this looks like a bug in Glassfish to me, the entries  in the
>> > > > > > glassfish-web.xml look correct to me. Problem is generally that
>> > > > glassfish
>> > > > > > is not to keen on overrides of its system libs in my experience.
>> > Even
>> > > > > while
>> > > > > > myfaces runs, try to replace Weld for instance and you run into a
>> > > mess.
>> > > > > > Glassfish as good as it is is an all or nothing pack in many
>> cases.
>> > > > > > But it has been some time since I last touched Glassfish, things
>> > > might
>> > > > > > have changed.
>> > > > > >
>> > > > > >
>> > > > > >
>> > > > > > Werner
>> > > > > >
>> > > > > >
>> > > > > > Am 12.03.12 17:40, schrieb José Luis Cetina:
>> > > > > >
>> > > > > >> Im triying to start a new project for first time with myfaces, i
>> > > > always
>> > > > > >> used Mojarra but know i want to change but im having problems at
>> > the
>> > > > > >> start:
>> > > > > >>
>> > > > > >> My only requierement is use Glassfish 3.1.2.1.
>> > > > > >>
>> > > > > >> Hi i have this WARNING:
>> > > > > >>
>> > > > > >> *Both MyFaces and the RI are on your classpath. Please make sure
>> > to
>> > > > use
>> > > > > >> only one of the two JSF-implementations.*
>> > > > > >>
>> > > > > >>
>> > > > > >> Why this happend if im using only jars from myfaces?? maybe for
>> > > > > glassfish
>> > > > > >> i
>> > > > > >> think, i have these in my *glassfish-web.xml* file, under
>> WEB-INF
>> > > > > folder:
>> > > > > >>
>> > > > > >>
>> > > > > >> <?xml version="1.0" encoding="UTF-8"?>
>> > > > > >> <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD
>> > GlassFish
>> > > > > >> Application Server 3.1 Servlet 3.0//EN" "
>> > > > > >> http://glassfish.org/dtds/**glassfish-web-app_3_0-1.dtd<
>> > > > > http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd>
>> > > > > >> ">
>> > > > > >> <glassfish-web-app error-url="">
>> > > > > >>     <!--Para establecer el charset a utf8 y remover el mensaje
>> de:
>> > > > > >> PWC4011:
>> > > > > >> Unable to set request character encoding to UTF-8 from
>> context-->
>> > > > > >>     <parameter-encoding default-charset="UTF-8"/>
>> > > > > >>     *<class-loader delegate="false"/>*
>> > > > > >> *<property name="useBundledJsf" value="true"/>*
>> > > > > >>
>> > > > > >>     <!--<class-loader delegate="true"/>-->
>> > > > > >>     <jsp-config>
>> > > > > >>         <property name="keepgenerated" value="true">
>> > > > > >>             <description>Keep a copy of the generated servlet
>> > class'
>> > > > > java
>> > > > > >> code.</description>
>> > > > > >>         </property>
>> > > > > >>     </jsp-config>
>> > > > > >> </glassfish-web-app>
>> > > > > >>
>> > > > > >> ----------------  ----------------  ----------------
>> > > > > >>
>> > > > > >> This is my web.xml
>> > > > > >>
>> > > > > >> <?xml version="1.0" encoding="UTF-8"?>
>> > > > > >> <web-app version="3.0" xmlns="
>> http://java.sun.com/**xml/ns/javaee
>> > <
>> > > > > http://java.sun.com/xml/ns/javaee>"
>> > > > > >> xmlns:xsi="
>> > > > > >> http://www.w3.org/2001/**XMLSchema-instance<
>> > > > > http://www.w3.org/2001/XMLSchema-instance>"
>> > > > > >> xsi:schemaLocation="
>> > > > > >> http://java.sun.com/xml/ns/**javaee <
>> > > > http://java.sun.com/xml/ns/javaee>
>> > > > > >> http://java.sun.com/xml/ns/**javaee/web-app_3_0.xsd<
>> > > > > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd>
>> > > > > >> ">
>> > > > > >>     <context-param>
>> > > > > >>         <param-name>javax.faces.**PROJECT_STAGE</param-name>
>> > > > > >>         <param-value>Development</**param-value>
>> > > > > >>     </context-param>
>> > > > > >>     <context-param>
>> > > > > >>
>> > <param-name>com.ocpsoft.**pretty.DEVELOPMENT</param-**name>
>> > > > > >>         <param-value>true</param-**value>
>> > > > > >>     </context-param>
>> > > > > >>     <context-param>
>> > > > > >>
>> <param-name>javax.faces.STATE_**SAVING_METHOD</param-name>
>> > > > > >>         <param-value>server</param-**value>
>> > > > > >>     </context-param>
>> > > > > >>     <context-param>
>> > > > > >>         <param-name>
>> > > > > >> javax.faces.DATETIMECONVERTER_**DEFAULT_TIMEZONE_IS_SYSTEM_**
>> > > > > >> TIMEZONE</param-name>
>> > > > > >>         <param-value>true</param-**value>
>> > > > > >>     </context-param>
>> > > > > >>      <context-param>
>> > > > > >>
>> > > > <param-name>javax.faces.**FACELETS_SKIP_COMMENTS</param-**name>
>> > > > > >>         <param-value>true</param-**value>
>> > > > > >>     </context-param>
>> > > > > >>     <context-param>
>> > > > > >>
>> > > > > >> <param-name>com.sun.faces.**enableMissingResourceLibraryDe**
>> > > > > >> tection</param-name>
>> > > > > >>         <param-value>true</param-**value>
>> > > > > >>     </context-param>
>> > > > > >>     <listener>
>> > > > > >>         *
>> > > > > >> <listener-class>org.apache.**myfaces.webapp.**
>> > > > > >> StartupServletContextListener<**/listener-class>
>> > > > > >> *
>> > > > > >>     </listener>
>> > > > > >>     <servlet>
>> > > > > >>         <servlet-name>Faces Servlet</servlet-name>
>> > > > > >>
>> > <servlet-class>javax.faces.**webapp.FacesServlet</servlet-**
>> > > > > >> class>
>> > > > > >>         <load-on-startup>1</load-on-**startup>
>> > > > > >>     </servlet>
>> > > > > >>     <servlet-mapping>
>> > > > > >>         <servlet-name>Faces Servlet</servlet-name>
>> > > > > >>         <url-pattern>/faces/*</url-**pattern>
>> > > > > >>     </servlet-mapping>
>> > > > > >>     <session-config>
>> > > > > >>         <session-timeout>
>> > > > > >>             30
>> > > > > >>         </session-timeout>
>> > > > > >>     </session-config>
>> > > > > >>     <welcome-file-list>
>> > > > > >>         <welcome-file>faces/index.**xhtml</welcome-file>
>> > > > > >>     </welcome-file-list>
>> > > > > >> </web-app>
>> > > > > >>
>> > > > > >> ----------------  ----------------  ----------------
>> > > > > >>
>> > > > > >> Here are my libraries:
>> > > > > >>
>> > > > > >> --MYFACES
>> > > > > >> myfaces-api-2.1.6.jar
>> > > > > >> myfaces-impl-2.1.6.jar
>> > > > > >> commons-beanutils-1.8.3.jar
>> > > > > >> commons-digester-1.8.jar
>> > > > > >> commons-logging-1.8.jar
>> > > > > >> commons-codec-1.1.1.jar
>> > > > > >> commons-collections-3.2.jar
>> > > > > >> --MYFACES CODI
>> > > > > >> myfaces-extcdi-alternative-**implementation-module-1.0.4
>> > > > > >> myfaces-extcdi-bv1-module-api-**1.0.4
>> > > > > >> myfaces-extcdi-bv1-module-**impl-1.0.4
>> > > > > >> myfaces-extcdi-core-**alternative-configuration-1.0.**4
>> > > > > >> myfaces-extcdi-core-api-1.0.4
>> > > > > >> myfaces-extcdi-core-impl-1.0.4
>> > > > > >> myfaces-extcdi-jpa1-module-**api-1.0.4
>> > > > > >> myfaces-extcdi-jpa1-module-**impl-1.0.4
>> > > > > >> myfaces-extcdi-jsf20-module-**api-1.0.4
>> > > > > >> myfaces-extcdi-jsf20-module-**impl-1.0.4
>> > > > > >> myfaces-extcdi-jsf-**alternative-configuration-1.0.**4
>> > > > > >> myfaces-extcdi-message-module-**api-1.0.4
>> > > > > >> myfaces-extcdi-message-module-**impl-1.0.4
>> > > > > >> myfaces-extcdi-scripting-**module-api-1.0.4
>> > > > > >> myfaces-extcdi-scripting-**module-impl-1.0.4
>> > > > > >>
>> > > > > >>
>> > > > > >> I dont know if because the "WARNING" i have other problem:
>> > > > > >>
>> > > > > >> javax.el.**PropertyNotFoundException: Target Unreachable,
>> > identifier
>> > > > > >> 'myBean'
>> > > > > >> resolved to null,
>> > > > > >>
>> > > > > >> I have in my beans.xml file under WEB-INF this:
>> > > > > >>
>> > > > > >> <?xml version="1.0" encoding="UTF-8"?>
>> > > > > >> <beans xmlns="http://java.sun.com/**xml/ns/javaee<
>> > > > > http://java.sun.com/xml/ns/javaee>
>> > > > > >> "
>> > > > > >>        xmlns:xsi="http://www.w3.org/**2001/XMLSchema-instance<
>> > > > > http://www.w3.org/2001/XMLSchema-instance>
>> > > > > >> "
>> > > > > >>        xsi:schemaLocation="http://**java.sun.com/xml/ns/javaee<
>> > > > > http://java.sun.com/xml/ns/javaee>
>> > > > > >> http://java.sun.com/xml/ns/**javaee/beans_1_0.xsd<
>> > > > > http://java.sun.com/xml/ns/javaee/beans_1_0.xsd>
>> > > > > >> ">
>> > > > > >> </beans>
>> > > > > >>
>> > > > > >> and in my bean:
>> > > > > >>
>> > > > > >> @Named
>> > > > > >> @ViewAccessScoped
>> > > > > >> @Model
>> > > > > >> @View(Index.class)
>> > > > > >> public class MyBean implements Serializable{
>> > > > > >>    public void test(){
>> > > > > >>      //do nothing
>> > > > > >>    }
>> > > > > >>
>> > > > > >> .....
>> > > > > >> }
>> > > > > >>
>> > > > > >> and in my index.xhtml
>> > > > > >>
>> > > > > >> <h:commandButton value="CLICK" action="#{myBean.test}"/>
>> > > > > >>
>> > > > > >> if i click my button the i get this error:
>> > > > > >>
>> > > > > >> javax.el.**PropertyNotFoundException: Target Unreachable,
>> > identifier
>> > > > > >> 'myBean'
>> > > > > >> resolved to null
>> > > > > >> viewId=/index.xhtml
>> > > > > >> location=C:\Users\user\**Documents\NetBeansProjects\**
>> > > > > >> testweb\build\web\index.xhtml
>> > > > > >> phaseId=INVOKE_APPLICATION(5)
>> > > > > >> Caused by:
>> > > > > >> javax.el.**PropertyNotFoundException - Target Unreachable,
>> > > identifier
>> > > > > >> 'myBean' resolved to null
>> > > > > >> at com.sun.el.parser.AstValue.**getTarget(AstValue.java:153)
>> > > > > >>
>> > > > > >>
>> > > > > >> I dont know if this is for the first problem  (*Both MyFaces and
>> > the
>> > > > RI
>> > > > > >> are
>> > > > > >>
>> > > > > >> on your classpath. Please make sure to use only one of the two
>> > > > > >> JSF-implementations.*)
>> > > > > >>
>> > > > > >> I read i need to have my beans.xml but i have it!!!
>> > > > > >>
>> > > > > >> Thanks, and sorry for the english, is not my native language
>> > > > > >>
>> > > > > >>
>> > > > > >> Im using: Netbeans 7.1, *Glassfish 3.1.2.1,* JDK 7u3, MyFaces
>> > 2.1.6,
>> > > > > CODI
>> > > > > >> 1.0.4, Windows 7.
>> > > > > >>
>> > > > > >>
>> > > > > >
>> > > > > >
>> > > > >
>> > > > >
>> > > > > --
>> > > > > -------------------------------------------------------------------
>> > > > > *SCJA. José Luis Cetina*
>> > > > > -------------------------------------------------------------------
>> > > > >
>> > > > >
>> > > >
>> > > >
>> > > > --
>> > > > -------------------------------------------------------------------
>> > > > *SCJA. José Luis Cetina*
>> > > > -------------------------------------------------------------------
>> > > >
>> > >
>> >
>> >
>> >
>> > --
>> > -------------------------------------------------------------------
>> > *SCJA. José Luis Cetina*
>> > -------------------------------------------------------------------
>> >
>>
>
>
>
> --
> -------------------------------------------------------------------
> *SCJA. José Luis Cetina*
> -------------------------------------------------------------------

Re: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

Posted by Gerhard Petracek <ge...@gmail.com>.
hi jose,

based on your tests it looks like the myfaces-core integration in
glassfish3 is still broken (at least a part of it).
i hoped that they fixed it already.

thx for the update - i'll add the information to the wiki.

regards,
gerhard

http://www.irian.at

Your JSF/JavaEE powerhouse -
JavaEE Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces



2012/3/13 José Luis Cetina <ma...@gmail.com>

> I forgot to add  *WELD:*
>
> Thanks for your time Gerhard, just for resume:
>
>  *MyFaces 2.1.6 +CODI 1.0.4+ WELD +Glassfish 3.1.2 = failed*
> * Mojarra  2.1.6 + CODI+1.0.4+ **WELD +**Glassfish 3.1.2 = OK*
> * MyFaces 2.1.6+ CODI 1.0.4+ **WELD +**Tomcat 7.0.22 = OK*
>
>
>
>
> 2012/3/13 Gerhard Petracek <ge...@gmail.com>
>
> > hi jose,
> >
> > for myfaces codi the answer is pretty simple and you can see it at [1].
> >
> > in case of myfaces-core it depends on the application-server.
> > maybe leo made some tests with glassfish 3.1.x + myfaces-core 2.x.
> >
> > however, most glassfish users i know (who are also using myfaces codi)
> use
> > it as it is (and just add myfaces codi to their project/s).
> >
> > regards,
> > gerhard
> >
> > [1]
> >
> >
> https://cwiki.apache.org/confluence/display/EXTCDI/Intro#Intro-Compatibility
> >
> > http://www.irian.at
> >
> > Your JSF/JavaEE powerhouse -
> > JavaEE Consulting, Development and
> > Courses in English and German
> >
> > Professional Support for Apache MyFaces
> >
> >
> >
> > 2012/3/13 José Luis Cetina <ma...@gmail.com>
> >
> > > Let me tell you that the example deploy and RAN without any problem
> and i
> > > dont move any line of code, i only deploy in tomcat without any
> problem,
> > i
> > > want to use apache  product's like myfaces, CODI, etc, i want to know
> if
> > > you can give me an objective suggestion with what Application Server i
> > can
> > > use with your products, i have the opportunity for choose.
> > >
> > > Thanks
> > >
> > >
> > > 2012/3/13 Gerhard Petracek <ge...@gmail.com>
> > >
> > > > hi jose,
> > > >
> > > > you can run the generated demos with a servlet container like jetty
> > (see
> > > > the comment in the generated pom.xml file), tomcat,... .
> > > > by default the myfaces-core profile is activated.
> > > >
> > > > we just need to know if your implementation works with such a
> generated
> > > > application.
> > > > esp. because glassfish adds further complexity with the mentioned
> > > > classloader-config (e.g. with this config-entries you can't use
> > > > myfaces-core and owb in parallel - that's a known classloading issue
> > > > of glassfish).
> > > >
> > > > regards,
> > > > gerhard
> > > >
> > > >
> > > >
> > > > 2012/3/13 José Luis Cetina <ma...@gmail.com>
> > > >
> > > > > I downloaded the example number 11 and i run the project without
> any
> > > > > problem, but i can see that the project is using Mojarra "Profile"
> as
> > > JSF
> > > > > Impl (the log sayed to me Mojarra...). Then if i change to use
> > MyFaces
> > > > > chossing the myfaces profile and adding these lines to my
> > > > > g*lassfish-web.xml
> > > > > *:
> > > > >
> > > > > <class-loader delegate="false"/>
> > > > > <property name="useBundledJsf" value="true"/>
> > > > >
> > > > > then i got an *exception *and i CANT run the project:
> > > > >
> > > > > Here is the *glassfish log:*
> > > > > -----------------------------------------------------
> > > > >
> > > > > Launching GlassFish on Felix platform
> > > > > Información: Running GlassFish Version: GlassFish Server Open
> Source
> > > > > Edition 3.1.2 (build 23)
> > > > > Información: Grizzly Framework 1.9.46 started in: 78ms - bound to [
> > > > > 0.0.0.0:8080]
> > > > > Información: Grizzly Framework 1.9.46 started in: 56ms - bound to [
> > > > > 0.0.0.0:8181]
> > > > > Información: Grizzly Framework 1.9.46 started in: 106ms - bound to
> [
> > > > > 0.0.0.0:3700]
> > > > > Información: Grizzly Framework 1.9.46 started in: 120ms - bound to
> [
> > > > > 0.0.0.0:4848]
> > > > > Información: Grizzly Framework 1.9.46 started in: 146ms - bound to
> [
> > > > > 0.0.0.0:7676]
> > > > > Información: The Admin Console is already installed, but not yet
> > > loaded.
> > > > > Información: Registered
> > > > > org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for
> > > > > persistence-type = replicated in BackingStoreFactoryRegistry
> > > > > Información: GlassFish Server Open Source Edition 3.1.2 (23) tiempo
> > de
> > > > > inicio: Felix (2,441ms), servicios de inicio(1,240ms),
> total(3,681ms)
> > > > > Información: JMX005: JMXStartupService had Started JMXConnector on
> > > > > JMXService URL service:jmx:rmi://
> > > > > 192.168.1.209:8686/jndi/rmi://192.168.1.209:8686/jmxrmi
> > > > > Información: Hibernate Validator 4.2.0.Final
> > > > > Información: Grizzly Framework 1.9.46 started in: 49ms - bound to [
> > > > > 0.0.0.0:8080]
> > > > > Información: SEC1002: Security Manager is OFF.
> > > > > Información: SEC1010: Entering Security Startup Service
> > > > > Información: SEC1143: Loading policy provider
> > > > > com.sun.enterprise.security.provider.PolicyWrapper.
> > > > > Información: SEC1115: Realm [admin-realm] of classtype
> > > > > [com.sun.enterprise.security.auth.realm.file.FileRealm]
> successfully
> > > > > created.
> > > > > Información: SEC1115: Realm [file] of classtype
> > > > > [com.sun.enterprise.security.auth.realm.file.FileRealm]
> successfully
> > > > > created.
> > > > > Información: SEC1115: Realm [certificate] of classtype
> > > > >
> [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm]
> > > > > successfully created.
> > > > > Información: SEC1011: Security Service(s) Started Successfully
> > > > > Información: WEB0169: Created HTTP listener [http-listener-1] on
> > > > host/port
> > > > > [
> > > > > 0.0.0.0:8080]
> > > > > Información: WEB0169: Created HTTP listener [http-listener-2] on
> > > > host/port
> > > > > [
> > > > > 0.0.0.0:8181]
> > > > > Información: WEB0169: Created HTTP listener [admin-listener] on
> > > > host/port [
> > > > > 0.0.0.0:4848]
> > > > > Información: WEB0171: Created virtual server [server]
> > > > > Información: WEB0171: Created virtual server [__asadmin]
> > > > > Información: WEB0172: Virtual server [server] loaded default web
> > module
> > > > []
> > > > > Información: WELD-000900 1.1.4 (Final)
> > > > > Grave: Exception while loading the app
> > > > > *Grave: Exception while loading the app :
> > > > >
> > > > >
> > > >
> > >
> >
> org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
> > > > > cannot be cast to javassist.util.proxy.ProxyObject*
> > > > > *java.lang.ClassCastException:
> > > > >
> > > > >
> > > >
> > >
> >
> org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
> > > > > cannot be cast to javassist.util.proxy.ProxyObject*
> > > > > at
> > org.jboss.weld.bean.proxy.ProxyFactory.create(ProxyFactory.java:245)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> org.jboss.weld.bean.builtin.ee.AbstractEEBean.<init>(AbstractEEBean.java:43)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> org.jboss.weld.bean.builtin.ee.UserTransactionBean.<init>(UserTransactionBean.java:52)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:177)
> > > > > at
> > > > >
> > > >
> > >
> >
> org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:336)
> > > > > at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:179)
> > > > > at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:128)
> > > > > at
> > > > >
> > > >
> > >
> >
> org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:277)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:460)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
> > > > > at
> > > > >
> > >
> com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)
> > > > > at
> > > >
> com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)
> > > > > at
> > > > >
> > > >
> > >
> >
> com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
> > > > > at
> > > > >
> > > >
> > >
> >
> com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
> > > > > at
> > > >
> > com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
> > > > > at
> > com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
> > > > > at
> > com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
> > > > > 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:722)
> > > > >
> > > > > Información: WEB0169: Created HTTP listener [http-listener-2] on
> > > > host/port
> > > > > [
> > > > > 0.0.0.0:8181]
> > > > > Información: Grizzly Framework 1.9.46 started in: 45ms - bound to [
> > > > > 0.0.0.0:8181]
> > > > >
> > > > >
> > > > > -----------------------------------------------------
> > > > >
> > > > > 2012/3/13 Gerhard Petracek <ge...@gmail.com>
> > > > >
> > > > > > hi jose,
> > > > > >
> > > > > > you can use the myfaces-archetype to generate the correct config
> > for
> > > > > > myfaces-core (as well as mojarra) + owb (+ myfaces codi):
> > > > > >
> > > > > > mvn archetype:generate -DarchetypeCatalog=
> > http://myfaces.apache.org
> > > > > > -> e.g. select #11 (afterwards you just have to update the
> versions
> > > in
> > > > > the
> > > > > > generated pom.xml file.)
> > > > > >
> > > > > > if it still doesn't work with the generated example, you can
> > provide
> > > > the
> > > > > > example and we can have a look at it.
> > > > > >
> > > > > > regards,
> > > > > > gerhard
> > > > > >
> > > > > >
> > > > > >
> > > > > > 2012/3/13 José Luis Cetina <ma...@gmail.com>
> > > > > >
> > > > > > > I see, i erase and only put @Named and @ ViewAccessScoped and
> get
> > > the
> > > > > > same
> > > > > > > error, but i try with only @Named and @RequestScoped (java) and
> > > still
> > > > > the
> > > > > > > error, i think the problem is the @Named is not injecting my
> > bean,
> > > > not
> > > > > > > MyFaces, because if i use @ManagedBean this works ok, but i
> dont
> > > > > > understand
> > > > > > > why if i chagen from MyFaces to Mojarra the @Named and
> > > > > @ViewAccessScoped
> > > > > > > works ok!!
> > > > > > >
> > > > > > > :(
> > > > > > >
> > > > > > >
> > > > > > > 2012/3/13 Rafael Pestano <rm...@yahoo.com.br>
> > > > > > >
> > > > > > > > just a question, why do you have @Model,@Named and
> > > > @ViewAccessScoped
> > > > > in
> > > > > > > > the same bean?
> > > > > > > >
> > > > > > > > i think you need @model OR @Named and @ViewAccessScoped
> > > > > > > >
> > > > > > > > or im wrong?
> > > > > > > >
> > > > > > > > Att,
> > > > > > > > Rafael M. Pestano
> > > > > > > > Desenvolvedor Java Cia. de Processamento de Dados do Rio
> Grande
> > > do
> > > > > Sul
> > > > > > > > Graduando em Ciência da Computação UFRGS
> > > > > > > > @realpestano
> > > > > > > > http://code.google.com/p/jsf-conventions-framework/
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > ----- Mensagem original -----
> > > > > > > > De: José Luis Cetina <ma...@gmail.com>
> > > > > > > > Para: MyFaces Discussion <us...@myfaces.apache.org>
> > > > > > > > Cc:
> > > > > > > > Enviadas: Terça-feira, 13 de Março de 2012 12:28
> > > > > > > > Assunto: Re: Both MyFaces and the RI are on your classpath.
> > > Please
> > > > > make
> > > > > > > > sure to use only one of the two JSF-implementations.
> > > > > > > >
> > > > > > > > I see now im using MyFaces instead of Mojarra, the "ERROR"
> > > Message
> > > > > > still
> > > > > > > > there, but the application can deploy. My second problem
> > persist:
> > > > > > > >
> > > > > > > > javax.el.PropertyNotFoundException: Target Unreachable,
> > > identifier
> > > > > > > 'myBean'
> > > > > > > > resolved to null
> > > > > > > > viewId=/index.xhtml
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> location=C:\Users\user\Documents\NetBeansProjects\testweb\build\web\index.xhtml
> > > > > > > > phaseId=INVOKE_APPLICATION(5)
> > > > > > > >
> > > > > > > >
> > > > > > > > i have the my beans.xml under WEB-INF folder:
> > > > > > > > beans.xml:
> > > > > > > >
> > > > > > > > <?xml version="1.0" encoding="UTF-8"?>
> > > > > > > > <beans 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/beans_1_0.xsd">
> > > > > > > > </beans>
> > > > > > > >
> > > > > > > >
> > > > > > > > And my bean its ok:
> > > > > > > >
> > > > > > > > @Named
> > > > > > > > @ViewAccessScoped
> > > > > > > > @Model
> > > > > > > > @View(Index.class)
> > > > > > > > public class MyBean implements Serializable{
> > > > > > > > }
> > > > > > > >
> > > > > > > > If i change from MyFaces to Mojarra this work ok!!!   :(
> > > > > > > >
> > > > > > > > Somebody know what can i do?
> > > > > > > >
> > > > > > > > *Im using: Netbeans 7.1, Glassfish 3.1.2.1, JDK 7u3, MyFaces
> > > 2.1.6,
> > > > > > > > CODI 1.0.4, Windows 7. *
> > > > > > > > *
> > > > > > > > *
> > > > > > > > *Thanks.*
> > > > > > > > *
> > > > > > > > *
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> *-------------------------------------------------------------------------*
> > > > > > > >
> > > > > > > >
> > > > > > > > 2012/3/13 Werner Punz <we...@gmail.com>
> > > > > > > >
> > > > > > > > > Mhh this looks like a bug in Glassfish to me, the entries
>  in
> > > the
> > > > > > > > > glassfish-web.xml look correct to me. Problem is generally
> > that
> > > > > > > glassfish
> > > > > > > > > is not to keen on overrides of its system libs in my
> > > experience.
> > > > > Even
> > > > > > > > while
> > > > > > > > > myfaces runs, try to replace Weld for instance and you run
> > > into a
> > > > > > mess.
> > > > > > > > > Glassfish as good as it is is an all or nothing pack in
> many
> > > > cases.
> > > > > > > > > But it has been some time since I last touched Glassfish,
> > > things
> > > > > > might
> > > > > > > > > have changed.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Werner
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Am 12.03.12 17:40, schrieb José Luis Cetina:
> > > > > > > > >
> > > > > > > > >> Im triying to start a new project for first time with
> > > myfaces, i
> > > > > > > always
> > > > > > > > >> used Mojarra but know i want to change but im having
> > problems
> > > at
> > > > > the
> > > > > > > > >> start:
> > > > > > > > >>
> > > > > > > > >> My only requierement is use Glassfish 3.1.2.1.
> > > > > > > > >>
> > > > > > > > >> Hi i have this WARNING:
> > > > > > > > >>
> > > > > > > > >> *Both MyFaces and the RI are on your classpath. Please
> make
> > > sure
> > > > > to
> > > > > > > use
> > > > > > > > >> only one of the two JSF-implementations.*
> > > > > > > > >>
> > > > > > > > >>
> > > > > > > > >> Why this happend if im using only jars from myfaces??
> maybe
> > > for
> > > > > > > > glassfish
> > > > > > > > >> i
> > > > > > > > >> think, i have these in my *glassfish-web.xml* file, under
> > > > WEB-INF
> > > > > > > > folder:
> > > > > > > > >>
> > > > > > > > >>
> > > > > > > > >> <?xml version="1.0" encoding="UTF-8"?>
> > > > > > > > >> <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD
> > > > > GlassFish
> > > > > > > > >> Application Server 3.1 Servlet 3.0//EN" "
> > > > > > > > >> http://glassfish.org/dtds/**glassfish-web-app_3_0-1.dtd<
> > > > > > > > http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd>
> > > > > > > > >> ">
> > > > > > > > >> <glassfish-web-app error-url="">
> > > > > > > > >>     <!--Para establecer el charset a utf8 y remover el
> > mensaje
> > > > de:
> > > > > > > > >> PWC4011:
> > > > > > > > >> Unable to set request character encoding to UTF-8 from
> > > > context-->
> > > > > > > > >>     <parameter-encoding default-charset="UTF-8"/>
> > > > > > > > >>     *<class-loader delegate="false"/>*
> > > > > > > > >> *<property name="useBundledJsf" value="true"/>*
> > > > > > > > >>
> > > > > > > > >>     <!--<class-loader delegate="true"/>-->
> > > > > > > > >>     <jsp-config>
> > > > > > > > >>         <property name="keepgenerated" value="true">
> > > > > > > > >>             <description>Keep a copy of the generated
> > servlet
> > > > > class'
> > > > > > > > java
> > > > > > > > >> code.</description>
> > > > > > > > >>         </property>
> > > > > > > > >>     </jsp-config>
> > > > > > > > >> </glassfish-web-app>
> > > > > > > > >>
> > > > > > > > >> ----------------  ----------------  ----------------
> > > > > > > > >>
> > > > > > > > >> This is my web.xml
> > > > > > > > >>
> > > > > > > > >> <?xml version="1.0" encoding="UTF-8"?>
> > > > > > > > >> <web-app version="3.0" xmlns="
> > > > http://java.sun.com/**xml/ns/javaee
> > > > > <
> > > > > > > > http://java.sun.com/xml/ns/javaee>"
> > > > > > > > >> xmlns:xsi="
> > > > > > > > >> http://www.w3.org/2001/**XMLSchema-instance<
> > > > > > > > http://www.w3.org/2001/XMLSchema-instance>"
> > > > > > > > >> xsi:schemaLocation="
> > > > > > > > >> http://java.sun.com/xml/ns/**javaee <
> > > > > > > http://java.sun.com/xml/ns/javaee>
> > > > > > > > >> http://java.sun.com/xml/ns/**javaee/web-app_3_0.xsd<
> > > > > > > > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd>
> > > > > > > > >> ">
> > > > > > > > >>     <context-param>
> > > > > > > > >>
> <param-name>javax.faces.**PROJECT_STAGE</param-name>
> > > > > > > > >>         <param-value>Development</**param-value>
> > > > > > > > >>     </context-param>
> > > > > > > > >>     <context-param>
> > > > > > > > >>
> > > > > <param-name>com.ocpsoft.**pretty.DEVELOPMENT</param-**name>
> > > > > > > > >>         <param-value>true</param-**value>
> > > > > > > > >>     </context-param>
> > > > > > > > >>     <context-param>
> > > > > > > > >>
> > > > <param-name>javax.faces.STATE_**SAVING_METHOD</param-name>
> > > > > > > > >>         <param-value>server</param-**value>
> > > > > > > > >>     </context-param>
> > > > > > > > >>     <context-param>
> > > > > > > > >>         <param-name>
> > > > > > > > >>
> > javax.faces.DATETIMECONVERTER_**DEFAULT_TIMEZONE_IS_SYSTEM_**
> > > > > > > > >> TIMEZONE</param-name>
> > > > > > > > >>         <param-value>true</param-**value>
> > > > > > > > >>     </context-param>
> > > > > > > > >>      <context-param>
> > > > > > > > >>
> > > > > > > <param-name>javax.faces.**FACELETS_SKIP_COMMENTS</param-**name>
> > > > > > > > >>         <param-value>true</param-**value>
> > > > > > > > >>     </context-param>
> > > > > > > > >>     <context-param>
> > > > > > > > >>
> > > > > > > > >>
> <param-name>com.sun.faces.**enableMissingResourceLibraryDe**
> > > > > > > > >> tection</param-name>
> > > > > > > > >>         <param-value>true</param-**value>
> > > > > > > > >>     </context-param>
> > > > > > > > >>     <listener>
> > > > > > > > >>         *
> > > > > > > > >> <listener-class>org.apache.**myfaces.webapp.**
> > > > > > > > >> StartupServletContextListener<**/listener-class>
> > > > > > > > >> *
> > > > > > > > >>     </listener>
> > > > > > > > >>     <servlet>
> > > > > > > > >>         <servlet-name>Faces Servlet</servlet-name>
> > > > > > > > >>
> > > > > <servlet-class>javax.faces.**webapp.FacesServlet</servlet-**
> > > > > > > > >> class>
> > > > > > > > >>         <load-on-startup>1</load-on-**startup>
> > > > > > > > >>     </servlet>
> > > > > > > > >>     <servlet-mapping>
> > > > > > > > >>         <servlet-name>Faces Servlet</servlet-name>
> > > > > > > > >>         <url-pattern>/faces/*</url-**pattern>
> > > > > > > > >>     </servlet-mapping>
> > > > > > > > >>     <session-config>
> > > > > > > > >>         <session-timeout>
> > > > > > > > >>             30
> > > > > > > > >>         </session-timeout>
> > > > > > > > >>     </session-config>
> > > > > > > > >>     <welcome-file-list>
> > > > > > > > >>         <welcome-file>faces/index.**xhtml</welcome-file>
> > > > > > > > >>     </welcome-file-list>
> > > > > > > > >> </web-app>
> > > > > > > > >>
> > > > > > > > >> ----------------  ----------------  ----------------
> > > > > > > > >>
> > > > > > > > >> Here are my libraries:
> > > > > > > > >>
> > > > > > > > >> --MYFACES
> > > > > > > > >> myfaces-api-2.1.6.jar
> > > > > > > > >> myfaces-impl-2.1.6.jar
> > > > > > > > >> commons-beanutils-1.8.3.jar
> > > > > > > > >> commons-digester-1.8.jar
> > > > > > > > >> commons-logging-1.8.jar
> > > > > > > > >> commons-codec-1.1.1.jar
> > > > > > > > >> commons-collections-3.2.jar
> > > > > > > > >> --MYFACES CODI
> > > > > > > > >> myfaces-extcdi-alternative-**implementation-module-1.0.4
> > > > > > > > >> myfaces-extcdi-bv1-module-api-**1.0.4
> > > > > > > > >> myfaces-extcdi-bv1-module-**impl-1.0.4
> > > > > > > > >> myfaces-extcdi-core-**alternative-configuration-1.0.**4
> > > > > > > > >> myfaces-extcdi-core-api-1.0.4
> > > > > > > > >> myfaces-extcdi-core-impl-1.0.4
> > > > > > > > >> myfaces-extcdi-jpa1-module-**api-1.0.4
> > > > > > > > >> myfaces-extcdi-jpa1-module-**impl-1.0.4
> > > > > > > > >> myfaces-extcdi-jsf20-module-**api-1.0.4
> > > > > > > > >> myfaces-extcdi-jsf20-module-**impl-1.0.4
> > > > > > > > >> myfaces-extcdi-jsf-**alternative-configuration-1.0.**4
> > > > > > > > >> myfaces-extcdi-message-module-**api-1.0.4
> > > > > > > > >> myfaces-extcdi-message-module-**impl-1.0.4
> > > > > > > > >> myfaces-extcdi-scripting-**module-api-1.0.4
> > > > > > > > >> myfaces-extcdi-scripting-**module-impl-1.0.4
> > > > > > > > >>
> > > > > > > > >>
> > > > > > > > >> I dont know if because the "WARNING" i have other problem:
> > > > > > > > >>
> > > > > > > > >> javax.el.**PropertyNotFoundException: Target Unreachable,
> > > > > identifier
> > > > > > > > >> 'myBean'
> > > > > > > > >> resolved to null,
> > > > > > > > >>
> > > > > > > > >> I have in my beans.xml file under WEB-INF this:
> > > > > > > > >>
> > > > > > > > >> <?xml version="1.0" encoding="UTF-8"?>
> > > > > > > > >> <beans xmlns="http://java.sun.com/**xml/ns/javaee<
> > > > > > > > http://java.sun.com/xml/ns/javaee>
> > > > > > > > >> "
> > > > > > > > >>        xmlns:xsi="
> > http://www.w3.org/**2001/XMLSchema-instance
> > > <
> > > > > > > > http://www.w3.org/2001/XMLSchema-instance>
> > > > > > > > >> "
> > > > > > > > >>        xsi:schemaLocation="http://**
> > > java.sun.com/xml/ns/javaee<
> > > > > > > > http://java.sun.com/xml/ns/javaee>
> > > > > > > > >> http://java.sun.com/xml/ns/**javaee/beans_1_0.xsd<
> > > > > > > > http://java.sun.com/xml/ns/javaee/beans_1_0.xsd>
> > > > > > > > >> ">
> > > > > > > > >> </beans>
> > > > > > > > >>
> > > > > > > > >> and in my bean:
> > > > > > > > >>
> > > > > > > > >> @Named
> > > > > > > > >> @ViewAccessScoped
> > > > > > > > >> @Model
> > > > > > > > >> @View(Index.class)
> > > > > > > > >> public class MyBean implements Serializable{
> > > > > > > > >>    public void test(){
> > > > > > > > >>      //do nothing
> > > > > > > > >>    }
> > > > > > > > >>
> > > > > > > > >> .....
> > > > > > > > >> }
> > > > > > > > >>
> > > > > > > > >> and in my index.xhtml
> > > > > > > > >>
> > > > > > > > >> <h:commandButton value="CLICK" action="#{myBean.test}"/>
> > > > > > > > >>
> > > > > > > > >> if i click my button the i get this error:
> > > > > > > > >>
> > > > > > > > >> javax.el.**PropertyNotFoundException: Target Unreachable,
> > > > > identifier
> > > > > > > > >> 'myBean'
> > > > > > > > >> resolved to null
> > > > > > > > >> viewId=/index.xhtml
> > > > > > > > >> location=C:\Users\user\**Documents\NetBeansProjects\**
> > > > > > > > >> testweb\build\web\index.xhtml
> > > > > > > > >> phaseId=INVOKE_APPLICATION(5)
> > > > > > > > >> Caused by:
> > > > > > > > >> javax.el.**PropertyNotFoundException - Target Unreachable,
> > > > > > identifier
> > > > > > > > >> 'myBean' resolved to null
> > > > > > > > >> at
> com.sun.el.parser.AstValue.**getTarget(AstValue.java:153)
> > > > > > > > >>
> > > > > > > > >>
> > > > > > > > >> I dont know if this is for the first problem  (*Both
> MyFaces
> > > and
> > > > > the
> > > > > > > RI
> > > > > > > > >> are
> > > > > > > > >>
> > > > > > > > >> on your classpath. Please make sure to use only one of the
> > two
> > > > > > > > >> JSF-implementations.*)
> > > > > > > > >>
> > > > > > > > >> I read i need to have my beans.xml but i have it!!!
> > > > > > > > >>
> > > > > > > > >> Thanks, and sorry for the english, is not my native
> language
> > > > > > > > >>
> > > > > > > > >>
> > > > > > > > >> Im using: Netbeans 7.1, *Glassfish 3.1.2.1,* JDK 7u3,
> > MyFaces
> > > > > 2.1.6,
> > > > > > > > CODI
> > > > > > > > >> 1.0.4, Windows 7.
> > > > > > > > >>
> > > > > > > > >>
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > >
> > > -------------------------------------------------------------------
> > > > > > > > *SCJA. José Luis Cetina*
> > > > > > > >
> > > -------------------------------------------------------------------
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > >
> > -------------------------------------------------------------------
> > > > > > > *SCJA. José Luis Cetina*
> > > > > > >
> > -------------------------------------------------------------------
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > -------------------------------------------------------------------
> > > > > *SCJA. José Luis Cetina*
> > > > > -------------------------------------------------------------------
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > -------------------------------------------------------------------
> > > *SCJA. José Luis Cetina*
> > > -------------------------------------------------------------------
> > >
> >
>
>
>
> --
> -------------------------------------------------------------------
> *SCJA. José Luis Cetina*
> -------------------------------------------------------------------
>
>
>
>
> --
> -------------------------------------------------------------------
> *SCJA. José Luis Cetina*
> -------------------------------------------------------------------
>

Fwd: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

Posted by José Luis Cetina <ma...@gmail.com>.
I forgot to add  *WELD:*

Thanks for your time Gerhard, just for resume:

 *MyFaces 2.1.6 +CODI 1.0.4+ WELD +Glassfish 3.1.2 = failed*
* Mojarra  2.1.6 + CODI+1.0.4+ **WELD +**Glassfish 3.1.2 = OK*
* MyFaces 2.1.6+ CODI 1.0.4+ **WELD +**Tomcat 7.0.22 = OK*




2012/3/13 Gerhard Petracek <ge...@gmail.com>

> hi jose,
>
> for myfaces codi the answer is pretty simple and you can see it at [1].
>
> in case of myfaces-core it depends on the application-server.
> maybe leo made some tests with glassfish 3.1.x + myfaces-core 2.x.
>
> however, most glassfish users i know (who are also using myfaces codi) use
> it as it is (and just add myfaces codi to their project/s).
>
> regards,
> gerhard
>
> [1]
>
> https://cwiki.apache.org/confluence/display/EXTCDI/Intro#Intro-Compatibility
>
> http://www.irian.at
>
> Your JSF/JavaEE powerhouse -
> JavaEE Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>
>
>
> 2012/3/13 José Luis Cetina <ma...@gmail.com>
>
> > Let me tell you that the example deploy and RAN without any problem and i
> > dont move any line of code, i only deploy in tomcat without any problem,
> i
> > want to use apache  product's like myfaces, CODI, etc, i want to know if
> > you can give me an objective suggestion with what Application Server i
> can
> > use with your products, i have the opportunity for choose.
> >
> > Thanks
> >
> >
> > 2012/3/13 Gerhard Petracek <ge...@gmail.com>
> >
> > > hi jose,
> > >
> > > you can run the generated demos with a servlet container like jetty
> (see
> > > the comment in the generated pom.xml file), tomcat,... .
> > > by default the myfaces-core profile is activated.
> > >
> > > we just need to know if your implementation works with such a generated
> > > application.
> > > esp. because glassfish adds further complexity with the mentioned
> > > classloader-config (e.g. with this config-entries you can't use
> > > myfaces-core and owb in parallel - that's a known classloading issue
> > > of glassfish).
> > >
> > > regards,
> > > gerhard
> > >
> > >
> > >
> > > 2012/3/13 José Luis Cetina <ma...@gmail.com>
> > >
> > > > I downloaded the example number 11 and i run the project without any
> > > > problem, but i can see that the project is using Mojarra "Profile" as
> > JSF
> > > > Impl (the log sayed to me Mojarra...). Then if i change to use
> MyFaces
> > > > chossing the myfaces profile and adding these lines to my
> > > > g*lassfish-web.xml
> > > > *:
> > > >
> > > > <class-loader delegate="false"/>
> > > > <property name="useBundledJsf" value="true"/>
> > > >
> > > > then i got an *exception *and i CANT run the project:
> > > >
> > > > Here is the *glassfish log:*
> > > > -----------------------------------------------------
> > > >
> > > > Launching GlassFish on Felix platform
> > > > Información: Running GlassFish Version: GlassFish Server Open Source
> > > > Edition 3.1.2 (build 23)
> > > > Información: Grizzly Framework 1.9.46 started in: 78ms - bound to [
> > > > 0.0.0.0:8080]
> > > > Información: Grizzly Framework 1.9.46 started in: 56ms - bound to [
> > > > 0.0.0.0:8181]
> > > > Información: Grizzly Framework 1.9.46 started in: 106ms - bound to [
> > > > 0.0.0.0:3700]
> > > > Información: Grizzly Framework 1.9.46 started in: 120ms - bound to [
> > > > 0.0.0.0:4848]
> > > > Información: Grizzly Framework 1.9.46 started in: 146ms - bound to [
> > > > 0.0.0.0:7676]
> > > > Información: The Admin Console is already installed, but not yet
> > loaded.
> > > > Información: Registered
> > > > org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for
> > > > persistence-type = replicated in BackingStoreFactoryRegistry
> > > > Información: GlassFish Server Open Source Edition 3.1.2 (23) tiempo
> de
> > > > inicio: Felix (2,441ms), servicios de inicio(1,240ms), total(3,681ms)
> > > > Información: JMX005: JMXStartupService had Started JMXConnector on
> > > > JMXService URL service:jmx:rmi://
> > > > 192.168.1.209:8686/jndi/rmi://192.168.1.209:8686/jmxrmi
> > > > Información: Hibernate Validator 4.2.0.Final
> > > > Información: Grizzly Framework 1.9.46 started in: 49ms - bound to [
> > > > 0.0.0.0:8080]
> > > > Información: SEC1002: Security Manager is OFF.
> > > > Información: SEC1010: Entering Security Startup Service
> > > > Información: SEC1143: Loading policy provider
> > > > com.sun.enterprise.security.provider.PolicyWrapper.
> > > > Información: SEC1115: Realm [admin-realm] of classtype
> > > > [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully
> > > > created.
> > > > Información: SEC1115: Realm [file] of classtype
> > > > [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully
> > > > created.
> > > > Información: SEC1115: Realm [certificate] of classtype
> > > > [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm]
> > > > successfully created.
> > > > Información: SEC1011: Security Service(s) Started Successfully
> > > > Información: WEB0169: Created HTTP listener [http-listener-1] on
> > > host/port
> > > > [
> > > > 0.0.0.0:8080]
> > > > Información: WEB0169: Created HTTP listener [http-listener-2] on
> > > host/port
> > > > [
> > > > 0.0.0.0:8181]
> > > > Información: WEB0169: Created HTTP listener [admin-listener] on
> > > host/port [
> > > > 0.0.0.0:4848]
> > > > Información: WEB0171: Created virtual server [server]
> > > > Información: WEB0171: Created virtual server [__asadmin]
> > > > Información: WEB0172: Virtual server [server] loaded default web
> module
> > > []
> > > > Información: WELD-000900 1.1.4 (Final)
> > > > Grave: Exception while loading the app
> > > > *Grave: Exception while loading the app :
> > > >
> > > >
> > >
> >
> org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
> > > > cannot be cast to javassist.util.proxy.ProxyObject*
> > > > *java.lang.ClassCastException:
> > > >
> > > >
> > >
> >
> org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
> > > > cannot be cast to javassist.util.proxy.ProxyObject*
> > > > at
> org.jboss.weld.bean.proxy.ProxyFactory.create(ProxyFactory.java:245)
> > > > at
> > > >
> > > >
> > >
> >
> org.jboss.weld.bean.builtin.ee.AbstractEEBean.<init>(AbstractEEBean.java:43)
> > > > at
> > > >
> > > >
> > >
> >
> org.jboss.weld.bean.builtin.ee.UserTransactionBean.<init>(UserTransactionBean.java:52)
> > > > at
> > > >
> > > >
> > >
> >
> org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:177)
> > > > at
> > > >
> > >
> >
> org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:336)
> > > > at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:179)
> > > > at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:128)
> > > > at
> > > >
> > >
> >
> org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:277)
> > > > at
> > > >
> > > >
> > >
> >
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:460)
> > > > at
> > > >
> > > >
> > >
> >
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
> > > > at
> > > >
> > > >
> > >
> >
> org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
> > > > at
> > > >
> > > >
> > >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
> > > > at
> > > >
> > > >
> > >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
> > > > at
> > > >
> > > >
> > >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
> > > > at
> > > >
> > > >
> > >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
> > > > at
> > > >
> > > >
> > >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
> > > > at
> > > >
> > > >
> > >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
> > > > at
> > > >
> > com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)
> > > > at
> > > com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)
> > > > at
> > > >
> > >
> >
> com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
> > > > at
> > > >
> > >
> >
> com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
> > > > at
> > > >
> > > >
> > >
> >
> com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
> > > > at
> > > >
> > > >
> > >
> >
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
> > > > at
> > >
> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
> > > > at
> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
> > > > at
> com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
> > > > at
> > > >
> > > >
> > >
> >
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
> > > > 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:722)
> > > >
> > > > Información: WEB0169: Created HTTP listener [http-listener-2] on
> > > host/port
> > > > [
> > > > 0.0.0.0:8181]
> > > > Información: Grizzly Framework 1.9.46 started in: 45ms - bound to [
> > > > 0.0.0.0:8181]
> > > >
> > > >
> > > > -----------------------------------------------------
> > > >
> > > > 2012/3/13 Gerhard Petracek <ge...@gmail.com>
> > > >
> > > > > hi jose,
> > > > >
> > > > > you can use the myfaces-archetype to generate the correct config
> for
> > > > > myfaces-core (as well as mojarra) + owb (+ myfaces codi):
> > > > >
> > > > > mvn archetype:generate -DarchetypeCatalog=
> http://myfaces.apache.org
> > > > > -> e.g. select #11 (afterwards you just have to update the versions
> > in
> > > > the
> > > > > generated pom.xml file.)
> > > > >
> > > > > if it still doesn't work with the generated example, you can
> provide
> > > the
> > > > > example and we can have a look at it.
> > > > >
> > > > > regards,
> > > > > gerhard
> > > > >
> > > > >
> > > > >
> > > > > 2012/3/13 José Luis Cetina <ma...@gmail.com>
> > > > >
> > > > > > I see, i erase and only put @Named and @ ViewAccessScoped and get
> > the
> > > > > same
> > > > > > error, but i try with only @Named and @RequestScoped (java) and
> > still
> > > > the
> > > > > > error, i think the problem is the @Named is not injecting my
> bean,
> > > not
> > > > > > MyFaces, because if i use @ManagedBean this works ok, but i dont
> > > > > understand
> > > > > > why if i chagen from MyFaces to Mojarra the @Named and
> > > > @ViewAccessScoped
> > > > > > works ok!!
> > > > > >
> > > > > > :(
> > > > > >
> > > > > >
> > > > > > 2012/3/13 Rafael Pestano <rm...@yahoo.com.br>
> > > > > >
> > > > > > > just a question, why do you have @Model,@Named and
> > > @ViewAccessScoped
> > > > in
> > > > > > > the same bean?
> > > > > > >
> > > > > > > i think you need @model OR @Named and @ViewAccessScoped
> > > > > > >
> > > > > > > or im wrong?
> > > > > > >
> > > > > > > Att,
> > > > > > > Rafael M. Pestano
> > > > > > > Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande
> > do
> > > > Sul
> > > > > > > Graduando em Ciência da Computação UFRGS
> > > > > > > @realpestano
> > > > > > > http://code.google.com/p/jsf-conventions-framework/
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ----- Mensagem original -----
> > > > > > > De: José Luis Cetina <ma...@gmail.com>
> > > > > > > Para: MyFaces Discussion <us...@myfaces.apache.org>
> > > > > > > Cc:
> > > > > > > Enviadas: Terça-feira, 13 de Março de 2012 12:28
> > > > > > > Assunto: Re: Both MyFaces and the RI are on your classpath.
> > Please
> > > > make
> > > > > > > sure to use only one of the two JSF-implementations.
> > > > > > >
> > > > > > > I see now im using MyFaces instead of Mojarra, the "ERROR"
> > Message
> > > > > still
> > > > > > > there, but the application can deploy. My second problem
> persist:
> > > > > > >
> > > > > > > javax.el.PropertyNotFoundException: Target Unreachable,
> > identifier
> > > > > > 'myBean'
> > > > > > > resolved to null
> > > > > > > viewId=/index.xhtml
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> location=C:\Users\user\Documents\NetBeansProjects\testweb\build\web\index.xhtml
> > > > > > > phaseId=INVOKE_APPLICATION(5)
> > > > > > >
> > > > > > >
> > > > > > > i have the my beans.xml under WEB-INF folder:
> > > > > > > beans.xml:
> > > > > > >
> > > > > > > <?xml version="1.0" encoding="UTF-8"?>
> > > > > > > <beans 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/beans_1_0.xsd">
> > > > > > > </beans>
> > > > > > >
> > > > > > >
> > > > > > > And my bean its ok:
> > > > > > >
> > > > > > > @Named
> > > > > > > @ViewAccessScoped
> > > > > > > @Model
> > > > > > > @View(Index.class)
> > > > > > > public class MyBean implements Serializable{
> > > > > > > }
> > > > > > >
> > > > > > > If i change from MyFaces to Mojarra this work ok!!!   :(
> > > > > > >
> > > > > > > Somebody know what can i do?
> > > > > > >
> > > > > > > *Im using: Netbeans 7.1, Glassfish 3.1.2.1, JDK 7u3, MyFaces
> > 2.1.6,
> > > > > > > CODI 1.0.4, Windows 7. *
> > > > > > > *
> > > > > > > *
> > > > > > > *Thanks.*
> > > > > > > *
> > > > > > > *
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> *-------------------------------------------------------------------------*
> > > > > > >
> > > > > > >
> > > > > > > 2012/3/13 Werner Punz <we...@gmail.com>
> > > > > > >
> > > > > > > > Mhh this looks like a bug in Glassfish to me, the entries  in
> > the
> > > > > > > > glassfish-web.xml look correct to me. Problem is generally
> that
> > > > > > glassfish
> > > > > > > > is not to keen on overrides of its system libs in my
> > experience.
> > > > Even
> > > > > > > while
> > > > > > > > myfaces runs, try to replace Weld for instance and you run
> > into a
> > > > > mess.
> > > > > > > > Glassfish as good as it is is an all or nothing pack in many
> > > cases.
> > > > > > > > But it has been some time since I last touched Glassfish,
> > things
> > > > > might
> > > > > > > > have changed.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Werner
> > > > > > > >
> > > > > > > >
> > > > > > > > Am 12.03.12 17:40, schrieb José Luis Cetina:
> > > > > > > >
> > > > > > > >> Im triying to start a new project for first time with
> > myfaces, i
> > > > > > always
> > > > > > > >> used Mojarra but know i want to change but im having
> problems
> > at
> > > > the
> > > > > > > >> start:
> > > > > > > >>
> > > > > > > >> My only requierement is use Glassfish 3.1.2.1.
> > > > > > > >>
> > > > > > > >> Hi i have this WARNING:
> > > > > > > >>
> > > > > > > >> *Both MyFaces and the RI are on your classpath. Please make
> > sure
> > > > to
> > > > > > use
> > > > > > > >> only one of the two JSF-implementations.*
> > > > > > > >>
> > > > > > > >>
> > > > > > > >> Why this happend if im using only jars from myfaces?? maybe
> > for
> > > > > > > glassfish
> > > > > > > >> i
> > > > > > > >> think, i have these in my *glassfish-web.xml* file, under
> > > WEB-INF
> > > > > > > folder:
> > > > > > > >>
> > > > > > > >>
> > > > > > > >> <?xml version="1.0" encoding="UTF-8"?>
> > > > > > > >> <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD
> > > > GlassFish
> > > > > > > >> Application Server 3.1 Servlet 3.0//EN" "
> > > > > > > >> http://glassfish.org/dtds/**glassfish-web-app_3_0-1.dtd<
> > > > > > > http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd>
> > > > > > > >> ">
> > > > > > > >> <glassfish-web-app error-url="">
> > > > > > > >>     <!--Para establecer el charset a utf8 y remover el
> mensaje
> > > de:
> > > > > > > >> PWC4011:
> > > > > > > >> Unable to set request character encoding to UTF-8 from
> > > context-->
> > > > > > > >>     <parameter-encoding default-charset="UTF-8"/>
> > > > > > > >>     *<class-loader delegate="false"/>*
> > > > > > > >> *<property name="useBundledJsf" value="true"/>*
> > > > > > > >>
> > > > > > > >>     <!--<class-loader delegate="true"/>-->
> > > > > > > >>     <jsp-config>
> > > > > > > >>         <property name="keepgenerated" value="true">
> > > > > > > >>             <description>Keep a copy of the generated
> servlet
> > > > class'
> > > > > > > java
> > > > > > > >> code.</description>
> > > > > > > >>         </property>
> > > > > > > >>     </jsp-config>
> > > > > > > >> </glassfish-web-app>
> > > > > > > >>
> > > > > > > >> ----------------  ----------------  ----------------
> > > > > > > >>
> > > > > > > >> This is my web.xml
> > > > > > > >>
> > > > > > > >> <?xml version="1.0" encoding="UTF-8"?>
> > > > > > > >> <web-app version="3.0" xmlns="
> > > http://java.sun.com/**xml/ns/javaee
> > > > <
> > > > > > > http://java.sun.com/xml/ns/javaee>"
> > > > > > > >> xmlns:xsi="
> > > > > > > >> http://www.w3.org/2001/**XMLSchema-instance<
> > > > > > > http://www.w3.org/2001/XMLSchema-instance>"
> > > > > > > >> xsi:schemaLocation="
> > > > > > > >> http://java.sun.com/xml/ns/**javaee <
> > > > > > http://java.sun.com/xml/ns/javaee>
> > > > > > > >> http://java.sun.com/xml/ns/**javaee/web-app_3_0.xsd<
> > > > > > > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd>
> > > > > > > >> ">
> > > > > > > >>     <context-param>
> > > > > > > >>         <param-name>javax.faces.**PROJECT_STAGE</param-name>
> > > > > > > >>         <param-value>Development</**param-value>
> > > > > > > >>     </context-param>
> > > > > > > >>     <context-param>
> > > > > > > >>
> > > > <param-name>com.ocpsoft.**pretty.DEVELOPMENT</param-**name>
> > > > > > > >>         <param-value>true</param-**value>
> > > > > > > >>     </context-param>
> > > > > > > >>     <context-param>
> > > > > > > >>
> > > <param-name>javax.faces.STATE_**SAVING_METHOD</param-name>
> > > > > > > >>         <param-value>server</param-**value>
> > > > > > > >>     </context-param>
> > > > > > > >>     <context-param>
> > > > > > > >>         <param-name>
> > > > > > > >>
> javax.faces.DATETIMECONVERTER_**DEFAULT_TIMEZONE_IS_SYSTEM_**
> > > > > > > >> TIMEZONE</param-name>
> > > > > > > >>         <param-value>true</param-**value>
> > > > > > > >>     </context-param>
> > > > > > > >>      <context-param>
> > > > > > > >>
> > > > > > <param-name>javax.faces.**FACELETS_SKIP_COMMENTS</param-**name>
> > > > > > > >>         <param-value>true</param-**value>
> > > > > > > >>     </context-param>
> > > > > > > >>     <context-param>
> > > > > > > >>
> > > > > > > >> <param-name>com.sun.faces.**enableMissingResourceLibraryDe**
> > > > > > > >> tection</param-name>
> > > > > > > >>         <param-value>true</param-**value>
> > > > > > > >>     </context-param>
> > > > > > > >>     <listener>
> > > > > > > >>         *
> > > > > > > >> <listener-class>org.apache.**myfaces.webapp.**
> > > > > > > >> StartupServletContextListener<**/listener-class>
> > > > > > > >> *
> > > > > > > >>     </listener>
> > > > > > > >>     <servlet>
> > > > > > > >>         <servlet-name>Faces Servlet</servlet-name>
> > > > > > > >>
> > > > <servlet-class>javax.faces.**webapp.FacesServlet</servlet-**
> > > > > > > >> class>
> > > > > > > >>         <load-on-startup>1</load-on-**startup>
> > > > > > > >>     </servlet>
> > > > > > > >>     <servlet-mapping>
> > > > > > > >>         <servlet-name>Faces Servlet</servlet-name>
> > > > > > > >>         <url-pattern>/faces/*</url-**pattern>
> > > > > > > >>     </servlet-mapping>
> > > > > > > >>     <session-config>
> > > > > > > >>         <session-timeout>
> > > > > > > >>             30
> > > > > > > >>         </session-timeout>
> > > > > > > >>     </session-config>
> > > > > > > >>     <welcome-file-list>
> > > > > > > >>         <welcome-file>faces/index.**xhtml</welcome-file>
> > > > > > > >>     </welcome-file-list>
> > > > > > > >> </web-app>
> > > > > > > >>
> > > > > > > >> ----------------  ----------------  ----------------
> > > > > > > >>
> > > > > > > >> Here are my libraries:
> > > > > > > >>
> > > > > > > >> --MYFACES
> > > > > > > >> myfaces-api-2.1.6.jar
> > > > > > > >> myfaces-impl-2.1.6.jar
> > > > > > > >> commons-beanutils-1.8.3.jar
> > > > > > > >> commons-digester-1.8.jar
> > > > > > > >> commons-logging-1.8.jar
> > > > > > > >> commons-codec-1.1.1.jar
> > > > > > > >> commons-collections-3.2.jar
> > > > > > > >> --MYFACES CODI
> > > > > > > >> myfaces-extcdi-alternative-**implementation-module-1.0.4
> > > > > > > >> myfaces-extcdi-bv1-module-api-**1.0.4
> > > > > > > >> myfaces-extcdi-bv1-module-**impl-1.0.4
> > > > > > > >> myfaces-extcdi-core-**alternative-configuration-1.0.**4
> > > > > > > >> myfaces-extcdi-core-api-1.0.4
> > > > > > > >> myfaces-extcdi-core-impl-1.0.4
> > > > > > > >> myfaces-extcdi-jpa1-module-**api-1.0.4
> > > > > > > >> myfaces-extcdi-jpa1-module-**impl-1.0.4
> > > > > > > >> myfaces-extcdi-jsf20-module-**api-1.0.4
> > > > > > > >> myfaces-extcdi-jsf20-module-**impl-1.0.4
> > > > > > > >> myfaces-extcdi-jsf-**alternative-configuration-1.0.**4
> > > > > > > >> myfaces-extcdi-message-module-**api-1.0.4
> > > > > > > >> myfaces-extcdi-message-module-**impl-1.0.4
> > > > > > > >> myfaces-extcdi-scripting-**module-api-1.0.4
> > > > > > > >> myfaces-extcdi-scripting-**module-impl-1.0.4
> > > > > > > >>
> > > > > > > >>
> > > > > > > >> I dont know if because the "WARNING" i have other problem:
> > > > > > > >>
> > > > > > > >> javax.el.**PropertyNotFoundException: Target Unreachable,
> > > > identifier
> > > > > > > >> 'myBean'
> > > > > > > >> resolved to null,
> > > > > > > >>
> > > > > > > >> I have in my beans.xml file under WEB-INF this:
> > > > > > > >>
> > > > > > > >> <?xml version="1.0" encoding="UTF-8"?>
> > > > > > > >> <beans xmlns="http://java.sun.com/**xml/ns/javaee<
> > > > > > > http://java.sun.com/xml/ns/javaee>
> > > > > > > >> "
> > > > > > > >>        xmlns:xsi="
> http://www.w3.org/**2001/XMLSchema-instance
> > <
> > > > > > > http://www.w3.org/2001/XMLSchema-instance>
> > > > > > > >> "
> > > > > > > >>        xsi:schemaLocation="http://**
> > java.sun.com/xml/ns/javaee<
> > > > > > > http://java.sun.com/xml/ns/javaee>
> > > > > > > >> http://java.sun.com/xml/ns/**javaee/beans_1_0.xsd<
> > > > > > > http://java.sun.com/xml/ns/javaee/beans_1_0.xsd>
> > > > > > > >> ">
> > > > > > > >> </beans>
> > > > > > > >>
> > > > > > > >> and in my bean:
> > > > > > > >>
> > > > > > > >> @Named
> > > > > > > >> @ViewAccessScoped
> > > > > > > >> @Model
> > > > > > > >> @View(Index.class)
> > > > > > > >> public class MyBean implements Serializable{
> > > > > > > >>    public void test(){
> > > > > > > >>      //do nothing
> > > > > > > >>    }
> > > > > > > >>
> > > > > > > >> .....
> > > > > > > >> }
> > > > > > > >>
> > > > > > > >> and in my index.xhtml
> > > > > > > >>
> > > > > > > >> <h:commandButton value="CLICK" action="#{myBean.test}"/>
> > > > > > > >>
> > > > > > > >> if i click my button the i get this error:
> > > > > > > >>
> > > > > > > >> javax.el.**PropertyNotFoundException: Target Unreachable,
> > > > identifier
> > > > > > > >> 'myBean'
> > > > > > > >> resolved to null
> > > > > > > >> viewId=/index.xhtml
> > > > > > > >> location=C:\Users\user\**Documents\NetBeansProjects\**
> > > > > > > >> testweb\build\web\index.xhtml
> > > > > > > >> phaseId=INVOKE_APPLICATION(5)
> > > > > > > >> Caused by:
> > > > > > > >> javax.el.**PropertyNotFoundException - Target Unreachable,
> > > > > identifier
> > > > > > > >> 'myBean' resolved to null
> > > > > > > >> at com.sun.el.parser.AstValue.**getTarget(AstValue.java:153)
> > > > > > > >>
> > > > > > > >>
> > > > > > > >> I dont know if this is for the first problem  (*Both MyFaces
> > and
> > > > the
> > > > > > RI
> > > > > > > >> are
> > > > > > > >>
> > > > > > > >> on your classpath. Please make sure to use only one of the
> two
> > > > > > > >> JSF-implementations.*)
> > > > > > > >>
> > > > > > > >> I read i need to have my beans.xml but i have it!!!
> > > > > > > >>
> > > > > > > >> Thanks, and sorry for the english, is not my native language
> > > > > > > >>
> > > > > > > >>
> > > > > > > >> Im using: Netbeans 7.1, *Glassfish 3.1.2.1,* JDK 7u3,
> MyFaces
> > > > 2.1.6,
> > > > > > > CODI
> > > > > > > >> 1.0.4, Windows 7.
> > > > > > > >>
> > > > > > > >>
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > >
> > -------------------------------------------------------------------
> > > > > > > *SCJA. José Luis Cetina*
> > > > > > >
> > -------------------------------------------------------------------
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > >
> -------------------------------------------------------------------
> > > > > > *SCJA. José Luis Cetina*
> > > > > >
> -------------------------------------------------------------------
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > -------------------------------------------------------------------
> > > > *SCJA. José Luis Cetina*
> > > > -------------------------------------------------------------------
> > > >
> > >
> >
> >
> >
> > --
> > -------------------------------------------------------------------
> > *SCJA. José Luis Cetina*
> > -------------------------------------------------------------------
> >
>



-- 
-------------------------------------------------------------------
*SCJA. José Luis Cetina*
-------------------------------------------------------------------




-- 
-------------------------------------------------------------------
*SCJA. José Luis Cetina*
-------------------------------------------------------------------

Re: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

Posted by José Luis Cetina <ma...@gmail.com>.
Thanks for your time Gerhard, just for resume:

 *MyFaces 2.1.6 +CODI 1.0.4+Glassfish 3.1.2 = failed*
* Mojarra  2.1.6 + CODI+1.0.4+Glassfish 3.1.2 = OK*
* MyFaces 2.1.6+ CODI 1.0.4+ Tomcat 7.0.22 = OK*


I think is strange that i can deploy mojarra+codi with glassfish and not
myfaces+codi with glassfish.




2012/3/13 Gerhard Petracek <ge...@gmail.com>

> hi jose,
>
> for myfaces codi the answer is pretty simple and you can see it at [1].
>
> in case of myfaces-core it depends on the application-server.
> maybe leo made some tests with glassfish 3.1.x + myfaces-core 2.x.
>
> however, most glassfish users i know (who are also using myfaces codi) use
> it as it is (and just add myfaces codi to their project/s).
>
> regards,
> gerhard
>
> [1]
>
> https://cwiki.apache.org/confluence/display/EXTCDI/Intro#Intro-Compatibility
>
> http://www.irian.at
>
> Your JSF/JavaEE powerhouse -
> JavaEE Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>
>
>
> 2012/3/13 José Luis Cetina <ma...@gmail.com>
>
> > Let me tell you that the example deploy and RAN without any problem and i
> > dont move any line of code, i only deploy in tomcat without any problem,
> i
> > want to use apache  product's like myfaces, CODI, etc, i want to know if
> > you can give me an objective suggestion with what Application Server i
> can
> > use with your products, i have the opportunity for choose.
> >
> > Thanks
> >
> >
> > 2012/3/13 Gerhard Petracek <ge...@gmail.com>
> >
> > > hi jose,
> > >
> > > you can run the generated demos with a servlet container like jetty
> (see
> > > the comment in the generated pom.xml file), tomcat,... .
> > > by default the myfaces-core profile is activated.
> > >
> > > we just need to know if your implementation works with such a generated
> > > application.
> > > esp. because glassfish adds further complexity with the mentioned
> > > classloader-config (e.g. with this config-entries you can't use
> > > myfaces-core and owb in parallel - that's a known classloading issue
> > > of glassfish).
> > >
> > > regards,
> > > gerhard
> > >
> > >
> > >
> > > 2012/3/13 José Luis Cetina <ma...@gmail.com>
> > >
> > > > I downloaded the example number 11 and i run the project without any
> > > > problem, but i can see that the project is using Mojarra "Profile" as
> > JSF
> > > > Impl (the log sayed to me Mojarra...). Then if i change to use
> MyFaces
> > > > chossing the myfaces profile and adding these lines to my
> > > > g*lassfish-web.xml
> > > > *:
> > > >
> > > > <class-loader delegate="false"/>
> > > > <property name="useBundledJsf" value="true"/>
> > > >
> > > > then i got an *exception *and i CANT run the project:
> > > >
> > > > Here is the *glassfish log:*
> > > > -----------------------------------------------------
> > > >
> > > > Launching GlassFish on Felix platform
> > > > Información: Running GlassFish Version: GlassFish Server Open Source
> > > > Edition 3.1.2 (build 23)
> > > > Información: Grizzly Framework 1.9.46 started in: 78ms - bound to [
> > > > 0.0.0.0:8080]
> > > > Información: Grizzly Framework 1.9.46 started in: 56ms - bound to [
> > > > 0.0.0.0:8181]
> > > > Información: Grizzly Framework 1.9.46 started in: 106ms - bound to [
> > > > 0.0.0.0:3700]
> > > > Información: Grizzly Framework 1.9.46 started in: 120ms - bound to [
> > > > 0.0.0.0:4848]
> > > > Información: Grizzly Framework 1.9.46 started in: 146ms - bound to [
> > > > 0.0.0.0:7676]
> > > > Información: The Admin Console is already installed, but not yet
> > loaded.
> > > > Información: Registered
> > > > org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for
> > > > persistence-type = replicated in BackingStoreFactoryRegistry
> > > > Información: GlassFish Server Open Source Edition 3.1.2 (23) tiempo
> de
> > > > inicio: Felix (2,441ms), servicios de inicio(1,240ms), total(3,681ms)
> > > > Información: JMX005: JMXStartupService had Started JMXConnector on
> > > > JMXService URL service:jmx:rmi://
> > > > 192.168.1.209:8686/jndi/rmi://192.168.1.209:8686/jmxrmi
> > > > Información: Hibernate Validator 4.2.0.Final
> > > > Información: Grizzly Framework 1.9.46 started in: 49ms - bound to [
> > > > 0.0.0.0:8080]
> > > > Información: SEC1002: Security Manager is OFF.
> > > > Información: SEC1010: Entering Security Startup Service
> > > > Información: SEC1143: Loading policy provider
> > > > com.sun.enterprise.security.provider.PolicyWrapper.
> > > > Información: SEC1115: Realm [admin-realm] of classtype
> > > > [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully
> > > > created.
> > > > Información: SEC1115: Realm [file] of classtype
> > > > [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully
> > > > created.
> > > > Información: SEC1115: Realm [certificate] of classtype
> > > > [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm]
> > > > successfully created.
> > > > Información: SEC1011: Security Service(s) Started Successfully
> > > > Información: WEB0169: Created HTTP listener [http-listener-1] on
> > > host/port
> > > > [
> > > > 0.0.0.0:8080]
> > > > Información: WEB0169: Created HTTP listener [http-listener-2] on
> > > host/port
> > > > [
> > > > 0.0.0.0:8181]
> > > > Información: WEB0169: Created HTTP listener [admin-listener] on
> > > host/port [
> > > > 0.0.0.0:4848]
> > > > Información: WEB0171: Created virtual server [server]
> > > > Información: WEB0171: Created virtual server [__asadmin]
> > > > Información: WEB0172: Virtual server [server] loaded default web
> module
> > > []
> > > > Información: WELD-000900 1.1.4 (Final)
> > > > Grave: Exception while loading the app
> > > > *Grave: Exception while loading the app :
> > > >
> > > >
> > >
> >
> org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
> > > > cannot be cast to javassist.util.proxy.ProxyObject*
> > > > *java.lang.ClassCastException:
> > > >
> > > >
> > >
> >
> org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
> > > > cannot be cast to javassist.util.proxy.ProxyObject*
> > > > at
> org.jboss.weld.bean.proxy.ProxyFactory.create(ProxyFactory.java:245)
> > > > at
> > > >
> > > >
> > >
> >
> org.jboss.weld.bean.builtin.ee.AbstractEEBean.<init>(AbstractEEBean.java:43)
> > > > at
> > > >
> > > >
> > >
> >
> org.jboss.weld.bean.builtin.ee.UserTransactionBean.<init>(UserTransactionBean.java:52)
> > > > at
> > > >
> > > >
> > >
> >
> org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:177)
> > > > at
> > > >
> > >
> >
> org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:336)
> > > > at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:179)
> > > > at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:128)
> > > > at
> > > >
> > >
> >
> org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:277)
> > > > at
> > > >
> > > >
> > >
> >
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:460)
> > > > at
> > > >
> > > >
> > >
> >
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
> > > > at
> > > >
> > > >
> > >
> >
> org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
> > > > at
> > > >
> > > >
> > >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
> > > > at
> > > >
> > > >
> > >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
> > > > at
> > > >
> > > >
> > >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
> > > > at
> > > >
> > > >
> > >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
> > > > at
> > > >
> > > >
> > >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
> > > > at
> > > >
> > > >
> > >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
> > > > at
> > > >
> > com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)
> > > > at
> > > com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)
> > > > at
> > > >
> > >
> >
> com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
> > > > at
> > > >
> > >
> >
> com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
> > > > at
> > > >
> > > >
> > >
> >
> com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
> > > > at
> > > >
> > > >
> > >
> >
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
> > > > at
> > >
> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
> > > > at
> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
> > > > at
> com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
> > > > at
> > > >
> > > >
> > >
> >
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
> > > > 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:722)
> > > >
> > > > Información: WEB0169: Created HTTP listener [http-listener-2] on
> > > host/port
> > > > [
> > > > 0.0.0.0:8181]
> > > > Información: Grizzly Framework 1.9.46 started in: 45ms - bound to [
> > > > 0.0.0.0:8181]
> > > >
> > > >
> > > > -----------------------------------------------------
> > > >
> > > > 2012/3/13 Gerhard Petracek <ge...@gmail.com>
> > > >
> > > > > hi jose,
> > > > >
> > > > > you can use the myfaces-archetype to generate the correct config
> for
> > > > > myfaces-core (as well as mojarra) + owb (+ myfaces codi):
> > > > >
> > > > > mvn archetype:generate -DarchetypeCatalog=
> http://myfaces.apache.org
> > > > > -> e.g. select #11 (afterwards you just have to update the versions
> > in
> > > > the
> > > > > generated pom.xml file.)
> > > > >
> > > > > if it still doesn't work with the generated example, you can
> provide
> > > the
> > > > > example and we can have a look at it.
> > > > >
> > > > > regards,
> > > > > gerhard
> > > > >
> > > > >
> > > > >
> > > > > 2012/3/13 José Luis Cetina <ma...@gmail.com>
> > > > >
> > > > > > I see, i erase and only put @Named and @ ViewAccessScoped and get
> > the
> > > > > same
> > > > > > error, but i try with only @Named and @RequestScoped (java) and
> > still
> > > > the
> > > > > > error, i think the problem is the @Named is not injecting my
> bean,
> > > not
> > > > > > MyFaces, because if i use @ManagedBean this works ok, but i dont
> > > > > understand
> > > > > > why if i chagen from MyFaces to Mojarra the @Named and
> > > > @ViewAccessScoped
> > > > > > works ok!!
> > > > > >
> > > > > > :(
> > > > > >
> > > > > >
> > > > > > 2012/3/13 Rafael Pestano <rm...@yahoo.com.br>
> > > > > >
> > > > > > > just a question, why do you have @Model,@Named and
> > > @ViewAccessScoped
> > > > in
> > > > > > > the same bean?
> > > > > > >
> > > > > > > i think you need @model OR @Named and @ViewAccessScoped
> > > > > > >
> > > > > > > or im wrong?
> > > > > > >
> > > > > > > Att,
> > > > > > > Rafael M. Pestano
> > > > > > > Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande
> > do
> > > > Sul
> > > > > > > Graduando em Ciência da Computação UFRGS
> > > > > > > @realpestano
> > > > > > > http://code.google.com/p/jsf-conventions-framework/
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ----- Mensagem original -----
> > > > > > > De: José Luis Cetina <ma...@gmail.com>
> > > > > > > Para: MyFaces Discussion <us...@myfaces.apache.org>
> > > > > > > Cc:
> > > > > > > Enviadas: Terça-feira, 13 de Março de 2012 12:28
> > > > > > > Assunto: Re: Both MyFaces and the RI are on your classpath.
> > Please
> > > > make
> > > > > > > sure to use only one of the two JSF-implementations.
> > > > > > >
> > > > > > > I see now im using MyFaces instead of Mojarra, the "ERROR"
> > Message
> > > > > still
> > > > > > > there, but the application can deploy. My second problem
> persist:
> > > > > > >
> > > > > > > javax.el.PropertyNotFoundException: Target Unreachable,
> > identifier
> > > > > > 'myBean'
> > > > > > > resolved to null
> > > > > > > viewId=/index.xhtml
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> location=C:\Users\user\Documents\NetBeansProjects\testweb\build\web\index.xhtml
> > > > > > > phaseId=INVOKE_APPLICATION(5)
> > > > > > >
> > > > > > >
> > > > > > > i have the my beans.xml under WEB-INF folder:
> > > > > > > beans.xml:
> > > > > > >
> > > > > > > <?xml version="1.0" encoding="UTF-8"?>
> > > > > > > <beans 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/beans_1_0.xsd">
> > > > > > > </beans>
> > > > > > >
> > > > > > >
> > > > > > > And my bean its ok:
> > > > > > >
> > > > > > > @Named
> > > > > > > @ViewAccessScoped
> > > > > > > @Model
> > > > > > > @View(Index.class)
> > > > > > > public class MyBean implements Serializable{
> > > > > > > }
> > > > > > >
> > > > > > > If i change from MyFaces to Mojarra this work ok!!!   :(
> > > > > > >
> > > > > > > Somebody know what can i do?
> > > > > > >
> > > > > > > *Im using: Netbeans 7.1, Glassfish 3.1.2.1, JDK 7u3, MyFaces
> > 2.1.6,
> > > > > > > CODI 1.0.4, Windows 7. *
> > > > > > > *
> > > > > > > *
> > > > > > > *Thanks.*
> > > > > > > *
> > > > > > > *
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> *-------------------------------------------------------------------------*
> > > > > > >
> > > > > > >
> > > > > > > 2012/3/13 Werner Punz <we...@gmail.com>
> > > > > > >
> > > > > > > > Mhh this looks like a bug in Glassfish to me, the entries  in
> > the
> > > > > > > > glassfish-web.xml look correct to me. Problem is generally
> that
> > > > > > glassfish
> > > > > > > > is not to keen on overrides of its system libs in my
> > experience.
> > > > Even
> > > > > > > while
> > > > > > > > myfaces runs, try to replace Weld for instance and you run
> > into a
> > > > > mess.
> > > > > > > > Glassfish as good as it is is an all or nothing pack in many
> > > cases.
> > > > > > > > But it has been some time since I last touched Glassfish,
> > things
> > > > > might
> > > > > > > > have changed.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Werner
> > > > > > > >
> > > > > > > >
> > > > > > > > Am 12.03.12 17:40, schrieb José Luis Cetina:
> > > > > > > >
> > > > > > > >> Im triying to start a new project for first time with
> > myfaces, i
> > > > > > always
> > > > > > > >> used Mojarra but know i want to change but im having
> problems
> > at
> > > > the
> > > > > > > >> start:
> > > > > > > >>
> > > > > > > >> My only requierement is use Glassfish 3.1.2.1.
> > > > > > > >>
> > > > > > > >> Hi i have this WARNING:
> > > > > > > >>
> > > > > > > >> *Both MyFaces and the RI are on your classpath. Please make
> > sure
> > > > to
> > > > > > use
> > > > > > > >> only one of the two JSF-implementations.*
> > > > > > > >>
> > > > > > > >>
> > > > > > > >> Why this happend if im using only jars from myfaces?? maybe
> > for
> > > > > > > glassfish
> > > > > > > >> i
> > > > > > > >> think, i have these in my *glassfish-web.xml* file, under
> > > WEB-INF
> > > > > > > folder:
> > > > > > > >>
> > > > > > > >>
> > > > > > > >> <?xml version="1.0" encoding="UTF-8"?>
> > > > > > > >> <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD
> > > > GlassFish
> > > > > > > >> Application Server 3.1 Servlet 3.0//EN" "
> > > > > > > >> http://glassfish.org/dtds/**glassfish-web-app_3_0-1.dtd<
> > > > > > > http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd>
> > > > > > > >> ">
> > > > > > > >> <glassfish-web-app error-url="">
> > > > > > > >>     <!--Para establecer el charset a utf8 y remover el
> mensaje
> > > de:
> > > > > > > >> PWC4011:
> > > > > > > >> Unable to set request character encoding to UTF-8 from
> > > context-->
> > > > > > > >>     <parameter-encoding default-charset="UTF-8"/>
> > > > > > > >>     *<class-loader delegate="false"/>*
> > > > > > > >> *<property name="useBundledJsf" value="true"/>*
> > > > > > > >>
> > > > > > > >>     <!--<class-loader delegate="true"/>-->
> > > > > > > >>     <jsp-config>
> > > > > > > >>         <property name="keepgenerated" value="true">
> > > > > > > >>             <description>Keep a copy of the generated
> servlet
> > > > class'
> > > > > > > java
> > > > > > > >> code.</description>
> > > > > > > >>         </property>
> > > > > > > >>     </jsp-config>
> > > > > > > >> </glassfish-web-app>
> > > > > > > >>
> > > > > > > >> ----------------  ----------------  ----------------
> > > > > > > >>
> > > > > > > >> This is my web.xml
> > > > > > > >>
> > > > > > > >> <?xml version="1.0" encoding="UTF-8"?>
> > > > > > > >> <web-app version="3.0" xmlns="
> > > http://java.sun.com/**xml/ns/javaee
> > > > <
> > > > > > > http://java.sun.com/xml/ns/javaee>"
> > > > > > > >> xmlns:xsi="
> > > > > > > >> http://www.w3.org/2001/**XMLSchema-instance<
> > > > > > > http://www.w3.org/2001/XMLSchema-instance>"
> > > > > > > >> xsi:schemaLocation="
> > > > > > > >> http://java.sun.com/xml/ns/**javaee <
> > > > > > http://java.sun.com/xml/ns/javaee>
> > > > > > > >> http://java.sun.com/xml/ns/**javaee/web-app_3_0.xsd<
> > > > > > > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd>
> > > > > > > >> ">
> > > > > > > >>     <context-param>
> > > > > > > >>         <param-name>javax.faces.**PROJECT_STAGE</param-name>
> > > > > > > >>         <param-value>Development</**param-value>
> > > > > > > >>     </context-param>
> > > > > > > >>     <context-param>
> > > > > > > >>
> > > > <param-name>com.ocpsoft.**pretty.DEVELOPMENT</param-**name>
> > > > > > > >>         <param-value>true</param-**value>
> > > > > > > >>     </context-param>
> > > > > > > >>     <context-param>
> > > > > > > >>
> > > <param-name>javax.faces.STATE_**SAVING_METHOD</param-name>
> > > > > > > >>         <param-value>server</param-**value>
> > > > > > > >>     </context-param>
> > > > > > > >>     <context-param>
> > > > > > > >>         <param-name>
> > > > > > > >>
> javax.faces.DATETIMECONVERTER_**DEFAULT_TIMEZONE_IS_SYSTEM_**
> > > > > > > >> TIMEZONE</param-name>
> > > > > > > >>         <param-value>true</param-**value>
> > > > > > > >>     </context-param>
> > > > > > > >>      <context-param>
> > > > > > > >>
> > > > > > <param-name>javax.faces.**FACELETS_SKIP_COMMENTS</param-**name>
> > > > > > > >>         <param-value>true</param-**value>
> > > > > > > >>     </context-param>
> > > > > > > >>     <context-param>
> > > > > > > >>
> > > > > > > >> <param-name>com.sun.faces.**enableMissingResourceLibraryDe**
> > > > > > > >> tection</param-name>
> > > > > > > >>         <param-value>true</param-**value>
> > > > > > > >>     </context-param>
> > > > > > > >>     <listener>
> > > > > > > >>         *
> > > > > > > >> <listener-class>org.apache.**myfaces.webapp.**
> > > > > > > >> StartupServletContextListener<**/listener-class>
> > > > > > > >> *
> > > > > > > >>     </listener>
> > > > > > > >>     <servlet>
> > > > > > > >>         <servlet-name>Faces Servlet</servlet-name>
> > > > > > > >>
> > > > <servlet-class>javax.faces.**webapp.FacesServlet</servlet-**
> > > > > > > >> class>
> > > > > > > >>         <load-on-startup>1</load-on-**startup>
> > > > > > > >>     </servlet>
> > > > > > > >>     <servlet-mapping>
> > > > > > > >>         <servlet-name>Faces Servlet</servlet-name>
> > > > > > > >>         <url-pattern>/faces/*</url-**pattern>
> > > > > > > >>     </servlet-mapping>
> > > > > > > >>     <session-config>
> > > > > > > >>         <session-timeout>
> > > > > > > >>             30
> > > > > > > >>         </session-timeout>
> > > > > > > >>     </session-config>
> > > > > > > >>     <welcome-file-list>
> > > > > > > >>         <welcome-file>faces/index.**xhtml</welcome-file>
> > > > > > > >>     </welcome-file-list>
> > > > > > > >> </web-app>
> > > > > > > >>
> > > > > > > >> ----------------  ----------------  ----------------
> > > > > > > >>
> > > > > > > >> Here are my libraries:
> > > > > > > >>
> > > > > > > >> --MYFACES
> > > > > > > >> myfaces-api-2.1.6.jar
> > > > > > > >> myfaces-impl-2.1.6.jar
> > > > > > > >> commons-beanutils-1.8.3.jar
> > > > > > > >> commons-digester-1.8.jar
> > > > > > > >> commons-logging-1.8.jar
> > > > > > > >> commons-codec-1.1.1.jar
> > > > > > > >> commons-collections-3.2.jar
> > > > > > > >> --MYFACES CODI
> > > > > > > >> myfaces-extcdi-alternative-**implementation-module-1.0.4
> > > > > > > >> myfaces-extcdi-bv1-module-api-**1.0.4
> > > > > > > >> myfaces-extcdi-bv1-module-**impl-1.0.4
> > > > > > > >> myfaces-extcdi-core-**alternative-configuration-1.0.**4
> > > > > > > >> myfaces-extcdi-core-api-1.0.4
> > > > > > > >> myfaces-extcdi-core-impl-1.0.4
> > > > > > > >> myfaces-extcdi-jpa1-module-**api-1.0.4
> > > > > > > >> myfaces-extcdi-jpa1-module-**impl-1.0.4
> > > > > > > >> myfaces-extcdi-jsf20-module-**api-1.0.4
> > > > > > > >> myfaces-extcdi-jsf20-module-**impl-1.0.4
> > > > > > > >> myfaces-extcdi-jsf-**alternative-configuration-1.0.**4
> > > > > > > >> myfaces-extcdi-message-module-**api-1.0.4
> > > > > > > >> myfaces-extcdi-message-module-**impl-1.0.4
> > > > > > > >> myfaces-extcdi-scripting-**module-api-1.0.4
> > > > > > > >> myfaces-extcdi-scripting-**module-impl-1.0.4
> > > > > > > >>
> > > > > > > >>
> > > > > > > >> I dont know if because the "WARNING" i have other problem:
> > > > > > > >>
> > > > > > > >> javax.el.**PropertyNotFoundException: Target Unreachable,
> > > > identifier
> > > > > > > >> 'myBean'
> > > > > > > >> resolved to null,
> > > > > > > >>
> > > > > > > >> I have in my beans.xml file under WEB-INF this:
> > > > > > > >>
> > > > > > > >> <?xml version="1.0" encoding="UTF-8"?>
> > > > > > > >> <beans xmlns="http://java.sun.com/**xml/ns/javaee<
> > > > > > > http://java.sun.com/xml/ns/javaee>
> > > > > > > >> "
> > > > > > > >>        xmlns:xsi="
> http://www.w3.org/**2001/XMLSchema-instance
> > <
> > > > > > > http://www.w3.org/2001/XMLSchema-instance>
> > > > > > > >> "
> > > > > > > >>        xsi:schemaLocation="http://**
> > java.sun.com/xml/ns/javaee<
> > > > > > > http://java.sun.com/xml/ns/javaee>
> > > > > > > >> http://java.sun.com/xml/ns/**javaee/beans_1_0.xsd<
> > > > > > > http://java.sun.com/xml/ns/javaee/beans_1_0.xsd>
> > > > > > > >> ">
> > > > > > > >> </beans>
> > > > > > > >>
> > > > > > > >> and in my bean:
> > > > > > > >>
> > > > > > > >> @Named
> > > > > > > >> @ViewAccessScoped
> > > > > > > >> @Model
> > > > > > > >> @View(Index.class)
> > > > > > > >> public class MyBean implements Serializable{
> > > > > > > >>    public void test(){
> > > > > > > >>      //do nothing
> > > > > > > >>    }
> > > > > > > >>
> > > > > > > >> .....
> > > > > > > >> }
> > > > > > > >>
> > > > > > > >> and in my index.xhtml
> > > > > > > >>
> > > > > > > >> <h:commandButton value="CLICK" action="#{myBean.test}"/>
> > > > > > > >>
> > > > > > > >> if i click my button the i get this error:
> > > > > > > >>
> > > > > > > >> javax.el.**PropertyNotFoundException: Target Unreachable,
> > > > identifier
> > > > > > > >> 'myBean'
> > > > > > > >> resolved to null
> > > > > > > >> viewId=/index.xhtml
> > > > > > > >> location=C:\Users\user\**Documents\NetBeansProjects\**
> > > > > > > >> testweb\build\web\index.xhtml
> > > > > > > >> phaseId=INVOKE_APPLICATION(5)
> > > > > > > >> Caused by:
> > > > > > > >> javax.el.**PropertyNotFoundException - Target Unreachable,
> > > > > identifier
> > > > > > > >> 'myBean' resolved to null
> > > > > > > >> at com.sun.el.parser.AstValue.**getTarget(AstValue.java:153)
> > > > > > > >>
> > > > > > > >>
> > > > > > > >> I dont know if this is for the first problem  (*Both MyFaces
> > and
> > > > the
> > > > > > RI
> > > > > > > >> are
> > > > > > > >>
> > > > > > > >> on your classpath. Please make sure to use only one of the
> two
> > > > > > > >> JSF-implementations.*)
> > > > > > > >>
> > > > > > > >> I read i need to have my beans.xml but i have it!!!
> > > > > > > >>
> > > > > > > >> Thanks, and sorry for the english, is not my native language
> > > > > > > >>
> > > > > > > >>
> > > > > > > >> Im using: Netbeans 7.1, *Glassfish 3.1.2.1,* JDK 7u3,
> MyFaces
> > > > 2.1.6,
> > > > > > > CODI
> > > > > > > >> 1.0.4, Windows 7.
> > > > > > > >>
> > > > > > > >>
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > >
> > -------------------------------------------------------------------
> > > > > > > *SCJA. José Luis Cetina*
> > > > > > >
> > -------------------------------------------------------------------
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > >
> -------------------------------------------------------------------
> > > > > > *SCJA. José Luis Cetina*
> > > > > >
> -------------------------------------------------------------------
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > -------------------------------------------------------------------
> > > > *SCJA. José Luis Cetina*
> > > > -------------------------------------------------------------------
> > > >
> > >
> >
> >
> >
> > --
> > -------------------------------------------------------------------
> > *SCJA. José Luis Cetina*
> > -------------------------------------------------------------------
> >
>



-- 
-------------------------------------------------------------------
*SCJA. José Luis Cetina*
-------------------------------------------------------------------

Re: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

Posted by Gerhard Petracek <ge...@gmail.com>.
hi jose,

for myfaces codi the answer is pretty simple and you can see it at [1].

in case of myfaces-core it depends on the application-server.
maybe leo made some tests with glassfish 3.1.x + myfaces-core 2.x.

however, most glassfish users i know (who are also using myfaces codi) use
it as it is (and just add myfaces codi to their project/s).

regards,
gerhard

[1]
https://cwiki.apache.org/confluence/display/EXTCDI/Intro#Intro-Compatibility

http://www.irian.at

Your JSF/JavaEE powerhouse -
JavaEE Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces



2012/3/13 José Luis Cetina <ma...@gmail.com>

> Let me tell you that the example deploy and RAN without any problem and i
> dont move any line of code, i only deploy in tomcat without any problem, i
> want to use apache  product's like myfaces, CODI, etc, i want to know if
> you can give me an objective suggestion with what Application Server i can
> use with your products, i have the opportunity for choose.
>
> Thanks
>
>
> 2012/3/13 Gerhard Petracek <ge...@gmail.com>
>
> > hi jose,
> >
> > you can run the generated demos with a servlet container like jetty (see
> > the comment in the generated pom.xml file), tomcat,... .
> > by default the myfaces-core profile is activated.
> >
> > we just need to know if your implementation works with such a generated
> > application.
> > esp. because glassfish adds further complexity with the mentioned
> > classloader-config (e.g. with this config-entries you can't use
> > myfaces-core and owb in parallel - that's a known classloading issue
> > of glassfish).
> >
> > regards,
> > gerhard
> >
> >
> >
> > 2012/3/13 José Luis Cetina <ma...@gmail.com>
> >
> > > I downloaded the example number 11 and i run the project without any
> > > problem, but i can see that the project is using Mojarra "Profile" as
> JSF
> > > Impl (the log sayed to me Mojarra...). Then if i change to use MyFaces
> > > chossing the myfaces profile and adding these lines to my
> > > g*lassfish-web.xml
> > > *:
> > >
> > > <class-loader delegate="false"/>
> > > <property name="useBundledJsf" value="true"/>
> > >
> > > then i got an *exception *and i CANT run the project:
> > >
> > > Here is the *glassfish log:*
> > > -----------------------------------------------------
> > >
> > > Launching GlassFish on Felix platform
> > > Información: Running GlassFish Version: GlassFish Server Open Source
> > > Edition 3.1.2 (build 23)
> > > Información: Grizzly Framework 1.9.46 started in: 78ms - bound to [
> > > 0.0.0.0:8080]
> > > Información: Grizzly Framework 1.9.46 started in: 56ms - bound to [
> > > 0.0.0.0:8181]
> > > Información: Grizzly Framework 1.9.46 started in: 106ms - bound to [
> > > 0.0.0.0:3700]
> > > Información: Grizzly Framework 1.9.46 started in: 120ms - bound to [
> > > 0.0.0.0:4848]
> > > Información: Grizzly Framework 1.9.46 started in: 146ms - bound to [
> > > 0.0.0.0:7676]
> > > Información: The Admin Console is already installed, but not yet
> loaded.
> > > Información: Registered
> > > org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for
> > > persistence-type = replicated in BackingStoreFactoryRegistry
> > > Información: GlassFish Server Open Source Edition 3.1.2 (23) tiempo de
> > > inicio: Felix (2,441ms), servicios de inicio(1,240ms), total(3,681ms)
> > > Información: JMX005: JMXStartupService had Started JMXConnector on
> > > JMXService URL service:jmx:rmi://
> > > 192.168.1.209:8686/jndi/rmi://192.168.1.209:8686/jmxrmi
> > > Información: Hibernate Validator 4.2.0.Final
> > > Información: Grizzly Framework 1.9.46 started in: 49ms - bound to [
> > > 0.0.0.0:8080]
> > > Información: SEC1002: Security Manager is OFF.
> > > Información: SEC1010: Entering Security Startup Service
> > > Información: SEC1143: Loading policy provider
> > > com.sun.enterprise.security.provider.PolicyWrapper.
> > > Información: SEC1115: Realm [admin-realm] of classtype
> > > [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully
> > > created.
> > > Información: SEC1115: Realm [file] of classtype
> > > [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully
> > > created.
> > > Información: SEC1115: Realm [certificate] of classtype
> > > [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm]
> > > successfully created.
> > > Información: SEC1011: Security Service(s) Started Successfully
> > > Información: WEB0169: Created HTTP listener [http-listener-1] on
> > host/port
> > > [
> > > 0.0.0.0:8080]
> > > Información: WEB0169: Created HTTP listener [http-listener-2] on
> > host/port
> > > [
> > > 0.0.0.0:8181]
> > > Información: WEB0169: Created HTTP listener [admin-listener] on
> > host/port [
> > > 0.0.0.0:4848]
> > > Información: WEB0171: Created virtual server [server]
> > > Información: WEB0171: Created virtual server [__asadmin]
> > > Información: WEB0172: Virtual server [server] loaded default web module
> > []
> > > Información: WELD-000900 1.1.4 (Final)
> > > Grave: Exception while loading the app
> > > *Grave: Exception while loading the app :
> > >
> > >
> >
> org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
> > > cannot be cast to javassist.util.proxy.ProxyObject*
> > > *java.lang.ClassCastException:
> > >
> > >
> >
> org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
> > > cannot be cast to javassist.util.proxy.ProxyObject*
> > > at org.jboss.weld.bean.proxy.ProxyFactory.create(ProxyFactory.java:245)
> > > at
> > >
> > >
> >
> org.jboss.weld.bean.builtin.ee.AbstractEEBean.<init>(AbstractEEBean.java:43)
> > > at
> > >
> > >
> >
> org.jboss.weld.bean.builtin.ee.UserTransactionBean.<init>(UserTransactionBean.java:52)
> > > at
> > >
> > >
> >
> org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:177)
> > > at
> > >
> >
> org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:336)
> > > at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:179)
> > > at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:128)
> > > at
> > >
> >
> org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:277)
> > > at
> > >
> > >
> >
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:460)
> > > at
> > >
> > >
> >
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
> > > at
> > >
> > >
> >
> org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
> > > at
> > >
> > >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
> > > at
> > >
> > >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
> > > at
> > >
> > >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
> > > at
> > >
> > >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
> > > at
> > >
> > >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
> > > at
> > >
> > >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
> > > at
> > >
> com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)
> > > at
> > com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)
> > > at
> > >
> >
> com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
> > > at
> > >
> >
> com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
> > > at
> > >
> > >
> >
> com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
> > > at
> > >
> > >
> >
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
> > > at
> > com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
> > > at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
> > > at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
> > > at
> > >
> > >
> >
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
> > > 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:722)
> > >
> > > Información: WEB0169: Created HTTP listener [http-listener-2] on
> > host/port
> > > [
> > > 0.0.0.0:8181]
> > > Información: Grizzly Framework 1.9.46 started in: 45ms - bound to [
> > > 0.0.0.0:8181]
> > >
> > >
> > > -----------------------------------------------------
> > >
> > > 2012/3/13 Gerhard Petracek <ge...@gmail.com>
> > >
> > > > hi jose,
> > > >
> > > > you can use the myfaces-archetype to generate the correct config for
> > > > myfaces-core (as well as mojarra) + owb (+ myfaces codi):
> > > >
> > > > mvn archetype:generate -DarchetypeCatalog=http://myfaces.apache.org
> > > > -> e.g. select #11 (afterwards you just have to update the versions
> in
> > > the
> > > > generated pom.xml file.)
> > > >
> > > > if it still doesn't work with the generated example, you can provide
> > the
> > > > example and we can have a look at it.
> > > >
> > > > regards,
> > > > gerhard
> > > >
> > > >
> > > >
> > > > 2012/3/13 José Luis Cetina <ma...@gmail.com>
> > > >
> > > > > I see, i erase and only put @Named and @ ViewAccessScoped and get
> the
> > > > same
> > > > > error, but i try with only @Named and @RequestScoped (java) and
> still
> > > the
> > > > > error, i think the problem is the @Named is not injecting my bean,
> > not
> > > > > MyFaces, because if i use @ManagedBean this works ok, but i dont
> > > > understand
> > > > > why if i chagen from MyFaces to Mojarra the @Named and
> > > @ViewAccessScoped
> > > > > works ok!!
> > > > >
> > > > > :(
> > > > >
> > > > >
> > > > > 2012/3/13 Rafael Pestano <rm...@yahoo.com.br>
> > > > >
> > > > > > just a question, why do you have @Model,@Named and
> > @ViewAccessScoped
> > > in
> > > > > > the same bean?
> > > > > >
> > > > > > i think you need @model OR @Named and @ViewAccessScoped
> > > > > >
> > > > > > or im wrong?
> > > > > >
> > > > > > Att,
> > > > > > Rafael M. Pestano
> > > > > > Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande
> do
> > > Sul
> > > > > > Graduando em Ciência da Computação UFRGS
> > > > > > @realpestano
> > > > > > http://code.google.com/p/jsf-conventions-framework/
> > > > > >
> > > > > >
> > > > > >
> > > > > > ----- Mensagem original -----
> > > > > > De: José Luis Cetina <ma...@gmail.com>
> > > > > > Para: MyFaces Discussion <us...@myfaces.apache.org>
> > > > > > Cc:
> > > > > > Enviadas: Terça-feira, 13 de Março de 2012 12:28
> > > > > > Assunto: Re: Both MyFaces and the RI are on your classpath.
> Please
> > > make
> > > > > > sure to use only one of the two JSF-implementations.
> > > > > >
> > > > > > I see now im using MyFaces instead of Mojarra, the "ERROR"
> Message
> > > > still
> > > > > > there, but the application can deploy. My second problem persist:
> > > > > >
> > > > > > javax.el.PropertyNotFoundException: Target Unreachable,
> identifier
> > > > > 'myBean'
> > > > > > resolved to null
> > > > > > viewId=/index.xhtml
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> location=C:\Users\user\Documents\NetBeansProjects\testweb\build\web\index.xhtml
> > > > > > phaseId=INVOKE_APPLICATION(5)
> > > > > >
> > > > > >
> > > > > > i have the my beans.xml under WEB-INF folder:
> > > > > > beans.xml:
> > > > > >
> > > > > > <?xml version="1.0" encoding="UTF-8"?>
> > > > > > <beans 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/beans_1_0.xsd">
> > > > > > </beans>
> > > > > >
> > > > > >
> > > > > > And my bean its ok:
> > > > > >
> > > > > > @Named
> > > > > > @ViewAccessScoped
> > > > > > @Model
> > > > > > @View(Index.class)
> > > > > > public class MyBean implements Serializable{
> > > > > > }
> > > > > >
> > > > > > If i change from MyFaces to Mojarra this work ok!!!   :(
> > > > > >
> > > > > > Somebody know what can i do?
> > > > > >
> > > > > > *Im using: Netbeans 7.1, Glassfish 3.1.2.1, JDK 7u3, MyFaces
> 2.1.6,
> > > > > > CODI 1.0.4, Windows 7. *
> > > > > > *
> > > > > > *
> > > > > > *Thanks.*
> > > > > > *
> > > > > > *
> > > > > >
> > > > >
> > > >
> > >
> >
> *-------------------------------------------------------------------------*
> > > > > >
> > > > > >
> > > > > > 2012/3/13 Werner Punz <we...@gmail.com>
> > > > > >
> > > > > > > Mhh this looks like a bug in Glassfish to me, the entries  in
> the
> > > > > > > glassfish-web.xml look correct to me. Problem is generally that
> > > > > glassfish
> > > > > > > is not to keen on overrides of its system libs in my
> experience.
> > > Even
> > > > > > while
> > > > > > > myfaces runs, try to replace Weld for instance and you run
> into a
> > > > mess.
> > > > > > > Glassfish as good as it is is an all or nothing pack in many
> > cases.
> > > > > > > But it has been some time since I last touched Glassfish,
> things
> > > > might
> > > > > > > have changed.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Werner
> > > > > > >
> > > > > > >
> > > > > > > Am 12.03.12 17:40, schrieb José Luis Cetina:
> > > > > > >
> > > > > > >> Im triying to start a new project for first time with
> myfaces, i
> > > > > always
> > > > > > >> used Mojarra but know i want to change but im having problems
> at
> > > the
> > > > > > >> start:
> > > > > > >>
> > > > > > >> My only requierement is use Glassfish 3.1.2.1.
> > > > > > >>
> > > > > > >> Hi i have this WARNING:
> > > > > > >>
> > > > > > >> *Both MyFaces and the RI are on your classpath. Please make
> sure
> > > to
> > > > > use
> > > > > > >> only one of the two JSF-implementations.*
> > > > > > >>
> > > > > > >>
> > > > > > >> Why this happend if im using only jars from myfaces?? maybe
> for
> > > > > > glassfish
> > > > > > >> i
> > > > > > >> think, i have these in my *glassfish-web.xml* file, under
> > WEB-INF
> > > > > > folder:
> > > > > > >>
> > > > > > >>
> > > > > > >> <?xml version="1.0" encoding="UTF-8"?>
> > > > > > >> <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD
> > > GlassFish
> > > > > > >> Application Server 3.1 Servlet 3.0//EN" "
> > > > > > >> http://glassfish.org/dtds/**glassfish-web-app_3_0-1.dtd<
> > > > > > http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd>
> > > > > > >> ">
> > > > > > >> <glassfish-web-app error-url="">
> > > > > > >>     <!--Para establecer el charset a utf8 y remover el mensaje
> > de:
> > > > > > >> PWC4011:
> > > > > > >> Unable to set request character encoding to UTF-8 from
> > context-->
> > > > > > >>     <parameter-encoding default-charset="UTF-8"/>
> > > > > > >>     *<class-loader delegate="false"/>*
> > > > > > >> *<property name="useBundledJsf" value="true"/>*
> > > > > > >>
> > > > > > >>     <!--<class-loader delegate="true"/>-->
> > > > > > >>     <jsp-config>
> > > > > > >>         <property name="keepgenerated" value="true">
> > > > > > >>             <description>Keep a copy of the generated servlet
> > > class'
> > > > > > java
> > > > > > >> code.</description>
> > > > > > >>         </property>
> > > > > > >>     </jsp-config>
> > > > > > >> </glassfish-web-app>
> > > > > > >>
> > > > > > >> ----------------  ----------------  ----------------
> > > > > > >>
> > > > > > >> This is my web.xml
> > > > > > >>
> > > > > > >> <?xml version="1.0" encoding="UTF-8"?>
> > > > > > >> <web-app version="3.0" xmlns="
> > http://java.sun.com/**xml/ns/javaee
> > > <
> > > > > > http://java.sun.com/xml/ns/javaee>"
> > > > > > >> xmlns:xsi="
> > > > > > >> http://www.w3.org/2001/**XMLSchema-instance<
> > > > > > http://www.w3.org/2001/XMLSchema-instance>"
> > > > > > >> xsi:schemaLocation="
> > > > > > >> http://java.sun.com/xml/ns/**javaee <
> > > > > http://java.sun.com/xml/ns/javaee>
> > > > > > >> http://java.sun.com/xml/ns/**javaee/web-app_3_0.xsd<
> > > > > > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd>
> > > > > > >> ">
> > > > > > >>     <context-param>
> > > > > > >>         <param-name>javax.faces.**PROJECT_STAGE</param-name>
> > > > > > >>         <param-value>Development</**param-value>
> > > > > > >>     </context-param>
> > > > > > >>     <context-param>
> > > > > > >>
> > > <param-name>com.ocpsoft.**pretty.DEVELOPMENT</param-**name>
> > > > > > >>         <param-value>true</param-**value>
> > > > > > >>     </context-param>
> > > > > > >>     <context-param>
> > > > > > >>
> > <param-name>javax.faces.STATE_**SAVING_METHOD</param-name>
> > > > > > >>         <param-value>server</param-**value>
> > > > > > >>     </context-param>
> > > > > > >>     <context-param>
> > > > > > >>         <param-name>
> > > > > > >> javax.faces.DATETIMECONVERTER_**DEFAULT_TIMEZONE_IS_SYSTEM_**
> > > > > > >> TIMEZONE</param-name>
> > > > > > >>         <param-value>true</param-**value>
> > > > > > >>     </context-param>
> > > > > > >>      <context-param>
> > > > > > >>
> > > > > <param-name>javax.faces.**FACELETS_SKIP_COMMENTS</param-**name>
> > > > > > >>         <param-value>true</param-**value>
> > > > > > >>     </context-param>
> > > > > > >>     <context-param>
> > > > > > >>
> > > > > > >> <param-name>com.sun.faces.**enableMissingResourceLibraryDe**
> > > > > > >> tection</param-name>
> > > > > > >>         <param-value>true</param-**value>
> > > > > > >>     </context-param>
> > > > > > >>     <listener>
> > > > > > >>         *
> > > > > > >> <listener-class>org.apache.**myfaces.webapp.**
> > > > > > >> StartupServletContextListener<**/listener-class>
> > > > > > >> *
> > > > > > >>     </listener>
> > > > > > >>     <servlet>
> > > > > > >>         <servlet-name>Faces Servlet</servlet-name>
> > > > > > >>
> > > <servlet-class>javax.faces.**webapp.FacesServlet</servlet-**
> > > > > > >> class>
> > > > > > >>         <load-on-startup>1</load-on-**startup>
> > > > > > >>     </servlet>
> > > > > > >>     <servlet-mapping>
> > > > > > >>         <servlet-name>Faces Servlet</servlet-name>
> > > > > > >>         <url-pattern>/faces/*</url-**pattern>
> > > > > > >>     </servlet-mapping>
> > > > > > >>     <session-config>
> > > > > > >>         <session-timeout>
> > > > > > >>             30
> > > > > > >>         </session-timeout>
> > > > > > >>     </session-config>
> > > > > > >>     <welcome-file-list>
> > > > > > >>         <welcome-file>faces/index.**xhtml</welcome-file>
> > > > > > >>     </welcome-file-list>
> > > > > > >> </web-app>
> > > > > > >>
> > > > > > >> ----------------  ----------------  ----------------
> > > > > > >>
> > > > > > >> Here are my libraries:
> > > > > > >>
> > > > > > >> --MYFACES
> > > > > > >> myfaces-api-2.1.6.jar
> > > > > > >> myfaces-impl-2.1.6.jar
> > > > > > >> commons-beanutils-1.8.3.jar
> > > > > > >> commons-digester-1.8.jar
> > > > > > >> commons-logging-1.8.jar
> > > > > > >> commons-codec-1.1.1.jar
> > > > > > >> commons-collections-3.2.jar
> > > > > > >> --MYFACES CODI
> > > > > > >> myfaces-extcdi-alternative-**implementation-module-1.0.4
> > > > > > >> myfaces-extcdi-bv1-module-api-**1.0.4
> > > > > > >> myfaces-extcdi-bv1-module-**impl-1.0.4
> > > > > > >> myfaces-extcdi-core-**alternative-configuration-1.0.**4
> > > > > > >> myfaces-extcdi-core-api-1.0.4
> > > > > > >> myfaces-extcdi-core-impl-1.0.4
> > > > > > >> myfaces-extcdi-jpa1-module-**api-1.0.4
> > > > > > >> myfaces-extcdi-jpa1-module-**impl-1.0.4
> > > > > > >> myfaces-extcdi-jsf20-module-**api-1.0.4
> > > > > > >> myfaces-extcdi-jsf20-module-**impl-1.0.4
> > > > > > >> myfaces-extcdi-jsf-**alternative-configuration-1.0.**4
> > > > > > >> myfaces-extcdi-message-module-**api-1.0.4
> > > > > > >> myfaces-extcdi-message-module-**impl-1.0.4
> > > > > > >> myfaces-extcdi-scripting-**module-api-1.0.4
> > > > > > >> myfaces-extcdi-scripting-**module-impl-1.0.4
> > > > > > >>
> > > > > > >>
> > > > > > >> I dont know if because the "WARNING" i have other problem:
> > > > > > >>
> > > > > > >> javax.el.**PropertyNotFoundException: Target Unreachable,
> > > identifier
> > > > > > >> 'myBean'
> > > > > > >> resolved to null,
> > > > > > >>
> > > > > > >> I have in my beans.xml file under WEB-INF this:
> > > > > > >>
> > > > > > >> <?xml version="1.0" encoding="UTF-8"?>
> > > > > > >> <beans xmlns="http://java.sun.com/**xml/ns/javaee<
> > > > > > http://java.sun.com/xml/ns/javaee>
> > > > > > >> "
> > > > > > >>        xmlns:xsi="http://www.w3.org/**2001/XMLSchema-instance
> <
> > > > > > http://www.w3.org/2001/XMLSchema-instance>
> > > > > > >> "
> > > > > > >>        xsi:schemaLocation="http://**
> java.sun.com/xml/ns/javaee<
> > > > > > http://java.sun.com/xml/ns/javaee>
> > > > > > >> http://java.sun.com/xml/ns/**javaee/beans_1_0.xsd<
> > > > > > http://java.sun.com/xml/ns/javaee/beans_1_0.xsd>
> > > > > > >> ">
> > > > > > >> </beans>
> > > > > > >>
> > > > > > >> and in my bean:
> > > > > > >>
> > > > > > >> @Named
> > > > > > >> @ViewAccessScoped
> > > > > > >> @Model
> > > > > > >> @View(Index.class)
> > > > > > >> public class MyBean implements Serializable{
> > > > > > >>    public void test(){
> > > > > > >>      //do nothing
> > > > > > >>    }
> > > > > > >>
> > > > > > >> .....
> > > > > > >> }
> > > > > > >>
> > > > > > >> and in my index.xhtml
> > > > > > >>
> > > > > > >> <h:commandButton value="CLICK" action="#{myBean.test}"/>
> > > > > > >>
> > > > > > >> if i click my button the i get this error:
> > > > > > >>
> > > > > > >> javax.el.**PropertyNotFoundException: Target Unreachable,
> > > identifier
> > > > > > >> 'myBean'
> > > > > > >> resolved to null
> > > > > > >> viewId=/index.xhtml
> > > > > > >> location=C:\Users\user\**Documents\NetBeansProjects\**
> > > > > > >> testweb\build\web\index.xhtml
> > > > > > >> phaseId=INVOKE_APPLICATION(5)
> > > > > > >> Caused by:
> > > > > > >> javax.el.**PropertyNotFoundException - Target Unreachable,
> > > > identifier
> > > > > > >> 'myBean' resolved to null
> > > > > > >> at com.sun.el.parser.AstValue.**getTarget(AstValue.java:153)
> > > > > > >>
> > > > > > >>
> > > > > > >> I dont know if this is for the first problem  (*Both MyFaces
> and
> > > the
> > > > > RI
> > > > > > >> are
> > > > > > >>
> > > > > > >> on your classpath. Please make sure to use only one of the two
> > > > > > >> JSF-implementations.*)
> > > > > > >>
> > > > > > >> I read i need to have my beans.xml but i have it!!!
> > > > > > >>
> > > > > > >> Thanks, and sorry for the english, is not my native language
> > > > > > >>
> > > > > > >>
> > > > > > >> Im using: Netbeans 7.1, *Glassfish 3.1.2.1,* JDK 7u3, MyFaces
> > > 2.1.6,
> > > > > > CODI
> > > > > > >> 1.0.4, Windows 7.
> > > > > > >>
> > > > > > >>
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > >
> -------------------------------------------------------------------
> > > > > > *SCJA. José Luis Cetina*
> > > > > >
> -------------------------------------------------------------------
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > -------------------------------------------------------------------
> > > > > *SCJA. José Luis Cetina*
> > > > > -------------------------------------------------------------------
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > -------------------------------------------------------------------
> > > *SCJA. José Luis Cetina*
> > > -------------------------------------------------------------------
> > >
> >
>
>
>
> --
> -------------------------------------------------------------------
> *SCJA. José Luis Cetina*
> -------------------------------------------------------------------
>

Re: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

Posted by José Luis Cetina <ma...@gmail.com>.
Let me tell you that the example deploy and RAN without any problem and i
dont move any line of code, i only deploy in tomcat without any problem, i
want to use apache  product's like myfaces, CODI, etc, i want to know if
you can give me an objective suggestion with what Application Server i can
use with your products, i have the opportunity for choose.

Thanks


2012/3/13 Gerhard Petracek <ge...@gmail.com>

> hi jose,
>
> you can run the generated demos with a servlet container like jetty (see
> the comment in the generated pom.xml file), tomcat,... .
> by default the myfaces-core profile is activated.
>
> we just need to know if your implementation works with such a generated
> application.
> esp. because glassfish adds further complexity with the mentioned
> classloader-config (e.g. with this config-entries you can't use
> myfaces-core and owb in parallel - that's a known classloading issue
> of glassfish).
>
> regards,
> gerhard
>
>
>
> 2012/3/13 José Luis Cetina <ma...@gmail.com>
>
> > I downloaded the example number 11 and i run the project without any
> > problem, but i can see that the project is using Mojarra "Profile" as JSF
> > Impl (the log sayed to me Mojarra...). Then if i change to use MyFaces
> > chossing the myfaces profile and adding these lines to my
> > g*lassfish-web.xml
> > *:
> >
> > <class-loader delegate="false"/>
> > <property name="useBundledJsf" value="true"/>
> >
> > then i got an *exception *and i CANT run the project:
> >
> > Here is the *glassfish log:*
> > -----------------------------------------------------
> >
> > Launching GlassFish on Felix platform
> > Información: Running GlassFish Version: GlassFish Server Open Source
> > Edition 3.1.2 (build 23)
> > Información: Grizzly Framework 1.9.46 started in: 78ms - bound to [
> > 0.0.0.0:8080]
> > Información: Grizzly Framework 1.9.46 started in: 56ms - bound to [
> > 0.0.0.0:8181]
> > Información: Grizzly Framework 1.9.46 started in: 106ms - bound to [
> > 0.0.0.0:3700]
> > Información: Grizzly Framework 1.9.46 started in: 120ms - bound to [
> > 0.0.0.0:4848]
> > Información: Grizzly Framework 1.9.46 started in: 146ms - bound to [
> > 0.0.0.0:7676]
> > Información: The Admin Console is already installed, but not yet loaded.
> > Información: Registered
> > org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for
> > persistence-type = replicated in BackingStoreFactoryRegistry
> > Información: GlassFish Server Open Source Edition 3.1.2 (23) tiempo de
> > inicio: Felix (2,441ms), servicios de inicio(1,240ms), total(3,681ms)
> > Información: JMX005: JMXStartupService had Started JMXConnector on
> > JMXService URL service:jmx:rmi://
> > 192.168.1.209:8686/jndi/rmi://192.168.1.209:8686/jmxrmi
> > Información: Hibernate Validator 4.2.0.Final
> > Información: Grizzly Framework 1.9.46 started in: 49ms - bound to [
> > 0.0.0.0:8080]
> > Información: SEC1002: Security Manager is OFF.
> > Información: SEC1010: Entering Security Startup Service
> > Información: SEC1143: Loading policy provider
> > com.sun.enterprise.security.provider.PolicyWrapper.
> > Información: SEC1115: Realm [admin-realm] of classtype
> > [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully
> > created.
> > Información: SEC1115: Realm [file] of classtype
> > [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully
> > created.
> > Información: SEC1115: Realm [certificate] of classtype
> > [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm]
> > successfully created.
> > Información: SEC1011: Security Service(s) Started Successfully
> > Información: WEB0169: Created HTTP listener [http-listener-1] on
> host/port
> > [
> > 0.0.0.0:8080]
> > Información: WEB0169: Created HTTP listener [http-listener-2] on
> host/port
> > [
> > 0.0.0.0:8181]
> > Información: WEB0169: Created HTTP listener [admin-listener] on
> host/port [
> > 0.0.0.0:4848]
> > Información: WEB0171: Created virtual server [server]
> > Información: WEB0171: Created virtual server [__asadmin]
> > Información: WEB0172: Virtual server [server] loaded default web module
> []
> > Información: WELD-000900 1.1.4 (Final)
> > Grave: Exception while loading the app
> > *Grave: Exception while loading the app :
> >
> >
> org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
> > cannot be cast to javassist.util.proxy.ProxyObject*
> > *java.lang.ClassCastException:
> >
> >
> org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
> > cannot be cast to javassist.util.proxy.ProxyObject*
> > at org.jboss.weld.bean.proxy.ProxyFactory.create(ProxyFactory.java:245)
> > at
> >
> >
> org.jboss.weld.bean.builtin.ee.AbstractEEBean.<init>(AbstractEEBean.java:43)
> > at
> >
> >
> org.jboss.weld.bean.builtin.ee.UserTransactionBean.<init>(UserTransactionBean.java:52)
> > at
> >
> >
> org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:177)
> > at
> >
> org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:336)
> > at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:179)
> > at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:128)
> > at
> >
> org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:277)
> > at
> >
> >
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:460)
> > at
> >
> >
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
> > at
> >
> >
> org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
> > at
> >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
> > at
> >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
> > at
> >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
> > at
> >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
> > at
> >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
> > at
> >
> >
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
> > at
> > com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)
> > at
> com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)
> > at
> >
> com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
> > at
> >
> com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
> > at
> >
> >
> com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
> > at
> >
> >
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
> > at
> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
> > at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
> > at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
> > at
> >
> >
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
> > 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:722)
> >
> > Información: WEB0169: Created HTTP listener [http-listener-2] on
> host/port
> > [
> > 0.0.0.0:8181]
> > Información: Grizzly Framework 1.9.46 started in: 45ms - bound to [
> > 0.0.0.0:8181]
> >
> >
> > -----------------------------------------------------
> >
> > 2012/3/13 Gerhard Petracek <ge...@gmail.com>
> >
> > > hi jose,
> > >
> > > you can use the myfaces-archetype to generate the correct config for
> > > myfaces-core (as well as mojarra) + owb (+ myfaces codi):
> > >
> > > mvn archetype:generate -DarchetypeCatalog=http://myfaces.apache.org
> > > -> e.g. select #11 (afterwards you just have to update the versions in
> > the
> > > generated pom.xml file.)
> > >
> > > if it still doesn't work with the generated example, you can provide
> the
> > > example and we can have a look at it.
> > >
> > > regards,
> > > gerhard
> > >
> > >
> > >
> > > 2012/3/13 José Luis Cetina <ma...@gmail.com>
> > >
> > > > I see, i erase and only put @Named and @ ViewAccessScoped and get the
> > > same
> > > > error, but i try with only @Named and @RequestScoped (java) and still
> > the
> > > > error, i think the problem is the @Named is not injecting my bean,
> not
> > > > MyFaces, because if i use @ManagedBean this works ok, but i dont
> > > understand
> > > > why if i chagen from MyFaces to Mojarra the @Named and
> > @ViewAccessScoped
> > > > works ok!!
> > > >
> > > > :(
> > > >
> > > >
> > > > 2012/3/13 Rafael Pestano <rm...@yahoo.com.br>
> > > >
> > > > > just a question, why do you have @Model,@Named and
> @ViewAccessScoped
> > in
> > > > > the same bean?
> > > > >
> > > > > i think you need @model OR @Named and @ViewAccessScoped
> > > > >
> > > > > or im wrong?
> > > > >
> > > > > Att,
> > > > > Rafael M. Pestano
> > > > > Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do
> > Sul
> > > > > Graduando em Ciência da Computação UFRGS
> > > > > @realpestano
> > > > > http://code.google.com/p/jsf-conventions-framework/
> > > > >
> > > > >
> > > > >
> > > > > ----- Mensagem original -----
> > > > > De: José Luis Cetina <ma...@gmail.com>
> > > > > Para: MyFaces Discussion <us...@myfaces.apache.org>
> > > > > Cc:
> > > > > Enviadas: Terça-feira, 13 de Março de 2012 12:28
> > > > > Assunto: Re: Both MyFaces and the RI are on your classpath. Please
> > make
> > > > > sure to use only one of the two JSF-implementations.
> > > > >
> > > > > I see now im using MyFaces instead of Mojarra, the "ERROR" Message
> > > still
> > > > > there, but the application can deploy. My second problem persist:
> > > > >
> > > > > javax.el.PropertyNotFoundException: Target Unreachable, identifier
> > > > 'myBean'
> > > > > resolved to null
> > > > > viewId=/index.xhtml
> > > > >
> > > > >
> > > >
> > >
> >
> location=C:\Users\user\Documents\NetBeansProjects\testweb\build\web\index.xhtml
> > > > > phaseId=INVOKE_APPLICATION(5)
> > > > >
> > > > >
> > > > > i have the my beans.xml under WEB-INF folder:
> > > > > beans.xml:
> > > > >
> > > > > <?xml version="1.0" encoding="UTF-8"?>
> > > > > <beans 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/beans_1_0.xsd">
> > > > > </beans>
> > > > >
> > > > >
> > > > > And my bean its ok:
> > > > >
> > > > > @Named
> > > > > @ViewAccessScoped
> > > > > @Model
> > > > > @View(Index.class)
> > > > > public class MyBean implements Serializable{
> > > > > }
> > > > >
> > > > > If i change from MyFaces to Mojarra this work ok!!!   :(
> > > > >
> > > > > Somebody know what can i do?
> > > > >
> > > > > *Im using: Netbeans 7.1, Glassfish 3.1.2.1, JDK 7u3, MyFaces 2.1.6,
> > > > > CODI 1.0.4, Windows 7. *
> > > > > *
> > > > > *
> > > > > *Thanks.*
> > > > > *
> > > > > *
> > > > >
> > > >
> > >
> >
> *-------------------------------------------------------------------------*
> > > > >
> > > > >
> > > > > 2012/3/13 Werner Punz <we...@gmail.com>
> > > > >
> > > > > > Mhh this looks like a bug in Glassfish to me, the entries  in the
> > > > > > glassfish-web.xml look correct to me. Problem is generally that
> > > > glassfish
> > > > > > is not to keen on overrides of its system libs in my experience.
> > Even
> > > > > while
> > > > > > myfaces runs, try to replace Weld for instance and you run into a
> > > mess.
> > > > > > Glassfish as good as it is is an all or nothing pack in many
> cases.
> > > > > > But it has been some time since I last touched Glassfish, things
> > > might
> > > > > > have changed.
> > > > > >
> > > > > >
> > > > > >
> > > > > > Werner
> > > > > >
> > > > > >
> > > > > > Am 12.03.12 17:40, schrieb José Luis Cetina:
> > > > > >
> > > > > >> Im triying to start a new project for first time with myfaces, i
> > > > always
> > > > > >> used Mojarra but know i want to change but im having problems at
> > the
> > > > > >> start:
> > > > > >>
> > > > > >> My only requierement is use Glassfish 3.1.2.1.
> > > > > >>
> > > > > >> Hi i have this WARNING:
> > > > > >>
> > > > > >> *Both MyFaces and the RI are on your classpath. Please make sure
> > to
> > > > use
> > > > > >> only one of the two JSF-implementations.*
> > > > > >>
> > > > > >>
> > > > > >> Why this happend if im using only jars from myfaces?? maybe for
> > > > > glassfish
> > > > > >> i
> > > > > >> think, i have these in my *glassfish-web.xml* file, under
> WEB-INF
> > > > > folder:
> > > > > >>
> > > > > >>
> > > > > >> <?xml version="1.0" encoding="UTF-8"?>
> > > > > >> <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD
> > GlassFish
> > > > > >> Application Server 3.1 Servlet 3.0//EN" "
> > > > > >> http://glassfish.org/dtds/**glassfish-web-app_3_0-1.dtd<
> > > > > http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd>
> > > > > >> ">
> > > > > >> <glassfish-web-app error-url="">
> > > > > >>     <!--Para establecer el charset a utf8 y remover el mensaje
> de:
> > > > > >> PWC4011:
> > > > > >> Unable to set request character encoding to UTF-8 from
> context-->
> > > > > >>     <parameter-encoding default-charset="UTF-8"/>
> > > > > >>     *<class-loader delegate="false"/>*
> > > > > >> *<property name="useBundledJsf" value="true"/>*
> > > > > >>
> > > > > >>     <!--<class-loader delegate="true"/>-->
> > > > > >>     <jsp-config>
> > > > > >>         <property name="keepgenerated" value="true">
> > > > > >>             <description>Keep a copy of the generated servlet
> > class'
> > > > > java
> > > > > >> code.</description>
> > > > > >>         </property>
> > > > > >>     </jsp-config>
> > > > > >> </glassfish-web-app>
> > > > > >>
> > > > > >> ----------------  ----------------  ----------------
> > > > > >>
> > > > > >> This is my web.xml
> > > > > >>
> > > > > >> <?xml version="1.0" encoding="UTF-8"?>
> > > > > >> <web-app version="3.0" xmlns="
> http://java.sun.com/**xml/ns/javaee
> > <
> > > > > http://java.sun.com/xml/ns/javaee>"
> > > > > >> xmlns:xsi="
> > > > > >> http://www.w3.org/2001/**XMLSchema-instance<
> > > > > http://www.w3.org/2001/XMLSchema-instance>"
> > > > > >> xsi:schemaLocation="
> > > > > >> http://java.sun.com/xml/ns/**javaee <
> > > > http://java.sun.com/xml/ns/javaee>
> > > > > >> http://java.sun.com/xml/ns/**javaee/web-app_3_0.xsd<
> > > > > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd>
> > > > > >> ">
> > > > > >>     <context-param>
> > > > > >>         <param-name>javax.faces.**PROJECT_STAGE</param-name>
> > > > > >>         <param-value>Development</**param-value>
> > > > > >>     </context-param>
> > > > > >>     <context-param>
> > > > > >>
> > <param-name>com.ocpsoft.**pretty.DEVELOPMENT</param-**name>
> > > > > >>         <param-value>true</param-**value>
> > > > > >>     </context-param>
> > > > > >>     <context-param>
> > > > > >>
> <param-name>javax.faces.STATE_**SAVING_METHOD</param-name>
> > > > > >>         <param-value>server</param-**value>
> > > > > >>     </context-param>
> > > > > >>     <context-param>
> > > > > >>         <param-name>
> > > > > >> javax.faces.DATETIMECONVERTER_**DEFAULT_TIMEZONE_IS_SYSTEM_**
> > > > > >> TIMEZONE</param-name>
> > > > > >>         <param-value>true</param-**value>
> > > > > >>     </context-param>
> > > > > >>      <context-param>
> > > > > >>
> > > > <param-name>javax.faces.**FACELETS_SKIP_COMMENTS</param-**name>
> > > > > >>         <param-value>true</param-**value>
> > > > > >>     </context-param>
> > > > > >>     <context-param>
> > > > > >>
> > > > > >> <param-name>com.sun.faces.**enableMissingResourceLibraryDe**
> > > > > >> tection</param-name>
> > > > > >>         <param-value>true</param-**value>
> > > > > >>     </context-param>
> > > > > >>     <listener>
> > > > > >>         *
> > > > > >> <listener-class>org.apache.**myfaces.webapp.**
> > > > > >> StartupServletContextListener<**/listener-class>
> > > > > >> *
> > > > > >>     </listener>
> > > > > >>     <servlet>
> > > > > >>         <servlet-name>Faces Servlet</servlet-name>
> > > > > >>
> > <servlet-class>javax.faces.**webapp.FacesServlet</servlet-**
> > > > > >> class>
> > > > > >>         <load-on-startup>1</load-on-**startup>
> > > > > >>     </servlet>
> > > > > >>     <servlet-mapping>
> > > > > >>         <servlet-name>Faces Servlet</servlet-name>
> > > > > >>         <url-pattern>/faces/*</url-**pattern>
> > > > > >>     </servlet-mapping>
> > > > > >>     <session-config>
> > > > > >>         <session-timeout>
> > > > > >>             30
> > > > > >>         </session-timeout>
> > > > > >>     </session-config>
> > > > > >>     <welcome-file-list>
> > > > > >>         <welcome-file>faces/index.**xhtml</welcome-file>
> > > > > >>     </welcome-file-list>
> > > > > >> </web-app>
> > > > > >>
> > > > > >> ----------------  ----------------  ----------------
> > > > > >>
> > > > > >> Here are my libraries:
> > > > > >>
> > > > > >> --MYFACES
> > > > > >> myfaces-api-2.1.6.jar
> > > > > >> myfaces-impl-2.1.6.jar
> > > > > >> commons-beanutils-1.8.3.jar
> > > > > >> commons-digester-1.8.jar
> > > > > >> commons-logging-1.8.jar
> > > > > >> commons-codec-1.1.1.jar
> > > > > >> commons-collections-3.2.jar
> > > > > >> --MYFACES CODI
> > > > > >> myfaces-extcdi-alternative-**implementation-module-1.0.4
> > > > > >> myfaces-extcdi-bv1-module-api-**1.0.4
> > > > > >> myfaces-extcdi-bv1-module-**impl-1.0.4
> > > > > >> myfaces-extcdi-core-**alternative-configuration-1.0.**4
> > > > > >> myfaces-extcdi-core-api-1.0.4
> > > > > >> myfaces-extcdi-core-impl-1.0.4
> > > > > >> myfaces-extcdi-jpa1-module-**api-1.0.4
> > > > > >> myfaces-extcdi-jpa1-module-**impl-1.0.4
> > > > > >> myfaces-extcdi-jsf20-module-**api-1.0.4
> > > > > >> myfaces-extcdi-jsf20-module-**impl-1.0.4
> > > > > >> myfaces-extcdi-jsf-**alternative-configuration-1.0.**4
> > > > > >> myfaces-extcdi-message-module-**api-1.0.4
> > > > > >> myfaces-extcdi-message-module-**impl-1.0.4
> > > > > >> myfaces-extcdi-scripting-**module-api-1.0.4
> > > > > >> myfaces-extcdi-scripting-**module-impl-1.0.4
> > > > > >>
> > > > > >>
> > > > > >> I dont know if because the "WARNING" i have other problem:
> > > > > >>
> > > > > >> javax.el.**PropertyNotFoundException: Target Unreachable,
> > identifier
> > > > > >> 'myBean'
> > > > > >> resolved to null,
> > > > > >>
> > > > > >> I have in my beans.xml file under WEB-INF this:
> > > > > >>
> > > > > >> <?xml version="1.0" encoding="UTF-8"?>
> > > > > >> <beans xmlns="http://java.sun.com/**xml/ns/javaee<
> > > > > http://java.sun.com/xml/ns/javaee>
> > > > > >> "
> > > > > >>        xmlns:xsi="http://www.w3.org/**2001/XMLSchema-instance<
> > > > > http://www.w3.org/2001/XMLSchema-instance>
> > > > > >> "
> > > > > >>        xsi:schemaLocation="http://**java.sun.com/xml/ns/javaee<
> > > > > http://java.sun.com/xml/ns/javaee>
> > > > > >> http://java.sun.com/xml/ns/**javaee/beans_1_0.xsd<
> > > > > http://java.sun.com/xml/ns/javaee/beans_1_0.xsd>
> > > > > >> ">
> > > > > >> </beans>
> > > > > >>
> > > > > >> and in my bean:
> > > > > >>
> > > > > >> @Named
> > > > > >> @ViewAccessScoped
> > > > > >> @Model
> > > > > >> @View(Index.class)
> > > > > >> public class MyBean implements Serializable{
> > > > > >>    public void test(){
> > > > > >>      //do nothing
> > > > > >>    }
> > > > > >>
> > > > > >> .....
> > > > > >> }
> > > > > >>
> > > > > >> and in my index.xhtml
> > > > > >>
> > > > > >> <h:commandButton value="CLICK" action="#{myBean.test}"/>
> > > > > >>
> > > > > >> if i click my button the i get this error:
> > > > > >>
> > > > > >> javax.el.**PropertyNotFoundException: Target Unreachable,
> > identifier
> > > > > >> 'myBean'
> > > > > >> resolved to null
> > > > > >> viewId=/index.xhtml
> > > > > >> location=C:\Users\user\**Documents\NetBeansProjects\**
> > > > > >> testweb\build\web\index.xhtml
> > > > > >> phaseId=INVOKE_APPLICATION(5)
> > > > > >> Caused by:
> > > > > >> javax.el.**PropertyNotFoundException - Target Unreachable,
> > > identifier
> > > > > >> 'myBean' resolved to null
> > > > > >> at com.sun.el.parser.AstValue.**getTarget(AstValue.java:153)
> > > > > >>
> > > > > >>
> > > > > >> I dont know if this is for the first problem  (*Both MyFaces and
> > the
> > > > RI
> > > > > >> are
> > > > > >>
> > > > > >> on your classpath. Please make sure to use only one of the two
> > > > > >> JSF-implementations.*)
> > > > > >>
> > > > > >> I read i need to have my beans.xml but i have it!!!
> > > > > >>
> > > > > >> Thanks, and sorry for the english, is not my native language
> > > > > >>
> > > > > >>
> > > > > >> Im using: Netbeans 7.1, *Glassfish 3.1.2.1,* JDK 7u3, MyFaces
> > 2.1.6,
> > > > > CODI
> > > > > >> 1.0.4, Windows 7.
> > > > > >>
> > > > > >>
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > -------------------------------------------------------------------
> > > > > *SCJA. José Luis Cetina*
> > > > > -------------------------------------------------------------------
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > -------------------------------------------------------------------
> > > > *SCJA. José Luis Cetina*
> > > > -------------------------------------------------------------------
> > > >
> > >
> >
> >
> >
> > --
> > -------------------------------------------------------------------
> > *SCJA. José Luis Cetina*
> > -------------------------------------------------------------------
> >
>



-- 
-------------------------------------------------------------------
*SCJA. José Luis Cetina*
-------------------------------------------------------------------

Re: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

Posted by Gerhard Petracek <ge...@gmail.com>.
hi jose,

you can run the generated demos with a servlet container like jetty (see
the comment in the generated pom.xml file), tomcat,... .
by default the myfaces-core profile is activated.

we just need to know if your implementation works with such a generated
application.
esp. because glassfish adds further complexity with the mentioned
classloader-config (e.g. with this config-entries you can't use
myfaces-core and owb in parallel - that's a known classloading issue
of glassfish).

regards,
gerhard



2012/3/13 José Luis Cetina <ma...@gmail.com>

> I downloaded the example number 11 and i run the project without any
> problem, but i can see that the project is using Mojarra "Profile" as JSF
> Impl (the log sayed to me Mojarra...). Then if i change to use MyFaces
> chossing the myfaces profile and adding these lines to my
> g*lassfish-web.xml
> *:
>
> <class-loader delegate="false"/>
> <property name="useBundledJsf" value="true"/>
>
> then i got an *exception *and i CANT run the project:
>
> Here is the *glassfish log:*
> -----------------------------------------------------
>
> Launching GlassFish on Felix platform
> Información: Running GlassFish Version: GlassFish Server Open Source
> Edition 3.1.2 (build 23)
> Información: Grizzly Framework 1.9.46 started in: 78ms - bound to [
> 0.0.0.0:8080]
> Información: Grizzly Framework 1.9.46 started in: 56ms - bound to [
> 0.0.0.0:8181]
> Información: Grizzly Framework 1.9.46 started in: 106ms - bound to [
> 0.0.0.0:3700]
> Información: Grizzly Framework 1.9.46 started in: 120ms - bound to [
> 0.0.0.0:4848]
> Información: Grizzly Framework 1.9.46 started in: 146ms - bound to [
> 0.0.0.0:7676]
> Información: The Admin Console is already installed, but not yet loaded.
> Información: Registered
> org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for
> persistence-type = replicated in BackingStoreFactoryRegistry
> Información: GlassFish Server Open Source Edition 3.1.2 (23) tiempo de
> inicio: Felix (2,441ms), servicios de inicio(1,240ms), total(3,681ms)
> Información: JMX005: JMXStartupService had Started JMXConnector on
> JMXService URL service:jmx:rmi://
> 192.168.1.209:8686/jndi/rmi://192.168.1.209:8686/jmxrmi
> Información: Hibernate Validator 4.2.0.Final
> Información: Grizzly Framework 1.9.46 started in: 49ms - bound to [
> 0.0.0.0:8080]
> Información: SEC1002: Security Manager is OFF.
> Información: SEC1010: Entering Security Startup Service
> Información: SEC1143: Loading policy provider
> com.sun.enterprise.security.provider.PolicyWrapper.
> Información: SEC1115: Realm [admin-realm] of classtype
> [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully
> created.
> Información: SEC1115: Realm [file] of classtype
> [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully
> created.
> Información: SEC1115: Realm [certificate] of classtype
> [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm]
> successfully created.
> Información: SEC1011: Security Service(s) Started Successfully
> Información: WEB0169: Created HTTP listener [http-listener-1] on host/port
> [
> 0.0.0.0:8080]
> Información: WEB0169: Created HTTP listener [http-listener-2] on host/port
> [
> 0.0.0.0:8181]
> Información: WEB0169: Created HTTP listener [admin-listener] on host/port [
> 0.0.0.0:4848]
> Información: WEB0171: Created virtual server [server]
> Información: WEB0171: Created virtual server [__asadmin]
> Información: WEB0172: Virtual server [server] loaded default web module []
> Información: WELD-000900 1.1.4 (Final)
> Grave: Exception while loading the app
> *Grave: Exception while loading the app :
>
> org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
> cannot be cast to javassist.util.proxy.ProxyObject*
> *java.lang.ClassCastException:
>
> org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
> cannot be cast to javassist.util.proxy.ProxyObject*
> at org.jboss.weld.bean.proxy.ProxyFactory.create(ProxyFactory.java:245)
> at
>
> org.jboss.weld.bean.builtin.ee.AbstractEEBean.<init>(AbstractEEBean.java:43)
> at
>
> org.jboss.weld.bean.builtin.ee.UserTransactionBean.<init>(UserTransactionBean.java:52)
> at
>
> org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:177)
> at
> org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:336)
> at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:179)
> at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:128)
> at
> org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:277)
> at
>
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:460)
> at
>
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
> at
>
> org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
> at
>
> com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
> at
>
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
> at
>
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
> at
>
> com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
> at
>
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
> at
>
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
> at
> com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)
> at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)
> at
> com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
> at
> com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
> at
>
> com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
> at
>
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
> at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
> at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
> at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
> at
>
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
> 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:722)
>
> Información: WEB0169: Created HTTP listener [http-listener-2] on host/port
> [
> 0.0.0.0:8181]
> Información: Grizzly Framework 1.9.46 started in: 45ms - bound to [
> 0.0.0.0:8181]
>
>
> -----------------------------------------------------
>
> 2012/3/13 Gerhard Petracek <ge...@gmail.com>
>
> > hi jose,
> >
> > you can use the myfaces-archetype to generate the correct config for
> > myfaces-core (as well as mojarra) + owb (+ myfaces codi):
> >
> > mvn archetype:generate -DarchetypeCatalog=http://myfaces.apache.org
> > -> e.g. select #11 (afterwards you just have to update the versions in
> the
> > generated pom.xml file.)
> >
> > if it still doesn't work with the generated example, you can provide the
> > example and we can have a look at it.
> >
> > regards,
> > gerhard
> >
> >
> >
> > 2012/3/13 José Luis Cetina <ma...@gmail.com>
> >
> > > I see, i erase and only put @Named and @ ViewAccessScoped and get the
> > same
> > > error, but i try with only @Named and @RequestScoped (java) and still
> the
> > > error, i think the problem is the @Named is not injecting my bean, not
> > > MyFaces, because if i use @ManagedBean this works ok, but i dont
> > understand
> > > why if i chagen from MyFaces to Mojarra the @Named and
> @ViewAccessScoped
> > > works ok!!
> > >
> > > :(
> > >
> > >
> > > 2012/3/13 Rafael Pestano <rm...@yahoo.com.br>
> > >
> > > > just a question, why do you have @Model,@Named and @ViewAccessScoped
> in
> > > > the same bean?
> > > >
> > > > i think you need @model OR @Named and @ViewAccessScoped
> > > >
> > > > or im wrong?
> > > >
> > > > Att,
> > > > Rafael M. Pestano
> > > > Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do
> Sul
> > > > Graduando em Ciência da Computação UFRGS
> > > > @realpestano
> > > > http://code.google.com/p/jsf-conventions-framework/
> > > >
> > > >
> > > >
> > > > ----- Mensagem original -----
> > > > De: José Luis Cetina <ma...@gmail.com>
> > > > Para: MyFaces Discussion <us...@myfaces.apache.org>
> > > > Cc:
> > > > Enviadas: Terça-feira, 13 de Março de 2012 12:28
> > > > Assunto: Re: Both MyFaces and the RI are on your classpath. Please
> make
> > > > sure to use only one of the two JSF-implementations.
> > > >
> > > > I see now im using MyFaces instead of Mojarra, the "ERROR" Message
> > still
> > > > there, but the application can deploy. My second problem persist:
> > > >
> > > > javax.el.PropertyNotFoundException: Target Unreachable, identifier
> > > 'myBean'
> > > > resolved to null
> > > > viewId=/index.xhtml
> > > >
> > > >
> > >
> >
> location=C:\Users\user\Documents\NetBeansProjects\testweb\build\web\index.xhtml
> > > > phaseId=INVOKE_APPLICATION(5)
> > > >
> > > >
> > > > i have the my beans.xml under WEB-INF folder:
> > > > beans.xml:
> > > >
> > > > <?xml version="1.0" encoding="UTF-8"?>
> > > > <beans 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/beans_1_0.xsd">
> > > > </beans>
> > > >
> > > >
> > > > And my bean its ok:
> > > >
> > > > @Named
> > > > @ViewAccessScoped
> > > > @Model
> > > > @View(Index.class)
> > > > public class MyBean implements Serializable{
> > > > }
> > > >
> > > > If i change from MyFaces to Mojarra this work ok!!!   :(
> > > >
> > > > Somebody know what can i do?
> > > >
> > > > *Im using: Netbeans 7.1, Glassfish 3.1.2.1, JDK 7u3, MyFaces 2.1.6,
> > > > CODI 1.0.4, Windows 7. *
> > > > *
> > > > *
> > > > *Thanks.*
> > > > *
> > > > *
> > > >
> > >
> >
> *-------------------------------------------------------------------------*
> > > >
> > > >
> > > > 2012/3/13 Werner Punz <we...@gmail.com>
> > > >
> > > > > Mhh this looks like a bug in Glassfish to me, the entries  in the
> > > > > glassfish-web.xml look correct to me. Problem is generally that
> > > glassfish
> > > > > is not to keen on overrides of its system libs in my experience.
> Even
> > > > while
> > > > > myfaces runs, try to replace Weld for instance and you run into a
> > mess.
> > > > > Glassfish as good as it is is an all or nothing pack in many cases.
> > > > > But it has been some time since I last touched Glassfish, things
> > might
> > > > > have changed.
> > > > >
> > > > >
> > > > >
> > > > > Werner
> > > > >
> > > > >
> > > > > Am 12.03.12 17:40, schrieb José Luis Cetina:
> > > > >
> > > > >> Im triying to start a new project for first time with myfaces, i
> > > always
> > > > >> used Mojarra but know i want to change but im having problems at
> the
> > > > >> start:
> > > > >>
> > > > >> My only requierement is use Glassfish 3.1.2.1.
> > > > >>
> > > > >> Hi i have this WARNING:
> > > > >>
> > > > >> *Both MyFaces and the RI are on your classpath. Please make sure
> to
> > > use
> > > > >> only one of the two JSF-implementations.*
> > > > >>
> > > > >>
> > > > >> Why this happend if im using only jars from myfaces?? maybe for
> > > > glassfish
> > > > >> i
> > > > >> think, i have these in my *glassfish-web.xml* file, under WEB-INF
> > > > folder:
> > > > >>
> > > > >>
> > > > >> <?xml version="1.0" encoding="UTF-8"?>
> > > > >> <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD
> GlassFish
> > > > >> Application Server 3.1 Servlet 3.0//EN" "
> > > > >> http://glassfish.org/dtds/**glassfish-web-app_3_0-1.dtd<
> > > > http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd>
> > > > >> ">
> > > > >> <glassfish-web-app error-url="">
> > > > >>     <!--Para establecer el charset a utf8 y remover el mensaje de:
> > > > >> PWC4011:
> > > > >> Unable to set request character encoding to UTF-8 from context-->
> > > > >>     <parameter-encoding default-charset="UTF-8"/>
> > > > >>     *<class-loader delegate="false"/>*
> > > > >> *<property name="useBundledJsf" value="true"/>*
> > > > >>
> > > > >>     <!--<class-loader delegate="true"/>-->
> > > > >>     <jsp-config>
> > > > >>         <property name="keepgenerated" value="true">
> > > > >>             <description>Keep a copy of the generated servlet
> class'
> > > > java
> > > > >> code.</description>
> > > > >>         </property>
> > > > >>     </jsp-config>
> > > > >> </glassfish-web-app>
> > > > >>
> > > > >> ----------------  ----------------  ----------------
> > > > >>
> > > > >> This is my web.xml
> > > > >>
> > > > >> <?xml version="1.0" encoding="UTF-8"?>
> > > > >> <web-app version="3.0" xmlns="http://java.sun.com/**xml/ns/javaee
> <
> > > > http://java.sun.com/xml/ns/javaee>"
> > > > >> xmlns:xsi="
> > > > >> http://www.w3.org/2001/**XMLSchema-instance<
> > > > http://www.w3.org/2001/XMLSchema-instance>"
> > > > >> xsi:schemaLocation="
> > > > >> http://java.sun.com/xml/ns/**javaee <
> > > http://java.sun.com/xml/ns/javaee>
> > > > >> http://java.sun.com/xml/ns/**javaee/web-app_3_0.xsd<
> > > > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd>
> > > > >> ">
> > > > >>     <context-param>
> > > > >>         <param-name>javax.faces.**PROJECT_STAGE</param-name>
> > > > >>         <param-value>Development</**param-value>
> > > > >>     </context-param>
> > > > >>     <context-param>
> > > > >>
> <param-name>com.ocpsoft.**pretty.DEVELOPMENT</param-**name>
> > > > >>         <param-value>true</param-**value>
> > > > >>     </context-param>
> > > > >>     <context-param>
> > > > >>         <param-name>javax.faces.STATE_**SAVING_METHOD</param-name>
> > > > >>         <param-value>server</param-**value>
> > > > >>     </context-param>
> > > > >>     <context-param>
> > > > >>         <param-name>
> > > > >> javax.faces.DATETIMECONVERTER_**DEFAULT_TIMEZONE_IS_SYSTEM_**
> > > > >> TIMEZONE</param-name>
> > > > >>         <param-value>true</param-**value>
> > > > >>     </context-param>
> > > > >>      <context-param>
> > > > >>
> > > <param-name>javax.faces.**FACELETS_SKIP_COMMENTS</param-**name>
> > > > >>         <param-value>true</param-**value>
> > > > >>     </context-param>
> > > > >>     <context-param>
> > > > >>
> > > > >> <param-name>com.sun.faces.**enableMissingResourceLibraryDe**
> > > > >> tection</param-name>
> > > > >>         <param-value>true</param-**value>
> > > > >>     </context-param>
> > > > >>     <listener>
> > > > >>         *
> > > > >> <listener-class>org.apache.**myfaces.webapp.**
> > > > >> StartupServletContextListener<**/listener-class>
> > > > >> *
> > > > >>     </listener>
> > > > >>     <servlet>
> > > > >>         <servlet-name>Faces Servlet</servlet-name>
> > > > >>
> <servlet-class>javax.faces.**webapp.FacesServlet</servlet-**
> > > > >> class>
> > > > >>         <load-on-startup>1</load-on-**startup>
> > > > >>     </servlet>
> > > > >>     <servlet-mapping>
> > > > >>         <servlet-name>Faces Servlet</servlet-name>
> > > > >>         <url-pattern>/faces/*</url-**pattern>
> > > > >>     </servlet-mapping>
> > > > >>     <session-config>
> > > > >>         <session-timeout>
> > > > >>             30
> > > > >>         </session-timeout>
> > > > >>     </session-config>
> > > > >>     <welcome-file-list>
> > > > >>         <welcome-file>faces/index.**xhtml</welcome-file>
> > > > >>     </welcome-file-list>
> > > > >> </web-app>
> > > > >>
> > > > >> ----------------  ----------------  ----------------
> > > > >>
> > > > >> Here are my libraries:
> > > > >>
> > > > >> --MYFACES
> > > > >> myfaces-api-2.1.6.jar
> > > > >> myfaces-impl-2.1.6.jar
> > > > >> commons-beanutils-1.8.3.jar
> > > > >> commons-digester-1.8.jar
> > > > >> commons-logging-1.8.jar
> > > > >> commons-codec-1.1.1.jar
> > > > >> commons-collections-3.2.jar
> > > > >> --MYFACES CODI
> > > > >> myfaces-extcdi-alternative-**implementation-module-1.0.4
> > > > >> myfaces-extcdi-bv1-module-api-**1.0.4
> > > > >> myfaces-extcdi-bv1-module-**impl-1.0.4
> > > > >> myfaces-extcdi-core-**alternative-configuration-1.0.**4
> > > > >> myfaces-extcdi-core-api-1.0.4
> > > > >> myfaces-extcdi-core-impl-1.0.4
> > > > >> myfaces-extcdi-jpa1-module-**api-1.0.4
> > > > >> myfaces-extcdi-jpa1-module-**impl-1.0.4
> > > > >> myfaces-extcdi-jsf20-module-**api-1.0.4
> > > > >> myfaces-extcdi-jsf20-module-**impl-1.0.4
> > > > >> myfaces-extcdi-jsf-**alternative-configuration-1.0.**4
> > > > >> myfaces-extcdi-message-module-**api-1.0.4
> > > > >> myfaces-extcdi-message-module-**impl-1.0.4
> > > > >> myfaces-extcdi-scripting-**module-api-1.0.4
> > > > >> myfaces-extcdi-scripting-**module-impl-1.0.4
> > > > >>
> > > > >>
> > > > >> I dont know if because the "WARNING" i have other problem:
> > > > >>
> > > > >> javax.el.**PropertyNotFoundException: Target Unreachable,
> identifier
> > > > >> 'myBean'
> > > > >> resolved to null,
> > > > >>
> > > > >> I have in my beans.xml file under WEB-INF this:
> > > > >>
> > > > >> <?xml version="1.0" encoding="UTF-8"?>
> > > > >> <beans xmlns="http://java.sun.com/**xml/ns/javaee<
> > > > http://java.sun.com/xml/ns/javaee>
> > > > >> "
> > > > >>        xmlns:xsi="http://www.w3.org/**2001/XMLSchema-instance<
> > > > http://www.w3.org/2001/XMLSchema-instance>
> > > > >> "
> > > > >>        xsi:schemaLocation="http://**java.sun.com/xml/ns/javaee<
> > > > http://java.sun.com/xml/ns/javaee>
> > > > >> http://java.sun.com/xml/ns/**javaee/beans_1_0.xsd<
> > > > http://java.sun.com/xml/ns/javaee/beans_1_0.xsd>
> > > > >> ">
> > > > >> </beans>
> > > > >>
> > > > >> and in my bean:
> > > > >>
> > > > >> @Named
> > > > >> @ViewAccessScoped
> > > > >> @Model
> > > > >> @View(Index.class)
> > > > >> public class MyBean implements Serializable{
> > > > >>    public void test(){
> > > > >>      //do nothing
> > > > >>    }
> > > > >>
> > > > >> .....
> > > > >> }
> > > > >>
> > > > >> and in my index.xhtml
> > > > >>
> > > > >> <h:commandButton value="CLICK" action="#{myBean.test}"/>
> > > > >>
> > > > >> if i click my button the i get this error:
> > > > >>
> > > > >> javax.el.**PropertyNotFoundException: Target Unreachable,
> identifier
> > > > >> 'myBean'
> > > > >> resolved to null
> > > > >> viewId=/index.xhtml
> > > > >> location=C:\Users\user\**Documents\NetBeansProjects\**
> > > > >> testweb\build\web\index.xhtml
> > > > >> phaseId=INVOKE_APPLICATION(5)
> > > > >> Caused by:
> > > > >> javax.el.**PropertyNotFoundException - Target Unreachable,
> > identifier
> > > > >> 'myBean' resolved to null
> > > > >> at com.sun.el.parser.AstValue.**getTarget(AstValue.java:153)
> > > > >>
> > > > >>
> > > > >> I dont know if this is for the first problem  (*Both MyFaces and
> the
> > > RI
> > > > >> are
> > > > >>
> > > > >> on your classpath. Please make sure to use only one of the two
> > > > >> JSF-implementations.*)
> > > > >>
> > > > >> I read i need to have my beans.xml but i have it!!!
> > > > >>
> > > > >> Thanks, and sorry for the english, is not my native language
> > > > >>
> > > > >>
> > > > >> Im using: Netbeans 7.1, *Glassfish 3.1.2.1,* JDK 7u3, MyFaces
> 2.1.6,
> > > > CODI
> > > > >> 1.0.4, Windows 7.
> > > > >>
> > > > >>
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > -------------------------------------------------------------------
> > > > *SCJA. José Luis Cetina*
> > > > -------------------------------------------------------------------
> > > >
> > > >
> > >
> > >
> > > --
> > > -------------------------------------------------------------------
> > > *SCJA. José Luis Cetina*
> > > -------------------------------------------------------------------
> > >
> >
>
>
>
> --
> -------------------------------------------------------------------
> *SCJA. José Luis Cetina*
> -------------------------------------------------------------------
>

Re: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

Posted by José Luis Cetina <ma...@gmail.com>.
I downloaded the example number 11 and i run the project without any
problem, but i can see that the project is using Mojarra "Profile" as JSF
Impl (the log sayed to me Mojarra...). Then if i change to use MyFaces
chossing the myfaces profile and adding these lines to my g*lassfish-web.xml
*:

<class-loader delegate="false"/>
<property name="useBundledJsf" value="true"/>

then i got an *exception *and i CANT run the project:

Here is the *glassfish log:*
-----------------------------------------------------

Launching GlassFish on Felix platform
Información: Running GlassFish Version: GlassFish Server Open Source
Edition 3.1.2 (build 23)
Información: Grizzly Framework 1.9.46 started in: 78ms - bound to [
0.0.0.0:8080]
Información: Grizzly Framework 1.9.46 started in: 56ms - bound to [
0.0.0.0:8181]
Información: Grizzly Framework 1.9.46 started in: 106ms - bound to [
0.0.0.0:3700]
Información: Grizzly Framework 1.9.46 started in: 120ms - bound to [
0.0.0.0:4848]
Información: Grizzly Framework 1.9.46 started in: 146ms - bound to [
0.0.0.0:7676]
Información: The Admin Console is already installed, but not yet loaded.
Información: Registered
org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for
persistence-type = replicated in BackingStoreFactoryRegistry
Información: GlassFish Server Open Source Edition 3.1.2 (23) tiempo de
inicio: Felix (2,441ms), servicios de inicio(1,240ms), total(3,681ms)
Información: JMX005: JMXStartupService had Started JMXConnector on
JMXService URL service:jmx:rmi://
192.168.1.209:8686/jndi/rmi://192.168.1.209:8686/jmxrmi
Información: Hibernate Validator 4.2.0.Final
Información: Grizzly Framework 1.9.46 started in: 49ms - bound to [
0.0.0.0:8080]
Información: SEC1002: Security Manager is OFF.
Información: SEC1010: Entering Security Startup Service
Información: SEC1143: Loading policy provider
com.sun.enterprise.security.provider.PolicyWrapper.
Información: SEC1115: Realm [admin-realm] of classtype
[com.sun.enterprise.security.auth.realm.file.FileRealm] successfully
created.
Información: SEC1115: Realm [file] of classtype
[com.sun.enterprise.security.auth.realm.file.FileRealm] successfully
created.
Información: SEC1115: Realm [certificate] of classtype
[com.sun.enterprise.security.auth.realm.certificate.CertificateRealm]
successfully created.
Información: SEC1011: Security Service(s) Started Successfully
Información: WEB0169: Created HTTP listener [http-listener-1] on host/port [
0.0.0.0:8080]
Información: WEB0169: Created HTTP listener [http-listener-2] on host/port [
0.0.0.0:8181]
Información: WEB0169: Created HTTP listener [admin-listener] on host/port [
0.0.0.0:4848]
Información: WEB0171: Created virtual server [server]
Información: WEB0171: Created virtual server [__asadmin]
Información: WEB0172: Virtual server [server] loaded default web module []
Información: WELD-000900 1.1.4 (Final)
Grave: Exception while loading the app
*Grave: Exception while loading the app :
org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
cannot be cast to javassist.util.proxy.ProxyObject*
*java.lang.ClassCastException:
org.jboss.weldx.transaction.UserTransaction$1513261869$Proxy$_$$_Weld$Proxy$
cannot be cast to javassist.util.proxy.ProxyObject*
at org.jboss.weld.bean.proxy.ProxyFactory.create(ProxyFactory.java:245)
at
org.jboss.weld.bean.builtin.ee.AbstractEEBean.<init>(AbstractEEBean.java:43)
at
org.jboss.weld.bean.builtin.ee.UserTransactionBean.<init>(UserTransactionBean.java:52)
at
org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:177)
at
org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:336)
at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:179)
at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:128)
at
org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:277)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:460)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
at
org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)
at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)
at
com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
at
com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
at
com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
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:722)

Información: WEB0169: Created HTTP listener [http-listener-2] on host/port [
0.0.0.0:8181]
Información: Grizzly Framework 1.9.46 started in: 45ms - bound to [
0.0.0.0:8181]


-----------------------------------------------------

2012/3/13 Gerhard Petracek <ge...@gmail.com>

> hi jose,
>
> you can use the myfaces-archetype to generate the correct config for
> myfaces-core (as well as mojarra) + owb (+ myfaces codi):
>
> mvn archetype:generate -DarchetypeCatalog=http://myfaces.apache.org
> -> e.g. select #11 (afterwards you just have to update the versions in the
> generated pom.xml file.)
>
> if it still doesn't work with the generated example, you can provide the
> example and we can have a look at it.
>
> regards,
> gerhard
>
>
>
> 2012/3/13 José Luis Cetina <ma...@gmail.com>
>
> > I see, i erase and only put @Named and @ ViewAccessScoped and get the
> same
> > error, but i try with only @Named and @RequestScoped (java) and still the
> > error, i think the problem is the @Named is not injecting my bean, not
> > MyFaces, because if i use @ManagedBean this works ok, but i dont
> understand
> > why if i chagen from MyFaces to Mojarra the @Named and @ViewAccessScoped
> > works ok!!
> >
> > :(
> >
> >
> > 2012/3/13 Rafael Pestano <rm...@yahoo.com.br>
> >
> > > just a question, why do you have @Model,@Named and @ViewAccessScoped in
> > > the same bean?
> > >
> > > i think you need @model OR @Named and @ViewAccessScoped
> > >
> > > or im wrong?
> > >
> > > Att,
> > > Rafael M. Pestano
> > > Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
> > > Graduando em Ciência da Computação UFRGS
> > > @realpestano
> > > http://code.google.com/p/jsf-conventions-framework/
> > >
> > >
> > >
> > > ----- Mensagem original -----
> > > De: José Luis Cetina <ma...@gmail.com>
> > > Para: MyFaces Discussion <us...@myfaces.apache.org>
> > > Cc:
> > > Enviadas: Terça-feira, 13 de Março de 2012 12:28
> > > Assunto: Re: Both MyFaces and the RI are on your classpath. Please make
> > > sure to use only one of the two JSF-implementations.
> > >
> > > I see now im using MyFaces instead of Mojarra, the "ERROR" Message
> still
> > > there, but the application can deploy. My second problem persist:
> > >
> > > javax.el.PropertyNotFoundException: Target Unreachable, identifier
> > 'myBean'
> > > resolved to null
> > > viewId=/index.xhtml
> > >
> > >
> >
> location=C:\Users\user\Documents\NetBeansProjects\testweb\build\web\index.xhtml
> > > phaseId=INVOKE_APPLICATION(5)
> > >
> > >
> > > i have the my beans.xml under WEB-INF folder:
> > > beans.xml:
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <beans 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/beans_1_0.xsd">
> > > </beans>
> > >
> > >
> > > And my bean its ok:
> > >
> > > @Named
> > > @ViewAccessScoped
> > > @Model
> > > @View(Index.class)
> > > public class MyBean implements Serializable{
> > > }
> > >
> > > If i change from MyFaces to Mojarra this work ok!!!   :(
> > >
> > > Somebody know what can i do?
> > >
> > > *Im using: Netbeans 7.1, Glassfish 3.1.2.1, JDK 7u3, MyFaces 2.1.6,
> > > CODI 1.0.4, Windows 7. *
> > > *
> > > *
> > > *Thanks.*
> > > *
> > > *
> > >
> >
> *-------------------------------------------------------------------------*
> > >
> > >
> > > 2012/3/13 Werner Punz <we...@gmail.com>
> > >
> > > > Mhh this looks like a bug in Glassfish to me, the entries  in the
> > > > glassfish-web.xml look correct to me. Problem is generally that
> > glassfish
> > > > is not to keen on overrides of its system libs in my experience. Even
> > > while
> > > > myfaces runs, try to replace Weld for instance and you run into a
> mess.
> > > > Glassfish as good as it is is an all or nothing pack in many cases.
> > > > But it has been some time since I last touched Glassfish, things
> might
> > > > have changed.
> > > >
> > > >
> > > >
> > > > Werner
> > > >
> > > >
> > > > Am 12.03.12 17:40, schrieb José Luis Cetina:
> > > >
> > > >> Im triying to start a new project for first time with myfaces, i
> > always
> > > >> used Mojarra but know i want to change but im having problems at the
> > > >> start:
> > > >>
> > > >> My only requierement is use Glassfish 3.1.2.1.
> > > >>
> > > >> Hi i have this WARNING:
> > > >>
> > > >> *Both MyFaces and the RI are on your classpath. Please make sure to
> > use
> > > >> only one of the two JSF-implementations.*
> > > >>
> > > >>
> > > >> Why this happend if im using only jars from myfaces?? maybe for
> > > glassfish
> > > >> i
> > > >> think, i have these in my *glassfish-web.xml* file, under WEB-INF
> > > folder:
> > > >>
> > > >>
> > > >> <?xml version="1.0" encoding="UTF-8"?>
> > > >> <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish
> > > >> Application Server 3.1 Servlet 3.0//EN" "
> > > >> http://glassfish.org/dtds/**glassfish-web-app_3_0-1.dtd<
> > > http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd>
> > > >> ">
> > > >> <glassfish-web-app error-url="">
> > > >>     <!--Para establecer el charset a utf8 y remover el mensaje de:
> > > >> PWC4011:
> > > >> Unable to set request character encoding to UTF-8 from context-->
> > > >>     <parameter-encoding default-charset="UTF-8"/>
> > > >>     *<class-loader delegate="false"/>*
> > > >> *<property name="useBundledJsf" value="true"/>*
> > > >>
> > > >>     <!--<class-loader delegate="true"/>-->
> > > >>     <jsp-config>
> > > >>         <property name="keepgenerated" value="true">
> > > >>             <description>Keep a copy of the generated servlet class'
> > > java
> > > >> code.</description>
> > > >>         </property>
> > > >>     </jsp-config>
> > > >> </glassfish-web-app>
> > > >>
> > > >> ----------------  ----------------  ----------------
> > > >>
> > > >> This is my web.xml
> > > >>
> > > >> <?xml version="1.0" encoding="UTF-8"?>
> > > >> <web-app version="3.0" xmlns="http://java.sun.com/**xml/ns/javaee<
> > > http://java.sun.com/xml/ns/javaee>"
> > > >> xmlns:xsi="
> > > >> http://www.w3.org/2001/**XMLSchema-instance<
> > > http://www.w3.org/2001/XMLSchema-instance>"
> > > >> xsi:schemaLocation="
> > > >> http://java.sun.com/xml/ns/**javaee <
> > http://java.sun.com/xml/ns/javaee>
> > > >> http://java.sun.com/xml/ns/**javaee/web-app_3_0.xsd<
> > > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd>
> > > >> ">
> > > >>     <context-param>
> > > >>         <param-name>javax.faces.**PROJECT_STAGE</param-name>
> > > >>         <param-value>Development</**param-value>
> > > >>     </context-param>
> > > >>     <context-param>
> > > >>         <param-name>com.ocpsoft.**pretty.DEVELOPMENT</param-**name>
> > > >>         <param-value>true</param-**value>
> > > >>     </context-param>
> > > >>     <context-param>
> > > >>         <param-name>javax.faces.STATE_**SAVING_METHOD</param-name>
> > > >>         <param-value>server</param-**value>
> > > >>     </context-param>
> > > >>     <context-param>
> > > >>         <param-name>
> > > >> javax.faces.DATETIMECONVERTER_**DEFAULT_TIMEZONE_IS_SYSTEM_**
> > > >> TIMEZONE</param-name>
> > > >>         <param-value>true</param-**value>
> > > >>     </context-param>
> > > >>      <context-param>
> > > >>
> > <param-name>javax.faces.**FACELETS_SKIP_COMMENTS</param-**name>
> > > >>         <param-value>true</param-**value>
> > > >>     </context-param>
> > > >>     <context-param>
> > > >>
> > > >> <param-name>com.sun.faces.**enableMissingResourceLibraryDe**
> > > >> tection</param-name>
> > > >>         <param-value>true</param-**value>
> > > >>     </context-param>
> > > >>     <listener>
> > > >>         *
> > > >> <listener-class>org.apache.**myfaces.webapp.**
> > > >> StartupServletContextListener<**/listener-class>
> > > >> *
> > > >>     </listener>
> > > >>     <servlet>
> > > >>         <servlet-name>Faces Servlet</servlet-name>
> > > >>         <servlet-class>javax.faces.**webapp.FacesServlet</servlet-**
> > > >> class>
> > > >>         <load-on-startup>1</load-on-**startup>
> > > >>     </servlet>
> > > >>     <servlet-mapping>
> > > >>         <servlet-name>Faces Servlet</servlet-name>
> > > >>         <url-pattern>/faces/*</url-**pattern>
> > > >>     </servlet-mapping>
> > > >>     <session-config>
> > > >>         <session-timeout>
> > > >>             30
> > > >>         </session-timeout>
> > > >>     </session-config>
> > > >>     <welcome-file-list>
> > > >>         <welcome-file>faces/index.**xhtml</welcome-file>
> > > >>     </welcome-file-list>
> > > >> </web-app>
> > > >>
> > > >> ----------------  ----------------  ----------------
> > > >>
> > > >> Here are my libraries:
> > > >>
> > > >> --MYFACES
> > > >> myfaces-api-2.1.6.jar
> > > >> myfaces-impl-2.1.6.jar
> > > >> commons-beanutils-1.8.3.jar
> > > >> commons-digester-1.8.jar
> > > >> commons-logging-1.8.jar
> > > >> commons-codec-1.1.1.jar
> > > >> commons-collections-3.2.jar
> > > >> --MYFACES CODI
> > > >> myfaces-extcdi-alternative-**implementation-module-1.0.4
> > > >> myfaces-extcdi-bv1-module-api-**1.0.4
> > > >> myfaces-extcdi-bv1-module-**impl-1.0.4
> > > >> myfaces-extcdi-core-**alternative-configuration-1.0.**4
> > > >> myfaces-extcdi-core-api-1.0.4
> > > >> myfaces-extcdi-core-impl-1.0.4
> > > >> myfaces-extcdi-jpa1-module-**api-1.0.4
> > > >> myfaces-extcdi-jpa1-module-**impl-1.0.4
> > > >> myfaces-extcdi-jsf20-module-**api-1.0.4
> > > >> myfaces-extcdi-jsf20-module-**impl-1.0.4
> > > >> myfaces-extcdi-jsf-**alternative-configuration-1.0.**4
> > > >> myfaces-extcdi-message-module-**api-1.0.4
> > > >> myfaces-extcdi-message-module-**impl-1.0.4
> > > >> myfaces-extcdi-scripting-**module-api-1.0.4
> > > >> myfaces-extcdi-scripting-**module-impl-1.0.4
> > > >>
> > > >>
> > > >> I dont know if because the "WARNING" i have other problem:
> > > >>
> > > >> javax.el.**PropertyNotFoundException: Target Unreachable, identifier
> > > >> 'myBean'
> > > >> resolved to null,
> > > >>
> > > >> I have in my beans.xml file under WEB-INF this:
> > > >>
> > > >> <?xml version="1.0" encoding="UTF-8"?>
> > > >> <beans xmlns="http://java.sun.com/**xml/ns/javaee<
> > > http://java.sun.com/xml/ns/javaee>
> > > >> "
> > > >>        xmlns:xsi="http://www.w3.org/**2001/XMLSchema-instance<
> > > http://www.w3.org/2001/XMLSchema-instance>
> > > >> "
> > > >>        xsi:schemaLocation="http://**java.sun.com/xml/ns/javaee<
> > > http://java.sun.com/xml/ns/javaee>
> > > >> http://java.sun.com/xml/ns/**javaee/beans_1_0.xsd<
> > > http://java.sun.com/xml/ns/javaee/beans_1_0.xsd>
> > > >> ">
> > > >> </beans>
> > > >>
> > > >> and in my bean:
> > > >>
> > > >> @Named
> > > >> @ViewAccessScoped
> > > >> @Model
> > > >> @View(Index.class)
> > > >> public class MyBean implements Serializable{
> > > >>    public void test(){
> > > >>      //do nothing
> > > >>    }
> > > >>
> > > >> .....
> > > >> }
> > > >>
> > > >> and in my index.xhtml
> > > >>
> > > >> <h:commandButton value="CLICK" action="#{myBean.test}"/>
> > > >>
> > > >> if i click my button the i get this error:
> > > >>
> > > >> javax.el.**PropertyNotFoundException: Target Unreachable, identifier
> > > >> 'myBean'
> > > >> resolved to null
> > > >> viewId=/index.xhtml
> > > >> location=C:\Users\user\**Documents\NetBeansProjects\**
> > > >> testweb\build\web\index.xhtml
> > > >> phaseId=INVOKE_APPLICATION(5)
> > > >> Caused by:
> > > >> javax.el.**PropertyNotFoundException - Target Unreachable,
> identifier
> > > >> 'myBean' resolved to null
> > > >> at com.sun.el.parser.AstValue.**getTarget(AstValue.java:153)
> > > >>
> > > >>
> > > >> I dont know if this is for the first problem  (*Both MyFaces and the
> > RI
> > > >> are
> > > >>
> > > >> on your classpath. Please make sure to use only one of the two
> > > >> JSF-implementations.*)
> > > >>
> > > >> I read i need to have my beans.xml but i have it!!!
> > > >>
> > > >> Thanks, and sorry for the english, is not my native language
> > > >>
> > > >>
> > > >> Im using: Netbeans 7.1, *Glassfish 3.1.2.1,* JDK 7u3, MyFaces 2.1.6,
> > > CODI
> > > >> 1.0.4, Windows 7.
> > > >>
> > > >>
> > > >
> > > >
> > >
> > >
> > > --
> > > -------------------------------------------------------------------
> > > *SCJA. José Luis Cetina*
> > > -------------------------------------------------------------------
> > >
> > >
> >
> >
> > --
> > -------------------------------------------------------------------
> > *SCJA. José Luis Cetina*
> > -------------------------------------------------------------------
> >
>



-- 
-------------------------------------------------------------------
*SCJA. José Luis Cetina*
-------------------------------------------------------------------

Re: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

Posted by Gerhard Petracek <ge...@gmail.com>.
hi jose,

you can use the myfaces-archetype to generate the correct config for
myfaces-core (as well as mojarra) + owb (+ myfaces codi):

mvn archetype:generate -DarchetypeCatalog=http://myfaces.apache.org
-> e.g. select #11 (afterwards you just have to update the versions in the
generated pom.xml file.)

if it still doesn't work with the generated example, you can provide the
example and we can have a look at it.

regards,
gerhard



2012/3/13 José Luis Cetina <ma...@gmail.com>

> I see, i erase and only put @Named and @ ViewAccessScoped and get the same
> error, but i try with only @Named and @RequestScoped (java) and still the
> error, i think the problem is the @Named is not injecting my bean, not
> MyFaces, because if i use @ManagedBean this works ok, but i dont understand
> why if i chagen from MyFaces to Mojarra the @Named and @ViewAccessScoped
> works ok!!
>
> :(
>
>
> 2012/3/13 Rafael Pestano <rm...@yahoo.com.br>
>
> > just a question, why do you have @Model,@Named and @ViewAccessScoped in
> > the same bean?
> >
> > i think you need @model OR @Named and @ViewAccessScoped
> >
> > or im wrong?
> >
> > Att,
> > Rafael M. Pestano
> > Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
> > Graduando em Ciência da Computação UFRGS
> > @realpestano
> > http://code.google.com/p/jsf-conventions-framework/
> >
> >
> >
> > ----- Mensagem original -----
> > De: José Luis Cetina <ma...@gmail.com>
> > Para: MyFaces Discussion <us...@myfaces.apache.org>
> > Cc:
> > Enviadas: Terça-feira, 13 de Março de 2012 12:28
> > Assunto: Re: Both MyFaces and the RI are on your classpath. Please make
> > sure to use only one of the two JSF-implementations.
> >
> > I see now im using MyFaces instead of Mojarra, the "ERROR" Message still
> > there, but the application can deploy. My second problem persist:
> >
> > javax.el.PropertyNotFoundException: Target Unreachable, identifier
> 'myBean'
> > resolved to null
> > viewId=/index.xhtml
> >
> >
> location=C:\Users\user\Documents\NetBeansProjects\testweb\build\web\index.xhtml
> > phaseId=INVOKE_APPLICATION(5)
> >
> >
> > i have the my beans.xml under WEB-INF folder:
> > beans.xml:
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <beans 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/beans_1_0.xsd">
> > </beans>
> >
> >
> > And my bean its ok:
> >
> > @Named
> > @ViewAccessScoped
> > @Model
> > @View(Index.class)
> > public class MyBean implements Serializable{
> > }
> >
> > If i change from MyFaces to Mojarra this work ok!!!   :(
> >
> > Somebody know what can i do?
> >
> > *Im using: Netbeans 7.1, Glassfish 3.1.2.1, JDK 7u3, MyFaces 2.1.6,
> > CODI 1.0.4, Windows 7. *
> > *
> > *
> > *Thanks.*
> > *
> > *
> >
> *-------------------------------------------------------------------------*
> >
> >
> > 2012/3/13 Werner Punz <we...@gmail.com>
> >
> > > Mhh this looks like a bug in Glassfish to me, the entries  in the
> > > glassfish-web.xml look correct to me. Problem is generally that
> glassfish
> > > is not to keen on overrides of its system libs in my experience. Even
> > while
> > > myfaces runs, try to replace Weld for instance and you run into a mess.
> > > Glassfish as good as it is is an all or nothing pack in many cases.
> > > But it has been some time since I last touched Glassfish, things might
> > > have changed.
> > >
> > >
> > >
> > > Werner
> > >
> > >
> > > Am 12.03.12 17:40, schrieb José Luis Cetina:
> > >
> > >> Im triying to start a new project for first time with myfaces, i
> always
> > >> used Mojarra but know i want to change but im having problems at the
> > >> start:
> > >>
> > >> My only requierement is use Glassfish 3.1.2.1.
> > >>
> > >> Hi i have this WARNING:
> > >>
> > >> *Both MyFaces and the RI are on your classpath. Please make sure to
> use
> > >> only one of the two JSF-implementations.*
> > >>
> > >>
> > >> Why this happend if im using only jars from myfaces?? maybe for
> > glassfish
> > >> i
> > >> think, i have these in my *glassfish-web.xml* file, under WEB-INF
> > folder:
> > >>
> > >>
> > >> <?xml version="1.0" encoding="UTF-8"?>
> > >> <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish
> > >> Application Server 3.1 Servlet 3.0//EN" "
> > >> http://glassfish.org/dtds/**glassfish-web-app_3_0-1.dtd<
> > http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd>
> > >> ">
> > >> <glassfish-web-app error-url="">
> > >>     <!--Para establecer el charset a utf8 y remover el mensaje de:
> > >> PWC4011:
> > >> Unable to set request character encoding to UTF-8 from context-->
> > >>     <parameter-encoding default-charset="UTF-8"/>
> > >>     *<class-loader delegate="false"/>*
> > >> *<property name="useBundledJsf" value="true"/>*
> > >>
> > >>     <!--<class-loader delegate="true"/>-->
> > >>     <jsp-config>
> > >>         <property name="keepgenerated" value="true">
> > >>             <description>Keep a copy of the generated servlet class'
> > java
> > >> code.</description>
> > >>         </property>
> > >>     </jsp-config>
> > >> </glassfish-web-app>
> > >>
> > >> ----------------  ----------------  ----------------
> > >>
> > >> This is my web.xml
> > >>
> > >> <?xml version="1.0" encoding="UTF-8"?>
> > >> <web-app version="3.0" xmlns="http://java.sun.com/**xml/ns/javaee<
> > http://java.sun.com/xml/ns/javaee>"
> > >> xmlns:xsi="
> > >> http://www.w3.org/2001/**XMLSchema-instance<
> > http://www.w3.org/2001/XMLSchema-instance>"
> > >> xsi:schemaLocation="
> > >> http://java.sun.com/xml/ns/**javaee <
> http://java.sun.com/xml/ns/javaee>
> > >> http://java.sun.com/xml/ns/**javaee/web-app_3_0.xsd<
> > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd>
> > >> ">
> > >>     <context-param>
> > >>         <param-name>javax.faces.**PROJECT_STAGE</param-name>
> > >>         <param-value>Development</**param-value>
> > >>     </context-param>
> > >>     <context-param>
> > >>         <param-name>com.ocpsoft.**pretty.DEVELOPMENT</param-**name>
> > >>         <param-value>true</param-**value>
> > >>     </context-param>
> > >>     <context-param>
> > >>         <param-name>javax.faces.STATE_**SAVING_METHOD</param-name>
> > >>         <param-value>server</param-**value>
> > >>     </context-param>
> > >>     <context-param>
> > >>         <param-name>
> > >> javax.faces.DATETIMECONVERTER_**DEFAULT_TIMEZONE_IS_SYSTEM_**
> > >> TIMEZONE</param-name>
> > >>         <param-value>true</param-**value>
> > >>     </context-param>
> > >>      <context-param>
> > >>
> <param-name>javax.faces.**FACELETS_SKIP_COMMENTS</param-**name>
> > >>         <param-value>true</param-**value>
> > >>     </context-param>
> > >>     <context-param>
> > >>
> > >> <param-name>com.sun.faces.**enableMissingResourceLibraryDe**
> > >> tection</param-name>
> > >>         <param-value>true</param-**value>
> > >>     </context-param>
> > >>     <listener>
> > >>         *
> > >> <listener-class>org.apache.**myfaces.webapp.**
> > >> StartupServletContextListener<**/listener-class>
> > >> *
> > >>     </listener>
> > >>     <servlet>
> > >>         <servlet-name>Faces Servlet</servlet-name>
> > >>         <servlet-class>javax.faces.**webapp.FacesServlet</servlet-**
> > >> class>
> > >>         <load-on-startup>1</load-on-**startup>
> > >>     </servlet>
> > >>     <servlet-mapping>
> > >>         <servlet-name>Faces Servlet</servlet-name>
> > >>         <url-pattern>/faces/*</url-**pattern>
> > >>     </servlet-mapping>
> > >>     <session-config>
> > >>         <session-timeout>
> > >>             30
> > >>         </session-timeout>
> > >>     </session-config>
> > >>     <welcome-file-list>
> > >>         <welcome-file>faces/index.**xhtml</welcome-file>
> > >>     </welcome-file-list>
> > >> </web-app>
> > >>
> > >> ----------------  ----------------  ----------------
> > >>
> > >> Here are my libraries:
> > >>
> > >> --MYFACES
> > >> myfaces-api-2.1.6.jar
> > >> myfaces-impl-2.1.6.jar
> > >> commons-beanutils-1.8.3.jar
> > >> commons-digester-1.8.jar
> > >> commons-logging-1.8.jar
> > >> commons-codec-1.1.1.jar
> > >> commons-collections-3.2.jar
> > >> --MYFACES CODI
> > >> myfaces-extcdi-alternative-**implementation-module-1.0.4
> > >> myfaces-extcdi-bv1-module-api-**1.0.4
> > >> myfaces-extcdi-bv1-module-**impl-1.0.4
> > >> myfaces-extcdi-core-**alternative-configuration-1.0.**4
> > >> myfaces-extcdi-core-api-1.0.4
> > >> myfaces-extcdi-core-impl-1.0.4
> > >> myfaces-extcdi-jpa1-module-**api-1.0.4
> > >> myfaces-extcdi-jpa1-module-**impl-1.0.4
> > >> myfaces-extcdi-jsf20-module-**api-1.0.4
> > >> myfaces-extcdi-jsf20-module-**impl-1.0.4
> > >> myfaces-extcdi-jsf-**alternative-configuration-1.0.**4
> > >> myfaces-extcdi-message-module-**api-1.0.4
> > >> myfaces-extcdi-message-module-**impl-1.0.4
> > >> myfaces-extcdi-scripting-**module-api-1.0.4
> > >> myfaces-extcdi-scripting-**module-impl-1.0.4
> > >>
> > >>
> > >> I dont know if because the "WARNING" i have other problem:
> > >>
> > >> javax.el.**PropertyNotFoundException: Target Unreachable, identifier
> > >> 'myBean'
> > >> resolved to null,
> > >>
> > >> I have in my beans.xml file under WEB-INF this:
> > >>
> > >> <?xml version="1.0" encoding="UTF-8"?>
> > >> <beans xmlns="http://java.sun.com/**xml/ns/javaee<
> > http://java.sun.com/xml/ns/javaee>
> > >> "
> > >>        xmlns:xsi="http://www.w3.org/**2001/XMLSchema-instance<
> > http://www.w3.org/2001/XMLSchema-instance>
> > >> "
> > >>        xsi:schemaLocation="http://**java.sun.com/xml/ns/javaee<
> > http://java.sun.com/xml/ns/javaee>
> > >> http://java.sun.com/xml/ns/**javaee/beans_1_0.xsd<
> > http://java.sun.com/xml/ns/javaee/beans_1_0.xsd>
> > >> ">
> > >> </beans>
> > >>
> > >> and in my bean:
> > >>
> > >> @Named
> > >> @ViewAccessScoped
> > >> @Model
> > >> @View(Index.class)
> > >> public class MyBean implements Serializable{
> > >>    public void test(){
> > >>      //do nothing
> > >>    }
> > >>
> > >> .....
> > >> }
> > >>
> > >> and in my index.xhtml
> > >>
> > >> <h:commandButton value="CLICK" action="#{myBean.test}"/>
> > >>
> > >> if i click my button the i get this error:
> > >>
> > >> javax.el.**PropertyNotFoundException: Target Unreachable, identifier
> > >> 'myBean'
> > >> resolved to null
> > >> viewId=/index.xhtml
> > >> location=C:\Users\user\**Documents\NetBeansProjects\**
> > >> testweb\build\web\index.xhtml
> > >> phaseId=INVOKE_APPLICATION(5)
> > >> Caused by:
> > >> javax.el.**PropertyNotFoundException - Target Unreachable, identifier
> > >> 'myBean' resolved to null
> > >> at com.sun.el.parser.AstValue.**getTarget(AstValue.java:153)
> > >>
> > >>
> > >> I dont know if this is for the first problem  (*Both MyFaces and the
> RI
> > >> are
> > >>
> > >> on your classpath. Please make sure to use only one of the two
> > >> JSF-implementations.*)
> > >>
> > >> I read i need to have my beans.xml but i have it!!!
> > >>
> > >> Thanks, and sorry for the english, is not my native language
> > >>
> > >>
> > >> Im using: Netbeans 7.1, *Glassfish 3.1.2.1,* JDK 7u3, MyFaces 2.1.6,
> > CODI
> > >> 1.0.4, Windows 7.
> > >>
> > >>
> > >
> > >
> >
> >
> > --
> > -------------------------------------------------------------------
> > *SCJA. José Luis Cetina*
> > -------------------------------------------------------------------
> >
> >
>
>
> --
> -------------------------------------------------------------------
> *SCJA. José Luis Cetina*
> -------------------------------------------------------------------
>

Re: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

Posted by José Luis Cetina <ma...@gmail.com>.
I see, i erase and only put @Named and @ ViewAccessScoped and get the same
error, but i try with only @Named and @RequestScoped (java) and still the
error, i think the problem is the @Named is not injecting my bean, not
MyFaces, because if i use @ManagedBean this works ok, but i dont understand
why if i chagen from MyFaces to Mojarra the @Named and @ViewAccessScoped
works ok!!

:(


2012/3/13 Rafael Pestano <rm...@yahoo.com.br>

> just a question, why do you have @Model,@Named and @ViewAccessScoped in
> the same bean?
>
> i think you need @model OR @Named and @ViewAccessScoped
>
> or im wrong?
>
> Att,
> Rafael M. Pestano
> Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
> Graduando em Ciência da Computação UFRGS
> @realpestano
> http://code.google.com/p/jsf-conventions-framework/
>
>
>
> ----- Mensagem original -----
> De: José Luis Cetina <ma...@gmail.com>
> Para: MyFaces Discussion <us...@myfaces.apache.org>
> Cc:
> Enviadas: Terça-feira, 13 de Março de 2012 12:28
> Assunto: Re: Both MyFaces and the RI are on your classpath. Please make
> sure to use only one of the two JSF-implementations.
>
> I see now im using MyFaces instead of Mojarra, the "ERROR" Message still
> there, but the application can deploy. My second problem persist:
>
> javax.el.PropertyNotFoundException: Target Unreachable, identifier 'myBean'
> resolved to null
> viewId=/index.xhtml
>
> location=C:\Users\user\Documents\NetBeansProjects\testweb\build\web\index.xhtml
> phaseId=INVOKE_APPLICATION(5)
>
>
> i have the my beans.xml under WEB-INF folder:
> beans.xml:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <beans 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/beans_1_0.xsd">
> </beans>
>
>
> And my bean its ok:
>
> @Named
> @ViewAccessScoped
> @Model
> @View(Index.class)
> public class MyBean implements Serializable{
> }
>
> If i change from MyFaces to Mojarra this work ok!!!   :(
>
> Somebody know what can i do?
>
> *Im using: Netbeans 7.1, Glassfish 3.1.2.1, JDK 7u3, MyFaces 2.1.6,
> CODI 1.0.4, Windows 7. *
> *
> *
> *Thanks.*
> *
> *
> *-------------------------------------------------------------------------*
>
>
> 2012/3/13 Werner Punz <we...@gmail.com>
>
> > Mhh this looks like a bug in Glassfish to me, the entries  in the
> > glassfish-web.xml look correct to me. Problem is generally that glassfish
> > is not to keen on overrides of its system libs in my experience. Even
> while
> > myfaces runs, try to replace Weld for instance and you run into a mess.
> > Glassfish as good as it is is an all or nothing pack in many cases.
> > But it has been some time since I last touched Glassfish, things might
> > have changed.
> >
> >
> >
> > Werner
> >
> >
> > Am 12.03.12 17:40, schrieb José Luis Cetina:
> >
> >> Im triying to start a new project for first time with myfaces, i always
> >> used Mojarra but know i want to change but im having problems at the
> >> start:
> >>
> >> My only requierement is use Glassfish 3.1.2.1.
> >>
> >> Hi i have this WARNING:
> >>
> >> *Both MyFaces and the RI are on your classpath. Please make sure to use
> >> only one of the two JSF-implementations.*
> >>
> >>
> >> Why this happend if im using only jars from myfaces?? maybe for
> glassfish
> >> i
> >> think, i have these in my *glassfish-web.xml* file, under WEB-INF
> folder:
> >>
> >>
> >> <?xml version="1.0" encoding="UTF-8"?>
> >> <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish
> >> Application Server 3.1 Servlet 3.0//EN" "
> >> http://glassfish.org/dtds/**glassfish-web-app_3_0-1.dtd<
> http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd>
> >> ">
> >> <glassfish-web-app error-url="">
> >>     <!--Para establecer el charset a utf8 y remover el mensaje de:
> >> PWC4011:
> >> Unable to set request character encoding to UTF-8 from context-->
> >>     <parameter-encoding default-charset="UTF-8"/>
> >>     *<class-loader delegate="false"/>*
> >> *<property name="useBundledJsf" value="true"/>*
> >>
> >>     <!--<class-loader delegate="true"/>-->
> >>     <jsp-config>
> >>         <property name="keepgenerated" value="true">
> >>             <description>Keep a copy of the generated servlet class'
> java
> >> code.</description>
> >>         </property>
> >>     </jsp-config>
> >> </glassfish-web-app>
> >>
> >> ----------------  ----------------  ----------------
> >>
> >> This is my web.xml
> >>
> >> <?xml version="1.0" encoding="UTF-8"?>
> >> <web-app version="3.0" xmlns="http://java.sun.com/**xml/ns/javaee<
> http://java.sun.com/xml/ns/javaee>"
> >> xmlns:xsi="
> >> http://www.w3.org/2001/**XMLSchema-instance<
> http://www.w3.org/2001/XMLSchema-instance>"
> >> xsi:schemaLocation="
> >> http://java.sun.com/xml/ns/**javaee <http://java.sun.com/xml/ns/javaee>
> >> http://java.sun.com/xml/ns/**javaee/web-app_3_0.xsd<
> http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd>
> >> ">
> >>     <context-param>
> >>         <param-name>javax.faces.**PROJECT_STAGE</param-name>
> >>         <param-value>Development</**param-value>
> >>     </context-param>
> >>     <context-param>
> >>         <param-name>com.ocpsoft.**pretty.DEVELOPMENT</param-**name>
> >>         <param-value>true</param-**value>
> >>     </context-param>
> >>     <context-param>
> >>         <param-name>javax.faces.STATE_**SAVING_METHOD</param-name>
> >>         <param-value>server</param-**value>
> >>     </context-param>
> >>     <context-param>
> >>         <param-name>
> >> javax.faces.DATETIMECONVERTER_**DEFAULT_TIMEZONE_IS_SYSTEM_**
> >> TIMEZONE</param-name>
> >>         <param-value>true</param-**value>
> >>     </context-param>
> >>      <context-param>
> >>         <param-name>javax.faces.**FACELETS_SKIP_COMMENTS</param-**name>
> >>         <param-value>true</param-**value>
> >>     </context-param>
> >>     <context-param>
> >>
> >> <param-name>com.sun.faces.**enableMissingResourceLibraryDe**
> >> tection</param-name>
> >>         <param-value>true</param-**value>
> >>     </context-param>
> >>     <listener>
> >>         *
> >> <listener-class>org.apache.**myfaces.webapp.**
> >> StartupServletContextListener<**/listener-class>
> >> *
> >>     </listener>
> >>     <servlet>
> >>         <servlet-name>Faces Servlet</servlet-name>
> >>         <servlet-class>javax.faces.**webapp.FacesServlet</servlet-**
> >> class>
> >>         <load-on-startup>1</load-on-**startup>
> >>     </servlet>
> >>     <servlet-mapping>
> >>         <servlet-name>Faces Servlet</servlet-name>
> >>         <url-pattern>/faces/*</url-**pattern>
> >>     </servlet-mapping>
> >>     <session-config>
> >>         <session-timeout>
> >>             30
> >>         </session-timeout>
> >>     </session-config>
> >>     <welcome-file-list>
> >>         <welcome-file>faces/index.**xhtml</welcome-file>
> >>     </welcome-file-list>
> >> </web-app>
> >>
> >> ----------------  ----------------  ----------------
> >>
> >> Here are my libraries:
> >>
> >> --MYFACES
> >> myfaces-api-2.1.6.jar
> >> myfaces-impl-2.1.6.jar
> >> commons-beanutils-1.8.3.jar
> >> commons-digester-1.8.jar
> >> commons-logging-1.8.jar
> >> commons-codec-1.1.1.jar
> >> commons-collections-3.2.jar
> >> --MYFACES CODI
> >> myfaces-extcdi-alternative-**implementation-module-1.0.4
> >> myfaces-extcdi-bv1-module-api-**1.0.4
> >> myfaces-extcdi-bv1-module-**impl-1.0.4
> >> myfaces-extcdi-core-**alternative-configuration-1.0.**4
> >> myfaces-extcdi-core-api-1.0.4
> >> myfaces-extcdi-core-impl-1.0.4
> >> myfaces-extcdi-jpa1-module-**api-1.0.4
> >> myfaces-extcdi-jpa1-module-**impl-1.0.4
> >> myfaces-extcdi-jsf20-module-**api-1.0.4
> >> myfaces-extcdi-jsf20-module-**impl-1.0.4
> >> myfaces-extcdi-jsf-**alternative-configuration-1.0.**4
> >> myfaces-extcdi-message-module-**api-1.0.4
> >> myfaces-extcdi-message-module-**impl-1.0.4
> >> myfaces-extcdi-scripting-**module-api-1.0.4
> >> myfaces-extcdi-scripting-**module-impl-1.0.4
> >>
> >>
> >> I dont know if because the "WARNING" i have other problem:
> >>
> >> javax.el.**PropertyNotFoundException: Target Unreachable, identifier
> >> 'myBean'
> >> resolved to null,
> >>
> >> I have in my beans.xml file under WEB-INF this:
> >>
> >> <?xml version="1.0" encoding="UTF-8"?>
> >> <beans xmlns="http://java.sun.com/**xml/ns/javaee<
> http://java.sun.com/xml/ns/javaee>
> >> "
> >>        xmlns:xsi="http://www.w3.org/**2001/XMLSchema-instance<
> http://www.w3.org/2001/XMLSchema-instance>
> >> "
> >>        xsi:schemaLocation="http://**java.sun.com/xml/ns/javaee<
> http://java.sun.com/xml/ns/javaee>
> >> http://java.sun.com/xml/ns/**javaee/beans_1_0.xsd<
> http://java.sun.com/xml/ns/javaee/beans_1_0.xsd>
> >> ">
> >> </beans>
> >>
> >> and in my bean:
> >>
> >> @Named
> >> @ViewAccessScoped
> >> @Model
> >> @View(Index.class)
> >> public class MyBean implements Serializable{
> >>    public void test(){
> >>      //do nothing
> >>    }
> >>
> >> .....
> >> }
> >>
> >> and in my index.xhtml
> >>
> >> <h:commandButton value="CLICK" action="#{myBean.test}"/>
> >>
> >> if i click my button the i get this error:
> >>
> >> javax.el.**PropertyNotFoundException: Target Unreachable, identifier
> >> 'myBean'
> >> resolved to null
> >> viewId=/index.xhtml
> >> location=C:\Users\user\**Documents\NetBeansProjects\**
> >> testweb\build\web\index.xhtml
> >> phaseId=INVOKE_APPLICATION(5)
> >> Caused by:
> >> javax.el.**PropertyNotFoundException - Target Unreachable, identifier
> >> 'myBean' resolved to null
> >> at com.sun.el.parser.AstValue.**getTarget(AstValue.java:153)
> >>
> >>
> >> I dont know if this is for the first problem  (*Both MyFaces and the RI
> >> are
> >>
> >> on your classpath. Please make sure to use only one of the two
> >> JSF-implementations.*)
> >>
> >> I read i need to have my beans.xml but i have it!!!
> >>
> >> Thanks, and sorry for the english, is not my native language
> >>
> >>
> >> Im using: Netbeans 7.1, *Glassfish 3.1.2.1,* JDK 7u3, MyFaces 2.1.6,
> CODI
> >> 1.0.4, Windows 7.
> >>
> >>
> >
> >
>
>
> --
> -------------------------------------------------------------------
> *SCJA. José Luis Cetina*
> -------------------------------------------------------------------
>
>


-- 
-------------------------------------------------------------------
*SCJA. José Luis Cetina*
-------------------------------------------------------------------

Re: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

Posted by Rafael Pestano <rm...@yahoo.com.br>.
just a question, why do you have @Model,@Named and @ViewAccessScoped in the same bean?

i think you need @model OR @Named and @ViewAccessScoped

or im wrong?
 
Att, 
Rafael M. Pestano
Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
Graduando em Ciência da Computação UFRGS
@realpestano
http://code.google.com/p/jsf-conventions-framework/



----- Mensagem original -----
De: José Luis Cetina <ma...@gmail.com>
Para: MyFaces Discussion <us...@myfaces.apache.org>
Cc: 
Enviadas: Terça-feira, 13 de Março de 2012 12:28
Assunto: Re: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

I see now im using MyFaces instead of Mojarra, the "ERROR" Message still
there, but the application can deploy. My second problem persist:

javax.el.PropertyNotFoundException: Target Unreachable, identifier 'myBean'
resolved to null
viewId=/index.xhtml
location=C:\Users\user\Documents\NetBeansProjects\testweb\build\web\index.xhtml
phaseId=INVOKE_APPLICATION(5)


i have the my beans.xml under WEB-INF folder:
beans.xml:

<?xml version="1.0" encoding="UTF-8"?>
<beans 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/beans_1_0.xsd">
</beans>


And my bean its ok:

@Named
@ViewAccessScoped
@Model
@View(Index.class)
public class MyBean implements Serializable{
}

If i change from MyFaces to Mojarra this work ok!!!   :(

Somebody know what can i do?

*Im using: Netbeans 7.1, Glassfish 3.1.2.1, JDK 7u3, MyFaces 2.1.6,
CODI 1.0.4, Windows 7. *
*
*
*Thanks.*
*
*
*-------------------------------------------------------------------------*


2012/3/13 Werner Punz <we...@gmail.com>

> Mhh this looks like a bug in Glassfish to me, the entries  in the
> glassfish-web.xml look correct to me. Problem is generally that glassfish
> is not to keen on overrides of its system libs in my experience. Even while
> myfaces runs, try to replace Weld for instance and you run into a mess.
> Glassfish as good as it is is an all or nothing pack in many cases.
> But it has been some time since I last touched Glassfish, things might
> have changed.
>
>
>
> Werner
>
>
> Am 12.03.12 17:40, schrieb José Luis Cetina:
>
>> Im triying to start a new project for first time with myfaces, i always
>> used Mojarra but know i want to change but im having problems at the
>> start:
>>
>> My only requierement is use Glassfish 3.1.2.1.
>>
>> Hi i have this WARNING:
>>
>> *Both MyFaces and the RI are on your classpath. Please make sure to use
>> only one of the two JSF-implementations.*
>>
>>
>> Why this happend if im using only jars from myfaces?? maybe for glassfish
>> i
>> think, i have these in my *glassfish-web.xml* file, under WEB-INF folder:
>>
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish
>> Application Server 3.1 Servlet 3.0//EN" "
>> http://glassfish.org/dtds/**glassfish-web-app_3_0-1.dtd<http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd>
>> ">
>> <glassfish-web-app error-url="">
>>     <!--Para establecer el charset a utf8 y remover el mensaje de:
>> PWC4011:
>> Unable to set request character encoding to UTF-8 from context-->
>>     <parameter-encoding default-charset="UTF-8"/>
>>     *<class-loader delegate="false"/>*
>> *<property name="useBundledJsf" value="true"/>*
>>
>>     <!--<class-loader delegate="true"/>-->
>>     <jsp-config>
>>         <property name="keepgenerated" value="true">
>>             <description>Keep a copy of the generated servlet class' java
>> code.</description>
>>         </property>
>>     </jsp-config>
>> </glassfish-web-app>
>>
>> ----------------  ----------------  ----------------
>>
>> This is my web.xml
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <web-app version="3.0" xmlns="http://java.sun.com/**xml/ns/javaee<http://java.sun.com/xml/ns/javaee>"
>> xmlns:xsi="
>> http://www.w3.org/2001/**XMLSchema-instance<http://www.w3.org/2001/XMLSchema-instance>"
>> xsi:schemaLocation="
>> http://java.sun.com/xml/ns/**javaee <http://java.sun.com/xml/ns/javaee>
>> http://java.sun.com/xml/ns/**javaee/web-app_3_0.xsd<http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd>
>> ">
>>     <context-param>
>>         <param-name>javax.faces.**PROJECT_STAGE</param-name>
>>         <param-value>Development</**param-value>
>>     </context-param>
>>     <context-param>
>>         <param-name>com.ocpsoft.**pretty.DEVELOPMENT</param-**name>
>>         <param-value>true</param-**value>
>>     </context-param>
>>     <context-param>
>>         <param-name>javax.faces.STATE_**SAVING_METHOD</param-name>
>>         <param-value>server</param-**value>
>>     </context-param>
>>     <context-param>
>>         <param-name>
>> javax.faces.DATETIMECONVERTER_**DEFAULT_TIMEZONE_IS_SYSTEM_**
>> TIMEZONE</param-name>
>>         <param-value>true</param-**value>
>>     </context-param>
>>      <context-param>
>>         <param-name>javax.faces.**FACELETS_SKIP_COMMENTS</param-**name>
>>         <param-value>true</param-**value>
>>     </context-param>
>>     <context-param>
>>
>> <param-name>com.sun.faces.**enableMissingResourceLibraryDe**
>> tection</param-name>
>>         <param-value>true</param-**value>
>>     </context-param>
>>     <listener>
>>         *
>> <listener-class>org.apache.**myfaces.webapp.**
>> StartupServletContextListener<**/listener-class>
>> *
>>     </listener>
>>     <servlet>
>>         <servlet-name>Faces Servlet</servlet-name>
>>         <servlet-class>javax.faces.**webapp.FacesServlet</servlet-**
>> class>
>>         <load-on-startup>1</load-on-**startup>
>>     </servlet>
>>     <servlet-mapping>
>>         <servlet-name>Faces Servlet</servlet-name>
>>         <url-pattern>/faces/*</url-**pattern>
>>     </servlet-mapping>
>>     <session-config>
>>         <session-timeout>
>>             30
>>         </session-timeout>
>>     </session-config>
>>     <welcome-file-list>
>>         <welcome-file>faces/index.**xhtml</welcome-file>
>>     </welcome-file-list>
>> </web-app>
>>
>> ----------------  ----------------  ----------------
>>
>> Here are my libraries:
>>
>> --MYFACES
>> myfaces-api-2.1.6.jar
>> myfaces-impl-2.1.6.jar
>> commons-beanutils-1.8.3.jar
>> commons-digester-1.8.jar
>> commons-logging-1.8.jar
>> commons-codec-1.1.1.jar
>> commons-collections-3.2.jar
>> --MYFACES CODI
>> myfaces-extcdi-alternative-**implementation-module-1.0.4
>> myfaces-extcdi-bv1-module-api-**1.0.4
>> myfaces-extcdi-bv1-module-**impl-1.0.4
>> myfaces-extcdi-core-**alternative-configuration-1.0.**4
>> myfaces-extcdi-core-api-1.0.4
>> myfaces-extcdi-core-impl-1.0.4
>> myfaces-extcdi-jpa1-module-**api-1.0.4
>> myfaces-extcdi-jpa1-module-**impl-1.0.4
>> myfaces-extcdi-jsf20-module-**api-1.0.4
>> myfaces-extcdi-jsf20-module-**impl-1.0.4
>> myfaces-extcdi-jsf-**alternative-configuration-1.0.**4
>> myfaces-extcdi-message-module-**api-1.0.4
>> myfaces-extcdi-message-module-**impl-1.0.4
>> myfaces-extcdi-scripting-**module-api-1.0.4
>> myfaces-extcdi-scripting-**module-impl-1.0.4
>>
>>
>> I dont know if because the "WARNING" i have other problem:
>>
>> javax.el.**PropertyNotFoundException: Target Unreachable, identifier
>> 'myBean'
>> resolved to null,
>>
>> I have in my beans.xml file under WEB-INF this:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <beans xmlns="http://java.sun.com/**xml/ns/javaee<http://java.sun.com/xml/ns/javaee>
>> "
>>        xmlns:xsi="http://www.w3.org/**2001/XMLSchema-instance<http://www.w3.org/2001/XMLSchema-instance>
>> "
>>        xsi:schemaLocation="http://**java.sun.com/xml/ns/javaee<http://java.sun.com/xml/ns/javaee>
>> http://java.sun.com/xml/ns/**javaee/beans_1_0.xsd<http://java.sun.com/xml/ns/javaee/beans_1_0.xsd>
>> ">
>> </beans>
>>
>> and in my bean:
>>
>> @Named
>> @ViewAccessScoped
>> @Model
>> @View(Index.class)
>> public class MyBean implements Serializable{
>>    public void test(){
>>      //do nothing
>>    }
>>
>> .....
>> }
>>
>> and in my index.xhtml
>>
>> <h:commandButton value="CLICK" action="#{myBean.test}"/>
>>
>> if i click my button the i get this error:
>>
>> javax.el.**PropertyNotFoundException: Target Unreachable, identifier
>> 'myBean'
>> resolved to null
>> viewId=/index.xhtml
>> location=C:\Users\user\**Documents\NetBeansProjects\**
>> testweb\build\web\index.xhtml
>> phaseId=INVOKE_APPLICATION(5)
>> Caused by:
>> javax.el.**PropertyNotFoundException - Target Unreachable, identifier
>> 'myBean' resolved to null
>> at com.sun.el.parser.AstValue.**getTarget(AstValue.java:153)
>>
>>
>> I dont know if this is for the first problem  (*Both MyFaces and the RI
>> are
>>
>> on your classpath. Please make sure to use only one of the two
>> JSF-implementations.*)
>>
>> I read i need to have my beans.xml but i have it!!!
>>
>> Thanks, and sorry for the english, is not my native language
>>
>>
>> Im using: Netbeans 7.1, *Glassfish 3.1.2.1,* JDK 7u3, MyFaces 2.1.6, CODI
>> 1.0.4, Windows 7.
>>
>>
>
>


-- 
-------------------------------------------------------------------
*SCJA. José Luis Cetina*
-------------------------------------------------------------------


Re: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

Posted by José Luis Cetina <ma...@gmail.com>.
I see now im using MyFaces instead of Mojarra, the "ERROR" Message still
there, but the application can deploy. My second problem persist:

javax.el.PropertyNotFoundException: Target Unreachable, identifier 'myBean'
resolved to null
viewId=/index.xhtml
location=C:\Users\user\Documents\NetBeansProjects\testweb\build\web\index.xhtml
phaseId=INVOKE_APPLICATION(5)


i have the my beans.xml under WEB-INF folder:
beans.xml:

<?xml version="1.0" encoding="UTF-8"?>
<beans 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/beans_1_0.xsd">
</beans>


And my bean its ok:

@Named
@ViewAccessScoped
@Model
@View(Index.class)
public class MyBean implements Serializable{
}

If i change from MyFaces to Mojarra this work ok!!!   :(

Somebody know what can i do?

*Im using: Netbeans 7.1, Glassfish 3.1.2.1, JDK 7u3, MyFaces 2.1.6,
CODI 1.0.4, Windows 7. *
*
*
*Thanks.*
*
*
*-------------------------------------------------------------------------*


2012/3/13 Werner Punz <we...@gmail.com>

> Mhh this looks like a bug in Glassfish to me, the entries  in the
> glassfish-web.xml look correct to me. Problem is generally that glassfish
> is not to keen on overrides of its system libs in my experience. Even while
> myfaces runs, try to replace Weld for instance and you run into a mess.
> Glassfish as good as it is is an all or nothing pack in many cases.
> But it has been some time since I last touched Glassfish, things might
> have changed.
>
>
>
> Werner
>
>
> Am 12.03.12 17:40, schrieb José Luis Cetina:
>
>> Im triying to start a new project for first time with myfaces, i always
>> used Mojarra but know i want to change but im having problems at the
>> start:
>>
>> My only requierement is use Glassfish 3.1.2.1.
>>
>> Hi i have this WARNING:
>>
>> *Both MyFaces and the RI are on your classpath. Please make sure to use
>> only one of the two JSF-implementations.*
>>
>>
>> Why this happend if im using only jars from myfaces?? maybe for glassfish
>> i
>> think, i have these in my *glassfish-web.xml* file, under WEB-INF folder:
>>
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish
>> Application Server 3.1 Servlet 3.0//EN" "
>> http://glassfish.org/dtds/**glassfish-web-app_3_0-1.dtd<http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd>
>> ">
>> <glassfish-web-app error-url="">
>>     <!--Para establecer el charset a utf8 y remover el mensaje de:
>> PWC4011:
>> Unable to set request character encoding to UTF-8 from context-->
>>     <parameter-encoding default-charset="UTF-8"/>
>>     *<class-loader delegate="false"/>*
>> *<property name="useBundledJsf" value="true"/>*
>>
>>     <!--<class-loader delegate="true"/>-->
>>     <jsp-config>
>>         <property name="keepgenerated" value="true">
>>             <description>Keep a copy of the generated servlet class' java
>> code.</description>
>>         </property>
>>     </jsp-config>
>> </glassfish-web-app>
>>
>> ----------------  ----------------  ----------------
>>
>> This is my web.xml
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <web-app version="3.0" xmlns="http://java.sun.com/**xml/ns/javaee<http://java.sun.com/xml/ns/javaee>"
>> xmlns:xsi="
>> http://www.w3.org/2001/**XMLSchema-instance<http://www.w3.org/2001/XMLSchema-instance>"
>> xsi:schemaLocation="
>> http://java.sun.com/xml/ns/**javaee <http://java.sun.com/xml/ns/javaee>
>> http://java.sun.com/xml/ns/**javaee/web-app_3_0.xsd<http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd>
>> ">
>>     <context-param>
>>         <param-name>javax.faces.**PROJECT_STAGE</param-name>
>>         <param-value>Development</**param-value>
>>     </context-param>
>>     <context-param>
>>         <param-name>com.ocpsoft.**pretty.DEVELOPMENT</param-**name>
>>         <param-value>true</param-**value>
>>     </context-param>
>>     <context-param>
>>         <param-name>javax.faces.STATE_**SAVING_METHOD</param-name>
>>         <param-value>server</param-**value>
>>     </context-param>
>>     <context-param>
>>         <param-name>
>> javax.faces.DATETIMECONVERTER_**DEFAULT_TIMEZONE_IS_SYSTEM_**
>> TIMEZONE</param-name>
>>         <param-value>true</param-**value>
>>     </context-param>
>>      <context-param>
>>         <param-name>javax.faces.**FACELETS_SKIP_COMMENTS</param-**name>
>>         <param-value>true</param-**value>
>>     </context-param>
>>     <context-param>
>>
>> <param-name>com.sun.faces.**enableMissingResourceLibraryDe**
>> tection</param-name>
>>         <param-value>true</param-**value>
>>     </context-param>
>>     <listener>
>>         *
>> <listener-class>org.apache.**myfaces.webapp.**
>> StartupServletContextListener<**/listener-class>
>> *
>>     </listener>
>>     <servlet>
>>         <servlet-name>Faces Servlet</servlet-name>
>>         <servlet-class>javax.faces.**webapp.FacesServlet</servlet-**
>> class>
>>         <load-on-startup>1</load-on-**startup>
>>     </servlet>
>>     <servlet-mapping>
>>         <servlet-name>Faces Servlet</servlet-name>
>>         <url-pattern>/faces/*</url-**pattern>
>>     </servlet-mapping>
>>     <session-config>
>>         <session-timeout>
>>             30
>>         </session-timeout>
>>     </session-config>
>>     <welcome-file-list>
>>         <welcome-file>faces/index.**xhtml</welcome-file>
>>     </welcome-file-list>
>> </web-app>
>>
>> ----------------  ----------------  ----------------
>>
>> Here are my libraries:
>>
>> --MYFACES
>> myfaces-api-2.1.6.jar
>> myfaces-impl-2.1.6.jar
>> commons-beanutils-1.8.3.jar
>> commons-digester-1.8.jar
>> commons-logging-1.8.jar
>> commons-codec-1.1.1.jar
>> commons-collections-3.2.jar
>> --MYFACES CODI
>> myfaces-extcdi-alternative-**implementation-module-1.0.4
>> myfaces-extcdi-bv1-module-api-**1.0.4
>> myfaces-extcdi-bv1-module-**impl-1.0.4
>> myfaces-extcdi-core-**alternative-configuration-1.0.**4
>> myfaces-extcdi-core-api-1.0.4
>> myfaces-extcdi-core-impl-1.0.4
>> myfaces-extcdi-jpa1-module-**api-1.0.4
>> myfaces-extcdi-jpa1-module-**impl-1.0.4
>> myfaces-extcdi-jsf20-module-**api-1.0.4
>> myfaces-extcdi-jsf20-module-**impl-1.0.4
>> myfaces-extcdi-jsf-**alternative-configuration-1.0.**4
>> myfaces-extcdi-message-module-**api-1.0.4
>> myfaces-extcdi-message-module-**impl-1.0.4
>> myfaces-extcdi-scripting-**module-api-1.0.4
>> myfaces-extcdi-scripting-**module-impl-1.0.4
>>
>>
>> I dont know if because the "WARNING" i have other problem:
>>
>> javax.el.**PropertyNotFoundException: Target Unreachable, identifier
>> 'myBean'
>> resolved to null,
>>
>> I have in my beans.xml file under WEB-INF this:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <beans xmlns="http://java.sun.com/**xml/ns/javaee<http://java.sun.com/xml/ns/javaee>
>> "
>>        xmlns:xsi="http://www.w3.org/**2001/XMLSchema-instance<http://www.w3.org/2001/XMLSchema-instance>
>> "
>>        xsi:schemaLocation="http://**java.sun.com/xml/ns/javaee<http://java.sun.com/xml/ns/javaee>
>> http://java.sun.com/xml/ns/**javaee/beans_1_0.xsd<http://java.sun.com/xml/ns/javaee/beans_1_0.xsd>
>> ">
>> </beans>
>>
>> and in my bean:
>>
>> @Named
>> @ViewAccessScoped
>> @Model
>> @View(Index.class)
>> public class MyBean implements Serializable{
>>    public void test(){
>>      //do nothing
>>    }
>>
>> .....
>> }
>>
>> and in my index.xhtml
>>
>> <h:commandButton value="CLICK" action="#{myBean.test}"/>
>>
>> if i click my button the i get this error:
>>
>> javax.el.**PropertyNotFoundException: Target Unreachable, identifier
>> 'myBean'
>> resolved to null
>> viewId=/index.xhtml
>> location=C:\Users\user\**Documents\NetBeansProjects\**
>> testweb\build\web\index.xhtml
>> phaseId=INVOKE_APPLICATION(5)
>> Caused by:
>> javax.el.**PropertyNotFoundException - Target Unreachable, identifier
>> 'myBean' resolved to null
>> at com.sun.el.parser.AstValue.**getTarget(AstValue.java:153)
>>
>>
>> I dont know if this is for the first problem  (*Both MyFaces and the RI
>> are
>>
>> on your classpath. Please make sure to use only one of the two
>> JSF-implementations.*)
>>
>> I read i need to have my beans.xml but i have it!!!
>>
>> Thanks, and sorry for the english, is not my native language
>>
>>
>> Im using: Netbeans 7.1, *Glassfish 3.1.2.1,* JDK 7u3, MyFaces 2.1.6, CODI
>> 1.0.4, Windows 7.
>>
>>
>
>


-- 
-------------------------------------------------------------------
*SCJA. José Luis Cetina*
-------------------------------------------------------------------

Re: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

Posted by Werner Punz <we...@gmail.com>.
Mhh this looks like a bug in Glassfish to me, the entries  in the 
glassfish-web.xml look correct to me. Problem is generally that 
glassfish is not to keen on overrides of its system libs in my 
experience. Even while myfaces runs, try to replace Weld for instance 
and you run into a mess.
Glassfish as good as it is is an all or nothing pack in many cases.
But it has been some time since I last touched Glassfish, things might 
have changed.



Werner


Am 12.03.12 17:40, schrieb José Luis Cetina:
> Im triying to start a new project for first time with myfaces, i always
> used Mojarra but know i want to change but im having problems at the start:
>
> My only requierement is use Glassfish 3.1.2.1.
>
> Hi i have this WARNING:
>
> *Both MyFaces and the RI are on your classpath. Please make sure to use
> only one of the two JSF-implementations.*
>
> Why this happend if im using only jars from myfaces?? maybe for glassfish i
> think, i have these in my *glassfish-web.xml* file, under WEB-INF folder:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish
> Application Server 3.1 Servlet 3.0//EN" "
> http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">
> <glassfish-web-app error-url="">
>      <!--Para establecer el charset a utf8 y remover el mensaje de: PWC4011:
> Unable to set request character encoding to UTF-8 from context-->
>      <parameter-encoding default-charset="UTF-8"/>
>      *<class-loader delegate="false"/>*
> *<property name="useBundledJsf" value="true"/>*
>      <!--<class-loader delegate="true"/>-->
>      <jsp-config>
>          <property name="keepgenerated" value="true">
>              <description>Keep a copy of the generated servlet class' java
> code.</description>
>          </property>
>      </jsp-config>
> </glassfish-web-app>
>
> ----------------  ----------------  ----------------
>
> This is my web.xml
>
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
> http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
>      <context-param>
>          <param-name>javax.faces.PROJECT_STAGE</param-name>
>          <param-value>Development</param-value>
>      </context-param>
>      <context-param>
>          <param-name>com.ocpsoft.pretty.DEVELOPMENT</param-name>
>          <param-value>true</param-value>
>      </context-param>
>      <context-param>
>          <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
>          <param-value>server</param-value>
>      </context-param>
>      <context-param>
>          <param-name>
> javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE</param-name>
>          <param-value>true</param-value>
>      </context-param>
>       <context-param>
>          <param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
>          <param-value>true</param-value>
>      </context-param>
>      <context-param>
>
> <param-name>com.sun.faces.enableMissingResourceLibraryDetection</param-name>
>          <param-value>true</param-value>
>      </context-param>
>      <listener>
>          *
> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
> *
>      </listener>
>      <servlet>
>          <servlet-name>Faces Servlet</servlet-name>
>          <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
>          <load-on-startup>1</load-on-startup>
>      </servlet>
>      <servlet-mapping>
>          <servlet-name>Faces Servlet</servlet-name>
>          <url-pattern>/faces/*</url-pattern>
>      </servlet-mapping>
>      <session-config>
>          <session-timeout>
>              30
>          </session-timeout>
>      </session-config>
>      <welcome-file-list>
>          <welcome-file>faces/index.xhtml</welcome-file>
>      </welcome-file-list>
> </web-app>
>
> ----------------  ----------------  ----------------
>
> Here are my libraries:
>
> --MYFACES
> myfaces-api-2.1.6.jar
> myfaces-impl-2.1.6.jar
> commons-beanutils-1.8.3.jar
> commons-digester-1.8.jar
> commons-logging-1.8.jar
> commons-codec-1.1.1.jar
> commons-collections-3.2.jar
> --MYFACES CODI
> myfaces-extcdi-alternative-implementation-module-1.0.4
> myfaces-extcdi-bv1-module-api-1.0.4
> myfaces-extcdi-bv1-module-impl-1.0.4
> myfaces-extcdi-core-alternative-configuration-1.0.4
> myfaces-extcdi-core-api-1.0.4
> myfaces-extcdi-core-impl-1.0.4
> myfaces-extcdi-jpa1-module-api-1.0.4
> myfaces-extcdi-jpa1-module-impl-1.0.4
> myfaces-extcdi-jsf20-module-api-1.0.4
> myfaces-extcdi-jsf20-module-impl-1.0.4
> myfaces-extcdi-jsf-alternative-configuration-1.0.4
> myfaces-extcdi-message-module-api-1.0.4
> myfaces-extcdi-message-module-impl-1.0.4
> myfaces-extcdi-scripting-module-api-1.0.4
> myfaces-extcdi-scripting-module-impl-1.0.4
>
>
> I dont know if because the "WARNING" i have other problem:
>
> javax.el.PropertyNotFoundException: Target Unreachable, identifier 'myBean'
> resolved to null,
>
> I have in my beans.xml file under WEB-INF this:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <beans 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/beans_1_0.xsd">
> </beans>
>
> and in my bean:
>
> @Named
> @ViewAccessScoped
> @Model
> @View(Index.class)
> public class MyBean implements Serializable{
>     public void test(){
>       //do nothing
>     }
>
> .....
> }
>
> and in my index.xhtml
>
> <h:commandButton value="CLICK" action="#{myBean.test}"/>
>
> if i click my button the i get this error:
>
> javax.el.PropertyNotFoundException: Target Unreachable, identifier 'myBean'
> resolved to null
> viewId=/index.xhtml
> location=C:\Users\user\Documents\NetBeansProjects\testweb\build\web\index.xhtml
> phaseId=INVOKE_APPLICATION(5)
> Caused by:
> javax.el.PropertyNotFoundException - Target Unreachable, identifier
> 'myBean' resolved to null
> at com.sun.el.parser.AstValue.getTarget(AstValue.java:153)
>
>
> I dont know if this is for the first problem  (*Both MyFaces and the RI are
> on your classpath. Please make sure to use only one of the two
> JSF-implementations.*)
> I read i need to have my beans.xml but i have it!!!
>
> Thanks, and sorry for the english, is not my native language
>
>
> Im using: Netbeans 7.1, *Glassfish 3.1.2.1,* JDK 7u3, MyFaces 2.1.6, CODI
> 1.0.4, Windows 7.
>