JNDI / EJB deployment and clustering

I'm aware that replication isn't supported for stateful EJBs. But the
          "serialization of the handle isn't supported" statement has me concerned.
          So I'm looking for a little clarification on this scenario:
          Let's say I've got a stateful session bean, which is accessed from a
          servlet. For performance reasons, you want to find the colocated instance -
          the smart stub should do this, right? To have it colocated in all
          instances, then I need to deploy it into each server of the cluster. This
          essentially bind()/rebind()'s (whichever call the container does during a
          deploy operation) the EJB n times. Does each of those JNDI bind/rebind
          calls "overwrite" the previous one, or does the replicated JNDI tree somehow
          "keep" all the entries?
          What happens if I bind/rebind "non-cluster enabled" objects into the JNDI
          tree in each server to the same name (like a reference data table - doesn't
          really need to be an RMI object, one per server is fine)? Will they get
          "overwritten"? Should I need to take into account the server name when
          binding into the tree, and then also use that for subsequent lookups?
          Thanks for any input!
          --Jason
          

Guys,
Thanks for the information.
The problem was that classpath, some other packages required for the Bean
were not in the weblogic\classes directory.
so that was it.
Thanks
/selvan
Murali Krishna Devarakonda wrote in message
<7qjkr1$7dl$[email protected]>...
Are you using the HOT DEPLOY feature(startweblogic.bat does it)?
Then you could go to the WebLogic Console, select the Bean, and Redploy.
You could also do it from a command line utility "weblogic.deploy".
If you didn't start the server with the hot deploy, you need to restartyour
server after any changes.
You should read the weblogic docs on the Hot Deploy feature. A different
classloader is used for it. Also, the standard weblogic classpath cannot
coexist with it.
Hot Deploy uses: (assuming your weblogic installation is in D:/WebLogic
D:\WebLogic\classes/boot
It will throw an exception if you have D:\weblogic\classes or
D:\WebLogic\lib\weblogicaux.jar in the system classpath. You need to use
the weblogic.classpath instead.
Regards,
Murali Krishna Devarakonda
Tamilselvan Ramasamy <[email protected]> wrote in message
news:7qi0ln$kpc$[email protected]..
Hello,
I have created bunch of EJB Components and deployed for WLS4.0 using the
following way. It works fine under WLS4.0
To compile java code -> javac *.java
Create SER file -> java weblogic.ejb.utils.DDCreator -d .
DeploymentDescriptor.txt
Create JAR file -> jar cmf manifest Bean.jar /directory
EJBC and deployment -> java weblogic.ejbc -d /targetDirectory Bean.jar
and also add an entry in the welogic.properties file
weblogic.ejb.deploy= ...
When I do the samething in the WLS4.5, it doesn't work, first of all,
JNDI
is not finding the home interface. It throws a naming Exception
please give me an idea hw do I deploy my Beans in the WLS4.5 using the
command line option. I don't have Visual Cafe to do that automatically.So
I
have to do that manually.
Thanks
/selvan
Captura Software Inc
[email protected]

Similar Messages

  • EJB Deploy and XMLDocument

    Hi,
    when I try to deploy a session bean (stateless) on Oracle8i 8.1.7 using jDeveloper 3.2.2 i have the following message:
    error: loadJava has failed to load some classes; Please check trace file!
    *** Errors occurred while deploying the EJB to 8i JVM ***
    *** Deployment completed ***
    The instruction that generate error is
    dbf = DocumentBuilderFactory.newInstance
    Can you help me?
    Thank you.
    Marco
    Session Bean:
    public class PresenzeEJBBean implements SessionBean
    public PresenzeEJBBean()
    public void ejbCreate() throws CreateException
    // TODO: Add custom implementation.
    public void ejbActivate()
    public void ejbPassivate()
    public void ejbRemove()
    public void setSessionContext(SessionContext ctx)
    public java.lang.String getPresenze(String p_user, String p_data_ini, String p_data_end) throws SQLException,RemoteException
    java.lang.String ls_ret
    // Documento XML
    org.w3c.dom.Document l_XMLDocument = null;
    // Nodo
    org.w3c.dom.Node lRootNode = null;
    DocumentBuilderFactory dbf;
    dbf = DocumentBuilderFactory.newInstance
    return ls_ret;

    You can't in 7.0. All the EJBs are loaded in the same classloader.
    -- Rob
    Manikyala wrote:
    Hi,
    I have ejb jars inside an ear. I want to deploye and undeploy individually each ejb from the ear. How to do it in weblogic7.0.
    Thanks
    Manikyala

  • Problems with OC4J EJB deployment and the data-sources.xml file

    I am running 2 Windows 2000 Machines one with the 8.1.7 database another with iAS 1.0.2.2.1 and OC4J.
    I am trying to deploy a 3rd party EJB-based application whic seems to have deployed successfully except when I try to test the EJB deployment via a jsp it can't connect to the database, giving the error:
    1/16/02 4:52 PM VerySimple: Servlet error
    java.lang.NoClassDefFoundError: com.netexp.user.UserManagerHome
    at com.netexp.beans.BeanHelper.class$(Unknown Source)
    at com.netexp.beans.BeanHelper.getUserManagerBean(Unknown Source)
    at /very_simple.jsp._jspService(/very_simple.jsp.java:48) (JSP page line 27)
    at com.orionserver[Oracle9iAS (1.0.2.2.1) Containers for J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:54)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.HttpApplication.serviceJSP(HttpApplication.java:5459)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.JSPServlet.service(JSPServlet.java:31)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:508)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:177)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:576)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:189)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:62)
    I try to update the file using the installdatasource switch thus:
    C:\Oracle\iSuites\j2ee\home>java -jar admin.jar ormi://localhost admin adm_pwd -application apptricityII -installDataSource -jar %ORACLE_HOME%\jdbc\lib\classes12.zip -url jdbc:oracle:thin:@db_host.unitas.com:1521:db_name -connectionDriver oracle.jdbc.driver.OracleDriver -location jdbc/pool/OracleDataSource -username scott -password tiger
    And get the following error:
    Exception passing by from remote server: java.lang.InstantiationException: No class specified for jdbc/pool/OracleDataSource
    java.lang.InstantiationException: No class specified for jdbc/pool/OracleDataSource
    <<no stack trace available>>
    Error adding source: No class specified for jdbc/pool/OracleDataSource
    Please advise.
    I have followed the instructions in 'EJB Primer' and 'Using Oracle9iAS Containers for J2EE' to no avail. And I can't find any meaningfull data-sources.xml samples. I have been struggling with this for some time.
    Is there any other file, do I need to bind anything?
    I'd appreciate your assistance.
    Thank you
    Louiza

    Hi Louiza,
    Show us your web.xml and ejb-jar.xml files as well as your
    data-source.xml file.
    Thanks,
    Avi.

  • EJB deployment in clustering

    The clustering document seems to indicate that (cluster-awared) EJBs
              should only be deployed
              (by placing the the jar files in the /applications directory) on the
              Administration Server, (not to each
              individual WL server makes up the cluster), and assign the 'target'
              attribute to the 'cluster' created on
              the Admimistration Server,, rather individual servers that are mapped to
              each WL server in the cluster.
              It seems to be working, but what if I want to only deploy some of
              (cluster-awared) EJBs to some of the
              WL servers in the cluster, which is a feasible, although not
              recommended, configuration, indicated by
              the clustering related document at BEA,
              Can somebody confirm both of these to me?
              thanks
              Xiaodong
              

    Xiaodong Zhou wrote:
              > The clustering document seems to indicate that (cluster-awared) EJBs
              > should only be deployed
              > (by placing the the jar files in the /applications directory) on the
              > Administration Server, (not to each
              > individual WL server makes up the cluster), and assign the 'target'
              > attribute to the 'cluster' created on
              > the Admimistration Server,, rather individual servers that are mapped to
              > each WL server in the cluster.
              Not true. You shouldn't deploy it on the admin server. Instead in the
              application attribute of the bean you should give a comma delimited list of
              servers that you want to deploy the bean on.
              > It seems to be working, but what if I want to only deploy some of
              > (cluster-awared) EJBs to some of the
              > WL servers in the cluster, which is a feasible, although not
              > recommended, configuration, indicated by
              > the clustering related document at BEA,
              It will work as long as stubs are available on all the servers in the
              cluster.
              -- Prasad
              >
              > Can somebody confirm both of these to me?
              >
              > thanks
              >
              > Xiaodong
              

  • Weblogic 7.0 servlets deployment and clustering

              I am unable to deploy servlet application in WL 7.0 cluster configuration. I am
              using Iplanet NES 4.0 as my web server. I have deployed the weblogic proxy successfully
              in iplanet.
              The servlet application has class files in exploded form and are present under
              bin/applications/DefaultWebApp/WEB-INF/classes folder
              web.xml also exists in the above folder.
              I receive the following exception.
              <Apr 23, 2003 2:26:44 PM EDT> <Error> <socket> <000405> <Uncaught Throwable in
              processSockets
              java.lang.NullPointerException
              java.lang.NullPointerException
              at weblogic.servlet.internal.ServletResponseImpl.writeHeaders(ServletResponseImpl.java:968)
              at weblogic.servlet.internal.ServletOutputStreamImpl.sendHeaders(ServletOutputStreamImpl.java:239)
              at weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamImpl.java:121)
              at weblogic.servlet.internal.ServletOutputStreamImpl.commit(ServletOutputStreamImpl.java:481)
              at weblogic.servlet.internal.ChunkOutput.commit(ChunkOutput.java:259)
              at weblogic.servlet.internal.ChunkOutputWrapper.write(ChunkOutputWrapper.java:91)
              at weblogic.servlet.internal.ChunkWriter.write(ChunkWriter.java:37)
              at java.io.Writer.write(Writer.java:148)
              at java.io.PrintWriter.write(PrintWriter.java:208)
              Please help.
              

    This might be a known bug, please contact support and reference CR100572 to
              see if it is also a bug in WLS7.0
              sree
              "Manju" <[email protected]> wrote in message
              news:[email protected]...
              >
              > I am unable to deploy servlet application in WL 7.0 cluster configuration.
              I am
              > using Iplanet NES 4.0 as my web server. I have deployed the weblogic proxy
              successfully
              > in iplanet.
              > The servlet application has class files in exploded form and are present
              under
              > bin/applications/DefaultWebApp/WEB-INF/classes folder
              > web.xml also exists in the above folder.
              > I receive the following exception.
              > <Apr 23, 2003 2:26:44 PM EDT> <Error> <socket> <000405> <Uncaught
              Throwable in
              > processSockets
              > java.lang.NullPointerException
              > java.lang.NullPointerException
              > at
              weblogic.servlet.internal.ServletResponseImpl.writeHeaders(ServletResponseIm
              pl.java:968)
              > at
              weblogic.servlet.internal.ServletOutputStreamImpl.sendHeaders(ServletOutputS
              treamImpl.java:239)
              > at
              weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamI
              mpl.java:121)
              > at
              weblogic.servlet.internal.ServletOutputStreamImpl.commit(ServletOutputStream
              Impl.java:481)
              > at
              weblogic.servlet.internal.ChunkOutput.commit(ChunkOutput.java:259)
              > at
              weblogic.servlet.internal.ChunkOutputWrapper.write(ChunkOutputWrapper.java:9
              1)
              > at
              weblogic.servlet.internal.ChunkWriter.write(ChunkWriter.java:37)
              > at java.io.Writer.write(Writer.java:148)
              > at java.io.PrintWriter.write(PrintWriter.java:208)
              >
              >
              > Please help.
              >
              

  • Problem running Java client of EJB deployed on WebSphere

    Hi,
    I am using websphere studio 5.1.2 with fix pack 3. I have a sample Stateless Session Bean (EJB) deployed and running on websphere.
    I wrote a small Java client program as below.
    import java.util.Hashtable;
    import HelloJavaHome;
    import HelloJava;
    import javax.naming.InitialContext;
    import javax.naming.Context;
    import javax.ejb.EJBHome;
    import javax.ejb.EJBObject;
    public class RemoteConn {
    public static void main(String[] ar) throws Exception{
    String greeting = "";
    try{
    Hashtable env = new Hashtable();
    //env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
    //env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.ejs.ns.jndi.CNInitialContextFactory");
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.ws.naming.util.WsnInitCtxFactory");
    //env.put(Context.PROVIDER_URL, "corbaloc:iiop:myhost.mycompany.com:2809/NameServiceCellPersistentRoot");
    env.put(Context.PROVIDER_URL, "iiop://localhost:2809");
    System.out.println("Before creating context ");
    InitialContext initContext = new InitialContext(env);
    System.out.println("Before looking up HelloJavaHome.");
    //Object obj = initContext.lookup("java:comp/env/ejb/HelloJavaHome");
    Object obj = initContext.lookup("ejb/HelloJavaHome");
    System.out.println("After lookup javahome.");
    HelloJavaHome home = (HelloJavaHome) javax.rmi.PortableRemoteObject.narrow(obj, HelloJavaHome.class);
    HelloJava remote = home.create();
    greeting = remote.getGreeting("John");
    catch(Exception e){
    e.printStackTrace();
    System.out.println("Greeting::"+ greeting);
    I did not have any problem if I write and run this client from Websphere studio environment..
    However its giving lot of compilation and runtime errors when I tried to run from command line.
    I could eliminated compilation errors by setting the below jar files in the classpath.
    testclient.jar; (client jar of my EJB)
    j2ee.jar;
    naming.jar;ras.jar;
    wsexception.jar;
    bootstrap.jar;
    namingclient.jar;
    websphere.jar;server.jar;
    ejbcontainer.jar;
    ecutils.jar;
    Now it is throwing runtime error after the statement, "Before looking up HelloJavaHome.", has printed. Here is the stack trace of exception ..
    Exception in thread "main" java.lang.NoClassDefFoundError: com.ibm.CORBA.iiop.GlobalORBFactory
    at com.ibm.ejs.oa.EJSORBImpl.class$(EJSORBImpl.java:44)
    at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:195)
    at com.ibm.ejs.oa.EJSClientORBImpl.(EJSClientORBImpl.java:93)
    at com.ibm.ejs.oa.EJSClientORBImpl.(EJSClientORBImpl.java:65)
    at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:385)
    at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:284)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:369)
    at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:112)
    at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:422)
    at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:143)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at RemoteEJBConn.main(RemoteEJBConn.java:38)
    I appreciate if sombody could help me ASAP fixing this problem.
    Thanks in advance.

    Try using the IBM JVM (theres one shipped with WebSphere in websphere_home\AppServer\java
    Also include idl.jar and ffdc.jar on the classpath

  • EJB deployed but doesnt show up in JNDI tree on weblogic

    Hi,
    I have a sample EJB deployed on weblogic 10.3 server. My Bean class contains following code.
    ========================================================================
    @Stateless (mappedName = "DemoEJB")
    @TransactionManagement(TransactionManagementType.BEAN)
    public class DemoBean implements SessionBean {
         static final boolean verbose = true;
         private transient SessionContext ctx;
         private transient Properties props;
         @SuppressWarnings("deprecation")
         @Override
         public void setSessionContext(SessionContext ctx) throws EJBException,
                   RemoteException {
              // TODO Auto-generated method stub
              if (verbose)
              System.out.println("setSessionContext called");
              this.ctx = ctx;
              props = ctx.getEnvironment();
         public String demoSelect()
    throws RemoteException
    return("hello world");
    ===========================================================================
    I have created a jar file for the above class using eclipse and deployed it on weblogic. I can see the EJB in the <Deployment> on weblogic but it doesnt appear in <EJB> on JNDI tree view. Therefore i cannot access it from my client code (also written in Eclipse IDE).
    I will appreciate any guidance in this regard.
    Thanks
    Regards,
    Awais

    Hi,
    i have the same problem with yours
    This is my annotation with EJB3.0:
    @Stateless(mappedName="ConSession")
    @Remote(ConBeanRemote.class)
    @Local(ConBean.class)
    and i have a weblogic-ejb-jar.xml to define my jndi name
    <?xml version="1.0" encoding="UTF-8"?>
    <weblogic-ejb-jar xmlns:wls="http://www.bea.com/ns/weblogic/weblogic-ejb-jar"
              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
              http://www.bea.com/ns/weblogic/weblogic-ejb-jar
              http://www.bea.com/ns/weblogic/weblogic-ejb-jar/1.0/weblogic-ejb-jar.xsd">
    <weblogic-enterprise-bean>
         <ejb-name>ConSession</ejb-name>
    <stateless-session-descriptor>
         <business-interface-jndi-name-map>
              <business-remote>com.staffware.ConBeanRemote</business-remote>
              <jndi-name>ConSession#com/staffware/ConBeanRemote</jndi-name>
              </business-interface-jndi-name-map>
              </stateless-session-descriptor>
              <local-jndi-name>com/ConfigurationManagerBeanLocal</local-jndi-name>
         </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    [ the most important: I also have specify JNDI in a java file like this
              beanRemoteJNDIs.put("ConBeanRemote","ConSession#com/staffware/ConBeanRemote");
              beanLocalJNDIs.put("ConBean","java:comp/env/com/ConBean");
    and i can find the ConSession#com/staffware/ConBeanRemote in the jndi tree . but it shows like Multilevel directory tree
    and when i login the website and click the button
    .another error comes out :
    13:35:55,046 ERROR [EJBDelegate] Unable to lookup reference java:comp/env/com/ConBean for ConBean!
    javax.naming.LinkException: [Root exception is javax.naming.LinkException:  [Root exception is javax.naming.NameNotFoun
    dException: While trying to look up /app/ejb/CONFIG-ejb-2.0.jar#ConSession/local-home in /app/webapp/CO
    M/18328287.; remaining name '/app/ejb/CONFIG-ejb-2/0/jar#ConfigurationManagerSession/local-home']; Link Remaining Name:
    'java:app/ejb/CONFIG-ejb-2.0.jar#ConSession/local-home']; Link Remaining Name: 'com/ConBean'
    at weblogic.jndi.internal.WLNamingManager.getObjectInstance(WLNamingManager.java:104)
    at weblogic.jndi.internal.BasicNamingNode.resolveObject(BasicNamingNode.java:884)
    at weblogic.jndi.internal.ApplicationNamingNode.resolveObject(ApplicationNamingNode.java:187)
    what should i do ?
    and should i specify the jndi name in the java file . the JNDI name defined in the weblogic is right?
    can you help me ?
    thanks very much in advance!

  • Servlet jndi lookup to remote EJB, servlet and EJB not in the same application

    Hi,
    I think that the subject explain my problem.
    I have Oracle IAS9i 9.0.2.0.0, and JDeveloper 9.0.2.829
    I have deployed and EJB in IAS9i and i want to use from the developer machines, which have JDeveloper.
    how can i to do remote calls from JDeveloper?.
    I have modifed the orion-application.xml, and added remote=true.
    I have modifed the rmi.xml and added the hosts where the Jdeveloper placed.
    Any ideas?
    Thanks and cheers
    P.D The app server and jdeveloper are in the same net.
    if it is posible replys me to [email protected] too.

    Steps to access a remote EJB from within OC4J
    ++++++++++++++++++++++++++++++++++++++++++++++
    1) Deploy EJB application (ApplicationRemote) to remote container (REMOTE)
    "java -jar admin.jar -deploy ormi://REMOTE.hostname:REMOTE.port REMOTE.username REMOTE.password -deploy -file ApplicationRemote.ear
    -deploymentName ApplicationRemote"
    2) Ensure that local application (ApplicationLocal) has ejb-ref tags for remote EJBs accessed (in web.xml or ejb-jar.xml)
    3) Deploy to local container (LOCAL) an empty application (ApplicationEmpty) with the same name as the remote application (ApplicationRemote)
    "java -jar admin.jar -deploy ormi://LOCAL.hostname:LOCAL.port LOCAL.username LOCAL.password -deploy -file ApplicationEmpty.ear -deploymentName
    ApplicationRemote"
    5) Deploy local application (ApplicationLocal) to local container (LOCAL)
    "java -jar admin.jar -deploy ormi://LOCAL.hostname:LOCAL.port LOCAL.username LOCAL.password -deploy -file ApplicationLocal.ear -deploymentName
    ApplicationLocal"
    4)Restart local container
    ApplicationEmpty should consist of just an application.xml file - no modules. The same file can be deployed with different application names for all the remote
    applications that must be accessed.
    ApplicationLocal should access the remote EJB by using the following JNDI properties
    java.naming.factory.initial = "com.evermind.server.rmi.RMIInitialContextFactory"
    java.naming.provider.url = "ormi://REMOTE.hostname:REMOTE.port/ApplicationRemote"
    java.naming.security.principal = "REMOTE.username"
    java.naming.security.credentials = "REMOTE.password"
    regards
    Debu Panda

  • Starting up j2ee and EJB deployment tool on Windows 98

    I will start off this question with an apology if it is too stupid,
    basic, or placed in the wrong group. I am relatively new to the world
    of Java and even newer to the world of Server-side Java and EJBs.
    However, I am plugging away.
    I am using my trusty 4 year old system with Windows 98 second edition
    to dabble with Server-side Java and EJB applications. I am using
    Tomcat 4.0 as my server. When I try and start the j2ee server or the
    EJB deployment tool I get the following scrolling messages:
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Syntax error
    Syntax error
    Syntax error
    Out of environment space
    Bad command or file name
    I have tried to adjust the memory settings in the DOS window with no
    success. My question has three parts:
    1) Can these applications be run using Windows 98 and if so what are
    the exact DOS window memory settings for this?
    2) Where exactly can I find the documentation that specifies this?
    (please be specific as possible as I have read the readme.txt files
    supplied with j2ee)
    3) Should this and similar questions be posted in another
    group/section?
    I truly appreciate anyone's help with this.
    Sincerely,
    Tim

    You're going to have a lot of pain unless you upgrade to Windows 2000 or XP.
    In the mean time, set your environment size much larger (google for "Out of
    environment space") and use WinOne from http://www.cia.com.au/luke/ ...
    that's how I scraped by on Windows 98 for a while.
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    Clustering Weblogic? You're either using Coherence, or you should be!
    Download a Tangosol Coherence eval today at http://www.tangosol.com/
    "Tim" <[email protected]> wrote in message
    news:[email protected]..
    I will start off this question with an apology if it is too stupid,
    basic, or placed in the wrong group. I am relatively new to the world
    of Java and even newer to the world of Server-side Java and EJBs.
    However, I am plugging away.
    I am using my trusty 4 year old system with Windows 98 second edition
    to dabble with Server-side Java and EJB applications. I am using
    Tomcat 4.0 as my server. When I try and start the j2ee server or the
    EJB deployment tool I get the following scrolling messages:
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Syntax error
    Syntax error
    Syntax error
    Out of environment space
    Bad command or file name
    I have tried to adjust the memory settings in the DOS window with no
    success. My question has three parts:
    1) Can these applications be run using Windows 98 and if so what are
    the exact DOS window memory settings for this?
    2) Where exactly can I find the documentation that specifies this?
    (please be specific as possible as I have read the readme.txt files
    supplied with j2ee)
    3) Should this and similar questions be posted in another
    group/section?
    I truly appreciate anyone's help with this.
    Sincerely,
    Tim

  • Migrating from 903 to 904: what changed in JNDI calls to EJB's and topics

    Hello all,
    Ok,
    First of all this all works fine in 903, the problem is occuring when I try to deploy our appliction on 904.
    My problem is that the web tier can't find references to ejb's and my MDB fails at deployment because the reference to the topic fails.
    Here are the error messages:
    1.
    Error loading package at file:/C:/Oracle/904Prod/j2ee/home/applications/sdr/ejb/SDRSysAlertMDB/, Error deploying file:/C:/Oracle/904Prod/j2ee/home/applications/sdr/ejb/SDRSysAlertMDB/ homes: No location set for Topic resource MessageDrivenBean SDRSysAlertMDB
    2.
    Error instantiating web-app JNDI-context: No location specified and no suitable instance of the type 'ControllerEJB' found for the ejb-ref ejb/ControllerEJB
    And ideas of where to look would be appreciated.
    Thanks
    Matt

    Steve, thanks for your quick response. I have 2 problems here.
    What we are covering is the MDB problem below. I'll start with that one first and then work on the web tier referencing the EJB failing problem later.
    Short answer is yes I have those attributes. Here are my (edited)config files.
    EJB-JAR.XML
    <ejb-jar>
         <enterprise-beans>
              <message-driven>
              <display-name>SysAlertMDB</display-name>
              <ejb-name>SysAlertMDB</ejb-name>
              <ejb-class>**********</ejb-class>
              <transaction-type>Container</transaction-type>
              <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
              <message-driven-destination>
              <destination-type>javax.jms.Topic</destination-type>
              </message-driven-destination>
              <resource-ref>
              <res-ref-name>jms/SysAlertTopicConnectionFactory</res-ref-name>
              <res-type>javax.jms.TopicConnectionFactory</res-type>
              <res-auth>Application</res-auth>
              <res-sharing-scope>Shareable</res-sharing-scope>
              </resource-ref>
              <resource-env-ref>
                   <resource-env-ref-name>jms/SysAlertTopic</resource-env-ref-name>
                   <resource-env-ref-type>javax.jms.Topic</resource-env-ref-type>
              </resource-env-ref>          
              </message-driven>          
         </enterprise-beans>
    </ejb-jar>
    ORION-EJB.JAR
    <orion-ejb-jar>
         <enterprise-beans>
              <message-driven-deployment max-instances="1"
                             name="SysAlertMDBBean"
                             min-instances="0"
                             destination-location="jms/SysAlertTopic"
              connection-factory-location="jms/SysAlertTopicConnectionFactory"/>          
         </enterprise-beans>
    </orion-ejb-jar>
    JMS.XML
    <topic-connection-factory name="SysAlertTopicConnectionFactory" location="jms/SysAlertTopicConnectionFactory" host="*******" port = "*******" username = "******" password = "********"/>
         <topic name="SysAlertTopic" location="jms/SysAlertTopic"/>
    The error:
    Auto-deploying - compiling and loading...
    Error deploying file:/***SysAlertMDBBean*****/ homes: No location set for Topic resource MessageDrivenBean SysAlertMDB Error in application sdr: Error loading package at file:/***SysAlertMDBBean*****/ , Error deploying file:/***SysAlertMDBBean*****/ / homes: No location set for Topic resource MessageDrivenBean SysAlertMDB
    04/03/22 12:48:47 done.
    04/03/22 12:48:47 Error instantiating application 'sdr' at file:/********/: Error initializing ejb-module; Exception Error in application sdr: Error loading package at file:/***SysAlertMDBBean*****/ /, Error deploying file:/***SysAlertMDBBean*****/ / homes: No location set for Topic resource MessageDrivenBean SysAlertMDB

  • EJB & Servlet deployment in Clustered Env.

              Hi,
              I have made a cluster of 3 weblogic servers. I would like to send a request to one
              server (e.g. http://myserver1:7001/TestServlet). The servlet utilizes an EJB which
              is not located and not deployed on myserver1 , but on other 2 servers in the cluster.
              The algorithm is round-robin. It gives me a lot of errors (Impl... classes not found
              etc etc).
              Do I have to deploy everything on all the servers?
              If I do that, the request is not routed to other servers. Since the servlet finds
              the EJB locally, it never goes to the other servers, regardless of the algorithm.
              I have set up the "home-is-clusterable" and all other relevant properties for EJB
              deployment.
              Any ideas??
              Sharad
              

    If the ejb is deployed on the server that is looking for the ejb, then it
              won't go network to use the ejb. That is a "big" WL optimization, and helps
              quite a bit for most apps.
              If you want to segregate the ejb and web functionality, you should probably
              consider running two distinct clusters (in 5.1 parlance).
              I suggest putting web and ejb together though and clustering that. Latency
              is lower. Scalability is not particularly affected. Configuration is much
              simpler.
              Peace,
              Cameron Purdy
              Tangosol, Inc.
              http://www.tangosol.com
              +1.617.623.5782
              WebLogic Consulting Available
              "Sharad Joshi" <[email protected]> wrote in message
              news:[email protected]...
              >
              > Hi,
              >
              > I have made a cluster of 3 weblogic servers. I would like to send a
              request to one
              > server (e.g. http://myserver1:7001/TestServlet). The servlet utilizes an
              EJB which
              > is not located and not deployed on myserver1 , but on other 2 servers in
              the cluster.
              > The algorithm is round-robin. It gives me a lot of errors (Impl... classes
              not found
              > etc etc).
              >
              > Do I have to deploy everything on all the servers?
              > If I do that, the request is not routed to other servers. Since the
              servlet finds
              > the EJB locally, it never goes to the other servers, regardless of the
              algorithm.
              > I have set up the "home-is-clusterable" and all other relevant properties
              for EJB
              > deployment.
              >
              > Any ideas??
              >
              > Sharad
              

  • EJB deployment descriptors in clustered environment

              I was wondering how EJB deployment descriptor settings work in a clustered environment. Are the deployment descriptors per WebLogic instance they are deployed in or the entire clustered environment? For example, if my descriptor for a stateless session ejb has max-beans-in-free-pool set to 5 and I deploy this stateless ejb in 4 WebLogic instances of one cluster, does this mean that there will be a max of 5 instance of this bean in the free pool for the entire cluster or will there be a max of 20 (5 per WebLogic instance and 4 WebLogic instances in the cluster) instances of this bean for the entire cluster?
              Thanks,
              Bryan
              

    Those settings are per server instance.
              Cameron Purdy
              Tangosol, Inc.
              http://www.tangosol.com
              +1.617.623.5782
              WebLogic Consulting Available
              "Bryan Dixon" <[email protected]> wrote in message
              news:3a6b51a0$[email protected]..
              >
              > I was wondering how EJB deployment descriptor settings work in a clustered
              environment. Are the deployment descriptors per WebLogic instance they are
              deployed in or the entire clustered environment? For example, if my
              descriptor for a stateless session ejb has max-beans-in-free-pool set to 5
              and I deploy this stateless ejb in 4 WebLogic instances of one cluster, does
              this mean that there will be a max of 5 instance of this bean in the free
              pool for the entire cluster or will there be a max of 20 (5 per WebLogic
              instance and 4 WebLogic instances in the cluster) instances of this bean for
              the entire cluster?
              >
              > Thanks,
              > Bryan
              >
              

  • ExportException+StubNotFoundException in Clustered EJB Deployment

              Hi All,
              I'm a Newbie to WebLogic and would appreciate help in solving my problem.
              I am running WLS 5.1sp6 on NT4 and am trying to implement a two server cluster on one machine.
              The cluster runs fine, but as soon as I try to deploy our EJBs in the cluster level properties file I get the exceptions listed in the attached log.
              In a standalone environment the EJBs function flawlessly but not in a cluster.
              Notice that the EJB is successfully deployed to the server but the exception crops up a little further down the track.
              The only unusual thing about the environment I can think of is the WebLogic CLASSPATH is disabled.
              The EJB deployment descriptor contains:
              <clustering-descriptor>
              <home-is-clusterable>True</home-is-clusterable>
              <stateless-bean-is-clusterable>True</stateless-bean-is-clusterable>
              </clustering-descriptor>
              Any ideas?
              Thanks in advance,
              Andrew
              [weblogic.log]
              

              Hi all,
              It seems it was a classpath problem ...I put the ejb jar file in the java classpath and now it works like a charm.
              Thanks for the tip Chris!
              Andrew
              "Chris Jones" <[email protected]> wrote:
              >
              >Hi,
              >
              >Sounds like a classpath problem. The cluster is trying to instantiate the EJB but the stub is not in the weblogicclasspath. I&#8217;m not sure what you mean when you say it is disabled.
              >
              >Hope this helps,
              >
              >Chris
              >
              >"Andrew Quinan" <[email protected]> wrote:
              >>
              >>
              >>
              >>Hi All,
              >>
              >>I'm a Newbie to WebLogic and would appreciate help in solving my problem.
              >>
              >>I am running WLS 5.1sp6 on NT4 and am trying to implement a two server cluster on one machine.
              >>
              >>The cluster runs fine, but as soon as I try to deploy our EJBs in the cluster level properties file I get the exceptions listed in the attached log.
              >>
              >>In a standalone environment the EJBs function flawlessly but not in a cluster.
              >>Notice that the EJB is successfully deployed to the server but the exception crops up a little further down the track.
              >>
              >>The only unusual thing about the environment I can think of is the WebLogic CLASSPATH is disabled.
              >>
              >>The EJB deployment descriptor contains:
              >><clustering-descriptor>
              >> <home-is-clusterable>True</home-is-clusterable>
              >> <stateless-bean-is-clusterable>True</stateless-bean-is-clusterable>
              >></clustering-descriptor>
              >>
              >>Any ideas?
              >>
              >>Thanks in advance,
              >>Andrew
              >
              

  • Steps to deploy an ejb application and running an ejb client in weblogic server6.1

    steps to deploy an ejb application and steps to run an ejb client in weblogic server6.1
    if the client is an simple java application and if the client is a servlet

    Hi.
    Check out the beanManaged example that ships with WLS and read the accompanying docs. This
    is a simple EJB with a servlet that invokes it.
    Michael
    shekhar sachdev wrote:
    steps to deploy an ejb application and steps to run an ejb client in weblogic server6.1
    if the client is an simple java application and if the client is a servlet--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • How to deploy and run  EJB in eclipse without XDoclet

    Hi Friends
    I am new in j2ee.In my academic project i want to do some ejb programming.
    For that purpose i want to write some ejb's.I have written all required class for ejb,created ejb-jar.xml file manually,weblogic .xml file manually. I am using weblogic8 as an server for deployment.
    I know deployment with xdoclet but i want to know hoe to deploy ejb without xdoclet.
    If u have saple code or useful link regarding this please send it as soon as possible.
    Thanks in advance
    How to deploy and run EJB in eclipse without XDoclet

    HI Welcome to J2ee...
    I am also new to this...But i ll share my ideas with you...
    In EJB 3.0 No need of any Deployment Descriptors....
    And If you are using Eclipse You can Deploy(as jar) using Export in File tab...
    XDoclet is not mandatory...
    Gopal V

Maybe you are looking for

  • Satellite L - How to adjust webcam settings?

    Howdy, How can I adjust the settings in my web cam to take a delayed picture? Thanks

  • How can i migrate my software from a macbook pro to a mini server

    So i have bought a new Mac Mini Server but now i want to migrate my MacBook Pro User Profile, Data Files and Software to it. yet it would appear that there is no migration agent to use which implies that Apple miss an important part of the Mac experi

  • Problems mapping 2 messages into 1

    Hi. I'm facing a problem mapping 2 messages into 1. I have a BPM that has 2 abstract messages. In a transformation step, i transform this two messages into one but when i check the IDOC that finally has arrived to R3 backend, the fields that belogns

  • "Cursor state not valid.", AS400 JDBC, IBM JTOpen 3.0

    I am using JT400.JAR from IBM's JTOpen 3.0 release. I am running JTOpen inside of Websphere 3.5.x JDBC auto-commit is enabled. When running JDBC queries, I am observing intermittent SQL exceptions. The message that I see is "Cursor state not valid."

  • My device is not working, what to do now ?

    when i tapped on my ipod to open an app suddenly it hanged, and then everything turned white . it's glowing with a complete white screen since then.don't know what went wrong. can it be fixed ?