System classpath deployment ideas?

Our product consists of an API and 4 management web applications. We want to restrict
the API provider classes to one instance per vm. Thanks to the classloading improvements
in wls 8.1, we can package the provider code in APP-INF/lib and share one instance
between all 4 of our web applications.
However, ideally we want the provider code shared as a singleton, available to
all EAR files on the server (which may contain code written to the API). The
only way we can figure out how to accomplish this is to put the provider by hand
in the system classpath for each deployment.
Our customers want a clean deployment solution across multiple managed servers.
Does BEA offer a loader between the system loader and all the ear loaders? Would
any developers have ideas on how we could automate deployment into the system
classpath?

Status of deployment is slightly different from "every class within your EAR
is reachable". Deployment status is "did this deployment action finish", at
which point classloaders are inited and some class resolution has taken
place i.e. can the j2ee container load the EJB that is specified in the
descriptor, but not all classes have been loaded. With java's lazy class
load initialiation classes are loaded at request time.
So now to your real problem. Why do you put these interfaces in the system
classpath? (My guess is you want to share them across multiple archives?).
Currently J2EE doesn't have a way to share a single library between multiple
archives. We are looking at solutions to this for our next release. But
until then, you will have to put these interfaces inot a myEBJInterfaces.jar
and put it in each EAR at EAR/APP-INF/lib.
Cheers
mbg
"Brian" <[email protected]> wrote in message
news:3eca93e0$[email protected]..
>
I'm using wls 8.1. I have an EAR in which several EJB interfaces areloaded from
the system classpath. After redeployment, these EJB's are not available.
java.rmi.NoSuchObjectException: Bean is already undeployed
I would have expected not to be able to affect any change in such EJBs viaredeployment,
but that redeployment would be successful. The console shows thatredeployment
for these EJBs is successful (i.e., status: active). So, do these classeshave
to be off the classpath for redeployment to work properly? Why doesn'tthe console
report their status correctly? Thanks...
..Brian

Similar Messages

  • Getting interface definition for WLI EJB without putting .jar in system CLASSPATH?

    I'm having a problem deciding what actions to take with this issue.
    I have a startup class which needs a Worklist EJB interface from WLI
    2.1. How can I get this interface definition without putting the
    wlpi-ejb.jar in the system classpath? Any ideas? :)
    Any help would be appreciated...
    Thanks,
    Jon Aharrah
    [email protected]

    I'm having a problem deciding what actions to take with this issue.
    I have a startup class which needs a Worklist EJB interface from WLI
    2.1. How can I get this interface definition without putting the
    wlpi-ejb.jar in the system classpath? Any ideas? :)
    Any help would be appreciated...
    Thanks,
    Jon Aharrah
    [email protected]

  • Class loaded from  system classpath

    When I kick off my WebLogic Server 8.1 SP2 startWebLogic.sh I get the following:
    <Warning> <EJB-010001> <While deploying EJB 'blah, blah, blah', class yadda.yadda.yadda was loaded from the system classpath. As a result, this class cannot be reloaded while the server is running. To prevent this behavior in the future, make sure the class is not located in the server classpath.>
    How do I do this? I need to be able to make changes to code, compile it and "drop" it into my application directory without having to stop and restart my server.
    I would appreciate any assistance.
    Thank you.
    Steve

    Hi Steve,
    When you start weblogic server it has the EJB home, remote or bean class in its classpath. So when you deploy the bean it loads the classes from the system classpath.
    To avoid this error, make sure that your server classpath does not contain any of the bean classes.
    vasanthi ramesh

  • Help needed regarding change of system CLASSPATH

    Hi All,
    I need to change the system CLASSPATH using my java programe. I tried the following code but its not working though it returns the correct CLASSPATH, but unable to do the modification. All I need is to append a new jar file in the existing CLASSPATH..
    code]
    try{
              sysMap = System.getenv();
              }catch(Exception se1){
                        System.out.println("Exception in finding Environment properties");
              Set Keys = sysMap.keySet();
              Iterator It = Keys.iterator();
              while(It.hasNext()){
                   String strNow =(String) It.next();
                   if(strNow.contains("CLASSPATH")){
                        System.setProperty("CLASSPATH", ".;C:\\Calypso\\Software\\\\Release\\jars\\calypso.jar;C:\\Calypso\\Software\\Release\\build;C:\\Calypso\\Software\\Release\\build\\calypsofx;C:\\Calypso\\Software\\Release\\resources;C:\\Calypso\\Software\\Release;C:\\Calypso\\Software\\Release\\jars\\jconn2.jar;C:\\Calypso\\Software\\Release\\jars\\jaxb-1.0.4\\;C:\\Calypso\\Software\\Release\\jars\\javacup.jar;C:\\Calypso\\Software\\Release\\jars\\antlr.jar;C:\\Calypso\\Software\\Release\\jars\\ojdbc14.zip;C:\\Calypso\\Software\\Release\\jars\\web\\servlet.jar;C:\\Calypso\\Software\\Release\\jars\\web\\webserver.jar;C:\\Calypso\\Software\\Release\\jars\\ftp.jar;C:\\Calypso\\Software\\Release\\jars\\itext-1.02b.jar;C:\\Calypso\\Software\\Release\\jars\\Jama-1.0.1.jar;C:\\jdk1.5.0_10\\bin;C:\\Calypso\\Software\\Release\\webfx\\calypsoWebFXServer.jar;C:\\XXX.jar");
                        System.out.println("Classpath changed");
    Any help will be appreciated.

    Hi Kaj ,
    Well I am in a situation where we need to extend a
    existing system and we are providing the client with
    a new jar file for every modification. Now all I need
    is that our programe automatically add (infect
    append) the jar file in the existing system
    CLASSPATH, so that the client need not to add(append)
    the new jar files all the time.
    Can you provide any help??As others have said, use -cp as argument when you start your application. It's quite common that people write a script that adds all jars in a certain directory to the argument to -cp.
    Kaj

  • How do I add the system classpath to Jar Manifest Class-Path

    My application is implemented on win2000 and need to be moved to unix as a executable jar file, the oracle jdbc classes (classes12.zip and classes111.zip) were included in MANIFEST.MF as the following:
    Class-Path: /Oracle/Ora81/jdbc/lib/classes12.zip /Oracle/Ora81/jdbc/lib/classese111.zip
    When I move the jar file to unix, the classpath will be changed, is there a way to make the jar file read the class-path from system CLASSPATH?
    Thank you.
    Y.

    I have the same problem for weeks now, and I can't seem to get it solved. If you found anything please inform me.
    thanks in advance
    Eran

  • Setting system level deployment.user.cachedir in deployment.config

    G'day,
    I've been experimenting with JRE 1.5.0_04 on Windows XP.
    By default deployment.user.cachedir is set to <user home>\Application Data\Sun\Java\Deployment\cache. However, I want it to be <user home>\Local Settings\Application Data\Sun\Java\Deployment\cache.
    I have managed this as follows.
    C:\Windows\Sun\Java\Deployment\deployment.config contains:
    deployment.system.config=file\:C\:/WINDOWS/Sun/Java/Deployment/deployment.propertiesand C:\Windows\Sun\Java\Deployment\deployment.properties contains:
    deployment.user.cachedir=$USER_HOME\\..\\..\\..\\..\\Local Settings\\Application Data\\Sun\\Java\\Deployment\\cacheThis works but is ugly. The problem is that $USER_HOME=<user home>\Application Data\Sun\Java\Deployment. It seems that $USER_HOME and $JRE_HOME are the only two variables for use in deployment properties. Are there any others, in particular, one that mirrors the user's actual home directory?
    Thanks,
    Chris.

    G'day,
    Open the Java Console and execute "dump system and
    deployment properties" which shows property values,
    and see if what you want is there.Thanks, but I don't think I can use these at the system level, can I?
    I did try using ${user.home} but that doesn't work.
    So, are there any variables other than $USER_HOME and $JRE_HOME that can be used when setting system level properties?
    More info, http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/properties.html
    Thanks,
    Chris.

  • I purchased a film but it won't play because iTunes says I need to authorize the computer, but when I do that it says the computer is already authorized. Huh - some system. Any ideas?

    I purchased a film but it won't play because iTunes says I need to authorize the computer, but when I do that it says the computer is already authorized. Huh - some system. Any ideas?
    Using Windows 7

    Hey Louni,
    Thanks for the question. I understand you are having issues with Authorizing your computer to play content. The following articles may help to resolve this issue:
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    http://support.apple.com/kb/TS1389
    iTunes: Missing folder or incorrect permissions may prevent authorization
    http://support.apple.com/kb/TS1277
    Thanks,
    Matt M.

  • (Help) system classpath  -Vs-  the place where weblogic looks for classes

    The following is my app's hierarchy.
    myapp
    |
    |__myjsp.jsp
    |
    |__WEB-INF
    |
    |__classes
    |_ MyClass.class
    I am not able to use MyClass within myjsp.jsp
    i.e. a scriplet like that shown below gives an error stating that MyClass isnt found
    <% MyClass obj; %>
    I've tried setting the system classpath, but to no avail.
    Is there a difference between the system classpath and the place where weblogic looks for classes?
    (I am running my app by creating a myapp.war file and placing it in autodeploy folder)

    Try moving your class to a named package and use the appropriate import statement in your JSP. Loading it from WEB-INF/classes/packagename should be fine so you might want to remove the other classpath mods you made to eliminate that uncertainty.
    Here's a snippet from http://publib.boulder.ibm.com/infocenter/dmndhelp/v6rxmx/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/rweb_jsp_migration.html:
    "As of JSP 2.0, referring to any classes from the unnamed or default package is not allowed. This can result in a translation error on some containers, specifically those that run in a JDK 1.4 or greater environment which will also break compatibility with some older JSP applications. However, as of JDK 1.4, importing classes from the unnamed package is not valid. See Java 2 Platform, Standard Edition Version 1.4.2 Compatibility with Previous Releases for details. Therefore, for forwards compatibility, applications must not rely on the unnamed package. This restriction also applies for all other cases where classes are referenced, such as when specifying the class name for a tag in a Tag Library Descriptor (TLD) file."
    HTH,
    Mike
    Weblogic/J2EE Security Blog: http://monduke.com

  • Can anyone tell me how to do a system level deployment using JNLP ?

    Hi All,
    Can anyone tell me how to do a system level deployment using JNLP ?
    Any example or link will be very useful.
    Thanks in advance..

    Thanks for the link. I can now able do configure on system level.
    Uniform for all users.
    However, I have three different environment running ( e.g : production, uat and dev )
    And I want to deploy all of them on system or enterprise configuration.
    I create the file "deployment.config" on jre/lib directory and put the entry as below :
    deployment.system.config=file:/E:/Deployment/XXXX/production/deployment.properties
    deployment.system.config.mandatory=trueNow, when I run other environment it will look on the production deployment. I have different
    version of jars for production , uat and dev.
    How can I archive that ? I want different universal "cache" of jars for all the three different environment.
    e.g ( production - in one loaction for all the users , C:\Documents and Settings\All Users\Application Data\prod\cache
    uat - in one loaction for all the users , C:\Documents and Settings\All Users\Application Data\uat\cache
    dev - in one loaction for all the users, C:\Documents and Settings\All Users\Application Data\dev\cache )
    Is that possible ??
    Thanks in advance,

  • System Level deployment.properties on https Server

    We want to use the system level deployment.properties (
    http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/properties.html#location )
    which is placed on our https server.
    For Java Webstart applications this works perfect.
    But applets wont start.
    Applet console output when deployment.properties is placed on https server:
    Java Plug-in 1.5.0_06
    Using JRE version 1.5.0_06 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\xxxFinalizer, called close()
    Finalizer, called closeInternal(true)
    network: Loading user-defined proxy configuration ...
    network: Done.
    network: Loading proxy configuration from Internet Explorer ...
    network:     Auto config URL: http://proxy.xxx.com/pac/proxy.pac
    network: Done.
    network: Loading auto proxy configuration ...
    network: Downloading auto proxy file from http://proxy.xxx.com/pac/proxy.pac
    network: Done.
    network: Proxy Configuration: Automatic Proxy Configuration
         URL: http://proxy.xxx.com/pac/proxy.pac
    basic: Registered modality listener
    liveconnect: Invoking JS method: document
    liveconnect: Invoking JS method: URL
    basic: Referencing classloader: sun.plugin.ClassLoaderInfo@1efb836, refcount=1
    Exception in thread "Thread-2" java.lang.ClassCastException: sun.net.ProgressMonitor
         at sun.plugin.util.GrayBoxPainter.beginPainting(Unknown Source)
         at sun.plugin.AppletViewer.initApplet(Unknown Source)
         at sun.plugin.AppletViewer.appletInit(Unknown Source)
         at sun.plugin.viewer.LifeCycleManager.initAppletPanel(Unknown Source)
         at sun.plugin.viewer.IExplorerPluginObject$Initer.run(Unknown Source)
    Applet console output when deployment.properties is placed on http server:
    Java Plug-in 1.5.0_06
    Using JRE version 1.5.0_06 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\xxx
    network: Loading user-defined proxy configuration ...
    network: Done.
    network: Loading proxy configuration from Internet Explorer ...
    network:     Auto config URL: http://proxy.xxx.com/pac/proxy.pac
    network: Done.
    network: Loading auto proxy configuration ...
    network: Downloading auto proxy file from http://proxy.xxx.com/pac/proxy.pac
    network: Done.
    network: Proxy Configuration: Automatic Proxy Configuration
         URL: http://proxy.xxx.com/pac/proxy.pac
    basic: Cache is enabled
    basic: Location: C:\Documents and Settings\xxx\Application Data\Sun\Java\Deployment\cache\javapi\v1.0
    basic: Maximum size: unlimited
    basic: Compression level: 0
    c:   clear console window
    f:   finalize objects on finalization queue
    g:   garbage collect
    h:   display this help message
    l:   dump classloader list
    m:   print memory usage
    o:   trigger logging
    p:   reload proxy configuration
    q:   hide console
    r:   reload policy configuration
    s:   dump system and deployment properties
    t:   dump thread list
    v:   dump thread stack
    x:   clear classloader cache
    0-5: set trace level to <n>
    basic: Registered modality listener
    liveconnect: Invoking JS method: document
    liveconnect: Invoking JS method: URL
    trustStore is: C:\PROGRA~1\Java\JRE15~1.0_0\lib\security\jssecacerts
    trustStore type is : jks
    trustStore provider is :
    init truststore
    adding as trusted cert:
    X509KeyManager passed to SSLContext.init():  need an X509ExtendedKeyManager for SSLEngine use
    trigger seeding of SecureRandom
    done seeding SecureRandom
    basic: Referencing classloader: sun.plugin.ClassLoaderInfo@fc9944, refcount=1
    basic: Added progress listener: sun.plugin.util.GrayBoxPainter@1256ea2
    basic: Loading applet ...
    basic: Initializing applet ...
    basic: Starting applet ...
    # and so on ...I guess that the trusted jssecerts is not regarded until the system level deployment.properties has been downloaded.
    Whereas the deployment.properties can not be downloaded from my https server when the trusted certs are not known at this time.
    Or any other presumptions?
    Maybe it helped you ;-)

    I did something very similar. I am using jre 1.5.0_01.
    And it seems to work!
    The deployment.config is:
    deployment.system.config=file:/c:/jws/deployment.properties
    deployment.system.config.mandatory=true
    and the deployment.properties is (at the location above):
    deployment.system.cachedir=cache
    To load the cache I start javaws as follows:
    javaws -import -system -codebase file:/c:/cd file:/c:/cd/notepad.jnlp
    This results in creating the cache in
    file:/c:/jws//cache
    To start the app I did:
    javaws -system http://java.sun.com/products/javawebstart/apps/notepad.jnlp
    The -system seems to be neccessary but I am not quite sure. If it is omitted
    the app also starts, but javaws stores just the jnlp in the default user cache!

  • Set system classpath using java program??

    Hi,
    I want to set the System classpath using java program. Can somebody please tell how to do this.
    Prashant

    but this will set the classpath for that particular JVM only.
    Isn't it??? I want that of SYSTEM so that user can access that class path from any JVM instance.
    Prashant

  • Just purchased and downloaded pe 13. While installing, I found out pe13 is not compatible with my OSX 7.5 system. Any Idea's on how to swap for pe 12? It's not available on the Adobe web site. Any suggestions would be appreciated. Thanks

    Just purchased and downloaded pe 13. While installing, I found out pe13 is not compatible with my OSX 7.5 system. Any Idea's on how to swap for pe 12? It's not available on the Adobe web site. Any suggestions would be appreciated. Thanks

    daleroach
    Adobe is not going to swap 13 for 12. It is selling only 13 download as you found out. So, you are going to have to purchase 12 if you want to use that program. It may still be available at some retail locations, such as Amazon.
    If you are within 30 days of purchase and have purchase the download from Adobe, then contact Adobe via its Adobe Chat to get a refund. To do that, click on the following link
    http://helpx.adobe.com/sea/contact.html?step=PRE_membership-account-payment_payments-invoi ces-orders_stillNeedHelp
    Premiere Elements
    Membership, Account, Payment
    Payments, Invoices, Orders
    Chat Panel
    If the link does not hold its set, then you will need to navigate to Chat Panel using the above titles as guides.
    Please let us know if you are OK with the above. If any questions or need clarification, please do not hesitate to ask. Reminder..we are not Adobe. This is a user to user
    forum with an undefined frequency of an Adobe presence in it.
    Best wishes
    ATR

  • I use Time Machine with an external hard disc which has worked perfectly for some years.  Recently Time Machine has aborted backups if the screen saver starts when back-up is in progress. I use a Maxtor OneTouch4 back-up system.  Any ideas?

    I use Time Machine with an external hard disc which has worked perfectly for some years.  Recently Time Machine has aborted backups if the screen saver starts when back-up is in progress. I use a Maxtor OneTouch4 back-up system.  Any ideas?
    Has Apple recently up-dated my OS (Lion) such that every time the screen saver starts it disables Time Machine.  I have to switch-off the computer and re-start in order to undertake  a back-up.  I have now switched of all screen savers.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of this exercise is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login. Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem(s)?
    After testing, reboot as usual (i.e., not in safe mode.)

  • Query regarding algorithm resource estimation at system generator (VIVADO IDE- 2014.3.1)

    Hi Guyz,
    I am able to estimate the resource required for a design only after the synthesis is done in the Vivado.
    The question is: 
    Is it possible to estimate the resource in system generator (Vivado IDE 2014.3.1) itself ?
    Couldn't find the RESOURCE ESTIMATOR block in  the system generator [xilinx blockset/tools] as in its precursor, i.e. System generator (ISE).
    When i went through the documents, came to know that resource estimator block has not yet been introduced in System generator - Vivado IDE [Please correct me, if i am wrong]
    Is there any way [other than checking utilization report after synthesis], which will allow me to estimate the resource as soon as the algorithm is ready - as a system generator model ?
    PLEASE GUIDE.
    THANKS in advance.
    Thanks & Regards,
    Ananya

    Hi Satish,
    Thanks for the quick reply.
    My doubt:
    Can I find the resource estimation for the algorithm model using ISE and then approximate the resource at Vivado ?  [Not sure if this makes sense, just wanted to know if this approach works]
    Please suggest.
    Thanks & Regards,
    Ananya

  • Modify vm system-classpath befor launch JWS

    We are deloy a Swing Thick-Client with WebStart. The problem is that we are using 3rd party jars who have to be set to the system classpath. The modification of the classpath in our jnpl-file with <property name="java.class.path" value="foo:\3rdpartyjars.jar"/> is no the solution. The application lauch only if the vm was started with a classpath. java -classpath foo:\3rdpartyjars.jar MainClass.
    The second problem is that the 3rd party jars are signed with a own certificate. How can we use this jars with our signed jars in webstart?
    To add our certificate to the 3rd party jars is no solution.
    Thanks for help

    I just ran into this problem with WebLogic's SP12 jar for 5.10. I found a note hidden away on the developer FAQ. Basically, you just specify the jar as an extension in an additional .jnlp file. I have a main jnlp and an additional one called weblogic.jnlp:
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.0+" codebase="http://caldtes05818:8001/" href="weblogic.jnlp">
    <information>
         <title>WebLogic Helper</title>
    <vendor>BEA</vendor>
    </information>
    <resources>
    <jar href="lib/weblogic510sp12.jar"/>
    </resources>
    <component-desc/>
    </jnlp>
    and in the main .jnlp, I reference this rather than the jar. Here is what I put (in addition to all my other jars):
    <resources>
    <extension name="WebLogic" href="weblogic.jnlp"/>
    </resources>
    Hope this helps!
    Phil

Maybe you are looking for

  • How to use counter using PCI 6259

    Hello, users, I have a PCI 6259 board and use Labview 7.1. I'd like to repetitively count the photon signals at 10ms integration time. I want cumulative counts in every 1 sec (1000ms) (or 1 min (60000ms)) And I want to save counts into txt.file which

  • Cant boot after upgrade with conflicts

    hi always when i install arch and do: pacman -Syu i have error: failed to comit transaction (conflicting files) without that upgrade i cant install desktop manager so i try: pacman -Syuf pacman -Sc pacman -Syu and it finish upgrade without errors but

  • BD54 not allowing to delete logical system

    Hi, We did system refersh from Prod to Quality and further we found that while starting BDLS it was not allowing to do so. We got message like <Target> logical system already existing . Further checks revealed that in BD54 that our quality system's l

  • JCO.server could not create server function - IDOC_INBOUND_ASYNCHRONOUS

    Hello all. On this platform I have found some threads for the above error we get, but unfortunately the solution was not described in detail. We get this error in sending Idocs from a SAP 4.7 system to our Business Connector. Complete error info is :

  • Trying to install CS5.5 Design Premium on new system - getting errors - help please.

    Exit Code: 7 -------------------------------------- Summary -------------------------------------- - 1 fatal error(s), 3 error(s), 4 warning(s) WARNING: DW031: Payload:{61A3D10A-AA4D-4E4C-B9DB-6A08D318EA41} Photoshop Camera Raw (64 bit) 6.0.0.0 has b