Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] IllegalArgumentException when loading a WebApp

Can we see the rest of your stacktrace for that exception?


--
Joakim Erdfelt <joakim@xxxxxxxxxxx>
Expert advice, services and support from from the Jetty & CometD experts


On Mon, Oct 14, 2013 at 5:02 AM, Lothar Kimmeringer <job@xxxxxxxxxxxxxx> wrote:
Hello,

continuing the topic of migrating Jetty to the current version ;-)
I run into a problem when trying to load webapps. I've got a
GWT-application as web-app containing jars in the WEB-INF-directory.
The configuration for the webappcontext-class is more or less the
original one I had with Jetty 7.2:

    <Call name="addBean">
      <Arg>
        <New id="DeploymentManager" class="org.eclipse.jetty.deploy.DeploymentManager">
          <Set name="contexts">
            <Ref id="Contexts" />
          </Set>
          <Call name="setContextAttribute">
            <Arg>org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern</Arg>
            <Arg>.*/jsp-api-[^/]*\.jar$|.*/jsp-[^/]*\.jar$</Arg>
          </Call>
        </New>
      </Arg>
    </Call>

  <Ref id="Contexts">
    <Call name="addHandler"><Arg>
      <New class="org.eclipse.jetty.webapp.WebAppContext">
        <Set name="contextPath">/CACertAdmin</Set>
        <Set name="war">./etc/admin/CACertAdmin.war</Set>
        <Set name="extractWAR">False</Set>
      </New>
    </Arg></Call>
  </Ref>

When tarting, the serverlog contains the following error:

2013-10-14 13:34:18 WARNING: EXCEPTION
java.lang.IllegalArgumentException: !file: jar:file:/C:/HUB/etc/admin/CACertAdmin.war!/WEB-INF/lib/CACertAdmin.jar
        at org.eclipse.jetty.webapp.WebAppClassLoader.addClassPath(WebAppClassLoader.java:245)

I receive the same errors for all other WAR-files I try to add.
Looking into the source of WebAppClassLoader it seems to me that
it can't handle the syntax for jar-in-jar. But this worked before
so I'm sure that there must be some kind of configuration-error
on my side since I can't be the only one who uses this.


Best regards, Lothar
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users


Back to the top