Expand my Community achievements bar.

RPC Fault faultString

Avatar

Level 1
Hi ..



I createad a simple test application with LCDS, and when I
run the application with Tomcat 6 as target webserver from Eclipse,
I am getting the following exception.



I copied JTOM libraries into Tomcat/lib folder and defined
the below line in application context.xml under META-INF folder

<Transaction
factory="org.objectweb.jotm.UserTransactionFactory" timeout="60"
/>



I also defined the default channel on destination-config.xml
with <channel ref="my-rtmp"/>



[RPC Fault faultString="There was an unhandled failure on the
server. javax/transaction/SystemException"
faultCode="Server.Processing" faultDetail="null"]

at mx.data::ConcreteDataService/
http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent()

at DataListRequestResponder/fault()

at mx.rpc::AsyncRequest/fault()

at NetConnectionMessageResponder/statusHandler()

at mx.messaging::MessageResponder/status()



Please let me show some light where I am missing,



Thanks

V
1 Reply

Avatar

Former Community Member
Hi



I'm working withHi



I get the same error and I don't know how fix it.

I'm working with Tomcat 5.5.17 and LCDS using the following
configuration:



- JOTM libraries in myApp\WEB-INF\lib;

- carol.properties file in myApp\WEB-INF\classes with the
following properties:



# JNDI (Protocol Invocation)

carol.protocols=jrmp



# Local RMI Invocation

carol.jvm.rmi.local.call=true



# do not use CAROL JNDI wrapper

carol.start.jndi=false



# do not start a name server

carol.start.ns=false



# Naming Factory

carol.jndi.java.naming.factory.url.pkgs=org.apache.naming



- context.xml file in myApp\META-INF like this:



<Context reloadable="true" crossContext="true">



<Resource name="jdbc/myDB" auth="Container"
type="javax.sql.DataSource"

factory="org.objectweb.jndi.DataSourceFactory"

driverClassName="com.mysql.jdbc.Driver"

username="root" password="openview"
url="jdbc:mysql://localhost:3306/prova"/>



<Transaction name="UserTransaction" auth="Container"

type="javax.transaction.UserTransaction"

factory="org.objectweb.jotm.UserTransactionFactory"

jotm.timeout="60"/>



</Context>



- and the myApp\WEB-INF\flex\data_management_config.xml as
follow:

<?xml version="1.0" encoding="UTF-8"?>

<service id="data-service"

class="flex.data.DataService">



<default-channels>

<channel ref="my-rtmp"/>

</default-channels>



<destination id="dm_anagrafica">

<adapter ref="java-dao"/>

<properties>

<source>openview.sn.AnagraficaAssembler</source>

<scope>application</scope>

<metadata>

<identity property="codid"/>

</metadata>

<network>

<session-timeout>30</session-timeout>

<paging enabled="true" pageSize="50"/>

<throttle-inbound policy="ERROR" max-frequency="500"/>

<throttle-outbound policy="REPLACE"
max-frequency="500"/>

</network>

</properties>

</destination>



<adapters>

<adapter-definition id="actionscript"
class="flex.data.adapters.ASObjectAdapter" default="true"/>

<adapter-definition id="java-dao"
class="flex.data.adapters.JavaAdapter"/>

</adapters>



</service>



Please try to help me.



Thanks