Invalid guid error looking up EJB from a startup class

Gentlemen,
I am receiving an "invalid guid at GDS" error that is similar to others reported at:
http://softwareforum.sun.com/servlet/ProcessRequest?RHIVEID=181&RPAGEID=135&HOID=50B500000008000000FE090000&UCATEGORY_0=_29_%24_24_6_&UCATEGORY_S=0
and
http://softwareforum.sun.com/servlet/ProcessRequest?RHIVEID=181&RPAGEID=135&HOID=50B500000008000000FE090000&UCATEGORY_0=_29_%24_24_6_&UCATEGORY_S=0
In my case, I can retrieve the EJB from my rich client with no problems. However, if I execute the exact
same code from within a startup class (i.e. com.iplanet.ias.startup.StartupClass) then I get the following error repeated until memory runs out:
javax.naming.NameNotFoundException: MessageRepositoryBean : Invalid guid null in
GDS
at com.netscape.server.ejb.EjbContext.lookup(Unknown Source)
at com.netscape.server.jndi.RootContext.lookup(Unknown Source)
at com.netscape.server.jndi.RootContext.lookup(Unknown Source)
at javax.naming.InitialContext.lookup(InitialContext.java:357)
at com.netscape.ejb.CorbaHomeFactoryImpl.ConstructEJBHome(Unknown Source
at com.netscape.CosNaming.NamingContextImpl.resolve(Unknown Source)
at org.omg.CosNaming._NamingContextImplBase.invoke(_NamingContextImplBas
e.java:233)
at com.sun.corba.ee.internal.corba.ServerDelegate.dispatch(ServerDelegat
e.java:236)
at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:227)
at com.sun.corba.ee.internal.iiop.CachedWorkerThread.doWork(IIOPConnecti
on.java:262)
at com.sun.corba.ee.internal.iiop.CachedWorkerThread.run(IIOPConnection.
java:230)
javax.naming.NameNotFoundException: MessageRepositoryBean : Invalid guid null in
In previous answers people have suggested adding various things to the app server classpath. This does not make any difference for me. I am puzzled why code runs fine in a normal rich client, but not in a startup class. Here is the code that I am running:
try
String contextFactory = "com.sun.jndi.cosnaming.CNCtxFactory";
String providerURL = "iiop://localhost:9010";
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY, contextFactory);
p.put(Context.PROVIDER_URL, providerURL);
Context context = new InitialContext(p);
MessageRepositoryHome home = (MessageRepositoryHome)
PortableRemoteObject.narrow(context.lookup("ejb/MessageRepository"), MessageRepositoryHome.class);
MessageRepository repository = home.create();
catch(Exception e)
e.printStackTrace(Log.err);
System.exit(1);
Thanks for your help,
Mark

I was mistaken in this posting. I was able to access the EJB from the startup class so there must be something else that I am doing to cause this problem. I'd still like to know why I get those invalid guid errors though.
By the way, please forgive me for using the gender-specific gentlemen in my posting. That was accidental.

Similar Messages

  • Linkage Error Looking up EJB from BPEL (11g)

    I am using 11g TP3.
    I have a BPEL process that is using WSIF to call a plain java class. Then from this class I am attempting to lookup an EJB in another application (but on the same server).
    My code looks like this...
    env.put( Context.INITIAL_CONTEXT_FACTORY, "oracle.j2ee.rmi.RMIInitialContextFactory" );
    env.put( Context.SECURITY_PRINCIPAL, "fmwadmin" );
    env.put( Context.SECURITY_CREDENTIALS, "welcome" );
    env.put(Context.PROVIDER_URL, "ormi://localhost:23891/DisEM");
    javax.naming.InitialContext ctx =
    new javax.naming.InitialContext(env);
    Object obj = ctx.lookup("DisConfigManager");
    I get a Linkage error on the lookup stating it "violates loader constraints" on class com/evermind/server/rmi/RMIClientConnection
    Below is the full error text. Any help would be appreciated. Thanks.
    Mar 26, 2008 8:49:31 AM oracle.j2ee.util.AnnotatedLogger log
    WARNING: Exception returned by remote server: java.lang.LinkageError: Class com/evermind/server/rmi/RMIClientConnection violates loader constraints
    08/03/26 08:49:31 got an exception looking up DisConfigManager: javax.naming.NamingException: Error resolving reference <Reference Class Name: javax.ejb.EJBObject
    Type: location
    Content: test-managers_DisConfigManager_BeanBinding
    Type: CachePolicy
    Content: NEVER
    : javax.naming.NamingException: Lookup error: javax.naming.NamingException: Class com/evermind/server/rmi/RMIClientConnection violates loader constraints [Root exception is java.lang.LinkageError: Class com/evermind/server/rmi/RMIClientConnection violates loader constraints]; nested exception is:      javax.naming.NamingException: Class com/evermind/server/rmi/RMIClientConnection violates loader constraints [Root exception is java.lang.LinkageError: Class com/evermind/server/rmi/RMIClientConnection violates loader constraints] [Root exception is javax.naming.NamingException: Class com/evermind/server/rmi/RMIClientConnection violates loader constraints [Root exception is java.lang.LinkageError: Class com/evermind/server/rmi/RMIClientConnection violates loader constraints]]
    08/03/26 08:49:31 <INFO> WSIFBinding=> [MIB2ScanCartridge/MIB2ScanCartridge!1.0*2008-02-27_13-37-54_124.FinalizeScanService]:finalize Performing outbound request/response interaction..
    Mar 26, 2008 8:49:43 AM oracle.j2ee.util.AnnotatedLogger log

    I was mistaken in this posting. I was able to access the EJB from the startup class so there must be something else that I am doing to cause this problem. I'd still like to know why I get those invalid guid errors though.
    By the way, please forgive me for using the gender-specific gentlemen in my posting. That was accidental.

  • Call EJB from Start Up class

    I'm using OC4J 10.1.3 Standalone.
    I have a requirement to initialize web services and configuration parameters during app server start up.
    Accordingly,I planned to call a EJB 2.0 stateless session bean from a StartUp class.
    The ejb is responsible for initializing some configurations and web services.The ejb is dependent on some other classes which are present as utility jars .
    However,I cannot somehow figure out how to refer the EJB from my startup class because the EAR which contains the EJB jar is in a child loader to that containing the startup class.
    Please guide me!! Please suggest if some alternative approach could be taken to suffice my requirement.
    TIA

    Avi, I was just waiting for the "servlet hack".
    I really prefer the application client way, much cleaner, no servlet container needed, and could be tested outside the container.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                       

  • Initiating Quartz from a startup class

    Has anyone implemented quartz in a server startup class for scheduling?
    Would this be a potential way of using quartz or is it not recommended?
    Thanks for any thoughts on the subject.
    Toby

    I was mistaken in this posting. I was able to access the EJB from the startup class so there must be something else that I am doing to cause this problem. I'd still like to know why I get those invalid guid errors though.
    By the way, please forgive me for using the gender-specific gentlemen in my posting. That was accidental.

  • Help me which JNDIFactory to use to access EJB from a java class of JAR

    I am confused in understanding the different JNDI factories
    RMIInitialContextFactory, ApplicationInitialContextFactory and ApplicationClientInitialContextFactory
    And the different namespaces like global, container local and component local.
    Especially is there any relationship between the JNDI factories and the namespaces?
    Or are they related to the deployment descriptors.
    Because in application specific deployment descriptors (orion-ejb-jar.xml), we just map the JNDI location with the object (or its reference from ejb-jar.xml). We dont specify it can be accessed from this factory or that.
    Shall we access an EJB from using any JNDI factory?
    Specifically, I am stuck with what Factory to use to access an EJB from a Java class in a library (jar). The JAR is packaged with the EAR which contains the EJB Jar that I am trying to access.
    THANK YOU

    Ed,
    As Robin said, I think you need code similar to this:
    Context c = new InitialContext();
    Object o = c.lookup("java:comp/env/Name");where Name is the name of your EJB as it appears in the "ejb-jar.xml"
    deployment descriptor XML file.
    Good Luck,
    Avi.

  • Looking up EJBs from a java client

    While trying to migrate my application from standalone-oc4j
    to Oracle Application Server 10g, I ran into the following problem.
    My application has a stateless session bean. When trying to lookup the bean (from a java client), I get the following exception:
    javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException
    Invalid username/password for UnifyoccEAR (ias_admin)
    My code used the username/password I used to log into web-based console (which I used to deploy the application). The lookup code follows:
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY,
    OracleJASLayer.INITIAL_CONTEXT_FACTORY);
    env.put(Context.PROVIDER_URL, "ormi://localhost:3201/UnifyoccEAR");
    env.put(Context.SECURITY_AUTHENTICATION, "simple");
    env.put(Context.SECURITY_PRINCIPAL, username);
    env.put(Context.SECURITY_CREDENTIALS, password);
    Context ctx = new InitialContext(env);
    Object obj = ctx.lookup("unify/nxj/controlCenters/occ/ControlCenterEJB");
    On a whim, I tried the old SCOTT/TIGER username/password and got the following
    exception:
    javax.naming.NoPermissionException: Not allowed to look up unify/nxj/controlCenters/occ/ControlCenterEJB,
    check the namespace-access tag setting in orion-application.xml for details
    So evidently, SCOTT/TIGER is in the security database used by the app (but isn't
    authorized) while the ias_admin user is not in the security database.
    I have the following questions:
    1. In the default configuration, is there a username/password I can use to
    lookup EJB homes in the jndi namespace of an OC4J instance? If so, what
    is it?
    2. Where is the security database? I tried looking in the web-based console
    to find how to configure security and could not figure it out. I did find
    the Security page for the application, but when I tried to add a user,
    it had no effect. Furthermore, this page did not show a user entry for
    SCOTT; hence, it doesn't seem that OC4J is actually using the information
    on this page. This is strange because the path to this page is:
    Farm > Application Server: ias_admin.lab10.sac.unify.com > OC4J: home > Application: UnifyoccEAR > Security
    I then went to the Security page for the default application and found
    that it did have a SCOTT user. So I added a new user and tried to run
    my java client. This resulted in the javax.naming.AuthenticationException
    described above (I was expected the NoPermissionException encounted when
    using SCOTT/TIGER). Next, I used the Security page for the default application
    to change the password for SCOTT and reran my java client using SCOTT/TIGER.
    This time I was expecting an AuthenticationException exception, but got the
    NoPermission exception. Therefore, it seems that OC4J isn't using this
    security data either.
    Hunting in the console (again) for the security database, I stumble accross
    the Infrasturcture page and see an Identity Management section and see that
    it is configure to use an Oracle Internet Directory server. Using
    <ORACLE_HOME>/bin/oidadmin, I connect to the directory server and look
    for the SCOTT user. I don't find it, so I believe that this can't be the
    security database either.
    3. Finally, how do I configure the OC4J instance such that it will allow
    anonymous users to lookup my EJB from a java client?
    Please help a confused and frustrated user.

    Looking at your example, it looks like you are using a J2EE client container or some properties file to specify the JNDI environment used to create the initial context (for you use the no-arg constructor to InitialContext). Since our application needs to the ability to dynamically connect to ejb's running on different Java application servers (e.g., WebLogic, WebSphere, JBoss), such an approach will not work. Instead we must do it the old-fashioned way and pass the jdni connection info to the InitialContext constructor.
    In any event, our problem isn't how to write the connection code, it is how to test it. Specifically, we can't figure out a valid username/password that will allow us to look up the home. Nor can we figure out how to configure security for the oc4j instance.

  • Looking up EJB from Java Web start

    I have a java client application that looks-up an EJB deployed in WebLogic Server 10.3 on windows xp. the application works fine when invoked from command line. But when I try to run the same application via Java Web Start, I get following error while doing EJB lookup:
    java.lang.AssertionError: java.lang.ClassNotFoundException: com.pks.dummy.SL1
    at weblogic.ejb.container.internal.RemoteBusinessIntfGenerator.generateRemoteInterface(RemoteBusinessIntfGenerator.java:57)
    at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.readObject(RemoteBusinessIntfProxy.java:205)
    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 java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
    at java.io.ObjectInputStream.readSerialData(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Unknown Source)
    at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
    at java.io.ObjectInputStream.readSerialData(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Unknown Source)
    at java.io.ObjectInputStream.readObject(Unknown Source)
    at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:197)
    at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:564)
    at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:193)
    at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:62)
    at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:240)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
    at weblogic.jndi.internal.ServerNamingNode_1030_WLStub.lookup(Unknown Source)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:392)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:380)
    at javax.naming.InitialContext.lookup(Unknown Source)
    at com.pks.dummy.client.TestClientDummy.doTest(Unknown Source)
    at com.pks.dummy.client.TestClientDummy.main(Unknown Source)
    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.sun.javaws.Launcher.executeApplication(Unknown Source)
    at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
    at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
    at com.sun.javaws.Launcher.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.ClassNotFoundException: com.pks.dummy.SL1
    at weblogic.ejb.container.deployer.RemoteBizIntfClassLoader.getClassBytes(RemoteBizIntfClassLoader.java:151)
    at weblogic.ejb.container.deployer.RemoteBizIntfClassLoader.loadClass(RemoteBizIntfClassLoader.java:96)
    at weblogic.ejb.container.internal.RemoteBusinessIntfGenerator.generateRemoteInterface(RemoteBusinessIntfGenerator.java:54)
    ... 36 more
    #### Java Web Start Error:
    #### null
    com.pks.dummy.SL1 is Remote interface for the Session Bean. and is packaged in same jar with client jar. Also, I am able to instantiate the com.pks.dummy.SL1 using class.forName in main() method of client code in both command line as well as Web start environment.
    Any help is appreciated. Thanks.
    Edited by: javaDev on Dec 19, 2008 11:58 AM
    Edited by: javaDev on Dec 19, 2008 12:18 PM

    I got the solution for ClassNotFound issue. To avoid this error, one need to package EJB stubs on client side. Packaging just the EJB interfaces doesn't help.
    EJB stubs can be generated using weblogic.appc utility. For more information about this utility please refer
    WebLogic Server Command Reference : Link: [http://edocs.bea.com/wls/docs103/pdf/admin_ref.pdf]

  • Error while running EJB from java client on JBOSS

    Hi
    As i am new to EJB i have created a helloworld application in ejb which is working fine when i try to call it from servlet but when i try to invoke the same ejb from java client (i.e from diff jvm) on jboss i got the following error:
    javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]]]
         at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1399)
         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:579)
         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
         at javax.naming.InitialContext.lookup(InitialContext.java:351)
         at com.gl.TestClient.main(TestClient.java:39)
    Caused by: javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]]
         at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:254)
         at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1370)
         ... 4 more
    Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]
         at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:228)
         ... 5 more
    Caused by: java.net.ConnectException: Connection refused
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:519)
         at java.net.Socket.connect(Socket.java:469)
         at java.net.Socket.<init>(Socket.java:366)
         at java.net.Socket.<init>(Socket.java:266)
         at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:69)
         at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:62)
         at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:224)
         ... 5 more
    Following is my code:
    Home Interface:
    package com.gl;
    import javax.ejb.CreateException;
    public interface testHome extends EJBHome {
         String JNDI_NAME = "testBean";
         public     test create()
         throws java.rmi.RemoteException,CreateException;
    Remote Interface:
    package com.gl;
    import java.rmi.RemoteException;
    import javax.ejb.EJBObject;
    public interface test extends EJBObject {
         public String welcomeMessage() throws RemoteException;
    Bean:
    package com.gl;
    import java.rmi.RemoteException;
    import javax.ejb.EJBException;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    public class testbean implements SessionBean {
         public void ejbActivate() throws EJBException, RemoteException {
              // TODO Auto-generated method stub
         public void ejbPassivate() throws EJBException, RemoteException {
              // TODO Auto-generated method stub
         public void ejbRemove() throws EJBException, RemoteException {
              // TODO Auto-generated method stub
         public void setSessionContext(SessionContext arg0) throws EJBException,
                   RemoteException {
              // TODO Auto-generated method stub
         public void ejbCreate(){}
         public String welcomeMessage(){
              return "Welcome to the World of EJB";
    ejb-jar.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
    <enterprise-beans>
    <session>
    <ejb-name>testBean</ejb-name>
    <home>com.gl.testHome</home>
    <remote>com.gl.test</remote>
    <ejb-class>com.gl.testbean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    </ejb-jar>
    jboss.xml:
    <?xml version='1.0' ?>
    <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.2//EN" "http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd">
    <jboss>
    <enterprise-beans>
    <entity>
    <ejb-name>testBean</ejb-name>
    <jndi-name>testBean</jndi-name>
    </entity>
    </enterprise-beans>
    </jboss>
    Client code:
    package com.gl;
    import java.util.Properties;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    public class TestClient {
         public static void main(String[] args) throws Exception{
                   try{
                   /*     Properties props=new Properties();
                        props.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
                        props.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
                        props.put(Context.PROVIDER_URL, "jnp://localhost:1099");
                   Properties props = new Properties();
    props.put(Context.INITIAL_CONTEXT_FACTORY,
    "org.jnp.interfaces.NamingContextFactory");
    props.put(Context.PROVIDER_URL, "localhost:1099");
                        System.out.println("Properties ok");
                        //env.setProperty(Context.INITIAL_CONTEXT_FACTORY,"org.jboss.naming.HttpNamingContextFactory");
                        //env.put(Context.PROVIDER_URL,"http://localhost:8080");
                        //env.put(Context.SECURITY_PRINCIPAL, "");
                        //env.put(Context.SECURITY_CREDENTIALS, "");
                        Context ctx=new InitialContext(props);
                        System.out.println("context ok");
                        //testHome home = (testHome)ctx.lookup("testBean");
                        Object obj = ctx.lookup ("testBean");
                        System.out.println("ojb = " + obj);
                        testHome ejbHome = (testHome)PortableRemoteObject.narrow(obj,testHome.class);
                   test ejbObject = ejbHome.create();
                   String message = ejbObject.welcomeMessage();
                        System.out.println("home ok");
                        System.out.println("remote ok");
                        System.out.println(message);
                        catch(Exception e){e.printStackTrace();}
    I am able to successfully deployed my ejb on JBOSS but i m getting above error when i am trying to invoke ejb from java client.
    kindly suggest me something to solve this issue.
    Regards
    Gagan
    Edited by: Gagan2914 on Aug 26, 2008 3:28 AM

    Is it a remote lookup? Then maybe this will help:
    [http://wiki.jboss.org/wiki/JBoss42FAQ]
    - Roy

  • Error in calling EJB from servlet

    I've create a servlet as a client bean to call EJB
              I deploy the EJB, copy the servlet class (in .class format)
              (\config\<domain>\serverclass) and
              jsp to Weblogic 6.0
              When I run the JSP, It said that the EJB class not found.
              Please help
              Fannie
              

    Additional information :
              I added the path where ejb jar file located to the calsspath in
              startWebLogic.sh
              Thanks!!
              Fannie
              Fannie <[email protected]> wrote in message
              news:3ac84447$[email protected]..
              > I've create a servlet as a client bean to call EJB
              > I deploy the EJB, copy the servlet class (in .class format)
              > (\config\<domain>\serverclass) and
              > jsp to Weblogic 6.0
              > When I run the JSP, It said that the EJB class not found.
              >
              > Please help
              >
              > Fannie
              >
              >
              >
              >
              

  • Error when starting opmn with custom startup class

    I'm trying to use jaxb 2.0 classes in my custom oc4j startup class, but when I try to start the container the following error is produced in the logs.
    Exception in thread "OC4J Launcher" java.lang.IllegalAccessError: tried to access class javax.xml.bind.ContextFinder from class javax.xml.bind.JAXBContext
    Can anyone provide some guidance?
    Regards,

    It seems I trying to use jaxb 2.x classes but oas 10.1.3.5 uses jaxb 1.0. Is there anyway to get this to work with jaxb 2.x? The error message I'm receiving now is
    Exception in thread "OC4J Launcher" java.lang.NoSuchMethodError: javax.xml.bind.JAXBContext.newInstance([Ljava/lang/Class;)Ljavax/xml/bind/JAXBContext;
    and if I use the JAXBContext.newInstance("package", this.getClass().getClassLoader());
    I get this:
    javax.xml.bind.JAXBException: Unable to locate jaxb.properties for package mil.usmc.mol.mbeans
    10/02/23 13:03:08 at javax.xml.bind.ContextFinder.searchcontextPath(ContextFinder.java:205)
    10/02/23 13:03:08 at javax.xml.bind.ContextFinder.find(ContextFinder.java:149)
    10/02/23 13:03:08 at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:281)
    Brett

  • Duplicate class definition error while invoking EJB from ADF project

    Hi,
    I am using Jdeveloper TP3 and facing the following problem.
    I have built an EJB project and am ran them successfully in the embedded OC4J via a standalone java program.
    Now I created another project with ADF capabilities and when I tried to ping the EJB i get the following exception
    The application named, current-workspace-app, could not start due to an error.
    duplicate class definition: javax/faces/context/FacesContextFactory Invalid class: javax.faces.context.FacesContextFactory Loader
    This is happenning due to class conflicts between javaee.jar and trinidad-impl.jar/adf-richclient-impl.jar.
    Is there any way of bypassing this class loader issue?

    Hi,
    actually I didn' try the JNDI lookup but used resource injection instead
    In a JSF managed bean I use
    @EJB Ejb30SessionFacadeLocal myLocalInterface;
    public SortableModel getTableModel() {
    List rows = new ArrayList<Employees>();
    rows = myLocalInterface.queryEmployeesFindAll();
    this.tableModel = new SortableModel(rows);
    return tableModel;
    Its a EJB 3.0 session bean that accesses a Local interface. However, if the remote is on the same server then I would think that using @EJB Ejb30SessionFacadeRemote myRemoteInterface; does similar
    Frank

  • Trouble looking up EJB from a JSP in another server

    I'm using the Sun Reference Implementation of J2EE. I'm deploying a session EJB in one J2EE app on one machine, and accessing it from a JSP in another J2EE app on another machine. My lookup code that is called from the JSP first sets the properties of the InitialContext as follows:
            Properties env = new Properties();
            env.put(Context.INITIAL_CONTEXT_FACTORY,
                    "com.sun.jndi.cosnaming.CNCtxFactory");
            env.put(Context.PROVIDER_URL, "iiop://afowlertest:1050");
            Context initial = new InitialContext(env);When I run both apps in the same server using this code, they work fine. However, when I run them in separate servers, the code throws the following exception (even if the JSP and EJB are deployed in the same server):
    javax.naming.NameNotFoundException.  Root exception is org.omg.CosNaming.NamingContextPackage.NotFound:
    IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
            at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.java:72)
            at org.omg.CosNaming._NamingContextExtStub.resolve(_NamingContextExtStub.java:406)
            at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:440)
            at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:492)
            at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:470)
            at javax.naming.InitialContext.lookup(InitialContext.java:347)
            at com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:599)
            at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:90)
            at microminer.client.SearchHandler.search(SearchHandler.java:127)
            at org.apache.jsp.test$jsp._jspService(test$jsp.java:79)
            at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            . . .(My class is the microminer.client.SearchHandler in the stack above.)
    I've searched the forum for answers, but have not hit on anything yet. Any ideas? Thanks in advance!
    Abraham Fowler

    I'm going to answer my own question, because I kept searching the forums and eventually found the answer... maybe someone else in the same situation will find this answer here too. I got the answer from the following thread:
    http://forum.java.sun.com/thread.jsp?forum=13&thread=256151
    Basically, if you are doing a JNDI lookup with "java:comp/env" prefixed to the JNDI name, the app server will try to do a lookup within the current machine. If you leave that prefix off, it will look up using whatever properties you set in the InitialContext. At least, this is how I understood it from the thread I mentioned above.

  • ORA-01722: Invalid Number error coming on upgrade from  11.2.0.1.0 to  11.2.0.2.0

    Hi,
    Recently i upgraded the DB from 11.2..0.1.0 to 11.2.0.2.0 after which my queries started giving ORA:01722 error.
    The query had a left outer join between two tables based on the 2 column having different data types.
    For eg:  select * from table_1left outer join table_2 on table_2.column with number data type =
                   table_1. column with varchar datatype
    This query was working fine on 11.2..0.1.0, but started to give out error  after upgrading.

    1) the data was same in both the versions of the DB, so i don't think that first point is the reason its misfiring.
    2) For the second point if i write my query like below it works correctly in the newer version of DB.
    select * from table_1left outer join table_2 on to_char(table_2.column with number data type) =
                   table_1. column with varchar datatype
    OR
    select * from table_1left outer join table_2 on trim(table_2.column with number data type) =
                   table_1. column with varchar datatype
    3) The nls settings seems to be same for both the versions. I couldn't find any changes.
    Thanks

  • Error while running EJB from Client

    I am able to successfuly deploy the EJB in Oracle 8.1.5, While running the Client code I am getting the following error, can any one help how to solve.
    org.omg.CORBA.INTERNAL[completed=MAYBE, reason=java.lang.ClassNotFoundException: com.visigenic.vbroker.ds.DSUser]
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.lang.RuntimeException.<init>(Compiled Code)
    at org.omg.CORBA.SystemException.<init>(Compiled Code)
    at org.omg.CORBA.INTERNAL.<init>(Compiled Code)
    at com.visigenic.vbroker.orb.ORB.create(Compiled Code)
    at com.visigenic.vbroker.orb.ORB.create(Compiled Code)
    at com.visigenic.vbroker.orb.ORB.locator(Compiled Code)
    at com.visigenic.vbroker.orb.ORB.bind(Compiled Code)
    at com.visigenic.vbroker.orb.UnboundStubDelegate.bind(Compiled Code)
    at com.visigenic.vbroker.orb.UnboundStubDelegate.request(Compiled Code)
    at com.visigenic.vbroker.orb.UnboundStubDelegate.request(Compiled Code)
    at org.omg.CORBA.portable.ObjectImpl._request(Compiled Code)
    at org.omg.CORBA._st_InitialReferences.get(Compiled Code)
    at oracle.aurora.jndi.sess_iiop.SessionCtx.initialContext(Compiled Code)
    at oracle.aurora.jndi.sess_iiop.SessionCtx.<init>(Compiled Code)
    at oracle.aurora.jndi.sess_iiop.ServiceCtx.createSession(Compiled Code)
    at oracle.aurora.jndi.sess_iiop.ServiceCtx.login(Compiled Code)
    at oracle.aurora.jndi.sess_iiop.ServiceCtx.defaultSession(Compiled Code)
    at oracle.aurora.jndi.sess_iiop.ServiceCtx.lookup(Compiled Code)
    at oracle.aurora.jndi.sess_iiop.sess_iiopURLContext.lookup(Compiled Code)
    at oracle.aurora.jndi.sess_iiop.sess_iiopURLContext.lookup(Compiled Code)
    at javax.naming.InitialContext.lookup(Compiled Code)
    at Date.Client.main(Compiled Code)
    null

    Verify if the connect.properties match your deployment mode viz Local, EJB or Oracle8i.
    Uday

  • Shared 64-bit Adobe PDF Converter, "Invalid Handle" error. (Print request from 32-bit computer)

    I have at my disposal a Windows 7, 64-bit, Laptop and a Windows Server 2008, 32-bit.
    My Adobe CC suite is installed on the laptop, but the server needs to stay as bare-bones as possible.
    There are embedded help files in some of the software (on the server) that I wanted to convert to a PDF rather than print out. As with many printers, I figured I could share the PDF driver installed by the Acrobat Pro software, and then simply send the spool over from the server. I initially ran into missing driver issues, so I googled a solution where there are additional drivers found in the Program Files (x86). However, there were several cryptically named "*.inf" files that all pointed to some 6 driver certificates that all had the same name. Talk about directions being useless, even if they were right. In any case, the first driver installation came with promising results but no final file. I figured I could just update the shared, 32-bit, driver, but go figure that the option to refresh the secondary driver was nowhere to be found. The shared dialogue recognized that I clearly installed one, but a manual update or removal option was not provided.
    I am at a point where I would like Adobe to just show me some love, and throw me the 32-bit Adobe PDF Converter installer that would have been embedded in earlier versions of Adobe Acrobat. If anybody could lead me in the right direction to solving my problem, it would be greatly appreciated.

    Acrobat is not licensed for use on the server. If you can print to postscript on the server, you can take the postscript files and distill them on your version of Distiller.

Maybe you are looking for

  • Select statement not working

    hi to all, I am trying to write use inner joining . here is code DATA:tabname LIKE dd02L-tabname,      table_disc LIKE dd02t-ddtext.   SELECT  dd02ltabname dd02tddtext INTO (tabname,table_disc)     FROM dd02l INNER JOIN dd02t on dd02ltabname = dd02tt

  • Photoshop CS5 pop-ups (Dialog boxes) will not stay / stick in place

    My pop-up / dialog boxes have always opened in the same place as I had placed them from the previous time I had used them. All of a sudden they will no longer stick / stay, they open in the center of the page. For example when I first open PS and I c

  • Screenshots to Pages doc causes crash when printing

    I'm creating a document on Pages that has several screenshots on the document (creating a user manual). When I try to print the document, Pages crashes and it will not print. I removed the screenshots and was able to print. I deleted the original scr

  • I bought an I pad, do I need to purchase virus protection.

    I bought an I pad do I need virus protection like my Pc.

  • Unknown audio track on my DVDs

    I put together an iMovie with stills and an audio track. When I preview it, it plays perfectly. When I burn the DVD of it, a totally different audio track plays and the one I put into the iMovie is nowhere on the disc. Help! Rich Rector