I'll take a look at that stack trace when I can. In the meantime, can you
try adding serializer.jar from a TomEE 7.1.1 into the lib folder (don't add
xalan back) and let us know how you get on?

Thanks for the feedback. If we need to re-roll, so be it. I'd rather fix
the issue.

Thanks

Jon


On Mon, 23 Dec 2019, 17:36 Alex The Rocker, <[email protected]> wrote:

> Hello Jon,
>
> Sorry to put a potential mess in this voting process, but one of the
> most important web apps which I tested with this 7.1.2 release fails
> to start, and I have this exception in localhost.2019-12-23.log file
> which hint that the issue is tied to removal of Apache Xalan:
>
> 23-Dec-2019 16:36:19.387 SEVERE [localhost-startStop-1]
> org.apache.catalina.core.StandardContext.listenerStart Exception
> sending context initialized event to listener instance of class
> [org.apache.myfaces.webapp.StartupServletContextListener]
>         java.lang.NoClassDefFoundError:
> org/apache/xml/serializer/TreeWalker
>                 at
>
> org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:818)
>                 at
>
> org.apache.myfaces.config.DefaultFacesConfigurationProvider.getApplicationConfigurationResourceDocumentPopulatorFacesConfig(DefaultFacesConfigurationProvider.java:521)
>                 at
>
> org.apache.myfaces.config.DefaultFacesConfigurationMerger.getFacesConfigData(DefaultFacesConfigurationMerger.java:107)
>                 at
>
> org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:592)
>                 at
>
> org.apache.myfaces.webapp.AbstractFacesInitializer.buildConfiguration(AbstractFacesInitializer.java:416)
>                 at
>
> org.apache.myfaces.webapp.Jsp21FacesInitializer.initContainerIntegration(Jsp21FacesInitializer.java:73)
>                 at
>
> org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.java:172)
>                 at
>
> org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:121)
>                 at
>
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4697)
>                 at
>
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5165)
>                 at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
>                 at
>
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743)
>                 at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719)
>                 at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
>                 at
>
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1125)
>                 at
>
> org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1859)
>                 at
>
> java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
>                 at
> java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
>                 at
>
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
>                 at
>
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
>                 at java.base/java.lang.Thread.run(Thread.java:834)
>         Caused by: java.lang.ClassNotFoundException:
> org.apache.xml.serializer.TreeWalker
>                 at
>
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1358)
>                 at
>
> org.apache.tomee.catalina.TomEEWebappClassLoader.loadClass(TomEEWebappClassLoader.java:208)
>                 at
>
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1180)
>                 ... 21 more
> 23-Dec-2019 16:36:19.486 SEVERE [localhost-startStop-1]
> org.apache.catalina.core.StandardContext.listenerStop Exception
> sending context destroyed event to listener instance of class
> [org.apache.myfaces.webapp.StartupServletContextListener]
>         java.lang.IllegalStateException: No Factories configured for
> this Application. This happens if the faces-initialization does not
> work at all - make sure that you properly include all configuration
> settings necessary for a basic faces application and that all the
> necessary libs are included. Also check the logging output of your web
> application and your container for any exceptions!
> If you did that and find nothing, the mistake might be due to the fact
> that you use some special web-containers which do not support
> registering context-listeners via TLD files and a context listener is
> not setup in your web.xml.
> A typical config looks like this;
> <listener>
>
> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
> </listener>
>
>                 at
> javax.faces.FactoryFinder._getFactory(FactoryFinder.java:305)
>                 at
> javax.faces.FactoryFinder.getFactory(FactoryFinder.java:225)
>                 at
>
> org.apache.myfaces.context.servlet.FacesContextImplBase.getApplication(FacesContextImplBase.java:169)
>                 at
>
> org.apache.myfaces.webapp.AbstractFacesInitializer._dispatchApplicationEvent(AbstractFacesInitializer.java:329)
>                 at
>
> org.apache.myfaces.webapp.AbstractFacesInitializer.destroyFaces(AbstractFacesInitializer.java:364)
>                 at
>
> org.apache.myfaces.webapp.StartupServletContextListener.contextDestroyed(StartupServletContextListener.java:167)
>                 at
>
> org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4744)
>                 at
>
> org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5403)
>                 at
> org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
>                 at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:187)
>                 at
>
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743)
>                 at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719)
>                 at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
>                 at
>
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1125)
>                 at
>
> org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1859)
>                 at
>
> java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
>                 at
> java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
>                 at
>
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
>                 at
>
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
>                 at java.base/java.lang.Thread.run(Thread.java:834)
> 23-Dec-2019 16:36:19.497 SEVERE [localhost-startStop-1]
> org.apache.catalina.core.StandardContext.listenerStop Exception
> sending context destroyed event to listener instance of class
> [com.acme.foo.appsservices.Job.BackgroundCacheJobManager]
>         java.lang.NullPointerException
>                 at
>
> com.acme.foo.appsservices.Job.BackgroundCacheJobManager.contextDestroyed(BackgroundCacheJobManager.java:34)
>                 at
>
> org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4746)
>                 at
>
> org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5403)
>                 at
> org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
>                 at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:187)
>                 at
>
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743)
>                 at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719)
>                 at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
>                 at
>
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1125)
>                 at
>
> org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1859)
>                 at
>
> java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
>                 at
> java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
>                 at
>
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
>                 at
>
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
>                 at java.base/java.lang.Thread.run(Thread.java:834)
>
>
> How can we be sure that MyFaces isn't relying on Xalan ?
>
> Kind regards,
> Alexandre
>
> Le jeu. 19 déc. 2019 à 08:26, Jonathan Gallimore
> <[email protected]> a écrit :
> >
> > Hi All,
> >
> > Here's a first attempt at roll of a TomEE 7.1.2. Please can you take a
> > careful look, review, test and provide feedback.
> >
> > Maven Repo:
> > https://repository.apache.org/content/repositories/orgapachetomee-1157/
> >
> > Binaries & Source:
> > https://dist.apache.org/repos/dist/dev/tomee/staging-1157/tomee-7.1.2/
> >
> > Tag:
> >
> https://gitbox.apache.org/repos/asf?p=tomee.git;a=tag;h=refs/tags/tomee-7.1.2
> >
> > Release notes:
> >
> https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12312320&version=12345660
> >
> > Please VOTE:
> >
> > [+1] Yes, release it
> > [+0] Not fussed
> > [-1] Don't release, there's a showstopper (please specify what the
> > showstopper is)
> >
> > Vote will be open for 72 hours or as needed.
> >
> > Thanks
> >
> > Jon
>

Reply via email to