Hello,
I am running into a problem eversince I switched to Tapestry 5.6.0. When I deploy my web application on a standalone Jetty web server the site's CSS file generates an exception. I've included a screen dump of that exception. This exception only occurs on my server machine running Jetty version 9.4.31. It does not happen on my development machine when I am using the Jetty maven plugin version 9.4.31. Both my development machine and my server are fine when using Tapestry 5.5.0. I've modified the server's Jetty logging to include all org.apache related messages by setting the 'org.apache.LEVEL=ALL' in jetty-logging.properties, but unfortunately nothing related to this exception shows up. Another check I did was to run 'mvn dependency:tree -Dverbose -Dincludes=commons-lang ', but it did not provide any output. (I am not including the tapestry-javadoc dependency) Perhaps related, if I include the 'tapestry-webresources' dependency I get a 'java.lang.NoClassDefFoundError: Could not initialize class com.google.javascript.jscomp.CompilerOptions' error. Any suggestions where to look? Thanks! Marcel PS the problem is reproducable by visiting marcelhendinant.com. The site pops up without any CSS applied. Loading the corresponding CSS file using 'http://marcelhendinant.com/assets/ctx/z8e391fe2/css/site.css' the error page shows up. --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
On Thu, Sep 3, 2020 at 7:32 AM Marcel Schepers <[hidden email]>
wrote: > Hello, > Hello! Please try running your site in production with tapestry.production-mode=off to see whether the full stack trace is shown. Attachments are discarded by the ASF mailing list server, so we cannot see your screenshot. > > I am running into a problem eversince I switched to Tapestry 5.6.0. > > When I deploy my web application on a standalone Jetty web server the > site's CSS file generates an exception. I've included a screen dump of > that exception. This exception only occurs on my server machine running > Jetty version 9.4.31. It does not happen on my development machine when > I am using the Jetty maven plugin version 9.4.31. Both my development > machine and my server are fine when using Tapestry 5.5.0. > > I've modified the server's Jetty logging to include all org.apache > related messages by setting the 'org.apache.LEVEL=ALL' in > jetty-logging.properties, but unfortunately nothing related to this > exception shows up. > > Another check I did was to run 'mvn dependency:tree -Dverbose > -Dincludes=commons-lang ', but it did not provide any output. (I am not > including the tapestry-javadoc dependency) > > Perhaps related, if I include the 'tapestry-webresources' dependency I > get a 'java.lang.NoClassDefFoundError: Could not initialize class > com.google.javascript.jscomp.CompilerOptions' error. > > Any suggestions where to look? > > Thanks! > > Marcel > > PS the problem is reproducable by visiting marcelhendinant.com. The site > pops up without any CSS applied. Loading the corresponding CSS file > using 'http://marcelhendinant.com/assets/ctx/z8e391fe2/css/site.css' the > error page shows up. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] -- Thiago |
Oops ... why didn't I think of that myself!
Anyways, I did switch off production-mode and here is the resulting error page. Application Exception Tapestry Version: 5.6.0 Application Version: 0-SNAPSHOT An exception has occurred processing this request. org/apache/commons/lang3/StringUtils Go to http://marcelhendinant.comGo to http://marcelhendinant.com (with reload) with reload: Force a reload of component classes. This is often necessary after fixing a class that previously failed to compile due to errors. java.lang.NoClassDefFoundError org/apache/commons/lang3/StringUtils java.lang.ClassNotFoundException org.apache.commons.lang3.StringUtils Filter Frames? Stack trace: java.net.URLClassLoader findClass() URLClassLoader.java 382 java.lang.ClassLoader loadClass() ClassLoader.java 418 java.lang.ClassLoader loadClass() ClassLoader.java 351 org.eclipse.jetty.webapp.WebAppClassLoader loadClass() WebAppClassLoader.java 543 java.lang.ClassLoader loadClass() ClassLoader.java 351 org.apache.tapestry5.internal.services.assets.ChecksumPath <init>() ChecksumPath.java 48 org.apache.tapestry5.internal.services.assets.ContextAssetRequestHandler handleAssetRequest() ContextAssetRequestHandler.java 48 org.apache.tapestry5.internal.services.AssetDispatcher dispatch() AssetDispatcher.java 122 $Dispatcher_7058cdf56054a dispatch() $Dispatcher_7058cdf560553 dispatch() $Dispatcher_7058cdf560547 dispatch() org.apache.tapestry5.modules.TapestryModule$RequestHandlerTerminator service() TapestryModule.java 305 org.apache.tapestry5.internal.services.RequestErrorFilter service() RequestErrorFilter.java 26 $RequestHandler_7058cdf560548 service() org.apache.tapestry5.modules.TapestryModule$3 service() TapestryModule.java 848 $RequestHandler_7058cdf560548 service() org.apache.tapestry5.modules.TapestryModule$2 service() TapestryModule.java 838 $RequestHandler_7058cdf560548 service() org.apache.tapestry5.internal.services.StaticFilesFilter service() StaticFilesFilter.java 89 $RequestHandler_7058cdf560548 service() org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2 invoke() CheckForUpdatesFilter.java 105 org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2 invoke() CheckForUpdatesFilter.java 95 org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier withRead() ConcurrentBarrier.java 83 org.apache.tapestry5.internal.services.CheckForUpdatesFilter service() CheckForUpdatesFilter.java 119 $RequestHandler_7058cdf560548 service() $RequestHandler_7058cdf56053d service() org.apache.tapestry5.modules.TapestryModule$HttpServletRequestHandlerTerminator service() TapestryModule.java 256 org.apache.tapestry5.upload.internal.services.MultipartServletRequestFilter service() MultipartServletRequestFilter.java 45 $HttpServletRequestHandler_7058cdf56053f service() org.apache.tapestry5.internal.gzip.GZipFilter service() GZipFilter.java 59 $HttpServletRequestHandler_7058cdf56053f service() org.apache.tapestry5.internal.services.IgnoredPathsFilter service() IgnoredPathsFilter.java 69 $HttpServletRequestFilter_7058cdf560539 service() $HttpServletRequestHandler_7058cdf56053f service() org.apache.tapestry5.modules.TapestryModule$1 service() TapestryModule.java 798 $HttpServletRequestHandler_7058cdf56053f service() $HttpServletRequestHandler_7058cdf560538 service() org.apache.tapestry5.TapestryFilter doFilter() TapestryFilter.java 166 org.eclipse.jetty.servlet.ServletHandler$CachedChain doFilter() ServletHandler.java 1630 org.eclipse.jetty.servlet.ServletHandler doHandle() ServletHandler.java 567 org.eclipse.jetty.server.handler.ScopedHandler handle() ScopedHandler.java 143 org.eclipse.jetty.security.SecurityHandler handle() SecurityHandler.java 602 org.eclipse.jetty.server.handler.HandlerWrapper handle() HandlerWrapper.java 127 org.eclipse.jetty.server.handler.ScopedHandler nextHandle() ScopedHandler.java 235 org.eclipse.jetty.server.session.SessionHandler doHandle() SessionHandler.java 1610 org.eclipse.jetty.server.handler.ScopedHandler handle() ScopedHandler.java 143 org.eclipse.jetty.server.handler.RequestLogHandler handle() RequestLogHandler.java 54 org.eclipse.jetty.server.handler.HandlerWrapper handle() HandlerWrapper.java 127 org.eclipse.jetty.server.handler.ScopedHandler nextHandle() ScopedHandler.java 235 org.eclipse.jetty.server.handler.ContextHandler doHandle() ContextHandler.java 1377 org.eclipse.jetty.server.handler.ScopedHandler nextScope() ScopedHandler.java 188 org.eclipse.jetty.servlet.ServletHandler doScope() ServletHandler.java 507 org.eclipse.jetty.server.session.SessionHandler doScope() SessionHandler.java 1580 org.eclipse.jetty.server.handler.ScopedHandler nextScope() ScopedHandler.java 186 org.eclipse.jetty.server.handler.ContextHandler doScope() ContextHandler.java 1292 org.eclipse.jetty.server.handler.ScopedHandler handle() ScopedHandler.java 141 org.eclipse.jetty.server.handler.ContextHandlerCollection handle() ContextHandlerCollection.java 234 org.eclipse.jetty.server.handler.HandlerCollection handle() HandlerCollection.java 146 org.eclipse.jetty.server.handler.HandlerWrapper handle() HandlerWrapper.java 127 org.eclipse.jetty.server.Server handle() Server.java 501 org.eclipse.jetty.server.HttpChannel lambda$handle$1() HttpChannel.java 383 org.eclipse.jetty.server.HttpChannel dispatch() HttpChannel.java 556 org.eclipse.jetty.server.HttpChannel handle() HttpChannel.java 375 org.eclipse.jetty.server.HttpConnection onFillable() HttpConnection.java 273 org.eclipse.jetty.io.AbstractConnection$ReadCallback succeeded() AbstractConnection.java 311 org.eclipse.jetty.io.FillInterest fillable() FillInterest.java 105 org.eclipse.jetty.io.ChannelEndPoint$1 run() ChannelEndPoint.java 104 org.eclipse.jetty.util.thread.QueuedThreadPool runJob() QueuedThreadPool.java 806 org.eclipse.jetty.util.thread.QueuedThreadPool$Runner run() QueuedThreadPool.java 938 java.lang.Thread run() Thread.java 748 Request Context Path none (deployed as root) Path /assets/ctx/z8e391fe2/css/site.css Locale en_GB Server Name marcelhendinant.com Ports (local/server) 80 / 80 Method GET Headers Accept text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 Accept-Encoding gzip, deflate Accept-Language en-GB,en;q=0.5 Connection keep-alive Host marcelhendinant.com Upgrade-Insecure-Requests 1 User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:80.0) Gecko/20100101 Firefox/80.0 Attributes servletAPI.contentLength -1 servletAPI.protocol HTTP/1.1 servletAPI.scheme http tapestry.active-page-loaded true tapestry.suppress-core-stylesheets true Context Attributes javax.servlet.context.tempdir /tmp/jetty/jetty-0_0_0_0-80-marcelhendinant-web_war-_-marcelhendinant_com-3725470700800630545.dir org.apache.jasper.compiler.TldCache org.apache.jasper.compiler.TldCache@5851c5 org.apache.tapestry5.application-registry org.apache.tapestry5.ioc.internal.RegistryWrapper@b12192 org.apache.tomcat.InstanceManager org.apache.tomcat.SimpleInstanceManager@4be2b7 org.eclipse.jetty.injectionCollection org.eclipse.jetty.plus.annotation.InjectionCollection@1f7dbc4 org.eclipse.jetty.lifecyleCallbackCollection org.eclipse.jetty.plus.annotation.LifeCycleCallbackCollection@11eb8ea org.eclipse.jetty.server.Executor QueuedThreadPool[qtp21470783]@1479e3f{STARTED,10<=10<=200,i=4,r=1,q=0}[ReservedThreadExecutor@1f36891{s=1/1,p=0}] org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern .*/[^/]*servlet-api-[^/]*\.jar$|.*/javax.servlet.jsp.jstl-.*\.jar$|.*/org.apache.taglibs.taglibs-standard-impl-.*\.jar$ org.eclipse.jetty.util.DecoratedObjectFactory org.eclipse.jetty.util.DecoratedObjectFactory[decorators=3] resourceCache ResourceCache[null,org.eclipse.jetty.servlet.DefaultServlet@1d766af]@5581160 Threads Thread Name Group Name State Flags DestroyJavaVM main RUNNABLE Finalizer system WAITING daemon, priority 8 Reference Handler system WAITING daemon, priority 10 Scanner-0 main TIMED_WAITING daemon Scheduler-20230140-1 main TIMED_WAITING Signal Dispatcher system RUNNABLE daemon, priority 9 Tapestry PeriodicExecutor main TIMED_WAITING org.eclipse.jetty.util.RolloverFileOutputStream main TIMED_WAITING daemon qtp21470783-10-acceptor-0@1a86e38-ServerConnector@16f893d{HTTP/1.1, (http/1.1)}{0.0.0.0:80} main RUNNABLE qtp21470783-11 main RUNNABLE qtp21470783-12-acceptor-0@c3abd4-ServerConnector@45f3c{SSL, (ssl, http/1.1)}{0.0.0.0:443} main RUNNABLE qtp21470783-13 main TIMED_WAITING qtp21470783-14 main TIMED_WAITING qtp21470783-15 main RUNNABLE qtp21470783-16 main TIMED_WAITING qtp21470783-17 main TIMED_WAITING qtp21470783-18 main TIMED_WAITING qtp21470783-9 main RUNNABLE System Properties awt.toolkit sun.awt.X11.XToolkit file.encoding UTF-8 file.encoding.pkg sun.io file.separator / java.awt.graphicsenv sun.awt.X11GraphicsEnvironment java.awt.printerjob sun.print.PSPrinterJob java.class.path /opt/jetty/start.jar java.class.version 52.0 java.endorsed.dirs /opt/PACKAGES/jdk1.8.0_241/jre/lib/endorsed java.ext.dirs /opt/PACKAGES/jdk1.8.0_241/jre/lib/ext:/usr/java/packages/lib/ext java.home /opt/PACKAGES/jdk1.8.0_241/jre java.io.tmpdir /tmp/jetty java.library.path /usr/java/packages/lib/i386 /lib /usr/lib java.runtime.name Java(TM) SE Runtime Environment java.runtime.version 1.8.0_241-b07 java.specification.name Java Platform API Specification java.specification.vendor Oracle Corporation java.specification.version 1.8 java.vendor Oracle Corporation java.vendor.url http://java.oracle.com/ java.vendor.url.bug http://bugreport.sun.com/bugreport/ java.version 1.8.0_241 java.vm.info mixed mode java.vm.name Java HotSpot(TM) Client VM java.vm.specification.name Java Virtual Machine Specification java.vm.specification.vendor Oracle Corporation java.vm.specification.version 1.8 java.vm.vendor Oracle Corporation java.vm.version 25.241-b07 jetty.base /var/jetty jetty.git.hash 450ba27947e13e66baa8cd1ce7e85a4461cacc1d jetty.home /opt/jetty jetty.tag.version master jetty.version 9.4.31.v20200723 line.separator os.arch i386 os.name Linux os.version 2.6.39 path.separator : sun.arch.data.model 32 sun.boot.class.path /opt/PACKAGES/jdk1.8.0_241/jre/lib/resources.jar /opt/PACKAGES/jdk1.8.0_241/jre/lib/rt.jar /opt/PACKAGES/jdk1.8.0_241/jre/lib/sunrsasign.jar /opt/PACKAGES/jdk1.8.0_241/jre/lib/jsse.jar /opt/PACKAGES/jdk1.8.0_241/jre/lib/jce.jar /opt/PACKAGES/jdk1.8.0_241/jre/lib/charsets.jar /opt/PACKAGES/jdk1.8.0_241/jre/lib/jfr.jar /opt/PACKAGES/jdk1.8.0_241/jre/classes sun.boot.library.path /opt/PACKAGES/jdk1.8.0_241/jre/lib/i386 sun.cpu.endian little sun.cpu.isalist sun.io.unicode.encoding UnicodeLittle sun.java.command /opt/jetty/start.jar jetty.http.port=80 jetty.ssl.port=443 jetty.state=/var/jetty/jetty.state start-log-file=/var/run/jetty/jetty-start.log sun.java.launcher SUN_STANDARD sun.jnu.encoding UTF-8 sun.management.compiler HotSpot Client Compiler sun.os.patch.level unknown tapestry.production-mode false user.country US user.dir /var/jetty user.home /root user.language en user.name root user.timezone Europe/Amsterdam Thiago H. de Paula Figueiredo wrote on 03/09/2020 14:52: > On Thu, Sep 3, 2020 at 7:32 AM Marcel Schepers <[hidden email]> > wrote: > >> Hello, >> > Hello! > > Please try running your site in production with > tapestry.production-mode=off to see whether the full stack trace is shown. > > Attachments are discarded by the ASF mailing list server, so we cannot see > your screenshot. > > >> I am running into a problem eversince I switched to Tapestry 5.6.0. >> >> When I deploy my web application on a standalone Jetty web server the >> site's CSS file generates an exception. I've included a screen dump of >> that exception. This exception only occurs on my server machine running >> Jetty version 9.4.31. It does not happen on my development machine when >> I am using the Jetty maven plugin version 9.4.31. Both my development >> machine and my server are fine when using Tapestry 5.5.0. >> >> I've modified the server's Jetty logging to include all org.apache >> related messages by setting the 'org.apache.LEVEL=ALL' in >> jetty-logging.properties, but unfortunately nothing related to this >> exception shows up. >> >> Another check I did was to run 'mvn dependency:tree -Dverbose >> -Dincludes=commons-lang ', but it did not provide any output. (I am not >> including the tapestry-javadoc dependency) >> >> Perhaps related, if I include the 'tapestry-webresources' dependency I >> get a 'java.lang.NoClassDefFoundError: Could not initialize class >> com.google.javascript.jscomp.CompilerOptions' error. >> >> Any suggestions where to look? >> >> Thanks! >> >> Marcel >> >> PS the problem is reproducable by visiting marcelhendinant.com. The site >> pops up without any CSS applied. Loading the corresponding CSS file >> using 'http://marcelhendinant.com/assets/ctx/z8e391fe2/css/site.css' the >> error page shows up. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [hidden email] >> For additional commands, e-mail: [hidden email] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
> This seems to be a dependency problem. What dependency management tool > you use? Until we have a proper fix for that in Tapestry itself, you > can add a dependency to org.apache.commons/commons-lang 3:3.4 to your > project. Maven 3 is what I am using. Adding the commons-lang 3.4 dependency resolved the problem. |
Hello, Marcel!
Tapestry 5.6.1 has been released and it fixes this issue without you having to add commons-lang yourself. On Fri, Sep 4, 2020 at 4:21 PM Marcel Schepers <[hidden email]> wrote: > > > This seems to be a dependency problem. What dependency management tool > > you use? Until we have a proper fix for that in Tapestry itself, you > > can add a dependency to org.apache.commons/commons-lang 3:3.4 to your > > project. > Maven 3 is what I am using. > > Adding the commons-lang 3.4 dependency resolved the problem. > -- Thiago |
Free forum by Nabble | Edit this page |