[jboss-user] [Installation, Configuration & DEPLOYMENT] - virtual hosting in jboss

abhi_shek do-not-reply at jboss.com
Mon Dec 29 23:27:54 EST 2008


I m using apache2.2, jboss 4.0.5.GA and mod_jk . then i have already configure mod_jk properly. My URL is open without port. I want to open the URL without directory. I have deploy Reports.ear in deploy folder and register the domain name but how can i map Reports.ear with domain name and also How can i map another project with another URL on same JBOSS.

And another question is my php website is working on Apache on same server.but when i m configure mod_jk then php site is not open.how can i map apache site in mod_jk .and how can i open jboss related site simultaneously apache site.

Server.xml

  |        <Engine name="jboss.web" defaultHost="shriram" jvmroute="worker1">
  |       <Logger className="org.jboss.web.tomcat.Log4jLogger"
  |             verbosityLevel="WARNING"
  |             category="org.jboss.web.localhost.Engine"/>
  | 
  |          <Host name="shriram"
  |             autoDeploy="false" deployOnStartup="false" deployXML="false">
  | 			<Alias>www.shriram.com</Alias>
  | 			<Alias>shriram.com</Alias>
  | <Valve className="org.apache.catalina.valves.AccessLogValve"
  |                 prefix=" tc.emerson.com _log." suffix=".log"
  |                 pattern="common" directory="${jboss.server.home.dir}/log"/>
  |        
  | 

jboss-web.xml

     <jboss-web>
  |    <!-- Uncomment the security-domain to enable security. You will
  |       need to edit the htmladaptor login configuration to setup the
  |       login modules used to authentication users.
  |    -->
  |    <security-domain>java:/jaas/jmx-console</security-domain>
  |    <context-root>/</context-root>
  |     <virtual-host>www.shriram.com</virtual-host>
  | </jboss-web>
  | 

Console Output
   at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
  |         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
  |         at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
  |         at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  |         at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
  |         at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:585)
  |         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  |         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  |         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  |         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  |         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  |         at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
  |         at $Proxy0.start(Unknown Source)
  |         at org.jboss.system.ServiceController.start(ServiceController.java:417)
  |         at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:585)
  |         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  |         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  |         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  |         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  |         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  |         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  |         at $Proxy4.start(Unknown Source)
  |         at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
  |         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
  |         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
  |         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
  |         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:585)
  |         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  |         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  |         at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
  |         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  |         at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
  |         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  |         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  |         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  |         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  |         at $Proxy5.deploy(Unknown Source)
  |         at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
  |         at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
  |         at org.jboss.Main.boot(Main.java:200)
  |         at org.jboss.Main$1.run(Main.java:490)
  |         at java.lang.Thread.run(Thread.java:595)
  | Caused by: javax.management.RuntimeOperationsException: Exception invoking method destroy
  |         at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:511)
  |         at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
  |         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  |         at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:173)
  |         at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
  |         at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
  |         ... 113 more
  | Caused by: java.lang.NullPointerException
  |         at java.io.File.<init>(File.java:194)
  |         at org.apache.catalina.core.StandardContext.getWorkPath(StandardContext.java:1825)
  |         at org.apache.catalina.startup.ContextConfig.destroy(ContextConfig.java:1251)
  |         at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:280)
  |         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
  |         at org.apache.catalina.core.StandardContext.destroy(StandardContext.java:4452)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:585)
  |         at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
  |         ... 118 more
  | 13:33:26,908 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
  | 
  | --- Incompletely deployed packages ---
  | org.jboss.deployment.DeploymentInfo at fc6817e9 { url=file:/opt/jboss-4.0.5.GA/server/default/deploy/http-invoker.sar/invoker.war/ }
  |   deployer: MBeanProxyExt[jboss.web:service=WebServer]
  |   status: Deployment FAILED reason: URL file:/opt/jboss-4.0.5.GA/server/default/deploy/http-invoker.sar/invoker.war/ deployment failed
  |   state: FAILED
  |   watch: file:/opt/jboss-4.0.5.GA/server/default/deploy/http-invoker.sar/invoker.war/WEB-INF/web.xml
  |   altDD: null
  |   lastDeployed: 1230537793935
  |   lastModified: 1230012914000
  |   mbeans:
  | 
  | org.jboss.deployment.DeploymentInfo at e1142d98 { url=file:/opt/jboss-4.0.5.GA/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war/ }
  |   deployer: MBeanProxyExt[jboss.web:service=WebServer]
  |   status: Deployment FAILED reason: URL file:/opt/jboss-4.0.5.GA/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war/ deployment failed
  |   state: FAILED
  |   watch: file:/opt/jboss-4.0.5.GA/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war/WEB-INF/web.xml
  |   altDD: null
  |   lastDeployed: 1230537794300
  |   lastModified: 1230012915000
  |   mbeans:
  | 
  | org.jboss.deployment.DeploymentInfo at ac5d7956 { url=file:/opt/jboss-4.0.5.GA/server/default/deploy/jbossws14.sar/jbossws-context.war }
  |   deployer: MBeanProxyExt[jboss.web:service=WebServer]
  |   status: Deployment FAILED reason: URL file:/opt/jboss-4.0.5.GA/server/default/tmp/deploy/tmp22489jbossws-context-exp.war/ deployment failed
  |   state: FAILED
  |   watch: file:/opt/jboss-4.0.5.GA/server/default/deploy/jbossws14.sar/jbossws-context.war
  |   altDD: null
  |   lastDeployed: 1230537794433
  |   lastModified: 1230537794000
  |   mbeans:
  | 
  | org.jboss.deployment.DeploymentInfo at 488d01e7 { url=file:/opt/jboss-4.0.5.GA/server/default/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/ }
  |   deployer: MBeanProxyExt[jboss.web:service=WebServer]
  |   status: Deployment FAILED reason: URL file:/opt/jboss-4.0.5.GA/server/default/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/ deployment failed
  |   state: FAILED
  |   watch: file:/opt/jboss-4.0.5.GA/server/default/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/WEB-INF/web.xml
  |   altDD: null
  |   lastDeployed: 1230537794599
  |   lastModified: 1230012914000
  |   mbeans:
  | 
  | org.jboss.deployment.DeploymentInfo at f0fc1182 { url=file:/opt/jboss-4.0.5.GA/server/default/deploy/jmx-console.war/ }
  |   deployer: MBeanProxyExt[jboss.web:service=WebServer]
  |   status: Deployment FAILED reason: URL file:/opt/jboss-4.0.5.GA/server/default/deploy/jmx-console.war/ deployment failed
  |   state: FAILED
  |   watch: file:/opt/jboss-4.0.5.GA/server/default/deploy/jmx-console.war/WEB-INF/web.xml
  |   altDD: null
  |   lastDeployed: 1230537798488
  |   lastModified: 1230012915000
  |   mbeans:
  | 
  | org.jboss.deployment.DeploymentInfo at 5f2e8511 { url=file:/opt/jboss-4.0.5.GA/server/default/deploy/Reports.ear }
  |   deployer: org.jboss.deployment.EARDeployer at 1522de2
  |   status: Deployment FAILED reason: Error during deploy; - nested throwable: (javax.management.RuntimeOperationsException: Exception invoking method destroy)
  |   state: FAILED
  |   watch: file:/opt/jboss-4.0.5.GA/server/default/deploy/Reports.ear
  |   altDD: null
  |   lastDeployed: 1230537801408
  |   lastModified: 1230537798000
  |   mbeans:
  | 
  | --- MBeans waiting for other MBeans ---
  | ObjectName: jboss.web.deployment:war=invoker.war,id=-60286999
  |   State: FAILED
  |   Reason: org.jboss.deployment.DeploymentException: URL file:/opt/jboss-4.0.5.GA/server/default/deploy/http-invoker.sar/invoker.war/ deployment failed
  | 
  | ObjectName: jboss.web.deployment:war=ROOT.war,id=-518771304
  |   State: FAILED
  |   Reason: org.jboss.deployment.DeploymentException: URL file:/opt/jboss-4.0.5.GA/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war/ deployment failed
  | 
  | ObjectName: jboss.web.deployment:war=jbossws-context.war,id=-1403160234
  |   State: FAILED
  |   Reason: org.jboss.deployment.DeploymentException: URL file:/opt/jboss-4.0.5.GA/server/default/tmp/deploy/tmp22489jbossws-context-exp.war/ deployment failed
  | 
  | ObjectName: jboss.web.deployment:war=jbossmq-httpil.war,id=1217200615
  |   State: FAILED
  |   Reason: org.jboss.deployment.DeploymentException: URL file:/opt/jboss-4.0.5.GA/server/default/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/ deployment failed
  | 
  | ObjectName: jboss.web.deployment:war=web-console.war,id=1601405380
  |   State: FAILED
  |   Reason: org.jboss.deployment.DeploymentException: URL file:/opt/jboss-4.0.5.GA/server/default/deploy/management/console-mgr.sar/web-console.war/ deployment failed
  |   I Depend On:
  |     jboss.admin:service=PluginManager
  | 
  | ObjectName: jboss.web.deployment:war=jmx-console.war,id=-251915902
  |   State: FAILED
  |   Reason: org.jboss.deployment.DeploymentException: URL file:/opt/jboss-4.0.5.GA/server/default/deploy/jmx-console.war/ deployment failed
  | 
  | ObjectName: jboss.web.deployment:war=Reports.war,id=275155900
  |   State: FAILED
  |   Reason: org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.management.RuntimeOperationsException: Exception invoking method destroy)
  | 
  | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
  | ObjectName: jboss.web.deployment:war=Reports.war,id=275155900
  |   State: FAILED
  |   Reason: org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.management.RuntimeOperationsException: Exception invoking method destroy)
  | 
  | ObjectName: jboss.web.deployment:war=ROOT.war,id=-518771304
  |   State: FAILED
  |   Reason: org.jboss.deployment.DeploymentException: URL file:/opt/jboss-4.0.5.GA/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war/ deployment failed
  | 
  | ObjectName: jboss.web.deployment:war=jbossmq-httpil.war,id=1217200615
  |   State: FAILED
  |   Reason: org.jboss.deployment.DeploymentException: URL file:/opt/jboss-4.0.5.GA/server/default/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/ deployment failed
  | 
  | ObjectName: jboss.web.deployment:war=invoker.war,id=-60286999
  |   State: FAILED
  |   Reason: org.jboss.deployment.DeploymentException: URL file:/opt/jboss-4.0.5.GA/server/default/deploy/http-invoker.sar/invoker.war/ deployment failed
  | 
  | ObjectName: jboss.web.deployment:war=web-console.war,id=1601405380
  |   State: FAILED
  |   Reason: org.jboss.deployment.DeploymentException: URL file:/opt/jboss-4.0.5.GA/server/default/deploy/management/console-mgr.sar/web-console.war/ deployment failed
  |   I Depend On:
  |     jboss.admin:service=PluginManager
  | 
  | ObjectName: jboss.web.deployment:war=jmx-console.war,id=-251915902
  |   State: FAILED
  |   Reason: org.jboss.deployment.DeploymentException: URL file:/opt/jboss-4.0.5.GA/server/default/deploy/jmx-console.war/ deployment failed
  | 
  | ObjectName: jboss.web.deployment:war=jbossws-context.war,id=-1403160234
  |   State: FAILED
  |   Reason: org.jboss.deployment.DeploymentException: URL file:/opt/jboss-4.0.5.GA/server/default/tmp/deploy/tmp22489jbossws-context-exp.war/ deployment failed
  | 
  | 
  | 13:33:26,954 WARN  [Tomcat5] Failed to startConnectors
  | javax.management.InstanceNotFoundException: jboss.web:type=Service,serviceName=jboss.web is not registered.
  |         at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:523)
  |         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:653)
  |         at org.jboss.web.tomcat.tc5.Tomcat5.startConnectors(Tomcat5.java:585)
  |         at org.jboss.web.tomcat.tc5.Tomcat5.handleNotification(Tomcat5.java:627)
  |         at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:585)
  |         at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
  |         at $Proxy40.handleNotification(Unknown Source)
  |         at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:127)
  |         at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.java:108)
  |         at org.jboss.system.server.ServerImpl.sendNotification(ServerImpl.java:908)
  |         at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:497)
  |         at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
  |         at org.jboss.Main.boot(Main.java:200)
  |         at org.jboss.Main$1.run(Main.java:490)
  |         at java.lang.Thread.run(Thread.java:595)
  | 13:33:26,955 INFO  [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 24s:458m

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4198852#4198852

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4198852



More information about the jboss-user mailing list