Recently I coming across a lot of configurations that are required for new servers like JBoss 6 & 7. So I thought of jotting them at a single place. I may be mentioning them in brief sometimes and sometimes I would provide as much detail as I can.
- JBoss & Cookie Expiry : With JBoss 6 and 7, cookies by default specify the expiration time of cookie as "Max-Age" header attribute instead of "Expires". I have written a detail about this here.
- Random number generation and server start up is slow on Unix platforms for some of the servers. This is because of /dev/random is used in Unix platforms for random number generation. I have added a detail entry explaining the problem and solution here.
- JBoss 7 AS, has modular class loading. It provides true application isolation, hiding server implementation classes from application and only loading the classes your application needs. Modules, packaged as collections of classes, are peers that remain isolated unless explicitly defined as a dependency of another module. These visibility rules can be customized.
- When running Jsafe library on JBoss, if you get error like java.lang.NoClassDefFoundError put the jsafe (CryptoJ) jars to <JAVA_HOME>/jre/lib/ext directory. This mostly occurs on Unix platforms.
- In JBoss version 7 or above if open office is not working start JBoss with flag -Djava.ext.dirs=<jboss-deployment-dir>/cfusion.ear/cfusion.war/WEB-INF/cfusion/lib/oosdk/:<java-home>/lib/ext/ .
I will keep updating this space as and when i will find more.
Thanks....It helps a lot..
ReplyDeleteHave you really been able to start Jboss 7.1.x with JsafeJC3 lib in /jre/lib/ext.
ReplyDeleteI've juste trr=ied ans it faile :
C:\jboss-as-7.1.1.Final\bin>standalone.bat
Calling "C:\jboss-as-7.1.1.Final\bin\standalone.conf.bat"
===============================================================================
JBoss Bootstrap Environment
JBOSS_HOME: C:\jboss-as-7.1.1.Final
JAVA: C:\Program Files\Java\jdk1.6.0_45\bin\java
JAVA_OPTS: -XX:+TieredCompilation -Dprogram.name=standalone.bat -Xms64M -Xmx51
2M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.se
rver.gcInterval=3600000 -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.war
ning=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.server.default.c
onfig=standalone.xml
===============================================================================
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.SecurityException: cannot verify signature block file META-INF/JSAFEJCE
at sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVeri
fier.java:202)
at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier
.java:176)
at java.util.jar.JarVerifier.processEntry(JarVerifier.java:245)
at java.util.jar.JarVerifier.update(JarVerifier.java:199)
at java.util.jar.JarFile.initializeVerifier(JarFile.java:327)
at java.util.jar.JarFile.getInputStream(JarFile.java:395)
at sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnec
tion.java:144)
at java.net.URL.openStream(URL.java:1010)
at org.jboss.modules.Main.(Main.java:356)
Could not find the main class: org.jboss.modules.Main. Program will exit.
We have tried this with CryptoJ6.0 jars which are shipped with ColdFusion and JBoss comes up and works well.
ReplyDeleteShilpi