[Persistence, JBoss/CMP, Hibernate, Database] - Problem in deploying ejb
by ashusri000
I am unable to deploy a POJO which I want to persist on Oracle database , but I am getting an error as this while deploying it :
--------------------------------------------------------------------------------------
12:35:05,187 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- MBeans waiting for other MBeans ---
ObjectName: persistence.units:ear=sample123.ear,jar=persist.jar,unitName=testApp
State: NOTYETINSTALLED
I Depend On:
jboss.jca:service=ManagedConnectionFactory,name=system
ObjectName: jboss.jca:service=XATxCM,name=system
State: CONFIGURED
I Depend On:
jboss.jca:service=ManagedConnectionPool,name=system
jboss.jca:service=CachedConnectionManager
jboss:service=TransactionManager
Depends On Me:
jboss.jca:service=DataSourceBinding,name=system
ObjectName: jboss.jca:service=ManagedConnectionPool,name=system
State: CONFIGURED
I Depend On:
jboss.jca:service=ManagedConnectionFactory,name=system
Depends On Me:
jboss.jca:service=XATxCM,name=system
ObjectName: jboss.jca:service=ManagedConnectionFactory,name=system
State: CONFIGURED
I Depend On:
jboss.jca:service=RARDeployment,name='jboss-xa-jdbc.rar'
Depends On Me:
persistence.units:ear=sample123.ear,jar=persist.jar,unitName=testApp
jboss.jca:service=ManagedConnectionPool,name=system
ObjectName: jboss.jca:service=DataSourceBinding,name=system
State: CONFIGURED
I Depend On:
jboss.jca:service=XATxCM,name=system
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.jca:service=RARDeployment,name='jboss-xa-jdbc.rar'
State: NOTYETINSTALLED
Depends On Me:
jboss.jca:service=ManagedConnectionFactory,name=system
--------------------------------------------------------------------------------------
I have already put the oracle-xa-ds.xml file in the C:\jboss-4.0.4.GA\server\default\deploy directory and the contents look like this :
<?xml version="1.0" encoding="UTF-8" ?>
- <!-- =====================================================================
-->
- <!--
-->
- <!-- JBoss Server Configuration
-->
- <!--
-->
- <!-- =====================================================================
-->
- <!-- $Id: oracle-xa-ds.xml,v 1.13 2004/09/15 14:37:40 loubyansky Exp $
-->
- <!-- =====================================================================
-->
- <!-- ATTENTION: DO NOT FORGET TO SET Pad=true IN transaction-service.xml
-->
- <!-- =====================================================================
-->
-
- <xa-datasource>
<jndi-name>system</jndi-name>
<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:@127.0.0.1:1521:XE</xa-datasource-property>
<xa-datasource-property name="User">system</xa-datasource-property>
<xa-datasource-property name="Password">ashu</xa-datasource-property>
- <!-- Uses the pingDatabase method to check a connection is still valid before handing it out from the pool
-->
- <!-- valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name
-->
- <!-- Checks the Oracle error codes and messages for fatal errors
-->
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
- <!-- Oracles XA datasource cannot reuse a connection outside a transaction once enlisted in a global transaction and vice-versa
-->
<no-tx-separate-pools />
- <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional)
-->
-
<type-mapping>Oracle9i</type-mapping>
</xa-datasource>
- <!-- This mbean can be used when using in process persistent db
<depends optional-attribute-name="TransactionManagerService">jboss:service=TransactionManager
-->
--------------------------------------------------------------------------------------
The POJO class that I have packed with an persistence unit has got a persistence.xml file that looks like this :--
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
<persistence-unit name="testApp" transaction-type="JTA">
oracle.toplink.essentials.PersistenceProvider
<jta-data-source>java:/system</jta-data-source>
<!-- Database Properties -->
</persistence-unit>
--------------------------------------------------------------------------------------
Please let me know where I am making the mistake .
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057569#4057569
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057569
18Â years, 10Â months
[JBossWS] - Re: MTOM + WS Security = problem
by richard_opalka
"davideling" wrote : Ok,
| but have the MTOM attachment to be inlined or not
| when WS-Security signature or encryption is activated?
|
| Thanks
|
MTOM attachments do not need to be inlined.
For example Microsoft Indigo and some other Java stacks (I don't know if JBossWS too)
provide some kind of "MTOM SAAJ Text Element",
which contains just MIME attachment id as its content (when you're
sniffing the wire communcation). However from SOAP stack point of view when
some other SAAJ handler that is in the handler chain tries to read
the content of this special text element, it will obtain attachment binary data
encoded in base64 canonical format instead of the attachment id.
However on the wire it goes as the MIME attachment.
This has also some performance consequences. For example if application
sends MTOM in the form of MIME attachment and there's some handler in
the handler chain that needs to work with this MTOM attachment content
(e.g. WSSecurity SAAJ handler), this attachment must be encoded to base64 canonical
format and that value is returned to the requestor. When
processing really big attachments this fact causes real performance issues.
Rio
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057567#4057567
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057567
18Â years, 10Â months
[JBoss jBPM] - Re: How to activate log in jbpm (3.2.GA)
by sparklehorse
"sparklehorse" wrote : I can't find out how to see what jbpm is doing
| When i use jbpm-enterprise.ear and test my process i see log detailed
| on stdout, but when i embed the engine in my ear jbpm
| does not log nothing.
|
| I have unpacked jbpm-enterprise.ear to find some
| log4j.xml or whatever without luck
|
| any hints?
|
|
$JBOSS_HOME/conf/log4j.xml
| <appender name="jbpm" class="org.jboss.logging.appender.RollingFileAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="File" value="${jboss.server.home.dir}/log/jbpm.log"/>
| <param name="Append" value="false"/>
| <param name="MaxFileSize" value="500KB"/>
| <param name="MaxBackupIndex" value="1"/>
| <layout class="org.apache.log4j.PatternLayout">
| </layout>
| </appender>
|
| <category name="org.jbpm">
| <priority value="DEBUG" />
| <appender-ref ref="jbpm" />
| </category>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057566#4057566
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057566
18Â years, 10Â months