WebLogic 10.3 , ear file, application.xml only finds first context root

I just can't find out what this is. I have two web service projects (JAX-WS) and am trying to put them in an .ear file to deploy to WebLogic 10. Normally, this is done by creating an .ear with both projects .war files in it and an application.xml file in the META-INF directory that defines the context-root for each .war file. However, nothing I do for WebLogic 10 seems to work, it only see's the first context-root and sets that same context-root for both web services. I have verified this by switching the order in the application.xml file. Also, this exact same .ear file deploys to the Sun Enterprise Server (Glassfish) and acts correctly. Using a weblogic.xml file in each .war and deploying them individually they end up having the correct context root, just not from an .ear using application.xml. I even tried deleting the application.xml file and just having the weblogic.xml files in each .war define the context root and it still only came up with one context root for both. It's as if only one context root is allowed in an .ear for WebLogic 10, which can't be correct as we are doing this on WebLogic 9.2 (JAX-RPC) with multiple .war files in an ear.

Hi,
Try to increase severity of the server logging to avoid more logging.
Avoid Debugs and and info and better select the severity to notice which will avoid more logging.
Regards,
Kal

Similar Messages

  • App file sharing: files are displayed only the first time...

    clicking somewhere else and then back to the application that you want to share files are not there any more.
    I've to close and re-open the itunes in order to see them again.
    itunes is running on windows 7 64bit.
    is this a bug ?
    thank you.

    Hi! I have the same, exact problem. The files are displayed only the first time I look at the apps listed under File Sharing. If I look at another app on the list, the files on the one I previously checked are gone when I look at it again. Is there any way to fix this? I have a Lenovo X61s on Windows XP Professional 32 bit.

  • Deploy only WAR File to Weblogic and not EAR File

    Hi,
    I want know if exist a way to only deploy de WAR file to Weblogic?

    Hi,
    Below is the command to deploy ear file.
    java weblogic.Deployer -adminurl t3://<adminserver>:port -username admin -password password -deploy -stage -source <ear file name for example vas.war> -name <name of the application, this value is showed in console, For ex 'vas'> -targets <Managed server separated by comma>
    Thanks.
    Vijay Bheemineni.

  • Deploy Web-Application to Weblogic 8 without ear-file

    Ciao, I've created a connection to
    Weblogic but I just have a war-file I've to deploy. I tried to replace
    ear.file with war.file but it hasn't work.
    Could you help me? Thanks a lot!
    Here is the default:
    ${java} ${jvm.max.heap.size}
    -classpath ${weblogic.jar} weblogic.Deployer
    -adminurl http://${hostname}:${port}
    -user ${username} -password ${password}
    -debug -verbose -activate -upload
    -source ${ear.file} -name ${j2ee.app.name}

    Hi,
    JDeveloper automatically creates an EAR file when you try to deploy a WAR file. What errors are you getting?
    Also,
    - What version of JDev are you using?
    - Is your application jdk 1.4 and J2EE 1.3 compliant to deploy successfully on WebLogic 8.1?
    Thanks
    Prasanth

  • Help required in depolying EAR file. web.xml file not recognised.

    Hi All,
    I have created EAR project using WAR. While I'm trying to deploy the EAR file using SDM tool of J2EE engine. I'm getting the following error: bold com.sap.engine.services.servlets_jsp.server.exceptions.WebDeploymentException: Web application [redirectForm] does not contain "/WEB-INF/web.xml" file or it is spelt incorrectly bold . I have checked the WAR file, it has web.xml file. Please tell me how to resolve this error?
    Thanks in advance
    Srikant

    Hi Srikant,
    check the directory entry in your war file if it is woth upper case i.e. WEB-INF
    Best regards
    Bojidar

  • Urgent : Generation of file "application".xml fails and deploys aborted

    Hi,
    I recently took over an application (called RDAS) and downloaded if from DTR. But this didnt work well (all sources files have been downloaded, but lots of models and custom controllers were missing in the webdynpro perspective). This has been fixed well by modifying manually file Rdas.wdcomponent
    I just found out that in my component, a window and it's view are also missing (no links with any other windows or views of my application). This window just contains a view and acts as a popup (no navigation link or so with the rest of my component). I modified files Rdas.wdcomponent and RdasInterface.wdcomponentinterface and it builds well. No errors. I can now find my missing window and view in the webdynpro perspective.
    But since then I can not deploy anymore. I get the following errors:
    Web Dynpro Generation: com.sap.tc.webdynpro.repository.RepositoryRuntimeException: Failed to parse XML document containing VMO=com.alstom.power.rdas.wd.Rdas., D:/Workspace_JDI/0/DCs/power.alstom.com/rdaswd/_comp/gen_wdp/configuration/Applications/com.alstom.power.rdas.wd.Rdas/Rdas.xml
    And when I check in the generated files, the xml file associated to the application is not genetared anymore.
    Any ideas?
    Points rewarded for any help
    Thanks
    Yann

    Hi,
    Finally I figured out what was wrong.
    An entry was missing in file RDAS.wdcomponent (views have to be inserted in the views list and also in the components list).
    Do I deserve points?
    I think so

  • I just upgraded to Firefox 4 on my new MacBook Pro and can't open pdf files, or sometimes only the first page will open. Can anyone help?

    There are no more details. The files either open to a blank page or the first page only.

    Me thinks you have tried to connect to a shortcut folder and not a genuine folder.
    Note Mac OS X in Mac OS X 10.4 has 3 popular folder shortcut locations:
    The leftmost column of the Finder window.
    The horizontal toolbar on the top of the Finder window
    The translucent bar which can be anchored on the side or bottom of the screen known as the Dock. These are not true folder locations, but only locations for shortcuts. When you click on a folder for a volume that is not mounted, or is a folder which was deleted it will behave in this fashion. Often if you click on it the right fashion, it will change to a question mark.
    In addition if it is an alias to an existing folder that has no contents, it will behave this way from the three shortcut locations.
    If you right click instead of the left click a folder, it may think you want to do something to the folder which you can't do. Make sure your mouse button functions properly as a Primary button on Apple menu -> System Preferences -> Keyboard and Mouse.
    Also make sure Universal Access is not turned on as it too can cause funny behavior in the mouse click actions, in Apple menu -> System Preferences -> Universal Access.

  • How to access static resources in ear without specifing context-root

    Hello, i have a problem with my ear.
    The war's structure is like this:
    ---/jsp
    ---/css
    ---/images/ViewRisposte.gif
    ---/xsl/Request.xsl
    ---/Common/data.xsl
    /error.xsl
    /input.xsl
    xsl files reference css and images files that are contained in css and images dir.
    I can't use the "../" to specify css and images path into xsl and jsp due to security policy setting on the Http server (and I can't change this policy).
    In the ear's application.xml is specified the context root of the module web with the name SABEARWeb
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <application>
    <display-name>SABEARWeb module</display-name>
    <module>
    <web>
              <web-uri>SABEARWeb.war</web-uri>
              <context-root>SABEARWeb</context-root>
         </web>
    </module>
    </application>
    For example with this following code (Request.xsl), how can i replace the "../" notation to access xsl and image resouces without write the context root? How i can insert the images and css references into xsl and jsp files?
    <xsl:import href="../Common/data.xsl" />
    <img align="center" width="20" src="../images/ViewRisposte.gif" id="viewXslRisp" title="Visualizza Risposta">...</img>
    Thanks a lot

    >>As I understand I should change View1 by handling command of button “Edit”, and then View 2 should be displayed, then I change data and then View1 should be updated. How to do it?
    For information about how to handle a command, please refer to my blog post:
    http://blog.magnusmontin.net/2013/06/30/handling-events-in-an-mvvm-wpf-application/
    You could bind the Command property of the edit button to an ICommand property of VMMain. When this command is executed you could then send a message using an event aggregator or some kind of messenger. Please refer to my blog post for more information about
    how to for example use Prism's event aggregator class to pass events between view model classes:
    http://blog.magnusmontin.net/2014/02/28/using-the-event-aggregator-pattern-to-communicate-between-view-models/
    Andy has written an example of how to use MvvmLight's Messenger class:
    http://social.technet.microsoft.com/wiki/contents/articles/26070.communicating-between-classes.aspx
    The concepts are the same but you will have to download and reference either Prism:
    https://www.nuget.org/packages/Prism/
    ...or MvvmLight: https://www.nuget.org/packages/MvvmLight/
    You then subcribe to this event or message in the main view model and change the value of the CurrentPageViewModel property whenever you recieve an event. Note that the class must implement the INotifyPropertyChanged interface and raise its PropertyChanged
    interface for this to work:
    https://msdn.microsoft.com/en-us/library/system.componentmodel.inotifypropertychanged%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396
    This is how you are supposed to communicate between different view model classes.
    Hope that helps.
    Please remember to close your threads by marking helpful as answer and then start a new thread if you have a new question.

  • Deploy given EAR file having application.xml and change context-root

    hi
    Please consider deploying a given EAR file on WebLogic Server 10.3.5 (part of JDeveloper 11.1.1.6.0) and changing the context-root for its web-module.
    For example an EAR file with only a web-module (ReviewContextRootFirstApp.ear [1]) or an EAR file with a web-module and an ejb-module (ReviewContextRootSecondApp.ear [2]).
    Given documentation appendix B section "context-root" [3] saying
    "... A context-root setting in application.xml takes precedence over context-root setting in weblogic.xml. ..."
    and documentation section "Typical Deployment Configuration Workflows" [4] saying
    "Oracle does not support using a deployment plan to change the context-root in an application.xml file. However, if an application is deployed as a library, you can either change the context-root through an weblogic-application.xml file or use the deployment plan to change the context-root in an weblogic-application.xml file. "
    Some observed behaviour:
    - scenario (sc1) : deploy ReviewContextRootFirstApp.ear without deployment plan, results in context-root "/rcrfaweb" (as in application.xml)
    - scenario (sc2) : deploy ReviewContextRootFirstApp.ear with deployment plan fa-plan.xml (tries to configure "/rcrfaweb11"), results in context-root "/rcrfaweb" (as in application.xml)
    - scenario (sc3) : deploy ReviewContextRootSecondApp.ear without deployment plan, results in context-root "/rcrsaweb" (as in application.xml)
    - scenario (sc4) : deploy ReviewContextRootSecondApp.ear with deployment plan sa-plan.xml (tries to configure "/rcrsaweb21"), results in context-root "/rcrsaweb" (as in application.xml)
    The blog post "Defining the context root of a web application in Oracle WebLogic server" [5] by Silviu Leahu in its section "Defining the context root in deployment plan" suggests to
    "Remove the META-INF/application.xml DD from the EAR"
    - scenario (sc5) : remove application.xml from ReviewContextRootFirstApp.ear (e.g. using Ant target "remove.application.xml.from.ear") and deploy with deployment plan fa-plan.xml, results in context-root "/rcrfaweb11" (as in fa-plan.xml)
    - scenario (sc6) : remove application.xml from ReviewContextRootSecondApp.ear (e.g. using Ant target "remove.application.xml.from.ear") and deploy with deployment plan sa-plan.xml, results in context-root "/rcrsaweb21" (as in sa-plan.xml)
    One could expect that using a deployment plan (like in scenario's (sc2) and (sc4)) would allow to configure/change the context-root, whithout having to make changes to the EAR file to make this possible. (Somewhat like "Figure 4-2 Single Deployment Plan Workflow")
    Only in scenario's (sc5) and (sc6) I see something close to what I would like to achieve, but there the application.xml file has been removed from the EAR file.
    So ...
    - (q1) Is it impossible to change the context-root at deploy-time for a web-module in a given EAR file that includes an application.xml file, without changing the EAR file?
    - (q2) Is working with EAR files that don't have an application.xml file a supported approach (to change the context-root at deploy-time)?
    Seems like a simple goal, but I must be missing something that is required to achieve it.
    - [1] ReviewContextRootFirstApp/deploy/ReviewContextRootFirstApp.ear in the ZIP file
    at http://www.consideringred.com/files/oracle/2012/ReviewContextRootApps-v0.01.zip
    - [2] ReviewContextRootSecondApp/deploy/ReviewContextRootSecondApp.ear in the (same) ZIP file
    at http://www.consideringred.com/files/oracle/2012/ReviewContextRootApps-v0.01.zip
    - [3] http://docs.oracle.com/cd/E21764_01/web.1111/e13712/weblogic_xml.htm#WBAPP623
    - [4] http://docs.oracle.com/cd/E21764_01/web.1111/e13702/config.htm#DEPGD172
    - [5] http://blog.leahu.net/it/2011/01/04/defining-the-context-root-of-a-web-application-in-oracle-weblogic-server/
    many thanks
    Jan Vervecken

    Thanks for your reply René van Wijk.
    René van Wijk wrote:
    You can use deployment plans in order to change the context-root ...That is what I tried and describe in scenario's (sc2), (sc4), (sc5) and (sc6) in this forum thread.
    Because the application.xml file (in the "given EAR file"), added by JDeveloper 11.1.1.6.0 when deploying to an EAR file, doesn't have id attributes on its application/module elements, I first tried a different XPath expression:
    "/application/module/web[web-uri/text()="WebProject.war"]/context-root"
    But, that didn't work.
    Although the "given EAR file" does not have the suggested id attributes, I tried adding a deployment descriptor application.xml file that does have such id attributes [2], allowing an XPath expression like the one suggested:
    "/application/module[id="WebProject"]/web/context-root"
    - scenario (sc7) : deploy ReviewContextRootFirstApp.ear (in ReviewContextRootApps-v0.02.zip) with deployment plan fa-plan-application-xml-with-id.xml (tries to configure "/rcrfaweb14"), results in context-root "/rcrfaweb" (as in application.xml)
    - scenario (sc8) : deploy ReviewContextRootSecondApp.ear (in ReviewContextRootApps-v0.02.zip) with deployment plan sa-plan-application-xml-with-id.xml (tries to configure "/rcrsaweb24"), results in context-root "/rcrsaweb" (as in application.xml)
    So, it does not seem to work.
    ... you have to use a variable assignment in the right part of the deployment plan (in this case the application.xml) ...My observations I describe above (that it does not seem to work) seem to confirm the Oracle documentation [1] I referred to in this forum thread before:
    "Oracle does not support using a deployment plan to change the context-root in an application.xml file. ... "
    ... By using an xpath expression, you can define which part of the xml has to be changed. ...The values for the deployment-plan xpath elements seem to be "peculiar".
    Although it should not be a problem in an XPath expression, using single quotes (like module[id='WebProject'] ) instead of double quotes (like module[id="WebProject"] ) results in:
    "java.lang.AssertionError: Attributes must be defined as name value pairs, eg, name="value" -- [id='WebProject']"
    Because an XPath predicate expression would use an "@" to refer to an attribute, I also tried to replace what you suggested module[id="Web"] with something like module[@id="Web"] but that also did not make a difference.
    - [1] http://docs.oracle.com/cd/E21764_01/web.1111/e13702/config.htm#DEPGD172
    - [2] http://www.consideringred.com/files/oracle/2012/ReviewContextRootApps-v0.02.zip
    regards
    Jan Vervecken

  • How to find the root document in my application, if application is deployed as  EAR file ??

              Hi,
              I want the real path, i mean root document.
              I my EAR file, i have only one WAR file. In my WAR file the following are the
              folders:-
              enterprise/..
              properties/sql/..
              locale/..
              WEB-INF/..
              Once i get the 'real path' or 'root document', I will use that in application
              in no.of times. Path is used in the following way in our application:-
              File emailTemplatesFolder = new File( path + "/enterprise/"+ enterpriseCode+"/EmailTemplates");
              If i use getRealPath() method, it works fine, in use Oracle9ias, because, EAR
              file will be extracted. Where as in Weblogic 6.1, EAR file willn't be extracted,
              so that getRealPath() is giving 'null', that is reason why i am seeking for alternative.
              Thanks in Advance
              Srinivas
              

    Yes, that is the corrected behaviour.
    What you need to do is to get the ServletContext, and then load the files as resources.
    Here is how to load a properties file in the init() servlet method, which has access to the ServletConfig object that can give u the ServletContext.
    String classesDir = "/WEB-INF/classes";
    ServletContext sc = config.getServletContext();
    InputStram is = sc.getResourceAsStream(classesDir+"default.properties");
    props.load(is);
    Hope it helps,
    Liviu

  • How to use application params in .EAR files

    When we build an ear file , Weblogic-application.xml provides application-param
    tag?
    are they similar to env-entry in ejb-jar.xml.
    Can I use application-param tag to define a configurable params
    say myName and value as "Harshad"
    How do i read it in the application say a simple java class that is included in
    a jar inside the ear file.

    application-param tag in weblogic-application.xml may be used to define parameters:
    webapp.encoding.default
    webapp.encoding.usevmdefault
    webapp.getrealpath.accept_context_path
    http://e-docs.bea.com/wls/docs81/programming/app_xml.html#1034632
    "Harshad Nanal" <[email protected]> wrote:
    >
    When we build an ear file , Weblogic-application.xml provides application-param
    tag?
    are they similar to env-entry in ejb-jar.xml.
    Can I use application-param tag to define a configurable params
    say myName and value as "Harshad"
    How do i read it in the application say a simple java class that is included
    in
    a jar inside the ear file.

  • Deploying .ear files

    How can I deploy an .ear file if I want to use another Web Server(like
    iPlanet) to handle static content??
    Do I have to separate .html, .gif, etc from .jsp files??
    If this is true, .ear files are useful only in developing mode.
    Thanks,
    Austre

    Hi amit,
    Here is what your asking for go through this article by gerard and the deployment steps.
    http://gerardnico.com/wiki/dat/obiee/presentation_service_multiple#deploy_a_new_analyticswar_or_ear_file
    Cheers,
    KK

  • Add a resource provider to application.xml

    I am trying to setup Oracle AQ integration to BAM
    This requires adding the following resource provider to the file application.xml
    <resource-provider name="BAMTTT" class="oracle.jms.OjmsContext">
    <description>BAM for Generic</description>
    <property name="datasource" value="jdbc/OracleTTTDS"/>
    </resource-provider>
    It seems to give an error if I add it to either the beginning or end of this file.
    What is the proper way to add this resource to application.xml?

    As long as I add this text before the last line it works ok.

  • Parts of Hard-drive files not showing, only on macbook?

    Hey guys, I have a hard drive that has been running well until now. When I open a folder in Finder, which contains a large amount of files in it, only the first ten-ish are shown, the rest disappeared. But they are still there, because some missing files are music files imported into iTunes, and when I open iTunes, those "missing" music can still be played. Also, this problem doesn't appear on Windows, when I plug the hard drive on a Windows PC, everything is there again. Any idea what the problem might be? Thanks in advance.

    The Apple System Profiler shows all the correct info except the name is "unknown." The only 2 places that seem wrong are the desktop - no hard drive, and in Disk Utility. I don't know what it's called, but the line directly under the listed hard drive in Disk Utility (74.5 GB WDC WD800JB-00CRA1) should have the name of the hard drive (Macintosh HD) listed but it does not. It should look like this but with an icon of a hard drive in front of each line:
    74.5 GB WDC WD800JB-00CRA1
    Macintosh HD
    The second line (Macintosh HD) is not there. The other hard drives have their names listed. Apple seems to think this is a problem but other than running Data Rescue and Disk Warrior (neither of which did anything) they have not given me any other suggestions.
    The computer knows the hard drive is there but it won't let me access it. I have done, tried, and checked all the easy stuff. (Cables, any and every type of connection, restarting holding down option + apple + F + O and all the other restart variations with and without the OSX CD, and running "rescue" programs.) Nothing has worked. Short of an exorcism, I'm out of ideas.

  • 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

Maybe you are looking for