Re: Why does my "HelloWorldPage" not work?
Thanks for your suggestion! The simple page has run successfully with "slf4j-api-1.7.2.jar","wicket-core-6.5.0.jar","wicket-request-6.5.0.jar" and "wicket-util-6.5.0.jar". I 've learned more from the sample! Then, I would like to appreciate each one friend who has given me hands! Thanks again! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656664.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Why does my "HelloWorldPage" not work?
Hi Mike, These problems are not wicket specific. I'd suggest to make your life easier and switch to Maven. Then, Maven and IDE would handle most of the dependencies for you - e.g. NetBeans searches all Maven repo for classes of given name, and adds it to dependencies. Otherwise, the process goes like: 1) If you see Caused by: java.lang.NoClassDefFoundError: Lorg/slf4j/Logger; 2) Google for org.slf4j.Logger 3) Download latest version of the containing library and put it to your libs 4) Go to 1) Ondra On 02/19/2013 05:40 AM, mike.hua wrote: Thanks for Martin and Ernesto's help! I have done that,but other Errors happened! Tomcat Server: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/MyFirstWicket]] at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252) at java.util.concurrent.FutureTask.get(FutureTask.java:111) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/MyFirstWicket]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) ... 7 more Caused by: java.lang.NoClassDefFoundError: Lorg/slf4j/Logger; at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Class.java:2308) at java.lang.Class.getDeclaredFields(Class.java:1760) at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:106) at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:261) at org.apache.catalina.startup.WebAnnotationSet.loadApplicationFilterAnnotations(WebAnnotationSet.java:110) at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:66) at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:405) at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:881) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:369) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5179) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 7 more Caused by: java.lang.ClassNotFoundException: org.slf4j.Logger at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559) ... 21 more <http://apache-wicket.1842946.n4.nabble.com/file/n4656532/WicketError.png> -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656532.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Why does my "HelloWorldPage" not work?
Thanks for Martin and Ernesto's help! I have done that,but other Errors happened! Tomcat Server: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/MyFirstWicket]] at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252) at java.util.concurrent.FutureTask.get(FutureTask.java:111) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/MyFirstWicket]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) ... 7 more Caused by: java.lang.NoClassDefFoundError: Lorg/slf4j/Logger; at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Class.java:2308) at java.lang.Class.getDeclaredFields(Class.java:1760) at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:106) at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:261) at org.apache.catalina.startup.WebAnnotationSet.loadApplicationFilterAnnotations(WebAnnotationSet.java:110) at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:66) at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:405) at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:881) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:369) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5179) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 7 more Caused by: java.lang.ClassNotFoundException: org.slf4j.Logger at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559) ... 21 more <http://apache-wicket.1842946.n4.nabble.com/file/n4656532/WicketError.png> -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656532.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Why does my "HelloWorldPage" not work?
Do not add anything! Just remove all jars but wicket-core.jar, wicket-util.jar and wicket-request.jar. On Mon, Feb 18, 2013 at 3:31 PM, Kees van Dieren wrote: > Add > > http://repo1.maven.org/maven2/commons-lang/commons-lang/2.6/commons-lang-2.6.jarto > you WEB-INF/lib > > Best regards / Met vriendelijke groet, > > Kees van Dieren > Squins IT Solutions BV > Oranjestraat 30 > 2983 HS Ridderkerk > The Netherlands > Mobile: +31 (0)6 30413841 > www.squins.com > Chamber of commerce Rotterdam: 24435103 > > > 2013/2/18 mike.hua > > > "java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils" is > > continued after remove velocity.jar! > > > > Thank you for your continous help! > > > > > > > > -- > > View this message in context: > > > http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656492.html > > Sent from the Users forum mailing list archive at Nabble.com. > > > > - > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com <http://jweekend.com/>
Re: Why does my "HelloWorldPage" not work?
Add http://repo1.maven.org/maven2/commons-lang/commons-lang/2.6/commons-lang-2.6.jarto you WEB-INF/lib Best regards / Met vriendelijke groet, Kees van Dieren Squins IT Solutions BV Oranjestraat 30 2983 HS Ridderkerk The Netherlands Mobile: +31 (0)6 30413841 www.squins.com Chamber of commerce Rotterdam: 24435103 2013/2/18 mike.hua > "java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils" is > continued after remove velocity.jar! > > Thank you for your continous help! > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656492.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Why does my "HelloWorldPage" not work?
For "Hollo World" app you only need wicket jars. wicket-core-6.5.0.jar wicket-util-6.5.0.jar wicket-request-6.5.0.jar On Mon, Feb 18, 2013 at 1:36 PM, mike.hua wrote: > Paste the source code: > > *HelloWorldPage.html:* > > *HelloWorldPage.java:* > package myWicket; > > import org.apache.wicket.markup.html.WebPage; > import org.apache.wicket.markup.html.basic.Label; > > public class HelloWorldPage extends WebPage { > private static final long serialVersionUID = 1L; > > public HelloWorldPage() { > add(new Label("message", "Hello World using Wicket!!")); > } > } > > *HelloWorldApplication.java:* > package myWicket; > > import org.apache.wicket.Page; > import org.apache.wicket.protocol.http.WebApplication; > > public class HelloWorldApplication extends WebApplication { > public HelloWorldApplication() { > } > > @Override > public Class getHomePage() { > return HelloWorldPage.class; > } > } > > *web.xml:* > > http://www.w3.org/2001/XMLSchema-instance"; > xmlns="http://java.sun.com/xml/ns/javaee"; > xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"; > id="WebApp_ID" version="3.0"> > MyFirstWicket > > HelloWorldApplication > > org.apache.wicket.protocol.http.WicketFilter > > applicationClassName > > myWicket.HelloWorldApplication > > > > HelloWorldApplication > /* > > > index.html > index.htm > index.jsp > default.html > default.htm > default.jsp > > > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656498.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Regards - Ernesto Reinaldo Barreiro Antilia Soft http://antiliasoft.com/ <http://antiliasoft.com/antilia>
Re: Why does my "HelloWorldPage" not work?
Paste the source code: *HelloWorldPage.html:* *HelloWorldPage.java:* package myWicket; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.basic.Label; public class HelloWorldPage extends WebPage { private static final long serialVersionUID = 1L; public HelloWorldPage() { add(new Label("message", "Hello World using Wicket!!")); } } *HelloWorldApplication.java:* package myWicket; import org.apache.wicket.Page; import org.apache.wicket.protocol.http.WebApplication; public class HelloWorldApplication extends WebApplication { public HelloWorldApplication() { } @Override public Class getHomePage() { return HelloWorldPage.class; } } *web.xml:* http://www.w3.org/2001/XMLSchema-instance"; xmlns="http://java.sun.com/xml/ns/javaee"; xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"; id="WebApp_ID" version="3.0"> MyFirstWicket HelloWorldApplication org.apache.wicket.protocol.http.WicketFilter applicationClassName myWicket.HelloWorldApplication HelloWorldApplication /* index.html index.htm index.jsp default.html default.htm default.jsp -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656498.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Why does my "HelloWorldPage" not work?
<http://apache-wicket.1842946.n4.nabble.com/file/n4656497/WicketError.png> The code is in the front of the question! Thanks! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656497.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Why does my "HelloWorldPage" not work?
Please paste the code of you HelloWorld page and the list of files in WEB-INF/lib in the produced .war file. On Mon, Feb 18, 2013 at 2:20 PM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > http://commons.apache.org/lang/ > > On Mon, Feb 18, 2013 at 1:19 PM, mike.hua wrote: > > > "java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils" is > > continued after remove velocity.jar! > > > > Thank you for your continous help! > > > > > > > > -- > > View this message in context: > > > http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656492.html > > Sent from the Users forum mailing list archive at Nabble.com. > > > > - > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > > -- > Regards - Ernesto Reinaldo Barreiro > Antilia Soft > http://antiliasoft.com/ <http://antiliasoft.com/antilia> > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com <http://jweekend.com/>
Re: Why does my "HelloWorldPage" not work?
http://commons.apache.org/lang/ On Mon, Feb 18, 2013 at 1:19 PM, mike.hua wrote: > "java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils" is > continued after remove velocity.jar! > > Thank you for your continous help! > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656492.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Regards - Ernesto Reinaldo Barreiro Antilia Soft http://antiliasoft.com/ <http://antiliasoft.com/antilia>
Re: Why does my "HelloWorldPage" not work?
Just delete wicket-velocity.jar as Martin suggested. On Mon, Feb 18, 2013 at 12:53 PM, mike.hua wrote: > Thank you! > But the "HelloWorld" demo is very simple,and it doesn't need some extra jar > files! > When I added the "velocity-1.7.jar" file,the above errors has happened. > > So I don't know what to do. > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656489.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Regards - Ernesto Reinaldo Barreiro Antilia Soft http://antiliasoft.com/ <http://antiliasoft.com/antilia>
Re: Why does my "HelloWorldPage" not work?
Thank you! But the "HelloWorld" demo is very simple,and it doesn't need some extra jar files! When I added the "velocity-1.7.jar" file,the above errors has happened. So I don't know what to do. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656489.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Why does my "HelloWorldPage" not work?
I think you don't need Velocity for a Hello World application. You also mentioned that you are a beginner ... Just remove wicket-velocity.jar and velocity.jar from your app. On Mon, Feb 18, 2013 at 1:37 PM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > Hi, > > > On Mon, Feb 18, 2013 at 12:28 PM, mike.hua wrote: > > > Thanks a lot! > > But now there are some errors in Tomcat server or GlassFish server. > > *In Tomcat:* > > Exception starting filter HelloWorldApplication > > java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils > > at > > > > > org.apache.velocity.runtime.resource.ResourceManagerImpl.initialize(ResourceManagerImpl.java:161) > > at > > > > > org.apache.velocity.runtime.RuntimeInstance.initializeResourceManager(RuntimeInstance.java:730) > > at > > > org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:263) > > at > > > org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:646) > > at > > > > > org.apache.velocity.runtime.RuntimeSingleton.init(RuntimeSingleton.java:226) > > at org.apache.velocity.app.Velocity.init(Velocity.java:97) > > at > org.apache.wicket.velocity.Initializer.init(Initializer.java:61) > > at > > org.apache.wicket.Application.initInitializers(Application.java:612) > > at > > org.apache.wicket.Application.initializeComponents(Application.java:521) > > at > > org.apache.wicket.Application.initApplication(Application.java:817) > > at > > org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:409) > > at > > org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:336) > > at > > > > > org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281) > > at > > > > > org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262) > > at > > > > > org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:107) > > at > > > > > org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4656) > > at > > > > > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5312) > > at > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > > at > > > > > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) > > at > > > > > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) > > at > > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) > > at java.util.concurrent.FutureTask.run(FutureTask.java:166) > > at > > > > > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) > > at > > > > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > > at java.lang.Thread.run(Thread.java:722) > > Caused by: java.lang.ClassNotFoundException: > > org.apache.commons.lang.StringUtils > > at > > > > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714) > > at > > > > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559) > > > > > Those errors are not exactly wicket related... It is just that you are > including jars that need other jars to function properly. Either you > include those jar manually on class path (aka WEB-INF/lib) or your > application start using some dependency management tool. > > > > *In GlassFish server log:* > > WebModule[/MyFirstWicket]PWC1270: Exception starting filter > > HelloWorldApplication > > java.lang.NoSuchMethodError: > > > > > org.slf4j.impl.StaticLoggerBinder.getSingleton()Lorg/slf4j/impl/StaticLoggerBinder; > > at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128) > > at > > org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:107) > > at > > org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:295) > > at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269) > > at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281) > > at > > > org.apache.wicket.protocol.http.WicketFilter.(WicketFilter.java:64) > > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > > Method) > > at > > > > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) > > at > > > > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > > at > java.lang.reflect.Constructor.newInstance(Constructor.java:525) > > at > > > > > com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:307) > > at > > > > > com.sun.enterprise.web.WebContainer.createFilterInstance(WebContainer.java:745) > > at > > > com.sun.enterprise.w
Re: Why does my "HelloWorldPage" not work?
Hi, On Mon, Feb 18, 2013 at 12:28 PM, mike.hua wrote: > Thanks a lot! > But now there are some errors in Tomcat server or GlassFish server. > *In Tomcat:* > Exception starting filter HelloWorldApplication > java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils > at > > org.apache.velocity.runtime.resource.ResourceManagerImpl.initialize(ResourceManagerImpl.java:161) > at > > org.apache.velocity.runtime.RuntimeInstance.initializeResourceManager(RuntimeInstance.java:730) > at > org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:263) > at > org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:646) > at > > org.apache.velocity.runtime.RuntimeSingleton.init(RuntimeSingleton.java:226) > at org.apache.velocity.app.Velocity.init(Velocity.java:97) > at org.apache.wicket.velocity.Initializer.init(Initializer.java:61) > at > org.apache.wicket.Application.initInitializers(Application.java:612) > at > org.apache.wicket.Application.initializeComponents(Application.java:521) > at > org.apache.wicket.Application.initApplication(Application.java:817) > at > org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:409) > at > org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:336) > at > > org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281) > at > > org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262) > at > > org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:107) > at > > org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4656) > at > > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5312) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > at > > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) > at > > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) > at > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) > at java.util.concurrent.FutureTask.run(FutureTask.java:166) > at > > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > at java.lang.Thread.run(Thread.java:722) > Caused by: java.lang.ClassNotFoundException: > org.apache.commons.lang.StringUtils > at > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714) > at > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559) > > Those errors are not exactly wicket related... It is just that you are including jars that need other jars to function properly. Either you include those jar manually on class path (aka WEB-INF/lib) or your application start using some dependency management tool. > *In GlassFish server log:* > WebModule[/MyFirstWicket]PWC1270: Exception starting filter > HelloWorldApplication > java.lang.NoSuchMethodError: > > org.slf4j.impl.StaticLoggerBinder.getSingleton()Lorg/slf4j/impl/StaticLoggerBinder; > at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128) > at > org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:107) > at > org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:295) > at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269) > at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281) > at > org.apache.wicket.protocol.http.WicketFilter.(WicketFilter.java:64) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) > at > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > at java.lang.reflect.Constructor.newInstance(Constructor.java:525) > at > > com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:307) > at > > com.sun.enterprise.web.WebContainer.createFilterInstance(WebContainer.java:745) > at > com.sun.enterprise.web.WebModule.createFilterInstance(WebModule.java:1972) > at > > org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:253) > at > > org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:120) > at > > org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4685) > at > org.apache.catalina.core.StandardContext.start(StandardContext.java:5377) > at com.sun.enterprise.web.WebModule.start(WebModule.java:498) > at > > o
Re: Why does my "HelloWorldPage" not work?
(EngineRef.java:130) at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269) at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:301) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461) at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:375) at com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:219) at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131) at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91) at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82) at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67) at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139) at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:78) at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:253) at com.sun.enterprise.v3.server.AppServerStartup.doStart(AppServerStartup.java:145) at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:136) at com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:79) at com.sun.enterprise.glassfish.bootstrap.GlassFishDecorator.start(GlassFishDecorator.java:63) at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishImpl.start(OSGiGlassFishImpl.java:69) at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:117) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97) at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:55) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656486.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Why does my "HelloWorldPage" not work?
Thanks! I have tried it,and the error still happens! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656482.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Why does my "HelloWorldPage" not work?
Thanks! I have tried it,and the error still happens! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656481.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Why does my "HelloWorldPage" not work?
Is there any solutions without maven? Because I've never used it,and I am a new "Java Web" developer! Before using Java, I have used ASP.NET 2.0 for about 7 years. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656480.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Why does my "HelloWorldPage" not work?
Remove wicket-velocity.jar from the dependencies. On Mon, Feb 18, 2013 at 12:03 PM, mike.hua wrote: > Thank you for your help! > I have changed param-value to "myWicket.HelloWorldApplication",and the > error > appears yet! > In Server log,I can see the error messages below: > *Exception starting filter HelloWorldApplication > java.lang.NoClassDefFoundError: org/apache/velocity/app/Velocity > at org.apache.wicket.velocity.Initializer.init(Initializer.java:61) > at > org.apache.wicket.Application.initInitializers(Application.java:612) > at > org.apache.wicket.Application.initializeComponents(Application.java:521) > at > org.apache.wicket.Application.initApplication(Application.java:817) > at > org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:409) > at > org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:336) > at > > org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281) > at > > org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262) > at > > org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:107) > at > > org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4656) > at > > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5312) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > at > > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) > at > > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) > at > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) > at java.util.concurrent.FutureTask.run(FutureTask.java:166) > at > > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > at java.lang.Thread.run(Thread.java:722) > Caused by: java.lang.ClassNotFoundException: > org.apache.velocity.app.Velocity > at > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714) > at > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)* > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656477.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com <http://jweekend.com/>
Re: Why does my "HelloWorldPage" not work?
Thank you for your help! I have changed param-value to "myWicket.HelloWorldApplication",and the error appears yet! In Server log,I can see the error messages below: *Exception starting filter HelloWorldApplication java.lang.NoClassDefFoundError: org/apache/velocity/app/Velocity at org.apache.wicket.velocity.Initializer.init(Initializer.java:61) at org.apache.wicket.Application.initInitializers(Application.java:612) at org.apache.wicket.Application.initializeComponents(Application.java:521) at org.apache.wicket.Application.initApplication(Application.java:817) at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:409) at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:336) at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262) at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:107) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4656) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5312) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.ClassNotFoundException: org.apache.velocity.app.Velocity at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)* -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656477.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Why does my "HelloWorldPage" not work?
The error message:*The requested resource () is not available.* Is my wicket project short of any jar files? My wicket project in Eclipse IDE: <http://apache-wicket.1842946.n4.nabble.com/file/n4656455/WicketError.png> -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656455.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
回复: RE: Why does my "HelloWorldPage" not work?
Thanks for your reply!The server error:The requested resource () is not available.I'm a new Wicket(also Java) user!Is my project short of any jar files?Here is my wicket project in the Eclipse Environment: - 原文 - 发件人: Colin Rogers [via Apache Wicket] 主 题: RE: Why does my "HelloWorldPage" not work?时 间: 2013年2月18日 09:22:09Hi Mike, Before people/I can help you; what is the error you are getting? Also, have you tried using the Maven Quickstart/ Wicket project archetype - they are incredibly useful in creating a base for a Wicket project? Cheers, Col. -Original Message- From: mike.hua [mailto:[hidden email]] Sent: 18 February 2013 11:53 To: [hidden email] Subject: Re: Why does my "HelloWorldPage" not work? Someone can help me? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656452.htmlSent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] EMAIL DISCLAIMER This email message and its attachments are confidential and may also contain copyright or privileged material. If you are not the intended recipient, you may not forward the email or disclose or use the information contained in it. If you have received this email message in error, please advise the sender immediately by replying to this email and delete the message and any associated attachments. Any views, opinions, conclusions, advice or statements expressed in this email message are those of the individual sender and should not be relied upon as the considered view, opinion, conclusions, advice or statement of this company except where the sender expressly, and with authority, states them to be the considered view, opinion, conclusions, advice or statement of this company. Every care is taken but we recommend that you scan any attachments for viruses. - To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656453.html To unsubscribe from Why does my "HelloWorldPage" not work?, click here.NAML -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/RE-Why-does-my-HelloWorldPage-not-work-tp4656454.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Why does my "HelloWorldPage" not work?
Hi Mike, Before people/I can help you; what is the error you are getting? Also, have you tried using the Maven Quickstart/ Wicket project archetype - they are incredibly useful in creating a base for a Wicket project? Cheers, Col. -Original Message- From: mike.hua [mailto:hz...@sohu.com] Sent: 18 February 2013 11:53 To: users@wicket.apache.org Subject: Re: Why does my "HelloWorldPage" not work? Someone can help me? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656452.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org EMAIL DISCLAIMER This email message and its attachments are confidential and may also contain copyright or privileged material. If you are not the intended recipient, you may not forward the email or disclose or use the information contained in it. If you have received this email message in error, please advise the sender immediately by replying to this email and delete the message and any associated attachments. Any views, opinions, conclusions, advice or statements expressed in this email message are those of the individual sender and should not be relied upon as the considered view, opinion, conclusions, advice or statement of this company except where the sender expressly, and with authority, states them to be the considered view, opinion, conclusions, advice or statement of this company. Every care is taken but we recommend that you scan any attachments for viruses. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Why does my "HelloWorldPage" not work?
Someone can help me? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451p4656452.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Why does my "HelloWorldPage" not work?
*HelloWorldPage.html:* *HelloWorldPage.java:* package myWicket; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.basic.Label; public class HelloWorldPage extends WebPage { private static final long serialVersionUID = 1L; public HelloWorldPage() { add(new Label("message", "Hello World using Wicket!!")); } } *HelloWorldApplication.java:* package myWicket; import org.apache.wicket.Page; import org.apache.wicket.protocol.http.WebApplication; public class HelloWorldApplication extends WebApplication { public HelloWorldApplication() { } @Override public Class getHomePage() { return HelloWorldPage.class; } } *web.xml:* http://www.w3.org/2001/XMLSchema-instance"; xmlns="http://java.sun.com/xml/ns/javaee"; xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"; id="WebApp_ID" version="3.0"> MyFirstWicket HelloWorldApplication org.apache.wicket.protocol.http.WicketFilter applicationClassName org.apache.wicket.examples.helloworld.HelloWorldApplication HelloWorldApplication /* index.html index.htm index.jsp default.html default.htm default.jsp The Server Error:*The requested resource () is not available.* Here is my Eclipse settings: WicketError.png <http://apache-wicket.1842946.n4.nabble.com/file/n4656451/WicketError.png> What's wrong with the simple wicket program? Thanks a lot! Note: I'm a new wicket developer,and I'm eager for your help! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Why-does-my-HelloWorldPage-not-work-tp4656451.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org