[JBoss jBPM] - Re: how to implement co-sign a task by several person?
by aspider
sorry, the example as below.
to make the code clear for you , i post it again.
please help me to have a look, whats the problem.
especially in CosignTaskEndHandler.
Thanks a lot!
| <?xml version="1.0" encoding="UTF-8"?>
| <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="simple">
| <start-state name="start">
| <transition to="create">
| </transition>
| </start-state>
| <task-node name="create">
| <task name="createTask">
| <controller>
| <variable name="approvedName"></variable>
| </controller>
| <assignment class="com.sample.assignment.DealAssignment">
| </assignment>
| </task>
| <transition to="message"></transition>
| </task-node>
|
| <state name="message">
| <transition to="approval"></transition>
| </state>
|
| <task-node name="approval" create-tasks="false" signal="last-wait">
| <event type="node-enter">
| <action name="approvalAction" class="com.sample.action.CosignActionHandler">
| </action>
| </event>
| <event type="task-end">
| <action
| class="com.sample.action.CosignTaskEndHandler">
| </action>
| </event>
| <task name="approvalTask">
| </task>
| <transition to="write"></transition>
| </task-node>
|
| <node name="write">
| <action name="action" class="com.sample.action.MessageActionHandler">
| <message>About to finish!</message>
| </action>
| <transition to="end"></transition>
| </node>
|
|
| <end-state name="end"></end-state>
| </process-definition>
|
CosignActionHandler.java
| public class CosignActionHandler implements ActionHandler {
|
| private static final long serialVersionUID = 1L;
| private static final Log log = LogFactory.getLog(CosignActionHandler.class);
|
| public void execute(ExecutionContext context) throws Exception {
|
| List approveNameList = (List)context.getVariable("approvedName");
| log.info(approveNameList.size());
| Token token = context.getToken();
| TaskMgmtInstance tmi = context.getTaskMgmtInstance();
| TaskNode taskNode = (TaskNode) context.getNode();
| Task task = taskNode.getTask("approvalTask");
| for(int i=0; i<approveNameList.size(); i++){
| String appName = (String)approveNameList.get(i);
| tmi.createTaskInstance(task, token).setActorId(appName);
| log.info("appName:" + appName +" task created");
| }
|
| }
|
| }
|
CosignTaskEndHandler.java
| public class CosignTaskEndHandler implements ActionHandler {
|
| private static final long serialVersionUID = 1L;
| private static final Log log = LogFactory.getLog(CosignTaskEndHandler.class);
|
| public void execute(ExecutionContext context) throws Exception {
| boolean isDisapprove = true;
| log.info("isDisapprove:"+isDisapprove);
| if (isDisapprove) {
| TaskMgmtInstance tmi = context.getTaskMgmtInstance();
| TaskInstance ti = context.getTaskInstance();
| final String actorId = ti.getActorId();
| Collection c = tmi.getSignallingTasks(context);
|
| for (Iterator it = c.iterator(); it.hasNext();) {
| TaskInstance task = (TaskInstance) it.next();
| if (!(actorId.equals(task.getActorId())) && (!task.hasEnded())) {
| task.end("write");
| }
| }
| }
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4194193#4194193
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4194193
17 years, 4 months
[JBoss jBPM] - Re: how to implement co-sign a task by several person?
by aspider
I have made a example.
Process Definition like this, i want to co-sign in 'approval' task node. And define 2 action in it.
The dynamic task creation is ok, but sth wrong with CosignTaskEndHandler
could you give advice?
<?xml version="1.0" encoding="UTF-8"?>
<process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="simple">
<start-state name="start">
</start-state>
<task-node name="create">
</task-node>
<task-node name="approval" create-tasks="false" signal="last-wait">
</task-node>
About to finish!
<end-state name="end"></end-state>
</process-definition>
CosignActionHandler.java
public class CosignActionHandler implements ActionHandler {
private static final long serialVersionUID = 1L;
private static final Log log = LogFactory.getLog(CosignActionHandler.class);
public void execute(ExecutionContext context) throws Exception {
List approveNameList = (List)context.getVariable("approvedName");
log.info(approveNameList.size());
Token token = context.getToken();
TaskMgmtInstance tmi = context.getTaskMgmtInstance();
TaskNode taskNode = (TaskNode) context.getNode();
Task task = taskNode.getTask("approvalTask");
for(int i=0; i<approveNameList.size(); i++){
String appName = (String)approveNameList.get(i);
tmi.createTaskInstance(task, token).setActorId(appName);
log.info("appName:" + appName +" task created");
}
}
}
CosignTaskEndHandler.java
public class CosignTaskEndHandler implements ActionHandler {
private static final long serialVersionUID = 1L;
private static final Log log = LogFactory.getLog(CosignTaskEndHandler.class);
public void execute(ExecutionContext context) throws Exception {
boolean isDisapprove = true;
log.info("isDisapprove:"+isDisapprove);
if (isDisapprove) {
TaskMgmtInstance tmi = context.getTaskMgmtInstance();
TaskInstance ti = context.getTaskInstance();
final String actorId = ti.getActorId();
Collection c = tmi.getSignallingTasks(context);
for (Iterator it = c.iterator(); it.hasNext();) {
TaskInstance task = (TaskInstance) it.next();
if (!(actorId.equals(task.getActorId())) && (!task.hasEnded())) {
task.end("write");
}
}
}
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4194192#4194192
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4194192
17 years, 4 months
[Persistence, JBoss/CMP, Hibernate, Database] - Re: Perplexing error - meta-aware object error
by mohitanchlia
But I don't have multiple local resources. All I have is JMS and Oracle. Oracle is local resource and JMS is XA so I would guess it should be using last resource gambit. Isn't that correct? Other than that all we have is Session Beans (that might call another bean with requiresNew) and MDB. Why would this need to have allowMultipleLastResource. Besides error message suggests something else:
| 2008-11-20 17:30:05,342 ERROR [hibernate.util.JDBCExceptionReporter] - Could not enlist in transaction on entering meta-aware object!; - nested throwable: (java.lang.IllegalStateException: Trying to change transaction TransactionImple < ac, BasicAction: a0a515c:cd7e:4925f02a:42a581 status: ActionStatus.RUNNING > in enlist!); - nested throwable: (org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (java.lang.IllegalStateException: Trying to change transaction TransactionImple < ac, BasicAction: a0a515c:cd7e:4925f02a:42a581 status: ActionStatus.RUNNING > in enlist!))
|
| javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection
| at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:629)
| at org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:194)
| at org.jboss.ejb3.entity.TransactionScopedEntityManager.find(TransactionScopedEntityManager.java:171)
Am I missing any point here?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4194187#4194187
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4194187
17 years, 4 months
[Installation, Configuration & DEPLOYMENT] - Can I Change the Default URL Base in JBoss?
by jim.tootell
I have a question that is half practical (to me) and half academic and days of Googling and creeping through config files hasn't provided any answer. Is it possible to change the default context base URL of an instance of JBoss? In the documentation I've looked at, "base URL" seems to mean JBOSS_HOME but that's not the base URL I'm talking about so let me explain a little what I would like to achieve.
As with most web containers, a default installation of JBoss (AS/EAP/ESB) assumes it "lives" at '[hostname][:port]/' for the base for its relative URLs.
If I want the: | I point my browser to:
JBoss Welcome Page | http://localhost:8080/
JMX Console | http://localhost:8080/jmx-console/
Web Console | http://localhost:8080/web-console/
If I install "appFoo" and "appBar" and don't specify a custom context, JBoss just appends the WAR names to the base URL:
appFoo | http://localhost:8080/appFoo/
appBar | http://localhost:8080/appBar/
So far, so good; pretty common behavior. But can I configure JBoss to assume that it "lives" somewhere downstream of '[hostname][:port]/', for example '[hostname][:port]/jboss/as/' such that I could get:
JBoss Welcome Page | http://localhost:8080/jboss/as/
JMX Console | http://localhost:8080/jboss/as/jmx-console/
Web Console | http://localhost:8080/jboss/as/web-console/
appFoo | http://localhost:8080/jboss/as/appFoo/
appBar | http://localhost:8080/jboss/as/appBar/
without having to manually modify the <context-root/> element in every jboss-web.xml ? I want the default JBoss web apps and behavior when a new app is added, I just don't want the URL to start at '/'. If you guessed I'm messing around with Apache and mod_jk, you're right and yes, I already know this isn't the most practical approach. Like I said, half practical/half academic.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4194182#4194182
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4194182
17 years, 4 months
[Installation, Configuration & DEPLOYMENT] - Problem Deploying in JBoss 5.0.0RC2
by csuchanec
I was hoping someone could point me in the direction of what the issue might be with an issue I am having with getting my application to deploy in JBoss 5.0.0 RC2. The application deploys fine on 4.2.3 but when I move it over to try to get it to work on 5 I get issues. I know everything we rewritten in 5, so there are probably things I need to change with my code, the problem is the error message I am getting is not very helpful.
The output from the deployment is as follows:
===============================================================================
| .
| JBoss Bootstrap Environment
| .
| JBOSS_HOME: C:\jboss-5.0.0.CR2\bin\\..
| .
| JAVA: C:\Program Files\Java\jdk1.6.0_10\bin\java
| .
| JAVA_OPTS: -Dprogram.name=irs_run.bat -Dpps.prop.file=..\server\irs\conf\pps.prop -Djboss.partition.name=IRSPartition -Djboss.partition.udpGroup=228.1.2.6 -XX:PermSize=128M -XX:MaxPermSize=128M -Xm
| s128m -Xmx512m
| .
| CLASSPATH: C:\Program Files\Java\jdk1.6.0_10\lib\tools.jar;C:\jboss-5.0.0.CR2\bin\\run.jar
| .
| ===============================================================================
| .
| 18:11:00,792 INFO [ServerImpl] Starting JBoss (Microcontainer)...
| 18:11:00,796 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.CR2 (build: SVNTag=JBoss_5_0_0_CR2 date=200809171139)
| 18:11:00,803 INFO [ServerImpl] Home Dir: C:\jboss-5.0.0.CR2
| 18:11:00,807 INFO [ServerImpl] Home URL: file:/C:/jboss-5.0.0.CR2/
| 18:11:00,812 INFO [ServerImpl] Library URL: file:/C:/jboss-5.0.0.CR2/lib/
| 18:11:00,817 INFO [ServerImpl] Patch URL: null
| 18:11:00,820 INFO [ServerImpl] Server Name: irs
| 18:11:00,823 INFO [ServerImpl] Server Home Dir: C:\jboss-5.0.0.CR2\server\irs
| 18:11:00,828 INFO [ServerImpl] Server Home URL: file:/C:/jboss-5.0.0.CR2/server/irs/
| 18:11:00,832 INFO [ServerImpl] Server Data Dir: C:\jboss-5.0.0.CR2\server\irs\data
| 18:11:00,835 INFO [ServerImpl] Server Temp Dir: C:\jboss-5.0.0.CR2\server\irs\tmp
| 18:11:00,838 INFO [ServerImpl] Server Config URL: file:/C:/jboss-5.0.0.CR2/server/irs/conf/
| 18:11:00,842 INFO [ServerImpl] Server Library URL: file:/C:/jboss-5.0.0.CR2/server/irs/lib/
| 18:11:00,849 INFO [ServerImpl] Root Deployment Filename: jboss-service.xml
| 18:11:01,346 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/jboss-5.0.0.CR2/server/irs/conf/bootstrap.xml
| 18:11:02,011 INFO [CopyMechanism] VFS temp dir: C:\jboss-5.0.0.CR2\server\irs\tmp
| 18:11:02,263 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
| 18:11:03,324 INFO [ServerInfo] Java version: 1.6.0_10,Sun Microsystems Inc.
| 18:11:03,327 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 11.0-b15,Sun Microsystems Inc.
| 18:11:03,330 INFO [ServerInfo] OS-System: Windows Vista 6.0,x86
| 18:11:03,372 INFO [JMXKernel] Legacy JMX core initialized
| 18:11:04,372 INFO [MetaDataAwareProfile] Using profile root:C:\jboss-5.0.0.CR2\server\irs
| 18:11:05,542 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
| 18:11:31,787 ERROR [AbstractKernelController] Error installing to Parse: name=vfszip:/C:/jboss-5.0.0.CR2/server/irs/deploy/pps.ear state=Not Installed mode=Manual requiredState=Parse
| org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfszip:/C:/jboss-5.0.0.CR2/server/irs/deploy/pps.ear/ppsServlet.war
| at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
| at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:343)
| at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:303)
| at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:275)
| at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:236)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1285)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1003)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1056)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:944)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:627)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:265)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:143)
| at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:409)
| at org.jboss.Main.boot(Main.java:209)
| at org.jboss.Main$1.run(Main.java:544)
| at java.lang.Thread.run(Thread.java:619)
| Caused by: java.lang.ClassCastException
| at java.lang.Class.cast(Class.java:2990)
| at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:215)
| at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:170)
| at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:132)
| at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:118)
| at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:256)
| at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:239)
| at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:336)
| ... 23 more
| 18:11:31,913 WARN [HackClassloaderMetaDataDeployer] FIXME Using loader repository config: jboss.console:sar=console-mgr.sar for vfsfile:/C:/jboss-5.0.0.CR2/server/irs/deploy/management/console-mgr.s
| ar/ use classloading metadata not loader repository config
| 18:11:32,991 INFO [AspectDeployer] Deploying xml into org.jboss.aop.AspectManager@19ac931 for BaseClassLoader@88dd83{vfsfile:/C:/jboss-5.0.0.CR2/server/irs/deploy/ejb3-interceptors-aop.xml}
| 18:11:50,184 INFO [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector
| 18:11:50,366 INFO [MailService] Mail Service bound to java:/Mail
| 18:11:51,005 INFO [NativeServerConfig] JBoss Web Services - Stack Native Core
| 18:11:51,008 INFO [NativeServerConfig] 3.0.3.GA
| 18:11:52,191 WARN [JBossASSecurityMetadataStore] WARNING! POTENTIAL SECURITY RISK. It has been detected that the MessageSucker component which sucks messages from one node to another has not had its
| password changed from the installation default. Please see the JBoss Messaging user guide for instructions on how to do this.
| 18:11:52,609 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
| 18:11:52,612 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
| 18:11:53,080 INFO [TransactionManagerService] Initializing recovery manager
| 18:11:53,777 INFO [TransactionManagerService] Recovery manager configured
| 18:11:53,780 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
| 18:11:53,818 INFO [TransactionManagerService] Starting transaction recovery manager
| 18:11:54,359 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk
| 1.6.0_10\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Progra
| m Files\Wave Systems Corp\Dell Preboot Manager\Access Client\v5\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;c:\program files\GNUWin32\\bin;C:\Program Files\Microsoft SQL Server\80\Tools\Bin
| n\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Mic
| rosoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;c:\apache-ant-1.6.5\bin\; C:\Program Files\Java\jdk1.6.0_10\bin\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Common Files\Ulead Systems\
| MPEG
| 18:11:54,466 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
| 18:11:54,480 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
| 18:11:54,483 INFO [Catalina] Initialization processed in 389 ms
| 18:11:54,486 INFO [StandardService] Starting service jboss.web
| 18:11:54,500 INFO [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.1.CR7
| 18:11:54,583 INFO [Catalina] Server startup in 96 ms
| 18:11:54,677 INFO [TomcatDeployment] deploy, ctxPath=/invoker, vfsUrl=http-invoker.sar/invoker.war
| 18:11:55,734 INFO [TomcatDeployment] deploy, ctxPath=/jbossws, vfsUrl=jbossws.sar/jbossws-management.war
| 18:11:55,819 INFO [TomcatDeployment] deploy, ctxPath=/web-console, vfsUrl=management/console-mgr.sar/web-console.war
| 18:11:56,345 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.0.0.CR2/server/irs/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
| 18:11:56,361 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.0.0.CR2/server/irs/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
| 18:11:56,390 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.0.0.CR2/server/irs/deploy/jms-ra.rar/META-INF/ra.xml
| 18:11:56,411 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.0.0.CR2/server/irs/deploy/mail-ra.rar/META-INF/ra.xml
| 18:11:56,442 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.0.0.CR2/server/irs/deploy/quartz-ra.rar/META-INF/ra.xml
| 18:11:56,631 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
| 18:11:56,669 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
| 18:11:56,676 INFO [RAMJobStore] RAMJobStore initialized.
| 18:11:56,680 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
| 18:11:56,686 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
| 18:11:56,691 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
| 18:11:57,830 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
| 18:11:58,348 WARN [QuartzTimerServiceFactory] sql failed: CREATE TABLE QRTZ_JOB_DETAILS(JOB_NAME VARCHAR(80) NOT NULL, JOB_GROUP VARCHAR(80) NOT NULL, DESCRIPTION VARCHAR(120) NULL, JOB_CLASS_NAME VA
| RCHAR(128) NOT NULL, IS_DURABLE VARCHAR(1) NOT NULL, IS_VOLATILE VARCHAR(1) NOT NULL, IS_STATEFUL VARCHAR(1) NOT NULL, REQUESTS_RECOVERY VARCHAR(1) NOT NULL, JOB_DATA BINARY NULL, PRIMARY KEY (JOB_NAM
| E,JOB_GROUP))
| 18:11:58,437 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
| 18:11:58,444 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
| 18:11:58,447 INFO [JobStoreCMT] Using db table-based data access locking (synchronization).
| 18:11:58,466 INFO [JobStoreCMT] Removed 0 Volatile Trigger(s).
| 18:11:58,470 INFO [JobStoreCMT] Removed 0 Volatile Job(s).
| 18:11:58,474 INFO [JobStoreCMT] JobStoreCMT initialized.
| 18:11:58,477 INFO [StdSchedulerFactory] Quartz scheduler 'JBossEJB3QuartzScheduler' initialized from an externally provided properties instance.
| 18:11:58,480 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
| 18:11:58,486 INFO [JobStoreCMT] Freed 0 triggers from 'acquired' / 'blocked' state.
| 18:11:58,497 INFO [JobStoreCMT] Recovering 0 jobs that were in-progress at the time of the last shut-down.
| 18:11:58,500 INFO [JobStoreCMT] Recovery complete.
| 18:11:58,504 INFO [JobStoreCMT] Removed 0 'complete' triggers.
| 18:11:58,513 INFO [JobStoreCMT] Removed 0 stale fired job entries.
| 18:11:58,520 INFO [QuartzScheduler] Scheduler JBossEJB3QuartzScheduler_$_NON_CLUSTERED started.
| 18:11:58,901 INFO [ServerPeer] JBoss Messaging 1.4.1.CR1 server [0] started
| 18:11:59,071 WARN [ConnectionFactoryJNDIMapper] supportsFailover attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non c
| lustered. So connection factory will *not* support failover
| 18:11:59,082 WARN [ConnectionFactoryJNDIMapper] supportsLoadBalancing attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is
| non clustered. So connection factory will *not* support load balancing
| 18:11:59,216 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
| 18:11:59,219 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@30ea9 started
| 18:11:59,246 INFO [QueueService] Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000
| 18:11:59,251 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
| 18:11:59,255 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@fe918f started
| 18:11:59,266 INFO [TopicService] Topic[/topic/FccSendFamEmail] started, fullSize=200000, pageSize=2000, downCacheSize=2000
| 18:11:59,272 INFO [QueueService] Queue[/queue/DLQ] started, fullSize=200000, pageSize=2000, downCacheSize=2000
| 18:11:59,283 INFO [TopicService] Topic[/topic/FccSendEmail] started, fullSize=200000, pageSize=2000, downCacheSize=2000
| 18:11:59,288 INFO [TopicService] Topic[/topic/FccSendApprovedEmail] started, fullSize=200000, pageSize=2000, downCacheSize=2000
| 18:11:59,294 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
| 18:11:59,300 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@a80f3a started
| 18:11:59,304 INFO [TopicService] Topic[/topic/FccSendApprovedTypeEmail] started, fullSize=200000, pageSize=2000, downCacheSize=2000
| 18:11:59,428 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
| 18:11:59,466 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=MSSQLXADS' to JNDI name 'java:MSSQLXADS'
| 18:11:59,484 INFO [TomcatDeployment] deploy, ctxPath=/, vfsUrl=ROOT.war
| 18:11:59,556 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console, vfsUrl=jmx-console.war
| 18:11:59,673 INFO [TomcatDeployment] deploy, ctxPath=/ppsReportNew, vfsUrl=ppsReportNew.war
| 18:11:59,752 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
|
| *** CONTEXTS IN ERROR: Name -> Error
|
| vfszip:/C:/jboss-5.0.0.CR2/server/irs/deploy/pps.ear -> java.lang.ClassCastException
|
|
| 18:11:59,800 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
| 18:11:59,826 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
| 18:11:59,838 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.CR2 (build: SVNTag=JBoss_5_0_0_CR2 date=200809171139)] Started in 58s:983ms
All it is telling me is I am getting a class cast exception when it tries to deploy the war that is in my ear because of the error creating managed object.
Anyone have any idea where to look for possible issues. I already resolved a similar issue by changing the Spring configurations to use the XSD definitions instead of DTD.
If there is any more information I can provide that would help please let me know.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4194181#4194181
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4194181
17 years, 4 months
[Performance Tuning] - Re: JBoss AS 4.2.3.GA + Seam 2.1.0.GA - 1 hit = 100% CPU
by rhills
"noelo" wrote : I have seen high CPU usage on XP and Tomcat running using the APR.
| This *may* be the cause of your issue, try it out without the apr and see....
|
OK, I've removed APR and HTTPS from the equation and although the app performance has improved slightly we're still seeing 100% CPU usage with a single hit on each of our dynamic pages that I've tested.
I've profiled a single hit on a single page that takes about 10 seconds from clicking on a "Search" button to the end of page rendering (25 result rows shown). Without the APR, we get a little more visibility in our profiling results, and around 7 of the 10 seconds are spent rendering the result: com.sun.facelets.FaceleteViewHandler.renderView. Below that, there is no standout time hog. Our own classes consume about 100ms of the total unfortunately so there doesn't seem to be much we can do there.
We'll play around with one of our views and by process of elimination see if we can pinpoint the problem.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4194175#4194175
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4194175
17 years, 4 months