Cairgorm 3 sample applications - errors in unit tests

After the last update the sample applications started to work - they now even show images.
But the unit tests for Commands are reporting errors on my machine:
TypeError: Error #1034: Type Coercion failed: cannot convert []@56443a9 to XMLList.
at asmock.integration.flexunit::ASMockClassRunner/withBeforeClasses
at org.flexunit.runners::ParentRunner/classBlock(ParentRunner.as:221)
etc...
As I am just starting to explore unit testing, I do not know how to debug it.
Can someone help me?
Thanks, Zdenek M

Hi,
Could you confirm that you are running the unitTests using the InSyncBasicTestRunner.mxml? Also make sure that you don't have another version of FlexUnit4 on your classpath (Project->Properties->Flex Build Path) as the one shipped with the latest version of Flash Builder may conflict with the version of ASMock we are using at this time.
Let me know if you are still experiencing issues with the test suite.
Best,
Nicolas

Similar Messages

  • BPM Simple Sample Application Error!!!

    hi,
    i have some problems with the bpm simple sample applications on our local sap nw ce system (7.1 ehp1 sp0)?
    on the esworkplace i have download the *.sca file and have import this file into my nwds.
    i following the simple sample documentation an define and configure the ERP and ERP_META Destinations on the nwds and our local sap nw ce system.
    also i do the future steps which was described (service registry, proxy settings, ...).
    on page 16 of the simple sample documetation is defined which Sofware Component has dependencies to other SC´s.
    the SC "BPEM_BUILDT" depends on the SC "ESMP_BUILDT" and "COMP_BUILDT", the SC "COMP_BUILT" doesnt exist on my nwds (7.1 ehp1 sp0).
    has everybody any idea why the SC "COMP_BUILT" not exist on my nwds???
    still this absent SC i can deploy the bpm simple sample successful to our sap nw ce system.
    now i do the post deployment steps for the bpm samples.
    after this i call the simple sample application on my sap nw ce portal and can execute the "Initiate Equipment Phase In Process".
    now i can see a new entry on my uwl, i open the uwl task.
    at step 1, 2, 3 i change no data an click next, after step 3 (create equipment) i get the following error:
    com.sap.esi.esp.service.server.query.discovery.ExtendedServiceException: no endpoints found for interface <br>
    IndividualMaterialERPCreateRequestConfirmation_In_V1 <br>
    <br>
    detailed error message: <br>
    com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Exception on creation of service metadata for WS metadata <br>
    destination 'ERP_META' and WS interface 'IndividualMaterialERPCreateRequestConfirmation_In_V1'. One possible reason is that
    Caused by: com.sap.esi.esp.service.server.query.discovery.ExtendedServiceException: no endpoints found for interface
    IndividualMaterialERPCreateRequestConfirmation_In_V1
    at com.sap.esi.esp.service.server.query.discovery.DestinationsHelperImplSoa.getEndpointConfigurations(DestinationsHelperImplSoa.java:1184)
    at com.sap.esi.esp.service.server.query.discovery.DestinationsHelperImplSoa.getWSDLUrl(DestinationsHelperImplSoa.java:847)
    at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.getWSDLUrl(GenericServiceFactory.java:547)
    at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService_NewInstance(GenericServiceFactory.java:377)
    at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:230)
    at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:195)
    at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:529)
    ... 82 more
    after this error i test the endpoint manually. i call the service registry (sr.esworkplace.sap.com) an search the service:
    IndividualMaterialERPCreateRequestConfirmation_In_V1
    now i test the endpoint with the following data:
    MaintenancePlanningPlantID: 0001
    WorkCentreID: TECH.SER
    CategoryCode: M
    the return is the following:
    TypeID:005(PLM_SE_EAM_SC)
    SeverityCode:1
    Note:Individual Material 000000000010006703 is created
    i think the return from the service was successful.
    i hope somebody can help me!!!
    thanks,
    Fabian

    Hi Arafat,
    the destinations for the services are already configured::
    at destination template management > destination templates the following is defined:
    - Tab: General
    Destination Name: ERP
    Destination Type: Service Registry
    System: ABAP
    System Name: HU2
    Hostname: iwdf2379
    Installation Nr.: 0120003411
    Client: 800
    - Tab: Security
    Authentication: HTTP Authentication, User ID/Password (Basic)
    User ID: <es workplace user (suser)>
    pw: ******
    and
    - Tab: General
    Destination Name: ERP_META
    Destination Type: Service Registry
    System: ABAP
    System Name: HU2
    Hostname: iwdf2379
    Installation Nr.: 0120003411
    Client: 800
    - Tab: Security
    Authentication: HTTP Authentication, User ID/Password (Basic)
    User ID: <es workplace user (suser)>
    pw: ******
    also i have configured the same destination on my nwds.
    i think this is correct?
    futher ideas, why this doesnt work?
    thanks,
    fabian

  • SAMPLE APPLICATIONS ERROR

    Hi All,
    I have Installed VS 2010 & CSVS2010, after i run sample application as per downloaded from SAP sites, its shows error.
    please look at this error message and please help me how slove in this error.
    "could not find assembly 'CrystalDecisions.Shared.dll': please specify the assembly search path using /AI or by setting the LIBPATH environment variable     d:\documents and settings\bzd3jr\desktop\crvs10\cr.net sdk\viewing\net-cpp2005-win_cr115_view\cr_sample_view_cpp_net05\Form1.h"
    Regards,
    Esha Abdullah M

    Thanks Ludek,
    http://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsSDKSampleApplications
    In this link only i downloaded,  view report sample applications (Crystal Reports .NET C++ - View Report).
    If i run application it showing error,
    Error     3     error C1107: could not find assembly 'CrystalDecisions.Shared.dll': please specify the assembly search path using /AI or by setting the LIBPATH environment variable     d:\documents and settings\bzd3jr\desktop\samples appn\net-cpp2005-win_cr115_view\cr_sample_view_cpp_net05\Form1.h     4
    Please help me for this issue.
    Regards,
    Esha Abdullah M
    Edited by: Esha Abdullah on Jun 29, 2011 4:26 PM

  • Followup: "? sample application error"

    followup...
    If I waited and it did not start, what log files would show why the KJS is not starting? I waited 24 hours and it still has a problem.
    I asked...
    "iAS 6.0 Sp3 on a SunOS netra1.tamu.edu 5.8 Generic_108528-09 sun4u sparc SUNW,UltraAX-i2
    returns the following error when selecting the quick test application:
    Error (0x1 0x0 0x0 0x80020007):BIND step: could not bind to {1A488137-7510-1941-BAE5-080020B90F48}
    and got...
    It generally throw this error when you fire the request just after starting the iAS, at this time this error means that your KXS is up but KJS is still not up. So just wait for some time and fire the request again. Everything will be fine.

    The KJS engine should ideally start within a couple of minutes after starting the appserver. There are a couple of ways you can check this :
    1. Do a ps -ef | grep kjs
    2. Go to ias/logs directory and do a
    "tail -f kjs_1_CCS0". If you see the message ENGINE-ready, then it means that the KJS engine is ready to accept requests.
    Cheers,
    Vasanth

  • Planning - Sample Application Error

    Hi,
    I am trying to initilialise sample planning application and get "warn tp-proccessor1 com.hyperion.hbr.securityapi - error retrieving user by identity".
    Please can you advice what exactly i need to correct.
    Thanks

    Hi John,
    Thanks for pointing out. I found hyperionPlanning_sysout.log in logs/service folder.
    I can see - it's able to build sample dimensions but I noticed few errors
    com.hyperion.planning.olap.EssbaseException: Database %s does not exist (1051032)
    After this, it;s able to build all dimensions and then I noticed below errors
    java.lang.IllegalStateException: member FY08 from dimension 38does not exist.
    com.hyperion.planning.xml.HspHUBException: Rejecting Member Actual.
    com.hyperion.planning.xml.HspHUBException: Rejecting Member Forecast.
    com.hyperion.planning.xml.HspHUBException: Rejecting Member Plan.
    com.hyperion.planning.olap.EssbaseException: Database %s does not exist (1051032)
    There were errors during sample application initialization. Please check Planning log for details
    Please can you advice where else i can check and which logs it refers.
    Thanks.

  • SSO PL/SQL Sample Application Error

    Hi,
    I've tried the PL/SQL SSO demo application located in the PDK
    October release.
    Symptom:
    The sample application shows the success page, even the user is
    not authenticated by the Login Server.
    Cause:
    There's a code line in the SAMPLE_SSO_PAPP package to decide if
    the l_user_info value is null. The original code line is:
    IF l_user_info = NULL THEN
    It's nonsense, of course.
    We all know that in NULL arithmetics it always evaluates false.
    Workaround:
    You should correct the comparison to:
    IF l_user_info IS NULL
    It will be much better...

    This problem is their in the early version of SDK.
    The latest version has correct comparison with null

  • EJB Hotel Sample Application - error running client

    Hi
    I am trying to run the GUI client interface in the EJB Hotel Enquiry and Reservation Application (using a single EJB). I have deployed the EJB jar file and had no errors but when I run the GUI client I get the following error whilst trying to read the list of hotels:
    Error while invoking EJB procedure :RemoteException :
    com.evermind.server.rmi.OrionRemoteException: Invocation error: java.lang.NoSuchMethodException; nested exception is:
    java.lang.NoSuchMethodException
    Could anyone please suggest where to start looking ?
    TIA
    Trevor

    Hi,
    I am able to run this sample successfully. Can you try bouncing OC4J and then run the client application again ? Let me ]
    know if that works.
    Cheers,
    --Rajesh                                                                                                                                                                                                                                                                                                                                                   

  • Veeva Vacations Sample application - Error connecting to database

    I am new to WebCenter and I am trying to go through the Veeva Vacations Sample. I am having trouble creating a New Database Connection as described on page 8 of the Veeva_Hands_on.pdf.
    I enter the Host of *127.0.0.1*, Port of *8080* and when I test the connection I get the following error.
    Io exception: Got minus one from a read call
    Any suggestions?
    Edited by: user985561 on Sep 29, 2008 12:52 PM

    Hi Jeroen,
    Thank you for your response. I am working through the Veeva Vacations example that can be found at
    http://www.oracle.com/technology/products/webcenter/owcs_10132_demos.html
    I am trying to create a Database Connection in JDeveloper. Starting on page 8 of the veeva_hands_on.pdf it asks you to Define a Database Connection. On page 10 it provides the connection details. Host Name: localhost, JDBC Port 1521. When I try this I get the following errror:
    Listener refused the connection with the following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
    The Connection descriptor used by the client was:
    localhost:1521:ORCL
    So I tried changing it to Host Name: 127.0.0.1, JDBC Port: 8080, which is the Host and port that I see in the URL when I log into the Oracle Database Express Edition from the 10g Database Home page. With this configuration I get the following error:
    Io exception: Got minus one from a read call
    I am running in a Windows environment with no Firewall software installed that I am aware of...
    Thank you for your time
    Christine

  • Planning - Sample application error with Classic Application Administration

    Hi,
    Planning is deployed with Tomcat and I get an error when I want to create an application with Classic Application Administration.
    If I use EPM architect, it's OK.
    Thanks if you have any idea.

    Hi,
    Process failed to create an application.
    In HyS9Planning-sysout.log:
    Unable to find JDBC_CATALOG key for application: test
    Connection to the datasource created successfully.
    Setting HBR Mode to: 2
    =2009-05-07 13:56:00,359 WARN http-8300-Processor4 com.hyperion.hbr.security.HbrSecurityAPI - Error retrieving user by identity
    d{ISO8601} WARN http-8300-Processor4 com.hyperion.hbr.security.HbrSecurityAPI - Error retrieving user by identity
    Embedded HBR initialized.
    Reaquired task list lease: Thu May 07 13:56:00 CEST 2009: 1241697360531
    Entering RegisterHelper.register method
    registering Product: HP test http://hfm11:28080/interop
    Entering RegisterHelper.register method
    Error Code: -1
    com.hyperion.css.CSSException: 30:1101:JNDI error.     Error Code: -1
    NestedException:
    javax.naming.directory.InvalidAttributeIdentifierException: [LDAP: error code 17 - cssProvisionedIdentity: attribute type undefined]; remaining name 'cn=ce0e92f7f18839fe:78de0306:1211a4aed04:-7aa2'
         at com.hyperion.css.spi.impl.nv.AddLDAPEntity.add(Unknown Source)
         at com.hyperion.css.spi.impl.nv.NativeProviderBase.addProvisioningEntry(Unknown Source)
         at com.hyperion.css.spi.impl.nv.NativeProviderBase.addRoleRelationShip(Unknown Source)
         at com.hyperion.css.spi.impl.nv.NativeProvider.associateRole(Unknown Source)
         at com.hyperion.css.spi.impl.nv.NativeProvider.setRolesList(Unknown Source)
         at com.hyperion.css.spi.impl.nv.NativeProvider.setRolesList(Unknown Source)
         at com.hyperion.planning.security.HspSynchronizationFacilitatorImpl.setUserRoleAdministratorInHub(Unknown Source)
         at com.hyperion.planning.security.HspLogonSynchronizer.setUserRoleAdministratorInHub(Unknown Source)
         at com.hyperion.planning.HspJSImpl.setHubRoleForUser(Unknown Source)
         at com.hyperion.planning.HyperionPlanningBean.setHubRoleForUser(Unknown Source)
         at com.hyperion.planning.appdeploy.HspManageAppSession.registerAppWithSharedServices(Unknown Source)
         at com.hyperion.planning.appdeploy.HspManageAppSession.registerAppWithSharedServices(Unknown Source)
         at com.hyperion.planning.appdeploy.HspManageAppSession.registerApp(Unknown Source)
         at com.hyperion.planning.appdeploy.HspManageAppSession.createApplication(Unknown Source)
         at HspCreateApp.Handle(Unknown Source)
         at HspCreateApp.doPost(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at HspValidationFilter.doFilter(Unknown Source)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    - Nested Exception:
    javax.naming.directory.InvalidAttributeIdentifierException: [LDAP: error code 17 - cssProvisionedIdentity: attribute type undefined]; remaining name 'cn=ce0e92f7f18839fe:78de0306:1211a4aed04:-7aa2'
         at com.sun.jndi.ldap.LdapCtx.mapErrorCode(Unknown Source)
         at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)
         at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)
         at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(Unknown Source)
         at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_createSubcontext(Unknown Source)
         at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(Unknown Source)
         at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(Unknown Source)
         at com.hyperion.css.spi.util.jndi.CSSDirContext.createSubcontext(Unknown Source)
         at com.hyperion.css.spi.impl.nv.AddLDAPEntity.add(Unknown Source)
         at com.hyperion.css.spi.impl.nv.NativeProviderBase.addProvisioningEntry(Unknown Source)
         at com.hyperion.css.spi.impl.nv.NativeProviderBase.addRoleRelationShip(Unknown Source)
         at com.hyperion.css.spi.impl.nv.NativeProvider.associateRole(Unknown Source)
         at com.hyperion.css.spi.impl.nv.NativeProvider.setRolesList(Unknown Source)
         at com.hyperion.css.spi.impl.nv.NativeProvider.setRolesList(Unknown Source)
         at com.hyperion.planning.security.HspSynchronizationFacilitatorImpl.setUserRoleAdministratorInHub(Unknown Source)
         at com.hyperion.planning.security.HspLogonSynchronizer.setUserRoleAdministratorInHub(Unknown Source)
         at com.hyperion.planning.HspJSImpl.setHubRoleForUser(Unknown Source)
         at com.hyperion.planning.HyperionPlanningBean.setHubRoleForUser(Unknown Source)
         at com.hyperion.planning.appdeploy.HspManageAppSession.registerAppWithSharedServices(Unknown Source)
         at com.hyperion.planning.appdeploy.HspManageAppSession.registerAppWithSharedServices(Unknown Source)
         at com.hyperion.planning.appdeploy.HspManageAppSession.registerApp(Unknown Source)
         at com.hyperion.planning.appdeploy.HspManageAppSession.createApplication(Unknown Source)
         at HspCreateApp.Handle(Unknown Source)
         at HspCreateApp.doPost(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at HspValidationFilter.doFilter(Unknown Source)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    UnRegistering Application in HUB: test
    trying to get corresponding project...
    existing schema deleted
    deleted app in essbasetrue
    Error terminating Essbase connection: java.lang.NullPointerException
    Thanks

  • Unit testing PL/SQL used in APEX application

    question from my customer :
    I am developing an application in Oracle Application Express and am working on unit tests for the PL/SQL stored procedures and packages that are stored in the underlying database and that are used by the APEX application. These unit tests should run within the SQL Developer Unit Test framework.
    The problem is that some of the PL/SQL code stored in the database uses functions like NV('APPLICATION_ITEM') to access items in the apex application. These do not return any values when I try to execute the PL/SQL within the unit test framework, ie through the backend. While it is good that the NV function does not error, NULL do not really work well in my scenario either (for example when the result of this functions is inserted into a NOT NULL column of a table). I can think of a few workarounds, such as creating my own NV function inside the test schema to return desirable values, but nothing seems a really satisfactory solution. I just wonder if there is any best practice recommendation from Oracle for this scenario - how can I run code that uses APEX-specific functions through the back end. I could not find anything in the APEX documentation for this but I'd be interesting to know if there is any recommendation how to best deal with this case.
    I am using SQL Developer version 4.0.0.13.80

    User[[:digit:]*
    Your PL/SQL Package APIs are poorly designed.
    You need to take Tom Kyte's quote to heart:
    "Application come and application go, but data remains forever"
    In short, you need to separate your database processing code (the stuff you need to unit test) from front-end/middle tier code.
    (repetitiveness is for effect.. not rudeness.)
    As such, The PL/SQL code that you need to 'UNIT TEST' must work without needing to run in APEX.
    The PL/SQL code that you need to 'UNIT TEST' must work without needing to run in .NET.
    The PL/SQL code that you need to 'UNIT TEST' must work without needing to run in JSP.
    The PL/SQL code that you need to 'UNIT TEST' must work without needing to run in Jive.
    The PL/SQL code that you need to 'UNIT TEST' must work without needing to run in Ruby.
    The PL/SQL code that you need to 'UNIT TEST' must work without needing to run in Perl::CGI.
    The PL/SQL code that you need to 'UNIT TEST' must work without needing to run in P9.
    The PL/SQL code that you need to 'UNIT TEST' must work without needing to run in <place latest and greatest thing here>.
    Again, I don't mean to sound rude.  I'm just trying to reinforce the idea that you need to separate database code from middle-tier/front-end stuff.
    Basically, you will need to separate all of your packages into multiple parts.
    a _CORE package (that will be unit tested) that does all the hard work
    an _APEX package for APEX infrastructure (this works with NV()/V(), etc.)
    a _NET package for .NET infrastructure when you need it
    a _JSP package for the JSP infrastructure when you need it
    a _JIVE package for the JIVE infrastructure when you need it
    a _<place latest and greatest thing here> for the <place latest and greatest thing here> when you need it.
    MK

  • Error deploying sample application

    Hi experts,
    I am getting following error while deploying OAAM sample application:
    Error: Unresolved Webapp Library references for "ServletContext@285871212[app:OAAMTester module:OAAMTester.war path:/OAAMTester spec-version:2.5]", defined in weblogic.xml [Extension-Name: oracle.oaam.libs, exact-match: false]
    Even though i have deployed required libraries
    My weblogic.xml :
    <weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90"
    xmlns:j2ee="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd
    http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <library-ref>
    <library-name>oracle.oaam.libs</library-name>
    </library-ref>
    </weblogic-web-app>
    web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
    <display-name>OAAMTester</display-name>
    <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</welcome-file>
    </welcome-file-list>
    <servlet>
    <description></description>
    <display-name>OAAMTestServlet</display-name>
    <servlet-name>OAAMTestServlet</servlet-name>
    <servlet-class>com.au.oaam.test.OAAMTestServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>OAAMTestServlet</servlet-name>
    <url-pattern>/OAAMTestServlet</url-pattern>
    </servlet-mapping>
    <listener>
    <listener-class>com.au.oaam.test.listener.SessionListener</listener-class>
    </listener>
    </web-app>
    ~
    ~
    Thanks
    H

    Hi!
    Seems application missing this library. You need to add this library to either application or to the Weblogic server.
    Note:
    Also don't duplicate the same library in application and the server. You can use following entry to force the app to use only web-inf/lib libraries.
    (weblogic.xml)
    <container-descriptor>
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
    Nilum.

  • OAAM Sample Application deployment

    I am getting following error while deploying OAAM sample application:
    Error: Unresolved Webapp Library references for "ServletContext@285871212[app:OAAMTester module:OAAMTester.war path:/OAAMTester spec-version:2.5]", defined in weblogic.xml [Extension-Name: oracle.oaam.libs, exact-match: false]
    Even though i have deployed required libraries
    My weblogic.xml :
    <weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90"
    xmlns:j2ee="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd
    http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <library-ref>
    <library-name>oracle.oaam.libs</library-name>
    </library-ref>
    </weblogic-web-app>
    web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
    <display-name>OAAMTester</display-name>
    <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</welcome-file>
    </welcome-file-list>
    <servlet>
    <description></description>
    <display-name>OAAMTestServlet</display-name>
    <servlet-name>OAAMTestServlet</servlet-name>
    <servlet-class>com.au.oaam.test.OAAMTestServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>OAAMTestServlet</servlet-name>
    <url-pattern>/OAAMTestServlet</url-pattern>
    </servlet-mapping>
    <listener>
    <listener-class>com.au.oaam.test.listener.SessionListener</listener-class>
    </listener>
    </web-app>
    ~
    ~
    Thanks
    Edited by: user13114668 on Mar 6, 2013 4:26 PM

    Even though i have deployed all required libraries

  • Flash Builder + unit tests = Unknown error generating output application.xml

    Please see my initial forum post here: http://forums.adobe.com/message/3730193
    This forum does not let me mark my initial post as "not answered" (re-opened) and it seems the dev is not going to respond to it as-is (maybe because he does not know)... so I'll re-open it this way
    An update to my initial post:
    I am now seeing this on Flex 4.1 projects as well. Both AIR and Flex Library projects.
    It appears to be some kind of race condition. Sometimes unit tests will launch on the first try, other times it takes 4-5 tries. If I keep the unit tests application XML open in the background, even on successful launches I see that the <content> node is re-written to contain the square brackets.

    Thanks Sudhir. I had just assumed that you were not getting the notifications since the ticket was marked as "answered".
    I appreciate your help in this matter.

  • Getting Error in Asmx Web Service Unit Testing & not able to debug unit-test Project.

    I am getting below error message while running unit test for ASMX web service
    Failed MyFunction The ASP.NET Web application at 'D:\MyProjectFolder' is already configured for testing by another test run. Only one test run at a time can run
    tests in ASP.NET. If there are no other test runs using this Web application, ensure that the Web.config file does not contain an httpModule named HostAdapter.
    I checked in web.config. Below line already added in web.config. i removed below line to run test again but getting same error message.
    <httpModules>
    <add name="HostAdapter" type="Microsoft.VisualStudio.TestTools.HostAdapter.Web.HttpModule, Microsoft.VisualStudio.QualityTools.HostAdapters.ASPNETAdapter, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    </httpModules>
    i am not able to debug unit test project.
    Please "Mark as Answer" if this post answered your question. :)
    Kalpesh Chhatrala | Software Developer | Rajkot | India
    Kalpesh 's Blog
    VFP Form to C#, Vb.Net Conversion Utility

    Hi Kalpesh,
    >>Failed MyFunction The ASP.NET Web application at 'D:\MyProjectFolder' is already configured for testing by another test run. Only one test run at a
    time can run tests in ASP.NET. If there are no other test runs using this Web application, ensure that the Web.config file does not contain an httpModule named HostAdapter.
    In your web application root, can you find a file named 'web.config.backup'?
    Reference:
    https://social.msdn.microsoft.com/Forums/en-US/e2ad0c20-df90-48dc-818c-8c5ec24d9365/visual-studio-test-is-not-hitting-breakpoints-in-debug?forum=vststest
    Fang also shared more information about debugging the unit test for web project here:
    https://social.msdn.microsoft.com/Forums/en-US/daa16086-b1b8-4917-ad8d-65e23b49e1bc/not-able-to-read-webconfig-through-unit-test-feature-by-visual-studiovsts?forum=vststest
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Unit test for J2EE application

    I am writting a Unit test for One J2EE application. The Application is built in such a way that makes unit testing extremely difficult.
    There are 2 things that contribute to the mess.
    1. Sping integration means all the config files are specified in web.xml independently, even though their beans rely on each other across files. End result is in a unit, I cannot try to load a bean because some of its dependencies are missing (ie. they are in a config file that the first file does not include). For this I tried to use AbstractDependencyInjectionSpringContextTests class to set the Spring Application Context when you are not in the flow but didn't success ed.If any one has use this please post the example.
    2. The application is using Errors interface of package org.springframework.validation. To write a test for any validator class you have to pass the object of Error in the validate method with the command object. Now my question is how you can set this Error object when you are not in the flow. For this I tried to use Mock object e.g Errors error;
    Mockery context = new Mockery();
    final Errors errorMock =context.mock(Errors.class);
    //call the validate object with mock object
    classObject.doValidate(cmdObject, errorMock)
    This thing doesn't work. It gives me below error message.
    unexpected invocation: errors.pushNestedPath("")
    no expectations specified: did you...
    - forget to start an expectation with a cardinality clause?
    - call a mocked method to specify the parameter of an expectation?
    Is there any way to get around these hiccups programmatically in unit tests?
    thanks...

    If you are doing unit testing, try to use straight JUnit4 without involving the Spring framework. Given that you do unit testing, you might not need Spring configuration in your unit test at all. You can programmatically instantiate the instance of the class under testing and either programmatically instantiate collaborating objects, or create mock objects for that purpose. If you are doing functional testing, you might need a Spring context after all. Understand that your tests are running in the different context than the complete application, so you would have to create separate application context for your test(s). You might have to go through the existing Spring configuration modules that you created for your application and re-jiggle them a bit so that they can be included both in your application context and your unit test context.
    Hope this helps.

Maybe you are looking for

  • CM25 planning board

    Dear experts, I have been working on the CM25 graphic planning board. So far I have not been able to show if a production order is scheduled to be finished in time. Do you know if it is possible to show this somehow? I am thinking in two directions:

  • Reference faces-config.xml file from java code.

    I would like to reference the navigation rules I have set up in my faces-config.xml file from inside my source code. For example: Navigation Rule: <navigation-rule> <from-view-id>*</from-view-id> <navigation-case> <from-outcome>pricingEngine</from-ou

  • External Display Toggling

    Forgive me if this is not the correct forum. I have a new MacBook Pro. I also purchased a 20" monitor and have it connected. Is there a way to toggle between the laptop display and the external display? The only way I can get the external display to

  • Why do we have to wait 24 hours to download?

    why do we have to wait 24 hours to download when we need the product now to finish a project?

  • Displaying scanned image in image edit control

    Hi, i have a kodak image scan control and kodak image edit control on my form. iam able to scan images and save them to filesystem, but iam not able to display the scanned image in the image edit control. can anybody pl. help me. thanks in advance. K