[JBoss AS 7 Development] - Help needed: How to realize dynamic web app creation with JBoss AS 7
by Natalia Fernandez
Natalia Fernandez [https://community.jboss.org/people/natalia_fernandez] created the discussion
"Help needed: How to realize dynamic web app creation with JBoss AS 7"
To view the discussion, visit: https://community.jboss.org/message/737604#737604
--------------------------------------------------------------
I'm new to JEE 6 web dev, and currently considering to take JBoss AS 7 (Tomcat 7) to realize a more-than-usual *dynamic* scenario (as I was told that JBoss AS 7 has abundant declarative as well as programmatic config power). Unfortunately, after reading 2 books on JBoss AS 7 and Tomcat 7, I still don't know how to realize this scenario:
A +JEE 6 with JSF2+ web app to create "mini websites" (pagesets of 2-5 pages published under new ServletContexts) for registered website owners.
Please, let me explain first:
1. Website owners register under www.myservice.com/register.xhtml.
=> Obviously there is a main servlet context mapped on "/" (root context) and serving a JSF2 page 'register.xhtml'.
2. This RegServlet installs for each site owner a *new context* (owner sub-domain) with a owner-chosen name, and associates webspace to it, e.g.:
www.myservice.com/ownerX with *document root * ".../webapps/ownerX/" or other appropriate fs path for *preserving* storage.
3. The RegServlet copies(?)(*) a website editor for them to construct the pageset in their own context/webspace, accessible via:
www.myservice.com/ownerX/admin/login.xhtml
www.myservice.com/ownerX/admin/editor.xhtml (**)
(*) alt.: RegServlet offers *1* shared editor for all owners under main RegServlet context, www.myservice.com/editor.xhtml, which should also be accesible via the owner's context -- see (**).
4. With the editor, the owner constructs the pageset in his context's document root by choosing from pre-defined +page types+ (e.g., static/dyn. html page, gallery page, ...) as well as templates and themes available for these page types. The editor stores all page defs, generated JSF pages, JSF beans, CSS, etc. in the owner's webspace. Result:
www.myservice.com/ownerX/index.xhtml, about.xhtml, mygallery.xhtml, myshop.xhtml, etc.
5. Besides the editor, each owner will also have a +customer manager+ for customers "acquired" via their shop:
www.myservice.com/ownerX/admin/customer-manager.xhtml
Thus, each customerY of ownerX will have access to a pre-deployed customer reg page, which creates a customer account:
www.myservice.com/ownerX/customers/registration.xhtml
www.myservice.com/ownerX/customers/login.xhtml
www.myservice.com/ownerX/customers/customer-account-dashboard.xhtml
6. Security: The installer app context will have an own "security realm" with roles {SysAdmin, Visitors}. Each owner context will have its own realm with roles {Website(X)Admin, Website(X)Visitor, Website(X)Customer}.
*Please note:* I know that for such kind of apps a CMS would be more suitable, but is such a system - with only basic functionality - also realizable in pure JEE 6 techs?
Now, my main question is:
* *How can I realize/configure such a dynamic scenario in JBoss AS 7?*
Basically this boils down to:
1. How can I spawn +new contexts+ *programmatically* from within the 1st app (RegServlet)?
2. Page defs/configs would be stored in backend db where JSF pages would be generated from.
Where would I store these generation results for each owner, and how could I *programmatically (re-)deploy* new pages or page changes, so that these get served???
3. Would it be wise to run *2* AppServers, an *embedded* one (I read about Tomcat 7 Embedded) for the definition & testing phase, and a *standalone* one for the final site pubs? Is *embedded* possible for JBoss AS 7?
4. If I finally wanted to replace "www.myservice.com" with the "ownerX" part (i.e. "www.ownerX.com"), +*virtual hosts*+ will be necessary. Is it possible to do this config *programmatically* from the 1st web app (RegServlet)?
At the moment, I'd be very thankful for any help or pointers to examples.
Thanks a million in advance, Natalia.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/737604#737604]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 9 months
[Clustering Development] - Clustered Stateless Session bean
by Vikky B
Vikky B [https://community.jboss.org/people/rzvikas] created the discussion
"Clustered Stateless Session bean"
To view the discussion, visit: https://community.jboss.org/message/737146#737146
--------------------------------------------------------------
I am trying to understand how clustering works with JBOSS 7.1
As per the JBOSS documentation I have read...Remote client can have any one server entry into jboss-ejb-client.properties....from the list of cluster instances.But it is not working....Could someone please take a look at it.
Here is my configuration, When I bring down the server instance 1(4447) , then I can not send request to instace 2 anymore...I get this exception (Exception in thread "main" java.lang.IllegalStateException: No EJB receiver available for handling [appName:,modulename:sample,distinctname:])
On the server I have @Clustered / @Stateless simple java bean
Server Instance 1 :
----------------------------
standalone.bat -server-config=standalone-ha.xml -Djboss.server.base.dir=instance1 -Djboss.node.name=instance1
Server Instance 2 :
----------------------------
standalone.bat -server-config=standalone-ha.xml -Djboss.socket.binding.port-offset=200 -Djboss.node.name=instance2 -Djboss.server.base.dir=instance2
Client Configuration :
------------------------------
remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false
remote.connections=default
remote.connection.default.host=localhost
remote.connection.default.port=4447
remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false
remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOPLAINTEXT=false
remote.clusters=ejb
# Connection configuration(s) for the "ejb" cluster (these are just random examples. You might have to add username and password
# or callbackhandler depending on the security configuration(s) of these cluster node servers.
remote.cluster.ejb.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false
remote.cluster.ejb.connect.options.org.xnio.Options.SSL_ENABLED=false
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/737146#737146]
Start a new discussion in Clustering Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 9 months
[JBoss AS 7 Development] - custom ServerLoginModule Problem: Authentication failed: all available authentication mechanisms failed
by john_k
john_k [https://community.jboss.org/people/john_k] created the discussion
"custom ServerLoginModule Problem: Authentication failed: all available authentication mechanisms failed"
To view the discussion, visit: https://community.jboss.org/message/737021#737021
--------------------------------------------------------------
Hi,
i have some problems to set up a custom serverloginmodule for jboss as7 any help would be appriciated.
I am still new to jboss and jboss as7 so maybe i try to tackle my problem with the wrong tools or i miss just some things i need to know to do it properly.
So maybe someone could point me to the correct direction ;)
*What i want to achieve:*
* i want to access a secured remote ejb via a "normal" java client
* before i access the bean i want to be authenticated via jaas via the jboss with a custom ServerLoginModule * call org.jboss.security.ClientLoginModule via LoginContext
jboss{
org.jboss.security.ClientLoginModule required
;
};
String contextName = "jboss"
Subject subject = new Subject(false, new HashSet<Principal>(),
new HashSet<String>(), new HashSet<String>());
LoginContext loginContext = new LoginContext(contextName,
subject);
loginContext.login();
* if the login succeeds i want to create the initial context and access the bean
code
Properties jndiProperties = new Properties();
jndiProperties.put(Context.URL_PKG_PREFIXES,
"org.jboss.ejb.client.naming");
jndiProperties.put(Context.INITIAL_CONTEXT_FACTORY,
org.jboss.naming.remote.client.InitialContextFactory.class
.getName());
jndiProperties.put(Context.PROVIDER_URL, "remote://localhost:4447");
jndiProperties.put("jboss.naming.client.ejb.context", true);
jndiProperties
.put("jboss.naming.client.connect.options.org.xnio.Options.SASL_POLICY_NOPLAINTEXT",
"false");
jndiProperties.put(Context.SECURITY_PRINCIPAL, "user");
jndiProperties.put(Context.SECURITY_CREDENTIALS, "pass");// pass");
Context context =context = new InitialContext(jndiProperties);
jboss-ejb-client.properties
endpoint.name=client-endpoint
remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false
remote.connections=default
remote.connection.default.host=localhost
remote.connection.default.port = 4447
remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOPLAINTEXT=false
remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false
* on the server side a implementation of AbstractServerLoginModule should be called* i putted my implementation in a jar and tried to add it to a jboss module.
* i tried two ways * 1) put it in a independent module
* 2) put it in the org\jboss\as\remoting\main module [after reading this (I added it on the jboss_install_dir/modules/org/jboss/as/remoting/main and modified the module.xml https://community.jboss.org/thread/195501?start=15&tstart=0 https://community.jboss.org/thread/195501?start=15&tstart=0)
* both with the same result
* my server config looks like this:
<security-realm name="ApplicationRealm">
<authentication>
<properties relative-to="jboss.server.config.dir" path="${jboss.server.config.dir}/application-users.properties"/>
</authentication>
</security-realm>
<security-realm name="MyAppRealm">
<authentication>
<jaas name="myAppJaas"/>
</authentication>
</security-realm>
<security-domains>
<security-domain name="myAppJaas" cache-type="default">
<authentication>
<login-module code="sampleApp.jboss.login.AuthLoginModule"
flag="required">
<module-option name="debug" value="true" />
</login-module>
</authentication>
</security-domain>
</security-domains>
<subsystem xmlns="urn:jboss:domain:remoting:1.1">
<connector name="remoting-connector" socket-binding="remoting" security-realm="MyAppRealm"/>
</subsystem>
*What i get at the moment:*
* i removed the part where i try to login via jaas upfront figured out that it does not make any diffrence in my sample
* it seems that my loginmodule(server) doesent get called (sampleApp.jboss.login.AuthLoginModule)
the only output i get on server side:
14:04:07,946 TRACE [org.jboss.security.auth.login.XMLLoginConfigImpl] (Remoting "client" task-3) Begin getAppConfigurationEntry(myAppJaas), size=1
14:04:07,952 TRACE [org.jboss.security.auth.login.XMLLoginConfigImpl] (Remoting "client" task-3) End getAppConfigurationEntry(myAppJaas), authInfo=AppConfigurationEntry[]:
[0]
LoginModule Class: sampleApp.jboss.login.AuthLoginModule
ControlFlag: Anmeldemodul-Steuerflag: required
Options:
name=debug, value=true
client output:
Mai 22, 2012 2:04:07 PM org.xnio.Xnio <clinit>
INFO: XNIO Version 3.0.3.GA
Mai 22, 2012 2:04:07 PM org.xnio.nio.NioXnio <clinit>
INFO: XNIO NIO Implementation Version 3.0.3.GA
Mai 22, 2012 2:04:07 PM org.jboss.remoting3.EndpointImpl <clinit>
INFO: JBoss Remoting version 3.2.2.GA
Mai 22, 2012 2:04:07 PM org.jboss.remoting3.remote.RemoteConnection handleException
ERROR: JBREM000200: Remote connection failed: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed
javax.naming.NamingException: Failed to create remoting connection [Root exception is java.lang.RuntimeException: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed]
at org.jboss.naming.remote.client.ClientUtil.namingException(ClientUtil.java:36)
at org.jboss.naming.remote.client.InitialContextFactory.getInitialContext(InitialContextFactory.java:117)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)
at javax.naming.InitialContext.init(InitialContext.java:242)
at javax.naming.InitialContext.<init>(InitialContext.java:216)
at Main.main(Main.java:37)
Caused by: java.lang.RuntimeException: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed
at org.jboss.naming.remote.protocol.IoFutureHelper.get(IoFutureHelper.java:87)
at org.jboss.naming.remote.client.cache.ConnectionCache.get(ConnectionCache.java:42)
at org.jboss.naming.remote.client.InitialContextFactory.createConnection(InitialContextFactory.java:153)
at org.jboss.naming.remote.client.InitialContextFactory.getOrCreateConnection(InitialContextFactory.java:126)
at org.jboss.naming.remote.client.InitialContextFactory.getInitialContext(InitialContextFactory.java:106)
... 5 more
Caused by: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed
at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:315)
at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:214)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72)
at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:189)
at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:103)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72)
at org.xnio.nio.NioHandle.run(NioHandle.java:90)
at org.xnio.nio.WorkerThread.run(WorkerThread.java:184)
at ...asynchronous invocation...(Unknown Source)
at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:270)
at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:251)
at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:349)
at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:333)
at org.jboss.naming.remote.client.cache.EndpointCache$EndpointWrapper.connect(EndpointCache.java:110)
at org.jboss.naming.remote.client.cache.ConnectionCache.get(ConnectionCache.java:41)
... 8 more
*Problems:*
* the login module doesent get called --> leads to the sasl exception i assume.. (javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed)
* how to get more useful debug/trace output from the security module
Thank you for your time ... any help would be appreciated.. and sorry for my bad english ;) i hope you could get my point anyways
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/737021#737021]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 9 months
[JBoss AS 7 Development] - Error to deploy .ear with Andromda
by RUBEN CANO
RUBEN CANO [https://community.jboss.org/people/rcmontero] created the discussion
"Error to deploy .ear with Andromda"
To view the discussion, visit: https://community.jboss.org/message/737005#737005
--------------------------------------------------------------
Hi everyone!!!!
I'm new in the world of Jboss and my firts task has been to create a project using Andromda :0 .
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 taken in consideration :) .
PD: I want to apologize for my poor english. Sorry.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/737005#737005]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 9 months