RUBEN CANO [
https://community.jboss.org/people/rcmontero] created the document:
"Deploy .ear using JBoss 7.1.1 and Andromda"
To view the document, visit:
https://community.jboss.org/docs/DOC-18361
--------------------------------------------------------------
Hi everyone!!!!
I'm new in the world of Jboss and my firts task has been to create a project using
Andromda :S.
When I try to deploy the ear file I have a problem for taking the facade and accesing to
the methods of the service.
As I don't want to flood the post so I haven`t put any andromda configuration file,
but if someone needs the information contains into some of them I haven't any problem
for giving it.
The jboss console shows the following error (complete trace):
Calling "C:\jboss-as-7.1.1.Final\bin\standalone.conf.bat"
===============================================================================
JBoss Bootstrap Environment
JBOSS_HOME: C:\jboss-as-7.1.1.Final
JAVA: C:\Archivos de programa\Java\jdk1.6.0_03\bin\java
JAVA_OPTS: -XX:+TieredCompilation -Dprogram.name=standalone.bat -Xms64M -Xmx512M
-XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.prefe
rIPv4Stack=true -Dorg.jboss.resolver.warning=true
-Djboss.modules.system.pkgs=org.jboss.byteman
-Djboss.server.default.config=standalone.xml
===============================================================================
10:44:24,231 INFO [org.jboss.modules] JBoss Modules version 1.1.1.GA
10:44:24,632 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA
10:44:24,756 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes"
starting
10:44:27,813 INFO [org.xnio] XNIO Version 3.0.3.GA
10:44:27,813 INFO [org.jboss.as.server] JBAS015888: Creating http management service
using socket-binding (management-http)
10:44:27,874 INFO [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
10:44:27,890 INFO [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
10:44:28,013 INFO [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
10:44:28,770 INFO [org.jboss.as.security] (MSC service thread 1-3) JBAS013100: Current
PicketBox version=4.0.7.Final
10:44:28,847 INFO [org.jboss.as.connector] (MSC service thread 1-1) JBAS010408: Starting
JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
10:44:29,851 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread
Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
10:44:29,974 INFO [org.jboss.ws.common.management.AbstractServerConfig] (MSC service
thread 1-3) JBoss Web Services - Stack CXF Server 4.0.2.GA
10:44:30,098 INFO [org.jboss.as.naming] (MSC service thread 1-3) JBAS011802: Starting
Naming Service
10:44:30,499 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-3)
Arrancando Coyote HTTP/1.1 en puerto http--127.0.0.1-8080
10:44:30,638 INFO [org.jboss.as.mail.extension] (MSC service thread 1-3) JBAS015400:
Bound mail session [java:jboss/mail/Default]
10:44:31,981 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-4)
JBAS015012: Started FileSystemDeploymentService for directory
C:\jboss-as-7.1.1.Final\standalone\deployments
10:44:32,059 INFO [org.jboss.as.remoting] (MSC service thread 1-4) JBAS017100: Listening
on /127.0.0.1:4447
10:44:32,089 INFO [org.jboss.as.remoting] (MSC service thread 1-3) JBAS017100: Listening
on /127.0.0.1:9999
10:44:32,522 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread
1-1) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
10:44:32,769 INFO [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service
status report
JBAS014775: New missing/unsatisfied dependencies:
service jboss.jdbc-driver.postgresql-8_4-702_jdbc3_jar (missing) dependents:
[service jboss.data-source.java:/AOP]
10:44:33,433 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876:
Starting deployment of "postgresql-8.4-702.jdbc3.jar"
10:44:34,035 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-1)
JBAS010404: Deploying non-JDBC-compliant driver class org.postgresql.Driver (version 8.4)
10:44:34,081 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread
1-4) JBAS010400: Bound data source [java:/AOP]
10:44:34,112 INFO [org.jboss.as] (MSC service thread 1-1) JBAS015951: Admin console
listening on
http://127.0.0.1:9990 http://127.0.0.1:9990
10:44:34,112 INFO [org.jboss.as] (MSC service thread 1-1) JBAS015874: JBoss AS
7.1.1.Final "Brontes" started in 10499ms - Started 157 of 235 services (76
services are passive or on-demand)
10:44:34,359 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559:
Deployed "postgresql-8.4-702.jdbc3.jar"
10:44:34,374 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774:
Service status report
JBAS014776: Newly corrected services:
service jboss.jdbc-driver.postgresql-8_4-702_jdbc3_jar (no longer required)
10:44:53,148 INFO [org.jboss.as.repository] (HttpManagementService-threads - 2)
JBAS014900: Content added at location
C:\jboss-as-7.1.1.Final\standalone\data\content\79\a968570f1337077f831ca57b6eccce
209e3ff7\content
10:44:56,715 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876:
Starting deployment of "AOP-1.0.ear"
10:44:57,008 WARN [org.jboss.metadata.parser.jboss.JBossAppMetaDataParser] (MSC service
thread 1-4) loader-repository element in jboss-app.xml is deprecated and has been ignored
10:45:00,729 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876:
Starting deployment of "AOP-common-1.0.jar"
10:45:00,729 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876:
Starting deployment of "AOP.war"
10:45:00,729 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876:
Starting deployment of "AOP-core-1.0.jar"
10:45:02,659 INFO
[org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC
service thread 1-2) JNDI bindings for session bean named Administration_Service in
deployment u
nit subdeployment "AOP-core-1.0.jar" of deployment "AOP-1.0.ear" are
as follows:
java:global/AOP-1.0/AOP-core-1.0/Administration_Service!es.indra.aop.adm.servicio.ejb.Administration_Service
java:app/AOP-core-1.0/Administration_Service!es.indra.aop.adm.servicio.ejb.Administration_Service
java:module/Administration_Service!es.indra.aop.adm.servicio.ejb.Administration_Service
java:global/AOP-1.0/AOP-core-1.0/Administration_Service!es.indra.aop.adm.servicio.ejb.Administration_ServiceHome
java:app/AOP-core-1.0/Administration_Service!es.indra.aop.adm.servicio.ejb.Administration_ServiceHome
java:module/Administration_Service!es.indra.aop.adm.servicio.ejb.Administration_ServiceHome
10:45:03,014 INFO [stdout] (MSC service thread 1-1) INICIO SERVIDOR JBOSS
10:45:03,030 INFO [stdout] (Timer-1) Dentro del HILO
10:45:03,693 INFO [org.springframework.core.CollectionFactory] (Timer-1) Commons
Collections 3.x available
10:45:03,771 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]
(Timer-1) Loading XML bean definitions from URL
[vfs:/C:/jboss-as-7.1.1.Final/bin/content/AOP-1.0.ear/AOP-core-1.0.ja
r/beanRefFactory.xml]
10:45:03,771 INFO [org.jboss.web] (MSC service thread 1-1) JBAS018210: Registering web
context: /./
10:45:03,832 INFO [org.springframework.context.support.ClassPathXmlApplicationContext]
(Timer-1) Bean factory for application context
[org.springframework.context.support.ClassPathXmlApplicationConte
xt;hashCode=20564850]:
org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans
[beanRefFactory,beanRefFactoryEjb]; root of BeanFactory hierarchy
10:45:03,848 INFO [org.springframework.context.support.ClassPathXmlApplicationContext]
(Timer-1) 2 beans defined in application context
[org.springframework.context.support.ClassPathXmlApplicationCon
text;hashCode=20564850]
10:45:03,863 INFO [org.springframework.context.support.ClassPathXmlApplicationContext]
(Timer-1) Unable to locate MessageSource with name 'messageSource': using default
[org.springframework.context.s
upport.DelegatingMessageSource@4d2262]
10:45:03,879 INFO [org.springframework.context.support.ClassPathXmlApplicationContext]
(Timer-1) Unable to locate ApplicationEventMulticaster with name
'applicationEventMulticaster': using default [o
rg.springframework.context.event.SimpleApplicationEventMulticaster@dc60af]
10:45:03,879 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory]
(Timer-1) Pre-instantiating singletons in factory
[org.springframework.beans.factory.support.DefaultListableBe
anFactory defining beans [beanRefFactory,beanRefFactoryEjb]; root of BeanFactory
hierarchy]
10:45:03,956 INFO [org.jboss.as.server] (HttpManagementService-threads - 2) JBAS018559:
Deployed "AOP-1.0.ear"
10:45:04,002 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]
(Timer-1) Loading XML bean definitions from class path resource [applicationContext.xml]
10:45:04,218 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]
(Timer-1) Loading XML bean definitions from class path resource
[applicationContext-dataSource.xml]
10:45:04,265 INFO [org.springframework.context.support.ClassPathXmlApplicationContext]
(Timer-1) Bean factory for application context
[org.springframework.context.support.ClassPathXmlApplicationConte
xt;hashCode=20976523]:
org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans
[messageSource,sessionFactory,hibernateInterceptor,dcbDao,abtDao,serviceTransactionIntercepto
r,administration_Service,dataSource,transactionManager]; root of BeanFactory hierarchy
10:45:04,265 INFO [org.springframework.context.support.ClassPathXmlApplicationContext]
(Timer-1) 9 beans defined in application context
[org.springframework.context.support.ClassPathXmlApplicationCon
text;hashCode=20976523]
10:45:04,280 INFO [org.springframework.context.support.ClassPathXmlApplicationContext]
(Timer-1) Using MessageSource
[org.springframework.context.support.ResourceBundleMessageSource: basenames=[messa
ges]]
10:45:04,280 INFO [org.springframework.context.support.ClassPathXmlApplicationContext]
(Timer-1) Unable to locate ApplicationEventMulticaster with name
'applicationEventMulticaster': using default [o
rg.springframework.context.event.SimpleApplicationEventMulticaster@2af131]
10:45:04,296 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory]
(Timer-1) Pre-instantiating singletons in factory
[org.springframework.beans.factory.support.DefaultListableBe
anFactory defining beans
[messageSource,sessionFactory,hibernateInterceptor,dcbDao,abtDao,serviceTransactionInterceptor,administration_Service,dataSource,transactionManager];
root of BeanFactory hiera
rchy]
10:45:04,357 INFO [org.hibernate.cfg.Environment] (Timer-1) Hibernate 3.1.3
10:45:04,373 INFO [org.hibernate.cfg.Environment] (Timer-1) hibernate.properties not
found
10:45:04,388 INFO [org.hibernate.cfg.Environment] (Timer-1) using CGLIB reflection
optimizer
10:45:04,388 INFO [org.hibernate.cfg.Environment] (Timer-1) using JDK 1.4
java.sql.Timestamp handling
10:45:04,759 INFO [org.hibernate.cfg.HbmBinder] (Timer-1) Mapping class:
es.indra.aop.adm.dominio.DcbImpl -> DCB
10:45:04,836 INFO [org.hibernate.cfg.HbmBinder] (Timer-1) Mapping class:
es.indra.aop.adm.dominio.AbtImpl -> ABT
10:45:04,836 INFO [org.springframework.orm.hibernate3.LocalSessionFactoryBean] (Timer-1)
Building new Hibernate SessionFactory
10:45:04,913 INFO [org.hibernate.connection.ConnectionProviderFactory] (Timer-1)
Initializing connection provider:
org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
10:45:05,268 INFO [org.hibernate.cfg.SettingsFactory] (Timer-1) RDBMS: PostgreSQL,
version: 8.4.1
10:45:05,268 INFO [org.hibernate.cfg.SettingsFactory] (Timer-1) JDBC driver: PostgreSQL
Native Driver, version: PostgreSQL 8.4 JDBC3 (build 702)
10:45:05,299 INFO [org.hibernate.dialect.Dialect] (Timer-1) Using dialect:
org.hibernate.dialect.PostgreSQLDialect
10:45:05,330 INFO [org.hibernate.transaction.TransactionFactoryFactory] (Timer-1) Using
default transaction strategy (direct JDBC transactions)
10:45:05,345 INFO [org.hibernate.transaction.TransactionManagerLookupFactory] (Timer-1)
No TransactionManagerLookup configured (in JTA environment, use of read-write or
transactional second-level cac
he is not recommended)
10:45:05,345 INFO [org.hibernate.cfg.SettingsFactory] (Timer-1) Automatic flush during
beforeCompletion(): disabled
10:45:05,345 INFO [org.hibernate.cfg.SettingsFactory] (Timer-1) Automatic session close
at end of transaction: disabled
10:45:05,345 INFO [org.hibernate.cfg.SettingsFactory] (Timer-1) JDBC batch size: 15
10:45:05,345 INFO [org.hibernate.cfg.SettingsFactory] (Timer-1) JDBC batch updates for
versioned data: disabled
10:45:05,345 INFO [org.hibernate.cfg.SettingsFactory] (Timer-1) Scrollable result sets:
enabled
10:45:05,361 INFO [org.hibernate.cfg.SettingsFactory] (Timer-1) JDBC3 getGeneratedKeys():
enabled
10:45:05,361 INFO [org.hibernate.cfg.SettingsFactory] (Timer-1) Connection release mode:
on_close
10:45:05,361 INFO [org.hibernate.cfg.SettingsFactory] (Timer-1) Default batch fetch size:
1
10:45:05,361 INFO [org.hibernate.cfg.SettingsFactory] (Timer-1) Generate SQL with
comments: disabled
10:45:05,361 INFO [org.hibernate.cfg.SettingsFactory] (Timer-1) Order SQL updates by
primary key: disabled
10:45:05,361 INFO [org.hibernate.cfg.SettingsFactory] (Timer-1) Query translator:
org.hibernate.hql.ast.ASTQueryTranslatorFactory
10:45:05,376 INFO [org.hibernate.hql.ast.ASTQueryTranslatorFactory] (Timer-1) Using
ASTQueryTranslatorFactory
10:45:05,376 INFO [org.hibernate.cfg.SettingsFactory] (Timer-1) Query language
substitutions: {}
10:45:05,376 INFO [org.hibernate.cfg.SettingsFactory] (Timer-1) Second-level cache:
enabled
10:45:05,376 INFO [org.hibernate.cfg.SettingsFactory] (Timer-1) Query cache: disabled
10:45:05,376 INFO [org.hibernate.cfg.SettingsFactory] (Timer-1) Cache provider:
org.hibernate.cache.EhCacheProvider
10:45:05,392 INFO [org.hibernate.cfg.SettingsFactory] (Timer-1) Optimize cache for
minimal puts: disabled
10:45:05,392 INFO [org.hibernate.cfg.SettingsFactory] (Timer-1) Structured second-level
cache entries: disabled
10:45:05,392 INFO [org.hibernate.cfg.SettingsFactory] (Timer-1) Echoing all SQL to
stdout
10:45:05,392 INFO [org.hibernate.cfg.SettingsFactory] (Timer-1) Statistics: disabled
10:45:05,407 INFO [org.hibernate.cfg.SettingsFactory] (Timer-1) Deleted entity synthetic
identifier rollback: disabled
10:45:05,407 INFO [org.hibernate.cfg.SettingsFactory] (Timer-1) Default entity-mode:
pojo
10:45:06,133 INFO [org.hibernate.impl.SessionFactoryImpl] (Timer-1) building session
factory
10:45:06,611 INFO [org.hibernate.impl.SessionFactoryObjectFactory] (Timer-1) Not binding
factory to JNDI, no JNDI name configured
10:45:06,642 INFO [org.springframework.aop.framework.DefaultAopProxyFactory] (Timer-1)
CGLIB2 available: proxyTargetClass feature enabled
10:45:06,720 INFO [org.springframework.transaction.jta.JtaTransactionManager] (Timer-1)
Using JTA UserTransaction:
org.jboss.tm.usertx.client.ServerVMClientUserTransaction@1e247e2
10:45:06,720 INFO [org.springframework.transaction.jta.JtaTransactionManager] (Timer-1)
Using JTA TransactionManager:
com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate@1f4ba0d
10:45:06,750 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]
(Timer-1) Loading XML bean definitions from class path resource
[applicationContext-localEjb.xml]
10:45:06,781 INFO [org.springframework.context.support.ClassPathXmlApplicationContext]
(Timer-1) Bean factory for application context
[org.springframework.context.support.ClassPathXmlApplicationConte
xt;hashCode=2443802]: org.springframework.beans.factory.support.DefaultListableBeanFactory
defining beans [administration_Service]; root of BeanFactory hierarchy
10:45:06,781 INFO [org.springframework.context.support.ClassPathXmlApplicationContext]
(Timer-1) 1 beans defined in application context
[org.springframework.context.support.ClassPathXmlApplicationCon
text;hashCode=2443802]
10:45:06,781 INFO [org.springframework.context.support.ClassPathXmlApplicationContext]
(Timer-1) Unable to locate MessageSource with name 'messageSource': using default
[org.springframework.context.s
upport.DelegatingMessageSource@e9de5f]
10:45:06,781 INFO [org.springframework.context.support.ClassPathXmlApplicationContext]
(Timer-1) Unable to locate ApplicationEventMulticaster with name
'applicationEventMulticaster': using default [o
rg.springframework.context.event.SimpleApplicationEventMulticaster@63ed4]
10:45:06,797 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory]
(Timer-1) Pre-instantiating singletons in factory
[org.springframework.beans.factory.support.DefaultListableBe
anFactory defining beans [administration_Service]; root of BeanFactory hierarchy]
10:45:06,797 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory]
(Timer-1) Destroying singletons in factory
{org.springframework.beans.factory.support.DefaultListableBeanFacto
ry defining beans [administration_Service]; root of BeanFactory hierarchy}
10:45:06,812 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory]
(Timer-1) Destroying singletons in factory
{org.springframework.beans.factory.support.DefaultListableBeanFacto
ry defining beans [beanRefFactory,beanRefFactoryEjb]; root of BeanFactory hierarchy}
10:45:06,812 INFO [org.springframework.context.support.ClassPathXmlApplicationContext]
(Timer-1) Closing application context
[org.springframework.context.support.ClassPathXmlApplicationContext;hashCo
de=20976523]
10:45:06,828 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory]
(Timer-1) Destroying singletons in factory
{org.springframework.beans.factory.support.DefaultListableBeanFacto
ry defining beans
[messageSource,sessionFactory,hibernateInterceptor,dcbDao,abtDao,serviceTransactionInterceptor,administration_Service,dataSource,transactionManager];
root of BeanFactory hierarchy}
10:45:06,828 INFO [org.springframework.orm.hibernate3.LocalSessionFactoryBean] (Timer-1)
Closing Hibernate SessionFactory
10:45:06,843 INFO [org.hibernate.impl.SessionFactoryImpl] (Timer-1) closing
*10:45:06,843 INFO [stdout] (Timer-1) Excepcion: Unable to initialize group definition.
Group resource name [classpath*:beanRefFactory.xml], factory key [beanRefFactoryEjb];
nested exception is org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'beanRefFactoryEjb' defined in URL
[vfs:/C:/jboss-as-7.1.1.Final/bin/content/AOP-1.0.ear/AOP-core-1.0.jar/beanRefFactory.xml]:
Instantiation of bean failed; nested exception is
org.springframework.beans.FatalBeanException: Could notinstantiate class
[org.springframework.context.support.ClassPathXmlApplicationContext]*
*; constructor threw exception; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'administration_Service' defined in class path resource
[applicationContext-localEjb.xml]: Initialization of bean failed; nested exception is
javax.naming.NameNotFoundException: ejb/es.indra.aop.adm.servicio.Administration_Service
-- service
jboss.naming.context.java.ejb."es.indra.aop.adm.servicio.Administration_Service"*
Thanks in advance and any suggestion will be take in consideration.
PD: I want to apologize for my poor english. Sorry.
--------------------------------------------------------------
Comment by going to Community
[
https://community.jboss.org/docs/DOC-18361]
Create a new document in JBoss AS 7 Development at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=102&a...]