1 Reply Latest reply on Oct 11, 2013 7:46 AM by David Beer

    Webjars and JBoss AS 7.1.1

    David Beer Newbie

      Hi All

       

      I am trying to deploy wicket-bootstrap samples to JBoss AS 7.1.1 as you can see here https://github.com/l0rdn1kk0n/wicket-bootstrap/issues/234 with a bit of research we have fixed the initial issue and have managed to get the application to deploy but now I am getting a reference error in relation to webjars. Is there anything I need to add to the configuration to get JBoss AS 7.1.1 to find the resources in the webjars. I have tried adding VFS as per https://code.google.com/p/reflections/wiki/JBossIntegration, but still get the same error below any thoughts on this.

       

      12:17:34,324 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "demo.war"

      12:17:35,486 INFO  [org.apache.wicket.util.file.WebXmlFile] (MSC service thread 1-2) web.xml: url mapping found for filter with name bootstrap-samples: [/*]

      12:17:35,550 INFO  [org.apache.wicket.Application] (MSC service thread 1-2) [bootstrap-samples] init: Wicket core library initializer

      12:17:35,552 INFO  [org.apache.wicket.RequestListenerInterface] (MSC service thread 1-2) registered listener interface [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()]

      12:17:35,553 INFO  [org.apache.wicket.RequestListenerInterface] (MSC service thread 1-2) registered listener interface [RequestListenerInterface name=IFormSubmitListener, method=public abstract void org.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()]

      12:17:35,554 INFO  [org.apache.wicket.RequestListenerInterface] (MSC service thread 1-2) registered listener interface [RequestListenerInterface name=ILinkListener, method=public abstract void org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()]

      12:17:35,555 INFO  [org.apache.wicket.RequestListenerInterface] (MSC service thread 1-2) registered listener interface [RequestListenerInterface name=IOnChangeListener, method=public abstract void org.apache.wicket.markup.html.form.IOnChangeListener.onSelectionChanged()]

      12:17:35,555 INFO  [org.apache.wicket.RequestListenerInterface] (MSC service thread 1-2) registered listener interface [RequestListenerInterface name=IRedirectListener, method=public abstract void org.apache.wicket.IRedirectListener.onRedirect()]

      12:17:35,556 INFO  [org.apache.wicket.RequestListenerInterface] (MSC service thread 1-2) registered listener interface [RequestListenerInterface name=IResourceListener, method=public abstract void org.apache.wicket.IResourceListener.onResourceRequested()]

      12:17:35,557 INFO  [org.apache.wicket.Application] (MSC service thread 1-2) [bootstrap-samples] init: Wicket extensions initializer

      12:17:35,781 INFO  [org.apache.wicket.protocol.http.WebApplication] (MSC service thread 1-2) [bootstrap-samples] Started Wicket version 6.11.0 in DEVELOPMENT mode

      12:17:35,781 ERROR [stderr] (MSC service thread 1-2) ********************************************************************

      12:17:35,782 ERROR [stderr] (MSC service thread 1-2) *** WARNING: Wicket is running in DEVELOPMENT mode.              ***

      12:17:35,782 ERROR [stderr] (MSC service thread 1-2) ***                               ^^^^^^^^^^^                    ***

      12:17:35,782 ERROR [stderr] (MSC service thread 1-2) *** Do NOT deploy to your live server(s) without changing this.  ***

      12:17:35,783 ERROR [stderr] (MSC service thread 1-2) *** See Application#getConfigurationType() for more information. ***

      12:17:35,783 ERROR [stderr] (MSC service thread 1-2) ********************************************************************

      12:17:35,786 INFO  [org.jboss.web] (MSC service thread 1-2) JBAS018210: Registering web context: /bootstrap-samples

      12:17:35,927 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS018559: Deployed "demo.war"

      12:17:38,406 ERROR [de.agilecoders.wicket.webjars.util.file.WebjarsResourceFinder] (http--127.0.0.1-8080-3) can't locate resource for: de/agilecoders/wicket/webjars/request/resource/webjars/bootstrap/3.0.0/css/bootstrap.css; /webjars/bootstrap/3.0.0/css/bootstrap.css could not be found. Make sure you've added the corresponding WebJar and please check for typos.

      12:17:38,407 WARN  [RequestCycleExtra] (http--127.0.0.1-8080-3) ********************************

      12:17:38,408 WARN  [RequestCycleExtra] (http--127.0.0.1-8080-3) Handling the following exception: org.apache.wicket.WicketRuntimeException: java.lang.IllegalArgumentException: /webjars/bootstrap/3.0.0/css/bootstrap.css could not be found. Make sure you've added the corresponding WebJar and please check for typos.

        at de.agilecoders.wicket.webjars.util.file.WebjarsResourceFinder.find(WebjarsResourceFinder.java:90) [wicket-webjars-0.3.0.jar:]

        at org.apache.wicket.core.util.resource.locator.ResourceStreamLocator.locate(ResourceStreamLocator.java:130) [wicket-core-6.11.0.jar:6.11.0]

        at org.apache.wicket.core.util.resource.locator.ResourceStreamLocator.locate(ResourceStreamLocator.java:164) [wicket-core-6.11.0.jar:6.11.0]

        at org.apache.wicket.core.util.resource.locator.caching.CachingResourceStreamLocator.locate(CachingResourceStreamLocator.java:122) [wicket-core-6.11.0.jar:6.11.0]

        at org.apache.wicket.request.resource.PackageResource.exists(PackageResource.java:522) [wicket-core-6.11.0.jar:6.11.0]

        at org.apache.wicket.request.resource.PackageResource.exists(PackageResource.java:498) [wicket-core-6.11.0.jar:6.11.0]

        at org.apache.wicket.request.resource.ResourceReferenceRegistry$DefaultResourceReferenceFactory.create(ResourceReferenceRegistry.java:79) [wicket-core-6.11.0.jar:6.11.0]

        at org.apache.wicket.request.resource.ResourceReferenceRegistry.createDefaultResourceReference(ResourceReferenceRegistry.java:398) [wicket-core-6.11.0.jar:6.11.0]

        at org.apache.wicket.request.resource.ResourceReferenceRegistry.addDefaultResourceReference(ResourceReferenceRegistry.java:340) [wicket-core-6.11.0.jar:6.11.0]

        at org.apache.wicket.request.resource.ResourceReferenceRegistry.getResourceReference(ResourceReferenceRegistry.java:265) [wicket-core-6.11.0.jar:6.11.0]

        at org.apache.wicket.request.resource.ResourceReferenceRegistry.getResourceReference(ResourceReferenceRegistry.java:217) [wicket-core-6.11.0.jar:6.11.0]

        at org.apache.wicket.core.request.mapper.BasicResourceReferenceMapper.mapRequest(BasicResourceReferenceMapper.java:133) [wicket-core-6.11.0.jar:6.11.0]

        at org.apache.wicket.request.mapper.ParentPathReferenceRewriter.mapRequest(ParentPathReferenceRewriter.java:84) [wicket-request-6.11.0.jar:6.11.0]

        at org.apache.wicket.request.mapper.CompoundRequestMapper.mapRequest(CompoundRequestMapper.java:152) [wicket-request-6.11.0.jar:6.11.0]

        at org.apache.wicket.request.cycle.RequestCycle.resolveRequestHandler(RequestCycle.java:190) [wicket-core-6.11.0.jar:6.11.0]

        at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:215) [wicket-core-6.11.0.jar:6.11.0]

        at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289) [wicket-core-6.11.0.jar:6.11.0]

        at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259) [wicket-core-6.11.0.jar:6.11.0]

        at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201) [wicket-core-6.11.0.jar:6.11.0]

        at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282) [wicket-core-6.11.0.jar:6.11.0]

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

        at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]

        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]

        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

        at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]

      Caused by: java.lang.IllegalArgumentException: /webjars/bootstrap/3.0.0/css/bootstrap.css could not be found. Make sure you've added the corresponding WebJar and please check for typos.

        at org.webjars.WebJarAssetLocator.throwNotFoundException(WebJarAssetLocator.java:190) [webjars-locator-0.5.jar:]

        at org.webjars.WebJarAssetLocator.getFullPath(WebJarAssetLocator.java:211) [webjars-locator-0.5.jar:]

        at de.agilecoders.wicket.webjars.util.file.WebjarsResourceFinder.find(WebjarsResourceFinder.java:82) [wicket-webjars-0.3.0.jar:]

        ... 32 more