JS Overview: JSWDK, Tomcat due to the running of less resources, as well as its own ease of use, is being more and more JSP learners of all ages.
But in the entire JSP world they are not a single show, support JSP Server software has a lot of, they are mainly used in the business sector, the most important is Allaire Jrun, IBM WebSphere and Bea Weblogic.
First, Allaire Jrun
The Allaire Company's JRun is a Java engine with the widest applicability for developing and implementing server-side Java applications written by Java Servlets (JSP) and JavaServer pages.
JRun is the first commercial product to fully support the JSP 1.0 specification, with a total of 3 versions, with more than 80,000 developers worldwide using JRun to add server-side Java functionality to their existing Web servers. The Web server includes Microsoft IIS, Netscape Enterprise Server,apache, and so on. JSP is a powerful server-side technology that is a set of rapid application development systems for creating complex web applications.
Detailed Product Information
JRun is an advanced engine for developing implementation of server-side Java. We can use JRun to run the Java servlets. There are two ways to run Java Servlets, either by expanding your own Web server or by using a built-in JRun Web server. By using Servlets as an extensible, fully defined Java part model throughout the environment, we can easily and quickly develop, implement complex applications, and be more economical to maintain.
JRun allows you to start developing and testing Java applications. It can accept up to 5 concurrent connections (Standard Edition) and:
1. Include all Java Servlet APIs
2. Support JavaServer Pages (JSP)
3. Support for all major Web servers and computer platforms
4. JRun Pro can withstand heavy traffic loads in a production environment to help you implement applications, services, or Web sites (including intranets). JRun Pro supports unlimited concurrent connections
5. Run multiple Java virtual machines, including multiple concurrent Java virtual machines (JVMS).
6. Provides a remote management applet and a remotely distributed management applet.
7. JRun Pro Unlimited includes all the features of JRun Pro, and can run an unlimited number of concurrent JVMs.
JRun Function Introduction
With Java technology, you can add server-side Java functionality on top of an existing Web server, and the Web servers supported by JRun include Microsoft IIS and Personal Web server-based. Netscape's Enterprise or Fasttrack,apache, O ' Reilly's website and StarNine Company's WebSTAR.
JRun relies on its built-in JRun Web server to run independently. With server-side Java, users can develop complex business application systems. Most importantly, because of Servlets's platform independence and simpler development, faster implementation, and more cost of maintenance, it makes it an excellent alternative to CGI (Common Gateway Interface) or Perl scripts.
In addition, JRun 2.3 can fully implement the latest Java Servlet APIs. At the same time, JRun can take advantage of many of the advanced features in the Java WEB server. Some important functions of JRun2.3 are listed as follows:
1. Full support for Java Servlet API version2.1
2. Full support JavaServer Pages (JSP) 1.0 Draft spec
3. Dynamic Taglets
4. Provide ready-made templates
5. Page edits
6. Dynamic-servlet overload
7. Servlet-initialization Property
8. Servlet Series and filtration
9. Multiple hosts (virtual host) support
10. Tag support
11. Task tracking
12. Setup Wizard
13. Complex swing-based management applications
14. 100% Pure Java and complete cross-platform
15. Can run on any Java Virtual Machine
16. Run up to 5 Java Virtual machine (JRun Pro)
17. can run on unlimited number of Java Virtual machine (JRun Pro Unlimited)
18. Remote administration (JRun Pro)
Technical advantages
The Java Servlets is a standalone Cross-platform server-side program written as part of the Java Servlet Api--java platform. The Java Servlets has the power of "write once, run everywhere," with network delivery security and a good scalability for server-side applications. Servlets can replace the traditional server-side applications and extenders written by perl,c/c++ or other languages. Using the servlet as an extensible, well-defined cross-platform environment, users can easily develop, quickly implement server-side complex applications, and save on maintenance costs. (You can deploy servlets on a cheap Windows NT machine)
With existing sophisticated server technologies, such as the combination of Servlets in Web servers, when writing complex applications, you can avoid the limitations and complexities of platforms in specific server configurations. With Servlets, developers no longer have to worry about how the server works internally. The internal classes of the Servlets API can control all resources such as form data, server header,cookies, and so on.
The biggest difference between existing server-side applications and Servlets is performance. Running a separate jvm,servlet on the server is loaded as soon as it is called. It will not be loaded again until the servlets changes. A modified servlet can be loaded automatically without restarting the server or application. Because the servlet resides in memory forever, it loads very quickly. Static or persistent information can be shared across multiple active servlet, and allows information to be shared among multiple users. Servelet are also modular, they can be individually completed a specific task, but also can be combined to work together. Servlets can talk to each other.
Web Server supported by JRun:
1. Microsoft ' s Internet Information Server (IIS) and Personal Web Server (PWS)
2. Netscape ' s Enterprise and FastTrack Servers
3. Apache
4. ' Reilly ' s WebSite Pro
5. StarNine ' s WebSTAR
6. Novell Netware 5 (Novonyx)
II. Websphere
WebSphere is the Internet infrastructure software. It can help enterprises realize the development, deployment and integration of the next generation e-business applications, such as Business-to-business e-business applications. With enterprise-class transactions, WebSphere can support all business applications from a single Web release. WebSphere changes the way the relationship is managed by the enterprise itself with customers, partners, and employees of the enterprise.
Answers to common questions about Websphere
Q. How do I get a Web application to pick out new class files that are not part of a servlet or EJB?
A. When configuring a Web application, specify the application classpath that contains the servlet and its non-servlet Java components. The class loader monitors the application classpath and reloads all Java components in the application Classpath once it detects that the loaded servlet has been updated. In the WebSphere 3 management console, you can use the topology (topology) tab to access your Web application, for example, Default_app. In the Advanced (Advanced) tab, specify the Classpath (the class path that can be reloaded). These classes should reside physically in the path specified here.
Q: When I want to call a class in the jar file, why ClassNotFound exception errors occur?
A: When you want to call a class that is located in a jar file, be sure to include the full path of the jar file in the classpath.
Q: What is the concept of models and clones in WebSphere?
A: You can create an application template called a model when you want to create almost identical copies of the applications deployed in the WebSphere application server. If you deploy these application replicas, these replicas are called clones. This technique is used for server workload management.
Q: Can I clear the log files on my websphere server without stopping the application server?
A: No, you cannot delete or edit log files while the application server is running. If you do so, the application server will stop writing to the log. The AIX and Solaris platforms allow you to edit or delete log files without any error messages, but the application server will stop using log files. The Windows NT platform will give you a message that this file is being used by another process. The recommended way to clear the log is to stop the application server and then delete or rename or move the log and restart the application server. If the log file does not exist when the application server starts, it will create these log files.
Q: Where should I specify a class that is loaded only once when the server starts?
A. When you install this product, the application server classpath is automatically set. The default settings for the CLASSPATH include all application server APIs (jar files in the As_install_root\lib directory). When the application server is started, the System class loader automatically loads the classes in the Application server class path. These classes cannot be reloaded. You can also pass the CLASSPATH to the application server's JVM by specifying the classpath in the command-line arguments on the General page of the application server.
Q: My WebSphere Application Server failed to start because my DB2 user ID and password are different than those specified during WebSphere installation. How can I change the user's identity and password without reinstalling WebSphere?
A: You can change the user identity and password of a database in a WebSphere application server by changing the following lines in the Admin.config file:
Alternatively, you can create another user in the database with the same user ID and password as in WebSphere.
Q: How do I protect an HTML page (assuming security is configured)?
A: Please perform the following steps:
1. Create an enterprise application.
2. Assign permissions to enterprise applications, which have different access rights for each group.
3. Creates a resource, which is the URI of the HTML file.
4. Add resources to the enterprise application.
5. Specify a security mapping for this resource.
Q: Why is there an error when I want to access the JSP I just created?
A: Make sure that you have correctly specified the Web application path (what you typed in the browser) and the file system path (where the Web application looks for it). The file system path is the classpath of the document root and the Web application (under Advanced). The document root controls where HTML and JSP files can be found. The Classpath controls the servlet (if the servlet can be loaded by class name).
Q: Does WebSphere Connection Manager support database stored procedures?
A: Support, WebSphere application Server supports the JDBC model. This model provides the ability to optimize database access. The use of database stored procedures is one of the functions. WebSphere Application Server extends the functionality of JDBC in ConnectionManager by providing Com.ibm.db.CallableStatement class access to stored procedures.
Q: What is the name of the database table that WebSphere application server uses to store user profile information?
A: The name of this table is user_profile_table, located in the was database.
Q: Why do I get an error when I use the WebSphere Connect Manager (data source) to access the database and execute a servlet sql1046n: Invalid authorization ID?
A: There are several reasons why this error can occur:
1. The user identity is not authorized to connect to the database.
2. Connection The specified user identity is not authorized to perform the specified function.
3. The "IBM WS adminserver" service "Startup-log on as" parameter is defined as "System account" or "the" the user does not have the appropriate permissions.
4. This error results when the servlet or EJB implements the Getconnection method without passing the user identity and password. Because the Getconnection method will use the user identity and password defined in the environment that implements the servlet or EJB routines.
To resolve this error:
1. Specify the authorized user ID and password to connect to the database.
2. Ensure or give the user identity permission to perform specific functions.
3. If you are passing the user's identity and password to the Getconnection method, make sure that you are passing the correct value, define the variables in the class, pass the variables through the ResourceBundle property file, and so on.
4. If you are not passing the user identity and password to the Getconnection method, make sure that the IBM WS adminserver service "Startup-log on as" parameter specifies an authorized user.
Q: How do I control the ports that WebSphere uses?
A: The WebSphere Management Server uses two ports: a bootstrapper port and an LSD port. By default, the bootstrapper port is 900,LSD Port 9000. If you do not want to run WebSphere as root on Unix, you must change the bootstrapper port. If you encounter a port that is in conflict with Port 9000, you must change the LSD port. Edit the Admin.config file and add the following properties to control each port: com.ibm.ejs.sm.adminserver.lsdport=9005 (the default value is 9000) com.ibm.ejs.sm.adminserver.bootstrapport=9002 (default value is 900)
Q. How do I avoid invalidating a session when using the WebSphere administration console?
A. In the Session manager (in the servlet engine), click the time interval (intervals) tab. Enter the value "-1" in the invalid Time field. This ensures that the session is not invalidated.
Q: How does WebSphere Application server communicate with a Web server?
A: WebSphere application Server communicates with the Web server using OSE (Open Servlet Engine).
Q: How do I change the classpath of WebSphere?
A: You can add to its classpath by using the property sheet of the WebSphere application server. To replace the classpath, use the Environment (environment) field on the Quot General tab to start the Property environment editor. In this editor, change this type of path or other environment variable. To add a classpath, enter the classpath in the command-line arguments (command line arguments) field.
Q: Why did you get the error when you started WebSphere: Port 9000 is in use?
A: Port 9000 is the default port that manages the server location service waiting for the process. Many system resources, including the Aixx-windows manager, also use port 9000. If you see the error message "Port 9000 is being used-select another port" when you execute the./startupserver.sh command on AIX, the Management Server process will not start because Port 9000 is being used by the Aix x-windows Manager. By specifying the-lsdport option on the Management Server command line, change the port on which the location service waits for the process, or in the Admin.config file (located in directory \ Bin on Windows NT; on UNIX/ BIN), set the Com.ibm.ejs.sm.adminServer.lsdPort property.
Q: I want to store the was Management Information Center library in an Oracle database on another machine. What database software do I need to install in the machine where WebSphere Application server will be installed?
A: You need to install the Oracle client on the machine where you will install WebSphere Application Server, and configure the Oracle client to communicate with the remote Oracle server. During the WebSphere installation process, you specify the path to the Oracle Client home directory (for example, x:\Oracle\Ora8i) on the local machine.
Q: How do I resolve noclassdeffound exception errors when deploying an EJB into a WebSphere container?
A: The Noclassdeffound exception error indicates that the deployment tool could not find one or more support classes deployed or configured to EJB in WebSphere. To resolve this exception error, add or attach the full jar file path with the jar name to the application server class path with the Application Server command line-classpath parameter.
Q. If you have modified a servlet, do you need to restart WebSphere and Web servers?
A: no need. As soon as you compile it, WebSphere (version 2.02 or later) will be able to automatically load the new class file.
Frequently asked questions about WebSphere Studio
Q: Can I use the WebSphere Studio JavaBean Wizard to create a servlet, output JSP, and input HTML from an EJB?
A: You should create an access bean for EJBS in the visualage for Java environment. When you create an access bean, select a Java bean wrapper. You can now use the access Bean in the WebSphere Studio JavaBean Wizard to create a servlet, output JSP, and input HTML. If you do not use the VisualAge for Java environment in your EJB development, you must write a client JavaBean that accesses the EJB and use that JavaBean in WebSphere Studio.
Q: I have a. jsp file that can run in a WebSphere test environment, why can't it run in WebSphere application server?
A: The reason is that the WebSphere application server is configured to run with JSP 1.0, and WebSphere Studio is configured to generate the 0.91 version of the JSP. To resolve this issue, change the JSP version that is generated in WebSphere Studio: Right-click the item that you are working in WebSphere Studio under Properties, select the Advanced label. In the list of attributes, select the JSP and select version 1.0.
Q: How do I create a custom release phase in WebSphere Studio?
A: Highlight "projects" in the toolbar and select "Customize Publishing Stage" from the Drop-down menu. Enter the stage name in this window and select "Add".
Q: When I drag a bean (class or jar) file into the WebSphere Studio page designer, a Jsp:usebean dialog box should pop up. But each time a small Application dialog box is displayed, how do i show the Jsp:usebean dialog box?
A: Select the tool in the WebSphere Studio Page Designer toolbar and select an option. In the Options dialog window, change the HTML element generated for a dropped Java file from a small application to Jsp:usebean.
Q: In WebSphere Studio, how do I switch between testing and the product server?
A. On the WebSphere Studio toolbar, select the project, and then highlight the release phase. You can select a test server or a product server.
Q: How do I define a publishing target in WebSphere Studio?
A: In the release window of WebSphere Studio, highlight the server where you want to define the publishing destination. Right-click the target and select Properties. In the Properties window, click Define Publishing targets. In the Publish target window, you can add, edit, or delete publishing destinations.
Q: How do I start a new (empty) HTML page in WebSphere Studio?
A: To create a new (empty) HTML page in WebSphere Studio, click Select, Insert (inserts), file. When the Insert File dialog box appears, select Empty HTML. Then select OK (OK) under the filename. You can also rename the HTML files that you have created later.
Q: In WebSphere Studio, how do I turn off the HTML syntax error auto-correction feature?
A. On the WebSphere Page Designer toolbar, select the tool, and then select an option. On the General tab of the Options window, remove the "correct HTML syntax errors automatically" check state.
Q: How can I make a file exchange between VisualAge for Java 3.0 and WebSphere Studio 3.0?
A: You must first make sure that both Vaj and WebSphere Studio are running. Then do the following: In the visualage for Java environment, locate the Workbench menu bar and click: Windows (Options). In the Options dialog box, expand Visual Composition and select Remote access to tool API. In this procedure, select the Push button to start the remote access to tool API. Switch to WebSphere Studio Workbench, select a project or folder that will mount the files that you copied from the VisualAge for Java environment. Right-click the context menu for the item or folder, and then select: Insert, file. Select tab, from the external data source (from external source). In the provider area, select VisualAge for Java. To select the Java file to call into, press the browse button.
Q: What kind of team development support can be used in WebSphere Studio?
A: When a development team is developing a Web project, each team member can install a set of WebSphere Studio on his or her machine. The team is able to use shared libraries on the Web to maintain the project components. The workbench of WebSphere Studio maintains the checkout/check-in status of each component and displays the status of each component. Teams can also use common test Web sites and products to publish Web sites and maintain them in the publishing window.
Q: When to be. Java file from WebSphere Studio to VisualAge, why error: Send to VisualAge for Java process problems, call in error (compile error detection)?
A: The problem is due to the shutdown version of the project, to create the project's Open edition, do the following: Select an item in VisualAge. Right-click and select Quot;manage in the Drop-down list. Select "Create Open Edition".
Q: Where is the port number of the VisualAge for Java remote access to tool API?
Answer: The port number is stored in the Toolport.properties file in the \ivjtools\tooldata\com-ibm-ivj-toolserver\ directory. The tool server updates the file every time the server starts or shuts down.
Q: What type of operation can transfer files between WebSphere Studio 3.0 and VisualAge for Java 3.0 workspaces?
A: The following actions are available for file transfer between WebSphere Studio 3.0 and VisualAge for Java 3.0 workspaces:
Add from Vaj (added from Vaj)
Update from Vaj (updated from Vaj)
Send to Vaj (Sent to Vaj)
Editing in Vaj (edited in Vaj)
Consuming beans created in Vaj (using vaj created in beans)
Q: How does WebSphere studio determine the location of the visualage for Java installation?
A: After WebSphere studio retrieves the CurrentVersion subkey from the system registry after VisualAge for Java installation, its version number is used to find the Vaj installation directory. The system registry subkey "Directory" (in HKEY_LOCAL_MACHINE, software, IBM, VisualAge for Java, 3.0, install) contains VAJ installation directory information.
Q: What functionality does the VisualAge for Java remote access to tool API support for WebSphere Studio?
A: If WebSphere Studio 3.0 detects that the VisualAge for Java Software PRODUCT is installed, it installs some servlet to the server. WebSphere Studio uses HTTP to connect these servlet to control file transfer between WebSphere Studio and VisualAge for Java software products.
Q: We have WebSphere Studio 3.0 installed on two different machines in the local area network, why can't I open a project file created from another machine on a single machine? The information shows that some files are missing, invalid, or corrupted.
A: If you want to access an item on a machine in a local area network, do not select the mapped drive or absolute path (such as x:\WebSphere\Studio\projects\projectname\) where the project is located, and select the network path through the network neighbor (for example: \ machinename\websphere\studio\projects\projectname\). This allows you to open the project file (. wao) from another machine on the local area network.
Q: In WebSphere Studio 3.0, can I open any of the project's files in a disorderly state?
A: Yes, the file will be opened as read-only.
Q: In WebSphere Studio, how do I set all project files to be a published file?
A: Highlight the project folder, select Edit, and set it to be published.
Q: Using the WebSphere Studio SQL Wizard to create an INSERT statement in the Insert tab, type a parameter name in the Value column, and why do I not display the parameter request when I run SQL?
A: You need to use the parameter button to play the quot;create a new parameter panel. Parameter names must be specified to be displayed correctly in SQL statements.
Q: How do I combine the fields generated by the wizard in the JSP with the JSP provided by the content provider?
A: JavaServer pages (JSP) can be edited in the WebSphere Studio page designer. In the page designer, you can select between two JSPs to copy and paste fields. can be done in normal mode or in HTML source code mode.
Frequently asked questions about the WebSphere Performance pack
Q: What is IBM WebSphere Performance Pack cache Manager?
A: The IBM WebSphere Performance Pack Cache Manager is a cost-effective proxy server for small to medium devices. It uses the IBM WEB Traffic Express technology to provide transparent proxies for HTTP requests and can be applied in Windows NT and Linux environments.
Q: When running the Enetwork Scheduler to achieve load balancing, what happens if the machine running the program fails?
A: If you are doing load balancing and the machine running the Enetwork scheduler fails, your Web site may not be accessible. The IBM Enetwork Scheduler has high availability features to configure a backup scheduler for another machine to prevent inaccessible situations caused by a failure of the machine running the primary scheduler.
Third, BEA WebLogic
To learn a good system first to understand its structure, now we briefly introduce some of the structure and characteristics of WebLogic.
WebLogic Most of the configuration is done in Weblogic.properties, as long as the careful study of this document can be clearly known about the weblogic of some of the structure and characteristics, the following weblogic.properties file in some of the configuration items are described:
weblogic.httpd.documentroot=public_html/
This is the root directory of the WebLogic Web server, which is the directory/weblogic/myserver/public_html/
Weblogic.password.system=sdfjkdshfds
This is the set administrator password.
weblogic.system.listenport=7001
This is the Web server port where WebLogic is set up.
Weblogic.httpd.servlet.classpath=/weblogic/myserver/servletclasses
Sets the path that the servlet holds.
About Servlet
For security purposes, the WebLogic that runs under WebLogic must be registered in Weblogic.properties to run, for example, the servlet Http://localhost:7001/helloWorld mentioned above, Its entry in the Weblogic.properties is:
Weblogic.httpd.register.helloworld=examples.servlets.helloworldservlet
In fact, the actual path to this servlet is
/weblogic/myserver/servletclasses/examples/servlets/helloworldservlet.class
It should not be difficult to find out the rules for registering the servlet by comparing the entries in weblogic.properties and the paths of helloworldservlet.class files.
There are several servlet registration entries in the Weblogic.properties:
This is the servlet used by the administrator to manage WebLogic, accessing Http://localhost:7001/AdminMain through the URL, entering system in the Pop-up authentication dialog box, and Weblogic.password.system= set the password, you can enter the WebLogic Web management interface for management.
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.