Dorado 9 : 1.8 运行项目并验证

本节主要介绍如何运行standardlesson项目并验证项目是否运行成功,我们使用Jetty插件运行项目。

将Eclipse运行完成后,在左侧Package Explorer视图中,鼠标选中standardlesson项目,点击【鼠标右键】,如下图所示:

鼠标选择【Debug As】,在显示的二级菜单中选择【Run Jetty】,则项目便以Debug方式启动,启动成功后,可以切换到Console标签页下看到详细的启动日志,Console标签页位置:

我们在Console标签页下可以看到相关的Dorado日志信息,如下:

Running Jetty 6.1.26
2020-04-26 10:16:01.656:INFO::Logging to STDERR via org.mortbay.log.StdErrLog
ParentLoaderPriority enabled
Context path:/standardlesson
2020-04-26 10:16:01.702:INFO::jetty-6.1.26
2020-04-26 10:16:02.033:INFO:/standardlesson:Initializing Spring root WebApplicationContext
2020-04-26 10:16:02,034  INFO (ContextLoader.java:304) Root WebApplicationContext: initialization started
 * Initializing dorado engine...
 * [Vendor: www.BSTEK.com]
 * [Home: /WEB-INF/dorado-home]
 * Loading configure from [home:configure.properties]...
 * Loading configure from [classpath:com/bstek/dorado/core/configure-debug.properties]...
 * Loading configure from [home:configure-debug.properties]...
 * [core.runMode=debug]
 * [core.addonLoadMode=positive]
 * [TempDir: C:\Users\jay\AppData\Local\Temp\Jetty_0_0_0_0_8080_WebContent__standardlesson__.k8oo5p\.dorado]
 * [core.storeDir=C:\Users\jay\AppData\Local\Temp\Jetty_0_0_0_0_8080_WebContent__standardlesson__.k8oo5p\.dorado\dorado-store]
 * 1.  Package [dorado-core - 9.0.0-SNAPSHOT.200320.1552] found.
 * Loading configure from [home:configure.properties]...
 * Loading configure from [classpath:com/bstek/dorado/core/configure-debug.properties]...
 * Loading configure from [home:configure-debug.properties]...
 * [core.resourceLoader=com.bstek.dorado.web.WebResourceLoader]
 * [core.defaultByteCodeProvider=javassist]
 * [core.contextConfigLocation=classpath:com/bstek/dorado/core/context.xml;classpath:com/bstek/dorado/config/context.xml;classpath:com/bstek/dorado/common/context.xml;classpath:com/bstek/dorado/data/context.xml;classpath:com/bstek/dorado/web/context.xml;classpath:com/bstek/dorado/view/context.xml;classpath:com/bstek/dorado/idesupport/context.xml;/WEB-INF/dorado-home/context.xml]
 * [core.servletContextConfigLocation=classpath:com/bstek/dorado/web/servlet-context.xml;classpath:com/bstek/dorado/view/servlet-context.xml;classpath:com/bstek/dorado/idesupport/servlet-context.xml;/WEB-INF/dorado-home/servlet-context.xml]
2020-04-26 10:16:02,287  INFO (AbstractApplicationContext.java:583) Refreshing Root WebApplicationContext: startup date [Sun Apr 26 10:16:02 CST 2020]; root of context hierarchy
2020-04-26 10:16:02,331  INFO (XmlBeanDefinitionReader.java:317) Loading XML bean definitions from class path resource [com/bstek/dorado/core/context.xml]
2020-04-26 10:16:02,416  INFO (XmlBeanDefinitionReader.java:317) Loading XML bean definitions from class path resource [com/bstek/dorado/config/context.xml]
2020-04-26 10:16:02,436  INFO (XmlBeanDefinitionReader.java:317) Loading XML bean definitions from class path resource [com/bstek/dorado/config/text-parser-context.xml]
2020-04-26 10:16:02,461  INFO (XmlBeanDefinitionReader.java:317) Loading XML bean definitions from class path resource [com/bstek/dorado/config/xml-parser-context.xml]
2020-04-26 10:16:02,476  INFO (XmlBeanDefinitionReader.java:317) Loading XML bean definitions from class path resource [com/bstek/dorado/common/context.xml]
2020-04-26 10:16:02,483  INFO (XmlBeanDefinitionReader.java:317) Loading XML bean definitions from class path resource [com/bstek/dorado/data/context.xml]
2020-04-26 10:16:02,494  INFO (XmlBeanDefinitionReader.java:317) Loading XML bean definitions from class path resource [com/bstek/dorado/data/xml-parser-context.xml]
2020-04-26 10:16:02,510  INFO (XmlBeanDefinitionReader.java:317) Loading XML bean definitions from class path resource [com/bstek/dorado/web/context.xml]
2020-04-26 10:16:02,516  INFO (DefaultListableBeanFactory.java:821) Overriding bean definition for bean 'dorado.scopeManager' with a different definition: replacing [Generic bean: class [com.bstek.dorado.core.bean.ScopeManager]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [com/bstek/dorado/core/context.xml]] with [Generic bean: class [com.bstek.dorado.web.WebScopeManager]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [com/bstek/dorado/web/context.xml]]
2020-04-26 10:16:02,518  INFO (XmlBeanDefinitionReader.java:317) Loading XML bean definitions from class path resource [com/bstek/dorado/view/context.xml]
2020-04-26 10:16:02,528  INFO (XmlBeanDefinitionReader.java:317) Loading XML bean definitions from class path resource [com/bstek/dorado/view/components-context.xml]
2020-04-26 10:16:02,544  INFO (XmlBeanDefinitionReader.java:317) Loading XML bean definitions from class path resource [com/bstek/dorado/view/loader-parser-context.xml]
2020-04-26 10:16:02,557  INFO (XmlBeanDefinitionReader.java:317) Loading XML bean definitions from class path resource [com/bstek/dorado/view/parser-context.xml]
2020-04-26 10:16:02,567  INFO (DefaultListableBeanFactory.java:821) Overriding bean definition for bean 'dorado.xmlParserHelper' with a different definition: replacing [Generic bean: class [com.bstek.dorado.config.xml.XmlParserHelper]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [com/bstek/dorado/config/xml-parser-context.xml]] with [Generic bean: class [com.bstek.dorado.view.config.xml.ViewXmlParserHelper]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [com/bstek/dorado/view/parser-context.xml]]
2020-04-26 10:16:02,569  INFO (XmlBeanDefinitionReader.java:317) Loading XML bean definitions from class path resource [com/bstek/dorado/view/outputter-context.xml]
2020-04-26 10:16:02,582  INFO (DefaultListableBeanFactory.java:821) Overriding bean definition for bean 'dorado.expressionHandler' with a different definition: replacing [Generic bean: class [com.bstek.dorado.core.el.DefaultExpressionHandler]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [com/bstek/dorado/core/context.xml]] with [Generic bean: class [com.bstek.dorado.view.el.ViewExpressionHandler]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [com/bstek/dorado/view/context.xml]]
2020-04-26 10:16:02,583  INFO (DefaultListableBeanFactory.java:821) Overriding bean definition for bean 'dorado.systemOptionalParametersFactory' with a different definition: replacing [Generic bean: class [com.bstek.dorado.data.method.DefaultSystemOptionalParametersFactory]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [com/bstek/dorado/data/context.xml]] with [Generic bean: class [com.bstek.dorado.view.DefaultSystemOptionalParametersFactory]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [com/bstek/dorado/view/context.xml]]
2020-04-26 10:16:02,584  INFO (DefaultListableBeanFactory.java:821) Overriding bean definition for bean 'dorado.localeResolver' with a different definition: replacing [Generic bean: class [com.bstek.dorado.core.resource.EmptyLocaleResolver]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [com/bstek/dorado/core/context.xml]] with [Generic bean: class [com.bstek.dorado.view.resource.SpringLocaleResolverAdapter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [com/bstek/dorado/view/context.xml]]
2020-04-26 10:16:02,587  INFO (XmlBeanDefinitionReader.java:317) Loading XML bean definitions from class path resource [com/bstek/dorado/idesupport/context.xml]
2020-04-26 10:16:02,595  INFO (XmlBeanDefinitionReader.java:317) Loading XML bean definitions from class path resource [com/bstek/dorado/idesupport/common-context.xml]
2020-04-26 10:16:02,607  INFO (XmlBeanDefinitionReader.java:317) Loading XML bean definitions from ServletContext resource [/WEB-INF/dorado-home/context.xml]
2020-04-26 10:16:02,617  INFO (XmlBeanDefinitionReader.java:317) Loading XML bean definitions from ServletContext resource [/WEB-INF/dorado-home/app-context.xml]
2020-04-26 10:16:02,626  INFO (XmlBeanDefinitionReader.java:317) Loading XML bean definitions from ServletContext resource [/WEB-INF/dorado-home/components-context.xml]
2020-04-26 10:16:02,800  INFO (PostProcessorRegistrationDelegate.java:327) Bean 'dorado.textParserHelper' of type [com.bstek.dorado.config.text.TextParserHelper] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-04-26 10:16:02,817  INFO (PostProcessorRegistrationDelegate.java:327) Bean 'dorado.xmlParserHelper' of type [com.bstek.dorado.view.config.xml.ViewXmlParserHelper] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-04-26 10:16:02,821  INFO (PostProcessorRegistrationDelegate.java:327) Bean 'dorado.exposedServiceManager' of type [com.bstek.dorado.common.service.ExposedServiceManager] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-04-26 10:16:02,837  INFO (PostProcessorRegistrationDelegate.java:327) Bean 'dorado.dataProviderDefinitionManager' of type [com.bstek.dorado.data.config.definition.DataProviderDefinitionManager] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-04-26 10:16:02,838  INFO (PostProcessorRegistrationDelegate.java:327) Bean 'dorado.dataResolverDefinitionManager' of type [com.bstek.dorado.data.config.definition.DataResolverDefinitionManager] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-04-26 10:16:02,932  WARN (ConfigurationFactory.java:136) No configuration found. Configuring ehcache from ehcache-failsafe.xml  found in the classpath: jar:file:/D:/WookSpace/eclipse_2020r3/standardlesson/WebContent/WEB-INF/lib/ehcache-core-2.6.3.jar!/ehcache-failsafe.xml
2020-04-26 10:16:03,655  INFO (ContextLoader.java:344) Root WebApplicationContext: initialization completed in 1618 ms
2020-04-26 10:16:03.684:INFO:/standardlesson:Initializing Spring FrameworkServlet 'doradoServlet'
2020-04-26 10:16:03,686  INFO (FrameworkServlet.java:489) FrameworkServlet 'doradoServlet': initialization started
 * Loading serlvet context configures...
2020-04-26 10:16:03,689  INFO (AbstractApplicationContext.java:583) Refreshing WebApplicationContext for namespace 'doradoServlet-servlet': startup date [Sun Apr 26 10:16:03 CST 2020]; parent: Root WebApplicationContext
2020-04-26 10:16:03,689  INFO (XmlBeanDefinitionReader.java:317) Loading XML bean definitions from class path resource [com/bstek/dorado/web/servlet-context.xml]
2020-04-26 10:16:03,699  INFO (XmlBeanDefinitionReader.java:317) Loading XML bean definitions from class path resource [com/bstek/dorado/view/servlet-context.xml]
2020-04-26 10:16:03,710  INFO (XmlBeanDefinitionReader.java:317) Loading XML bean definitions from class path resource [com/bstek/dorado/idesupport/servlet-context.xml]
2020-04-26 10:16:03,716  INFO (XmlBeanDefinitionReader.java:317) Loading XML bean definitions from ServletContext resource [/WEB-INF/dorado-home/servlet-context.xml]
2020-04-26 10:16:04,006  INFO (FrameworkServlet.java:508) FrameworkServlet 'doradoServlet': initialization completed in 320 ms
2020-04-26 10:16:04,006  INFO (EngineStartupListenerManager.java:51) Fire StartupListener [com.bstek.dorado.core.BaseEngineStartupListener@2374d36a].
2020-04-26 10:16:04,009  INFO (EngineStartupListenerManager.java:51) Fire StartupListener [com.bstek.dorado.config.xml.ObjectParsersInitializer@366c4480].
2020-04-26 10:16:04,100  INFO (EngineStartupListenerManager.java:51) Fire StartupListener [com.bstek.dorado.web.resolver.ResourceTypeLoader@26be6ca7].
2020-04-26 10:16:04,105  INFO (EngineStartupListenerManager.java:51) Fire StartupListener [com.bstek.dorado.web.resolver.ResolverRegisterProcessor@6daf2337].
2020-04-26 10:16:04,105  INFO (AbstractUrlHandlerMapping.java:364) Mapped URL path [/dorado/client/**/*.dpkg] onto handler of type [class com.bstek.dorado.view.resolver.LibraryFileResolver]
2020-04-26 10:16:04,105  INFO (AbstractUrlHandlerMapping.java:364) Mapped URL path [/**/*.dpkg] onto handler of type [class com.bstek.dorado.view.resolver.PackageFileResolver]
2020-04-26 10:16:04,106  INFO (AbstractUrlHandlerMapping.java:364) Mapped URL path [/dorado/client/resources/icons/silk/*.png] onto handler of type [class com.bstek.dorado.view.resolver.IE6PngFileResolver]
2020-04-26 10:16:04,106  INFO (AbstractUrlHandlerMapping.java:364) Mapped URL path [/dorado/client/boot.dpkg] onto handler of type [class com.bstek.dorado.view.resolver.BootPackagesResolver]
2020-04-26 10:16:04,106  INFO (AbstractUrlHandlerMapping.java:364) Mapped URL path [/dorado/client/resources/icons/font-awesome/*.png] onto handler of type [class com.bstek.dorado.view.resolver.FontAwesomePngFileResolver]
2020-04-26 10:16:04,106  INFO (AbstractUrlHandlerMapping.java:364) Mapped URL path [/dorado/client/skins/*/common/icons.gif] onto handler of type [class com.bstek.dorado.view.resolver.OldIconsFileResolver]
2020-04-26 10:16:04,106  INFO (AbstractUrlHandlerMapping.java:364) Mapped URL path [/dorado/client/skins/**] onto handler of type [class com.bstek.dorado.view.resolver.SkinFileResolver]
2020-04-26 10:16:04,106  INFO (AbstractUrlHandlerMapping.java:364) Mapped URL path [/dorado/client/resources/**] onto handler of type [class com.bstek.dorado.web.resolver.ResourceFileResolver]
2020-04-26 10:16:04,106  INFO (AbstractUrlHandlerMapping.java:364) Mapped URL path [/dorado/res/**] onto handler of type [class com.bstek.dorado.web.resolver.ResourceFileResolver]
2020-04-26 10:16:04,106  INFO (AbstractUrlHandlerMapping.java:364) Mapped URL path [/dorado/view-service] onto handler of type [class com.bstek.dorado.view.resolver.ViewServiceResolver]
2020-04-26 10:16:04,106  INFO (AbstractUrlHandlerMapping.java:364) Mapped URL path [/**/*.d] onto handler of type [class com.bstek.dorado.view.resolver.HtmlViewResolver]
2020-04-26 10:16:04,106  INFO (AbstractUrlHandlerMapping.java:364) Mapped URL path [/dorado/ide/computed-config-rules.json] onto handler of type [class com.bstek.dorado.idesupport.resolver.ComputedRuleSetJsonResolver]
2020-04-26 10:16:04,106  INFO (AbstractUrlHandlerMapping.java:364) Mapped URL path [/dorado/ide/config-rules.xml] onto handler of type [class com.bstek.dorado.idesupport.resolver.RuleSetXmlResolver]
2020-04-26 10:16:04,107  INFO (AbstractUrlHandlerMapping.java:364) Mapped URL path [/dorado/ide/robot/*] onto handler of type [class com.bstek.dorado.idesupport.resolver.RobotResolver]
2020-04-26 10:16:04,107  INFO (AbstractUrlHandlerMapping.java:364) Mapped URL path [/**/*.c] onto handler of type [class com.bstek.dorado.web.resolver.SpringBeanControllerResolver]
2020-04-26 10:16:04,107  INFO (EngineStartupListenerManager.java:51) Fire StartupListener [com.bstek.dorado.common.service.ExposedServiceAnnotationBeanPostProcessor@6ea1bcdc].
2020-04-26 10:16:04,107  INFO (EngineStartupListenerManager.java:51) Fire StartupListener [com.bstek.dorado.view.task.LongTaskAnnotationBeanPostProcessor@6ff415ad].
2020-04-26 10:16:04,107  INFO (EngineStartupListenerManager.java:51) Fire StartupListener [com.bstek.dorado.data.config.DataConfigEngineStartupListener@280d9edc].
2020-04-26 10:16:04,165  INFO (ConfigurableDataConfigManager.java:310) Registered DataTypes: [Entity, Set, Time, String, Criteria, float, long, DateTime, Bean, Aggregation, List, Record, Boolean, UUID, Short, Character, byte, double, Calendar, Double, int, BigDecimal, Date, DataPreloadConfig, Integer, Array, Float, boolean, Byte, char, Long, short, Collection, Map]
2020-04-26 10:16:04,165  INFO (DataConfigManagerSupport.java:149) Configures loaded in 57 ms. [class path resource [com/bstek/dorado/data/base-types.xml],class path resource [com/bstek/dorado/view/base-types.xml]].
2020-04-26 10:16:04,166  INFO (EngineStartupListenerManager.java:51) Fire StartupListener [com.bstek.dorado.data.config.DataObjectAnnotationEngineStartupListener@451882b2].
 * 
2020-04-26 10:16:04,188  INFO (RemovableBeanUtils.java:41) 134 Bean(s) unregisted in 14ms.
2020-04-26 10:16:04.246:INFO::Started SelectChannelConnector@0.0.0.0:8080
 *  
 * ========================
 *  
 * WARN:
 * Dorado is currently running in debug mode, you may need to change the setting for "core.runMode".
 *  
 * ------------------------
 *  
 * 本软件作品的著作权、商标权等知识产权属于上海锐道信息技术有限公司(http://www.bstek.com)所有。
 * 任何单位和个人未经上海锐道信息技术有限公司书面授权,不得以任何目的、任何方式复制、传播本软件的任何部分。
 * 否则将视为侵权,上海锐道信息技术有限公司保留依法追究其法律责任的权利。
 *  

日志信息主要包括了,当前项目中的:

  • Dorado的版本信息
  • 当前的工程的运行模式,本例可以看到WARN警告信息,提示当前环境为DEBUG:"Dorado is currently running in DEBUG mode"

 

在项目成功运行后,我们还需要完成一项工作即更新Dorado配置规则。在Dorado开发中,我们经常会升级dorado提供的jar包,或引入一些新的dorado add on。一般情况下升级jar都只要将工程lib下的jar替换就可以。但是在某些特殊情况下:

  • 某个控件新增了几个新的属性,但是IDE的编辑器中无法看到;
  • dorado-core提供了新的控件,但是IDE中无法看到;
  • 新引入的dorado add on的jar包自带了一些dorado控件,但是IDE中无法看到;

这种情况下我们就必要更新Dorado的规则文件,Dorado的IDE是根据规则文件动态提供控件的编辑界面的。规则文件的更新办法如下:

首先右键单击工程的根节点,找到其中的更新Dorado配置规则菜单,单击执行规则更新,如下图所示:

更新配置规则整个过程在30秒以内,更新成功后会出现如下的提示信息:

info

关于配置规则更详细的说明请参考: 规则文件更新办法