1 Reply Latest reply on Feb 15, 2002 10:11 AM by John Twomey

    Embedd tomcat Mapping failure.

    saimon Newbie

      Hi,

      I've been trying out JBoss-2.4.4-Tomcat-4.0.1. JBoss is great.. ;)

      I started it up using the run_with_catalina.sh script. Everything seems to
      load up fine. i.e. no exception traces or anything. Seems quite normal (I've
      included the log anyway....

      But when I try to access http://127.0.0.1:8080 I get

      HTTP Status 500 - No Context configured to process this request

      and the following exception trace appears in the jboss terminal.


      If I individually startup Tomcat it loads up ok..but with the above
      script...I always get the following..

      Very strange.

      Hope someone can help me out on this one...

      Cheers

      Saimon

      Exception trace:
      ==============================================================
      [INFO,EmbeddedCatalinaServiceSX] StandardHost[localhost]: MAPPING
      configuration error for request URI
      [ERROR,EmbeddedCatalinaServiceSX] HttpProcessor[8080][4] process.invoke
      java.lang.NullPointerException
      at
      org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatcherValve.java:280)
      at
      org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:180)
      at
      org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
      at
      org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at
      org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at
      org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at
      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
      at
      org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at
      org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at
      org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at
      org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
      at
      org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
      at java.lang.Thread.run(Thread.java:484)
      ====================================================================

      Startup Log:
      ===========================================================
      saimon@linux:~/JBoss-2.4.4_Tomcat-4.0.1/jboss/bin > sh run_with_catalina.sh
      JBOSS_CLASSPATH=:/usr/java/jdk1.3/lib/tools.jar:run.jar:../lib/crimson.jar
      jboss.home = /home/saimon/JBoss-2.4.4_Tomcat-4.0.1/jboss
      Using JAAS LoginConfig:
      file:/home/saimon/JBoss-2.4.4_Tomcat-4.0.1/jboss/conf/catalina/auth.conf
      JBoss release: JBoss-2.4.4 CVSTag=JBoss_2_4_4
      JBoss version: 2.4.4.2001-12-29 02:04:40 PST
      Using configuration "catalina"
      [INFO,root] Started Log4jService,
      config=file:/home/saimon/JBoss-2.4.4_Tomcat-4.0.1/jboss/conf/catalina/log4j.properties
      [INFO,Info] Java version: 1.3.0,Sun Microsystems Inc.
      [INFO,Info] Java VM: Java HotSpot(TM) Server VM 1.3.0,Sun Microsystems Inc.
      [INFO,Info] System: Linux 2.4.0-4GB,i386
      [INFO,Shutdown] Shutdown hook added
      [INFO,ServiceControl] Initializing 48 MBeans
      [INFO,WebService] Initializing
      [INFO,WebService] Initialized
      [INFO,NamingService] Initializing
      [INFO,NamingService] Initialized
      [INFO,JNDIView] Initializing
      [INFO,JNDIView] Initialized
      [INFO,TransactionManagerService] Initializing
      [INFO,TransactionManagerService] Initialized
      [INFO,ClientUserTransactionService] Initializing
      [INFO,ClientUserTransactionService] Initialized
      [INFO,JaasSecurityManagerService] Initializing
      [INFO,JaasSecurityManagerService] Initialized
      [INFO,JdbcProvider] Initializing
      [INFO,JdbcProvider] Loaded JDBC-driver:org.hsqldb.jdbcDriver
      [INFO,JdbcProvider] Initialized
      [INFO,HypersonicDatabase] Initializing
      [INFO,HypersonicDatabase] Initialized
      [INFO,DefaultDS] Initializing
      [INFO,DefaultDS] Initialized
      [INFO,ServerDataCollector] Initializing
      [INFO,ServerDataCollector] Initialized
      [INFO,ContainerFactory] Initializing
      [INFO,ContainerFactory] Initialized
      [INFO,EmbeddedCatalinaServiceSX] Initializing
      [INFO,EmbeddedCatalinaServiceSX] Initialized
      [INFO,JBossMQService] Initializing
      [INFO,JBossMQService] Initialized
      [INFO,StateManager] Initializing
      [INFO,StateManager] Initialized
      [INFO,PersistenceManager] Initializing
      [INFO,PersistenceManager] Initialized
      [INFO,JVMServerILService] Initializing
      [INFO,JVMServerILService] Initialized
      [INFO,RMIServerILService] Initializing
      [INFO,RMIServerILService] Initialized
      [INFO,OILServerILService] Initializing
      [INFO,OILServerILService] Initialized
      [INFO,UILServerILService] Initializing
      [INFO,UILServerILService] Initialized
      [INFO,TopicManager] Initializing
      [INFO,TopicManager] Initialized
      [INFO,TopicManager] Initializing
      [INFO,TopicManager] Initialized
      [INFO,TopicManager] Initializing
      [INFO,TopicManager] Initialized
      [INFO,QueueManager] Initializing
      [INFO,QueueManager] Initialized
      [INFO,QueueManager] Initializing
      [INFO,QueueManager] Initialized
      [INFO,QueueManager] Initializing
      [INFO,QueueManager] Initialized
      [INFO,QueueManager] Initializing
      [INFO,QueueManager] Initialized
      [INFO,QueueManager] Initializing
      [INFO,QueueManager] Initialized
      [INFO,QueueManager] Initializing
      [INFO,QueueManager] Initialized
      [INFO,QueueManager] Initializing
      [INFO,QueueManager] Initialized
      [INFO,QueueManager] Initializing
      [INFO,QueueManager] Initialized
      [INFO,QueueManager] Initializing
      [INFO,QueueManager] Initialized
      [INFO,QueueManager] Initializing
      [INFO,QueueManager] Initialized
      [INFO,NamingAlias] Initializing
      [INFO,NamingAlias] Initialized
      [INFO,NamingAlias] Initializing
      [INFO,NamingAlias] Initialized
      [INFO,JMSProviderLoader] Initializing
      [INFO,JMSProviderLoader] Initialized
      [INFO,ServerSessionPoolLoader] Initializing
      [INFO,ServerSessionPoolLoader] Initialized
      [INFO,J2eeDeployer] Initializing
      [INFO,J2eeDeployer] Initialized
      [INFO,RARDeployer] Initializing
      [INFO,RARDeployer] Initialized
      [INFO,ConnectionManagerFactoryLoader] Initializing
      [INFO,MinervaNoTransCMFactory] Initialized
      [INFO,ConnectionManagerFactoryLoader] Initializing
      [INFO,MinervaSharedLocalCMFactory] Initialized
      [INFO,ConnectionManagerFactoryLoader] Initializing
      [INFO,MinervaXACMFactory] Initialized
      [INFO,ConnectionFactoryLoader] Initializing
      [INFO,MinervaDS] Initialized
      [INFO,ConnectionFactoryLoader] Initializing
      [INFO,JmsXA] Initialized
      [INFO,AutoDeployer] Initializing
      [INFO,AutoDeployer] Initialized
      [INFO,JMXAdaptorService] Initializing
      [INFO,JMXAdaptorService] Initialized
      [INFO,RMIConnectorService] Initializing
      [INFO,RMIConnectorService] Initialized
      [INFO,MailService] Initializing
      [INFO,MailService] Initialized
      [INFO,ServiceControl] Initialized 48 services
      [INFO,ServiceControl] Starting 48 MBeans
      [INFO,WebService] Starting
      [INFO,WebService] Started webserver with address: null port: 8083
      [INFO,WebService] Codebase set to: http://linux.local:8083/
      [INFO,WebService] Started
      [INFO,NamingService] Starting
      [INFO,NamingService] Starting jnp server
      [INFO,NamingService] Started jnpPort=1099, rmiPort=0, backlog=50,
      bindAddress=null, Client SocketFactory=null, Server SocketFactory=null
      [INFO,NamingService] InitialContext Environment:
      [INFO,NamingService] key=java.naming.factory.initial,
      value=org.jnp.interfaces.NamingContextFactory
      [INFO,NamingService] key=java.naming.factory.url.pkgs,
      value=org.jboss.naming:org.jnp.interfaces:org.jboss.naming:org.jnp.interfaces
      [INFO,NamingService] Naming started on port 1099
      [INFO,NamingService] Started
      [INFO,JNDIView] Starting
      [INFO,JNDIView] Started
      [INFO,TransactionManagerService] Starting
      [INFO,TransactionManagerService] Started
      [INFO,ClientUserTransactionService] Starting
      [INFO,ClientUserTransactionService] Started
      [INFO,JaasSecurityManagerService] Starting
      [INFO,JaasSecurityManagerService] startService, securityMgrCtxPath=java:/jaas
      [INFO,JaasSecurityManagerService] startService,
      cachePolicyCtxPath=java:/timedCacheFactory
      [INFO,JaasSecurityManagerService] startService,
      SecurityProxyFactory=org.jboss.security.SubjectSecurityProxyFactory@385660
      [INFO,JaasSecurityManagerService] Started
      [INFO,JdbcProvider] Starting
      [INFO,JdbcProvider] Started
      [INFO,HypersonicDatabase] Starting
      [INFO,Default] Server 1.6 is running
      [INFO,Default] Press [Ctrl]+[C] to abort
      [INFO,HypersonicDatabase] Database started
      [INFO,HypersonicDatabase] Started
      [INFO,DefaultDS] Starting
      [INFO,DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS
      [INFO,DefaultDS] Started
      [INFO,ServerDataCollector] Starting
      [INFO,ServerDataCollector] JBoss Management Service 'servercollector' bound
      to servercollector
      [INFO,ServerDataCollector] Started
      [INFO,ContainerFactory] Starting
      [INFO,ContainerFactory] Started
      [INFO,EmbeddedCatalinaServiceSX] Starting
      [INFO,EmbeddedCatalinaServiceSX] Starting EmbeddedCatalinaSX....
      [INFO,EmbeddedCatalinaServiceSX] Building Http engine and connector
      [INFO,Default] Apache Tomcat/4.0.1
      [INFO,EmbeddedCatalinaServiceSX] HttpConnector Opening server socket on all
      host IP addresses
      [INFO,EmbeddedCatalinaServiceSX] HttpConnector[8080] Starting background
      thread [INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8080][0] Starting
      background thread
      [INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8080][1] Starting background
      thread
      [INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8080][2] Starting background
      thread
      [INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8080][3] Starting background
      thread
      [INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8080][4] Starting background
      thread
      [INFO,EmbeddedCatalinaServiceSX] OK
      [INFO,EmbeddedCatalinaServiceSX] Started
      [INFO,JBossMQService] Starting
      [INFO,JBossMQService] JBossMQ version 1.0.0 Beta Started
      [INFO,JBossMQService] Started
      [INFO,StateManager] Starting
      [INFO,StateManager] Started
      [INFO,PersistenceManager] Starting
      [INFO,PersistenceManager] Started
      [INFO,JVMServerILService] Starting
      [INFO,JVMServerILService] Started
      [INFO,RMIServerILService] Starting
      [INFO,RMIServerILService] Started
      [INFO,OILServerILService] Starting
      [INFO,OILServerILService] JBossMQ OIL service available at :
      0.0.0.0/0.0.0.0:32953
      [INFO,OILServerILService] Started
      [INFO,UILServerILService] Starting
      [INFO,UILServerILService] JBossMQ UIL service available at :
      0.0.0.0/0.0.0.0:32954
      [INFO,UILServerILService] Started
      [INFO,TopicManager] Starting
      [INFO,TopicManager] Started
      [INFO,TopicManager] Starting
      [INFO,TopicManager] Started
      [INFO,TopicManager] Starting
      [INFO,TopicManager] Started
      [INFO,QueueManager] Starting
      [INFO,QueueManager] Started
      [INFO,QueueManager] Starting
      [INFO,QueueManager] Started
      [INFO,QueueManager] Starting
      [INFO,QueueManager] Started
      [INFO,QueueManager] Starting
      [INFO,QueueManager] Started
      [INFO,QueueManager] Starting
      [INFO,QueueManager] Started
      [INFO,QueueManager] Starting
      [INFO,QueueManager] Started
      [INFO,QueueManager] Starting
      [INFO,QueueManager] Started
      [INFO,QueueManager] Starting
      [INFO,QueueManager] Started
      [INFO,QueueManager] Starting
      [INFO,QueueManager] Started
      [INFO,QueueManager] Starting
      [INFO,QueueManager] Started
      [INFO,NamingAlias] Starting
      [INFO,NamingAlias] Started
      [INFO,NamingAlias] Starting
      [INFO,NamingAlias] Started
      [INFO,JMSProviderLoader] Starting
      [INFO,JMSProviderLoader] bound adapter DefaultJMSProvider to
      java:/DefaultJMSProvider
      [INFO,JMSProviderLoader] Started
      [INFO,ServerSessionPoolLoader] Starting
      [INFO,ServerSessionPoolLoader] pool factory StdJMSPool bound to
      java:/StdJMSPool[INFO,ServerSessionPoolLoader] Started
      [INFO,J2eeDeployer] Starting
      [INFO,J2eeDeployer] Cleaning up deployment directory
      [INFO,J2eeDeployer] Started
      [INFO,RARDeployer] Starting
      [INFO,RARDeployer] Started
      [INFO,MinervaNoTransCMFactory] Starting
      [INFO,MinervaNoTransCMFactory] Connection manager factory
      'MinervaNoTransCMFactory bound to 'java:/MinervaNoTransCMFactory'
      [INFO,MinervaNoTransCMFactory] Started
      [INFO,MinervaSharedLocalCMFactory] Starting
      [INFO,MinervaSharedLocalCMFactory] Connection manager factory
      'MinervaSharedLocalCMFactory bound to 'java:/MinervaSharedLocalCMFactory'
      [INFO,MinervaSharedLocalCMFactory] Started
      [INFO,MinervaXACMFactory] Starting
      [INFO,MinervaXACMFactory] Connection manager factory 'MinervaXACMFactory
      bound to 'java:/MinervaXACMFactory'
      [INFO,MinervaXACMFactory] Started
      [INFO,MinervaDS] Starting
      [INFO,MinervaDS] Started
      [INFO,JmsXA] Starting
      [INFO,JmsXA] Started
      [INFO,AutoDeployer] Starting
      [INFO,AutoDeployer] Watching directory:
      /home/saimon/JBoss-2.4.4_Tomcat-4.0.1/jboss/deploy
      [INFO,AutoDeployer] Watching directory:
      /home/saimon/JBoss-2.4.4_Tomcat-4.0.1/jboss/deploy/lib
      [INFO,AutoDeployer] Auto deploy of
      file:/home/saimon/JBoss-2.4.4_Tomcat-4.0.1/jboss/deploy/tomcat-test.ear
      [INFO,J2eeDeployer] Deploy J2EE application:
      file:/home/saimon/JBoss-2.4.4_Tomcat-4.0.1/jboss/deploy/tomcat-test.ear
      [INFO,J2eeDeployer] Create application tomcat-test.ear
      [INFO,J2eeDeployer] inflate and install WEB module tomcat-test.war
      [INFO,J2eeDeployer] install EJB module tomcat-test.jar
      [INFO,J2eeDeployer] add all ejb jar files to the common classpath
      [INFO,ContainerFactory]
      Deploying:file:/home/saimon/JBoss-2.4.4_Tomcat-4.0.1/jboss/tmp/deploy/Default/tomcat-test.ear
      [INFO,ContainerFactory] Deploying Optimized
      [INFO,ContainerFactory] Deploying NonOptimized
      [INFO,NonOptimized] Initializing
      [INFO,NonOptimized] Initialized
      [INFO,NonOptimized] Starting
      [INFO,NonOptimized] Started
      [INFO,Optimized] Initializing
      [INFO,Optimized] Initialized
      [INFO,Optimized] Starting
      [INFO,Optimized] Started
      [INFO,ContainerFactory] Deployed application:
      file:/home/saimon/JBoss-2.4.4_Tomcat-4.0.1/jboss/tmp/deploy/Default/tomcat-test.ear
      [INFO,J2eeDeployer] Starting module tomcat-test.war
      [INFO,EmbeddedCatalinaServiceSX] deploy, ctxPath=/jboss,
      warUrl=file:/home/saimon/JBoss-2.4.4_Tomcat-4.0.1/jboss/tmp/deploy/Default/tomcat-test.ear/web1001/
      [INFO,EmbeddedCatalinaServiceSX] WebappLoader[/jboss]: Deploying class
      repositories to work directory
      /home/saimon/JBoss-2.4.4_Tomcat-4.0.1/catalina/work/localhost/jboss
      [INFO,EmbeddedCatalinaServiceSX] StandardManager[/jboss]: Seeding random
      number generator class java.security.SecureRandom
      [INFO,EmbeddedCatalinaServiceSX] StandardManager[/jboss]: Seeding of random
      number generator has been completed
      [INFO,EmbeddedCatalinaServiceSX] ContextConfig[/jboss]: Added certificates ->
      request attribute Valve
      [INFO,EmbeddedCatalinaServiceSX] StandardWrapper[/jboss:default]: Loading
      container servlet default
      [INFO,EmbeddedCatalinaServiceSX] default: init
      [INFO,EmbeddedCatalinaServiceSX] StandardWrapper[/jboss:invoker]: Loading
      container servlet invoker
      [INFO,EmbeddedCatalinaServiceSX] invoker: init
      [INFO,EmbeddedCatalinaServiceSX] jsp: init
      [INFO,J2eeDeployer] J2EE application:
      file:/home/saimon/JBoss-2.4.4_Tomcat-4.0.1/jboss/deploy/tomcat-test.ear is
      deployed.
      [INFO,AutoDeployer] Auto deploy of
      file:/home/saimon/JBoss-2.4.4_Tomcat-4.0.1/jboss/deploy/lib/jbosspool-jdbc.rar
      [INFO,RARDeployer] Attempting to deploy RAR at
      'file:/home/saimon/JBoss-2.4.4_Tomcat-4.0.1/jboss/deploy/lib/jbosspool-jdbc.rar'
      [INFO,RARMetaData] Loading Minerva Resource Adapter for JDBC 1/2 drivers
      [INFO,RARMetaData] Required license terms present. See deployment descriptor.
      [WARN,MinervaDS] Not setting config property 'Driver'
      [WARN,MinervaDS] Not setting config property 'Password'
      [WARN,MinervaDS] Not setting config property 'UserName'
      [INFO,MinervaDS] Bound connection factory for resource adapter 'Minerva JDBC
      LocalTransaction ResourceAdapter' to JNDI name 'java:/MinervaDS'
      [INFO,AutoDeployer] Auto deploy of
      file:/home/saimon/JBoss-2.4.4_Tomcat-4.0.1/jboss/deploy/lib/jms-ra.rar
      [INFO,RARDeployer] Attempting to deploy RAR at
      'file:/home/saimon/JBoss-2.4.4_Tomcat-4.0.1/jboss/deploy/lib/jms-ra.rar'
      [WARN,JmsXA] Using default value 'java:DefaultJMSProvider' for config
      property 'JmsProviderAdapterJNDI'
      [INFO,JmsXA] FINE: Setting LogWriter:
      org.jboss.logging.log4j.CategoryWriter@6504bc
      [INFO,JmsXA] Bound connection factory for resource adapter 'JMS Adapter' to
      JNDI name 'java:/JmsXA'
      [INFO,AutoDeployer] Started
      [INFO,JMXAdaptorService] Starting
      [INFO,JMXAdaptorService] Started
      [INFO,RMIConnectorService] Starting
      [INFO,RMIConnectorService] Started
      [INFO,MailService] Starting
      [INFO,MailService] Mail Service 'Mail' bound to java:/Mail
      [INFO,MailService] Started
      [INFO,ServiceControl] Started 48 services
      [INFO,Default] JBoss-2.4.4 Started in 0m:35s