Include certificates in .ear file

Howdy,
I have a fairly simple application which makes a secure connection to a far-end server with code like this:
System.setProperty("javax.net.ssl.keyStore", keystoreFilename);
System.setProperty("javax.net.ssl.keyStorePassword", password);
System.setProperty("javax.net.ssl.keyStoreType", "pkcs12");
System.setProperty("javax.net.ssl.trustStore", truststoreFilename);
System.setProperty("javax.net.ssl.trustStorePassword", trustStorePassword);
System.setProperty("javax.net.ssl.trustStoreType", "JKS");
URL myURL = new URL(myURLName);
HttpURLConnection servletConnection = (HttpURLConnection) myURL.openConnection();
Currently, I must access keystoreFile and truststoreFile using absolute paths on the server, which creates a dependency between my ear file and the server's filespace.
Instead, I'd like to package the keystoreFile and truststoreFile within an ear file, so that the ear file would contain everything necessary to run the application. Is this possible? What would the pathnames (keystoreFilename, truststoreFilename) look like to reference these certificates within the ear file?
Any pointers to documentation or examples would be greatly appreciated,
patrick

Howdy,
Many thanks for your reply ... but I'm still having troubles.I'm failing when I try to use relative paths to access the certificates. Based on this code, it appears that I'm referencing the server's home instead of my container's home ...<br>
        File inputDirectory  = new File("./WEB-INF");
        fl.append(inputDirectory.getAbsolutePath() + "<br>");
        File[] files = inputDirectory.listFiles();
        if (files == null)
            fl.append("listFiles returned a null list<br>");
        else if (files.length == 0)
            fl.append("0 files in directory<br>");
        else
            for( int n = 0; n < files.length; ++n ) {
                fl = fl.append(files[n].getName() + "<br>");
        }yields
     /opt/oracle/oracleas1012/j2ee/home/./WEB-INF
     listFiles returned a null listAm I on the right track, or is something magical supposed to happen to locate the files I need?
Any help appreciated,
patrick

Similar Messages

  • .ear file is not including all the required files for deployment

    While deploying from JDeveloper, some of the files (eg. <Project>.cpx file, .class file) are not included in the .ear file.
    Pls help.

    Is the .ear file deployed with the Deploy to EAR file selection?

  • Problem while deploying a WLW ear file on a WL81 production server

    Hi,
    I am trying to deploy a simple simple WEB service -which works fine within the
    workshop 8.1 environment- on a different "production" server.
    I generated manually all the JMS queues on the target database, as well as the
    pointbase additional tables as specified in the documentation (based on the <wlw-manifest.xml>
    file included in the ear file) .
    The deployment ends with following error:
    "weblogic.servlet.WlwJSPServlet" (see below).
    Who could help ?
    Thanks a lot
    Yves
    [Deployer:149033]preparing application WebServiceNAP on myserver
    [Deployer:149033]failed application WebServiceNAP on myserver
    [Deployer:149034]An exception occurred for task [Deployer:149026]Deploy application
    WebServiceNAP on myserver.:
    Exception:weblogic.management.ApplicationException: prepare failed for WebServiceNAPWeb
    Module: WebServiceNAPWeb Error: Could not load WebServiceNAPWeb: weblogic.management.DeploymentException:
    [HTTP:101283]ServletContext(id=34197168,name=WebServiceNAPWeb,context-path=/WebServiceNAPWeb):
    jspServlet "weblogic.servlet.WlwJSPServlet" defined in weblogic.xml could not
    be loaded.
    java.lang.ClassNotFoundException: weblogic.servlet.WlwJSPServlet
    at weblogic.utils.classloaders.GenericClassLoader.findClass(Ljava.lang.String;)Ljava.lang.Class;(GenericClassLoader.java:198)
    at java.lang.ClassLoader.loadClass(Ljava.lang.String;Z)Ljava.lang.Class;(Unknown
    Source)
    at java.lang.ClassLoader.loadClass(Ljava.lang.String;)Ljava.lang.Class;(Unknown
    Source)
    at weblogic.utils.classloaders.GenericClassLoader.loadClass(Ljava.lang.String;)Ljava.lang.Class;(GenericClassLoader.java:223)
    at weblogic.servlet.jsp.JspConfig.isJspServletValid(Ljava.lang.String;Ljava.lang.String;Ljava.lang.ClassLoader;)Z(JspConfig.java:317)
    at weblogic.servlet.internal.WebAppServletContext.registerJspServlet(Lweblogic.management.descriptors.WebDescriptorMBean;)V(WebAppServletContext.java:2517)
    at weblogic.servlet.internal.WebAppServletContext.prepareFromDescriptors(Lweblogic.management.descriptors.WebDescriptorMBean;)V(WebAppServletContext.java:1878)
    at weblogic.servlet.internal.WebAppServletContext.init(Ljava.lang.String;Lweblogic.management.descriptors.WebDescriptorMBean;Z)V(WebAppServletContext.java:583)
    at weblogic.servlet.internal.WebAppServletContext.<init>(Lweblogic.servlet.internal.HttpServer;Lweblogic.management.configuration.WebAppComponentMBean;Lweblogic.servlet.internal.WebAppModule;Lweblogic.management.ApplicationContainer;Lweblogic.application.ApplicationInfo;)V(WebAppServletContext.java:511)
    at weblogic.servlet.internal.HttpServer.loadWebApp(Lweblogic.management.configuration.WebAppComponentMBean;Lweblogic.management.ApplicationContainer;Lweblogic.application.ApplicationInfo;Lweblogic.servlet.internal.WebAppModule;)Lweblogic.servlet.internal.WebAppServletContext;(HttpServer.java:594)
    at weblogic.servlet.internal.WebAppModule.prepare(Ljava.lang.ClassLoader;[Lweblogic.management.configuration.VirtualHostMBean;ZLjava.lang.String;)V(WebAppModule.java:623)
    at weblogic.j2ee.J2EEApplicationContainer.prepareWebModule(Lweblogic.utils.classloaders.GenericClassLoader;Lweblogic.j2ee.J2EEApplicationContainer$Component;Z)V(J2EEApplicationContainer.java:2896)
    at weblogic.j2ee.J2EEApplicationContainer.prepareModules([Lweblogic.j2ee.J2EEApplicationContainer$Component;Ljava.lang.String;Z)V(J2EEApplicationContainer.java:1532)
    at weblogic.j2ee.J2EEApplicationContainer.prepare([Lweblogic.j2ee.J2EEApplicationContainer$Component;[Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)V(J2EEApplicationContainer.java:1188)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(Ljava.lang.String;[Lweblogic.management.configuration.ComponentMBean;[Ljava.lang.String;)V(J2EEApplicationContainer.java:1031)
    at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer()V(SlaveDeployer.java:2634)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer()Z(SlaveDeployer.java:2584)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare()V(SlaveDeployer.java:2506)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Lweblogic.management.deploy.OamVersion;Lweblogic.management.runtime.DeploymentTaskRuntimeMBean;Z)V(SlaveDeployer.java:833)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(Lweblogic.management.deploy.OamDelta;Lweblogic.management.deploy.OamVersion;Z)Z(SlaveDeployer.java:542)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(Ljava.util.ArrayList;Z)V(SlaveDeployer.java:500)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(Lweblogic.kernel.ExecuteThread;)V(SlaveCallbackHandler.java:25)
    at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:170)
    at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)
    - with nested exception:
    [java.lang.ClassNotFoundException: weblogic.servlet.WlwJSPServlet]

    Looks like Raj has responded to this thread in the Workshop newsgroup:
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.workshop&item=1250&utag=
    "Yves Léauté" wrote:
    >
    Hi,
    I am trying to deploy a simple simple WEB service -which works fine within the
    workshop 8.1 environment- on a different "production" server.
    I generated manually all the JMS queues on the target database, as well as the
    pointbase additional tables as specified in the documentation (based on the <wlw-manifest.xml>
    file included in the ear file) .
    The deployment ends with following error:
    "weblogic.servlet.WlwJSPServlet" (see below).
    Who could help ?
    Thanks a lot
    Yves
    [Deployer:149033]preparing application WebServiceNAP on myserver
    [Deployer:149033]failed application WebServiceNAP on myserver
    [Deployer:149034]An exception occurred for task [Deployer:149026]Deploy application
    WebServiceNAP on myserver.:
    Exception:weblogic.management.ApplicationException: prepare failed for WebServiceNAPWeb
    Module: WebServiceNAPWeb Error: Could not load WebServiceNAPWeb: weblogic.management.DeploymentException:
    [HTTP:101283]ServletContext(id=34197168,name=WebServiceNAPWeb,context-path=/WebServiceNAPWeb):
    jspServlet "weblogic.servlet.WlwJSPServlet" defined in weblogic.xml could not
    be loaded.
    java.lang.ClassNotFoundException: weblogic.servlet.WlwJSPServlet
    at weblogic.utils.classloaders.GenericClassLoader.findClass(Ljava.lang.String;)Ljava.lang.Class;(GenericClassLoader.java:198)
    at java.lang.ClassLoader.loadClass(Ljava.lang.String;Z)Ljava.lang.Class;(Unknown
    Source)
    at java.lang.ClassLoader.loadClass(Ljava.lang.String;)Ljava.lang.Class;(Unknown
    Source)
    at weblogic.utils.classloaders.GenericClassLoader.loadClass(Ljava.lang.String;)Ljava.lang.Class;(GenericClassLoader.java:223)
    at weblogic.servlet.jsp.JspConfig.isJspServletValid(Ljava.lang.String;Ljava.lang.String;Ljava.lang.ClassLoader;)Z(JspConfig.java:317)
    at weblogic.servlet.internal.WebAppServletContext.registerJspServlet(Lweblogic.management.descriptors.WebDescriptorMBean;)V(WebAppServletContext.java:2517)
    at weblogic.servlet.internal.WebAppServletContext.prepareFromDescriptors(Lweblogic.management.descriptors.WebDescriptorMBean;)V(WebAppServletContext.java:1878)
    at weblogic.servlet.internal.WebAppServletContext.init(Ljava.lang.String;Lweblogic.management.descriptors.WebDescriptorMBean;Z)V(WebAppServletContext.java:583)
    at weblogic.servlet.internal.WebAppServletContext.<init>(Lweblogic.servlet.internal.HttpServer;Lweblogic.management.configuration.WebAppComponentMBean;Lweblogic.servlet.internal.WebAppModule;Lweblogic.management.ApplicationContainer;Lweblogic.application.ApplicationInfo;)V(WebAppServletContext.java:511)
    at weblogic.servlet.internal.HttpServer.loadWebApp(Lweblogic.management.configuration.WebAppComponentMBean;Lweblogic.management.ApplicationContainer;Lweblogic.application.ApplicationInfo;Lweblogic.servlet.internal.WebAppModule;)Lweblogic.servlet.internal.WebAppServletContext;(HttpServer.java:594)
    at weblogic.servlet.internal.WebAppModule.prepare(Ljava.lang.ClassLoader;[Lweblogic.management.configuration.VirtualHostMBean;ZLjava.lang.String;)V(WebAppModule.java:623)
    at weblogic.j2ee.J2EEApplicationContainer.prepareWebModule(Lweblogic.utils.classloaders.GenericClassLoader;Lweblogic.j2ee.J2EEApplicationContainer$Component;Z)V(J2EEApplicationContainer.java:2896)
    at weblogic.j2ee.J2EEApplicationContainer.prepareModules([Lweblogic.j2ee.J2EEApplicationContainer$Component;Ljava.lang.String;Z)V(J2EEApplicationContainer.java:1532)
    at weblogic.j2ee.J2EEApplicationContainer.prepare([Lweblogic.j2ee.J2EEApplicationContainer$Component;[Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)V(J2EEApplicationContainer.java:1188)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(Ljava.lang.String;[Lweblogic.management.configuration.ComponentMBean;[Ljava.lang.String;)V(J2EEApplicationContainer.java:1031)
    at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer()V(SlaveDeployer.java:2634)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer()Z(SlaveDeployer.java:2584)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare()V(SlaveDeployer.java:2506)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Lweblogic.management.deploy.OamVersion;Lweblogic.management.runtime.DeploymentTaskRuntimeMBean;Z)V(SlaveDeployer.java:833)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(Lweblogic.management.deploy.OamDelta;Lweblogic.management.deploy.OamVersion;Z)Z(SlaveDeployer.java:542)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(Ljava.util.ArrayList;Z)V(SlaveDeployer.java:500)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(Lweblogic.kernel.ExecuteThread;)V(SlaveCallbackHandler.java:25)
    at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:170)
    at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)
    - with nested exception:
    [java.lang.ClassNotFoundException: weblogic.servlet.WlwJSPServlet]

  • JavaMail mail.jar in EAR file

    JDeveloper 11.1.2.1
    If I download the JavaMail mail.jar file and then add it to my project will that mail.jar file be included in my .ear file? Is there a way I can force it to be include in the .ear file? I would like to be able to install the .ear file on the server and not have to install JavaMail on the server. I also have a Jasper libaray whith which I have the same concern.
    Thanks, Steve

    Use Tools->Manage Libraries... to include your jar files.
    (and select: Deployed by Default)
    Dario

  • A general question concerning .EAR files?

    Hi All,
    My question is, what should be the file extension of the utility class that
    I will include in my ".ear" file? Should it be filename.jar or
    filename.war? The team that I am on has successfully been able to deploy a
    .ear file that only contains our entity and session beans. We would also
    like to "JAR" up our utility class, so that we may be to use the hot
    deployment feature of the application server and the removal of the
    enviroment variable where the utility classes are located.
    We are currently using the Ant utility to help us build our .ear file.
    When I give the utility file name a ".war" extension and then deploy the
    ".ear" file; the application server boots up successfully without throwing
    any exceptions. When I give the utility file name a ".jar" extension and
    then deploy the ".ear" file, the application server boots up successfully
    with exceptions concerning unable to locate one to several utility classes.
    Thank you in advance,
    Charles
    Charles Jean-Baptiste
    [email protected]

    It sounds like you are having a ClassLoader problem.
    The main advantage of deploying EJBs and WebApps in an ear file is that the
    ClassLoader for the webapp inherrits from the ClassLoader for the EJBs.
    This basicly means that the webapp can see the EJBs...when you put another
    util.jar file in the EAR file this will be in a different ClassLoader and
    not accesible by either the EJBs or the WebApp
    (and visa-versa)....to make this accesible you need to add the entry
    Class-Path: util.jar to the manifest file for the EJB.
    1)Create a text file newmanifest.txt with a one line entry of
    Class-Path: util.jar
    2) When you build the original EJB jar file do like this:
    jar cmf newmanifest.txt MyEJB.jar com META-INF
    -this will create the jar file MyEJB.jar adding directories com and META-INF
    and including the contents of newmanifest.txt in the manifest for the jar
    file.
    3) Build this all into the ear file.
    The EJB will now be able to see the util.jar and because the WebApp can see
    the same as the EJB it will also be able to see the util.jar.
    Gareth
    "Charles Jean-Baptiste" <[email protected]> wrote in message
    news:[email protected]...
    Hi All,
    My question is, what should be the file extension of the utility classthat
    I will include in my ".ear" file? Should it be filename.jar or
    filename.war? The team that I am on has successfully been able to deploya
    .ear file that only contains our entity and session beans. We would also
    like to "JAR" up our utility class, so that we may be to use the hot
    deployment feature of the application server and the removal of the
    enviroment variable where the utility classes are located.
    We are currently using the Ant utility to help us build our .ear file.
    When I give the utility file name a ".war" extension and then deploy the
    ".ear" file; the application server boots up successfully without throwing
    any exceptions. When I give the utility file name a ".jar" extension and
    then deploy the ".ear" file, the application server boots up successfully
    with exceptions concerning unable to locate one to several utilityclasses.
    >
    Thank you in advance,
    Charles
    Charles Jean-Baptiste
    [email protected]

  • Ever-expanding file w/ "Deploy to EAR file"

    If I don't delete any pre-existing EAR file in JDeveloper prior to choosing "Deploy to EAR file" for my application, JDeveloper seems to include the existing EAR file in the new EAR file, such that my EAR file grows with each deployment each time, from 60K to 120K to 240K to ... 10, 20 megabytes, etc. I can only get a clean "deploy to ear file" (chosen from right-clicking on the .deploy file in the Navigator) if I first delete the existing ear file. Is there a way to get JDeveloper to not do this, in case I forget to delete from disk first? Thanks.

    I am exporting using the default settings for QT conversion for Broadband high quality. I didn't mess with any settings other than that. Any ideas?

  • .EAR file size unusual growth

    I am using JDev version 10.1.3.0.4 and during the development of my application I always got an EAR file with size around 40 MG when deploying
    In my last deploy I got an EAR file with a 101 MG which doesn't make any sense and although it works fine in the JDev internal OC4J it will not work on Application server.
    Can u give me any reason for this and what to do to solve it?

    In your libraries you can unselect the Export checkbox. You can also edit the deployment profile properties to select/deselect the things you want to include in your EAR file or the related files.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Undeployment of ear-file, "domain ... not registered" message in log

    Hello,
    We're developping a Java Web Application for SAP NetWeaver Web AS.
    It consists of an ear-file, which contains a webmodule (war-file).
    NetWeaver writes some error log messages in it's log file (defaultTrace.0.trc) when the software is undeployed from Web AS.
    That should not happen.
    The message looks like
    [permissions_collection_operator]: domain [apps//CN.com/CN Server/servlet_jsp/cn-server/root/WEB-INF/lib/log4j12.jar] not removed, because is not registered
    CN.com is the company name, cn-server the context-path.
    It seems, that Web AS logs this error for every jar file it finds in web-inf/lib and some additional things.
    How to avoid this message? How can the domain (or jar-file) be registered or what's needed?
    Surely some simple entries must be included in the ear-file... application.xml...
    application-j2ee-engine.xml...
    ... in any of those files. But where?
    Where can one obtain detail information about the log entries

    Nobody an idea?
    It must be possible to avoid those stupid log messages.
    What is needed for deploying a jar-file inside an ear-file into the famous WEB-INF/lib - directory?
    Any special steps necessary?

  • How to include external .js file into .ear file using NetBean 5.5.1?

    is it possible to include external .js file into .ear file using NetBean 5.5.1? if not, then where should I placed the external .js file and how to write the src="xxx" element? (that is , how to write the path of "xxx"?)
    I am using JBOSS 4.2.2 GA as server
    thx!!

    Even this is also not possible because, the code in that package is developed by DWR and i am just adding it to my lib folder and importing the respective classes. In the same manner i need to include the *.js* file in the JSP.It took me about 3 minutes reading through the [DWR Getting Started|http://getahead.org/dwr/getstarted] page to learn that you don't have to do any of that. Perhaps you should read that page?

  • How to Include Java sourcecode into EAR File in Web Dynpro

    Hi Everyone,
    There should be a setting in the developer studio , where in which we can include the source code into a EAR File after we build the source code.
    I am unable to get this settings.
    Please help me out
    Regards,
    Raj

    Hi,
    Well i don't think any of the source codes comes under the ear file when you deploy your application. You can see this.
    First open your project folder, here you will find the ear file.
    Open the command prompt, change the location to the place where ear file is located and then enter :
    jar xvf myearfile.ear
    This will give the extract of the ear file.
    thanks & regards,
    Manoj

  • How to make the ear file including the 3rd party jar files without menttion in the System Classpath.

    Hai Sir,
    I am facing one problme in weblogic8.1 while depolying the .EAR FILE.
    Please help me sir.
    Case1)     1) I am using the struts and log4j frameworks and 3rd party jar files with
    weblogic8.1.
         2) I make the ejbs,webapplications and 3rdparty jar files, ear file the following
    dir structure .And i mentioned the Class-path including all jar files in the MANIFEST
    OF EAR FILE.
         While deploying the ear file it is giving following error.If log4j.jar does not
    mention in the Weblogic script file
         java.lang.NoClassDefFoundError: org/apache/log4j/Priority
    at java.lang.Class.getDeclaredFields0(Native Method)
    at java.lang.Class.privateGetDeclaredFields(Class.java:1494)
    at java.lang.Class.getDeclaredFields(Class.java:1073)
    at weblogic.ejb20.deployer.EJBModule.disableImplClassLoader(EJBModule.java:1082)
    at weblogic.ejb20.deployer.EJBModule.setupEJBToImplClassDependencies(EJBModule.jav
    a:982)
    at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:419)
    at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.j
    ava:2792)
    at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.
    java:1478)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:11
    36)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:97
    5)
    at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareCon
    tainer(SlaveDeployer.java:2571)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(Sla
    veDeployer.java:2523)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeploy
    er.java:2453)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer
    .java:820)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:
    536)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java
    :494)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:
    25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
    Please provide the soluation without mentioning classpath in the weblogic script
    .How to make the EAR file incliding ejbjar,webapplication and 3rd party jar files.
    Thanks & Regards,
    ASHOK SAMRAT
    [email protected]

    Refer to the section
    Handling Utility classes
    http://dev2dev.bea.com/products/wlserver/articles/musser.jsp
    thanks,
    Deepak
    "Ashok Samrat" <[email protected]> wrote:
    >
    Hai Sir,
    I am facing one problme in weblogic8.1 while depolying the .EAR FILE.
    Please help me sir.
    Case1)     1) I am using the struts and log4j frameworks and 3rd party jar
    files with
    weblogic8.1.
         2) I make the ejbs,webapplications and 3rdparty jar files, ear file
    the following
    dir structure .And i mentioned the Class-path including all jar files
    in the MANIFEST
    OF EAR FILE.
         While deploying the ear file it is giving following error.If log4j.jar
    does not
    mention in the Weblogic script file
         java.lang.NoClassDefFoundError: org/apache/log4j/Priority
    at java.lang.Class.getDeclaredFields0(Native Method)
    at java.lang.Class.privateGetDeclaredFields(Class.java:1494)
    at java.lang.Class.getDeclaredFields(Class.java:1073)
    at weblogic.ejb20.deployer.EJBModule.disableImplClassLoader(EJBModule.java:1082)
    at weblogic.ejb20.deployer.EJBModule.setupEJBToImplClassDependencies(EJBModule.jav
    a:982)
    at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:419)
    at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.j
    ava:2792)
    at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.
    java:1478)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:11
    36)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:97
    5)
    at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareCon
    tainer(SlaveDeployer.java:2571)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(Sla
    veDeployer.java:2523)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeploy
    er.java:2453)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer
    .java:820)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:
    536)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java
    :494)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:
    25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
    Please provide the soluation without mentioning classpath in the weblogic
    script
    How to make the EAR file incliding ejbjar,webapplication and 3rd party
    jar files.
    Thanks & Regards,
    ASHOK SAMRAT
    [email protected]

  • Error while creating an EAR file in 7.1 version

    Hi All,
    While developing an Adapter module in PI 7.1 version, facing a problem while creating an EAR file.
    Using NWDS 7.1 version
    1) Have developed the code compatible to 7.1 version changes which is not throwing any error while compilation
    2) Have given the jndi info in ejb-j2ee-engine.xml
    3) Also entered info in ejb-jar.xml like
    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="ejb-jar_ID"
    version="2.1" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
    <description>EJB JAR description</description>
    <display-name>EJB JAR</display-name>
    <enterprise-beans>
    <session>
    <ejb-name>EncryptModParam</ejb-name>
    <home>com.sap.aii.af.lib.mp.module.ModuleHome</home>
    <remote>com.sap.aii.af.lib.mp.module.ModuleRemote</remote>
    <local-home> com.sap.aii.af.lib.mp.module.ModuleLocalHome</local-home>
    <local>com.sap.aii.af.lib.mp.module.ModuleLocal</local>
    <ejb-class>com.abc.encryption.EncryptModParam</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    </ejb-jar>
    Then have clicked on Build project. Its throwing the following error
    Bean Interfaces: Stateless Bean "Encryption" should have atleast one of the following interface pairs: "local" and "localhome", "home" and "remote" or service endpoint interface
    Bean Interfaces: The home interface "com.sap.aii.af.lib.mp.module.ModuleHome" cannot be found in the search path
    Bean Interfaces: The local home interface "com.sap.aii.af.lib.mp.module.ModuleLocalHome" cannot be found in the search path
    Bean Interfaces: The local interface "com.sap.aii.af.lib.mp.module.ModuleLocal" cannot be found in the search path
    Bean Interfaces: The remote interface "com.sap.aii.af.lib.mp.module.ModuleRemote" cannot be found in the search path
    Also I have included the below code in the class file
    @ejbHome <{com.sap.aii.af.lib.mp.module.ModuleHome}>
    @ejbLocal <{com.sap.aii.af.lib.mp.module.ModuleLocal}>
    @ejbLocalHome <{com.sap.aii.af.lib.mp.module.ModuleLocalHome}>
    @ejbRemote <{com.sap.aii.af.lib.mp.module.ModuleRemote}>
    @stateless
    Request to give suggestions to resolve the above problem.
    Thanks in advance.
    Ganesh

    This is what I was looking for: http://maveninjdeveloper.blogspot.com/2012/04/handle-adf-application-maven-ant.html
    It further references:
    - http://docs.oracle.com/cd/E24382_01/user.1112/e17455/deploying_apps.htm#BACIIDEJ
    - http://javaosdev.blogspot.in/2011/12/ojdeploy-documentation-for-tool.html
    The only issue now is that Oracle JDeveloper release 11.1.2.2.0 (version being used) does NOT seem to support Ant while release 11.1.2.1.0 does. This necessitates a further kluge to make things work. The amount of difference between versions of JDeveloper is quite amazing.

  • Error while deploying an ear file in the Oracle Application Server

    Hi,
    There was an existing ear deployed in the the oracle application server - 10g. We had to include some customizations so we rebuild the ear file with the new changes and tried redeploying the ear using the EM console. Getting the below error while deploying the same. Any pointers to the same would be helpful.
    Error
    An error occurred when processing the data submitted. Find the appropriate field and enter the correct information as noted next to each field.
    Archive Location - Failed in uploading archive. Invalid archive file: Jar file resourceadapter-rar.rar is missing a standard deployment located at META-INF/ra.xml
    We have not modified anything in the ra.xml nor have touched the resourceadapter-rar.rar

    Hello
    did you configure the startweblogic file as mentioned in the admin guide ?

  • Error in deploying .ear file in weblogic 6.1

    Hi
    i had deployed an ear file named ProjectBroker.ear using hte weblogic console
    and it was working fine .i had made changes to the ejb bean file and hence tried
    redeploy it,though on the console it shows that it is deployed it , i'm not able
    to access the ejb methods ,also when i start the server it gives me the following
    error ---
    <Mar 11, 2002 11:22:32 AM IST> <Error> <J2EE> <Error deploying application web-s
    ervices: Cannot deploy WebAppServletContext(5197502,web-services,/ProjectBroker)
    on myserver because WebAppServletContext(5450599,web-services,/ProjectBroker)
    i
    s already registered for path /ProjectBroker>
    java.lang.reflect.UndeclaredThrowableException: weblogic.j2ee.DeploymentExceptio
    n: Cannot deploy WebAppServletContext(5197502,web-services,/ProjectBroker) on
    my
    server because WebAppServletContext(5450599,web-services,/ProjectBroker) is alre
    ady registered for path /ProjectBroker
    could any one help me out on this issue
    Rgds
    ravi

    Hi Ivaylo,
    to answer your first question, the EAR that I am trying
    to deploy gets created as part of the publish step. When
    I look in the application.xml file of this EAR I see a
    version attribute with value of 1.4 in the application
    tag, can we assume that this implies J2EE 1.4 compliancy?
    One thing about this generated EAR is that it does not
    include any java code (VM or otherwise). When I generate
    the EAR by hand (by exporting the EJB project as an EAR
    file there is a JAR for the actual java code put in
    there, but when generating the EAR via publish there is
    only some xml and manifest stuff put in the EAR, with the
    result that it's only 2KB or so in size. I have specified
    a J2EE module dependency from the Enterprise Application
    project to the EJB project, but is there something else I
    need to do to ensure that the java code (jar) gets
    included in the EAR of the Enterprise Application when
    attempting to deploy via publish?
    Thanks for the other suggest, "Import J2EE Archive".
    However, I am having difficulty locating this button.
    When I look at the "Deploy View" window I see on the left
    the Workspace and External Deployable Archives trees,
    and on the right there are "Setting for Updating
    SCAs/SDAs" radio buttons, as well as "Error Strategy"
    radio buttons, but no "Import J2EE Archive" button.
    Thanks for the info about SDM by the way, I was wondering
    why I was not able to launch it (there is still a remote
    gui shortcut, which should probably go away).

  • Error in deploying, EAR file does not contain SAP_MANIFEST.MF

    I just upgraded to SAP Netweaver Developer Studio 7.1 from 7.0, and the process of creating and deploying an EJB archive seems to be quite different. Here are the steps I am following:
    (1) I create and build an EJB Project called foo.
    (2) Export the EJB Project foo as an EJB JAR (not sure if this is necessary)
    (3) Create an Enterprise Applications project called fooEAR, with target runtime set to SAP server. When I am prompted for J2EE Modules to add, I select foo (created in step (1)).
    (4) Export the EAR project fooEAR as an EAR file. When I am prompted for which EAR application I choose fooEAR.
    (5) Try to deploy the EAR created in (4) using Deploy View -> External Deployable Archives -> Add, then choose the fooEAR.ear as the target. But I get an error message:
    Wrong SDA/SCA archive
    Error while loading archive ...
    Archive has no entry META-INF/SAP_MANIFEST.MF
    I looked inside fooEAR.ear, and there is no SAP_MANIFEST.MF file. How can I create an EAR that has such a file ?

    Hi Ivaylo,
    to answer your first question, the EAR that I am trying
    to deploy gets created as part of the publish step. When
    I look in the application.xml file of this EAR I see a
    version attribute with value of 1.4 in the application
    tag, can we assume that this implies J2EE 1.4 compliancy?
    One thing about this generated EAR is that it does not
    include any java code (VM or otherwise). When I generate
    the EAR by hand (by exporting the EJB project as an EAR
    file there is a JAR for the actual java code put in
    there, but when generating the EAR via publish there is
    only some xml and manifest stuff put in the EAR, with the
    result that it's only 2KB or so in size. I have specified
    a J2EE module dependency from the Enterprise Application
    project to the EJB project, but is there something else I
    need to do to ensure that the java code (jar) gets
    included in the EAR of the Enterprise Application when
    attempting to deploy via publish?
    Thanks for the other suggest, "Import J2EE Archive".
    However, I am having difficulty locating this button.
    When I look at the "Deploy View" window I see on the left
    the Workspace and External Deployable Archives trees,
    and on the right there are "Setting for Updating
    SCAs/SDAs" radio buttons, as well as "Error Strategy"
    radio buttons, but no "Import J2EE Archive" button.
    Thanks for the info about SDM by the way, I was wondering
    why I was not able to launch it (there is still a remote
    gui shortcut, which should probably go away).

Maybe you are looking for

  • Payment Run Output

    Hello Experts, I am looking at the proposal of a previous payment run - Is there any way i can download it to an excel ? All answers would be duly rewarded with points. Thanks, Nandita

  • RCIPE00: GLT2 201 Balancing field bus.area in line item not filled

    Dear Guru, We transfer posting payroll to FI with journal Dr    Vendor Non Trade 1 Dr    Vendor Non Trade 2 Dr    Vendor Non Trade 3 Cr    Cross welfare (balance sheet acct.)    Bus.area SBY Cr    Cross welfare (balance sheet acct.)    Bus.area CMO T

  • XDK92040 + OC4J 9.0.3 problems

    I have XDK92040 + OC4J9.0.3 on a Win2k OS, when I try URL="http://localhost:8888/xsql/index.html" on my IE6.0 browser, I obtain a html page with two frames with the same error: XSQL-017: Unexpected Error Occurred java.lang.NullPointerException at ora

  • Updating a management plug-in

    Hi, I would like to know is there a way to update a deployed management plug-in? Thanks in advance.

  • FireFox Sync No longer shows at the bottom of the screen, just in tools

    Foxfire Sync dose not show at the bottom of the page == This happened == Every time Firefox opened == 1.4