opensubscriber
   Find in this group all groups
 
Unknown more information…

u : users@openejb.apache.org 26 May 2012 • 12:27AM -0400

Re: TomEE + CODI + Maven (bug)
by José Luis Cetina

REPLY TO AUTHOR
 
REPLY TO GROUP




Here is my resume of all my test:

1. If i run my app in tomee with eclipse indigo using this "example" (
http://openejb.apache.org/tomee-and-eclipse.html ) MyFaces + CODI = WORKS

2. If i run my app in tomee with NetBeans 7.x using ONLY MyFaces (not CODI)
= WORKS

3. If i run my app in tomee with NetBeans 7.x using MyFaces + CODI = DOESNT
WORK

4. If i drop the war file to webapps and RUN TomEE using MyFaces + CODI  =
WORKS

5. If i run TomEE and drop the war in webapps (hot deploy) using MyFaces +
CODI = WORKS

6. If run TOMEE and DONT drop the war file (MyFaces + CODI) in webapps and
try to deploy using the web interface  (localhost:8080/manager) = DOESNT
WORK

7. If i remove the FacesServlet from web.xml the app run and "use" CODI
dependency work (but of course im using a JSF app, and i need the
FacesServlet) = WORKS

8.If i deploy using the web interface  (localhost:8080/manager) and app
with only MyFaces (NOT CODI)  = WORKS


Maybe Netbeans (i dont know) use the same method for deploy (using
/manager) and that's why it doesnt work with Netbeans 7.x, maybe the
difference with Eclipse is the checked option (use Tomcat installation)
that the tutorial sayed.


What i mean with "DOESNT WORK" is this exception:
java.lang.IllegalStateException: No bean found for type:
org.apache.myfaces.extensions.cdi.core.api.config.CodiCoreConfig


Then, why the /manager doesnt work if i deploy the app with MyFaces + CODI
and it works with only MyFaces???



Thanks for your time.

SCJA. José Luis Cetina
Tester. Luis Castro


2012/5/24 Romain Manni-Bucau <rmannibucau@gmai...>

> hmm weird,
>
> here what i did (i already had your app in my local maven repo):
> 1) wget
>
> https://repository.apache.org/content/repositories/snapshots/org/apache/openejb/apache-tomee/1.0.0-beta-3-SNAPSHOT/apache-tomee-1.0.0-beta-3-20120524.201013-142-webprofile.zip
> 2) unzip apache-tomee-1.0.0-beta-3-20120524.201013-142-webprofile.zip
> 3) cd apache-tomee-webprofile-1.0.0-beta-3-SNAPSHOT/
> 4) cp
>
> /home/a185558/.m2/repository/com/codi/codi_test/1.0-SNAPSHOT/codi_test-1.0-SNAPSHOT.war
> webapps/
> 5) ./bin/catalina.sh run
>
> then go to http://localhost:8080/codi_test-1.0-SNAPSHOT/index.xhtml
>
> got things like:
>
> INFO: [Started] MyFaces CODI JSF-Module v1.0.5 for JSF 2.0
> Used JSF implementation: MyFaces Core v2.1.7
>
> config implementation:
> org.apache.myfaces.extensions.cdi.jsf.api.config.JsfModuleConfig
>   method: isInitialRedirectEnabled
>   value: true
>
>   method: isUseViewConfigsAsNavigationCasesEnabled
>   value: true
>
>   method: isInvalidValueAwareMessageInterpolatorEnabled
>   value: true
>
>   method: isAlwaysKeepMessages
>   value: true
>
> config implementation:
>
> org.apache.myfaces.extensions.cdi.core.api.scope.conversation.config.WindowContextConfig
>   method: isUrlParameterSupported
>   value: true
>
>   method: isUnknownWindowIdsAllowed
>   value: false
>
>   method: isAddWindowIdToActionUrlsEnabled
>   value: false
>
>   method: getWindowContextTimeoutInMinutes
>   value: 60
>
>   method: getMaxWindowContextCount
>   value: 64
>
>   method: isCloseEmptyWindowContextsEnabled
>   value: false
>
>   method: isEagerWindowContextDetectionEnabled
>   value: true
>
>   method: isCreateWindowContextEventEnabled
>   value: false
>
>   method: isCloseWindowContextEventEnabled
>   value: false
>
> config implementation:
>
> org.apache.myfaces.extensions.cdi.core.api.scope.conversation.config.ConversationConfig
>   method: getConversationTimeoutInMinutes
>   value: 30
>
>   method: isScopeBeanEventEnabled
>   value: false
>
>   method: isAccessBeanEventEnabled
>   value: false
>
>   method: isUnscopeBeanEventEnabled
>   value: false
>
>   method: isStartConversationEventEnabled
>   value: false
>
>   method: isCloseConversationEventEnabled
>   value: false
>
>   method: isRestartConversationEventEnabled
>   value: false
>
>   method: isConversationRequiredEnabled
>   value: true
>
> 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
>
> 24 mai 2012 23:41:14
> org.apache.myfaces.extensions.cdi.jpa.impl.JpaModuleStartupObserver
> logJpaModuleConfiguration
> INFO: [Started] MyFaces CODI JPA-Module v1.0.5
>
> 24 mai 2012 23:41:14
>
> org.apache.myfaces.extensions.cdi.bv.impl.BeanValidationModuleStartupObserver
> logBeanValidationModuleConfiguration
> INFO: [Started] MyFaces CODI Bean-Validation-Module v1.0.5
> 24 mai 2012 23:41:14
> org.apache.myfaces.extensions.cdi.jsf2.impl.ProjectStageObserver
> checkProjectStage
> ATTENTION: The value of the JSF 2 project stage (Development) is different
> from the CODI project stage (Production)
> 24 mai 2012 23:41:14
> org.apache.myfaces.extensions.cdi.core.impl.CoreStartupObserver
> logCoreConfiguration
> INFO: [Started] MyFaces CODI (Extensions CDI) Core v1.0.5
> Used CDI implementation: OpenWebBeans v1.1.4
>
> project-stage: Production
> project-stage class:
>
> org.apache.myfaces.extensions.cdi.core.api.projectstage.ProjectStage$Production
>
> application-parameters:
>   name: javax.faces.PROJECT_STAGE
>   value: Development
>
>   name: javax.faces.STATE_SAVING_METHOD
>   value: server
>
>   name: org.apache.myfaces.LOG_WEB_CONTEXT_PARAMS
>   value: false
>
> config implementation:
> org.apache.myfaces.extensions.cdi.core.api.config.CodiCoreConfig
>   method: isAdvancedQualifierRequiredForDependencyInjection
>   value: true
>
>   method: isConfigurationLoggingEnabled
>   value: true
>
>   method: isInvalidBeanCreationEventEnabled
>   value: false
>
>
> 24 mai 2012 23:41:14
>
> org.apache.myfaces.extensions.cdi.scripting.impl.ScriptingModuleStartupObserver
> logScriptingModuleConfiguration
> INFO: [Started] MyFaces CODI Scripting-Module v1.0.5
>
>
> and in the browser:
> This is a test
> Reading from managedbean: Hell
>
> - Romain
>
>
> 2012/5/24 maxtorzito <maxtorzito@gmai...>
>
> > The same problem.
> >
> > Incredible
> >
> > 2012/5/24 Romain Manni-Bucau [via OpenEJB] <
> > ml-node+s979440n4653578h76@n4.n...>
> >
> > > just redeployed a snapshot (
> > >
> > >
> >
> https://repository.apache.org/content/repositories/snapshots/org/apache/openejb/apache-tomee/1.0.0-beta-3-SNAPSHOT/apache-tomee-1.0.0-beta-3-20120524.201013-142-webprofile.zip
> > > )
> > >
> > > can you give it a try please?
> > >
> > > - Romain
> > >
> > >
> > > 2012/5/24 maxtorzito <[hidden email]<
> > http://user/SendEmail.jtp?type=node&node=4653578&i=0>>
> > >
> > >
> > > > i did the same thing as you sayed, i droped the war in webapps and
> when
> > > i
> > > > start tomcat i get the same exception:
> > > >
> > > > may 24, 2012 2:51:25 PM org.apache.catalina.core.ApplicationContext
> log
> > > > Grave: StandardWrapper.Throwable
> > > > java.lang.IllegalStateException: No bean found for type:
> > > > org.apache.myfaces.extensions.cdi.core.api.config.CodiCoreConfig
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > 2012/5/24 Romain Manni-Bucau [via OpenEJB] <
> > > > [hidden email] <http://user/SendEmail.jtp?type=node&node=4653578&i=1
> >>
> > > >
> > > > > i used you project, copied the codi_test.war in webapps and run
> > > > > bin/catalina.sh run
> > > > >
> > > > > the only different thing i did was to build tomee from sources
> > > > >
> > > > > - Romain
> > > > >
> > > > >
> > > > > 2012/5/24 maxtorzito <[hidden email]<
> > > > http://user/SendEmail.jtp?type=node&node=4653465&i=0>>
> > > > >
> > > > >
> > > > > > i downloaded a few minutes ago the 141
> > > > > > (apache-tomee-1.0.0-beta-3-20120524.041013-141-webprofile.zip)
> > build
> > > > and
> > > > > > have the same problem, are you using maven?
> > > > > >
> > > > > > i tried to deploy from netbeans and tomcat manager and with both
> > the
> > > > > same
> > > > > > problem.
> > > > > >
> > > > > > The CODI jar (myfaces-extcdi-bundle-jsf20-1.0.5.jar) is in
> > > WEB-INF/lib
> > > > i
> > > > > > dont have it in tomcat/lib, what can be?
> > > > > >
> > > > > > Im triying to run tomee + codi since beta 1.0
> > > > > >
> > > > > > this is my pom.xml
> > > > > >
> > > > > > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> > > > > > http://www.w3.org/2001/XMLSchema-instance"
> > > > > >         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > > > > > http://maven.apache.org/maven-v4_0_0.xsd">
> > > > > >    <modelVersion>4.0.0</modelVersion>
> > > > > >    <groupId>com.codi</groupId>
> > > > > >    <artifactId>codi_test</artifactId>
> > > > > >    <packaging>war</packaging>
> > > > > >    <version>1.0-SNAPSHOT</version>
> > > > > >    <name>codi_test Maven Webapp</name>
> > > > > >    <url>http://maven.apache.org</url>
> > > > > >
> > > > > >
> > > > > >    <dependencies>
> > > > > >        <dependency>
> > > > > >            <groupId>org.apache.openejb</groupId>
> > > > > >            <artifactId>apache-tomee</artifactId>
> > > > > >            <version>1.0.0</version>
> > > > > >            <classifier>webprofile</classifier>
> > > > > >            <type>zip</type>
> > > > > >            <scope>provided</scope>
> > > > > >        </dependency>
> > > > > >
> > > > > >        <dependency>
> > > > > >            <groupId>org.apache.myfaces.core</groupId>
> > > > > >            <artifactId>myfaces-api</artifactId>
> > > > > >            <version>2.1.7</version>
> > > > > >            <scope>provided</scope>
> > > > > >        </dependency>
> > > > > >        <dependency>
> > > > > >            <groupId>org.apache.myfaces.core</groupId>
> > > > > >            <artifactId>myfaces-impl</artifactId>
> > > > > >            <version>2.1.7</version>
> > > > > >            <scope>provided</scope>
> > > > > >        </dependency>
> > > > > >
> > > > > >         <!--IF YOU REMOVE CODI DEPENDECY WORKS-->
> > > > > >         <dependency>
> > > > > >
> > >  <groupId>org.apache.myfaces.extensions.cdi.bundles</groupId>
> > > > > >            <artifactId>myfaces-extcdi-bundle-jsf20</artifactId>
> > > > > >            <version>1.0.5</version>
> > > > > >            <scope>compile</scope>
> > > > > >        </dependency>
> > > > > >     </dependencies>
> > > > > >    <build>
> > > > > >        <plugins>
> > > > > >            <plugin>
> > > > > >                <groupId>org.apache.maven.plugins</groupId>
> > > > > >                <artifactId>maven-compiler-plugin</artifactId>
> > > > > >                <version>2.3.2</version>
> > > > > >                <configuration>
> > > > > >                    <source>1.7</source>
> > > > > >                    <target>1.7</target>
> > > > > >
> > >  <encoding>${project.build.sourceEncoding}</encoding>
> > > > > >                </configuration>
> > > > > >            </plugin>
> > > > > >            <plugin>
> > > > > >                <groupId>org.apache.maven.plugins</groupId>
> > > > > >                <artifactId>maven-resources-plugin</artifactId>
> > > > > >                <version>2.4.3</version>
> > > > > >                <configuration>
> > > > > >
> > >  <encoding>${project.build.sourceEncoding}</encoding>
> > > > > >                </configuration>
> > > > > >            </plugin>
> > > > > >            <plugin>
> > > > > >                <groupId>org.apache.maven.plugins</groupId>
> > > > > >                <artifactId>maven-war-plugin</artifactId>
> > > > > >                <version>2.1.1</version>
> > > > > >                <configuration>
> > > > > >
>  <failOnMissingWebXml>true</failOnMissingWebXml>
> > > > > >
> > > > >  <packagingExcludes>WEB-INF/web.xml</packagingExcludes>
> > > > > >                </configuration>
> > > > > >            </plugin>
> > > > > >
> > > > > >        </plugins>
> > > > > >        <finalName>codi_test</finalName>
> > > > > >    </build>
> > > > > >    <properties>
> > > > > >
> > > > > >
> > > > >  <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> > > > > >
> > > > > <netbeans.hint.deploy.server>Tomcat</netbeans.hint.deploy.server>
> > > > > >    </properties>
> > > > > > </project>
> > > > > >
> > > > > >
> > > > > > can you share your pom or configuration.
> > > > > >
> > > > > > Thanks
> > > > > >
> > > > > >
> > > > > >
> > > > > > 2012/5/24 Romain Manni-Bucau [via OpenEJB] <
> > > > > > [hidden email] <
> > http://user/SendEmail.jtp?type=node&node=4653465&i=1>>
> > >
> > > > > >
> > > > > > > Hi,
> > > > > > >
> > > > > > > there is the build n°141.
> > > > > > >
> > > > > > > i just tested locally and didnt get any exception so maybe the
> > 140
> > > > > doesnt
> > > > > > > contain the fix.
> > > > > > >
> > > > > > > - Romain
> > > > > > >
> > > > > > >
> > > > > > > 2012/5/24 maxtorzito <[hidden email]<
> > > > > > http://user/SendEmail.jtp?type=node&node=4653339&i=0>>
> > > > > > >
> > > > > > >
> > > > > > > > i downloaded
> > > > > > > apache-tomee-1.0.0-beta-3-20120523.041020-140-webprofile.zip
> > > > > > > > file from:
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> https://repository.apache.org/content/repositories/snapshots/org/apache/openejb/apache-tomee/1.0.0-beta-3-SNAPSHOT/
> > > > > > > >
> > > > > > > > And i have the same problem
> > > > > > > >
> > > > > > > > is the correct URL?
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > View this message in context:
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> http://openejb.979440.n4.nabble.com/TomEE-CODI-Maven-bug-tp4643767p4653315.html
> > > > > > >
> > > > > > > > Sent from the OpenEJB User mailing list archive at
> Nabble.com.
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ------------------------------
> > > > > > >  If you reply to this email, your message will be added to the
> > > > > discussion
> > > > > > > below:
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> http://openejb.979440.n4.nabble.com/TomEE-CODI-Maven-bug-tp4643767p4653339.html
> > > > > > >  To unsubscribe from TomEE + CODI + Maven (bug), click here<
> > > > > >
> > > > > >
> > > > > > > .
> > > > > > > NAML<
> > > > > >
> > > > >
> > > >
> > >
> >
> http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > >
> -------------------------------------------------------------------
> > > > > > *SCJA. José Luis Cetina*
> > > > > >
> -------------------------------------------------------------------
> > > > > >
> > > > > >
> > > > > > --
> > > > > > View this message in context:
> > > > > >
> > > > >
> > > >
> > >
> >
> http://openejb.979440.n4.nabble.com/TomEE-CODI-Maven-bug-tp4643767p4653438.html
> > > > >
> > > > > > Sent from the OpenEJB User mailing list archive at Nabble.com.
> > > > > >
> > > > >
> > > > >
> > > > > ------------------------------
> > > > >  If you reply to this email, your message will be added to the
> > > discussion
> > > > > below:
> > > > >
> > > > >
> > > >
> > >
> >
> http://openejb.979440.n4.nabble.com/TomEE-CODI-Maven-bug-tp4643767p4653465.html
> > >
> > > > >  To unsubscribe from TomEE + CODI + Maven (bug), click here<
> > > >
> > > >
> > > > > .
> > > > > NAML<
> > > >
> > >
> >
> http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > -------------------------------------------------------------------
> > > > *SCJA. José Luis Cetina*
> > > > -------------------------------------------------------------------
> > > >
> > > >
> > > > --
> > > > View this message in context:
> > > >
> > >
> >
> http://openejb.979440.n4.nabble.com/TomEE-CODI-Maven-bug-tp4643767p4653525.html
> > >
> > > > Sent from the OpenEJB User mailing list archive at Nabble.com.
> > > >
> > >
> > >
> > > ------------------------------
> > >  If you reply to this email, your message will be added to the
> discussion
> > > below:
> > >
> > >
> >
> http://openejb.979440.n4.nabble.com/TomEE-CODI-Maven-bug-tp4643767p4653578.html
> > >  To unsubscribe from TomEE + CODI + Maven (bug), click here<
> >
> http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4643767&code=bWF4dG9yeml0b0BnbWFpbC5jb218NDY0Mzc2N3wtMTkzNTA1NzA0Mg==
> > >
> > > .
> > > NAML<
> >
> http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> > >
> > >
> >
> >
> >
> > --
> > -------------------------------------------------------------------
> > *SCJA. José Luis Cetina*
> > -------------------------------------------------------------------
> >
> >
> > --
> > View this message in context:
> >
> http://openejb.979440.n4.nabble.com/TomEE-CODI-Maven-bug-tp4643767p4653723.html
> > Sent from the OpenEJB User mailing list archive at Nabble.com.
> >
>



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

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.