Deploying junitee outside of the application ear file

I have an application that is deployed within an ear file, and I have junitee tests
within a war file, called test.war. I would like to not have to place the test.war
within the ear file because the ear may be release code but I still want to test
it using the junitee tests. Instead I would like to optionally add the test.war
to the application context and not the ear file. How would I go about doing that?
I tried to deploy the test.war from the weblogic console, and hand editing the
config.xml, and adding the test.war as a module to the application.xml (within
the ear file).
In all cases when I try to then use classes within the ear file I get ClassNotFoundExceptions.
Probably because Weblogic is not including the test.war as part of the same application.
Thank in advance for any help.
-Fazle

I'd probably have 2 build targets, debug and production. Your debug
target could include the unit test war file.
-- Rob
Fazle Khan wrote:
I have an application that is deployed within an ear file, and I have junitee tests
within a war file, called test.war. I would like to not have to place the test.war
within the ear file because the ear may be release code but I still want to test
it using the junitee tests. Instead I would like to optionally add the test.war
to the application context and not the ear file. How would I go about doing that?
I tried to deploy the test.war from the weblogic console, and hand editing the
config.xml, and adding the test.war as a module to the application.xml (within
the ear file).
In all cases when I try to then use classes within the ear file I get ClassNotFoundExceptions.
Probably because Weblogic is not including the test.war as part of the same application.
Thank in advance for any help.
-Fazle

Similar Messages

  • Application Ear file deployment on Oracle 9ias(9.0.3)

    Hi,
    I'm trying to deploy an application (JSP + BC4J) under Oracle 9ias using the Enterprise Manager (EM).
    No error occurs during the process but I can not load the application with internet explorer.
    the following message appears : "Not Found
    The requested URL /AgatteWF/index.jsp was not found on this server."
    Deploying the application under OC4J standalone with the same ear file works fine.
    Does anyone got that problem ?
    Any help is welcome
    regards

    Hi
    I already had a look to the log files.
    They don't show any error.
    the webcontext is correct but index.jsp is not placed under the "WEB_INF" directory.
    I don't think that's the reason of the problem 'cause i succeeded once to deploy the same application under the IAS.
    I made the same operations i did before (creating a new oc4j instance under IAS after having dropped the old one, deploying the application, creating the data source...)
    But i don't know why it doesn't work this time.

  • Security Error while trying to deploy my project to the application server from jDeve

    Dear All,
    I'm trying to deploy my project to the application server from jDeveloer but i got the following error :
    Invoking Oracle9iAS admin tool...
    D:\Oracle\OUIHome\jdk\jre\bin\javaw.exe -jar D:\Oracle\OUIHome\j2ee\home\admin.jar ormi://M-AMIN:3101/ admin **** -deploy -file D:\Oracle\OUIHome\jdev\mywork\Portal\UserManager\userRegister.ear -deploymentName userRegister
    Security error: This operation was denied. The admin.jar utility can not be used to perform operations against OPMN managed OC4J instnaces. Please use Enterprise Manager or dcmctl instead. Refer to the Oracle9iAS Admin Guide or the OC4J User's Guide for more details.
    Exit status of Oracle9iAS admin tool (-deploy): 1
    #### Deployment incomplete. #### Sep 10, 2002 4:16:53 PM
    Any help will be appreciated
    Regards,
    Mohammed Amin

    In JDev 9.0.2, to deploy to the full 9iAS server (instead of just Oracle9iAS Containers for J2EE [OC4J]), you have to use Enterprise Manager or DCM to deploy your application.
    In JDev 9.0.3 Preview, there is a way to have JDev perform a deployment via DCM for you, if you install a DCM Servlet into 9iAS that comes with JDeveloper.
    By JDev 9.0.3 Production, if you also use Oracle9iAS 9.0.3 Production, it should be possible to deploy to iAS 9.0.3 out-of-the-box.

  • Images in the shared library not loaded in the application EAR

    The images in the shared library are not getting loaded in the application EAR deployed in the weblogic server.
    I have a portal web project, which is deployed in the server, as a shared library. I'm using this shared library in my application EAR. All the details like the portlets, look and feel elements are loaded. But the images are not displayed when I run my application. Please help!!
    Can it be a problem with the context path specified or something else?

    Hello,
    It is most likely an issue with how your portlets are creating the URLs to the images. What kind of portlets are you using (JPF, JSF, JSR168, Struts, JSP)? And how are you generating the URLs to the images?
    Kevin

  • Error  while accessing the application server file

    Hello,
    When I try to load the data from CSV file to PSA , I am getting following error message
    "Error  while accessing the application server file"
    "Errors in source system"
    I gave the right file path
    I am not sure about this error message.
    Thanks,

    Hi ram,
    if you have more than one application server running in your BI system (see at transaction SM51) be aware that your infopackage will be executed on the right one. Each application server has its own file system and your job need to run on the server your file is stored on.
    Also check if the os user of the SAP system itself (<sid>adm on Unix) has rights to read that file.
    Bye
    Frank

  • How to give the application server file path in the module pool programming

    Hi,
         Could somebody help me how to provide the application server file path in module pool programming once the logo is uploaded to sap system.
      For eg I have imported a logo name ‘owens’ into sap system by using transaction ‘se78’; now I need to call the path in the below url,
    if container2 is initial.
    CREATE OBJECT CONTAINER2
      EXPORTING
        CONTAINER_NAME              = 'PICTURE_CONTAINER2'.
    CREATE OBJECT PICTURE2
      EXPORTING
        PARENT = CONTAINER2.
    CALL METHOD PICTURE2->SET_DISPLAY_MODE
      EXPORTING
        DISPLAY_MODE = CL_GUI_PICTURE=>display_mode_fit_center
      EXCEPTIONS
        ERROR        = 1.
    CALL METHOD PICTURE2->LOAD_PICTURE_FROM_URL
      EXPORTING
        URL    = " ? "
      EXCEPTIONS
        ERROR  = 1
        Others = 2.
    endif.
    Thanks in advance
    Deepu

    hi Deepu,
    Use FM '/SAPDMC/LSM_F4_FRONTEND_FILE' for fetching the data from the application server path/presentation server path
    Regards,
    Santosh

  • Can I unzip the .ipa file and edit the application.xml file

    I want to modify the below info to also have an additional string value of 2, which somewhere along the line tells something somewhere that the app can run on the ipad. Is there some info in the compiled application that will error out if I modify this document?
    <InfoAdditions>
    - <![CDATA[ <key>UIDeviceFamily</key><array><string>1</string></array> ]]>
    </InfoAdditions>
    into this
    <InfoAdditions>
    - <![CDATA[ <key>UIDeviceFamily</key><array><string>1</string><string>2</string></array> ]]>
    </InfoAdditions>

    you can change the file extension to zip, unzip it, find the application.xml file in one of the subdirectories, edit it, rezip the files, change the file extension to ipa and install.

  • CRM 5.0 ear files - How to get the b2c.ear file for custom development

    Hi all,
    We are using CRM 5.0 e-commerce (B2C). We are looking to import the b2c.ear file into the NW dev studio. We do not seem to be able to find the file.
    Alexandre
    PS: Do we need to have the NWDI in order to do custom ISA (b2c) development ?

    Hi
    Unlike in 4.0 we wont have EAR file directly to import. First Basis people need to setup NWDI where in they import all packages. Once it is ready, in NWDS(dev env) we need to import configuration which will internally impors Development Components and their dependencies. Once you have everything in locla machine, we can create project make EAR FILE...
    i hope this answers your quesiton.
    regards,
    Laxman

  • "An error occurred creating the application.Check file system permission"

    Hi There ,
    I am facing a problem in creating a webcenter portal webapplication.
    I have followed the steps given in Help topics of Jdeveloper,but after performing all the steps i am getting this error
    "An error occurred creating the application.Check file system permission". Kindly help me to get through this error.
    Regards
    Vivek

    Hi Vivek,
    I hope this is the problem with permission.you Don't have Admin permission to access those folder.
    my Suggestion is
    1.use Administrator account(on windows) for develop applications(its give full access to the folder from your system). or
    2 open your JDeveloper as Administrator. (just right click on JDeveloper from you shortcuts or from programs run as Administrator)
    I hope this will be helpful.
    Best Regards
    Siva Sankar

  • Why even unchecked my crash reports are sent? I have to manually edit the "application.ini" file at every update! This is unacceptable to the user's choice!

    Why even unchecked my crash reports are sent? I have to manually edit the 'application.ini' file at every updates! This is unacceptable for the user's choice!

    Check the SubmitCrashReport (DWORD) key in the registry and set the value to 0.
    *HKEY_LOCAL_MACHINE\Software\Mozilla\Firefox\Crash Reporter\SubmitCrashReport: DWORD
    *HKEY_CURRENT_USER\Software\Mozilla\Firefox\Crash Reporter\SubmitCrashReport: DWORD
    You may need to check the HKLM\Software\Wow6432Node\ node on 64 bit Windows.
    *http://kb.mozillazine.org/Mozilla_Crash_Reporter

  • Deploy the MapViewer.ear file in Glassfish

    I have the following Questions about the version 11.1.1.7.1 of MapViewer Install on Glassfish.
    I have copied the mapviewer.ear to the folder: glassfish3\glassfish\domains\domain1\autodeploy.
    I use the admin console on http://localhost:4848(Need not user/password) and found the mapviewer under Applications menu. The mapviewer URL is http://localhost:8080/mapviewer/.
    I want to use the MapViewer Administration Console, but I don’t know user name and password.
    Can anyone provide the user name and password or any other advice of deploying in Glassfish?
    Thanks
    Edited by: xin1008396 on May 29, 2013 7:46 AM

    I got an answer by reading the "README.txt" in the MapViewer QuickStart Kit zip package.
    I logged in the MapViewer Administration Console with that user name is admin and password is null.
    ====== Log into MapViewer admin page ======
    To log into MapViewer's admin console, go to the MapViewer URL, click on the
    "Admin" link, then use the Glassfish admin user name and password to log in.

  • Running a J2EE application (ear file)

    I am new to J2EE. I have created a EnpDtls Servlet simply to greet a person by name - like sample application. But i am unable to see it in on web (localhost:8080). What should i give as url to view the application? I am using J2EE 1,4 Application Server 8.2 from SUN. and jsdk 1.5
    I can see my html file under Context Root i.e localhost:8080/EmpDtlsCx. But what should be the url to see the class file of my sevlet.
    Servlet is : EmpDtls.class
    ContextRoot : /EmpDtlsCx
    Web Display : EmpDtlsWebDsp
    EAR file : EmpDtlsEar
    I have used deploytool. I can also see the Application in Admin console (localhost:4848) -> Enterprise Application. But there also the Admin console does not give any otion of launch as it gives for Web Application. Please note that the verifier option in Admin consoile also passes of sucessfully.
    The deployment descriptors: application.xml, sun-application.xml are under <J2ee INSTALLDIR>/domains/domain1/applications/j2ee-apps/EmpDtlsEar/ - the name of the EAR file.
    Should i get ContextRoot as folder name ?
    Could anyone help in solving my problem ?
    The structure of directories and files is as follows
       EmpDtlsEar
       |
       |____ META-INF
       |                |
       |                |____ application.xml
       |                |____ sun-spplication.xml
       |                |____ sun-j2ee-ri.project
       |                |____ MANIFEST.MF
       |
       |____ war-ic.war
                       |
                       |____ EmpDtls.html
                       |
                       |____ META-INF
                       |                  |
                       |                  |__ MANIFEST.MF
                       |
                       |____ WEB-INF
                                         |
                                         |__ web.xml
                                         |
                                         |__ sun-web.xml
                                         |
                                         |__ sun-jee-ri.project
                                         |
                                         |__ classes
                                                  |
                                                  |__ EmpDtls.class
    thanks in advance
    tshot

    Ok, you have your servlet defined, but now you should map it using mapping tags. Try editing your web.xml file as follows (adding mapping):
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
      <display-name>EmpDtlsWarDisp</display-name>
      <servlet>
        <display-name>EmpDtlsWebDisp</display-name>
        <servlet-name>EmpDtlsWebComp</servlet-name>
        <servlet-class>tshot.EmpDtls</servlet-class>
      </servlet>
      <servlet-mapping>
        <servlet-name>EmpDtlsWebComp</servlet-name>
        <url-pattern>/EmpDtls</url-pattern>
      </servlet-mapping>
    </web-app>Note the adding of "tshot." in front of your EmpDtls in your servlet-class tag.
    This means you need to create a directory in your src location called "tshot", move your EmpDtls.java into the new directory, and then edit that java file, placing the following line at the top of it:
    package tshot;Once you have re-built and re-deployed this you should be able to access your servlet at:
    http://localhost:8080/EmpDtlsCx/EmpDtls
    Refactoring is a term used to mean you've decided to change the name of a variable, method or some alteration of your java file such as changing package names (or adding to a package in this case) whereby the results may or may not affect other classes which depend on this class. Typically, nowadays refactoring is usually done by selecting a refactoring command from a menu item or button within an IDE (Integrated Development Environment) whereby the IDE performs all of the dependancy checking for you and copies the change to affected areas where necessary. Thus, all you need to do is choose the right refactoring operation and click "Ok" in most cases. In the old days, you would have to keep track of all affected areas and manually edit where necessary, based on your imposed change.

  • (un)deploy a single component in an .ear File in WLS 6.1

    I deployed a .ear File, that contains 25 EJBs and 5 webapplications) in WLS
    6.1. Everything is fine. Now i tried to undeploy a single EJB that is
    contained in the .ear File. But when i mark this EJB in the WLS admin
    console as undeployed, all other EJBs and WARs are marked as undeployed.
    Is this becaue of the J2EE specification or is it a weblogic feature /
    problem?
    alexander

    This issue is seen only with IBM JDK 1.6 (any SR) because, IBM packages the xerces version 2.9 as a part of $IBM_JDK_HOME/jre/lib/xml.jar.
    I think/understand that, your application is also packaging a xerces impl jar(different version otherthan xerces version 2.9) in WEB-INF/lib of you application.
    So, to make sure that the WebLogic Server uses the xerces impl jar that has been packaged, you are trying to use the filtered classloader in weblogic-application.xml
    But the filtered classloader would not have any effect, since, the IBM JDK packaged xerces parsers would also be with the same package structure. So, I think you should try with setting the following in WEB-INF/weblogic.xml inside the <weblogic-web-app> tag.
    <container-descriptor>
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
    I think this should work with WLS 11gR1PS2 (WLS 10.3.3).

  • Deploying only one component of an EAR file

    Consider this situation. I have an EAR file which contains 3 war files,
    war1.war, war2.war, war3.war. There are situations where I want to deploy the EAR file but want to deploy only war1.war and dont want to deploy the other 2 wars. Is it possible to selectively deploy the contents of the EAR file? Any help is greatly appreciated. Thanks.

    Looks like one way to do this is not reference your WAR in your META-INF/application.xml
    Thanks.

  • Deployment plan - can be packing to ear file?

    Hi Lads,
    I successfully deployed application on Application Server 10g Release 3. I'm using hibernate then in deployment plan I had to unselect toplink libraries. I need distribute my application. Is possible to add deployment plan somewhere to ear archive and server will automatically use it during deployment or this file must be distributed separately? Or can be toplink turn off in different config file ex. orion-application.xml?
    Thanks for help
    Robert

    I've had similar issues related to XML libraries. Here's an example orion-application.xml file that removes the "oracle.xml" library:
    <orion-application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                       xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/orion-application-10_0.xsd"
                       schema-major-version="10"
                       schema-minor-version="0">
        <imported-shared-libraries>
            <remove-inherited name="oracle.xml"/>
        </imported-shared-libraries>
    </orion-application>You should be able to do something similar for Toplink...

Maybe you are looking for

  • Internal/built in speakers suddenly missing?

    I was playing music through a pair of external speakers in my office and when I came home and tried to use my MacBook Pro's own speakers, they now don't work. In fact, they appear to be gone. In System Preferences, under Output, all that's listed is

  • Can a single applet write to several areas of the screen?

    If you stick several copies of some graphic into a webpage, hopefully the browser will be smart enough only to request one copy. A related thing that would be desirable would be to have a single applet that could paint into different areas of the dis

  • NWDS 7.0.13 for java Download Link

    Hi All, I tried to download the NWDS7.0.13 for Java. But did not succeeded. Can anyone tell me how & where to download the software. Better if can provide a link. Regards Chander Kararia

  • Which iPod Nano on OS X 10.4.11 and iTunes 9.2.1?

    Hello, I'd like to know which iPod Nanos (i.e. generations/models) I can use with OS X 10.4.11 and iTunes 9.2.1.  I can't find such a compatibility chart on the site. Note that I am not interested in syncing my laptop iTunes and the iPod per se.  All

  • Web Logic installation for Window NT

    Hi, I can not install the WebLogic into my computer by any way. Can Some one show me the step by step how to install web logic. Thank yiou very much Dan Nguyen