Installation and configuration of JBOSS in Windows,
Install and configure JBOSS to build a local project environment
I. JDK Installation
First install JDK and configure the environment variable (PATH, CLASSPATH, JAVA_HOME ).
For details, refer to JDK installation and environment variable configuration in Windows.
II. Introduction to Jboss
JBoss 7 is configured as a windows Startup service,
Configure the Jboss7 server as two windows startup service files. The deployment steps are as follows:
1. Check whether the java_home and jboss_home environment variables are configured first, if not configured on the first configuration, such as my JBOSS_HOME = D: \ jboss-as-7.1.1.Final.
2. Copy the jbosssvc.exe and service. bat files in the attachment to
Configure the JBoss data source, why configure the data source in JBoss? This is actually a manifestation of object-oriented thinking: managing access to a database through a container. At first we accessed the database through JDBC, and what connection and command were created by ourselves. But every time you open the database is consumed resources, so there is a database connection pool, in advance to est
Generally, Java EE applicationsProgramIn the development process, everyone is used to usingTomcat serves as the debugging server, corresponding toDebugging tomcat in IDE is also very easy. You can download the tomcateclipse plug-in to easily debug applications in IDE (seeCom. sysdeo. Eclipse. Tomcat ).
However, if the application is enterprise-level and requires EJB container deployment, Tomcat will be powerless. At this time, we can select JBoss as
A few days ago the company a Project Server broken, changed a backup server replacement, but did not run for a while on the downtime, has been reported java.lang.OutOfMemoryError .... See here, you know is memory overflow, but JBoss's memory configuration has reached 1024M, and the JBoss memory monitoring results Look, is not high, how can panic, very strange. A long time or no result. Depressed ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
The Java EE is very good. As a development environment, if using the classic configuration: JBuilder Weblogic Oracle, naturally handy, but the price is amazing. This configuration is mainly for large or super large applications, hardware requirements are very high for the domestic small and medium-sized applications of the current situation, not recommended.
Although the domestic developers have long been accustomed to, but I think it is still in the bud, should join the ranks of opensource
the allocated stack (such as the 100 string objects that are assigned to each of these objects).
Second, if the win series of computers to view the memory of the computer, directly locate the JDK installation path Double-click the Visual monitoring tool mentioned above
Third, if you want to monitor remote Java memory, you need to do some of the appropriate configuration to run the environmentServer: Redhat6.0 + JDK 1.6+ Jboss 5.1IP Address: 192.168
after installing JBoss and launching JBoss, type http://localhost:8080/jmx-console in the address bar of the browser window to browse some information about JBoss deployment management. By default, not typing any user name and password to enter this page, convenient is convenient, but the real use is still a bit of a security risk, because no matter anyone knows
joss7.1.1 installation succeeded, path is: D:\profession\jboss-as-7.1.1.FinalMysql-connector-java-5.1.18-bin.jar (MySQL 5.1 driver)Ojdbc6.jar (Oracle 11g Drive)I. Configuring a MySQL data source1. Under D:\profession\jboss-as-7.1.1.Final\modules\com path, create a new folder Mysqldatabase\mysql\main, and will Mysql-connector-java-5.1.18-bin.jarPut it inside, and create a new XML file Module.xml.Module.xml f
Question:
I think to try to speed up my web app by resizing the size of transferred data. For example, in nginx there is a special module. How to enable compression for JBoss server?
Answer:JBoss as version 6 or lower
To enable gzip compression, settings need to be added to your existing HTTP connector.Located/server/default/deploy/jbossweb.sar/server.xml:
JBoss as 7.0.x
JBoss Seam is a powerful application framework used to build next-generation Web 2.0 applications. It unifies and integrates popular service-oriented (SOA) technologies, such as Ajax, JSF, ejb3, java portlets, BPM, and workflow.
Seam is designed from the bottom up to eliminate the complexity of the architecture and API. It allows developers to assemble complex web applications by using annotation pojo, componentized uiwidgets, and a small amount of XM
Modify the Tomcat port to open the server under Tomcat directory --> Tomcat 5.5 --> conf -->. XML file. Modify the port. export
2. Modify the jboss4.0.2 port because the JBoss port is 8080, which is in conflict with Oracle and tomcat. Therefore, I decided to modify its port number. Open the JBoss directory --> jboss-4.0.2 --> server --> default --> deploy --> se
The boss is running normally, but cannot enter the ConsoleEnter http: // localhost: 9990/console. The following page is displayed:The Web Console cocould not be loaded. Please refresh this page to start over.Have you ever encountered this problem and can you help solve it.
-------- Solution --------
How many JBoss do you use?
It seems that this console project does not exist.
Or yes
JMX-Console
Http: // localhost: 9990/JMX-Console
JBoss Memory Overflow Processinga few days ago the company a Project Server broken, changed a backup server to replace, but did not run for a while down, has been reported java.lang.OutOfMemoryError .... See here, it is memory overflow, but JBoss memory configuration has reached 1024M, and the results of the monitoring of the JBoss memory is not high, how it will
Start and close the JBoss as 7.1.1, scripts such as the following djboss.sh:#!/bin/sh#jboss_homejboss_home=/opt/jbosscase "Instart" echo "Starting JBoss AS7 ..." sudo-u jboss sh ${jboss_home}/ Bin/standalone.sh ;; Stop) echo "Stopping JBoss AS7 ..." sudo-u jboss sh ${jboss_h
JBoss server startup method:
Assume that the installation directory of JBoss is $ jboss_home, And the start methods of debug mode in Windows and Linux are as follows:Windows:Find the JBoss Startup File run. BAT in windows and search for 8787. You can find the following sentence:
Rem set java_opts =-xdebug-xrunjdwp: Transport = dt_socket, address = 8787, Server
Data sources can reduce the number of database connection objects created to improve system performance.
There are various data source configuration templates under c: \ jboss-5.0.0.GA \ docs \ examples \ JCA.
The file name for the data source contains-ds, such as the mysql-ds.xml.
Take MYSQL as an example:1. modify data source parameters.The number of available connections to the database can be configured in the mysql-ds.xml:
2. Data Source depl
. Create ssl.conf as following.[[emailprotected] jbossuser]# vi/etc/httpd/conf.d/ssl.confthis is the Apache server configuration file providing S SL support.# It contains the configuration directives to instruct, the server how to# serve pages through an HTTPS connection. For detailing information about these# directives see Once These changes has been made you should being able to reach-Apache over SSL [https://1.1.1.1/][1]Upgrade Jboss for Mod_clus
unit tests in the JBoss Seam framework
Reprint please retain the author information:
Author: 88250
blog:http:/blog.csdn.net/dl88250
MSN Gmail qq:dl88250@gmail.com
I want to write this article for a long time because there are some configuration problems with the unit tests under seam, and the seam framework advocates most of the integration tests. So there are no details and examples of unit testing, whether it's seam's reference manual or othe
Question: JBoss at startup, the error java.lang.ClassCastException:org.jboss.logging.appender.DailyRollingFileAppender.
Solution: D:/jboss-4.0.5.ga/server/default/deploy/jbossweb-tomcat55.sar/meta-inf/jboss-service.xml file, Modify Java2classloadingcompliance and Usejbosswebloader to true, namely:
TrueTrue
Reboot the server.
Description:java2classloadingcomplianc
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.