Re: Error when I compile the project in the google cloud
Hi Martin, Ok, thanks for the detailed info there. I guess that GAE was pretty cool when it first came out, but is looking pretty limited now. Thanks again, Dan On 8 May 2016 20:24, "Martin Grigorov"wrote: > Hi, > > The problem is not with the compilation of the project but at runtime > during start: > > at > de.agilecoders.wicket.webjars.WicketWebjars.install(WicketWebjars.java:75) > at > > org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.configureWebJars(IsisWicketApplication.java:342) > > Google AppEngine has many restrictions - the one below, usage of java.io.*, > usage of threads, and many more... > I've stopped trying to keep Wicket and related libraries runnable on GAE > several years ago. GAE is not practical to me. > > One solution would be to override IsisWicketApplication#configureWebJars() > and do nothing in this method. The next step would be to provide plain > (Css|JavaScript)ResourceReference for all resources the application uses > (e.g. Bootstrap, Bootstrap widgets, etc.). > I am aware that Webjars based resources also do not work nicely in OSGi > environment, so I'd gladly accept PullRequests/issues for Wicket-Bootstrap > [1] components which do not provide an easy way to be overridden to use > non-Webjars ResourceReferences. > > > 1. https://github.com/l0rdn1kk0n/wicket-bootstrap/ > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Fri, May 6, 2016 at 12:10 PM, Dan Haywood > > wrote: > > > Hi Arturo, > > thanks for reporting this. > > > > > > > > @Martin - > > any insights on this? I think we want to keep using webjars because they > > are convenient, but is there any way to make them compatible with GAE, do > > you know? > > > > Thx > > Dan > > > > > > > > -- Forwarded message -- > > From: Arturo Ulises CastaƱeda Estrada > > Date: 5 May 2016 at 16:15 > > Subject: Error when I compile the project in the google cloud > > To: "users@isis.apache.org" > > > > > > Hi Dan, I'm trying install my app in the google cloud but i get the next > > error. > > > > In my local server I not get this error, Im working with java 7 and > MySQL. > > > > [s~cqnz-web-app/1.392437955031148096].: INFO - Application > > - [WicketFilter] init: Wicket extensions initializer > > > > 11:25:15.199 > > Uncaught exception from servlet > > java.lang.NoClassDefFoundError: java.net.URLStreamHandler is a restricted > > class. Please see the Google App Engine developer's guide for more > details. > > at > > > com.google.apphosting.runtime.security.shared.stub.java.net.URLStreamHandler.(URLStreamHandler.java) > > at > > > de.agilecoders.wicket.webjars.util.UrlResourceStreamProvider.(UrlResourceStreamProvider.java:22) > > at > > > de.agilecoders.wicket.webjars.settings.ResourceStreamProvider$2.newInstance(ResourceStreamProvider.java:34) > > at > > > de.agilecoders.wicket.webjars.util.file.WebjarsResourceFinder.(WebjarsResourceFinder.java:35) > > at > > > de.agilecoders.wicket.webjars.WicketWebjars.install(WicketWebjars.java:75) > > at > > > org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.configureWebJars(IsisWicketApplication.java:342) > > at > > > org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.init(IsisWicketApplication.java:241) > > at domainapp.webapp.DomainApplication.init(DomainApplication.java:64) > > at org.apache.wicket.Application.initApplication(Application.java:823) > > at > > org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:427) > > at > > org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:351) > > at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) > > at > > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > > at > > > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:662) > > at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > > at > > > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250) > > at > > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517) > > at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467) > > at > > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > > at > > > com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler(AppVersionHandlerMap.java:206) > > at > > > com.google.apphosting.runtime.jetty.AppVersionHandlerMap.getHandler(AppVersionHandlerMap.java:179) > > at > > > com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:136) > > at > > > com.google.apphosting.runtime.JavaRuntime$RequestRunnable.run(JavaRuntime.java:468) > > at > > > com.google.tracing.TraceContext$TraceContextRunnable.runInContext(TraceContext.java:439) > > at > > >
Re: Error when I compile the project in the google cloud
Hi, The problem is not with the compilation of the project but at runtime during start: at de.agilecoders.wicket.webjars.WicketWebjars.install(WicketWebjars.java:75) at org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.configureWebJars(IsisWicketApplication.java:342) Google AppEngine has many restrictions - the one below, usage of java.io.*, usage of threads, and many more... I've stopped trying to keep Wicket and related libraries runnable on GAE several years ago. GAE is not practical to me. One solution would be to override IsisWicketApplication#configureWebJars() and do nothing in this method. The next step would be to provide plain (Css|JavaScript)ResourceReference for all resources the application uses (e.g. Bootstrap, Bootstrap widgets, etc.). I am aware that Webjars based resources also do not work nicely in OSGi environment, so I'd gladly accept PullRequests/issues for Wicket-Bootstrap [1] components which do not provide an easy way to be overridden to use non-Webjars ResourceReferences. 1. https://github.com/l0rdn1kk0n/wicket-bootstrap/ Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, May 6, 2016 at 12:10 PM, Dan Haywoodwrote: > Hi Arturo, > thanks for reporting this. > > > > @Martin - > any insights on this? I think we want to keep using webjars because they > are convenient, but is there any way to make them compatible with GAE, do > you know? > > Thx > Dan > > > > -- Forwarded message -- > From: Arturo Ulises CastaƱeda Estrada > Date: 5 May 2016 at 16:15 > Subject: Error when I compile the project in the google cloud > To: "users@isis.apache.org" > > > Hi Dan, I'm trying install my app in the google cloud but i get the next > error. > > In my local server I not get this error, Im working with java 7 and MySQL. > > [s~cqnz-web-app/1.392437955031148096].: INFO - Application > - [WicketFilter] init: Wicket extensions initializer > > 11:25:15.199 > Uncaught exception from servlet > java.lang.NoClassDefFoundError: java.net.URLStreamHandler is a restricted > class. Please see the Google App Engine developer's guide for more details. > at > com.google.apphosting.runtime.security.shared.stub.java.net.URLStreamHandler.(URLStreamHandler.java) > at > de.agilecoders.wicket.webjars.util.UrlResourceStreamProvider.(UrlResourceStreamProvider.java:22) > at > de.agilecoders.wicket.webjars.settings.ResourceStreamProvider$2.newInstance(ResourceStreamProvider.java:34) > at > de.agilecoders.wicket.webjars.util.file.WebjarsResourceFinder.(WebjarsResourceFinder.java:35) > at > de.agilecoders.wicket.webjars.WicketWebjars.install(WicketWebjars.java:75) > at > org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.configureWebJars(IsisWicketApplication.java:342) > at > org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.init(IsisWicketApplication.java:241) > at domainapp.webapp.DomainApplication.init(DomainApplication.java:64) > at org.apache.wicket.Application.initApplication(Application.java:823) > at > org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:427) > at > org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:351) > at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:662) > at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250) > at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517) > at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler(AppVersionHandlerMap.java:206) > at > com.google.apphosting.runtime.jetty.AppVersionHandlerMap.getHandler(AppVersionHandlerMap.java:179) > at > com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:136) > at > com.google.apphosting.runtime.JavaRuntime$RequestRunnable.run(JavaRuntime.java:468) > at > com.google.tracing.TraceContext$TraceContextRunnable.runInContext(TraceContext.java:439) > at > com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:446) > at com.google.tracing.CurrentContext.runInContext(CurrentContext.java:256) > at > com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:310) > at > com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:302) > at > com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:443) > at >