File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes JBoss and Tomcat Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss and Tomcat Error" Watch "JBoss and Tomcat Error" New topic
Author

JBoss and Tomcat Error

B Wiley Snyder
Ranch Hand

Joined: Nov 26, 2003
Posts: 50
Hello, I'm using jboss 2.2.5 . When I go into the bin of tomcat and start it up I get the root page when I go to http://localhost:8080. But when I startup in the bin directory of Jboss I get an error 500 when I go to http://localhost:8080/jmx-console . I am able to access http://localhost:8082 . So I'm thinking some reason Jboss cannot see tomcat. Here is the logged error I recieve when I try to get to the console......

[15:19:47,046,EmbeddedCatalinaServiceSX] StandardHost[localhost]: MAPPING configuration error for request URI
[15:19:47,046,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(Unknown Source)

Could someone give me a clue ? I see it's the mapping somehow but what file do I need to correct?
B Wiley Snyder
Ranch Hand

Joined: Nov 26, 2003
Posts: 50
This is the log file before the error when it starts if this helps??? What file do I need to change in JBOSS. Is it possibly the test.ear that is in the deploy directory? The wrong path may be set up there?

[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:/timedCa
cheFactory
[INFO,JaasSecurityManagerService] startService, SecurityProxyFactory=org.jboss.s
ecurity.SubjectSecurityProxyFactory@1e232b5
[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 s
ervercollector
[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 thre
ad
[INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8080][1] Starting background thre
ad
[INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8080][2] Starting background thre
ad
[INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8080][3] Starting background thre
ad
[INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8080][4] Starting background thre
ad
[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:182
1
[INFO,OILServerILService] Started
[INFO,UILServerILService] Starting
[INFO,UILServerILService] JBossMQ UIL service available at : 0.0.0.0/0.0.0.0:182
2
[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:/DefaultJMSPro
vider
[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 'MinervaNoTransCMFacto
ry bound to 'java:/MinervaNoTransCMFactory'
[INFO,MinervaNoTransCMFactory] Started
[INFO,MinervaSharedLocalCMFactory] Starting
[INFO,MinervaSharedLocalCMFactory] Connection manager factory 'MinervaSharedLoca
lCMFactory bound to 'java:/MinervaSharedLocalCMFactory'
[INFO,MinervaSharedLocalCMFactory] Started
[INFO,MinervaXACMFactory] Starting
[INFO,MinervaXACMFactory] Connection manager factory 'MinervaXACMFactory bound t
o 'java:/MinervaXACMFactory'
[INFO,MinervaXACMFactory] Started
[INFO,MinervaDS] Starting
[INFO,MinervaDS] Started
[INFO,JmsXA] Starting
[INFO,JmsXA] Started
[INFO,AutoDeployer] Starting
[INFO,AutoDeployer] Watching directory: C:\JBoss-2.4.4_Tomcat-4.0.1\jboss\deploy

[INFO,AutoDeployer] Watching directory: C:\JBoss-2.4.4_Tomcat-4.0.1\jboss\deploy
\lib
[INFO,AutoDeployer] Auto deploy of file:/C:/JBoss-2.4.4_Tomcat-4.0.1/jboss/deplo
y/tomcat-test.ear
[INFO,J2eeDeployer] Deploy J2EE application: file:/C:/JBoss-2.4.4_Tomcat-4.0.1/j
boss/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:/C:/JBoss-2.4.4_Tomcat-4.0.1/jboss/tmp/de
ploy/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:/C:/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:/C:/JBoss-2
.4.4_Tomcat-4.0.1/jboss/tmp/deploy/Default/tomcat-test.ear/web1001/
[INFO,EmbeddedCatalinaServiceSX] WebappLoader[/jboss]: Deploying class repositor
ies to work directory C:\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 numb
er generator has been completed
[INFO,EmbeddedCatalinaServiceSX] ContextConfig[/jboss]: Added certificates -> re
quest attribute Valve
[INFO,EmbeddedCatalinaServiceSX] StandardWrapper[/jboss efault]: Loading contai
ner servlet default
[INFO,EmbeddedCatalinaServiceSX] default: init
[INFO,EmbeddedCatalinaServiceSX] StandardWrapper[/jboss:invoker]: Loading contai
ner servlet invoker
[INFO,EmbeddedCatalinaServiceSX] invoker: init
[INFO,EmbeddedCatalinaServiceSX] jsp: init
[INFO,J2eeDeployer] J2EE application: file:/C:/JBoss-2.4.4_Tomcat-4.0.1/jboss/de
ploy/tomcat-test.ear is deployed.
[INFO,AutoDeployer] Auto deploy of file:/C:/JBoss-2.4.4_Tomcat-4.0.1/jboss/deplo
y/lib/jms-ra.rar
[INFO,RARDeployer] Attempting to deploy RAR at 'file:/C:/JBoss-2.4.4_Tomcat-4.0.
1/jboss/deploy/lib/jms-ra.rar'
[WARN,JmsXA] Using default value 'java efaultJMSProvider' for config property '
JmsProviderAdapterJNDI'
[INFO,JmsXA] FINE: Setting LogWriter: org.jboss.logging.log4j.CategoryWriter@aea
710
[INFO,JmsXA] Bound connection factory for resource adapter 'JMS Adapter' to JNDI
name 'java:/JmsXA'
[INFO,AutoDeployer] Auto deploy of file:/C:/JBoss-2.4.4_Tomcat-4.0.1/jboss/deplo
y/lib/jbosspool-jdbc.rar
[INFO,RARDeployer] Attempting to deploy RAR at 'file:/C:/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 'Password'
[WARN,MinervaDS] Not setting config property 'Driver'
[WARN,MinervaDS] Not setting config property 'UserName'
[INFO,MinervaDS] Bound connection factory for resource adapter 'Minerva JDBC Loc
alTransaction ResourceAdapter' to JNDI name 'java:/MinervaDS'
[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:17s.641
B Wiley Snyder
Ranch Hand

Joined: Nov 26, 2003
Posts: 50
I need to add to that I can get the test application working here ... http://localhost:8080/jboss/index.html . But I still can't see the jboss console at http://localhost:8080/jmx-console/ I get still get http 500 error???
B Wiley Snyder
Ranch Hand

Joined: Nov 26, 2003
Posts: 50
I figured out the version I am using 2.4.4 uses http://localhost:8082 to access the jmx agent . I don't even think it has a web-console. Anyway, I'd like to thank myself again for all the answers !
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JBoss and Tomcat Error
 
Similar Threads
JSPs not running on Tomcat -4.0.1 version
JSPs not running on Tomcat -4.0.1 version
HTTP Status 500
problem running jsp in tomcat4.0
The CATALINA_HOME enviornment variable