Clustering, unix symbolic links, and war files

          Hello,
          we use symbolic links in our web application to a large shared storage device.
          This works when running a single server, when the application is not a war file.
          When we cluster the application, the admin server creates a war file, blindly
          follows the symbolic links and tries to include all files in the shared storage
          device. Bad!
          Is there a work-around to this problem in a clustered configuration?
          -Thanks-
          

          hi,
          can you tell me know you deploy your app to the cluster member
          manually? do you run each member as an admin server? how do
          you group them into a cluster then?
          thanks,
          yan
          "Philippe Lantin" plantin_AT_cobaltgroup.com wrote:
          >
          >
          >Yes, this method works. I did want to keep a central admin server to
          >avoid have
          >multiple configuration files, and deploy new code to only one location.
          >I suppose
          >I could do this via a shared drive.
          >
          >I have an open case with BEA on this issue. The root of the problem appears
          >to
          >be that the jar format isn't equipped to deal with symbolic links. Webapps
          >which
          >are exploded in directories lose their symbolic links when packaged in
          >a war.
          >
          >Thanks,
          >
          >Philippe Lantin
          >
          >"Cameron Purdy" <[email protected]> wrote:
          >>I've never used that centralized deployment feature; rather I've always
          >>configured each of the cluster members manually, partly because of the
          >>bug
          >>in the admin server in 6.0 (?) that would not allow it to deploy to
          >the
          >>cluster.
          >>
          >>Can you try to deploy the application manually?
          >>
          >>Peace,
          >>
          >>--
          >>Cameron Purdy
          >>Tangosol Inc.
          >><< Tangosol Server: How Weblogic applications are customized >>
          >><< Download now from http://www.tangosol.com/download.jsp >>
          >>
          >>
          >><Philippe Lantin plantin_AT_cobaltgroup.com> wrote in message
          >>news:[email protected]...
          >>>
          >>>
          >>> Hi,
          >>>
          >>> our web application is not a war when we use a single server. We simply
          >>use a
          >>> directory under "applications". This method works correctly with symbolic
          >>links
          >>> under weblogic v.6.1.
          >>>
          >>> To test our application in the cluster, we use the previous single
          >>server
          >>as the
          >>> administration server, leaving the application directory intact. We
          >>create
          >>a cluster
          >>> definition with it's target members using this web application.
          >>>
          >>> When we start up the cluster members, the administration server creates
          >>a
          >>war
          >>> file that is distributed to to cluster members. This is not somthing
          >>we
          >>control,
          >>> this is automatically done by weblogic.
          >>>
          >>> This is where we run into trouble. When the admin server creates the
          >>war
          >>file
          >>> to distribute to the cluster target, it follows the symbolic links
          >>and
          >>recursively
          >>> includes all files and directories. This creates a huge war file,
          >and
          >>is
          >>obviously
          >>> not the behavior we are looking for.
          >>>
          >>> Creating a war file manually doesn't help, since jar doesn't support
          >>symbolic
          >>> links.
          >>>
          >>> Thanks,
          >>>
          >>> Philippe Lantin
          >>>
          >>>
          >>> "Cameron Purdy" <[email protected]> wrote:
          >>> >I don't understand at which point you are running into a problem.
          >>> >
          >>> >> we use symbolic links in our web application to a large shared
          >storage
          >>> >device.
          >>> >
          >>> >That is not uncommon, for example to use a Sun storage box or EMC
          >>with
          >>> >some
          >>> >fault tolerant characteristics to host the application images etc.
          >>> >
          >>> >> This works when running a single server, when the application is
          >>not
          >>> >a war
          >>> >file.
          >>> >
          >>> >Do you mean when it is "exploded"? Does it work with a single server
          >>> >when
          >>> >the app is a war file?
          >>> >
          >>> >> When we cluster the application, the admin server creates a war
          >>file,
          >>> >blindly
          >>> >> follows the symbolic links and tries to include all files in the
          >>shared
          >>> >storage
          >>> >> device.
          >>> >
          >>> >This is the part that I don't follow. Are you using 6.1sp1? What
          >are
          >>> >the
          >>> >steps that you are taking with the admin server?
          >>> >
          >>> >Peace,
          >>> >
          >>> >--
          >>> >Cameron Purdy
          >>> >Tangosol Inc.
          >>> ><< Tangosol Server: How Weblogic applications are customized >>
          >>> ><< Download now from http://www.tangosol.com/download.jsp >>
          >>> >
          >>> >
          >>> ><Philippe Lantin plantin_AT_cobaltgroup.com> wrote in message
          >>> >news:[email protected]...
          >>> >>
          >>> >>
          >>> >> Hello,
          >>> >>
          >>> >> we use symbolic links in our web application to a large shared
          >storage
          >>> >device.
          >>> >> This works when running a single server, when the application is
          >>not
          >>> >a war
          >>> >file.
          >>> >> When we cluster the application, the admin server creates a war
          >>file,
          >>> >blindly
          >>> >> follows the symbolic links and tries to include all files in the
          >>shared
          >>> >storage
          >>> >> device. Bad!
          >>> >>
          >>> >> Is there a work-around to this problem in a clustered configuration?
          >>> >>
          >>> >> -Thanks-
          >>> >>
          >>> >>
          >>> >>
          >>> >
          >>> >
          >>>
          >>
          >>
          >
          

Similar Messages

  • Can I use Unix symbolic links between Mountain Lion and Snow Leopard Mail folders?

    After upgrading to Mountain Lion, I partitioned my iMac HD to have two partitions: Macintosh HD has Mountain Lion; I reinstalled Snow Leopard on Macintosh HD 2. Best part: you can access your user-created files from EITHER disk partition. But not so OS X Mail. I wanted to revert to Snow Leopard, since I don't like the iOS-like Mountain Lion (swipe THIS!), but Mail is a problem since all my Snow Leopard Mail was successfully migrated over to Mountain Lion during upgrade.
    Is there a way to use Unix symbolic links between actual OS X Mail folders in Mountain Lion and OS X Mail in Snow Leopard?
    It seems the (trial) symbolic link created pointed to a blank file.

    It's not a matter of "letting" each maintain its own database, William. By default, I believe, I have no control over what gets written. In fact, if there were a way to set a preference that says, use this index named "spotlightindexSL' only [while in SL], that might solve my problem. Then when booting up in ML, it would just go after the index it last made.
    My guess is that while I am in ML or SL and not the other, there are all sorts of changes to files and the system freaks and says "Oh, now look at what a mess I've made — there are all sorts of files unaccounted for. Now I have to rebuild the whole thing."
    I have 2 had drives in my Mac, both 500GB. One (Working Disk) has no operating system and all my files, and the other drive is partitioned 470/30gb with SL on the 470 and ML in the 30. When I restart in either OS, the auto-start Indexing as if for the very first time, and do both hard drives (in total: 3 partitions of files, not counting the ML Restore partition).
    I know it all uncoventionally — just wanted to see what my $20 new OS will cost me in software upgrades, in particular my $1800 Adobe Design Suite CS4 and a few others.

  • How to deploy ear file with jar file and war file with different names

    Hi,
    As part of weblogic migration from WL 6.1 sp3 to WL 10, Iam facing some problem.
    Problem:
    I have one ear file(abc.ear) to deploy which contains one jar file(xyz.jar) and one war file(pqr.war).
    In config.xml file of WL 6.1, it was mentioned as :
    <Application Deployed="true" Name="abc" Path="./config/mydomain/applications/abc.ear">
    <EJBComponent Name="xyz" Targets="myserver" URI="xyz.jar"/>
    <WebAppComponent Name="pqr" Targets="myserver" URI="pqr.war"/>
    </Application>.
    The above is working fine.
    But in config.xml file WL10,I cannot mention the same.
    I need to have different application anmes for ear,jar and war.If I deploy as a ear file,the jar and war files are deployed with the same ear file name.
    I tried the following options:
    1) Deploying as a ear file by adding <sub-deployments>
    2) Deploying both war and jar seperately which is not recommended in my application.
    Please provide the content I should place in the config.xml so that everything works fine correctly.
    Any help is appreciated.

    Hi,
    As part of weblogic migration from WL 6.1 sp3 to WL 10, Iam facing some problem.
    Problem:
    I have one ear file(abc.ear) to deploy which contains one jar file(xyz.jar) and one war file(pqr.war).
    In config.xml file of WL 6.1, it was mentioned as :
    <Application Deployed="true" Name="abc" Path="./config/mydomain/applications/abc.ear">
    <EJBComponent Name="xyz" Targets="myserver" URI="xyz.jar"/>
    <WebAppComponent Name="pqr" Targets="myserver" URI="pqr.war"/>
    </Application>.
    The above is working fine.
    But in config.xml file WL10,I cannot mention the same.
    I need to have different application anmes for ear,jar and war.If I deploy as a ear file,the jar and war files are deployed with the same ear file name.
    I tried the following options:
    1) Deploying as a ear file by adding <sub-deployments>
    2) Deploying both war and jar seperately which is not recommended in my application.
    Please provide the content I should place in the config.xml so that everything works fine correctly.
    Any help is appreciated.

  • How to make ear and war file

    hi ,
    can anyone tell me how to make the ear and war file ??/
    Regards,
    Shruti.

    hello shruti
    to make war file enter the following command through command prompt
    jar -cvf filename.war give one space then .(dot)
    bye

  • Explain about JAR,EAR and WAR files

    Explain :what is JAR,EAR and WAR files and how is useful in creating archive files in java with more example?

    Please look up this type of information on your own.
    http://java.sun.com/reference/glossary/index.html

  • Repeated problem of broken link and unused files

    Hi ,
    I am using RH8.0.2
    I have updated my RH8 to RH8.0.2 and then fix all broken link and did what was advised.i got result, everything was fine, I was a happy man. Today when i open the same project for updation, i found again plenty of broken links and unused file in the same project.
    Is there any permanent solution of the problem of broken links and unused file or i have to fix it every time when i open my project?
    Plz help!!!
    Br,
    Rahul

    Hi Rahul.
    Two things. Firstly some of the paths you have in your project are very long. In the example you have given we are seeing less than half the path. This may not be the problem but it maybe in the future. Secondly, as Peter has suggested, the problem maybe related to source control. Do you use it? I have heard of instances where (e.g. .FPJ) files cause issues.
    Read the RoboColum(n) for a tips, tricks and musings on the Technical Communication Suite products.
    Follow the RoboColum(n) on Twitter

  • EAR and WAR file deployment

    hi,
    Does anyone have information on how to use the EARASSEMBLER
    tool for creating ear files and war files?????
    thanks

    Hi Cheenai,
    EARASSEMBLER is an Orion tool and it is not supported in the
    current release of Oracle9iAS Containers for J2EE (even though
    it's bundled with the installation).
    You may download Oracle9i JDeveloper Release Candidate as the
    integrated development tool to build, assemble, package and
    deploy any J2EE applications (EJB-JAR, WAR, EAR files etc.):
    http://otn.oracle.com/software/products/jdev/content.html
    You may also download the "ant" command line tool to build and
    package J2EE files:
    http://jakarta.apache.org/ant/

  • Ear and War file difference

    I have created and loaded WAR files for Web Applications on my Tomcat 4.1.27 web container.
    I have also heard about EAR files and was wondering if I have the correct definition. On one of my Google searches it says: EAR files contain JAR files and WAR files.
    I assume an EAR file can contain many JAR and WAR files wrapped into one file (EAR)? Another way of looking at it is if I have for example 3 WAR files, I can put all 3 in an EAR file?

    All the archive files used in Java apps are basically ZIP files with the extension changed.
    JARs are used to package classes.
    WARs are used to package web applications ( the complete directory structure are mandated by J2EE specs ) and may contain JARs
    EARs are used to package a J2EE application ( think web app + EJBs in general ) and may consist of many web modules packaged as WARs.
    Take a look at this too: http://searchwebservices.techtarget.com/expert/KnowledgebaseAnswer/0,289625,sid26_gci837938,00.html
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • Replace symbolic links with actual file

    Hello everybody,
    I have recently decided to move my seven iPhoto collections from an old external drive with insufficient capacity to a new bigger one. We talk some 50.000+ photos. Up to a couple of years ago, I had decided NOT to let iPhoto import the photos into its internal library, but I left the originals in a distinct directory external to the iPhoto package.
    Moving the iPhoto packages from the old to the new disk, I ran into a problem with the links to this external directory once I had retired the old external drive … because all links to the external originals broke.
    Here an example:
    - The old drive is called MOBIL
    - The new drive is called Photos
    In the directory /Volumes/Photos/iPhoto Library 1999 - 2002/Masters/2000/ESRIN, I find a symbolic link named:
    /Volumes/Photos/iPhoto Library 1999 - 2002/Masters/2000/ESRIN/DCP_0211.JPG
    In a terminal session this file is: -rw-rw-rw-@ 1 js  0 29 Okt  2006 DCP_0211.JPG
    The original is correctly reported as /Volumes/MOBIL/Eigene Bilder - Jurgen/Fotos/2000/09 September/ESRIN/DCP_0211.JPG
    Of course, iPhoto does not find the original once I remove the volume MOBIL.
    I see two possible solutions to this issue:
    1. Replace the broken symbolic link /Volumes/MOBIL/... with the new one /Volumes/Photos
    2. Replace the symbolic link with the actual file, i.e., copy each file from MOBIL to Photos (I don't care about the additional disk space used by this)
    I'd prefer solution 2 but my UNIX knowledge is not sufficient to automate this task - we are talking hundreds of directories and thousands of files …
    Any idea ho to achieve the above ? Any utility around ? Any other idea ?
    Many thanks in advance - Jurgen

    I believe that /Volumes normally contains a single symbolic link to the boot volume, and that all the other items there are not true symbolic links but are rather "mount points" which are managed dynamically by the system. Try running
    ls -l /Volumes
    in Terminal and you will see that all the items except for the boot volume show up as directories, and that only the boot volume item is a symbolic link. When you look at /Volumes in Finder (via Go To Folder) , the mount point icons have curved "alias" arrows and are labeled "alias", similar to symbolic links,  but they are different entities.
    With respect to the iPhoto paths, if you still have the old drive I think I would try cloning it to the new one so that the contents of the new drive are identical, disconnecting the old drive, and then renaming the new drive to match the name of the old drive. Then launch iPhoto and see if it finds everything.

  • "/usr/lib is not a symbolic link" and testify+libjpeg7 problem

    everytime I update pacman or do a "ldconfig" I get this:
    /sbin/ldconfig: /usr/lib/ is not a symbolic link
    this appeared by the time i installed libjpeg7 from aur (though I'm not 100% sure libjpeg7 is responsible). I've looked through google trying to find out what it means and if it is a problem, but nada! but, while at libjpeg, even though I installed libjpeg7 I can't compile testify (spotify linux-client). I get this error:
    In file included from image.c:31:
    jmemsrc.h:26: error: conflicting types for 'jpeg_mem_src'
    /usr/include/jpeglib.h:959: note: previous declaration of 'jpeg_mem_src' was here
    make: *** [image.o] Error 1
    make: *** Waiting for unfinished jobs....
    when i make /usr/include/jpeglib.h link to /usr/include/libjpeg7/jpeglib.h the compile and install is successful, BUT, testify crashes telling me:
    Wrong JPEG library version: library is 80, caller expects 70
    if more info's required, I'll provide andif I'm raising a problem already raised (I know there's been a lot of hassle since the upgrade), I'll gladly follow a link to solution.
    edit: the "not a symbolic link" appeared after installing libspotify0.0.3. installed it on another computer, and same thing appeared. though, would still like to know why it appears...
    Last edited by serein (2010-03-27 17:09:58)

    Mr.Elendig wrote:Whatever you are trying to build has to be patched for libjpeg8
    to much to do to get libjpeg7 working the way i want it to?
    i've looked through the source, but i don't know enough to get it working... crap.
    and its xtestify i'm trying to build: http://xtestify.sourceforge.net/

  • How to work with two different backend with same MI Server and war file

    Hi All,
    We have a requirement that we need to work with one Middleware for two backends. For that we had to copy MAM30 sync bo's to zsync BO'S with the name ZMAM30. Now both sync BO'S will point to different backends.
    I have a standard war file which was working well with standards sync bo's. Now to work on zsync bo's what all the changes do I have to do in the standard war file(code).
    As per my knowledge we have a file called "syncbonamelist.properties" which maps the sync bo keys. Also there is another file called "mapping.xml" file which maps the package name with BO name.
    Can any body please tell me, are there any other files needed to be change like "meRepMeta.xml", other than any existing code like java objects are also needed to be changed.
    Your help in this regard is highly appreciable.
    Regards
    Murthy

    Hi Murthy,
    I try to get my head around the question:WHY?
    The reason for my question is, that this influences the answer!
    Because of several reasons it is NOT possible to handle MAM and zMAM Bos at the SAME TIME on the SAME MACHINE in the way you describe it - and it makes no sence to do so at all! But anyway......
    Lets say you have two backends, cause you have two different areas of the company. But both want to use the same MI server - but the client should be independend.
    So you need two apps. One uses the MAM BOs and the second one uses the zMAMBos.
    If this is the case, dev should be straight forward I think and you solution should work already......... so I ask myself, what is the problem you have? Do you get an error?
    - First create a new MEREPMETA-XML with just the zMAMBOs instead of the MAM BOs.
    - Change the two files you mentioned above.
    This should be all then.
    If you have a look into the implementation for MAM001Impl for example, there you find a line like:
         private static final String SYNC_BO_NAME
              = ResourceBundle.getBundle("com.sap.mbs.mam.bo.impl.syncbonamelist").getString("MAM30_040");
    This takes the name from the properties file and maps it to the real BO. So changing the name in the property file to
    MAM30_040 = zMAM30_040
    will result in MAM uses the zMAM BOs.
    Be aware: after you place the WAR file in the WEBAPPS folder and do a restart to deploy the file, you need to do a data reset to make sure the new MEREPMETA.XML is read.
    AND: two apps! one for MAM and one for zMAM BOs. One APP is not possible! Cause if you have something like that in the properties file:
    MAM30_040 = MAM30_040
    MAM30_040 = zMAM30_040
    if will only take the first reading.
    But I think this is clear to you anyway
    Regards,
    Oliver

  • Problems with properties files and war files in weblogic 5.1

              I work with WebLogic 5.1 and I'm trying to deploy a web application which gets
              a properties file. If I deploy it as an expanded directory hierarchy (with the
              properties files into WEB-INF/classes) I have no problems. While deploying it
              by a .war file I get this message: "en_GB java.util.MissingResourceException:
              Can't find resource for base name Agent, locale en " (the getBundle() method is
              trying to get an english property file). What could I do? Is it really a weblogic
              5.1 bug?
              Thanks,
              David
              

    This issue comes up repeatably. It's a real bug.
              I believe this problem was fixed in a 5.1 service pack, but I'm trying to
              find out the exact disposition of the issue. Noone seems to be complaining
              about this under 6.x, so a fix seems to have been made, the only question is
              whether or not it got back-ported to a 5.1 service pack.
              Gary
              david <[email protected]> wrote in message
              news:3ac4a39a$[email protected]..
              >
              > I work with WebLogic 5.1 and I'm trying to deploy a web application which
              gets
              > a properties file. If I deploy it as an expanded directory hierarchy (with
              the
              > properties files into WEB-INF/classes) I have no problems. While deploying
              it
              > by a .war file I get this message: "en_GB
              java.util.MissingResourceException:
              > Can't find resource for base name Agent, locale en " (the getBundle()
              method is
              > trying to get an english property file). What could I do? Is it really a
              weblogic
              > 5.1 bug?
              > Thanks,
              > David
              

  • Description of EAR and WAR files

    Does anybody know or has a link with the description of the files/directory's that are standard in EAR/WAR files.
    Example: what is the functionality of the web.xml.
    Thnx.

    http://java.sun.com/webservices/docs/ea2/tutorial/doc/WebApp3.html
    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/WCC3.html#64295
    http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/deployment.html
    http://www-3.ibm.com/software/webservers/appserv/doc/v40/ae/infocenter/was/000101.html
    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Tools8.html#63061

  • Xsl:include and WAR Files

              We are trying to deploy our application using WAR file approach. We are using
              Weblogic 6.0 SP2 All our JSP and servlets are working fine.
              We have our reports generated based on XSL files. XSL files are put into the war
              file.
              In my transformation servlet, I am loading the original xsl file by calling getResourceAsStream(xslFileName);
              During the xsl transformation if we have any includes for another xsl file, I
              am getting an exception
              java.net.MalformedURLException: no protocol: myIncluded.xsl
              Basically in my original XSL file I have the following line
              <xsl:include href="myIncluded.xsl" />
              Could somebody tell me what I should doing to get rid off this exception.
              Thanks in advance
              SK
              

    The href attribute needs a protocal to determin what kind of uri it is dealing with file,http, etc..
    try changing this
    <xsl:include href="myIncluded.xsl" />to this
    <xsl:include href="file://./myIncluded.xsl" />
    or this
    <xsl:include href="file://myIncluded.xsl" />
    I'm not sure how this plays out seeing how your using the getResourceAsStream method. I dont know if getting a resource this way will allow the xsl processor to resolve the url correctly or not. You may have to use a jar protocal or something like that to get it to work. You may even need to specify the absolute url to the include file.

  • Windows 2008 symbolic links and SAP

    Dear Gurus.
    Is it supported to use windows 2008 symbolic links for sap directories?    
    For examle disk E: is small local disk and "sap" folder is symbolic          
    link to network share ?                                                    
    Regards
    Vladimir Kogan

    Hi,
    As far as I know it is not possible in Win 2008. Check below link & see if you get any important information.
    SAP on Microsoft Windows
    Hope it helps
    Thanks
    Sushil

Maybe you are looking for