1. Use Maven for your dependency management 2. Don't put random stuff in common/lib, use a war file 3. Use Maven for building your war file 4. Don't put stuff in common/lib, use a war file 5. Use Maven
Martijn On Wed, Feb 4, 2009 at 11:03 PM, Swapna Rachamalla <[email protected]> wrote: > Noon: i Have modified log4properties.file but still getting same error. > > Igor: i have added slf4j jars in lib but still getting same error > > Is there any other way to resolve this/ > > Thanks is advance > > Thanks > Swapna > > > > On Wed, Feb 4, 2009 at 1:54 PM, Igor Vaynberg <[email protected]>wrote: > >> you are missing the logging slf4j jars. please use maven to manage >> your dependencies if you do not know how to resolve problems like >> this. >> >> -igor >> >> On Wed, Feb 4, 2009 at 1:45 PM, Swapna Rachamalla >> <[email protected]> wrote: >> > Hi >> > >> > I have looked into those log files. >> > >> > I have put the following jar files in my app and tmocat/commons/lib >> > wicket-1.4-rc1.jar >> > wicket-auth-roles-1.4-rc1.jar >> > wicket-datetime-1.4-rc1.jar >> > wicket-extensions-1.4-rc1.jar >> > wicket-guice-1.4-rc1.jar >> > wicket-ioc-1.4-rc1.jar >> > wicket-jmx-1.4-rc1.jar >> > wicket-objectsizeof-agent-1.4-rc1.jar >> > wicket-spring-1.4-rc1.jar >> > wicket-velocity-1.4-rc1.jar >> > >> > Do i need to update any other jar files to resolve this. >> > >> > it is saying that java.lang.NoClassDefFoundError: >> org/slf4j/LoggerFactory.. >> > >> > *the log file is like the following* >> > >> > >> > Feb 4, 2009 11:38:21 AM org.apache.catalina.core.ApplicationContext log >> > INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: >> > [org.apache.webapp.balancer.RuleChain: >> > [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News >> / >> > Redirect URL: http://www.cnn.com], >> > [org.apache.webapp.balancer.rules.RequestParameterRule: Target param >> name: >> > paramName / Target param value: paramValue / Redirect URL: >> > http://www.yahoo.com], >> > [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: >> > http://jakarta.apache.org]] >> > Feb 4, 2009 11:38:21 AM org.apache.catalina.core.ApplicationContext log >> > INFO: ContextListener: contextInitialized() >> > Feb 4, 2009 11:38:21 AM org.apache.catalina.core.ApplicationContext log >> > INFO: SessionListener: contextInitialized() >> > Feb 4, 2009 11:38:22 AM org.apache.catalina.core.ApplicationContext log >> > INFO: ContextListener: contextInitialized() >> > Feb 4, 2009 11:38:22 AM org.apache.catalina.core.ApplicationContext log >> > INFO: SessionListener: contextInitialized() >> > Feb 4, 2009 11:38:30 AM org.apache.catalina.core.StandardContext >> filterStart >> > SEVERE: Exception starting filter HelloWorldApplication >> > java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory >> > at >> > >> org.apache.wicket.protocol.http.WicketFilter.<clinit>(WicketFilter.java:97) >> > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native >> Method) >> > at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown >> Source) >> > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown >> > Source) >> > at java.lang.reflect.Constructor.newInstance(Unknown Source) >> > at java.lang.Class.newInstance0(Unknown Source) >> > at java.lang.Class.newInstance(Unknown Source) >> > at >> > >> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:210) >> > at >> > >> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304) >> > at >> > >> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77) >> > at >> > >> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3634) >> > at >> > org.apache.catalina.core.StandardContext.start(StandardContext.java:4217) >> > at >> > >> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) >> > at >> > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) >> > at >> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) >> > at >> > >> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904) >> > at >> > >> org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867) >> > at >> > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474) >> > at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122) >> > at >> > >> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) >> > at >> > >> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) >> > at >> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021) >> > at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) >> > at >> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) >> > at >> > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) >> > at >> > org.apache.catalina.core.StandardService.start(StandardService.java:450) >> > at >> > org.apache.catalina.core.StandardServer.start(StandardServer.java:709) >> > at org.apache.catalina.startup.Catalina.start(Catalina.java:551) >> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) >> > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) >> > at java.lang.reflect.Method.invoke(Unknown Source) >> > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) >> > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) >> > Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory >> > at >> > >> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1355) >> > at >> > >> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1201) >> > at java.lang.ClassLoader.loadClassInternal(Unknown Source) >> > ... 34 more >> > Feb 4, 2009 11:39:04 AM org.apache.catalina.core.StandardContext >> filterStart >> > SEVERE: Exception starting filter HelloWorldApplication >> > >> > On Wed, Feb 4, 2009 at 1:22 PM, Marcelo Morales <marcelomorales.name@ >> > gmail.com> wrote: >> > >> >> Hi >> >> Check the other log. Usually there are two logs on vanilla tomcat, >> >> catalina-* and localhost-* >> >> >> >> On Wed, Feb 4, 2009 at 5:18 PM, Swapna Rachamalla >> >> <[email protected]> wrote: >> >> > Hi >> >> > >> >> > I Have developed HelloWorld example using Apache Wicket which is given >> >> > http://wicket.apache.org/examples.html. >> >> > >> >> > I have compiled the java files Successfully. >> >> > >> >> > But while starting the tomcat 5.5 web server iam getting the following >> >> > error. >> >> > >> >> > org.apache.catalina.core.StandardContext start >> >> > SEVERE: Error filterStart >> >> > org.apache.catalina.core.StandardContext start >> >> > SEVERE: Context [/WicketApp] startup failed due to previous errors >> >> > >> >> > Please can u help me out in resoving this issue. >> >> > >> >> > Thanks >> >> > Swapna >> >> > >> >> >> >> >> >> >> >> -- >> >> Marcelo Morales >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: [email protected] >> >> For additional commands, e-mail: [email protected] >> >> >> >> >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
