glassfish v3 starting slowly...? - glassfish

I am suffering from starting up glassfish v3 .
it allways taking very long time to start the server. even not starts , all the time it will be idle.
I am trying to deploy ejb of about 160 .
It is not able to deploy all ejbs . for every restart it shows diff no of ejbs deployed.
what may be the problem.
console will be like this ..
[#|2011-09-30T15:13:19.718+0530|INFO|glassfish3.1.1|javax.enterprise.system.cont
ainer.ejb.com.sun.ejb.containers|_ThreadID=10;_ThreadName=main;|Glassfish-specif
ic (Non-portable) JNDI names for EJB CoManagerAccount : [com.wellzio.service.cus
tomer.ICoManagerAccount, com.wellzio.service.customer.ICoManagerAccount#com.well
zio.service.customer.ICoManagerAccount]|#]
[#|2011-09-30T15:13:19.828+0530|WARNING|glassfish3.1.1|javax.enterprise.system.t
ools.monitor.org.glassfish.admin.monitor|_ThreadID=10;_ThreadName=main;|MNTG0201
:Flashlight listener registration failed for listener class : com.sun.ejb.monito
ring.stats.StatelessSessionBeanStatsProvider , will retry later |#]
[#|2011-09-30T15:13:22.171+0530|INFO|glassfish3.1.1|javax.enterprise.system.cont
ainer.ejb.com.sun.ejb.containers|_ThreadID=10;_ThreadName=main;|Portable JNDI na
mes for EJB TrialWap : [java:global/com.wellzio.service.customer/TrialWap!com.we
llzio.service.customer.ITrialWap, java:global/com.wellzio.service.customer/Trial
Wap]|#]
[#|2011-09-30T15:13:22.171+0530|INFO|glassfish3.1.1|javax.enterprise.system.cont
ainer.ejb.com.sun.ejb.containers|_ThreadID=10;_ThreadName=main;|Glassfish-specif
ic (Non-portable) JNDI names for EJB TrialWap : [com.wellzio.service.customer.IT
rialWap#com.wellzio.service.customer.ITrialWap, com.wellzio.service.customer.ITr
ialWap]|#]
[#|2011-09-30T15:13:22.296+0530|WARNING|glassfish3.1.1|javax.enterprise.system.t
ools.monitor.org.glassfish.admin.monitor|_ThreadID=10;_ThreadName=main;|MNTG0201
:Flashlight listener registration failed for listener class : com.sun.ejb.monito
ring.stats.StatelessSessionBeanStatsProvider , will retry later |#]
[#|2011-09-30T15:13:24.156+0530|INFO|glassfish3.1.1|javax.enterprise.system.cont
ainer.ejb.com.sun.ejb.containers|_ThreadID=10;_ThreadName=main;|Portable JNDI na
mes for EJB States : [java:global/com.wellzio.service.customer/States, java:glob
al/com.wellzio.service.customer/States!com.wellzio.service.customer.IStates]|#]
[#|2011-09-30T15:13:24.171+0530|INFO|glassfish3.1.1|javax.enterprise.system.cont
ainer.ejb.com.sun.ejb.containers|_ThreadID=10;_ThreadName=main;|Glassfish-specif
ic (Non-portable) JNDI names for EJB States : [com.wellzio.service.customer.ISta
tes, com.wellzio.service.customer.IStates#com.wellzio.service.customer.IStates]|
#]
[#|2011-09-30T15:13:24.281+0530|WARNING|glassfish3.1.1|javax.enterprise.system.t
ools.monitor.org.glassfish.admin.monitor|_ThreadID=10;_ThreadName=main;|MNTG0201
:Flashlight listener registration failed for listener class : com.sun.ejb.monito
ring.stats.StatelessSessionBeanStatsProvider , will retry later |#]
[#|2011-09-30T15:13:25.656+0530|INFO|glassfish3.1.1|javax.enterprise.system.cont
ainer.ejb.com.sun.ejb.containers|_ThreadID=10;_ThreadName=main;|Portable JNDI na
mes for EJB PatientWapAssociation : [java:global/com.wellzio.service.customer/Pa
tientWapAssociation, java:global/com.wellzio.service.customer/PatientWapAssociat
ion!com.wellzio.service.customer.IPatientWapAssociation]|#]
[#|2011-09-30T15:13:25.656+0530|INFO|glassfish3.1.1|javax.enterprise.system.cont
ainer.ejb.com.sun.ejb.containers|_ThreadID=10;_ThreadName=main;|Glassfish-specif
ic (Non-portable) JNDI names for EJB PatientWapAssociation : [com.wellzio.servic
e.customer.IPatientWapAssociation, com.wellzio.service.customer.IPatientWapAssoc
iation#com.wellzio.service.customer.IPatientWapAssociation]|#]
[#|2011-09-30T15:13:25.765+0530|WARNING|glassfish3.1.1|javax.enterprise.system.t
ools.monitor.org.glassfish.admin.monitor|_ThreadID=10;_ThreadName=main;|MNTG0201
:Flashlight listener registration failed for listener class : com.sun.ejb.monito
ring.stats.StatelessSessionBeanStatsProvider , will retry later |#]
[#|2011-09-30T15:13:29.250+0530|INFO|glassfish3.1.1|javax.enterprise.system.cont
ainer.ejb.com.sun.ejb.containers|_ThreadID=10;_ThreadName=main;|Portable JNDI na
mes for EJB WapAccount : [java:global/com.wellzio.service.customer/WapAccount!co
m.wellzio.service.customer.IWapAccount, java:global/com.wellzio.service.customer
/WapAccount]|#]
[#|2011-09-30T15:13:29.250+0530|INFO|glassfish3.1.1|javax.enterprise.system.cont
ainer.ejb.com.sun.ejb.containers|_ThreadID=10;_ThreadName=main;|Glassfish-specif
ic (Non-portable) JNDI names for EJB WapAccount : [com.wellzio.service.customer.
IWapAccount, com.wellzio.service.customer.IWapAccount#com.wellzio.service.custom
er.IWapAccount]|#]
[#|2011-09-30T15:13:29.375+0530|WARNING|glassfish3.1.1|javax.enterprise.system.t
ools.monitor.org.glassfish.admin.monitor|_ThreadID=10;_ThreadName=main;|MNTG0201
:Flashlight listener registration failed for listener class : com.sun.ejb.monito
ring.stats.StatelessSessionBeanStatsProvider , will retry later |#]
[#|2011-09-30T15:26:06.562+0530|SEVERE|glassfish3.1.1|com.sun.grizzly.config.Gri
zzlyServiceListener|_ThreadID=17;_ThreadName=admin-thread-pool-4848(2);|service
exception
java.lang.RuntimeException: java.lang.NullPointerException
at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:24
3)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java
:168)
at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java
:117)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(Container
Mapper.java:238)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:8
28)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFil
ter.java:225)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultPro
tocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
a:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
a:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java
:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextT
ask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.
java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadP
ool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool
.java:513)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at com.sun.enterprise.v3.services.impl.monitor.MonitorableSelectionKeyHa
ndler$CloseHandler.notifyClosed(MonitorableSelectionKeyHandler.java:94)
at com.sun.enterprise.v3.services.impl.monitor.MonitorableSelectionKeyHa
ndler$CloseHandler.remotlyClosed(MonitorableSelectionKeyHandler.java:90)
at com.sun.grizzly.BaseSelectionKeyHandler.notifyRemotlyClose(BaseSelect
ionKeyHandler.java:233)
at com.sun.grizzly.util.OutputWriter.notifyRemotelyClosed(OutputWriter.j
ava:353)
at com.sun.grizzly.util.OutputWriter.flushChannel(OutputWriter.java:148)
at com.sun.grizzly.util.OutputWriter.flushChannel(OutputWriter.java:76)
at com.sun.grizzly.http.SocketChannelOutputBuffer.flushChannel(SocketCha
nnelOutputBuffer.java:326)
at com.sun.grizzly.http.SocketChannelOutputBuffer.flushBuffer(SocketChan
nelOutputBuffer.java:398)
at com.sun.grizzly.http.SocketChannelOutputBuffer.flush(SocketChannelOut
putBuffer.java:376)
at com.sun.grizzly.http.ProcessorTask.action(ProcessorTask.java:1247)
at com.sun.grizzly.tcp.Response.action(Response.java:268)
at com.sun.grizzly.tcp.http11.GrizzlyOutputBuffer.doFlush(GrizzlyOutputB
uffer.java:434)
at com.sun.grizzly.tcp.http11.GrizzlyOutputBuffer.flush(GrizzlyOutputBuf
fer.java:405)
at com.sun.grizzly.tcp.http11.GrizzlyOutputStream.flush(GrizzlyOutputStr
eam.java:140)
at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:24
0)
... 17 more
|#]
[#|2011-09-30T15:23:13.625+0530|INFO|glassfish3.1.1|org.hibernate.validator.util
.Version|_ThreadID=16;_ThreadName=admin-thread-pool-4848(1);|Hibernate Validator
4.1.0.Final|#]
[#|2011-09-30T15:29:36.406+0530|INFO|glassfish3.1.1|org.hibernate.validator.engi
ne.resolver.DefaultTraversableResolver|_ThreadID=16;_ThreadName=admin-thread-poo
l-4848(1);|Instantiated an instance of org.hibernate.validator.engine.resolver.J
PATraversableResolver.|#]
[#|2011-09-30T15:29:36.656+0530|INFO|glassfish3.1.1|javax.enterprise.system.core
.com.sun.enterprise.v3.admin.adapter|_ThreadID=18;_ThreadName=Thread-39;|The Adm
in Console is already installed, but not yet loaded.|#]
[#|2011-09-30T15:29:36.656+0530|INFO|glassfish3.1.1|javax.enterprise.system.core
.com.sun.enterprise.v3.admin.adapter|_ThreadID=18;_ThreadName=Thread-39;|The Adm
in Console is starting. Please wait.|#]
[#|2011-09-30T15:29:39.312+0530|INFO|glassfish3.1.1|javax.enterprise.system.cont
ainer.ejb.com.sun.ejb.containers|_ThreadID=10;_ThreadName=main;|Portable JNDI na
mes for EJB CustomerAuthentication : [java:global/com.wellzio.service.customer/C
ustomerAuthentication!com.wellzio.service.customer.ICustomerAuthentication, java
:global/com.wellzio.service.customer/CustomerAuthentication]|#]
[#|2011-09-30T15:29:39.312+0530|INFO|glassfish3.1.1|javax.enterprise.system.cont
ainer.ejb.com.sun.ejb.containers|_ThreadID=10;_ThreadName=main;|Glassfish-specif
ic (Non-portable) JNDI names for EJB CustomerAuthentication : [com.wellzio.servi
ce.customer.ICustomerAuthentication#com.wellzio.service.customer.ICustomerAuthen
tication, com.wellzio.service.customer.ICustomerAuthentication]|#]
[#|2011-09-30T15:29:39.437+0530|WARNING|glassfish3.1.1|javax.enterprise.system.t
ools.monitor.org.glassfish.admin.monitor|_ThreadID=10;_ThreadName=main;|MNTG0201
:Flashlight listener registration failed for listener class : com.sun.ejb.monito
ring.stats.StatelessSessionBeanStatsProvider , will retry later |#]
[#|2011-09-30T15:30:07.093+0530|INFO|glassfish3.1.1|javax.enterprise.system.cont
ainer.ejb.com.sun.ejb.containers|_ThreadID=10;_ThreadName=main;|Portable JNDI na
mes for EJB CreditCards : [java:global/com.wellzio.service.customer/CreditCards,
java:global/com.wellzio.service.customer/CreditCards!com.wellzio.service.custom
er.ICreditCards]|#]
[#|2011-09-30T15:30:07.093+0530|INFO|glassfish3.1.1|javax.enterprise.system.cont
ainer.ejb.com.sun.ejb.containers|_ThreadID=10;_ThreadName=main;|Glassfish-specif
ic (Non-portable) JNDI names for EJB CreditCards : [com.wellzio.service.customer
.ICreditCards#com.wellzio.service.customer.ICreditCards, com.wellzio.service.cus
tomer.ICreditCards]|#]
[#|2011-09-30T15:30:07.203+0530|WARNING|glassfish3.1.1|javax.enterprise.system.t
ools.monitor.org.glassfish.admin.monitor|_ThreadID=10;_ThreadName=main;|MNTG0201
:Flashlight listener registration failed for listener class : com.sun.ejb.monito
ring.stats.StatelessSessionBeanStatsProvider , will retry later |#]
[#|2011-09-30T15:30:08.671+0530|INFO|glassfish3.1.1|javax.enterprise.system.cont
ainer.ejb.com.sun.ejb.containers|_ThreadID=10;_ThreadName=main;|Portable JNDI na
mes for EJB TrialResponse : [java:global/com.wellzio.service.customer/TrialRespo
nse, java:global/com.wellzio.service.customer/TrialResponse!com.wellzio.service.
customer.ITrialResponse]|#]
[#|2011-09-30T15:30:08.671+0530|INFO|glassfish3.1.1|javax.enterprise.system.cont
ainer.ejb.com.sun.ejb.containers|_ThreadID=10;_ThreadName=main;|Glassfish-specif
ic (Non-portable) JNDI names for EJB TrialResponse : [com.wellzio.service.custom
er.ITrialResponse#com.wellzio.service.customer.ITrialResponse, com.wellzio.servi
ce.customer.ITrialResponse]|#]
[#|2011-09-30T15:30:08.796+0530|WARNING|glassfish3.1.1|javax.enterprise.system.t
ools.monitor.org.glassfish.admin.monitor|_ThreadID=10;_ThreadName=main;|MNTG0201
:Flashlight listener registration failed for listener class : com.sun.ejb.monito
ring.stats.StatelessSessionBeanStatsProvider , will retry later |#]
[#|2011-09-30T15:30:09.687+0530|INFO|glassfish3.1.1|javax.enterprise.system.cont
ainer.ejb.com.sun.ejb.containers|_ThreadID=10;_ThreadName=main;|Portable JNDI na
mes for EJB TrialRoleTypes : [java:global/com.wellzio.service.customer/TrialRole
Types, java:global/com.wellzio.service.customer/TrialRoleTypes!com.wellzio.servi
ce.customer.ITrialRoleTypes]|#]
[#|2011-09-30T15:30:09.687+0530|INFO|glassfish3.1.1|javax.enterprise.system.cont
ainer.ejb.com.sun.ejb.containers|_ThreadID=10;_ThreadName=main;|Glassfish-specif
ic (Non-portable) JNDI names for EJB TrialRoleTypes : [com.wellzio.service.custo
mer.ITrialRoleTypes#com.wellzio.service.customer.ITrialRoleTypes, com.wellzio.se
rvice.customer.ITrialRoleTypes]|#]
[#|2011-09-30T15:30:09.812+0530|WARNING|glassfish3.1.1|javax.enterprise.system.t
ools.monitor.org.glassfish.admin.monitor|_ThreadID=10;_ThreadName=main;|MNTG0201
:Flashlight listener registration failed for listener class : com.sun.ejb.monito
ring.stats.StatelessSessionBeanStatsProvider , will retry later |#]
[#|2011-09-30T15:30:10.828+0530|INFO|glassfish3.1.1|javax.enterprise.system.cont
ainer.ejb.com.sun.ejb.containers|_ThreadID=10;_ThreadName=main;|Portable JNDI na
mes for EJB TrialCustomerRoles : [java:global/com.wellzio.service.customer/Trial
CustomerRoles, java:global/com.wellzio.service.customer/TrialCustomerRoles!com.w
ellzio.service.customer.ITrialCustomerRoles]|#]
[#|2011-09-30T15:30:10.828+0530|INFO|glassfish3.1.1|javax.enterprise.system.cont
ainer.ejb.com.sun.ejb.containers|_ThreadID=10;_ThreadName=main;|Glassfish-specif
ic (Non-portable) JNDI names for EJB TrialCustomerRoles : [com.wellzio.service.c
ustomer.ITrialCustomerRoles, com.wellzio.service.customer.ITrialCustomerRoles#co
m.wellzio.service.customer.ITrialCustomerRoles]|#]
[#|2011-09-30T15:32:27.703+0530|WARNING|glassfish3.1.1|javax.enterprise.system.t
ools.monitor.org.glassfish.admin.monitor|_ThreadID=10;_ThreadName=main;|MNTG0201
:Flashlight listener registration failed for listener class : com.sun.ejb.monito
ring.stats.StatelessSessionBeanStatsProvider , will retry later |#]
[#|2011-09-30T15:32:28.984+0530|INFO|glassfish3.1.1|javax.enterprise.system.cont
ainer.ejb.com.sun.ejb.containers|_ThreadID=10;_ThreadName=main;|Portable JNDI na
mes for EJB CustomerRoles : [java:global/com.wellzio.service.customer/CustomerRo
les, java:global/com.wellzio.service.customer/CustomerRoles!com.wellzio.service.
customer.ICustomerRoles]|#]
[#|2011-09-30T15:32:28.984+0530|INFO|glassfish3.1.1|javax.enterprise.system.cont
ainer.ejb.com.sun.ejb.containers|_ThreadID=10;_ThreadName=main;|Glassfish-specif
ic (Non-portable) JNDI names for EJB CustomerRoles : [com.wellzio.service.custom
er.ICustomerRoles#com.wellzio.service.customer.ICustomerRoles, com.wellzio.servi
ce.customer.ICustomerRoles]|#]
[#|2011-09-30T15:32:29.109+0530|WARNING|glassfish3.1.1|javax.enterprise.system.t
ools.monitor.org.glassfish.admin.monitor|_ThreadID=10;_ThreadName=main;|MNTG0201
:Flashlight listener registration failed for listener class : com.sun.ejb.monito
ring.stats.StatelessSessionBeanStatsProvider , will retry later |#]
[#|2011-09-30T15:32:30.875+0530|INFO|glassfish3.1.1|javax.enterprise.system.cont
ainer.ejb.com.sun.ejb.containers|_ThreadID=10;_ThreadName=main;|Portable JNDI na
mes for EJB Trials : [java:global/com.wellzio.service.customer/Trials, java:glob
al/com.wellzio.service.customer/Trials!com.wellzio.service.customer.ITrials]|#]
[#|2011-09-30T15:32:30.875+0530|INFO|glassfish3.1.1|javax.enterprise.system.cont
ainer.ejb.com.sun.ejb.containers|_ThreadID=10;_ThreadName=main;|Glassfish-specif
ic (Non-portable) JNDI names for EJB Trials : [com.wellzio.service.customer.ITri
als, com.wellzio.service.customer.ITrials#com.wellzio.service.customer.ITrials]|
#]
[#|2011-09-30T15:32:31.015+0530|WARNING|glassfish3.1.1|javax.enterprise.system.t
ools.monitor.org.glassfish.admin.monitor|_ThreadID=10;_ThreadName=main;|MNTG0201
:Flashlight listener registration failed for listener class : com.sun.ejb.monito
ring.stats.StatelessSessionBeanStatsProvider , will retry later |#]
[#|2011-09-30T15:32:32.312+0530|INFO|glassfish3.1.1|javax.enterprise.system.cont
ainer.ejb.com.sun.ejb.containers|_ThreadID=10;_ThreadName=main;|Portable JNDI na
mes for EJB PhysicianAccount : [java:global/com.wellzio.service.customer/Physici
anAccount!com.wellzio.service.customer.IPhysicianAccount, java:global/com.wellzi
o.service.customer/PhysicianAccount]|#]
[#|2011-09-30T15:32:32.312+0530|INFO|glassfish3.1.1|javax.enterprise.system.cont
ainer.ejb.com.sun.ejb.containers|_ThreadID=10;_ThreadName=main;|Glassfish-specif
ic (Non-portable) JNDI names for EJB PhysicianAccount : [com.wellzio.service.cus
tomer.IPhysicianAccount#com.wellzio.service.customer.IPhysicianAccount, com.well
zio.service.customer.IPhysicianAccount]|#]
[#|2011-09-30T15:32:32.468+0530|WARNING|glassfish3.1.1|javax.enterprise.system.t
ools.monitor.org.glassfish.admin.monitor|_ThreadID=10;_ThreadName=main;|MNTG0201
:Flashlight listener registration failed for listener class : com.sun.ejb.monito
ring.stats.StatelessSessionBeanStatsProvider , will retry later |#]

Related

Apache NiFi TLS failed to start

I have tried to install NiFi toolkit to enable TLS. I followed instructions given here.
I followed the steps,using localhost and host as sachith but when I try to start NiFi again, I get following error.
Bootstrap Config File: /home/sachith/nifi-1.9.2/conf/bootstrap.conf
16:59:23,949 |-INFO in ch.qos.logback.classic.LoggerContext[default] -
Could NOT find resource [logback-test.xml] 16:59:23,950 |-INFO in
ch.qos.logback.classic.LoggerContext[default] - Could NOT find
resource [logback.groovy] 16:59:23,950 |-INFO in
ch.qos.logback.classic.LoggerContext[default] - Found resource
[logback.xml] at
[file:/home/sachith/Documents/Projects/nifi-1.9.2-bin/nifi-1.9.2/conf/logback.xml]
16:59:24,032 |-INFO in
ch.qos.logback.classic.joran.action.ConfigurationAction - debug
attribute not set 16:59:24,046 |-INFO in
ch.qos.logback.classic.joran.action.ConfigurationAction - Will scan
for changes in
[file:/home/sachith/Documents/Projects/nifi-1.9.2-bin/nifi-1.9.2/conf/logback.xml]
16:59:24,046 |-INFO in
ch.qos.logback.classic.joran.action.ConfigurationAction - Setting
ReconfigureOnChangeTask scanning period to 30 seconds 16:59:24,049
|-INFO in
ch.qos.logback.classic.joran.action.LoggerContextListenerAction -
Adding LoggerContextListener of type
[ch.qos.logback.classic.jul.LevelChangePropagator] to the object stack
16:59:24,062 |-INFO in
ch.qos.logback.classic.jul.LevelChangePropagator#48140564 -
Propagating DEBUG level on Logger[ROOT] onto the JUL framework
16:59:24,062 |-INFO in
ch.qos.logback.classic.joran.action.LoggerContextListenerAction -
Starting LoggerContextListener 16:59:24,062 |-INFO in
ch.qos.logback.core.joran.action.AppenderAction - About to instantiate
appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
16:59:24,067 |-INFO in ch.qos.logback.core.joran.action.AppenderAction
Naming appender as [APP_FILE] 16:59:24,084 |-INFO in c.q.l.core.rolling.SizeAndTimeBasedRollingPolicy#93122545 - Archive
files will be limited to [100 MB] each. 16:59:24,127 |-INFO in
c.q.l.core.rolling.SizeAndTimeBasedRollingPolicy#93122545 - No
compression will be used 16:59:24,128 |-INFO in
c.q.l.core.rolling.SizeAndTimeBasedRollingPolicy#93122545 - Will use
the pattern
/home/sachith/Documents/Projects/nifi-1.9.2-bin/nifi-1.9.2/logs/nifi-app_%d{yyyy-MM-dd_HH}.%i.log
for the active file 16:59:24,131 |-INFO in
ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP#7c30a502 - The date
pattern is 'yyyy-MM-dd_HH' from file name pattern
'/home/sachith/Documents/Projects/nifi-1.9.2-bin/nifi-1.9.2/logs/nifi-app_%d{yyyy-MM-dd_HH}.%i.log'.
nifi-app.log
2020-06-26 09:27:50,296 INFO [main] org.eclipse.jetty.server.Server Started #186210ms
2020-06-26 09:27:50,297 WARN [main] org.apache.nifi.web.server.JettyServer Failed to start web server... shutting down.
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration': Unsatisfied dependency expressed through method 'setFilterChainProxySecurityConfigurer' parameter 1; nested exception is org.springframework.beans.factory.BeanExpressionException: Expression parsing failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.apache.nifi.web.NiFiWebApiSecurityConfiguration': Unsatisfied dependency expressed through method 'setJwtAuthenticationProvider' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jwtAuthenticationProvider' defined in class path resource [nifi-web-security-context.xml]: Cannot resolve reference to bean 'authorizer' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorizer': FactoryBean threw exception on object creation; nested exception is org.apache.nifi.authorization.exception.AuthorizerCreationException: Unable to locate configured Access Policy Provider: file-access-policy-provider
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:666)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1269)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:551)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
Edit : After Andy's initial answer.
My authorizers.xml
<accessPolicyProvider>
<identifier>file-access-policy-provider</identifier>
<class>org.apache.nifi.authorization.FileAccessPolicyProvider</class>
<property name="User Group Provider">file-user-group-provider</property>
<property name="Authorizations File">./conf/authorizations.xml</property>
<property name="Initial Admin Identity">CN=sachith, OU=NiFi</property>
<property name="Legacy Authorized Users File"></property>
<property name="Node Identity 1"></property>
<property name="Node Group"></property>
</accessPolicyProvider>
<userGroupProvider>
<identifier>file-user-group-provider</identifier>
<class>org.apache.nifi.authorization.FileUserGroupProvider</class>
<property name="Users File">./conf/users.xml</property>
<property name="Legacy Authorized Users File"></property>
<property name="Initial User Identity 1">CN=sachith, OU=NiFi</property>
</userGroupProvider>
You haven't provided the complete log output, so there may be other issues here, but it looks like the problem is nested exception is org.apache.nifi.authorization.exception.AuthorizerCreationException: Unable to locate configured Access Policy Provider: file-access-policy-provider. Did you provide an authorizers.xml file which defines a FileAccessPolicyProvider?
Look specifically at Step 7 of the walkthrough guide you linked to.

Migrating from jboss as to wildfly

I'm migrating from JBoss AS 7 to Wildfly 9.0.2.
I changed the standalone.xml to add our datasources, email configuration and security (JAAS). The rest of the config are the distribution defaults.
I changed my app to use the new naming for JAAS (without java:jaas/).
But, when I deploy my app, I get the following error:
16:58:57,777 INFO [org.jboss.weld.deployer] (MSC service thread 1-1) WFLYWELD0006: Starting Services for CDI deployment: foo-app.ear
16:58:57,868 INFO [org.jboss.weld.Version] (MSC service thread 1-1) WELD-000900: 2.2.16 (SP1)
16:58:58,012 INFO [org.jboss.weld.deployer] (MSC service thread 1-3) WFLYWELD0009: Starting weld service for deployment foo-app.ear
16:58:58,221 INFO [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0018: Host default-host starting
16:58:59,737 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 60) WFLYJPA0010: Starting Persistence Unit (phase 2 of 2) Service 'foo-app.ear#Admin'
16:58:59,737 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 59) WFLYJPA0010: Starting Persistence Unit (phase 2 of 2) Service 'foo-app.ear#ReadOnly'
16:58:59,915 INFO [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 59) HCANN000001: Hibernate Commons Annotations {4.0.5.Final}
16:59:01,847 INFO [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 59) HHH000400: Using dialect: com.foo.dialect.CADialect
16:59:01,865 INFO [org.hibernate.engine.jdbc.internal.LobCreatorBuilder] (ServerService Thread Pool -- 59) HHH000424: Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException
16:59:01,944 INFO [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 60) HHH000400: Using dialect: com.foo.dialect.CADialect
16:59:01,946 INFO [org.hibernate.engine.jdbc.internal.LobCreatorBuilder] (ServerService Thread Pool -- 60) HHH000424: Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException
16:59:03,752 INFO [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (ServerService Thread Pool -- 60) HHH000397: Using ASTQueryTranslatorFactory
16:59:03,758 INFO [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (ServerService Thread Pool -- 59) HHH000397: Using ASTQueryTranslatorFactory
16:59:03,762 WARN [org.hibernate.cfg.SettingsFactory] (ServerService Thread Pool -- 60) Unrecognized value for "hibernate.hbm2ddl.auto": none
16:59:03,763 WARN [org.hibernate.cfg.SettingsFactory] (ServerService Thread Pool -- 59) Unrecognized value for "hibernate.hbm2ddl.auto": none
16:59:09,658 INFO [org.hibernate.tuple.PojoInstantiator] (ServerService Thread Pool -- 59) HHH000182: No default (no-argument) constructor for class: com.foo.entity.MotivoBaixa (class must be instantiated by Interceptor)
16:59:09,659 INFO [org.hibernate.tuple.PojoInstantiator] (ServerService Thread Pool -- 60) HHH000182: No default (no-argument) constructor for class: com.foo.entity.MotivoBaixa (class must be instantiated by Interceptor)
16:59:10,639 INFO [org.hibernate.tuple.PojoInstantiator] (ServerService Thread Pool -- 59) HHH000182: No default (no-argument) constructor for class: com.foo.invoice.ServiceInvoiceMessage (class must be instantiated by Interceptor)
16:59:10,640 INFO [org.hibernate.tuple.PojoInstantiator] (ServerService Thread Pool -- 60) HHH000182: No default (no-argument) constructor for class: com.foo.invoice.ServiceInvoiceMessage (class must be instantiated by Interceptor)
16:59:18,224 WARN [org.jboss.weld.Bootstrap] (weld-worker-1) WELD-001125: Illegal bean type com.foo.service.ListFilter<com.foo.negotiation.entity.Negotiation<?, ?>> ignored on [EnhancedAnnotatedTypeImpl] public class com.foo.negotiation.NegotiationFilter
16:59:18,236 WARN [org.jboss.weld.Bootstrap] (weld-worker-1) WELD-001125: Illegal bean type com.foo.service.ListFilter<com.foo.negotiation.entity.Negotiation<?, ?>> ignored on [EnhancedAnnotatedTypeImpl] public class com.foo.negotiation.statement.NegotiationStatementFilter
16:59:23,125 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.unit."foo-app.ear".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."foo-app.ear".WeldStartService: Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalArgumentException: object is not an instance of declaring class
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jboss.weld.resolution.QualifierInstance.createValues(QualifierInstance.java:128)
at org.jboss.weld.resolution.QualifierInstance.of(QualifierInstance.java:95)
at org.jboss.weld.resolution.ResolvableBuilder.addQualifier(ResolvableBuilder.java:147)
at org.jboss.weld.resolution.ResolvableBuilder.addQualifiers(ResolvableBuilder.java:197)
at org.jboss.weld.resolution.ResolvableBuilder.addQualifiers(ResolvableBuilder.java:192)
at org.jboss.weld.manager.BeanManagerImpl.resolveDecorators(BeanManagerImpl.java:904)
at org.jboss.weld.injection.producer.BeanInjectionTarget.initializeAfterBeanDiscovery(BeanInjectionTarget.java:108)
at org.jboss.weld.injection.producer.InjectionTargetInitializationContext.initialize(InjectionTargetInitializationContext.java:42)
at org.jboss.weld.injection.producer.InjectionTargetService.initialize(InjectionTargetService.java:63)
at org.jboss.weld.bootstrap.WeldStartup.deployBeans(WeldStartup.java:431)
at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:83)
at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:93)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
... 3 more
16:59:23,240 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "foo-app.ear")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"foo-app.ear\".WeldStartService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"foo-app.ear\".WeldStartService: Failed to start service
Caused by: java.lang.IllegalArgumentException: object is not an instance of declaring class"}}
16:59:23,342 INFO [org.jboss.as.server] (ServerService Thread Pool -- 34) WFLYSRV0010: Deployed "foo-app.ear" (runtime-name : "foo-app.ear")
16:59:23,347 INFO [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
WFLYCTL0186: Services which failed to start: service jboss.deployment.unit."foo-app.ear".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."foo-app.ear".WeldStartService: Failed to start service
16:59:23,668 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management
16:59:23,669 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990
16:59:23,669 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: WildFly Full 9.0.2.Final (WildFly Core 1.0.2.Final) started (with errors) in 44463ms - Started 18381 of 21165 services (2571 services failed or missing dependencies, 283 services are lazy, passive or on-demand)
I don't understand why this error is happening and I also don't know how to find out why it is happening.
Any tips on how to debug this kind of issue (e.g., which class object it is trying to pass around to where)?
Or, maybe, someone that had this problem before with some advice on how to tackle it?
I found the error by patching weld to log the error: https://github.com/weld/core/pull/1359
The logs showed that the problem was in a qualifier.
So I grep inside the .ear for that qualifier, and it was in multiple places:
/lib
/context1.war
/context3.war
So, I basically remove it from context1 and context2 war files and everything worked as expected.

No mapping found for HTTP request with URI with Wildfly and Intellij

I just decided to start using Jboss and ran into some issues on configuration. I was hoping to find the solution here.
I am using intellij 14 Ultimate and below are some screen shots of my set up.
/wildfly-9.0.1.Final/bin/standalone.sh
/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/java -classpath "/Applications/IntelliJ IDEA 14.app/Contents/lib/idea_rt.jar:/Applications/IntelliJ IDEA 14.app/Contents/lib/util.jar" -Dfile.encoding=UTF-8 com.intellij.rt.execution.CommandLineWrapper /private/var/folders/82/0w1gp6xx3sl3hptcc5pqsxj00000gn/T/classpath0.tmp com.intellij.javaee.oss.process.JavaeeProcess 53199 com.intellij.javaee.oss.jboss.agent.JBoss71Agent
[2015-08-21 01:03:33,576] Artifact offers:war exploded: Server is not connected. Deploy is not available.
Detected server admin port: 9990
Detected server http port: 8080
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /wildfly-9.0.1.Final
JAVA: /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/java
JAVA_OPTS: -server -XX:+UseCompressedOops -server -XX:+UseCompressedOops -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
=========================================================================
13:03:32,399 INFO [org.jboss.modules] (main) JBoss Modules version 1.4.3.Final
13:03:33,176 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final
13:03:33,375 INFO [org.jboss.as] (MSC service thread 1-1) WFLYSRV0049: WildFly Full 9.0.1.Final (WildFly Core 1.0.1.Final) starting
13:03:36,270 INFO [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 8) WFLYCTL0028: Attribute 'enabled' in the resource at address '/subsystem=datasources/data-source=ExampleDS' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
13:03:36,272 INFO [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 12) WFLYCTL0028: Attribute 'job-repository-type' in the resource at address '/subsystem=batch' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
13:03:36,454 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http)
13:03:36,644 INFO [org.xnio] (MSC service thread 1-4) XNIO version 3.3.1.Final
13:03:36,657 INFO [org.xnio.nio] (MSC service thread 1-4) XNIO NIO Implementation Version 3.3.1.Final
13:03:36,820 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 33) WFLYJCA0004: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
13:03:36,836 INFO [org.wildfly.extension.io] (ServerService Thread Pool -- 37) WFLYIO001: Worker 'default' has auto-configured to 4 core threads with 32 task threads based on your 2 available processors
13:03:36,860 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 38) WFLYCLINF0001: Activating Infinispan subsystem.
13:03:36,892 INFO [org.jboss.remoting] (MSC service thread 1-4) JBoss Remoting version 4.0.9.Final
13:03:36,955 INFO [org.jboss.as.security] (ServerService Thread Pool -- 53) WFLYSEC0002: Activating Security Subsystem
13:03:36,955 WARN [org.jboss.as.txn] (ServerService Thread Pool -- 54) WFLYTX0013: Node identifier property is set to the default value. Please make sure it is unique.
13:03:36,959 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 56) WFLYWS0002: Activating WebServices Extension
13:03:36,983 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 46) WFLYNAM0001: Activating Naming Subsystem
13:03:37,002 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 55) WFLYUT0003: Undertow 1.2.9.Final starting
13:03:37,002 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) WFLYUT0003: Undertow 1.2.9.Final starting
13:03:37,010 INFO [org.jboss.as.jsf] (ServerService Thread Pool -- 44) WFLYJSF0007: Activated the following JSF Implementations: [main]
13:03:37,090 INFO [org.jboss.as.connector] (MSC service thread 1-3) WFLYJCA0009: Starting JCA Subsystem (IronJacamar 1.2.4.Final)
13:03:37,187 INFO [org.jboss.as.security] (MSC service thread 1-3) WFLYSEC0001: Current PicketBox version=4.9.2.Final
13:03:37,477 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) WFLYJCA0018: Started Driver service with driver-name = h2
13:03:37,480 INFO [org.jboss.as.naming] (MSC service thread 1-2) WFLYNAM0003: Starting Naming Service
13:03:37,488 INFO [org.jboss.as.mail.extension] (MSC service thread 1-4) WFLYMAIL0001: Bound mail session [java:jboss/mail/Default]
13:03:37,625 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 55) WFLYUT0014: Creating file handler for path /wildfly-9.0.1.Final/welcome-content
13:03:37,644 INFO [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0012: Started server default-server.
13:03:37,717 INFO [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0018: Host default-host starting
13:03:37,981 INFO [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0006: Undertow HTTP listener default listening on /127.0.0.1:8080
13:03:38,321 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-4) WFLYDS0013: Started FileSystemDeploymentService for directory /wildfly-9.0.1.Final/standalone/deployments
13:03:38,767 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) WFLYJCA0001: Bound data source [java:jboss/datasources/ExampleDS]
13:03:38,816 INFO [org.jboss.ws.common.management] (MSC service thread 1-2) JBWS022052: Starting JBoss Web Services - Stack CXF Server 5.0.0.Final
13:03:39,348 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management
13:03:39,348 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990
13:03:39,349 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 9.0.1.Final (WildFly Core 1.0.1.Final) started in 8364ms - Started 203 of 379 services (210 services are lazy, passive or on-demand)
Connected to server
[2015-08-21 01:03:40,302] Artifact offers:war exploded: Artifact is being deployed, please wait...
13:03:40,550 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0027: Starting deployment of "offers_war_exploded" (runtime-name: "offers_war_exploded.war")
13:03:41,677 WARN [org.jboss.as.ee] (MSC service thread 1-4) WFLYEE0007: Not installing optional component org.springframework.web.context.request.async.StandardServletAsyncWebRequest due to an exception (enable DEBUG log level to see the cause)
13:03:41,952 INFO [io.undertow.servlet] (ServerService Thread Pool -- 3) No Spring WebApplicationInitializer types detected on classpath
13:03:42,036 INFO [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 3) Initializing Mojarra 2.2.11-jbossorg-1 20150505-1501 for context '/offers_war_exploded'
13:03:43,576 INFO [io.undertow.servlet] (ServerService Thread Pool -- 3) Initializing Spring FrameworkServlet 'offers'
13:03:43,579 INFO [org.springframework.web.servlet.DispatcherServlet] (ServerService Thread Pool -- 3) FrameworkServlet 'offers': initialization started
13:03:43,601 INFO [org.springframework.web.context.support.XmlWebApplicationContext] (ServerService Thread Pool -- 3) Refreshing WebApplicationContext for namespace 'offers-servlet': startup date [Fri Aug 21 13:03:43 CEST 2015]; root of context hierarchy
13:03:43,640 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (ServerService Thread Pool -- 3) Loading XML bean definitions from ServletContext resource [/WEB-INF/offers-servlet.xml]
13:03:43,957 INFO [org.springframework.context.annotation.ClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 3) JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning
13:03:43,963 INFO [org.springframework.context.annotation.ClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 3) JSR-330 'javax.inject.Named' annotation found and supported for component scanning
13:03:44,127 INFO [org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor] (ServerService Thread Pool -- 3) JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
13:03:44,136 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] (ServerService Thread Pool -- 3) Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory#737dec13: defining beans [offersController,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,mvcContentNegotiationManager,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0,org.springframework.format.support.FormattingConversionServiceFactoryBean#0,org.springframework.validation.beanvalidation.LocalValidatorFactoryBean#0,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0,org.springframework.web.servlet.handler.MappedInterceptor#0,org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0,org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#0,org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#0,org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; root of factory hierarchy
13:03:44,274 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (ServerService Thread Pool -- 3) Mapped "{[/],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String com.caveofprogramming.spring.web.controllers.OffersController.showHome()
13:03:44,304 INFO [org.hibernate.validator.internal.util.Version] (ServerService Thread Pool -- 3) HV000001: Hibernate Validator 5.1.3.Final
13:03:44,871 INFO [org.springframework.web.servlet.DispatcherServlet] (ServerService Thread Pool -- 3) FrameworkServlet 'offers': initialization completed in 1292 ms
13:03:44,872 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 3) WFLYUT0021: Registered web context: /offers_war_exploded
13:03:44,892 INFO [org.jboss.as.server] (management-handler-thread - 2) WFLYSRV0010: Deployed "offers_war_exploded" (runtime-name : "offers_war_exploded.war")
[2015-08-21 01:03:44,923] Artifact offers:war exploded: Artifact is deployed successfully
[2015-08-21 01:03:44,923] Artifact offers:war exploded: Deploy took 4,621 milliseconds
13:03:45,415 WARN [org.springframework.web.servlet.PageNotFound] (default task-1) No mapping found for HTTP request with URI [/offers_war_exploded/home] in DispatcherServlet with name 'offers'
13:03:45,953 WARN [org.springframework.web.servlet.PageNotFound] (default task-3) No mapping found for HTTP request with URI [/offers_war_exploded/home] in DispatcherServlet with name 'offers'
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>spring-tutorial-50</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<servlet>
<description></description>
<display-name>offers</display-name>
<servlet-name>offers</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>offers</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
</web-app>
-------UPDATE ONE-------------
I am a little confused here.
The error said:
No mapping found for HTTP request with URI [/offers_war_exploded/home] in DispatcherServlet with name 'offers'
So I decided to do the following:
<url-pattern>/offers_war_exploded/home/*</url-pattern>
Full code:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>spring-tutorial-50</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<servlet>
<description></description>
<display-name>offers</display-name>
<servlet-name>offers</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>offers</servlet-name>
<url-pattern>/offers_war_exploded/home/*</url-pattern>
</servlet-mapping>
</web-app>
Now the artifact is deployed successfully but in the browser I get:

Invoke EJBs deployed on an Wildfly 8 instance from another JBoss AS 7 instance

First of all sorry for my bad english writing !
I deployed my EJB bean on Wildfly 8 and invoke it in wildfly 8 without any problem.
but when I changed client server from wildfly 8 to Jboss AS 7, I get "no ejb receiver error".
Wildfly 8 server side running output:
./standalone.sh -b 0.0.0.0 -Djboss.socket.binding.port-offset=100 -Djboss.node.name=nodeA
output log:
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /home/amin/Programs/AS/server/wildfly-8.0.0.Final
JAVA: /home/amin/Programs/jdk1.7.0_67/bin/java
JAVA_OPTS: -server -XX:+UseCompressedOops -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
=========================================================================
14:51:58,251 INFO [org.jboss.modules] (main) JBoss Modules version 1.3.0.Final
14:51:58,645 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.0.Final
14:51:58,754 INFO [org.jboss.as] (MSC service thread 1-2) JBAS015899: WildFly 8.0.0.Final "WildFly" starting
14:52:00,083 INFO [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) JBAS014627: Attribute any-ipv4-address is deprecated, and it might be removed in future version!
14:52:00,168 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found currency-ear.ear in deployment directory. To trigger deployment create a file called currency-ear.ear.dodeploy
14:52:00,197 INFO [org.jboss.as.server] (Controller Boot Thread) JBAS015888: Creating http management service using socket-binding (management-http)
14:52:00,218 INFO [org.xnio] (MSC service thread 1-1) XNIO version 3.2.0.Final
14:52:00,232 INFO [org.xnio.nio] (MSC service thread 1-1) XNIO NIO Implementation Version 3.2.0.Final
14:52:00,289 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 33) JBAS010280: Activating Infinispan subsystem.
14:52:00,310 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 28) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
14:52:00,331 INFO [org.jboss.as.jsf] (ServerService Thread Pool -- 39) JBAS012615: Activated the following JSF Implementations: [main]
14:52:00,368 INFO [org.jboss.as.security] (ServerService Thread Pool -- 46) JBAS013171: Activating Security Subsystem
14:52:00,375 INFO [org.jboss.remoting] (MSC service thread 1-1) JBoss Remoting version 4.0.0.Final
14:52:00,400 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 41) JBAS011800: Activating Naming Subsystem
14:52:00,425 INFO [org.jboss.as.security] (MSC service thread 1-4) JBAS013170: Current PicketBox version=4.0.20.Final
14:52:00,431 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 50) JBAS015537: Activating WebServices Extension
14:52:00,511 INFO [org.jboss.as.connector.logging] (MSC service thread 1-2) JBAS010408: Starting JCA Subsystem (IronJacamar 1.1.3.Final)
14:52:00,561 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) JBAS010417: Started Driver service with driver-name = h2
14:52:00,601 INFO [org.jboss.as.naming] (MSC service thread 1-4) JBAS011802: Starting Naming Service
14:52:00,614 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017502: Undertow 1.0.0.Final starting
14:52:00,615 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 49) JBAS017502: Undertow 1.0.0.Final starting
14:52:00,620 INFO [org.jboss.as.mail.extension] (MSC service thread 1-3) JBAS015400: Bound mail session [java:jboss/mail/Default]
14:52:00,816 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 49) JBAS017527: Creating file handler for path /home/amin/Programs/AS/server/wildfly-8.0.0.Final/welcome-content
14:52:00,836 INFO [org.wildfly.extension.undertow] (MSC service thread 1-2) JBAS017525: Started server default-server.
14:52:00,840 INFO [org.wildfly.extension.undertow] (MSC service thread 1-4) JBAS017531: Host default-host starting
14:52:01,043 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017519: Undertow HTTP listener default listening on /0.0.0.0:8180
14:52:01,429 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
14:52:01,485 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-3) JBAS015012: Started FileSystemDeploymentService for directory /home/amin/Programs/AS/server/wildfly-8.0.0.Final/standalone/deployments
14:52:01,496 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "ojdbc7-12.1.0.1.0.jar" (runtime-name: "ojdbc7-12.1.0.1.0.jar")
14:52:01,497 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "currency-ear.ear" (runtime-name: "currency-ear.ear")
14:52:02,474 INFO [org.jboss.ws.common.management] (MSC service thread 1-4) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.2.3.Final
14:52:03,704 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-1) JBAS010403: Deploying JDBC-compliant driver class oracle.jdbc.OracleDriver (version 12.1)
14:52:03,797 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) JBAS010417: Started Driver service with driver-name = ojdbc7-12.1.0.1.0.jar
14:52:03,801 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) JBAS010400: Bound data source [java:/currencyDS]
14:52:04,402 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "null" (runtime-name: "currency-ejb.jar")
14:52:04,402 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "null" (runtime-name: "currency-web.war")
14:52:04,605 INFO [org.jboss.as.jpa] (MSC service thread 1-1) JBAS011401: Read persistence.xml for currencyexchange
14:52:04,739 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) JBAS010400: Bound data source [java:jboss/datasources/currencyDS]
14:52:04,756 INFO [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016002: Processing weld deployment currency-ear.ear
14:52:04,757 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 52) JBAS011402: Starting Persistence Unit Service 'currency-ear.ear/currency-ejb.jar#currencyexchange'
14:52:04,903 INFO [org.hibernate.validator.internal.util.Version] (MSC service thread 1-3) HV000001: Hibernate Validator 5.0.3.Final
14:52:05,151 INFO [org.jboss.weld.deployer] (MSC service thread 1-1) JBAS016002: Processing weld deployment currency-web.war
14:52:05,391 INFO [stdout] (ServerService Thread Pool -- 52) [EL Config]: 2014-10-29 14:52:05.385--ServerSession(612909935)--Thread(Thread[ServerService Thread Pool -- 52,5,ServerService ThreadGroup])--The access type for the persistent class [class ir.jnf.currency.model.currencylog.CurrencyLog] is set to [FIELD].
14:52:05,428 INFO [stdout] (ServerService Thread Pool -- 52) [EL Config]: 2014-10-29 14:52:05.427--ServerSession(612909935)--Thread(Thread[ServerService Thread Pool -- 52,5,ServerService ThreadGroup])--The target entity (reference) class for the many to one mapping element [field currency] is being defaulted to: class ir.jnf.currency.model.currency.Currency.
14:52:05,429 INFO [stdout] (ServerService Thread Pool -- 52) [EL Config]: 2014-10-29 14:52:05.429--ServerSession(612909935)--Thread(Thread[ServerService Thread Pool -- 52,5,ServerService ThreadGroup])--The access type for the persistent class [class ir.jnf.currency.model.currency.Currency] is set to [FIELD].
14:52:05,442 INFO [stdout] (ServerService Thread Pool -- 52) [EL Config]: 2014-10-29 14:52:05.442--ServerSession(612909935)--Thread(Thread[ServerService Thread Pool -- 52,5,ServerService ThreadGroup])--The target entity (reference) class for the one to many mapping element [field currencyLogs] is being defaulted to: class ir.jnf.currency.model.currencylog.CurrencyLog.
14:52:05,444 INFO [stdout] (ServerService Thread Pool -- 52) [EL Config]: 2014-10-29 14:52:05.444--ServerSession(612909935)--Thread(Thread[ServerService Thread Pool -- 52,5,ServerService ThreadGroup])--The alias name for the entity class [class ir.jnf.currency.model.currencylog.CurrencyLog] is being defaulted to: CurrencyLog.
14:52:05,468 INFO [stdout] (ServerService Thread Pool -- 52) [EL Config]: 2014-10-29 14:52:05.468--ServerSession(612909935)--Thread(Thread[ServerService Thread Pool -- 52,5,ServerService ThreadGroup])--The column name for element [price] is being defaulted to: PRICE.
14:52:05,469 INFO [stdout] (ServerService Thread Pool -- 52) [EL Config]: 2014-10-29 14:52:05.469--ServerSession(612909935)--Thread(Thread[ServerService Thread Pool -- 52,5,ServerService ThreadGroup])--The column name for element [curlogid] is being defaulted to: CURLOGID.
14:52:05,470 INFO [stdout] (ServerService Thread Pool -- 52) [EL Config]: 2014-10-29 14:52:05.469--ServerSession(612909935)--Thread(Thread[ServerService Thread Pool -- 52,5,ServerService ThreadGroup])--The column name for element [curlogdate] is being defaulted to: CURLOGDATE.
14:52:05,471 INFO [stdout] (ServerService Thread Pool -- 52) [EL Config]: 2014-10-29 14:52:05.47--ServerSession(612909935)--Thread(Thread[ServerService Thread Pool -- 52,5,ServerService ThreadGroup])--The alias name for the entity class [class ir.jnf.currency.model.currency.Currency] is being defaulted to: Currency.
14:52:05,471 INFO [stdout] (ServerService Thread Pool -- 52) [EL Config]: 2014-10-29 14:52:05.471--ServerSession(612909935)--Thread(Thread[ServerService Thread Pool -- 52,5,ServerService ThreadGroup])--The table name for entity [class ir.jnf.currency.model.currency.Currency] is being defaulted to: CURRENCY.
14:52:05,472 INFO [stdout] (ServerService Thread Pool -- 52) [EL Config]: 2014-10-29 14:52:05.472--ServerSession(612909935)--Thread(Thread[ServerService Thread Pool -- 52,5,ServerService ThreadGroup])--The column name for element [cursymbol] is being defaulted to: CURSYMBOL.
14:52:05,472 INFO [stdout] (ServerService Thread Pool -- 52) [EL Config]: 2014-10-29 14:52:05.472--ServerSession(612909935)--Thread(Thread[ServerService Thread Pool -- 52,5,ServerService ThreadGroup])--The column name for element [price] is being defaulted to: PRICE.
14:52:05,473 INFO [stdout] (ServerService Thread Pool -- 52) [EL Config]: 2014-10-29 14:52:05.473--ServerSession(612909935)--Thread(Thread[ServerService Thread Pool -- 52,5,ServerService ThreadGroup])--The column name for element [curiso] is being defaulted to: CURISO.
14:52:05,491 INFO [stdout] (ServerService Thread Pool -- 52) [EL Config]: 2014-10-29 14:52:05.49--ServerSession(612909935)--Thread(Thread[ServerService Thread Pool -- 52,5,ServerService ThreadGroup])--The primary key column name for the mapping element [field currency] is being defaulted to: CURISO.
14:52:05,662 INFO [org.jboss.weld.deployer] (MSC service thread 1-2) JBAS016002: Processing weld deployment currency-ejb.jar
14:52:05,665 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-2) JNDI bindings for session bean named CurrencyDAO in deployment unit subdeployment "currency-ejb.jar" of deployment "currency-ear.ear" are as follows:
java:global/currency-ear/currency-ejb/CurrencyDAO!ir.jnf.currency.dao.currency.CurrencyDAOLocal
java:app/currency-ejb/CurrencyDAO!ir.jnf.currency.dao.currency.CurrencyDAOLocal
java:module/CurrencyDAO!ir.jnf.currency.dao.currency.CurrencyDAOLocal
java:global/currency-ear/currency-ejb/CurrencyDAO
java:app/currency-ejb/CurrencyDAO
java:module/CurrencyDAO
14:52:05,665 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-2) JNDI bindings for session bean named CurrencyLogDAO in deployment unit subdeployment "currency-ejb.jar" of deployment "currency-ear.ear" are as follows:
java:global/currency-ear/currency-ejb/CurrencyLogDAO!ir.jnf.currency.dao.currencylog.CurrencyLogDAOLocal
java:app/currency-ejb/CurrencyLogDAO!ir.jnf.currency.dao.currencylog.CurrencyLogDAOLocal
java:module/CurrencyLogDAO!ir.jnf.currency.dao.currencylog.CurrencyLogDAOLocal
java:global/currency-ear/currency-ejb/CurrencyLogDAO
java:app/currency-ejb/CurrencyLogDAO
java:module/CurrencyLogDAO
14:52:05,666 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-2) JNDI bindings for session bean named CurrencyLogService in deployment unit subdeployment "currency-ejb.jar" of deployment "currency-ear.ear" are as follows:
java:global/currency-ear/currency-ejb/CurrencyLogService!ir.jnf.currency.service.currencylog.CurrencyLogServiceLocal
java:app/currency-ejb/CurrencyLogService!ir.jnf.currency.service.currencylog.CurrencyLogServiceLocal
java:module/CurrencyLogService!ir.jnf.currency.service.currencylog.CurrencyLogServiceLocal
java:global/currency-ear/currency-ejb/CurrencyLogService!ir.jnf.currency.service.currencylog.CurrencyLogServiceRemote
java:app/currency-ejb/CurrencyLogService!ir.jnf.currency.service.currencylog.CurrencyLogServiceRemote
java:module/CurrencyLogService!ir.jnf.currency.service.currencylog.CurrencyLogServiceRemote
java:jboss/exported/currency-ear/currency-ejb/CurrencyLogService!ir.jnf.currency.service.currencylog.CurrencyLogServiceRemote
14:52:05,667 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-2) JNDI bindings for session bean named CurrencyService in deployment unit subdeployment "currency-ejb.jar" of deployment "currency-ear.ear" are as follows:
java:global/currency-ear/currency-ejb/CurrencyService!ir.jnf.currency.service.currency.CurrencyServiceLocal
java:app/currency-ejb/CurrencyService!ir.jnf.currency.service.currency.CurrencyServiceLocal
java:module/CurrencyService!ir.jnf.currency.service.currency.CurrencyServiceLocal
java:global/currency-ear/currency-ejb/CurrencyService
java:app/currency-ejb/CurrencyService
java:module/CurrencyService
14:52:05,703 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-4) JBAS010403: Deploying JDBC-compliant driver class oracle.jdbc.OracleDriver (version 12.1)
14:52:05,704 INFO [org.jboss.weld.deployer] (MSC service thread 1-4) JBAS016005: Starting Services for CDI deployment: currency-ear.ear
14:52:05,737 INFO [org.jboss.weld.Version] (MSC service thread 1-4) WELD-000900: 2.1.2 (Final)
14:52:05,782 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) JBAS010417: Started Driver service with driver-name = currency-ear.ear_oracle.jdbc.OracleDriver_12_1
14:52:05,783 INFO [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016008: Starting weld service for deployment currency-ear.ear
14:52:07,320 INFO [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-1) Initializing Mojarra 2.2.5-jbossorg-3 20140128-1641 for context '/currency-web'
14:52:08,935 INFO [org.wildfly.extension.undertow] (MSC service thread 1-1) JBAS017534: Registered web context: /currency-web
14:52:09,046 INFO [org.jboss.as.server] (ServerService Thread Pool -- 29) JBAS018559: Deployed "ojdbc7-12.1.0.1.0.jar" (runtime-name : "ojdbc7-12.1.0.1.0.jar")
14:52:09,047 INFO [org.jboss.as.server] (ServerService Thread Pool -- 29) JBAS018559: Deployed "currency-ear.ear" (runtime-name : "currency-ear.ear")
14:52:09,175 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:10090/management
14:52:09,175 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:10090
14:52:09,176 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: WildFly 8.0.0.Final "WildFly" started in 11254ms - Started 524 of 595 services (115 services are lazy, passive or on-demand)
Jboss Client side configs:
I Create an application user on Wildfly 8 server side and convert password to base64 and put it in jboss client side standalone.xml:
<security-realms>
<security-realm name="ejb-security-realm">
<server-identities>
<secret value="YWRtaW4y"/>
</server-identities>
</security-realm>
I added outbound connection:
<subsystem xmlns="urn:jboss:domain:remoting:1.1">
<connector name="remoting-connector" socket-binding="remoting" security-realm="ApplicationRealm"/>
<outbound-connections>
<remote-outbound-connection name="remote-ejb-connection" outbound-socket-binding-ref="remote-ejb" username="admin" security-realm="ejb-security-realm">
<properties>
<property name="SASL_POLICY_NOANONYMOUS" value="false"/>
<property name="SSL_ENABLED" value="false"/>
</properties>
</remote-outbound-connection>
</outbound-connections>
and outbound socket binding:
<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
<socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9999}"/>
<socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/>
<socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9443}"/>
<socket-binding name="ajp" port="8009"/>
<socket-binding name="http" port="8080"/>
<socket-binding name="https" port="8443"/>
<socket-binding name="osgi-http" interface="management" port="8090"/>
<socket-binding name="remoting" port="4447"/>
<socket-binding name="txn-recovery-environment" port="4712"/>
<socket-binding name="txn-status-manager" port="4713"/>
<outbound-socket-binding name="mail-smtp">
<remote-destination host="localhost" port="25"/>
</outbound-socket-binding>
<outbound-socket-binding name="remote-ejb">
<remote-destination host="localhost" port="8180"/>
</outbound-socket-binding>
</socket-binding-group>
I created jboss-ejb-client.xml and put it on client JSP project META-INF:
<jboss-ejb-client xmlns="urn:jboss:ejb-client:1.0">
<client-context>
<ejb-receivers>
<remoting-ejb-receiver outbound-connection-ref="remote-ejb-connection"/>
</ejb-receivers>
</client-context>
</jboss-ejb-client>
running client side Jboss AS 7:
./standalone.sh -Djboss.node.name=nodeB
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /home/amin/Programs/AS/client/jboss-as-7.1.1.Final
JAVA: /home/amin/Programs/jdk1.7.0_67/bin/java
JAVA_OPTS: -server -XX:+UseCompressedOops -XX:+TieredCompilation -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml
=========================================================================
15:08:26,841 INFO [org.jboss.modules] JBoss Modules version 1.1.1.GA
15:08:27,006 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA
15:08:27,056 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
15:08:27,892 INFO [org.xnio] XNIO Version 3.0.3.GA
15:08:27,899 INFO [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
15:08:27,906 INFO [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
15:08:27,926 INFO [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
15:08:27,985 INFO [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
15:08:28,002 INFO [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem
15:08:28,049 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.
15:08:28,111 INFO [org.jboss.as.connector] (MSC service thread 1-1) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
15:08:28,120 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
15:08:28,128 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
15:08:28,135 INFO [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem
15:08:28,142 INFO [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem
15:08:28,177 INFO [org.jboss.as.security] (MSC service thread 1-4) JBAS013100: Current PicketBox version=4.0.7.Final
15:08:28,212 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
15:08:28,263 INFO [org.jboss.as.naming] (MSC service thread 1-2) JBAS011802: Starting Naming Service
15:08:28,265 INFO [org.jboss.as.mail.extension] (MSC service thread 1-3) JBAS015400: Bound mail session [java:jboss/mail/Default]
15:08:28,464 INFO [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-3) JBoss Web Services - Stack CXF Server 4.0.2.GA
15:08:28,561 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-4) Starting Coyote HTTP/1.1 on http--127.0.0.1-8080
15:08:28,842 INFO [org.jboss.as.remoting] (MSC service thread 1-3) JBAS017100: Listening on /127.0.0.1:4447
15:08:28,843 INFO [org.jboss.as.remoting] (MSC service thread 1-1) JBAS017100: Listening on /127.0.0.1:9999
15:08:28,883 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-3) JBAS015012: Started FileSystemDeploymentService for directory /home/amin/Programs/AS/client/jboss-as-7.1.1.Final/standalone/deployments
15:08:28,888 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found currencyJspClient.war in deployment directory. To trigger deployment create a file called currencyJspClient.war.dodeploy
15:08:28,954 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
15:08:28,994 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "currencyJspClient.war"
15:08:35,796 INFO [org.jboss.web] (MSC service thread 1-4) JBAS018210: Registering web context: /currencyJspClient
15:08:35,813 INFO [org.jboss.as] (MSC service thread 1-4) JBAS015951: Admin console listening on http://127.0.0.1:9990
15:08:35,813 INFO [org.jboss.as] (MSC service thread 1-4) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 9189ms - Started 174 of 254 services (79 services are passive or on-demand)
15:08:35,925 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "currencyJspClient.war"
when I go to below link:
http://localhost:8080/currencyJspClient/
I have this error:
15:10:37,868 INFO [org.jboss.ejb.client] (http--127.0.0.1-8080-1) JBoss EJB Client version 1.0.5.Final
15:10:42,877 ERROR [stderr] (http--127.0.0.1-8080-1) java.lang.IllegalStateException: No EJB receiver available for handling [appName:currency-ear,modulename:currency-ejb,distinctname:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext#36ae4b6f
15:10:42,878 ERROR [stderr] (http--127.0.0.1-8080-1) at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:584)
15:10:42,880 ERROR [stderr] (http--127.0.0.1-8080-1) at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:119)
15:10:42,881 ERROR [stderr] (http--127.0.0.1-8080-1) at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)
15:10:42,882 ERROR [stderr] (http--127.0.0.1-8080-1) at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136)
15:10:42,883 ERROR [stderr] (http--127.0.0.1-8080-1) at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121)
15:10:42,884 ERROR [stderr] (http--127.0.0.1-8080-1) at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104)
15:10:42,885 ERROR [stderr] (http--127.0.0.1-8080-1) at com.sun.proxy.$Proxy10.currencyLogFindAllRemote(Unknown Source)
15:10:42,886 ERROR [stderr] (http--127.0.0.1-8080-1) at currencyJspClient.Farakhani.farakh(Farakhani.java:25)
15:10:42,886 ERROR [stderr] (http--127.0.0.1-8080-1) at org.apache.jsp.index_jsp._jspService(index_jsp.java:67)
15:10:42,887 ERROR [stderr] (http--127.0.0.1-8080-1) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
15:10:42,888 ERROR [stderr] (http--127.0.0.1-8080-1) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
15:10:42,889 ERROR [stderr] (http--127.0.0.1-8080-1) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
15:10:42,890 ERROR [stderr] (http--127.0.0.1-8080-1) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)
15:10:42,890 ERROR [stderr] (http--127.0.0.1-8080-1) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
15:10:42,891 ERROR [stderr] (http--127.0.0.1-8080-1) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
15:10:42,892 ERROR [stderr] (http--127.0.0.1-8080-1) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
15:10:42,892 ERROR [stderr] (http--127.0.0.1-8080-1) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
15:10:42,893 ERROR [stderr] (http--127.0.0.1-8080-1) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
15:10:42,893 ERROR [stderr] (http--127.0.0.1-8080-1) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
15:10:42,894 ERROR [stderr] (http--127.0.0.1-8080-1) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
15:10:42,894 ERROR [stderr] (http--127.0.0.1-8080-1) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
15:10:42,896 ERROR [stderr] (http--127.0.0.1-8080-1) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
15:10:42,897 ERROR [stderr] (http--127.0.0.1-8080-1) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
15:10:42,897 ERROR [stderr] (http--127.0.0.1-8080-1) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
15:10:42,904 ERROR [stderr] (http--127.0.0.1-8080-1) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
15:10:42,904 ERROR [stderr] (http--127.0.0.1-8080-1) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
15:10:42,904 ERROR [stderr] (http--127.0.0.1-8080-1) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
15:10:42,905 ERROR [stderr] (http--127.0.0.1-8080-1) at java.lang.Thread.run(Thread.java:745)
I also added Wildfly 8 client library to lib folder
this is my jsp client app deployed war file tree:
├── index.jsp
├── META-INF
│   ├── jboss-ejb-client.xml
│   └── MANIFEST.MF
└── WEB-INF
├── classes
│   ├── currencyJspClient
│   │   └── Farakhani.class
│   ├── ir
│   │   └── jnf
│   │   └── currency
│   │   ├── model
│   │   │   ├── currency
│   │   │   │   └── Currency.class
│   │   │   └── currencylog
│   │   │   └── CurrencyLog.class
│   │   └── service
│   │   └── currencylog
│   │   └── CurrencyLogServiceRemote.class
│   └── main
│   └── Main.class
└── lib
├── eclipselink-2.5.0.jar
├── javax.persistence-2.1.0.jar
├── jboss-client.jar
└── jboss-ejb-api_3.1_spec-1.0.2.Final.jar
Thanks in adnvance.
In a war deployment jboss-ejb-client.xml is expected to be placed in .war/WEB-INF/ folder.
See also EJB invocations from a remote server instance
EDIT:
After several tests, I came to these results.
Context:
Ejb application running in JBoss 7.1.1
Ejb Client (web application) running in Wildfly 8.1
You are right, the jboss-ejb-client.xml must be place in WEB-INF/META-INF folder in the web application (Documentation is incorrect).
Not is possible invoke with remote authentication enable, exist incompatibilities between remoting implementation. This produces this error during authentication:
In the Client server:
Remote connection failed: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed
In the Ejb server:
TRACE [org.jboss.sasl.digest.server] (Remoting "test-ejb" task-2) Username: ejb
TRACE [org.jboss.sasl.digest.server] (Remoting "test-ejb" task-2) Client negotiated realm: ApplicationRealm
TRACE [org.jboss.sasl.digest.server] (Remoting "test-ejb" task-2) Client negotiated qop: auth
TRACE [org.jboss.sasl.digest.server] (Remoting "test-ejb" task-2) DIGEST87:digest URI: remoting/localhost
TRACE [org.jboss.remoting.remote.server] (Remoting "test-ejb" task-2) Server sending authentication rejected (javax.security.sasl.SaslException: DIGEST-MD5: digest response format violation. Mismatched URI: remoting/localhost; expecting: remote/localhost)
Se also: Remote EAP 6.3 does not accept password and JBoss EAP 6.3 clients can not authenticate with a username and password (Digest auth) against older EAP 6 versions.
A workaround for this problem is disable the remoting authentication, you can do this removing the security-realm="ApplicationRealm" attribute and username="ejb" and security-realm="ejb-security-realm" attributes from remote-outbound-connection.
Eg.
Server:
<subsystem xmlns="urn:jboss:domain:remoting:1.1">
<connector name="remoting-connector" socket-binding="remoting"/>
</subsystem>
Client (Server):
<remote-outbound-connection name="remote-ejb-connection" outbound-socket-binding-ref="remote-ejb" protocol="remote">
<properties>
<property name="SASL_POLICY_NOANONYMOUS" value="false"/>
<property name="SSL_ENABLED" value="false"/>
</properties>
</remote-outbound-connection>
Or use the same version of JBoss on both servers. The same probem is present if you run Ejb client in JBoss 7.1.1
Sample application: https://github.com/fedesierr/remote-ejb-wildfly-jboss7
Of course you can invoke remote ejb deployed in a JBoss EAP 6.x/AS 7 even if your client is deployed in a Wildfly instance.
Since JBoss AS 7/EAP 6.x uses remote as its remoting protocol, you can add the protocol="remote" attribute in the remote-outbound-connection property of your Wildfly instance.
<remote-outbound-connection name="remote-ejb-connection" outbound-socket-binding-ref="remote-ejb" username="admin" security-realm="ejb-security-realm" protocol="remote">
<properties>
<property name="SASL_POLICY_NOANONYMOUS" value="false"/>
<property name="SSL_ENABLED" value="false"/>
</properties>
</remote-outbound-connection>

HornetQ JMS server in JBoss 7 startup

I am trying to create a JMS Client and Producer under JBoss. I am able to startup a standalone version of HornetQ 2.3.0.Final, connect to it, and send messages back and forth. However, I am running my client through eclipse WTP as a war (but I'm eventually going to run it from the same JBoss instance). I am now trying to use the built in JBoss7-as hornetq, but I'm running into problems. I've modified the standalone-full.xml and added to the hornetq-server section
<security-enabled>false</security-enabled>`
and run it with
./standalone.sh -b 0.0.0.0 -server-config=standalone-full.xml`
and then try to run my webservice (with no changes to the code that will connect to the standalone hornetq instance), but I get a
SEVERE: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.jms.listener.SimpleMessageListenerContainer#0' defined in ServletContext resource [/META-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.hornetq.api.core.HornetQException.<init>(ILjava/lang/String;Ljava/lang/Throwable;)V
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1486)
my JBoss output looks like:
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: C:\codebase\jboss-as-7.1.1.Final
JAVA: C:\Java\jdk1.6.0_43/bin/java
JAVA_OPTS: -server -XX:+UseCompressedOops -XX:+TieredCompilation -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml
=========================================================================
Listening for transport dt_socket at address: 4242
15:29:08,505 INFO [org.jboss.modules] JBoss Modules version 1.1.1.GA
15:29:08,672 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA
15:29:08,713 INFO [org.jboss.as] JBAS0 15899: JBoss AS 7.1.1.Final "Brontes" starting
15:29:09,632 INFO [org.xnio] XNIO Version 3.0.3.GA
15:29:09,637 INFO [org.jboss.as.server] JBAS0 15888: Creating http management service using socket-binding (management-http)
15:29:09,646 INFO [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
15:29:09,654 INFO [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
15:29:09,693 INFO [org.jboss.as.configadmin] JBAS016200: Activating ConfigAdmin Subsystem
15:29:09,721 INFO [org.jboss.as.connector.subsystems.datasources] JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
15:29:09,735 INFO [org.jboss.as.clustering.infinispan] JBAS010280: Activating Infinispan subsystem.
15:29:09,771 INFO [org.jboss.as.naming] JBAS011800: Activating Naming Subsystem
15:29:09,785 INFO [org.jboss.as.security] JBAS013101: Activating Security Subsystem
15:29:09,789 INFO [org.jboss.as.webservices] JBAS0 15537: Activating WebServices Extension
15:29:09,811 INFO [org.jboss.as.logging] JBAS01 1502: Removing bootstrap log handlers
15:29:09,810 INFO [org.jboss.as.connector] JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
15:29:09,834 INFO [org.jboss.as.security] (MSC service thread 1-5) JBAS013100: Current PicketBox version=4.0.7.Final
15:29:09,860 INFO [org.jboss.as.mail.extension] (MSC service thread 1-5) JBAS0 15400: Bound mail session [java:jboss/mail/Default]
15:29:09,874 INFO [org.jboss.as.jacorb] (ServerService Thread Pool -- 38) JBAS016300: Activating JacORB Subsystem
15:29:09,943 INFO [org.jboss.as.osgi] (ServerService Thread Pool -- 49) JBAS011940: Activating OSGi Subsystem
15:29:10,073 INFO [org.jboss.jaxr] (MSC service thread 1-5) JBAS014000: Started JAXR subsystem, binding JAXR connection factory into JNDI as: java:jboss/jaxr/ConnectionFactory
15:29:10,075 INFO [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-4) JBoss Web Services - Stack CXF Server 4.0.2.GA
15:29:10,378 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-4) JBAS0 15012: Started FileSystemDeploymentService for directory C:\codebase\jboss-as-7.1.1.Final\standalone\deployments
15:29:10,482 WARN [org.jboss.as.messaging] (MSC service thread 1-2) JBAS011600: AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal
15:29:10,486 INFO [org.jboss.as.remoting] (MSC service thread 1-8) JBAS017100: Listening on /0.0.0.0:4447
15:29:10,492 INFO [org.jboss.as.remoting] (MSC service thread 1-6) JBAS017100: Listening on /127.0.0.1:9999
15:29:10,512 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-7) Starting Coyote HTTP/1.1 on http-0.0.0.0-0.0.0.0-8080
15:29:10,572 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-2) live server is starting with configuration HornetQ Configuration (clustered=false,backup=false,sharedStore=true,journalDirectory=C:\codebase\jboss-as-7.1.1.Final\standalone\data\messagingjournal,bindingsDirectory=C:\codebase\jboss-as-7.1.1.Final\standalone\data\messagingbindings,largeMessagesDirectory=C:\codebase\jboss-as-7.1.1.Final\standalone\data\messaginglargemessages,pagingDirectory=C:\codebase\jboss-as-7.1.1.Final\standalone\data\messagingpaging)
15:29:10,577 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-2) Waiting to obtain live lock
15:29:10,606 INFO [org.hornetq.core.persistence.impl.journal.JournalStorageManager] (MSC service thread 1-2) Using NIO Journal
15:29:10,672 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-5) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
15:29:10,679 WARN [jacorb.codeset] (MSC service thread 1-4) Warning - unknown codeset (Cp1252) - defaulting to ISO-8859-1
15:29:10,682 INFO [org.hornetq.core.server.impl.FileLockNodeManager] (MSC service thread 1-2) Waiting to obtain live lock
15:29:10,683 INFO [org.hornetq.core.server.impl.FileLockNodeManager] (MSC service thread 1-2) Live Server Obtained live lock
15:29:10,712 INFO [org.jboss.as.jacorb] (MSC service thread 1-4) JBAS016330: CORBA ORB Service started
15:29:10,783 INFO [org.jboss.as.jacorb] (MSC service thread 1-4) JBAS016328: CORBA Naming Service started
15:29:11,635 INFO [org.hornetq.core.persistence.impl.journal.JournalStorageManager] (MSC service thread 1-2) Deleting unreferenced message id=30064771066 from the journal
15:29:11,705 INFO [org.hornetq.core.remoting.impl.netty.NettyAcceptor] (MSC service thread 1-2) Started Netty Acceptor version 3.2.5.Final-a96d88c 0.0.0.0:5455 for CORE protocol
15:29:11,708 INFO [org.hornetq.core.remoting.impl.netty.NettyAcceptor] (MSC service thread 1-2) Started Netty Acceptor version 3.2.5.Final-a96d88c 0.0.0.0:5445 for CORE protocol
15:29:11,717 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-2) Server is now live
15:29:11,719 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-2) HornetQ Server version 2.2.13.Final (HQ_2_2_13_FINAL_AS7, 122) [337187b6-ed9e-11e2-a678-549304ffc20f]) started
15:29:11,724 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-2) trying to deploy queue jms.queue.DemoQueue
15:29:11,754 INFO [org.jboss.as.messaging] (MSC service thread 1-2) JBAS011601: Bound messaging object to jndi name java:jboss/exported/jms/queue/DemoQueue
15:29:11,756 INFO [org.jboss.as.messaging] (MSC service thread 1-2) JBAS011601: Bound messaging object to jndi name java:/queue/DemoQueue
15:29:11,759 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-2) trying to deploy queue jms.queue.testQueue
15:29:11,767 INFO [org.jboss.as.messaging] (MSC service thread 1-2) JBAS011601: Bound messaging object to jndi name java:/queue/test
15:29:11,771 INFO [org.jboss.as.messaging] (MSC service thread 1-2) JBAS011601: Bound messaging object to jndi name java:jboss/exported/jms/queue/test
15:29:11,789 INFO [org.jboss.as.messaging] (MSC service thread 1-2) JBAS011601: Bound messaging object to jndi name java:jboss/exported/jms/RemoteConnectionFactory
15:29:11,791 INFO [org.jboss.as.messaging] (MSC service thread 1-2) JBAS011601: Bound messaging object to jndi name java:/RemoteConnectionFactory
15:29:11,793 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-2) trying to deploy queue jms.topic.testTopic
15:29:11,816 INFO [org.jboss.as.messaging] (MSC service thread 1-2) JBAS011601: Bound messaging object to jndi name java:/topic/test
15:29:11,818 INFO [org.jboss.as.messaging] (MSC service thread 1-2) JBAS011601: Bound messaging object to jndi name java:jboss/exported/jms/topic/test
15:29:11,825 INFO [org.jboss.as.messaging] (MSC service thread 1-4) JBAS011601: Bound messaging object to jndi name java:/ConnectionFactory
15:29:11,898 INFO [org.jboss.as.deployment.connector] (MSC service thread 1-7) JBAS010406: Registered connection factory java:/JmsXA
15:29:11,910 INFO [org.hornetq.ra.HornetQResourceAdapter] (MSC service thread 1-7) HornetQ resource adaptor started
15:29:11,912 INFO [org.jboss.as.connector.services.ResourceAdapterActivatorService$ResourceAdapterActivator] (MSC service thread 1-7) IJ020002: Deployed: file://RaActivatorhornetq-ra
15:29:11,917 INFO [org.jboss.as.deployment.connector] (MSC service thread 1-7) JBAS010401: Bound JCA ConnectionFactory [java:/JmsXA]
15:29:12,005 INFO [org.jboss.as] (Controller Boot Thread) JBAS0 15951: Admin console listening on http://127.0.0.1:9990
15:29:12,007 INFO [org.jboss.as] (Controller Boot Thread) JBAS0 15874: JBoss AS 7.1.1.Final "Brontes" started in 3707ms - Started 170 of 249 services (78 services are passive or on-demand)
15:29:53,048 ERROR [org.hornetq.core.protocol.core.impl.HornetQPacketHandler] (Old I/O server worker (parentId: 2006673595, [id: 0x779b68bb, /0.0.0.0:5445])) Failed to create session : HornetQException[errorCode=105 message=Unable to validate user: null]
at org.hornetq.core.security.impl.SecurityStoreImpl.authenticate(SecurityStoreImpl.java:147) [hornetq-core-2.2.13.Final.jar:]
at org.hornetq.core.server.impl.HornetQServerImpl.createSession(HornetQServerImpl.java:807) [hornetq-core-2.2.13.Final.jar:]
at org.hornetq.core.protocol.core.impl.HornetQPacketHandler.handleCreateSession(HornetQPacketHandler.java:187) [hornetq-core-2.2.13.Final.jar:]
at org.hornetq.core.protocol.core.impl.HornetQPacketHandler.handlePacket(HornetQPacketHandler.java:85) [hornetq-core-2.2.13.Final.jar:]
at org.hornetq.core.protocol.core.impl.ChannelImpl.handlePacket(ChannelImpl.java:508) [hornetq-core-2.2.13.Final.jar:]
at org.hornetq.core.protocol.core.impl.RemotingConnectionImpl.doBufferReceived(RemotingConnectionImpl.java:556) [hornetq-core-2.2.13.Final.jar:]
at org.hornetq.core.protocol.core.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:517) [hornetq-core-2.2.13.Final.jar:]
at org.hornetq.core.remoting.server.impl.RemotingServiceImpl$DelegatingBufferHandler.bufferReceived(RemotingServiceImpl.java:533) [hornetq-core-2.2.13.Final.jar:]
at org.hornetq.core.remoting.impl.netty.HornetQChannelHandler.messageReceived(HornetQChannelHandler.java:73) [hornetq-core-2.2.13.Final.jar:]
at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:100) [netty-3.2.6.Final.jar:]
at org.jboss.netty.channel.StaticChannelPipeline.sendUpstream(StaticChannelPipeline.java:372) [netty-3.2.6.Final.jar:]
at org.jboss.netty.channel.StaticChannelPipeline$StaticChannelHandlerContext.sendUpstream(StaticChannelPipeline.java:534) [netty-3.2.6.Final.jar:]
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:287) [netty-3.2.6.Final.jar:]
at org.hornetq.core.remoting.impl.netty.HornetQFrameDecoder2.decode(HornetQFrameDecoder2.java:169) [hornetq-core-2.2.13.Final.jar:]
at org.hornetq.core.remoting.impl.netty.HornetQFrameDecoder2.messageReceived(HornetQFrameDecoder2.java:134) [hornetq-core-2.2.13.Final.jar:]
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80) [netty-3.2.6.Final.jar:]
at org.jboss.netty.channel.StaticChannelPipeline.sendUpstream(StaticChannelPipeline.java:372) [netty-3.2.6.Final.jar:]
at org.jboss.netty.channel.StaticChannelPipeline.sendUpstream(StaticChannelPipeline.java:367) [netty-3.2.6.Final.jar:]
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274) [netty-3.2.6.Final.jar:]
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261) [netty-3.2.6.Final.jar:]
at org.jboss.netty.channel.socket.oio.OioWorker.run(OioWorker.java:100) [netty-3.2.6.Final.jar:]
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) [netty-3.2.6.Final.jar:]
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:44) [netty-3.2.6.Final.jar:]
at org.jboss.netty.util.VirtualExecutorService$ChildExecutorRunnable.run(VirtualExecutorService.java:181) [netty-3.2.6.Final.jar:]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [rt.jar:1.6.0_43]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [rt.jar:1.6.0_43]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_43]`
and my client application-context.xml looks like:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:p="http://www.springframework.org/schema/p" xmlns:cache="http://www.springframework.org/schema/cache"
xmlns:ehcache="http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
http://www.springframework.org/schema/cache
http://www.springframework.org/schema/cache/spring-cache.xsd
http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring
http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring/ehcache-spring-1.1.xsd">
<bean id="hornetConnectionFactory" class="org.hornetq.jms.client.HornetQJMSConnectionFactory">
<constructor-arg name="ha" value="false" />
<constructor-arg>
<bean class="org.hornetq.api.core.TransportConfiguration">
<constructor-arg
value="org.hornetq.core.remoting.impl.netty.NettyConnectorFactory" />
<constructor-arg>
<map key-type="java.lang.String" value-type="java.lang.Object">
<!-- HornetQ standalone instance details -->
<entry key="host" value="127.0.0.1"></entry>
<entry key="port" value="5445"></entry>
</map>
</constructor-arg>
</bean>
</constructor-arg>
</bean>
<!-- ConnectionFactory Definition -->
<bean id="connectionFactory"
class="org.springframework.jms.connection.CachingConnectionFactory">
<constructor-arg ref="hornetConnectionFactory" />
</bean>
<!-- Definition of the JMS queue -->
<bean id="defaultDestination" class="org.hornetq.jms.client.HornetQQueue">
<constructor-arg index="0" value="DemoQueue" />
</bean>
<bean id="producerTemplate" class="org.springframework.jms.core.JmsTemplate">
<property name="connectionFactory" ref="connectionFactory" />
<property name="defaultDestination" ref="defaultDestination" />
</bean>
<bean class="com.example.Sender" id="messageSenderService"
p:jmsTemplate-ref="producerTemplate"></bean>
<bean class="org.springframework.jms.listener.SimpleMessageListenerContainer">
<property name="connectionFactory" ref="connectionFactory" />
<property name="destination" ref="defaultDestination" />
<property name="messageListener" ref="messageListener" />
</bean>
<bean id="taskExecutor"
class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor">
<property name="corePoolSize" value="5" />
<property name="maxPoolSize" value="10" />
<property name="queueCapacity" value="25" />
</bean>
<bean class="com.example.Receiver" id="messageListener">
<property name="taskExecutor" ref="taskExecutor" />
</bean>
and finally, I have
<dependency>
<groupId>org.jboss.as</groupId>
<artifactId>jboss-as-jms-client-bom</artifactId>
<version>7.1.1.Final</version>
<type>pom</type>
</dependency>
in my pom
What am I missing? How is it that I can connect to a standalone hornetq, but not one embedded into jboss? Is it a dependency/classpath issue? Or is it a user/security issue?
It's an issue with JBoss, you have to first configure JMS (Hornet) on the server:
org.jboss.as.messaging subsystem (including hornetq-server)
related sockets/ports in socket-binding-group
both in standalone.xml.
How did you define hornetq-server in standalone.xml?
Update:
Here's my configuration for JBoss 7.1.0:
<subsystem xmlns="urn:jboss:domain:messaging:1.1">
<hornetq-server>
<persistence-enabled>true</persistence-enabled>
<journal-file-size>102400</journal-file-size>
<journal-min-files>2</journal-min-files>
<connectors>
<netty-connector name="netty" socket-binding="messaging"/>
<netty-connector name="netty-throughput" socket-binding="messaging-throughput">
<param key="batch-delay" value="50"/>
</netty-connector>
<in-vm-connector name="in-vm" server-id="0"/>
</connectors>
<acceptors>
<netty-acceptor name="netty" socket-binding="messaging"/>
<netty-acceptor name="netty-throughput" socket-binding="messaging-throughput">
<param key="batch-delay" value="50"/>
<param key="direct-deliver" value="false"/>
</netty-acceptor>
<in-vm-acceptor name="in-vm" server-id="0"/>
</acceptors>
<security-settings>
<security-setting match="#">
<permission type="send" roles="guest"/>
<permission type="consume" roles="guest"/>
<permission type="createNonDurableQueue" roles="guest"/>
<permission type="deleteNonDurableQueue" roles="guest"/>
</security-setting>
</security-settings>
<address-settings>
<address-setting match="#">
<dead-letter-address>jms.queue.DLQ</dead-letter-address>
<expiry-address>jms.queue.ExpiryQueue</expiry-address>
<redelivery-delay>5000</redelivery-delay>
<max-delivery-attempts>10</max-delivery-attempts>
<max-size-bytes>10485760</max-size-bytes>
<address-full-policy>BLOCK</address-full-policy>
<message-counter-history-day-limit>10</message-counter-history-day-limit>
</address-setting>
</address-settings>
<jms-connection-factories>
<connection-factory name="InVmConnectionFactory">
<connectors>
<connector-ref connector-name="in-vm"/>
</connectors>
<entries>
<entry name="ConnectionFactory"/>
<entry name="java:/ConnectionFactory"/>
</entries>
</connection-factory>
<pooled-connection-factory name="hornetq-ra">
<transaction mode="xa"/>
<connectors>
<connector-ref connector-name="in-vm"/>
</connectors>
<entries>
<entry name="java:/JmsXA"/>
</entries>
</pooled-connection-factory>
</jms-connection-factories>
<jms-destinations>
<jms-queue name="myQueue">
<entry name="queue/my"/>
<entry name="java:jboss/queue/my"/>
</jms-queue>
</jms-destinations>
</hornetq-server>
</subsystem>
<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
.......
<socket-binding name="messaging" port="5445"/>
<socket-binding name="messaging-throughput" port="5455"/>
.......
</socket-binding-group>
Turns out I needed to remove my dependencies on hornetq in my client, and only have the jboss-as-jms-client-bom dependency. It was probably using the wrong classes which weren't compatible