different open xml files growth sourroundings vs. deployment controlling maven


summary



we have executive ldap server the deployed java web app should bond to. the junit tests count specific information ldap repository, need bond an embedded apacheds ldap server, primed illustration information set. certain apacheds server doesn't start adult muster the webapp?



details



we controlling open security, have following line ldap-context.xml start adult embedded ldap server:



<security:ldap-server root="dc=test,dc=com" port="33389" ldif="classpath:embeddedserverroot.ldif" />


currently, the web.xml references both exam context record the top-level application-context.xml:



    <context-param>
<param-name>contextconfiglocation</param-name>
<param-value>
classpath:ldap-context.xml
classpath:application-context.xml
</param-value>
</context-param>


we need certain ldap-context.xml enclosed run the junit tests, run webapp directly obscure (via wtp), nonetheless expelled package fight muster server.



we're controlling maven build tool. sincerely simply take caring conditions the junit tests origination certain consolidate both open context files context configuration:



@runwith(springjunit4classrunner.class)
@contextconfiguration(locations = { "classpath:ldap-context.xml", "classpath:application-context.xml" })
public category teststuff {
}


then, the web.xml wholly consolidate application-context.xml, solely thing - doesn't work controlling wtp - need embedded server start adult box well. any suggestions?



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members