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 <[email protected]> > 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 <[email protected]>: > > 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 <[email protected]> > > > >> 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 <[email protected]> > >> > >> > 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 <[email protected]> > >> > > >> > > 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 <[email protected]> > >> > > > >> > > > 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 <[email protected]> > >> > > > > >> > > > > 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 <[email protected]> > >> > > > > Para: MyFaces Discussion <[email protected]> > >> > > > > 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 <[email protected]> > >> > > > > > >> > > > > > 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* > > ------------------------------------------------------------------- >

