Trying to generate WSRP deployment from JPS complient portlets
In the WebCenter developers guide refer to chapter 18.9.3:
I have a JSR-168 portlet application build on the Servlet 2.3 standard, and now I want to deploy this to the WSRP Portlet container. To do this, first I must generate a WSRP ear file.
In the WebCenter framework there is a jar called wsrp-predeploy.jar.
With this jar I can convert an ear file with a JSR-168 portlet application in it, to a WSRP Portlet container 10.1.32 compatible ear file.
The problem is, I work behind a Windows XP terminal that is protected with the typical firewall / proxysettings inside a big network. It seems wsrp-predeploy.jar is explicitly trying to make a HttpConnectionURL. And this fails.
Also with setting the extra -Dhttp.proxyHost, -Dhttp.proxyPort parameters I have no succes. (Also tried this with the extra -Dhttp.proxySet, -Dhttp.proxyUsername, -Dhttp.proxyPassword)
Is there any workaround for solving above problem?
Hi Steve,
The portlet application (this is: the application containing only the portlets) can be deployed with a normal war deployment profile. JDeveloper itself will take care of generating the wsdls for you, and you do not need to do predeployment.
The application consuming the portlets is a little more complicated. This needs a webcenter deployment profile, and when you want to deploy that on a server, you need to need to run the predeployment tool on the server where you are going to run the app. This time, the predeployment tool will validate the connections to the portlet container and do http calls to that container.
To test the whole setup:
- if you run and test locally, you can use jdev 10.1.3.3 and deploy the portlet ear to the webcenter standalone oc4j container. The consuming app can be run from within JDev using the embedded container.
- if you want to deploy, often the portlet ear and the consuming ear run on the same machine, and predeployment should not be a problem.
Jeroen van Veldhuizen
Similar Messages
-
Xrpcc modeler error when trying to generate stub classes from a WSDL
I'm trying to generate JAX-RPC stub classes (both client and server side) from a WSDL in which one of the message parts references a complexType element defined in the <types> section of the WSDL. Here is my little WSDL document:
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="Book_Def"
targetNamespace="myTypes"
xmlns:tns="myTypes"
xmlns:xsd1="myTypes"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<types>
<xsd:schema targetNameSpace="myTypes"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="Book" type="xsd1:BookType"/>
<xsd:complexType name="BookType">
<xsd:all>
<xsd:element name="authors" type="xsd:string" maxOccurs="10"/>
<xsd:element name="preface" type="xsd:string"/>
<xsd:element name="price" type="xsd:float"/>
</xsd:all>
</xsd:complexType>
</xsd:schema>
</types>
<message name="runMyPgm">
<part name="book" type="xsd1:Book"/>
</message>
<message name="getPgmResponse">
<part name="result" type="xsd:string"/>
</message>
<portType name="MyPgmIFPortType">
<operation name="runMyPgm">
<input message="tns:runMyPgm"/>
<output message="tns:getPgmResponse"/>
</operation>
</portType>
... Binding stuff
</port>
</service>
</definitions>
I've tried many combinations of defining my complex type and input message and whenever I run xrpcc using this WSDL as input, I get a Error: Modeler error: invalid entity name: Book (in namespace "myTypes"). Sorry if this is a dumb question, but what am I doing wrong in my <types> or <message> definitions to cause this error? I've had some luck generating stubs when the part types are all simple types, but I've not had any luck with getting a <complexType> definition accepted by xrpcc. Thanks in advance for any help you can offer.Yes you can specify type mapping in configuration file and probably this will solve the problem, but I've never tested this approach. Perhaps I'm not advanced user. Actually the serializerFactory and deserializerFactory are a little vague for me:(
-
We have done toleration testing on firefox version 5 thru 6 and haven't got an issue with our website generating pdf files for our users. One of our users upgraded to firefox version 7.0.1 and they tried to generate a pdf report, now a screen pops up with Corrupted Content Error The page you are trying to view cannot be shown because an error in the data transmission was detected. I recreated this issue on my pc yesterday by installing firefox 7.0.1. Any hints as to what I need to look at would help. Cannot provide the url because it is a secure website for law enforcement. Thanks.
You can turn off compatibility checking, but more and more of the Google Toolbar will not work. Google is no longer supporting the Google Toolbar so you should use the alternatives.
Hi Mark,
See http://kb.mozillazine.org/Using_Google_Toolbar_features_without_toolbars
If you have an aspect that is not covered, indicate what that is; otherwise, expect you to be fully functional within 1-2 weeks.
<br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small> -
Need some help trying to generate thumbnail images from large Jpegs
Hello,
I have some ActionScript 3.0 code, created with Flex that
will load a large JPEG image (say 3000x2000 pixels) that I'm trying
to create a 100 pixel thumbnail. I have the code working where I
generate the thumbnail, but it's not maintaining the aspect ratio
of the original image. It's making it square, filling in white for
the part that doesn't fit.
I've tried just setting the height or width of the new
image, but that doesnt render well, either.
To see what I'm talking about, I made a screen shot, showing
the before image, and the rendered as thumbnail image:
http://www.flickr.com/photos/taude/533544558/.
Now, there's a few things important to note. I'm saving the
thumbnail off as a JPEG. As you can see in my sample application,
the original renders fine with the proper aspect ratio, it's when
I'm copying the bytes off the bitmapdata object, where I need to
specify a width and height, that the trouble starts. I've also
tried using .contentHeight and .contentWidth and some division to
manually specify a new bitmapdatasize, but these values seem to
always have NaN.
private function makeThumbnail():void{
// create a thumbnail of 100x100 pixels of a large file
// What I want to create is a a thumbnail with the longest
size of the aspect
// ratio to be 100 pixels.
var img:Image = new Image();
//Add this event listener because we cant copy the
BitmapData from an
/// image until it is loaded.
img.addEventListener(FlexEvent.UPDATE_COMPLETE,
imageLoaded);
img.width=100;
img.height=100;
img.scaleContent=true;
img.visible = true;
// This is the image we want to make a thumbnail of.
img.load("file:///C:/T5.jpg");
img.id = "testImage";
this.addChildAt(img, 0);
private function imageLoaded(event:Event):void
// Grab the bitmap image from the Input Image and
var bmd:BitmapData =
getBitmapDataFromUIComponent(UIComponent(event.target));
//Render the new thumbnail in the UI to see what it looks
theImage.source = new Bitmap(bmd); //new Bitmap(bmd);
public static function
getBitmapDataFromUIComponent(component:UIComponent):BitmapData
var bmd:BitmapData = new
BitmapData(component.width,component.height );
bmd.draw(component);
return bmd;Dev is 10gR2 and Prod is earlier version of Oracle, 10gR1.
The schema (or table(s)) export file created by Oracle Database Control in Oracle 10gR2 is not importable into 10gR1, by default.
Workaround.
Use the Schema (table(s) export wizard of in the Maintenance section
of the Oracle Database Control in ver 10R2,
but when you get to the end of the wizard (I recall Step 5),
show the data pump export source PL/SQL code, cut and past to editor,
and find the variable where you can set the Oracle database version
to your prod database version,
then run the script from the SQL Plus prompt in 10gR2 dev,
and this creates an Oracle 10gR1 compatible data export file.
Then go to Prod and run the schema (table(s)) import data wizard,
and import the export file. You will have to option to move the data
to another schema or tablespace if required.
Just to not run into troubles, I use the same schema and tablespace name
in both dev and prod.
the variable you must modify in the 10gR2 datapump export script looks like
h1 := dbms_datapump.open (operation => 'EXPORT', job_mode => 'SCHEMA', job_name => 'ExportTableToProdJob', version => 'COMPATIBLE');
and you must change manually to
h1 := dbms_datapump.open (operation => 'EXPORT', job_mode => 'SCHEMA', job_name => 'ExportTableToProdJob', version => '10.1.0.1');
This creates a 10g1.0.1 or later compatible export data file.
You must have read/write privileges to the folder were the export data file will be created, and imported from. (Oracle Directory Object) -
Trying to generate a signal from two signals (EMG) that I have acquired from my NI USB
I am able to aquire two EMG signals that I am sending into a NI USB-6251 using signal express. However, I would like to generate an additional signal which is based on the two signals I've sent in. For example, I would like to show a signal in real time that takes the two signals and divides one from the other in order to show the percent contribution of each signal.
How would I go about doing this?
Thank youYou should be able to use the Arithmetic Step (Add Step Button under Processing\Analog Signals) to divide the signals and then use that output as the input signal for a DAQmx Generate Step. If you want to just view the divided signals you can display the result of the Arithmetic on the Data View by dragging the output of the Arithmetic Step to the Data View.
-
Trying to generate the spool from at user command...
Hi Gurus,
The spool is not getting created in the foreground, I think I am missing something here, the code is below.
AT USER-COMMAND.
CASE sy-ucomm .
WHEN 'SEND'.
PERFORM get_cust_emails.
LOOP AT i_output.
READ TABLE i_mail INTO wa_mail WITH KEY kunnr = i_output-rcvprn. " rcvprn is customer number,
IF sy-subrc IS INITIAL.
IF wa_mail-smtp_addr IS NOT INITIAL. if the customer has an email then create the entry in i_output_mail.
i_output_mail = i_output.
APPEND i_output_mail.
CLEAR: i_output_mail.
DELETE i_output.
CLEAR: i_output.
ENDIF.
ENDIF.
ENDLOOP.
Setting the Print Parameter's for Portrait
PERFORM f_print_report. " form is below
SORT i_output_mail BY rcvprn belnr. "rcvprn is the customer number
PERFORM f_prepare_mail. " form is below
MESSAGE i307.
LEAVE LIST-PROCESSING.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
WHEN 'EXIT'.
LEAVE PROGRAM.
WHEN 'CANCEL'.
LEAVE PROGRAM.
ENDCASE.
Subroutines provided below:
FORM f_print_report .
*Program name
DATA : l_prog_name TYPE sy-repid,
i_print TYPE slis_print_alv.
Local Constants
CONSTANTS: lc_vline TYPE c VALUE '|'.
l_prog_name = sy-repid.
CLEAR: i_events[], wa_events.
wa_events-name = c_top. "'TOP_OF_PAGE'.
wa_events-form = c_top.
APPEND wa_events TO i_events.
CONSTANTS: lc_prtr TYPE sypdest VALUE 'LP01',
lc_layout TYPE sypaart VALUE 'X_90_120',
lc_layout1 TYPE sypaart VALUE 'X_65_255',
lc_lines TYPE sylinsz VALUE '-120',
lc_lines1 TYPE sylinsz VALUE '-185',
lc_mode TYPE sycallr VALUE 'CURRENT'.
Get the print paramters
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
authority = space
destination = lc_prtr
immediately = space
new_list_id = c_x
layout = lc_layout
line_size = lc_lines
mode = lc_mode
no_dialog = c_x
report = sy-repid
user = sy-uname
suppress_shading = c_x
IMPORTING
out_parameters = i_pr_param
valid = l_valid
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
CLEAR: g_heading_completed."Indicator for print header
ENDFORM. "f_print_report
FORM f_prepare_mail .
LOOP AT i_output_mail.
l_flag_mail = 'X'.
CLEAR: l_flag.
WRITE: /08(1) c_vline, 10(09) i_output_mail-stapa1, 20(1) c_vline,21(10) i_output_mail-datum,
31(1) c_vline, 32(10) i_output_mail-belnr, 42(1) c_vline,43(15) i_output_mail-total,
58(1) c_vline, 59(15) i_output_mail-surcrg, 74(1) c_vline,75(05) i_output_mail-kperc,
80(1) c_vline, 81(15) i_output_mail-betrg, 96(1) c_vline,97(19) i_output_mail-summe,
116(1) c_vline,117(03) i_output_mail-curcy, 120(1) c_vline.
AT END OF rcvprn.
SUM.
ULINE /8(113).
WRITE: /8(1) c_vline.
FORMAT COLOR 3.
WRITE: 10(09) text-064, 20(01) c_vline, 21(10) space,
31(1) c_vline, 32(10) space, 42(01) c_vline, 43(15) i_output_mail-total,
58(1) c_vline, 59(15) i_output_mail-surcrg, 74(1) c_vline, 75(05) space,
80(1) c_vline, 81(15) i_output_mail-betrg, 96(1) c_vline, 97(19) i_output_mail-summe,
116(1) c_vline,117(03) space, 120(01) c_vline.
FORMAT COLOR OFF.
ULINE /8(113).
NEW-PAGE.
ENDAT.
AT END OF rcvprn.
i_pr_param-linsz = 1000.
NEW-PAGE PRINT ON PARAMETERS i_pr_param NO DIALOG.
NEW-PAGE PRINT OFF.
If spool number is obtained, generate PDF
IF sy-spono IS NOT INITIAL.
PERFORM f_generate_pdf.
*Send the PDF as mail attachement
PERFORM f_send_email.
ENDIF.
ENDAT.
ENDLOOP.
ENDFORM. " SEND_MAIL
Please check the code and suggest some changes.
Thanks,
Sukumar.Hi,
The data is getting printed incorrectly, I have coded as you have instructed. But the report output (not emailing) is getting printed ok. The code for that is as below.
FORM f_list_display .
LOOP AT i_output.
g_flag = c_x.
CLEAR: g_flag_mail.
WRITE: /08(1) c_vline, 10(09) i_output-stapa1, 20(1) c_vline,21(10) i_output-datum,
31(1) c_vline, 32(10) i_output-belnr, 42(1) c_vline,43(15) i_output-total,
58(1) c_vline, 59(15) i_output-surcrg, 74(1) c_vline,75(05) i_output-kperc,
80(1) c_vline, 81(15) i_output-betrg, 96(1) c_vline,97(19) i_output-summe,
116(1) c_vline,117(03) i_output-curcy, 120(1) c_vline,121(10) i_output-rcvprn.
AT END OF rcvprn.
SUM.
ULINE /8(113).
WRITE: /8(1) c_vline.
FORMAT COLOR 3.
WRITE: 10(09) text-064, 20(01) c_vline, 21(10) space,
31(1) c_vline, 32(10) space, 42(01) c_vline, 43(15) i_output-total,
58(1) c_vline, 59(15) i_output-surcrg, 74(1) c_vline, 75(05) space,
80(1) c_vline, 81(15) i_output-betrg, 96(1) c_vline, 97(19) i_output-summe,
116(1) c_vline,117(03) space, 120(01) c_vline.
FORMAT COLOR OFF.
ULINE /8(113).
NEW-PAGE.
ENDAT.
ENDLOOP.
ENDFORM. " F_LIST_DISPLAY
The code which you gave should work as the above code. The above code is for report output and our code is for sending mails to the customers separately, thus we are creating separate spools customer-wise.
Our code for emailing to customers seperately is below.
FORM f_prepare_mail .
LOOP AT i_output_mail.
At new rcvprn.
NEW-PAGE PRINT ON PARAMETERS i_pr_param NO DIALOG.
endat.
l_flag_mail = 'X'.
CLEAR: l_flag.
WRITE: /08(1) c_vline, 10(09) i_output_mail-stapa1, 20(1) c_vline,21(10) i_output_mail-datum,
31(1) c_vline, 32(10) i_output_mail-belnr, 42(1) c_vline,43(15) i_output_mail-total,
58(1) c_vline, 59(15) i_output_mail-surcrg, 74(1) c_vline,75(05) i_output_mail-kperc,
80(1) c_vline, 81(15) i_output_mail-betrg, 96(1) c_vline,97(19) i_output_mail-summe,
116(1) c_vline,117(03) i_output_mail-curcy, 120(1) c_vline.
AT END OF rcvprn.
SUM.
ULINE /8(113).
WRITE: /8(1) c_vline.
FORMAT COLOR 3.
WRITE: 10(09) text-064, 20(01) c_vline, 21(10) space,
31(1) c_vline, 32(10) space, 42(01) c_vline, 43(15) i_output_mail-total,
58(1) c_vline, 59(15) i_output_mail-surcrg, 74(1) c_vline, 75(05) space,
80(1) c_vline, 81(15) i_output_mail-betrg, 96(1) c_vline, 97(19) i_output_mail-summe,
116(1) c_vline,117(03) space, 120(01) c_vline.
FORMAT COLOR OFF.
ULINE /8(113).
NEW-PAGE.
ENDAT.
AT END OF rcvprn.
i_pr_param-linsz = 1000.
NEW-PAGE PRINT OFF.
If spool number is obtained, generate PDF
IF sy-spono IS NOT INITIAL.
PERFORM f_generate_pdf.
*Send the PDF as mail attachement
PERFORM f_send_email.
ENDIF.
ENDAT.
ENDLOOP.
ENDFORM. " SEND_MAIL
Let me know, what could be the error in our code which generates separate spools for customers.
Thanks in advance for the help.
Sukumar. -
Generate a url from a report or function module
Hi,
I'm trying to generate a url from a report and tried using the function module WWW_ITAB_TO_HTML in the report program, as , but i'm not able to get the expected results. The code is given below. Could someone please try and help me resolve this issue. Thanks in advance.
DATA: emp_name TYPE char80.
DATA: it_itabex TYPE zdb_ex_tty,
it_emp TYPE TABLE OF zis_emp,
it_org TYPE TABLE OF zis_org,
it_pos TYPE TABLE OF zis_pos,
it_pos_alloc TYPE TABLE OF zis_pos_alloc,
it_res TYPE TABLE OF zis_res,
it_res_alloc TYPE TABLE OF zis_res_alloc,
ls_itabex TYPE zdb_ex_s.
DATA: lv_filename TYPE string,
lv_path TYPE string,
lv_fullpath TYPE string,
lv_replace TYPE i.
DATA qstring LIKE it_itabex OCCURS 10.
DATA: url(200), url2(200), url3(200), fullurl(200).
FIELD-SYMBOLS: <fs_emp> LIKE LINE OF it_emp,
<fs_org> LIKE LINE OF it_org,
<fs_pos> LIKE LINE OF it_pos,
<fs_pos_alloc> LIKE LINE OF it_pos_alloc,
<fs_res> LIKE LINE OF it_res,
<fs_res_alloc> LIKE LINE OF it_res_alloc.
** Report Program to export data from database to Excel.
** Populate all the tables that have to be exported.
SELECT * FROM zis_org INTO TABLE it_org.
SELECT * FROM zis_pos INTO TABLE it_pos.
SELECT * FROM zis_pos_alloc INTO TABLE it_pos_alloc.
SELECT * FROM zis_emp INTO TABLE it_emp.
SELECT * FROM zis_res_alloc INTO TABLE it_res_alloc.
SELECT * FROM zis_res INTO TABLE it_res.
** Append the Column Header
CLEAR ls_itabex.
ls_itabex-ipp_pos_id = 'IPP Pos ID'.
ls_itabex-emp_name = 'Name'.
ls_itabex-dt_of_join = 'JoinedOn'.
ls_itabex-emp_status = 'Status'.
ls_itabex-org_name = 'Org'.
ls_itabex-prj_name = 'Project'.
ls_itabex-mgr_name = 'Line'.
ls_itabex-designation = 'Designation'.
ls_itabex-specialization = 'Specialization'.
APPEND ls_itabex TO it_itabex.
** Append all the tables into one internal table
LOOP AT it_pos_alloc ASSIGNING <fs_pos_alloc>.
CLEAR ls_itabex.
ls_itabex-ipp_pos_id = <fs_pos_alloc>-ipp_pos_id.
READ TABLE it_emp ASSIGNING <fs_emp> WITH KEY emp_guid = <fs_pos_alloc>-emp_guid.
IF sy-subrc = 0.
CONCATENATE <fs_emp>-emp_fname <fs_emp>-emp_lname INTO ls_itabex-emp_name SEPARATED BY space.
ls_itabex-dt_of_join = <fs_emp>-dt_of_join.
ls_itabex-emp_status = <fs_emp>-emp_status.
ls_itabex-specialization = <fs_emp>-specialization.
ENDIF.
READ TABLE it_pos ASSIGNING <fs_pos> WITH KEY ipp_pos_id = <fs_pos_alloc>-ipp_pos_id.
IF sy-subrc = 0.
ls_itabex-designation = <fs_pos>-designation.
READ TABLE it_org ASSIGNING <fs_org> WITH KEY org_id = <fs_pos>-org_id.
IF sy-subrc = 0.
ls_itabex-org_name = <fs_org>-org_name.
ls_itabex-mgr_name = <fs_org>-mgr_name.
ENDIF.
ENDIF.
READ TABLE it_res ASSIGNING <fs_res> WITH KEY org_id = <fs_org>-org_id.
ls_itabex-org_name = <fs_org>-org_name.
APPEND ls_itabex TO it_itabex.
ENDLOOP.
url = 'http://testweb/scripts/wgate/zvw10a/!?~language=en'.
url2 = '&~OkCode(LGON)=LGON&login-login_user='.
url3 = '&vbcom-vbeln='.
CONCATENATE url url2 url3 INTO fullurl.
WRITE: /'Staffing Excel'.
CALL FUNCTION 'WWW_SET_URL'
EXPORTING
offset = 12
length = 10
func = fullurl
TABLES
query_string = qstring
EXCEPTIONS
invalid_table = 1
OTHERS = 2.
Thanks & Regards,
Preethi.Check the below example program :
data: begin of itab occurs 0,
matnr type mara-matnr,
mtart type mara-mtart,
matkl type mara-matkl,
groes type mara-groes,
end of itab.
data: ifields type table of w3fields with header line.
data: ihtml type table of w3html with header line.
select * into corresponding fields of table itab
from mara up to 100 rows.
call function 'WWW_ITAB_TO_HTML'
EXPORTING
TABLE_ATTRIBUTES = 'BORDER=1'
TABLE_HEADER =
ALL_FIELDS = 'X'
tables
html = ihtml
fields = ifields
ROW_HEADER =
itable = itab
check sy-subrc = 0.
call function 'GUI_DOWNLOAD'
exporting
filename = 'c:\test.html'
tables
data_tab = ihtml.
Reward points if it is helpful
Thanks
Seshu -
Error while Generating PDF file from Datagridview .
Hi every one,
I'm trying to generate pdf file from datagridview,while executing my code getting nullvalue exception..
Here is my code:
private void btnexportPDF_Click(object sender, EventArgs e)
//Creating iTextSharp Table from the DataTable data
PdfPTable pdfTable = new PdfPTable(dataGridView1.ColumnCount);
pdfTable.DefaultCell.Padding = 3;
pdfTable.WidthPercentage = 30;
pdfTable.HorizontalAlignment = Element.ALIGN_LEFT;
pdfTable.DefaultCell.BorderWidth = 1;
//Adding Header row
foreach (DataGridViewColumn column in dataGridView1.Columns)
PdfPCell cell = new PdfPCell(new Phrase(column.HeaderText));
cell.BackgroundColor = new iTextSharp.text.BaseColor(240, 240, 240);
pdfTable.AddCell(cell);
//Adding DataRow
foreach (DataGridViewRow row in dataGridView1.Rows)
foreach (DataGridViewCell cell in row.Cells)
pdfTable.AddCell(cell.Value.ToString());//nullvalue exception
//Exporting to PDF
string folderPath = "C:\\PDFs\\";
if (!Directory.Exists(folderPath))
Directory.CreateDirectory(folderPath);
using (FileStream stream = new FileStream(folderPath + "DataGridViewExport.pdf", FileMode.Create))
Document pdfDoc = new Document(PageSize.A2, 10f, 10f, 10f, 0f);
PdfWriter.GetInstance(pdfDoc, stream);
pdfDoc.Open();
pdfDoc.Add(pdfTable);
pdfDoc.Close();
stream.Close();
Thanks & Regards RAJENDRAN MHi Rajendran,
The second question is about the usage of iTextSharp library, which is not a MS product, please post in their forum for help:
http://support.itextpdf.com/forum
Thanks for your understanding.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Generating XML file from WORD file
hello
Everyboby.
I am trying to generate xml file from a word file.
but i am stucked with how to do it? any kind of help will be useful.
i think for doing this work i have to develop XSD file, because when i am creating the xml file, the hidden space within the word file is not catched.
please help me out.
waiting for reply
thanks
milindhello
after searching on the net i came to know that org.apache.poi.hwpf.* is used for reading word file and its contents. for converting it to xml i have to use org.exolab.castor.xml.*
now my problem is that POI is in its early beta version and there is no help or any sample examples for understanding the api.
so if you have any idea regarding it, please write to me.
waiting for your reply.
thanks
Milind -
RoboHelp/RoboPDF freezes when trying to generate PDF printed documentation
Hi,
I am using RoboHelp HTML X5.0.2 build 801 with Win2k and Word
2000. Whenever I try to generate printed documentation in PDF
format RoboHelp freezes and doesn't respond until I kill the
program. I also tried first generating the printed documentation in
MS Word .doc format and then tried to generate the PDF from within
Word. RoboPDF kicks in this time and freezes along with MS Word.
Any ideas why this is happening?It works on anything we throw at it. You could try the
supplied sample projects.
Have you tried creating a document directly in Word and
creating a PDF from that?
Where is you normal template stored? Locally?
Take a look at Snippet 33 on my site. You should be getting
an error message if that is the problem but it might be worth
checking the path anyway.
Click
here.
If that does not fix it, email me offline. -
Error in generating .cs file from wsdl
hi ,
I am trying to generate .cs file from wsdl using commond
wsdl
http://pni3w274:8080/tc5_services/WebServices/ModelEntity?wsdl /language:CS /out:rt.cs /protocol:SOAP
it give following errors
Error: Unable to import binding 'ModelEntitySoapBinding' from namespace 'http://
teamcenter.com/TCENT/webservices/2005-06/services/ModelEntity'.
- Unable to import operation 'getListOfClasses'.
- The datatype 'http://teamcenter.com/TCENT/webservices/2005-06/schemas/ModelE
ntity:GetListOfClassesInputParams' is missing.
my wsdl is
ModelEntityService.wsdl
<?xml version="1.0" encoding="UTF-8" ?>
<wsdl:definitions
targetNamespace="http://teamcenter.com/TCENT/webservices/2005-06/services/ModelEntity"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsi="http://ws-i.org/schemas/conformanceClaim/"
xmlns:imp0="http://teamcenter.com/TCENT/webservices/2005-06/schemas/ModelEntity"
xmlns:imp1="http://teamcenter.com/webservices/2005-06/schemas/WSFaults"
xmlns:tns="http://teamcenter.com/TCENT/webservices/2005-06/services/ModelEntity">
<wsdl:documentation>
The service provides Model Entity related operation.
</wsdl:documentation>
<wsdl:types>
<xs:schema>
<xs:import namespace="http://teamcenter.com/TCENT/webservices/2005-06/schemas/ModelEntity" schemaLocation="ModelEntity.xsd" />
<xs:import namespace="http://teamcenter.com/webservices/2005-06/schemas/WSFaults" schemaLocation="WSFaults.xsd" />
</xs:schema>
</wsdl:types>
<wsdl:message name="PresentationTierFault">
<wsdl:part name="ex0" element="imp1:RequestManangerFault" />
</wsdl:message>
<wsdl:message name="getListOfClassesRequest">
<wsdl:part name="in0" element="imp0:GetListOfClassesInputParams" />
</wsdl:message>
<wsdl:message name="getListOfClassesResponse">
<wsdl:part name="out" element="imp0:GetListOfClassesOutputParams" />
</wsdl:message>
<wsdl:message name="getCreateAttributesRequest">
<wsdl:part name="in0" element="imp0:GetCreateAttributesInputParams" />
</wsdl:message>
<wsdl:message name="getCreateAttributesResponse">
<wsdl:part name="out" element="imp0:GetCreateAttributesOutputParams" />
</wsdl:message>
<wsdl:message name="createModelEntityRequest">
<wsdl:part name="in0" element="imp0:CreateModelEntityInputParams" />
</wsdl:message>
<wsdl:message name="createModelEntityResponse">
<wsdl:part name="out" element="imp0:CreateModelEntityOutputParams" />
</wsdl:message>
<wsdl:message name="getValueSetForAttributeRequest">
<wsdl:part name="in0" element="imp0:GetValueSetForAttributeInputParams" />
</wsdl:message>
<wsdl:message name="getValueSetForAttributeResponse">
<wsdl:part name="out" element="imp0:GetValueSetForAttributeOutputParams" />
</wsdl:message>
<wsdl:portType name="ModelEntity">
<wsdl:operation name="getListOfClasses">
<wsdl:documentation>
Gets List Of all ModelEntity Classes.
</wsdl:documentation>
<wsdl:input message="tns:getListOfClassesRequest" name="getListOfClassesRequest" />
<wsdl:output message="tns:getListOfClassesResponse" name="getListOfClassesResponse" />
<wsdl:fault message="tns:PresentationTierFault" name="PresentationTierError" />
</wsdl:operation>
<wsdl:operation name="getCreateAttributes">
<wsdl:documentation>
Gets ModelEntity Create Attributes.
</wsdl:documentation>
<wsdl:input message="tns:getCreateAttributesRequest" name="getCreateAttributesRequest" />
<wsdl:output message="tns:getCreateAttributesResponse" name="getCreateAttributesResponse" />
<wsdl:fault message="tns:PresentationTierFault" name="PresentationTierError" />
</wsdl:operation>
<wsdl:operation name="createModelEntity">
<wsdl:documentation>
Creates Model Entity.
</wsdl:documentation>
<wsdl:input message="tns:createModelEntityRequest" name="createModelEntityRequest" />
<wsdl:output message="tns:createModelEntityResponse" name="createModelEntityResponse" />
<wsdl:fault message="tns:PresentationTierFault" name="PresentationTierError" />
</wsdl:operation>
<wsdl:operation name="getValueSetForAttribute">
<wsdl:documentation>
Gets Value Set For Attribute.
</wsdl:documentation>
<wsdl:input message="tns:getValueSetForAttributeRequest" name="getValueSetForAttributeRequest" />
<wsdl:output message="tns:getValueSetForAttributeResponse" name="getValueSetForAttributeResponse" />
<wsdl:fault message="tns:PresentationTierFault" name="PresentationTierError" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="ModelEntitySoapBinding" type="tns:ModelEntity">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="getListOfClasses">
<soap:operation style="document" soapAction="getListOfClasses" />
<wsdl:input><soap:body use="literal" /></wsdl:input>
<wsdl:output><soap:body use="literal" /></wsdl:output>
<wsdl:fault name="PresentationTierError"><soap:fault name="PresentationTierError" use="literal" /></wsdl:fault>
</wsdl:operation>
<wsdl:operation name="getCreateAttributes">
<soap:operation style="document" soapAction="getCreateAttributes" />
<wsdl:input><soap:body use="literal" /></wsdl:input>
<wsdl:output><soap:body use="literal" /></wsdl:output>
<wsdl:fault name="PresentationTierError"><soap:fault name="PresentationTierError" use="literal" /></wsdl:fault>
</wsdl:operation>
<wsdl:operation name="createModelEntity">
<soap:operation style="document" soapAction="createModelEntity" />
<wsdl:input><soap:body use="literal" /></wsdl:input>
<wsdl:output><soap:body use="literal" /></wsdl:output>
<wsdl:fault name="PresentationTierError"><soap:fault name="PresentationTierError" use="literal" /></wsdl:fault>
</wsdl:operation>
<wsdl:operation name="getValueSetForAttribute">
<soap:operation style="document" soapAction="getValueSetForAttribute" />
<wsdl:input><soap:body use="literal" /></wsdl:input>
<wsdl:output><soap:body use="literal" /></wsdl:output>
<wsdl:fault name="PresentationTierError"><soap:fault name="PresentationTierError" use="literal" /></wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="ModelEntityService">
<wsdl:port binding="tns:ModelEntitySoapBinding" name="ModelEntity">
<soap:address
location="http://localhost:80/PTierApp/WebServices/ModelEntity" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
and xsd is ModelEntity.xsd
<?xml version="1.0" encoding="UTF-8"?>
<!--
bcprt
This software and related documentation are proprietary to UGS Corp.
COPYRIGHT 2006 UGS CORP. ALL RIGHTS RESERVED
ecprt
-->
<xsd:schema targetNamespace="http://teamcenter.com/TCENT/webservices/2005-06/schemas/ModelEntity"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsc="http://teamcenter.com/TCENT/webservices/2005-06/schemas/Common"
xmlns:wlt="http://teamcenter.com/TCENT/webservices/2005-06/schemas/ModelEntity"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<!-- ================================================================== -->
<!-- Package: ModelEntity -->
<!-- ================================================================== -->
<xsd:annotation>
<xsd:documentation>
The ModelEntity package defines elements and data types
for the parameters used by operations/messages of the ModelEntity Web Service.
</xsd:documentation>
</xsd:annotation>
<!-- ================================================================== -->
<!-- BEGIN: Get Model Entity List Of Classes: INPUT -->
<!-- ================================================================== -->
<xsd:element name="GetListOfClassesInputParams"
type="wlt:GetListOfClassesInputType"/>
<xsd:complexType name="GetListOfClassesInputType">
<xsd:sequence>
<xsd:element name="UserName" type="xsd:string"/>
<xsd:element name="Password" type="xsd:string"/>
<xsd:element name="Locale" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<!-- ================================================================== -->
<!-- END : Get Model Entity List Of Classes : INPUT -->
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- BEGIN: Get Model Entity List Of Classes : OUTPUT -->
<!-- ================================================================== -->
<xsd:element name="GetListOfClassesOutputParams"
type="wlt:GetListOfClassesOutputType"/>
<xsd:complexType name="GetListOfClassesOutputType">
<xsd:sequence>
<xsd:element name="ClassList" type="wlt:ModelEntityValueDisplayedValuePair"
minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="ReturnType" type="xsd:boolean"/>
<xsd:element name="ReturnMessage" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<!-- ================================================================== -->
<!-- END : Get Model Entity Classes : OUTPUT -->
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- BEGIN: Get Model Entity Create Attributes: INPUT -->
<!-- ================================================================== -->
<xsd:element name="GetCreateAttributesInputParams"
type="wlt:GetCreateAttributesInputType"/>
<xsd:complexType name="GetCreateAttributesInputType">
<xsd:sequence>
<xsd:element name="UserName" type="xsd:string"/>
<xsd:element name="Password" type="xsd:string"/>
<xsd:element name="Locale" type="xsd:string" minOccurs="0"/>
<xsd:element name="ClassName" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<!-- ================================================================== -->
<!-- END : Get Model Entity Create Attributes : INPUT -->
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- BEGIN: Get Model Entity Create Attributes : OUTPUT -->
<!-- ================================================================== -->
<xsd:element name="GetCreateAttributesOutputParams"
type="wlt:GetCreateAttributesOutputType"/>
<xsd:complexType name="GetCreateAttributesOutputType">
<xsd:sequence>
<xsd:element name="Attributes" type="wlt:ModelEntityCreateAttributes"
minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="ReturnType" type="xsd:boolean"/>
<xsd:element name="ReturnMessage" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<!-- ================================================================== -->
<!-- END : Get Model Entity Create Attributes : OUTPUT -->
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- BEGIN: Get Model Entity Value Set For Attribute: INPUT -->
<!-- ================================================================== -->
<xsd:element name="GetValueSetForAttributeInputParams"
type="wlt:GetValueSetForAttributeInputType"/>
<xsd:complexType name="GetValueSetForAttributeInputType">
<xsd:sequence>
<xsd:element name="UserName" type="xsd:string"/>
<xsd:element name="Password" type="xsd:string"/>
<xsd:element name="Locale" type="xsd:string" minOccurs="0"/>
<xsd:element name="Attribute" type="xsd:string"/>
<!-- optional criteria -->
<xsd:element name="Criteria" type="wlt:ModelEntityNameValuePair"
minOccurs="0" maxOccurs="unbounded" />
<!-- optional class name -->
<xsd:element name="ClassName" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<!-- ================================================================== -->
<!-- END : Get Model Entity Value Set For Attribute : INPUT -->
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- BEGIN: Get Model Entity Value Set For Attribute : OUTPUT -->
<!-- ================================================================== -->
<xsd:element name="GetValueSetForAttributeOutputParams"
type="wlt:GetValueSetForAttributeOutputType"/>
<xsd:complexType name="GetValueSetForAttributeOutputType">
<xsd:sequence>
<xsd:element name="StaticValues" type="wlt:ModelEntityValueDisplayedValuePair"
minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="ReturnType" type="xsd:boolean"/>
<xsd:element name="ReturnMessage" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<!-- ================================================================== -->
<!-- END : Get Model Entity Value Set For Attribute : OUTPUT -->
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- BEGIN: Create Model Entity : INPUT -->
<!-- ================================================================== -->
<xsd:element name="CreateModelEntityInputParams"
type="wlt:CreateModelEntityInputType"/>
<xsd:complexType name="CreateModelEntityInputType">
<xsd:sequence>
<xsd:element name="UserName" type="xsd:string"/>
<xsd:element name="Password" type="xsd:string"/>
<xsd:element name="Locale" type="xsd:string" minOccurs="0"/>
<xsd:element name="ClassName" type="xsd:string"/>
<xsd:element name="Attributes" type="wlt:ModelEntityNameValuePair"
maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
<!-- ================================================================== -->
<!-- END : Create Model Entity : INPUT -->
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- BEGIN : Create Model Entity : OUTPUT -->
<!-- ================================================================== -->
<xsd:element name="CreateModelEntityOutputParams"
type="wlt:CreateModelEntityOutputType"/>
<xsd:complexType name="CreateModelEntityOutputType">
<xsd:sequence>
<xsd:element name="ObjectHandle" type="xsd:string"/>
<xsd:element name="ReturnType" type="xsd:boolean"/>
<xsd:element name="ReturnMessage" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<!-- ================================================================== -->
<!-- END : Create Model Entity : OUTPUT -->
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- BEGIN : Create Model Entity Attributes : OUTPUT -->
<!-- ================================================================== -->
<xsd:complexType name="ModelEntityCreateAttributes">
<xsd:sequence>
<xsd:element name="DisplayedName" type="xsd:string"/>
<xsd:element name="Name" type="xsd:string"/>
<xsd:element name="StaticValues" type="wlt:ModelEntityValueDisplayedValuePair"
minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="IsRequired" type="xsd:boolean"/>
<xsd:element name="HasValueSet" type="xsd:boolean"/>
</xsd:sequence>
</xsd:complexType>
<!-- ================================================================== -->
<!-- END : Create Model Entity Attributes : OUTPUT -->
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- BEGIN : Model Entity Pairs : INPUT/OUTPUT -->
<!-- ================================================================== -->
<xsd:complexType name="ModelEntityNameValuePair">
<xsd:sequence>
<xsd:element name="Name" type="xsd:string"/>
<xsd:element name="Value" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ModelEntityValueDisplayedValuePair">
<xsd:sequence>
<xsd:element name="Value" type="xsd:string"/>
<xsd:element name="DisplayedValue" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<!-- ================================================================== -->
<!-- END : Model Entity Pairs : INPUT/OUTPUT -->
<!-- ================================================================== -->
</xsd:schema>check metalink note
Adpatch Fails With Error : adogjf() Unable to copy Registry.Dat.
Note:282153.1
also check (Adogjf() Unable To Copy Registry.Dat).
Note:382695.1 about the correct on the $806_ORACLE_HOME/forms60/java where it should be 755
make sure that you soruce the env fiel before adpatch and that ORACLE_HOME is poinitng to the correct oracle_home
fadi -
Pass a parameter from one ASP portlet to another ASP portlet
We are trying to pass a parameter from one ASP portlet to one or more other ASP portlets.
We are using PDK-URL Services and have created a provider.xml for each of the ASPs and the ASPs work as normal within the portlets created.
We are now trying to use PDK-URL Services to pass parameters to a portlet. As a first step we set up a portlet which displayed an ASP, this ASP (and the portlet) expected a parameter. If the parameter value is left blank the Portlet displays a default page (not the ASP page) for passing in the parameter i.e. a text box and a submit button. If the parameter is entered and submitted the ASP page returns and the results of the query are based on the parameter typed in.
As the next step what we are now trying to do is pass a parameter from one ASP portlet to another.
The Documentation says that there are two types of parameters Qualified where Parameters will be passed only to the initiating portlet i.e., portlet which contains them and Unqualified where all portlets will be affected by the parameter sent by any portlet.
Very little information was available on this, apart from the one liner explanation of each (above).
When we tested the above, using the PDK sample ("ParamCustomizationPortlet") portlets it doesn't appear to be doing anything in particular.
Any ideas on the best approach to passing parameters from one ASP portlet to another?
Thanks for your time.We can visualize Qualified and Unqualified parameters only when there are multiple portlet instances in a single page. For example, add two instances of ASP portlet you have created, and submit from one portlet. You can see the other portlet also receiving this parameter, provided you are using unqualified parameters.
Thanks,
Amjad. -
i am trying to generate purchase order and i create a BAPI also which is active.
But when i call the BAPI from SYbase Mobile Object RFC then after calling it gives an Error "Conflict when calling a Function Module (Field Length)".Hi,
Yeah i tried my Z_BAPI in R3 and then giving some ERROR.
This is my CODE-
FUNCTION ZBAPIPOTV2.
*"*"Local Interface:
*" IMPORTING
*" VALUE(POHD) TYPE ZPOHD OPTIONAL
*" VALUE(POITEM) TYPE ZPOITEM OPTIONAL
*" TABLES
*" RETURN STRUCTURE BAPIRET1 OPTIONAL
data: ls_pohd type bapimepoheader,
ls_pohdx TYPE bapimepoheaderx,
lt_poit TYPE TABLE OF bapimepoitem,
lt_poitx TYPE TABLE OF bapimepoitemx,
ls_poit TYPE bapimepoitem,
ls_poitx TYPE bapimepoitemx.
MOVE-CORRESPONDING pohd to ls_pohd.
MOVE-CORRESPONDING poitem to ls_poit.
ls_pohdx-comp_code = 'x'.
ls_pohdx-doc_type = 'x'.
ls_pohdx-vendor = 'x'.
ls_pohdx-purch_org = 'x'.
ls_pohdx-pur_group = 'x'.
ls_poit-po_item = '00010'.
APPEND ls_poit to lt_poit.
ls_poitx-po_item = '00010'.
ls_poitx-po_itemx = 'x'.
ls_poitx-material = 'x'.
ls_poitx-plant = 'x'.
ls_poitx-quantity = 'x'.
APPEND ls_poitx to lt_poitx.
CALL FUNCTION 'BAPI_PO_CREATE1'
EXPORTING
POHEADER = ls_pohd
POHEADERX = ls_pohdx
* POADDRVENDOR =
* TESTRUN =
* MEMORY_UNCOMPLETE =
* MEMORY_COMPLETE =
* POEXPIMPHEADER =
* POEXPIMPHEADERX =
* VERSIONS =
* NO_MESSAGING =
* NO_MESSAGE_REQ =
* NO_AUTHORITY =
* NO_PRICE_FROM_PO =
* PARK_COMPLETE =
* PARK_UNCOMPLETE =
* IMPORTING
* EXPPURCHASEORDER =
* EXPHEADER =
* EXPPOEXPIMPHEADER =
TABLES
RETURN = return
POITEM = lt_poit
POITEMX = lt_poitx
* POADDRDELIVERY =
* POSCHEDULE =
* POSCHEDULEX =
* POACCOUNT =
* POACCOUNTPROFITSEGMENT =
* POACCOUNTX =
* POCONDHEADER =
* POCONDHEADERX =
* POCOND =
* POCONDX =
* POLIMITS =
* POCONTRACTLIMITS =
* POSERVICES =
* POSRVACCESSVALUES =
* POSERVICESTEXT =
* EXTENSIONIN =
* EXTENSIONOUT =
* POEXPIMPITEM =
* POEXPIMPITEMX =
* POTEXTHEADER =
* POTEXTITEM =
* ALLVERSIONS =
* POPARTNER =
* POCOMPONENTS =
* POCOMPONENTSX =
* POSHIPPING =
* POSHIPPINGX =
* POSHIPPINGEXP =
* SERIALNUMBER =
* SERIALNUMBERX =
* INVPLANHEADER =
* INVPLANHEADERX =
* INVPLANITEM =
* INVPLANITEMX =
ENDFUNCTION.
i am trying to generate purchase order and i create a BAPI also which is active. But when i call the BAPI from SYbase Mobile Object RFC then after calling it gives an Error "Conflict when calling a Function Module (Field Length)". -
Error deploying from Jdeveloper 10.1.3.4 to OAS 10.1.2
I've upgraded my Jdeveloper to 10.1.3.4 and imported an old project written in Jdev 10.1.2.0 (build 1811).
My application uses Struts, JSP, Log4j and EJB's
I can deploy to my local o4cj in the new Jdev and the applciation runs fine but when I try to deploy to my 10.1.2 app server I get the following error within the DCM log file:
TM] Remote evaluate failed.
Current StackTrace:
java.lang.Throwable
at oracle.ias.sysmgmt.task.TaskMaster.remote_evaluate(Unknown Source)
at oracle.ias.sysmgmt.task.TaskMaster.evaluate(Unknown Source)
at oracle.ias.sysmgmt.deployment.j2ee.console.ApplicationDeployment.deployCommon(Unknown Source)
at oracle.ias.sysmgmt.deployment.j2ee.console.ApplicationDeployment.redeploy(Unknown Source)
at oracle.ias.sysmgmt.deployment.j2ee.console.EarDeployerImpl.redeploy(Unknown Source)
at oracle.j2ee.tools.remote_deploy.Oc4jDcmCommandThread.executeCommand(Unknown Source)
at oracle.j2ee.tools.remote_deploy.Oc4jDcmCommandThread.run(Unknown Source)
remote exception: oracle.ias.sysmgmt.deployment.j2ee.exception.J2eeDeploymentException: Nested exception
Resolution:
Base Exception:
java.rmi.RemoteException
deploy failed!: ; nested exception is:
oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-module; Exception Error in application careers-test: Error
loading package at file:/opt/oraias/OraHome_1/j2ee/oc4j_dev/applications/careers-test/careers.jar,
Error compiling /opt/oraias/OraHome_1/j2ee/oc4j_dev/applications/careers-test/careers.jar: Error finding a suitable DataSource: SQL
Error opening DataSource: invalid arguments in call; nested exception is: java.sql.SQLException: invalid arguments in call; nested exception
is:
java.sql.SQLException: invalid arguments in call
remote exception StackTrace:
java.rmi.RemoteException: deploy failed!: ; nested exception is:
oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-module; Exception Error in application careers-test: Error
loading package at file:/opt/oraias/OraHome_1/j2ee/oc4j_dev/applications/careers-test/careers.jar,
Error compiling /opt/oraias/OraHome_1/j2ee/oc4j_dev/applications/careers-test/careers.jar: Error finding a suitable DataSource: SQL
Error opening DataSource: invalid arguments in call; nested exception is: java.sql.SQLException: invalid arguments in call; nested exception
is:
java.sql.SQLException: invalid arguments in call
at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMIConnection.java:1621)
at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java:1572)
at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:55)
at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:22)
at __Proxy0.deploy(Unknown Source)
at oracle.ias.sysmgmt.deployment.j2ee.runtime.LocalDeploy.deployOnSingleInstance(Unknown Source)
at oracle.ias.sysmgmt.deployment.j2ee.runtime.LocalDeploy.doExecute(Unknown Source)
at oracle.ias.sysmgmt.deployment.j2ee.runtime.RuntimeIf.execute(Unknown Source)
at oracle.ias.sysmgmt.deployment.j2ee.adapter.DeploymentAdapter.doEvaluateDeploy(Unknown Source)
at oracle.ias.sysmgmt.deployment.j2ee.adapter.DeploymentAdapter.evaluate(Unknown Source)
at oracle.ias.sysmgmt.task.TaskMaster.sync_evaluate(Unknown Source)
at oracle.ias.sysmgmt.task.TaskMaster.internal_evaluate(Unknown Source)
at oracle.ias.sysmgmt.task.RemoteEvaluate.execCommand(Unknown Source)
at oracle.ias.sysmgmt.task.DaemonWorker.run(Unknown Source)
Caused by: oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-module; Exception Error in application careers-test:
Error loading package at file:/opt/oraias/OraHome_1/j2ee/oc4j_dev/applications/careers-test/careers.jar,
Error compiling /opt/oraias/OraHome_1/j2ee/oc4j_dev/applications/careers-test/careers.jar: Error finding a suitable DataSource: SQL
Error opening DataSource: invalid arguments in call; nested exception is: java.sql.SQLException: invalid arguments in call; nested exception
is:
java.sql.SQLException: invalid arguments in call
at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:91)
at com.evermind.server.administration.DefaultApplicationServerAdministrator.internalDeploy(DefaultApplicationServerAdministrator.java:429)
at com.evermind.server.administration.DefaultApplicationServerAdministrator.deploy(DefaultApplicationServerAdministrator.java:348)
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:324)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.InstantiationException: Error initializing ejb-module; Exception Error in application careers-test: Error loading
package at file:/opt/oraias/OraHome_1/j2ee/oc4j_dev/applications/careers-test/careers.jar,
Error compiling /opt/oraias/OraHome_1/j2ee/oc4j_dev/applications/careers-test/careers.jar: Error finding a suitable DataSource: SQL
Error opening DataSource: invalid arguments in call; nested exception is: java.sql.SQLException: invalid arguments in call; nested exception
is:
java.sql.SQLException: invalid arguments in call
at com.evermind.server.ejb.EJBContainer.throwInstantiationException(EJBContainer.java:2461)
at com.evermind.server.ejb.EJBContainer.postInitBatch(EJBContainer.java:2445)
at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.java:2225)
at com.evermind.server.Application.postInit(Application.java:557)
at com.evermind.server.Application.setConfig(Application.java:171)
at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1996)
at oracle.oc4j.admin.internal.ApplicationDeployer.addApplication(ApplicationDeployer.java:430)
at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:138)
at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:73)
... 10 more
It looks like it's not picking up the datasource yet it works fine via the local oc4j. From my understanding the datasource is picked up from the connections in Jdeveloper but i've tried adding a datasource.xml to my "Model" tier within the "META-INF" folder but the error is still being generated.
I've amended the J2SE version to 1.4.2_02 on both the ViewController and Model project properties as recommended within the Jdev 10.1.3.4 documentation. I've also just read the following but i'm not sure how relevant it is as the error seems to be that it can't find a datasource not that the password is not being read.
"Data-Sources Password Handling and Application Server 10.1.2
It is important to note that deploying an application that uses connections defined in data-sources.xml developed using JDeveloper 10.1.3 that is deployed to Application Server 10.1.2 will result in a deployment failure. One example would be an application that uses an EJB to connect to a database. This is due to differences in the way Application Server 10.1.3 and Application Server 10.1.2 interpret password indirection. We are expecting a patch for Application Server 10.1.2 to be made available that will allow deployment of these types of applications to Application Server 10.1.2."
I imported the project datasource files from my old project that were developed in Jdev 10.2.3 rather then creating the connection via Jdev 10.1.3.4 but this still hasn't cleared the error.
I've spent a few days on this so far so any help would be most appreciated.
Thanks."Not really. You can exclude the data-sources.xml from the EAR file and rely on the setup of the Global Datasource, created before deployment.
--olaf"
Thanks. Yes I did try this but when I setup the datasource via the datasources tab within the console I still received the error. This may have been due to an error on my part but I can't be sure as i've tried all sorts of different approaches over the last few days. I initially didn't have a datasource.xml so there wasn't one to exclude (via the deploy properties in Jdev) I had relied on Jdeveloper to setup the datasource via my connections. I read somewhere that Jdev does this fduring deploy and indeed it works fine for my embedded oc4j and when deplolying from Jdeveloper 10.1.2 so it would seem odd that the same approach doesn't work for Jdeveloper 10.1.3.
Surely the release notes regarding the password issue is the reason why I can't deploy from Jdev 10.1.3.4 to app server 10.1.2?
The release notes say that a patch is due to fix the issue with password indirection, Olaf do you know where I can get this?
Also how do I setup Jdev not to write the datasources during deployment? If I don't have a datasources.xml then there is nothiing to exclude. Is there a setting somewhere in Jdev 10.1.3.4?
Edited by: [email protected] on 05-Mar-2009 08:08
Edited by: [email protected] on 05-Mar-2009 08:12 -
I am trying to write a SSIS package to auto generate a SSRS PDF. I have tried several threads on the net but all seem to require a web service.
I am using VS2012 and SQL2014
The report accepts one parameter @Licence
can anyone suggest any examples I can look at
Dont ask me .. i dont knowHi Pete,
According to your description, you want to generate a PDF report from SSIS. Assuming that a SSRS report is already created and deployed in the report server, then we can use a Script Task with HTTP Connection Manager to achieve this goal. For more details,
please refer to the following blog:
http://sqlserverrider.wordpress.com/2013/02/15/generate-pdf-report-from-ssis/
Besides, I strongly recommend that you directly generate the PDF file from report server in SSRS. For more information about export reports in SSRS, please see:
http://msdn.microsoft.com/en-IN/library/dd239307.aspx
If there are any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support
Maybe you are looking for
-
Hi, I've upgraded my Apex installation on a 9.2.0.5 database and get an error when running the apxldimg.sql script. SQL> @apxldimg d:\xml PL/SQL procedure successfully completed. old 1: create directory APEX_IMAGES as '&1/apex/images' new 1: crea
-
I can't burn a CD in iTunes. Error 2131, I can't burn a CD in iTunes. Error 2131
Error 2131 comes up on my laptop. The following information is provided when I analysed a little further. Any help is appreciated. Microsoft Windows Vista Home Premium Edition Service Pack 2 (Build 6002) MEDION WIM2140 iTunes 10.6.3.25 QuickTime n
-
my ipod also connected to my laptop just does not comeup under devices in itunes......I have done all the updats and re instilations of all my software and that related to apple and the usb hardrives... i have contacted apple and gone in person with
-
Add num edit control to existing MFC DLL
Hi, I'm using Visual C++ 6.0 and Visual Studio 6.0 SP3, with Measurement Studio 6.0.0 (eval version). I have a C++ DLL which is using shared MFC. It holds various dialogs that my app needs. Onto the waveform dialog, I want to add NI graph (not 3D g
-
OSX 10.5.8 photosmart 7525 needs osx 10.6
have older mac running 10.5.8 bought new HP/Photosmart 7525 last weekend trying to set up /not compatable with me O/S need to run on OSX10.6 NEED HELP ANY sugestion short of buying new mac