[JBoss jBPM] - Re: JBoss + JBPM + Mysql - Deployment is not going through
by vperez
ok, i ll be more specific..
i am using this version -> jbpm-jpdl-suite-3.2.1.zip
first i used this -> http://docs.jboss.com/jbpm/v3/userguide/thejbpmdatabase.html
but some of these files don´t exist in this version (3.2.1).
so i was searching in the wiki and de forum, and i found this articuls:
---> http://wiki.jboss.org/wiki/Wiki.jsp?page=SetUpAMysqlDatasource
---> http://wiki.jboss.org/wiki/Wiki.jsp?page=SetUpMysqlAsDefaultDS
---> http://www.jboss.com/index.html?module=bb&op=viewtopic&t=116029
i tried doing this :
1. Install the MySQL JDBC driver (mysql-connector-java-3.1.14-bin.jar) in the $JBOSS_HOME/server/default/lib directory.
2. Delete $JBOSS_HOME/server/default/deploy/hsqldb-ds.xml.
3. Copy $JBOSS_HOME/docs/examples/jca/mysql-ds.xml to $JBOSS_HOME/server/default/deploy. Modify the <local-tx-datasource> element with your MySQL connection settings:
<connection-url>jdbc:mysql://your-hostname:your-port/your-database-name</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>your-user</user-name>
your-pass
4. In $JBOSS_HOME/server/default/conf/standardjaws.xml change the <type-mapping> element:
<type-mapping>mySQL</type-mapping>
5. In standardjbosscmp-jdbc.xml change the following, not necessarily contiguous, elements:
java:/DefaultDS
<datasource-mapping>mySQL</datasource-mapping>
<fk-constraint>true</fk-constraint>
6. Add the following within the element of login-config.xml:
<application-policy name = "MySqlDbRealm?">
<login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule?" flag = "required">
<module-option name = "principal">your-user</module-option>
<module-option name = "userName">your-user</module-option>
<module-option name ="password">your-pass</module-option>
<module-option name = "managedConnectionFactoryName">jboss.jca:service=LocalTxCM?,name=DefaultDS</module-option>
</login-module>
</application-policy>
7. Replace file $JBOSS_HOME/server/default/deploy/jms/hsql-jdbc2-service.xml by file $JBOSS_HOME/docs/examples/jms/mysql-jdbc2-service.xml
8. Change MySqlDS? to DefaultDS in $JBOSS_HOME/server/default/deploy/jms/mysql-jdbc2-service.xml:
<depends optional-attribute-name="ConnectionManager">jboss.jca:service=DataSourceBinding,name=DefaultDS
...
9. Rename hsqldb-jdbc-state-service.xml to mysql-jdbc-state-service.xml.
i was following these steps below. But its still no working, i cannot login in the console (localhost:8080/jbpm-console) and i was trying to deploy a process without success
which definition database i should use???
I would apreciate if you could help me with these issue
regards, Victoria
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079252#4079252
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079252
18Â years, 7Â months
[Beginners Corner] - Distributed persistent application configuration in a cluste
by ozlevanon
Hi.
I need to create a persistent configuration mechanism for a J2EE application I?m writing (i.e. dedicated configuration for my application, not the general jboss application). I couldn?t find a standard explanation for this anywhere.
Currently what I do is create an MBean and handle its persistence using the file system. I can configure the application using JMX-console and since it?s persistent the data is kept between restarts.
My problem, however, is that I want the data to be distributed throughout my cluster. I want to be able to update one node in the cluster and have the data replicated automatically to all the others.
Is there any data repository which is automatically replicated across the cluster (I tried Java?s preferences but that didn?t work)?
Alternatively, is there a standard way to create distributed application configuration in J2EE or Jboss?
Thanks,
Oz
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079248#4079248
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079248
18Â years, 7Â months
[JBoss Seam] - No Seam component Actor injected
by tim_ph
When I inject Actor into authenticator() generated by seam-gen, there is no "actor" injected into the variable and it fails at login.
| @Scope(ScopeType.APPLICATION) // doesn't matter the scope
| @Name("authenticator")
| public class Authenticator
| {
| @Logger private Log log;
| @In private Identity identity;
| @In private Actor actor; // use actor for business process
|
| @Out(value = "currentUser", required=false, scope = ScopeType.SESSION)
| private Account currentUser;
|
| @In("#{accountList.resultList}")
| private List<Account> accounts;
|
| @Transactional
| public boolean authenticate()
| {
| String user = identity.getUsername();
| log.info("Authenticating #0", user);
| actor.setId(user);
| ...
|
Error says "In attribute requires non-null value: authenticator.actor"
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079243#4079243
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079243
18Â years, 7Â months