6 Replies Latest reply on Feb 18, 2011 10:10 AM by Sam W

    Can't deploy EAR (Web Service) in JBoss 6.0

    Sam W Expert

      Hello,

       

      I have developed a JAXWS web service in Netbeans 7.0 (Beta2) , with JBoss 6.0 as runtime application server.

      When I deployed the EAR to JBoss, it thrown exception with the following error:

       

      =====================

      DEPLOYMENTS IN ERROR:

        Deployment "jboss.jca:name=Houseware,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=Houseware,service=DataSourceBinding' **

        Deployment "<UNKNOWN jboss.j2ee:ear=HousewareEnterpriseApplication.ear,jar=HousewareEnterpriseApplication-ejb.jar,name=ProductImagesFacade,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=HousewareEnterpriseApplication.ear/HousewareEnterpriseApplication-ejb.jar#HousewareEnterpriseApplication-ejbPU' **

      .....

      ========================

       

      Please refer to attachment for a full server log.

       

      I have on a similar problem for few weeks, I originally wanted to develop this EAR app in Eclipse, but it failed with Jboss too, now I tried it in Netbeans, but failed again. I have spent alot of time trying to resolve my application deployment for JBoss, but couldn't be easily resolved.

      I hope someone here can guide me through the hardship of this and I do love Jboss anyway..

       

      Very appreciate for any suggestion and help.

       

      Thanks

      Sam

        • 1. Can't deploy EAR (Web Service) in JBoss 6.0
          jaikiran pai Master

          Have you deployed the datasource (*-ds.xml) file? What does it look like?

          • 2. Can't deploy EAR (Web Service) in JBoss 6.0
            Sam W Expert

            Hi Jaikiran,

             

            Thanks for the response.

            Here is my jboss-ds.xml file

             

            <?xml version="1.0" encoding="UTF-8"?>

            <datasources>

              <local-tx-datasource>

                <jndi-name>Houseware</jndi-name>

                <connection-url>jdbc:mysql://localhost:3306/houseware</connection-url>

                <driver-class>com.mysql.jdbc.Driver</driver-class>

                <user-name>root</user-name>

                <password>admin</password>

                <min-pool-size>5</min-pool-size>

                <max-pool-size>20</max-pool-size>

                <idle-timeout-minutes>5</idle-timeout-minutes>

              </local-tx-datasource>

            </datasources>

             

             

             

            Its path is located at my EJB project "setup" directory.

             

            HousewareEnterpriseApplication/HousewareEnterpriseApplication-ejb/setup

             

             

            How to deploy the *ds.xml file to jboss?

            If I need to manually copy this file to jboss, where should I copy the file to in jboss?

             

            Thanks

            Sam

            • 3. Can't deploy EAR (Web Service) in JBoss 6.0
              jaikiran pai Master

              Place it in JBOSS_HOME/server/<servername>/deploy folder.

              • 4. Can't deploy EAR (Web Service) in JBoss 6.0
                Sam W Expert

                I manually copied the jboss-ds.xml file to the deploy/ folder, then noticed the following message and exception:

                 

                2011-02-18 23:52:25,535 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] (HDScanner) Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=Houseware' to JNDI name 'java:Houseware'

                2011-02-18 23:52:25,697 INFO  [org.jboss.jpa.deployment.PersistenceUnitDeployment] (HDScanner) Starting persistence unit persistence.unit:unitName=HousewareEnterpriseApplication.ear/HousewareEnterpriseApplication-ejb.jar#HousewareEnterpriseApplication-ejbPU

                2011-02-18 23:52:26,371 INFO  [org.hibernate.ejb.Ejb3Configuration] (HDScanner) Processing PersistenceUnitInfo [

                        name: HousewareEnterpriseApplication-ejbPU

                        ...]

                2011-02-18 23:52:27,371 WARN  [org.hibernate.ejb.Ejb3Configuration] (HDScanner) Persistence provider caller does not implement the EJB3 spec correctly.PersistenceUnitInfo.getNewTempClassLoader() is null.

                2011-02-18 23:52:27,396 INFO  [org.hibernate.cfg.AnnotationBinder] (HDScanner) Binding entity from annotated class: au.com.houseware.ejb.entity.Courier

                2011-02-18 23:52:27,468 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Courier.findAll => SELECT c FROM Courier c

                2011-02-18 23:52:27,468 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Courier.findByCourierId => SELECT c FROM Courier c WHERE c.courierId = :courierId

                2011-02-18 23:52:27,468 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Courier.findByCompanyName => SELECT c FROM Courier c WHERE c.companyName = :companyName

                2011-02-18 23:52:27,469 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Courier.findByAddress1 => SELECT c FROM Courier c WHERE c.address1 = :address1

                2011-02-18 23:52:27,511 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Courier.findByAddress2 => SELECT c FROM Courier c WHERE c.address2 = :address2

                2011-02-18 23:52:27,511 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Courier.findBySuburb => SELECT c FROM Courier c WHERE c.suburb = :suburb

                2011-02-18 23:52:27,529 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Courier.findByPostcode => SELECT c FROM Courier c WHERE c.postcode = :postcode

                2011-02-18 23:52:27,529 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Courier.findByContact => SELECT c FROM Courier c WHERE c.contact = :contact

                2011-02-18 23:52:27,561 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Courier.findByPhone => SELECT c FROM Courier c WHERE c.phone = :phone

                2011-02-18 23:52:27,562 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Courier.findByFax => SELECT c FROM Courier c WHERE c.fax = :fax

                2011-02-18 23:52:27,562 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Courier.findByImageType => SELECT c FROM Courier c WHERE c.imageType = :imageType

                2011-02-18 23:52:27,643 INFO  [org.hibernate.cfg.annotations.EntityBinder] (HDScanner) Bind entity au.com.houseware.ejb.entity.Courier on table courier

                2011-02-18 23:52:27,838 INFO  [org.hibernate.cfg.AnnotationBinder] (HDScanner) Binding entity from annotated class: au.com.houseware.ejb.entity.PurchaseOrder

                2011-02-18 23:52:27,839 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: PurchaseOrder.findAll => SELECT p FROM PurchaseOrder p

                2011-02-18 23:52:27,839 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: PurchaseOrder.findByOrderId => SELECT p FROM PurchaseOrder p WHERE p.orderId = :orderId

                2011-02-18 23:52:27,840 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: PurchaseOrder.findByOrderDate => SELECT p FROM PurchaseOrder p WHERE p.orderDate = :orderDate

                2011-02-18 23:52:27,846 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: PurchaseOrder.findByShippingAddr1 => SELECT p FROM PurchaseOrder p WHERE p.shippingAddr1 = :shippingAddr1

                2011-02-18 23:52:27,846 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: PurchaseOrder.findByShippingAddr2 => SELECT p FROM PurchaseOrder p WHERE p.shippingAddr2 = :shippingAddr2

                2011-02-18 23:52:27,846 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: PurchaseOrder.findByShippingPostcode => SELECT p FROM PurchaseOrder p WHERE p.shippingPostcode = :shippingPostcode

                2011-02-18 23:52:27,910 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: PurchaseOrder.findByShippingSuburb => SELECT p FROM PurchaseOrder p WHERE p.shippingSuburb = :shippingSuburb

                2011-02-18 23:52:27,910 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: PurchaseOrder.findByShippingCountry => SELECT p FROM PurchaseOrder p WHERE p.shippingCountry = :shippingCountry

                2011-02-18 23:52:27,911 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: PurchaseOrder.findByBillingAddr1 => SELECT p FROM PurchaseOrder p WHERE p.billingAddr1 = :billingAddr1

                2011-02-18 23:52:27,945 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: PurchaseOrder.findByBillingAddr2 => SELECT p FROM PurchaseOrder p WHERE p.billingAddr2 = :billingAddr2

                2011-02-18 23:52:27,946 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: PurchaseOrder.findByBillingPostcode => SELECT p FROM PurchaseOrder p WHERE p.billingPostcode = :billingPostcode

                2011-02-18 23:52:27,946 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: PurchaseOrder.findByBillingSuburb => SELECT p FROM PurchaseOrder p WHERE p.billingSuburb = :billingSuburb

                2011-02-18 23:52:28,002 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: PurchaseOrder.findByBillingCountry => SELECT p FROM PurchaseOrder p WHERE p.billingCountry = :billingCountry

                2011-02-18 23:52:28,003 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: PurchaseOrder.findByPhone => SELECT p FROM PurchaseOrder p WHERE p.phone = :phone

                2011-02-18 23:52:28,003 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: PurchaseOrder.findByFax => SELECT p FROM PurchaseOrder p WHERE p.fax = :fax

                2011-02-18 23:52:28,096 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: PurchaseOrder.findByContactName => SELECT p FROM PurchaseOrder p WHERE p.contactName = :contactName

                2011-02-18 23:52:28,096 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: PurchaseOrder.findByPaymentSettlementDate => SELECT p FROM PurchaseOrder p WHERE p.paymentSettlementDate = :paymentSettlementDate

                2011-02-18 23:52:28,097 INFO  [org.hibernate.cfg.annotations.EntityBinder] (HDScanner) Bind entity au.com.houseware.ejb.entity.PurchaseOrder on table purchase_order

                2011-02-18 23:52:28,852 INFO  [org.hibernate.cfg.AnnotationBinder] (HDScanner) Binding entity from annotated class: au.com.houseware.ejb.entity.ProductImages

                2011-02-18 23:52:28,853 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: ProductImages.findAll => SELECT p FROM ProductImages p

                2011-02-18 23:52:28,853 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: ProductImages.findByImageId => SELECT p FROM ProductImages p WHERE p.productImagesPK.imageId = :imageId

                2011-02-18 23:52:28,854 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: ProductImages.findByProductId => SELECT p FROM ProductImages p WHERE p.productImagesPK.productId = :productId

                2011-02-18 23:52:28,898 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: ProductImages.findByImageTitle => SELECT p FROM ProductImages p WHERE p.imageTitle = :imageTitle

                2011-02-18 23:52:28,898 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: ProductImages.findByImageType => SELECT p FROM ProductImages p WHERE p.imageType = :imageType

                2011-02-18 23:52:28,899 INFO  [org.hibernate.cfg.annotations.EntityBinder] (HDScanner) Bind entity au.com.houseware.ejb.entity.ProductImages on table product_images

                2011-02-18 23:52:29,318 INFO  [org.hibernate.cfg.AnnotationBinder] (HDScanner) Binding entity from annotated class: au.com.houseware.ejb.entity.CategorySubcategories

                2011-02-18 23:52:29,318 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: CategorySubcategories.findAll => SELECT c FROM CategorySubcategories c

                2011-02-18 23:52:29,319 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: CategorySubcategories.findByCategoryId => SELECT c FROM CategorySubcategories c WHERE c.categoryId = :categoryId

                2011-02-18 23:52:29,337 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: CategorySubcategories.findByCategoryName => SELECT c FROM CategorySubcategories c WHERE c.categoryName = :categoryName

                2011-02-18 23:52:29,377 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: CategorySubcategories.findByParentId => SELECT c FROM CategorySubcategories c WHERE c.parentId = :parentId

                2011-02-18 23:52:29,377 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: CategorySubcategories.findByLft => SELECT c FROM CategorySubcategories c WHERE c.lft = :lft

                2011-02-18 23:52:29,377 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: CategorySubcategories.findByRgt => SELECT c FROM CategorySubcategories c WHERE c.rgt = :rgt

                2011-02-18 23:52:29,404 INFO  [org.hibernate.cfg.annotations.EntityBinder] (HDScanner) Bind entity au.com.houseware.ejb.entity.CategorySubcategories on table category_subcategories

                2011-02-18 23:52:29,479 INFO  [org.hibernate.cfg.AnnotationBinder] (HDScanner) Binding entity from annotated class: au.com.houseware.ejb.entity.Suppliers

                2011-02-18 23:52:29,480 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Suppliers.findAll => SELECT s FROM Suppliers s

                2011-02-18 23:52:29,528 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Suppliers.findBySupplierId => SELECT s FROM Suppliers s WHERE s.supplierId = :supplierId

                2011-02-18 23:52:29,529 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Suppliers.findByAddress1 => SELECT s FROM Suppliers s WHERE s.address1 = :address1

                2011-02-18 23:52:29,529 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Suppliers.findByAddress2 => SELECT s FROM Suppliers s WHERE s.address2 = :address2

                2011-02-18 23:52:29,529 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Suppliers.findBySuburb => SELECT s FROM Suppliers s WHERE s.suburb = :suburb

                2011-02-18 23:52:29,555 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Suppliers.findByPostcode => SELECT s FROM Suppliers s WHERE s.postcode = :postcode

                2011-02-18 23:52:29,556 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Suppliers.findByCountry => SELECT s FROM Suppliers s WHERE s.country = :country

                2011-02-18 23:52:29,556 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Suppliers.findByPhone => SELECT s FROM Suppliers s WHERE s.phone = :phone

                2011-02-18 23:52:29,556 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Suppliers.findByFax => SELECT s FROM Suppliers s WHERE s.fax = :fax

                2011-02-18 23:52:29,605 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Suppliers.findByContact => SELECT s FROM Suppliers s WHERE s.contact = :contact

                2011-02-18 23:52:29,626 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Suppliers.findByImageType => SELECT s FROM Suppliers s WHERE s.imageType = :imageType

                2011-02-18 23:52:29,627 INFO  [org.hibernate.cfg.annotations.EntityBinder] (HDScanner) Bind entity au.com.houseware.ejb.entity.Suppliers on table suppliers

                2011-02-18 23:52:29,644 INFO  [org.hibernate.cfg.AnnotationBinder] (HDScanner) Binding entity from annotated class: au.com.houseware.ejb.entity.Promotion

                2011-02-18 23:52:29,655 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Promotion.findAll => SELECT p FROM Promotion p

                2011-02-18 23:52:29,655 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Promotion.findByPromotionId => SELECT p FROM Promotion p WHERE p.promotionId = :promotionId

                2011-02-18 23:52:29,656 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Promotion.findByDiscount => SELECT p FROM Promotion p WHERE p.discount = :discount

                2011-02-18 23:52:29,656 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Promotion.findByDescription => SELECT p FROM Promotion p WHERE p.description = :description

                2011-02-18 23:52:29,657 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Promotion.findByStartDate => SELECT p FROM Promotion p WHERE p.startDate = :startDate

                2011-02-18 23:52:29,706 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Promotion.findByEndDate => SELECT p FROM Promotion p WHERE p.endDate = :endDate

                2011-02-18 23:52:29,706 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Promotion.findByImageTitle => SELECT p FROM Promotion p WHERE p.imageTitle = :imageTitle

                2011-02-18 23:52:29,706 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Promotion.findByImageType => SELECT p FROM Promotion p WHERE p.imageType = :imageType

                2011-02-18 23:52:29,707 INFO  [org.hibernate.cfg.annotations.EntityBinder] (HDScanner) Bind entity au.com.houseware.ejb.entity.Promotion on table promotion

                2011-02-18 23:52:29,805 INFO  [org.hibernate.cfg.AnnotationBinder] (HDScanner) Binding entity from annotated class: au.com.houseware.ejb.entity.Shipment

                2011-02-18 23:52:29,805 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Shipment.findAll => SELECT s FROM Shipment s

                2011-02-18 23:52:29,806 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Shipment.findByShipmentId => SELECT s FROM Shipment s WHERE s.shipmentId = :shipmentId

                2011-02-18 23:52:29,806 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Shipment.findByShipDate => SELECT s FROM Shipment s WHERE s.shipDate = :shipDate

                2011-02-18 23:52:29,816 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Shipment.findByShippingCostPerUnit => SELECT s FROM Shipment s WHERE s.shippingCostPerUnit = :shippingCostPerUnit

                2011-02-18 23:52:29,829 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Shipment.findByInsurance => SELECT s FROM Shipment s WHERE s.insurance = :insurance

                2011-02-18 23:52:29,830 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Shipment.findByUnit => SELECT s FROM Shipment s WHERE s.unit = :unit

                2011-02-18 23:52:29,859 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Shipment.findByAddress => SELECT s FROM Shipment s WHERE s.address = :address

                2011-02-18 23:52:29,859 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Shipment.findByContact => SELECT s FROM Shipment s WHERE s.contact = :contact

                2011-02-18 23:52:29,859 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Shipment.findByPhone => SELECT s FROM Shipment s WHERE s.phone = :phone

                2011-02-18 23:52:29,860 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Shipment.findByNotes => SELECT s FROM Shipment s WHERE s.notes = :notes

                2011-02-18 23:52:29,909 INFO  [org.hibernate.cfg.annotations.EntityBinder] (HDScanner) Bind entity au.com.houseware.ejb.entity.Shipment on table shipment

                2011-02-18 23:52:30,069 INFO  [org.hibernate.cfg.AnnotationBinder] (HDScanner) Binding entity from annotated class: au.com.houseware.ejb.entity.ProductVideos

                2011-02-18 23:52:30,070 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: ProductVideos.findAll => SELECT p FROM ProductVideos p

                2011-02-18 23:52:30,070 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: ProductVideos.findByVideoId => SELECT p FROM ProductVideos p WHERE p.productVideosPK.videoId = :videoId

                2011-02-18 23:52:30,070 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: ProductVideos.findByProductId => SELECT p FROM ProductVideos p WHERE p.productVideosPK.productId = :productId

                2011-02-18 23:52:30,111 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: ProductVideos.findByVideoTitle => SELECT p FROM ProductVideos p WHERE p.videoTitle = :videoTitle

                2011-02-18 23:52:30,111 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: ProductVideos.findByVideoType => SELECT p FROM ProductVideos p WHERE p.videoType = :videoType

                2011-02-18 23:52:30,112 INFO  [org.hibernate.cfg.annotations.EntityBinder] (HDScanner) Bind entity au.com.houseware.ejb.entity.ProductVideos on table product_videos

                2011-02-18 23:52:30,143 INFO  [org.hibernate.cfg.AnnotationBinder] (HDScanner) Binding entity from annotated class: au.com.houseware.ejb.entity.GoOnline

                2011-02-18 23:52:30,161 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: GoOnline.findAll => SELECT g FROM GoOnline g

                2011-02-18 23:52:30,161 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: GoOnline.findByOnlineId => SELECT g FROM GoOnline g WHERE g.onlineId = :onlineId

                2011-02-18 23:52:30,162 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: GoOnline.findByOnlineDate => SELECT g FROM GoOnline g WHERE g.onlineDate = :onlineDate

                2011-02-18 23:52:30,171 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: GoOnline.findByOfflineDate => SELECT g FROM GoOnline g WHERE g.offlineDate = :offlineDate

                2011-02-18 23:52:30,211 INFO  [org.hibernate.cfg.annotations.EntityBinder] (HDScanner) Bind entity au.com.houseware.ejb.entity.GoOnline on table go_online

                2011-02-18 23:52:30,250 INFO  [org.hibernate.cfg.AnnotationBinder] (HDScanner) Binding entity from annotated class: au.com.houseware.ejb.entity.Role

                2011-02-18 23:52:30,250 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Role.findAll => SELECT r FROM Role r

                2011-02-18 23:52:30,251 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Role.findByRoleId => SELECT r FROM Role r WHERE r.roleId = :roleId

                2011-02-18 23:52:30,261 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Role.findByRoleName => SELECT r FROM Role r WHERE r.roleName = :roleName

                2011-02-18 23:52:30,261 INFO  [org.hibernate.cfg.annotations.EntityBinder] (HDScanner) Bind entity au.com.houseware.ejb.entity.Role on table role

                2011-02-18 23:52:30,311 INFO  [org.hibernate.cfg.AnnotationBinder] (HDScanner) Binding entity from annotated class: au.com.houseware.ejb.entity.User

                2011-02-18 23:52:30,312 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: User.findAll => SELECT u FROM User u

                2011-02-18 23:52:30,313 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: User.findByUserId => SELECT u FROM User u WHERE u.userId = :userId

                2011-02-18 23:52:30,314 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: User.findByEmailAddress => SELECT u FROM User u WHERE u.emailAddress = :emailAddress

                2011-02-18 23:52:30,314 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: User.findByFirstName => SELECT u FROM User u WHERE u.firstName = :firstName

                2011-02-18 23:52:30,314 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: User.findByLastName => SELECT u FROM User u WHERE u.lastName = :lastName

                2011-02-18 23:52:30,374 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: User.findByGender => SELECT u FROM User u WHERE u.gender = :gender

                2011-02-18 23:52:30,389 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: User.findByAddress1 => SELECT u FROM User u WHERE u.address1 = :address1

                2011-02-18 23:52:30,416 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: User.findByAddress2 => SELECT u FROM User u WHERE u.address2 = :address2

                2011-02-18 23:52:30,416 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: User.findBySuburb => SELECT u FROM User u WHERE u.suburb = :suburb

                2011-02-18 23:52:30,424 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: User.findByPostcode => SELECT u FROM User u WHERE u.postcode = :postcode

                2011-02-18 23:52:30,424 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: User.findByCountry => SELECT u FROM User u WHERE u.country = :country

                2011-02-18 23:52:30,444 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: User.findByPhone => SELECT u FROM User u WHERE u.phone = :phone

                2011-02-18 23:52:30,445 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: User.findByFax => SELECT u FROM User u WHERE u.fax = :fax

                2011-02-18 23:52:30,474 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: User.findByImageTitle => SELECT u FROM User u WHERE u.imageTitle = :imageTitle

                2011-02-18 23:52:30,475 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: User.findByImageType => SELECT u FROM User u WHERE u.imageType = :imageType

                2011-02-18 23:52:30,475 INFO  [org.hibernate.cfg.annotations.EntityBinder] (HDScanner) Bind entity au.com.houseware.ejb.entity.User on table user

                2011-02-18 23:52:30,510 INFO  [org.hibernate.cfg.AnnotationBinder] (HDScanner) Binding entity from annotated class: au.com.houseware.ejb.entity.LineItems

                2011-02-18 23:52:30,535 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: LineItems.findAll => SELECT l FROM LineItems l

                2011-02-18 23:52:30,535 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: LineItems.findByLineId => SELECT l FROM LineItems l WHERE l.lineItemsPK.lineId = :lineId

                2011-02-18 23:52:30,565 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: LineItems.findByOrderId => SELECT l FROM LineItems l WHERE l.lineItemsPK.orderId = :orderId

                2011-02-18 23:52:30,565 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: LineItems.findByProductId => SELECT l FROM LineItems l WHERE l.productId = :productId

                2011-02-18 23:52:30,584 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: LineItems.findByQty => SELECT l FROM LineItems l WHERE l.qty = :qty

                2011-02-18 23:52:30,586 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: LineItems.findByDiscount => SELECT l FROM LineItems l WHERE l.discount = :discount

                2011-02-18 23:52:30,589 INFO  [org.hibernate.cfg.annotations.EntityBinder] (HDScanner) Bind entity au.com.houseware.ejb.entity.LineItems on table line_items

                2011-02-18 23:52:30,619 INFO  [org.hibernate.cfg.AnnotationBinder] (HDScanner) Binding entity from annotated class: au.com.houseware.ejb.entity.Product

                2011-02-18 23:52:30,635 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Product.findAll => SELECT p FROM Product p

                2011-02-18 23:52:30,635 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Product.findByProductId => SELECT p FROM Product p WHERE p.productId = :productId

                2011-02-18 23:52:30,647 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Product.findByProductName => SELECT p FROM Product p WHERE p.productName = :productName

                2011-02-18 23:52:30,648 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Product.findByProductDesc => SELECT p FROM Product p WHERE p.productDesc = :productDesc

                2011-02-18 23:52:30,684 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Product.findByFactoryPrice => SELECT p FROM Product p WHERE p.factoryPrice = :factoryPrice

                2011-02-18 23:52:30,685 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Product.findBySalePrice => SELECT p FROM Product p WHERE p.salePrice = :salePrice

                2011-02-18 23:52:30,685 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Product.findByClickCount => SELECT p FROM Product p WHERE p.clickCount = :clickCount

                2011-02-18 23:52:30,734 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: Product.findByOrderCount => SELECT p FROM Product p WHERE p.orderCount = :orderCount

                2011-02-18 23:52:30,750 INFO  [org.hibernate.cfg.annotations.EntityBinder] (HDScanner) Bind entity au.com.houseware.ejb.entity.Product on table product

                2011-02-18 23:52:30,814 INFO  [org.hibernate.cfg.AnnotationBinder] (HDScanner) Binding entity from annotated class: au.com.houseware.ejb.entity.CategoryImages

                2011-02-18 23:52:30,815 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: CategoryImages.findAll => SELECT c FROM CategoryImages c

                2011-02-18 23:52:30,815 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: CategoryImages.findByImageId => SELECT c FROM CategoryImages c WHERE c.categoryImagesPK.imageId = :imageId

                2011-02-18 23:52:30,815 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: CategoryImages.findByImageTitle => SELECT c FROM CategoryImages c WHERE c.imageTitle = :imageTitle

                2011-02-18 23:52:30,835 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: CategoryImages.findByImageType => SELECT c FROM CategoryImages c WHERE c.imageType = :imageType

                2011-02-18 23:52:30,836 INFO  [org.hibernate.cfg.annotations.QueryBinder] (HDScanner) Binding Named query: CategoryImages.findByCategoryId => SELECT c FROM CategoryImages c WHERE c.categoryImagesPK.categoryId = :categoryId

                2011-02-18 23:52:30,836 INFO  [org.hibernate.cfg.annotations.EntityBinder] (HDScanner) Bind entity au.com.houseware.ejb.entity.CategoryImages on table category_images

                2011-02-18 23:52:30,991 INFO  [org.hibernate.cfg.annotations.CollectionBinder] (HDScanner) Mapping collection: au.com.houseware.ejb.entity.Courier.shipmentList -> shipment

                2011-02-18 23:52:30,992 INFO  [org.hibernate.cfg.annotations.CollectionBinder] (HDScanner) Mapping collection: au.com.houseware.ejb.entity.PurchaseOrder.lineItemsList -> line_items

                2011-02-18 23:52:30,993 INFO  [org.hibernate.cfg.annotations.CollectionBinder] (HDScanner) Mapping collection: au.com.houseware.ejb.entity.CategorySubcategories.categoryImagesList -> category_images

                2011-02-18 23:52:30,993 INFO  [org.hibernate.cfg.annotations.CollectionBinder] (HDScanner) Mapping collection: au.com.houseware.ejb.entity.CategorySubcategories.productList -> product

                2011-02-18 23:52:30,997 INFO  [org.hibernate.cfg.annotations.CollectionBinder] (HDScanner) Mapping collection: au.com.houseware.ejb.entity.Suppliers.productList -> product

                2011-02-18 23:52:30,997 INFO  [org.hibernate.cfg.annotations.CollectionBinder] (HDScanner) Mapping collection: au.com.houseware.ejb.entity.Shipment.purchaseOrderList -> purchase_order

                2011-02-18 23:52:31,023 INFO  [org.hibernate.cfg.annotations.CollectionBinder] (HDScanner) Mapping collection: au.com.houseware.ejb.entity.Role.userList -> user

                2011-02-18 23:52:31,024 INFO  [org.hibernate.cfg.annotations.CollectionBinder] (HDScanner) Mapping collection: au.com.houseware.ejb.entity.User.purchaseOrderList -> purchase_order

                2011-02-18 23:52:31,044 INFO  [org.hibernate.cfg.annotations.CollectionBinder] (HDScanner) Mapping collection: au.com.houseware.ejb.entity.Product.goOnlineList -> go_online

                2011-02-18 23:52:31,044 INFO  [org.hibernate.cfg.annotations.CollectionBinder] (HDScanner) Mapping collection: au.com.houseware.ejb.entity.Product.productImagesList -> product_images

                2011-02-18 23:52:31,045 INFO  [org.hibernate.cfg.annotations.CollectionBinder] (HDScanner) Mapping collection: au.com.houseware.ejb.entity.Product.productVideosList -> product_videos

                2011-02-18 23:52:31,045 INFO  [org.hibernate.cfg.annotations.CollectionBinder] (HDScanner) Mapping collection: au.com.houseware.ejb.entity.Product.promotionList -> promotion

                2011-02-18 23:52:31,546 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] (HDScanner) Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.

                2011-02-18 23:52:32,055 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] (HDScanner) Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.

                2011-02-18 23:52:32,269 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] (HDScanner) Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.

                2011-02-18 23:52:32,282 INFO  [org.hibernate.cfg.search.HibernateSearchEventListenerRegister] (HDScanner) Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.

                2011-02-18 23:52:32,573 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (HDScanner) Error installing to Start: name=persistence.unit:unitName=HousewareEnterpriseApplication.ear/HousewareEnterpriseApplication-ejb.jar#HousewareEnterpriseApplication-ejbPU state=Create: javax.persistence.PersistenceException: [PersistenceUnit: HousewareEnterpriseApplication-ejbPU] Unable to build EntityManagerFactory

                        at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:911) [:3.6.0.Final]

                        at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:74) [:3.6.0.Final]

                        at org.jboss.jpa.builder.DefaultCEMFBuilder.build(DefaultCEMFBuilder.java:47) [:1.0.2-alpha-3]

                        at org.jboss.as.jpa.scanner.HackCEMFBuilder.build(HackCEMFBuilder.java:49) [:6.0.0.Final]

                        at org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:275) [:1.0.2-alpha-3]

                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_21]

                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_21]

                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_21]

                        at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_21]

                        at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:60) [jboss-reflect.jar:2.2.0.GA]

                        at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:168) [jboss-reflect.jar:2.2.0.GA]

                        at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66) [jboss-reflect.jar:2.2.0.GA]

                        at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:257) [jboss-kernel.jar:2.2.0.GA]

                        at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47) [jboss-kernel.jar:2.2.0.GA]

                        at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:125) [jboss-kernel.jar:2.2.0.GA]

                        at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72) [jboss-kernel.jar:2.2.0.GA]

                        at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:202) [jboss-kernel.jar:2.2.0.GA]

                        at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.GA]

                        at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.GA]

                        at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA]

                        at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA]

                        at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA]

                        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]

                        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]

                        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]

                        at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]

                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]

                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]

                        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]

                        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]

                        at org.jboss.system.ServiceController.doChange(ServiceController.java:671) [:6.0.0.Final (Build SVNTag:JBoss_6.0.0.Final date: 20101228)]

                        at org.jboss.system.ServiceController.start(ServiceController.java:443) [:6.0.0.Final (Build SVNTag:JBoss_6.0.0.Final date: 20101228)]

                        at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:189) [:6.0.0.Final]

                        at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:102) [:6.0.0.Final]

                        at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:49) [:6.0.0.Final]

                        at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62) [:2.2.0.GA]

                        at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.0.GA]

                        at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.GA]

                        at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.GA]

                        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.GA]

                        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1571) [:2.2.0.GA]

                        at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.GA]

                        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]

                        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]

                        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]

                        at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]

                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]

                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]

                        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]

                        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]

                        at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.GA]

                        at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.GA]

                        at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.GA]

                        at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.Final]

                        at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2]

                        at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.deploy(HDScanner.java:240) [:0.2.2]

                        at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.complete(HDScanner.java:192) [:0.2.2]

                        at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(TwoPCActionWrapper.java:57) [:0.2.2]

                        at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.complete(AbstractTwoPhaseModificationAction.java:74) [:0.2.2]

                        at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:95) [:0.2.2]

                        at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87) [:0.2.2]

                        at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234) [:0.2.2]

                        at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213) [:0.2.2]

                        at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150) [:0.2.2]

                        at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:135) [:0.2.2]

                        at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanner.java:146) [:0.2.2]

                        at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner.java:90) [:0.2.2]

                        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [:1.6.0_21]

                        at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [:1.6.0_21]

                        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [:1.6.0_21]

                        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [:1.6.0_21]

                        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181) [:1.6.0_21]

                        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205) [:1.6.0_21]

                        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_21]

                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_21]

                        at java.lang.Thread.run(Thread.java:619) [:1.6.0_21]

                Caused by: org.hibernate.MappingException: Repeated column in mapping for collection: au.com.houseware.ejb.entity.Product.productList1 column: product_id

                        at org.hibernate.mapping.Collection.checkColumnDuplication(Collection.java:341) [:3.6.0.Final]

                        at org.hibernate.mapping.Collection.checkColumnDuplication(Collection.java:364) [:3.6.0.Final]

                        at org.hibernate.mapping.Collection.validate(Collection.java:321) [:3.6.0.Final]

                        at org.hibernate.cfg.Configuration.validate(Configuration.java:1336) [:3.6.0.Final]

                        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1835) [:3.6.0.Final]

                        at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:902) [:3.6.0.Final]

                        ... 75 more

                 

                 

                ====================================

                 

                Do I have to re-Deploy my EAR project after copied the jboss-ds.xml file to the deploy/ folder? or which one should be go first? If I need to bundle jboss-ds.xml into the EAR file, how can I do that?

                 

                Thanks

                Sam

                • 5. Can't deploy EAR (Web Service) in JBoss 6.0
                  Sam W Expert

                  I created a hibernate.cfg.xml file and place it in the deploy/ folder, now it had get rid off the error with Events.

                  Here is the hibernate.cfg.xml file:

                   

                  <?xml version="1.0" encoding="UTF-8"?>

                  <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

                  <hibernate-configuration>

                    <session-factory>

                      <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>

                      <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>

                      <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/houseware</property>

                      <property name="hibernate.connection.username">admin</property>

                      <property name="hibernate.connection.password">xxx</property>

                       <listener type="post-insert" class="org.hibernate.search.event.FullTextIndexEventListener"/>

                      <listener type="post-update" class="org.hibernate.search.event.FullTextIndexEventListener"/>

                      <listener type="post-delete" class="org.hibernate.search.event.FullTextIndexEventListener"/>

                    </session-factory>

                  </hibernate-configuration>

                   

                   

                  Here is the remaining errors:

                   

                  DEPLOYMENTS IN ERROR:

                    Deployment "<UNKNOWN jboss.j2ee:ear=HousewareEnterpriseApplication.ear,jar=HousewareEnterpriseApplication-ejb.jar,name=ProductImagesFacade,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=HousewareEnterpriseApplication.ear/HousewareEnterpriseApplication-ejb.jar#HousewareEnterpriseApplication-ejbPU' **

                   

                  Is my hibernate.cfg.xml file looks correct?

                  and how to fix the rest of the DEPLOYMENTS IN ERROR?

                   

                  Thanks

                  Sam

                  • 6. Can't deploy EAR (Web Service) in JBoss 6.0
                    Sam W Expert

                    and here is my persistence.xml file:

                     

                    <?xml version="1.0" encoding="UTF-8"?>

                    <persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">

                      <persistence-unit name="HousewareEnterpriseApplication-ejbPU" transaction-type="JTA">

                        <jta-data-source>java:/Houseware</jta-data-source>

                        <properties/

                      </persistence-uni

                    </persistence>

                     

                     

                    I don't understand why I need hibernate.cfg.xml , shouldn't only persistence.xml is enough?

                     

                    Thanks

                    Sam