Embedded JARs and renaming variables

Hi,
I have two (quite unrelated) questions:
1. While deploying my apps, I spotted a line in server.log:
".... contains one or more embedded jars. This will significantly decrease deployment performance. It is recommended to move the embedded ja
r file(s) to top level of the EAR...."
I have no idea what embedded jars are, but I'd be real happy to know any ways of speeding up deployment (it is painfully slow). Is it possible to configure .jar generation to follow the above recommendation ?
2. Renaming variables in Business Rules:
While editing BPs / PageFlows I can rename BPEL action nodes (i.e. from DBSelectOne to FindMyData) but the associated variables in the Business Rules are not renamed (i.e. they remain DBSelectOne.Output1 etc.).
How can I rename these ?
thanks,
Tivadar

2. The trick to getting oyu business process attributes to be named the way you would like them to be named is to create empty activities on the canvas, name them the way you would like to name them and then drag the operations into them. For example drag an emoty activity box, rename it to MyJMSSend then drag the JMS.send operatin into it. The BP atribute name will be MyJMSSend rathe rthan the customary JMS.send. If it is too late for you you can switch to BPEL source mode and so a juditious sear/replace on attribute names

Similar Messages

  • Adding a jar to the classpath of an executable jar (mixing -jar and -cp)

    Hello,
    frankly I hesitated over posting this to "New to Java"; my apologies (but also, eternal gratefulness) if there is an ultra-simple answer I have overlooked...
    I integrate a black-box app (I'm not supposed to have the source) that comes packaged as an executable jar (with a Manifest.MF that specifies the main class and a bunch of dependent jars), along with a few dependent jars and a startup script. Long story short, the application code supports adding jars in the classpath, but I can't find a painless way to add a jar in its "classpath".
    The app's "vendor" (another department of my customer company) has a slow turnaround on support requests, so while waiting for their suggestion as to how exactly to integrate custom jars, I'm trying to find a solution at the pure Java level.
    The startup script features a "just run the jar" launch line:
    java -jar startup.jarI tried tweaking this line to add a custom jar in the classpath
    java -cp mycustomclasses.jar -jar startup.jarBut that didn't seem to work ( NoClassDefFound at the point where the extension class is supposed to be loaded).
    I tried various combination of order, -cp/-classpath, using the CLASSPATH environment variable,... and eventually gave up and devised a manual launch line, which obviously worked:
    java -cp startup.jar;dependency1.jar;dependency2.jar;mycustomclasses.jar fully.qualified.name.of.StartupClassI resent this approach though, which not only makes me have to know the main class of the app, but also forces me to specify all the dependencies explicitly (the whole content of the Manifest's class-path entry).
    I'm surprised there isn't another approach: really, can't I mix -jar and -cp options?
    - [url http://download.oracle.com/javase/6/docs/technotes/tools/windows/classpath.html]This document (apparently a bible on the CLASSPATH), pointed out by a repited forum member recently, does not document the -jar option.
    - the [url http://download.oracle.com/javase/tutorial/deployment/jar/run.html]Java tutorial describes how to use the -jar option, but does not mention how it could play along with -cp
    Thanks in advance, and best regards,
    J.
    Edited by: jduprez on Dec 7, 2010 11:35 PM
    Ahem, the "Java application launcher" page bundled with the JDK doc (http://download.oracle.com/javase/6/docs/technotes/tools/windows/java.html) specifies that +When you use [the -jar] option, the JAR file is the source of all user classes, and other user class path settings are ignored+
    So this behavior is deliberate indeed... my chances diminish to find a way around other than specifying the full classpath and main class...

    I would have thought that the main-class attribute of the JAR you name in the -jar option is the one that is executed.Then I still have the burden of copying that from the initial startup.jar's manifest. Slightly less annoying than copying the whole Class-path entry, but it's an impediment to integrating it as a "black-box".
    The 'cascading' behavior is implicit in the specification
    I know at least one regular in addition to me that would issue some irony about putting those terms together :o)
    Anyway, thank you for confirming the original issue, and merci beaucoup for your handy "wrapper" trick.
    I'll revisit the post markers once I've actually tried it.
    Best regards,
    Jérôme

  • How to use both ojdbc14.jar and ojdbc6.jar in same weblogic domain(weblogic12C)

    Hi all,
    I 'm having issue of using both ojdbc14.jar and ojdbc6.jar in same weblogic application and same weblogic domain in weblogic 12C environment.
    how can i do that?
    i'm currently having application developed using jdk 1.6 and ojdbc6.jar, application developed using jdk 1.4 and ojdbc14.jar.both are currently installed at same domain.
    i want to use the both ojdbc14.jar and ojdbc6.jar in same domain.
    what i previously did was renaming /usr/weblogic/wls_server10.3.4/lib/ojdbc6.jar to /usr/weblogic/wls_server10.3.4/lib/ojdbc6.jar.bak and put ojdbc14.jar in the same path when i wanna use ojdbc14.jar.
    i haven't use both in same environment before, but to go live i wanna match about requirement.pls help.
    i know the way use this by having two domains, but in the same domain i could not find a solution yet.
    Please help

    Hey
    I have the similar requirement.. Did you managed to get an option of doing it? If yes, please provide some insights
    Thanks in Advance

  • Using JMX to read ejb manifest jar and ejb-jar.xml in ejb jar inside ear

    Hello,
    I have an ear deployed on weblogic console. I need to check contents of manifest file and ejb-jar.xml of a jar that is present in the deployed ear.
    Currently I am using below code to access jar inside ear deployed :
    Hashtable env = new Hashtable(5);
    env.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    env.put(Context.PROVIDER_URL,
    url);
    env.put(Context.SECURITY_PRINCIPAL, user);
    env.put(Context.SECURITY_CREDENTIALS, password);
    Context ctx = new InitialContext(env);
    mBeanHome = (MBeanHome)ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);
    String type = "EJBComponentRuntime";
    Set beans = mBeanHome.getMBeansByType(type);
    try{
    for(Iterator it=beans.iterator();it.hasNext();)
    EJBComponentRuntimeMBean rt = (EJBComponentRuntimeMBean)it.next();
    if(rt.getParent().getName().equals("xxx")){
    System.out.println(rt.getName());
    l.add(rt.getName());
    Here xxx is the ear. Now I need to get inside the jar (represented) by variable rt and access its manifest file,ejb-jar.xml
    Does anyone have an idea how to do this?
    regards
    Sameer

    Isn't it possible to put them there manually? :)

  • Jython scripting and ODI variables

    Hi,
    I've had a look through the documentation but wans't able to find the answer to this, apologies if it's in there.
    Some ETL tools that we've used previously have their own scripting language embedded within the tool. This allows us to populate, refresh and evaluate variables within scripts. The values of the variables can then be used with queries as mapping or restrictions in the where clause.
    The question I've got is - can ODI variables be used within Jython scripts in a similar way? Can they be passed in, values assigned, returned and used within the project? If not, can this only be achieved through the SQL query that is part of the variable definition.
    Hope this question makes sense, it's really a comparison with the scripting language and variables that we use in another tool.
    Thanks

    Hello,
    I see what you are trying to achieve, and I believe you got it all right.
    Variables can be retrieved using the #VARIABLE_NAME expression in Jython scripts, mappings, filters, or anywhere else.
    They can be set only
    - Through a set variable step to a constant value.
    - In a refresh variable step to the (mono-field, mono-record) result of a SELECT statement.
    You cannot do in some Jython code something like: #VARIABLE_NAME = myJythonVariable
    You'd need to insert the values of your variables in a temporary table (in the Jython script), then refresh the variable from the content of this temporary table.
    Regards,
    -FX

  • Ssis - move files from one directory to another and rename destination file if present

    Hello,
    How is it possible to move files from one directory to another directory and if the file already exists in destination directory then rename it?
    Thanks

    1. Use a foreach loop with file enumerator pointing to first directory.
    Inside loop have a ssis variable of type string to get filename (@[User::FileName])
    Choose option as Fully Qualified in loop
    2. Add another variable called @[User::DestFileName], set EvaluateAsExpression true for it and set expression like this
    REPLACE(@[User::FileName],<source directory path>,<destination directory path>)
    put actual paths in above expression in your case
    and another variable called @[User::RenameFileName], set EvaluateAsExpression true for it and set expression like this
    REPLACE(@[User::FileName],".","_old.")
    3. Create a boolean variable say @[User::FileEXists]
    4. Add a Script Task inside the loop and pass @DestFileName variable in ReadOnly mode and FileExists in ReadWrite mode
    Inside Script Task write code as per below
    http://blog.dbandbi.com/2013/11/13/check-file-exists-ssis/
    5. Add File System Task choose operation as Rename File, Select IsSourcePathVariable as true and select @[user::DestFileName] variable and IsDestinationPath variable as true and select @[user::RenameFileName] variable
    6. Choose ExpressionAndConstraint option for precedeence constraint from ScriptTask to above File System Task and choose constraint as OnSuccess and expression as
    @FileExists == True
    7. Add another File System task with operation as Move File Select IsSourcePathVariable as true and select @[user::FileName] variable and IsDestinationPath variable as true and select @[user::DestFileName] variable. Join Script Task as well as
    File System Task above to this task and choose constraint as OnSuccess and Multiple Constraint option as Or (dotted line)
    Then once executed it will work as per your requirement
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • LDAP Console: why are ds52.jar and ds522.jar needed?

    I updated Sun DS from 5.2 to 5.2 patchlevel 2, the server on Solaris and the LDAP Console on Windows a while ago.
    If I start the LDAP Console all is well.
    If I open the "Server Group" tree node, it wants to download admserv52.jar and ds52.jar
    which fails.
    There are admserv522.jar and ds522.jar (and others with 522 in their file name in the java/jars directory.
    If I copy admserv52.jar and ds52.jar by hand the LDAP Console is able to open the nodes under Server Group,
    but I guess they use the 5.2 and not the 5.22 Versions.
    As an experiment I removed all 5.2 Versions and renamed the 5.22 Versions to 5.2. Result: The LDAP Console does work and it only needs the 5.22 jars.
    Info on Main Console says Server Console 5.2
    Build 2004.007.1414
    Info an Directory Server Windows says Server 5.2
    Build 2003.143.0020(I use the german localized versions but I guess the problem is not relate to that fact)
    Question: How do I configure my setup to use only the new 5.22 Versions in the Console?
    Where did my update go wrong? Or do I really need the 5.2 and 5.22 Versions in /java/Jars?
    Thanks,
    Frerk Meyer

    By try and error I found out that even when I upgraded my
    Sun ONE Directory Server 5.2 to patch level 2, the configuration
    in the administration directory was not changed to the new
    version. So one couldn't connect with the new console
    version 5.2pl2 but used and needed the old one effectively.
    To use the 5.2 pl 2 console there need to be the following
    files in the client directory:
    <root of sun ldap console>/java/jars/
    ds522.jar (main console application)
    ds522_en.jar (english language resources)
    ds522_de.jar (german language resources, in my case, optional)
    ds522.icon (icon used in the console)
    and for the administration console:
    admserv522.jar
    admserv522_en.jar
    admserv522_de.jar
    admserv522.icon
    The old file with the '52' in their name may stay where they
    are to connect to unpatched 5.2 Servers and 5.2pl2 Servers
    without updated configuration.
    The configuration is under:
    cn=ResourceEditorExtension, ou=4.0, ou=Admin, ou=Global Preferences, ou=zentrale.edekanet.de, o=NetscapeRoot
    Search for the attribute 'nsclassname' in all subentries where there
    is a substring '@ds52.jar' and change it to '@ds522.jar'.
    With newer versions of the Sun Directory Server there are
    even jar files with names like 'ds523.jar'. Proceed like above.
    After the next start of the console you are using the new 5.2pl2
    Versions with all bugfixes and enhancements. To verify you may
    move the '52' files away, start and connect. If the directory server
    is configured the right way it won't try to download the '52' files
    to your local computer.
    Frerk

  • Embedded jar files decrease performance

    Hi.
    When deploying a project using the SAP BAPI eWay we get this warning:
    [#|2008-07-24T17:07:59.687+0200|WARNING|IS5.1.3|javax.enterprise.system.tools.deployment|_ThreadID=18; ThreadName=http35000-Processor1;|Component svc_BAPItest_ISH_out.jar contains one or more embedded jars. This will significantly decrease deployment performance. It is recommended to move the embedded jar file(s) to top level of the EAR.|#]
    Why? As in other projects we imported some jar-files (e.g. log4j) to the jcd(s). However, for the other projects we never got this warning.
    Does the running performence decreases as well? How do we move the files to top level of the EAR?
    Best Regards,
    Heiner.
    (Using JCAPS 5.1.3 ESR Rollup U2, Design: WinXP, Runtime: Solaris)

    Is there any web appliction server or j2ee server that has their own classloader to dynamically extract and hunt down things within a .ear or .war file without unarchiving it to disk? It appears that everyone I have ever seen creates a temporary file on disk.
    A fellow colleague of mine indicated that with today's computer speeds, it is actually faster in most cases to read/decompress on the fly in memory than it is to decompress to disk, then read from disk. The reason being that one of the biggest bottlenecks is IO. Reading an uncompressed file from disk may be slower than reading a compressed file from disk. The IO is slow, but the speed of a largely compressed file to uncompress is faster than reading the entire thing from the HD. This may not always be the case. Considering OS caching of recent file use from the HD, etc.

  • Loading External SWF and setting variables

    Hello Everyone.
    I'm sure you are all a where of the FlashVars attribute for
    Flash embeds which holds variables for SWF's when they are
    rendered. I'm attempting to load an External SWF dynamically
    from within my own SWF and need to provide it with the values
    normally stored in the FlashVars. For the example below I
    wait until the External SWF is completely loaded using the
    onLoadInit event from moviecliploader and then i attempt to
    set the required variables that the loaded SWF needs. This works
    great in test and debug mode (ie. Test Movie and Debug Movie
    from the Control menu), but when i publish my FLA to SWF and run
    the SWF the variables will NOT get set in the loaded External SWF.
    From my readings ive people have mentioned that the player is only
    able to access Methods of an External SWF. If this is the case then
    how do they expect people to set the FlashVars of dynamically
    loaded SWFs? I investigated the loadVariables procedure as well and
    had the same results in test mode and was wasn't reliable because
    of timing issues.
    The sample source is below... if anyone has any ideas or has
    come across this issue before, I would really appreciate some
    insight.
    Thank you in advance for your time.
    var loader_mc:MovieClipLoader = new MovieClipLoader();
    var mclListener:Object = new Object();
    loader_mc.addListener(mclListener);
    mclListener.onLoadProgress = function(target_mc:MovieClip,
    numBytesLoaded:Number, numBytesTotal:Number) {
    // DO NOTHING
    mclListener.onLoadComplete = function(target_mc:MovieClip) {
    // DO NOTHING
    mclListener.onLoadInit = function(target_mc:MovieClip) {
    // WORKS IN TEST MODE NOT IN PUBLISH/SWF MODE
    target_mc._root.param1 = "value1";
    // WORKS IN TEST MODE NOT IN PUBLISH/SWF MODE
    _level0.container_mc.param1 = "value1";
    this.createEmptyMovieClip("container_mc",
    this.getNextHighestDepth());
    container_mc._lockroot = true;
    loader_mc.loadClip("somecoolflash.swf", container_mc);

    I've tried that as well and it behaves the same as onLoadInit
    ... Works when i test but doesnt when i publish to a swf. I think
    this is security related and the flash player just cant write to a
    loaded swf and set variables.

  • Admin_client.jar and -bindAllWebApps

    Hello,
    The documentation says that -bindAllWebApps is an option parameter to admin_client.jar. I have app that deploys correctly with or without -bindAllWebApps however it always give me error if I don't add -bindAllWebApps Is this correct functionality? It sure is confusing.
    M

    Greetings,
    We have experienced this same behavior. Note that when our application is deployed using -deploy or -rededploy, we found that -bindAllWebApps was necessary.
    reference;
    http://download-uk.oracle.com/docs/cd/B25221_04/web.1013/b14432/adminclient.htm#BABDBJAFYour application probably deploys a second time OK without the -bindAllWebApps because it was not undeployed. We found the results using -deploy and -redploy variable (ant, automated deployment) and therefore switched to a simple FTP of the war file followed by a restart of oc4j. Note that this strategy was only tested after an initial deployment of the ear file from the JDeveloper IDE.
    -Michael

  • Java works, but jar and javac don't

    java at the command line works, but jar and javac don't
    could it be the CLASSPATH
    I'm running Windows if that helps. If you need more info ask away
    Thanks
    CINC

    Definitely sounds like the classpath problem. From the sounds of the error message, you are using win95/98/ME, and so the best way to get around this is to set the classpath in your autoexec.bat file. I think the problem is because you have to set 2 variables in your path, one for the running of the java (JRE) and one for the tools to process the uncompiled files (SDK);
    rightclick on your autoexec.bat and select Edit
    here is my path, change yours accordingly so the paths lead to your windows, command and bin directories accordingly.
    PATH=D:\WINDOWS;D:\WINDOWS\COMMAND;D:\PROGRAM FILES\JAVASOFT\J2SDK1.4\BIN
    SET CLASSPATH=.;D:\PROGRAM FILES\JAVASOFT\J2SDK1.4\BIN\TOOLS.JAR
    Theres a section on setting classpath in This site at :
    java.sun.com/j2se/1.3/docs/tooldocs/win32/classpath.html
    and if that doesn't work, then i recommend you download and IDE which sorts ou most of these problems for you, and makes programming much easier also :)
    anything from:
    Suns Forte
    Jcreator
    Jbuilder
    to a real heavyweight which i use and find indispensible called Visual Age for Java, which is so powerful, but not for the faint hearted or weak-computered. :P
    Good Luck
    Benji

  • Question about classes15.jar vs ttjdbc5.jar and support for Java 1.6

    The docs note the use of ttjdbc5.jar vs ttjdbc14.jar depending on Java version. In the tt70_32 distribution (lib dir) I also see jars named classes14.jar, classes15.jar, and classes16.jar. They look to have the same content as ttjdbc5.jar. Can someone clarify when to use these jars?
    Also, are there any known issues on Java 6?
    Thanks

    The classes+nn+.jar files are just the old names we used to use and we still ship the files under these names for backwards compatiility. The new names are ttjdbc14.jar (JDK 1.4), ttjdbc5.jar (JDK 1.5 or Java 5) and ttjdbc6.jar (JDK 1.6 or Java 6). However, due to a packaging error in some of the earlier 7.0 release we omitted to ship ttjdbc6.jar. But you can just copy/rename classes16.jar to ttjdbc6.jar.
    I'd recommend using the ttjdbc files as this is the 'new' naming convention. I am not aware of any issues with Java 6. I have used it extensivley with TimesTen and not seen any problems.. It is faster than Java 5 in many instances.
    Chris

  • Applescript to extract subtitles, move and rename

    Hi guys. I'm trying to execute a script I've found on the web and adpated it a little bit.
    What I want to do is to extract .zip files from a folder, move the .srt files to the series/movies folder, and rename the .srt and .avi files to the same name.
    So far I was able to write the extraction and moving but after I changed some variables I got stuck with this script.
    Can someone help me?
    Below are the original e adapted scripts.
    ORIGINAL:
    property extensionList : {"mp4", "flv"}
    tell application "Finder"
        set the sourceFolder to choose folder with prompt "Select Input Folder"
        set the outputFolder to choose folder with prompt "Select Output Folder"
        set inputFiles to every file of the sourceFolder whose name extension is "rar"
        repeat with i from 1 to the count of inputFiles
            set theArchive to POSIX path of ((item i of inputFiles) as string)
            tell application "RAR Expander"
                expand theArchive to POSIX path of outputFolder
            end tell
        end repeat
        set extractedFiles to every file of the outputFolder
        repeat with i from 1 to the count of extractedFiles
            if (the name extension of the (item i of extractedFiles) is not in the extensionList) then
                do shell script "rm -rf " & quoted form of (POSIX path of ((item i of extractedFiles) as string))
            end if
        end repeat
    end tell
    ADAPTED:
    property extensionList : {"srt"}
    tell application "Finder"
              set the sourceFolder to (path to "/Users/*****/Downloads/Subtitles/")
              set the outputFolder to (path to "/Users/*****/Downloads/Series/")
              set inputFiles to every file of the sourceFolder whose name extension is "zip"
              repeat with i from 1 to the count of inputFiles
                        set theArchive to POSIX path of ((item i of inputFiles) as string)
                        tell application "The Unarchiver"
      unarchive theArchive to POSIX path of outputFolder
                                  tell application "The Unarchiver" to close
                        end tell
              end repeat
              set extractedFiles to every file of the outputFolder
              repeat with i from 1 to the count of extractedFiles
                        if (the name extension of the (item i of extractedFiles) is not in the extensionList) then
                                  do shell script "rm -rf " & quoted form of (POSIX path of ((item i of extractedFiles) as string))
                        end if
              end repeat
    end tell
    It's compiling but when I try to run it I get the error: It's not possible to transform "Users/*****/Downloads/Subtitles/" into constant.
    Thanks and sorry for my bad english.

    Ah, I didn't look farther on in the script.
    Generally it's bad practice to nest application tell blocks.  It usually works, but it's unpredictable and can produce some confusing errors.  Also, it's generally better to use System Events.app rather than the Finder (except for a couple of things the Finder does better).  SE is more efficient and less picky about file references.  so I've twiddled your script a bit:
    set dl to path to downloads folder from user domain
    tell application "System Events"
              set the sourceFolder to folder "Subtitles" of dl
              set the outputFolder to POSIX path of folder "Series" of dl
              set inputFiles to POSIX path of every file of the sourceFolder whose name extension is "zip"
    end tell
    repeat with thisArchive in inputFiles
              tell application "The Unarchiver"
                        unarchive thisArchive to outputFolder
                        close
              end tell
    end repeat

  • Classloader that can use embedded .jar files?

    Hey all,
    Has anyone had a need like myself to be able to jar up everything including embedded .jar files, and have the code in the "outter" .jar file use code from any of the inner embedded .jar files without the need to unjar the outter jar to disk? It seems this is not possible. Even if I put the embeded .jar files in the manifest.mf file in the Class-Path section, it does NOT find classes in the embedded .jar files. Instead, it only finds them if I unjar the outter .jar file to disk!
    I would love to know if there is a custom classloader written that will find and use classes from embedded .jar files without the need to unjar them.
    Thanks.

    Is there any web appliction server or j2ee server that has their own classloader to dynamically extract and hunt down things within a .ear or .war file without unarchiving it to disk? It appears that everyone I have ever seen creates a temporary file on disk.
    A fellow colleague of mine indicated that with today's computer speeds, it is actually faster in most cases to read/decompress on the fly in memory than it is to decompress to disk, then read from disk. The reason being that one of the biggest bottlenecks is IO. Reading an uncompressed file from disk may be slower than reading a compressed file from disk. The IO is slow, but the speed of a largely compressed file to uncompress is faster than reading the entire thing from the HD. This may not always be the case. Considering OS caching of recent file use from the HD, etc.

  • What is the diffrence b/w jar and ear?

    what is the diffrence b/w jar and ear?

    Refer this
    http://forum.java.sun.com/thread.jspa?threadID=779900&tstart=0
    Regards
    lekshmi

Maybe you are looking for

  • [SOLVED] Strange issue with dhcpcd

    Alright, so today when I booted up, I tried to connect to my campus' wireless network using Wicd, but it timed out every time it attempted to obtain an IP. So I ran through my usual steps to get wireless up in the console (ifconfig -> iwconfig -> dhc

  • [ADF-11.1.2] Using Pageflow scope MB in pages is throwing TargetUnreachable

    Hi, I have a BTF with one MB "TempBeanVar" Configured as pageFlow scope. I then configured created one page (.jsff) which is called in above BTF. On that page: I have created a button with actionListener = <af:commandToolbarButton text="View" id="ctb

  • Error at lowest level

    I am trying to use Berkeley DB XML on a Windows Vista Home Premium 32bit, but keep failing in the most simple scenarios: (I use ver 2.4.13) 1) Just after install (from .msi file) when I start the shell from the command prompt I just get: dbxml: error

  • G5 shuts down unexpectedly

    My G5 will suddenly turn off like the power was cut off at random times. It has become more frequent over the past week. I have it plugged into an APC battery backup that seems to be functioning so its doesn't seem to be my power source. Has anyone o

  • [Axtive X in a panel] "control could not be loaded"

    Hi I do an experiment in robot control. The setup is shown in the attached file. The problem occurs at the client site, the panel is loaded through the web page except the two ActiveX objects."control could not be loaded" was appeared rather than the