MVC Deployment on two servers
Hi,
I'm developing a web application using the model MVC. I want to deploy the model in a server and the viewcontroller project in another server. So, I did the following:
1. I create a new application workspace selecting the [Web Application -Defautl] with name ZTestRemote1
2. I have a connection to hr table.
3. I create a new Business Components from tables and select the departments table. I created an entity, a viewobject and an application module for departments table.
4. I double clik on the appmodule and selected the remote node and I have marked the Remotable Applicaton Module and selected EJB Session Bean.
5. I selected the checkbox "Enable Client Data Binding", Interface "Remote" and Transaction "Bean Managed".
6. I created a new Business Componets EJB Session Bean Deployment profile, with the conection to a OC4J standalone on the first server.
7. I selected the Configuration of the AppModule and edit the configuration named Oracle9ias in order to put the credentials and principal values wich corresponde to password and username (they are the same admin/admin).
8.On the viewcontroller project I created a datapage with the name test. I edited the page and drag the departments view as read only table.
9. I clicked on the DataBindings.cpx file, on the structure pane I clickd on AppModuleDataControl, and in the inspector pane I changed the configuration from AppModuleLocal to AppModule9ias which is the remote configuration.
10. I created a new WAR File deployment profile for the view controller project with name client and web context root as test.
11. I deploy the Model on the first server and the view controller on another server.
12. Finally I execute the page test.do, but I recieved the message which is bellow.
I would like to know if I'm omiting any step or what I'm doing wrong in order to get my page working with my model in one server and the view controller in anotherone.
Thanks,
Pedro
JBO-30003: The application pool (ec.com.carrasco.model.AppModule9iAS) failed to checkout an application module due to the following exception:
....
...
...
## Detail 0 ##
oracle.jbo.JboException: JBO-25222: Unable to create application module.
at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:156)
at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule
...
...
...
## Detail 0 ##
javax.naming.NamingException: Error instantiating web-app JNDI-context: No location specified and no suitable instance of the type 'ec.com.carrasco.model.common.ejb.beanmanaged.RemoteAppModule' found for the ejb-ref ejb/AppModuleBean
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpApplication.getEnvironmentContext(HttpApplication.java:6648)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.ApplicationContext.lookup(ApplicationContext.java:160)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.ApplicationContext.lookup(ApplicationContext.java:119)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
....
....
....