[jBPM] - JBPM4.4 application deployment/startup issue in Tomcat
by Felix Jose
Felix Jose [http://community.jboss.org/people/FelixKJose] created the discussion
"JBPM4.4 application deployment/startup issue in Tomcat"
To view the discussion, visit: http://community.jboss.org/message/569048#569048
--------------------------------------------------------------
Hi All,
I am using JBPM4.4 in my application. We are using tomcat for deployment. I am facing a critical issue with the application startup.
When we deploy and startup the application in tomcat thousands of JBPM log messages are happening and is all about Hibernate select statements and in my understanding it is doing select against JBPM4_DEPLOMENT table, JBPM4_LOB table etc. As our application is a huge one, it is having lakhs of records and each record there is a JBPM process associated. So the number of records in the JBPM4_DEPLOMENT table, JBPM4_LOB table etc are very high. Because of these select statements the deployment and appliaction startup is taking half an hour to complete. The application startup time is getting increased as the number of records in the JBPM tables are increasing.
So my doubt is why is these Hibernate select statements are required during the application startup? Can we omit those? If yes how can we achieve that?
Please send me quick answer for this as my project is supposed to go into production by November 15th. I am waiting for your response.
Thank you for you time and answer in advance.
Thank You and regards,
Felix K Jose.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/569048#569048]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 2 months
[jBPM] - jbpm4.4 timer trigerring problem
by parvathy j a
parvathy j a [http://community.jboss.org/people/parvathy] created the discussion
"jbpm4.4 timer trigerring problem"
To view the discussion, visit: http://community.jboss.org/message/569065#569065
--------------------------------------------------------------
hi i have a jpdl.xml file where i have configured a timer in one transition
<?xml version="1.0" encoding="UTF-8"?>
<process name="TimerBusinessTime" xmlns=" http://jbpm.org/4.4/jpdl http://jbpm.org/4.4/jpdl">
<start g="19,50,48,48">
<transition to="second state" />
</start>
<state name="second state" g="283,46,83,53" >
<transition name="to_guardedWait" to="guardedWait" g="-16,-17" />
</state>
<state name="guardedWait" g="98,46,127,52">
<transition name="go on" to="next step" g="-16,-17" />
<transition name="timeout" to="escalation" g="-43,-16">
<timer duedate="2 minutes" />
</transition>
</state>
<state name="next step" g="118,140,88,52" />
<state name="escalation" g="118,140,88,52" />
</process>
and i have impoted <import resource="jbpm.jobexecutor.cfg.xml" /> tis in jbpm.cfg.xml file...
Now in my test case. i deploy the jpdl.xml file and start it..so it will reach the first state and then i will signal it to the second state where the timer is specified...so it must fire after 5 minutes automatically..but its not happening..i dunno if i have gone wrong somewhere...
Plz guide me
Thanks in advance
Parvathy
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/569065#569065]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 2 months
[Beginner's Corner] - problem with deploying application using JDBC postgreSQL driver
by darko Grozdanovski
darko Grozdanovski [http://community.jboss.org/people/darko1002001] created the discussion
"problem with deploying application using JDBC postgreSQL driver"
To view the discussion, visit: http://community.jboss.org/message/568946#568946
--------------------------------------------------------------
hi. i am trying to deploy this webservice on a local jboss server running windows xp.
http://code.google.com/p/transitdatafeeder/w/list http://code.google.com/p/transitdatafeeder/w/list
i have jboss-5.1.0.GA unpacked and able to run before i deploy the app with all the default configuration.
i have the postgreSQL version 8.3 installed with the JDBC driver and
the driver jar set in the CLASSPATH in the env variables and also the
postgresql-8.4-701.jdbc3.jar copied into the lib folders of jboss. i
have made a database called feedbase in postgreSQL which is needed for the project to deploy.
the database tables and everything else should be done by the app on the first run but it seems there is a problem creating the initial tables.
i wonder if it is any additional setup i need to do for postgreSQL driver to work with JBoss and also if there is something i need to do to configure hibernate.
there are a couple of errors in the log files that prevent the
successful startup of the service. this is where they start:
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
2010-10-28 17:50:04,656 INFO
[org.hibernate.impl.SessionFactoryObjectFactory] (main) Bound factory
to JNDI name: persistence.unit:unitName=#datafeeder
2010-10-28 17:50:04,656 WARN
[org.hibernate.impl.SessionFactoryObjectFactory] (main) InitialContext
did not implement EventContext
2010-10-28 17:50:04,671 INFO
[org.hibernate.tool.hbm2ddl.SchemaValidator] (main) Running schema
validator
2010-10-28 17:50:04,671 INFO
[org.hibernate.tool.hbm2ddl.SchemaValidator] (main) fetching database
metadata
2010-10-28 17:50:04,906 INFO
[org.hibernate.tool.hbm2ddl.DatabaseMetadata] (main) table not found:
address
2010-10-28 17:50:04,921 ERROR
[org.jboss.kernel.plugins.dependency.AbstractKernelController] (main)
Error installing to Start: name=persistence.unit:unitName=#datafeeder
state=Create
javax.persistence.PersistenceException: [PersistenceUnit: datafeeder]
Unable to build EntityManagerFactory
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:
677)
at
org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:
132)
at
org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:
301)
here are both of the logs
appreciate any help you can give me.
tnx.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/568946#568946]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 2 months
[Datasource Configuration] - Socket timeout or connection timeout exceptions
by Bhanu Pratap Padmanabhuni
Bhanu Pratap Padmanabhuni [http://community.jboss.org/people/sun81] created the discussion
"Socket timeout or connection timeout exceptions"
To view the discussion, visit: http://community.jboss.org/message/568889#568889
--------------------------------------------------------------
We have a deployment of application on Jboss 4.20/Solaris 10 on one Network and the Database-Oracle 10.2.0.4/Solaris 10 is on a Different network.
Both the networks have good bandwidth and no wirewall or communication issues in between.
Did a trace route from App server to DB server and there are 4 hops in between.
Our application is memory intensive and tries to load all the rules etc., in to memory during the application start up.
Everything is getting loaded in to memory except a set of data because it tries to load close to million records from DB in to memory in one shot so I suspect either the Network ha some latency or DB connection is getting timedout.
I am getting the below exception/error messages:
13:34:46,470 WARN [TxConnectionManager] Connection error occured: org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener@7aec07[state=NORMAL mc=org.jboss.resource.adapter.jdbc.xa.XAManagedConnection@116e9d8 handles=1 lastUse=1288286986564 permit=true trackByTx=false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool@152833d context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@263003 xaResource=org.jboss.resource.connectionmanager.xa.JcaXAResourceWrapper@75479a txSync=null]
*java.sql.SQLException: Io exception: Socket read timed out*
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
Is there a specific property either on the Oracle/network/jboss side to specify the connection time out or rows fetch count.
I tried increasing the sockettimeout on the Jboss side but it did not work out.
Tried increasing querytimeout, txquerytimeout in Oracle-xa-ds.xml but of no luck..Tried increasing the connection poolsize, Heap memory, Permsize but those did not help.
Tried doing a fresh install as well but the same error is occuring..This can be because of 2 different networks as well...
If there is a paramter to specify the Oracle connection timeout in the oracle-xa-ds.xml that would be helpful I think..
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/568889#568889]
Start a new discussion in Datasource Configuration at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 2 months
[Datasource Configuration] - Re: Local Tx Datasource is DOWN
by Mayur B
Mayur B [http://community.jboss.org/people/bingojava] created the discussion
"Re: Local Tx Datasource is DOWN"
To view the discussion, visit: http://community.jboss.org/message/568184#568184
--------------------------------------------------------------
Problem with putting proper XMl , so will give information what it contains :
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<local-tx-datasource>
<jndi-name>jdbc/mysql</jndi-name>
<use-java-context>false</use-java-context>
<connection-url>jdbc:mysql://<my.own.server.ip>:3306/database_name?zeroDateTimeBehavior=convertToNull</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>root</user-name>
<password>password</password>
<valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker</valid-connection-checker-class-name>
<metadata>
<type-mapping>mySQL</type-mapping>
</metadata>
</local-tx-datasource>
</datasources>
datasources
local-tx-datasource
jndi-name>----mysql---/jndi-name.
use-java-context : false use-java-contex .
connection-url : jdbc:mysql://my.own.server.i>:3306/database_name?zeroDateTimeBehavior=convertToNull.
driver-class: com.mysql.jdbc.Driver.
user-name root user-name
passworpassword password
valid-connection-checker-class-name org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker valid-connection-checker-class-name
metadata
type-mapping mySQL type-mapping>
metadata
local-tx-datasource
datasources
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/568184#568184]
Start a new discussion in Datasource Configuration at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 2 months