Re: Weblogic run Error on Solaris~~~ Please Help

From: oraclehyd <oraclehyd_at_yahoo.com>
Date: 14 Mar 2002 06:21:07 -0800
Message-ID: <fc615b88.0203140621.4173c841_at_posting.google.com>


Maybe this should help you!!!



-Create a login page that has user and password input text fields and a submit and cancel button.
-Put the login.html file in public_html/docs/mydocs
-Put the LoginServlet.java in /servlets/
-Either fail to a page, or with a message from the servlet.

11:16 JDBC:
-Get the JDBC Oracle drivers from
/big5/Data/bootcamps/weblogic/classes12.zip -Put this in C:\weblogic\lib\
-Add this to your system classpath in the Control Panel (append ;C:\weblogic\lib\classes12.zip)
-Edit C:\weblog\startWeblogic.cmd file append to: WEBLOGIC_CLASSPATH=...;./lib/classpath12.zip -edit your weblogic.properties file to have the following entry:

weblogic.jdbc.connectionPool.raghuPool=\

       url=jdbc:oracle:thin:_at_192.168.1.1:1521:ORCL,\
       driver=oracle.jdbc.driver.OracleDriver,\
       initialCapacity=1,\
       maxCapacity=2,\
       capacityIncrement=1,\
       props=user=scott;password=tiger
       

-STOP the server with the attached WebLogic Console. (Do not kill -9 the server... BAD BAD BAD!)
-Start the server from commandline (i.e. cd to c:\weblogic then run startWeblogic.cmd)
-Attach your Weblogic console to your server -Click the "DATABASE" category; expand "JDBC Connection Pools"; view the new pool "raghuPool" (You will only see this if all the above was correct and sucessful)

-To test this pool, go to C:\weblogic\examples\jdbc\oracle and modify the "simpleselect.java" file
-Change the entries to have:

    Driver myDriver = (Driver)
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();

                Connection conn = myDriver.connect("jdbc:oracle:thin:_at_209.157.221.36:1521:ORCL", props);     

-Change the select statement to have:

    Driver myDriver = (Driver)
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();

    Connection conn =
myDriver.connect("jdbc:oracle:thin:_at_209.157.221.36:1521:ORCL", props);

-Compile this file with: javac simpleselect.java -cd to c:\weblogic (unless you removed the package line at the top of simpleselct.java)
-Run this file with: java examples.jdbc.oracle.simpleselect

ENTERPRISE JAVA BEANS (EJB): -EJBObject deals with ENTITY BEANS. Extends java.rmi.Remote.

Steps of hands-on tutorial:
http://developer.java.sun.com/developer/onlineTraining/Beans/EJBTutorial/step1.html

  1. Create interface Demo that extends EJBObject. (Remote)
  2. Create interface DemoHome that extends EJBHome. (Home)
  3. Create a class called DemoBean that implements SessionBean. (Bean)
  4. Compile java files and create a Deployment Descriptor. java weblogic.ejb.utils.DDCreator -dir ejb/demo ejb/demo/DeploymentDescriptor.txt
  5. Setup the WebLogic server (tons o' stuff there)
  6. Write the DemoClient class. (or any web-based client)

micosat_at_hotmail.com (Micos Attile) wrote in message news:<3c8c2e71.462434_at_news.btinternet.com>...
> I have a Bizzare error and dont know how to solve it.
>
> I have set-up one Sun Netra T-1 with a product called Cisco ACS
> (Advanced Cisco Secure). This comes bundled with weblogic to interface
> it with Oracle database.
>
> Setup as follows:
>
> Sun Netra T-1, Solaris 8 (possiably 01/00 release but dont know how to
> check), Oracle 8i client 8.1.6 along with Cisco ACS 2.3.6 (which
> includes weblogic).
>
> All works well
>
>
> However, I have setup another Sun Netra T-1 (however this time its an
> AC200) with Solaris 8 (02/02 release), Oracle 8i client 8.1.6 with
> Cisco ACS 2.3.6.
>
>
> There is a script included with ACS that allows you to execute SQL
> statements from the CLI. However, on this second sun, weblogic just
> hangs and waits.
>
> The oracle client seems to work ok (I can run SQLPLUS to a Oracle
> server) ie: sqlplus user/password_at_server-name works ok
>
> I dont know where to star looking as boths systems are near identical.
> ANY sound suggestions would be welcome.
>
> Thanks in advance
Received on Thu Mar 14 2002 - 15:21:07 CET

Original text of this message