1 2 Previous Next 18 Replies Latest reply on May 21, 2012 10:45 PM by pepelara

    seam-booking fails on BookingLog class calling

    pepelara

      Hi,

       

      Here is the stacktrace of the exception thrown when I try to view a searched hotel,

       

      org.jboss.weld.exceptions.CreationException: WELD-000079 Could not find the EJB in JNDI:  class org.jboss.seam.examples.booking.booking.BookingAgent$Proxy$_$$_Weld$Proxy$
       at org.jboss.weld.bean.SessionBean.create(SessionBean.java:306)
       at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:107)
       at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:90)
       at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:79)
       at org.jboss.seam.examples.booking.booking.BookingAgent$Proxy$_$$_WeldClientProxy.toString(BookingAgent$Proxy$_$$_WeldClientProxy.java)
       at java.text.MessageFormat.subformat(MessageFormat.java:1271)
       at java.text.MessageFormat.format(MessageFormat.java:819)
       at org.apache.el.util.MessageFactory.get(MessageFactory.java:46)
       at org.apache.el.util.ReflectionUtil.getMethod(ReflectionUtil.java:224)
       at org.apache.el.parser.AstValue.invoke(AstValue.java:251)
       at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278)
       at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:39)
       at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)
       at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
       at org.jboss.seam.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:63)
       at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
       at org.jboss.seam.faces.component.UIViewAction.broadcast(UIViewAction.java:381)
       at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
       at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
       at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
       at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
       at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
       at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:126)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
       at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734)
       at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:541)
       at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:479)
       at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:407)
       at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
       at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)
       at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:154)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
       at java.lang.Thread.run(Thread.java:722)
      Caused by: java.lang.IllegalStateException: JBAS011048: Failed to construct component instance
       at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:163)
       at org.jboss.as.ejb3.component.stateful.StatefulSessionComponent.constructComponentInstance(StatefulSessionComponent.java:137)
       at org.jboss.as.ejb3.component.stateful.StatefulSessionComponent.constructComponentInstance(StatefulSessionComponent.java:69)
       at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:85)
       at org.jboss.as.ejb3.component.stateful.StatefulSessionComponent.createInstance(StatefulSessionComponent.java:126)
       at org.jboss.as.ejb3.component.stateful.StatefulSessionComponent.createInstance(StatefulSessionComponent.java:69)
       at org.jboss.as.ejb3.cache.TransactionAwareObjectFactory.createInstance(TransactionAwareObjectFactory.java:52)
       at org.jboss.as.ejb3.cache.impl.backing.NonPassivatingBackingCacheImpl.create(NonPassivatingBackingCacheImpl.java:97)
       at org.jboss.as.ejb3.cache.impl.backing.NonPassivatingBackingCacheImpl.create(NonPassivatingBackingCacheImpl.java:56)
       at org.jboss.as.ejb3.cache.spi.impl.AbstractCache.create(AbstractCache.java:48)
       at org.jboss.as.ejb3.cache.impl.SimpleCache.create(SimpleCache.java:69)
       at org.jboss.as.ejb3.cache.impl.SimpleCache.create(SimpleCache.java:40)
       at org.jboss.as.ejb3.component.stateful.StatefulSessionComponent.createSession(StatefulSessionComponent.java:224)
       at org.jboss.as.weld.ejb.StatefulSessionObjectReferenceImpl.<init>(StatefulSessionObjectReferenceImpl.java:69)
       at org.jboss.as.weld.services.bootstrap.WeldEjbServices.resolveEjb(WeldEjbServices.java:60)
       at org.jboss.weld.bean.SessionBean.createReference(SessionBean.java:408)
       at org.jboss.weld.bean.proxy.EnterpriseBeanProxyMethodHandler.<init>(EnterpriseBeanProxyMethodHandler.java:69)
       at org.jboss.weld.bean.SessionBean.create(SessionBean.java:296)
       ... 46 more
      Caused by: java.lang.IllegalArgumentException: Invalid logger interface org.jboss.seam.examples.booking.log.BookingLog (implementation not found)
       at org.jboss.solder.logging.Logger.getMessageLogger(Logger.java:2061)
       at org.jboss.solder.logging.Logger.getMessageLogger(Logger.java:2017)
       at org.jboss.solder.logging.TypedMessageLoggerProducer.produceTypedLogger(TypedMessageLoggerProducer.java:57)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:601)
       at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:264)
       at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52)
       at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137)
       at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:260)
       at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:170)
       at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstance(MethodInjectionPoint.java:137)
       at org.jboss.weld.bean.ProducerMethod$1.produce(ProducerMethod.java:133)
       at org.jboss.weld.bean.AbstractProducerBean.create(AbstractProducerBean.java:299)
       at org.jboss.solder.bean.ImmutableNarrowingBean.create(ImmutableNarrowingBean.java:100)
       at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:61)
       at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:616)
       at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:681)
       at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:118)
       at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:703)
       at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:712)
       at org.jboss.weld.bean.SessionBean$1$1.proceed(SessionBean.java:176)
       at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:48)
       at org.jboss.weld.bean.SessionBean$1.inject(SessionBean.java:173)
       at org.jboss.as.weld.injection.WeldEEInjection.inject(WeldEEInjection.java:78)
       at org.jboss.as.weld.injection.WeldInjectionInterceptor.processInvocation(WeldInjectionInterceptor.java:60)
       at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
       at org.jboss.as.ee.component.ManagedReferenceFieldInjectionInterceptorFactory$ManagedReferenceFieldInjectionInterceptor.processInvocation(ManagedReferenceFieldInjectionInterceptorFactory.java:112)
       at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
       at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
       at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
       at org.jboss.as.ee.component.ManagedReferenceInterceptorFactory$ManagedReferenceInterceptor.processInvocation(ManagedReferenceInterceptorFactory.java:95)
       at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
       at org.jboss.as.ee.component.ManagedReferenceInterceptorFactory$ManagedReferenceInterceptor.processInvocation(ManagedReferenceInterceptorFactory.java:95)
       at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
       at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
       at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
       at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
       at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
       at org.jboss.as.jpa.interceptor.SFSBPreCreateInterceptor.processInvocation(SFSBPreCreateInterceptor.java:46)
       at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
       at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
       at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
       at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
       at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
       at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
       at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:161)
       ... 63 more
      

       

      My OS is Ubuntu 11.10 but I remember the same exception in my old OS Win XP. The solution in Windows was comment every call

      to the BookingLog class but now I would like to get it works.

       

      I am using Eclipse Indigo, JDK 7 and JBoss AS 7.1.0.Final

       

      Kind regards,

      jose

        • 1. Re: seam-booking fails on BookingLog class calling
          lightguard

          Which version of the booking example? Looks like solder-tools isn't in the pom.

          • 2. Re: seam-booking fails on BookingLog class calling
            pepelara

            Hi,

             

            It is Seam 3.1.0.Final version.

             

            Here is my pom.xml file,

             

            <?xml version="1.0" encoding="UTF-8"?>
            <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
              <modelVersion>4.0.0</modelVersion>
              <groupId>com.example.project</groupId>
              <artifactId>seam-booking</artifactId>
              <version>1.0.0-SNAPSHOT</version>
              <packaging>war</packaging>
              <name>Seam Booking Example</name>
              <description>The Seam booking example using the simplified Java EE 6 programming model and packaging structure (i.e., web archive)</description>
              <url>http://seamframework.org/Seam3</url>
            
              <properties>
                  <jpamodelgen.version>1.1.1.Final</jpamodelgen.version>
                  <seam.version>3.1.0.Final</seam.version>
              </properties>
              
              <dependencyManagement>
                <dependencies>
                  
                  <dependency>
                    <groupId>org.jboss.spec</groupId>
                    <artifactId>jboss-javaee-6.0</artifactId>
                    <version>2.0.0.Final</version>
                    <type>pom</type>
                    <scope>import</scope>
                  </dependency>
                  
                  <dependency>
                    <groupId>org.jboss.seam</groupId>
                    <artifactId>seam-bom</artifactId>
                    <version>${seam.version}</version>
                    <type>pom</type>
                    <scope>import</scope>
                  </dependency>
                  
                </dependencies>
              </dependencyManagement>
            
              <dependencies>
            
            <!-- Annotation processor for generating typed loggers -->
                    <dependency>
                        <groupId>org.jboss.solder</groupId>
                        <artifactId>solder-tooling</artifactId>
                        <scope>provided</scope>
                        <optional>true</optional>
                    </dependency>
            
                    <dependency>
                        <groupId>org.jboss.solder</groupId>
                        <artifactId>solder-impl</artifactId>
                    </dependency>
            
                    <dependency>
                        <groupId>org.hibernate</groupId>
                        <artifactId>hibernate-jpamodelgen</artifactId>
                        <version>${jpamodelgen.version}</version>
                        <scope>provided</scope>
                        <!-- Excluded Hibernate-provided JPA API because it's provided by the Java EE 6 dependencies -->
                        <exclusions>
                            <exclusion>
                                <groupId>org.hibernate.javax.persistence</groupId>
                                <artifactId>hibernate-jpa-2.0-api</artifactId>
                            </exclusion>
                        </exclusions>
                    </dependency>
                
                    <dependency>
                        <groupId>org.jboss.seam.faces</groupId>
                        <artifactId>seam-faces</artifactId>
                        <scope>compile</scope><!-- Temporary workaround for GLASSFISH-17184 -->
                    </dependency>
                    
                    <dependency>
                        <groupId>org.jboss.seam.international</groupId>
                        <artifactId>seam-international</artifactId>
                    </dependency>
                    
                    <dependency>
                       <groupId>org.jboss.seam.security</groupId>
                       <artifactId>seam-security</artifactId>
                       <scope>compile</scope>
                    </dependency>
                    
                    <dependency>
                       <groupId>org.jboss.seam.transaction</groupId>
                       <artifactId>seam-transaction</artifactId>
                       <scope>compile</scope>
                    </dependency>
                    
                    <dependency>
                        <groupId>org.picketlink.idm</groupId>
                        <artifactId>picketlink-idm-core</artifactId>
                    </dependency>
                    
                    <dependency>
                        <groupId>com.ocpsoft</groupId>
                        <artifactId>ocpsoft-pretty-time</artifactId>
                    </dependency>
            
                    <dependency>
                        <groupId>com.ocpsoft</groupId>
                        <artifactId>prettyfaces-jsf2</artifactId>
                    </dependency>
                    
                    <dependency>
                     <groupId>commons-digester</groupId>
                     <artifactId>commons-digester</artifactId>
                     <version>2.1</version>
                    </dependency>
                    
                    <!-- Bean Validation Implementation; provides portable constraints @NotEmpty, @Email and @Url -->
                    <!-- Hibernate Validator is the only JSR-303 implementation at the moment, so we can assume it's provided -->
                    <!-- TODO Move Hibernate Validator to app server specific sections -->
                    <dependency>
                        <groupId>org.hibernate.</groupId>
                        <artifactId>hibernate-validator</artifactId>
                        <version>4.1.0.Final</version>
                        <scope>provided</scope>
                    </dependency>
            
                    <dependency>
                        <groupId>joda-time</groupId>
                        <artifactId>joda-time</artifactId>
                    </dependency>
            
                    <dependency>
                        <groupId>org.jboss.spec</groupId>
                        <artifactId>jboss-javaee-6.0</artifactId>
                        <type>pom</type>
                        <scope>provided</scope>
                    </dependency>
                    
                    <dependency>
                          <groupId>org.drools</groupId>
                          <artifactId>org.drools.eclipse</artifactId>
                          <version>5.4.0.Beta2</version>
                    </dependency>   
                
              </dependencies>
              
              <repositories>
                <repository>
                  <id>JBOSS_NEXUS</id>
                  <url>http://repository.jboss.org/nexus/content/groups/public</url>
                </repository>
              </repositories>
              
              <build>
                <finalName>seam-booking</finalName>
                <plugins>
                  <plugin>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>2.3.2</version>
                    <configuration>
                      <source>1.6</source>
                      <target>1.6</target>
                      <encoding>UTF-8</encoding>
                    </configuration>
                  </plugin>
                  <plugin>
                    <artifactId>maven-war-plugin</artifactId>
                    <version>2.1.1</version>
                    <extensions>false</extensions>
                    <configuration>
                      <failOnMissingWebXml>false</failOnMissingWebXml>
                    </configuration>
                  </plugin>
                </plugins>
              </build>
              
            </project>
            

             

            When you say solder-tools you are talking about

            <artifactId>solder-tooling</artifactId>

            the first dependency, does not it?

             

            Please let me know if I need any other dependency.

             

            Regards,

            jose

            • 3. Re: seam-booking fails on BookingLog class calling
              lightguard

              Any difference if you take out the optional on it?

              • 4. Re: seam-booking fails on BookingLog class calling
                pepelara

                Sorry, I do not understand what are you meaning.

                • 5. Re: seam-booking fails on BookingLog class calling
                  lightguard

                          <dependency>
                              <groupId>org.jboss.solder</groupId>
                              <artifactId>solder-tooling</artifactId>
                              <scope>provided</scope>
                              <optional>true</optional>
                          </dependency>

                   

                  to

                   

                          <dependency>
                              <groupId>org.jboss.solder</groupId>
                              <artifactId>solder-tooling</artifactId>
                              <scope>provided</scope>
                          </dependency>

                  • 6. Re: seam-booking fails on BookingLog class calling
                    pepelara

                    Yes I did it but still does not work.

                    I get the same exception.

                     

                    jose

                     

                    El mensaje fue editado por: José Alvarez de Lara

                    • 7. Re: seam-booking fails on BookingLog class calling
                      pepelara

                      Hi Jason,

                       

                      This is what I think, it is not possible to call the BookingLog interface methods because they have not implementation,

                       

                      Caused by: java.lang.IllegalArgumentException: Invalid logger interface org.jboss.seam.examples.booking.log.BookingLog (implementation not found)

                       

                      The only one possibility is that BookingAgent class implements the interface and inside of it gives

                      body to that methods.

                       

                      If exists any other possibility let me know it.

                       

                      kind regards,

                      Jose

                      • 8. Re: seam-booking fails on BookingLog class calling
                        pepelara

                        Hi,

                         

                        This is what I did, convert the BookingLog interface into a class

                        and their methods with empty body,

                         

                        @MessageLogger
                        public class BookingLog {
                            @Log(level = Level.INFO)
                            @Message("%s selected the %s in %s.")
                            public void hotelSelected(String customerName, String hotelName, String city){
                                
                            }
                        
                            @Log(level = Level.INFO)
                            @Message("%s initiated a booking at the %s.")
                            public void bookingInitiated(String customerName, String hotelName){
                                
                            }
                        
                            // QUESTION can positional parameters be used in message string?
                            @Log(level = Level.INFO)
                            @Message("New booking at the %s confirmed for %s.")
                            public void bookingConfirmed(String hotelName, String customerName){
                                
                            }
                        
                            @Log(level = Level.INFO)
                            @Message("Does the persistence context still contain the hotel instance? %s")
                            public void hotelEntityInPersistenceContext(boolean state){
                                
                            }
                        }
                        

                         

                        and inject it into BookingAgent class.

                         

                        Now I need your help because I get an ambiguous dependency on deployment.

                         

                        jose

                        • 9. Re: seam-booking fails on BookingLog class calling
                          lightguard

                          I just checked out the 3.1.0.Final tag for the booking example, built it (no special flags just mvn clean package) and deployed it to JBoss AS7 7.1.0.Final. I got some infos about not having drools, but it worked fine.

                          • 10. Re: seam-booking fails on BookingLog class calling
                            pepelara

                            Hi Jason,

                             

                            The last question, will you post your pom.xml file?

                             

                            Regards,

                            jose

                            • 12. Re: seam-booking fails on BookingLog class calling

                              Hi,  Jason Porter

                               

                              I have the same problem when I compiled the project with Eclipse Indigo Service Release 1. It works well if I compiled it with commnad "mvn clean package -Pjbossas7".

                              I find there one compiled file difference: no BookingLog_$logger.class if compiled the project with Eclipse.

                               

                              JDK 1.7.0_03.

                              apache-maven-3.0.4

                               

                               

                               

                              • 13. Re: seam-booking fails on BookingLog class calling
                                lightguard

                                Albert Liu wrote:

                                 

                                Hi,  Jason Porter

                                 

                                I have the same problem when I compiled the project with Eclipse Indigo Service Release 1. It works well if I compiled it with commnad "mvn clean package -Pjbossas7".

                                I find there one compiled file difference: no BookingLog_$logger.class if compiled the project with Eclipse.

                                 

                                JDK 1.7.0_03.

                                apache-maven-3.0.4

                                 

                                I don't use Eclipse, nor do I build my projects with the IDE However, my suspicion is that the annotation processors are not being called by eclipse.

                                1 of 1 people found this helpful
                                • 14. Re: seam-booking fails on BookingLog class calling
                                  khosro_question

                                  Hi ,

                                  To setup  annotation processors for a project in Eclipse follow these steps:

                                  1.Righ click on project and select Properties and in "Java Compiler ->Annotation Processing",in right side checked "Enable project specific settings" and also checked "Enable annotation processing" and checked "Enable processing in editor", in textbox "Generated source dicretory" write something (default is .apt_generated,default is appropriate). 

                                  2.Then go to "Java Compiler ->Annotation Processing->Factory Path " ,in right side ,checked "Enable project specific settings" ,and then add these jar files : "jboss-logging-generator-1.0.0.CR3.jar"

                                  ,"solder-api-3.1.0.Final.jar","solder-impl-3.1.0.Final.jar","solder-logging-3.1.0.Final.jar","solder-tooling-3.1.0.Final.jar" and also add tools.jar from JDK(maybe located in $JAVA_HOME/lib/tools.jar).

                                  3.And click OK to build project .

                                  4.After that in your project folder ,there must be a folder named ".apt_generated" (maybe it is hidden).And in this folder there must be a file named ".apt_generated/org/jboss/seam/examples/booking/log/BookingLog_$logger.java"

                                  5.Then Righ click on project  and select Properties ,in "Java build path" , in "Source" tab add .apt_generated(maybe it is added before).

                                   

                                  When you deploy project from Eclipse to "JBoss AS7" you must see these files "BookingLog_$logger.class" ,"BookingLog.i18n.propertiesin" and "BookingLog.class" in path "JBOSSAS_HOME/standalone/deployments/seam-booking.war/WEB-INF/classes/org/jboss/seam/examples/booking/log".

                                   

                                  Hope it helps.

                                   

                                  Khosro.

                                  1 2 Previous Next