You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Adrian Sandor (JIRA)" <ji...@apache.org> on 2010/08/27 08:56:55 UTC

[jira] Updated: (WICKET-2826) Wicket fails to read html markup from jar after updating and redeploying in jetty

     [ https://issues.apache.org/jira/browse/WICKET-2826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adrian Sandor updated WICKET-2826:
----------------------------------

    Attachment: simplewicket.zip
                simplewicket.xml
                jetty.xml

simplewicket.zip is the eclipse project, including source code, binaries, ant build script and jar
simplewicket.xml is the context descriptor for jetty
jetty.xml is the jetty configuration file - the main thing I changed was to comment out the webapp deployer

Here is the relevant directory/file structure inside jetty's folder (excluding the default contents):

├── contexts
│   └── simplewicket.xml
├── etc
│   └── jetty.xml
└── webapps
    └── simplewicket
        └── WEB-INF
            ├── classes
            │   └── log4j.properties
            ├── lib
            │   ├── log4j-1.2.15.jar
            │   ├── servlet-api-2.5-20081211.jar
            │   ├── simplewicket.jar
            │   ├── slf4j-api-1.5.11.jar
            │   ├── slf4j-log4j12-1.5.11.jar
            │   └── wicket-1.4.10.jar
            └── web.xml


> Wicket fails to read html markup from jar after updating and redeploying in jetty
> ---------------------------------------------------------------------------------
>
>                 Key: WICKET-2826
>                 URL: https://issues.apache.org/jira/browse/WICKET-2826
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.7
>         Environment: Linux, jetty 6 using context deployer
>            Reporter: Adrian Sandor
>            Assignee: Igor Vaynberg
>             Fix For: 1.4.11
>
>         Attachments: jetty.xml, simplewicket.xml, simplewicket.zip
>
>
> I wrote a web application and packaged the main code and html markup files into a jar. I deployed it in jetty using the "extracted war" folder structure and a context descriptor. The application worked fine.
> Then I made a minor change in an html file, rebuilt the jar, copied it over the old one in jetty and touched the descriptor to reload the context. Then when trying to access the application in the browser, I got errors like:
> org.apache.wicket.markup.MarkupCache - Unable to find markup from jar:file:/path/to/jar!/path/to/html 
> org.apache.wicket.util.resource.ResourceStreamNotFoundException: Resource jar:file:/path/to/jar!/path/to/html could not be opened
>         at org.apache.wicket.util.resource.UrlResourceStream.getInputStream(UrlResourceStream.java:179)                                                      
>         at org.apache.wicket.markup.MarkupResourceStream.getInputStream(MarkupResourceStream.java:130)                                                       
>         at org.apache.wicket.markup.MarkupParser.parse(MarkupParser.java:265)                                                                                
>         at org.apache.wicket.markup.loader.SimpleMarkupLoader.loadMarkup(SimpleMarkupLoader.java:52)                                                         
>         at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:62)                                       
>         at org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:55)                                                       
>         at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:464)                                                                             
>         at org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:559)                                                           
>         at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:325)                                                                              
>         at org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:216)                                                                        
>         at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:351)                                                             
>         at org.apache.wicket.Page.onRender(Page.java:1558)
> [...]
> Caused by: java.io.FileNotFoundException: JAR entry path/to/html not found in /path/to/jar
> [...]
> org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html' for component 'page.class.name' not found. [...]
>         at org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:227)
>         at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:351)
>         at org.apache.wicket.Page.onRender(Page.java:1558)
> [...]
> If I restart jetty, with no other change, everything works fine.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.