new Zksample2 app. Spring, -AOP, -Security, Hibernate, Hibernate-Generic-DAO, Jasper
Thank Stephan!! That issue is solved, now it compiles good, and after a few tweaks i managed to get the zkoss project to compile too, but when i try to run the application on my clean tomcat 6 install i get this error now:
Feb 9, 2012 2:42:16 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
Feb 9, 2012 2:42:16 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: {Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:zk_sample_gui' did not find a matching property.
Feb 9, 2012 2:42:16 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: {Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:zkoss' did not find a matching property.
Feb 9, 2012 2:42:16 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Feb 9, 2012 2:42:16 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 726 ms
Feb 9, 2012 2:42:16 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 9, 2012 2:42:16 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.35
Feb 9, 2012 2:42:17 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4149)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Feb 9, 2012 2:42:17 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class org.springframework.web.context.request.RequestContextListener
java.lang.ClassNotFoundException: org.springframework.web.context.request.RequestContextListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4149)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Feb 9, 2012 2:42:17 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class org.springframework.security.web.session.HttpSessionEventPublisher
java.lang.ClassNotFoundException: org.springframework.security.web.session.HttpSessionEventPublisher
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4149)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Feb 9, 2012 2:42:17 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class org.zkoss.zk.ui.http.HttpSessionListener
java.lang.ClassNotFoundException: org.zkoss.zk.ui.http.HttpSessionListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4149)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Feb 9, 2012 2:42:17 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
Feb 9, 2012 2:42:17 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Feb 9, 2012 2:42:17 PM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
H2 DB Server started
Create DemoData
count batch updates : 1
Feb 9, 2012 2:42:18 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
2012-02-09 14:42:18,285 INFO ContextLoader M - Root WebApplicationContext: initialization started
2012-02-09 14:42:18,315 INFO XmlWebApplicationContext M - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@7ae0c7c3: display name [Root WebApplicationContext]; startup date [Thu Feb 09 14:42:18 GMT-06:00 2012]; root of context hierarchy
2012-02-09 14:42:18,376 INFO XmlBeanDefinitionReader M - Loading XML bean definitions from class path resource [applicationContext-db.xml]
2012-02-09 14:42:18,605 INFO XmlBeanDefinitionReader M - Loading XML bean definitions from class path resource [applicationContext-hibernate.xml]
2012-02-09 14:42:18,642 INFO XmlBeanDefinitionReader M - Loading XML bean definitions from ServletContext resource [/WEB-INF/SpringSecurityContext.xml]
2012-02-09 14:42:18,807 INFO HttpSecurityBeanDefinitionParser M - Concurrent session filter in use, setting 'forceEagerSessionCreation' to true
2012-02-09 14:42:18,861 DEBUG ZkEventProcessDefinitionSourceImpl M - Added ZK component path pattern: //**/btn_*; attributes: for event 'onClick'
2012-02-09 14:42:18,861 DEBUG ZkEventProcessDefinitionSourceImpl M - Added ZK component path pattern: /**; attributes: for event 'onClick'
2012-02-09 14:42:18,875 INFO XmlWebApplicationContext M - Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@7ae0c7c3]: org.springframework.beans.factory.support.DefaultListableBeanFactory@23042fcc
2012-02-09 14:42:18,964 INFO PropertyPlaceholderConfigurer M - Loading properties file from class path resource [jdbc.properties]
2012-02-09 14:42:18,983 INFO XmlWebApplicationContext M - Bean 'org.springframework.aop.config.internalAutoProxyCreator' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2012-02-09 14:42:18,986 INFO XmlWebApplicationContext M - Bean '_methodSecurityInterceptorPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2012-02-09 14:42:19,055 INFO XmlWebApplicationContext M - Bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2012-02-09 14:42:19,056 INFO XmlWebApplicationContext M - Bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#1' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2012-02-09 14:42:19,062 INFO XmlWebApplicationContext M - Bean '(inner bean)' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2012-02-09 14:42:19,069 INFO XmlWebApplicationContext M - Bean '(inner bean)' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2012-02-09 14:42:19,173 INFO XmlWebApplicationContext M - Bean 'org.springframework.aop.aspectj.AspectJPointcutAdvisor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2012-02-09 14:42:19,226 INFO XmlWebApplicationContext M - Bean '_delegatingMethodDefinitionSource' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2012-02-09 14:42:19,238 INFO XmlWebApplicationContext M - Bean '_methodDefinitionSourceAdvisor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2012-02-09 14:42:19,248 INFO XmlWebApplicationContext M - Bean '_filterChainProxyPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2012-02-09 14:42:19,254 INFO XmlWebApplicationContext M - Bean '_rememberMeServicesInjectionBeanPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2012-02-09 14:42:19,261 INFO XmlWebApplicationContext M - Bean '_entryPointInjectionBeanPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2012-02-09 14:42:19,267 INFO XmlWebApplicationContext M - Bean '_userServiceInjectionPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2012-02-09 14:42:19,292 INFO DefaultListableBeanFactory M - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@23042fcc: defining beans [useCaseTxAdvice,daoTxAdvice,org.springframework.aop.config.internalAutoProxyCreator,serviceMethods,daoMethods,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#1,transactionManager,propertyConfigurer,dataSource,sessionFactory,hibernateTemplate,basisDAO,basisfNextidview,kundeDAO,auftragDAO,auftragpositionDAO,artikelDAO,brancheDAO,nextidviewDAO,userDAO,secGroupDAO,secGrouprightDAO,secRightDAO,secRoleDAO,secRolegroupDAO,secUserroleDAO,secTypDAO,secLoginlogDAO,testDAO,guestBookDAO,languageDAO,chartDataDAO,kundeService,auftragService,brancheService,artikelService,userService,loginService,reportService,securityService,loginLoggingService,testService,guestBookService,chartService,_delegatingMethodDefinitionSource,_accessManager,_methodSecurityInterceptor,_methodSecurityInterceptorPostProcessor,_methodDefinitionSourceAdvisor,_authenticationManager,_filterChainProxy,_httpSessionContextIntegrationFilter,_filterChainProxyPostProcessor,_filterChainList,_securityContextHolderAwareRequestFilter,_portMapper,_exceptionTranslationFilter,_filterSecurityInterceptor,_sessionRegistry,_concurrentSessionController,_concurrentSessionFilter,_sessionFixationProtectionFilter,_anonymousAuthenticationProvider,_anonymousProcessingFilter,_rememberMeServices,_rememberMeAuthenticationProvider,_rememberMeFilter,_rememberMeServicesInjectionBeanPostProcessor,_logoutFilter,_basicAuthenticationEntryPoint,_basicAuthenticationFilter,_formLoginFilter,_formLoginEntryPoint,_entryPointInjectionBeanPostProcessor,_userServiceInjectionPostProcessor,org.springframework.security.providers.dao.DaoAuthenticationProvider,org.springframework.security.config.AuthenticationProviderBeanDefinitionParser$AuthenticationProviderCacheResolver,myUserDetailsService,zkListenerConfigFilter,zkDesktopReuseFilter,zkDisableSessionInvalidateFilter,zkEnableSessionInvalidateFilter,zkLoginOKFilter,zkError403Filter,zkExceptionTranslationFilter,zkEventProcessInterceptor,LoginLoggingPolicyService,org.springframework.aop.aspectj.AspectJPointcutAdvisor,authPointcut]; root of factory hierarchy
2012-02-09 14:42:19,336 INFO DriverManagerDataSource M - Loaded JDBC driver: org.h2.Driver
2012-02-09 14:42:19,889 INFO LocalSessionFactoryBean M - Building new Hibernate SessionFactory
2012-02-09 14:42:20,494 INFO HibernateTransactionManager M - Using DataSource [org.springframework.jdbc.datasource.DriverManagerDataSource@108a9d2a] of Hibernate SessionFactory for HibernateTransactionManager
2012-02-09 14:42:21,155 INFO AbstractSecurityInterceptor M - Validated configuration attributes
2012-02-09 14:42:21,195 INFO EntryPointInjectionBeanPostProcessor M - Selecting AuthenticationEntryPoint for use in ExceptionTranslationFilter
2012-02-09 14:42:21,204 INFO EntryPointInjectionBeanPostProcessor M - Using main configured AuthenticationEntryPoint.
2012-02-09 14:42:21,205 INFO EntryPointInjectionBeanPostProcessor M - Using bean 'org.springframework.security.ui.webapp.AuthenticationProcessingFilterEntryPoint@9eae15f' as the entry point.
2012-02-09 14:42:21,220 INFO AbstractSecurityInterceptor M - Validated configuration attributes
2012-02-09 14:42:21,337 INFO RememberMeServicesInjectionBeanPostProcessor M - Setting RememberMeServices on bean _basicAuthenticationFilter
2012-02-09 14:42:21,412 INFO FilterChainProxyPostProcessor M - Checking sorted filter chain: [org.zkoss.spring.security.config.ZkListenerConfigFilter[ order=10; ], org.zkoss.spring.security.config.ZkDesktopReuseFilter[ order=20; ], org.springframework.security.concurrent.ConcurrentSessionFilter[ order=100; ], org.springframework.security.context.HttpSessionContextIntegrationFilter[ order=200; ], org.springframework.security.ui.logout.LogoutFilter[ order=300; ], org.zkoss.spring.security.ui.ZkError403Filter[ order=310; ], org.zkoss.spring.security.ui.ZkDisableSessionInvalidateFilter[ order=680; ], org.springframework.security.ui.webapp.AuthenticationProcessingFilter[ order=700; ], org.springframework.security.ui.basicauth.BasicProcessingFilter[ order=1000; ], org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter[ order=1100; ], org.springframework.security.ui.rememberme.RememberMeProcessingFilter[ order=1200; ], org.springframework.security.providers.anonymous.AnonymousProcessingFilter[ order=1300; ], org.springframework.security.ui.ExceptionTranslationFilter[ order=1400; ], org.springframework.security.ui.SessionFixationProtectionFilter[ order=1600; ], org.zkoss.spring.security.ui.ZkEnableSessionInvalidateFilter[ order=1610; ], org.springframework.security.intercept.web.FilterSecurityInterceptor@23f2bc83, org.zkoss.spring.security.ui.ZkLoginOKFilter[ order=1710; ]]
2012-02-09 14:42:21,413 INFO FilterChainProxyPostProcessor M - Filter chain...
2012-02-09 14:42:21,414 INFO FilterChainProxyPostProcessor M - [0] - org.zkoss.spring.security.config.ZkListenerConfigFilter[ order=10; ]
2012-02-09 14:42:21,415 INFO FilterChainProxyPostProcessor M - [1] - org.zkoss.spring.security.config.ZkDesktopReuseFilter[ order=20; ]
2012-02-09 14:42:21,415 INFO FilterChainProxyPostProcessor M - [2] - org.springframework.security.concurrent.ConcurrentSessionFilter[ order=100; ]
2012-02-09 14:42:21,417 INFO FilterChainProxyPostProcessor M - [3] - org.springframework.security.context.HttpSessionContextIntegrationFilter[ order=200; ]
2012-02-09 14:42:21,417 INFO FilterChainProxyPostProcessor M - [4] - org.springframework.security.ui.logout.LogoutFilter[ order=300; ]
2012-02-09 14:42:21,418 INFO FilterChainProxyPostProcessor M - [5] - org.zkoss.spring.security.ui.ZkError403Filter[ order=310; ]
2012-02-09 14:42:21,419 INFO FilterChainProxyPostProcessor M - [6] - org.zkoss.spring.security.ui.ZkDisableSessionInvalidateFilter[ order=680; ]
2012-02-09 14:42:21,419 INFO FilterChainProxyPostProcessor M - [7] - org.springframework.security.ui.webapp.AuthenticationProcessingFilter[ order=700; ]
2012-02-09 14:42:21,420 INFO FilterChainProxyPostProcessor M - [8] - org.springframework.security.ui.basicauth.BasicProcessingFilter[ order=1000; ]
2012-02-09 14:42:21,420 INFO FilterChainProxyPostProcessor M - [9] - org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter[ order=1100; ]
2012-02-09 14:42:21,421 INFO FilterChainProxyPostProcessor M - [10] - org.springframework.security.ui.rememberme.RememberMeProcessingFilter[ order=1200; ]
2012-02-09 14:42:21,421 INFO FilterChainProxyPostProcessor M - [11] - org.springframework.security.providers.anonymous.AnonymousProcessingFilter[ order=1300; ]
2012-02-09 14:42:21,422 INFO FilterChainProxyPostProcessor M - [12] - org.springframework.security.ui.ExceptionTranslationFilter[ order=1400; ]
2012-02-09 14:42:21,422 INFO FilterChainProxyPostProcessor M - [13] - org.springframework.security.ui.SessionFixationProtectionFilter[ order=1600; ]
2012-02-09 14:42:21,422 INFO FilterChainProxyPostProcessor M - [14] - org.zkoss.spring.security.ui.ZkEnableSessionInvalidateFilter[ order=1610; ]
2012-02-09 14:42:21,423 INFO FilterChainProxyPostProcessor M - [15] - org.springframework.security.intercept.web.FilterSecurityInterceptor@23f2bc83
2012-02-09 14:42:21,423 INFO FilterChainProxyPostProcessor M - [16] - org.zkoss.spring.security.ui.ZkLoginOKFilter[ order=1710; ]
2012-02-09 14:42:21,425 INFO FilterChainProxyPostProcessor M - Checking whether login URL '/zkloginDialog.zul' is accessible with your configuration
2012-02-09 14:42:21,426 INFO FilterChainProxyPostProcessor M - FilterChainProxy: FilterChainProxy[ UrlMatcher = org.springframework.security.util.AntUrlPathMatcher[requiresLowerCase='true']; Filter Chains: {/**=[org.zkoss.spring.security.config.ZkListenerConfigFilter[ order=10; ], org.zkoss.spring.security.config.ZkDesktopReuseFilter[ order=20; ], org.springframework.security.concurrent.ConcurrentSessionFilter[ order=100; ], org.springframework.security.context.HttpSessionContextIntegrationFilter[ order=200; ], org.springframework.security.ui.logout.LogoutFilter[ order=300; ], org.zkoss.spring.security.ui.ZkError403Filter[ order=310; ], org.zkoss.spring.security.ui.ZkDisableSessionInvalidateFilter[ order=680; ], org.springframework.security.ui.webapp.AuthenticationProcessingFilter[ order=700; ], org.springframework.security.ui.basicauth.BasicProcessingFilter[ order=1000; ], org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter[ order=1100; ], org.springframework.security.ui.rememberme.RememberMeProcessingFilter[ order=1200; ], org.springframework.security.providers.anonymous.AnonymousProcessingFilter[ order=1300; ], org.springframework.security.ui.ExceptionTranslationFilter[ order=1400; ], org.springframework.security.ui.SessionFixationProtectionFilter[ order=1600; ], org.zkoss.spring.security.ui.ZkEnableSessionInvalidateFilter[ order=1610; ], org.springframework.security.intercept.web.FilterSecurityInterceptor@23f2bc83, org.zkoss.spring.security.ui.ZkLoginOKFilter[ order=1710; ]]}]
2012-02-09 14:42:21,479 INFO AbstractSecurityInterceptor M - Validated configuration attributes
2012-02-09 14:42:21,489 INFO ContextLoader M - Root WebApplicationContext: initialization completed in 3202 ms
Feb 9, 2012 2:42:21 PM org.zkoss.zk.ui.http.WebManager <init>:112
INFO: Starting ZK 3.6.3-FL Enterprise (build: 09102318)
Feb 9, 2012 2:42:21 PM org.zkoss.zk.ui.sys.ConfigParser parseConfigXml:127
INFO: Loading system default
Feb 9, 2012 2:42:21 PM org.zkoss.zk.ui.sys.ConfigParser parse:224
INFO: Parsing jndi:/localhost/zk_sample_gui/WEB-INF/zk.xml
Feb 9, 2012 2:42:21 PM org.zkoss.util.logging.LogService <init>:152
INFO: File not found: /Applications/eclipse/Eclipse.app/Contents/MacOS/conf/i3-log.conf
Feb 9, 2012 2:42:23 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Feb 9, 2012 2:42:23 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Feb 9, 2012 2:42:23 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/86 config=null
Feb 9, 2012 2:42:23 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 6783 ms
Any ideas??
In Eclipse?
Go to the 'server' view and select your tomcat configuration.
1. Right mouse click -> 'Clean Tomcat Work Directory ...'
2. Right mouse click -> 'Clean'
best
Stephan
Actually i did those two steps but i still encounter the same error :(
I don't know if its relevant that im working on a Mac... it shouldn't, but im just complementing my issue lol
Ok now i've tried on my windows machine and i get the same results... its so frustrating!! Im eager to see your app working on my computer...
What i did was (having an Eclipse installation ready with m2e plugin):
1.- Check out each project from the svn using the svn repository explorer
2.- Compile keygen and backend (backend without tests due to the PostgreSQL thing)
3.- Compile zkoss project with maven-clean and maven install
Everything build successfully that way.
But when i start my tomcat, even after a clean and clean tomcat work directory, i get this:
Feb 9, 2012 5:47:05 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_24\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\WinSCP\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Common Files\Autodesk Shared\;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files\MySQL\MySQL Server 5.5\bin;C:\perl_op\bin;C:\GnuWin32\bin;C:\apache-ant-1.8.2\bin;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\SproutCore\bin;C:\Program Files (x86)\Notepad++;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Common Files\GTK\2.0\bin;C:\php;C:\Program Files\SlikSvn\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Java\jdk1.6.0_24\bin;C:\apache-maven-3.0.3\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\nodejs\;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\FreeArc\bin;C:\Program Files (x86)\HMA! Pro VPN\bin
Feb 9, 2012 5:47:05 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: {Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:zkoss' did not find a matching property.
Feb 9, 2012 5:47:06 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Feb 9, 2012 5:47:06 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 622 ms
Feb 9, 2012 5:47:06 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 9, 2012 5:47:06 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.35
Feb 9, 2012 5:47:06 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4149)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Feb 9, 2012 5:47:06 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class org.springframework.web.context.request.RequestContextListener
java.lang.ClassNotFoundException: org.springframework.web.context.request.RequestContextListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4149)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Feb 9, 2012 5:47:06 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class org.springframework.security.web.session.HttpSessionEventPublisher
java.lang.ClassNotFoundException: org.springframework.security.web.session.HttpSessionEventPublisher
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4149)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Feb 9, 2012 5:47:06 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
Feb 9, 2012 5:47:06 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Feb 9, 2012 5:47:06 PM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
Feb 9, 2012 5:47:06 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Feb 9, 2012 5:47:06 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Feb 9, 2012 5:47:06 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/37 config=null
Feb 9, 2012 5:47:06 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 637 ms
What am i missing?? Thanks and sorry for all the trouble!!
Ok im officially lost if someone is kind enough to assist me and maybe do a TeamViewer to see what's going on, i would really and greatly appreciate it... thanks!
Alabastida,
try to check you lib folder for the zkoss app under eclipse Tomcat installation. I guess you added Tomcat as server to Eclipse?
I'm working on Windows, so web apps are published on the path that looks something like this (btw, I use WTP plugin for Eclipse Helios, so it adds "wtpwebapps" folder in the Tomcat folder):
C:\Documents and Settings\DS\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
Check zkoss\WEB-INF\lib under your Tomcat-Eclipse path to see if dependency jars are correctly published, that is, if they are present at all. I myself still have the problem of occasional disappearing of some jar files from that folder, so I need to clean all and republish the project each time that happens. It seems to me that your problem has nothing to do with Stephan's app, but has something to do with your Eclipse/Tomcat setup or incompatibility. Which Eclipse do you use?
Have you try to copy the maven-zkoss.war from the zkoss/target/ folder in the webapp folder of a clean Tomcat installation outside Eclipse and start this Tomcat?
Hi Stephan
I have basic Java and am looking for a way to get into using ZK with Tomcat. Is there any proper introductory material to get going on ? - tutorials that take you forward in small steps. I've looked at the supposed tutorials on http://www.zkoss.org/documentation, but these are really just a load of unconnected snippets; so unless you already know how the whole system works, it is very difficult to see where and how everything fits together. Preferably using pure Java.
Thanks.
Hi
I am new to this web based projects. I want to download the source locally and open in eclipse indigo and play around. I have no idea how to do it.
Is there is any step by step document available for this.
Regards
Senthil
We have spend Zksample2 several JUnit tests for the backend DAOs. All should be run out of the box with an H2 in memory database. This database is started and demo data filled by a spring managed configuration which is started before the test is running. The documentation is appended about a little chapter 'JUnit testing'.
Have fun with it.
best
Stephan
Hi
Is ZKSample is developed using ZK EE Commercial version, because when i look at the code, i saw column layout component.
I am using only ZK CE version. I think it is not supported
Senthil M
Hi Senthil,
you are right. Have a look at the attached code: It's a replacement for columnlayout which is working with a combination of hbox and cells. I use thi components in zk ce projects.
<!-- StockPlace Details -->
<panel border="normal" closable="false">
<caption image="/images/icons/view.gif"
label="${c:l('common.Description')}" ></caption>
<panelchildren>
<hbox align="stretch" pack="stretch"
sclass="FDCenterNoBorder" width="100%">
<cell width="50%" style="padding: 0px;" hflex="1">
<panel sclass="oT_PanelchildrenGrid">
<panelchildren>
<grid sclass="GridPlain"
fixedLayout="true">
<columns>
<column align="right"
width="180px" />
<column />
</columns>
<rows>
<row>
<hbox>
<label
value="${c:l('common.Article.No')}" ></label>
<label value="*"
style="color:red;font-size:10px" ></label>
</hbox>
<textbox
id="txtb_Article_ArticleNo"
value="@{controller.article.articleNo}"
constraint="no empty" readonly="true" maxlength="20"
width="150px" ></textbox>
</row>
<row>
<hbox>
<label
value="${c:l('common.Shorttext')}" ></label>
<label value="*"
style="color:red;font-size:10px" ></label>
</hbox>
<textbox
id="txtb_Article_Shorttext"
value="@{controller.article.shorttext}"
constraint="no empty" readonly="true" maxlength="50"
hflex="1" ></textbox>
</row>
<row>
<separator bar="true" ></separator>
<separator bar="true" ></separator>
</row>
<!-- ArticleGroup / Artikelgruppe -->
<row>
<hbox>
<label
value="${c:l('common.ArticleGroup')}" ></label>
</hbox>
<grid
sclass="GridPlainOneTextboxAndButtonRow">
<columns>
<column
width="100%" />
<column
align="right" width="40px" />
</columns>
<rows>
<row>
<textbox
id="txtb_Article_ArticleGroup"
value="@{controller.article.articleGroup.groupname}"
readonly="true" hflex="1" ></textbox>
<button
id="btnSearchArticleGroup" disabled="true"
sclass="oT_ButtonWithIcon"
image="/images/icons/btn_search2_16x16.gif"
tooltiptext="${c:l('btnSearch.tooltiptext')}" ></button>
</row>
</rows>
</grid>
</row>
<!-- ReleasingUnit / Abgabe Einheit -->
<row>
<hbox>
<label
value="${c:l('common.ReleasingUnit')}" ></label>
</hbox>
<grid
sclass="GridPlainOneTextboxAndButtonRow">
<columns>
<column
width="100%" />
<column
align="right" width="40px" />
</columns>
<rows>
<row>
<textbox
id="txtb_Article_ReleasingUnit"
value="@{controller.article.releasingUnit.unitname}"
readonly="true" hflex="1" ></textbox>
<button
id="btnSearchReleasingUnit" disabled="true"
sclass="oT_ButtonWithIcon"
image="/images/icons/btn_search2_16x16.gif"
tooltiptext="${c:l('btnSearch.tooltiptext')}" ></button>
</row>
</rows>
</grid>
</row>
</rows>
</grid>
</panelchildren>
</panel>
</cell>
<cell width="50%" style="padding: 0px;" hflex="1">
<panel sclass="oT_PanelchildrenGrid">
<panelchildren>
<grid sclass="GridPlain"
fixedLayout="true">
<columns>
<column align="right"
width="180px" />
<column />
</columns>
<rows>
<row>
<label
value="${c:l('common.Longtext')}" ></label>
<textbox
id="txtb_Article_Longtext"
value="@{controller.article.longtext}" readonly="true"
multiline="true" rows="6" hflex="1" ></textbox>
</row>
<row>
<label
value="${c:l('common.barcode')}" ></label>
<textbox
id="txtb_Article_Barcode"
value="@{controller.article.barcode}" readonly="true"
hflex="1" ></textbox>
</row>
</rows>
</grid>
</panelchildren>
</panel>
</cell>
</hbox>
</panelchildren>
</panel>
in short:
hbox cell cell hbox
best
Stephan
Hi
Thank you for the code replacement for column layout. It looks great
I am new to zk. Please correct me if i am wrong in the following
1. I think you have used An Automatic Way (With Data Binding) as per http://books.zkoss.org/wiki/ZK_Getting_Started/Creating_a_Simple_Sightseeing_Application
2. And also i am not able understand whenever you say label value like <label
value="${c:l('common.Article.No')}" ></label>
Can you please explain this attribute stuff
Regard
Senthil M
Hi Senthil,
1. Yes in the codes above i use annotated databinding.
2. value="${c:l('common.Article.No')}"
This is a syntax for working with translations. The c:l is a method that looks for language property files and search the 'key' 'common.Article.No' which is found in the english and the german language files.
The using of such an automated translation needs to append a header line for it in your zul-file:
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
These files are settled in the folder src/main/webapp/WEB-INF
file: i3-label.properties (default language)
. . .
# ===========================
# COMMON WORDS |
# ===========================
common.About=about Zksample2
common.Article=Article
common.Article.No=Article No.
common.Branch=Branch
common.BrowserType=Browser
common.Changes=Changes
. . .
file: i3-label_de_DE.properties (German translation)
# ===========================
# Allgemeine Begriffe |
# ===========================
common.About=über Zksample2
common.Application.History=NEWS !!! History der Änderungen
common.Article=Artikel
common.Article.No=Artikel-Nr.
common.Branch=Branche
common.BrowserType=Browser
common.Changes=Änderungen
. . .
Please read the Zksample2 documentation and have a look in the articlexxxxxx modules and the articlexxxxx zul files.
best
Stephan
Hi Stephan
Great. Thank you. Stephan if you release a e-book on this application as step by step, that will be great for new comers. For example, i am from VB6, VB.NET
and developer 2000 background. Only having java concept background. By looking your sample2 application, we 100 % sure that our product will also have the same CRUD operation. But as a new comer, i do not know where to start.
Either you can conduct class or you release e-book (of course you can setup fee for that) . That will be helpful for the new comers.
Regards
Senthil M
Here is document for you reference http://sourceforge.net/projects/zksample2/files/Documentation/
And below is my personal development process,
1.1 Create Database
Using PDM generate > CreateTable.sql
Manual edit > InitialData.sql
MySQL > create database and import sql file
1.2 Eclipse Hibernate-plug-in
1. Add configuration
2. Add code generation configurations
3. Modify Hibernate.reveng Select tables in Java EE model
Mapping file (SecUser.hbm.xml)
Model file (com.xxx.model.SecUser.java)
1.3 Spring-hibernate-backend
1.3.1 Configuration
1. applicationContext-hibernate.xml (DAO & Service mapping)
2. performance-db-logging.xml
3. jdbc.properties
4. log4j.xml
1.3.2 DAO
Create DAO interface and implement with xxxDAOImpl
1.3.3 Service
Create Service interface and implement with xxxServiceImpl
1.3.4 Function rights setting
Right : (for menu items and button, also can add from UI)
menuCat_Quality,
menuItem_Cnc
button_Cnc_SearchName
button_Cnc_New
button_Cnc_Edit
button_Cnc_Delete
button_Cnc_Save
button_Cnc_Close
Group: (group rights)
QcCnc_View
QcCnc_New
QcCnc_Edit
QcCnc_Delete
Role
1.4 Zkoss
1.4.1 Configuration
1. i3-lable.properties (define what kind of data want to show on UI)
2. applicationContext-zkoss.xml (mapping controller to Service)
1.4.2 Menu
mainmenu.xml (control what kind of menu item that user can see)
1.4.3 Webui
Control design
1.4.4 Zul
View design
ZK - Open Source Ajax Java Framework
You are right. Sorry.
The failure is because there is a test case in it. This test case will have a connection to a database. In this case a PostgreSQL Database which is configured in the file: src/test/resources/jdbc.properties.
The inBuild H2 database starts by Application start and not by running a test.
There are 3 ways for a quick solving of that problem.
1. install the backend project with the maven goal -Dskiptest which you can activate in Eclipse too.
2. Delete the test classes/configuration files.
3. Install a postgreSQL database and run the two sql script in the /db folder of the subproject called zkoss which is the frontend stuff.
3.1 zkoss/db/CreateTestDB_Postgres.sql
3.2 zkoss/db/CreateTestTablesWithData_Postgres.sql
to 1.)
Eclipse -> rightClick on the spring-hibernate-backend project and select
Run as... --> run Configurations...
Select Maven and make a new configuration:
write as goal: 'install' and ckeck the 'skip tests'. Than press apply and let it run run.
Maven build now this project by skipping the test folder.
in my Eclipse console:
Scanning for projects...
------------------------------------------------------------------------
Building spring-hibernate-backend->1.0-SNAPSHOT
task-segment:
------------------------------------------------------------------------
[resources:resources {execution: default-resources}]
Using 'UTF-8' encoding to copy filtered resources.
Copying 27 resources
[compiler:compile {execution: default-compile}]
Nothing to compile - all classes are up to date
[resources:testResources {execution: default-testResources}]
Using 'UTF-8' encoding to copy filtered resources.
Copying 3 resources
[compiler:testCompile {execution: default-testCompile}]
Not compiling test sources
[surefire:test {execution: default-test}]
Tests are skipped.
[jar:jar {execution: default-jar}]
Building jar: D:\Entwicklung2\workspace_36_web\spring-hibernate-backend\target\spring-hibernate-backend-1.0-SNAPSHOT.jar
[install:install {execution: default-install}]
Installing D:\Entwicklung2\workspace_36_web\spring-hibernate-backend\target\spring-hibernate-backend-1.0-SNAPSHOT.jar to C:\Users\sge\.m2\repository\de\forsthaus\spring-hibernate-backend\1.0-SNAPSHOT\spring-hibernate-backend-1.0-SNAPSHOT.jar
------------------------------------------------------------------------
BUILD SUCCESSFUL
------------------------------------------------------------------------
Total time: 9 seconds
Finished at: Thu Feb 09 16:41:09 CET 2012
Final Memory: 12M/22M
------------------------------------------------------------------------
best
Stephan