ClassNotFoundException trying to load classes in a .war file inside an .ear file

Hi. I've deployed an EJB2 enterprise app as an ear file on WebLogic 6
          without errors. The ear file contains web app and ejb components in war and
          jar files. The web component is set to be the default web app in the
          config.xml file. Everything deploys without error messages.
          My problem is that I get ClassNotFoundExceptions when I try to invoke a
          servlet (via its servlet-mapping) or do Class.forName() on any class file in
          the war file.
          I see in '.wl_temp_do_not_delete' that the ear file has been decomposed into
          the ejb jar and web war files. The war file is not 'exploded' into a
          directory structure, however (as the console.war is). Is this an error
          (should the class packages in the war file be 'exploded'?)
          I don't see a tag in the web.xml, config.xml, or application.xml that tells
          the server to explode the war file--is there one?
          Note that if I manually copy the exploded class folders into the
          '_tmp_war_myserver_myserver_<<webappname>>' directory (and not, curiously,
          into a WEB-INF/classes subdirectory of that directory), the servlets and
          other classes load correctly. Also, jsps and html files load just fine
          without exploding the war file.
          Note also that the server complains about not being able to find the
          classes, even though it reports that the decomposed war file is in the
          classpath. Is there a problem loading class files from a .war file (because
          the namespace is different, with root classes located in WEB-INF/classes
          rather than the .war file's root?)
          Also, in the application.xml file, what is the meaning of the
          <context-root></context-root> element? What should its value be? What if
          you leave it blank?
          Thanks for any help,
          Reid
          

Is there a way to add jar libraries to the Oracle JVM CLASSPATH? Is this the same as the system's CLASSPATH env. variable?
Thank you!
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Alex McClennan ([email protected]):
The package prefix in the code extract was correct - i.e. "oracle.aurora.jndi". A value of "oracle.aurora.jndi.*" would be incorrect.
The problem is that the context factory implementation specified (com.evermind.server.ApplicationClientInitialContextFactory
) can't be found, the mostly likely reason being that the library containing the class isn't on the classpath.
Cheers,
ax<HR></BLOCKQUOTE>
null

Similar Messages

  • Exception occured while retrieving the Flowtrace XML for the Composite Instance; java.lang.ClassNotFoundException: Failed to load class oracle.bpel.services.workflow.WorkflowException

    When i try to view the FlowTrace i'm getting the following exception in EM
    Unable to display Flowtrace due to exception while initializing object, please review logs for detailed information.
    >> Exception occured while retrieving the Flowtrace XML for the Composite Instance; ECID: 0000JzmIFk95EgPquci8UH1HtzlR0000HC
    >> java.rmi.UnmarshalException: Problem finding error class; nested exception is:
    >>> java.lang.ClassNotFoundException: Failed to load class oracle.bpel.services.workflow.WorkflowException
    >>> at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:237)
    >>> at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
    >>> at oracle.soa.management.internal.ejb.impl.FacadeFinderBean_4vacyo_FacadeFinderBeanImpl_1036_WLStub.getAuditTrail(Unknown Source)
    >>> at oracle.soa.management.internal.ejb.EJBLocatorImpl.getAuditTrail(EJBLocatorImpl.java:473)
    >>> at oracle.sysman.emai.model.sca.share.composite.FlowTraceModel.setFloatraceModelInfo(FlowTraceModel.java:172)
    >>> at oracle.sysman.emai.model.sca.share.composite.FlowTraceModel.initialize(FlowTraceModel.java:79)
    >>> at oracle.sysman.emai.model.sca.EMEntityModel._initializeEntityData(EMEntityModel.java:28)
    >>> at oracle.sysman.emai.model.sca.common.SCAEntityObject.initializeSCAData(SCAEntityObject.java:124)
    >>> at oracle.sysman.emai.model.sca.SCAObject.initializeData(SCAObject.java:66)
    >>> at oracle.sysman.core.model.util.ModelUtil$EMObjectResetter.initOrResetEMObject(ModelUtil.java:319)
    >>> at oracle.sysman.core.model.util.ModelUtil$EMObjectResetter.access$000(ModelUtil.java:280)
    >>> at oracle.sysman.core.model.util.ModelUtil.initializeMBEMObjects(ModelUtil.java:231)
    >>> at oracle.sysman.core.model.util.ModelUtil.initializeAllEMObjects(ModelUtil.java:128)
    >>> at oracle.sysman.core.model.util.ModelUtil.initializeAllEMObjects(ModelUtil.java:101)
    >>> at oracle.sysman.emSDK.adfext.ctlr.EMPagePhaseListener.doPrePrepareModel(EMPagePhaseListener.java:867)
    >>> at oracle.sysman.emSDK.adfext.ctlr.EMPagePhaseListener.beforePhase(EMPagePhaseListener.java:795)
    >>> at oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper.beforePhase(ADFLifecycleImpl.java:551)
    >>> at oracle.adfinternal.controller.lifecycle.LifecycleImpl.internalDispatchBeforeEvent(LifecycleImpl.java:100)
    >>> at oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:191)
    >>> at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.access$400(ADFPhaseListener.java:23)
    >>> at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.startPageLifecycle(ADFPhaseListener.java:238)
    >>> at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$1.after(ADFPhaseListener.java:274)
    >>> at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:75)
    >>> at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:53)
    >>> at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:472)
    >>> at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
    >>> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    >>> at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    >>> at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    >>> at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
    >>> at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    >>> at oracle.sysman.emSDK.license.LicenseFilter.doFilter(LicenseFilter.java:164)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    >>> at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    >>> at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
    >>> at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
    >>> at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    >>> at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
    >>> at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
    >>> at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
    >>> at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    >>> at oracle.help.web.rich.OHWFilter.doFilter(Unknown Source)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    >>> at oracle.sysman.emas.fwk.MASConnectionFilter.doFilter(MASConnectionFilter.java:41)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    >>> at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    >>> at oracle.sysman.eml.app.AuditServletFilter.doFilter(AuditServletFilter.java:179)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    >>> at oracle.sysman.eml.app.EMRepLoginFilter.doFilter(EMRepLoginFilter.java:203)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    >>> at oracle.sysman.core.model.targetauth.EMLangPrefFilter.doFilter(EMLangPrefFilter.java:158)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    >>> at oracle.sysman.core.app.perf.PerfFilter.doFilter(PerfFilter.java:141)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    >>> at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:542)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    >>> at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
    >>> at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    >>> at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
    >>> at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
    >>> at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
    >>> at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    >>> at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    >>> at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    >>> at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
    >>> at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
    >>> at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    >>> at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    >>> at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
    >>> at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
    >>> at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
    >>> at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    >>> at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    >>> Caused by: java.lang.ClassNotFoundException: Failed to load class oracle.bpel.services.workflow.WorkflowException
    >>> at weblogic.rmi.utils.WLRMIClassLoaderDelegate.loadClass(WLRMIClassLoaderDelegate.java:208)
    >>> at weblogic.rmi.utils.WLRMIClassLoaderDelegate.loadClass(WLRMIClassLoaderDelegate.java:135)
    >>> at weblogic.rmi.utils.Utilities.loadClass(Utilities.java:305)
    >>> at weblogic.rjvm.MsgAbbrevInputStream.resolveClass(MsgAbbrevInputStream.java:436)
    >>> at weblogic.utils.io.ChunkedObjectInputStream$NestedObjectInputStream.resolveClass(ChunkedObjectInputStream.java:268)
    >>> at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
    >>> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
    >>> at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
    >>> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
    >>> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
    >>> at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:208)
    >>> at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:599)
    >>> at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:235)
    >>> at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
    >>> at oracle.soa.management.internal.ejb.impl.FacadeFinderBean_4vacyo_FacadeFinderBeanImpl_1036_WLStub.getAuditTrail(Unknown Source)
    >>> at oracle.soa.management.internal.ejb.EJBLocatorImpl.getAuditTrail(EJBLocatorImpl.java:473)
    >>> at oracle.sysman.emai.model.sca.share.composite.FlowTraceModel.setFloatraceModelInfo(FlowTraceModel.java:172)
    >>> at oracle.sysman.emai.model.sca.share.composite.FlowTraceModel.initialize(FlowTraceModel.java:80)
    >>> at oracle.sysman.emai.model.sca.EMEntityModel._initializeEntityData(EMEntityModel.java:29)
    >>> at oracle.sysman.emai.model.sca.common.SCAEntityObject.initializeSCAData(SCAEntityObject.java:125)
    >>> at oracle.sysman.emai.model.sca.SCAObject.initializeData(SCAObject.java:66)
    >>> at oracle.sysman.core.model.util.ModelUtil$EMObjectResetter.initOrResetEMObject(ModelUtil.java:319)
    >>> at oracle.sysman.core.model.util.ModelUtil$EMObjectResetter.access$000(ModelUtil.java:280)
    >>> at oracle.sysman.core.model.util.ModelUtil.initializeMBEMObjects(ModelUtil.java:231)
    >>> at oracle.sysman.core.model.util.ModelUtil.initializeAllEMObjects(ModelUtil.java:131)
    >>> at oracle.sysman.core.model.util.ModelUtil.initializeAllEMObjects(ModelUtil.java:102)
    >>> at oracle.sysman.emSDK.adfext.ctlr.EMPagePhaseListener.doPrePrepareModel(EMPagePhaseListener.java:869)
    >>> at oracle.sysman.emSDK.adfext.ctlr.EMPagePhaseListener.beforePhase(EMPagePhaseListener.java:795)
    >>> at oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper.beforePhase(ADFLifecycleImpl.java:552)
    >>> at oracle.adfinternal.controller.lifecycle.LifecycleImpl.internalDispatchBeforeEvent(LifecycleImpl.java:100)
    >>> at oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:192)
    >>> at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.access$400(ADFPhaseListener.java:23)
    >>> at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.startPageLifecycle(ADFPhaseListener.java:238)
    >>> at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$1.after(ADFPhaseListener.java:276)
    >>> at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:77)
    >>> at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:54)
    >>> at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:472)
    >>> at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
    >>> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    >>> at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    >>> at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    >>> at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
    >>> at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    >>> at oracle.sysman.emSDK.license.LicenseFilter.doFilter(LicenseFilter.java:166)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    >>> at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    >>> at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
    >>> at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:447)
    >>> at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    >>> at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:447)
    >>> at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
    >>> at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
    >>> at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    >>> at oracle.help.web.rich.OHWFilter.doFilter(Unknown Source)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    >>> at oracle.sysman.emas.fwk.MASConnectionFilter.doFilter(MASConnectionFilter.java:41)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    >>> at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    >>> at oracle.sysman.eml.app.AuditServletFilter.doFilter(AuditServletFilter.java:183)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    >>> at oracle.sysman.eml.app.EMRepLoginFilter.doFilter(EMRepLoginFilter.java:203)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    >>> at oracle.sysman.core.model.targetauth.EMLangPrefFilter.doFilter(EMLangPrefFilter.java:158)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    >>> at oracle.sysman.core.app.perf.PerfFilter.doFilter(PerfFilter.java:141)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    >>> at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:542)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    >>> at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
    >>> at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    >>> at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
    >>> at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
    >>> at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
    >>> at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    >>> at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    >>> at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    >>> ... 9 more

    Hi Manish,
    It seems that you are using a custom security provider and the weblogic server is not able to find the class / jar file that contains the class.
    java.lang.ClassNotFoundException: Failed to load class com.msl.security.providers.SessionPrincipal]
    Make sure you have all the required jar files in the server classpath.
    You can use the JarScan utility to find the jar that contains the class.
    Refer the below link regarding the jarScan.
    http://weblogic-wonders.com/weblogic/2011/01/26/finding-jar-files-using-jarscan/
    Regards,
    Anandraj
    http://weblogic-wonders.com

  • Weblogic MQ  :java.lang.ClassNotFoundException: Failed to load class weblog

    Hi
    I am getting this error in Log
    JMSException: weblogic.messaging.dispatcher.DispatcherException: java.rmi.UnmarshalException: Problem finding error class; nested exception is:
         java.lang.ClassNotFoundException: Failed to load class weblogic.messaging.kernel.KernelException
    Please help me to find out possible root cause for this errorstack.
    Thanks
    Edited by: 906163 on Jan 5, 2012 5:29 AM

    Hi,
    This is not the forum for WebLogic Messaging, i.e., JMS. This is the forum for Oracle MessageQ, and pure standalone messaging product similar to IBM MQ Series.
    Regards,
    Todd Little
    Oracle Tuxedo Chief Architect

  • Referencing utility classes from a war file

    How do you reference a utility class from a war file? I tried adding the class to the deployment plan descriptor, however I still get a ClassNotFoundException.
    Thanks,
    Will

    To use the utility classes from a war you have to place them under the web-inf/classes directory.
    webApplication(WAR directory)--->WEB-INF--> classes (put your utility classes in this directory)

  • Unable to load impl class error after WAR file rebuilt

    Hi
    I have the source code for a working WAR file. I wanted to make a small change to the code and rebuilt the WAR. Now the previous WAR version works but even when I rebuild the WAR from the unedited code I get the error "unable to load impl class"
    and ClassNotFoundException: Class bytes found but defineClass() failed for ...
    Does anyone know what kind of changes in my environment would cause this problem?
    Thanks
    J Armstrong

    This was caused by using jdk1.6.0_02 to compile the java files where jdk1.50_06 was required

  • Pre-load servlets from a war-file

    Hello,
              is there a way to pre-load a servlet (or execute any other code)
              at server startup, when the application is deployed as a .war-file?
              I know how to use the weblogic.servlet.utils.ServletStartup and
              the weblogic.system.startupClass... property, but these two
              seem to require that the servlet (or application class, respectively)
              are found in the servlet classpath (or the weblogic.class.path,
              respectively), so these mechanisms cannot peek into war-files to find
              the class, am I right?
              The page http://www.weblogic.com/docs51/classdocs/webappguide.html#dtprops
              says:
              <load-on-startup>load_order</load-on-startup>
              (Optional) This property is not honored by WebLogic Server in this release.
              Is this still valid?
              Is there a workaround?
              When will this element be supported?
              Concerning a possible workaround, I have read:
              > Subject: Re: Pre-load
              > Date: Fri, 19 Nov 1999 14:38:41 -0500
              > From: Jeff Martin <[email protected]>
              > Newsgroups: weblogic.developer.interest.servlet
              > Tom Gerber wrote:
              > >
              > > How do you get your startup class to start? Do you have a
              > > script which calls your startup class via a URL? Or is
              > > there a setting in the weblogic properties file for it?
              > Starting WebLogic in unix is a shell script. Just add a line to run your
              > preload program (e.g. java Preload).
              > Some unixes have utilities to get a web page from the command line (to
              > do shell parsing on it); create a series of calls, one per page.
              That sounds like a possibility, but I do not understand exactly.
              1) Where do I have to put the line into the shell script?
              2) Which line is it?
              3) What is the UNIX utility?
              I am using WL 5.1 (evaluation) under Solaris.
              Any help appreciated,
                   Oliver Matz
              | _ \ / \ | __)( ) Oliver Matz, Engineer
              | _/( () )| __) | | fon: +49(0)40/60990-0
              |_| \__/ |___) |_| fax: +49(0)40/60990-113
              

    Yes you can load a java applet form a jar file.
    Here is the code for internet explorer.
    <body>
         <table align="center" border="1">
              <tr>
                   <td>
                        <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="10" height="10" codebase="/plugin/">
                        <param name="code" value="XXX.class">
                        <param name="archive" value="XXX.jar">
                        </object>
                   </td>
              </tr>
         </table>
    </body>
    </html>
    Just replace the XXX.class with the class containing the init() method and XXX.jar with the jar file.

  • Class not found in web-inf/classes folder of war file within ear file

    Hi all,
              I am using Weblogic 8.1 sp4. I have a war file within an ear file. I am trying to deploy the war file with a few classes within its web-inf/classes folder, however when the classes are in that folder I consistently get a class not found exception when trying to instantiate them. If I package the classes in a jar file and then put that jar file within the web-inf/lib folder of the war, the classes are also not found.
              If I put these two classes in the app-inf/classes folder of the ear file, everything works as expected and the classes are found.
              Any ideas of why this is happening. This seems to be a very simple thing that should work, but appears to not be working at all.
              thanks in advance for any suggestions or ideas.

    Hi,
              This is a known limitation/issue with WL. There is also no way around this.
              Regards,
              LG

  • Is it possible to load classes from a jar file

    Using ClassLoader is it possible to load the classes from a jar file?

    URL[] u = new URL[1] ;
    u[0] = new URL( "file://" + jarLocation + jarFileName + "/" );
    URLClassLoader jLoader = new URLClassLoader( u );
    Object clsName = jLoader.loadClass( clsList.elementAt(i).toString() ).newInstance();
    I get this error message.
    java.lang.ClassNotFoundException: ExceptionTestCase
    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)
    // "file://" + fileLocation + fileName + "/" This works fine from a browser.
    Is there anything I am missing? Thanks for the reply.

  • Loading classes from another jar file

    I've set up my jnpl file so that it references a core jar file (contains main() function). The jnlp also references another jar file (app.jar) which contains class files that I load and instantiate dynamically (using ClassLoader). The core.jar file contains a manifest that includes a reference to app.jar.
    The app works fine when I use "java -jar core.jar" from the command line.
    However, when I wrap the jars using jnlp, I always get a null pointer exception because it cannot find any class that is in the app.jar file. I've tried different strategies, such as trying to load a class file that sits on the server (in a jar file and not in a jar file), but that also fails if I use jnlp (However, it works if I use "java -jar core.jar")
    Any ideas what is going on?

    This is the "OckCore.jar" manifest before signing:
    Manifest-Version: 1.0
    Main-Class: com.Ock.OckCore.OckApp
    Class-Path: . OckMaths.jar
    Created-By: 1.4.0-beta3 (Sun Microsystems Inc.)
    Name: com.Ock.OckCore.OckApp.class
    Java-Bean: FalseThis is the manifest after signing:
    Manifest-Version: 1.0
    Main-Class: com.Ock.OckCore.OckApp
    Created-By: 1.4.0-beta3 (Sun Microsystems Inc.)
    Class-Path: http://hazel/Ock/. http://hazel/Ock/OckMaths.jar
    Name: com/Ock/OckCore/OckApp.class
    SHA1-Digest: KRZmOryizx9o2L61nN+DbUYCgwo=I have removed a load of irrelevant stuff from the "after" manifest to keep it readable.
    note that :-
    The OckApp.class loads normally from webstart and tries to load a class from OckMaths.jar.
    I can prove that OckApp.class does load because it creates a log file when it does.
    The OckApp.class tries to load a class from the OckMaths.jar. This fails if webstart is used but works if OckCore is launched using "java -jar OckCore.jar".
    The jars do exist at the location specified by the manifest.
    The application launches normally if I use "java -Jar OckCore.jar"
    Here is the jnlp file
    <?xml version='1.0' encoding='UTF-8'?>
    <jnlp
         spec="1.0"
         codebase="http://hazel/Ock"
         href="OckMaths.jnlp">
         <information>
              <title>Ock Maths Demo</title>
              <vendor>Rodentware Inc</vendor>
              <description>Demo of a ported app running as a Java Webstart application</description>
              <description kind="short">An app running as a Java Webstart application"></description>
              <offline-allowed/>
         </information>
         <security>
              <all-permissions/>          
         </security>
         <resources>
              <j2se version="1.3"/>
              <jar href="OckCore.jar"/>
              <jar href="OckMaths.jar"/>
         </resources>
         <application-desc main-class="com.Ock.OckCore.OckApp">
    </jnlp> I have also signed the jars outside of a webdirectory. I get the following manifest file:
    Manifest-Version: 1.0
    Main-Class: com.Ock.OckCore.OckApp
    Created-By: 1.4.0-beta3 (Sun Microsystems Inc.)
    Class-Path: . OckMaths.jar
    Name: com/Ock/OckCore/OckApp.class
    SHA1-Digest: KRZmOryizx9o2L61nN+DbUYCgwo=
    note that :-
    The jars do exist at the location specified by the manifest.
    The application launches normally if I use "java -Jar OckCore.jar".
    The application doesn't launch from webstart.
    I've found that cache, but the jar files have been renamed.
    OckCore.jar is anOckCore.jar, etc... so I'm not sure if trying to write a cmdline will work anyway.

  • How to include text file in classes directory of war file.

    I have a project that uses a text file called cache.ccf (JCS configuration file) when debugging the webservices, I have to dig into the inflated war file directory and manually place the cache.ccf file in the WEB-INF/classes/ directory/
    How can i have JDeveloper wrap the file up in the war file in the WEB-INF/classes directory. both for debugging and when the war file is actually built for deployment.
    Thanks,
    Bart

    Nevermind, I figured it out using the Project Properties->Deployment and include it in the WEB-INF/classes

  • Re: Using simple java class in an .war file.

    Hi All,
    I have a simple question,
    Can I access an simple java class from a jsp file that I have written by putting it in the "classes" folder?? What entry should go in the web.xml file?
    Here is my directory structure:
    sample.war
    |
    ----test.jsp <file>
    |
    ----WEB-INF <folder>
    | |
    | ----classes<folder>
    | | |
    | | ----simpleJavaClass.class<file>
    | |
    | ----lib<folder>
    | |
    | ----web.xml
    I want to access the simpleJavaClass.class from the jsp test.jsp.
    Please suggest.
    Thanks and regards
    Ayusman

    It is possible to access the class in u r classes folder from u r jsp file.
    For example
    <%@ page import="com.test.service.PricingSolution,
    com.test.core.PhoneNumber
    %>
    <% PricingSolution solution = (PricingSolution)session.getAttribute("solution"); %>
    This is a simple scriplet example. You do the same using jstl tags also.
    --Shinoy

  • CS5 - trying to load a new style .asl file - keep getting "error, because no parser or file format can open the file."  what gives?

    trying to load a new style for a project.  CS5 PSD.  the .asl file when dragged into the doc, gives the the following "error, because no parser or file format can open the file."  what gives?

    .asl files are layer styles
    You can go to Window>Styles and then load the styles from the styles panel fly-out menu

  • ClassNotFoundException: trying to load OC4J JNDI InitialContextFactory

    Hello!
    Trying to make a call to an EJB deployed in OCJ4 from a oracle java stored proc. After loaded orion.jar and crimson.jar lib into SCOTT schema, I can't get the JNDI Context working because of this error:
    ============================================
    javax.naming.NoInitialContextException: Cannot instantiate class:
    com.evermind.server.ApplicationClientInitialContextFactory. Root exception is
    java.lang.ClassNotFoundException:
    com/evermind/server/ApplicationClientInitialContextFactory
    at java.lang.Class.forName0(Class.java)
    at java.lang.Class.forName(Class.java)
    at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:45)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java)
    at javax.naming.InitialContext.init(InitialContext.java)
    at javax.naming.InitialContext.<init>(InitialContext.java)
    ===============================
    I did load the java with "loadjava" with on time with the "resolve" option and time time no option and still no working.
    Here is the EJB client code:
    =======================================
    import java.sql.*;
    import java.util.*;
    import javax.naming.*;
    import com.evermind.server.ApplicationClientInitialContextFactory;
    class EmpRemoteCall {
    public static void main(String[] args) {
    System.out.println(getEmpName());
    public static String getEmpName() {
    String ejbUrl = "java:comp/env/ejb/Emp";
    String username = "admin";
    String password = "admin";
    Hashtable environment = new Hashtable();
    environment.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.ApplicationClientInitialContextFactory");
    environment.put(Context.PROVIDER_URL, "ormi://127.0.0.1/testemp");
    environment.put(Context.SECURITY_PRINCIPAL, username);
    environment.put(Context.SECURITY_CREDENTIALS, password);
    //environment.put(Context.SECURITY_AUTHENTICATION, ServiceCtx.NON_SSL_LOGIN);
    //environment.put(javax.naming.Context.URL_PKG_PREFIXES, "oracle.aurora.jndi");
    com.kboum.sertir.essais.EmpHome homeInterface = null;
    try {
    Class.forName("com.evermind.server.ApplicationClientInitialContextFactory", true, ClassLoader.getSystemClassLoader());
    System.out.println("Creating an initial context");
    Context ic = new InitialContext(environment);
    System.out.println("Looking for the EJB published as 'java:comp/env/ejb/Emp'");
    homeInterface = (com.kboum.sertir.essais.EmpHome) ic.lookup(ejbUrl);
    catch (CommunicationException e) {
    System.out.println("Unable to connect: " + ejbUrl);
    e.printStackTrace();
    //System.exit(1);
    catch (NamingException e) {
    System.out.println("Exception occurred!");
    System.out.println("Cause: This may be an unknown URL, or some" +
    " classes required by the EJB are missing from your classpath.");
    System.out.println("Suggestion: Check the components of the URL," +
    " and make sure your project includes a library containing the" +
    " EJB .jar files generated by the deployment utility.");
    e.printStackTrace();
    //System.exit(1);
    catch (ClassNotFoundException e) {
    System.out.println("Unable to connect: " + ejbUrl);
    e.printStackTrace();
    //System.exit(1);
    try {
    System.out.println("Creating a new EJB instance");
    com.kboum.sertir.essais.Emp remoteInterface = homeInterface.findByPrimaryKey(Integer.valueOf("7369"));
    System.out.println(remoteInterface.getENAME());
    System.out.println(remoteInterface.getSAL());
    remoteInterface.setSAL(2);
    System.out.println(remoteInterface.getSAL());
    return remoteInterface.getENAME();
    catch (Exception e) {
    System.out.println(e.getMessage());
    e.printStackTrace();
    return "error";
    }

    Is there a way to add jar libraries to the Oracle JVM CLASSPATH? Is this the same as the system's CLASSPATH env. variable?
    Thank you!
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Alex McClennan ([email protected]):
    The package prefix in the code extract was correct - i.e. "oracle.aurora.jndi". A value of "oracle.aurora.jndi.*" would be incorrect.
    The problem is that the context factory implementation specified (com.evermind.server.ApplicationClientInitialContextFactory
    ) can't be found, the mostly likely reason being that the library containing the class isn't on the classpath.
    Cheers,
    ax<HR></BLOCKQUOTE>
    null

  • Bridge CS4 one Windows 7 stops working when trying to load pictures in a new file

    Bridge starts fine but when i click on some files to see the pictures in there it stops working.
    The message i get is:
    "Adobe Bridge has stopped working
    A problem caused the program to stop working correctly.
    Windows will close the program and notify you if a solution is available."
    I had problems with my XP x64 and CS4 bridge too and after formatting and installing windows 7 Ultimate (32 bit) i thought it would be solved ... but no such luck.
    Any ideas what to do?
    also not sure where to look for any error logging or something similar.
    Oh having problems with itunes too as it will not start....., yea i know wrong forum but just incase someone has the same problem as i do
    I appreciate your help

    This is what i get from the event viewer:
    Sorry i have no idea what to look for
    System
    Provider
    [  Name]
    Application  Error
    EventID
    1000
    [  Qualifiers]
    0
    Level
    2
    Task
    100
    Keywords
    0x80000000000000
    TimeCreated
    [  SystemTime]
    2010-02-06T01:28:23.000000000Z
    EventRecordID
    3309
    Channel
    Application
    Computer
    Workstation
    Security
    EventData
    Bridge.exe
    3.0.0.464
    48b75dac
    unknown
    0.0.0.0
    00000000
    c0000005
    041b15e1
    d8c
    01caa6cba0a860a8
    C:\Program  Files\Adobe\Adobe Bridge CS4\Bridge.exe
    unknown
    ea035ed1-12be-11df-9400-001fd08134a0

  • Error in adding attachment to the workitem. load:class Query.class not foun

    Hi,
    We are using WebGui to access the Business Workplace(SBWP transaction) through Portal. For any work item, when i try to import a file from the local PC, i get a screen with the header -"Enter Some FIle attributes". Text displayed in the screen is "Please wait. You will be forwarded automatically. This page had to be included for techincal reasons". And i am struck in that screen. I believe a java popup winddow should come up at this point to select the PC File but it never happened. The screen also has a status message "
    Loading Java applet failed. Applet Query.class not inited ".
    WHen i look at the java console, i find the following error trace. Please let me know if anybody experienced this problem before and how to fix it. Thanks for the help.
    Trace ---
    load: class Query.class not found.
    java.lang.ClassNotFoundException: Query.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    Regards
    hari

    Hi all,
    I have encountered same problem in ITS 6.20.
    Query.class is packed in ws.jar which is stored at C:\Inetpub\wwwroot\<SID>\sap\its\mimes\webgui\99\applets and C:\Inetpub\wwwroot\<SID>\sap\its\mimes\webgui\2002\applets in ITS server.
    I increased the trace level to 3 in the Java console to inevestigate the problem further.
    == Java console (Trace level 3 ) ===
    network: cache entry not found URL: https://hostname.domain.co.jp:443/sap/its/mimes/webgui/2002/applets/ws.jar、version: null
    network: Connect to https://hostname.domain.co.jp:443/sap/its/mimes/webgui/2002/applets/ws.jar (Proxy=DIRECT)
    network: Connect to http://hostname.domain.co.jp:443/  (Proxy=DIRECT)
    java.net.ConnectException: Connection refused: connect
    load: class Query.class not found.
    java.lang.ClassNotFoundException: Query.class
    ==========================
    Then I found out that when system tried to load class Qery.class the connection to ITS was refused becase the incorrect protocol ( https ) was chosen.  In my case, SSL was not setup, therefore protocol must be http.
    I activated http by changing the configuration file for WGate in C:\Program Files\SAP\ITS\6.20\config\ ItsRegistryWGATE.xml
    After that, I restarted the WGate by accessing to http://hoostname.domain.co.jp:port/scripts/wgate/wgate-restart to activate the configuration.
    And also I restarted the AGate by restarting the Windows Service "SAP ITS Manager - <SID>".
    Anyway, the html (BHTML) file that displays the message below is stored at C:\Program Files\SAP\ITS\620\templates\system\dm\itsdoc.html
    "Please Wait. You will be forwarded automatically"
    "This page has been loaded due to technical Reasons"
    Best regards,
    Akira

Maybe you are looking for

  • ASA 5505 interface based routing?

    Hi, I got an ASA 5505 in my lab and got it working fine with one IP and various NAT and other scenarios (I'm currently refreshing my skills after a longer break on the job). Now, from my ISP I can get up to 5 public IPs. However, those IPs are assign

  • How do you make Vector Text in Photoshop to import to Flash 8?

    I'm trying to make some nice text for a logo in photoshop, but how do i export it as a vector into Flash so it will not distort?

  • Multi language dvd navigation

    I am building a multi language dvd in Encore for the first time as it seems like it could be quicker than the more complex programmes used previously but I have some questions about the navigation. To conserve space, I have only created one series of

  • Portlet Repository

    In the following scenario, a V1 instance is successfully upgraded to V2 but meantime the V1 instance is still the production site (and will be for some time) with content being updated, added and deleted. Content from the upgraded V2 instance is expo

  • Switching between OS X and Win7 on MacBook Pro

    Is there an app or some process to easily switch between OS X and Win7 on my MacBook Pro? Thanks.