*
The moose likes JBoss/WildFly and the fly likes 4.2.3 issues with Mac OS X (JDK 1.6) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "4.2.3 issues with Mac OS X (JDK 1.6)" Watch "4.2.3 issues with Mac OS X (JDK 1.6)" New topic
Author

4.2.3 issues with Mac OS X (JDK 1.6)

Flaviu Simihaian
Ranch Hand

Joined: Nov 30, 2008
Posts: 33
I am having the exact same problem with jboss as the other person in the MacOS forum. I get this when I run jboss (with java 6)

jboss/bin/./run.sh: line 89: ulimit: open files: cannot modify limit: Invalid argument
run.sh: Could not set maximum file descriptor limit: unlimited
=========================================================================

JBoss Bootstrap Environment

JBOSS_HOME: /Users/Troy/jboss

JAVA: java

JAVA_OPTS: -Dprogram.name=run.sh -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

CLASSPATH: /Users/Troy/jboss/bin/run.jar

=========================================================================


jboss starts, but I cannot view the page I built (and which works perfect on a windows computer). When I type in http:localhost:8080/hello I get this:

HTTP Status 404 - /hello

type Status report

message /hello

description The requested resource (/hello) is not available.
JBossWeb/2.0.1.GA


I've looked everywhere on jboss.org and cannot find the answer to this apparently simply question.
Thank you
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

Could you post the rest of the console output?

Do any of these work:

http://localhost:8080
http://localhost:8080/jmx-console


JBoss In Action
Flaviu Simihaian
Ranch Hand

Joined: Nov 30, 2008
Posts: 33
Both of those work, Peter. Here is the whole output:

Troy:~ Troy$ jboss/bin/./run.sh
jboss/bin/./run.sh: line 89: ulimit: open files: cannot modify limit: Invalid argument
run.sh: Could not set maximum file descriptor limit: unlimited
=========================================================================

JBoss Bootstrap Environment

JBOSS_HOME: /Users/Troy/jboss

JAVA: java

JAVA_OPTS: -Dprogram.name=run.sh -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

CLASSPATH: /Users/Troy/jboss/bin/run.jar

=========================================================================

17:55:00,756 INFO [Server] Starting JBoss (MX MicroKernel)...
17:55:00,785 INFO [Server] Release ID: JBoss [Trinity] 4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)
17:55:00,787 INFO [Server] Home Dir: /Users/Troy/jboss
17:55:00,787 INFO [Server] Home URL: file:/Users/Troy/jboss/
17:55:00,788 INFO [Server] Patch URL: null
17:55:00,788 INFO [Server] Server Name: default
17:55:00,788 INFO [Server] Server Home Dir: /Users/Troy/jboss/server/default
17:55:00,789 INFO [Server] Server Home URL: file:/Users/Troy/jboss/server/default/
17:55:00,789 INFO [Server] Server Log Dir: /Users/Troy/jboss/server/default/log
17:55:00,789 INFO [Server] Server Temp Dir: /Users/Troy/jboss/server/default/tmp
17:55:00,789 INFO [Server] Root Deployment Filename: jboss-service.xml
17:55:02,173 INFO [ServerInfo] Java version: 1.6.0_07,Apple Inc.
17:55:02,173 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 1.6.0_07-b06-57,Apple Inc.
17:55:02,174 INFO [ServerInfo] OS-System: Mac OS X 10.5.5,x86_64
17:55:03,199 INFO [Server] Core system initialized
17:55:08,575 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
17:55:08,577 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
17:55:10,244 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
17:55:10,245 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
17:55:10,519 INFO [TransactionManagerService] Starting recovery manager
17:55:10,684 INFO [TransactionManagerService] Recovery manager started
17:55:10,685 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
17:55:16,999 INFO [EJB3Deployer] Starting java:comp multiplexer
17:55:20,929 INFO [NativeServerConfig] JBoss Web Services - Native
17:55:20,929 INFO [NativeServerConfig] jbossws-3.0.1-native-2.0.4.GA (build=200803312044)
17:55:22,566 INFO [Embedded] Catalina naming disabled
17:55:22,764 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
17:55:22,846 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
17:55:22,851 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
17:55:22,851 INFO [Catalina] Initialization processed in 285 ms
17:55:22,853 INFO [StandardService] Starting service jboss.web
17:55:22,856 INFO [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA
17:55:22,921 INFO [Catalina] Server startup in 68 ms
17:55:23,153 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
17:55:24,419 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
17:55:24,640 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../deploy/jbossws.sar/jbossws-context.war/
17:55:24,808 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
17:55:25,798 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
17:55:26,613 INFO [MailService] Mail Service bound to java:/Mail
17:55:26,812 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
17:55:26,848 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
17:55:26,879 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
17:55:26,939 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
17:55:27,136 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
17:55:27,164 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
17:55:27,244 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
17:55:27,252 INFO [QuartzResourceAdapter] start quartz!!!
17:55:27,310 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
17:55:27,333 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
17:55:27,336 INFO [RAMJobStore] RAMJobStore initialized.
17:55:27,337 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
17:55:27,337 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
17:55:27,338 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
17:55:28,800 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java efaultDS'
17:55:29,288 INFO [A] Bound to JNDI name: queue/A
17:55:29,290 INFO [B] Bound to JNDI name: queue/B
17:55:29,292 INFO [C] Bound to JNDI name: queue/C
17:55:29,294 INFO [D] Bound to JNDI name: queue/D
17:55:29,296 INFO [ex] Bound to JNDI name: queue/ex
17:55:29,313 INFO [testTopic] Bound to JNDI name: topic/testTopic
17:55:29,314 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
17:55:29,316 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
17:55:29,320 INFO [testQueue] Bound to JNDI name: queue/testQueue
17:55:29,367 INFO [UILServerILService] JBossMQ UIL service available at : /127.0.0.1:8093
17:55:29,446 INFO [DLQ] Bound to JNDI name: queue/DLQ
17:55:29,589 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
17:55:29,619 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
17:55:30,029 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
17:55:30,089 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
17:55:30,126 INFO [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)] Started in 29s:320m
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

OK, it looks like JBossAS is running. Where, and how, did you deploy your application? Looking at the startup log, it does not look like the "/hello" context was deployed (look for the "INFO [TomcatDeployer] deploy, ctxPath=/xxx, warUrl=.../deploy/www.war" lines)
Flaviu Simihaian
Ranch Hand

Joined: Nov 30, 2008
Posts: 33
Yes you are right. The mistake was that I put the ear file in the all/deploy folder instead of default/deploy

What is the difference between the two anyway?

Thanks
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9962
    
163

The "all" profile supports clustering in addition to other services whereas the "default" profile does not.


[My Blog] [JavaRanch Journal]
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

The directories under the server directory represent configurations. If you do not specify a configuration, the 'default' configuration is used. You can use the -c option to specify a configuration. For example, to use the 'll' configuration, enter:

run -c all
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: 4.2.3 issues with Mac OS X (JDK 1.6)
 
Similar Threads
Running JBoss-5.1.0.GA as a service on Red Hat?
set JAVA_HOME
JBOSS 4.23 and Java 6 on Mac OS X leopard
jboss 4.2.3
Running JBOSS 4.2.3 and java 6 on mac os x leopard