Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Cryptic Error Message

If you have firefox, pop that URL into it's location bar, and you can see what's in that file. (or if it doesn't exist)

You might want to also consider doing an exploded war deployment. (to eliminate 1 level of depth to the URL)

---
Joakim Erdfelt / joakim@xxxxxxxxxxx


On Fri, Jul 17, 2009 at 11:51 AM, Chad La Joie <chad.lajoie@xxxxxxxxx> wrote:
Okay, I grabbed your latest commit which identified the culprit.  It's Spring, specifically the MVC's spring.tld file.  So, now the question is, what's the best way to deal with this?  I obviously don't want to be in a position where I have to maintain a special release of Spring.

The URL that it's trying to process is:
jar:jar:file:/opt/idp/shibboleth-idp-2.1.3/war/idp.war!/WEB-INF/lib/spring-webmvc-2.5.6.jar!/META-INF/spring.tld


Chad La Joie wrote:
Thanks for the quick response.

I feel foolish for having to ask this but...  how do I turn on debug logging?  I couldn't find it in the docs.

Joakim Erdfelt wrote:
There's a TLD arriving from somewhere that is declared but can't be
found/parsed.
It can come from a variety of sources, even inside of your dependencies (jar
& zip files) in WEB-INF/lib/ dir.

You'll want to figure out what TLD is being declared and not found (or bad).

You have 2 choices at this point ...
1) Try starting up your app (via command line) with DEBUG enabled (it will
be noisy).

That should output some lines with the "TLD=" right before that exception
telling you what TLD it is attempting to parse.

2) Update your svn tree. I made the log output some more details on the
TLD/Resource that is attempted to be loaded. (r563)

Good luck.

---
Joakim Erdfelt / joakim@xxxxxxxxxxx


On Fri, Jul 17, 2009 at 10:57 AM, Chad La Joie <chad.lajoie@xxxxxxxxx>wrote:

I'm testing with the Jetty 7 built from rev 560, latest rev as off a 30
mins ago, or so.

I'm trying to deploy my application via a context descriptor:
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
 <Set name="war">/opt/idp/shibboleth-idp/war/idp.war</Set>
 <Set name="contextPath">/idp</Set>
 <Set name="extractWAR">false</Set>
 <Set name="copyWebDir">false</Set>
</Configure>

When the context is starting I receive the exception below.  The odd part
is that the error seems to be occurring while the deployer is attempting to
parse a TLD (tag lib descriptor).   The reason I find that odd is because I
have no TLDs in my app.  Could someone suggest what the issue might be?


---- BEGIN ERROR ----

java.net.MalformedURLException: no !/ in spec
      at java.net.URL.<init>(URL.java:601)
      at java.net.URL.<init>(URL.java:464)
      at java.net.URL.<init>(URL.java:413)
      at java.net.JarURLConnection.parseSpecs(JarURLConnection.java:161)
      at java.net.JarURLConnection.<init>(JarURLConnection.java:144)
      at
sun.net.www.protocol.jar.JarURLConnection.<init>(JarURLConnection.java:63)
      at sun.net.www.protocol.jar.Handler.openConnection(Handler.java:24)
      at java.net.URL.openConnection(URL.java:945)
      at
org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
      at
org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown
Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
      at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
      at org.eclipse.jetty.xml.XmlParser.parse(XmlParser.java:187)
      at org.eclipse.jetty.xml.XmlParser.parse(XmlParser.java:203)
      at
org.eclipse.jetty.webapp.TagLibConfiguration$TldProcessor.parse(TagLibConfiguration.java:149)
      at
org.eclipse.jetty.webapp.TagLibConfiguration.preConfigure(TagLibConfiguration.java:262)
      at
org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:343)
      at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:56)
      at
org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:164)
      at
org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
      at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:56)
      at
org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:164)
      at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:56)
      at
org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:92)
      at org.eclipse.jetty.server.Server.doStart(Server.java:232)
      at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:56)
      at
org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:989)
      at java.security.AccessController.doPrivileged(Native Method)
      at
org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:954)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.eclipse.jetty.start.Main.invokeMain(Main.java:308)
      at org.eclipse.jetty.start.Main.start(Main.java:756)
      at org.eclipse.jetty.start.Main.main(Main.java:171)

--
SWITCH
Serving Swiss Universities
--------------------------
Chad La Joie, Software Engineer, Net Services
Werdstrasse 2, P.O. Box, 8021 Zürich, Switzerland
phone +41 44 268 15 75, fax +41 44 268 15 68
chad.lajoie@xxxxxxxxx, http://www.switch.ch

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



------------------------------------------------------------------------

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


--
SWITCH
Serving Swiss Universities
--------------------------
Chad La Joie, Software Engineer, Net Services
Werdstrasse 2, P.O. Box, 8021 Zürich, Switzerland
phone +41 44 268 15 75, fax +41 44 268 15 68
chad.lajoie@xxxxxxxxx, http://www.switch.ch

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


Back to the top