Classloader issue? (what's a $Proxy598?)

I have a session bean which looks up 3 other session beans. All are located in the same JAR, one copy of which is deployed to the war and another to the ear. It is a Struts Action class which is attempting to obtain references to these SSBs. References to the first 2 SSBs are fine. The third, which is a subclass of the second SSB obtained, generates a ClassCastException.
The ejb-jar.xml and the jboss.xml files are correct. This has been verified by 4 other developers on the team. The really interesting thing is the Class types being returned from the lookup routine. From the logs, you can see the EJBHomeFactory returns a valid reference to a CommonQE session bean, but an invalid reference to UserInterfaceQE session bean. I don't know what a $Proxy598 classtype is, but it sure works better than the NamingContext classtype!
The action class looks for both CommonQE and UserInterfaceQE. Comparing the execution path of these 2 lookups through EJBHomeFactory, you see a vast difference in the return Object's classtype:
========================================
Lookup of CommonQE using EJBHomeFactory
========================================
2004-08-30 14:54:17,123 [Thread-7] DEBUG [[EJBHomeFactory]] [EJBHomeFactory][lookUpHome]BEGIN: looking up Home for class com.cadmus.rpm.domain
.session.CommonQE.CommonQEHome
2004-08-30 14:54:17,123 [Thread-7] DEBUG [[EJBHomeFactory]] [EJBHomeFactory][getLookUpURL] BEGIN: looking up URL for class: com.cadmus.rpm.do
main.session.CommonQE.CommonQEHome
2004-08-30 14:54:17,123 [Thread-7] DEBUG [[EJBHomeFactory]] [EJBHomeFactory][getLookUpURL] Package name is: com.cadmus.rpm.domain.session.Comm
onQE
2004-08-30 14:54:17,123 [Thread-7] DEBUG [[EJBHomeFactory]] [EJBHomeFactory][getLookUpURL] END: returning JNDI path: com/cadmus/rpm/domain/ses
sion/CommonQE
2004-08-30 14:54:17,124 [Thread-7] DEBUG [[EJBHomeFactory]] [EJBHomeFactory][lookUpHome] Using objectLookUpName: com/cadmus/rpm/domain/session
/CommonQE
2004-08-30 14:54:17,124 [Thread-7] DEBUG [[EJBHomeFactory]] [EJBHomeFactory][lookUpHome] The EJB Home is NOT stored in the local cache of EJB
Homes - looking it up now
2004-08-30 14:54:17,124 [Thread-7] DEBUG [[EJBHomeFactory]] [EJBHomeFactory][retrieveHomes] BEGIN: retrieving homes for com.cadmus.rpm.domain.
session.CommonQE.CommonQEHome
2004-08-30 14:54:17,124 [Thread-7] DEBUG [[EJBHomeFactory]] [EJBHomeFactory][getLookUpURL] BEGIN: looking up URL for class: com.cadmus.rpm.do
main.session.CommonQE.CommonQEHome
2004-08-30 14:54:17,124 [Thread-7] DEBUG [[EJBHomeFactory]] [EJBHomeFactory][getLookUpURL] Package name is: com.cadmus.rpm.domain.session.Comm
onQE
2004-08-30 14:54:17,124 [Thread-7] DEBUG [[EJBHomeFactory]] [EJBHomeFactory][getLookUpURL] END: returning JNDI path: com/cadmus/rpm/domain/ses
sion/CommonQE
2004-08-30 14:54:17,124 [Thread-7] DEBUG [[EJBHomeFactory]] [EJBHomeFactory][retrieveHomes] URL for com.cadmus.rpm.domain.session.CommonQE.Com
monQEHome = com/cadmus/rpm/domain/session/CommonQE
2004-08-30 14:54:17,124 [Thread-7] DEBUG [[EJBHomeFactory]] [EJBHomeFactory][retrieveHomes] Looking up the EJB Home for com/cadmus/rpm/domain/
session/CommonQE
2004-08-30 14:54:17,124 [Thread-7] DEBUG [[EJBHomeFactory]] [EJBHomeFactory][retrieveHomes] END: Got the EJB Home for this object com/cadmus/rpm/domain/session/CommonQE
2004-08-30 14:54:17,125 [Thread-7] DEBUG [[EJBHomeFactory]] [EJBHomeFactory][lookUpHome]END: Returning EJB Home now -- its class is $Proxy598
-- is it null? false
===========================================================
NOTE RETURN OBJECT'S CLASSTYPE ABOVE - $Proxy598 (this works)
===========================================================
==============================================
Lookup of UserInterfaceQE using EJBHomeFactory
==============================================
2004-08-30 14:55:15,028 [Thread-5] DEBUG [[EJBHomeFactory]] [EJBHomeFactory][lookUpHome]BEGIN: looking up Home for class com.cadmus.rpm.sessio
n.ui.UserInterfaceQE.UserInterfaceQEHome
2004-08-30 14:55:15,028 [Thread-5] DEBUG [[EJBHomeFactory]] [EJBHomeFactory][getLookUpURL] BEGIN: looking up URL for class: com.cadmus.rpm.se
ssion.ui.UserInterfaceQE.UserInterfaceQEHome
2004-08-30 14:55:15,028 [Thread-5] DEBUG [[EJBHomeFactory]] [EJBHomeFactory][getLookUpURL] Package name is: com.cadmus.rpm.session.ui.UserInte
rfaceQE
2004-08-30 14:55:15,028 [Thread-5] DEBUG [[EJBHomeFactory]] [EJBHomeFactory][getLookUpURL] END: returning JNDI path: com/cadmus/rpm/session/ui
/UserInterfaceQE
2004-08-30 14:55:15,028 [Thread-5] DEBUG [[EJBHomeFactory]] [EJBHomeFactory][lookUpHome] Using objectLookUpName: com/cadmus/rpm/session/ui/Use
rInterfaceQE
2004-08-30 14:55:15,028 [Thread-5] DEBUG [[EJBHomeFactory]] [EJBHomeFactory][lookUpHome] The EJB Home is NOT stored in the local cache of EJB
Homes - looking it up now
2004-08-30 14:55:15,028 [Thread-5] DEBUG [[EJBHomeFactory]] [EJBHomeFactory][retrieveHomes] BEGIN: retrieving homes for com.cadmus.rpm.session
.ui.UserInterfaceQE.UserInterfaceQEHome
2004-08-30 14:55:15,028 [Thread-5] DEBUG [[EJBHomeFactory]] [EJBHomeFactory][getLookUpURL] BEGIN: looking up URL for class: com.cadmus.rpm.se
ssion.ui.UserInterfaceQE.UserInterfaceQEHome
2004-08-30 14:55:15,028 [Thread-5] DEBUG [[EJBHomeFactory]] [EJBHomeFactory][getLookUpURL] Package name is: com.cadmus.rpm.session.ui.UserInte
rfaceQE
2004-08-30 14:55:15,028 [Thread-5] DEBUG [[EJBHomeFactory]] [EJBHomeFactory][getLookUpURL] END: returning JNDI path: com/cadmus/rpm/session/ui
/UserInterfaceQE
2004-08-30 14:55:15,028 [Thread-5] DEBUG [[EJBHomeFactory]] [EJBHomeFactory][retrieveHomes] URL for com.cadmus.rpm.session.ui.UserInterfaceQE.
UserInterfaceQEHome = com/cadmus/rpm/session/ui/UserInterfaceQE
2004-08-30 14:55:15,028 [Thread-5] DEBUG [[EJBHomeFactory]] [EJBHomeFactory][retrieveHomes] Looking up the EJB Home for com/cadmus/rpm/session
/ui/UserInterfaceQE
2004-08-30 14:55:15,028 [Thread-5] DEBUG [[EJBHomeFactory]] [EJBHomeFactory][retrieveHomes] END: Got the EJB Home for this objectcom/cadmus/rp
m/session/ui/UserInterfaceQE
2004-08-30 14:55:15,028 [Thread-5] DEBUG [[EJBHomeFactory]] [EJBHomeFactory][lookUpHome]END: Returning EJB Home now -- its class is org.jnp.in
terfaces.NamingContext -- is it null? false
============================================================
NOTE RETURN OBJECT'S CLASSTYPE ABOVE - (this doesn't work)
============================================================
2004-08-30 14:55:15,032 [Thread-5] ERROR [editorial] [EditorialPoolAction][grabServices] [EditorialPoolAction][grabServices] CAUGHT java.lang.
ClassCastException WHILE OBTAINING REFERENCE TO com.cadmus.rpm.session.ui.UserInterfaceQE.UserInterfaceQEHome: null
java.lang.ClassCastException
at com.cadmus.rpm.ui.editorial.EditorialPoolAction.grabServices(EditorialPoolAction.java:443)
============================================================
Note the resulting ClassCastException!
============================================================

CORRECTION: I meant to say I have an Action class which looks up 3 session beans.
Here's the class loader stack:
2004-08-30 18:46:18,067 [Thread-5] DEBUG [[EJBHomeFactory]] CLASSLOADER: level 0: WebappClassLoader^M
available:^M Extension[org.apache.commons.beanutils, implementationVendor=Apache Software Foundation, implementationVersion=1.3, specificationVendor=Ap
ache Software Foundation, specificationVersion=1.0]^M Extension[org.apache.commons.collections, implementationVendor=Apache Software Foundation, implementationVersion=1.1-dev, specificationVen
dor=Apache Software Foundation, specificationVersion=1.0]^M Extension[commons-fileupload, implementationVendor=Apache Software Foundation, implementationVendorId=, implementationVersion=1.0, specifi
cationVendor=Apache Software Foundation, specificationVersion=]^M Extension[org.apache.commons.logging, implementationVendor=Apache Software Foundation, implementationVersion=1.0, specificationVendor=Apac
he Software Foundation, specificationVersion=1.0]^M Extension[org.apache.commons.pool, implementationVendor=Apache Software Foundation, implementationVersion=1.0.1, specificationVendor=Apach
e Software Foundation, specificationVersion=1.0]^M Extension[Struts Framework, implementationVendor=Apache Software Foundation, implementationVendorId=org.apache, implementationVersion=1.1,
specificationVendor=Apache Software Foundation, specificationVersion=1.1]^M delegate: true^M
repositories:^M /WEB-INF/classes/^M
required:^M ----------> Parent Classloader:^M
java.net.FactoryURLClassLoader@1aea0c1^M
2004-08-30 18:46:18,067 [Thread-5] DEBUG [[EJBHomeFactory]] CLASSLOADER: level 1: java.net.FactoryURLClassLoader@1aea0c1
2004-08-30 18:46:18,067 [Thread-5] DEBUG [[EJBHomeFactory]] CLASSLOADER: level 2: org.jboss.mx.loading.UnifiedClassLoader3@1e45a5c{ url=file:/
usr/local/jboss-3.2.1/server/cadmus_noncluster/deploy/rpm_application.ear/ ,addedOrder=23}
2004-08-30 18:46:18,067 [Thread-5] DEBUG [[EJBHomeFactory]] CLASSLOADER: level 3: org.jboss.system.server.NoAnnotationURLClassLoader@1ad086a
2004-08-30 18:46:18,067 [Thread-5] DEBUG [[EJBHomeFactory]] CLASSLOADER: level 4: sun.misc.Launcher$AppClassLoader@136228
2004-08-30 18:46:18,067 [Thread-5] DEBUG [[EJBHomeFactory]] CLASSLOADER: level 5: sun.misc.Launcher$ExtClassLoader@913750
2004-08-30 18:46:18,067 [Thread-5] DEBUG [[EJBHomeFactory]] CLASSLOADER: Bootstrap (null) loader

Similar Messages

  • Best Practice for Resolving OAS 10g R3 Classloading Issues

    What's the best practices for eliminating classloading issues for shared libraries that are loaded by default (apache.commons.logging, oracle.toplink, etc) in OAS 10g R3?
    So far it looks like my options are to exclude the conflicting JARs in my deployed applications or manually remove the entries from the application.xml and system-application.xml files in the OC4J instance config directory.
    I know that I can override the shared libraries loaded from the system-application.xml by using the <web-app-class-loader search-local-classes-first="true"/> element in my orion-web.xml but is that the best practice? Also note that this solution does not override the apache.commons.logging shared library loaded from the container's application.xml.
    So what is the best practice?

    What's the best practices for eliminating classloading issues for shared libraries that are loaded by default (apache.commons.logging, oracle.toplink, etc) in OAS 10g R3?
    So far it looks like my options are to exclude the conflicting JARs in my deployed applications or manually remove the entries from the application.xml and system-application.xml files in the OC4J instance config directory.
    I know that I can override the shared libraries loaded from the system-application.xml by using the <web-app-class-loader search-local-classes-first="true"/> element in my orion-web.xml but is that the best practice? Also note that this solution does not override the apache.commons.logging shared library loaded from the container's application.xml.
    So what is the best practice?

  • Java.lang.ClassNotFoundException - classloader issue ?

    Hi All
    We tried to deploy our ADF ear file to 10.3.6 weblogic.
    Our app uses 3rd party jars put in WEB-INF/lib in war which in turn is in our app ear file.
    Our web.xml is configured
       <listener>
        <listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>
      </listener>
    When we deploy our ear app, we get this error:
    Is this a classloader issue ? If it is, at what level of classloader this is failing ?
    What file should we configure ?
    Where should we put our third-party jars as we do not have control over the install weblogic servers owned by another team.
    Any help is appreciated.
    Sincerely
    ####<Sep 18, 2013 10:54:50 AM PDT> <Error> <Console> <host> <AdminServer> <[ACTIVE] ExecuteThread: '16' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <085fcd85a0c1669b:64c5b0f5:141284171fa:-8000-00000000000001eb> <1379526890738> <BEA-240003> <Console encountered the following error weblogic.management.DeploymentException: [Deployer:149233]An unexpected error was encountered during the deployment process.
      at weblogic.deploy.internal.targetserver.DeployHelper.handleException(DeployHelper.java:385)
      at weblogic.deploy.internal.targetserver.DeployHelper.convertThrowableForTransfer(DeployHelper.java:511)
      at weblogic.deploy.internal.targetserver.DeploymentManager.notifyCommitFailure(DeploymentManager.java:1442)
      at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:457)
      at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
      at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused by: java.lang.ClassNotFoundException: ch.qos.cal10n.MessageConveyorException
      at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
      at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
      at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
      at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:52)
      at ch.qos.cal10n.MessageConveyor.lookup(MessageConveyor.java:115)
      at ch.qos.cal10n.MessageConveyor.getMessage(MessageConveyor.java:77)
      at org.jboss.weld.logging.WeldMessageConveyor.getMessage(WeldMessageConveyor.java:66)
      at org.jboss.weld.exceptions.WeldExceptionKeyMessage.getAsString(WeldExceptionKeyMessage.java:67)
      at org.jboss.weld.exceptions.WeldException.getMessage(WeldException.java:87)
      at org.jboss.weld.exceptions.WeldException.getLocalizedMessage(WeldException.java:82)
      at java.lang.Throwable.toString(Throwable.java:343)
      at com.bea.logging.ThrowableWrapper.<init>(ThrowableWrapper.java:26)
      at com.bea.logging.ThrowableWrapper.<init>(ThrowableWrapper.java:29)
      at com.bea.logging.BaseLogRecord.setThrown(BaseLogRecord.java:172)
      at com.bea.logging.BaseLogRecord.<init>(BaseLogRecord.java:100)
      at weblogic.logging.WLLogRecord.<init>(WLLogRecord.java:63)
      at weblogic.logging.JDKLoggerFactory.createBaseLogRecord(JDKLoggerFactory.java:85)
      at com.bea.logging.LoggingService.log(LoggingService.java:234)
      at weblogic.i18n.logging.Loggable.log(Loggable.java:158)
      at weblogic.deploy.internal.targetserver.operations.AbstractOperation.complete(AbstractOperation.java:429)
      at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:326)
      at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
      at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
      at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)

    Please check if the clas ch.qos.cal10n.MessageConveyorException is available.
    check permissions.
    check if exist.
    check if the directory is into JAVA_CLASSPATH.

  • My safari won't load. firefox does. have had this computer for 2 years now, first time i'm having issues. what do i do???

    my safari won't load. firefox does. have had this computer for 2 years now, first time i'm having issues. what do i do???

    Going by your profile v10.6.8.
    Reinstall Safari >  Safari 5.1.9 for Snow Leopard
    Then restart your Mac.

  • Weblogic Classloader issues

    I place my WAR file for deployment in the domain/applications directory for automatic deployment when the Weblogic server starts. This usually works fine. But, for unkown reasons, I am now getting a ClassNotFoundException after I added some new JARS to the appliation's WEB-INF/lib directory. The Class that it complains about is in one of the new JARs, the package name is correct, and the JAR is getting deployed. When I deploy the application manually, I the problem goes away. Deploying manually means that I make the applicatoin directory myself under domain/applications and the unwar it into that directory.
    I'm using Weblogic 8.1 SP3 on a Windows Server 2000.

    Hi
    The problem with t3config and disableWeblogicClassPath (described below) also
    seems to exist in WLS 5.1 - sp2.
    Regards
    Steffen Bering Jensen
    Systems Architect * Nordija ApS * Denmark
    [email protected] wrote:
    I hope that it is fixed in post 4.5.0 versions.
    [email protected] wrote:
    Steffen
    I ran into the same problem with 4.5.0 while using t3config
    I would like to know the version you are working with.
    Support, please tell me it can be fixed.
    Madhu
    "Steffen B. Jensen" wrote:
    Hi
    Due to some classloader issues we start up WebLogic with the following
    system property:
    -Dweblogic.system.disableWeblogicClassPath=true
    and no weblogic.class.path property.
    However, when trying to set this up for an NT service using wlconfig,
    wlconfig seems to insist on a weblogic.class.path system property. When
    that property exists (although empty) WebLogic will not boot.
    It seems that you can't run weblogic as an NT service with
    weblogic.system.disableWeblogicClassPath=true?
    Regards
    Steffen Bering Jensen
    Systems Architect * Nordija ApS * Denmark

  • CUSTOM CLASSLOADER ISSUES WITH APPLET

    HELP WOULD BE MUCH APPRECIATED FROM ANYONE KNOWING ABOUT CLASSLOADER ISSUES
    I have an applet that must be dynamically extensible at run time. I am using
    the URLClassLoader to support dynamic class loading for the modules the
    applet must contain on the specific page.
    Each jar file contains:
    * The class files, icons and other resources for the module
    * a file called META-INF/ext.initializers
    The initializers file contains a list of classes which implement my
    ExtensionInitializer interface. I am using
    ClassLoader.getResources("META-INF/ext.initializers") to obtain these lists.
    This works fine.
    Each class implementing ExtensionInitializer is responsible for attaching
    various objects to the main applet i.e extra GUI items, information
    processors etc...
    The problem I am getting is that although the class loader will load
    resources ok, it WILL NOT LOAD the damn classes!!!
    Here's the snippet of code where it runs into trouble:
    while (it.hasNext())
    String name = (String)it.next();
    Class c = classLoader.loadClass(name);
    ExtensionInitializer initializer =
    (ExtensionInitializer)c.newInstance();
    initializer.preInitialize(session);
    System.out.println("Pre Initialized: " + initializer);
    // Remember we initialized this so we can call postInitialize
    later
    initializers.add(initializer);
    The output proving that the URLs were infact added and the ext.initializers
    list was processed (containing the class name
    com.katalyzt.toolbox.ext.cm.gui.CaseInitializer):
    Extension URLs
    file:/C:/java/Katalyzt/lib/ext/Case.jar
    file:/C:/java/Katalyzt/lib/ext/WorkArea.jar
    Found initializer:
    jar:file:/C:/java/Katalyzt/lib/ext/Case.jar!/META-INF/ext.initializers
    java.lang.ClassNotFoundException:
    com.katalyzt.toolbox.ext.cm.gui.CaseInitializer
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
    at
    com.katalyzt.toolbox.gui.AppletExtensionLoader.loadExtensions(AppletExtensio
    nLoader.java:97)
    at
    com.katalyzt.toolbox.gui.ToolboxSessionPanel.preInitialize(ToolboxSessionPan
    el.java:70)
    at
    com.katalyzt.toolbox.gui.ToolboxSessionApplet.init(ToolboxSessionApplet.java
    :28)
    at sun.applet.AppletPanel.run(AppletPanel.java:344)
    at java.lang.Thread.run(Thread.java:484)
    java.lang.ClassNotFoundException:
    com.katalyzt.toolbox.ext.cm.gui.CaseInitializer
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
    at
    com.katalyzt.toolbox.gui.AppletExtensionLoader.loadExtensions(AppletExtensio
    nLoader.java:97)
    at
    com.katalyzt.toolbox.gui.ToolboxSessionPanel.preInitialize(ToolboxSessionPan
    el.java:70)
    at
    com.katalyzt.toolbox.gui.ToolboxSessionApplet.init(ToolboxSessionApplet.java
    :28)
    at sun.applet.AppletPanel.run(AppletPanel.java:344)
    at java.lang.Thread.run(Thread.java:484)
    Found initializer:
    jar:file:/C:/java/Katalyzt/lib/ext/Case.jar!/META-INF/ext.initializers

    It is the standard secure java.net.URLClassLoader that I am using to load the classes. I create an instance of this with a URL[] specifying the urls of dynamic extension jars. Someone suggested that security restrictions may be to blame but it also occurs with the applet viewer with all class loading restrictions turned off. The resource files contained in the jars do become available. Someone suggested was signing the jars which I will check today.

  • JRE classloading issue

    Hi,
    I have an application where I use JAF(Java Activation Framework) source code for my purpose. My application works fine with jdk1.5. When I run my application with jdk1.6, it does not work properly.
    The cause is JAF is included in JRE1.6 and my application refers to the JAF present in the JRE not the one in my application.
    My question is by any means can I ignore the JAF present in JRE1.6 and use the one present with my application?
    Any help is appriciated.
    Champak

    cutecolt wrote:
    I need to deploy a java application in a unix box.Deploy?
    Do you just mean "run" or "launch" - or do you mean deploy under an AppServer framework?
    when i wanted to execute the same application in the unix box, I get NoClassDefFound for the library jars though i have set the classpath and the write permissions are there for the lib jar files.NoClassDefFound for the library jars?
    Do you mean you get NoClassDefFound for the class containing "main()" or some other specific class?
    You don't get NoClassDefFound for jars...
    But i found the issue may be in the JRE conflict. I have 2 jre's available in the box. You can have several JREs installed. That does not cause conflicts.
    When i type java -version, it is showing, 1.4.2_08 but my application was compatible with jdk 1.5 and infact 1.5.0 is also available in the machine.This just means that your 1.4.2 JRE is on your PATH and is the first place the shell found "java".
    I tried to exectue the program by changing to the jdk 1.5.0 path like /app/instals/jdk1/5/bin/java -cp /lib/hibernate.jar abc. so i didn't get the unsupportedversionexception.You mean by launching java using the fully qualified name.
    But none of the jars in the classpath wasn't loaded. Huh?
    I think there is some classloading issue associated with JRE. Unlikely.
    How i use the 1.5.0 jre? Same way as the 1.4.2 JRE.
    Btw, there are some application running in the box so i may not be able to switch to 1.5 entirely.Not relevant.

  • AuditProvider classloading issues

    Hi all,
    We are implementing an AuditProvider for WLS that communicates via SOAP with a custom application that provides secure audit storage.
    We have followed the following example to implement the base of the provider:
    https://codesamples.projects.dev2dev.bea.com/servlets/Scarab?id=S189
    After that, we used the clientgen Ant task to generate the SOAP access code, and packaged everything in an MJF file using MBeanMaker.
    We copy the MJF to WL_HOME/server/lib/mbeantypes, configure the MBean using the admin console.
    However, when restarting stuff, during our AuditProvider initialization we get:
    javax.xml.rpc.ServiceException: weblogic client internal deployment descriptor com/kroopier/bea/sap/soap/BEAAuditLogService_internaldd.xml not found. Please make sure all clientgen generated files are in the classpath.
            at weblogic.wsee.jaxrpc.ServiceImpl.loadWeblogicDD(ServiceImpl.java:397)
            at weblogic.wsee.jaxrpc.ServiceImpl.loadInternalDD(ServiceImpl.java:346)
            at weblogic.wsee.jaxrpc.ServiceImpl.<init>(ServiceImpl.java:110)
            at com.kroopier.bea.sap.soap.BEAAuditLogService_Impl.<init>(BEAAuditLogService_Impl.java:21)
            at com.kroopier.bea.sap.soap.BEAAuditLogService_Impl.<init>(BEAAuditLogService_Impl.java:17)
            Truncated. see log file for complete stacktraceUpon further research, it seems that the SOAP code generated by clientGen uses Thread.currentThread().getContextClassLoader() to load the support files (some xml files it generates). We suspect that this class loader is not the class loader being used to load the mjf jar, so the mjf jar contents (which include the file that cannot be found) are not used.
    Is there a simple way to solve this?
    Kind regards,
    Alex

    Thank you.
    As we are creating an AuditProvider for distribution, we'd rather have it be a single jar file that goes into mbeantypes than having to put our jar into system classpath (i.e. I'd think this would make our provider less desirable).
    My current line of reasoning is as follows:
    1. We are trying to invoke code from our AuditProvider that uses Thread.currentThread().getContextClassLoader() for reflection purposes
    2. Thread.currentThread().getContextClassLoader() does not include the AuditProvider jar deployed in mbeantypes, but the one in this.getClass().getClassLoader() does (I suspect that the this.getClass().getClassLoader() is the one that the class uses for loading the classes it needs).
    3. Why would someone use Thread.currentThread().getContextClassLoader() to load classes? Clearly, if you are loading the rest of the classes your class needs with this.getClass().getClassLoader(), use that one, as you don't know what your thread's context class loader is.
    Therefore, our hacky solution is to do this:
    ClassLoader threadClassLoader = Thread.currentThread().getContextClassLoader();
    try {
      Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
      // bad code that uses the thread's context class loader
    finally {
      Thread.currentThread().setContextClassLoader(threadClassLoader);
    }Long term, I'd like to advise people (esp. the guys who wrote weblogic.wsee.tools.anttasks.ClientGenTask and Hessian- which is the code that's given us trouble so far) to use the current class' classloader for reflection stuff instead of the thread's.
    Of course, I have my doubts that this hack won't cause further trouble, so I'd appreciate further feedback on this issue.
    Alex

  • A dozen+ Kernel Panics, suspect system issues - what to try?

    Hello!
    Well, in the last few weeks, my poor little Powerbook has lost its mind. I keep having Kernel panics for no apparent reason. Here's the story so far:
    1. I upgraded to Leopard (archive/install) from Tiger, in November.
    2. In early January, I had at least one kernel panic. Not sure what happened. By the middle of January, I had 3 or 4, and on (about) the 15th, I had three kernel panics in the span of an hour - and the lower ram card wasn't being recognized. I took it to the Apple store, where the tech said that it was the infamous "lower ram-slot issue" that plague my model Powerbook.
    3. Once I got the powerbook back from the shop, it seemed to work quite well - fast, stable, panic-free. This week, however, I've had at least 6 or 7 kernel panics - at least 4 of them in the last 24 hours. A few of these weren't the usual "you need to restart your mac" window, but rather a long list of console-like text from the BSD subsystem itself
    It seems to be related to the software - or perhaps Dashboard. Dashboard client has been running out of control this week - and started to go nuts about when the kernel panics started to occur. In fact, one of these "BSD" panics said that the dashboard client hung the computer. Thus, I moved all of my user (non-apple) widgets out of the library folder - effectively removing them from dashboard. This has prevented dashboard client from going nuts, but hasn't stopped the kenel panics. The ones that have occurred since seem to occur when using Safari or MS Word 2004, and one (another BSD panic) said that Window Server hung.
    I've repaired permissions many times, used Disk Utility to verify the boot volume (it was OK), and zapped the PRAM and PMU - no luck.
    I've had some other hardware and software issues:
    First, Spotlight crashes when I attempt to search for something with a common name and have my 4 external hard drives attached... (One with Time Machine backups, one with other backups, and the rest with large volumes of video editing files). This issue probably isn't related to the kernel panic issue though, since it only occurs if I spotlight gets really bogged down - say, I search on "mac" and get 5000 returns...
    Sometimes, if I have the power adapter plugged in and then boot up or wake the Mac, it sometimes won't recognize the adapter and thus run off battery. The solution? Unplug the adapter from the Mac and the wall, then plug both sides in. This occurs at least once a day, having become a much worse issue since sending it into Apple. This makes me think that I may have a issue with the power supply system in the Powerbook, and may be one of the causes of the panics. Again, zapping the PMU and PRAM, hasn't helped. Nor has deleting every power-related plist file.
    The ram issue seems to have stopped, and I'm not sure the power issue could cause this - so I don't know what to do about this. It's happening a lot, but it's not exactly predictable - it would be difficult to reproduce for the Mac Genius, should I run to the Apple store. Since I suspect it's a software issue, I'm also not sure they can do anything about it. If Apple can't do anything about it, I plan on doing an Erase-install of Leopard, then carefully installing software - one thing at a time - to see if I can find the culprit. If worst comes to worst, I'll downgrade to Tiger...
    So then, the questions, summed up are:
    1. Do you have any idea what could be going on?
    2. Can apple do anything about a software-related kernel panic issue?
    3. If Apple can't fix it, and an erase-install won't work, when else can I try?
    Sorry for the long post, and thanks a bunch for the help, I appreciate it.
    -Dan

    K, well i'll try to find the log on the backup clone I made - the Powerbook is currently in the Apple store for diagnostics. Hopefully, then can figure out what the deal is, but it will likely require an archive/install.
    When I was there, he opened one of the logs in console - and it showed literally thousands of errors - all from "kernel". Wow, i have no idea what happened. He said that it may be bit-rot on the part of some of my applications, but there's probably not much they can do if it's not a hardware problem. sigh
    Anyway, I'll look for the log on the backup volume when I get a chance. Thanks, I suppose you're right about you being forced to guess without the log. Didn't think about that... O:-)

  • Powerbook Lower Memory Slot Issue, what are my options?

    Hi there,
    I have a Powerbook G4 1.5ghz that I purchased in October of 2004. I had no problems with it until after upgrading the RAM to 2 x 512mb chips and then installing Tiger which resulted in me later notcing the missing RAM and learning about the lower memory slot failure issue.
    I find that sometimes if I remove the RAM and try and power it up and then replace the RAM again that the lower slot ocassionaly does come back. Trouble is though that the machine will either crash or I loose the other RAM slot when I have to shut it down. It seems to be so intermittent this way and I'm tired of constantly removing the RAM to fiddle about with it.
    My serial number begins W8441, so it isn't covered by the returns programe. I would call Apple Support, but I am put off by a £35 charge just to have them discuss and diagnose the problem.
    I'm in the UK and as I don't have Applecare and I'm not elgiable for the returns programe can anyone tell me what they charge for a logic board replacment? Looking at what they charge in the US, it's not cheap.
    I use my Powebook for Final Cut Pro, DVD Studio Pro, After Effects mainly and I had been alright with 1gig when it was working.
    I'm really trying to decide what the best thing to do is....
    - Do I pay for the logic board replacement, which I'm not really sure I can afford right now, or to be without my machine... especially as I have read that it can just fail again.
    - Should I just buy a 1gig stick for the upper slot and try and sell my old RAM, as that would be cheaper than getting the logic board replaced?
    It's a real shame that Apple doesn't seem to want to ackowledge that this effects other users as I'd been so impressed with everything about Apple up until now.
    Thanks for any advice.

    (Browse down for findings and questions).
    The notorious lower-memory-slot-bug has hit my finally too... I never believed it until now (and I've immediately signed the petition).
    I am outside warranty and I never bought Applecare either.
    Also my powerbook, a very dear machine to me, is a less common type to have this problem: a 1 GHz G4 15" FireWire 800 OS 10.3.9 type. Funny enough my older powerbook ( a G3 Bronze) is still running strong with no problems whatsoever.
    My G4 15" also has the "white spots" problem and a dead superdrive... I cannot believe how many hardware problems I'm having with this machine in comparison to all my older macs - even my sluggish powerMac 7200/90 never gave me this many headaches...
    Alright, I'll stop complaining for now.
    I've been able to browse the internet on this and found the following statements:
    The lower memory slot gets "fried" because of a OS 10.3.9 upgrade,
    or possibly due to overheating when the powerbook is put on the users' lap,
    or possibly due to picking the powerbook up by the corners so the metal gets bent.
    + I have only seen one case where someone's UPPER memory slot was defective.
    The solution to this problem (replacing the logic board) didn't seem to be definate in many cases so I'm reluctant to try this myself (and I have very little money). The alternative (replacing the upper slot memory with a bigger type of RAM) seems a bit scary to me,
    because I wonder:
    -will the upper memory slot RAM get "fried" eventually as well after a while?
    -do you need to have something installed in the lower slot or is it possible to just install one RAM card only?
    -are there more people with a 1 GHz PB that have this problem? It seems it's mostly people with a 1,67 GHz that have been bitten by this bug and maybe that's why Apple decided to give the majority a free repair. I am not sure whether that is a common policy, I am part of the minority it seems.
    As a solutions someone posted on a board that we should all buy KTA-PBG4333/1G RAM, but here in Dutch stores it is said this memory is only compatible with 17" powerbooks....
    Does anyone know if it is suitable for 15" as well??
    G4 Powerbook   Mac OS X (10.3.9)   1 GHz G4 Powerbook FW800

  • PO issue :What should we do to close the PO or change item quantity?

    Hi Everyone,
    I am new to MM.I got an issue saying that there is some mismatch with quantity in the particular PO. User wants to cancel/close the PO system but it is not allowing to do so. To change the quantity is also  good, but while trying to change item quantity system is giving the following error message.
    Quantity 1000 is smaller than quantity issued 2000.
    To close the PO or change item quantity what should I need to do?
    A help will be highly appreciated
    Regards,
    sharon.

    Hi,
    It is of the standard functionality of SAP to verify the GR and IR against PO quantity when you try to close your related PO line item.  It ensures data consistency for your PO and PO history.  What you should do is very much subject to the status of your PO history (i.e. how many you have already GRed and/or IRed).  Check it again in your PO history tab of the PO item details level prior to making any further action on how your PO line item quantity shall be adjusted.  A particular example is if GR was done for the quantity of 2,000, you can't simply adjust your PO quantity into 1,000 as it goes against the logic whereby the GR quantity (and/or IR quantity) must be no larger than PO quantity.
    Cheers,
    HT

  • 2011 Macbook pro continues to have issues what should I do?

    In 2011 I purchased an early 2011 2.2 i7 Macbook Pro new. Not long after I bought it I began to have graphics issues with the computer. The computer was sent into Apple and a logicboard replacement was done. I continued to have intermediate issues with the computer after I received it back. These issues became worse over time, eventually to the point of the computer not booting up. In addition to serious graphics issues and random shutdowns.  This eventually led me to take my macbook on April 12th 2013 back Apple.
    A repair was done in which the logicboard was replaced again. I received my Mac back on April 19th. Today April 22 my Mac shutdown again. Also some of the graphics issues from much earlier have come back. Some scrambled graphics and some tearing in apps appear on the screen. The computer shut down on me twice on two seperate occassions today. For no reason it just shut off. It use to do this before the logicboard replacement. I went ahead and submitted an error report to Apple after reboot.
    I am a design professional and am associated with Appsterdam. The repair on my mac took a week and I feel far behind in my work. However just at the time that I am trying to catch up on my work. This Macbook pro has begun to go out on me again. I am so upset that I bought a unit from a bad batch or something. They have already replaced the logicboard twice as a result of these shutdowns and graphics issues.
    I don't know what to do. Any information about what my next step should be would be greatly appreciated.

    Thank you for your reply. I shall contact the Apple store again soon. My Macbook has had it's logicboard replaced two times now as a result of graphics issues. I have had the computer back now for about two weeks but it's performance continues to deteriorate. After the 2nd logicboard replacement. Some of my apps look like this...   =(

  • I had to reset my iphone 5 today because of software issues. what is the best way to restore all my apps?

    I had to reset my iphone 5 because of corrupt software issues. now I am trying to restore my apps. So are returning. Some are not. Some are making me pay for them again! What is the best way to restor all the apps?

    Sync them from your computer back to the iphone

  • Weird USB / sleep issue; what can I do?

    This is an ongoing issue that has been popping up since at least as far back as 2012, possibly further. It never made sense, and I've slowly pieced together some strange occurrences that might shed some light on the problem.
    Back in the Fall of 2012, I copied some data onto a USB thumb-drive from my laptop, then a 15-inch MacBook Pro (I bought it used, I think it was 2006 or 2007 vintage). There was a large amount of data transferred. The copying process took about half and hour. I took the thumb drive to a friend with a much newer computer. My friend told me the transfer took a few minutes. I knew something was wrong then. The MacBook Pro was running MacOS 10.6.8.
    The MacBook Pro died March, 2013. I was able to hire a specialist to extract the internal hard disk from the laptop, put it in a USB case, and transfer the contents verbatim to a newer machine; I had to buy a refurbished late-2012 iMac. running MacOS 10.8. (Now runs 10.9)
    I have noticed peculiar behavior in running this iMac. USB thumb drives and other USB hard drive transfers can occasionally seem sluggish. Weirder still, if I put the iMac to sleep overnight, waking it up in the morning causes a very strange "wake up" process where the display is greyed out and a progress bar lets me know it is slowly waking up. This wake-up process takes one to two minutes. This only happens when there are no USB peripherals connected to the iMac. If I put the iMac to sleep with a thumb drive plugged in, it wakes up instantly.
    I have long suspected the iMac had some kind of software bug or corruption that was brought over from the MacBook Pro in March of '13, when I hastily transferred everything over in the midst of the laptop's breakdown crisis.
    Recently, I ran Software Update on the iMac to get Epson and Security updates installed. I repeatedly was greeted by the warning message: "System extension cannot be used  The system extension "/System/Library/Extensions/AppleUSBEthernetHost.kext" was installed improperly and cannot be used. Please try reinstalling it, or contact the product's vendor for an update." I have no idea what this means, but it does seem to confirm that there's some weird bug loose and it has to do with USB.
    The only question is: what can I do about it? Would calling AppleCare for advice help?
    I am my own "Chief Cook and Bottle Washer", in that I do my own I.T. most of the time. I've been using Macintoshes since 1986.

    Hi Walt_Atwood,
    I'm sorry to hear you have been dealing with this issue for so long. If you are getting error or alert messages about a deep system file (like a System .kext), you may want to try reinstalling your OS. This should not affect your files or user settings (as noted in the following article), but just to be safe it is alway a good idea to have a backup of your data prior to these kinds of troubleshooting steps.
    OS X Mavericks: Reinstall OS X
    OS X Mavericks: Back up your Mac
    OS X Mavericks: Alternatives for backing up your Mac
    Also, regarding the unusual wake up process that you noted, from your description it sounds like your machine is waking from Safe Sleep. This may be normal for your model (Late 2012 iMac) if it has been asleep for more than 4 hours and there has been no USB activity:
    Mac computers: Progress bar appears after waking from sleep - Apple Support
    Regards,
    - Brenden

  • FacesContext Issue what is wrong

    hi i have this code using the FacesContext to talk inbetween my session bean and the page request bean basically this method is attached to a command button that will save an ID and then move to the next page with the "success" action
    i find this kind of weird cause usually this works fine but this time it keeps buging with a null pointer exception
    if someone could tell me what is wrong with this or tell me an alternative method to do this
    FacesContext facesContext = FacesContext.getCurrentInstance();
    SuperSaver neededBean = (SuperSaver)FacesContext.getApplication().getVariableResolver().resolveVariable(facesContext, "backing");
    CoreOutputText var=this.getGetter();
    //this is just a test line
    System.out.println(var.getValue().toString());
    try{
    neededBean.setpersonid(var.getValue().toString());
    catch(Exception e){
    System.out.println("this does not work");
    return "success";
    Message was edited by:
    staind_art

    then i am a bit confused i have been spending the last 2 days trying to solve an issue i have this is my first real jsf application using ADF BC and i dont get a couple of little details maybe you clear my mind.
    1--> I start with a simple employee creation form. (one table)
    2--> then i have to assign them a country -- a location -- and a department (all different views)
    that part is fine i use the navigation list but from then and on it gets harder
    cause on the same form i dont understand how to make dependant drop down menu available inside this second form i thought of doing it into 2 pages
    3-->thirdly i have to save the id from the first pages which is a DBSequence(that is fine) but i have to push it inside the form for the employee assignment THAT really confuses me
    if you could have any advices on how i should or could proceed or if my method should change or whatever comment you have i would greatly appreciate it and my BOSS even more :0)
    thx Art

Maybe you are looking for

  • How to append data from one file to another

    Hello, I am trying to replace one column of numbers in a 2D array with a unique string from another file. Pos.    Serial    Gain  2        3252        4  4        15697      4  6        15543      4 I want to replace the "4" in the third column with

  • InDesign server export .pdf, AND save .indd

    Hey all, Just a quick question. Is it possible to script InDesign server to export a .pdf to a certain folder location AND save the original .indd file to another folder location all automatically? Cheers, Steve.

  • Can't import mv2 elementary stream

    I'm using DVDSP 412. My project is HDDVD for a Toshiba HD player. (A2) I edited 720P HDV and exported using compressor to HDDVD mpeg 2. I can't import the MV2 into DVDSP. Any suggestions? It is a mpeg 2 elementary file.

  • Alt key stuck

    I bought a new iMac about four days ago. Brought it home, set it up and it's working lovely. However very recently I find that whenever I begin typing in a browser or text edit that it comes up with symbols instead of the usual letters, as it would i

  • Phone software version report

    We run a Cisco Call Manager version 8.5. We have upgraded from possibly 7.5. We have noticed that some phone that weren't plugged during any of the upgrades are running an older version of software. If they are to old there is no stepped upgrade path