Is there TopLinkGrid examples with XML descriptor deployment?
Hi,
Oracle docs include examples of using Oracle Coherence (as shared cache) with TopLinkGrid, but with annotations.
Is there somewhere examples/docs about using TopLinkGrid, but with XML descriptor deployment ?
Thanks.
Regards,
Dominique
With TopLink Grid usage configured per Entity using EclipseLink customizers, you can either use annotations or specify in in the eclipselink-orm.xml file.
For example, the following ecilpselink-orm.xml could be used in the OTN GridCache example with all the Java annotations removed. Note the specification of:
<customizer class="oracle.eclipselink.coherence.integrated.config.GridCacheCustomizer"/>--Shaun
<?xml version="1.0" encoding="UTF-8"?>
<entity-mappings version="1.1" xmlns="http://www.eclipse.org/eclipselink/xsds/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.eclipse.org/eclipselink/xsds/persistence/orm http://www.eclipse.org/eclipselink/xsds/eclipselink_orm_1_1.xsd">
<persistence-unit-metadata>
<persistence-unit-defaults>
<access>FIELD</access>
</persistence-unit-defaults>
</persistence-unit-metadata>
<entity class="gridcache.model.Address">
<customizer class="oracle.eclipselink.coherence.integrated.config.GridCacheCustomizer"/>
<table name="GRIDCACHE_ADDRESS">
</table>
<attributes>
<id name="id">
<generated-value />
</id>
<version name="version">
</version>
</attributes>
</entity>
<entity class="gridcache.model.Employee">
<customizer class="oracle.eclipselink.coherence.integrated.config.GridCacheCustomizer"/>
<table name="GRIDCACHE_EMPLOYEE">
</table>
<named-query name="Employee.findByLastNameLike">
<query>SELECT e FROM Employee e WHERE e.lastName LIKE :lastName</query>
</named-query>
<attributes>
<id name="id">
<generated-value />
</id>
<version name="version">
</version>
<one-to-many name="phoneNumbers" mapped-by="owner">
<cascade>
<cascade-all />
</cascade>
</one-to-many>
<one-to-one name="address" fetch="LAZY">
<cascade>
<cascade-all />
</cascade>
</one-to-one>
</attributes>
</entity>
<entity class="gridcache.model.PhoneNumber">
<customizer class="oracle.eclipselink.coherence.integrated.config.GridCacheCustomizer"/>
<table name="GRIDCACHE_PHONE">
</table>
<attributes>
<id name="id">
<generated-value />
</id>
<basic name="number">
<column name="NUM"/>
</basic>
<version name="version">
</version>
<many-to-one name="owner" fetch="LAZY">
</many-to-one>
</attributes>
</entity>
</entity-mappings>
Similar Messages
-
How to deploy a war file with no descriptors in WLS - quick question
Hi All
How do we deploy a war file, which doesnt have weblogic.xml nor web.xml in it ?
We have these xml files.
1- How do we include these xml files ? any command line to do that ?
2- Which is an easier approach to deploy a war file
a) include these xml files into the war and then deploy with WLS using weblogic.Deployer or
b) explode the war and then copy these xml files to its WEB-INF ?
Is there an example we could use to follow to deploy our war file ?
ThanksPuthanampatti, thanks for responding.
What is the complete command line to deploy the war to a managed server, not Admin Server ?
Our thinking is to deploy an exploded war directory but copy the descriptor files first.
What do you think ? -
I have put a lot of work into a docx document on my Mac, but now can't open it as it gives the error message: 'the Open XML file cannot be opened because there are problems with the contents. Details, Unspecific
error, Location: 2'
When opening the original file the message said: 'this file contains word 2007 for Windows equations' etc. but I managed to track changes fine, and saved, closed and re-opened it numerous times without problem. Some graphs seemed moved, and various formulas
were illegible, but no other weirdness was observed.
I have microsoft 2008 installed on my Mac OS X version 10.6.8.
I've tried to fix it using various solutions suggested here, but am afraid am too IT illiterate to have had any luck, please help I'm new to all this!
I've uploaded it to https://www.dropbox.com/s/hkw9k6lyihzoxpc/SittwayPauktawSQUEACREPORT_KD%2BCH.docxHi,
This issue is related strictly to oMath tags and occurs when a graphical object or text box is anchored to the same paragraph that contains the equation.
Please use the "Fix it" tool in the following KB article to resolve the problem. See:
http://support.microsoft.com/kb/2528942
Hope this helps.
Regards,
Steve Fan
TechNet Community Support -
HELLO, I HAVE THE SNOW LEOAPARD 10.6.8, I WOULD LIKE TO UPDATE THE LAST LION. I WOULD LIKE TO KNOW IF THERE ARE PROBLEMS WITH THE SOFTWARE COMPATIBILITY NOW, (EXAMPLES: LOGIC, REASON, SUITE ADOBE CS5 ...) THANK YOU!
Have a look here:
http://applehelpwriter.com/2011/07/24/will-my-old-apps-work-with-lion/
(Like any website owner, I may (or may not) derive compensation from my website) -
Problems with app descriptor.xml
We're having problems getting the AIR install to follow the
entries in the app.xml descriptor. Entries below. Specifically it
is not installing in a subpath of Program Files and Start menu
according to the descriptor, e.g. Program Files\Acme\AcmeApp\...
but instead just in ProgramFiles\... Also it is not binding the
custom file type to the app. This is on Vista. We have several
iterations of installing/uninstalling but it seems to be
uninstalled cleanly. Yet the re-installation does not bind the file
type. Any help would be appreciated.
Tnx,
K.
relevant entries from descriptor:
<!-- The subpath of the standard default installation
location to use. Optional. -->
<!--
<installFolder>Acme/AcmeApp</installFolder> -->
<!-- The subpath of the Windows Start/Programs menu to
use. Optional. -->
<!--
<programMenuFolder>Acme/AcmeApp</programMenuFolder>
-->
<!-- Listing of file types for which the application can
register. Optional. -->
<!-- <fileTypes> -->
<!-- Defines one file type. Optional. -->
<!-- <fileType> -->
<!-- The name that the system displays for the registered
file type. Required. -->
<!-- <name>Acme.Link</name> -->
<!-- The extension to register. Required. -->
<!-- <extension>acme</extension> -->
<!-- The description of the file type. Optional. -->
<!-- <description>Link to Acme App
files</description> -->
<!-- The MIME type. Optional. -->
<!-- <contentType>text/plain</contentType>
-->
<!-- The icon to display for the file type. Optional.
-->
<!-- <icon>
<image16x16></image16x16>
<image32x32></image32x32>
<image48x48></image48x48>
<image128x128></image128x128>
</icon> -->
<!-- </fileType> -->
<!-- </fileTypes> -->Oops file got overwritten with factory version (with all
elements commented out.) Just noticed that a few ms after hitting
'post.'
Tnx,
K. -
OSD: unattend.xml in capture conflicts with unattend in deploy?
Hi,
We need to remove some Windows components in our capture, so we created a small unattend.xml for it.
Now we deploy this capture and apply an xml which contains totally other settings but it fails.
Please advise what best practises is: only 1 unattend.xml in deploy? Then components are installed which we don't want (like Media Center), if we use the unattend.xml in capture only, we lose flexibility: each change we need to capture the image again.
J.
Jan HoedtIf you want to remove Windows features, you could just use DISM:
In WinPE phase, after Apply Operating System Image Step
Add run command line step
Commandline: cmd.exe /c dism.exe /image:%OSDTargetDrive%\ /disable-feature /featurename:MediaCenter /scratchdir:%OSDTargetDrive%\Windows\Temp /norestart
Just make sure that you use %OSDTargetDrive% -variable in your Partition Disk 0 and Apply Operating System Image -steps. -
Error running A Simple MDB example with oc4j
Hi All,
I am new to OC4J, I am trying the example for MDB from OTN's site, A Simple MDB example with OC4J. When I start my OC4J on the command line > java -jar oc4j.jar
I get the following exception:
Error deploying file:/C:/unzipped/mdb_hello_world/build/mdb/mdb.jar homes: No lo
cation set for Topic resource MessageDrivenBean MDB
Error in application mdb: Error loading package at file:/C:/unzipped/mdb_hello_w
orld/build/mdb/mdb.jar, Error deploying file:/C:/unzipped/mdb_hello_world/build/
mdb/mdb.jar homes: No location set for Topic resource MessageDrivenBean MDB
04/07/09 15:21:40 Error instantiating application 'mdb' at file:/C:/unzipped/mdb
helloworld/build/mdb.ear: Error initializing ejb-module; Exception Error in ap
plication mdb: Error loading package at file:/C:/unzipped/mdb_hello_world/build/
mdb/mdb.jar, Error deploying file:/C:/unzipped/mdb_hello_world/build/mdb/mdb.jar
homes: No location set for Topic resource MessageDrivenBean MDB
04/07/09 15:21:41 Error starting HTTP-Server: Address already in use: JVM_Bind
04/07/09 15:21:41 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)
initialized
I have just followed all the steps provided to run the example exactly as given.
I did add my Topic and TopicConnectionFatory entries in my jms.xml -
<topic name="The Topic" location="jms/theTopic">
<description>A MDB topic</description>
</topic>
<topic-connection-factory location="jms/theTopicConnectionFactory" />
Here is the ejb-jar.xml given in the example:
<?xml version="1.0"?>
<!DOCTYPE ejb-jar>
<ejb-jar>
<enterprise-beans>
<message-driven>
<description>My message driven bean</description>
<ejb-name>MDB</ejb-name>
<ejb-class>MDB</ejb-class>
<transaction-type>Container</transaction-type>
<message-driven-destination>
<destination-type>javax.jms.Topic</destination-type>
<subscription-durability>NonDurable</subscription-durability>
</message-driven-destination>
<resource-ref>
<description>The log topic where log events are broadcasted...</description>
<res-ref-name>jms/theTopic</res-ref-name>
<res-type>javax.jms.Topic</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<resource-ref>
<description>The Factory used to produce connections to the log topic...</description>
<res-ref-name>jms/theTopicConnectionFactory</res-ref-name>
<res-type>javax.jms.TopicConnectionFactory</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</message-driven>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>MDB</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Supports</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
Here is my orion-ejb-jar.xml:
<?xml version="1.0"?>
<!DOCTYPE orion-ejb-jar PUBLIC "-//Evermind//DTD Enterprise JavaBeans 1.1 runtime//EN" "http://xmlns.oracle.com/ias/dtds/orion-ejb-jar.dtd">
<orion-ejb-jar deployment-version="1.0.2.2" deployment-time="e7f5a3f42d">
<enterprise-beans>
<message-driven-deployment name="MDB" destination-location="jms/theTopic" connection-factory-location="jms/theTopicConnectionFactory">
<resource-ref-mapping name="jms/theTopic" />
<resource-ref-mapping name="jms/theTopicConnectionFactory" />
</message-driven-deployment>
</enterprise-beans>
<assembly-descriptor>
<default-method-access>
<security-role-mapping name="<default-ejb-caller-role>" impliesAll="true" />
</default-method-access>
</assembly-descriptor>
</orion-ejb-jar>
I don't know what is wrong. Please help me.
RohiniHello,
I guess that you didn't define the Topic and/or TopicConnectionFactory on your OC4J
Inside $J2EE_HOME/config (see: subfolders .../j2ee/home/config e.g.)folder are several xml files appropriate for OC4J configuration. There's also jms.xml. Please, verify this one, it should have some entries for your settings.
Just like in an example below:
<topic-connection-factory name="TopicConnectionFactory" location="jms/TopicConnectionFactory"/>
<topic name="theTopic" location="jms/theTopic"/>
The names should be the same like in your MDB deployment descriptors. It works of course after next OC4J server restart.
I hope helped you
Krzysztof -
Help on creating a ServerSession in Eclipse with XML file
Hi,
I am using Toplink in Eclipse with Tomcat/Apache (or at least trying to :)
I am trying to make the following code work:
Project myProject = XMLProjectReader.read("myproject.xml");
Server serverSession = myProject.createServerSession();
but I get an exception:
{color:#ff0000} +"7099", "The deployment project xml resource {0} was not found on the resource path. Check that the resource name/path and classloader passed to the XMLProjectReader are correct. The project xml should be included in the root of the application's deployed jar, if the project xml is deployed in a sub-directory in the application's jar ensure that the correct resource path using \"/\" not \"\\" is used."+ {color}
- I think the project cannot find the xml file in my project - but I was never sure where this should go in any case - I put it in the META-INF folder but made no difference. Where should I put these xml files?
Any help much appreciatedSimon,
Hi, I assume you are deploying a WAR to Tomcat. The following tutorial on running TopLink using the org.eclipse.persistence.jpa.PersistenceProvider is pure JPA but deals with the same deployment issues.
In particular note that there are two META-INF directories - we want to use only the one off of src.
"Make sure that your persistence.xml (and optionaly orm.xml) file is placed off of the src/META-INF directory and not the default WebContent/META-INF dir so that it gets picked up by the servlet classloader from the classes directory."
http://wiki.eclipse.org/EclipseLink/Examples/JPA/Tomcat_Web_Tutorial#persistence.xml
thank you
/michael
http://www.eclipselink.org -
Adobe Form with XML interface cannot retrieve all data from SAP
hi all
I want to use the Adobe forms for the real estate module.
I had seen that adobe forms can have an interface with XML input and output as parameter.
In the interface type only the /DOCPARAMS an the DOCXML are INPUT parameters which are available.
No other INPUT parameter can be added to it.
When i try to retrieve the data in real estate there are some default function modules for retrieving the data from real estate.
But this function modules also are going to find out if the form which asks for this information has a IMPORT parameter
for the required data. For example, the SENDER data is retrieved, but before the default function module retrieve this data
the function module checks if the form has a INPUT parameter SENDER.
And that is not the case. And i cannot create the SENDER parameter to it, because this INTERFACE type does not allow it.
Does anybody know a solution herefore?
kind regards,
Anton PierhagenHi Bhaskar
It is a long time ago, almost 2 years.
I created my own custom development for calling the Adobe form. This custom development uses the correct function module interface with the IMPORT XML.
The XML which i sent as IMPORT PARAMETER to the form is also created by own custom development. Via the default XML class of SAP
So that was my solution
Kind regards,
Anton Pierhagen -
hi all
I want to use the Adobe forms for the real estate module.
I had seen that adobe forms can have an interface with XML input and output as parameter.
In the interface type only the /DOCPARAMS an the DOCXML are INPUT parameters which are available.
No other INPUT parameter can be added to it.
When i try to retrieve the data in real estate there are some default function modules for retrieving the data from real estate.
But this function modules also are going to find out if the form which asks for this information has a IMPORT parameter
for the required data. For example, the SENDER data is retrieved, but before the default function module retrieve this data
the function module checks if the form has a INPUT parameter SENDER.
And that is not the case. And i cannot create the SENDER parameter to it, because this INTERFACE type does not allow it.
Does anybody know a solution herefore?
kind regards,
Anton PierhagenI've found a own workaround for this problem
-
Problem with XML and XSLT, help...
Okay, I have this XML doc (called stocks.xml):
<?xml:stylesheet type="text/xsl" href="stocks.xsl" version="1.0" encoding="UTF-8"?>
<portfolio>
<stock>
<symbol> SUNW </symbol>
<name> Sun Microsystem </name>
<price> 12.95 </price>
</stock>
<stock>
<symbol> HPW </symbol>
<name> Hewlet Packard </name>
<price> 53.50 </price>
</portfolio>
And I have this XSLT doc (called stocks.xls):
?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xls="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<html>
<head>
<title> Stocks </title>
<body bgcolor="#ffffcc">
<xsl:apply-template />
</body>
</head>
</html>
</xsl template>
<xsl:template match="portfolio">
<table border="2">
<tr>
<th> Stock Symbol </th><th> Company Name </th><th> Price </th>
</tr>
<xsl:for-each select="stock">
<tr>
<td>
<i><xsl:value-of select="symbol" /></i>
</td>
<td>
<xsl:value-of select="price" />
</td>
</tr>
</xsl:for-each>
</table>
</xsl template>
</stylesheet>
When I try to retrieve the stocks.xml document with
IE, the browser said, there is an error on line 2, can not
recognize xsl:
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
Reference to undeclared namespace prefix: 'xsl'. Error processing resource 'http://localhost:8080/examples/jsp/stocks/stocks.xsl'. Line 2, Position 71
<xsl:stylesheet version="1.0" xmlns:xls="http://www.w3.org/TR/WD-xsl">
I just follow this from an example of XML tutorial.
Please help, what is it that I miss? Seems everything
I have is okay....??
Thanks,
Ted.Thanks you all!
You have spotted that mistyped.
However, turns out Internet Browser that I have does not permit the use of XSL. After I fixed the file, I got this
message:
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
Keyword xsl:apply-template may not be used here.
Oh well...
Anybody knows, if IE can or can not be used to view the
XML that reference XSL??
Thanks,
Ted. -
Oracle Reports with XML output showing data as asterik character
Hello,
I'm trying to create an Oracle report with xml output. Here is the issue I'm having some of the columns in my report are of datatype number. When I run the report and generate xml file the values for those columns(datatype number) are showing as (*) character, other columns are showing fine. But when I run the report as text output then data is fine. I don't understand why this is happening.
The property of column is Column Type - Database Scalar, Datatype - Number , width 0,-127.
Does the width has to do anything with this?
I'm using Report Builder 6.0.8.11.3, DB version 10g.
Can anyone please help me with the issue I'm having.
ThanksIf the links in your example report1 and report2
follow my format stated earlier
http://machine:port/reports/rwservlet/report=reportnam
e.rdf&destype=cache& paramform=htmlcss&server=<YourReportSe
rverName>&userid=scott/tiger@hrdb&desformat=pdf
This is what I believe
>
so http://machine:port/ is the port where
JBoss is running and
This should be the port that the report server is listening on
>
server=<YourReportServerName> is the name of
my oracle report server
so I call the above link in my current application
and the report would show up
Yes
>
that means (correct me if I am wrong) that my reports
would have to be deployed in OracleAS
Yes
>
I have to try all this yet as till this point I was
trying to run Oracle reports deployed in JBoss...
This may be possible, I am not sure.
>
Oracle J2EE Thin Client?
I am not sure what this is used for in your setup. -
Hello, I would like to create an extention that will help to
manage a
glossary.
First I need to decide on the structure of the xml document
that will
contain all glossary entries. Since I don't have much
experience with XML in
extention content, I was wondering if there are certain
recommendations I
should follow.
What is preferable: using attributes that will holt the
content or rather
having xml-elements. What is easy to parce?
I would greatly appreciate any tips, help and suggestions.
Olyalyu.oO(olga)
>First I need to decide on the structure of the xml
document that will
>contain all glossary entries. Since I don't have much
experience with XML in
>extention content, I was wondering if there are certain
recommendations I
>should follow.
I would start as simple as possible, for example with
something like
this:
<glossary>
<entry>
<term>...</term>
<explanation>...</explanation>
</entry>
<entry>
<term>...</term>
<explanation>...</explanation>
</entry>
</glossary>
Of course it also depends on what you want to do with this
structure and
if you need additional informations.
>What is preferable: using attributes that will holt the
content or rather
>having xml-elements. What is easy to parce?
There's no real rule-of-thumb whether to use elements or
attributes.
If unsure, use elements.
Micha -
Using BPEL console testing with XML attributes
I'm having trouble with using an XML attribute in my BPEL process. When I put an attribute on my input element, the BPEL Console test page no longer works. Here's what I'm doing:
I create a synchronous new BPEL project in JDeveloper using the default input and output XSDs, and add a simple assign to assign the input to the output. When I deploy this and look at it in BPEL console, I can see the input field and enter my value to test.
Now I go back into JDeveloper and add an attribute to the input element, and then redeploy my process. Now when I go into BPEL console, the Initiate tab no longer has any field for me to enter my value. Clicking the XML Source radio button doesn't help either. (I also tried invoking the BPEL process web service through the app server control - same issue.)
I'm using JDeveloper 10.1.3.3 with App Server 10.1.3.3.0. Does anyone know how to make the BPEL Console testing work with XSDs that contain attributes?
Thanks,
SkipA bit more info on this. It doesn't appear that the problem is limited to the console tester. I created another BPEL process which calls my original process, and attempted to set the attribute on the input using the Assign activity. JDeveloper generated this:
<assign name="Assign_1">
<copy>
<from variable="inputVariable" part="payload"
query="/client:TestAttributes2ProcessRequest/client:input"/>
<to variable="Invoke_1_process_InputVariable" part="payload"
query="/ns1:TestAttributesProcessRequest/ns1:input"/>
</copy>
<copy>
<from expression="'bob'"/>
<to variable="Invoke_1_process_InputVariable" part="payload"
query="/ns1:TestAttributesProcessRequest/ns1:input/@attribute1"/>
</copy>
</assign>
As you can see this is mapping a variable into the /TestAttributesProcessRequest/input element and then attempting to set the attribute of that element to the value 'bob'. This compiles just fine but when this code is executed, this error occurs:
Error in <assign> expression: <to> value is empty at line "87". The XPath expression : "" returns zero node, when applied to document shown below:
oracle.xml.parser.v2.XMLElement@7efe7efe
(Line 87 is query="/ns1:TestAttributesProcessRequest/ns1:input/@attribute1"/>)
Is there something wrong with this generated code? Do I need to do some kind of custom code to set attributes, instead of using the graphical tools in JDeveloper? -
Is there any example snippet for XPath using namespace
Hi,
I have used XpathApi class to get the XML node matching my xpath that does not deal with namespaces and it works for me. However, it does not seem to work well when I construct the xpath with namespaces (probably I may be doing something wrong example: //ns:node1/@ns:attr1).
Can anyone give pointers or some example snippet or some links to handle Xpath with namespaces.
Also if there is any better approach (Classes or framework) for handing XPath with namespaces then please let me know.
Thanks,
-vcAnkitG wrote:
Hi All,
Is there any example for N9010A EXA signal analyzer , I tried to use example of MXA got from the driver page but couldnt get to work. I need to capture the RF data form the analyzer. Please let me know if there any example or way to do it.
That is an Agilent instrument. Shouldn't be looking for examples on THEIR website?????
Maybe you are looking for
-
Backing up Local File Server to a remote File Server - Best way?
Hi all, I am building a project for my University Dissertation which is based on the implementation of an ISO 27000 compliant virtualised environment. I have three sites ( offices ) each with their own local file server, that i would like to back up
-
I have some movies on my MBP and want to write them onto DVD so I can play them on my DVD player. They are played through quicktime on my MBP, if I burn them to DVD will they just automatically play through my DVD player or do I have to do something
-
Why are the phone sales lying to customers telling them they will get a new phone under the warranty
This is my story from Store 1513 2441 North Maize Rd Wichita, KS 67205 Why are the cell phone sales people lying to customers by telling them they will get a brand new replacement phone under the purchased warranty when they really have to wait to be
-
Clearcase and JDeveloper integration
Hi, Iam working on integrating ClearCase with JDeveloper. I want to check in and check out files from the IDE directly. But during the process I encountered the following error. Any help is much appreciated. Tried the following: 1. Downloaded/updated
-
External Hard Drive for my G4?
Hi -- I'm looking for an external hard drive for my Dual 450 MHz PowerPC G4 but I'm not sure about a couple of things: My machine's older (built in 2001 or so), running OS 10.4.6. Here are a couple more details: Machine model: PowerMac 3,3 CPU Type: