WebLogic installation configuration and FAQ ____web

Source: Internet
Author: User
Tags informix microsoft sql server odbc sybase
WebLogic Installation Instructions

 

Chinese version: Http://download2.bea.com/pub/platform/81/platform815_zh_CN_win32.exe
English version: Http://download2.bea.com/pub/platform/81/net_platform815_win32.exe

The installation process is not much said, execute the Platform812_zh_cn_win32.exe file, start the installation. installation directory I choose to D:/bea, select Full installation, other by default value on the line.
  
The following main look at the configuration process, the following steps in accordance with the WebLogic configuration appearance interface, do not grasp the map every step:
1. "Start the-> program->bea WebLogic Platform 8.1-> Configuration Wizard" to start the Configuration Wizard tool.
2. Select New WebLogic configuration and click Next.
3. Select Basic WebLogic Server Domain and click Next.
4. Select Customize and click Next.
5. Change name, I'll replace it with Lidehong, click Next.
6. Select No and click Next.
7. Select No and click Next.
8. Select No and click Next.
9. Enter "User name" and "Password", click "Next", need 8 bits, I will enter Lidehong.
10. Select as the window service and click Next.
11. Default settings, click Next.
12. Bea WebLogic has JDK1.4.1 installed by default and I want to use JDK 1.4.2. Select "Other Java SDK" and click "Browse" to specify the J2SDK 1.4.2 installation directory. Click "Next".
13. Default Value setting, click Create.
14. Select Start Management Server and click Finish.
15. Start the Configuration Wizard tool again.
16. Select Extend existing WebLogic configuration and click Next.
17. Select "/bea/user_projects/domains/mydomain" and click "Next".
18. Tick before "Defaultwebapp" and click "Next".
19. Default settings, click Next.
20. Default settings, click Next.
21. Default settings, click Next.
22. Default settings, click Next.
23. You can change the configuration application location by default to "/bea/user_projects/applications/mydomain" and click "Import". After the import is complete, the system will create a Defaultwebapp directory under the application location, put your JSP here:

===============================================
test.jsp

<%@ page language= "java" contenttype= "text/html;charset=gb2312"%>
<title>test jsp</title>
<body > <font color= #9922FF >
<center>
Now is
<%=new java.util.Date () + "<p>"%>
Now is:
<%=new java.util.Date (). toLocaleString ()%>
</center>
</font>
</body>

===============================================
24. Click Finish to end the configuration.
25. Control Panel-> management Tools-> Service, start the service "Beasvc Mydomain_digiwave".
26. At this point you can open the Http://localhost:7001/console and use the username and password (I'm lidehong here) to login to the admin page.
  
Using the servlet, just define it in the web-inf/web.xml.
<web-app>
<servlet>
<servlet-name>ConfigServlet</servlet-name>
<servlet-class>ConfigServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ConfigServlet</servlet-name>
<url-pattern>/servlet/ConfigServlet</url-pattern>
</servlet-mapping>
</web-app>
WebLogic installation and frequently asked questions--a very good article --------------------------------------------------------------------------------------
In the installation, configuration WEBLOGIC, there are mainly the following aspects of configuration and problems:

One, the JSP setting
1. Settings in the Weblogic.properties file
Set the JSP in the PROPERTIES file:
# Set up WebLogic JSP Properties
weblogic.httpd.register.*.jsp=/
Weblogic.servlet.JSPServlet
weblogic.httpd.initargs.*.jsp=/
pagecheckseconds=1,/
compilecommand=c:/jdk1.3/bin/javac.exe,/
workingdir=c:/weblogic/myserver/classfiles,/
encoding=gb2312 (or GBK),/
Verbose=true

2. View JSP-generated JAVA code
In the configuration above, locate the JAVA file in the appropriate directory under the directory specified by Workingdir.
When testing the JSP, if there is a compilation problem, because the error location is not accurate, so often need to see the corresponding JAVA source files, so as to find the real problem

3. Method of compiling JSP manually
Run setenv.sh;
Java WEBLOGIC.JSPC your.jsp

Second, the setting of the SERVLET

1. How to register the SERVLET.
# used to register the servlet
Weblogic.httpd.register.test_servlet=doctor.servlets.test_servlet
Weblogic.httpd.register.test1_servlet=doctor.servlets.test1_servlet
Weblogic.httpd.register.test2_servlet=doctor.servlets.test2_servlet

2. How to test the servlet directly without registering a servlet
First register in the Weblogic.properties file
Weblogic.httpd.register.servlets=weblogic.servlet.servletservlet

Then in the browser, type:
Http://host:7001/servlets/your_package/your.class

3. What is the difference between running a registered servlet and using Servletservlet to run a servlet?
Using Servletservlet to run a servlet, each running servlet is a new thread, using the
Register to run the SERVLET, it is the same thread each time.

4. How to use the servlet in a shtml file
<servlet Name=your servlet>
<param name= "Param_name" value= "Your Value" >
</servlet>

Third, the database setup
1. How to use database test tools dbping
Java utils.dbping DBTYPE USER Pass [SERVER | Db@server:port]
Valid DBTYPE values:
ORACLE, INFORMIX, INFORMIX4, SYBASE, MSSQLServer, MSSQLSERVER4
[SERVER | Db@server:port] is optional
Example
Java utils.dbping Oracle Oracle oracle123
Java utils.dbping Oracle Oracle oracle123 Ronghai

Oracle examples
$ java utils.t3dbping//command
t3://bigbox:7001//WebLogic URL
Scott Tiger//user password
DEMO20//DB
Weblogic.jdbc.oci.Driver//Driver class
Jdbc:weblogic:oracle//Driver URL

Oracle with ODBC Example
$ java utils.t3dbping//command
t3://bigbox:7001//WebLogic URL
Scott Tiger//user password
""//DB
Sun.jdbc.odbc.JdbcOdbcDriver//Driver class
jdbc:odbc:VISIORA73//Driver URL

DB2 with as/400 type 4 JDBC driver example
$ java utils.t3dbping//command
t3://as400box:7001//WebLogic URL
Scott Tiger//user password
DEMO//Database
Com.ibm.as400.access.AS400JDBCDriver//Driver class
Jdbc:as400://as400box//Driver URL

WebLogic jdriver for Microsoft SQL Server (Type 4 JDBC driver) example
$ java utils.t3dbping//command
t3://localhost:7001//WebLogic URL
SA//user name
ABCD//password
Database//Database@hostname:port
(optional if specified as part of the URL)
Weblogic.jdbc.mssqlserver4.Driver//Driver class
jdbc:weblogic:mssqlserver4:pubs@localhost:1433
Driver Url:database@hostname:port
(optional if used in the database parameter

2. Configuration of the ORACLE connection pool
There are 2 ways to use ORACLE databases, a driver that uses type2; A driver that uses type4.

weblogic.jdbc.connectionpool.oraclepool=/
url=jdbc:weblogic:oracle,/
driver=weblogic.jdbc.oci.driver,/
logindelaysecs=1,/
initialcapacity=4,/
maxcapacity=10,/
capacityincrement=2,/
allowshrinking=true,/
shrinkperiodmins=15,/
refreshminutes=10,/
testtable=dual,/
Props=user=hysh;password=hysh;server=ora8;weblogic.codeset=8859_1

Note If you use type2 driver, you should set the LD_LIBRARY_PATH environment variable before starting WEBLOGIC, and if you use Chinese in ORACLE, you should also
Set up Lang=zh and Nls_lang??? =????? 。

3. Configuration of INFORMIX Connection pool
First get the DRIVER of INFORMIX;
Install the DRIVER;
Install license;
To set the Weblogic.properties file:
weblogic.jdbc.connectionpool.infxpool=/
url=jdbc:weblogic:informix4,/
driver=weblogic.jdbc.informix4.driver,/
logindelaysecs=1,/
initialcapacity=4,/
maxcapacity=10,/
capacityincrement=2,/
allowshrinking=true,/
shrinkperiodmins=15,/
refreshtestminutes=10,/
testtable=dual,/
props=user=myusername;password=secret;/
Server=mydatabase@mydbserver:myportno
Weblogic.allow.reserve.weblogic.jdbc.connectionpool.infxpool=everyone

4. Configuration of the Ms-sql-server connection pool
First, we get the DRIVER of Ms-sql;
Install the DRIVER;
Install license;
To set the Weblogic.properties file:

weblogic.jdbc.connectionpool.sqlpool=/
url=jdbc:weblogic:mssqlserver4:myserver:myport,/
driver=weblogic.jdbc.mssqlserver4.driver,/
logindelaysecs=1,/
initialcapacity=4,/
maxcapacity=10,/
capacityincrement=2,/
allowshrinking=true,/
shrinkperiodmins=15,/
refreshtestminutes=10,/
testtable=dual,/
props=user=myusername;password=secret;server=myserver;/

Weblogic.allow.reserve.weblogic.jdbc.connectionpool.sqlpool=everyone

5. Configuration of SYBASE Connection pool
weblogic.jdbc.connectionpool.jconnect=/
url=jdbc:sybase:tds:hostname:portnumber,/
driver=com.sybase.jdbc.sybdriver,/
initialcapacity=1,/
maxcapacity=1,/
props=user=sa;password=wessie1,/
Allow=guest;joe;jill
Weblogic.allow.reserve.weblogic.jdbc.connectionpool.jconnect=everyone

Four, with NETSCAPE WWW SERVER with the setup
1. Put the plugin provided by WEBLOGIC in the appropriate directory of NETSCAPE WWW SERVER
2. Configure NETSCAPE's obj.conf file (netscape_home/https-instance_name/config/obj.conf)

At the beginning of the obj.conf file, add the following statement for the Mount plugin when NETSCAPE starts
Init fn= "Load-modules" funcs= "Wl-proxy,wl-init"/
Shlib=/usr/local/netscape/plugins/shared_library
Init fn= "Wl-init"

Navigating a file that is processed by a plug-in through a path
<object name= "WebLogic" ppath= "*/weblogic/*" >
Service Fn=wl-proxy weblogichost=myserver.com/
weblogicport=7001 pathtrim= "/weblogic"
</Object>

<object name= "si" ppath= "*/servletimages/*" >
Service Fn=wl-proxy weblogichost=otherserver.com/
weblogicport=7008
</Object>

Navigating files that are processed by plug-ins through the suffix of the file
<object name=default>
Nametrans Fn=pfx2dir from=/ns-icons/
Dir= "C:/netscape/suitespot/ns-icons"
Nametrans Fn=pfx2dir from=/mc-icons/
Dir= "C:/netscape/suitespot/ns-icons"
Nametrans fn= "Pfx2dir" from= "/help" dir=/
"C:/netscape/suitespot/manual/https/ug"
Nametrans fn=document-root root= "C:/netscape/suitespot/docs"

Service method= "(get| head| Post| Put) "Type=text/jsp fn=wl-proxy/
Weblogichost=localhost weblogicport=7001 Pathprepend=/jspfiles
^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ The ^^ the ^^ ^^ ^^ ^^ to ^^ add
Pathcheck Fn=nt-uri-clean
Pathcheck fn= "Check-acl" acl= "Default"
Pathcheck Fn=find-pathinfo
Pathcheck fn=find-index index-names= "index.html,home.html"
ObjectType fn=type-by-extension
ObjectType Fn=force-type Type=text/plain
Service method= (get| Head) Type=magnus-internal/imagemap Fn=imagemap
Service method= (get| Head)/
Type=magnus-internal/directory Fn=index-common
Service method= (get| Head) type=*~magnus-internal/* Fn=send-file
Addlog fn=flex-log name= "Access"
</Object>

3. modifying mime.conf files
type=text/jsp exts=jsp

4. Parameters for WEBLOGIC Plug-ins
Weblogichost=domain Name
Weblogicport=port (formerly Tengahport)
Weblogiccluster=cluster List
Example:weblogiccluster= "myweblogic.com:7001,yourweblogic.com:6999,theirweblogic.com:6001"
Pathtrim=string
Pathprepend=string
Connecttimeoutsecs=seconds
Connectretrysecs=seconds
Statpath=boolean
Errorpage=url
Cookiename=cname
Note In the above parameters, if the Weblogiccluster parameter is set, the Weblogichost and Weblogicport parameters do not work.

For example:
<object name= "WebLogic" ppath= "*/weblogic/*" >
Service Fn=wl-proxy weblogichost=myweblogic.server.com/
weblogicport=7001/
Pathtrim= "/weblogic"
</Object>

V. Set up with the APACHE WWW SERVER
Using the APACHE WWW SERVER with WEBLOGIC requires a service PACK because the original version
The combination of APACHE is not supported.
If you use Apache WWW server, the Apache WWW server needs to support Plug-ins, and if it is not supported,
Need to compile via the source code of APACHE WWW SERVER, the concrete compilation method See document.

The Apache WWW server currently in use is 1.3.12

Installation directory:/usrl/local/apache
Main configuration file:/usrl/local/apache/conf/httpd.conf
Start and Stop methods:
Start: Cd/usrl/local/apache/bin
./apachectl Start
Stop: Cd/usrl/local/apache/bin
./apachectl Stop

Httpd.conf the configuration file is modified in the location:

The following instruction is used to set the name of the Apache WWW server:
ServerName DBServer
The following instructions are used to set the page root of the Apache WWW server:
DocumentRoot "/weblogic.510/myserver/public_html/haoyisheng"
The following instructions are used to set the default access files for the Apache WWW server:
<ifmodule mod_dir.c>
DirectoryIndex index.jsp
</IfModule>

The following instructions are used to set up the Apache WWW server connection to WebLogic server:
#following is add by tang
############################################
# mount the plugin module provided by WebLogic
LoadModule Weblogic_module libexec/mod_wl.so

##### Weblogic Specific Declarations ########
# definition contains/weblogic/for URL connections to access??? Access to WebLogic Processing
<Location/weblogic>
SetHandler Weblogic-handler
Pathtrim WebLogic
# or you can set Pathtrim to/weblogic
ErrorPage http://localhost
</Location>

<Location/servletimages>
SetHandler Weblogic-handler
Pathtrim something
ErrorPage http://myerrorpage1.mydomain.com
</Location>

# define access to JSP for WebLogic processing
<files *.jsp>
SetHandler Weblogic-handler
</Files>

# defines access to shtml for WebLogic processing
<files *.shtml>
SetHandler Weblogic-handler
</Files>

# define access to servlet for WebLogic processing
<files *_servlet>
SetHandler Weblogic-handler
</Files>

################## Parameters ####################
#<ifmodule mod/weblogic.c>
#Include/usrl/local/apache/conf/weblogic.conf
#</ifmodule>

############# end of WebLogic specific declarations #######

Addmodule MOD_WEBLOGIC.C

# define IP address and port information for the WebLogic server
Weblogichost 192.168.168.8
Weblogicport 7001
Pathtrim WebLogic

To compile and install the Apache WWW server method:
* Run in Apache source directory:
./configure--prefix=<destination directory>--enable-module=so--enable-rule=shared_core
Make
Make install

* Under the/weblogic.51/lib/solaris directory, execute the following command
Apache_home/bin/apxs-i-a-n WebLogic mod_wl.so
* Configure httpd.conf files

Vi. setup with MS WWW SERVER
For IIS, only the suffix of the file can be navigated, and the plug-in name is Iisproxy.dll

1. First modify the configuration of IIS
Start the service manager for IIS;
Select your site in the left panel;
Click "Play" in the tool bar;
Select the &q in the Home directory page in the pop-up window

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.