You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Howard M. Lewis Ship (Commented) (JIRA)" <ji...@apache.org> on 2011/12/05 22:48:41 UTC

[jira] [Commented] (TAP5-1771) Live Class Reloading not working using mvn:jetty run

    [ https://issues.apache.org/jira/browse/TAP5-1771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13163074#comment-13163074 ] 

Howard M. Lewis Ship commented on TAP5-1771:
--------------------------------------------

Live class reloading is intended for Jetty, from inside the IDE.  I do not know that mvn jetty:run is capable of seeing changing to .java files and doing a recompile (Tapestry's job picks up when it sees changes to the .class files).  Unless you can show me that Maven is compiling the files, I'll have to close this as invalid.  Please research in the tutorial how to run the application from inside the IDE.
                
> Live Class Reloading not working using mvn:jetty run
> ----------------------------------------------------
>
>                 Key: TAP5-1771
>                 URL: https://issues.apache.org/jira/browse/TAP5-1771
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3
>         Environment: # mvn -version
> Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
> Maven home: /opt/maven/maven
> Java version: 1.6.0_29, vendor: Sun Microsystems Inc.
> Java home: /opt/jdk6/jdk1.6.0_29/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "2.6.18-274.7.1.el5.centos.plus", arch: "i386", family: "unix"
>            Reporter: Stan S
>            Assignee: Howard M. Lewis Ship
>
> I am following the Tapestry tutorial at http://tapestry.apache.org/exploring-the-project.html
> I've run mvn:jetty and everything works fine until I reach the part about live class reloading in the "A Magic Trick" section.
> Changing the currentTime() method to:
>  public String getCurrentTime()
>  {
>     return "A great day to learn Tapestry";
>  }
> And then reloading the web page does not reload the changes and I'm still seeing Current Date/Time.
> Here is the output of mvn jetty:run:
> [root@bagvapp tutorial1]# mvn jetty:run
> [INFO] Scanning for projects...
> [INFO]                                                                         
> [INFO] ------------------------------------------------------------------------
> [INFO] Building tutorial1 Tapestry 5 Application 1.0-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] >>> maven-jetty-plugin:6.1.16:run (default-cli) @ tutorial1 >>>
> [INFO] 
> [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ tutorial1 ---
> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
> [INFO] Copying 6 resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ tutorial1 ---
> [INFO] Nothing to compile - all classes are up to date
> [INFO] 
> [INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ tutorial1 ---
> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
> [INFO] Copying 1 resource
> [INFO] 
> [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ tutorial1 ---
> [INFO] Nothing to compile - all classes are up to date
> [INFO] 
> [INFO] <<< maven-jetty-plugin:6.1.16:run (default-cli) @ tutorial1 <<<
> [INFO] 
> [INFO] --- maven-jetty-plugin:6.1.16:run (default-cli) @ tutorial1 ---
> [INFO] Configuring Jetty for project: tutorial1 Tapestry 5 Application
> [INFO] Webapp source directory = /opt/tapestry/tutorial1/src/main/webapp
> [INFO] Reload Mechanic: automatic
> [INFO] web.xml file = /opt/tapestry/tutorial1/src/main/webapp/WEB-INF/web.xml
> [INFO] Classes = /opt/tapestry/tutorial1/target/classes
> 2011-12-05 21:21:38.774::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
> [INFO] Context path = /tutorial1
> [INFO] Tmp directory =  determined at runtime
> [INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml
> [INFO] Web overrides =  none
> [INFO] Webapp directory = /opt/tapestry/tutorial1/src/main/webapp
> [INFO] Starting jetty 6.1.16 ...
> 2011-12-05 21:21:39.175::INFO:  jetty-6.1.16
> 2011-12-05 21:21:39.277::INFO:  No Transaction manager found - if your webapp requires one, please configure one.
> [INFO] ioc.RegistryBuilder Adding module definition for class org.apache.tapestry5.ioc.services.TapestryIOCModule
> [INFO] ioc.RegistryBuilder Adding module definition for class org.apache.tapestry5.json.services.JSONModule
> [INFO] ioc.RegistryBuilder Adding module definition for class org.apache.tapestry5.yuicompressor.services.YuiCompressorModule
> [INFO] ioc.RegistryBuilder Adding module definition for class org.apache.tapestry5.services.TapestryModule
> [INFO] ioc.RegistryBuilder Adding module definition for class org.apache.tapestry5.internal.services.InternalModule
> [INFO] ioc.RegistryBuilder Adding module definition for class org.apache.tapestry5.services.assets.AssetsModule
> [INFO] ioc.RegistryBuilder Adding module definition for class org.apache.tapestry5.services.pageload.PageLoadModule
> [INFO] ioc.RegistryBuilder Adding module definition for class com.example.tutorial.services.AppModule
> [INFO] ioc.RegistryBuilder Adding module definition for class com.example.tutorial.services.DevelopmentModule
> [INFO] TapestryModule.ComponentClassResolver Available pages (8):
>               (blank): com.example.tutorial.pages.Index
>                 About: com.example.tutorial.pages.About
>               Contact: com.example.tutorial.pages.Contact
>       ExceptionReport: org.apache.tapestry5.corelib.pages.ExceptionReport
>                 Index: com.example.tutorial.pages.Index
>           PageCatalog: org.apache.tapestry5.corelib.pages.PageCatalog
> PropertyDisplayBlocks: org.apache.tapestry5.corelib.pages.PropertyDisplayBlocks
>    PropertyEditBlocks: org.apache.tapestry5.corelib.pages.PropertyEditBlocks
>         ServiceStatus: org.apache.tapestry5.corelib.pages.ServiceStatus
> [INFO] TapestryModule.ComponentClassResolver Available components (55):
>                ActionLink: org.apache.tapestry5.corelib.components.ActionLink
>                AddRowLink: org.apache.tapestry5.corelib.components.AddRowLink
>              AjaxFormLoop: org.apache.tapestry5.corelib.components.AjaxFormLoop
>                    Alerts: org.apache.tapestry5.corelib.components.Alerts
>                       Any: org.apache.tapestry5.corelib.components.Any
>               BeanDisplay: org.apache.tapestry5.corelib.components.BeanDisplay
>              BeanEditForm: org.apache.tapestry5.corelib.components.BeanEditForm
>                BeanEditor: org.apache.tapestry5.corelib.components.BeanEditor
>                  Checkbox: org.apache.tapestry5.corelib.components.Checkbox
>                 Checklist: org.apache.tapestry5.corelib.components.Checklist
>                 DateField: org.apache.tapestry5.corelib.components.DateField
>                  Delegate: org.apache.tapestry5.corelib.components.Delegate
>                   Doctype: org.apache.tapestry5.corelib.components.Doctype
>                   Dynamic: org.apache.tapestry5.corelib.components.Dynamic
>                     Error: org.apache.tapestry5.corelib.components.Error
>                    Errors: org.apache.tapestry5.corelib.components.Errors
>                 EventLink: org.apache.tapestry5.corelib.components.EventLink
>          ExceptionDisplay: org.apache.tapestry5.corelib.components.ExceptionDisplay
>                      Form: org.apache.tapestry5.corelib.components.Form
>              FormFragment: org.apache.tapestry5.corelib.components.FormFragment
>              FormInjector: org.apache.tapestry5.corelib.components.FormInjector
>                      Grid: org.apache.tapestry5.corelib.components.Grid
>                  GridCell: org.apache.tapestry5.corelib.components.GridCell
>               GridColumns: org.apache.tapestry5.corelib.components.GridColumns
>                 GridPager: org.apache.tapestry5.corelib.components.GridPager
>                  GridRows: org.apache.tapestry5.corelib.components.GridRows
>                    Hidden: org.apache.tapestry5.corelib.components.Hidden
>                        If: org.apache.tapestry5.corelib.components.If
>                     Label: org.apache.tapestry5.corelib.components.Label
>                    Layout: com.example.tutorial.components.Layout
>                LinkSubmit: org.apache.tapestry5.corelib.components.LinkSubmit
>                      Loop: org.apache.tapestry5.corelib.components.Loop
>                    Output: org.apache.tapestry5.corelib.components.Output
>                 OutputRaw: org.apache.tapestry5.corelib.components.OutputRaw
>                  PageLink: org.apache.tapestry5.corelib.components.PageLink
>                   Palette: org.apache.tapestry5.corelib.components.Palette
>             PasswordField: org.apache.tapestry5.corelib.components.PasswordField
>        ProgressiveDisplay: org.apache.tapestry5.corelib.components.ProgressiveDisplay
>           PropertyDisplay: org.apache.tapestry5.corelib.components.PropertyDisplay
>            PropertyEditor: org.apache.tapestry5.corelib.components.PropertyEditor
>                     Radio: org.apache.tapestry5.corelib.components.Radio
>                RadioGroup: org.apache.tapestry5.corelib.components.RadioGroup
>             RemoveRowLink: org.apache.tapestry5.corelib.components.RemoveRowLink
>              RenderObject: org.apache.tapestry5.corelib.components.RenderObject
>                    Select: org.apache.tapestry5.corelib.components.Select
>                    Submit: org.apache.tapestry5.corelib.components.Submit
>            SubmitNotifier: org.apache.tapestry5.corelib.components.SubmitNotifier
>                  TextArea: org.apache.tapestry5.corelib.components.TextArea
>                 TextField: org.apache.tapestry5.corelib.components.TextField
>                TextOutput: org.apache.tapestry5.corelib.components.TextOutput
>                      Tree: org.apache.tapestry5.corelib.components.Tree
>                   Trigger: org.apache.tapestry5.corelib.components.Trigger
>                    Unless: org.apache.tapestry5.corelib.components.Unless
>                      Zone: org.apache.tapestry5.corelib.components.Zone
> t5internal/InternalLayout: org.apache.tapestry5.internal.t5internal.components.InternalLayout
> [INFO] TapestryModule.ComponentClassResolver Available mixins (10):
>       Autocomplete: org.apache.tapestry5.corelib.mixins.Autocomplete
>        DiscardBody: org.apache.tapestry5.corelib.mixins.DiscardBody
>     FormFieldFocus: org.apache.tapestry5.corelib.mixins.FormFieldFocus
>           NotEmpty: org.apache.tapestry5.corelib.mixins.NotEmpty
>     RenderClientId: org.apache.tapestry5.corelib.mixins.RenderClientId
>     RenderDisabled: org.apache.tapestry5.corelib.mixins.RenderDisabled
>    RenderInformals: org.apache.tapestry5.corelib.mixins.RenderInformals
> RenderNotification: org.apache.tapestry5.corelib.mixins.RenderNotification
>    TriggerFragment: org.apache.tapestry5.corelib.mixins.TriggerFragment
>        ZoneRefresh: org.apache.tapestry5.corelib.mixins.ZoneRefresh
> [INFO] tapestry5.TapestryFilter Startup status:
> Services:
>              ActionRenderResponseGenerator: DEFINED
>           AjaxComponentEventRequestHandler: DEFINED
>          AjaxComponentEventResultProcessor: DEFINED
>                   AjaxFormUpdateController: DEFINED
>                AjaxPartialResponseRenderer: DEFINED
>                       AjaxResponseRenderer: DEFINED
>                               AlertManager: DEFINED
>                        ApplicationDefaults: REAL
>                         ApplicationGlobals: REAL
>                     ApplicationInitializer: REAL
>                    ApplicationStateManager: DEFINED
>  ApplicationStatePersistenceStrategySource: DEFINED
>                            AspectDecorator: VIRTUAL
>                        AssetBindingFactory: DEFINED
>                            AssetDispatcher: DEFINED
>                        AssetObjectProvider: REAL
>                       AssetPathConstructor: DEFINED
>                         AssetPathConverter: DEFINED
>                       AssetResourceLocator: DEFINED
>                                AssetSource: VIRTUAL
>                              BaseURLSource: DEFINED
>                    BeanBlockOverrideSource: DEFINED
>                            BeanBlockSource: DEFINED
>                            BeanModelSource: DEFINED
>                              BindingSource: DEFINED
>                               ChainBuilder: VIRTUAL
>                               ClassFactory: BUILTIN
>                           ClassNameLocator: REAL
>                 ClasspathAssetAliasManager: DEFINED
>                      ClasspathAssetFactory: DEFINED
>                      ClasspathURLConverter: REAL
>                      ClientBehaviorSupport: DEFINED
>                          ClientDataEncoder: DEFINED
>               ClientPersistentFieldStorage: DEFINED
>              ClientPersistentFieldStrategy: DEFINED
>                            ClientWhitelist: DEFINED
>                        ComponentClassCache: VIRTUAL
>                      ComponentClassFactory: DEFINED
>                     ComponentClassResolver: REAL
>              ComponentClassTransformWorker: DEFINED
>       ComponentClassesInvalidationEventHub: REAL
>                   ComponentDefaultProvider: DEFINED
>                  ComponentEventLinkEncoder: DEFINED
>              ComponentEventLinkTransformer: DEFINED
>               ComponentEventRequestHandler: DEFINED
>              ComponentEventResultProcessor: DEFINED
>           ComponentInstanceResultProcessor: DEFINED
>                ComponentInstantiatorSource: DEFINED
>      ComponentMessagesInvalidationEventHub: DEFINED
>                    ComponentMessagesSource: DEFINED
>                       ComponentModelSource: DEFINED
>        ComponentPageElementResourcesSource: DEFINED
>                      ComponentProxyFactory: DEFINED
>                    ComponentRequestHandler: DEFINED
>           ComponentRequestSelectorAnalyzer: DEFINED
>                   ComponentResourceLocator: DEFINED
>                            ComponentSource: DEFINED
>                   ComponentTemplateLocator: DEFINED
>                    ComponentTemplateSource: DEFINED
>     ComponentTemplatesInvalidationEventHub: DEFINED
>                        CompressionAnalyzer: DEFINED
>                        ContentTypeAnalyzer: DEFINED
>                                    Context: DEFINED
>                        ContextAssetFactory: DEFINED
>                      ContextBindingFactory: DEFINED
>                         ContextPathEncoder: DEFINED
>                        ContextValueEncoder: DEFINED
>                                 CookieSink: DEFINED
>                               CookieSource: DEFINED
>                                    Cookies: DEFINED
>                           DataTypeAnalyzer: DEFINED
>                    DefaultDataTypeAnalyzer: DEFINED
>               DefaultImplementationBuilder: VIRTUAL
>                          DeferredExecution: DEFINED
>                      DynamicTemplateParser: VIRTUAL
>                       EndOfRequestEventHub: REAL
>                                Environment: DEFINED
>                 EnvironmentalShadowBuilder: VIRTUAL
>                          ExceptionAnalyzer: DEFINED
>                           ExceptionTracker: DEFINED
>                            FactoryDefaults: REAL
>                      FieldTranslatorSource: DEFINED
>                     FieldValidationSupport: DEFINED
>                FieldValidatorDefaultSource: DEFINED
>                       FieldValidatorSource: DEFINED
>                                FormSupport: DEFINED
>                                  Heartbeat: DEFINED
>                   HiddenFieldLocationRules: DEFINED
>                         HttpServletRequest: DEFINED
>                  HttpServletRequestHandler: VIRTUAL
>                        HttpServletResponse: DEFINED
>                         IgnoredPathsFilter: DEFINED
>                          InjectionProvider: DEFINED
>      InternalComponentInvalidationEventHub: REAL
>                     InternalRequestGlobals: DEFINED
>             JavaScriptStackPathConstructor: DEFINED
>                      JavaScriptStackSource: DEFINED
>                          JavaScriptSupport: DEFINED
>                                LazyAdvisor: DEFINED
>                            LinkCreationHub: DEFINED
>                                 LinkSource: DEFINED
>                            LinkTransformer: DEFINED
>                         LocalizationSetter: DEFINED
>                           LocationRenderer: DEFINED
>                               LoggerSource: BUILTIN
>                             LoggingAdvisor: DEFINED
>                           LoggingDecorator: DEFINED
>                             MarkupRenderer: DEFINED
>                        MarkupWriterFactory: DEFINED
>                           MasterDispatcher: DEFINED
>                       MasterObjectProvider: REAL
>            MasterStackTraceElementAnalyzer: DEFINED
>                      MessageBindingFactory: DEFINED
>                            MetaDataLocator: DEFINED
>                                 MetaWorker: DEFINED
>            NullFieldStrategyBindingFactory: DEFINED
>                    NullFieldStrategySource: DEFINED
>                   NumericTranslatorSupport: DEFINED
>                             ObjectRenderer: DEFINED
>             PageActivationContextCollector: DEFINED
>                              PageActivator: DEFINED
>                    PageContentTypeAnalyzer: DEFINED
>                      PageDocumentGenerator: DEFINED
>                         PageElementFactory: DEFINED
>                                 PageLoader: DEFINED
>                         PageMarkupRenderer: DEFINED
>                       PageRenderLinkSource: DEFINED
>                  PageRenderLinkTransformer: DEFINED
>                            PageRenderQueue: DEFINED
>                   PageRenderRequestHandler: DEFINED
>                       PageResponseRenderer: DEFINED
>                                 PageSource: DEFINED
>                      PartialMarkupRenderer: DEFINED
>                           PeriodicExecutor: DEFINED
>                     PersistentFieldManager: DEFINED
>                           PersistentLocale: DEFINED
>                           PerthreadManager: BUILTIN
>                            PipelineBuilder: REAL
>                        PlasticProxyFactory: BUILTIN
>                         PropBindingFactory: DEFINED
>                       PropertiesFileParser: DEFINED
>                             PropertyAccess: VIRTUAL
>                      PropertyConduitSource: DEFINED
>                      PropertyShadowBuilder: VIRTUAL
>                        RegistryShutdownHub: BUILTIN
>                            RegistryStartup: REAL
>                              RenderSupport: DEFINED
>                                    Request: VIRTUAL
>                    RequestExceptionHandler: DEFINED
>                             RequestGlobals: DEFINED
>                             RequestHandler: DEFINED
>                           RequestPageCache: DEFINED
>                     RequestSecurityManager: DEFINED
>                      ResourceChangeTracker: DEFINED
>                    ResourceDigestGenerator: DEFINED
>                      ResourceDigestManager: DEFINED
>                          ResourceMinimizer: DEFINED
>                           ResourceStreamer: DEFINED
>                                   Response: VIRTUAL
>                ResponseCompressionAnalyzer: DEFINED
>                           ResponseRenderer: DEFINED
>                         SelectModelFactory: DEFINED
>                  ServiceActivityScoreboard: BUILTIN
>                     ServiceLifecycleSource: REAL
>                            ServiceOverride: REAL
>              ServletApplicationInitializer: REAL
> SessionApplicationStatePersistenceStrategy: DEFINED
>             SessionPersistedObjectAnalyzer: DEFINED
>                            StrategyBuilder: VIRTUAL
>                   StreamableResourceSource: DEFINED
>                             StringInterner: DEFINED
>                       SymbolBindingFactory: DEFINED
>                               SymbolSource: REAL
>                     TapestrySessionFactory: DEFINED
>                             TemplateParser: DEFINED
>                               ThreadLocale: DEFINED
>                               ThunkCreator: DEFINED
>                               TimingFilter: DEFINED
>                    TranslateBindingFactory: DEFINED
>                 TranslatorAlternatesSource: DEFINED
>                           TranslatorSource: DEFINED
>                                TypeCoercer: REAL
>                                 URLEncoder: DEFINED
>                          UpdateListenerHub: DEFINED
>                     ValidateBindingFactory: DEFINED
>              ValidationConstraintGenerator: DEFINED
>                 ValidationDecoratorFactory: DEFINED
>                             ValidatorMacro: DEFINED
>                         ValueEncoderSource: DEFINED
> 86.77% unrealized services (164/189)
> Application 'app' (version 1.0-SNAPSHOT-DEV) startup time: 176 ms to build IoC Registry, 672 ms overall.
>  ______                  __             ____
> /_  __/__ ____  ___ ___ / /_______ __  / __/
>  / / / _ `/ _ \/ -_|_-</ __/ __/ // / /__ \ 
> /_/  \_,_/ .__/\__/___/\__/_/  \_, / /____/
>         /_/                   /___/  5.3 (development mode)
> 2011-12-05 21:21:40.279::INFO:  Started SelectChannelConnector@0.0.0.0:8080
> [INFO] Started Jetty Server

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira