[JBoss AS 7 Development] - AS7ManagementVersionsKnownIssues
by Emanuel Muckenhuber
Emanuel Muckenhuber [https://community.jboss.org/people/emuckenhuber] modified the document:
"AS7ManagementVersionsKnownIssues"
To view the document, visit: https://community.jboss.org/docs/DOC-19586
--------------------------------------------------------------
See https://community.jboss.org/docs/DOC-19172 AS7ManagementVersions for the list of management model versions per AS 7 version. This document lists known issues/false positives in the output of CompareModelVersionsUtil for different AS 7 versions, mainly things which don't need to be (or cannot?) be transformed
*7.1.x versions*
*Known issues from CompareModelVersionsUtil between 7.1.3 and 7.1.2.Final:*
====== Resource root address: ["subsystem" => "security"] - Current version: 1.1.0; legacy version: 1.1.0 =======
--- Problems for relative address to root ["security-domain" => "*"]:
Missing parameters for operation 'flush-cache' in current: []; missing in legacy [principal]
Different 'reply-properties' for operation 'list-cached-principals'. Current: {
"description" => "list-cached-principals.return",
"type" => LIST,
"value-type" => STRING
}; legacy: undefined
The code for the operation handlers is identical. The difference is improvement of the DescriptionProviders, so no transformation is needed.
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/docs/DOC-19586]
Create a new document in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&c...]
12 years, 4 months
[JBoss AS 7 Development] - AS 7 Management Version Known Issues
by Kabir Khan
Kabir Khan [https://community.jboss.org/people/kabirkhan] modified the document:
"AS 7 Management Version Known Issues"
To view the document, visit: https://community.jboss.org/docs/DOC-19172
--------------------------------------------------------------
See https://community.jboss.org/wiki/AS7ManagementVersions AS7ManagementVersions for the list of management model versions per AS 7 version. This document lists known issues/false positives in the output of CompareModelVersionsUtil for different AS 7 versions, mainly things which don't need to be (or cannot?) be transformed
*7.1.x versions*
*Known issues from CompareModelVersionsUtil between 7.1.3 and 7.1.2.Final:*
====== Resource root address: ["subsystem" => "security"] - Current version: 1.1.0; legacy version: 1.1.0 =======
--- Problems for relative address to root ["security-domain" => "*"]:
Missing parameters for operation 'flush-cache' in current: []; missing in legacy [principal]
Different 'reply-properties' for operation 'list-cached-principals'. Current: {
"description" => "list-cached-principals.return",
"type" => LIST,
"value-type" => STRING
}; legacy: undefined
The code for the operation handlers is identical. The difference is improvement of the DescriptionProviders, so no transformation is needed.
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/docs/DOC-19172]
Create a new document in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&c...]
12 years, 4 months
[JBoss AS 7 Development] - JBoss AS 7.1.0 not working with OCI driver
by sridharts
sridharts [https://community.jboss.org/people/sridharts] created the discussion
"JBoss AS 7.1.0 not working with OCI driver"
To view the discussion, visit: https://community.jboss.org/message/752703#752703
--------------------------------------------------------------
Hi,
I have Jboss AS 4.05 currently and am migrating to JBoss AS 7.1.0. I installed Jboss7.1.0 and did the setup and everything works fine except the jdbc driver.
I have downloaded the instantclient from oracle website for oralce 11g (1.2.0.1.0) in C:\ple\instantclient folder which has the ojdbc6.jar and ocijdbc11.dll and other dlls . My oracle database is in a different machine and its the same version(11.2.0.1.0.)
I created a simple java program which does these things and it works fine and returns the results without any error.
String driverClass = "oracle.jdbc.driver.OracleDriver";
String connectString = "jdbc:oracle:oci:@sridb:1521:intpl";
String userName = "myuser";
String password = "mypass";
String sql = "select count(id) from mytesttable";
Class.forName(driverClass);
cont = DriverManager.getConnection(connectString, userName, password);
Statement stmt = cont.createStatement(sql);
stmt.executeQuery();
But when i do the exact same thing from a jsp inside the Jboss 7.1.0 server it doesnt work and gives a sql exception in DriverManager.getConnection() with no trace or detail message.
All the detailed message the SQLException had was some 4 wierd square shaped characters and those characters keeps changing too everytime i run it.
This same thing works fine with my Jboss 4.05 server with the oci driver. The other thing i noticed was if i changed the driver to thin in my connectString (jdbc:oracle:thin:@sridb:1521:intpl) it works fine.
*Has anyone encountered this similar issue. Any help in this is appreciated.*
In my jboss standalone.bat i set the classpath and path as
set CLASSPATH=%CLASSPATH%;C:\ple\instantclient\ojdbc6.jar
set PATH=C:\ple\instantclient;%PATH%
In modules folder i created com/myoracle/main folders and copied into it the C:\ple\instantclient\ojdbc6.jar
also created a dlls folder under main and copied all the dlls from C:\ple\instantclient
This is how my module.xml looks like
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0" name="com.myoracle">
<resources>
<resource-root path="dlls"/>
<resource-root path="ojdbc6.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
<module name="javax.transaction.api"/>
</dependencies>
</module>
In my test.war/WEB-INF this is my jboss-deployment-structure.xml
<jboss-deployment-structure>
<deployment>
<!-- Exclusions allow you to prevent the server from automatically adding some dependencies -->
<exclusions>
</exclusions>
<dependencies>
<module name="com.myoracle" />
</dependencies>
</deployment>
</jboss-deployment-structure>
I also tried it with giving a datasource in standalone.xml l and accessing it in my jsp with the datasource name. But get the same issue. It works only if i use thin but not oci.
<subsystem xmlns="urn:jboss:domain:datasources:1.0">
<datasources>
<datasource jta="true" jndi-name="java:/OracleDS" pool-name="OracleDS" enabled="true" use-java-context="true">
<connection-url>jdbc:oracle:oci:@sdqa11:1521:intpl</connection-url>
<driver>plejdbc</driver>
<security>
<user-name>nielsen_claritas</user-name>
<password>f00sball</password>
</security>
</datasource>
<drivers>
<driver name="plejdbc" module="com.nielsen.oraclejdbc">
<xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
</driver>
</drivers>
</datasources>
</subsystem>
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/752703#752703]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 4 months
[jBPM Development] - How to integrate a Web Application with JBPM?
by srikanthan ramanathan
srikanthan ramanathan [https://community.jboss.org/people/srikanthanr] created the discussion
"How to integrate a Web Application with JBPM?"
To view the discussion, visit: https://community.jboss.org/message/743072#743072
--------------------------------------------------------------
Hi,
Hope you all are doing fine. i need a quick favour from you guys. We are planning to use JBPM as an BPM engine. But, unfortunately I don’t have any knowledge on JBMP. So, I would like to clarify with you guys. The queries are given below:
*The proposed architecture*
1. 1. The architecture is à Our JBoss based Web App will call JBPM thru java call.
2. 2. And we will not use JBPM user interface (GUI) but we use our Bboss application’s UI.
3. 3. From the JBoss UI’s button click (Submit/Approve etc), JBoss app calls JBPM to 1. a. create workflow process instance.
2. b. Move process instance from one stage to another stage.
4. 4. Meaning, we have Maker/Checker (Authorization) functionality exists. When Maker user submits the transaction in Jboss UI, the JBPM process (workflow) will be called and instance will be created for the Checker user(s) for the transaction approval. The Checker can either “Approve” the transaction (OR) he can “Reject” it back to the Maker user.
5. 5. So, it is kind of Jboss driven JBPM Maker/Check Approval process. We are using the JBPM just for STATE MANAGEMENT.
*Queries*
1. 1. How do I call BPM process (best way of doing it) from my Web application? 1. a. How to do thru plain java call?
2. b. How to do thru web-service call?
2. 2. When maker submits the transaction, he will get an option (popup window) to select the eligible Checker user’s names in the Web Application. When Maker chooses the Checker names and submit the transaction, the BPM should create a process instance only for the chosen Checker users.
3. 3. Do we have dynamic role support in JBMP? The role’s corresponding user/group details should be picked up from database. The Role details will be kept in Web Application database; the JBPM will have to connect to Web application database to get the role details.
4. 4. Can I fetch all the process instances/To-Do list (for example, waiting for approval) that belong to one user/group (OR) set of users by making java call to BPM engine from MY Web application?
5. 5. Also, we have a scenario, in which there are multiple user groups to be part of approval process. Like, “minimum 2 people from Group G1” and “minimum 3 people from Group G2” should approve the process instance.
Could you please clarify it? That would be nice.
Have a wonderful day
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/743072#743072]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 4 months
[JBoss AS 7 Development] - MySQL module, datasource and persistence.xml (for Hibernate) configuration bash script
by Ondrej Zizka
Ondrej Zizka [https://community.jboss.org/people/ozizka] modified the document:
"MySQL module, datasource and persistence.xml (for Hibernate) configuration bash script"
To view the document, visit: https://community.jboss.org/docs/DOC-19001
--------------------------------------------------------------
*Note:* Consider using *http://docs.jboss.org/jbossas/7/plugins/maven/latest/plugin-info.html JBoss AS 7 Deployment plugin for Maven* - see executions deploy-driver, add-datasource, add-xa-datasource in http://docs.jboss.org/jbossas/7/plugins/maven/latest/examples/complex-exa... this example.
This is a bash script which will:
Ask you for AS 7 directory,
download MySQL JDBC driver,
create a module for it,
create myapp-ds.xml file using this module as a driver,
create persistence.xml file using that datasource.
What you need is to put the two files into your application's jar's META-INF/ and change the datasource's connection-url, user-name and password.
And then to add a driver to standalone.xml:
<driver name="mysql" module="com.mysql.jdbc">
<xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
</driver>
The script to save and then run:
if [ "$1" == "" ] ; then
echo " Usage: $0 <AS7 dir>"
exit 1
fi
AS_DIR=$1
mkdir -p $AS_DIR/modules/com/mysql/jdbc/main
cd $AS_DIR/modules/com/mysql/jdbc/main
wget http://cdn.mysql.com/Downloads/Connector-J/mysql-connector-java-5.1.21.zip
unzip mysql-connector-java-5.1.21.zip
rm mysql-connector-java-5.1.21.zip
cp mysql-connector-java-5.1.21/mysql-connector-java-5.1.21-bin.jar .
rm -rf mysql-connector-java-5.1.21/
cat <<EOF > module.xml
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0" name="com.mysql.jdbc">
<resources>
<resource-root path="mysql-connector-java-5.1.21-bin.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
</dependencies>
</module>
EOF
cd -
cat <<EOF > myapp-ds.xml
<?xml version="1.0" encoding="UTF-8"?>
<datasources xmlns="http://www.jboss.org/ironjacamar/schema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.org/ironjacamar/schema http://docs.jboss.org/ironjacamar/schema/datasources_1_1.xsd">
<!-- JNDI at this location. We reference this in META-INF/persistence.xml -->
<datasource jndi-name="java:jboss/datasources/MyAppDS"
pool-name="myapp-ds-pool" enabled="true" use-java-context="true">
<connection-url>jdbc:mysql://localhost:3306/myapp?characterEncoding=UTF-8&characterSetResults=UTF-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull</connection-url>
<driver>mysql</driver>
<security>
<user-name>myapp</user-name>
<password>myapp</password>
</security>
</datasource>
<!-- JBAS010411: <drivers/> in standalone -ds.xml deployments aren't supported.
==> Needs to go to standalone.xml.
<drivers>
<driver name="mysql" module="com.mysql.jdbc">
<xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
</driver>
</drivers>
-->
</datasources>
EOF
cat <<EOF > persistence.xml
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<persistence-unit name="MyAppPU" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:jboss/datasources/MyAppDS</jta-data-source> <!-- See <datasource jndi-name="..."> . -->
<shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5Dialect"/>
<property name="hibernate.cache.provider_class" value="org.hibernate.cache.NoCacheProvider"/>
<property name="hibernate.show_sql" value="false"></property>
<property name="hibernate.cache.use_second_level_cache" value="true"/>
<property name="hibernate.cache.use_query_cache" value="true" />
<property name="hibernate.cache.use_minimal_puts" value="true"/>
</properties>
</persistence-unit>
</persistence>
EOF
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/docs/DOC-19001]
Create a new document in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&c...]
12 years, 4 months