( ! ) 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.0000484048{main}( ).../index.php:0
20.0000484400require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.02754085216require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.02794114208include( '/var/www/html/wp-content/themes/twentyfifteen/single.php ).../template-loader.php:125
50.02794114208get_header( $name = ???, $args = ??? ).../single.php:10
60.02794114424locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.02804114520load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.02804115064require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.02814122472wp_head( ).../header.php:18
100.02814122472do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.02814122688WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.02814122688WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.02824126104wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.02824126104do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.02824126320WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.02824126320WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.02834128208twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.09444129728wp_style_add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.php:440
190.09444129728WP_Styles->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.wp-styles.php:245
200.09444129728WP_Dependencies->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../class-wp-styles.php:385
210.09444129728_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.09444130048wp_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.09454136432trigger_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.0000484048{main}( ).../index.php:0
20.0000484400require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.02754085216require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.02794114208include( '/var/www/html/wp-content/themes/twentyfifteen/single.php ).../template-loader.php:125
50.02794114208get_header( $name = ???, $args = ??? ).../single.php:10
60.02794114424locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.02804114520load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.02804115064require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.02814122472wp_head( ).../header.php:18
100.02814122472do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.02814122688WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.02814122688WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.02824126104wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.02824126104do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.02824126320WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.02824126320WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.02834128208twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.11914137536wp_style_add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.php:444
190.11914137536WP_Styles->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.wp-styles.php:245
200.11914137536WP_Dependencies->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../class-wp-styles.php:385
210.11914137536_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.11914137856wp_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.11924138080trigger_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

Developing Struts Web Module

In this section we will build and test our Struts Hibernate Integration application.


Compiling and packaging application


Since we are using ant build tool, so the compiling and packaging will done by ant tool. To compile and create war file for deployment, open console and go to “C:\Struts-Hibernate-Integration\code\WEB-INF\src” directory. Then just type ant, ant will create strutshibernate.war in the “C:\Struts-Hibernate-Integration\dist” directory.


Deploying and testing application


Copy strutshibernate.war  to the webapps directory of tomcat and start tomcat server. Now open the browser and type http://localhost:8080/strutshibernate/ in the browser. You browser should look like:



Now click on “Click here to test Search Tutorials” link.



Enter some search term say “java” and click on search button. You browser should display the search result as shown below.



Congratulations now you have successfully integrated your struts application with hibernate using Hibernate Struts Plugin.


You can download the code of this application from here.


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.