You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Bill Bell (Created) (JIRA)" <ji...@apache.org> on 2012/04/03 06:31:19 UTC

[jira] [Created] (SOLR-3309) Slow Jetty 8 startups

Slow Jetty 8 startups
---------------------

                 Key: SOLR-3309
                 URL: https://issues.apache.org/jira/browse/SOLR-3309
             Project: Solr
          Issue Type: Bug
            Reporter: Bill Bell


Need to modify web.xml to increase the speed of Jetty 8 startups. The header also appears to need to be modified for solr.war.

http://mostlywheat.wordpress.com/2012/03/10/speeding-up-slow-jetty-8-startups/

Adding 'metadata-complete="true"' to our web.xml's web-app restored our startup time to 8 seconds.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Assigned] (SOLR-3309) Slow WAR startups due to annotation scaning (affects Jetty 8)

Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hoss Man reassigned SOLR-3309:
------------------------------

    Assignee: Hoss Man
    
> Slow WAR startups due to annotation scaning (affects Jetty 8)
> -------------------------------------------------------------
>
>                 Key: SOLR-3309
>                 URL: https://issues.apache.org/jira/browse/SOLR-3309
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Bill Bell
>            Assignee: Hoss Man
>             Fix For: 4.0
>
>         Attachments: SOLR-3309.patch
>
>
> Need to modify web.xml to increase the speed of container startup time. The header also appears to need to be modified...
> http://mostlywheat.wordpress.com/2012/03/10/speeding-up-slow-jetty-8-startups/
> http://www.javabeat.net/articles/print.php?article_id=100
> Adding 'metadata-complete="true"' to our web.xml's web-app restored our startup time to 8 seconds.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-3309) Slow WAR startups due to annotation scaning (affects Jetty 8)

Posted by "James Dyer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13280478#comment-13280478 ] 

James Dyer commented on SOLR-3309:
----------------------------------

Jboss 5.1.0 won't start with the new <web-app /> declaration.  This works, however:

{code:xml}
<web-app 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-app_2_5.xsd"
         version="2.5"
         metadata-complete="true"
>
{code:xml}

(changing "j2ee" to "javaee").  I do not know, however, if this is a problem with Jboss or if what we have in Trunk currently is incorrect ?
                
> Slow WAR startups due to annotation scaning (affects Jetty 8)
> -------------------------------------------------------------
>
>                 Key: SOLR-3309
>                 URL: https://issues.apache.org/jira/browse/SOLR-3309
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Bill Bell
>            Assignee: Hoss Man
>             Fix For: 4.0
>
>         Attachments: SOLR-3309.patch
>
>
> Need to modify web.xml to increase the speed of container startup time. The header also appears to need to be modified...
> http://mostlywheat.wordpress.com/2012/03/10/speeding-up-slow-jetty-8-startups/
> http://www.javabeat.net/articles/print.php?article_id=100
> Adding 'metadata-complete="true"' to our web.xml's web-app restored our startup time to 8 seconds.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-3309) Slow WAR startups due to annotation scaning (affects Jetty 8)

Posted by "James Dyer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13280561#comment-13280561 ] 

James Dyer commented on SOLR-3309:
----------------------------------

{quote}
...so apparently the spec and the xsd shipped with the spec are inconsistent? which i guess means feel free to change it to follow the examples in the XSD?
{quote}

If I validate the change with Jetty8 & Tomcat7 (so as not to break the 2 you validated before) would you be comfortable with it being changed to "javaee"?
                
> Slow WAR startups due to annotation scaning (affects Jetty 8)
> -------------------------------------------------------------
>
>                 Key: SOLR-3309
>                 URL: https://issues.apache.org/jira/browse/SOLR-3309
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Bill Bell
>            Assignee: Hoss Man
>             Fix For: 4.0
>
>         Attachments: SOLR-3309.patch
>
>
> Need to modify web.xml to increase the speed of container startup time. The header also appears to need to be modified...
> http://mostlywheat.wordpress.com/2012/03/10/speeding-up-slow-jetty-8-startups/
> http://www.javabeat.net/articles/print.php?article_id=100
> Adding 'metadata-complete="true"' to our web.xml's web-app restored our startup time to 8 seconds.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Resolved] (SOLR-3309) Slow WAR startups due to annotation scaning (affects Jetty 8)

Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hoss Man resolved SOLR-3309.
----------------------------

    Resolution: Fixed

Committed revision 1331529.

verified no problems with our jetty8 example or when running in tomcat7
                
> Slow WAR startups due to annotation scaning (affects Jetty 8)
> -------------------------------------------------------------
>
>                 Key: SOLR-3309
>                 URL: https://issues.apache.org/jira/browse/SOLR-3309
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Bill Bell
>            Assignee: Hoss Man
>             Fix For: 4.0
>
>         Attachments: SOLR-3309.patch
>
>
> Need to modify web.xml to increase the speed of container startup time. The header also appears to need to be modified...
> http://mostlywheat.wordpress.com/2012/03/10/speeding-up-slow-jetty-8-startups/
> http://www.javabeat.net/articles/print.php?article_id=100
> Adding 'metadata-complete="true"' to our web.xml's web-app restored our startup time to 8 seconds.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-3309) Slow WAR startups due to annotation scaning (affects Jetty 8)

Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13280572#comment-13280572 ] 

Hoss Man commented on SOLR-3309:
--------------------------------

i just used what was in the examples from the spec, and as far as i know it shouldn't matter what we use ... if you're comfortable changing it, then feel free to change it.
                
> Slow WAR startups due to annotation scaning (affects Jetty 8)
> -------------------------------------------------------------
>
>                 Key: SOLR-3309
>                 URL: https://issues.apache.org/jira/browse/SOLR-3309
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Bill Bell
>            Assignee: Hoss Man
>             Fix For: 4.0
>
>         Attachments: SOLR-3309.patch
>
>
> Need to modify web.xml to increase the speed of container startup time. The header also appears to need to be modified...
> http://mostlywheat.wordpress.com/2012/03/10/speeding-up-slow-jetty-8-startups/
> http://www.javabeat.net/articles/print.php?article_id=100
> Adding 'metadata-complete="true"' to our web.xml's web-app restored our startup time to 8 seconds.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Reopened] (SOLR-3309) Slow WAR startups due to annotation scaning (affects Jetty 8)

Posted by "James Dyer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Dyer reopened SOLR-3309:
------------------------------

      Assignee: James Dyer  (was: Hoss Man)

re-opening to change the <web-app /> tag as discussed.


                
> Slow WAR startups due to annotation scaning (affects Jetty 8)
> -------------------------------------------------------------
>
>                 Key: SOLR-3309
>                 URL: https://issues.apache.org/jira/browse/SOLR-3309
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Bill Bell
>            Assignee: James Dyer
>             Fix For: 4.0
>
>         Attachments: SOLR-3309.patch
>
>
> Need to modify web.xml to increase the speed of container startup time. The header also appears to need to be modified...
> http://mostlywheat.wordpress.com/2012/03/10/speeding-up-slow-jetty-8-startups/
> http://www.javabeat.net/articles/print.php?article_id=100
> Adding 'metadata-complete="true"' to our web.xml's web-app restored our startup time to 8 seconds.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-3309) Slow WAR startups due to annotation scaning (affects Jetty 8)

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13263809#comment-13263809 ] 

Yonik Seeley commented on SOLR-3309:
------------------------------------

Can someone provide a specific patch for this one?  Seems like we want this for 4.0
                
> Slow WAR startups due to annotation scaning (affects Jetty 8)
> -------------------------------------------------------------
>
>                 Key: SOLR-3309
>                 URL: https://issues.apache.org/jira/browse/SOLR-3309
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Bill Bell
>             Fix For: 4.0
>
>
> Need to modify web.xml to increase the speed of container startup time. The header also appears to need to be modified...
> http://mostlywheat.wordpress.com/2012/03/10/speeding-up-slow-jetty-8-startups/
> http://www.javabeat.net/articles/print.php?article_id=100
> Adding 'metadata-complete="true"' to our web.xml's web-app restored our startup time to 8 seconds.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Resolved] (SOLR-3309) Slow WAR startups due to annotation scaning (affects Jetty 8)

Posted by "James Dyer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Dyer resolved SOLR-3309.
------------------------------

    Resolution: Fixed

Committed the "javaee" change, Trunk r1341897.
                
> Slow WAR startups due to annotation scaning (affects Jetty 8)
> -------------------------------------------------------------
>
>                 Key: SOLR-3309
>                 URL: https://issues.apache.org/jira/browse/SOLR-3309
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Bill Bell
>            Assignee: James Dyer
>             Fix For: 4.0
>
>         Attachments: SOLR-3309.patch, SOLR-3309.patch
>
>
> Need to modify web.xml to increase the speed of container startup time. The header also appears to need to be modified...
> http://mostlywheat.wordpress.com/2012/03/10/speeding-up-slow-jetty-8-startups/
> http://www.javabeat.net/articles/print.php?article_id=100
> Adding 'metadata-complete="true"' to our web.xml's web-app restored our startup time to 8 seconds.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Comment Edited] (SOLR-3309) Slow WAR startups due to annotation scaning (affects Jetty 8)

Posted by "James Dyer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13280478#comment-13280478 ] 

James Dyer edited comment on SOLR-3309 at 5/21/12 8:56 PM:
-----------------------------------------------------------

Jboss 5.1.0 won't start with the new <web-app /> declaration.  This works, however:

{code}
<web-app 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-app_2_5.xsd"
         version="2.5"
         metadata-complete="true"
>
{code}

(changing "j2ee" to "javaee").  I do not know, however, if this is a problem with Jboss or if what we have in Trunk currently is incorrect ?
                
      was (Author: jdyer):
    Jboss 5.1.0 won't start with the new <web-app /> declaration.  This works, however:

{code:xml}
<web-app 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-app_2_5.xsd"
         version="2.5"
         metadata-complete="true"
>
{code:xml}

(changing "j2ee" to "javaee").  I do not know, however, if this is a problem with Jboss or if what we have in Trunk currently is incorrect ?
                  
> Slow WAR startups due to annotation scaning (affects Jetty 8)
> -------------------------------------------------------------
>
>                 Key: SOLR-3309
>                 URL: https://issues.apache.org/jira/browse/SOLR-3309
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Bill Bell
>            Assignee: Hoss Man
>             Fix For: 4.0
>
>         Attachments: SOLR-3309.patch
>
>
> Need to modify web.xml to increase the speed of container startup time. The header also appears to need to be modified...
> http://mostlywheat.wordpress.com/2012/03/10/speeding-up-slow-jetty-8-startups/
> http://www.javabeat.net/articles/print.php?article_id=100
> Adding 'metadata-complete="true"' to our web.xml's web-app restored our startup time to 8 seconds.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (SOLR-3309) Slow WAR startups due to annotation scaning (affects Jetty 8)

Posted by "James Dyer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Dyer updated SOLR-3309:
-----------------------------

    Attachment: SOLR-3309.patch

The original commit for this issue followed a misprint in the 2.5 servlet spec on the examples, pages 153-4 (http://download.oracle.com/otn-pub/jcp/servlet-2.5-mrel2-eval-oth-JSpec/servlet-2_5-mrel2-spec.pdf).  While this works on Tomcat7 & Jetty8, it does not work with Jboss5 (which apparently is doing strict verification).  This patch follows the information on page 109ff of the same specification and also the xsd file at http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd  (note:  There is no xsd file available at http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd).  I have tested this with JBoss5, Tomcat7 & the Jetty8-based solr example.

I will commit shortly unless anyone disagrees.
                
> Slow WAR startups due to annotation scaning (affects Jetty 8)
> -------------------------------------------------------------
>
>                 Key: SOLR-3309
>                 URL: https://issues.apache.org/jira/browse/SOLR-3309
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Bill Bell
>            Assignee: James Dyer
>             Fix For: 4.0
>
>         Attachments: SOLR-3309.patch, SOLR-3309.patch
>
>
> Need to modify web.xml to increase the speed of container startup time. The header also appears to need to be modified...
> http://mostlywheat.wordpress.com/2012/03/10/speeding-up-slow-jetty-8-startups/
> http://www.javabeat.net/articles/print.php?article_id=100
> Adding 'metadata-complete="true"' to our web.xml's web-app restored our startup time to 8 seconds.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (SOLR-3309) Slow WAR startups due to annotation scaning (affects Jetty 8)

Posted by "Hoss Man (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hoss Man updated SOLR-3309:
---------------------------

      Description: 
Need to modify web.xml to increase the speed of container startup time. The header also appears to need to be modified...

http://mostlywheat.wordpress.com/2012/03/10/speeding-up-slow-jetty-8-startups/
http://www.javabeat.net/articles/print.php?article_id=100

Adding 'metadata-complete="true"' to our web.xml's web-app restored our startup time to 8 seconds.

  was:
Need to modify web.xml to increase the speed of Jetty 8 startups. The header also appears to need to be modified for solr.war.

http://mostlywheat.wordpress.com/2012/03/10/speeding-up-slow-jetty-8-startups/

Adding 'metadata-complete="true"' to our web.xml's web-app restored our startup time to 8 seconds.

    Fix Version/s: 4.0
          Summary: Slow WAR startups due to annotation scaning (affects Jetty 8)  (was: Slow Jetty 8 startups)

adding this to the web.xml means requiring a servlet container that supports servlets 2.5 (unless the container just ignores attributes it doesn't understand)

but that seems fine for trunk - 2.5 came out in 2005, and we already compile and test against 3.0


(updated summary & description to note this isn't jetty specific)
                
> Slow WAR startups due to annotation scaning (affects Jetty 8)
> -------------------------------------------------------------
>
>                 Key: SOLR-3309
>                 URL: https://issues.apache.org/jira/browse/SOLR-3309
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Bill Bell
>             Fix For: 4.0
>
>
> Need to modify web.xml to increase the speed of container startup time. The header also appears to need to be modified...
> http://mostlywheat.wordpress.com/2012/03/10/speeding-up-slow-jetty-8-startups/
> http://www.javabeat.net/articles/print.php?article_id=100
> Adding 'metadata-complete="true"' to our web.xml's web-app restored our startup time to 8 seconds.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (SOLR-3309) Slow WAR startups due to annotation scaning (affects Jetty 8)

Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hoss Man updated SOLR-3309:
---------------------------

    Attachment: SOLR-3309.patch

web.xml patch.

doing some testing now
                
> Slow WAR startups due to annotation scaning (affects Jetty 8)
> -------------------------------------------------------------
>
>                 Key: SOLR-3309
>                 URL: https://issues.apache.org/jira/browse/SOLR-3309
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Bill Bell
>             Fix For: 4.0
>
>         Attachments: SOLR-3309.patch
>
>
> Need to modify web.xml to increase the speed of container startup time. The header also appears to need to be modified...
> http://mostlywheat.wordpress.com/2012/03/10/speeding-up-slow-jetty-8-startups/
> http://www.javabeat.net/articles/print.php?article_id=100
> Adding 'metadata-complete="true"' to our web.xml's web-app restored our startup time to 8 seconds.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-3309) Slow WAR startups due to annotation scaning (affects Jetty 8)

Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13280530#comment-13280530 ] 

Hoss Man commented on SOLR-3309:
--------------------------------

James: Unless I'm missing something, the specifics of whether it's "j2ee" or "javaee" shouldn't matter to XML parser (or the servlet container).  All that should matter is that each of the schemaLocation keys listed correspond to an xml namespace being used. (ie: you changed http://java.sun.com/xml/ns/j2ee -> http://java.sun.com/xml/ns/javaee in two places, but as long as those two places are the same it shouldn't matter what we use ... i think it could be "http://giberish-foo/uwesays" and it should still work).  

So it seems like maybe your jboss configuration has something wonky going on?

I'm inclined to think we should be consistent with the examples in the 2.5 spec...

http://download.oracle.com/otn-pub/jcp/servlet-2.5-mrel2-eval-oth-JSpec/servlet-2_5-mrel2-spec.pdf

...(see pages 153 & 154) which use j2ee -- but oddly enough the example snippets embedded in the 2.5 XSD (using xsd:documentation tags) use "javaee"...

http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd

...so apparently the spec and the xsd shipped with the spec are inconsistent?  which i guess means feel free to change it to follow the examples in the XSD?


                
> Slow WAR startups due to annotation scaning (affects Jetty 8)
> -------------------------------------------------------------
>
>                 Key: SOLR-3309
>                 URL: https://issues.apache.org/jira/browse/SOLR-3309
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Bill Bell
>            Assignee: Hoss Man
>             Fix For: 4.0
>
>         Attachments: SOLR-3309.patch
>
>
> Need to modify web.xml to increase the speed of container startup time. The header also appears to need to be modified...
> http://mostlywheat.wordpress.com/2012/03/10/speeding-up-slow-jetty-8-startups/
> http://www.javabeat.net/articles/print.php?article_id=100
> Adding 'metadata-complete="true"' to our web.xml's web-app restored our startup time to 8 seconds.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org