[Installation, Configuration & DEPLOYMENT] - Re: Jboss Upgradation
by rasa
ok thanks for your kind support.
Now i have only one jboss in my machine and the server.xml configuration in jboss.we.deployer is as follows
| <Connector port="8080" address="${jboss.bind.address}"
| maxThreads="250" maxHttpHeaderSize="8192"
| emptySessionPath="true" protocol="HTTP/1.1"
| enableLookups="false" redirectPort="8443" acceptCount="100"
| connectionTimeout="20000" disableUploadTimeout="true" />
|
So my port is 8080, i have started my jboss server using sh run.sh & command then i tried http://myIp:8080/ i am not able to get the expected result. In Console there is no error at all. I haven't deployed my application in the deploy dir. I just want to see whether the jboss is up or not. The process is running properly i have checked it by using ps -eaf |grep java and it gives the out put.
I am not able to guess what is the issue??
Please guide me to find the actual problem. If you need my log file i will give that also.
Thanks and Regards
Rasa
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224550#4224550
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224550
17 years
[JBoss jBPM] - org.hibernate.persister.entity.AbstractEntityPersister
by mamidalasrinivas
I am able to open jbpm-bpel console ,after opening console i am geting error and Then when i try to build sample hello example ,sample hello example build sucessful but when i open process defination page its opeing fine and when i try to deploye hello.par file ,I am geting below server error ,i am facing this problem from last 15 days please help me friends ,give some your best ideas
2009-04-08 22:49:57,469 DEBUG [org.hibernate.persister.entity.AbstractEntityPersister]
Snapshot select: /* get current state com.ibm.wsdl.PortTypeImpl */ select porttypeim_.id,
porttypeim_.LOCALNAME_ as LOCALNAME2_61_, porttypeim_.NAMESPACE_ as NAMESPACE3_61_ from
WSDL_PORTTYPE porttypeim_ where porttypeim_.id=?
2009-04-08 22:49:57,469 DEBUG [org.hibernate.persister.entity.AbstractEntityPersister]
Insert 0: /* insert com.ibm.wsdl.PortTypeImpl */ insert into WSDL_PORTTYPE (LOCALNAME_,
NAMESPACE_, id) values (?, ?, ?)
2009-04-08 22:49:57,469 DEBUG [org.hibernate.persister.entity.AbstractEntityPersister]
Update 0: /* update com.ibm.wsdl.PortTypeImpl */ update WSDL_PORTTYPE set LOCALNAME_=?,
NAMESPACE_=? where id=?
2009-04-08 22:49:57,469 DEBUG [org.hibernate.persister.entity.AbstractEntityPersister]
Delete 0: /* delete com.ibm.wsdl.PortTypeImpl */ delete from WSDL_PORTTYPE where id=?
2009-04-08 22:49:57,469 DEBUG [org.hibernate.persister.entity.AbstractEntityPersister]
Identity insert: /* insert com.ibm.wsdl.PortTypeImpl */ insert into WSDL_PORTTYPE (id,
LOCALNAME_, NAMESPACE_) values (null, ?, ?)
2009-04-08 22:49:57,469 DEBUG [org.hibernate.cache.CacheFactory] instantiating cache
region: org.jbpm.bpel.graph.def.Import usage strategy: nonstrict-read-write
2009-04-08 22:49:57,672 DEBUG [org.hibernate.persister.entity.AbstractEntityPersister]
Static SQL for entity: org.jbpm.bpel.graph.def.Import
2009-04-0
2009-04-08 22:50:03,407 DEBUG [org.hibernate.hql.ast.ErrorCounter] throwQueryException() : no errors
2009-04-08 22:50:03,407 DEBUG [org.hibernate.hql.antlr.HqlSqlBaseWalker] select << begin [level=1, statement=select]
2009-04-08 22:50:03,407 DEBUG [org.hibernate.hql.ast.tree.FromElement] FromClause{level=1} : org.jbpm.job.Timer (timer) -> timer0_
2009-04-08 22:50:03,407 DEBUG [org.hibernate.hql.ast.tree.FromReferenceNode] Resolved : timer -> timer0_.ID_
2009-04-08 22:50:03,407 DEBUG [org.hibernate.hql.ast.tree.FromReferenceNode] Resolved : timer -> timer0_.ID_
2009-04-08 22:50:03,407 DEBUG [org.hibernate.hql.ast.tree.DotNode] getDataType() : token -> org.hibernate.type.ManyToOneType(org.jbpm.graph.exe.Token)
2009-04-08 22:50:03,407 DEBUG [org.hibernate.hql.ast.tree.DotNode] dereferenceShortcut() : property token in org.jbpm.job.Timer does not require a join.
2009-04-08 22:50:03,407 DEBUG [org.hibernate.hql.ast.tree.DotNode] terminal propertyPath = [token]
2009-04-08 22:50:03,407 DEBUG [org.hibernate.hql.ast.tree.FromReferenceNode] Resolved : timer.token -> timer0_.TOKEN_
2009-04-08 22:50:03,407 DEBUG [org.hibernate.hql.ast.tree.FromReferenceNode] Resolved : timer -> timer0_.ID_
2009-04-08 22:50:03,407 DEBUG [org.hibernate.hql.ast.tree.DotNode] getDataType() : name -> org.hibernate.type.StringType@1a8c064
2009-04-08 22:50:03,407 DEBUG [org.hibernate.hql.ast.tree.FromReferenceNode] Resolved : timer.name -> timer0_.NAME_
2009-04-08 22:50:03,407 DEBUG [org.hibernate.hql.antlr.HqlSqlBaseWalker] select : finishing up [level=1, statement=select]
2009-04-08 22:50:03,407 DEBUG [org.hibernate.hql.ast.HqlSqlWalker] processQuery() : ( SELECT ( {select clause} timer0_.ID_ ) ( FromClause{level=1} JBPM_JOB timer0_ ) ( where ( and ( = ( timer0_.TOKEN_ timer0_.ID_ token ) ? ) ( = ( timer0_.NAME_ timer0_.ID_ name ) ? ) ) ) )
2009-04-08 22:50:03,407 DEBUG [org.hibernate.hql.ast.util.JoinProcessor] Using FROM fragment [JBPM_JOB timer0_]
2009-04-08 22:50:03,407 DEBUG [org.hibernate.hql.ast.util.SyntheticAndFactory] Using WHERE fragment [timer0_.CLASS_='T']
2009-04-08 22:50:03,407 DEBUG [org.hibernate.hql.antlr.HqlSqlBaseWalker] select >> end [level=1, statement=select]
2009-04-08 22:50:03,423 DEBUG [org.hibernate.hql.ast.AST] --- SQL AST ---
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224540#4224540
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224540
17 years
[Installation, Configuration & DEPLOYMENT] - Re: Jboss 4.2.2 mem issue
by sunlinux
OS= RHEL AS4
I do not have specific tool to monitor JVM process but I could take snap from linux command
Below is statics of mem utilization by java various process .
PID PPID RSS VSZ %CPU %MEM CMD
JBOSS Process Output
29036 29007 346720 937004 0.0 8.3 /data/jdk1.5.0_16/bin/java -Dprogram.name=run.sh -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true -Djava.endorsed.dirs=/data/jboss/lib/endorsed -classpath /data/jboss/bin/run.jar:/home/spsadm/data/jdk1.5.0_16/lib/tools.jar org.jboss.Main -b aac
ALL JAVA Process
pid, ppid,rss, vsize, pcpu, pmem,cmd -ww --sort=pid | grep java
8572 1 65420 1288608 0.0 1.5 /opt/egurkha/jre/bin/java -Xrs -Dsun.net.inetaddr.ttl=900 EgMainAgent -manager 202.138.97.16 -port 80 -dir /opt/egurkha -ssl n -highSecurity false
22726 22641 648 4212 0.0 0.0 grep java
29036 29007 346720 937004 0.0 8.3 /data/jdk1.5.0_16/bin/java -Dprogram.name=run.sh -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true -Djava.endorsed.dirs=/data/jboss/lib/endorsed -classpath /data/jboss/bin/run.jar:/home/spsadm/data/jdk1.5.0_16/lib/tools.jar org.jboss.Main -b abc
above utilization values are of 5 min avg time values
& it keeps consuming memory very slowly that it takes many days to eat all available memory
Pls. suggest
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224539#4224539
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224539
17 years
[JBoss jBPM] - java.sql.SQLException: Table already exists: JMS_TRANSACTION
by mamidalasrinivas
when I deploye jbpm-bpel.ear,i am geting below error
server.log is
java.sql.SQLException: Table already exists: JMS_TRANSACTIONS in statement [CREATE CACHED
TABLE JMS_TRANSACTIONS]
at org.hsqldb.jdbc.Util.throwError(Unknown Source)
at org.hsqldb.jdbc.jdbcPreparedStatement.executeUpdate(Unknown Source)
at org.jboss.resource.adapter.jdbc.CachedPreparedStatement.executeUpdate
(CachedPreparedStatement.java:95)
at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate
(WrappedPreparedStatement.java:251)
at org.jboss.mq.pm.jdbc2.PersistenceManager.createSchema
(PersistenceManager.java:355)
at org.jboss.mq.pm.jdbc2.PersistenceManager.startService
(PersistenceManager.java:1796)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart
(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle
(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke
(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke
(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke
(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
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:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke
(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke
(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke
(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy42.start(Unknown Source)
at org.jboss.deployment.XSLSubDeployer.start(XSLSubDeployer.java:197)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke
(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke
(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke
(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224538#4224538
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224538
17 years
[JBoss Tools (users)] - Re: Problems using
by rob.stryker@jboss.com
I've just tested this on 3.0.0.GA in a new workspace (with JBoss 4.2.2.GA) and am unable to replicate. After doing a full publish, the entire app is redeployed and the console spits out its usual 211 lines of output.
I can verify this with timestamps. After one full publish, I get the following:
[rob@localhost 1]$ du -a | grep "xml" | cut -f 2 | awk '{print "ls -l " $0;}' | head -n 2 | tail -n 1 | sh
-rw-rw-r-- 1 rob rob 541 2009-04-09 11:07 ./seam21-ear.ear/META-INF/application.xml
After a while, I do another full publish and get:
[rob@localhost 1]$ du -a | grep "xml" | cut -f 2 | awk '{print "ls -l " $0;}' | head -n 2 | tail -n 1 | sh
-rw-rw-r-- 1 rob rob 541 2009-04-09 11:10 ./seam21-ear.ear/META-INF/application.xml
Note the timestamp went from 11:07 to 11:10. It seems to be working fine for me?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224534#4224534
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224534
17 years
[JBoss jBPM] - Hibernate Error when persist the outer ProcessInstance.
by kenees
Hi guys
I'm using JBPM 3.3.0.GA, I have a use case that want to create a new ProcessInstance (name as A) inside an actionHandler of an outer one, the code in the action handler would like this:
| @Override
| public void execute(ExecutionContext executionContext) throws Exception {
| // get operation context from workflow
| OperationContext context = (OperationContext) executionContext
| .getContextInstance().getTransientVariable(
| Operation.OPERATION_CONTEXT);
| // create discovery operation
| WorkflowOperation discoveryOperation = new WorkflowOperation(context);
| // create discovery related workflow
| ProcessDefinition processDefinition = ProcessDefinition.parseXmlString(definition);
| ProcessInstance processInstance =
| new ProcessInstance(processDefinition);
| discoveryOperation.setProcessInstance(processInstance);
|
| new JBossCacheServiceFactory().getCacheService(
| CacheRegionConstants.TASK).put(context.getOperationId(),
| discoveryOperation);
| if (logger.isDebugEnabled()) {
| logger.debug("Discovery Operation with Workflow created successfully.");
| }
| }
|
For this inner processInstance I didn't do anything like call the save method to make it persisted, and this is also what i expected, because i want to put it in the cache, and the following code show how i created the outer processInstance:
| public static final void createProcess(OperationContext context) {
| JbpmContext jbpmContext = JbpmConfingurationFactory.jbpmConfiguration
| .createJbpmContext();
| try {
| ProcessDefinition retrievedPd = jbpmContext.getGraphSession()
| .findLatestProcessDefinition(context.getWorkflowName());
| if (retrievedPd == null) {
| logger.error("Can not find Process Definition with name: " + context.getWorkflowName());
| throw new DMException("Can not find Process Definition with name: " + context.getWorkflowName());
| }
| ProcessInstance processInstance = new ProcessInstance(retrievedPd);
| processInstance.setKey(context.getTaskId());
| processInstance.getContextInstance().setTransientVariable(Operation.OPERATION_CONTEXT, context);
| // ready to signal work flow
| processInstance.signal();
| jbpmContext.save(processInstance);
| if (logger.isDebugEnabled()) {
| logger.debug("---------------- create processinstance -----------------");
| logger.debug("---------------- complete [" + context.getTaskId() + "] -----------------");
| }
| } finally {
| jbpmContext.close();
| }
| }
|
You see i call the save method and try to make the outer processInstance persisted, so I expect the outer processInstance should be persisted successfully but the inner one shouldn't, because i explicitily call the save method for the outer one not for the inner one, this make sense to me and i think it's a correct logic, but when i close the jbpmContext, i got the following error:
| 10:36:36,392 ERROR [DbPersistenceService] hibernate commit failed
| org.hibernate.TransientObjectException: object references an unsaved transient instance - save the t
| ransient instance before flushing: org.jbpm.graph.def.Node
| at org.hibernate.engine.ForeignKeys.getEntityIdentifierIfNotUnsaved(ForeignKeys.java:219)
| at org.hibernate.type.EntityType.getIdentifier(EntityType.java:397)
| at org.hibernate.type.ManyToOneType.isDirty(ManyToOneType.java:242)
| at org.hibernate.type.TypeFactory.findDirty(TypeFactory.java:597)
| at org.hibernate.persister.entity.AbstractEntityPersister.findDirty(AbstractEntityPersister.
| java:3128)
| at org.hibernate.event.def.DefaultFlushEntityEventListener.dirtyCheck(DefaultFlushEntityEven
| tListener.java:479)
| at org.hibernate.event.def.DefaultFlushEntityEventListener.isUpdateNecessary(DefaultFlushEnt
| ityEventListener.java:204)
| at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityE
| ventListener.java:127)
| at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEvent
| Listener.java:196)
| at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(Abstrac
| tFlushingEventListener.java:76)
| at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:
| 26)
| at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
| at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
| at org.hibernate.transaction.JTATransaction.commit(JTATransaction.java:135)
| at org.jbpm.persistence.db.DbPersistenceService.commit(DbPersistenceService.java:262)
| at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:218)
| at org.jbpm.svc.Services.close(Services.java:236)
| at org.jbpm.JbpmContext.close(JbpmContext.java:136)
|
|
So, please tell me, did i miss something? Thank you very very much.
P.S. I post a similar topic yesterday, but it's not as clear as this one, so i post this new one.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224532#4224532
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224532
17 years