[JBoss AS 7 Development] - how to shutdown 1 of 2 standalone JB7 instances ?aa
by valentino cruz
valentino cruz [https://community.jboss.org/people/fabiovc27] created the discussion
"how to shutdown 1 of 2 standalone JB7 instances ?aa"
To view the discussion, visit: https://community.jboss.org/message/753908#753908
--------------------------------------------------------------
I have 2 standalone instances one is the +*admin-server*+ deployed with a *.war, the other is the *+operations-server+* deployed with a *.ear. The +*admin-server*+ webapp provides a page for shutting down and starting the +*operations-server. *+ I'm also allowing the user to reset which port the admin-server runs on and I do this through the CLI API to change the port and then issue a re-start to the +*admin-server. *+ My current problem is that when the +*admin-server*+ shutsdown, it takes down with it the currently running +*operations-server.*+
I have tried various ways of shutting down the +*admin-server :*+
1. calling an external script that executes command line CLI shutdown command (+ie "jboss-cli.sh --connect --controller=localhost:adminCliPort --command=:shutdown")++*
*+
2. issuing a CLI command via API, similarly to how the operations server is started and how port changes are made+
+
3. stopping the servicer that automatically restarts the +*admin-server*+ (I use /Library/LaunchDaemons/ file to create a service and on shutdown i issue a stop option for this service).
NOTE: The shutdown of the +*admin-server*+ is not a problem, I can get it to shutdown immediately and restarts fine. Also the +*operations-server*+ shutsdown fairly well on its own (ie. when the "shutdown" button on the webapp is pressed). So just to clarify, the problem is that I can't shutdown only the +*admin-server*+ , it always brings down both servers eventhough i'm using a CLI command pointing to the +*admin-server*+.
The 2 servers are running next to each other, meaning I made a copy of the jboss7/ distribution and named it admin-server/ therefore each server has its own bin/ and standalone/.
Is this a known issue where the server that starts the 2nd server will always take down the 2nd server ?
Any help will be very much appreciated, I've been trying to get these 2 playing nice for a few days now.
Thank you
-Fabio
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/753908#753908]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 2 months
[jBPM Development] - jBPM: issue with getting TaskSummary from BlockingTaskSummaryResponseHandler
by Navin Maheshwari
Navin Maheshwari [https://community.jboss.org/people/navinpmjboss] created the discussion
"jBPM: issue with getting TaskSummary from BlockingTaskSummaryResponseHandler"
To view the discussion, visit: https://community.jboss.org/message/754812#754812
--------------------------------------------------------------
Hello All,
we are getting random behavior for getting jbpm task from BlockingTaskSummaryResponseHandler object. we are using jbpm-human-task-5.2.0.Final.jar from JBPM 5.2 with jboss 7.0.2.
below is my codeblow which behaviour is not expected, i am not able to get tasksummary everytime, sometimes its return task but sometime due to multiple call, transaction is not returning value,
BlockingTaskSummaryResponseHandler taskSummaryHandler = new BlockingTaskSummaryResponseHandler();
taskClient.getTasksAssignedAsPotentialOwner(role.get(0),"en-UK", taskSummaryHandler);
for(*TaskSummary task : taskSummaryHandler.getResults()*)
{
if(task.getProcessInstanceId() == processInstanceId && task.getName().equalsIgnoreCase(activity) && task.getStatus().toString().equalsIgnoreCase(toStatus))
this.task = task;
if(null != this.task)
break;
}
anyone has any suggestionm please help? we have doubt whether jbpm transaction management is not working properly. Do we need to do any change? please suggest.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/754812#754812]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 2 months
[JBoss Web Development] - when i logined (1st time) to my project it is giving the error....but 2nd time it is not giving such type of error
by Raghu T
Raghu T [https://community.jboss.org/people/raghu88] created the discussion
"when i logined (1st time) to my project it is giving the error....but 2nd time it is not giving such type of error"
To view the discussion, visit: https://community.jboss.org/message/754776#754776
--------------------------------------------------------------
i am getting the following error.......i recently changed to jboss6.1 from 4.2.2...in 4.2.2 it is working fine but it's not working on 6.1 for the first time only(after server starts).....pls suggest me if any solution...thanks
17:15:19,738 INFO [STDOUT] /userLogin.do
17:15:20,008 WARN [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Throwable while attempting to get a new connection: null: org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Apparently wrong driver class specified for URL: class: com.mysql.jdbc.Driver, url: jdbc:mysql://localhost:3306/mozartcost)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:261) [:6.1.0.Final]
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:215) [:6.1.0.Final]
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:648) [:6.1.0.Final]
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:272) [:6.1.0.Final]
at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:690) [:6.1.0.Final]
at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:403) [:6.1.0.Final]
at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:414) [:6.1.0.Final]
at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:496) [:6.1.0.Final]
at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941) [:6.1.0.Final]
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89) [:6.1.0.Final]
at com.zyom.webclient.util.ConnectionString.getConnection(ConnectionString.java:74) [:]
at com.zyom.webclient.util.DBHelper.isValidUser(DBHelper.java:69) [:]
at com.zyom.struts.action.UserLoginAction.execute(UserLoginAction.java:67) [:]
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419) [:1.2.7]
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224) [:1.2.7]
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194) [:1.2.7]
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) [:1.2.7]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [:1.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.1.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.1.0.Final]
at com.zyom.security.LoginMonitorFilter.doFilter(LoginMonitorFilter.java:67) [:]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.1.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.1.0.Final]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.1.0.Final]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [:6.1.0.Final]
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.1.0.Final]
at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]
at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.1.0.Final]
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.1.0.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:159) [:6.1.0.Final]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.1.0.Final]
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.1.0.Final]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.1.0.Final]
at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.1.0.Final]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.1.0.Final]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.1.0.Final]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.1.0.Final]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.1.0.Final]
at java.lang.Thread.run(Thread.java:619) [:1.6.0_13]
Caused by: org.jboss.resource.JBossResourceException: Apparently wrong driver class specified for URL: class: com.mysql.jdbc.Driver, url: jdbc:mysql://localhost:3306/mozartcost
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getDriver(LocalManagedConnectionFactory.java:541) [:6.1.0.Final]
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:228) [:6.1.0.Final]
... 40 more
17:15:20,015 INFO [STDOUT] org.jboss.util.NestedSQLException: Unable to get managed connection for jdbc/zyomCost; - nested throwable: (javax.resource.ResourceException: Unable to get managed connection for jdbc/zyomCost)
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/754776#754776]
Start a new discussion in JBoss Web Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 2 months
[jBPM Development] - Configuration of Birt Reporting in jbpm console server in AS7 installation.
by Peter Courcoux
Peter Courcoux [https://community.jboss.org/people/peter_courcoux] created the discussion
"Configuration of Birt Reporting in jbpm console server in AS7 installation."
To view the discussion, visit: https://community.jboss.org/message/754744#754744
--------------------------------------------------------------
I have a default installation of jboss AS 7.1.1 and am having difficulty getting the birt reporting integration to work. I am using a customised gwt-console-server-5.4.0 war, which is including some additional components. Are there any reporting server installation and configuration instructions for an install into a default AS 7 server. The log extract showing the problem is :-
16:28:34,310 INFO [org.jboss.web] (MSC service thread 1-10) JBAS018210: Registering web context: /gwt-console-server
16:28:34,716 ERROR [stderr] (BirtService-Init) Exception in thread "BirtService-Init" java.lang.RuntimeException: Failed to load reports
16:28:34,719 ERROR [stderr] (BirtService-Init) at org.jboss.bpm.report.BirtService.create(BirtService.java:92)
16:28:34,719 ERROR [stderr] (BirtService-Init) at org.jboss.bpm.report.BirtService$2.run(BirtService.java:216)
16:28:34,719 ERROR [stderr] (BirtService-Init) at java.lang.Thread.run(Thread.java:722)
16:28:34,720 ERROR [stderr] (BirtService-Init) Caused by: org.jboss.resteasy.spi.LoggableFailure: Unable to find contextual data of type: javax.servlet.ServletContext
16:28:34,720 ERROR [stderr] (BirtService-Init) at org.jboss.resteasy.core.ContextParameterInjector$GenericDelegatingProxy.invoke(ContextParameterInjector.java:53)
16:28:34,721 ERROR [stderr] (BirtService-Init) at $Proxy87.getServletContextName(Unknown Source)
16:28:34,723 ERROR [stderr] (BirtService-Init) at org.jboss.bpm.report.BirtService.loadReports(BirtService.java:105)
16:28:34,723 ERROR [stderr] (BirtService-Init) at org.jboss.bpm.report.BirtService.create(BirtService.java:87)
16:28:34,724 ERROR [stderr] (BirtService-Init) ... 2 more
I have the report-server project checked out and can build it. However, instructions on any configuration required would be very helpful. In the absence of instructions I have used the build of the jbpm-install project as a guide.
Any pointers would be much appreciated.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/754744#754744]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 2 months
[JBoss AS 7 Development] - Re: EJB bean is not working in Multi threading of JBoss 7.1.1 Final
by Bijoy James
Bijoy James [https://community.jboss.org/people/bijoyjp] created the discussion
"Re: EJB bean is not working in Multi threading of JBoss 7.1.1 Final"
To view the discussion, visit: https://community.jboss.org/message/754703#754703
--------------------------------------------------------------
Hi Oliver,
I placed the "jboss-ejb-client.properties" in "jboss-as-7.1.1.Final\bin\" folder
But in my code am not able to get the remote object.
Am using the below code for getting the remote object.
String appName = "";
String moduleName = "jboss-as-ejb-remote-app";
String distinctName = "";
Properties objProperties = new Properties();
objProperties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
initContext = new InitialContext(objProperties);
Object obj = initContext.lookup("ejb:"+ appName + "/"+ moduleName + "/" + distinctName + "/JMSRa/JMSRA!Home.JMSRAHome");
JMSRAHome home = (JMSRAHome) PortableRemoteObject.narrow(obj, JMSRAHome.class);
JMSRARemote objRemote = home.create();
Am getting exception on last line “home.create(); ”
As java.lang.IllegalStateException: No EJB receiver available for handling [appName:,modulename:jboss-as-ejb-remote-app,distinctname:]
How u are getting the remote object for invoking the method inside the bean.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/754703#754703]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 2 months
[Clustering Development] - Build errors with mod_cluster_1.2.1.Final
by qikun zhou
qikun zhou [https://community.jboss.org/people/zhouqikun] created the discussion
"Build errors with mod_cluster_1.2.1.Final"
To view the discussion, visit: https://community.jboss.org/message/754656#754656
--------------------------------------------------------------
When I builded mod_cluster_1.2.1.Final from SVN [ http://anonsvn.jboss.org/repos/mod_cluster/tags/1.2.1.Final/ http://anonsvn.jboss.org/repos/mod_cluster/tags/1.2.1.Final/],
the follow error encountered.
org.apache.maven.project.ProjectBuildingException: Some problems were encountere
d while processing the POMs:
[FATAL] Non-resolvable parent POM: Could not find artifact org.jboss.mod_cluster
:mod_cluster-parent:pom:1.2.1.Beta3-SNAPSHOT and 'parent.relativePath' points at
wrong local POM @ line 4, column 13
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBu
ilder.java:363)
at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636)
at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven
.java:585)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:234)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
[ERROR]
[ERROR] The project org.jboss.mod_cluster:mod_cluster-sar:1.2.1.Beta3-SNAPSHOT
(E:\OpenSource\mod_cluster_1_2_1_Final\sar\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Could not find artifact org.jboss.mod_clu
ster:mod_cluster-parent:pom:1.2.1.Beta3-SNAPSHOT and 'parent.relativePath' point
s at wrong local POM @ line 4, column 13 -> [Help 2]
org.apache.maven.model.resolution.UnresolvableModelException: Could not find art
ifact org.jboss.mod_cluster:mod_cluster-parent:pom:1.2.1.Beta3-SNAPSHOT
at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectMod
elResolver.java:159)
at org.apache.maven.model.building.DefaultModelBuilder.readParentExterna
lly(DefaultModelBuilder.java:813)
at org.apache.maven.model.building.DefaultModelBuilder.readParent(Defaul
tModelBuilder.java:664)
at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultMode
lBuilder.java:310)
at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultMode
lBuilder.java:232)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBu
ilder.java:410)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBu
ilder.java:379)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBu
ilder.java:495)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBu
ilder.java:379)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBu
ilder.java:343)
at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636)
at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven
.java:585)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:234)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not
find artifact org.jboss.mod_cluster:mod_cluster-parent:pom:1.2.1.Beta3-SNAPSHOT
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(Def
aultArtifactResolver.java:538)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArti
facts(DefaultArtifactResolver.java:216)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArti
fact(DefaultArtifactResolver.java:193)
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArti
fact(DefaultRepositorySystem.java:286)
at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectMod
elResolver.java:155)
... 24 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not fin
d artifact org.jboss.mod_cluster:mod_cluster-parent:pom:1.2.1.Beta3-SNAPSHOT
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(Def
aultArtifactResolver.java:528)
... 28 more
[ERROR]
Could tags[1.2.1.Final] build with command [mvn -P dist package]?
The trunk is builded successfully with same command [mvn -P dist package].
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/754656#754656]
Start a new discussion in Clustering Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 2 months
[JBoss AS 7 Development] - JBoss AS 7 Startup time
by wqe wqe
wqe wqe [https://community.jboss.org/people/drupalspring] created the discussion
"JBoss AS 7 Startup time"
To view the discussion, visit: https://community.jboss.org/message/754613#754613
--------------------------------------------------------------
Dear JBoss AS community,
This question is about deploying the jbpm5 web applications to the AS 7 .
The jbpm5 project provides totally six WARs to be deployed on the AS 7 . However , I have to wait about 10 minutes for all these six WARS to deploy successfully. I found that these six WARs will be exploded to about 1GB data during the deployment .It may be one of the reasons about the long deployment time.
So , I want to ask
(1) Jboss give me the impression that it is lightening fast and has the http://www.jboss.org/jbossas/#speed blazing fast start-up time . So I suspect that is it normal or take too long? If it is nornaml , any ways to reduce the deployment time?
(2) Most importantly , I find that whenever the jboss restart, all six WARs will be exploded again to about 1GB data even there are no changes in these WARs. Can I configure JBoss such that it can detect if there are changes in these WARs , and only deploy the "delta" instead of all six WARs every time during startup ?
Thanks :)
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/754613#754613]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 2 months