You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Buck Foreman <Bu...@viacore.net> on 2000/09/27 01:35:06 UTC

Install on weblogic 5.1

Has anyone installed on Weblogic 5.1 ?
If so, can you send me a short blurb on what you did.


Re: Install on weblogic 5.1

Posted by Bruno Câmara <bf...@bes.pt>.
Here is a description of how to install Apache-SOAP in WebLogic Server
5.1 that I found in this mailing list.

Bruno Câmara

----------------------------------------------------------------------------------



         Apache-SOAP Version 2.0: Installing the Server-Side Under
                                         WebLogic Server v5.1



  These instructions assume that you already have WebLogic Server
installed, and that you already have Xerces and SOAP installed, and that
you just want
  to use SOAP from within WebLogic Server.


  Under Windows



  If you run WebLogic Server from the Start menu then you will need to
make your environment changes using the Control Panel or however else
you may
  edit your CLASSPATH when using WebLogic Server. The following
instructions assume you are running WebLogic Server from the command
line.

    1.In the WebLogic installation directory, edit setEnv.cmd. Somewhere
around line 68 of setEnv.cmd you should find a line that looks something
like
       this:

       set

CLASSPATH=%JDK_CLASSES%%WL_HOME%\license;%WL_HOME%\classes;%WL_HOME%\lib\weblogicaux.jar;%CLIENT_CLASSES%;%SERVER_CLASSES%%RMIFORMS%

  Insert immediately after the "=" (with no spaces) the full path to the
xerces.jar file, followed by a semi-colon, and the full path to the
soap.jar file.
  Additionally, you may want to add the path to the SOAP installation
directory if you plan on running any of the samples. You will also want
to have on the
  classpath any of your code that you want to deploy as a service.

  This should result in a line of the form:

       set

CLASSPATH={Xerces-install-directory}\xerces.jar;{apache-soap-install-directory}\lib\soap.jar;D:\SOAP\apache-soap-2_0;%JDK_CLASSES%%WL_HOME%\license;%WL_HOME%\classes;%WL_HOME%\lib\weblogicaux.jar;%CLIENT_CLASSES%;%SERVER_CLASSES%%RMIFORMS%

    1.Edit the startWebLogic.cmd file, and locate the line starting set
PRE_CLASSPATH. Add the full paths to the Xerces and SOAP JAR files.
       Optionally, add the path to the SOAP installation directory if
you plan on running any of the samples. The line should look something
like:

       set

PRE_CLASSPATH={Xerces-install-directory}\xerces.jar;{apache-soap-install-directory}\lib\soap.jar;{apache-soap-install-directory}

    2.Edit the CLASSPATH(s) in the startConsole.cmd file to add the
Xerces and SOAP JAR files in the same way.
    3.Edit the weblogic.properties file, and insert the following line:


weblogic.httpd.register.soap/servlet/rpcrouter=org.apache.soap.server.http.RPCRouterServlet

    4.Copy the SOAP directory from the webapps sub-directory of the SOAP
installation into the public_html directory of your server (the default
is
       c:\weblogic\myserver\public_html though you may have changed it).

  Restart WebLogic Server. You should now be ready to go SOAP-ing!

  Hint: to test this setup, point your browser to
http://localhost:7001/soap (assuming you have enabled HTTP on port
7001).


  Under UNIX (any flavor)

    1.In the weblogic installation directory, edit setEnv.sh. There are
two places where the CLASSPATH variable is set (depending on whether you
are
       using Java1 or Java 2. Insert at the beginning of the CLASSPATH
the full path to the xerces.jar file, and the full path to the soap.jar
file.
       Additionally, you may want to add the path to the SOAP
installation directory if you plan on running any of the samples. You
will also want to have
       on the classpath any of your code that you want to deploy as a
service.
    2.Edit the startWebLogic.sh file, and locate the line starting
PRE_CLASSPATH=. Add the full paths to the Xerces and SOAP JAR files.
Optionally,
       add the path to the SOAP installation directory if you plan on
running any of the samples. The line should look something like:


PRE_CLASSPATH={Xerces-install-directory}/xerces.jar;{apache-soap-install-directory}/lib/soap.jar;{apache-soap-install-directory}

    3.Edit the CLASSPATH(s) in the startConsole.sh file to add the
Xerces and SOAP JAR files in the same way.
    4.Edit the weblogic.properties file, and insert the following line:


weblogic.httpd.register.soap/servlet/rpcrouter=org.apache.soap.server.http.RPCRouterServlet

    5.Copy the SOAP directory from the webapps sub-directory of the SOAP
installation into the public_html directory of your server.

  Restart WebLogic Server. You should now be ready to go SOAP-ing!

  To test this setup, point your browser to http://localhost:7001/soap
(assuming you have enabled HTTP on port 7001).



Buck Foreman wrote:

> Has anyone installed on Weblogic 5.1 ?
> If so, can you send me a short blurb on what you did.


Re: Install on weblogic 5.1

Posted by Rich Johns <rj...@vignette.com>.
Buck Foreman wrote:

> Has anyone installed on Weblogic 5.1 ?
> If so, can you send me a short blurb on what you did.

There are a number of ways to succeed in this. After fumbling around
for a while I ended up succeeding with this approach:

SOAP SETUP UNDER WEBLOGIC
---------------------------------------

The SOAP layer is esentially a servlet along with various support
classes packaged in soap.jar. SOAP requires a servlet engine.
This file contains directions for setting up the Weblogic servlet engine.


1) The weblogic.properties file must contain a registration for the SOAP router servlet.
Add the following lines to your weblogic.properties file:

weblogic.httpd.register.rpcrouter=org.apache.soap.server.http.RPCRouterServlet
weblogic.httpd.initArgs.rpcrouter=ServicesStore=DeployedServices.ds

NOTE: the DeployedServices.ds file is a serailziation of the deployed services. This
file might not initially exist, for example, if you have not yet deployed a service.
DeployedServices.ds will get generated by the soapAdmin web app and will thereafter be loaded when
the soapAdmin app is initialized.

2) Add soap.jar and deployed service classes to the servlet class path in the weblogic.properties
file.
The servlet classpath property is called: weblogic.httpd.servlet.classpath

It should look something like this when your done:

weblogic.httpd.servlet.classpath=C:/weblogic/myserver/servletclasses;d:/foo/soap.jar;d:/bar/classes/deployedServices.jar

NOTE: the deployed Services jar is a jar you make that contains your service classes. You don't have

to use a jar. The important thing is that the classpath can find them.

3) The xerces.jar and the soap.jar must be the first two jars on the weblogic class
path. Here are directions for setting up the classpath.  Also, change drive names and
root paths accordingly:

NOTE: It is currently a requirement that the xerces.jar precede any other XML jar file
on the class path.

   a. Do a wlconfig to see what's there.
   b. You will see CLASSPATH Prefix with something like this specified:
                 c:\weblogic\lib\weblogic510sp4boot.jar;d:\cms6\classes\inetdae.jar
    c. prepend the xerces.jar and soap.jar to the prefix like so:

wlconfig -classpath
d:\foo\xerces.jar;d:\foo\soap.jar;c:\weblogic\lib\weblogic510sp4boot.jar;d:\foo\classes\inetdae.jar


4) Restart Weblogic if it was running.



Re: Install on weblogic 5.1

Posted by Bruno Câmara <bf...@bes.pt>.
Here is a description of how to install Apache-SOAP in WebLogic Server
5.1 that I found in this mailing list.

Bruno Câmara

----------------------------------------------------------------------------------



         Apache-SOAP Version 2.0: Installing the Server-Side Under
                                         WebLogic Server v5.1



  These instructions assume that you already have WebLogic Server
installed, and that you already have Xerces and SOAP installed, and that
you just want
  to use SOAP from within WebLogic Server.


  Under Windows



  If you run WebLogic Server from the Start menu then you will need to
make your environment changes using the Control Panel or however else
you may
  edit your CLASSPATH when using WebLogic Server. The following
instructions assume you are running WebLogic Server from the command
line.

    1.In the WebLogic installation directory, edit setEnv.cmd. Somewhere
around line 68 of setEnv.cmd you should find a line that looks something
like
       this:

       set

CLASSPATH=%JDK_CLASSES%%WL_HOME%\license;%WL_HOME%\classes;%WL_HOME%\lib\weblogicaux.jar;%CLIENT_CLASSES%;%SERVER_CLASSES%%RMIFORMS%

  Insert immediately after the "=" (with no spaces) the full path to the
xerces.jar file, followed by a semi-colon, and the full path to the
soap.jar file.
  Additionally, you may want to add the path to the SOAP installation
directory if you plan on running any of the samples. You will also want
to have on the
  classpath any of your code that you want to deploy as a service.

  This should result in a line of the form:

       set

CLASSPATH={Xerces-install-directory}\xerces.jar;{apache-soap-install-directory}\lib\soap.jar;D:\SOAP\apache-soap-2_0;%JDK_CLASSES%%WL_HOME%\license;%WL_HOME%\classes;%WL_HOME%\lib\weblogicaux.jar;%CLIENT_CLASSES%;%SERVER_CLASSES%%RMIFORMS%

    1.Edit the startWebLogic.cmd file, and locate the line starting set
PRE_CLASSPATH. Add the full paths to the Xerces and SOAP JAR files.
       Optionally, add the path to the SOAP installation directory if
you plan on running any of the samples. The line should look something
like:

       set

PRE_CLASSPATH={Xerces-install-directory}\xerces.jar;{apache-soap-install-directory}\lib\soap.jar;{apache-soap-install-directory}

    2.Edit the CLASSPATH(s) in the startConsole.cmd file to add the
Xerces and SOAP JAR files in the same way.
    3.Edit the weblogic.properties file, and insert the following line:


weblogic.httpd.register.soap/servlet/rpcrouter=org.apache.soap.server.http.RPCRouterServlet

    4.Copy the SOAP directory from the webapps sub-directory of the SOAP
installation into the public_html directory of your server (the default
is
       c:\weblogic\myserver\public_html though you may have changed it).

  Restart WebLogic Server. You should now be ready to go SOAP-ing!

  Hint: to test this setup, point your browser to
http://localhost:7001/soap (assuming you have enabled HTTP on port
7001).


  Under UNIX (any flavor)

    1.In the weblogic installation directory, edit setEnv.sh. There are
two places where the CLASSPATH variable is set (depending on whether you
are
       using Java1 or Java 2. Insert at the beginning of the CLASSPATH
the full path to the xerces.jar file, and the full path to the soap.jar
file.
       Additionally, you may want to add the path to the SOAP
installation directory if you plan on running any of the samples. You
will also want to have
       on the classpath any of your code that you want to deploy as a
service.
    2.Edit the startWebLogic.sh file, and locate the line starting
PRE_CLASSPATH=. Add the full paths to the Xerces and SOAP JAR files.
Optionally,
       add the path to the SOAP installation directory if you plan on
running any of the samples. The line should look something like:


PRE_CLASSPATH={Xerces-install-directory}/xerces.jar;{apache-soap-install-directory}/lib/soap.jar;{apache-soap-install-directory}

    3.Edit the CLASSPATH(s) in the startConsole.sh file to add the
Xerces and SOAP JAR files in the same way.
    4.Edit the weblogic.properties file, and insert the following line:


weblogic.httpd.register.soap/servlet/rpcrouter=org.apache.soap.server.http.RPCRouterServlet

    5.Copy the SOAP directory from the webapps sub-directory of the SOAP
installation into the public_html directory of your server.

  Restart WebLogic Server. You should now be ready to go SOAP-ing!

  To test this setup, point your browser to http://localhost:7001/soap
(assuming you have enabled HTTP on port 7001).



Buck Foreman wrote:

> Has anyone installed on Weblogic 5.1 ?
> If so, can you send me a short blurb on what you did.


Re: Install on weblogic 5.1

Posted by Rich Johns <rj...@vignette.com>.
Buck Foreman wrote:

> Has anyone installed on Weblogic 5.1 ?
> If so, can you send me a short blurb on what you did.

There are a number of ways to succeed in this. After fumbling around
for a while I ended up succeeding with this approach:

SOAP SETUP UNDER WEBLOGIC
---------------------------------------

The SOAP layer is esentially a servlet along with various support
classes packaged in soap.jar. SOAP requires a servlet engine.
This file contains directions for setting up the Weblogic servlet engine.


1) The weblogic.properties file must contain a registration for the SOAP router servlet.
Add the following lines to your weblogic.properties file:

weblogic.httpd.register.rpcrouter=org.apache.soap.server.http.RPCRouterServlet
weblogic.httpd.initArgs.rpcrouter=ServicesStore=DeployedServices.ds

NOTE: the DeployedServices.ds file is a serailziation of the deployed services. This
file might not initially exist, for example, if you have not yet deployed a service.
DeployedServices.ds will get generated by the soapAdmin web app and will thereafter be loaded when
the soapAdmin app is initialized.

2) Add soap.jar and deployed service classes to the servlet class path in the weblogic.properties
file.
The servlet classpath property is called: weblogic.httpd.servlet.classpath

It should look something like this when your done:

weblogic.httpd.servlet.classpath=C:/weblogic/myserver/servletclasses;d:/foo/soap.jar;d:/bar/classes/deployedServices.jar

NOTE: the deployed Services jar is a jar you make that contains your service classes. You don't have

to use a jar. The important thing is that the classpath can find them.

3) The xerces.jar and the soap.jar must be the first two jars on the weblogic class
path. Here are directions for setting up the classpath.  Also, change drive names and
root paths accordingly:

NOTE: It is currently a requirement that the xerces.jar precede any other XML jar file
on the class path.

   a. Do a wlconfig to see what's there.
   b. You will see CLASSPATH Prefix with something like this specified:
                 c:\weblogic\lib\weblogic510sp4boot.jar;d:\cms6\classes\inetdae.jar
    c. prepend the xerces.jar and soap.jar to the prefix like so:

wlconfig -classpath
d:\foo\xerces.jar;d:\foo\soap.jar;c:\weblogic\lib\weblogic510sp4boot.jar;d:\foo\classes\inetdae.jar


4) Restart Weblogic if it was running.