( ! ) Deprecated: Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers. in /var/www/html/wp-includes/functions.php on line 6131
Call Stack
#TimeMemoryFunctionLocation
10.0001484048{main}( ).../index.php:0
20.0001484400require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.07564114272require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.07784143264include( '/var/www/html/wp-content/themes/twentyfifteen/single.php ).../template-loader.php:125
50.07784143264get_header( $name = ???, $args = ??? ).../single.php:10
60.07784143480locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.07784143576load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.07794144120require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.07804151528wp_head( ).../header.php:18
100.07804151528do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.07804151744WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.07804151744WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.07824155160wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.07824155160do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.07824155376WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.07824155376WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.07834157264twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.07844158784wp_style_add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.php:440
190.07844158784WP_Styles->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.wp-styles.php:245
200.07844158784WP_Dependencies->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../class-wp-styles.php:385
210.07844158784_deprecated_argument( $function_name = 'WP_Dependencies->add_data()', $version = '6.9.0', $message = 'IE conditional comments are ignored by all supported browsers.' ).../class-wp-dependencies.php:317
220.07844159104wp_trigger_error( $function_name = '', $message = 'Function WP_Dependencies->add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:5925
230.07854165488trigger_error( $message = 'Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:6131

( ! ) Deprecated: Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers. in /var/www/html/wp-includes/functions.php on line 6131
Call Stack
#TimeMemoryFunctionLocation
10.0001484048{main}( ).../index.php:0
20.0001484400require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.07564114272require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.07784143264include( '/var/www/html/wp-content/themes/twentyfifteen/single.php ).../template-loader.php:125
50.07784143264get_header( $name = ???, $args = ??? ).../single.php:10
60.07784143480locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.07784143576load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.07794144120require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.07804151528wp_head( ).../header.php:18
100.07804151528do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.07804151744WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.07804151744WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.07824155160wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.07824155160do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.07824155376WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.07824155376WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.07834157264twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.10374166592wp_style_add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.php:444
190.10374166592WP_Styles->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.wp-styles.php:245
200.10374166592WP_Dependencies->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../class-wp-styles.php:385
210.10374166592_deprecated_argument( $function_name = 'WP_Dependencies->add_data()', $version = '6.9.0', $message = 'IE conditional comments are ignored by all supported browsers.' ).../class-wp-dependencies.php:317
220.10374166912wp_trigger_error( $function_name = '', $message = 'Function WP_Dependencies->add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:5925
230.10384167136trigger_error( $message = 'Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:6131

jetty 使用手記

jetty resin tomcat 測試報告:http://www.strongd.net/blog/show/255


       一直以來使用jetty作為我的web開發配置服務器,開始的時候和所有的初學者一様使用tomcat作為開發服務器,可用着用着,感覺tomcat越來越繁瑣以及龐大。後來,用了jboss,知道jboss使用jetty作為其web應用服務器,所以就開始試着使用jetty。從那開始後,jetty就成為我的開發配置服務器了,從最初的4.0,到現在的6.0一直在使用着。

  
喜歡jetty的原因,在于其的方便,簡單的配置文件,簡單的啓動脚本,而且在elipse或者其他ide中,進行調試,運行都很方便。

  
不想多説什麽,讓事實來説話吧。在開始之前,先下載jetty。目前最新的版本為6.1:
   http://docs.codehaus.org/display/JETTY/Downloading+and+Installing#download

  
以前的版本文件是比較小的,現在的版本增加了很多東東,主要是很多例子應用,以及源碼,經過删减只有,整個應用還是比較小的,大概也就10m多了。如果只是需要運行web應用,并且只是需要jsp 2.1規範的話,只有7m多了。以前4.0的時候只有2m多,現在也已經增加了那麽多了,時代在進步,没有辦法。

   jetty
主要的jarjetty-6.1.1.jarservlet-api-2.5-6.1.1.jarjetty-util-6.1.1.jar。啓動的jar start.jar。還有jsp規範的jarjsp2.1,好像已經减了不少的jar了,只有4個文件core-3.1.1.jarant-1.6.5.jarjsp-2.1.jarjsp-api-2.1.jarcore是使用eclipsejdt,進行jsp編譯。

   jetty
的主要配置文件為etc/jetty.xml,當然你可以自己指定彆的文件。在start.jar中有個start.config文件是默認的環境配置,以及指定默認的配置文件。可以手工替换。

  
啓動jetty很簡單,在命令行下面java -jar start.jar
  
如果需要指定start.config,使用java -DSTART=start.config -jar start.jart
  
配置web 應用也非常的簡單:
  
更改jetty.xml就行了,增加web應用的方式包括,直接放置應用在webapps下面,或者配置以下的context

  



<New id=”Mywork” class=”org.mortbay.jetty.webapp.WebAppContext”>
      
<Arg><Ref id=”Contexts”/></Arg>
      
<!– 
絶對路徑,可以指定相對路徑,增加 <SystemProperty name=”jetty.home” default=”.”/> 就行–>
      
<Arg>d:/workspace/strong/web/</Arg>
      
<Arg>/mywork</Arg>
      
<Set name=”defaultsDescriptor”><SystemProperty name=”jetty.home” default=”.”/>/etc/webdefault.xml</Set>
      
<Set name=”virtualHosts”>
        
<Array type=”java.lang.String”>
          
<Item>www.strongd.net</Item>
        
</Array>
      
</Set>
      
    
</New>




要想改變原先的webapps主應用,改變下面的配置


<Call class=”org.mortbay.jetty.webapp.WebAppContext” name=”addWebApplications”>
      
<Arg><Ref id=”Contexts”/></Arg>
      
<Arg><SystemProperty name=”jetty.home” default=”.”/>/webapps</Arg>
      
<Arg><SystemProperty name=”jetty.home” default=”.”/>/etc/webdefault.xml</Arg>
      
<Arg type=”boolean”>True</Arg>  <!– extract –>
      
<Arg type=”boolean”>False</Arg> <!– parent priority class loading –>
 
</Call>




默認的web.xml配置文件為webdefault.xml
如果想配置相應的web參數,可以更改其應用。

默認的端口為8080,如果想修改,更改:jetty.port屬性



    
<Call name=”addConnector”>
      
<Arg>
          
<New class=”org.mortbay.jetty.nio.SelectChannelConnector”>
            
<Set name=”port”><SystemProperty name=”jetty.port” default=”8080″/></Set>
            
<Set name=”maxIdleTime”>30000</Set>
            
<Set name=”Acceptors”>2</Set>
            
<Set name=”confidentialPort”>8443</Set>
          
</New>
      
</Arg>
    
</Call>





簡單的配置,簡單的啓動,下一篇,我會介紹,如何在eclipse中使用jetty.




Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.