FAQ"

From Documentation
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
 
#: Check if '''zats-mimic-ext6.jar''' exists in your project's classpath. If your project depends on ZK 6, you should include that jar.
 
#: Check if '''zats-mimic-ext6.jar''' exists in your project's classpath. If your project depends on ZK 6, you should include that jar.
 
# <div style="font-family:Verdana"> '''Why a unit test failed when starting up and occurred "NoSuchMethodError" or "ClassNotFoundException" on javax.servlet.xxx?''' </div>
 
# <div style="font-family:Verdana"> '''Why a unit test failed when starting up and occurred "NoSuchMethodError" or "ClassNotFoundException" on javax.servlet.xxx?''' </div>
#: ZATS mimic uses (lite version) Jetty server to emulate whole environment of servlet container for testing. If your class path contains any servlet.jar, it will cause Jetty server to load wrong servlet.jar. You should exclude any servlet.jar from your class path when you running ZATS mimic test.
+
#: ZATS mimic uses Jetty server (lite version) to emulate whole servlet container environment for testing. If your class path contains any servlet.jar, it will cause Jetty server to load wrong servlet.jar. You should exclude any servlet.jar from your class path when you running ZATS mimic test.
 
# <div style="font-family:Verdana"> ''' Why my composer or zul cannot get Spring beans?''' </div>
 
# <div style="font-family:Verdana"> ''' Why my composer or zul cannot get Spring beans?''' </div>
 
#: You need to provide your custom web.xml which contains Spring context listener configuration to run the test case. Please refer to [[ZATS Essentials/Mimic Library/Advanced Usage/Customize Test Environment#Custom WEB-INF Path| Custom WEB-INF Path]].
 
#: You need to provide your custom web.xml which contains Spring context listener configuration to run the test case. Please refer to [[ZATS Essentials/Mimic Library/Advanced Usage/Customize Test Environment#Custom WEB-INF Path| Custom WEB-INF Path]].
 +
# <div style="font-family:Verdana"> '''Why do I get an error: java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?''' </div>
 +
#: See question 3.
  
  

Latest revision as of 06:31, 23 October 2014



  1. InputAgent.type() works correctly on all components except Datebox and Timebox in ZK 6 based project?
    Check if zats-mimic-ext6.jar exists in your project's classpath. If your project depends on ZK 6, you should include that jar.
  2. Why a unit test failed when starting up and occurred "NoSuchMethodError" or "ClassNotFoundException" on javax.servlet.xxx?
    ZATS mimic uses Jetty server (lite version) to emulate whole servlet container environment for testing. If your class path contains any servlet.jar, it will cause Jetty server to load wrong servlet.jar. You should exclude any servlet.jar from your class path when you running ZATS mimic test.
  3. Why my composer or zul cannot get Spring beans?
    You need to provide your custom web.xml which contains Spring context listener configuration to run the test case. Please refer to Custom WEB-INF Path.
  4. Why do I get an error: java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?
    See question 3.





Last Update : 2014/10/23

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.