[Datasource Configuration] - issue in oracle data source configuration
by Varun Jain
Varun Jain [https://community.jboss.org/people/varmax] created the discussion
"issue in oracle data source configuration"
To view the discussion, visit: https://community.jboss.org/message/740863#740863
--------------------------------------------------------------
Hi
I have a simple Jsf+Jpa app in Eclipse indigo. I am using Oracle 10d database and want to run the app on JBoss-5.0.0 GA. I have added oracle-ds.xml , xa-oracle-ds.xml file in C:\servers\jboss-5.0.0.GA\server\default\deploy and added application-policy in login-config.xml file, but I am still getting the below exception
Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
17:34:52,883 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=OracleDS' to JNDI name 'java:OracleDS'
17:34:53,008 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=XAOracleDS' to JNDI name 'java:XAOracleDS'
17:34:53,054 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.unit:unitName=#JsfJpa
17:34:53,210 ERROR [AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=#JsfJpa state=Create
java.lang.NullPointerException
at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.createInputStreamForUnconvertableURL(PersistenceUnitProcessor.java:284)
at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.createInputStreamForFileInPersistenceUnit(PersistenceUnitProcessor.java:239)
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.getORMXMLFileNames(EntityManagerSetupImpl.java:613)
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.buildPersistentClassSetFromXMLDocuments(EntityManagerSetupImpl.java:116)
*Please find my persistence.xml*
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns=" http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
<persistence-unit name="JsfJpa" transaction-type="RESOURCE_LOCAL">
<provider>oracle.toplink.essentials.PersistenceProvider</provider>
<!-- <provider>oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider</provider> -->
<non-jta-data-source>java:/OracleDS</non-jta-data-source>
<class>entity.Customer</class>
<properties>
<property name="toplink.jdbc.url" value="jdbc:oracle:thin:@localhost:1521:orcl"/>
<property name="toplink.jdbc.user" value="System"/>
<property name="toplink.jdbc.driver" value="oracle.jdbc.driver.OracleDriver"/>
<property name="toplink.jdbc.password" value="danbrown"/>
<property name="toplink.ddl-generation" value="create-tables"/>
<property name="toplink.jdbc.read-connections.max" value="1"/>
<property name="toplink.jdbc.read-connections.min" value="1"/>
<property name="toplink.jdbc.write-connections.max" value="1"/>
<property name="toplink.jdbc.write-connections.min" value="1"/>
<property name="toplink.logging.level" value="SEVERE" />
</properties>
</persistence-unit>
</persistence>
*My oracle-ds.xml*
<datasources>
<no-tx-datasource>
<jndi-name>OracleDS</jndi-name>
<use-java-context>true</use-java-context>
<connection-url>jdbc:oracle:thin:@localhost:1521:orcl</connection-url>
<driver-class>oracle.jdbc.OracleDriver</driver-class>
<user-name>System</user-name>
<password>danbrown</password>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
<metadata>
<type-mapping>Oracle9i</type-mapping>
</metadata>
</no-tx-datasource>
</datasources>
*My xa-oracle-ds.xml*
<datasources>
<xa-datasource>
<jndi-name>XAOracleDS</jndi-name>
<use-java-context>true</use-java-context>
<track-connection-by-tx>true</track-connection-by-tx>
<isSameRM-override-value>false</isSameRM-override-value>
<xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
<xa-datasource-property name="URL">jdbc:oracle:thin:@localhost:1521:orcl</xa-datasource-property>
<xa-datasource-property name="User">System</xa-datasource-property>
<xa-datasource-property name="Password">danbrown</xa-datasource-property>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
<no-tx-separate-pools/>
<metadata>
<type-mapping>Oracle9i</type-mapping>
</metadata>
</xa-datasource>
</datasources>
*addition in login-config.xml*
<application-policy name = "OracleDbRealm">
<authentication>
<login-module code =
"org.jboss.resource.security.ConfiguredIdentityLoginModule" flag = "required">
<module-option name = "principal">sa</module-option>
<module-option name = "userName">sa</module-option>
<module-option name = "password"></module-option>
<module-option name = "managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=OracleDS</module-option>
</login-module>
</authentication>
</application-policy>
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/740863#740863]
Start a new discussion in Datasource Configuration at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years
[jBPM] - jbpm ran fine for 1 day, now is broken.. :)
by Carlos Crosetti
Carlos Crosetti [https://community.jboss.org/people/carlos.crosetti] created the discussion
"jbpm ran fine for 1 day, now is broken.. :)"
To view the discussion, visit: https://community.jboss.org/message/739828#739828
--------------------------------------------------------------
Once I got the jBPM 5.3 up and running, by the means of calling standalone.bat after "ant start.demo.noeclipse", I reviewed the deployments folder and cleared the dot failed files, cleaned the logq and started back again but now typing "ant start.demo". (see this time I wanted to start Eclipse).
Now, the interesting finding was that after Eclipse was launched, I see the ant output more clean now with
*start.h2:*
*start.jboss:*
*check.jboss.version:*
*start.jboss5:*
*check.jboss.version:*
*start.jboss7:*
*start.eclipse:*
*start.demo:*
*BUILD SUCCESSFUL*
*Total time: 38 seconds*
and now when I browse the activvity in the "deployments" folder I can see several .ISDEPLOYING files so started to feel more
confident to the start script with Eclipse as it is scheduling all the war deplyments. Cool...
After some like 5 minutes, I checked all deployments failed and the *server.log* shows lots of entries like the ones below
18:26:52,140 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry jaxb-impl.jar in "/C:/jbpm-installer/content/drools-guvnor.war/WEB-INF/lib/jaxb-xjc-2.2.5.jar" does not point to a valid jar for a Class-Path reference.
18:26:52,140 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry jsr173_1.0_api.jar in "/C:/jbpm-installer/content/drools-guvnor.war/WEB-INF/lib/jaxb-xjc-2.2.5.jar" does not point to a valid jar for a Class-Path reference.
18:26:52,140 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry activation.jar in "/C:/jbpm-installer/content/drools-guvnor.war/WEB-INF/lib/jaxb-xjc-2.2.5.jar" does not point to a valid jar for a Class-Path reference.
the only thing I changed was the way I exceuted ant from "noeclipse" and without Eclipse.
What is missing now?
If you are interested, you can find a screenshot of my first attempt where all apps were enabled at the console level.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/739828#739828]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years
[Beginner's Corner] - Configure JBoss AS7 listening and how to stop JBoss?
by Jim Lum
Jim Lum [https://community.jboss.org/people/jimcpl] created the discussion
"Configure JBoss AS7 listening and how to stop JBoss?"
To view the discussion, visit: https://community.jboss.org/message/740836#740836
--------------------------------------------------------------
Hi,
I've configured JBoss AS7 to listen as follows:
<interfaces>
<interface name="management">
<inet-address value="${jboss.bind.address.management:0.0.0.0}"/>
</interface>
<interface name="public">
<inet-address value="${jboss.bind.address:0.0.0.0}"/>
</interface>
<!-- TODO - only show this if the jacorb subsystem is added -->
<interface name="unsecure">
<!--
~ Used for IIOP sockets in the standard configuration.
~ To secure JacORB you need to setup SSL
-->
<inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>
</interface>
</interfaces>
and I can connect to it using either localhost or IP address.
However, I can't figure out how to shutdown JBoss, e.g.:
[root@jboss bin]# ./jboss-cli.sh --connect command=:shutdown --controller=192.168.0.213:9999
org.jboss.as.cli.CliInitializationException: Failed to connect to the controller
at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:229)
at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:195)
at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:35)
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:597)
at org.jboss.modules.Module.run(Module.java:260)
at org.jboss.modules.Main.main(Main.java:291)
Caused by: org.jboss.as.cli.CommandLineException: The controller is not available at 192.168.0.213:9999
at org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:639)
at org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:613)
at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:227)
... 8 more
I also tried "localhost:9999" and got the same problem.
When I do netstat, I can see listening on 0.0.0.0:9999.
How can I shutdown JBoss?
Thanks,
Jim
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/740836#740836]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years
[jBPM] - Configure KnowledgeAgent in Drools-Spring
by TC ONG
TC ONG [https://community.jboss.org/people/devilkazuya99] created the discussion
"Configure KnowledgeAgent in Drools-Spring"
To view the discussion, visit: https://community.jboss.org/message/738927#738927
--------------------------------------------------------------
I have my spring setting and code:
<drools:kbase id="kbase" >
<drools:resources>
<!-- <drools:resource id="oldDroolsPackage" type="PKG" source="file:/var/geneoz/RulesEngine.object"></drools:resource> -->
<drools:resource id="newTailingProcedure" type="BPMN2" source="file:/var/geneoz/HumanTaskFlow.bpmn" />
<drools:resource id="tes" type="DRF" source="file:/Users/tcong/Documents/eclipse_workspace_4.1/drools_tools/rules/Ozgene/v2/TailingProcedure.rf" />
</drools:resources>
</drools:kbase>
<drools:kagent kbase="kbase" id="knowledgeAgent" new-instance="true" >
</drools:kagent>
<drools:resource-change-scanner id="resourceChangeScanner" interval="10" />
@Autowired
private ResourceChangeScanner resourceChangeScanner;
...
resourceChangeScanner.start();
resourceChangeScanner.setSystemEventListener( ... )
works fine. But when I modify one of my file, the resource scanner nitofies it but then do nothing. Look at the log below.
DEBUG 2012-05-31 13:28:50,019 (RulesEngineManager.java:119) - ResourceChangeScanner attempt to scan 2 resources
DEBUG 2012-05-31 13:29:00,019 (RulesEngineManager.java:119) - ResourceChangeScanner attempt to scan 2 resources
DEBUG 2012-05-31 13:29:10,019 (RulesEngineManager.java:119) - ResourceChangeScanner attempt to scan 2 resources
DEBUG 2012-05-31 13:29:10,020 (RulesEngineManager.java:119) - ResourceChangeScanner *modified resource*=[UrlResource path='file:/var/geneoz/HumanTaskFlow.bpmn'] : 1338441674000 : 1338442130000
DEBUG 2012-05-31 13:29:20,020 (RulesEngineManager.java:119) - ResourceChangeScanner attempt to scan 2 resources
DEBUG 2012-05-31 13:29:20,021 (RulesEngineManager.java:119) - ResourceChangeScanner *modified resource*=[UrlResource path='file:/var/geneoz/HumanTaskFlow.bpmn'] : 1338441674000 : 1338442130000
DEBUG 2012-05-31 13:29:30,022 (RulesEngineManager.java:119) - ResourceChangeScanner attempt to scan 2 resources
DEBUG 2012-05-31 13:29:30,022 (RulesEngineManager.java:119) - ResourceChangeScanner *modified resource*=[UrlResource path='file:/var/geneoz/HumanTaskFlow.bpmn'] : 1338441674000 : 1338442130000
DEBUG 2012-05-31 13:29:40,022 (RulesEngineManager.java:119) - ResourceChangeScanner attempt to scan 2 resources
DEBUG 2012-05-31 13:29:40,023 (RulesEngineManager.java:119) - ResourceChangeScanner *modified resource*=[UrlResource path='file:/var/geneoz/HumanTaskFlow.bpmn'] : 1338441674000 : 1338442130000
DEBUG 2012-05-31 13:29:50,023 (RulesEngineManager.java:119) - ResourceChangeScanner attempt to scan 2 resources
DEBUG 2012-05-31 13:29:50,023 (RulesEngineManager.java:119) - ResourceChangeScanner *modified resource*=[UrlResource path='file:/var/geneoz/HumanTaskFlow.bpmn'] : 1338441674000 : 1338442130000
DEBUG 2012-05-31 13:30:00,023 (RulesEngineManager.java:119) - ResourceChangeScanner attempt to scan 2 resources
DEBUG 2012-05-31 13:30:00,024 (RulesEngineManager.java:119) - ResourceChangeScanner *modified resource*=[UrlResource path='file:/var/geneoz/HumanTaskFlow.bpmn'] : 1338441674000 : 1338442130000
It keeps on saying resource modified but did not do anything else.
I'm sure I'm missing something here...
Any help please...
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/738927#738927]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years