Hi
I vaguely recall a similar problem trying to port AB to JBoss - I will
try to dig into it.
Meanwhile, I hope our AB porting to the Trifork server can give you a
few hints about where to go.
I have attached our deployment plans (ie. server specific deployment
desc.) to this mail - they depend on a number of resources
(jdbc/adventure/AdventureDB, jms/activity/QueueConnectionFactory,
jms/lodging/QueueConnectionFactory, jms/airline/QueueConnectionFactory,
jms/opc/QueueConnectionFactory, jms/activity/ActivityQueue,
jms/lodging/LodgingQueue, jms/airline/AirlineQueue,
jms/opc/WorkFlowMgrQueue, jms/opc/CRMQueue,
jms/opc/WebServiceBrokerQueue, jms/opc/OrderFillerQueue,
mail/opc/MailSession, principal: guest/guest, principal: j2ee/j2ee)
/Preben
Jacek Laskowski wrote:
Arun Venugopal wrote:
Hi Jacek,
We tried to see if we can get Adventure builder to work on geronimo.
We managed to get all the modules (ears) deployed. Currently we are
dealing with an Axis fault (seems to be some sort of a url not found
issue, we are yet to dig deep into it). We had an issue with "unknown
primary key". We had to add a new primary key field (changed the EJB
source to add getters and setters) and a key generator for solving
it. Hopefully once we have resolved the axis fault we will have a
fully working adventure builder.
Hi Arun,
Whow! That's excellent. Would you be able to share the plans so that I
won't waste my time (and those who await the app fully running)
figuring them out again? These mentioned issues seem very similar to
what were showing up during the Pet Store deployment endeavour and
hopefully two of us could achieve more working together than
separately(there're tons of issues to work out and personally I wish I
could finally take a look at the console).
You could be able to see what's already available in the repository.
Just check out sandbox/adventurebuilder if you don't need the rest.
Arun
Jacek
<?xml version="1.0" ?>
<!DOCTYPE trifork-app-conf SYSTEM "file:/opt/cnc-home/projects/devel/easnt/install/lib/dtd/trifork-app-conf_2_0.dtd">
<trifork-app-conf>
<app-name>OPC </app-name>
<enterprise-beans>
<ejb>
<ejb-name>PurchaseOrderBean </ejb-name>
<jndi-name>ejb/local/opc/po/PurchaseOrder </jndi-name>
<cmp>
<table-name>PurchaseOrderBean</table-name>
<create-table-deploy>true</create-table-deploy>
</cmp>
</ejb>
<ejb>
<ejb-name>CreditCardBean </ejb-name>
<jndi-name>ejb/local/opc/po/CreditCard </jndi-name>
<cmp>
<table-name>CreditCardBean</table-name>
<create-table-deploy>true</create-table-deploy>
</cmp>
</ejb>
<ejb>
<ejb-name>ActivityBean </ejb-name>
<jndi-name>ejb/local/opc/po/Activity </jndi-name>
<cmp>
<table-name>ActivityBean</table-name>
<create-table-deploy>true</create-table-deploy>
</cmp>
</ejb>
<ejb>
<ejb-name>TransportationBean </ejb-name>
<jndi-name>ejb/local/opc/po/Transportation </jndi-name>
<cmp>
<table-name>TransportationBean</table-name>
<create-table-deploy>true</create-table-deploy>
</cmp>
</ejb>
<ejb>
<ejb-name>ContactInfoBean </ejb-name>
<jndi-name>ejb/local/opc/po/ContactInfo </jndi-name>
<cmp>
<table-name>ContactInfoBean</table-name>
<create-table-deploy>true</create-table-deploy>
</cmp>
</ejb>
<ejb>
<ejb-name>AddressBean </ejb-name>
<jndi-name>ejb/local/opc/po/Address </jndi-name>
<cmp>
<table-name>AddressBean</table-name>
<create-table-deploy>true</create-table-deploy>
</cmp>
</ejb>
<ejb>
<ejb-name>LodgingBean </ejb-name>
<jndi-name>ejb/local/opc/po/Lodging </jndi-name>
<cmp>
<table-name>LodgingBean</table-name>
<create-table-deploy>true</create-table-deploy>
</cmp>
</ejb>
<ejb>
<ejb-name>PoEndpointBean </ejb-name>
<jndi-name>PoEndpointBean </jndi-name>
<max-pool-size>60 </max-pool-size>
<default-pool-size>0 </default-pool-size>
<resource-ref>
<res-ref-name>jms/opc/QueueConnectionFactory </res-ref-name>
<jndi-name>jms/opc/QueueConnectionFactory </jndi-name>
<resource-principal>
<principal>guest </principal>
<password>guest </password>
</resource-principal>
</resource-ref>
<resource-env-ref>
<resource-env-ref-name>jms/opc/WorkFlowMgrQueue </resource-env-ref-name>
<jndi-name>jms/opc/WorkFlowMgrQueue </jndi-name>
</resource-env-ref>
<webservice-endpoint>
<port-component-name>PurchaseOrderIntfPort </port-component-name>
<endpoint-address-uri>webservice/PoEndpointBean </endpoint-address-uri>
<transport-guarantee/>
</webservice-endpoint>
</ejb>
<ejb>
<ejb-name>BrokerServiceBean </ejb-name>
<jndi-name>BrokerServiceBean </jndi-name>
<max-pool-size>60 </max-pool-size>
<default-pool-size>0 </default-pool-size>
<resource-ref>
<res-ref-name>jms/opc/QueueConnectionFactory </res-ref-name>
<jndi-name>jms/opc/QueueConnectionFactory </jndi-name>
<resource-principal>
<principal>guest </principal>
<password>guest </password>
</resource-principal>
</resource-ref>
<resource-env-ref>
<resource-env-ref-name>jms/opc/WorkFlowMgrQueue </resource-env-ref-name>
<jndi-name>jms/opc/WorkFlowMgrQueue </jndi-name>
</resource-env-ref>
<webservice-endpoint>
<port-component-name>BrokerServiceIntfPort </port-component-name>
<endpoint-address-uri>webservice/WebServiceBroker </endpoint-address-uri>
<transport-guarantee/>
</webservice-endpoint>
</ejb>
<ejb>
<ejb-name>OtEndpointBean </ejb-name>
<jndi-name>OtEndpointBean </jndi-name>
<max-pool-size>60 </max-pool-size>
<default-pool-size>0 </default-pool-size>
<webservice-endpoint>
<port-component-name>OrderTrackingIntfPort </port-component-name>
<endpoint-address-uri>webservice/OtEndpointBean </endpoint-address-uri>
<transport-guarantee/>
</webservice-endpoint>
</ejb>
<ejb>
<ejb-name>WorkFlowManagerBean </ejb-name>
<jndi-name>jms/opc/WorkFlowMgrQueue </jndi-name>
<mdb-connection-factory>
<jndi-name>jms/opc/QueueConnectionFactory </jndi-name>
<resource-principal>
<principal>guest </principal>
<password>guest </password>
</resource-principal>
</mdb-connection-factory>
<env-entry>
<env-entry-name>param/CreditCardServiceURL</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>http://localhost:8080/webservice3/CreditCardService</env-entry-value>
</env-entry>
<resource-ref>
<res-ref-name>jms/opc/QueueConnectionFactory </res-ref-name>
<jndi-name>jms/opc/QueueConnectionFactory </jndi-name>
<resource-principal>
<principal>guest </principal>
<password>guest </password>
</resource-principal>
</resource-ref>
<resource-env-ref>
<resource-env-ref-name>jms/opc/OrderFillerQueue </resource-env-ref-name>
<jndi-name>jms/opc/OrderFillerQueue </jndi-name>
</resource-env-ref>
<resource-env-ref>
<resource-env-ref-name>jms/opc/CRMQueue </resource-env-ref-name>
<jndi-name>jms/opc/CRMQueue </jndi-name>
</resource-env-ref>
<service-ref>
<service-ref-name>service/CreditCardService</service-ref-name>
<wsdl-override>file:/${java.io.tmpdir}/wsdl/CreditCardService.wsdl</wsdl-override>
</service-ref>
</ejb>
<ejb>
<ejb-name>OrderFillerBean </ejb-name>
<jndi-name>jms/opc/OrderFillerQueue </jndi-name>
<mdb-connection-factory>
<jndi-name>jms/opc/QueueConnectionFactory </jndi-name>
<resource-principal>
<principal>guest </principal>
<password>guest </password>
</resource-principal>
</mdb-connection-factory>
<resource-ref>
<res-ref-name>jms/opc/QueueConnectionFactory </res-ref-name>
<jndi-name>jms/opc/QueueConnectionFactory </jndi-name>
<resource-principal>
<principal>guest </principal>
<password>guest </password>
</resource-principal>
</resource-ref>
<resource-env-ref>
<resource-env-ref-name>jms/opc/WebServiceBrokerQueue </resource-env-ref-name>
<jndi-name>jms/opc/WebServiceBrokerQueue </jndi-name>
</resource-env-ref>
</ejb>
<ejb>
<ejb-name>BrokerRequestorBean </ejb-name>
<jndi-name>jms/opc/WebServiceBrokerQueue </jndi-name>
<mdb-connection-factory>
<jndi-name>jms/opc/QueueConnectionFactory </jndi-name>
<resource-principal>
<principal>guest </principal>
<password>guest </password>
</resource-principal>
</mdb-connection-factory>
<env-entry>
<env-entry-name>param/LodgingServiceURL</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>http://localhost:8080/webservice4/LodgingPOService</env-entry-value>
</env-entry>
<env-entry>
<env-entry-name>param/AirlineServiceURL</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>http://localhost:8080/webservice2/AirlinePOService</env-entry-value>
</env-entry>
<env-entry>
<env-entry-name>param/ActivityServiceURL</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>http://localhost:8080/webservice1/ActivityPOService</env-entry-value>
</env-entry>
<service-ref>
<service-ref-name>service/ActivityPOService</service-ref-name>
<wsdl-override>file:/${java.io.tmpdir}/wsdl/ActivityPurchaseOrderService.wsdl</wsdl-override>
</service-ref>
<service-ref>
<service-ref-name>service/LodgingPOService</service-ref-name>
<wsdl-override>file:/${java.io.tmpdir}/wsdl/LodgingPurchaseOrderService.wsdl</wsdl-override>
</service-ref>
<service-ref>
<service-ref-name>service/AirlinePOService</service-ref-name>
<wsdl-override>file:/${java.io.tmpdir}/wsdl/AirlinePurchaseOrderService.wsdl</wsdl-override>
</service-ref>
</ejb>
<ejb>
<ejb-name>CRMBean </ejb-name>
<jndi-name>jms/opc/CRMQueue </jndi-name>
<mdb-connection-factory>
<jndi-name>jms/opc/QueueConnectionFactory </jndi-name>
<resource-principal>
<principal>guest </principal>
<password>guest </password>
</resource-principal>
</mdb-connection-factory>
<resource-ref>
<res-ref-name>mail/MailSession </res-ref-name>
<jndi-name>mail/opc/MailSession </jndi-name>
</resource-ref>
</ejb>
<cmp-resource>
<jndi-name>jdbc/adventure/AdventureDB </jndi-name>
<resource-principal>
<principal>adventurebuilder </principal>
<password>adventurebuilder </password>
</resource-principal>
</cmp-resource>
</enterprise-beans>
<enterprise-beans>
<ejb>
<ejb-name>ProcessManagerBean </ejb-name>
<jndi-name>ejb/local/processmanager/ProcessManager </jndi-name>
<max-pool-size>60 </max-pool-size>
<default-pool-size>0 </default-pool-size>
</ejb>
<ejb>
<ejb-name>ManagerBean </ejb-name>
<jndi-name>ejb/local/processmanager/Manager </jndi-name>
</ejb>
<cmp-resource>
<jndi-name>jdbc/adventure/AdventureDB </jndi-name>
<resource-principal>
<principal>adventurebuilder </principal>
<password>adventurebuilder </password>
</resource-principal>
</cmp-resource>
<webservice-description>
<webservice-description-name>OpcPurchaseOrderService</webservice-description-name>
<wsdl-publish-location>file:/${java.io.tmpdir}/wsdl/OpcPurchaseOrderService.wsdl</wsdl-publish-location>
</webservice-description>
<webservice-description>
<webservice-description-name>OpcOrderTrackingService</webservice-description-name>
<wsdl-publish-location>file:/${java.io.tmpdir}/wsdl/OpcOrderTrackingService.wsdl</wsdl-publish-location>
</webservice-description>
<webservice-description>
<webservice-description-name>WebServiceBroker</webservice-description-name>
<wsdl-publish-location>file:/${java.io.tmpdir}/wsdl/WebServiceBroker.wsdl</wsdl-publish-location>
</webservice-description>
</enterprise-beans>
</trifork-app-conf>
<?xml version="1.0" ?>
<!DOCTYPE trifork-app-conf SYSTEM "file:/opt/cnc-home/projects/devel/easnt/install/lib/dtd/trifork-app-conf_2_0.dtd">
<trifork-app-conf>
<app-name>ActivitySupplier </app-name>
<enterprise-beans>
<ejb>
<ejb-name>ActivityPurchaseOrderBean </ejb-name>
<jndi-name>ejb/local/activitysupplier/ActivityPurchaseOrder </jndi-name>
<cmp>
<table-name>ActivityPurchaseOrderBean</table-name>
<create-table-deploy>true</create-table-deploy>
</cmp>
</ejb>
<ejb>
<ejb-name>ActivityDetailsBean </ejb-name>
<jndi-name>ejb/local/activitysupplier/ActivityDetails </jndi-name>
<cmp>
<table-name>ActivityDetailsBean</table-name>
<create-table-deploy>true</create-table-deploy>
</cmp>
</ejb>
<ejb>
<ejb-name>ActivityPOEndpointBean </ejb-name>
<jndi-name>ActivityPOEndpointBean </jndi-name>
<max-pool-size>60 </max-pool-size>
<default-pool-size>0 </default-pool-size>
<resource-ref>
<res-ref-name>jms/activity/QueueConnectionFactory </res-ref-name>
<jndi-name>jms/activity/QueueConnectionFactory </jndi-name>
<resource-principal>
<principal>guest </principal>
<password>guest </password>
</resource-principal>
</resource-ref>
<resource-env-ref>
<resource-env-ref-name>jms/activity/ActivityQueue </resource-env-ref-name>
<jndi-name>jms/activity/ActivityQueue </jndi-name>
</resource-env-ref>
<webservice-endpoint>
<port-component-name>ActivityPOIntfPort </port-component-name>
<endpoint-address-uri>webservice1/ActivityPOService </endpoint-address-uri>
<transport-guarantee/>
</webservice-endpoint>
</ejb>
<ejb>
<ejb-name>ActivityMessageEJB </ejb-name>
<jndi-name>jms/activity/ActivityQueue </jndi-name>
<mdb-connection-factory>
<jndi-name>jms/activity/QueueConnectionFactory </jndi-name>
<resource-principal>
<principal>guest</principal>
<password>guest</password>
</resource-principal>
</mdb-connection-factory>
<service-ref>
<service-ref-name>service/WebServiceBroker</service-ref-name>
<wsdl-override>file:/${java.io.tmpdir}/wsdl/WebServiceBroker.wsdl</wsdl-override>
</service-ref>
</ejb>
<cmp-resource>
<jndi-name>jdbc/adventure/AdventureDB </jndi-name>
<resource-principal>
<principal>adventurebuilder </principal>
<password>adventurebuilder </password>
</resource-principal>
</cmp-resource>
<webservice-description>
<webservice-description-name>ActivityPurchaseOrderService</webservice-description-name>
<wsdl-publish-location>file:/${java.io.tmpdir}/wsdl/ActivityPurchaseOrderService.wsdl</wsdl-publish-location>
</webservice-description>
</enterprise-beans>
</trifork-app-conf>
<?xml version="1.0" ?>
<!DOCTYPE trifork-app-conf SYSTEM "file:/opt/cnc-home/projects/devel/easnt/install/lib/dtd/trifork-app-conf_2_0.dtd">
<trifork-app-conf>
<app-name>AirlineSupplier </app-name>
<enterprise-beans>
<ejb>
<ejb-name>AirlineOrderBean </ejb-name>
<jndi-name>ejb/local/airlinesupplier/AirlineOrder </jndi-name>
<cmp>
<table-name>AirlineOrderBean</table-name>
<create-table-deploy>true</create-table-deploy>
</cmp>
</ejb>
<ejb>
<ejb-name>AirlinePOEndpointBean </ejb-name>
<jndi-name>AirlinePOEndpointBean </jndi-name>
<max-pool-size>60 </max-pool-size>
<default-pool-size>0 </default-pool-size>
<resource-ref>
<res-ref-name>jms/airline/QueueConnectionFactory </res-ref-name>
<jndi-name>jms/airline/QueueConnectionFactory </jndi-name>
<resource-principal>
<principal>guest </principal>
<password>guest </password>
</resource-principal>
</resource-ref>
<resource-env-ref>
<resource-env-ref-name>jms/airline/AirlineQueue </resource-env-ref-name>
<jndi-name>jms/airline/AirlineQueue </jndi-name>
</resource-env-ref>
<webservice-endpoint>
<port-component-name>AirlinePOIntfPort </port-component-name>
<endpoint-address-uri>webservice2/AirlinePOService </endpoint-address-uri>
<transport-guarantee/>
</webservice-endpoint>
</ejb>
<ejb>
<ejb-name>AirlineMessageEJB </ejb-name>
<jndi-name>jms/airline/AirlineQueue </jndi-name>
<mdb-connection-factory>
<jndi-name>jms/airline/QueueConnectionFactory </jndi-name>
<resource-principal>
<principal>guest </principal>
<password>guest </password>
</resource-principal>
</mdb-connection-factory>
<service-ref>
<service-ref-name>service/WebServiceBroker</service-ref-name>
<wsdl-override>file:/${java.io.tmpdir}/wsdl/WebServiceBroker.wsdl</wsdl-override>
</service-ref>
</ejb>
<cmp-resource>
<jndi-name>jdbc/adventure/AdventureDB </jndi-name>
<resource-principal>
<principal>adventurebuilder </principal>
<password>adventurebuilder </password>
</resource-principal>
</cmp-resource>
<webservice-description>
<webservice-description-name>AirlinePurchaseOrderService</webservice-description-name>
<wsdl-publish-location>file:/${java.io.tmpdir}/wsdl/AirlinePurchaseOrderService.wsdl</wsdl-publish-location>
</webservice-description>
</enterprise-beans>
</trifork-app-conf>
<?xml version="1.0" ?>
<!DOCTYPE trifork-app-conf SYSTEM "file:/opt/cnc-home/projects/devel/easnt/install/lib/dtd/trifork-app-conf_2_0.dtd">
<trifork-app-conf>
<app-name>Bank </app-name>
<enterprise-beans>
<ejb>
<ejb-name>CreditCardEndpointBean </ejb-name>
<jndi-name>CreditCardEndpointBean </jndi-name>
<max-pool-size>60 </max-pool-size>
<default-pool-size>0 </default-pool-size>
<webservice-endpoint>
<port-component-name>CreditCardIntfPort </port-component-name>
<endpoint-address-uri>webservice3/CreditCardService </endpoint-address-uri>
<transport-guarantee/>
</webservice-endpoint>
</ejb>
<webservice-description>
<webservice-description-name>CreditCardService</webservice-description-name>
<wsdl-publish-location>file:/${java.io.tmpdir}/wsdl/CreditCardService.wsdl</wsdl-publish-location>
</webservice-description>
</enterprise-beans>
</trifork-app-conf>
<?xml version="1.0" ?>
<!DOCTYPE trifork-app-conf SYSTEM "file:/opt/cnc-home/projects/devel/easnt/install/lib/dtd/trifork-app-conf_2_0.dtd">
<trifork-app-conf>
<app-name>ConsumerWebsite </app-name>
<web-app>
<context-root>ab</context-root>
<resource-ref>
<res-ref-name>jdbc/CatalogDB </res-ref-name>
<jndi-name>jdbc/adventure/AdventureDB </jndi-name>
<resource-principal>
<principal>adventurebuilder </principal>
<password>adventurebuilder </password>
</resource-principal>
</resource-ref>
<service-ref>
<service-ref-name>service/OpcPurchaseOrderService </service-ref-name>
<port-info>
<service-endpoint-interface>com.sun.j2ee.blueprints.consumerwebsite.actions.PurchaseOrderIntf </service-endpoint-interface>
</port-info>
<wsdl-override>file:/${java.io.tmpdir}/wsdl/OpcPurchaseOrderService.wsdl</wsdl-override>
</service-ref>
<service-ref>
<service-ref-name>service/OpcOrderTrackingService </service-ref-name>
<port-info>
<service-endpoint-interface>com.sun.j2ee.blueprints.consumerwebsite.actions.OrderTrackingIntf </service-endpoint-interface>
</port-info>
<wsdl-override>file:/tmp/wsdl/OpcOrderTrackingService.wsdl</wsdl-override>
</service-ref>
</web-app>
</trifork-app-conf>
<?xml version="1.0" ?>
<!DOCTYPE trifork-app-conf SYSTEM "file:/opt/cnc-home/projects/devel/easnt/install/lib/dtd/trifork-app-conf_2_0.dtd">
<trifork-app-conf>
<app-name>LodgingSupplier </app-name>
<enterprise-beans>
<ejb>
<ejb-name>LodgingOrderBean </ejb-name>
<jndi-name>ejb/local/lodgingsupplier/LodgingOrder </jndi-name>
<cmp>
<table-name>LodgingOrderBean</table-name>
<create-table-deploy>true</create-table-deploy>
</cmp>
</ejb>
<ejb>
<ejb-name>LodgingPOEndpointBean </ejb-name>
<jndi-name>LodgingPOEndpointBean </jndi-name>
<max-pool-size>60 </max-pool-size>
<default-pool-size>0 </default-pool-size>
<resource-ref>
<res-ref-name>jms/lodging/QueueConnectionFactory </res-ref-name>
<jndi-name>jms/lodging/QueueConnectionFactory </jndi-name>
<resource-principal>
<principal>guest </principal>
<password>guest </password>
</resource-principal>
</resource-ref>
<resource-env-ref>
<resource-env-ref-name>jms/lodging/LodgingQueue </resource-env-ref-name>
<jndi-name>jms/lodging/LodgingQueue </jndi-name>
</resource-env-ref>
<webservice-endpoint>
<port-component-name>LodgingPOIntfPort </port-component-name>
<endpoint-address-uri>webservice4/LodgingPOService </endpoint-address-uri>
<transport-guarantee/>
</webservice-endpoint>
</ejb>
<ejb>
<ejb-name>LodgingMessageEJB </ejb-name>
<jndi-name>jms/lodging/LodgingQueue </jndi-name>
<mdb-connection-factory>
<jndi-name>jms/lodging/QueueConnectionFactory </jndi-name>
<resource-principal>
<principal>guest</principal>
<password>guest</password>
</resource-principal>
</mdb-connection-factory>
<service-ref>
<service-ref-name>service/WebServiceBroker</service-ref-name>
<wsdl-override>file:/${java.io.tmpdir}/wsdl/WebServiceBroker.wsdl</wsdl-override>
</service-ref>
</ejb>
<cmp-resource>
<jndi-name>jdbc/adventure/AdventureDB </jndi-name>
<resource-principal>
<principal>adventurebuilder </principal>
<password>adventurebuilder </password>
</resource-principal>
</cmp-resource>
<webservice-description>
<webservice-description-name>LodgingPurchaseOrderService</webservice-description-name>
<wsdl-publish-location>file:/${java.io.tmpdir}/wsdl/LodgingPurchaseOrderService.wsdl</wsdl-publish-location>
</webservice-description>
</enterprise-beans>
</trifork-app-conf>