J2eelauncher and cloudscape

Hi,
I am totally new to EJB and I'm trying to work with j2sdkee1.2.1 on Windows 98 using j2eelauncher. j2eelauncher seems to work well in starting the j2ee server and the deploytool but it doesn't start the cloudscape server. Can anyone help me figure out the problem?
Thanks,
Jai

Sure I can help you, I am using J2ee on Win 98 and Win 2K both. Mail me all your .bat files from the J2EE_HOME/bin folder, i will figure out the problem,
Cheers,
Shafique Razzaque,
[email protected]

Similar Messages

  • Problems on JDBC and Cloudscape

    Hi,
    I'm suffering from a problem I got while using Cloudscape.
    I wrote a program to create a database in cloudscape. It is a very simple program. The main
    part is as follows,
    Class.forName("COM.cloudscape.core.JDBCDriver");
    Connection conn = DriverManager.getConnection("jdbc:cloudscape:LibDB;create=true");
    The java file is saved in the directory c:\myfile\Create_DB.java and be compiled to
    Create_DB.class.
    At the very Beginning, I didn't add cloudscape.jar to the Classpath, so I got the common
    error:
    java.lang.NoClassDefFoundError: COM.cloudscape.core.JDBCDriver
    Later, I added those jars related to cloudscape to the CLASSPATH, a strange thing happened.
    Now, the error became:
    java.lang.NoClassDefFoundError: Create_DB
    Then, I thought maybe I need to add the working directory to the Classpath. So, I add
    c:\library to CLASSPATH. But the first error (java.lang.NoClassDefFoundError:
    COM.cloudscape.core.JDBCDriver) appeared again though the cloudscape.jar was still in the
    CLASSPATH.
    I tried and tried, but the strange problem is still there. I really got crazy. Please Help !
    I set the CLASSPATH as following:
    %J2EE_HOME%\lib\j2ee.jar;%J2EE_HOME%\lib\cloudscape\system\cloudscape.jar;%J2EE_HOME%\lib\cl
    oudscape\cloudclient.jar;%J2EE_HOME%\lib\cloudscape\RmiJdbc.jar;%J2EE_HOME%\lib\cloudscape\c
    loudview.jar
    PATH is
    ;%JAVA_HOME%\bin;%J2EE_HOME%\bin
    Thank you for your time.

    No, I don't have any packages included in my code.
    You have probably already looked through most of this, but if not here are some sources that have helped me.
    This is the general Cloudscape website from IBM. They have some help like FAQ and the like.:
    http://www-3.ibm.com/software/data/cloudscape/
    There are a couple of changes to your environment that are recommended by Cloudscape. They are detailed in the documentation at the following URL in Section 2.1:
    http://publibfi.boulder.ibm.com/epubs/html/cloud50/pdf/start.pdf
    In addtion, there are several ways that Cloudscape recommends that you code to load the Cloudscape driver. Surprisingly, it appears to be different for different operating systems. They are discussed in the documentation at the following URL in Section 6.
    Cloudscape worked on my system without any big problems (Win2k) following the installation and changes/validation to the CLASSPATH, so I'm not very good at debugging problems related to it. However I did verify that Cloudscape was installed properly by using the utilities that come with Cloudscape. I figured that if I could install/run the utilities that the development environment was setup correctly, and removed any issues with my own buggy code. The utilities I verified with where "ij", "cview" and probably most importantly, "sysinfo". It's convenient because you can alter the environment (CLASSPATH, etc) dynamically.
    Joel

  • Cloudscape and deploytool problem

    My deploytool and cloudscape have been working well until yesterday. The error message that I received with cloudscape was
    ERROR (no SQLState): Connection refused to host: 218.186.XX.XXX; nested exceptio
    n is:
    java.net.ConnectException: Connection timed out: connect
    ij version 4.0 (c) 1997-2001 Informix Software, Inc.
    And also, the deploytool cant seem to find my localhost.
    Wonder if anyone knows what is this problem? It seems that my localhost is not able to host. Any help will be appreciated.

    I would try rebooting cloudscape.

  • Username and password with Access and JDBC application

    Hello all,
    I have written an application which accesses a MS Access database. I have created a dialog which asks the user for a username and password. I then include the username and password to connect to the database. I have created groups and users in the Access database and have given each user different privaleges. However, when I run my application, any user can get any privelage. I am missing something. Thanks in advance.

    // ConnectToDatabase.java
    // Copyleft (c) 2001 RatKing
    // ��������������������������������Java Bean
    // E-mail: [email protected]
    // This can use in JSP or Java Application or Applet
    // AFTER you have setup the ODBC source in Windoz.
    package rat;
    import java.sql.*;
    import java.util.*;
    public class ConnectToDatabase{
    private String driverClass = "sun.jdbc.odbc.JdbcOdbcDriver"; // JDBC-ODBC Bridge Driver
    private String dbURL = "jdbc:odbc:yourdbname"; // the name of your ODBC Source's Database
    private String userName = "yourname"; // user ID
    private String password = "yourpassword"; // user password
    private Connection connection = null; // Connection to the Database
    private Statement statement = null; // Statement object
    public ConnectToDatabase () {
    // ������������������
    public Connection getConnection() throws ClassNotFoundException, SQLException {
    if(connection != null) {
    return connection;
    Class.forName(driverClass);
    connection = DriverManager.getConnection(dbURL, userName, password);
    return connection;
    } // getConnection()
    public void closeConnection() throws SQLException {
    if (connection != null) {
    // Makes all changes made since the previous commit/rollback permanent
    // and releases any database locks currently held by this Connection object.
    if (!connection.getAutoCommit())
    connection.commit();
    closeStatement();
    connection.close();
    connection = null;
    } // closeConnection()
    * If not connected to database...connect to database, create a statement,
    * and, return the Statement.
    protected void createStatement() throws SQLException, Exception {
    if(statement == null) {
    Connection connection = getConnection();
    statement = connection.createStatement();
    * This method executes a statement and returns true or false. Any type
    * of Statement may be executed by this command.
    public boolean execute(String sqlString) throws SQLException, Exception {
    if(statement == null){
    createStatement();
    boolean returnValue = statement.execute(sqlString);
    return returnValue;
    * This method executes the statement and returns a ResultSet from
    * execution of the query. Only a SELECT Statemet is applicable here.
    public ResultSet executeQuery(String sqlString) throws SQLException, Exception {
    if(statement == null){
    createStatement();
    ResultSet rs = statement.executeQuery(sqlString);
    return rs;
    * This method executes update statements and returns a count of
    * the updates. Only a INSERTS, DELETES, and UPDATES are applicable here.
    * In addition, SQL statements that return nothing such as SQL DDL statements
    * can be executed.
    public int executeUpdate(String sqlString) throws SQLException, Exception {
    if(statement == null){
    createStatement();
    int returnValue = statement.executeUpdate(sqlString);
    return returnValue;
    * This method closes the Statement.
    public void closeStatement() throws SQLException {
    if(statement != null){
    statement.close();
    statement = null;
    * If it is not connected to database, connect to database and
    * create a statement and returns the Statement
    * @param scrollType should be ResultSet.TYPE_FORWARD_ONLY
    * or ResultSet.TYPE_SCROLL_INSENSITIVE
    * or ResultSet.TYPE_SCROLL_SENSITIVE
    * @param updateType should be ResultSet.CONCUR_READ_ONLY or
    * ResultSet.CONCUR_UPDATABLE ;
    protected Statement getStatement(int scrollType, int updateType)
    throws SQLException, Exception {
    Connection connection = getConnection();
    // for cloudscape to work with scrollable resultsets, the autocommit
    // should be false.
    connection.setAutoCommit(false);
    Statement statement = connection.createStatement(scrollType,
    updateType);
    return statement;
    * If it is not connected to database, connect to database and
    * create a preparestatement and returns the Statement
    * @param sqlString queryString to make a statement
    * @param scrollType should be ResultSet.TYPE_FORWARD_ONLY
    * or ResultSet.TYPE_SCROLL_INSENSITIVE
    * or ResultSet.TYPE_SCROLL_SENSITIVE
    * @param updateType should be ResultSet.CONCUR_READ_ONLY or
    * ResultSet.CONCUR_UPDATABLE ;
    protected PreparedStatement getStatement(String sqlString,
    int scrollType,
    int updateType) throws SQLException,
    Exception {
    Connection connection = getConnection();
    // for cloudscape to work with scrollable resultsets, the autocommit
    // should be false.
    connection.setAutoCommit(false);
    PreparedStatement preparedStatement =
    connection.prepareStatement(sqlString, scrollType, updateType);
    return preparedStatement;
    * this method executes the statement and resuts the resultSet due to
    * execution of Statement.
    * only SELECT Statemet is applied here.
    public ResultSet executeQueryScrollInsensitiveReadOnly(String sqlString,
    Vector values) throws SQLException, Exception {
    PreparedStatement preparedStatement = getStatement(sqlString,
    ResultSet.TYPE_SCROLL_INSENSITIVE,
    ResultSet.CONCUR_READ_ONLY);
    for (int i = 1; i <= values.size(); i++) {
    preparedStatement.setObject(i, values.elementAt(i - 1));
    // Execute a SQL statement that returns a single ResultSet.
    ResultSet rs = preparedStatement.executeQuery();
    return rs;
    * this method executes the statement and resuts the resultSet due to
    * execution of Statement. only SELECT Statemet is applied here.
    public ResultSet executeQueryScrollInsensitiveReadOnly(String sqlString)
    throws SQLException, Exception {
    Statement statement = getStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
    ResultSet.CONCUR_READ_ONLY);
    // Execute a SQL statement that returns a single ResultSet.
    ResultSet rs = statement.executeQuery(sqlString);
    return rs;
    * this method executes the statement and returns the resultSet due to execution
    * of Statement. only SELECT Statemet is applied here.
    public ResultSet executeQueryScrollForwardOnly(String sqlString,
    Vector values) throws SQLException, Exception {
    PreparedStatement preparedStatement = getStatement(sqlString,
    ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);
    for (int i = 1; i <= values.size(); i++) {
    preparedStatement.setObject(i, values.elementAt(i - 1));
    // Execute a SQL statement that returns a single ResultSet.
    ResultSet rs = preparedStatement.executeQuery();
    return rs;
    * this method executes the statement and returns the resultSet due to
    * execution of Statement. only SELECT Statemet is applied here.
    public ResultSet executeQueryScrollForwardOnly(String sqlString)
    throws SQLException, Exception {
    Statement statement = getStatement(ResultSet.TYPE_FORWARD_ONLY,
    ResultSet.CONCUR_READ_ONLY);
    // Execute a SQL statement that returns a single ResultSet.
    ResultSet rs = statement.executeQuery(sqlString);
    return rs;
    * Method executeQueryScrollSensitiveReadOnly
    * @param sqlString String
    * @param values Vector
    * @return ResultSet returns ResultSet due to statement execution
    * @throws Exception
    * @throws SQLException
    * @see
    public ResultSet executeQueryScrollSensitiveReadOnly(String sqlString,
    Vector values) throws SQLException, Exception {
    PreparedStatement preparedStatement = getStatement(sqlString,
    ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
    for (int i = 1; i <= values.size(); i++) {
    preparedStatement.setObject(i, values.elementAt(i - 1));
    // Execute a SQL statement that returns a single ResultSet.
    ResultSet rs = preparedStatement.executeQuery();
    return rs;
    * Method executeQueryScrollSensitiveReadOnly
    * @param sqlString
    * @return
    * @throws Exception
    * @throws SQLException
    * @see
    public ResultSet executeQueryScrollSensitiveReadOnly(String sqlString) throws SQLException, Exception {
    Statement statement = getStatement(ResultSet.TYPE_SCROLL_SENSITIVE,
    ResultSet.CONCUR_READ_ONLY);
    // Execute a SQL statement that returns a single ResultSet.
    ResultSet rs = statement.executeQuery(sqlString);
    return rs;
    //////////////Other things maybe useful ///////////////////
    # Refer to Appendix A for more info on configuring the JDBC
    # driver via setting of the DRIVER_CLASS and DATABASE_URL properties
    #JDBC Driver Class
    # for ODBC Driver:
    #DRIVER_CLASS=sun.jdbc.odbc.JdbcOdbcDriver
    # for Oracle Driver
    #DRIVER_CLASS=jdbc.oracle.driver.OracleDriver
    # for CloudScape Driver equipped with J2EE reference implementation
    #DRIVER_CLASS=RmiJdbc.RJDriver
    # for CloudScape Driver equipped with BEA Weblogic Server
    DRIVER_CLASS=COM.cloudscape.core.JDBCDriver
    #Database URL
    # for ODBC URL
    #DATABASE_URL=jdbc:odbc:tShirts
    # for Oracle URL
    #DATABASE_URL=jdbc:oracle:thin:@localhost:1521:ORCL
    # for URL with CloudScape equipped with J2EE reference implementation
    #DATABASE_URL=jdbc:rmi:jdbc:cloudscape:beeshirtsdb
    # for URL with CloudScape equipped with BEA Weblogic Server
    DATABASE_URL=jdbc:cloudscape:D:\\weblogic\\eval\\cloudscape\\beeshirts
    #UserName to connect to database
    UserName=TSHIRTS
    #Password to connect to database
    Password=TSHIRTS
    #otherParameters
    SUB_PROPERTIES=
    #SQL Query
    SQL_QUERY_STATEMENT = SELECT * FROM TSHIRTS.CUSTOMER
    #SQL Update , if you run this program please change the id 129 to different value each time
    SQL_UPDATE_STATEMENT = INSERT INTO TSHIRTS.CUSTOMER VALUES ('129','Sam','Cheng','S','123 Sam St.', 'C3','Baltimore','MD','20222','4104444444' ,'[email protected]')
    #Join STATEMENT
    SQL_QUERY_STATEMENT_JOIN = SELECT TSHIRTS.CUSTOMER.*, TSHIRTS.ORDERS.* FROM TSHIRTS.CUSTOMER, TSHIRTS.ORDERS WHERE CUSTOMER.CUSTOMER_ID = ORDERS.CUSTOMER_ID_FK
    #OUTER JOIN for ORACLE
    #SQL_QUERY_STATEMENT_OUTER_JOIN = SELECT CUSTOMER.* FROM TSHIRTS.CUSTOMER,STATE WHERE CUSTOMER.STATE(+) = STATE.CODE(+)
    #OUTER JOIN for MSACCESS
    #SQL_QUERY_STATEMENT_OUTER_JOIN = SELECT C.* , S.* FROM CUSTOMER C OUTER JOIN STATE S on C.STATE = S.CODE
    #OUTER JOIN for MSACCESS and Cloudscape
    SQL_QUERY_STATEMENT_OUTER_JOIN = SELECT C.* , S.* FROM TSHIRTS.CUSTOMER C LEFT OUTER JOIN TSHIRTS.STATE S on C.STATE = S.CODE
    #SQL Statement with Like for MSACCESS
    #SQL_QUERY_STATEMENT_WITH_LIKE = SELECT CUSTOMER.* FROM CUSTOMER WHERE CUSTOMER.FIRST_NAME LIKE \'*R*\'
    #SQL Statement with Like for ORACLE and Cloudscape
    SQL_QUERY_STATEMENT_WITH_LIKE = SELECT * FROM TSHIRTS.CUSTOMER WHERE FIRST_NAME LIKE '%R%'
    #Prepared QUERY Statement
    PREPARED_SQL_QUERY_STATEMENT = SELECT * FROM TSHIRTS.CUSTOMER WHERE FIRST_NAME = ?
    PREPARED_SQL_QUERY_STATEMENT_VALUES = Roy
    #Prepared Insert
    PREPARED_SQL_INSERT_STATEMENT = INSERT INTO TSHIRTS.CUSTOMER VALUES(?,?,?,?,?,?,?,?,?,?,?)
    PREPARED_SQL_INSERT_STATEMENT_VALUES =130,John,Hiller,Miller,125 S St.,C6,Baltimore,MD,20100,4104444444,[email protected]
    #Prepared Update
    PREPARED_SQL_UPDATE_STATEMENT = UPDATE TSHIRTS.STATE SET STATE_NAME = 'California' WHERE CODE = ?
    PREPARED_SQL_UPDATE_STATEMENT_VALUES =CA
    #Data base schema name
    SCHEMA_NAME =TSHIRTS

  • Create a data source and database tables using WSAD

    Hi, guys:
    the following is from a tutorial:
    http://www-106.ibm.com/developerworks/websphere/techjournal/0306_wosnick/wosnick.html
    "To create the data source and Cloudscape database tables automatically, right click on the HelloWorldServer in the Servers view, and select the Create tables and data sources menu item. A dialog will then display showing that the data source and database tables were created successfully (Figure 5)."
    I am using WSAD 5.0 trial version. I cannot find Create tables and data sources menu item if I right click on the HelloWorldServer in the Servers view. I am wondering if this is because trial version does not have this feature?
    regards

    This question is a little off topic but you may get a reply. Please note this forum is about Sun's J2EE SDK and its related technologies. You may have better luck posting your question to an IBM specific resource.

  • JNDI with TOMCAT4.0 to CLOUDSCAPE ? need explanation

    Hi All,
    I'm using TOMCAT4.0 and Cloudscape.
    I got below code 1,2,and 3. When I ran it, I can't look up the cloudscape database ?
    (I print out "************** null ***************")
    Why? It looks like there is no link between jdbc/books and cloudscape database.
    How do we correct it? or what is missing in terms of network connection? Or any value that I have is incorrect?
    Thanks,
    Paul.
    1. web.xml
    <resource-ref>
    <res-ref-name>jdbc/books</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    2. server.xml
    <Resource name="jdbc/books" auth="Container"
    type="javax.sql.DataSource"/>     
    <ResourceParams name="jdbc/books">
    <parameter><name>user</name><value></value></parameter>
    <parameter><name>password</name><value></value></parameter>     
    <parameter><name>driverClassName</name>
    <value>COM.cloudscape.core.JDBCDriver</value></parameter>
    <parameter><name>driverName</name>
    <value>jdbc:cloudscape:rmi:books</value></parameter>
    </ResourceParams>
    3. cloudscape is running(database is OK) and I ran test.jsp
    javax.naming.Context ctx = new javax.naming.InitialContext();
    javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup("java:comp/env/jdbc/books");
    if (ds == null)
         out.println("************** null ***************");
    else     
         javax.sql.Connectin conn = ds.getConnection();

    Hi Fredrik,
    (Thank, Mr. Expert)
    0. Cloudscape came with J2EESDK1.3 and is running.
    1. Basically, I already do a test with J2EE sun server
    J2EESDK1.3 and it work fine because there is physical link between
    the jdbc/books and jdbc:cloudscape:rmi:books. However, it look there is no
    physical link for Tomcat4.0.
    2.
    javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup("java:comp/env/jdbc/books");
    give me "null"
    (3. I have to see why ?)
    -- Paul.

  • CloudScape database

    I downloaded SDK Enterprise 1.3 which i believe to contain CloudScape inside. The problem is i don't know how to get the interface up and running. Any help is appreciate it. I just want to use Cloudview GUI to create a database to run with my J2EE application. Please instruct me as to what i need to do.

    First you need to download the Java 2 Standard Edition (formerly the "JDK") at:
    http://java.sun.com/j2se/1.3/download-windows.html (scroll down and click the "continue" button).
    Once downloaded, install it into the directory of your choice. I prefer c:\jdk1.x
    Then, install the J2EE to the directory of your choice. Again, I prefer c:\j2sdkee1.x
    Now, open C:\j2sdkee1.x\config\orb.properties and make sure host is set to localhost (it can be whatever you want, really, but localhost is the de facto standard).
    Now, open C:\j2sdkee1.x\config\web.properties and change the port to 80, if it's not already.
    Now, add these lines to the beginning of the j2ee.bat and cloudscape.bat files:
    set JAVA_HOME=c:\jdk1.x
    set J2EE_HOME=c:\j2sdkee1.x
    Now add cloudscape jars to your system's path.
    I'm running Windows 2000. This is what I appended to my system's path variable:
    c:\jdk1.3\bin;C:\j2sdkee1.2.1\lib\j2ee.jar;C:\j2sdkee1.2.1\lib\cloudscape\client.jar;C:\j2sdkee1.2.1\lib\cloudscape\client.jar;C:\j2sdkee1.2.1\lib\cloudscape\cloudscape.jar;C:\j2sdkee1.2.1\lib\cloudscape\RmiJdbc.jar;C:\j2sdkee1.2.1\lib\cloudscape\tools.jar
    That should do it, I think.
    You can run cloudscape with:
    C:\j2sdkee1.x\bin\cloudscape.bat -start
    You can run J2EE by running:
    C:\j2sdkee1.x\bin\j2ee.bat
    Now open your browser, and go to:
    http://127.0.0.1, or http://localhost
    I'm sure there are other ways to configure and run everything. I'm sure my way is overkill, but it works for me, without any problems.
    Cheers!

  • Cloudscape making me suicidal

    I've been trying the whole week to get Cloudscape running. I'm about to through my computer out the window. I'm not one for giving up and really like finding the solutions to problems but this is ridiculous. I download Cloudscape from the IBM website and installed it. Now the hassles started. I realised I needed to setup the paths but I'm got so utterly confused between derby and cloudscape that it took me two days just to get that sorted out. I finally got the SimpleApp to work from the command prompt so I thought my problems were solved. WRONG!!!! I tried to now run the exact same program from JDev and it now gives me this error:
    SimpleApp starting in embedded mode.
    exception thrown:
    java.lang.ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriverI would probably have stopped trying but all the documentation on SDN has to do with cloudscape and so does the textbook I'm using. Please can some one just point me in the right direction.

    Do I need to do this in the command prompt window or can I program this into the code. I'm running the program from JDev. The driver that you mention, can you please elaborate a bit more. I'm really at a hairs end because following the tutorial just doesn't seem to help, it seems like you need to toy around with stuff behind the scene's before the program gets up and running.

  • How to connect to database in JSP

    Hi, all.
    I am using J2EE and cloudscape. I have written all the EJB classes. But now i have no idea that how to connect to database in jsp such as i get user ID from portal, then i connect to database check the existence of user ID and the password then return true or false value. how to write all this in jsp?
    Thanks very much!
    yayun

    this is the required code
    i hope this will help u
    <html>
    <head>
    </head>
    <body>
    <%@ page import="java.sql.*" %>
    <%
    try
    String fu=request.getParameter("username");
    String fp=request.getParameter("password");
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection Con=DriverManager.getConnection("jdbc:odbc:wind","","");
    Statement stmt=Con.createStatement();
    ResultSet rs=stmt.executeQuery("select * from table1 where username='"+fu+"' and password='"+fp+"'");
    if(rs.next())
    %>
    <jsp:forward page="success.jsp"/>
    <%
    else{
    %>
    <jsp:forward page="unsuccess.jsp"/>
    <%
    catch(Exception e)
    %>
    </body>
    </html>

  • EjbCreate() architecture with CMP 2.0; confused

    I exhaustively searched for this topic in this, and other forums, and
    tried some suggested techniques, but none worked.
    I've received "Primary key fields of bean not initialized" in     the following stmt.
         Entity1Remote prEntity1Remote = printHome.create( new Integer(1) );     <-- should parm. list be empty??
    RemoteClient1.java contains:
         package com.zbeans;
         import com.zbeans.Entity1Remote;
         import com.zbeans.Entity1RemoteHome;
         import javax.naming.InitialContext;
         Context prinitctx = new InitialContext();
         Context prenvctx = (Context) prinitctx.lookup("java:comp/env");
         Object prrefHome = prenvctx.lookup("ejb/Entity1 EJB ref1");
         Entity1RemoteHome printHome = (Entity1RemoteHome)
              PortableRemoteObject.narrow( prrefHome, Entity1RemoteHome.class );
         /* Following causes "Primary key fields of bean not initialized" */
         Entity1Remote prEntity1Remote = printHome.create( new Integer(1) );     <-- should parm. list be empty??
         I ran using D:\zJava\zsamples\EJB\application1>C:\j2sdkee1.3.1\bin\runclient -client application1.ear -name RemoteClient1 -textauth
         I ensured j2ee and cloudscape were running, and
         set APPCPATH=application1Client.jar     (application1Client.jar was generated by the deployment tool)
    The bean code contains:
         package com.zbeans;
         import javax.ejb.*;
         public abstract class Entity1Bean implements javax.ejb.EntityBean {
              public Integer property1;     /* primary key (all lower case, unless that
                   breaches naming conventions?). All letters s/b in lower case to
                   exactly match non-capitalization of primary key in deployment tool?? */
              /* Must the parm. variable be identically named as the primary key name?? */
              public Integer ejbCreate(Integer property1) throws EJBException, CreateException {
              //public Integer ejbCreate(Integer pnNewProperty1) throws EJBException, CreateException {
              //public void ejbCreate(Integer pnNewProperty1) throws EJBException, CreateException {
                   System.out.println("\nInside Entity1Bean.ejbCreate()");     <-- this stmt. was reached
                   this.property1 = property1;
                   //property1 = pnNewProperty1;
                   /* return pnNewProperty1; or return Property1?? should return null for
                        CMP 2.0?? I don't     think so */
                   return property1;
              }     // ejbCreate() method
              public abstract Integer getProperty1();
              public abstract void setProperty1(Integer pnNewProperty1);
    Entity1RemoteHome.java contains:
         package com.zbeans;
         import java.rmi.RemoteException;
         import javax.ejb.*;
         public interface Entity1RemoteHome extends javax.ejb.EJBHome {
         public Entity1Remote create (Integer property1)
              throws CreateException, RemoteException, EJBException;
    Remote1Client1, Entity1RemoteHome.java, etc. resides under d:\zjava\zsamples\com\zbeans
    Unsuccessful remedies:
         1) in Entity1Bean
         public Integer ejbCreate(Integer id) throws javax.ejb.CreateException {
         coded
              return id;
         instead of
              return null;
         - some newsgroup posting states that for EJB 2.0 CMP must return Primary key
              type, while others disagree (refer below)
    2)
         defined ejbCreate() return type as void instead of Integer,
         and commented out return stmt. i.e.
         public void ejbCreate(Integer id)
              //return null;
         - instead of -
         public Integer ejbCreate(Integer id)
              return null;
         - this compiled clean with javac, but in deployment tool system.err
         contained:
         Entity1Bean_PM.java:76: illegal start of expression return (void)
         partition.afterEjbCreate(this); ^
         c:\j2sdkee1.3.1\repository\computer\gnrtrTMP\application1\com\zbeans\Entity1Bean_PM.
         java:76: ')' expected return (void) partition.afterEjbCreate(this);
         c:\j2sdkee1.3.1\repository\computer\gnrtrTMP\application1\com\zbeans\Entity1Bean_PM.
         java:76: cannot return a value from method whose result type is void
         return (void) partition.afterEjbCreate(this); ^
    3) property1 is actually the Integer primary key in deployment tool, so tried the
    following
         public Integer Property1;     /* primary key; all letter s/b in lower case to
              exactly match capitalization in deployment tool?? */
         public Integer ejbCreate(Integer pnNewProperty1) throws EJBException, CreateException {
              Property1 = pnNewProperty1;
              return pnNewProperty1;
         }     // ejbCreate() method
    4) as above, but typed property1 all in lower case so it would match the
    non-capitalization of the primary key in the deployment tool i.e.
         public Integer property1;     /* primary key; all letter s/b in lower case to
              exactly match capitalization in deployment tool?? */
         public Integer ejbCreate(Integer pnNewProperty1) throws EJBException, CreateException {
              property1 = pnNewProperty1;
              return pnNewProperty1;
         }     // ejbCreate() method
    5) as above, but made the parm. variable identically named as the
    primary key name, and modifed return stmt. i.e.
         public Integer ejbCreate(Integer property1) throws EJBException, CreateException {     
              this.property1 = property1;
              return property1;          /* removing this return caused " missing return
                   statement" */
         }     // ejbCreate() method
    My environment settings are:
         java version "1.4.0_01"
         Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_01-b03)
         Java HotSpot(TM) Client VM (build 1.4.0_01-b03, mixed mode)
         WinNT 4.0 SP5
         CLASSESDIR=c:\j2sdkee1.3.1\lib\classes
         CLASSPATH=.;c:\j2sdkee1.3.1\lib\j2ee.jar;D:\jakarta-tomcat-3.3.1\lib\common\serv
         let.jar;C:\JRun4\servers\default\default-ear\default-war\WEB-INF\classes;D:\zJav
         a\zsamples\EJB\application1
         J2EEJARS=c:\j2sdkee1.3.1\lib\j2ee.jar
         J2EETOOL_CLASSES=c:\j2sdkee1.3.1\lib\toolclasses
         J2EETOOL_JAR=c:\j2sdkee1.3.1\lib\j2eetools.jar
         J2EE_HOME=c:\j2sdkee1.3.1
         JAVA_HOME=C:\j2sdk1.4.0_01
         etc.
    My understanding was that for CMP2.0, ejbCreate() should accept a parm.
    and return the primary key type? For my application, CMP 2.0 is
    specified in the J2EE deploytool. I'm really getting confused on the
    correct rules for developing the ejbCreate() in CMP 2.0 vs BMP, I've
    read conflicting postings.
    Instead of the J2EE Deployment Tool, am I better off learning another
    server/deployer, such as JBoss, VisualAge for CSP, etc.?

    I have noticed two bugs in your code:
    1) You should ALWAYS use abstract get/set methods to modify CMP fields
    of EJB 2.0 CMP entity bean.
    Instead of
    this.property1 = property1;call
    setProperty1(Integer pnNewProperty1);2) you should return null in ejbCreate() method
    "The entity object created by the ejbCreate<METHOD> method must have a unique primary
    key. This means that the primary key must be different from the primary keys of all the existing
    entity objects within the same home. However, it is legal to reuse the primary key of a previously
    removed entity object. The implementation of the Bean Provider?s ejbCreate<
    METHOD>(...) methods should be coded to return a null.[14]"
    I hope it helps
    Maris Orbidans

  • PortableRemoteObject.narrow causes NoClassDefFoundError

    I exhaustively searched for this error in this, and other forums, and
    tried some suggested techniques, but none worked.
    /* Following causes NoClassDefFoundError */
    Entity1RemoteHome printHome = (Entity1RemoteHome)
         PortableRemoteObject.narrow( prrefHome, Entity1RemoteHome.class );
    RemoteClient1.java contains:
         package com.zbeans;
         import com.zbeans.Entity1Remote;
         import com.zbeans.Entity1RemoteHome;
         import javax.naming.InitialContext;
         Context prinitctx = new InitialContext();
         Context prenvctx = (Context) prinitctx.lookup("java:comp/env");
         /* 'ejb/Entity1 EJB ref1' is the Reference Name appearing under the JNDI
              Names tab under the application object, for the deployment tool. */
         Object prrefHome = prenvctx.lookup("ejb/Entity1 EJB ref1");
         /* Following causes NoClassDefFoundError */
         Entity1RemoteHome printHome = (Entity1RemoteHome)
              PortableRemoteObject.narrow( prrefHome, Entity1RemoteHome.class );
         Binding name:`java:comp/env/ejb/Entity1 EJB ref1`
         RemoteClient1.main(): NoClassDefFoundError has occurred!!
         getMessage(): com.zbeans.Entity1RemoteHome
         toString(): java.lang.NoClassDefFoundError: com.zbeans.Entity1RemoteHome
         I ran using C:\j2sdkee1.3.1\bin>runclient -client D:\zJava\zsamples\EJB\application1\application1.ear -name RemoteClient1 -textauth
         I ensured j2ee and cloudscape were running, and
         set APPCPATH=application1Client.jar     (application1Client.jar was generated by the deployment tool)
    Entity1RemoteHome.java contains:
         package com.zbeans;
         import java.rmi.RemoteException;
         import javax.ejb.*;
         public interface Entity1RemoteHome extends javax.ejb.EJBHome {
         public Entity1Remote create (Integer id)
              throws CreateException, RemoteException, EJBException;
    Remote1Client1, Entity1RemoteHome.java, etc. resides under
    C:\JRun4\servers\default\default-ear\default-war\WEB-INF\classes\com\zbeans
    I was thinking of moving RemoteClient1.java one level higher in the
    directory tree. But maybe this is not necessary since the sample
    Converter app. has the client in the same folder as the EJB interfaces?
    - should I move the .java, and .class files from c:\jrun4\...\classes\com\zbeans
         to D:\zJava\zsamples\EJB\application1\com\zbeans since this is where the
         .ear, .jar are generated?
    My environment settings are:
         java version "1.4.0_01"
         Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_01-b03)
         Java HotSpot(TM) Client VM (build 1.4.0_01-b03, mixed mode)
         WinNT 4.0 SP5
         CLASSESDIR=c:\j2sdkee1.3.1\lib\classes
         CLASSPATH=.;c:\j2sdkee1.3.1\lib\j2ee.jar;D:\jakarta-tomcat-3.3.1\lib\common\serv
         let.jar;C:\JRun4\servers\default\default-ear\default-war\WEB-INF\classes;D:\zJav
         a\zsamples\EJB\application1
         J2EEJARS=c:\j2sdkee1.3.1\lib\j2ee.jar
         J2EETOOL_CLASSES=c:\j2sdkee1.3.1\lib\toolclasses
         J2EETOOL_JAR=c:\j2sdkee1.3.1\lib\j2eetools.jar
         J2EE_HOME=c:\j2sdkee1.3.1
         JAVA_HOME=C:\j2sdk1.4.0_01
         etc.

    Refer to
    http://access1.sun.com/FAQSets/ejbfaq.html#17

  • Cant get rules to work with pz:div tag

    im using commerce server 2.0.1 with sp1
    i made a rule sheet and rule and rule selectors through the wlpsadmin
    tool
    and then i was trying to base content inside a portal using one of the
    rule selectors and the pz:div tag.
    this is what the jsp page has inside:
    <pz:div
    ruleset="jdbc://com.beasys.commerce.axiom.reasoning.rules.RuleSheetDefinitionHome/myRules"
    rule="myRule">
    content
    </pz:div>
    the server just hangs for about 5 minutes, and then no content is
    returned. there is nothing coming out in the weblogic.log the whole
    time. i have checked the rules and at least one should be returning some
    content
    previouly i have been getting other errors such as
    Thu Aug 17 10:16:39 PDT 2000:<E> <ServletContext-General> exception
    raised on '/portals/buybeans/buybeansportal.jsp'
    javax.servlet.ServletException: runtime failure in custom tag 'div'
    at
    jsp.portals.buybeans.portlets.emailCampaign._jspService(emailCampaign.java:318)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:124)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:250)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:171)
    at
    weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:100)
    at jsp.portals.buybeans.portlet._jspService(portlet.java:683)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:124)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:250)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:171)
    at
    weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:100)
    at
    jsp.portals.buybeans.portalcontent._jspService(portalcontent.java:594)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:124)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:250)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:171)
    at
    weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:100)
    at
    jsp.portals.buybeans.buybeansportal._jspService(buybeansportal.java:751)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:124)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:153)
    at
    com.beasys.commerce.axiom.jsp.JspServiceManager.service(JspServiceManager.java:1033)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:124)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:153)
    at
    weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:96)
    at
    jsp.portals.buybeans._userlogin._jspService(_userlogin.java:964)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:124)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:153)
    at
    com.beasys.commerce.axiom.jsp.JspServiceManager.service(JspServiceManager.java:1033)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:124)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:744)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:692)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:251)
    at
    weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:363)
    at
    weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    and
    Thu Aug 17 10:16:39 PDT 2000:<I> <EJB JAR deployment
    /usr/local/weblogic/WebLogicCommerce/lib/rulesservice.jar> Transaction:
    '966528642212_134' rolled back due to EJB exception:
    java.lang.NullPointerException
    at
    com.beasys.commerce.axiom.reasoning.rules.service.RulesetDataBean.getData(RulesetDataBean.java:171)
    at
    com.beasys.commerce.axiom.reasoning.rules.service.RulesetDataBeanEOImpl.getData(RulesetDataBeanEOImpl.java:56)
    at
    com.beasys.commerce.axiom.reasoning.rules.service.RulesetDataResolver.resolveEntity(RulesetDataResolver.java:121)
    at com.sun.xml.parser.Parser.parse(Parser.java:294)
    at
    com.beasys.commerce.axiom.reasoning.rules.service.ServiceProviderManager.createRulesetForXML(ServiceProviderManager.java:419)
    at
    com.beasys.commerce.axiom.reasoning.rules.service.ServiceProviderManager.createContext(ServiceProviderManager.java:146)
    at
    com.beasys.commerce.axiom.reasoning.rules.service.RulesServiceBean.getContextWrapper(RulesServiceBean.java:863)
    at
    com.beasys.commerce.axiom.reasoning.rules.service.RulesServiceBean.applyRules(RulesServiceBean.java:189)
    at
    com.beasys.commerce.axiom.reasoning.rules.service.RulesServiceBeanEOImpl.applyRules(RulesServiceBeanEOImpl.java:56)
    at
    com.beasys.commerce.axiom.reasoning.rules.service.RulesServiceBeanEOImpl_ServiceStub.applyRules(RulesServiceBeanEOImpl_ServiceStub.java:153)
    at
    com.beasys.commerce.axiom.p13n.agents.ClassificationAgentImpl.advise(ClassificationAgentImpl.java:110)
    at
    com.beasys.commerce.axiom.p13n.advisor.PersonalizationAdvisorBean.advise(PersonalizationAdvisorBean.java:100)
    at
    com.beasys.commerce.axiom.p13n.advisor.PersonalizationAdvisorBeanEOImpl.advise(PersonalizationAdvisorBeanEOImpl.java:56)
    at
    com.beasys.commerce.axiom.p13n.advisor.PersonalizationAdvisorBeanEOImpl_ServiceStub.advise(PersonalizationAdvisorBeanEOImpl_ServiceStub.java:192)
    at
    com.beasys.commerce.p13n.tags.DivTag.includeBody(DivTag.java:161)
    at
    com.beasys.commerce.p13n.tags.DivTag.doStartTag(DivTag.java:100)
    at
    jsp.portals.buybeans.portlets.emailCampaign._jspService(emailCampaign.java:293)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:124)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:250)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:171)
    at
    weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:100)
    at jsp.portals.buybeans.portlet._jspService(portlet.java:683)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:124)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:250)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:171)
    at
    weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:100)
    at
    jsp.portals.buybeans.portalcontent._jspService(portalcontent.java:594)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:124)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:250)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:171)
    at
    weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:100)
    at
    jsp.portals.buybeans.buybeansportal._jspService(buybeansportal.java:751)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:124)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:153)
    at
    com.beasys.commerce.axiom.jsp.JspServiceManager.service(JspServiceManager.java:1033)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:124)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:153)
    at
    weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:96)
    at
    jsp.portals.buybeans._userlogin._jspService(_userlogin.java:964)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:124)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:153)
    at
    com.beasys.commerce.axiom.jsp.JspServiceManager.service(JspServiceManager.java:1033)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:124)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:744)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:692)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:251)
    at
    weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:363)
    at
    weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

    no i am sure it is not the database, i use oracle and cloudscape
    interchangingly. i never got the jsp tag to work, however i got around it by
    using java code. they have a class called ContentSelectorExample which you can
    use to exceute a rule. here is my code that seems to work:
    <%@ page import="com.beasys.commerce.axiom.content.Content" %>
    <%@ page import="examples.p13nadvisor.ContentSelectorExample" %>
    <%
    // this is the rule sheet you made in the commerce server admin at wlpsadmin
    String
    ruleSet="ejb://com.beasys.commerce.axiom.reasoning.rules.RuleSheetDefinitionHome/myRules";
    // this is the rule you made in the commerce server admin at wlpsadmin (content
    selector rule)
    String rule="myRule";
    Content[] results = null;
    String contentHome = "com.beasys.commerce.axiom.document.DocumentManager";
    String sortby = null;
    String query = null;
    int max = 1;
    try{
    results = new ContentSelectorExample().executeContentSelector(pageContext,
    ruleSet, rule, contentHome, sortby, query, max);
    // check if there are any results - this tells you if the rule failed or
    succeeded
    if(results != null && results.length > 0){
    %>
    <P>Content for when the rule is a success</P>
    <%
    } catch(Exception ex){ ex.printStackTrace(); }
    %>
    William Lee wrote:
    I have experienced the same problem. Have you got the cure for it yet?
    May I ask what RDBMS are you using? I'm using MSSQL 7.0. I just want to make
    sure this doesn't cause the problem.
    William Lee
    "root" <[email protected]> wrote in message
    news:[email protected]...
    im using commerce server 2.0.1 with sp1
    i made a rule sheet and rule and rule selectors through the wlpsadmin
    tool
    and then i was trying to base content inside a portal using one of the
    rule selectors and the pz:div tag.
    this is what the jsp page has inside:
    <pz:div
    ruleset="jdbc://com.beasys.commerce.axiom.reasoning.rules.RuleSheetDefinitio
    nHome/myRules"
    rule="myRule">
    content
    </pz:div>
    the server just hangs for about 5 minutes, and then no content is
    returned. there is nothing coming out in the weblogic.log the whole
    time. i have checked the rules and at least one should be returning some
    content
    previouly i have been getting other errors such as
    Thu Aug 17 10:16:39 PDT 2000:<E> <ServletContext-General> exception
    raised on '/portals/buybeans/buybeansportal.jsp'
    javax.servlet.ServletException: runtime failure in custom tag 'div'
    at
    jsp.portals.buybeans.portlets.emailCampaign._jspService(emailCampaign.java:3
    18)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :124)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
    l.java:250)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
    l.java:171)
    at
    weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:100)
    at jsp.portals.buybeans.portlet._jspService(portlet.java:683)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :124)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
    l.java:250)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
    l.java:171)
    at
    weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:100)
    at
    jsp.portals.buybeans.portalcontent._jspService(portalcontent.java:594)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :124)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
    l.java:250)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
    l.java:171)
    at
    weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:100)
    at
    jsp.portals.buybeans.buybeansportal._jspService(buybeansportal.java:751)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :124)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
    l.java:153)
    at
    com.beasys.commerce.axiom.jsp.JspServiceManager.service(JspServiceManager.ja
    va:1033)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :124)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
    l.java:153)
    at
    weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:96)
    at
    jsp.portals.buybeans._userlogin._jspService(_userlogin.java:964)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :124)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
    l.java:153)
    at
    com.beasys.commerce.axiom.jsp.JspServiceManager.service(JspServiceManager.ja
    va:1033)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :124)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
    l.java:744)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
    l.java:692)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
    Manager.java:251)
    at
    weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:363)
    at
    weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    and
    Thu Aug 17 10:16:39 PDT 2000:<I> <EJB JAR deployment
    /usr/local/weblogic/WebLogicCommerce/lib/rulesservice.jar> Transaction:
    '966528642212_134' rolled back due to EJB exception:
    java.lang.NullPointerException
    at
    com.beasys.commerce.axiom.reasoning.rules.service.RulesetDataBean.getData(Ru
    lesetDataBean.java:171)
    at
    com.beasys.commerce.axiom.reasoning.rules.service.RulesetDataBeanEOImpl.getD
    ata(RulesetDataBeanEOImpl.java:56)
    at
    com.beasys.commerce.axiom.reasoning.rules.service.RulesetDataResolver.resolv
    eEntity(RulesetDataResolver.java:121)
    at com.sun.xml.parser.Parser.parse(Parser.java:294)
    at
    com.beasys.commerce.axiom.reasoning.rules.service.ServiceProviderManager.cre
    ateRulesetForXML(ServiceProviderManager.java:419)
    at
    com.beasys.commerce.axiom.reasoning.rules.service.ServiceProviderManager.cre
    ateContext(ServiceProviderManager.java:146)
    at
    com.beasys.commerce.axiom.reasoning.rules.service.RulesServiceBean.getContex
    tWrapper(RulesServiceBean.java:863)
    at
    com.beasys.commerce.axiom.reasoning.rules.service.RulesServiceBean.applyRule
    s(RulesServiceBean.java:189)
    at
    com.beasys.commerce.axiom.reasoning.rules.service.RulesServiceBeanEOImpl.app
    lyRules(RulesServiceBeanEOImpl.java:56)
    at
    com.beasys.commerce.axiom.reasoning.rules.service.RulesServiceBeanEOImpl_Ser
    viceStub.applyRules(RulesServiceBeanEOImpl_ServiceStub.java:153)
    at
    com.beasys.commerce.axiom.p13n.agents.ClassificationAgentImpl.advise(Classif
    icationAgentImpl.java:110)
    at
    com.beasys.commerce.axiom.p13n.advisor.PersonalizationAdvisorBean.advise(Per
    sonalizationAdvisorBean.java:100)
    at
    com.beasys.commerce.axiom.p13n.advisor.PersonalizationAdvisorBeanEOImpl.advi
    se(PersonalizationAdvisorBeanEOImpl.java:56)
    at
    com.beasys.commerce.axiom.p13n.advisor.PersonalizationAdvisorBeanEOImpl_Serv
    iceStub.advise(PersonalizationAdvisorBeanEOImpl_ServiceStub.java:192)
    at
    com.beasys.commerce.p13n.tags.DivTag.includeBody(DivTag.java:161)
    at
    com.beasys.commerce.p13n.tags.DivTag.doStartTag(DivTag.java:100)
    at
    jsp.portals.buybeans.portlets.emailCampaign._jspService(emailCampaign.java:2
    93)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :124)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
    l.java:250)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
    l.java:171)
    at
    weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:100)
    at jsp.portals.buybeans.portlet._jspService(portlet.java:683)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :124)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
    l.java:250)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
    l.java:171)
    at
    weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:100)
    at
    jsp.portals.buybeans.portalcontent._jspService(portalcontent.java:594)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :124)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
    l.java:250)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
    l.java:171)
    at
    weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:100)
    at
    jsp.portals.buybeans.buybeansportal._jspService(buybeansportal.java:751)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :124)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
    l.java:153)
    at
    com.beasys.commerce.axiom.jsp.JspServiceManager.service(JspServiceManager.ja
    va:1033)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :124)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
    l.java:153)
    at
    weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:96)
    at
    jsp.portals.buybeans._userlogin._jspService(_userlogin.java:964)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :124)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
    l.java:153)
    at
    com.beasys.commerce.axiom.jsp.JspServiceManager.service(JspServiceManager.ja
    va:1033)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :124)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
    l.java:744)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
    l.java:692)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
    Manager.java:251)
    at
    weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:363)
    at
    weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

  • Rmi Server Exception

    Hello Everyone,
    I encountered the following errors during deployment using J2ee's Deployment Tool.
    I have an Entity EJB called Books using Cloudscape as the database. When I clicked on 'Generate SQL Now' in Deployment Tool, I received the following errors. "java.rmi.ServerException, - nested exception - connecting to database - no suitable driver".
    Prior to deployment I have j2ee server, cloudscape database up and running. Cloudscape has the following Driver Class - COM.core.RmiJdbcDriver, COM.cloudscape.core.RmiJdbcDriver 1.7.2. The Database JNDI name is jdbc/BooksInCloudscape. I tried to re-register the driver in j2ee and cloudscape, then brought both servers down and up with no luck. I have put c:\Books\classes in my CLASSPATH.
    Could anyone please shed lights on this issue? Thanks in advance.

    I am having the EXACT SAME ISSUE. I've been to countless message boards and support sites to no avail (I'm assuming you are also working from EJB 2.1 Kick Start by Peter Thaggard.)
    If you've resolved this issue from another source please update this posting any help would be greatly appreciated. I can't express how much time has been wasted on this simple connectivity issue.

  • Ant create-savingsaccount-table problem on WIN ME

    Hello, ALL:
    I had a problem run ant create-savingsaccount-table on WIN ME. I had started j2ee server and cloudscape successfully. The error is:
    C:\WUW\Java\J2EE\tutorial\j2eetutorial\examples\src>ant create-savingsaccount-table
    Buildfile: build.xml
    BUILD FAILED
    No JAXP compliant XML parser found. See http://java.sun.com/xml for the
    reference implementation.
    --- Nested Exception ---
    java.lang.ClassNotFoundException: javax.xml.parsers.SAXParserFactory
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:120)
    at org.apache.tools.ant.Main.runBuild(Main.java:402)
    at org.apache.tools.ant.Main.main(Main.java:149)
    Total time: 0 seconds
    Any suggestions?
    Thank you.

    Hello:
    I got another problem. It is about runclient -client SavingsAccountApp.ear -name     
    SavingsAccountClient -textauth
    When I run this command, and I put the guest and guest1233 in login screen then get am exception as
    C:\WUW\Java\J2EE\tutorial\j2eetutorial\examples\ears>runclient -client SavingsAc
    countApp.ear -name SavingsAccountClient -textauth
    Initiating login ...
    Username = null
    Binding name:`java:comp/env/ejb/SimpleSavingsAccount`
    Caught an exception.
    java.rmi.AccessException: CORBA NO_PERMISSION 0 No; nested exception is:
    org.omg.CORBA.NO_PERMISSION: minor code: 0 completed: No
    org.omg.CORBA.NO_PERMISSION: minor code: 0 completed: No
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:237)
    at com.sun.corba.ee.internal.iiop.messages.ReplyMessage_1_2.getSystemExc
    eption(ReplyMessage_1_2.java:93)
    at com.sun.corba.ee.internal.iiop.ClientResponseImpl.getSystemException(
    ClientResponseImpl.java:108)
    at com.sun.corba.ee.internal.POA.GenericPOAClientSC.invoke(GenericPOACli
    entSC.java:136)
    at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:459)
    at SavingsAccountHomeStub.create(Unknown Source)
    at SavingsAccountClient.main(SavingsAccountClient.java:29)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.sun.enterprise.util.Utility.invokeApplicationMain(Utility.java:24
    3)
    at com.sun.enterprise.appclient.Main.main(Main.java:159)

  • Petstore demo install under Win2000

    Hello:
    Trying to get my arms around J2EE. A large task.
    Anyway.
    I have downloaded the J2EESDK and installed it.
    I can start the Application server and run the Hello demo.
    I can also run the App Server Admin Application, so I
    think I got that right.
    I want to work with the Petstore demo. So I downloaded
    petstore-1_3_2.zip. I am following the enclosed install
    instructions. When I run setup I get the following:
    My environment is below also.
    The Petstore demo seems to be built on top of Cloudscape.
    But the J2EE SDK installs PointBase, is there a way around this.
    Need some help. Please
    thanks
    kd
    C:\Downloads\javasoft\petstore1.3.2>setup
    Buildfile: setup.xml
    init:
    help:
    create_jms_queues:
    [echo] Creating JMS Queues ....
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    create_users:
    [echo] Creating users ....
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/RealmTool
    [java] Java Result: 1
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/RealmTool
    [java] Java Result: 1
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/RealmTool
    [java] Java Result: 1
    create_petstore_db:
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    create_supplier_db:
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    create_opc_db:
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    core:
    [echo] The J2EE SDK is now successfully configured to run the
    petstore application. P
    lease restart cloudscape and the j2ee servers, and deploy all the ear
    files. You can do th
    is by issuing the following commands:
    [echo] change directory to j2sdkee1.3/bin; start RI and
    Cloudscape in separate window
    s
    [echo] cloudscape -start
    [echo] j2ee -verbose
    [echo] change directory to petstore1.3.2 to deploy the EAR files
    [echo] setup.bat deploy (or on Unix, setup.sh deploy)
    BUILD SUCCESSFUL
    Total time: 5 seconds
    C:\Downloads\javasoft\petstore1.3.2>
    C:\Downloads\javasoft\petstore1.3.2>
    C:\Downloads\javasoft\petstore1.3.2>set
    ALLUSERSPROFILE=C:\Documents and Settings\All Users
    ANT_CLASSPATH=c:\sun\appserver/lib/j2ee.jar;src/lib/ant/lib/ant.jar;src/lib/ant/lib/parser
    .jar;src/lib/ant/lib/jaxp.jar;c:\programs\j2sdk1.4.2_03/lib/tools.jar
    ANT_HOME=src/lib/ant
    APPDATA=C:\Documents and Settings\Administrator\Application Data
    CommonProgramFiles=C:\Program Files\Common Files
    COMPUTERNAME=DUFFYHOU
    ComSpec=C:\WINNT\system32\cmd.exe
    HOMEDRIVE=C:
    HOMEPATH=\Documents and Settings\Administrator
    J2EE_HOME=c:\sun\appserver
    JAVA_HOME=c:\programs\j2sdk1.4.2_03
    LOGONSERVER=\\DUFFYHOU
    NUMBER_OF_PROCESSORS=1
    OS=Windows_NT
    Os2LibPath=C:\WINNT\system32\os2\dll;
    Path=c:\programs\j2sdk1.4.2_03\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\WI
    NDOWS;C:\WINDOWS\COMMAND
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    PROCESSOR_ARCHITECTURE=x86
    PROCESSOR_IDENTIFIER=x86 Family 15 Model 0 Stepping 7, GenuineIntel
    PROCESSOR_LEVEL=15
    PROCESSOR_REVISION=0007
    ProgramFiles=C:\Program Files
    PROMPT=$p$g
    SystemDrive=C:
    SystemRoot=C:\WINNT
    TEMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
    TMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
    USERDOMAIN=DUFFYHOU
    USERNAME=Administrator
    USERPROFILE=C:\Documents and Settings\Administrator
    winbootdir=C:\WINDOWS
    windir=C:\WINNT
    C:\Downloads\javasoft\petstore1.3.2>

    I had this same symptom, and it was because I was trying to use Petstore version 1.3.2 with the J2EE 1.4 SDK.
    There is an updated version of the Petstore sample application in the J2EE 1.4 samples bundle located at... http://java.sun.com/j2ee/1.4/download.html#samples. It is included as part of a group of three "J2EE Blueprint samples" and they can be run with the J2EE 1.4 SDK (whereas the old one's can't). (Note that the Buleprint samples are also included in the "All-In-One Bundle" and are located in the in the \AppServer\samples\blueprints directory.)
    If you download the samples by themselves, their documentation won't specify that they must be installed in the \AppServer\samples\blueprints directory, but they must because the ant build script references at least a couple of other files in the samples directory heirarchy (common.xml and common.properties).
    These are two samples of error messages I got when I was trying to build the Petstore application from outside the context of \AppServer\samples\blueprints directory heirarchy:
    C:\blueprints\petstore1.4\src>asant
    Buildfile: build.xml
    C:\common.xml could not be found
    BUILD FAILED
    java.io.FileNotFoundException: C:\common.xml (The system cannot find the file specified)
    C:\petstore1.4\src>asant
    Buildfile: build.xml
    BUILD FAILED
    The file or path you specified (..\..\..\common.properties) is invalid relative to C:\petstore1.4\src

Maybe you are looking for

  • Application switcher not working as expected

    I am using the French localisation of Leopard. Using Application switcher (ie Cmd-Tab) I was able on Tiger to quit a running app by pressing A (an oddity due to the AZERTY / QWERTY differences). This does not work any more and I cannot quit an applic

  • In SAP-XI stop generating of xml files

    Hi, In sap-xi i created a simple file to file scenario. After completion of end to end scenario the xml files are keep on generating. I have selected delete option in CommunicationChannel. The xml  file from source folder is deleted. Still the taget

  • Not able to pass the BEx date prompts from liveoffice

    Dear Team , Environment : BI 4.1 SP3 ,Dashboards 4.1 Sp3 and Live office 4.1 SP3 . Bex query has date range variable ,we built dashboard with Live office .Issue is we are failing to pass date variables from dashboard .To pass 1- March -2015 , We trie

  • Latest AIR update going application to crash.

    There is a small debug code: package     import flash.display.Sprite;     import flash.events.Event;     import flash.events.FileListEvent;     import flash.filesystem.File;     import flash.net.FileFilter;     public class AIROpenFilesTest extends S

  • How to get the status of workflow

    Hi all, Please help me with a query to get the status of a worflow. For Eg: The close order line wf has fired for a particular order line in Oracle Apps (item type = OEOL). I just want to find the status of this using a query. Any hints will be very