[JBoss Tools Development] - Promoting JBoss Tools nightly project builds to milestone or stable release
by Nick Boldt
Nick Boldt [https://community.jboss.org/people/nickboldt] created the document:
"Promoting JBoss Tools nightly project builds to milestone or stable release"
To view the document, visit: https://community.jboss.org/docs/DOC-47427
--------------------------------------------------------------
Publishing SOA/BRMS Tooling components
== STEP ONE :: Nightly Snapshot Build (Continuous Integration) ==
Run your job as you would run a local build, that is, by invoking Maven 3 w/ Tycho 0.15 (or later) against your sources.
Then publish the output of the build to the server using publish.sh - simply run a shell script at the end of the job which does this:
Currently, the publish.sh script that everyone uses assumes a few things:
a) git or svn sources are fetched into ${WORKSPACE}/sources/, not the root ${WORKSPACE} folder
b) all builds will go into http://download.jboss.org/jbosstools/builds/staging/builds/staging/$ http://download.jboss.org/jbosstools/builds/staging/builds/staging/${JOB_...
Invocation of the script is done via Jenkins like this:
cd ${WORKSPACE}/sources/
wget http://anonsvn.jboss.org/repos/jbosstools/trunk/build/publish/publish.sh http://anonsvn.jboss.org/repos/jbosstools/trunk/build/publish/publish.sh -q --no-check-certificate -N
. publish.sh
== STEP TWO :: Promoting a Snapshot to Milestone / Release ==
You will need a second job with a "-publish" suffix which will copy your latest nightly to a new location.
Invocation of the script is done via Jenkins like this:
wget http://anonsvn.jboss.org/repos/jbosstools/trunk/build/publish/promote.sh http://anonsvn.jboss.org/repos/jbosstools/trunk/build/publish/promote.sh -q --no-check-certificate -N
. promote.sh ${BUILD_TYPE} ${TARGET_PLATFORM} ${TARGET_FOLDER} ${PROJECT_NAME}
or
. promote.sh ${BUILD_TYPE} ${TARGET_PLATFORM} ${TARGET_FOLDER} ${PROJECT_NAME} SwitchYard-Tools/eclipse
Example jobs (which show how to set up the above job parameters, such as ${TARGET_PLATFORM} or ${BUILD_TYPE}):
https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/SOA-Team/view/SOASt... https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/SOA-Team/view/SOASt...
https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/SOA-Team/view/SOASt... https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/SOA-Team/view/SOASt...
== Naming conventions ==
Development milestones (x.y.z.Beta2) go here: updates/development/{eclipse-version}/{stream}/
Stable releases (x.y.z.Final) will go in here: updates/{stable|release}/{eclipse-version}/{stream}/
Examples:
http://download.jboss.org/jbosstools/updates/development/indigo/soa-tooli... http://download.jboss.org/jbosstools/updates/development/indigo/soa-tooli...
http://download.jboss.org/jbosstools/updates/development/indigo/soa-tooli... http://download.jboss.org/jbosstools/updates/development/indigo/soa-tooli...
http://download.jboss.org/jbosstools/updates/development/juno/soa-tooling... http://download.jboss.org/jbosstools/updates/development/juno/soa-tooling...
http://download.jboss.org/jbosstools/updates/stable/indigo/soa-tooling/sw... http://download.jboss.org/jbosstools/updates/stable/indigo/soa-tooling/sw...
== Integration Builds? ==
In future, we may also have "integration" builds, which are nightlies deemed good enough for
use by downstream developers, but not stable enough (ie., not tested enough) to be released to community as a milestone.
The above process will also work for building then promoting an integration build.
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/docs/DOC-47427]
Create a new document in JBoss Tools Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&c...]
12 years, 3 months
[jBPM Development] - jBPM: Could not start transaction when clicked on "Group Tasks" menu
by shekhar g
shekhar g [https://community.jboss.org/people/shekhargod] created the discussion
"jBPM: Could not start transaction when clicked on "Group Tasks" menu"
To view the discussion, visit: https://community.jboss.org/message/754296#754296
--------------------------------------------------------------
Hi,
I get following exception in the log when clicked on "Group Tasks" sub-menu under "Tasks" menu on jbpm-console. Any help in resolving this issue will be appreciated.
INFO [stdout] (Thread-21) Hibernate: select user0_.id as id8_0_ from OrganizationalEntity user0_ where user0_.id=? and user0_.DTYPE='User'
12:14:31,193 ERROR [stderr] (http--127.0.0.1-8080-3)
java.lang.RuntimeException: Command QueryTasksOwnedWithParticularStatus *faild due to Could not start transaction*.. Please contact task server administrator.
12:14:31,193 ERROR [stderr] (http--127.0.0.1-8080-3) at org.jbpm.task.service.TaskServerHandler.messageReceived(
12:14:31,193 ERROR [stderr] (http--127.0.0.1-8080-3) at org.jbpm.task.service.hornetq.BaseHornetQTaskServer.run(
BaseHornetQTaskServer.java:85)
12:14:31,193 ERROR [stderr] (http--127.0.0.1-8080-3) at java.lang.Thread.run(Unknown Source)
12:14:31,203 ERROR [stderr] (Thread-21)
java.lang.RuntimeException: Could not start transaction.
12:14:31,203 ERROR [stderr] (Thread-21) at org.jbpm.task.service.persistence.TaskPersistenceManager.queryWithParametersInTransaction(
TaskPersistenceManager.java:278)
12:14:31,203 ERROR [stderr] (Thread-21) at org.jbpm.task.service.persistence.TaskPersistenceManager.queryWithParametersInTransaction(
TaskPersistenceManager.java:285)
12:14:31,204 ERROR [stderr] (Thread-21) at org.jbpm.task.service.TaskServiceSession.getTasksAssignedAsPotentialOwnerByStatusByGroup(
TaskServiceSession.java:1040)
12:14:31,204 ERROR [stderr] (Thread-21) at org.jbpm.task.service.TaskServerHandler.messageReceived(
TaskServerHandler.java:356)
12:14:31,204 ERROR [stderr] (Thread-21) at org.jbpm.task.service.hornetq.HornetQTaskServerHandler.messageReceived(
HornetQTaskServerHandler.java:44)
12:14:31,204 ERROR [stderr] (Thread-21) at org.jbpm.task.service.hornetq.BaseHornetQTaskServer.run(
BaseHornetQTaskServer.java:85)
12:14:31,204 ERROR [stderr] (Thread-21) at java.lang.Thread.run(Unknown Source)
12:14:31,204 ERROR [stderr] (Thread-21) Caused by:
java.lang.NullPointerException
12:14:31,204 ERROR [stderr] (Thread-21) at org.drools.persistence.jta.JtaTransactionManager.getStatus(
JtaTransactionManager.java:205)
12:14:31,204 ERROR [stderr] (Thread-21) at org.jbpm.task.service.persistence.TaskJTATransactionManager.getStatus(
TaskJTATransactionManager.java:63)
12:14:31,204 ERROR [stderr] (Thread-21) at org.jbpm.task.service.persistence.TaskJTATransactionManager.begin(
TaskJTATransactionManager.java:36)
12:14:31,205 ERROR [stderr] (Thread-21) at org.jbpm.task.service.persistence.TaskPersistenceManager.beginTransaction(
TaskPersistenceManager.java:87)
12:14:31,205 ERROR [stderr] (Thread-21) at org.jbpm.task.service.persistence.TaskPersistenceManager.queryWithParametersInTransaction(
TaskPersistenceManager.java:260)
12:14:31,205 ERROR [stderr] (Thread-21) ... 6 more
12:14:31,207 ERROR [stderr] (Thread-35) Exception in thread "Thread-35"
java.lang.RuntimeException: Client Exception with class class org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1 using port 5445
12:14:31,207 ERROR [stderr] (Thread-35) at org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1.run(
HornetQTaskClientConnector.java:134)
12:14:31,207 ERROR [stderr] (Thread-35) at java.lang.Thread.run(Unknown Source)
12:14:31,207 ERROR [stderr] (Thread-35) Caused by:
java.lang.NullPointerException
12:14:31,207 ERROR [stderr] (Thread-35) at org.jbpm.task.service.TaskClientHandler.messageReceived(
TaskClientHandler.java:62)
12:14:31,207 ERROR [stderr] (Thread-35) at org.jbpm.task.service.hornetq.HornetQTaskClientHandler.messageReceived(
HornetQTaskClientHandler.java:56)
12:14:31,208 ERROR [stderr] (Thread-35) at org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1.run(
HornetQTaskClientConnector.java:120)
12:14:31,208 ERROR [stderr] (Thread-35) ... 1 more
12:14:31,850 INFO [stdout] (http--127.0.0.1-8080-7) INFO 17-08 12:14:31,849 (
DemoAuthenticator.java:authenticate:65) Demo login for user (admin) succeeded.
TaskServerHandler.java:665)
12:14:31,193 ERROR [stderr] (http--127.0.0.1-8080-3) at org.jbpm.task.service.hornetq.HornetQTaskServerHandler.messageReceived(
HornetQTaskServerHandler.java:44)
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/754296#754296]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 3 months
[JBoss AS 7 Development] - CLI deployment archive problem
by Jesper Thorhauge
Jesper Thorhauge [https://community.jboss.org/people/thohawk] created the discussion
"CLI deployment archive problem"
To view the discussion, visit: https://community.jboss.org/message/760668#760668
--------------------------------------------------------------
Hi,
First of all, the new CLI deployment archive feature of 7.2.x solves a lot of problems for my migration from 5.1! I have 20+ standalone servers that now can be configured at deploy-time. Thanks!
Playing with the latest nightly build from yesterday, my CLI archive consists of the following;
- mywebapp.war
- postgresql-9.1-902.jdbc4.jar
- deploy.scr
- undeploy.scr
deploy.scr has the following lines;
deploy postgresql-9.1-902.jdbc4.jar
data-source add --name=MyDS --jndi-name=java:jboss/datasources/MyDS --driver-name=postgresql-9.1-902.jdbc4.jar --connection-url=[not important for this example]
deploy mywebapp.war
That is, install my jdbc driver, create the data-source, and finally deploy my webapp using the data-source. *This does not work* :-( The error is;
Failed to execute archive script: {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => "JBAS010468: Driver named \"postgresql-9.1-902.jdbc4.jar\" is not installed."}}
What *works* is;
./jboss-cli.sh -c --file=deploy.scr
What is the difference?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/760668#760668]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 3 months
[JBoss AS 7 Development] - Migrating from AS4 to AS7 - Problem loading view templates
by Neil Doshi
Neil Doshi [https://community.jboss.org/people/ndoshi] created the discussion
"Migrating from AS4 to AS7 - Problem loading view templates"
To view the discussion, visit: https://community.jboss.org/message/744935#744935
--------------------------------------------------------------
I am migrating my spring mvc web app from AS4 to AS7.
The application is having a hard time finding my view templates (we are using velocity templates for our view).
This currently works fine in AS4 as is.
The project structure is as follows:
/
/src
/com
(etc...)
/WebContent
/WEB-INF
/velocity
/login
/login.vm
Here is an excerpt from my spring config file:
Stack Trace:
org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/WEB-INF/velocity/login/login.vm'
org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:483)
org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:354)
org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1400)
org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1380)
org.apache.velocity.app.VelocityEngine.getTemplate(VelocityEngine.java:401)
org.springframework.web.servlet.view.velocity.VelocityView.getTemplate(VelocityView.java:535)
org.springframework.web.servlet.view.velocity.VelocityView.getTemplate(VelocityView.java:520)
org.springframework.web.servlet.view.velocity.VelocityView.checkTemplate(VelocityView.java:293)
org.springframework.web.servlet.view.velocity.VelocityLayoutView.checkTemplate(VelocityLayoutView.java:122)
org.springframework.web.servlet.view.velocity.VelocityView.initApplicationContext(VelocityView.java:258)
org.springframework.context.support.ApplicationObjectSupport.initApplicationContext(ApplicationObjectSupport.java:119)
org.springframework.web.context.support.WebApplicationObjectSupport.initApplicationContext(WebApplicationObjectSupport.java:69)
org.springframework.context.support.ApplicationObjectSupport.setApplicationContext(ApplicationObjectSupport.java:73)
org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:70)
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:350)
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1331)
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:341)
org.springframework.web.servlet.view.UrlBasedViewResolver.loadView(UrlBasedViewResolver.java:413)
org.springframework.web.servlet.view.AbstractCachingViewResolver.createView(AbstractCachingViewResolver.java:159)
org.springframework.web.servlet.view.UrlBasedViewResolver.createView(UrlBasedViewResolver.java:378)
org.springframework.web.servlet.view.AbstractCachingViewResolver.resolveViewName(AbstractCachingViewResolver.java:78)
org.springframework.web.servlet.DispatcherServlet.resolveViewName(DispatcherServlet.java:1215)
org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1164)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:902)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
I tried a few different options for the "prefix" property
* /WEB-INF/velocity/
* WEB-INF/velocity/
* customerportal.war/WEB-INF/velocity/
* com.odc.customerportal/WEB-INF/velocity/
I am able to reorganize the location of the files in the built war file if necessary.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/744935#744935]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 3 months
[JBoss AS 7 Development] - No EJB receiver available for handling - reconnect
by Alano de Campos
Alano de Campos [https://community.jboss.org/people/alanoc] created the discussion
"No EJB receiver available for handling - reconnect"
To view the discussion, visit: https://community.jboss.org/message/760372#760372
--------------------------------------------------------------
After several searches, I could not find a solution to my problem. This is my scenario:
I have two server applications (A, B), application 'A' is the server and 'B' is the client, ie 'B' consumes the service 'A'. So far it works well, the problem is when I stop the application 'A' and starting again, now in the application 'B' when I try to lookup the EJB application 'A' error occurs:
> 09:25:02,482 GRAVE [javax.faces.event] (http--0.0.0.0-8081-4) javax.ejb.EJBException: java.lang.IllegalStateException: No EJB receiver available for handling [appName:cissupdate-ear,modulename:cissupdate-ejb,distinctname:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@1127169
> at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:166)
> at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:230)
> at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:304)
> at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> at org.jboss.as.ejb3.security.AuthorizationInterceptor.processInvocation(AuthorizationInterceptor.java:106)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:76)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
> at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)
> at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:173)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
> at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72)
> at br.com.ciss.updateserver.service.download.DownloadServiceLocal$$$view17.buscarAtualizacoes(Unknown Source)
> at br.com.ciss.updateserver.control.download.DownloadMBean.buscarAtualizacoes(DownloadMBean.java:36)
> at br.com.ciss.updateserver.control.download.DownloadMBean$Proxy$_$$_WeldClientProxy.buscarAtualizacoes(DownloadMBean$Proxy$_$$_WeldClientProxy.java)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.el.parser.AstValue.invoke(AstValue.java:262)
> at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278)
> at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:39)
> at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)
> at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:153)
> at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
> at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:769)
> at javax.faces.component.UICommand.broadcast(UICommand.java:300)
> at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
> at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
> at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
> at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
> at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489)
> at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)
> at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
> at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.IllegalStateException: No EJB receiver available for handling [appName:cissupdate-ear,modulename:cissupdate-ejb,distinctname:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@1127169
> at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:584)
> at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:119)
> at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)
> at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136)
> at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121)
> at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104)
> at $Proxy83.buscarAtualizacoes(Unknown Source)
> at br.com.ciss.updateserver.service.download.DownloadServiceImpl.buscarAtualizacoes(DownloadServiceImpl.java:96)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374)
> at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:127)
> at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:135)
> at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
> at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:82)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
> at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:228)
> ... 62 more
>
My class that does the lookup:
@Stateless
@RolesAllowed("ROLE_ADMIN")
public class ServiceTest {
private static Context CONTEXT;
public void lookup() {
final Properties jndiProperties = new Properties();
jndiProperties.put("jboss.naming.client.ejb.context", true);
jndiProperties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
try {
CONTEXT = new InitialContext(jndiProperties);
final StringBuilder sb = new StringBuilder("ejb:cissupdate-ear/cissupdate-ejb//");
// bean
sb.append(DownloadService.class.getSimpleName() + "Impl!");
// class
sb.append(DownloadService.class.getName());
final DownloadService d = (DownloadService) CONTEXT.lookup(sb.toString());
d.findY();
} catch (final NamingException e) {
e.printStackTrace();
}
}
}
The application 'B' can no longer find the reference of EJB application 'A'. Only works if you restart the application 'B'. Is there a setting to fix this? Without having to restart the application 'B'?
If anyone can help me, I'll be very happy. Thank you!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/760372#760372]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 3 months