[jboss-user] [Installation, Configuration & DEPLOYMENT] - Tomcat to JBoss migration question

nporwal do-not-reply at jboss.com
Fri May 2 18:50:19 EDT 2008


I have an application that runs well in Tomcat6. Under the conf\Catalina\localhost I have a viewData.xml file with these details:


  | <Context path="/viewData" docBase="C:\\viewData\\web">
  | <Logger className="org.apache.catalina.logger.FileLogger"
  |              prefix="viewData." suffix=".txt"
  |              timestamp="true"/>
  | <Resource
  |       name="jms/viewData"
  |       auth="Container"
  |       type="com.ibm.mq.jms.MQQueueConnectionFactory"
  |       factory="com.ibm.mq.jms.MQQueueConnectionFactoryFactory"
  |       description="JMS Queue Connection Factory for sending messages"
  |       HOST="DEVMQHOST"
  |       PORT="1414"
  |       CHAN="JAVA.CHANNEL"
  |       TRAN="1"                                          
  |       QMGR="DEVMQMGR"/>
  | 
  |    <Resource
  |       name="jms/viewDataSend"
  |       auth="Container"
  |       type="com.ibm.mq.jms.MQQueue"
  |       factory="com.ibm.mq.jms.MQQueueFactory"
  |       description="JMS Queue for sending"
  |       QU="VIEWDATA.SEND"/>
  | 	
  |       <Resource
  |       name="jms/viewDataReceive"
  |       auth="Container"
  |       type="com.ibm.mq.jms.MQQueue"
  |       factory="com.ibm.mq.jms.MQQueueFactory"
  |       description="JMS Queue for receiving"
  |       QU="VIEWDATA.RECEIVE"/>      
  | </Context>
  | 

How do I deploy this application in Jboss 4.2.2.GA? 

1. I tried putting the web folder in the server/default/deploy folder as viewData. When I tried accessing it via the browser, I got the 404 message "The requested resource (/viewData/.....)  is not available.

2. I moved the folder out of server/default/deploy and moved it to D:\viewData
In the default/deploy/jboss-web.deployer/server.xml file, I added this code snippet under the  section. 


  | <Context path="/viewData" docBase="C:\\viewData"/>
  | 

I also added a  WEB.INF/jboss-web.xml

  | <jboss-web>
  | <Context path="/viewData">
  | <Logger className="org.apache.catalina.logger.FileLogger"
  |              prefix="viewData." suffix=".txt"
  |              timestamp="true"/>
  | <Resource
  |       name="jms/viewData"
  |       auth="Container"
  |       type="com.ibm.mq.jms.MQQueueConnectionFactory"
  |       factory="com.ibm.mq.jms.MQQueueConnectionFactoryFactory"
  |       description="JMS Queue Connection Factory for sending messages"
  |       HOST="DEVMQHOST"
  |       PORT="1414"
  |       CHAN="JAVA.CHANNEL"
  |       TRAN="1"                                          
  |       QMGR="DEVMQMGR"/>
  | 
  |    <Resource
  |       name="jms/viewDataSend"
  |       auth="Container"
  |       type="com.ibm.mq.jms.MQQueue"
  |       factory="com.ibm.mq.jms.MQQueueFactory"
  |       description="JMS Queue for sending"
  |       QU="VIEWDATA.SEND"/>
  | 	
  |       <Resource
  |       name="jms/viewDataQueue"
  |       auth="Container"
  |       type="com.ibm.mq.jms.MQQueue"
  |       factory="com.ibm.mq.jms.MQQueueFactory"
  |       description="JMS Queue for receiving"
  |       QU="VIEWDATA.RECEIVE"/>      
  | </Context>
  | </jboss-web>
  | 

When I tried accessing the URL again, I got  this error message:


  | org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'viewDataService' defined in ServletContext resource [/WEB-INF/viewData-servlet.xml]: Cannot resolve reference to bean .....
  | 

What do I need to change?

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

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



More information about the jboss-user mailing list