tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johan Compagner <jcompag...@servoy.com>
Subject Re: is there already a case for web-fragment.xml in the war and then unpack=false option to not extract the war?
Date Fri, 09 Oct 2015 10:47:38 GMT
a case is created:

https://bz.apache.org/bugzilla/show_bug.cgi?id=58490



On 22 September 2015 at 11:37, Mark Thomas <markt@apache.org> wrote:

> On 22/09/2015 10:25, Johan Compagner wrote:
> > Hi,
> >
> > when we have a webfragment in our war  to enable i think that absolute
> > ordering
> > we get this exception?:
>
> Tomcat version?
>
> Mark
>
>
> >
> > 21-Sep-2015 14:15:11.355 SEVERE [localhost-startStop-1]
> >
> org.apache.catalina.startup.ContextConfig.processServletContainerInitializers
> > Failed to process JAR found at URL [/post_install_test] for
> > ServletContainerInitializers for context with name [{1}]
> >  java.net.MalformedURLException: no !/ in spec
> >       at java.net.URL.<init>(Unknown Source)
> >       at java.net.URL.<init>(Unknown Source)
> >       at java.net.URL.<init>(Unknown Source)
> >       at java.net.JarURLConnection.parseSpecs(Unknown Source)
> >       at java.net.JarURLConnection.<init>(Unknown Source)
> >       at sun.net.www.protocol.jar.JarURLConnection.<init>(Unknown Source)
> >       at sun.net.www.protocol.jar.Handler.openConnection(Unknown Source)
> >       at java.net.URL.openConnection(Unknown Source)
> >       at java.net.URL.openStream(Unknown Source)
> >       at
> org.apache.catalina.startup.WebappServiceLoader.parseConfigFile(WebappServiceLoader.java:156)
> >       at
> org.apache.catalina.startup.WebappServiceLoader.load(WebappServiceLoader.java:113)
> >       at
> org.apache.catalina.startup.ContextConfig.processServletContainerInitializers(ContextConfig.java:1597)
> >       at
> org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1125)
> >       at
> org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:768)
> >       at
> org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:303)
> >       at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> >       at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> >       at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5069)
> >       at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> >       at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
> >       at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
> >       at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:697)
> >       at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:919)
> >       at
> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1704)
> >       at java.util.concurrent.Executors$RunnableAdapter.call(Unknown
> Source)
> >       at java.util.concurrent.FutureTask.run(Unknown Source)
> >       at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
> Source)
> >       at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> Source)
> >       at java.lang.Thread.run(Unknown Source)
> > Caused by: java.lang.NullPointerException: no !/ in spec
> >       at sun.net.www.protocol.jar.Handler.parseAbsoluteSpec(Unknown
> Source)
> >       at sun.net.www.protocol.jar.Handler.parseURL(Unknown Source)
> >       ... 29 more
> >
> >
> > if we say to tomcat8 to not extract the war (unpack=false)
> >
> >
> > This is completely outside of the application itself because it is
> > trying to start it. when unpack is default (true) then it works fine.
> >
> >
> > so in our WEB-INF/web.xml we have:
> >
> >
> >   <absolute-ordering>
> >     <name>servoy_ngclient</name>
> >   </absolute-ordering>
> >
> >
> >
> > and then in the WEB-INF/lib/ngclient.jar/META-INF/web-fragement.xml
> >
> >
> > <web-fragment  xmlns="http://java.sun.com/xml/ns/javaee"
> >     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >     xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> > http://java.sun.com/xml/ns/javaee/web-fragment_3_0.xsd" version="3.0">
> >       <name>servoy_ngclient</name>
> > </web-fragment>
> >
> >
> > If we remove that ordering and/or the web-fragement.xml then it starts
> > working again
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


-- 
Johan Compagner
Servoy

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message