Notes by nogeek
Displaying keyword search results 1 - 8
Created by nogeek on December 29, 2011 13:31:44
Last update: December 29, 2011 14:29:13
Tomcat allows you to create multiple server instances for the same installation. The installation directory is identified as CATALINA_HOME , the instance directory is identified as CATALINA_BASE . Here are the steps: Create a base directory for the new instance, for example: /home/nogeek/tomcat1 . Create the subdirectories:
mkdir -p /home/nogeek/tomcat/{bin,conf,logs,temp,w... Copy web.xml from the installation directory: cp $CATALINA_HOME/conf/web.xml /home/nogeek/tomcat... Copy logging.properties from the installation directory: cp $CATALINA_HOME/conf/logging.properties /home/no... Create server.xml under tomcat1/conf : <?xml version='1.0' encoding='utf-8'?> <Server ... Create script setenv.sh under tomcat1/bin : # Edit this file to set custom options # Tomcat... Copy startup.sh and shutdown.sh from the installation directory. Add the following two lines to the beginning of each: CATALINA_BASE=/home/nogeek/tomcat1 export CATAL... Create a soft link for catalina.sh in tomcat1/bin : $ ln -s ~/apache-tomcat-7.0.22/bin/catalina.sh cat...
Created by nogeek on December 31, 2010 11:56:25
Last update: December 31, 2010 11:56:25
These are the steps to create a JBoss 5.1.0 configuration with Tomcat from the built-in minimal configuration. Change directory to $JBOSS_HOME/server . Make a copy of the minimal configuration.
cp -R minimal tomcatonly Copy bindingservice.beans from the default configuration. cp -R default/conf/bindingservice.beans tomcatonly... Copy login-config.xml from the default configuration. cp default/conf/login-config.xml tomcatonly/conf/ Edit tomcatonly/conf/jboss-service.xml : Add jars from the common/lib directory: <!-- Load all jars from the JBOSS_DIST/serv... Add the JAAS security manager section (copy from the default profile, and yes, JBoss tomcat can't live without the JBoss JAAS manager). <!-- JAAS security manager and realm mappin... Copy the Tomcat (JBoss web) deployer from the default configuration. cp -R default/deployers/jbossweb.deployer tomcaton... Copy metadata-deployer-jboss-beans.xml and security-deployer-jboss-beans.xml from the default profile. cp default/deployers/metadata-deployer-jboss-b... Copy...
Created by nogeek on September 01, 2010 19:25:09
Last update: December 31, 2010 11:54:45
Edit the file server\default\conf\jboss-log4j.xml and change the log level from INFO to DEBUG :
<!-- ============================== -->
<!-...
Presumably this should change the log level for the console appender (STDOUT) to DEBUG. However, this change alone does not work. It should be used in combination with the system property jboss.server.log.threshold .
Either add -Djboss.server.log.threshold=DEBUG to JAVA_OPTS in bin\run.conf.bat :
rem # JVM memory allocation pool parameters - modi...
or set it from the command line:
bin\run -Djboss.server.log.threshold=DEBUG
Created by nogeek on November 11, 2010 22:48:50
Last update: December 27, 2010 08:28:42
I need to create a Tomcat only configuration for JBoss 3.2.7. These are the steps:
Copy the minimal configuration to new configuration:
cd $JBOSS_HOME/server
cp -R minimal tomcatonly
...
Copy tomcat service from the default configuration to the new configuration:
cp -R default/deploy/jbossweb-tomcat50.sar tomcato...
Edit jboss-tomcat50.sar/META-INF/jboss-service.xml , comment out SecurityManagerService :
<!-- A mapping to the server security manager serv...
and TransactionManager :
<!--
<depends>jboss:service=TransactionManager<...
Copy jbosssx.jar , jboss-j2ee.jar and jboss.jar from default/lib to tomcatonly/lib .
Edit tomcatonly/conf/jboss-service.xml , change port 1098, 1099 to 1100, 1101.
Edit tomcatonly/deploy/jbossweb-tomcat50.sar/server.xml , change port 8080 to 8081; change port 8009 to 8010.
Start new configuration with:
bin/run.sh -c tomcatonly
Created by nogeek on September 30, 2010 21:58:46
Last update: September 30, 2010 22:00:00
I had a lot of trouble adding a host to the known_hosts file with JSch . The readme says that if the property StrictHostKeyChecking is set to "no", JSch will automatically add the host to the known_hosts file. Or, if it is set to "ask", it will add the host after confirmation. However, it did not mention which program to run the get that behavior. I tried Exec first. It did exhibit the behavior mentioned in the README, but it did not add to the known_hosts file. Then I tried KnownHosts , which did add the host to the known_hosts file. However, the only way to exit from the program is to hit CTRL-C, which also killed the cmd window. It would have been a...
Created by nogeek on June 03, 2010 16:06:05
Last update: June 03, 2010 16:06:05
By default, JBOSS server binds only to localhost. Use the -b option to bind to all available IP addresses:
sh bin/run.sh -b 0.0.0.0
Created by nogeek on April 01, 2010 18:54:41
Last update: April 01, 2010 18:55:27
Start remote desktop client by clicking Start and Run, then enter mstsc.
Click the "Options" button, select the "Local Resources" tab, check "Clipboard"
More options are available when you click the "More..." button (share local drives etc.).
Created by nogeek on March 21, 2010 20:13:48
Last update: March 21, 2010 20:23:41
Download JBoss from http://www.jboss.org/jbossas/downloads/
Set environment variables JAVA_HOME and JBOSS_HOME
Open a command prompt and enter %JBOSS_HOME%\bin\run.bat ( $JBOSS_HOME/bin/run.sh on *nix).
Drop your WAR or EAR file into %JBOSS_HOME%\server\default\deploy