Adding new fonts for all users
To install fonts for all users you need to login as root and create a directory under /usr/share/fonts/ for example /usr/share/fonts/custom. Copy the fonts you wish to add into the directory you created and run: fc-cache -f /usr/share/fonts/
All existing and new users should now be able to use the installed fonts.
Labels
- Apache (10)
- Articles (4)
- BPM Tools (5)
- Glassfish (16)
- Hadoop (10)
- HP ALM (6)
- HP SOA Systinet (14)
- Issues (19)
- JAVA (85)
- JBoss (16)
- jQuery (4)
- Load Runner (37)
- Quality Center (49)
- Testing (24)
- Tips and Tricks (16)
- Tomcat (4)
- Usefull Links (18)
- Weblogic (41)
- WebSphere (2)
Tuesday, December 22, 2015
Monday, November 30, 2015
WildFly 8 access log configuration
WildFly 8 configuration
WildFly
open method and JBoss access_log 7 are similar, but also to find the
web container corresponding to add configuration can be, but the
container two use is not the same, but WildFly must be specified directory log.
<subsystem xmlns="urn:jboss:domain:undertow:1.0">
<buffer-caches>
<buffer-cache name="default" buffer-size="1024" buffers-per-region="1024" max-regions="10"/>
</buffer-caches>
<server name="default-server">
<http-listener name="default" socket-binding="http"/>
<host name="default-host" alias="localhost">
<location name="/" handler="welcome-content"/>
<filter-ref name="server-header"/>
<filter-ref name="x-powered-by-header"/>
<access-log pattern="common" directory="${jboss.home.dir}/standalone/log" prefix="access" />
</host>
</server>
<servlet-container name="default" default-buffer-cache="default" stack-trace-on-error="local-only">
<jsp-config/>
</servlet-container>
<handlers>
<file name="welcome-content" path="${jboss.home.dir}/welcome-content" directory-listing="true"/>
</handlers>
<filters>
<response-header name="server-header" header-name="Server" header-value="Wildfly 8"/>
<response-header name="x-powered-by-header" header-name="X-Powered-By" header-value="Undertow 1"/>
</filters>
</subsystem>
As above, add the red line,
you can open the WildFly 8 access_log function, restart the server,
access to ip:8080 can be generated access.log in the
JBOSS_HOME/standalone/log directory.
Among them
Prefix specifies the prefix log file name or file name
Pattern specifies the format of the log
Pattern can be set to two ways, the first is "common pattern=", the second is pattern="combined"
As
can be seen, the second format of the log output relative to the
concrete, and the actual development of opening which format in the
access_log process according to demand to determine it.
Conclusion
Opening
the access_log configuration to the end, if you have any questions,
please refer to the following information, or to contact us, thank you!
Wednesday, October 7, 2015
ERROR [stderr] (HouseKeeper) Exception in thread "HouseKeeper" java.lang.OutOfMemoryError:
ERROR [stderr] (HouseKeeper)
Exception in thread "HouseKeeper" java.lang.OutOfMemoryError: Java
heap space
ERROR [stderr] (default task-6)
Exception in thread "default task-6" java.lang.OutOfMemoryError: Java
heap space
ERROR
[org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2)
JBAS014612: Operation ("read-resource") failed - address: :
java.lang.OutOfMemoryError: Java heap space
Tuesday, September 15, 2015
Task Scheduler: This task requires that the user account specified has Log on as batch job rights.
When I save a Task in Windows 2003 or 2008 R2, I get the following
notification
Task Scheduler: This task requires that the user account specified has Log on as batch job rights.
To set this up you need to do the following
1. Start -> Run
2. Type in secpol.msc /s
3. Select "Local Policies" in MSC snap in
4. Select "User Rights Assignment"
5. Right click on "Log on as batch job" and select Properties
6. Click "Add User or Group", and include the relevant user.
7. OK out of dialogs
Task Scheduler: This task requires that the user account specified has Log on as batch job rights.
To set this up you need to do the following
1. Start -> Run
2. Type in secpol.msc /s
3. Select "Local Policies" in MSC snap in
4. Select "User Rights Assignment"
5. Right click on "Log on as batch job" and select Properties
6. Click "Add User or Group", and include the relevant user.
7. OK out of dialogs
Thursday, May 28, 2015
UT000047: The number of parameters exceeded the maximum of 1000
Issue:-
: java.lang.IllegalStateException: UT000047: The number of parameters exceeded the maximum of 1000 | |||
2015-05-28
10:23:17,946 ERROR [io.undertow.request] (default task-54) UT005023: Exception
handling request to
/.do : java.lang.IllegalStateException: UT000047: The number of parameters exceeded the maximum of 1000 at io.undertow.server.handlers.form.FormData.add(FormData.java:77) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.server.handlers.form.FormData.add(FormData.java:67) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.server.handlers.form.FormEncodedDataDefinition$FormEncodedDataParser.doParse(FormEncodedDataDefinition. We need to like below max-parameters need to add in standalone.xml Solution:- <ajp-listener name="default.ajp" socket-binding="ajp" max-parameters="200000"/> <http-listener name="default" socket-binding="http" max-parameters="200000"/> |
Wednesday, May 27, 2015
How to enable AJP protocal in WildFly8x to connect Apache server step by steps
WildFly
AJP settings It will update the configuration file of standalone.xml.
WILDFLY_HOME / standalone / configuration / standalone.xml
Please check the AJP port . When I default , it has become a 8009 .
1) Go to WILDFLY_HOME / standalone / configuration / standalone.xml
You can see below info in standalone.xml<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}"> <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:8090}"/> <socket-binding
name="management-http" interface="management" port="${jboss.management.http.port:8090}"/> <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9993}"/> <socket-binding
name="management-https" interface="management" port="${jboss.management.https.port:9993}"/> <socket-binding name="ajp" port="${jboss.ajp.port:8009}"/> <socket-binding
name="ajp" port="${jboss.ajp.port:8009}"/> <socket-binding name="http" port="${jboss.http.port:8080}"/> <socket-binding
name="http" port="${jboss.http.port:8080}"/> <socket-binding name="https" port="${jboss.https.port:8443}"/> <socket-binding
name="https" port="${jboss.https.port:8443}"/> <socket-binding name="txn-recovery-environment" port="4712"/> <socket-binding
name="txn-recovery-environment" port="4712"/> <socket-binding name="txn-status-manager" port="4713"/> <socket-binding
name="txn-status-manager" port="4713"/> <outbound-socket-binding name="mail-smtp"> <outbound-socket-binding
name="mail-smtp"> <remote-destination host="localhost" port="25"/> <remote-destination
host="localhost" port="25"/> </outbound-socket-binding> </outbound-socket-binding>
</socket-binding-group
2)You need to add below line under <server name="default-server">
and save
<ajp-listener name="ajpListner" scheme="http" socket-binding="ajp"/>
After save restart of
WildFly to Setting of AJP WildFly is complete .Then test AJP protocol listing or not using this command. netstat
-a | grep 8009
Monday, April 20, 2015
Apache 2.4.7 + Tomcat 7.0.42 Integration
Apache 2.4.7 + Tomcat 7.0.42 Integration
In this exercise we will setup Apache + Tomcat Integration
Install Apache from source
Download Apache 2.4.7 from http://httpd.apache.org/download.cgi
Download APR and APR UTIL from http://apr.apache.org/download.cgi
untar apache
$ tar zxvf httpd-2.4.7.tar.gz
similarly untar apr and apr-utils and copy it to apahce/srclib folder
Download APR and APR UTIL from http://apr.apache.org/download.cgi
untar apache
$ tar zxvf httpd-2.4.7.tar.gz
similarly untar apr and apr-utils and copy it to apahce/srclib folder
$ mv apr-1.5.0 httpd-2.4.7/srclib/apr
$ mv apr-util-1.5.3 httpd-2.4.7/srclib/apr-util
$ mv apr-util-1.5.3 httpd-2.4.7/srclib/apr-util
We plan to install apache in the /opt folder with all modules and DSO enabled.
./configure –prefix=/opt/apache247 –enable-mods-shared=all –enable-so –with-included-apr
make
sudo make install
make
sudo make install
NOTE:
While configuring on an Ubuntu system, If you get error – “configure: error: pcre-config for libpcre not found”
This can be fixed by installing libpcre3-dev as follows : sudo apt-get install libpcre3-dev
Testing
/opt/apache247/bin/apachectl start
Install Tomcat
Download Tomcat 7 from http://tomcat.apache.org/download-70.cgi
untar to /opt/tomcatA
$ cd /opt/tomcatA
$ bin/startup.sh
Testing
Install/Configure mod_jk/AJP connectors
Download the ajp connector from http://tomcat.apache.org/download-connectors.cgi
$ cd tomcat-connectors-1.2.37-src/native
$ ./configure –with-apxs=/opt/apache247/bin/apxs
$ make
$ make
Next copy the mod_jk.so from tomcat-connectors-1.2.37-src/native/apache-2.0
to /opt/apache247/modules/
to /opt/apache247/modules/
$ sudo cp mod_jk.so /opt/apache247/modules/
Configuring mod_jk.conf file
Edit httpd.conf
Add the following at the last of the LoadModule section
Add the following at the last of the LoadModule section
LoadModule jk_module modules/mod_jk.so
At the bottom of the file , add the following line
Include conf/mod_jk.conf
Next, create the mod_jk.conf file
# Where to find workers.properties
JkWorkersFile /opt/apache247/conf/workers.properties
# location of log file
JkLogFile /opt/apache247/logs/mod_jk.log
# log level
JkLogLevel info
# Select the log format
JkLogStampFormat “[%a %b %d %H:%M:%S %Y]”
# JkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the request format
JkRequestLogFormat “%w %V %T”
#Send everything for context /test to worker ajp13
JkMount /test tomcatA
JkMount /test/* tomcatA
JkWorkersFile /opt/apache247/conf/workers.properties
# location of log file
JkLogFile /opt/apache247/logs/mod_jk.log
# log level
JkLogLevel info
# Select the log format
JkLogStampFormat “[%a %b %d %H:%M:%S %Y]”
# JkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the request format
JkRequestLogFormat “%w %V %T”
#Send everything for context /test to worker ajp13
JkMount /test tomcatA
JkMount /test/* tomcatA
NOTE: if you are pasting above directly to you config file, please ensure the double-quotes are in proper format after copy-paste or edit them before restarting apache.
Configure workers.properties
# Define workers
worker.list=tomcatA
worker.list=tomcatA
# Set properties
worker.tomcatA.type=ajp13
worker.tomcatA.host=localhost
worker.tomcatA.port=8009
worker.tomcatA.type=ajp13
worker.tomcatA.host=localhost
worker.tomcatA.port=8009
Testing the Integration
Lets create a test file
/opt/tomcat7A/webapps/
mkdir test
cat ping.jsp
pong
mkdir test
cat ping.jsp
pong
Direct Testing to confirm it works with Tomcat
http://localhost:8080/test/ping.jsp
http://localhost:8080/test/ping.jsp
Testing the integration by accessing it via Apache
Tail the mod_jk.log
tail -f mod_jk.log
You should see something like this
[Sun Nov 24 02:34:11 2013]tomcatA localhost 0.056210
[Sun Nov 24 02:34:11 2013]tomcatA localhost 0.056210
Integration is working as expected.
Subscribe to:
Posts (Atom)