Notes by nogeek
Displaying keyword search results 1 - 5
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 November 11, 2010 23:58:24
Last update: November 11, 2010 23:59:24
After all I needed basic authentication for my Tomcat service running in JBoss. These are the steps to add the JBoss authentication service.
Edit jboss-tomcat50.sar/WETA-INF/jboss-service.xml , make sure SecurityManagerService is not commented out:
<!-- A mapping to the server security manager ...
Copy jboss-jaas.jar from the default config:
cp server/default/lib/jboss-jaas.jar server/myserv...
Add this section to server/myserver/conf/jboss-service.xml
<!-- ======================================...
Created by nogeek on September 29, 2010 19:22:15
Last update: September 29, 2010 19:22:15
Assuming you are using the default server.
Edit the file server/default/conf/login-config.xml
Copy & paste the section:
<application-policy name="web-console">
...
Change the copy to:
<application-policy name="myapp">
<auth...
Create users properties file
Copy server/default/conf/props/jmx-console-users.properties to server/default/conf/props/myapp-users.properties . Change contents to:
# users.properties file for use with the Users...
Create roles properties file
Copy server/default/conf/props/jmx-console-roles.properties to server/default/conf/props/myapp-roles.properties . Change contents to:
# roles.properties file for use with the Users...
Edit web.xml in the application myapp . Add security constraints:
<security-constraint>
<web-resource-col...
Add file WEB-INF/jboss-web.xml with the following contents:
<?xml version='1.0' encoding='UTF-8' ?>
...
where myapp corresponds to the name attribute for application-policy in step 1.
Created by nogeek on August 08, 2010 23:38:04
Last update: August 08, 2010 23:38:04
Especially, the ethernet0.virtualDev = "e1000" line should be absent in order for networking to work.
#!/usr/bin/vmplayer
# Filename: Win2000.vmx...
Created by nogeek on March 21, 2010 20:30:53
Last update: March 21, 2010 20:37:53
Port 8080 is undoubtedly overused. You may want to change JBOSS to a port other than the default 8080.
Edit the file $JBOSS_HOME/server/default/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml and change the webserver port from 8080 to 8088:
<bean class="org.jboss.services.bi...
The XSLT at the bottom of the file transforms port 8080 in $JBOSS_HOME/server/default/deploy/jbossweb.sar/server.xml to 8088 specified in this file.