How to import into ALSB a resource using WLST
Hi all,
I've an ALSB project that contains my templates (proxy, business services, xsd, etc) and I use a WLST script for creating a new project, reading additional info from a xml file, cloning ALSB stuff from my templates.
The cloning process is working very well and now I'm trying to import xq, xsd, etc in order to replace the old with the new ones.
As starting example I've already download the code sample created by Gregory Haardt.
During the import phase I got an error:
[java] #### [EventBus-DummyEvent] cloning the TransformIntoConsumerEvent proxy template
[java] template : EventBusCore/template/[ConsumerEvent]-[ConsumerName]-TransformIntoConsumerEvent
[java] template cloned into : EventBus-DummyEvent/consumers/Consumer1/resource/DummyEvent-Consumer1-TransformIntoConsumerEvent
[java] #### read resource Zip file: /products/software/terraferma/release3/EventBus/repository/events/DummyEvent/DummyEvent-resources.zip
[java] New XQuery Ref Xquery EventBus-DummyEvent/DummyEvent-IPEventConfig
[java] #### loaded resources in project: EventBus-DummyEvent
[java] Diagnostics for Policy EventBus-DummyEvent/DummyEvent-IPEventConfig
[java] ERROR: <0> invalid ws-policy: policy must have a 'wsu:Id' attribute.
[java] ================================================
[java] #### ERROR - creation error: IPEvent project <EventBus-DummyEvent>, one or more files could not be imported properly
[java] ================================================
[java] No stack trace available.
[java] Unexpected error: defClass.CreationFailure
[java] No stack trace available.
[java] Problem invoking WLST - Traceback (innermost last):
[java] File "/products/software/terraferma/release3/EventBus/scripts/cloning.py", line 662, in ?
[java] File "/products/software/terraferma/release3/EventBus/scripts/cloning.py", line 131, in cloning
[java] File "/products/software/terraferma/release3/EventBus/scripts/cloning.py", line 621, in loadResources
[java] CreationFailure: 'IPEvent project <EventBus-DummyEvent>, one or more files could not be imported properly'
The zip contains the new xquery:
jar tvf .../DummyEvent-resources.zip
7575 Fri Sep 21 14:22:20 CEST 2007 DummyEvent-IPEventConfig.xml
and the script is:
# create the new XQuery ref
queryName = IPEventProjectName + '/' + IPEventType + '-IPEventConfig'
newXQueryName = queryName.split("/")
newXQueryRef = Ref(TypeIds.XQUERY_REF, newXQueryName)
print "New XQuery Ref", newXQueryRef
bytes = readBinaryFile(resourceZip)
result = ALSBConfigurationMBean.importZip(projectRef, bytes, None)
print "#### loaded resources in project:", IPEventProjectName
# check for errors
diags = result.getFailed()
if diags != None and diags.isEmpty() == false:
printDiagMap(diags)
failed = 'IPEvent project <' + IPEventProjectName + '>, one or more files could not be imported properly'
raise CreationFailure(failed)
Do I need to create a Ref object for any resource to be imported? What is the meaning of 'invalid ws-policy'?
Thanks
ferp
solved ...
I changed the file extension of the xquery inside the zip file from .xml to .xquery:
jar tvf /.../DummyEvent-resources.zip
0 Fri Sep 28 14:07:36 CEST 2007 resource/
548 Fri Sep 28 14:09:44 CEST 2007 resource/DummyEvent-IPEvent.xsd
7575 Fri Sep 21 14:22:20 CEST 2007 resource/DummyEvent-IPEventConfig.xquery
I've also noted that if I organize the artifacts inside the zip within folders that structure is preserved in ALSB:
[java] #### loaded resources in project: EventBus-DummyEvent
[java] #### ... XMLSchema EventBus-DummyEvent/resource/DummyEvent-IPEvent
[java] #### ... Xquery EventBus-DummyEvent/resource/DummyEvent-IPEventConfig
Best
ferp
Similar Messages
-
I have and existing web site and domain name. I'd like to know how to import into iweb. I currently use Yahoo's sitebuilder to build my site but Sitebuilder is not compatible with the iMac
Chapter 2.3 on the iWeb FAQ.org site has tips on using some of the existing files, image, audio, video, etc., from the published site in the creation of the new site with iWeb.
OT -
How To Import Into A Table with Multi-Value Fields
Hello:
I have a table with a multi-value field that contains states in which a company does business. It is multi-value because there can be more than one state. I tried to import a text tab-delimited file in which the data was arranged as follows:
Field1 Tab Field 2 Tab OR, WA, CA Tab
The "State field contained the multiple entries separated by a comma (like they appear in a query of the multi-value field), but it won't accept it. Does anyone know how to import into a multi-value field?
Thanks,
Rich Locus, Logicwurks, LLCJoana:
Here's the code I used to populate a multi-value field from a parsed field. The parsing routine could be greatly improved by using the Split function, but at that time, I had not used it yet. FYI... the field name of the multi-value field in
the table was "DBAInStatesMultiValue", which you can see in the example below how it is integrated into the code.
Option Compare Database
Option Explicit
Option Base 1
Dim strInputString As String
Dim intNumberOfArrayEntries As Integer
Dim strStateArray(6) As String
' Loop Through A Table With A Multi-Value Field
' And Insert Values Into the Multi-Value Field From A
' Parsed Regular Text Field
Public Function InsertIntoMultiValueField()
Dim db As DAO.Database
' Main Recordset Contains a Multi-Value Field
Dim rsBusiness As DAO.Recordset2
' Now Define the Multi-Value Fields as a RecordSet
Dim rsDBAInStatesMultiValue As DAO.Recordset2
' The Values of the Field Are Contained in a Field Object
Dim fldDBAInStatesMultiValue As DAO.Field2
Dim i As Integer
' Open the Parent File
Set db = CurrentDb()
Set rsBusiness = db.OpenRecordset("tblBusiness")
' Set The Multi-Value Field
Set fldDBAInStatesMultiValue = rsBusiness("DBAInStatesMultiValue")
' Check to Make Sure it is Multi-Value
If Not (fldDBAInStatesMultiValue.IsComplex) Then
MsgBox ("Not A Multi-Value Field")
rsBusiness.Close
Set rsBusiness = Nothing
Set fldDBAInStatesMultiValue = Nothing
Exit Function
End If
On Error Resume Next
' Loop Through
Do While Not rsBusiness.EOF
' Parse Regular Text Field into Array For Insertion into Multi-Value
strInputString = rsBusiness!DBAInStatesText
Call ParseInputString
' If Entries Are Present, Add Them To The Multi-Value Field
If intNumberOfArrayEntries > 0 Then
Set rsDBAInStatesMultiValue = fldDBAInStatesMultiValue.Value
rsBusiness.Edit
For i = 1 To intNumberOfArrayEntries
rsDBAInStatesMultiValue.AddNew
rsDBAInStatesMultiValue("Value") = strStateArray(i)
rsDBAInStatesMultiValue.Update
Next i
rsDBAInStatesMultiValue.Close
rsBusiness.Update
End If
rsBusiness.MoveNext
Loop
On Error GoTo 0
rsBusiness.Close
Set rsBusiness = Nothing
Set rsDBAInStatesMultiValue = Nothing
End Function
Public Function ParseInputString()
Dim intLength As Integer
Dim intStartSearch As Integer
Dim intNextComma As Integer
Dim intStartOfItem As Integer
Dim intLengthOfItem As Integer
Dim strComma As String
strComma = ","
intNumberOfArrayEntries = 0
strInputString = Trim(strInputString)
intLength = Len(strInputString)
' Skip Zero Length Strings
If intLength = 0 Then
Exit Function
End If
' Strip Any Leading Comma
If Mid(strInputString, 1, 1) = "," Then
Mid(strInputString, 1, 1) = " "
strInputString = Trim(strInputString)
intLength = Len(strInputString)
If intLength = 0 Then
Exit Function
End If
End If
' Strip Any Trailing Comma
If Mid(strInputString, intLength, 1) = "," Then
Mid(strInputString, intLength, 1) = " "
strInputString = Trim(strInputString)
intLength = Len(strInputString)
If intLength = 0 Then
Exit Function
End If
End If
intStartSearch = 1
' Loop Through And Parse All the Items
Do
intNextComma = InStr(intStartSearch, strInputString, strComma)
If intNextComma <> 0 Then
intNumberOfArrayEntries = intNumberOfArrayEntries + 1
intStartOfItem = intStartSearch
intLengthOfItem = intNextComma - intStartOfItem
strStateArray(intNumberOfArrayEntries) = Trim(Mid(strInputString, intStartOfItem, intLengthOfItem))
intStartSearch = intNextComma + 1
Else
intNumberOfArrayEntries = intNumberOfArrayEntries + 1
intStartOfItem = intStartSearch
intLengthOfItem = intLength - intStartSearch + 1
strStateArray(intNumberOfArrayEntries) = Trim(Mid(strInputString, intStartOfItem, intLengthOfItem))
End If
Loop Until intNextComma = 0
End Function
Regards,
Rich Locus, Logicwurks, LLC
http://www.logicwurks.com -
How to create an RDBMS event generator using wlst on weblogic 10.3
how to create an RDBMS event generator using wlst on weblogic 10.3, i got a code fragment needing class "com.bea.wli.management.configuration.RDBMSEventGenChannelConfiguration"
but i can' t find this class in classpath on weblogic 10.3, pls help me, thanks. code sample is better.Hi,
RDBMS Event Generator Channel Rule Definition
When you are creating channel rule definitions in the WebLogic Integration Administration Console, it is recommended that you do not use the Back button if you want to resubmit the details on a page.
You should always use the navigation links provided and create a new channel rule definition.
http://download.oracle.com/docs/cd/E13214_01/wli/docs85/deploy/cluster.html
http://download.oracle.com/docs/cd/E13214_01/wli/docs81/relnotes/relnotesLimit.html
http://otndnld.oracle.co.jp/document/products/owli/docs10gr3/pdf/deploy.pdf
This problem has been seen in the past when defining the channel rule for an RDBMS Event Generator if schema name was specified with the incorrect case (i.e. lowercase when it should have been uppercase or vice versa). To that end, it is suggested to change the case of the schema when creating the channel rule
Regards,
Kal -
Stupid question How to Import into Motion???
Just curious how to import video into Motion, can't get it to go. I use a sony ex3, and Final Cut Pro.
Help please, just getting started!!! Thanks ahead of timeFCS is sooo easy to use it's insane... easy way to import - right click the clip in FC and Send To~ Motion / Color
That's the ultra basic persons way :P -
i want a txt-file or tab dilimited file imported in ical.
I used to use iCalTextImport, but I get an error message on opening the program, saying something like 'an error has occurred - please check your settings! the eror was: can't make "5,11108644555E+5" into type real'.
does anyone know another way?
maybe into a format that ical understands?Have you tried to download icalTextimport again and use the new version?: http://homepage.mac.com/penicuik/FileSharing15.html
Also, have have you tried icalmaker - it does cost money but has many features: http://www.mmisoftware.co.uk/pages/icm.html
hope this helps -
Help creating project specific ALSB Customization file using WLST
I asked this question in August in another forum and was redirected here, but never followed up. I'm hopeful someone has done this...
Is it possible to create an ALSB CUstomization file for a single project using WLST?
If so, does anyone have an example they would be wiling to share. I've been beating my head against the wall for almost 2 days (well, months now...) , and I'm REALLy starting to get a headache from it now....
We're running WLS 9.2 MP2 and ALSB 2.6 RP1
Any help is greatly appreciated,
BrianBrian, OSB specific questions are best directed in the SOA Suite forum:
SOA Suite
It looks like there is an ALSBConfigurationMBean with a customize method, but I have not worked with it and it does not sound like that will give you precisely what you want:
http://edocs.bea.com/alsb/docs261/javadoc/com/bea/wli/sb/management/configuration/ALSBConfigurationMBean.html#customize(java.util.List) -
I have created an animation in Flash and published it as a html5 animation.
How do I get this into an exisitng web page using Dreamweaver?Hi Nancy,
I am using Flash CC2014 which publishing as html.
(When I publish as html with edge animate you can create an oam file which allow the inserting of the resulktant animation into a web page)
The files produced with Flash CC 2014 are: html try.html and html.try
I was hoping I could use some way to just insert the html animation produced by Flash.
Source Code in html file is ....
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>html try</title>
<script src="http://code.createjs.com/easeljs-0.7.1.min.js"></script>
<script src="http://code.createjs.com/tweenjs-0.5.1.min.js"></script>
<script src="http://code.createjs.com/movieclip-0.7.1.min.js"></script>
<script src="html try.js"></script>
<script>
var canvas, stage, exportRoot;
function init() {
canvas = document.getElementById("canvas");
exportRoot = new lib.htmltry();
stage = new createjs.Stage(canvas);
stage.addChild(exportRoot);
stage.update();
stage.enableMouseOver();
createjs.Ticker.setFPS(lib.properties.fps);
createjs.Ticker.addEventListener("tick", stage);
</script>
</head>
<body onload="init();" style="background-color:#D4D4D4">
<canvas id="canvas" width="550" height="400" style="background-color:#99CCFF"></canvas>
</body>
</html>
Tony -
XSL-TEXT: how to import subtemplates in XSL and use xdofx tags?
Hi,
I am working on a BI Publisher Report (XML Publisher 5.6.3 in EBS) to generate labels on a label printer. The output needs to be in plain text format, therefore I decided to use the XSL-TEXT template and create my own XSL translation.
In principle this works pretty fine, but there are two things that worry me a bit:
1. Does anybody know how I could import other XSL files, like sub-templates in RTF? The problem I have is that I don't know the URI or the sub-template. At the moment I store those other XSL files in the OA_MEDIA folder, but this is not really nice. In RFT you can refer to subtemplates with some xdofx commands... this brings me to my second question:
2. In RTF templates you can use the Oracle specific XML tags, including the <xdofx:%> and <xdoxslt:%> tags. Does anybody know if and how I can use them in XSL templates?
Any ideas are highly appreciated!
regards,
David.Hi Vetsrini,
1. but what is the absolute path for my subtemplates if I store them in the Template Manager? How can I refer to them?
This is what the manual says for RTFs:
>
Enter the Import Syntax in the Primary Template
Import the subtemplate to the primary template by entering the following syntax in the
primary template. The import syntax tells the XML Publisher engine where to find the
subtemplate RTF in the Template Manager. This syntax may be entered anywhere in the
template prior to the call-template syntax:
<?import:xdo://APPCODE.TEMPLATE_CODE.lang.TERR?>
where
APPCODE is the Application code you assigned to the subtemplate in the Template
Manager. For example, if you associated this template with the Receivables application,
enter "AR".
TEMPLATE_CODE is the template Code you assigned to the subtemplate in the Template
Manager. For example, AR_CommonComponents.
>
sounds good and easy to me. But I don't have a RTF template. I have just a plain XSLT and those XML Publisher tags do not work there. So how do I get the absolute path of my XSLT templates stored in the Template Manager?
2. I've included the namespace, no error anymore. But the syntax does not result in actions:
<xsl:value-of select="xdoxslt:substr((PRODUCT_NAME),1,2)"/>
{code}
This does not substring() my string, the full string is returned. But anyway, I don't get an error message anymore. Maybe I just used the wrong XDOXSLT function... I need to search for a list of XDOXSLT functions, but that's not very urgent for now. I think I can do the most with plain XSL and inside the DB itself. -
How export report into excel sheet automatically using SSRS 2010?
Hi,
I have created many reports using SQL Server Data Tool 2010 and at my work, we are using active batch to ran reports every month.
Now question is, my boss want me to set up reports such a way that when active batch is ran, reports should be exported into excel sheet automatically with the default values given for parameters at some specific folder location. How can I export report
into excel sheet automatically when active batch is executed?
Please help me on this. Thanks for the help in advance.
VickyCheck this:
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'C:/test.xls'
filetype = 'ASC'
write_field_separator = 'X'
TABLES
data_tab = t_output
Regards. -
How to import into lightroom 3.6 from my pictures windows xp
also, after editing in Develop the photo goes darker in Print and also darker back to Develop and Library
Dear Mr. Wright:
In the back of my mind it seems like I might have seen a CD concerning my HP monitor but I'm not sure. Yes I did see a CD concerning a 15" 17" & 19" screen. I just looked everywhere and can't find a thing. I just remembered I have a (HP vs17e) with small speakers in the bottom corners and I saw that CD about 3 weeks ago. Maybe it will turn up if I keep looking?
About 5 years ago when I was using Lightroom or #1, I remember importing My Pictures from windows xp into the Library Space and picking a Folder to highlight and it would go right into the folder section of Lightroom (no problem). Now now there are 3 screens (2 large ones and 1 small screen and I am totally confused. I've been sick for 3 years and haven't taken any photos for 3 years. Today I shared my 3 folders from My Pictures in windows xp with Lightroom 3.6 and nothing happened in 3.6. So I moved my folders back to My Documents and then drugged the folders to (My Pictures Folder) in My Documents. Now my 3 folders are back in My Pictures in windows xp. Yesterday I had all 3 folders in 1 folder titled E: (much too large) and then the large folder was missing this morning from Lightroom 3.6. When you click on My Pictures in 3.6 you get Sample Pictures...... I deleted the Sample photos from my My Pictures in windows xp but haven't tried clicking on 3.6 (I started working on these 2 problems at 8:00am it's now 7:30pm).
RobertRothePhotog .............. [email protected] -
How to insert into DB in batches using XSU
Hello,
I am inserting data from xml files into different tables .I have got four queries .I want to inert them using batch so that if in any query exception is raised,then whole thing is rollback.
Thanks in advance for any help.Hi Linda,
Yes, it makes sense to do it this way... Otherwise there are lots of complications related to calling an insert statement or plsql pkg from code.
Questions:
1) Can anybody please paste dummy code to be written in AM?
2) How to add "AM Commit" from data controls to bindings? (When I click on the + button on my page definition select action it doesn't show 'Commit')
(The only way to add this action is by drag it and drop it as a button)
(How can I override action listener for this button since it would be #{bindings.Commit.execute})
(I am planning to add all my logic to collect attributes, insert in VO and execute commit in one button)
Thanks
Rahul -
How to deploy app level JMS resource using DeployerRuntime?
I have an app level (described in the app, not global) JMS module. And inside this module I have several different resources.
Here is my question: when using weblogic.management.deploy.DeployerRuntime (or WLST) what syntax should I use in case I need to set target for each JMSResource?
Here is my code:
DeploymentData info = new DeploymentData();
info.addTarget("Server",null);
String[] mods = { "JMSModule" };
info.addTarget("Server",mods);
String[] jRes = { "JMSModule@JMSResources" };
info.addTarget("JMS_Server",jRes);
ObjectName task = ( ObjectName )
connection.invoke ( deployer, "deploy",
new Object[] { path, APP_NAME, "nostage", null, info, new Boolean(true)},
new String[] {"java.lang.String", "java.lang.String", "java.lang.String",
"java.lang.String", "weblogic.management.deploy.DeploymentData", "java.lang.Boolean"} );
I tried different combinations of
String[] jRes = { "JMSModule@JMSResources" };
String[] jRes = { "JMSModule/JMSResources" };
String[] jRes = { "JMSModule\\JMSResources" };
but nothing seems to work.
Thank you.Hi Sunil,
Thanks for the reply, it worked.
Another doubt on the same lines. Now that the jar has been deployed as a library in WLS, when i try to deploy a WAR which refers to this deployed jar library, im unable to. I run into and error stating that the library is inaccessible.
I have to bounce the server and before doing that, i have to manually copy the library.jar from <WLS_domain>/servers/AdminServer/upload/ directory to <WLS_domain>/lib/ directory, once copied i then try to deploy the WAR, then the deployment goes fine.
Is there any means that this deployed library jar be made available soon after deployment and also to avoid copying the file.
Thanks,
Vijay. -
My images are in my C drive. How do I import them into the organizer in elements 6.0?
HowardThanks for your prompt reply.
I've been there but I don't know how to proceed. When I open that window in 'look in' I've placed my pictures. Then in the full window below are shown all my files and folders. What do I put into the 'file name' section?
The 'get photos' and 'copy files and folders' are greyed out. So I am at a loss as to how to proceed.
BTW, I have your book, 'Photoshop Elements 6' and unfortunately I could not find the answer there. So I thank you for your help in this regard.
Howard Diamond -
Why no Rows importing into dest schema by using network_link in data pump?
Hi,
Iam importing tables from source schema to dest schema by using direct network _link without dump file as shown below.
impdp pa_dis_sub/<password> NETWORK_LINK=mylink tables=pa_dis_sub.ipa_hist_bk table_exists_action=replace CONTENT=all directory=Data_Pump_dir logfile=exp_error.log
But no data is loading into dest schema.showing 0rows imported.not able to trace the issue. Any one aware why data is not importing?
Import: Release 11.1.0.7.0 - 64bit Production on Tuesday, 26 July, 2011 0:04:49
Copyright (c) 2003, 2007, Oracle. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting "PA_DIS_SUB"."SYS_IMPORT_TABLE_01": pa_dis_sub/******** NETWORK_LINK=mylink tables=pa_dis_sub.ipa_hist_bk table_exists_action=replace CONTENT=all directory=Data_Pump_dir logfile=exp_error.log
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 0 KB
Processing object type TABLE_EXPORT/TABLE/TABLE
. . imported "PA_DIS_SUB"."IPA_HIST_BK" 0 rows
Job "PA_DIS_SUB"."SYS_IMPORT_TABLE_01" successfully completed at 00:05:14868591 wrote:
Iam not using export.
iam using direct import from source schema to dest schema using network_link option.http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_import.htm#sthref319
Edited by: sb92075 on Jul 25, 2011 9:36 PM
Maybe you are looking for
-
Can I set up a template for importing images in QT Pro?
I would like to set up a process where I define a "template" of how I want a QT Pro movie to be created by importing a bunch of image files in a folder. For example, I would specify it to import image1,image2, image3 etc. that would all be in a folde
-
Need help to start with some file and text manipulation
Hello script mavens, I need help with starting a script that does the following: -within a base folder it takes an inventory (list?) of all the files (which happen to be image files). -creates a new folder inside the base folder and calls it imagesX
-
Is there a way to see free space on an iPod in iTunes 11?
In iTunes 11 I can't find a way to see Remaining Space on a connected iPod. The graphical bar (which oddly only shows useful information when you mouse over it) shows space used, the Summary tab shows Capacity but nothing seems to show Free Space Rem
-
New iOS 4.1 is a battery KiLLER!
As i bought my iPhone 3Gs I used the normal 3. ... iOS versions .Some weeks later i updated the iOS 4. Ok! nothing to say. But with 4.1 my battery is down on 55% after play 40 minutes, 30 minutes of music and 5 min at 3G internet. Also on Standby Mod
-
International Buyers trying to pay with PayPal
I've had a number of customers contact me that they are having problems purchasing. The common factors seem to be that they are International and trying to use PayPal to pay. One person I was able to get working by having her sign in to Adobe using t