[Beginners Corner] - Re: Why I can't start JBOSS 4.2.2GA?
by jaikiran
Now that this thread has gone into 3 pages without making much headway, i decided to download JBoss-4.2.2 and Java6 on my system. After downloading, i just set the JAVA_HOME and executed the run.bat file. Everything went off smoothly. Here's what i get on my system
| D:\JBoss-4.2.2\jboss-4.2.2.GA\bin>run
| ===============================================================================
|
| JBoss Bootstrap Environment
|
| JBOSS_HOME: D:\JBoss-4.2.2\jboss-4.2.2.GA
|
| JAVA: c:\jdk1.6.0_03\bin\java
|
| JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.cli
| ent.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
|
| CLASSPATH: c:\jdk1.6.0_03\lib\tools.jar;D:\JBoss-4.2.2\jboss-4.2.2.GA\bin\run.
| jar
|
| ===============================================================================
| 21:11:01,576 INFO [Server] Starting JBoss (MX MicroKernel)...
| 21:11:01,596 INFO [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: SVNTag=
| JBoss_4_2_2_GA date=200710221139)
| 21:11:01,606 INFO [Server] Home Dir: D:\JBoss-4.2.2\jboss-4.2.2.GA
| 21:11:01,606 INFO [Server] Home URL: file:/D:/JBoss-4.2.2/jboss-4.2.2.GA/
| 21:11:01,606 INFO [Server] Patch URL: null
| 21:11:01,606 INFO [Server] Server Name: default
| 21:11:01,606 INFO [Server] Server Home Dir: D:\JBoss-4.2.2\jboss-4.2.2.GA\serve
| r\default
| 21:11:01,606 INFO [Server] Server Home URL: file:/D:/JBoss-4.2.2/jboss-4.2.2.GA
| /server/default/
| 21:11:01,606 INFO [Server] Server Log Dir: D:\JBoss-4.2.2\jboss-4.2.2.GA\server
| \default\log
| 21:11:01,616 INFO [Server] Server Temp Dir: D:\JBoss-4.2.2\jboss-4.2.2.GA\serve
| r\default\tmp
| 21:11:01,616 INFO [Server] Root Deployment Filename: jboss-service.xml
| 21:11:02,958 INFO [ServerInfo] Java version: 1.6.0_03,Sun Microsystems Inc.
| 21:11:02,968 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.6.0_03-b05
| ,Sun Microsystems Inc.
| 21:11:02,968 INFO [ServerInfo] OS-System: Windows 2003 5.2,x86
| 21:11:03,870 INFO [Server] Core system initialized
|
And then finally
21:11:43,727 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)] Started in 42s:91ms
So at this point i am clueless as to what might be the issue. I would suggest trying it on a different system. See if it works there.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104667#4104667
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104667
18 years, 8 months
[JBoss Seam] - Re: ResourceBundle in Database
by pbrewer_uk
Ok I've solved that problem. Now I have a problem with seam caching resource bundles.
I'm using Java 6 to do my resource bundle caching, so I want to remove, disable or override the following method in org.jboss.seam.core.SeamResourceBundle.java:
| private List<java.util.ResourceBundle> getBundlesForCurrentLocale()
| {
| Locale instance = org.jboss.seam.core.Locale.instance();
| List<ResourceBundle> bundles = bundleCache.get(instance);
| if ( bundles==null )
| {
| bundles = loadBundlesForCurrentLocale();
| bundleCache.put(instance, bundles);
| }
| return bundles;
|
| }
|
Is it possible to override this method somehow? If so any pointers would be much appreciated.
Cheers, Pete.
BTW This is the solution to my previous problem: The trick is to not allow a MissingResourceException to be thrown.
| @Scope(ScopeType.STATELESS)
| @BypassInterceptors
| @Install(true)
| @Name("org.jboss.seam.core.resourceLoader")
| public class DBResourceLoader extends ResourceLoader {
|
| private Log log = Logging.getLog(DBResourceLoader.class) ;
|
| /** The serialVersionUID field */
| private static final long serialVersionUID = -7063164147487452966L;
|
| // Redefine how we load a resource bundle
| @Override
| public ResourceBundle loadBundle(String bundleName) {
| try {
| log.debug("Searching database resource loader for bundle #0", bundleName) ;
| return ResourceBundle.getBundle(bundleName, Locale.instance(), Thread.currentThread().getContextClassLoader(), DBControl.INSTANCE);
| } catch (MissingResourceException ex) {
| log.debug("Missing resource for bundleName #0", bundleName) ;
| return null;
| }
|
| }
|
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104664#4104664
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104664
18 years, 8 months