[EJB 3.0] - Packaging Hibernate Mapping Files and persistence.xml
by jonesn
Hi.
We're moving our code base to EJB3 on JBOSS AS 4.2.1GA. We want to stick with Hibernate but use the @PersistenceContext annotations to inject the sessions.
The problem we're having is on deployment, it seems like the Entities are being deployed twice which is causing a DuplicateMappingException
Two of us have sat down and made sure we aren't duplicating mappings in our codebase and that the deployed jars aren't packaging files in an incorrect fashion.
Here is our persistence.xml
| <?xml version="1.0" encoding="UTF-8"?>
| <persistence 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_1_0.xsd"
| version="1.0">
| <persistence-unit name="rb">
| <provider>org.hibernate.ejb.HibernatePersistence</provider>
| <jta-data-source>java:/RBDBPool</jta-data-source>
| <mapping-file>com/pioneer/riskbudgeting/dao/userprofile/hbm/userprofile.xml</mapping-file>
| <mapping-file>com/pioneer/riskbudgeting/dao/accesscontrol/hbm/accesscontrol.hbm.xml</mapping-file>
| <mapping-file>com/pioneer/riskbudgeting/dao/benchmark/hbm/rb/benchmark.xml</mapping-file>
| <mapping-file>com/pioneer/riskbudgeting/dao/immunisation/hbm/immunisation.xml</mapping-file>
| <mapping-file>com/pioneer/riskbudgeting/dao/performance/hbm/performance.xml</mapping-file>
| <mapping-file>com/pioneer/riskbudgeting/dao/portfolio/hbm/portfolio.xml</mapping-file>
| <mapping-file>com/pioneer/riskbudgeting/dao/portfoliometadata/hbm/portfoliometadata.xml</mapping-file>
| <mapping-file>com/pioneer/riskbudgeting/dao/pricing/hbm/rb/pricing.xml</mapping-file>
| <mapping-file>com/pioneer/riskbudgeting/dao/report/hbm/report.xml</mapping-file>
| <mapping-file>com/pioneer/riskbudgeting/dao/riskfactor/hbm/riskfactor.xml</mapping-file>
| <mapping-file>com/pioneer/riskbudgeting/dao/riskfactorschema/hbm/riskfactorschema.xml</mapping-file>
| <mapping-file>com/pioneer/riskbudgeting/dao/statistics/hbm/statistics.xml</mapping-file>
| <mapping-file>com/pioneer/riskbudgeting/dao/strategyattribute/hbm/strategyattribute.xml</mapping-file>
| </persistence-unit>
| </persistence>
Here is the relevant part of the log:
| 2007-11-07 11:07:42,937 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.units:ear=80.rb.ear,jar=20.rb-ejb.jar,unitName=rb
|
| 2007-11-07 11:07:42,968 INFO [Version] Hibernate EntityManager 3.2.1.GA
| 2007-11-07 11:07:42,968 INFO [Version] Hibernate Annotations 3.2.1.GA
| 2007-11-07 11:07:43,031 INFO [Ejb3Configuration] Processing PersistenceUnitInfo [
| name: rb
| ...]
| 2007-11-07 11:07:44,388 INFO [Configuration] Reading mappings from resource : com/pioneer/riskbudgeting/dao/userprofile/hbm/userprofile.xml
| 2007-11-07 11:07:44,403 INFO [Configuration] Reading mappings from resource : com/pioneer/riskbudgeting/dao/accesscontrol/hbm/accesscontrol.hbm.
| xml
| 2007-11-07 11:07:44,419 INFO [Configuration] Reading mappings from resource : com/pioneer/riskbudgeting/dao/benchmark/hbm/rb/benchmark.xml
| 2007-11-07 11:07:44,434 INFO [Configuration] Reading mappings from resource : com/pioneer/riskbudgeting/dao/immunisation/hbm/immunisation.xml
| 2007-11-07 11:07:44,434 INFO [Configuration] Reading mappings from resource : com/pioneer/riskbudgeting/dao/performance/hbm/performance.xml
| 2007-11-07 11:07:44,450 INFO [Configuration] Reading mappings from resource : com/pioneer/riskbudgeting/dao/portfolio/hbm/portfolio.xml
| 2007-11-07 11:07:44,481 INFO [Configuration] Reading mappings from resource : com/pioneer/riskbudgeting/dao/portfoliometadata/hbm/portfoliometad
| ata.xml
| 2007-11-07 11:07:44,497 INFO [Configuration] Reading mappings from resource : com/pioneer/riskbudgeting/dao/pricing/hbm/rb/pricing.xml
| 2007-11-07 11:07:44,512 INFO [Configuration] Reading mappings from resource : com/pioneer/riskbudgeting/dao/report/hbm/report.xml
| 2007-11-07 11:07:44,809 INFO [Configuration] Reading mappings from resource : com/pioneer/riskbudgeting/dao/riskfactor/hbm/riskfactor.xml
| 2007-11-07 11:07:44,809 INFO [Configuration] Reading mappings from resource : com/pioneer/riskbudgeting/dao/riskfactorschema/hbm/riskfactorschem
| a.xml
| 2007-11-07 11:07:44,840 INFO [Configuration] Reading mappings from resource : com/pioneer/riskbudgeting/dao/statistics/hbm/statistics.xml
| 2007-11-07 11:07:44,856 INFO [Configuration] Reading mappings from resource : com/pioneer/riskbudgeting/dao/strategyattribute/hbm/strategyattrib
| ute.xml
| 2007-11-07 11:07:44,871 INFO [Configuration] Reading mappings from resource : META-INF/orm.xml
| 2007-11-07 11:07:44,887 INFO [Ejb3Configuration] [PersistenceUnit: rb] no META-INF/orm.xml found
| 2007-11-07 11:07:44,949 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.accesscontrol.hbm.ProtectedObjectTypeHTO -> ProtectedObjec
| tTypes
| 2007-11-07 11:07:44,949 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.accesscontrol.hbm.ObjectAccessPolicyHTO -> ObjectAccessRig
| hts
| 2007-11-07 11:07:44,949 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.benchmark.hbm.rb.CachedBenchmarkHTO -> Benchmarks
| 2007-11-07 11:07:44,949 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.benchmark.hbm.rb.BenchmarkOverrideHTO -> BenchmarkOverride
| s
| 2007-11-07 11:07:44,949 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.immunisation.hbm.TemplateHTO -> ImmunisationTemplates
| 2007-11-07 11:07:44,965 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.immunisation.hbm.TemplateSecurityHTO -> ImmunisationTempla
| teHoldings
| 2007-11-07 11:07:44,965 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.performance.hbm.StrategyOverallPerfHTO -> StrategyOverallP
| erfHTO
| 2007-11-07 11:07:44,980 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.performance.hbm.StrategyPerfTimeSeriesHTO -> StrategyPerfT
| imeSeriesHTO
| 2007-11-07 11:07:44,980 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.portfolio.hbm.RBPortfolioHTO -> RBPortfolioIds
| 2007-11-07 11:07:44,980 INFO [HbmBinder] Mapping collection: com.pioneer.riskbudgeting.dao.portfolio.hbm.RBPortfolioHTO.attributeValues -> Portf
| olioAttributeValues
| 2007-11-07 11:07:44,980 INFO [HbmBinder] Mapping joined-subclass: com.pioneer.riskbudgeting.dao.portfolio.hbm.RealPortfolioHTO -> Portfolios
| 2007-11-07 11:07:44,996 INFO [HbmBinder] Mapping joined-subclass: com.pioneer.riskbudgeting.dao.portfolio.hbm.VirtualPortfolioHTO -> VirtualPort
| folios
| 2007-11-07 11:07:44,996 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.portfolio.hbm.HoldingRevisionHTO -> HoldingRevisions
| 2007-11-07 11:07:44,996 INFO [HbmBinder] Mapping collection: com.pioneer.riskbudgeting.dao.portfolio.hbm.HoldingRevisionHTO.holdings -> Portfoli
| oHoldings
| 2007-11-07 11:07:44,996 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.portfolio.hbm.PortfolioRevisionHTO -> PortfolioRevisions
| 2007-11-07 11:07:44,996 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.portfolio.hbm.StrategyHTO -> PortfolioStrategies
| 2007-11-07 11:07:44,996 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.portfolio.hbm.StrategyRevisionHTO -> StrategyRevisions
| 2007-11-07 11:07:44,996 INFO [HbmBinder] Mapping collection: com.pioneer.riskbudgeting.dao.portfolio.hbm.StrategyRevisionHTO.holdings -> Portfol
| ioStrategyHoldings
| 2007-11-07 11:07:44,996 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.portfolio.hbm.AlertHTO -> PortfolioAlerts
| 2007-11-07 11:07:45,011 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.portfolio.hbm.AlertAssignmentHTO -> StrategyRevisionsAlert
| s
| 2007-11-07 11:07:45,011 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.portfolio.hbm.TradeHTO -> PortfolioTrades
| 2007-11-07 11:07:45,011 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.portfolio.hbm.TradeAssignmentHTO -> StrategyRevisionsTrade
| s
| 2007-11-07 11:07:45,011 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.portfoliometadata.hbm.PortfolioAttributeHTO -> PortfolioAt
| tributes
| 2007-11-07 11:07:45,011 INFO [HbmBinder] Mapping collection: com.pioneer.riskbudgeting.dao.portfoliometadata.hbm.PortfolioAttributeHTO.mappings
| -> PortfolioAttributeMappings
| 2007-11-07 11:07:45,011 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.portfoliometadata.hbm.PortfolioAttributeMappingHTO -> Port
| folioAttributeMappings
| 2007-11-07 11:07:45,011 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.pricing.hbm.rb.SecurityPriceHTO -> SecurityPrices
| 2007-11-07 11:07:45,011 INFO [HbmBinder] Mapping collection: com.pioneer.riskbudgeting.dao.pricing.hbm.rb.SecurityPriceHTO.accruedInterests -> S
| ecurityAccruedInterests
| 2007-11-07 11:07:45,011 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.pricing.hbm.rb.BenchmarkPriceHTO -> BenchmarkPrices
| 2007-11-07 11:07:45,027 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.pricing.hbm.rb.PortfolioBackOfficePriceHTO -> PortfolioBac
| kOfficePrices
| 2007-11-07 11:07:45,027 INFO [HbmBinder] Mapping collection: com.pioneer.riskbudgeting.dao.pricing.hbm.rb.PortfolioBackOfficePriceHTO.accruedInt
| erests -> PortfolioBackOfficeAccruedInterests
| 2007-11-07 11:07:45,027 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.report.hbm.ReportHTO -> Reports
| 2007-11-07 11:07:45,027 INFO [HbmBinder] Mapping joined-subclass: com.pioneer.riskbudgeting.dao.report.hbm.PerformanceReportHTO -> PerformanceRe
| ports
| 2007-11-07 11:07:45,027 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.report.hbm.StrategyWeightHTO -> ReportStrategyWeights
| 2007-11-07 11:07:45,043 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.report.hbm.StrategyCorrelationHTO -> StrategyCorrelations
| 2007-11-07 11:07:45,043 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.report.hbm.RiskFactorCorrelationHTO -> RiskFactorCorrelati
| ons
| 2007-11-07 11:07:45,043 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.report.hbm.TEAttributionHTO -> TEAttribution
| 2007-11-07 11:07:45,043 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.report.hbm.TERiskFactorSensitivityHTO -> TERiskFactorSensi
| tivities
| 2007-11-07 11:07:45,043 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.report.hbm.TEIRSensitivityHTO -> TEIRSensitivities
| 2007-11-07 11:07:45,043 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.report.hbm.BenchmarkHoldingPerfDataHTO -> BenchmarkHolding
| PerfData
| 2007-11-07 11:07:45,043 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.report.hbm.PortfolioHoldingPerfDataHTO -> PortfolioHolding
| PerfData
| 2007-11-07 11:07:45,058 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.report.hbm.PerformanceReportExportHTO -> PerformanceReport
| Export
| 2007-11-07 11:07:45,121 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.riskfactor.hbm.RiskFactorMappingHTO -> RiskFactors
| 2007-11-07 11:07:45,121 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.riskfactorschema.hbm.RiskFactorSchemaHTO -> RiskFactorSche
| mas
| 2007-11-07 11:07:45,121 INFO [HbmBinder] Mapping collection: com.pioneer.riskbudgeting.dao.riskfactorschema.hbm.RiskFactorSchemaHTO.riskFactors
| -> RiskFactorOrdering
| 2007-11-07 11:07:45,121 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.statistics.hbm.JobStatisticsHTO -> JobStatistics
| 2007-11-07 11:07:45,136 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.statistics.hbm.JobItemWeightHTO -> JobItemWeights
| 2007-11-07 11:07:45,136 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.statistics.hbm.JobEnginePropertiesHTO -> JobEngineProperti
| es
| 2007-11-07 11:07:45,136 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.strategyattribute.hbm.StrategyAttributeHTO -> StrategyAttr
| ibutes
| 2007-11-07 11:07:45,136 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.strategyattribute.hbm.StrategyTypeHTO -> StrategyTypes
| 2007-11-07 11:07:45,136 INFO [HbmBinder] Mapping collection: com.pioneer.riskbudgeting.dao.strategyattribute.hbm.StrategyTypeHTO.attributeValues
| -> StrategyAttributeValues
| 2007-11-07 11:07:45,136 INFO [Mappings] duplicate import: com.pioneer.riskbudgeting.dao.accesscontrol.hbm.ProtectedObjectTypeHTO->com.pioneer.ri
| skbudgeting.dao.accesscontrol.hbm.ProtectedObjectTypeHTO
| 2007-11-07 11:07:45,136 INFO [Mappings] duplicate import: com.pioneer.riskbudgeting.dao.accesscontrol.hbm.ProtectedObjectTypeHTO->ProtectedObjec
| tTypeHTO
| 2007-11-07 11:07:45,136 INFO [HbmBinder] Mapping class: com.pioneer.riskbudgeting.dao.accesscontrol.hbm.ProtectedObjectTypeHTO -> ProtectedObjec
| tTypes
| 2007-11-07 11:07:45,152 WARN [ServiceController] Problem starting service persistence.units:ear=80.rb.ear,jar=20.rb-ejb.jar,unitName=rb
| org.hibernate.DuplicateMappingException: Duplicate class/entity mapping com.pioneer.riskbudgeting.dao.accesscontrol.hbm.ProtectedObjectTypeHTO
| at org.hibernate.cfg.Mappings.addClass(Mappings.java:118)
| at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:145)
| at org.hibernate.cfg.Configuration.add(Configuration.java:669)
| at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:437)
| at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:268)
| at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1115)
| at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1233)
| at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:154)
| at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:869)
| at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:407)
| at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:126)
| at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:246)
|
Does anyone have any advice on why the mappings might be occuring twice (Apart from the obvious mapping and packaging errors that we have checked)?
Thanks for your time
Nick.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102475#4102475
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102475
18 years, 6 months
[Installation, Configuration & DEPLOYMENT] - Incomplete Deployment listing:...
by paojboss
Hi,
Im encountering this kind of error but system works fine... could someone explain to me the meaning this error.. thanks in advance!
2007-11-07 18:09:28,311 INFO [org.jboss.web.WebService] Using RMI server codebase: http://naboo:8283/
2007-11-07 18:09:28,501 INFO [org.jboss.naming.NamingService] Started jndi bootstrap jnpPort=1299, rmiPort=1298, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server SocketFactory=org.jboss.net.sockets.DefaultSocketFactory@ad093076
2007-11-07 18:09:31,208 INFO [org.apache.catalina.startup.Embedded] Catalina naming disabled
2007-11-07 18:09:31,604 INFO [org.apache.coyote.http11.Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8280
2007-11-07 18:09:32,003 INFO [org.apache.coyote.http11.Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8643
2007-11-07 18:09:32,003 INFO [org.apache.catalina.startup.Catalina] Initialization processed in 744 ms
2007-11-07 18:09:32,003 INFO [org.jboss.web.tomcat.tc5.StandardService] Starting service jboss.web
2007-11-07 18:09:32,007 INFO [org.apache.catalina.core.StandardEngine] Starting Servlet Engine: Apache Tomcat/5.0.28
2007-11-07 18:09:32,024 INFO [org.apache.catalina.core.StandardHost] XML validation disabled
2007-11-07 18:09:32,045 INFO [org.apache.catalina.startup.Catalina] Server startup in 42 ms
2007-11-07 18:09:32,145 INFO [org.jboss.web.tomcat.tc5.TomcatDeployer] deploy, ctxPath=/invoker, warUrl=file:/u01/products/ebr/Global/jboss-4.0.1sp1/server/default/deploy/http-invoker.sar/invoker.war/
2007-11-07 18:09:32,669 INFO [org.jboss.web.tomcat.tc5.TomcatDeployer] deploy, ctxPath=/ws4ee, warUrl=file:/u01/products/ebr/Global/jboss-4.0.1sp1/server/default/tmp/deploy/tmp48532jboss-ws4ee.war/
2007-11-07 18:09:32,762 INFO [org.jboss.web.tomcat.tc5.TomcatDeployer] deploy, ctxPath=/, warUrl=file:/u01/products/ebr/Global/jboss-4.0.1sp1/server/default/deploy/jbossweb-tomcat50.sar/ROOT.war/
2007-11-07 18:09:32,883 INFO [org.jboss.web.tomcat.tc5.TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=file:/u01/products/ebr/Global/jboss-4.0.1sp1/server/default/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
2007-11-07 18:09:33,997 INFO [org.jboss.mail.MailService] Mail Service bound to java:/Mail
2007-11-07 18:09:34,274 INFO [org.jboss.resource.deployment.RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/u01/products/ebr/Global/jboss-4.0.1sp1/server/default/deploy/jboss-local-jdbc.rar
2007-11-07 18:09:34,430 INFO [org.jboss.resource.deployment.RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/u01/products/ebr/Global/jboss-4.0.1sp1/server/default/deploy/jboss-xa-jdbc.rar
2007-11-07 18:09:34,527 INFO [org.jboss.resource.deployment.RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/u01/products/ebr/Global/jboss-4.0.1sp1/server/default/deploy/jms/jms-ra.rar
2007-11-07 18:09:34,611 INFO [org.jboss.resource.deployment.RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/u01/products/ebr/Global/jboss-4.0.1sp1/server/default/deploy/mail-ra.rar
2007-11-07 18:09:34,812 INFO [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA to JNDI name 'java:JmsXA'
2007-11-07 18:09:34,939 INFO [org.jboss.resource.adapter.jdbc.remote.WrapperDataSourceService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=DataSourceBinding,name=globalEBR to JNDI name 'java:globalEBR'
2007-11-07 18:09:34,964 INFO [org.jboss.web.tomcat.tc5.TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=file:/u01/products/ebr/Global/jboss-4.0.1sp1/server/default/deploy/jmx-console.war/
2007-11-07 18:09:35,075 INFO [org.jboss.web.tomcat.tc5.TomcatDeployer] deploy, ctxPath=/web-console, warUrl=file:/u01/products/ebr/Global/jboss-4.0.1sp1/server/default/deploy/management/web-console.war/
2007-11-07 18:09:35,451 INFO [org.jboss.deployment.EARDeployer] Init J2EE application: file:/u01/products/ebr/Global/jboss-4.0.1sp1/server/default/deploy/GlobalEBR.ear
2007-11-07 18:09:36,187 INFO [org.jboss.ejb.EjbModule] Deploying EBR
2007-11-07 18:09:36,312 INFO [org.jboss.ejb.EJBDeployer] Deployed: file:/u01/products/ebr/Global/jboss-4.0.1sp1/server/default/tmp/deploy/tmp48584GlobalEBR.ear-contents/GlobalEBR-EJB.jar
2007-11-07 18:09:36,348 INFO [org.jboss.web.tomcat.tc5.TomcatDeployer] deploy, ctxPath=/GlobalEBR, warUrl=file:/u01/products/ebr/Global/jboss-4.0.1sp1/server/default/tmp/deploy/tmp48584GlobalEBR.ear-contents/GlobalEBR-Web.war/
2007-11-07 18:09:36,700 INFO [org.displaytag.filter.ResponseOverrideFilter] Filter initialized. Response buffering is enabled
2007-11-07 18:09:36,926 INFO [org.jboss.web.tomcat.tc5.session.JBossCacheManager] init(): replicationGranularity_ is 0 and invaldateSessionPolicy is 2
2007-11-07 18:09:36,929 ERROR [org.jboss.web.tomcat.tc5.session.JBossCacheManager] JBossCacheService to Tomcat clustering not found
2007-11-07 18:09:36,929 ERROR [org.jboss.web.tomcat.tc5.TomcatDeployer] Failed to setup clustering, clustering disabled
2007-11-07 18:09:36,948 INFO [org.jboss.deployment.EARDeployer] Started J2EE application: file:/u01/products/ebr/Global/jboss-4.0.1sp1/server/default/deploy/GlobalEBR.ear
2007-11-07 18:09:36,949 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing:
MBeans waiting for other MBeans:
ObjectName: jboss.ejb:service=EJBTimerService,persistencePolicy=database
state: CONFIGURED
I Depend On: jboss.jca:service=DataSourceBinding,name=DefaultDS
Depends On Me:
ObjectName: jboss.mq:service=InvocationLayer,type=HTTP
state: CONFIGURED
I Depend On: jboss.mq:service=Invoker
jboss.web:service=WebServer
Depends On Me:
ObjectName: jboss:service=KeyGeneratorFactory,type=HiLo
state: CONFIGURED
I Depend On: jboss:service=TransactionManager
jboss.jca:service=DataSourceBinding,name=DefaultDS
Depends On Me:
ObjectName: jboss.mq:service=StateManager
state: CONFIGURED
I Depend On: jboss.jca:service=DataSourceBinding,name=DefaultDS
Depends On Me: jboss.mq:service=DestinationManager
ObjectName: jboss.mq:service=DestinationManager
state: CONFIGURED
I Depend On: jboss.mq:service=MessageCache
jboss.mq:service=PersistenceManager
jboss.mq:service=StateManager
Depends On Me: jboss.mq.destination:service=Topic,name=testTopic
jboss.mq.destination:service=Topic,name=securedTopic
jboss.mq.destination:service=Topic,name=testDurableTopic
jboss.mq.destination:service=Queue,name=testQueue
jboss.mq.destination:service=Queue,name=A
jboss.mq.destination:service=Queue,name=B
jboss.mq.destination:service=Queue,name=C
jboss.mq.destination:service=Queue,name=D
jboss.mq.destination:service=Queue,name=ex
jboss.mq:service=SecurityManager
jboss.mq.destination:service=Queue,name=DLQ
ObjectName: jboss.mq:service=PersistenceManager
state: CONFIGURED
I Depend On: jboss.jca:service=DataSourceBinding,name=DefaultDS
Depends On Me: jboss.mq:service=DestinationManager
ObjectName: jboss.mq.destination:service=Topic,name=testTopic
state: CONFIGURED
I Depend On: jboss.mq:service=DestinationManager
jboss.mq:service=SecurityManager
Depends On Me:
ObjectName: jboss.mq.destination:service=Topic,name=securedTopic
state: CONFIGURED
I Depend On: jboss.mq:service=DestinationManager
jboss.mq:service=SecurityManager
Depends On Me:
ObjectName: jboss.mq.destination:service=Topic,name=testDurableTopic
state: CONFIGURED
I Depend On: jboss.mq:service=DestinationManager
jboss.mq:service=SecurityManager
Depends On Me:
ObjectName: jboss.mq.destination:service=Queue,name=testQueue
state: CONFIGURED
I Depend On: jboss.mq:service=DestinationManager
jboss.mq:service=SecurityManager
Depends On Me:
ObjectName: jboss.mq.destination:service=Queue,name=A
state: CONFIGURED
I Depend On: jboss.mq:service=DestinationManager
Depends On Me:
ObjectName: jboss.mq.destination:service=Queue,name=B
state: CONFIGURED
I Depend On: jboss.mq:service=DestinationManager
Depends On Me:
ObjectName: jboss.mq.destination:service=Queue,name=C
state: CONFIGURED
I Depend On: jboss.mq:service=DestinationManager
Depends On Me:
ObjectName: jboss.mq.destination:service=Queue,name=D
state: CONFIGURED
I Depend On: jboss.mq:service=DestinationManager
Depends On Me:
ObjectName: jboss.mq.destination:service=Queue,name=ex
state: CONFIGURED
I Depend On: jboss.mq:service=DestinationManager
Depends On Me:
ObjectName: jboss.mq:service=Invoker
state: CONFIGURED
I Depend On: jboss.mq:service=TracingInterceptor
Depends On Me: jboss.mq:service=InvocationLayer,type=HTTP
jboss.mq:service=InvocationLayer,type=JVM
jboss.mq:service=InvocationLayer,type=UIL2
ObjectName: jboss.mq:service=TracingInterceptor
state: CONFIGURED
I Depend On: jboss.mq:service=SecurityManager
Depends On Me: jboss.mq:service=Invoker
ObjectName: jboss.mq:service=SecurityManager
state: CONFIGURED
I Depend On: jboss.mq:service=DestinationManager
Depends On Me: jboss.mq.destination:service=Topic,name=testTopic
jboss.mq.destination:service=Topic,name=securedTopic
jboss.mq.destination:service=Topic,name=testDurableTopic
jboss.mq.destination:service=Queue,name=testQueue
jboss.mq:service=TracingInterceptor
jboss.mq.destination:service=Queue,name=DLQ
ObjectName: jboss.mq.destination:service=Queue,name=DLQ
state: CONFIGURED
I Depend On: jboss.mq:service=DestinationManager
jboss.mq:service=SecurityManager
Depends On Me:
ObjectName: jboss.mq:service=InvocationLayer,type=JVM
state: CONFIGURED
I Depend On: jboss.mq:service=Invoker
Depends On Me:
ObjectName: jboss.mq:service=InvocationLayer,type=UIL2
state: CONFIGURED
I Depend On: jboss.mq:service=Invoker
Depends On Me:
MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
ObjectName: jboss.jca:service=DataSourceBinding,name=DefaultDS
state: NOTYETINSTALLED
I Depend On:
Depends On Me: jboss.ejb:service=EJBTimerService,persistencePolicy=database
jboss:service=KeyGeneratorFactory,type=HiLo
jboss.mq:service=StateManager
jboss.mq:service=PersistenceManager
2007-11-07 18:09:37,090 INFO [org.apache.coyote.http11.Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8280
2007-11-07 18:09:37,189 INFO [org.apache.jk.common.ChannelSocket] JK2: ajp13 listening on /0.0.0.0:8209
2007-11-07 18:09:37,194 INFO [org.apache.jk.server.JkMain] Jk running ID=0 time=0/25 config=null
2007-11-07 18:09:37,298 INFO [org.apache.coyote.http11.Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8643
2007-11-07 18:09:37,313 INFO [org.jboss.system.server.Server] JBoss (MX MicroKernel) [4.0.1sp1 (build: CVSTag=JBoss_4_0_1_SP1 date=200502160314)] Started in 11s:439ms
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102471#4102471
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102471
18 years, 6 months
[JBoss Seam] - Re: Error selecting object problem
by jamesjmp
thanks for the idea!
Error selecting object doesn´t appear anymore, but now it´s turn for this one:
value is required (javax.faces.component.UIInput.REQUIRED)
This is the code I´ve added: (following your sample)
In RstReportHome.java
|
| private Firm specialFirm;
|
| public Firm getSpecialFirm() {
| System.out.println("getSpecialFirm!!");
| return getInstance().getFirm();
| }
|
| public void setSpecialFirm(Firm firm) {
| System.out.println("setSpecialFirm!!");
| if(firm == null) {
| System.out.println("setSpecialFirm - asignando AUTOMATIC!!");
| firm = new Firm();
| firm.setFirmCode("AUTOMATIC");
| CfgCurrency cfgCurrency = new CfgCurrency();
| cfgCurrency.setCurrencyCode(60);
| firm.setCfgCurrency(cfgCurrency);
|
| } else {
| System.out.println("setSpecialFirm - firm no null "+firm.getFirmDescription());
| }
| getInstance().setFirm(firm);
| }
|
In the view:
| <s:decorate id="firmCodeDecoration" template="layout/edit.xhtml">
| <ui:define name="label">#{messages['Firm']}</ui:define>
| <h:selectOneMenu value="#{rstReportHome.specialFirm}" required="true" id="firm">
| <s:selectItems value="#{firmList.resultList}" var="firm" label="#{firm.firmCode}" noSelectionLabel="AUTOMATIC"/>
| <s:convertEntity/>
| <a:support event="onchange" reRender="firmCodeDecoration"/>
| </h:selectOneMenu>
| </s:decorate>
|
any further idea? I guess the solution must be near ;-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102465#4102465
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102465
18 years, 6 months
[JBossWS] - wsconsume
by aleks
On the "other side" was made web service with Borland Developer Studio 2006.
WSDL file is:
| <?xml version="1.0" encoding="UTF-8"?>
| <definitions name="Iws1CAccessservice" targetNamespace="http://tempuri.org/"
| xmlns = "http://schemas.xmlsoap.org/wsdl/"
| xmlns:xs = "http://www.w3.org/2001/XMLSchema"
| xmlns:tns = "http://tempuri.org/"
| xmlns:soap = "http://schemas.xmlsoap.org/wsdl/soap/"
| xmlns:soapenc = "http://schemas.xmlsoap.org/soap/encoding/"
| xmlns:mime = "http://schemas.xmlsoap.org/wsdl/mime/"
| xmlns:ns1 = "urn:ws1CAccessUnit">
| <types>
| <xs:schema targetNamespace="urn:ws1CAccessUnit" xmlns="urn:ws1CAccessUnit">
| <xs:complexType name="T1CDocumentList">
| <xs:complexContent>
| <xs:restriction base="soapenc:Array">
| <xs:sequence/>
| <xs:attribute ref="soapenc:arrayType" n1:arrayType="ns1:T1CDocument[]" xmlns:n1="http://schemas.xmlsoap.org/wsdl/"/>
| </xs:restriction>
| </xs:complexContent>
| </xs:complexType>
| <xs:complexType name="T1CDocument">
| <xs:sequence>
| <xs:element name="Date" type="xs:dateTime"/>
| <xs:element name="Number" type="xs:string"/>
| <xs:element name="Rows" type="ns1:T1CDocumentRows"/>
| </xs:sequence>
| </xs:complexType>
| <xs:complexType name="T1CDocumentRows">
| <xs:complexContent>
| <xs:restriction base="soapenc:Array">
| <xs:sequence/>
| <xs:attribute ref="soapenc:arrayType" n1:arrayType="ns1:T1CDocumentRow[]" xmlns:n1="http://schemas.xmlsoap.org/wsdl/"/>
| </xs:restriction>
| </xs:complexContent>
| </xs:complexType>
| <xs:complexType name="T1CDocumentRow">
| <xs:sequence>
| <xs:element name="Product" type="xs:string"/>
| <xs:element name="ProductID" type="xs:string"/>
| <xs:element name="Quantity" type="xs:double"/>
| <xs:element name="QuantityRequested" type="xs:double"/>
| <xs:element name="Price" type="xs:double"/>
| <xs:element name="Amount" type="xs:double"/>
| <xs:element name="Total" type="xs:double"/>
| <xs:element name="Cell" type="xs:string"/>
| </xs:sequence>
| </xs:complexType>
| </xs:schema>
| </types>
| <message name="Get1CDocumentList0Request">
| <part name="dDateFrom" type="xs:dateTime"/>
| <part name="dDateTo" type="xs:dateTime"/>
| </message>
| <message name="Get1CDocumentList0Response">
| <part name="return" type="ns1:T1CDocumentList"/>
| </message>
| <portType name="Iws1CAccess">
| <operation name="Get1CDocumentList">
| <input message="tns:Get1CDocumentList0Request"/>
| <output message="tns:Get1CDocumentList0Response"/>
| </operation>
| </portType>
| <binding name="Iws1CAccessbinding" type="tns:Iws1CAccess">
| <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
| <operation name="Get1CDocumentList">
| <soap:operation soapAction="urn:ws1CAccessUnit-Iws1CAccess#Get1CDocumentList" style="rpc"/>
| <input message="tns:Get1CDocumentList0Request">
| <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:ws1CAccessUnit-Iws1CAccess"/>
| </input>
| <output message="tns:Get1CDocumentList0Response">
| <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:ws1CAccessUnit-Iws1CAccess"/>
| </output>
| </operation>
| </binding>
| <service name="Iws1CAccessservice">
| <port name="Iws1CAccessPort" binding="tns:Iws1CAccessbinding">
| <soap:address location="http://my.domain.ru/cgi-bin/ws1CAccess.exe/soap/Iws1CAccess"/>
| </port>
| </service>
| </definitions>
|
I try to consume this web service with wsconsume and get the error:
[WARNING] src-resolve.4.2: Error resolving component 'soapenc:Array'. It was detected that 'soapenc:Array' is in namespace 'http://schemas.xmlsoap.org/soap/encoding/', but components from this namespace are not referenceable from schema document 'file:/home/alex/webapps/korund-ws.xml#types?schema1'. If this is the incorrect namespace, perhaps the prefix of 'soapenc:Array' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'file:wsdl.xml#types?schema1'.
| line 14 of file:wsdl.xml#types?schema1
|
| [ERROR] undefined simple or complex type 'soapenc:Array'
| line 14 of file:wsdl.xml
|
| [ERROR] undefined attribute 'soapenc:arrayType'
| line 16 of file:wsdl.xml
|
| [ERROR] undefined simple or complex type 'soapenc:Array'
| line 29 of file:wsdl.xml
|
| [ERROR] undefined attribute 'soapenc:arrayType'
| line 31 of file:wsdl.xml
|
| Failed to invoke WsImport
| java.lang.NullPointerException
| at com.sun.tools.xjc.reader.internalizer.SCDBasedBindingSet.apply(SCDBasedBindingSet.java:237)
| at com.sun.tools.xjc.ModelLoader.createXSOM(ModelLoader.java:518)
| at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:232)
| at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:85)
| at com.sun.tools.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBModelBuilder.java:120)
| at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildJAXBModel(WSDLModeler.java:2173)
| at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.internalBuildModel(WSDLModeler.java:173)
| at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:119)
| at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:148)
| at org.jboss.ws.tools.jaxws.impl.SunRIConsumerImpl.consume(SunRIConsumerImpl.java:187)
| at org.jboss.wsf.spi.tools.cmd.WSConsume.importServices(WSConsume.java:216)
| at org.jboss.wsf.spi.tools.cmd.WSConsume.main(WSConsume.java:79)
|
On wich side is the problem?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102460#4102460
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102460
18 years, 6 months
[JBossCache] - Re: Strange ClassCastException in OptimisticCreateIfNotExist
by spennec
I changed a few things and might have moved a bit forward....
The ClassCast with my class happened with the put being done this way:
| final InvocationContext invocationContext = treeCache.getInvocationContext();
| final Option optionOverrides = invocationContext.getOptionOverrides();
| optionOverrides.setCacheModeLocal(localMode);
| treeCache.put(fqn, ITEM, map);
|
... with ITEM being a static final String named "item" just to bind a key to the map.
Now I have a class cast, but not on my class. The ClassCast is as follows:
| java.lang.ClassCastException: java.lang.String
| at org.jboss.cache.interceptors.OptimisticCreateIfNotExistsInterceptor.invoke(OptimisticCreateIfNotExistsInterceptor.java:57)
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
| at org.jboss.cache.interceptors.OptimisticValidatorInterceptor.invoke(OptimisticValidatorInterceptor.java:67)
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
| at org.jboss.cache.interceptors.OptimisticLockingInterceptor.invoke(OptimisticLockingInterceptor.java:99)
|
|
The only thing I changed is the way I put the data in treeCache. It is now done this way:
|
|
| Node<String, Object> node = treeCache.getRoot().getChild(PF_CACHE_FQN);
| if (node == null) {
| node = treeCache.getRoot().addChild(fqn);
| if (logger.isDebugEnabled()) {
| logger.debug("Added cache child: " + fqn);
| }
| }
|
| final InvocationContext invocationContext = treeCache.getInvocationContext();
| final Option optionOverrides = invocationContext.getOptionOverrides();
| optionOverrides.setCacheModeLocal(localMode);
| node.put(PF_CACHE_NAME, portfolioCache);
|
... with PF_CACHE_FQN being a Fqn object to describe the node, and PF_CACHE_NAME being a String that is used as a key to bind the map.
Does it help you understand what's going wrong??
Thanks a lot for your help!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102456#4102456
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102456
18 years, 6 months