EJB + CORBA problems

Hi there,
I've got some code (EJB) which connect
me to OLAPService on my 9i Oracle server. I deployed it to Oracle AS which
is istalled on another machine. Then I wrote client application which has to
connect to OAS and invoke EJB method to connect to OLAPService.
The connection to EJB was successfully established (of course through a
CORBA). But when EJB was trying to connect to Oracle9i I got such error :
javax.naming.NameNotFoundException:
sess_iiop://<server_ip>:<port>:<sid>/etc/OLAPServer/OLAPServer not found
I think it something wrong with my OAS enviroment. I have tried to do my best , but still nothing .... ( I am sure that everything else is OK, because I tried to make connection through
JDBC to relational database and it worked fine).
When I'm starting EJB's code as client application everything is OK. The
connection to OLAPService is established every time. When I modyfied code
for EJB (commenting code responsible for preparing InitailContextEnviroment
and connecting to OLAPService) everything was OK. So :
1) I can connect and invoke EJB's method deployed to OAS,
2) I can connect to Oracle9i OLAPService and use OLAPAPI methods,
3) I can't do it when I try to connect to OLAPService through the OAS (where
is EJB)
client_application (java) ===CORBA===> OAS ( EJB with OLAPAPI) ==CORBA==>
OLAPService
This is the EJB's method code ( when it is calling as client application it
works!!!!):
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
import org.omg.CORBA.Object;
import oracle.aurora.jndi.sess_iiop.ServiceCtx;
import oracle.express.connection.Connection;
import oracle.express.connection.ConnectionManager;
import javax.naming.Context;
import javax.naming.InitialContext;
import java.util.*;
public String Polaczenie()
String serviceURL="sess_iiop://<server_ip>:<port>:<sid>";
String objectName="/etc/OLAPServer/OLAPServer";
Hashtable env=new Hashtable();
env.put(Context.URL_PKG_PREFIXES,"oracle.aurora.jndi");
env.put(Context.SECURITY_PRINCIPAL,<user>);
env.put(Context.SECURITY_CREDENTIALS,<password>);
env.put(Context.SECURITY_AUTHENTICATION,ServiceCtx.NON_SSL_LOGIN);
try
Context ic=new InitialContext(env);
org.omg.CORBA.Object
ServiceStub=(org.omg.CORBA.Object)(ic.lookup(serviceURL+objectName));
Properties connParams = new Properties();
connParams.put("UserID",<user>);
connParams.put("Password",<password>);
ConnectionManager cm=ConnectionManager.init();
Connection conn=
cm.connect((org.omg.CORBA.Object)ServiceStub,connParams);
conn.close();
catch(Exception e)
return "\nError:" + e + "\n";
return "\nIt works\n";
This is client's code:
public static void main(String[] args)
try {
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.evermind.server.rmi.RMIInitialContextFactory");
env.put(Context.PROVIDER_URL, "ormi://sasza/SerwerEjb");
env.put(Context.SECURITY_PRINCIPAL, "admin");
env.put(Context.SECURITY_CREDENTIALS, "oracle");
Context context = new
com.evermind.server.rmi.RMIInitialContextFactory().getInitialContext(env);
Object homeObject = context.lookup("<myEJBName>");
SerwerEjbHome home = (SerwerEjbHome)
PortableRemoteObject.narrow(homeObject, pakiet.SerwerEjbHome.class);
SerwerEjb remote = home.create();
System.out.println(remote.Polaczenie()); <------------------ there is
error !!!!!!!!!!!!!!!!!! ------------------>
catch(Exception e)
System.err.println("Error: " + e + ":::" + e.getMessage());
Any idea ??
Thank you in advance.

"Taesun, An" <[email protected]> writes:
Thanks for your concern !Its my code - I should be concerned :)
I have successfuly tested the sample program that you attached.
and I have some more questions.Great!
Q1) Can I use idl files generated by weblogic.ejbc on the other ORB like as
orbix, etc..?Yes. But the problem is that Orbix is known to have problems with the
codeset that we send out. For silversword we are doing a GIOP 1.2
implementation a by-product of which will be that we have to do some
form of codeset negotiation, so hopefully these issues will be sorted
in the near future.
And I know that the Client.cpp program you sent differs from original source
code in the respects which is including TradeResultFactory and
TradeResultImpl classes.
Q2) If so, Do i have to implement the above classes for all of call by value
parameters or return type ?You have to write some C++ code for any valuetypes that you use. This
basically means any non-primitive object that is not a remote
interface and implements serializable.
I wanna know for the needed classes how to easily get generated or the other
solutions.I attach the entity bean example I cooked up which shows you how you
can use C++ macros to take away some of this pain. Note that you cannot make the finder method work with 6.0SP2. This will be fixed in 6.1
[generic_idl_entity.zip]
I got error message following as, when i used "-idlFactories" of
weblogic.ejbc option to generate Factory definition.
Usage: java weblogic.rmic [options] <classes>...
option descriptions ,.,........
option descriptions ,.,........
ERROR: Error from ejbc: Unrecognized option or flag, -idlFactories
ERROR: ejbc found errors
make: *** [ejbc] Error 1Hmm, you are right. It looks like the option didn't get inverted in
rmic. The attached class file should fix this.
[IDLGeneratorOptions.class]
andy

Similar Messages

  • Options for EJB - Corba - correct?

    Hi,
    I'm looking at the options for EJB->CORBA and CORBA->EJB method calls in Weblogic Server 5.1 (although we may be moving to 6 soon)
    We are currently using CORBA 2.1 C++ code, and are looking for a migration path into EJBs.
    I've tried to pull together small list of our options, with apologies to Eduardo Ceballos who wrote most of this text originally, and anyone else who's work is included.
    Does any one have the time to read the below, and make any comments on important options that I've missed, or pitfalls that they can see?
    Thankyou in advance;
    Notes:
    -- RMI over IIOP is only available under JDK 1.3
    -- if we use a pre Corba 2.3 implementation (as we currently are), only primitive types may be passed (no OBV available).
    -- Another option is to use WebLogic Enterprise, but we are currently using WebLogic Server. &#8216;WebLogic Enterprise Connectivity gives you the ability to create IIOP connection pools to a BEA WebLogic Enterprise, allowing you to execute WebLogic Enterprise CORBA objects from WebLogic Server servlets and Enterprise JavaBeans.&#8217;
    Calling from a WLS into a CORBA server:
    ========================================
    There are several variations on two ways:
    1. expose the CORBA interface;
    To expose the CORBA interface, you collocate the ORB of your choice within the WLS instance and bind CORBA stubs into the JNDI tree as needed. The application looks up CORBA objects and uses the CORBA server interfaces as you would regardless of WLS.
    This is an example of designing the RMI interface so that it maps in a usable way to the IDL interface.
    2. hide the CORBA interface.
    To hide the CORBA interface, create a RMI interface and a RMI server class; run 'weblogic.rmic -iiop -idl ...' on that class; take the resulting idl and add it to the interfaces which the CORBA servers implement. To gain access to the CORBA servers, use COSNaming to bind the CORBA servers into the WLS JNDI tree. As above, the application looks up the CORBA servers in the JNDI tree, but in this case the application uses the RMI-IIOP stubs to communicate with the CORBA servers.
    This is an example of adding RMI interfaces to existing CORBA servers to establish some level of connectivity.
    If you are using an RMI-IIOP implementation of some sort, then you are effectively hiding the CORBA interface, except you'd ignore any of work that would be done at the IDL level.
    Note: We should use rmic and the &#8211;noValueTypes flag (as we aren&#8217;t using Orbix 2.3).
    Calling from a Corba server into WLS
    ======================================
    It is possible to host an Orb in the app server, contained within a WebLogic startup class. This will allow Corba calls to be delegated to app-server components (see option 1, above).
    Thanks again.

    Comments inline....
    G Morgan wrote:
    Hi,
    I'm looking at the options for EJB->CORBA and CORBA->EJB method calls in Weblogic Server 5.1 (although we may be moving to 6 soon)Yes, move to 6.0.
    >
    >
    We are currently using CORBA 2.1 C++ code, and are looking for a migration path into EJBs.
    I've tried to pull together small list of our options, with apologies to Eduardo Ceballos who wrote most of this text originally, and anyone else who's work is included.
    Does any one have the time to read the below, and make any comments on important options that I've missed, or pitfalls that they can see?
    Thankyou in advance;As far as I can tell, pre-2.3 ORBs can not handle type ids that start with "RMI:". So pretty much the only option at the moment with a pre-2.3 ORB is to delegate through a colocated ORB. As with the the previous response, it's a good idea to host the ORB in a WLS client, that way if the ORB goes south, it doesn't take the server with it.
    >
    >
    Notes:
    -- RMI over IIOP is only available under JDK 1.3
    -- if we use a pre Corba 2.3 implementation (as we currently are), only primitive types may be passed (no OBV available).
    -- Another option is to use WebLogic Enterprise, but we are currently using WebLogic Server. &#8216;WebLogic Enterprise Connectivity gives you the ability to create IIOP connection pools to a BEA WebLogic Enterprise, allowing you to execute WebLogic Enterprise CORBA objects from WebLogic Server servlets and Enterprise JavaBeans.&#8217;
    Calling from a WLS into a CORBA server:
    ========================================
    There are several variations on two ways:
    1. expose the CORBA interface;
    To expose the CORBA interface, you collocate the ORB of your choice within the WLS instance and bind CORBA stubs into the JNDI tree as needed. The application looks up CORBA objects and uses the CORBA server interfaces as you would regardless of WLS.
    This is an example of designing the RMI interface so that it maps in a usable way to the IDL interface.
    2. hide the CORBA interface.
    To hide the CORBA interface, create a RMI interface and a RMI server class; run 'weblogic.rmic -iiop -idl ...' on that class; take the resulting idl and add it to the interfaces which the CORBA servers implement. To gain access to the CORBA servers, use COSNaming to bind the CORBA servers into the WLS JNDI tree. As above, the application looks up the CORBA servers in the JNDI tree, but in this case the application uses the RMI-IIOP stubs to communicate with the CORBA servers.
    This is an example of adding RMI interfaces to existing CORBA servers to establish some level of connectivity.
    If you are using an RMI-IIOP implementation of some sort, then you are effectively hiding the CORBA interface, except you'd ignore any of work that would be done at the IDL level.
    Note: We should use rmic and the &#8211;noValueTypes flag (as we aren&#8217;t using Orbix 2.3).
    Calling from a Corba server into WLS
    ======================================
    It is possible to host an Orb in the app server, contained within a WebLogic startup class. This will allow Corba calls to be delegated to app-server components (see option 1, above).
    Thanks again.

  • EJB & CORBA Samples

    The URL is: http://technet.oracle.com/tech/java/ejb_corba/index2.htm?Code&files/hotel/hotelHome.htm
    These samples implement a Hotel Reservation Application four different ways: two designs use EJB components and two designs use CORBA components. Compare the source code.
    There are four samples: EJB, CORBA, AQ, and Java Stored Procedures. They have been available for awhile, but I'm posting here to remind people, and to start a thread for a discussion.
    -rh
    null

    Here are some questions from Vadim Katz and answers from the OTN developers who built the AQ Hotel sample app:
    I was able to compile the whole projects but only after doing the following:
    1) Adding JBO 8i Client library which contains
    javax.jts.UserTransaction. This is not mentioned in the example guide
    and UserTransaction is not a part of Sun's javax.jts packageThe AQ EJB/CORBA Sample was developed using JDeveloper 2.0. In JDeveloper 2.0, the CORBA library contains aurora_client.jar, and aurora_client.jar contains classes like javax.jtx.UserTransaction, etc.
    JDeveloper 3.1does not include the CORBA library by default, and that is why you need to add JBO 8i Client, etc.
    > 2) I also had to compile HotelSystemSQLJ.sqlj file to get .class file;
    > otherwise, during global project rebuilt I was only getting .ser file.
    > Missing .class file was causing compilation errors.
    JDeveloper requires you to first compile HotelSystemSQLJ.sqlj and HotelSQLJ.sqlj separately. These steps are
    mentioned in the README.txt.
    3) FINALLY, A BIG QUESTION. Why does travel8i.dmp modify SYSTEM TABLES
    and because of that user "travel" is required to have SYS priveledges???The Sample requires a TRAVEL user with Sample Travel Data. We could have asked the user to create a separate tablespace and import travel8i.dmp into it, but that would increase the installation steps. For
    simplicity, we create the TRAVEL user in the SYSTEM tablespace.
    When you want to delete example data, simply drop the "TRAVEL" user.
    The AQ Sample needs access to DBMS_AQADM and DBMS_AQ packages which are present in SYS user.
    I hope this helps,
    -rh

  • Stand alone client for remote EJB corba error

    Regarding problem below, I've checked System env variables
    that weblogic server is using for CORBA classes:
    javax.rmi.CORBA.UtilClass=weblogic.iiop.UtilDelegateImpl
    org.omg.CORBA.ORBSingletonClass=weblogic.corba.orb.ORB
    org.omg.CORBA.ORBClass weblogic.corba.orb.ORB
    javax.rmi.CORBA.PortableRemoteObjectClass=weblogic.iiop.PortableRemoteObjectDelegateImpl
    But these are server classes and not found in wlclient.jar and wljmsclient.jar. What classes should be used for client? What needs to be set in order to get successful remote RMI/EJB call to weblogic server?
    Original post:
    I have a stand alone spring client for simple stateless session EJB deployed on weblogic 9.2. I'm using spring (jdk 1.5) to call this remote EJB and the only way I can succeed is to have full weblogic.jar in my bootstrap classpath. Otherwise I get corba error:
    CORBA BAD_PARAM 0 No; nested exception is:
    org.omg.CORBA.BAD_PARAM: vmcid: 0x0 minor code: 0 completed: No
    Interestingly, within same client I have JMS call to weblogic JMS and that fails if weblogic.jar is in boot classpath. Getting rid of weblogic.jar from boot classpath works if I have wlclient.jar and wljmsclient.jar in regular classpath (as per weblogic docs). I would think that for stand alone client all I would need is to weblogic client jars, why should I need to have full weblogic.jar?
    I can't get those work together with same classpath. I wonder if anybody has some pointers and/or advice. I was looking to set system parameters for corba for weblogic client that maybe could help:
    org.omg.CORBA.ORBClass
    org.omg.CORBA.ORBSingletonClass
    javax.rmi.CORBA.UtilClass
    javax.rmi.CORBA.StubClass
    javax.rmi.CORBA.PortableRemoteObjectClass
    But I can't find definitive answer.
    Regards,
    -pp
    Edited by mr.papini at 06/28/2007 9:05 AM

    I'm stuck exactly with the same issue while trying to port my application from weblogic to jboss.
    I tried to specify different ORB implementations (JacORB, OpenORB) for jvm option org.omg.CORBA.ORBClass, but JBoss couldn't get them instantiated. Native Sun implementation which is used in JBoss by default and can be instantiated, apparently is not fully compatible with weblogic security module.
    So did you manage to find out the solution?
    Edited by DigitalDude at 04/09/2008 11:47 PM

  • Client Applet and EJB Server problem

    Hi,
    I developed a applet client that tries to connect to an EJB on the server side. The Applet runs okay in JDev3 but if I deploy it and test it outside the JDev tool I get an error. I tracked the problem to the following line of code:
    ic = new InitialContext(environment);
    Do I run into an applet security problem? If so what do i have to do to allow the applet to read/write to the local system?
    Thanks for any hints!
    Peter
    Error I get
    JAR cache enabled.
    Opening http://pete/gateway/clientmanagement.jar no proxy
    CacheHandler file name: C:\WINNT\Profiles\peter.000\Temporary Internet Files\Content.IE5\ALMN6PAZ\clientmanagement[1].jar
    Creating an initial context
    Opening http://pete/gateway/oracle/oas/container/nls/Version_en_US.class no proxy
    CacheHandler file name: null
    null

    Hi,
    I have still problems getting the client applet running. I tested it with the appletviewer and I modified the security.policy file. I allow the applet to almost everthing but i still get the following error:
    What do I do wrong? Do I really have to sign the jar file? Do I miss some stub classes?
    Thanks for any hints...
    Peter
    JAR cache disabled.
    Opening http://pete/Gateway/. no proxy
    Opening http://pete/Gateway/. no proxy
    Opening http://pete/Gateway/test/Client.class no proxy
    CacheHandler file name: C:\WINNT\Profiles\peter.000\Temporary Internet Files\Content.IE5\ALMN6PAZ\Client[1].class
    Opening http://pete/Gateway/test/Client$1.class no proxy
    CacheHandler file name: C:\WINNT\Profiles\peter.000\Temporary Internet Files\Content.IE5\ALMN6PAZ\Client$1[1].class
    Creating an initial context
    Looking for the EJB published as 'Gateway/GatewayProcessorRemote'
    Opening http://pete:80/_RMProxyURL_ no proxy
    Naming exception!
    [Root exception is org.omg.CORBA.NO_IMPLEMENT: minor code: 0 completed: No]javax.naming.ServiceUnavailableException
    at oracle.oas.jndi.oas.SecCosNamingContext.resolve(SecCosNamingContext.java:265)
    at oracle.oas.jndi.oas.BeanContext.lookup(BeanContext.java:328)
    at oracle.oas.jndi.oas.BeanInitialContext.resolve(BeanInitialContext.java:265)
    at oracle.oas.jndi.oas.BeanContext.lookup(BeanContext.java:328)
    at oracle.oas.jndi.oas.BeanInitialContext.lookup(BeanInitialContext.java:165)
    at oracle.oas.jndi.oas.WrapperContext.lookup(WrapperContext.java:78)
    at oracle.oas.jndi.oas.BeanContext.lookup(BeanContext.java:422)
    at javax.naming.InitialContext.lookup(InitialContext.java:288)
    at test.Client.initializeEJB(Client.java:104)
    at test.Client.startButton_actionPerformed(Client.java, Compiled Code)
    at test.Client$1.actionPerformed(Client.java:55)
    at java.awt.Button.processActionEvent(Button.java:308)
    at java.awt.Button.processEvent(Button.java:281)
    at java.awt.Component.dispatchEventImpl(Component.java, Compiled Code)
    at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java, Compiled Code)
    at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java, Compiled Code)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:92)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:83)
    null

  • Applet-ejb; corba exception

    Hi, I am trying to access EJB from an applet thro' ejb-client.jar. It works fine if I include weblogic.jar in the applet archive but it throws a corba exception if I use wlclient.jar and wljmsclient.jar instead of weblogic.jar in the archive. As weblogic.jar is too huge I want to use thin clients. Could someone help me with this exception. I am using WLS8.1_sp4; jdk 1.4.2_05 and ie6 with latest jvm. Both applet and ejb are deployed in same localhost com.sun.corba.se.internal.iiop.ConnectionTable(Thread[thread applet-informatics.inventory.plates.editor.PlateMapEditor.class, 4,file:/C:/projects/perforce/java/PlateMapViewer/-threadGroup]): Client get called: host = localhost port = 7001 com.sun.corba.se.internal.iiop.ConnectionTable(Thread[thread applet-informatics.inventory.plates.editor.PlateMapEditor.class, 4,file:/C:/projects/perforce/java/PlateMapViewer/-threadGroup]): Creating new connection Connection[type=IIOP_CLEAR_TEXT remo te_host=localhost remote_port=7001 state=ESTABLISHED] com.sun.corba.se.internal.iiop.MessageMediator(Thread[JavaIDL Reader for localhost:7001,4,ORB ThreadGroup]): Creating message from stream com.sun.corba.se.internal.iiop.ConnectionTable(Thread[thread applet-informatics.inventory.plates.editor.PlateMapEditor.class, 4,file:/C:/projects/perforce/java/PlateMapViewer/-threadGroup]): Succesfully created socket for new connection com.sun.corba.se.internal.iiop.MessageMediator(Thread[JavaIDL Reader for localhost:7001,4,ORB ThreadGroup]): Reading the mess age fully, size =1204 com.sun.corba.se.internal.iiop.MessageMediator(Thread[JavaIDL Reader for localhost:7001,4,ORB ThreadGroup]): Handling GIOP 1. 0 LocateReply com.sun.corba.se.internal.iiop.IIOPInputStream(Thread[JavaIDL Reader for localhost:7001,4,ORB ThreadGroup]): Constructing IIO PInputStream object com.sun.corba.se.internal.iiop.IIOPInputStream(Thread[JavaIDL Reader for localhost:7001,4,ORB ThreadGroup]): Setting the time stamp com.sun.corba.se.internal.iiop.MessageMediator(Thread[JavaIDL Reader for localhost:7001,4,ORB ThreadGroup]): Creating message from stream com.sun.corba.se.internal.iiop.ConnectionTable(Thread[thread applet-informatics.inventory.plates.editor.PlateMapEditor.class, 4,file:/C:/projects/perforce/java/PlateMapViewer/-threadGroup]): Client get called: host = 172.16.65.14 port = 7001 com.sun.corba.se.internal.iiop.ConnectionTable(Thread[thread applet-informatics.inventory.plates.editor.PlateMapEditor.class, 4,file:/C:/projects/perforce/java/PlateMapViewer/-threadGroup]): Creating new connection Connection[type=IIOP_CLEAR_TEXT remo te_host=172.16.65.14 remote_port=7001 state=ESTABLISHED] com.sun.corba.se.internal.iiop.MessageMediator(Thread[JavaIDL Reader for 172.16.65.14:7001,4,ORB ThreadGroup]): Creating mess age from stream com.sun.corba.se.internal.iiop.ConnectionTable(Thread[thread applet-informatics.inventory.plates.editor.PlateMapEditor.class, 4,file:/C:/projects/perforce/java/PlateMapViewer/-threadGroup]): Succesfully created socket for new connection com.sun.corba.se.internal.iiop.GIOPImpl(Thread[thread applet-informatics.inventory.plates.editor.PlateMapEditor.class,4,file: /C:/projects/perforce/java/PlateMapViewer/-threadGroup]): getEndpoint(IIOP_CLEAR_TEXT, 0, null) com.sun.corba.se.internal.iiop.GIOPImpl(Thread[thread applet-informatics.inventory.plates.editor.PlateMapEditor.class,4,file: /C:/projects/perforce/java/PlateMapViewer/-threadGroup]): createListener( socketType = IIOP_CLEAR_TEXT port = 0 ) javax.naming.NamingException: Unhandled exception in lookup [Root exception is org.omg.CORBA.MARSHAL: vmcid: SUN minor cod e: 217 completed: Maybe] at weblogic.corba.j2ee.naming.Utils.wrapNamingException(Utils.java:81) at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:237) at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:171) at javax.naming.InitialContext.lookup(InitialContext.java:347) at informatics.inventory.plates.editor.EJBPlateMapDAO.<init>(Unknown Source) at informatics.inventory.plates.editor.PlateMapEditor.init(Unknown Source) at sun.applet.AppletPanel.run(AppletPanel.java:353) at java.lang.Thread.run(Thread.java:534) Caused by: org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 217 completed: Maybe at com.sun.corba.se.internal.iiop.CDROutputStream_1_0.write_wstring(CDROutputStream_1_0.java:464) at com.sun.corba.se.internal.iiop.CDROutputStream.write_wstring(CDROutputStream.java:189) at weblogic.corba.cos.naming.NamingContextAnyPackage.WNameComponentHelper.write(WNameComponentHelper.java:79) at weblogic.corba.cos.naming.NamingContextAnyPackage.WNameHelper.write(WNameHelper.java:59) at weblogic.corba.cos.naming._NamingContextAnyStub.resolve_any(_NamingContextAnyStub.java:79) at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:213) ... 6 more

    I had the same problem and finally caught a statement in one of the docs: "To facilitate the use of IIOP, always specify a valid IP address or DNS name for the Listen Address attribute in the configuration file (config.xml) to listen for connections." I edited my config.xml file and put in the ip address of the machine running my WLS and things started working. Hope this works for you.
    Regards,
    Ron

  • EJB & ORB problems in 8i (8.1.5)

    Hi all,
    I'm having problems with the ORB in 8i (solaris 2.6). When
    trying to run deployejb or sess_sh the process runs for a couple
    minutes then crashes. I assume the ORB is not configured
    properly. Is there trouble shooting guide, or can someone post a
    list of steps to execute to ensure that 8i and the ORB are
    configured properly?
    I've spent the last two days reading the doc's, (both the EJB and
    Net8 Admin) and it seems I have everything set up.
    I've been having problems using netca and it isn't working great,
    and the netasst won't launch at all. Is anyone else having
    problems with either of these tools?
    Its a brand new install of solaris 2.6 and 8i..
    Any advice would be appreciated.
    Thanks in advance,
    Rob
    (Sorry this doesn't directly apply to the JDev group, but there
    doesn't seem to be an EJB group)
    null

    Rob,
    Here's a list from the Oracle JServer FAQ:
    Nothing works! Basic installation sanity tests
    Some people have hit unusual errors after installation and wasted
    large amounts of time chasing down what looks like problems with
    their code, only to find that their installation was
    somehow broken all along.
    If you are getting weird errors, (or this is a fresh
    installation!), please spend 5 minutes to try running the
    following 3 samples before doing anything else. You will need to
    expand
    $ORACLE_HOME/javavm/demo/demo.tar and then run:
    $ORACLE_HOME/javavm/demo/examples/jsp/helloworld
    $ORACLE_HOME/javavm/demo/examples/corba/basic/helloworld
    $ORACLE_HOME/javavm/demo/examples/ejb/basic/helloworld
    These 3 samples are configured to run for a typical install, and
    are supplied with READMEs, Makefiles and should just work. We
    verified that they work before we shipped the CDs,
    so if they fail, there is a problem with the installation
    somewhere.
    If these samples work, they verify that the JServer option is
    properly installed in your Oracle server instance, that basic
    TCPIP connectivity is configured properly, you do have a
    working JDK installed and that the basic Java Stored Procedure,
    CORBA, and EJB functionality is working within your JServer
    installation.
    More importantly, if these 3 samples fail to run, then you can be
    assured that your own code will not run until you fix the
    installation/cofiguration problems and get these 3 samples to
    work. This will save you hours of debugging code that is not to
    blame!
    Rob Truban (guest) wrote:
    : Hi all,
    : I'm having problems with the ORB in 8i (solaris 2.6). When
    : trying to run deployejb or sess_sh the process runs for a
    couple
    : minutes then crashes. I assume the ORB is not configured
    : properly. Is there trouble shooting guide, or can someone post
    a
    : list of steps to execute to ensure that 8i and the ORB are
    : configured properly?
    : I've spent the last two days reading the doc's, (both the EJB
    and
    : Net8 Admin) and it seems I have everything set up.
    : I've been having problems using netca and it isn't working
    great,
    : and the netasst won't launch at all. Is anyone else having
    : problems with either of these tools?
    : Its a brand new install of solaris 2.6 and 8i..
    : Any advice would be appreciated.
    : Thanks in advance,
    : Rob
    : (Sorry this doesn't directly apply to the JDev group, but there
    : doesn't seem to be an EJB group)
    null

  • EJB-CORBA

    I am facing a problem which is explained below:
    I have a CORBA server. One of the methods returns a java object, which is serialized.
    A session bean tries to bind to this CORBA server and invokes the above mentioned method.
    It is able to bind and invoke this method, but it is not able to receive the object returned by the method.
    The exception reported is as follows:
    org.omg.CORBA.MARSHAL: class not available for serialized object minor code: 0 completed: No
    at com.visigenic.vbroker.orb.CaffeineInputStream.read_estruct(CaffeineInputStream.java:23)
    at com.platform7.persona.dps.sci._st_SCIInterface.connectSM(_st_SCIInterface.java:205)
    at com.platform7.persona.dps.sessionbeans.AcceptorSessionBean.register(AcceptorSessionBean.java:3742)
    at com.platform7.persona.dps.sessionbeans.EJSRemoteStatefulAcceptorSession.register(EJSRemoteStatefulAcceptorSession.java:225)
    at com.platform7.persona.dps.sessionbeans._EJSRemoteStatefulAcceptorSession_Tie._invoke(_EJSRemoteStatefulAcceptorSession_Tie.java:228)
    at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:398)
    at com.ibm.rmi.iiop.ORB.process(ORB.java:313)
    at com.ibm.CORBA.iiop.ORB.process(ORB.java:1560)
    at com.ibm.rmi.iiop.GIOPConnection.doWork(GIOPConnection.java:1815)
    at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:81)
    at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:102)
    at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)
    If I replace this session bean with a standalone java application, I'm able to receive the java object returned by the CORBA server.
    Does anyone have a solution to this problem? I doubt, if any settings needs to be done in the Websphere.

    When you get the (lovely) Marshalling exception from Websphere... you always want to ensure that the client calling the bean has the EXACT same version of the EJB jar file (which contains your objects) which is deployed in $WAS_HOME/installedApps/
    We see this problem every once and a while because one of our clients is a cold fusion application... and if the CF app throws a Marshalling exception, we just forgot to update the Jar files in CF's classpath with the new Jar files (like when we regenerate the stub/skel code for the ejb's).
    So, make sure everything is update to date an in synch and you should be good to go.
    ./dave

  • CORBA problem calling stateless session bean

    We are running a bunch of ssbs under 8.1. When I make a call to the first bean, I get the following mysterious stack trace. We have put %BEA_HOME%\weblogic81\server\lib\wlclient.jar on our classpath. Is this not correct? Running on windows2000.
    jdk 1.4.2_04
    Regards
    org.omg.CORBA.UNKNOWN: vmcid: 0x0 minor code: 0 completed: Maybe
         at com.sun.corba.se.internal.core.UEInfoServiceContext.<init>(UEInfoServiceContext.java:33)
         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:274)
         at com.sun.corba.se.internal.core.ServiceContextData.makeServiceContext(ServiceContextData.java:112)
         at com.sun.corba.se.internal.core.ServiceContexts.unmarshal(ServiceContexts.java:179)
         at com.sun.corba.se.internal.core.ServiceContexts.get(ServiceContexts.java:367)
         at com.sun.corba.se.internal.core.ServiceContexts.get(ServiceContexts.java:353)
         at com.sun.corba.se.internal.corba.ClientDelegate.invoke(ClientDelegate.java:372)
         at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
         at com.armanta.ejb.user._UserMaster_Stub.login(Unknown Source)
         at com.armanta.security.DefaultLoginModule.validate(DefaultLoginModule.java:364)
         at com.armanta.security.DefaultLoginModule.login(DefaultLoginModule.java:177)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at javax.security.auth.login.LoginContext.invoke(LoginContext.java:675)
         at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
         at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
         at javax.security.auth.login.LoginContext.login(LoginContext.java:534)
         at com.armanta.rptgen.DataServer.login(DataServer.java:1608)
         at com.armanta.app.portviewer.PortGui.main(PortGui.java:1307)

    Eric Kaplan <[email protected]> writes:
    You get this for undeclared throwables. You should check the server
    log so see the real exception. You may need to add
    InstrumentStackTraceEnabled to you server config to see it.
    andy
    We are running a bunch of ssbs under 8.1. When I make a call to the first bean, I get the following mysterious stack trace. We have put %BEA_HOME%\weblogic81\server\lib\wlclient.jar on our classpath. Is this not correct? Running on windows2000.
    jdk 1.4.2_04
    Regards
    org.omg.CORBA.UNKNOWN: vmcid: 0x0 minor code: 0 completed: Maybe
         at com.sun.corba.se.internal.core.UEInfoServiceContext.<init>(UEInfoServiceContext.java:33)
         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:274)
         at com.sun.corba.se.internal.core.ServiceContextData.makeServiceContext(ServiceContextData.java:112)
         at com.sun.corba.se.internal.core.ServiceContexts.unmarshal(ServiceContexts.java:179)
         at com.sun.corba.se.internal.core.ServiceContexts.get(ServiceContexts.java:367)
         at com.sun.corba.se.internal.core.ServiceContexts.get(ServiceContexts.java:353)
         at com.sun.corba.se.internal.corba.ClientDelegate.invoke(ClientDelegate.java:372)
         at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
         at com.armanta.ejb.user._UserMaster_Stub.login(Unknown Source)
         at com.armanta.security.DefaultLoginModule.validate(DefaultLoginModule.java:364)
         at com.armanta.security.DefaultLoginModule.login(DefaultLoginModule.java:177)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at javax.security.auth.login.LoginContext.invoke(LoginContext.java:675)
         at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
         at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
         at javax.security.auth.login.LoginContext.login(LoginContext.java:534)
         at com.armanta.rptgen.DataServer.login(DataServer.java:1608)
         at com.armanta.app.portviewer.PortGui.main(PortGui.java:1307)

  • EJB classpath problem when refering a DAO in library jar file

    Hi
    When I tried to deploy an EJB jar file in 10g which references the DAO for getting database[SQL Server2000] query results.Its not retriving data nor throwing any exceptions.Other DAO business methods which do not access database are working well.
    When I tried to import the DAO inside a JSP and calling the DAO data access method which is working fine. Even I have set the resource-ref [datasource JNDI Name] in ejb-jar.xml files for the EJB beans, but its not referencing. If you have any ideas, how to resolve this problem, please forward me your suggestion.
    Thanks in Advance
    Best Regards
    Venugopal Balu

    Hi
    When I tried to deploy an EJB jar file in 10g which references the DAO for getting database[SQL Server2000] query results.Its not retriving data nor throwing any exceptions.Other DAO business methods which do not access database are working well.
    When I tried to import the DAO inside a JSP and calling the DAO data access method which is working fine. Even I have set the resource-ref [datasource JNDI Name] in ejb-jar.xml files for the EJB beans, but its not referencing. If you have any ideas, how to resolve this problem, please forward me your suggestion.
    Thanks in Advance
    Best Regards
    Venugopal Balu

  • CORBA problem after migration to JDK 1.5.0_05

    Hi,
    I faced some errors with CORBA, after performing migration from JDK 1.4.1 to JDK 1.5.0_02
    on Solaris 8 2/02 (SPARC version).
    I've spend few days on digging in java.sun.com bug database and google archive,
    but haven't found similar case.
    The problem occurs in a web application launched on Tomcat 5.5.7, if JDK 1.5.0_02 is used and trying to connect with CORBA server.
    If using JDK 1.4.1 the CORBA stuff works fine.
    I isolated the problem code and found out, that Tomcat
    can not cause the error, because i receive the same error while invoking test class from command line.
    I use IOR file for obtaining the object reference and default JDK Orb.
    The stacktrace(see below) goes through new package in JDK 1.5 com.sun.corba.se.impl.* and java.lang.Class which was
    rewriten in JDK 1.5 in order to use generics. Is it possible that the bug lies somewhere in this classes?
    I've already spent few days on searching cause of the bug, and found no clues.
    Is this a known issue? Does anyone have a workaround?
    Have you seen some similiar behavior associated with migration to JDK 1.5.0 ?
    I'm running out of ideas, on debugging this stuff, any help or suggestion could be helpful.
    Thanks In Advance, Kuba
    PS. I attach the received stack trace below:
    org.omg.CORBA.BAD_OPERATION:   vmcid: 0x0  minor code: 0 completed: Maybe
            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:350)
            at java.lang.Class.newInstance(Class.java:303)
            at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.getSystemException(MessageBase.java:897)
            at com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage_1_2.getSystemException(ReplyMessage_1_2.java:99)
            at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.getSystemExceptionReply(CorbaMessageMediatorImpl.java:572)
            at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(CorbaClientRequestDispatcherImpl.java:430)
            at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(CorbaClientRequestDispatcherImpl.java:326)
            at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:129)
            at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
            at generated.from.idl.package._ServerFactoryStub.FindServer(_ServerFactoryStub.java:25)

    Hi,
    I replying to my own post for persons who, have a similar problem.
    I've used external ORB implementation, and the stuff started working properly.
    www.jacorb.org.

  • EJB deployment problem --New remote interface class files are not loaded

    Hi, I face a problem while deploying an ear file in oc4j. I basically get some problems like the method in the remote interface is not implemented in the EJB class. But the implementation is actually available in the EJB class.
    We get this problem when we actually change the signature of the EJB remote methods. The new methods are not referenced by oc4j. Only the old version of remote interface is referenced by oc4j. But the latest version of EJB class is taken. I am using 9.0.3 version of the oc4j. Could you pls help me regarding this problem ?
    Regards
    Solomon

    I have found the solution :-)
    You must add to the ejbCreate() method of the bean class throws javax.ejb.CreateException

  • EJB Tutorial problem

    Hi everybody,
    I try to do the tutorial for "Using EJBs in Web Dynpro".
    [Link to Tutorial|/docs/DOC-8061#20 [original link is broken]]
    But on page 14 I got problems.
    I have to implement the constructor that throws an exception called "CreateException". But this cannot be resolved from my NWDS. I tried it with organizing imports but nothing happened so I tried to import the class manually with the coding
    import javax.ejb.createexception;
    It failed again. I think the library for this is missing. Anybody did the tutorial and solved the problem?
    I am using NWDS 7.1 SP1 with SAP ehp 1.
    Thx for any help.

    Hi Gunter,
    thx for your answer but I didn't understand it. Where did you find the point "used DC"? Can you send me a screenshot?
    Link with E-Mail-Address
    [http://forums.sdn.sap.com/profile.jspa?userID=3821530]
    Thx a lot

  • EJB 3 Problem: "Collections having FK in secondary table"

    Hi,
    working with EJB 3 first time, i have to develop my entites by a DB scheme. It is very complex and now I have the problem using composite FK / PK in many tables, so that a refenrenced key has as the same time both properties: FK / PK.
    Example: +3 Tables: Mxx:={M_ID as PK},
    Lxx:={M_ID as PK / FK from Mxx},
    Zxx:={M_ID as PK/FK from Lxx}+
    I have built Mxx.java, Lxx.java with @EmbeddedId from LxxPK.java (works) and the problem table Zxx.java with @EmbeddedId from ZxxPK.java which includes a reference key and same time primary key from Lxx.
    How can I solve the problem of "having FK in secondary table"?
    THX for your help!

    I will specify my problem a little more:
    I have an Entity named zuordnung_module_lv_ma this references an Entity lehrveranstaltungen.
    In zuordnung_module_lv_ma :
    @OneToMany
    @JoinColumn(...)
    public Collection<lehrveranstaltungen> lv = new ArrayList...
    For more detailed information look at this:
    my only problem is the table zuordnung_module_lv_ma
    SQL:
    create table BLOECKE
    BLOCKID integer not null,
    WOCHENTAG integer,
    ZEIT_VON datetime,
    ZEIT_BIS datetime,
    LOGISCHGELOESCHT char not null,
    constraint PK_BLOECKE primary key (BLOCKID)
    create table CURRICULA
    CURRICULUMKUERZEL varchar not null,
    CURRICULUMBEZ varchar,
    CURRICULUMID integer not null,
    IDVERANTWORTLICHERSTUDIENDEKAN integer,
    LOGISCHEGELOESCHT char not null,
    constraint PK_CURRICULA primary key (CURRICULUMID)
    create table LEHRVERANSTALTUNGEN
    MODUL_ID integer not null,
    LV_ID integer not null,
    SWS double not null,
    ART_LV char not null,
    LOGISCHGELOESCHT char not null,
    MAXTEILNEHMER integer not null,
    constraint PK_LEHRVERANSTALTUNGEN primary key (MODUL_ID, LV_ID, ART_LV)
    create table MITARBEITER
    MA_ID integer not null,
    TITEL varchar,
    NACHNAME varchar not null,
    VORNAME varchar not null,
    AUFGELAUFENESWS integer,
    LETZTESFORSCHUNGSFREISEMESTER varchar,
    BEGINNANSTELLUNG date,
    ENDEANSTELLUNG date,
    MA_KUERZEL varchar not null,
    GEBURTSDATUM date,
    LOGISCHGELOESCHT char not null,
    MA_KATEGORIE_ID integer,
    constraint PK_MITARBEITER primary key (MA_ID)
    create table MITARBEITERKATEGORIE
    MA_KATEGORIE_ID integer not null,
    MA_KATEGORIE_BEZ varchar not null,
    constraint PK_MITARBEITERKATEGORIE primary key (MA_KATEGORIE_ID)
    create table MODULE
    MODUL_ID integer not null,
    MODULKUERZEL varchar not null,
    IDMODULVERANTWORLTICHER integer not null,
    IDSTVMODULVERANTWORTLICHER integer,
    CURRICULUMID integer,
    ID_MODULGRUPPE varchar,
    MODULNAME varchar,
    PFLICHTFACH binary,
    SEMESTER integer,
    CREDITPOINTS integer,
    LOGISCHGELOESCHT char not null,
    constraint PK_MODULE primary key (MODUL_ID)
    create table MODULGRUPPEN
    CURRICULUMID integer not null,
    ID_MODULGRUPPE varchar not null,
    MODULGRUPPENBEZ varchar,
    LOGISCHGELOESCHT char not null,
    constraint PK_MODULGRUPPEN primary key (CURRICULUMID, ID_MODULGRUPPE)
    create table ZUORDNUNG_MODUL_CURRICULUM
    MODUL_ID integer not null,
    CURRICULUMID integer not null,
    LOGISCHGELOESCHT char not null,
    constraint PK_ZUORDNUNG_MODUL_CURRICULUM primary key (MODUL_ID, CURRICULUMID)
    create table ZUORDNUNG_MODUL_LV_MA_SEMINAR_EXEMPLAR
    MODUL_ID integer not null,
    LV_ID integer not null,
    ART_LV char not null,
    SEMESTER varchar not null,
    MA_ID integer not null,
    WOCHE_G_U char not null,
    BLOCKID integer not null,
    EXEMPLAR varchar not null,
    LOGISCHGELOESCHT char not null,
    constraint PK_ZUORDNUNG_MODUL_LV_MA_SEMIN primary key (MODUL_ID, LV_ID, ART_LV, SEMESTER, MA_ID, WOCHE_G_U, BLOCKID, EXEMPLAR)
    alter table CURRICULA
    add constraint FK_CURRICUL_ZURODNUNG_MITARBEI foreign key (IDVERANTWORTLICHERSTUDIENDEKAN)
    references MITARBEITER (MA_ID)
    on update restrict
    on delete restrict;
    alter table LEHRVERANSTALTUNGEN
    add constraint FK_LEHRVERA_ZURODNUNG_MODULE foreign key (MODUL_ID)
    references MODULE (MODUL_ID)
    on update restrict
    on delete restrict;
    alter table MITARBEITER
    add constraint FK_MITARBEI_ZUORDNUNG_MITARBEI foreign key (MA_KATEGORIE_ID)
    references MITARBEITERKATEGORIE (MA_KATEGORIE_ID)
    on update restrict
    on delete restrict;
    alter table MODULE
    add constraint FK_MODULE_ZUORDNUNG_MITARBEI foreign key (IDMODULVERANTWORLTICHER)
    references MITARBEITER (MA_ID)
    on update restrict
    on delete restrict;
    alter table MODULE
    add constraint FK_MODULE_ZUORDNUNG_MODULGRU foreign key (CURRICULUMID, ID_MODULGRUPPE)
    references MODULGRUPPEN (CURRICULUMID, ID_MODULGRUPPE)
    on update restrict
    on delete restrict;
    alter table MODULGRUPPEN
    add constraint FK_MODULGRU_ZUORDUNG__CURRICUL foreign key (CURRICULUMID)
    references CURRICULA (CURRICULUMID)
    on update restrict
    on delete restrict;
    alter table ZUORDNUNG_MODUL_CURRICULUM
    add constraint FK_ZUORDNUN_ZUORDNUNG_CURRICUL foreign key (CURRICULUMID)
    references CURRICULA (CURRICULUMID)
    on update restrict
    on delete restrict;
    alter table ZUORDNUNG_MODUL_CURRICULUM
    add constraint FK_ZUORDNUN_ZUORDNUNG_MODULE foreign key (MODUL_ID)
    references MODULE (MODUL_ID)
    on update restrict
    on delete restrict;
    alter table ZUORDNUNG_MODUL_LV_MA_SEMINAR_EXEMPLAR
    add constraint FK_ZUORDNUN_ZUORDNUNG_BLOECKE foreign key (BLOCKID)
    references BLOECKE (BLOCKID)
    on update restrict
    on delete restrict;
    alter table ZUORDNUNG_MODUL_LV_MA_SEMINAR_EXEMPLAR
    add constraint FK_ZUORDNUN_ZURODNUNG_LEHRVERA foreign key (MODUL_ID, LV_ID, ART_LV)
    references LEHRVERANSTALTUNGEN (MODUL_ID, LV_ID, ART_LV)
    on update restrict
    on delete restrict;
    alter table ZUORDNUNG_MODUL_LV_MA_SEMINAR_EXEMPLAR
    add constraint FK_ZUORDNUN_ZURODNUNG_MITARBEI foreign key (MA_ID)
    references MITARBEITER (MA_ID)
    on update restrict
    on delete restrict;
    THX for prospective comments!

  • Just learning EJB - having problems compiling

    I'm trying to learn EJB by going through the Sun J2EE tutorial. When trying to compile the converter example I get the following error messages:
    E:\MostlyJava\j2eetutorial\examples>ant converter
    Buildfile: build.xml
    init:
    converter:
    [javac] Compiling 4 source files to E:\MostlyJava\j2eetutorial\examples\buil
    d\ejb\converter
    [javac] E:\MostlyJava\j2eetutorial\examples\src\ejb\converter\Converter.java
    :10: cannot resolve symbol
    [javac] symbol : class EJBObject
    [javac] location: package ejb
    [javac] import javax.ejb.EJBObject;
    [javac] ^
    [javac] E:\MostlyJava\j2eetutorial\examples\src\ejb\converter\Converter.java
    :14: cannot resolve symbol
    [javac] symbol : class EJBObject
    [javac] location: interface Converter
    [javac] public interface Converter extends EJBObject {
    [javac] ^
    [javac] E:\MostlyJava\j2eetutorial\examples\src\ejb\converter\ConverterBean.
    java:11: cannot resolve symbol
    [javac] symbol : class SessionBean
    [javac] location: package ejb
    [javac] import javax.ejb.SessionBean;
    [javac] ^
    [javac] E:\MostlyJava\j2eetutorial\examples\src\ejb\converter\ConverterBean.
    java:12: cannot resolve symbol
    [javac] symbol : class SessionContext
    [javac] location: package ejb
    [javac] import javax.ejb.SessionContext;
    [javac] ^
    [javac] E:\MostlyJava\j2eetutorial\examples\src\ejb\converter\ConverterBean.
    java:15: cannot resolve symbol
    [javac] symbol : class SessionBean
    [javac] location: class ConverterBean
    [javac] public class ConverterBean implements SessionBean {
    [javac] ^
    [javac] E:\MostlyJava\j2eetutorial\examples\src\ejb\converter\ConverterBean.
    java:37: cannot resolve symbol
    [javac] symbol : class SessionContext
    [javac] location: class ConverterBean
    [javac] public void setSessionContext(SessionContext sc) {}
    [javac] ^
    [javac] E:\MostlyJava\j2eetutorial\examples\src\ejb\converter\ConverterHome.
    java:12: cannot resolve symbol
    [javac] symbol : class CreateException
    [javac] location: package ejb
    [javac] import javax.ejb.CreateException;
    [javac] ^
    [javac] E:\MostlyJava\j2eetutorial\examples\src\ejb\converter\ConverterHome.
    java:13: cannot resolve symbol
    [javac] symbol : class EJBHome
    [javac] location: package ejb
    [javac] import javax.ejb.EJBHome;
    [javac] ^
    [javac] E:\MostlyJava\j2eetutorial\examples\src\ejb\converter\ConverterHome.
    java:15: cannot resolve symbol
    [javac] symbol : class EJBHome
    [javac] location: interface ConverterHome
    [javac] public interface ConverterHome extends EJBHome {
    [javac] ^
    [javac] E:\MostlyJava\j2eetutorial\examples\src\ejb\converter\ConverterHome.
    java:17: cannot resolve symbol
    [javac] symbol : class CreateException
    [javac] location: interface ConverterHome
    [javac] Converter create() throws RemoteException, CreateException;
    [javac] ^
    [javac] 10 errors
    BUILD FAILED
    E:\MostlyJava\j2eetutorial\examples\build.xml:89: Compile failed, messages shoul
    d have been provided.
    Total time: 2 seconds

    Thanks, for your reply the problem was with the classpath, even though it appears that the ant script points to it I had to set it in the environment.

Maybe you are looking for

  • XQuery in BEA 9.2 classpath problem - can anyone help?

    Im trying to execute and XQuery in a custom control called from a pageflow actrion. No matter where i put the saxon8 jars, i get the error below. They are in the Eclipse project properties, on my Win XP classpath, on the Weblogic server classpath, in

  • Lenses for CAnon EOS 50D

    Hi I have recently retired and hope to purchase a Canon Eos 50D shortly. As a new comer to digital photography I would like advise on lenses to buy please, as I am totally confused by the array of different lenses on offer. I need : , <!-- /* Style D

  • AcroPDDoc.InsertPages() is failing

    When I am trying to insert pages from another PDF file using AcroPDDoc.InsertPages(), it is returning false. The PDF file used for inserting is created from Microsoft Powerpoint file. The same scenario, we tried with Acrobat X Professional, we got "B

  • Regarding Recovery Disc

    Dear sir. I have purchased the laptop an year ago and never created recory disc now going to creat recovery disc facing a lots of problem. Please help. Thanks Abhishek 8101210971

  • Enable SSI w/ Apache OS X 10.4.7

    I'm trying to enable server side includes on two of my computers. I'm running OS X 10.4.7 with the default Apache installation. I've followed the steps in the Apache Docs, but to no avail. I've tried the following things, and all combinations I can t