Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    java.net.MalformedURLException during Tomcat startup

    • I am using Isomorphic 3.1-p20130226
    • I have an application that runs perfectly in developer mode in the Eclipse environment.
    • When I run the application with a Tomcat server (and the GWT client code compiled to JavaScript) I get unexpected behavior such as SmartGWT widgets becoming visible even though I have set visible off.
    • When I look at the Tomcat log while Tomcat is installing my application from a WAR file It appears as though Isomorphic gets a java.net.MalformedURLException during some kind of Isomorphic initialization phase. This happens before I access my application through the HTML page and none of my code has been invoked or called.
    • After the Isomorphic java.net.MalformedURLException I access my application through the application web page and I get the unexpected behavior.


    Here is the portion of the Tomcat log file which shows the java.net.MalformedURLException during Isomorphic initialization.

    Code:
    INFO: Deploying web application archive I:\apache-tomcat-7.0.34\webapps\MVP1-1.5.war
    Apr 12, 2013 11:36:20 AM org.apache.catalina.startup.TldConfig tldScanWebXml
    WARNING: Failed to process TLD with path [isomorphic] and URI [/WEB-INF/iscTaglib.xml]
    java.net.MalformedURLException
            at java.net.URL.<init>(URL.java:619)
            at java.net.URL.<init>(URL.java:482)
            at java.net.URL.<init>(URL.java:431)
            at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:605)
            at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:189)
            at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:799)
            at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
            at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
            at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1210)
            at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:568)
            at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1537)
            at org.apache.catalina.startup.TldConfig.tldScanStream(TldConfig.java:542)
            at org.apache.catalina.startup.TldConfig.tldScanWebXml(TldConfig.java:355)
            at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:270)
            at org.apache.catalina.startup.TldConfig.lifecycleEvent(TldConfig.java:567)
            at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
            at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
            at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
            at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
            at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
            at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
            at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
            at java.util.concurrent.FutureTask.run(FutureTask.java:166)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
            at java.lang.Thread.run(Thread.java:722)Caused by: java.lang.NullPointerException
            at java.net.URL.<init>(URL.java:524)
            ... 29 more
    
    ISC: Configuring log4j from: file:/I:/apache-tomcat-7.0.34/webapps/MVP1-1.5/WEB-INF/classes/log4j.isc.config.xml
    === 2013-04-12 11:36:20,956 [op-1] INFO  ISCInit - Isomorphic SmartClient/SmartGWT Framework initialization called from com.isomorphic.base.InitListener
    === 2013-04-12 11:36:20,957 [op-1] INFO  ISCInit - Isomorphic SmartClient/SmartGWT Framework - Initializing
    === 2013-04-12 11:36:20,962 [op-1] INFO  ConfigLoader - Attempting to load framework.properties from CLASSPATH
    === 2013-04-12 11:36:21,185 [op-1] INFO  ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:/I:/apache-tomcat-7.0.34/webapps/MVP1-1.5/WEB-INF/lib/isomorphic-core-rpc-3.1-p20130226.jar!/framework.properties

    #2
    This is apparently coming from Tomcat processing the web.xml file and choking on this:

    Code:
            <!-- Isomorphic JSP tags -->
            <taglib>
                <taglib-uri>isomorphic</taglib-uri> 
                <taglib-location>/WEB-INF/iscTaglib.xml</taglib-location> 
            </taglib>
    It's very strange that it would be reported as a MalformedURLException given the clearly well-formed URL. Perhaps the file "/WEB-INF/iscTaglib.xml" is just missing and Tomcat is misreporting this?

    Comment

    Working...
    X