Frm-41213 SO: Linux 64bits,Oracle Forms 10g Integration With Reports

Oracle Forms [32 bits] Versión 10.1.2.0.2 with Reports Fails. The Report Server Is Up, the file test.rdf its executed ok. but when a button have the next code. all its wrong.... helpme...
PROCEDURE REPORT IS
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(50);
BEGIN
repid := find_report_object('mireport');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'pdf');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_serverias_home_middle');
v_rep := RUN_REPORT_OBJECT(repid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(v_rep);
END LOOP;
IF rep_status = 'FINISHED' THEN
WEB.SHOW_DOCUMENT('http://miserver.dominio.com:7778/reports/rwservlet/getjobid'||
substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=rep_serverias_home_middle');
ELSE
message('Error when running report');
END IF;
END;
REPORTS_CLASSPATH and REPORTS_PATH seting Ok.
the next ist the default.env.
ORACLE_HOME=/oracle/products/middle
FORMS_PATH=/oracle/misaplications/modu01/lib:/oracle/misaplicationes/modu02/menus:/oracle/misaplicationes/modu01/images:/oracle/misaplicationes/modu01/icons:/oracle/misaplicationes/modu01/submod01/source:/oracle/misaplicationes/modu01/submod02/source:/oracle/misaplitaciones/modu01/submod03/source:/oracle/misaplitaciones/modu01/submod04/source:/oracle/misaplicationes/modu01/submod05/source:/oracle/misaplicaciones/modu01/submod07/source:/oracle/products10g/middle/forms
WEBUTIL_CONFIG=/oracle/products10g/middle/forms/server/webutil.cfg
LD_ASSUME_KERNEL=2.4.21-4.EL
CLASSPATH=/oracle/products10g/middle/forms/java/imagenes.jar:/oracle/products10g/middle/forms/webutil/frmwebutil.jar:/oracle/products10g/middle/forms/webutil/jacob.jar:/oracle/products10g/middle/j2ee/OC4J_BI_Forms/applications/formsapp/formsweb/WEB-INF/lib/frmsrv.jar:/oracle/products10g/middle/jlib/repository.jar:/oracle/products10g/middle/jlib/ldapjclnt10.jar:/oracle/products10g/middle/jlib/debugger.jar:/oracle/products10g/middle/jlib/ewt3.jar:/oracle/products10g/middle/jlib/share.jar:/oracle/products10g/middle/jlib/utj.jar:/oracle/products10g/middle/jlib/zrclient.jar:/oracle/products10g/middle/reports/jlib/rwrun.jar:/oracle/products10g/middle/forms/java/frmwebutil.jar:/oracle/products10g/middle/forms/java/frmall.jar
REPORTS_CLASSPATH=/oracle/products10g/middle/jlib/zrclient.jar:/oracle/products10g/middle/reports/jlib/rwrun.jar
#FORMS_TRACE_PATH=<FORMS_ORACLE_HOME>/forms/server
the next ist the reports.sh.
ORACLE_HOME=/oracle/products10g/middle; export ORACLE_HOME
PATH=$ORACLE_HOME/jdk/bin:$ORACLE_HOME/bin:${PATH}; export PATH
TNS_ADMIN=$ORACLE_HOME/network/admin; export TNS_ADMIN
## TWO_TASK=< two task name >; export TWO_TASK
## ORACLE_SID=< ORACLE SID >; export ORACLE_SID
## setting for Reports Runtime
RW=$ORACLE_HOME/reports; export RW
REPORTS_PATH=$ORACLE_HOME/reports/templates:$ORACLE_HOME/reports/samples/demo:/oracle/aplicaciones/sioper/geo/reports:$ORACLE_HOME/reports/integ:$ORACLE_HOME/reports/printers:${REPORTS_PATH}; export REPORTS_PATH
REPORTS_TMP=/tmp; export REPORTS_TMP
REPORTS_NO_DUMMY_PRINTER=TRUE; export REPORTS_NO_DUMMY_PRINTER
REPORTS_TAGLIB_URI=/WEB-INF/lib/reports_tld.jar; export REPORTS_TAGLIB_URI
REPORTS_CLASSPATH=$ORACLE_HOME/reports/jlib/rwbuilder.jar:$ORACLE_HOME/reports/jlib/rwrun.jar:$ORACLE_HOME/jlib/zrclient.jar:$ORACLE_HOME/j2ee/home/oc4j.jar:$ORACLE_HOME/j2ee/home/lib/ojsp.jar; export REPORTS_CLASSPATH
NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1; export NLS_LANG
## Icon variable for Solaris platform
TK_ICON=$ORACLE_HOME/reports/plugins/resource; export TK_ICON
#REPORTS_DEFAULT_DISPLAY=NO; export REPORTS_DEFAULT_DISPLAY
Advertisement
Reply

I thought I did, using batch=yes option. However, when running:
$ rwserver.sh server=repsrv
the pop-up window shows "Report Server is starting up". It does not change to "Report Server is ready".
Thanks