Problems deploying a simple EJB

I am trying to deploy a simple EJB on the 8.1.5. The bean only owns a single method that needs a unique parameter.
No problems with compilation of source bean, home and remote interfaces, whatever the type of this parameter is.
But when I try to deploy the jar on the server, I only succeed if the parameter of my method is a simple type (int, String ...).
If I try the same passing a complex type (here a oracle.xml.parser.v2.XMLDocument type), I encounter this message from the deployejb tool :
Generating EJBHome and EJBObject on the server...
Compilation errors in oracle/aurora/ejb/gen/test_myFluxInsert/EjbObject_FluxInsert:ORA-29535: source requires recompilationjava/lang/Object: Authorization error for referenced class Oracle/xml/parser/v2/XMLDocument.java/lang/Object: Authorization error for referenced class oracle/xml/parser/v2/XMLDocument.oracle/aurora/ejb/gen/test_myFluxInsert/EjbObject_FluxInsert:50: Class oracle.xml.parser.v2.XMLDocument not found in type declaration.
public java.lang.String insereFlux (oracle.xml.parser.v2.XMLDocument arg0)
^ Info: 3 errors
And if I use an int instead of the XMLDocument parameter, everithing's right.
Can anybody submit a no-paranormal solution ?
Thanks.
GH

Parameter passing in EJB must implement Serializable. One way to solve this is:
1. Define a new class which implements
Serializable.
2. Place whatever you want to pass inside
this class.
3. Now use the new class as your parameter.
eg.
public class Params implements java.io.Serializable {
String p1;
XmlDocmuent xdoc;,
etc, etc
Your program now have to use the class Params for parameter passing.
Hope this helps.
Tam
null

Similar Messages

  • Problems deploying a simple EJB on Weblogic 8.1 using JDeveloper

    Hey guys,
    Title says it all. First I had one problem in that I could not test the connection to the Weblogic server. I moved the weblogic.jar file into the lib/ext folder and that test worked then. After that I wrote the EJB...a very simple one...and I followed the http://dev2dev.bea.com/pub/a/2006/01/wls-jdeveloper.html?page=1 tutorial so far. But when it came time to deploy the ejb to the server, I am getting this funky error:
    ERROR: ejbc found errors while processing the descriptor for C:\oracle\jdeveloper\jdev\mywork\WeblogicApp\EchoEJB\deploy\ejb1.jar:
    ERROR: Error from ejbc: Error processing 'META-INF/ejb-jar.xml': XML document does not appear to contain a properly formed DOCTYPE header
    Honestly I am confused now...any one encounter that error?
    Thanks for all replies.
    Cheers

    So I added the DOCTYPE and now I get another error. And that is as follows:
    ERROR: Error from ejbc: Error parsing file 'META-INF/ejb-jar.xml' at line: 5 column: 219. Attribute "xmlns:xsi" must be declared for element type "ejb-jar".
    It seems that when the EJB is created, then it automatically creates the appropriate ejb-jar.xml and for some reason I guess the one it is creating this time is not good enough for Weblogic because first the DOCTYPE was missing and then after inserting the DOCTYPE I am getting the above error. Any help would be appreciated. This is the first time I am using Weblogic and this is a rather disheartening amount of progress I have made since last night! ;(
    Thanks in advance for any help. If I am doing something silly please point it out so I can learn!
    Cheers,
    Surya

  • Error in deploying a simple EJB 3.0

    Hi ,
    I am getting the following error while deploying my simple ejb of version 3.0 in Weblogic 9.2.
    Exception preparing module: EJBModule(build) [EJB:011023]An error occurred while reading the deployment descriptor. The error was: Error processing annotations: java.lang.NullPointerException.
    During my evaluation of Weblogic 9.2 for EJB 3.0 , I have got the following questions.
    EJB Specification states that EJB's in EJB 3.0 can be developed and deployed without the need of deployment descriptors. I have created a simple EJB with two file Env.java and EnvBean.java and the source code is given below.
    a) I just complied these class files and when I was trying to deploy without ejb-jar.xml and weblogic-ejb-jar.xml, the console was not at all allowing me to deploy.Why is this so?
    b) After I created a META-INF file under root of classes directory by placing ejb-jar.xml with empty <enterprise-beans> element, console was allowing me to deploy with errors in parsing ejb-jar.xml. The error was either session/entity/mdb is a required under <enterprise-beans> element. Why is this required when there are several examples stating <enterprise-beans> element can be empty.
    c) Later I updated ejb-jar.xml with <session> element under <enterprise-beans> with the following values. I got the above error when deployed with this change.
    I had been struggling to deploy this simple bean for almost a day.Pleas point me if there is any documentation that solves my stated problem or if there is a solution.Thanks in advance.
    regards
    Karim
    ejb-jar.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar xmlns="http://java.sun.com/xml/ns/javaee" version="3.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
    <enterprise-beans>
    <session>
    <description>This is the stateless ejb</description>
    <display-name>Env Bean</display-name>
    <ejb-name>EnvBean</ejb-name>
    </session>
    </enterprise-beans>
    </ejb-jar>
    Env.java
    package examples ;
    public interface Env {
    public void display();
    EnvBean.java
    package examples;
    import javax.ejb.Remote;
    import javax.ejb.Stateless;
    @Stateless
    @Remote(Env.class)
    public class EnvBean implements Env {
    public void display() {
    System.out.println("Welcome to EJB 3.0");
    }

    Presumably you're using the EJB3 tech preview, and not a vanilla WebLogic 9.2 install, right?
    Can you post the full stack trace?
    -Patrick

  • Proble with deployment of simple ejb, help me please

    Hi there wnat to deploy a simple ejb bean is there any step by step process how to deploy a bean in weblogic server6.0 version please help me, I could able to create ejb-jar file but dont know how to deploy it on to the server, please help me, with regards and thanks in advance Raasi

    set STARMODE=false in config/mydomain/startWebLogic script file to start WebLogic server in development mode.
    Copy Ejb jar file to config/mydomain/applications directory.

  • Problems deployment servlet and ejb

    Hello,
              I'm Having the following problem hopefully someone can help me.
              I'm working in a visualcafe 4.5 project and I have to external jar
              files
              one containing an EJB the other cotaining some classes.
              testservlet.war : deployed by VC
              ejb.jar
              xxx.jar
              Deploying from VC is no problem but when I want to start the
              server it can not find some classes which are in the xxx.jar file
              containing the classes. But when I open the xxx.jar I see that they
              are located in WEB-INF/classes.
              My first Idea is that it could be a classloader problem
              In the startweblogic.cmd I add the testservlet.war to the classpath
              (Project options)
              In the ejbc additional classpath entrys of the testservlet.jar I add
              the xxx.jar.
              In the server additional classpath I added both ejb.jar and the
              xxx.jar
              can someone tell me where it is going wrong???
              Thanks
              Oskar
              

    Depoly them both in an EAR file. You will have to edit the Class-Path: property in each of the MANIFEST.MF files to make the proper path to the Singleton visible to all three, as well.

  • Error while deploy a simple EJB

    Hi , I'm having a problem while trying to deploy a ear [witch only contains a EJB ] in weblogic 10.01 AKA 10mp1 ,
    java.lang.NoClassDefFoundError
         at org.apache.log4j.Logger.getLogger(Logger.java:104)
         at MyClass.<clinit>(MyClass.java:62)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at java.lang.Class.newInstance0(Class.java:354)
         at java.lang.Class.newInstance(Class.java:307)
         at weblogic.ejb.container.manager.BaseEJBManager.createNewBeanInstance(BaseEJBManager.java:222)
    A little more info
    MyClass.java:62 = private static Logger log = Logger.getLogger(MyClass.class);
    I also have try
    MyClass.java:62 = private static Logger log = Logger.getRootLogger();
    Both with the same result.
    My Log4j properties are simple
    #==================================================================
    #std-out Logger Configuration
    #==================================================================
    log4j.appender.std-out=org.apache.log4j.ConsoleAppender
    log4j.appender.std-out.target=System.out
    log4j.appender.std-out.layout=org.apache.log4j.PatternLayout
    log4j.appender.std-out.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss,SSS} [%t] %-5p %c %x - %m\n
    log4j.rootCategory=${root.log}, std-out
    Also have Try Hard Code Properties , but having the same error.
    static {
         PatternLayout out=new PatternLayout("%d{dd MMM yyyy HH:mm:ss,SSS} [%t] %-5p %c %x - %m\n");     
         ConsoleAppender appender=new ConsoleAppender(out);
         appender.setTarget(ConsoleAppender.SYSTEM_OUT);     
         Logger.getRootLogger().addAppender(appender);
    I'm aware of a "bug" of Weblogic 9.2 to 10.02 that weblogic adds first his jars instead the web-inf\lib jars I have added this xml's to the weblogic-application.xml
         <wls:prefer-application-packages>
              <wls:package-name>org.apache.log4j.*</wls:package-name>
         </wls:prefer-application-packages>
    Please note a add the weblogic-application.xml in ejb META-INF folder , as well in the EAR META-INF folder
    That doesn't resolve my problem has you can imagine already
    I'm using log4j 1.2.15 and log4j extras both download from maven repository
    I'll really appreciate some sort of guide since this problem is really annoying me
    Regards
    Carlos Ortiz
    PS. If you need more info , please ask I will facilitate as much as I can

    Yes I Have double check
    Edited by: khrono on Jul 20, 2009 8:32 AM

  • Problems deploying a simple Infobus Applet

    Hi,
    I am testing the infrastructure required to build an Infobus
    Applet for our Web-based application using the Business Component
    Framework in JDeveloper 3.0.
    I have created a simple project based on the Scott schema, which
    uses the Java Business Object framework to define Entity Objects,
    Views, etc. for the Dept and Emp tables.
    I have then created, using the Wizard, an Infobus Data Form to
    create a master-detail Applet to display Employees within a
    Department based on the above mentioned View Object. This works
    fine when running within JDeveloper3.
    However, when I try to deploy the applet to our Oracle
    Application Server as a simple HTML file and JAR file (not using
    EJB, etc. as we currently only have OAS 4.0.7.1 - waiting for OAS
    4.0.8 to be available for download), the applet fails to start.
    I have installed the Java Plug-in 1.2.2 from Sun as documented as
    I'm using Swing controls.
    After much frustration with the online 'Help', I managed to
    create a deployment profile which included the appropriate
    archives (See Packaging Source and Deployment Files in Help -
    still refers to 'Rules' and 'Sources' pages ala JDeveloper 2 NOT
    3.0).
    Using the Console feature of the Java Plug-in, I was able to see
    the progress of the Applets classes being loaded. It gets to the
    point where it's trying to load the ResTable classes in
    dacf.zip as found in the path:
    oracle\dacf\control\swing\find
    At this point, it just stops and nothing else happens.
    Do I need to explicitly localize my Infobus Applet because I'm in
    the United Kingdom and my PC has that as it's Regional Setting?
    That is, do I need to define a ResTable_en_GB version of this
    class?
    Also, in attempting to create a localized version, I had errors
    with JDeveloper stating that the text for the FIND_HELP_MESSAGE
    exceeds the limit of JDeveloper (meaning that it's too long and I
    needed to replace it with a shorter string). Could this be the
    problem in the first place?
    I have not been able to get the Applet to get beyond this point,
    although I'm still trying the localization to Great Britain.
    I know this is already a LONG email, but here is an extract from
    the Java Console after which nothing else happens:
    CacheHandler file name: null
    Opening
    http://dell_server.wsp.co.uk:4005/oracle/dacf/control/swing/find/
    ResTable_en.properties no proxy
    Opening
    http://dell_server.wsp.co.uk:4005/oracle/dacf/control/swing/find/
    ResTable_en.properties with cookie
    "SITESERVER=ID=8e93834f82ef0710b78e5a4b087d6eed".
    Regards
    Gene Schneider
    null

    Parameter passing in EJB must implement Serializable. One way to solve this is:
    1. Define a new class which implements
    Serializable.
    2. Place whatever you want to pass inside
    this class.
    3. Now use the new class as your parameter.
    eg.
    public class Params implements java.io.Serializable {
    String p1;
    XmlDocmuent xdoc;,
    etc, etc
    Your program now have to use the class Params for parameter passing.
    Hope this helps.
    Tam
    null

  • Problem in developing a simple ejb app

    Hi readers,
    i am new to ejb technology, so have doubt in developing and deploying a simple ejb application
    i am using EJB 2.0, JBOSS 4.0 , eclipse 3.2 and java 1.5
    i searched in the net , got through many materials that can guide to develop one of it.
    all are using higher versions of the above, i mean, using ejb 3.0 or using xdoclet etc.
    i am need of material which guides me to develop and deploy the ejb application using the same versions of softwares step by step.
    please help me in this

    Hi readers,
    i am new to ejb technology, so have doubt in developing and deploying a simple ejb application
    i am using EJB 2.0, JBOSS 4.0 , eclipse 3.2 and java 1.5
    i searched in the net , got through many materials that can guide to develop one of it.
    all are using higher versions of the above, i mean, using ejb 3.0 or using xdoclet etc.
    i am need of material which guides me to develop and deploy the ejb application using the same versions of softwares step by step.
    please help me in this

  • Problem deploying EJBs

    Hi,
    I am deploying the examples EJBs (where the EJB is the "<name>EJB.sqlj", the compilation seems to be fine, but I have some problems when deploying, the message is as following:
    Exception in thread "main" java.lang.ClassCastException: com.sun.CORBA.iiop.ORB
    at oracle.aurora.jndi.orb_dep.IRFinder.getObject(IRFinder.java:24)
    at oracle.aurora.jndi.orb_dep.IRFinder.initialReferences(IRFinder.java:7
    8)
    at oracle.aurora.jndi.sess_iiop.SessionCtx.initialContext(SessionCtx.jav
    a:499)
    at oracle.aurora.jndi.sess_iiop.SessionCtx.<init>(SessionCtx.java:35)
    at oracle.aurora.jndi.sess_iiop.ServiceCtx.createSession(ServiceCtx.java
    :130)
    at oracle.aurora.jndi.sess_iiop.ServiceCtx.login(ServiceCtx.java:295)
    at oracle.aurora.server.tools.sess_iiop.ToolImpl.initializeSession(ToolI
    mpl.java:101)
    at oracle.aurora.server.tools.sess_iiop.ToolImpl.parseStdArgs(ToolImpl.j
    ava, Compiled Code)
    at oracle.aurora.server.tools.sess_iiop.ToolImpl.invoke(ToolImpl.java:12
    1)
    at oracle.aurora.ejb.deployment.GenerateEjb.main(GenerateEjb.java:445)
    I am running Oracle 8.1.5, have already installed the new transator, it works for the other examples, as well as for the EJBs, but I cannot deploy it...
    When I try to check the jar with the deployment tool provided by java, it is telling me that the jar is invalid?
    Any comments will be welcome...
    Regards
    GOD BLESS
    Chris
    null

    Raghu
    Indeed that was the problem, and thanks to you I could successfully deploy my EJBs to OC4J. But now I have other problem.
    As I said, I am writing a simple app where a Java client access a EJB in OC4J, running both in the same machine. Below is part of the code of the client:
    package seg;
    import java.rmi.*;
    public class GrupoCliente {
    public GrupoCliente() {
    public static void main(String[] args) {
    try {
    GrupoHome home = (GrupoHome)Naming.lookup("Grupo");
    I am getting this error when I run it:
    java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
         java.net.ConnectException: Connection refused: connect
    What am I missing now? Furthermore, how I control which clients will be able to access which EJBs in OC4J (authentication)? It seems to me that this is a security-related problem...
    Thanks again!
    Luis Cabral

  • Problems deploying an EJB....

    When attempting to deploy a very simple EJB using JDeveloper 3.2.2 onto a 8.1.7 database I'm getting the following error.
    Loading EJB Jar file and Comm Stubs Jar file...done
    Generating EJBHome and EJBObject on the server...
    Message [IOEXCEPTION_DESERIALIZING] not found in 'oracle.aurora.ejb.deployment.server.Messages'.
    *** Errors occurred while deploying the EJB to 8i JVM ***
    Anyone got any ideas....
    Cheers
    Matt

    Apologies for the post - I've found the problem/solution on another forum.
    http://technet.oracle.com:89/ubb/Forum18/HTML/001116.html
    Cheers
    Matt
    null

  • Unable to deploy simple EJB example with J2EE Ref. Impl.

    Hi there,
    I'm new to EJB development so please bare with me. I've written a simple EJB, taken from Enterprise JavaBeans by Richard Monson-Haefel (O'Reilly). I can compile the code without problems, load it into the J2EE deployment tool (I'm using version 1.3.1 of the J2EE Reference Implementation), and have succesfully set up the data source and SQL commands for each persistent field.
    When it comes to deployment, I'm stumped with the following error:
    java.rmi.RemoteException: Error processing ejb jar: Compilation failed.
    Here's the stacktrace in the error logs:
    Compilation failed.
         at com.sun.ejb.codegen.GeneratorDriver.compileClasses(GeneratorDriver.java:232)
         at com.sun.ejb.codegen.GeneratorDriver.preDeploy(GeneratorDriver.java:610)
         at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployEjbs(JarInstallerImpl.java:707)
         at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployApplication(JarInstallerImpl.java:221)
         at org.omg.stub.com.sun.enterprise.tools.deployment.backend._JarInstallerImpl_Tie._invoke(Unknown Source)
         at com.sun.corba.ee.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:350)
         at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:250)
         at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:79)
         at com.sun.corba.ee.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:104)Here's the source:
    ==============================CabinHome.java=========================
    package com.titan.cabin;
    import java.rmi.RemoteException;
    import javax.ejb.CreateException;
    import javax.ejb.FinderException;
    public interface CabinHome extends javax.ejb.EJBHome {
      public Cabin create (int d) throws CreateException, RemoteException;
      public Cabin findByPrimaryKey (CabinPK pk) throws FinderException;
    }================================CabinBean.java========================
    package com.titan.cabin;
    import javax.ejb.EntityContext;
    public class CabinBean implements javax.ejb.EntityBean {
      public int id;
      public String name;
      public int deckLevel;
      public int ship;
      public int bedCount;
      public CabinPK ejbCreate (int id) {
        this.id = id;
        return null;
      public void ejbPostCreate (int id) {
      public String getName () {
        return name;
      public int getShip () {
        return ship;
      public int getDeckLevel () {
        return deckLevel;
      public int getBedCount () {
        return bedCount;
      public void setName (String str) {
        this.name = str;
      public void setShip (int s) {
        this.ship = s; 
      public void setDeckLevel (int d) {
        this.deckLevel = d;
      public void setBedCount (int c) {
        this.bedCount = c;
      public void setEntityContext (EntityContext ctx) {}
      public void unsetEntityContext () {}
      public void ejbActivate() {}
      public void ejbPassivate () {}
      public void ejbLoad () {}
      public void ejbStore () {}
      public void ejbRemove () {}
    }===============================Cabin.java============================
    package com.titan.cabin;
    import java.rmi.RemoteException;
    public interface Cabin extends javax.ejb.EJBObject {
      public String getName() throws RemoteException;
      public void setName(String str) throws RemoteException;
      public int getDeckLevel() throws RemoteException;
      public void setDeckLevel (int level) throws RemoteException;
      public int getShip() throws RemoteException;
      public void setShip (int sp) throws RemoteException;
      public int getBedCount() throws RemoteException;
      public void setBedCount() throws RemoteException;
    }============================CabinPK.java=============================
    package com.titan.cabin;
    public class CabinPK implements java.io.Serializable {
      public int id;
      public int hashCode() {
        return id;
      public boolean equals (Object obj) {
        if (obj instanceof CabinPK) {
          return (id == ((CabinPK) obj).id);
        return false;
    }Has anyone else experienced anything similar, or is there something I'm obviously doing wrong?
    Thanks for your help.
    Matt

    Here's the ejb-jar.xml:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!-- Created by matt on 10 September 2002, 14:32 -->
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN"
        "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">
    <ejb-jar>
        <enterprise-beans>
            <entity>
                <description>
                    This Cabin enterprise bean entity represents a cabin on a cruise ship.
                </description>
                <ejb-name>CabinBean</ejb-name>
                <home>com.titan.cabin.CabinHome</home>
                <remote>com.titan.cabin.Cabin</remote>
                <ejb-class>com.titan.cabin.CabinBean</ejb-class>
                <persistence-type>Container</persistence-type>
                <prim-key-class>com.titan.cabin.CabinPK</prim-key-class>
                <reentrant>False</reentrant>
                <cmp-field><field-name>id</field-name></cmp-field>
                <cmp-field><field-name>name</field-name></cmp-field>
                <cmp-field><field-name>deckLevel</field-name></cmp-field>
                <cmp-field><field-name>ship</field-name></cmp-field>
                <cmp-field><field-name>bedCount</field-name></cmp-field>
            </entity>
        </enterprise-beans>
        <assembly-descriptor>
            <security-role>
                <description>
                    This role represents everyone who is allowed
                    full access to the cabin bean.
                </description>
                <role-name>everyone</role-name>
            </security-role>
            <method-permission>
                <role-name>everyone</role-name>
                <method>
                    <ejb-name>CabinBean</ejb-name>
                    <method-name>*</method-name>
                </method>
            </method-permission>
            <container-transaction>
                <method>
                    <ejb-name>CabinBean</ejb-name>
                    <method-name>*</method-name>
                </method>
                <trans-attribute>Required</trans-attribute>
            </container-transaction>
        </assembly-descriptor>
    </ejb-jar>Thanks...

  • Help: Problem in running a simple EJB client

    Hi All,
    I have just started learning EJB and I am facing an issue in running a client for the EJB I developed (a "Hello World" EJB)
    I have deployed my application in Sun's reference implementation of j2ee server. I have the following client code through which I intend to access EJB methods
    // EJB client code in main()
    Context ctx = new InitialContext();
    Object hwobj = ctx.lookup("HelloWorldApp");
    HelloWorldHome hworldHome = (HelloWorldHome)
    PortableRemoteObject.narrow(hwobj,HelloWorldHome.class); // exception here
    HelloWorld hworld = hworldHome.create();
    String msg = hworld.sayHelloWorld();
    System.out.println(msg);
    When I am running my client I am getting the following exception. Can anyone tell me why ?
    java.lang.ClassCastException
    at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:296)
    at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
    at HelloWorldClient.main(HelloWorldClient.java:13)
    Thanks
    Ratheesh

    * I found the solution for this . Add j2ee.jar and Client jar returned by deploytool [ if we check return client jar ] to classpath when running client .
    * Then I got CORBA_NO_PERMISSION error . After searching in forum , I found the solution. Posting
    Forum Home > Enterprise JavaBeans
    Topic: [ J2EE RI Server ] CORBA NO_PERMISSION 0
    Welcome ratheeshpai!
    Search Forum
    Not watching this topic.
    This topic has 4 replies on 1 page (Most recent message: Nov 19, 2002 7:59 AM)
    [ J2EE RI Server ] CORBA NO_PERMISSION 0
    Author: NicholasHsiao Oct 28, 2001 5:51 AM
    Hi,
    I was trying to deploy one simple session bean into J2EE RI Server. It works fine. And I wrote one client to access this session bean, it show me
    java.rmi.AccessException: CORBA NO_PERMISSION 0 No; nested exception is:
    org.omg.CORBA.NO_PERMISSION: minor code: 0 completed: No
    Context ic = null;
    try
    ic = new InitialContext();
    catch(Exception e)
    System.out.println("1: "+e.toString());
    This exception is happend when I try to lookup the jndi name
    This error message is happend only on J2EE 1.3 (1.3_01) . If I downgrade to J2EE 1.3Beta or even 1.2, everything would be okay. Any one know how to solve such problem ??
    Re: [ J2EE RI Server ] CORBA NO_PERMISSION 0
    Author: cdunn5
    In Reply To: [ J2EE RI Server ] CORBA NO_PERMISSION 0 Oct 31, 2001 10:04 PM
    Reply 1 of 4
    hi,
    I don't know the solution but I have the exact same problem. I see your message was posted in October, have you found any solutions yet?
    Re: [ J2EE RI Server ] CORBA NO_PERMISSION 0
    Author: scottiep
    In Reply To: [ J2EE RI Server ] CORBA NO_PERMISSION 0 Nov 22, 2001 11:21 AM
    Reply 2 of 4
    Da:Frederik Hansen ([email protected])
    Message 2 in thread
    Soggetto:Re: J2EE - NO_PERMISSION
    Newsgroups:dk.edb.programmering.java
    View this article only
    Data:2001-11-10 03:32:12 PST
    For at svare p� mit eget sp�rgsm�l: Access and Security Issues Q1: Some applications that ran under J2EE SDK 1.3
    beta 2 stop running under the 1.3 FCS release with the
    following message: java.rmi.AccessException: CORBA
    NO_PERMISSION 0 No. Why does this happen and what
    can be done about it? When your application ran under the 1.3 beta 2
    version of the reference implementation (RI), security permissions may
    not have
    been checked. For example, the beta 2 RI allowed
    calls to enterprise beans that required username-password permission,
    even
    when the client provided no username-password
    information. With 1.3 FCS release, the J2EE SDK became strict
    about checking adherence to the security policies of J2EE components. How can you make your application run under the
    FCS release? 1.If you don't want security checks, do the
    following: Use the deploytool to build a deployment
    descriptor that does not require a strict security policy: Under the Security screen of the EJB wizard
    or the Security tab of the EJB inspector in deploytool, click
    "Deployment
    Settings..". Under the box "Client
    Authentication", make sure "Support Client Choice" is checked instead of
    "Certificate"
    or "Password". 2.To require the application pass security
    checks to run, do the following: When an enterprise bean specifies
    "Certificate" or "Password" as the method of Client Authentication, use
    a J2EE
    application client, instead of a stand-alone
    Java application, to access the bean. You will need to login as a valid
    J2EE
    user.
    By : scottiep
    Thanks
    Ratheesh

  • Always fail to deploy to server when (Create a Simple EJB Session Bean )

    Hi,
    I'm trying the "Oracle JDeveloper 11g Tutorials" - "Create a Simple EJB Session Bean", I just follow the instructions in that page. But when I tried to run it, it always failed. Can anyone help me to have a look. I paste the log below. thank you.
    There's an error in the log "java.lang.ClassNotFoundException: oracle.security.jps.wls.listeners.JpsApplicationLifecycleListener". but I don't know what's that meaning.
    E:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.56\DefaultDomain\bin\startWebLogic.cmd
    [waiting for the server to complete its initialization...]
    JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m
    WLS Start Mode=Development
    CLASSPATH=;e:\Oracle\MIDDLE~1\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;e:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;e:\Oracle\MIDDLE~1\patch_cie660\profiles\default\sys_manifest_classpath\weblogic_patch.jar;e:\Oracle\MIDDLE~1\JDK160~1\lib\tools.jar;E:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;E:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;e:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.0.0.jar;E:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;e:\Oracle\MIDDLE~1\modules\ORGAPA~1.5/lib/ant-all.jar;e:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;;E:\Oracle\MIDDLE~1\WLSERV~1.3\common\eval\pointbase\lib\pbclient57.jar;E:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar;;
    PATH=e:\Oracle\MIDDLE~1\patch_wls1030\profiles\default\native;e:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\native;e:\Oracle\MIDDLE~1\patch_cie660\profiles\default\native;E:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;E:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;e:\Oracle\MIDDLE~1\modules\ORGAPA~1.5\bin;e:\Oracle\MIDDLE~1\JDK160~1\jre\bin;e:\Oracle\MIDDLE~1\JDK160~1\bin;C:\oracle\product\10.2.0\client_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;G:\D\JACKYH\Installed\apache-ant-1.7.1\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\CollabNet Subversion;U:.;V:.;E:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8
    * To start WebLogic Server, use a username and *
    * password assigned to an admin-level user. For *
    * server administration, use the WebLogic Server *
    * console at http:\\hostname:port\console *
    starting weblogic with Java version:
    java version "1.6.0_05"
    Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
    Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode)
    Starting WLS with line:
    e:\Oracle\MIDDLE~1\JDK160~1\bin\java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m -DproxySet=false -Djbo.34010=false -Xverify:none -da -Dplatform.home=E:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=E:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=E:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=e:\Oracle\MIDDLE~1\patch_wls1030\profiles\default\sysext_manifest_classpath;e:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sysext_manifest_classpath;e:\Oracle\MIDDLE~1\patch_cie660\profiles\default\sysext_manifest_classpath -Dweblogic.Name=DefaultServer -Djava.security.policy=E:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy weblogic.Server
    <12/11/2008 10:54:31 AM EST> <Notice> <WebLogicServer> <BEA-000395> <Following extensions directory contents added to the end of the classpath:
    E:\Oracle\Middleware\patch_wls1030\profiles\default\sysext_manifest_classpath\weblogic_ext_patch.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\beehive_ja.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\beehive_ko.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\beehive_zh_CN.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\beehive_zh_TW.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_ja.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_ko.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_zh_CN.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_zh_TW.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\testclient_ja.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\testclient_ko.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\testclient_zh_CN.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\testclient_zh_TW.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_ja.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_ko.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_zh_CN.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_zh_TW.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\workshop_ja.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\workshop_ko.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\workshop_zh_CN.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\workshop_zh_TW.jar>
    <12/11/2008 10:54:32 AM EST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 10.0-b19 from Sun Microsystems Inc.>
    <12/11/2008 10:54:32 AM EST> <Info> <Management> <BEA-141107> <Version: WebLogic Server Temporary Patch for CR380042 Thu Sep 11 13:33:40 PDT 2008
    WebLogic Server Temporary Patch for 7372756 Fri Sep 12 17:05:44 EDT 2008
    WebLogic Server 10.3 Mon Aug 18 22:39:18 EDT 2008 1142987 >
    <12/11/2008 10:54:33 AM EST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <12/11/2008 10:54:33 AM EST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
    <12/11/2008 10:54:34 AM EST> <Notice> <Log Management> <BEA-170019> <The server log file E:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.56\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log is opened. All server side log events will be written to this file.>
    <12/11/2008 10:54:36 AM EST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    <12/11/2008 10:54:38 AM EST> <Warning> <Deployer> <BEA-149617> <Non-critical internal application uddi was not deployed. Error: [Deployer:149158]No application files exist at 'E:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\uddi.war'.>
    <12/11/2008 10:54:38 AM EST> <Warning> <Deployer> <BEA-149617> <Non-critical internal application uddiexplorer was not deployed. Error: [Deployer:149158]No application files exist at 'E:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\uddiexplorer.war'.>
    <12/11/2008 10:54:39 AM EST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
    <12/11/2008 10:54:39 AM EST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <12/11/2008 10:54:39 AM EST> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
    <12/11/2008 10:54:39 AM EST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <12/11/2008 10:54:39 AM EST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    <12/11/2008 10:54:39 AM EST> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 127.0.0.1:7101 for protocols iiop, t3, ldap, snmp, http.>
    <12/11/2008 10:54:39 AM EST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 192.168.12.54:7101 for protocols iiop, t3, ldap, snmp, http.>
    <12/11/2008 10:54:39 AM EST> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "DefaultServer" for domain "DefaultDomain" running in Development Mode>
    <12/11/2008 10:54:39 AM EST> <Warning> <Server> <BEA-002611> <Hostname "jackyh.dst.com.au", maps to multiple IP addresses: 192.168.12.54, 127.0.0.1>
    <12/11/2008 10:54:39 AM EST> <Warning> <Server> <BEA-002611> <Hostname "localhost", maps to multiple IP addresses: 192.168.12.54, 127.0.0.1>
    <12/11/2008 10:54:39 AM EST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <12/11/2008 10:54:39 AM EST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    DefaultServer startup time: 13829 ms.
    DefaultServer started.
    [Running application SessionEJB on Server Instance DefaultServer...]
    ---- Deployment started. ---- 12/11/2008 10:54:43
    Target platform is (Weblogic 10.3).
    Running dependency analysis...
    2008-11-12 10:54:43.882: Writing EJB JAR file to E:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.56\o.j2ee\drs\SessionEJB\SessionEJB-Project1-ejb
    2008-11-12 10:54:43.914: Wrote EJB JAR file to E:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.56\o.j2ee\drs\SessionEJB\SessionEJB-Project1-ejb
    2008-11-12 10:54:44.148: Writing EAR file to E:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.56\o.j2ee\drs\SessionEJB
    2008-11-12 10:54:44.164: Wrote EAR file to E:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.56\o.j2ee\drs\SessionEJB
    Deploying Application...
    <12/11/2008 10:54:46 AM EST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1226447686226' for task '0'. Error is: 'weblogic.management.DeploymentException: '
    weblogic.management.DeploymentException:
         at weblogic.application.internal.flow.BaseLifecycleFlow$CreateListenerAction.run(BaseLifecycleFlow.java:171)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.application.internal.flow.BaseLifecycleFlow$BaseAction.invoke(BaseLifecycleFlow.java:99)
         at weblogic.application.internal.flow.HeadLifecycleFlow.createListener(HeadLifecycleFlow.java:117)
         Truncated. see log file for complete stacktrace
    java.lang.ClassNotFoundException: oracle.security.jps.wls.listeners.JpsApplicationLifecycleListener
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:283)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:176)
         Truncated. see log file for complete stacktrace
    >
    <12/11/2008 10:54:46 AM EST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'SessionEJB'.>
    <12/11/2008 10:54:46 AM EST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.management.DeploymentException:
         at weblogic.application.internal.flow.BaseLifecycleFlow$CreateListenerAction.run(BaseLifecycleFlow.java:171)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.application.internal.flow.BaseLifecycleFlow$BaseAction.invoke(BaseLifecycleFlow.java:99)
         at weblogic.application.internal.flow.HeadLifecycleFlow.createListener(HeadLifecycleFlow.java:117)
         Truncated. see log file for complete stacktrace
    java.lang.ClassNotFoundException: oracle.security.jps.wls.listeners.JpsApplicationLifecycleListener
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:283)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:176)
         Truncated. see log file for complete stacktrace
    >
    [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application SessionEJB on DefaultServer.: .
    weblogic.management.DeploymentException:
    #### Deployment incomplete. #### 12/11/2008 10:54:46
    oracle.jdeveloper.deploy.DeployException
         at oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer.doDeploymentAction(Jsr88RemoteDeployer.java:247)
         at oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer.deployImpl(Jsr88RemoteDeployer.java:157)
         at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
         at oracle.jdevimpl.deploy.fwk.WrappedDeployer.deployImpl(WrappedDeployer.java:39)
         at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
         at oracle.jdeveloper.deploy.common.BatchDeployer.deployImpl(BatchDeployer.java:82)
         at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
         at oracle.jdevimpl.deploy.fwk.WrappedDeployer.deployImpl(WrappedDeployer.java:39)
         at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
         at oracle.jdevimpl.deploy.fwk.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:436)
         at oracle.jdeveloper.deploy.DeploymentManager.deploy(DeploymentManager.java:209)
         at oracle.jdevimpl.runner.adrs.AdrsStarter$4$1.run(AdrsStarter.java:1316)
    Caused by: oracle.jdeveloper.deploy.DeployException
         at oracle.jdevimpl.deploy.common.Jsr88DeploymentHelper.deployApplication(Jsr88DeploymentHelper.java:413)
         at oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer.doDeploymentAction(Jsr88RemoteDeployer.java:238)
         ... 11 more
    Caused by: oracle.jdeveloper.deploy.DeployException: Deployment Failed
         at oracle.jdevimpl.deploy.common.Jsr88DeploymentHelper.deployApplication(Jsr88DeploymentHelper.java:395)
         ... 12 more
    #### Cannot run application SessionEJB due to error deploying to DefaultServer.
    [Application SessionEJB stopped and undeployed from Server Instance DefaultServer]

    Steve,
    I'm facing the same issue as user#####.
    Your workaround does not work ; when I deploy manuelly the ear file, with a new weblogic-application.xml, I get the same error.
    Does that happen a lot ? :p
    Edit :
    my web.xml :
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee">
      <description>Empty web.xml file for Web Application</description>
      <context-param>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>client</param-value>
      </context-param>
      <context-param>
        <description>If this parameter is true, there will be an automatic check of the modification date of your JSPs, and saved state will be discarded when JSP's change. It will also automatically check if your skinning css files have changed without you having to restart the server. This makes development easier, but adds overhead. For this reason this parameter should be set to false when your application is deployed.</description>
        <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
        <param-value>false</param-value>
      </context-param>
      <context-param>
        <description>Whether the 'Generated by...' comment at the bottom of ADF Faces HTML pages should contain version number information.</description>
        <param-name>oracle.adf.view.rich.versionString.HIDDEN</param-name>
        <param-value>false</param-value>
      </context-param>
      <filter>
        <filter-name>JpsFilter</filter-name>
        <filter-class>oracle.security.jps.ee.http.JpsFilter</filter-class>
      </filter>
      <filter>
        <filter-name>trinidad</filter-name>
        <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
      </filter>
      <filter>
        <filter-name>adfBindings</filter-name>
        <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
      </filter>
      <filter-mapping>
        <filter-name>JpsFilter</filter-name>
        <servlet-name>Faces Servlet</servlet-name>
        <dispatcher>FORWARD</dispatcher>
        <dispatcher>REQUEST</dispatcher>
        <dispatcher>INCLUDE</dispatcher>
      </filter-mapping>
      <filter-mapping>
        <filter-name>trinidad</filter-name>
        <servlet-name>Faces Servlet</servlet-name>
        <dispatcher>FORWARD</dispatcher>
        <dispatcher>REQUEST</dispatcher>
      </filter-mapping>
      <filter-mapping>
        <filter-name>adfBindings</filter-name>
        <servlet-name>Faces Servlet</servlet-name>
        <dispatcher>FORWARD</dispatcher>
        <dispatcher>REQUEST</dispatcher>
      </filter-mapping>
      <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
      </servlet>
      <servlet>
        <servlet-name>resources</servlet-name>
        <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
      </servlet>
      <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>/faces/*</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>resources</servlet-name>
        <url-pattern>/adf/*</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>resources</servlet-name>
        <url-pattern>/afr/*</url-pattern>
      </servlet-mapping>
      <session-config>
        <session-timeout>35</session-timeout>
      </session-config>
      <mime-mapping>
        <extension>html</extension>
        <mime-type>text/html</mime-type>
      </mime-mapping>
      <mime-mapping>
        <extension>txt</extension>
        <mime-type>text/plain</mime-type>
      </mime-mapping>
    </web-app>Luc-
    Edited by: Lucas Ismag on 4 déc. 2008 05:33

  • Problem deploying an EJB that uses the JCE 1.2.1 api

    We are deploying a JAR file containing all EJBs of our application on
    Weblogic 5.1 SP4 and we're getting a DeploymentException (which is
    fully included at the end of the message).
    We have no problem deploying the same JAR file on WebLogic 5.1 SP8.
    We have isolated each EJB, so that one EJB is pack into is own JAR
    file. We were able to deploy all EJBs but the one using the JCE 1.2.1
    api.
    Is there any issue using JCE 1.2.1 within an EJB under WL SP4 ?
    As I mentionned earlier, everything works fine with SP8 ?
    Any help will be greatly appreciated.
    Patrick
    Complete error dump:
    Fri Dec 21 14:06:07 EST 2001:<E> <EJB> Could not deploy:
    'C:/weblogic/myserver/eportal/EpcWSHBilling.jar': file is not a valid
    jar file, or does not
    contain a valid bean
    weblogic.ejb.common.DeploymentException: DeploymentException opening
    JAR file C:\weblogic\myserver\eportal\EpcWSHBilling.jar; nested
    exception is:
    weblogic.ejb.deployment.JarLoadException - with nested
    exception:
    [weblogic.ejb.common.DeploymentException: Problem creating deployment
    C:/weblogic/myserver/eportal/EpcWSHBilling.jar from
    C:\weblogic\myserver\eportal\EpcWSHBilling.jar; nested exception is:
            weblogic.ejb.common.DeploymentException: could not read JAR
    file 'C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar'
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
            weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
            java.lang.NullPointerException
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
            java.lang.NullPointerException
    java.lang.NullPointerException
            at weblogic.ejb.internal.depend.ClosedSet.skipClass(ClosedSet.java,
    Compiled Code)
            at weblogic.ejb.internal.depend.ClosedSet.addClass(ClosedSet.java,
    Compiled Code)
            at weblogic.ejb.internal.depend.ClosedSet.findConstants(ClosedSet.java,
    Compiled Code)
            at weblogic.ejb.internal.depend.ClosedSet.run(ClosedSet.java,
    Compiled Code)
            at weblogic.ejb.internal.depend.ClosedSet.findDependencies(ClosedSet.java:53)
            at weblogic.ejb.internal.EJBJarLoader$ClosedSetAdapter.findDependencies(EJBJarLoader.java:220)
            at weblogic.ejb.internal.EJBJarLoader.computeExclude(EJBJarLoader.java,
    Compiled Code)
            at weblogic.ejb.internal.EJBJarLoader.initialize(EJBJarLoader.java:125)
            at weblogic.ejb.internal.EJBJarLoader.<init>(EJBJarLoader.java:88)
            at weblogic.ejb.internal.EJBJarDeployment.setupJar(EJBJarDeployment.java,
    Compiled Code)
            at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:211)
            at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:182)
            at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:164)
            at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java:172)
            at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:122)
            at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:112)
            at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:305)
            at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
    Compiled Code)
            at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
            at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
            at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
            at java.lang.reflect.Method.invoke(Native Method)
            at weblogic.Server.startServerDynamically(Server.java:99)
            at weblogic.Server.main(Server.java:65)
            at weblogic.Server.main(Server.java:55)
    weblogic.ejb.common.DeploymentException: Problem creating deployment
    C:/weblogic/myserver/eportal/EpcWSHBilling.jar from
    C:\weblogic\myserver\eportal\EpcWSHBilling.jar; nested exception is:
    weblogic.ejb.common.DeploymentException: could not read JAR
    file 'C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar'
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
    java.lang.NullPointerException
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
    java.lang.NullPointerException
    java.lang.NullPointerException
    at weblogic.ejb.internal.depend.ClosedSet.skipClass(ClosedSet.java,
    Compiled Code)
    at weblogic.ejb.internal.depend.ClosedSet.addClass(ClosedSet.java,
    Compiled Code)
    at weblogic.ejb.internal.depend.ClosedSet.findConstants(ClosedSet.java,
    Compiled Code)
    at weblogic.ejb.internal.depend.ClosedSet.run(ClosedSet.java,
    Compiled Code)
    at weblogic.ejb.internal.depend.ClosedSet.findDependencies(ClosedSet.java:53)
    at weblogic.ejb.internal.EJBJarLoader$ClosedSetAdapter.findDependencies(EJBJarLoader.java:220)
    at weblogic.ejb.internal.EJBJarLoader.computeExclude(EJBJarLoader.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBJarLoader.initialize(EJBJarLoader.java:125)
    at weblogic.ejb.internal.EJBJarLoader.<init>(EJBJarLoader.java:88)
    at weblogic.ejb.internal.EJBJarDeployment.setupJar(EJBJarDeployment.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:211)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:182)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:164)
    at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java:172)
    at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:122)
    at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:112)
    at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:305)
    at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
    at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.Server.startServerDynamically(Server.java:99)
    at weblogic.Server.main(Server.java:65)
    at weblogic.Server.main(Server.java:55)
    weblogic.ejb.common.DeploymentException: could not read JAR file
    'C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar'
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
    java.lang.NullPointerException
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
    java.lang.NullPointerException
    java.lang.NullPointerException
    at weblogic.ejb.internal.depend.ClosedSet.skipClass(ClosedSet.java,
    Compiled Code)
    at weblogic.ejb.internal.depend.ClosedSet.addClass(ClosedSet.java,
    Compiled Code)
    at weblogic.ejb.internal.depend.ClosedSet.findConstants(ClosedSet.java,
    Compiled Code)
    at weblogic.ejb.internal.depend.ClosedSet.run(ClosedSet.java,
    Compiled Code)
    at weblogic.ejb.internal.depend.ClosedSet.findDependencies(ClosedSet.java:53)
    at weblogic.ejb.internal.EJBJarLoader$ClosedSetAdapter.findDependencies(EJBJarLoader.java:220)
    at weblogic.ejb.internal.EJBJarLoader.computeExclude(EJBJarLoader.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBJarLoader.initialize(EJBJarLoader.java:125)
    at weblogic.ejb.internal.EJBJarLoader.<init>(EJBJarLoader.java:88)
    at weblogic.ejb.internal.EJBJarDeployment.setupJar(EJBJarDeployment.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:211)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:182)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:164)
    at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java:172)
    at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:122)
    at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:112)
    at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:305)
    at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
    at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.Server.startServerDynamically(Server.java:99)
    at weblogic.Server.main(Server.java:65)
    at weblogic.Server.main(Server.java:55)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:213)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:182)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:164)
    at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java:172)
    at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:122)
    at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:112)
    at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:305)
    at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
    at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.Server.startServerDynamically(Server.java:99)
    at weblogic.Server.main(Server.java:65)
    at weblogic.Server.main(Server.java:55)
    --------------- nested within: ------------------
    weblogic.ejb.deployment.JarLoadException - with nested exception:
    [weblogic.ejb.common.DeploymentException: Problem creating deployment
    C:/weblogic/myserver/eportal/EpcWSHBilling.jar from
    C:\weblogic\myserver\eportal\EpcWSHBilling.jar; nested exception is:
            weblogic.ejb.common.DeploymentException: could not read JAR
    file 'C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar'
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
            weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
            java.lang.NullPointerException
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
            java.lang.NullPointerException
    java.lang.NullPointerException
            at weblogic.ejb.internal.depend.ClosedSet.skipClass(ClosedSet.java,
    Compiled Code)
            at weblogic.ejb.internal.depend.ClosedSet.addClass(ClosedSet.java,
    Compiled Code)
            at weblogic.ejb.internal.depend.ClosedSet.findConstants(ClosedSet.java,
    Compiled Code)
            at weblogic.ejb.internal.depend.ClosedSet.run(ClosedSet.java,
    Compiled Code)
            at weblogic.ejb.internal.depend.ClosedSet.findDependencies(ClosedSet.java:53)
            at weblogic.ejb.internal.EJBJarLoader$ClosedSetAdapter.findDependencies(EJBJarLoader.java:220)
            at weblogic.ejb.internal.EJBJarLoader.computeExclude(EJBJarLoader.java,
    Compiled Code)
            at weblogic.ejb.internal.EJBJarLoader.initialize(EJBJarLoader.java:125)
            at weblogic.ejb.internal.EJBJarLoader.<init>(EJBJarLoader.java:88)
            at weblogic.ejb.internal.EJBJarDeployment.setupJar(EJBJarDeployment.java,
    Compiled Code)
            at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:211)
            at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:182)
            at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:164)
            at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java:172)
            at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:122)
            at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:112)
            at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:305)
            at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
    Compiled Code)
            at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
            at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
            at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
            at java.lang.reflect.Method.invoke(Native Method)
            at weblogic.Server.startServerDynamically(Server.java:99)
            at weblogic.Server.main(Server.java:65)
            at weblogic.Server.main(Server.java:55)
    at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:313)
    at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
    at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.Server.startServerDynamically(Server.java:99)
    at weblogic.Server.main(Server.java:65)
    at weblogic.Server.main(Server.java:55)

    We are deploying a JAR file containing all EJBs of our application on
    Weblogic 5.1 SP4 and we're getting a DeploymentException (which is
    fully included at the end of the message).
    We have no problem deploying the same JAR file on WebLogic 5.1 SP8.
    We have isolated each EJB, so that one EJB is pack into is own JAR
    file. We were able to deploy all EJBs but the one using the JCE 1.2.1
    api.
    Is there any issue using JCE 1.2.1 within an EJB under WL SP4 ?
    As I mentionned earlier, everything works fine with SP8 ?
    Any help will be greatly appreciated.
    Patrick
    Complete error dump:
    Fri Dec 21 14:06:07 EST 2001:<E> <EJB> Could not deploy:
    'C:/weblogic/myserver/eportal/EpcWSHBilling.jar': file is not a valid
    jar file, or does not
    contain a valid bean
    weblogic.ejb.common.DeploymentException: DeploymentException opening
    JAR file C:\weblogic\myserver\eportal\EpcWSHBilling.jar; nested
    exception is:
    weblogic.ejb.deployment.JarLoadException - with nested
    exception:
    [weblogic.ejb.common.DeploymentException: Problem creating deployment
    C:/weblogic/myserver/eportal/EpcWSHBilling.jar from
    C:\weblogic\myserver\eportal\EpcWSHBilling.jar; nested exception is:
            weblogic.ejb.common.DeploymentException: could not read JAR
    file 'C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar'
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
            weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
            java.lang.NullPointerException
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
            java.lang.NullPointerException
    java.lang.NullPointerException
            at weblogic.ejb.internal.depend.ClosedSet.skipClass(ClosedSet.java,
    Compiled Code)
            at weblogic.ejb.internal.depend.ClosedSet.addClass(ClosedSet.java,
    Compiled Code)
            at weblogic.ejb.internal.depend.ClosedSet.findConstants(ClosedSet.java,
    Compiled Code)
            at weblogic.ejb.internal.depend.ClosedSet.run(ClosedSet.java,
    Compiled Code)
            at weblogic.ejb.internal.depend.ClosedSet.findDependencies(ClosedSet.java:53)
            at weblogic.ejb.internal.EJBJarLoader$ClosedSetAdapter.findDependencies(EJBJarLoader.java:220)
            at weblogic.ejb.internal.EJBJarLoader.computeExclude(EJBJarLoader.java,
    Compiled Code)
            at weblogic.ejb.internal.EJBJarLoader.initialize(EJBJarLoader.java:125)
            at weblogic.ejb.internal.EJBJarLoader.<init>(EJBJarLoader.java:88)
            at weblogic.ejb.internal.EJBJarDeployment.setupJar(EJBJarDeployment.java,
    Compiled Code)
            at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:211)
            at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:182)
            at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:164)
            at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java:172)
            at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:122)
            at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:112)
            at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:305)
            at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
    Compiled Code)
            at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
            at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
            at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
            at java.lang.reflect.Method.invoke(Native Method)
            at weblogic.Server.startServerDynamically(Server.java:99)
            at weblogic.Server.main(Server.java:65)
            at weblogic.Server.main(Server.java:55)
    weblogic.ejb.common.DeploymentException: Problem creating deployment
    C:/weblogic/myserver/eportal/EpcWSHBilling.jar from
    C:\weblogic\myserver\eportal\EpcWSHBilling.jar; nested exception is:
    weblogic.ejb.common.DeploymentException: could not read JAR
    file 'C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar'
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
    java.lang.NullPointerException
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
    java.lang.NullPointerException
    java.lang.NullPointerException
    at weblogic.ejb.internal.depend.ClosedSet.skipClass(ClosedSet.java,
    Compiled Code)
    at weblogic.ejb.internal.depend.ClosedSet.addClass(ClosedSet.java,
    Compiled Code)
    at weblogic.ejb.internal.depend.ClosedSet.findConstants(ClosedSet.java,
    Compiled Code)
    at weblogic.ejb.internal.depend.ClosedSet.run(ClosedSet.java,
    Compiled Code)
    at weblogic.ejb.internal.depend.ClosedSet.findDependencies(ClosedSet.java:53)
    at weblogic.ejb.internal.EJBJarLoader$ClosedSetAdapter.findDependencies(EJBJarLoader.java:220)
    at weblogic.ejb.internal.EJBJarLoader.computeExclude(EJBJarLoader.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBJarLoader.initialize(EJBJarLoader.java:125)
    at weblogic.ejb.internal.EJBJarLoader.<init>(EJBJarLoader.java:88)
    at weblogic.ejb.internal.EJBJarDeployment.setupJar(EJBJarDeployment.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:211)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:182)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:164)
    at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java:172)
    at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:122)
    at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:112)
    at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:305)
    at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
    at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.Server.startServerDynamically(Server.java:99)
    at weblogic.Server.main(Server.java:65)
    at weblogic.Server.main(Server.java:55)
    weblogic.ejb.common.DeploymentException: could not read JAR file
    'C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar'
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
    java.lang.NullPointerException
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
    java.lang.NullPointerException
    java.lang.NullPointerException
    at weblogic.ejb.internal.depend.ClosedSet.skipClass(ClosedSet.java,
    Compiled Code)
    at weblogic.ejb.internal.depend.ClosedSet.addClass(ClosedSet.java,
    Compiled Code)
    at weblogic.ejb.internal.depend.ClosedSet.findConstants(ClosedSet.java,
    Compiled Code)
    at weblogic.ejb.internal.depend.ClosedSet.run(ClosedSet.java,
    Compiled Code)
    at weblogic.ejb.internal.depend.ClosedSet.findDependencies(ClosedSet.java:53)
    at weblogic.ejb.internal.EJBJarLoader$ClosedSetAdapter.findDependencies(EJBJarLoader.java:220)
    at weblogic.ejb.internal.EJBJarLoader.computeExclude(EJBJarLoader.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBJarLoader.initialize(EJBJarLoader.java:125)
    at weblogic.ejb.internal.EJBJarLoader.<init>(EJBJarLoader.java:88)
    at weblogic.ejb.internal.EJBJarDeployment.setupJar(EJBJarDeployment.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:211)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:182)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:164)
    at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java:172)
    at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:122)
    at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:112)
    at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:305)
    at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
    at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.Server.startServerDynamically(Server.java:99)
    at weblogic.Server.main(Server.java:65)
    at weblogic.Server.main(Server.java:55)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:213)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:182)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:164)
    at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java:172)
    at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:122)
    at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:112)
    at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:305)
    at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
    at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.Server.startServerDynamically(Server.java:99)
    at weblogic.Server.main(Server.java:65)
    at weblogic.Server.main(Server.java:55)
    --------------- nested within: ------------------
    weblogic.ejb.deployment.JarLoadException - with nested exception:
    [weblogic.ejb.common.DeploymentException: Problem creating deployment
    C:/weblogic/myserver/eportal/EpcWSHBilling.jar from
    C:\weblogic\myserver\eportal\EpcWSHBilling.jar; nested exception is:
            weblogic.ejb.common.DeploymentException: could not read JAR
    file 'C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar'
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
            weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
            java.lang.NullPointerException
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
            java.lang.NullPointerException
    java.lang.NullPointerException
            at weblogic.ejb.internal.depend.ClosedSet.skipClass(ClosedSet.java,
    Compiled Code)
            at weblogic.ejb.internal.depend.ClosedSet.addClass(ClosedSet.java,
    Compiled Code)
            at weblogic.ejb.internal.depend.ClosedSet.findConstants(ClosedSet.java,
    Compiled Code)
            at weblogic.ejb.internal.depend.ClosedSet.run(ClosedSet.java,
    Compiled Code)
            at weblogic.ejb.internal.depend.ClosedSet.findDependencies(ClosedSet.java:53)
            at weblogic.ejb.internal.EJBJarLoader$ClosedSetAdapter.findDependencies(EJBJarLoader.java:220)
            at weblogic.ejb.internal.EJBJarLoader.computeExclude(EJBJarLoader.java,
    Compiled Code)
            at weblogic.ejb.internal.EJBJarLoader.initialize(EJBJarLoader.java:125)
            at weblogic.ejb.internal.EJBJarLoader.<init>(EJBJarLoader.java:88)
            at weblogic.ejb.internal.EJBJarDeployment.setupJar(EJBJarDeployment.java,
    Compiled Code)
            at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:211)
            at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:182)
            at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:164)
            at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java:172)
            at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:122)
            at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:112)
            at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:305)
            at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
    Compiled Code)
            at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
            at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
            at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
            at java.lang.reflect.Method.invoke(Native Method)
            at weblogic.Server.startServerDynamically(Server.java:99)
            at weblogic.Server.main(Server.java:65)
            at weblogic.Server.main(Server.java:55)
    at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:313)
    at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
    at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.Server.startServerDynamically(Server.java:99)
    at weblogic.Server.main(Server.java:65)
    at weblogic.Server.main(Server.java:55)

  • Problem deployment EJB

    Hi,
    When I try to deploy EJB.jar, I have an error :
    java.lang.InstantiationException: Error initializing ejb-module; Exception Error in application ejbGestionBase: Error loading package at file:/C:/jdev904/j2ee/home/applications/ejbGestionBase/ejbGestionBase.jar,
    Error compiling C:\jdev904\j2ee\home\applications\ejbGestionBase\ejbGestionBase.jar: Syntax error in source
         at com.evermind.server.ejb.EJBContainer.throwInstantiationException(EJBContainer.java:2428)
         at com.evermind.server.ejb.EJBContainer.postInitBatch(EJBContainer.java:2412)
         at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.java:2195)
         at com.evermind.server.Application.postInit(Application.java:553)
         at com.evermind.server.Application.setConfig(Application.java:170)
         at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1927)
         at oracle.oc4j.admin.internal.ApplicationDeployer.addApplication(ApplicationDeployer.java:407)
         at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:127)
         at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:73)
         at com.evermind.server.administration.DefaultApplicationServerAdministrator.internalDeploy(DefaultApplicationServerAdministrator.java:378)
         at com.evermind.server.administration.DefaultApplicationServerAdministrator.deploy(DefaultApplicationServerAdministrator.java:278)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Unknown Source)
    Can you help me please?

    If you are deploying from JDev, run EJB verifier before deploying.
    Select ejb-jar.xml in the navigator, right mouse and choose Verify Enterprise JavaBeans.
    raghu
    JDev Team

Maybe you are looking for