Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

4.2.3 issues with Mac OS X (JDK 1.6)

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you post the rest of the console output?

Do any of these work:

http://localhost:8080
http://localhost:8080/jmx-console
 
Flaviu Simihaian
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The "all" profile supports clustering in addition to other services whereas the "default" profile does not.
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
BWA HA HA HA HA HA HA! Tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!