< load-on-startup > 1 < /load-on-startup >

This is very important to XML validation where to put this code:

1

in  web.xml during Java/Spring development.

More infor will be later.

This is bad when we have :
Cause we have XML validation warring:
 Checking file:/…../web/WEB-INF/web.xml…
cvc-complex-type.2.4.a: Invalid content was found starting with element ‘init-param’. One of ‘{“http://java.sun.com/xml/ns/j2ee&#8221;:run-as, “http://java.sun.com/xml/ns/j2ee&#8221;:security-role-ref}’ is expected.

And this is bad markup:

spring-ws
org.springframework.ws.transport.http.MessageDispatcherServlet
1


transformWsdlLocationstrue


This is good:

spring-ws
org.springframework.ws.transport.http.MessageDispatcherServlet


transformWsdlLocationstrue
1

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s