Exa,mple
Hi All,
I wrote the query using the query as web service and i would like to display the data in xcelsius just like in spreadsheet.
I am able to get the column names when i put the WSDL in the web service option.
Thanks
Muvva
I dont think one can see the data in the excel without invoking the web service..It may be posible that the webservice u r using is not returning any data.To verify that map the message from the Output Values to label component and check what the message web service is returning.
Well, I'm assuming that u r using Xcelsius 2008.Please follow these steps with the URL i have given:
1. Open Xcelsius and Go to Data Menu --> Connections
2.Click on "Add" button and Select "Web Service Connection".
3.Type the WSDL URL [http://www.webservicex.net/periodictable.asmx?wsdl] in the WSDL URL text box
and Click on Import button.
3a.Go to Usage tab and Select "Refresh On Load"
4.Select the appropiate method i.e.GetAtomicNumber
5.In the Input Values Pane select Select "Element Name" and type "Helium" in the Read From Text box located down the pane.
6.In the Output Values pane, at the bottom click on the arrow button beside "Insert In" text box. Select A1 cell in Excel.
7. Drag and Drop Label component from the components window on the Canvas.
8. Double Click on the Label and map the Link to Cell property to cell A1 in Excel.Increase the label size i.e. make it little bit bigger.
9. Click on Preview Button.
Hope this helps u in mapping it to Spreadsheet table component.
Similar Messages
-
Hi,
I am trying to setup the OSB Routing a Loan Application which comes with the OSB installation.
I followed the steps mentioned in the below URL
http://docs.oracle.com/cd/E13171_01/alsb/docs21/tutorial/tutGettingStarted.html#1046994
When I go to Step 4: Build and Deploy the Business Services and execute the ant to deploy SimpleBean.java
which is available at C:\Oracle\Middleware\Oracle_OSB1\samples\servicebus\examples\src\examples\webservices\jws_basic\normal the build fails with following
error message :-
server:
[jwsc] JWS: processing module normalLoan_jws_basic_ejb
[jwsc] Parsing source files
[jwsc] Parsing source files
[jwsc] [JAM] Error: unexpected exception thrown:
[jwsc] com.bea.util.jam.internal.javadoc.JavadocParsingException: Parsing f
ailure in C:\Oracle\Middleware\Oracle_OSB1\samples\servicebus\examples\src\examp
les\webservices\jws_basic\normal\SimpleBean.java at line 66. Most likely, an an
notation is declared whose type has not been imported.
[jwsc] at com.bea.util.jam.internal.javadoc.JavadocTigerDelegateImpl_15
0.getAnnotationTypeFor(JavadocTigerDelegateImpl_150.java:410)
[jwsc] at com.bea.util.jam.internal.javadoc.JavadocTigerDelegateImpl_15
0.extractAnnotations(JavadocTigerDelegateImpl_150.java:176)
[jwsc] at com.bea.util.jam.internal.javadoc.JavadocTigerDelegateImpl_15
0.extractAnnotations(JavadocTigerDelegateImpl_150.java:152)
[jwsc] at com.bea.util.jam.internal.javadoc.JavadocClassBuilder.addAnno
tations(JavadocClassBuilder.java:404)
[jwsc] at com.bea.util.jam.internal.javadoc.JavadocClassBuilder.populat
e(JavadocClassBuilder.java:216)
[jwsc] at com.bea.util.jam.internal.elements.ClassImpl.ensureLoaded(Cla
ssImpl.java:725)
[jwsc] at com.bea.util.jam.internal.elements.ClassImpl.getSourcePositio
n(ClassImpl.java:417)
[jwsc] at weblogic.wsee.tools.anttasks.JwsLoader.buildClassMap(JwsLoade
r.java:207)
[jwsc] at weblogic.wsee.tools.anttasks.JwsLoader.loadJClasses(JwsLoader
.java:191)
[jwsc] at weblogic.wsee.tools.anttasks.JwsLoader.load(JwsLoader.java:75
[jwsc] at weblogic.wsee.tools.anttasks.JwsModule.loadWebServices(JwsMod
ule.java:569)
[jwsc] at weblogic.wsee.tools.anttasks.JwsModule.generate(JwsModule.jav
a:369)
[jwsc] at weblogic.wsee.tools.anttasks.JwsModule.build(JwsModule.java:2
56)
[jwsc] at weblogic.wsee.tools.anttasks.JwscTask.execute(JwscTask.java:1
84)
[jwsc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:288)
[jwsc] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
[jwsc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
[jwsc] at java.lang.reflect.Method.invoke(Method.java:597)
[jwsc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchU
tils.java:106)
[jwsc] at org.apache.tools.ant.Task.perform(Task.java:348)
[jwsc] at org.apache.tools.ant.Target.execute(Target.java:357)
[jwsc] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[jwsc] at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
a:1337)
[jwsc] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[jwsc] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De
faultExecutor.java:41)
[jwsc] at org.apache.tools.ant.Project.executeTargets(Project.java:1189
[jwsc] at org.apache.tools.ant.Main.runBuild(Main.java:758)
[jwsc] at org.apache.tools.ant.Main.startAnt(Main.java:217)
[jwsc] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
[jwsc] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
[jwsc] [JAM] Error: unexpected exception thrown:
[jwsc] com.bea.util.jam.internal.javadoc.JavadocParsingException: Parsing f
ailure in C:\Oracle\Middleware\Oracle_OSB1\samples\servicebus\examples\src\examp
les\webservices\jws_basic\normal\SimpleBean.java at line 66. Most likely, an an
notation is declared whose type has not been imported.
[jwsc] at com.bea.util.jam.internal.javadoc.JavadocTigerDelegateImpl_15
0.getAnnotationTypeFor(JavadocTigerDelegateImpl_150.java:410)
[jwsc] at com.bea.util.jam.internal.javadoc.JavadocTigerDelegateImpl_15
0.extractAnnotations(JavadocTigerDelegateImpl_150.java:176)
[jwsc] at com.bea.util.jam.internal.javadoc.JavadocTigerDelegateImpl_15
0.extractAnnotations(JavadocTigerDelegateImpl_150.java:152)
[jwsc] at com.bea.util.jam.internal.javadoc.JavadocClassBuilder.addAnno
tations(JavadocClassBuilder.java:404)
[jwsc] at com.bea.util.jam.internal.javadoc.JavadocClassBuilder.populat
e(JavadocClassBuilder.java:216)
[jwsc] at com.bea.util.jam.internal.elements.ClassImpl.ensureLoaded(Cla
ssImpl.java:725)
[jwsc] at com.bea.util.jam.internal.elements.ClassImpl.getSourcePositio
n(ClassImpl.java:417)
[jwsc] at weblogic.wsee.tools.anttasks.JwsLoader.buildClassMap(JwsLoade
r.java:207)
[jwsc] at weblogic.wsee.tools.anttasks.JwsLoader.loadJClasses(JwsLoader
.java:191)
[jwsc] at weblogic.wsee.tools.anttasks.JwsLoader.load(JwsLoader.java:75
[jwsc] at weblogic.wsee.tools.anttasks.JwsModule.loadWebServices(JwsMod
ule.java:569)
[jwsc] at weblogic.wsee.tools.anttasks.JwsModule.generate(JwsModule.jav
a:369)
[jwsc] at weblogic.wsee.tools.anttasks.JwsModule.build(JwsModule.java:2
56)
[jwsc] at weblogic.wsee.tools.anttasks.JwscTask.execute(JwscTask.java:1
84)
[jwsc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:288)
[jwsc] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
[jwsc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
[jwsc] at java.lang.reflect.Method.invoke(Method.java:597)
[jwsc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchU
tils.java:106)
[jwsc] at org.apache.tools.ant.Task.perform(Task.java:348)
[jwsc] at org.apache.tools.ant.Target.execute(Target.java:357)
[jwsc] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[jwsc] at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
a:1337)
[jwsc] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[jwsc] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De
faultExecutor.java:41)
[jwsc] at org.apache.tools.ant.Project.executeTargets(Project.java:1189
[jwsc] at org.apache.tools.ant.Main.runBuild(Main.java:758)
[jwsc] at org.apache.tools.ant.Main.startAnt(Main.java:217)
[jwsc] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
[jwsc] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
[jwsc] [JAM] Warning: failed to resolve class SessionContext
[jwsc] 1 JWS files being processed for module normalLoan_jws_basic_ejb
[jwsc] [JAM] Warning: failed to resolve class javax.ejb.SessionBean
[jwsc] [JAM] Warning: failed to resolve class org.apache.xmlbeans.XmlObject
[jwsc] [JAM] Warning: failed to resolve class com.bea.xml.XmlObject
[jwsc] [JAM] Warning: failed to resolve class javax.xml.rpc.holders.Holder
[jwsc] [JAM] Warning: failed to resolve class org.apache.xmlbeans.XmlObject
[jwsc] [JAM] Warning: failed to resolve class com.bea.xml.XmlObject
[jwsc] [JAM] Warning: failed to resolve class javax.xml.rpc.holders.Holder
[jwsc] [JAM] Warning: failed to resolve class SessionContext
[jwsc] [JAM] Warning: failed to resolve class javax.ejb.SessionBean
[jwsc] JWS: C:\Oracle\Middleware\Oracle_OSB1\samples\servicebus\examples\sr
c\examples\webservices\jws_basic\normal\SimpleBean.java Validated.
[jwsc] [JAM] Warning: failed to resolve class org.apache.xmlbeans.XmlObject
[jwsc] [JAM] Warning: failed to resolve class com.bea.xml.XmlObject
[jwsc] [JAM] Warning: failed to resolve class javax.xml.rpc.holders.Holder
[jwsc] [JAM] Warning: failed to resolve class com.bea.staxb.runtime.ObjectF
actory
[jwsc] [JAM] Warning: failed to resolve class javax.ejb.SessionBean
[jwsc] [JAM] Warning: failed to resolve class SessionContext
[jwsc] Compiling 2 source files to C:\Users\ghugahar\AppData\Local\Temp\_2n
kqph
[jwsc] C:\Oracle\Middleware\Oracle_OSB1\samples\servicebus\examples\src\exa
mples\webservices\jws_basic\normal\SimpleBean.java:5: package javax.ejb does not
exist
[jwsc] import javax.ejb.SessionBean;
[jwsc] ^
[jwsc] C:\Oracle\Middleware\Oracle_OSB1\samples\servicebus\examples\src\exa
mples\webservices\jws_basic\normal\SimpleBean.java:6: package javax.ejb does not
exist
[jwsc] import javax.ejb.SessionContext;
[jwsc] ^
[jwsc] C:\Oracle\Middleware\Oracle_OSB1\samples\servicebus\examples\src\exa
mples\webservices\jws_basic\normal\SimpleBean.java:17: package weblogic.ejbgen d
oes not exist
[jwsc] import weblogic.ejbgen.*;
[jwsc] ^
[jwsc] C:\Oracle\Middleware\Oracle_OSB1\samples\servicebus\examples\src\exa
mples\webservices\jws_basic\normal\SimpleBean.java:21: package weblogic.jws does
not exist
[jwsc] import weblogic.jws.WLHttpTransport;
[jwsc] ^
[jwsc] C:\Oracle\Middleware\Oracle_OSB1\samples\servicebus\examples\src\exa
mples\webservices\jws_basic\normal\SimpleBean.java:66: cannot find symbol
[jwsc] symbol: class SessionBean
[jwsc] public class SimpleBean implements SessionBean {
[jwsc] ^
[jwsc] C:\Oracle\Middleware\Oracle_OSB1\samples\servicebus\examples\src\exa
mples\webservices\jws_basic\normal\SimpleBean.java:32: cannot find symbol
[jwsc] symbol: class Session
[jwsc] @Session(ejbName="Simple",
[jwsc] ^
[jwsc] C:\Oracle\Middleware\Oracle_OSB1\samples\servicebus\examples\src\exa
mples\webservices\jws_basic\normal\SimpleBean.java:54: cannot find symbol
[jwsc] symbol: class WLHttpTransport
[jwsc] @WLHttpTransport(portName="helloPort",
[jwsc] ^
[jwsc] C:\Oracle\Middleware\Oracle_OSB1\samples\servicebus\examples\src\exa
mples\webservices\jws_basic\normal\SimpleBean.java:100: cannot find symbol
[jwsc] symbol : class SessionContext
[jwsc] location: class normal.SimpleBean
[jwsc] public void setSessionContext(SessionContext sc) {}
[jwsc] ^
[jwsc] 8 errors
[AntUtil.deleteDir] Deleting directory C:\Users\ghugahar\AppData\Local\Temp\_2nk
qph
BUILD FAILED
Compile failed; see the compiler error output for details.
Total time: 7 seconds
Any help/pointers in this regard is highly appreciated.
With Regards,
HarshwardhanNow I get this error,
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>BEA-380002: Not Found</faultstring>
<detail>
<con:fault xmlns:con="http://www.bea.com/wli/sb/context">
<con:errorCode>BEA-380002</con:errorCode>
<con:reason>Not Found</con:reason>
<con:location>
<con:node>RouteNode1</con:node>
<con:path>response-pipeline</con:path>
</con:location>
</con:fault>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
thanks -
JEditorPane word wrap problems
I am using a JEditorPane in a chat window that is used, like instant messenger, between two clients. The ability to insert icons and different fonts is available after setting the editor kit to an HTMLEditorKit. However, after using an HTMLEditorKit, the word wrapping is a bit funky in that the words are cut off when wrapping.
Is there any way to get aroudn this while STILL using a JEditorPane (or something similar that can accept HTML?). I would be able to use JTextPane, which wraps correct (I believe...I'm trying to think back to my first implementation), but the icons begin to get tricky there. I know how to insert them, but if I have multiple icons, I would need to find all of the first occuring icons since the string needs to be printed immediately to the screen.
Thanks for any help.I don't have an HTML document. Maybe you are mis-interpreting what I am trying to do :)
I am implementing a simple instant messenger (much like AIM). Right now, I have a JEditorPane that is using an HTMLEditorKit to render HTML. This is used to display emoticons and also change the font and font color. So, the HTML I am generating is manually put in there in the code so text will show up differently - say, the senders name will be red and the recipient will be blue.
Everything is working fine, except the text is wrapping and words are being cut off. In other words, this is happening:
| This is an exa |
| mple of some |
| thing that is ha |
| ppenning in m |
| y chat window. |
----------------------- -
I am real new to Labview and I thought this would be a simple project to help me with the learning process.
I want to build a test fixture for the Pinball machine pcbs. I have a number of them in storage from different manufactures. I think most of this is just going to be inputing a closed switch message to either the lamp matrix or the solinoid drivers and then monitoring the outputs to see if the lamp light or solinoid fired. This is where I want to start.
Could I get an idea and overview of the hardware and basic Labview software approach you would use to do this?
I have a PCI-6035E and a PCI-6534.
Is there some hardware that would make this easier to create or will I need to create a test jig to to buffer the signals before going into the PCI cards?
I am just looking for some general ideas on how to approach this.
Thanks
KevinHello uriahsky,
I would like to point you toward some helpful links in finding common LabVIEW architectures as well as how to utilize the DAQ resources you've mentioned below. I would recommend that you also browse through the available LabVIEW examples as a getting started point for a new application in which you may then use DAQmx functions (highlighted in the getting started link below) to then control your hardware.
http://www.ni.com/gettingstarted/labviewbasics/ (Introduction to NI LabVIEW)
http://www.ni.com/gettingstarted/labviewbasics/examples.htm (Finding Examples for NI LabVIEW)
http://www.ni.com/white-paper/2926/en (Using a State Machine (Event Driven) Architecture)
http://www.ni.com/white-paper/3022/en (Application Design Patterns: Master/Slave)
http://www.ni.com/white-paper/3023/en (Application Design Patterns: Producer/Consumer)
http://www.ni.com/white-paper/5434/en (Getting Started with NI-DAQmx: Main Page)
Wes W
Application Engineering
National Instruments
www.ni.com/support -
WEB CLIENT in Duke�s Bank Application
Hi, I have a problem with running the WEB CLIENT in Duke�s Bank Application.
First about the VERSIONs:
I downloaded
"The Java EE 5 Tutorial" For Sun Java System Application Server Platform Edition 9, dated: June 16 2006
The source for the tutorial examples is obtained from the above mentioned "The Java EE 5 Tutorial" online, when on that page click on "Download". The downloaded file is
javaee-5-doc-tutorial-1[1].0_01.
I am running Sun Java System Application Server Platform Edition 9.0 (build b48).
I am referring to what happens when I follow the instructions on pages 1209-1213 of the manual
After you have read the description of the problem, please see below for output from running:
ant create-tables
ant
ant deploy
which I did according to the tutorial. Also I created the users according to the tutorial.
As you can see below,
ant reported �dukesbank-war\src\conf\persistence.xml� missing
Could someone please explain why (and whether that is the reason for my problems).
This seems significant (though I am an absolute beginner in J2EE and may be wrong). Would it be possible that the file �dukesbank-war\src\conf\persistence.xml� mistakenly was not included in the zipped source code file?
APPLICATION CLIENT it would seem runs okay. I could log on as bankadmin, create a new customer.
WEB CLIENT
First of all the manual says the url is
http://localhost:1189/dukesbank/main.faces
but the url that works is
http://localhost:1189/dukesbank-war/main.faces
Is that just a small inaccuracy in the manual, or there is more to it?
Now for the problem:
I do get the page �Please enter your customer ID and password and click Submit�
If I enter the user 200 (the one created as per the tutorial), I get:
HTTP Status 403 - Access to the requested resource has been denied
type Status report
message Access to the requested resource has been denied
description Access to the specified resource (Access to the requested resource has been denied) has been forbidden.
Sun Java System Application Server Platform Edition 9.0
However, if I enter a non-existing user I get the page �dukesbank-war/j_security_check � which tells me:
�Please check your customer ID and password.�
�. Which is of course a correct response. (I would get the same response with the correct user 200 but incorrect password, which also makes sense)
So, what is the problem when I use a correct user name and password, why can't I proceed?
THE ANT OUTPUTS:
C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\examples\dukesbank>ant create
-tables
Buildfile: build.xml
-pre-init:
init:
check:
tools:
start-db:
[exec] Database already started on host localhost, port 1527.
[exec] Command start-database executed successfully.
delete-tables:
[sql] Executing file: C:\javaeetutorial5\examples\common\sql\javadb\de
.sql
[sql] 24 of 24 SQL statements executed successfully
create-tables:
[sql] Executing file: C:\javaeetutorial5\examples\common\sql\javadb\tu
al.sql
[sql] 181 of 181 SQL statements executed successfully
BUILD SUCCESSFUL
Total time: 9 seconds
C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\examples\dukesbank>ant
Buildfile: build.xml
-pre-init:
init:
default-ear:
-pre-init:
init:
default-ear:
-pre-compile:
bpp-actual-compilation:
[echo] Compiling dukesbank-ejb
[mkdir] Created dir: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\exam
ples\dukesbank\dukesbank-ejb\build\jar
[javac] Compiling 25 source files to C:\javaee-5-doc-tutorial-1[1].0_01\java
eetutorial5\examples\dukesbank\dukesbank-ejb\build\jar
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
-post-compile:
compile:
package:
bpp-package-persistence-unit-war:
bpp-package-persistence-unit-ejb-jar:
[copy] Copying 1 file to C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5
\examples\dukesbank\dukesbank-ejb\build\jar\META-INF
package-persistence-unit:
[delete] Deleting: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\example
s\dukesbank\dukesbank-ejb\build\dukesbank-ejb.jar
[jar] Building jar: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\exa
mples\dukesbank\dukesbank-ejb\build\dukesbank-ejb.jar
[delete] Deleting directory C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial
5\examples\dukesbank\dukesbank-ejb\build\jar
bpp-copy-dist:
[copy] Copying 1 file to C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5
\examples\dukesbank\dukesbank-ejb\dist
default-not-ear:
default:
-pre-init:
init:
default-ear:
copy-common-jars:
-pre-compile:
bpp-actual-compilation:
[echo] Compiling dukesbank-appclient
-post-compile:
compile:
package:
[mkdir] Created dir: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\exam
ples\dukesbank\dukesbank-appclient\build\app-client
[copy] Copying 27 files to C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutoria
l5\examples\dukesbank\dukesbank-appclient\build\app-client
[delete] Deleting: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\example
s\dukesbank\dukesbank-appclient\build\dukesbank-appclient.jar
[jar] Building jar: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\exa
mples\dukesbank\dukesbank-appclient\build\dukesbank-appclient.jar
[delete] Deleting directory C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial
5\examples\dukesbank\dukesbank-appclient\build\app-client
bpp-copy-dist:
[copy] Copying 1 file to C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5
\examples\dukesbank\dukesbank-appclient\dist
default-not-ear:
default:
Trying to override old definition of task iterate
-pre-init:
init:
default-ear:
build-common:
-pre-init:
init:
default-ear:
-pre-compile:
bpp-actual-compilation:
[echo] Compiling dukesbank-ejb
[mkdir] Created dir: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\exam
ples\dukesbank\dukesbank-ejb\build\jar
[javac] Compiling 25 source files to C:\javaee-5-doc-tutorial-1[1].0_01\java
eetutorial5\examples\dukesbank\dukesbank-ejb\build\jar
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
-post-compile:
compile:
package:
bpp-package-persistence-unit-war:
bpp-package-persistence-unit-ejb-jar:
[copy] Copying 1 file to C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5
\examples\dukesbank\dukesbank-ejb\build\jar\META-INF
package-persistence-unit:
[delete] Deleting: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\example
s\dukesbank\dukesbank-ejb\build\dukesbank-ejb.jar
[jar] Building jar: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\exa
mples\dukesbank\dukesbank-ejb\build\dukesbank-ejb.jar
[delete] Deleting directory C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial
5\examples\dukesbank\dukesbank-ejb\build\jar
bpp-copy-dist:
[copy] Copying 1 file to C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5
\examples\dukesbank\dukesbank-ejb\dist
default-not-ear:
default:
copy-common-jars:
[copy] Copying 1 file to C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5
\examples\dukesbank\dukesbank-war\build\web\WEB-INF\lib
-pre-compile:
bpp-actual-compilation:
[echo] Compiling dukesbank-war
-post-compile:
compile:
package:
[mkdir] Created dir: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\exam
ples\dukesbank\dukesbank-war\build\war
bp-copy-classes:
[mkdir] Created dir: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\exam
ples\dukesbank\dukesbank-war\build\war\WEB-INF\classes
[copy] Copying 25 files to C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutoria
l5\examples\dukesbank\dukesbank-war\build\war\WEB-INF\classes
[copy] Copying 27 files to C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutoria
l5\examples\dukesbank\dukesbank-war\build\war
bpp-package-persistence-unit-war:
[mkdir] Created dir: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\exam
ples\dukesbank\dukesbank-war\build\war\WEB-INF\classes\META-INF
[copy] Warning: Could not find file C:\javaee-5-doc-tutorial-1[1].0_01\java
eetutorial5\examples\dukesbank\dukesbank-war\src\conf\persistence.xml to copy.
[copy] Warning: Could not find file C:\javaee-5-doc-tutorial-1[1].0_01\java
eetutorial5\examples\dukesbank\dukesbank-war\src\conf\persistence.xml to copy.
bpp-package-persistence-unit-ejb-jar:
package-persistence-unit:
[delete] Deleting: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\example
s\dukesbank\dukesbank-war\build\dukesbank-war.war
[jar] Building jar: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\exa
mples\dukesbank\dukesbank-war\build\dukesbank-war.war
[delete] Deleting directory C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial
5\examples\dukesbank\dukesbank-war\build\war
bpp-copy-dist:
[copy] Copying 1 file to C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5
\examples\dukesbank\dukesbank-war\dist
default-not-ear:
default:
-pre-compile:
bpp-actual-compilation:
[echo] Compiling dukesbank
-post-compile:
compile:
package:
[echo] building ear package
[mkdir] Created dir: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\exam
ples\dukesbank\build\ear
[mkdir] Created dir: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\exam
ples\dukesbank\build\ear\META-INF
[copy] Copying 1 file to C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5
\examples\dukesbank\build\ear\META-INF
[copy] Copying 1 file to C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5
\examples\dukesbank\build\ear\META-INF
bpp-copy-dist:
[copy] Copying 1 file to C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5
\examples\dukesbank\build\ear
bpp-copy-dist:
[copy] Copying 1 file to C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5
\examples\dukesbank\build\ear
Trying to override old definition of task iterate
bpp-copy-dist:
[copy] Copying 1 file to C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5
\examples\dukesbank\build\ear
[delete] Deleting: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\example
s\dukesbank\build\dukesbank.ear
[jar] Building jar: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\exa
mples\dukesbank\build\dukesbank.ear
bpp-copy-dist:
[copy] Copying 1 file to C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial
\examples\dukesbank\dist
default-not-ear:
default:
BUILD SUCCESSFUL
Total time: 9 seconds
C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\examples\dukesbank>
C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\examples\dukesbank>ant deploy
Buildfile: build.xml
check:
tools:
-pre-deploy:
-pre-init:
init:
check:
tools:
start-db:
[exec] Database already started on host localhost, port 1527.
[exec] Command start-database executed successfully.
delete-tables:
[sql] Executing file: C:\javaeetutorial5\examples\common\sql\javadb\del
.sql
[sql] 24 of 24 SQL statements executed successfully
create-tables:
[sql] Executing file: C:\javaeetutorial5\examples\common\sql\javadb\tut
al.sql
[sql] 181 of 181 SQL statements executed successfully
deploy:
[exec] Command deploy executed successfully.
deploy-url-message:
[echo] Application Deployed at: http://localhost:8080/dukesbank
BUILD SUCCESSFUL
Total time: 13 seconds
C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\examples\dukesbank>
So please do try this all and respond. If you have ever got Duke's Bank WEB CLIENT going on any other version of j2EE tutorial or application server please let me know too, I am happy to go to a previous version!
Message was edited by:
grand_armee on 10-nov-06-
added version information
Message was edited by:
grand_armeeAs you can see below,
ant reported �dukesbank-war\src\conf\persistence.xml�
missing
Could someone please explain why (and whether that is
the reason for my problems).
This seems significant (though I am an absolute
beginner in J2EE and may be wrong). Would it be
possible that the file
�dukesbank-war\src\conf\persistence.xml� mistakenly
was not included in the zipped source code file?You can ignore that warning message. It's part of the BluePrints build system, which checks to see if you have persistence.xml in your WAR so it can package it. The persistence unit is in in the EJB JAR for Duke's Bank:
javaeetutorial5/examples/dukesbank/dukesbank-ejb/src/conf/persistence.xml
First of all the manual says the url is
http://localhost:1189/dukesbank/main.faces
but the url that works is
http://localhost:1189/dukesbank-war/main.faces
Is that just a small inaccuracy in the manual, or
there is more to it? Actually, in "Running the Web Client" the page is:
http://localhost:8080/bank/main.faces
So in your case it should be:
http://localhost:1189/bank/main.faces
Try that URL instead, and see if you get the same error.
-ian -
We're using Native Web Services on Oracle 11g (orawsv servlet). One of my functions returns multiple rows, each with 2 columns named ASSET_NUM and ASSET_DESC:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GET_ITEMSOutput xmlns="http://xmlns.oracle.com/orawsv/CUSTOMERA/WEB_SERVICES">
<RETURN>
<ROWSET>
<ROW>
<ASSET_NUM>076030459</ASSET_NUM>
<ASSET_DESC>LAPTOP</ASSET_DESC>
</ROW>
<ROW>
<ASSET_NUM>076030460</ASSET_NUM>
<ASSET_DESC>DESK</ASSET_DESC>
</ROW>
</ROWSET>
</RETURN>
</GET_ITEMSOutput>
</soap:Body>
</soap:Envelope>
However, the auto-generated WSDL does not include any of the details (eg, column names) of the result, so our customers are complaining that they can't map the data on their end. The corresponding excerpt from the auto-generated WSDL is:
<xsd:element name="GET_ITEMSOutput">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="RETURN">
<xsd:complexType>
<xsd:sequence>
<xsd:any/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
As you can see, it's very general and there is no mention of the columns ASSET_NUM or ASSET_DESC. I suppose we could hand-code our own WSDL, but we have about 20 functions we're exposing as web services and it would be extremely tedious and error-prone to code our own WSDL every time we add a new function. How can we produce a WSDL that provides sufficient details? Is it possible to specify this as part of the return type for each of our functions? Currently they are set to return xmltype.
Our customers are expecting to see something like this in the WSDL:
<xsd:element maxOccurs="1" minOccurs="0" name="ROWSET" >
<xsd:complexType >
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="ROW" >
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="0" name="ASSET_NUM" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="0" name="ASSET_DESC" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
Thanks,
Darrin
Edited by: Darrin D on Nov 7, 2009 9:35 PMDarrin
Since you cannot directly affect the generation of the WSDL, and an XMLType parameter will appear as an xs:any the only solution I can see is to provde an explict function to a more accurate WSDL or return a second parameter from the function that provides the required info
Eg
SQL> connect / as sysdba
Connected.
SQL> --
SQL> set define on
SQL> set timing on
SQL> --
SQL> define USERNAME = WSDLTEST
SQL> --
SQL> def PASSWORD = &USERNAME
SQL> --
SQL> def USER_TABLESPACE = USERS
SQL> --
SQL> def TEMP_TABLESPACE = TEMP
SQL> --
SQL> def HOSTNAME = localhost
SQL> --
SQL> drop user &USERNAME cascade
2 /
old 1: drop user &USERNAME cascade
new 1: drop user WSDLTEST cascade
User dropped.
Elapsed: 00:00:01.80
SQL> grant create any directory, drop any directory, connect, resource, alter session, create view to &USERNAME identified by &PASSWORD
2 /
old 1: grant create any directory, drop any directory, connect, resource, alter session, create view to &USERNAME identified by &PASSWORD
new 1: grant create any directory, drop any directory, connect, resource, alter session, create view to WSDLTEST identified by WSDLTEST
Grant succeeded.
Elapsed: 00:00:00.09
SQL> alter user &USERNAME default tablespace &USER_TABLESPACE temporary tablespace &TEMP_TABLESPACE
2 /
old 1: alter user &USERNAME default tablespace &USER_TABLESPACE temporary tablespace &TEMP_TABLESPACE
new 1: alter user WSDLTEST default tablespace USERS temporary tablespace TEMP
User altered.
Elapsed: 00:00:00.00
SQL> begin
2 dbms_network_acl_admin.drop_acl('localhost.xml');
3 end;
4 /
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.00
SQL> begin
2 dbms_network_acl_admin.create_acl('localhost.xml', 'ACL for &HOSTNAME', '&USERNAME', true, 'connect');
3 dbms_network_acl_admin.assign_acl('localhost.xml', '&HOSTNAME');
4 end;
5 /
old 2: dbms_network_acl_admin.create_acl('localhost.xml', 'ACL for &HOSTNAME', '&USERNAME', true, 'connect');
new 2: dbms_network_acl_admin.create_acl('localhost.xml', 'ACL for localhost', 'WSDLTEST', true, 'connect');
old 3: dbms_network_acl_admin.assign_acl('localhost.xml', '&HOSTNAME');
new 3: dbms_network_acl_admin.assign_acl('localhost.xml', 'localhost');
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.43
SQL> COMMIT
2 /
Commit complete.
Elapsed: 00:00:00.64
SQL> GRANT XDB_WEBSERVICES TO &USERNAME
2 /
old 1: GRANT XDB_WEBSERVICES TO &USERNAME
new 1: GRANT XDB_WEBSERVICES TO WSDLTEST
Grant succeeded.
Elapsed: 00:00:00.01
SQL> GRANT XDB_WEBSERVICES_OVER_HTTP TO &USERNAME
2 /
old 1: GRANT XDB_WEBSERVICES_OVER_HTTP TO &USERNAME
new 1: GRANT XDB_WEBSERVICES_OVER_HTTP TO WSDLTEST
Grant succeeded.
Elapsed: 00:00:00.00
SQL> GRANT XDB_WEBSERVICES_WITH_PUBLIC TO &USERNAME
2 /
old 1: GRANT XDB_WEBSERVICES_WITH_PUBLIC TO &USERNAME
new 1: GRANT XDB_WEBSERVICES_WITH_PUBLIC TO WSDLTEST
Grant succeeded.
Elapsed: 00:00:00.00
SQL> connect &USERNAME/&PASSWORD
Connected.
SQL> --
SQL> --
SQL> --
SQL> declare
2 XMLSCHEMA XMLTYPE := XMLTYPE(
3 '<!-- edited with XML Spy v4.0 U (http://www.xmlspy.com) by Mark (Drake) -->
4 <xs:schema targetNamespace="http://xmlns.example.com/xsd/purchaseOrder"
5 xmlns="http://xmlns.example.com/xsd/purchaseOrder"
6 xmlns:xs="http://www.w3.org/2001/XMLSchema"
7 xmlns:xdb="http://xmlns.oracle.com/xdb" version="1.0"
8 xdb:storeVarrayAsTable="true"
9 elementFormDefault="qualified">
10 <xs:element name="PurchaseOrder" type="PurchaseOrderType" xdb:defaultTable="PURCHASEORDER"/>
11 <xs:complexType name="PurchaseOrderType" xdb:SQLType="PURCHASEORDER_T">
12 <xs:sequence>
13 <xs:element name="User" type="UserType" xdb:SQLName="USERID"/>
14 <xs:element name="CostCenter" type="CostCenterType" xdb:SQLName="COST_CENTER"/>
15 <xs:element name="ShippingInstructions" type="ShippingInstructionsType" xdb:SQLName="SHIPPING_INSTRUCTIONS"/>
16 <xs:element name="SpecialInstructions" type="SpecialInstructionsType" xdb:SQLName="SPECIAL_INSTRUCTIONS"/>
17 <xs:element name="LineItems" type="LineItemsType" xdb:SQLName="LINEITEMS"/>
18 <xs:element name="Comments" type="CommentsType" minOccurs="0"/>
19 </xs:sequence>
20 <xs:attribute name="Reference" type="ReferenceType" xdb:SQLName="REFERENCE"/>
21 <xs:attribute name="DateCreated" type="xs:dateTime" xdb:SQLType="TIMESTAMP WITH TIME ZONE" xdb:SQLName="DATE_CREATED"/>
22 </xs:complexType>
23 <xs:complexType name="LineItemsType" xdb:SQLType="LINEITEMS_T">
24 <xs:sequence>
25 <xs:element name="LineItem" type="LineItemType" maxOccurs="unbounded" xdb:SQLName="LINEITEM" xdb:SQLInline="false" xdb:defaultTable="LIN
EITEM_TABLE"/>
26 </xs:sequence>
27 </xs:complexType>
28 <xs:complexType name="LineItemType" xdb:SQLType="LINEITEM_T">
29 <xs:simpleContent>
30 <xs:extension base="moneyType">
31 <xs:attribute name="ItemNumber" type="xs:integer" xdb:SQLName="ITEMNUMBER" xdb:SQLType="NUMBER"/>
32 <xs:attribute name="PartNumber" type="UPCCodeType" xdb:SQLName="PART_NUMBER"/>
33 <xs:attribute name="Description" type="DescriptionType" use="required" xdb:SQLName="DESCRIPTION"/>
34 <xs:attribute name="UnitCost" type="moneyType" use="required"/>
35 </xs:extension>
36 </xs:simpleContent>
37 </xs:complexType>
38 <xs:simpleType name="ReferenceType">
39 <xs:restriction base="xs:string">
40 <xs:minLength value="18"/>
41 <xs:maxLength value="30"/>
42 </xs:restriction>
43 </xs:simpleType>
44 <xs:complexType name="ShippingInstructionsType" xdb:SQLType="SHIPPING_INSTRUCTIONS_T">
45 <xs:sequence>
46 <xs:element name="name" type="NameType" minOccurs="0" xdb:SQLName="SHIP_TO_NAME"/>
47 <xs:element name="address" type="AddressType" minOccurs="0" xdb:SQLName="SHIP_TO_ADDRESS"/>
48 <xs:element name="telephone" type="TelephoneType" minOccurs="0" xdb:SQLName="SHIP_TO_PHONE"/>
49 </xs:sequence>
50 </xs:complexType>
51 <xs:simpleType name="moneyType">
52 <xs:restriction base="xs:decimal">
53 <xs:fractionDigits value="2"/>
54 <xs:totalDigits value="12"/>
55 </xs:restriction>
56 </xs:simpleType>
57 <xs:simpleType name="quantityType">
58 <xs:restriction base="xs:decimal">
59 <xs:fractionDigits value="4"/>
60 <xs:totalDigits value="8"/>
61 </xs:restriction>
62 </xs:simpleType>
63 <xs:simpleType name="UserType">
64 <xs:restriction base="xs:string">
65 <xs:minLength value="1"/>
66 <xs:maxLength value="10"/>
67 </xs:restriction>
68 </xs:simpleType>
69 <xs:simpleType name="CostCenterType">
70 <xs:restriction base="xs:string">
71 <xs:minLength value="1"/>
72 <xs:maxLength value="4"/>
73 </xs:restriction>
74 </xs:simpleType>
75 <xs:simpleType name="SpecialInstructionsType">
76 <xs:restriction base="xs:string">
77 <xs:minLength value="0"/>
78 <xs:maxLength value="2048"/>
79 </xs:restriction>
80 </xs:simpleType>
81 <xs:simpleType name="NameType">
82 <xs:restriction base="xs:string">
83 <xs:minLength value="1"/>
84 <xs:maxLength value="20"/>
85 </xs:restriction>
86 </xs:simpleType>
87 <xs:simpleType name="AddressType">
88 <xs:restriction base="xs:string">
89 <xs:minLength value="1"/>
90 <xs:maxLength value="256"/>
91 </xs:restriction>
92 </xs:simpleType>
93 <xs:simpleType name="TelephoneType">
94 <xs:restriction base="xs:string">
95 <xs:minLength value="1"/>
96 <xs:maxLength value="24"/>
97 </xs:restriction>
98 </xs:simpleType>
99 <xs:simpleType name="CommentsType" xdb:SQLType="CLOB">
100 <xs:restriction base="xs:string">
101 </xs:restriction>
102 </xs:simpleType>
103 <xs:simpleType name="DescriptionType">
104 <xs:restriction base="xs:string">
105 <xs:minLength value="1"/>
106 <xs:maxLength value="256"/>
107 </xs:restriction>
108 </xs:simpleType>
109 <xs:simpleType name="UPCCodeType">
110 <xs:restriction base="xs:integer">
111 <xs:totalDigits value="14"/>
112 </xs:restriction>
113 </xs:simpleType>
114 </xs:schema>');
115 begin
116 dbms_xmlschema.registerSchema( SCHEMAURL => '/xsd/purchaseOrder.xsd', SCHEMADOC => XMLSCHEMA);
117 end;
118 /
PL/SQL procedure successfully completed.
Elapsed: 00:00:02.82
SQL> declare
2 XMLDOC XMLTYPE := XMLTYPE(
3 '<PurchaseOrder xmlns="http://xmlns.example.com/xsd/purchaseOrder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.e
xample.com/xsd/purchaseOrder /xsd/purchaseOrder.xsd" Reference="ABANDA-20030809194950222GMT" DateCreated="2004-01-01T12:00:00.000000-08:00">
4 <User>ABANDA</User>
5 <CostCenter>A80</CostCenter>
6 <ShippingInstructions>
7 <name>Elizabeth Bates</name>
8 <address>Magdalen Centre, The Oxford Science Park,
9 Oxford,
10 Oxford OX9 9ZB
11 United Kingdom</address>
12 <telephone>123-759-1758</telephone>
13 </ShippingInstructions>
14 <SpecialInstructions>Courier</SpecialInstructions>
15 <LineItems>
16 <LineItem ItemNumber="1" Description="I Still Know What You Did Last Summer" UnitCost="19.99" PartNumber="43396397897">1</LineItem>
17 <LineItem ItemNumber="2" Description="Playing God" UnitCost="19.99" PartNumber="717951000422">5</LineItem>
18 <LineItem ItemNumber="3" Description="Twilight Zone 20" UnitCost="19.99" PartNumber="14381893724">3</LineItem>
19 </LineItems>
20 </PurchaseOrder>');
21 begin
22 insert into PURCHASEORDER values (XMLDOC);
23 commit;
24 end;
25 /
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.12
SQL> set long 100000 pages 0 lines 256
SQL> --
SQL> select object_value
2 from PURCHASEORDER
3 where XMLEXISTS
4 (
5 'declare default element namespace "http://xmlns.example.com/xsd/purchaseOrder"; (: :)
6 $p/PurchaseOrder[@Reference=$ref]'
7 passing 'ABANDA-20030809194950222GMT' as "ref", OBJECT_VALUE as "p"
8 )
9 /
<PurchaseOrder xmlns="http://xmlns.example.com/xsd/purchaseOrder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.example
.com/xsd/purchaseOrder /xsd/purchaseOrder.xsd" Reference="ABANDA-20030809194950222GMT" DateCreat
ed="2004-01-01T12:00:00.000000-08:00">
<User>ABANDA</User>
<CostCenter>A80</CostCenter>
<ShippingInstructions>
<name>Elizabeth Bates</name>
<address>Magdalen Centre, The Oxford Science Park,
Oxford,
Oxford OX9 9ZB
United Kingdom</address>
<telephone>123-759-1758</telephone>
</ShippingInstructions>
<SpecialInstructions>Courier</SpecialInstructions>
<LineItems>
<LineItem ItemNumber="1" Description="I Still Know What You Did Last Summer" UnitCost="19.99" PartNumber="43396397897">1</LineItem>
<LineItem ItemNumber="2" Description="Playing God" UnitCost="19.99" PartNumber="717951000422">5</LineItem>
<LineItem ItemNumber="3" Description="Twilight Zone 20" UnitCost="19.99" PartNumber="14381893724">3</LineItem>
</LineItems>
</PurchaseOrder>
Elapsed: 00:00:00.07
SQL> create or replace package TESTPROC
2 as
3 function getPurchaseOrder(P_REFERENCE VARCHAR2, XMLSCHEMA OUT XMLTYPE) return XMLTYPE;
4 end;
5 /
Package created.
Elapsed: 00:00:00.01
SQL> --
SQL> show errors
No errors.
SQL> --
SQL> create or replace package body TESTPROC
2 as
3 --
4 function getXMLSchema(URL VARCHAR2)
5 return XMLType
6 as
7 V_XML_SCHEMA XMLTYPE;
8 begin
9 select SCHEMA
10 into V_XML_SCHEMA
11 from USER_XML_SCHEMAS
12 where SCHEMA_URL = URL;
13 return V_XML_SCHEMA;
14 end;
15 --
16 function getPurchaseOrder(P_REFERENCE VARCHAR2, XMLSCHEMA OUT XMLTYPE)
17 return XMLType
18 as
19 V_RESULT XMLTYPE;
20 begin
21
22 XMLSCHEMA := GETXMLSCHEMA( '/xsd/purchaseOrder.xsd');
23
24 select object_value
25 into V_RESULT
26 from PURCHASEORDER
27 where XMLEXISTS
28 (
29 'declare default element namespace "http://xmlns.example.com/xsd/purchaseOrder"; (: :)
30 $p/PurchaseOrder[@Reference=$ref]'
31 passing 'ABANDA-20030809194950222GMT' as "ref", OBJECT_VALUE as "p"
32 );
33
34 return V_RESULT;
35 end;
36 --
37 end;
38 /
Package body created.
Elapsed: 00:00:00.03
SQL> show errors
No errors.
SQL> --
SQL> VAR URL VARCHAR2(1024)
SQL> VAR RESULT CLOB;
SQL> --
SQL> BEGIN
2 :URL := 'http://&USERNAME:&PASSWORD@localhost:' || dbms_xdb.getHttpPort() || '/orawsv/&USERNAME/TESTPROC';
3 end;
4 /
old 2: :URL := 'http://&USERNAME:&PASSWORD@localhost:' || dbms_xdb.getHttpPort() || '/orawsv/&USERNAME/TESTPROC';
new 2: :URL := 'http://WSDLTEST:WSDLTEST@localhost:' || dbms_xdb.getHttpPort() || '/orawsv/WSDLTEST/TESTPROC';
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.00
SQL> print url
http://WSDLTEST:WSDLTEST@localhost:80/orawsv/WSDLTEST/TESTPROC
SQL> --
SQL> set long 10000000 pages 0 lines 160
SQL> --
SQL> select httpuritype( :URL || '?wsdl' ).getXML()
2 from dual
3 /
<definitions name="TESTPROC" targetNamespace="http://xmlns.oracle.com/orawsv/WSDLTEST/TESTPROC" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://xmlns
.oracle.com/orawsv/WSDLTEST/TESTPROC" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<types>
<xsd:schema targetNamespace="http://xmlns.oracle.com/orawsv/WSDLTEST/TESTPROC" elementFormDefault="qualified">
<xsd:element name="CXMLTYPE-GETPURCHASEORDERInput">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="XMLSCHEMA-XMLTYPE-OUT">
<xsd:complexType/>
</xsd:element>
<xsd:element name="P_REFERENCE-VARCHAR2-IN" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="GETPURCHASEORDEROutput">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="RETURN">
<xsd:complexType>
<xsd:sequence>
<xsd:any/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="XMLSCHEMA">
<xsd:complexType>
<xsd:sequence>
<xsd:any/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</types>
<message name="GETPURCHASEORDERInputMessage">
<part name="parameters" element="tns:CXMLTYPE-GETPURCHASEORDERInput"/>
</message>
<message name="GETPURCHASEORDEROutputMessage">
<part name="parameters" element="tns:GETPURCHASEORDEROutput"/>
</message>
<portType name="TESTPROCPortType">
<operation name="GETPURCHASEORDER">
<input message="tns:GETPURCHASEORDERInputMessage"/>
<output message="tns:GETPURCHASEORDEROutputMessage"/>
</operation>
</portType>
<binding name="TESTPROCBinding" type="tns:TESTPROCPortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="GETPURCHASEORDER">
<soap:operation soapAction="GETPURCHASEORDER"/>
<input>
<soap:body parts="parameters" use="literal"/>
</input>
<output>
<soap:body parts="parameters" use="literal"/>
</output>
</operation>
</binding>
<service name="TESTPROCService">
<documentation>Oracle Web Service</documentation>
<port name="TESTPROCPort" binding="tns:TESTPROCBinding">
<soap:address location="http://localhost:80/orawsv/WSDLTEST/TESTPROC"/>
</port>
</service>
</definitions>
Elapsed: 00:00:00.15
SQL> VAR RETURN_TEXT CLOB
SQL> VAR RESPONSE_TEXT CLOB
SQL> --
SQL> DECLARE
2 V_SOAP_REQUEST XMLTYPE := XMLTYPE(
3 '<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
4 xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
5 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6 xmlns:xsd="http://www.w3.org/2001/XMLSchema">
7 <SOAP-ENV:Body>
8 <m:CXMLTYPE-GETPURCHASEORDERInput xmlns:m="http://xmlns.oracle.com/orawsv/WSDLTEST/TESTPROC">
9 <m:XMLSCHEMA-XMLTYPE-OUT/>
10 <m:P_REFERENCE-VARCHAR2-IN>ABANDA-20030809194950222GMT</m:P_REFERENCE-VARCHAR2-IN>
11 </m:CXMLTYPE-GETPURCHASEORDERInput>
12 </SOAP-ENV:Body>
13 </SOAP-ENV:Envelope>');
14 V_SOAP_REQUEST_TEXT CLOB := V_SOAP_REQUEST.getClobVal();
15 V_REQUEST UTL_HTTP.REQ;
16 V_RESPONSE UTL_HTTP.RESP;
17 V_BUFFER VARCHAR2(1024);
18 V_RESPONSE_TEXT CLOB;
19 V_RESPONSE_XML XMLTYPE;
20 V_RETURN_XML XMLTYPE;
21 BEGIN
22 DBMS_LOB.CREATETEMPORARY(V_RESPONSE_TEXT, TRUE);
23
24 begin
25 V_REQUEST := UTL_HTTP.BEGIN_REQUEST(URL => :URL, METHOD => 'POST');
26 UTL_HTTP.SET_HEADER(V_REQUEST, 'User-Agent', 'Mozilla/4.0');
27 V_REQUEST.METHOD := 'POST';
28 UTL_HTTP.SET_HEADER (R => V_REQUEST, NAME => 'Content-Length', VALUE => DBMS_LOB.GETLENGTH(V_SOAP_REQUEST_TEXT));
29 UTL_HTTP.WRITE_TEXT (R => V_REQUEST, DATA => V_SOAP_REQUEST_TEXT);
30 V_RESPONSE := UTL_HTTP.GET_RESPONSE(V_REQUEST);
31 LOOP
32 UTL_HTTP.READ_LINE(V_RESPONSE, V_BUFFER, TRUE);
33 DBMS_LOB.WRITEAPPEND(V_RESPONSE_TEXT,LENGTH(V_BUFFER),V_BUFFER);
34 END LOOP;
35 UTL_HTTP.END_RESPONSE(V_RESPONSE);
36 EXCEPTION
37 WHEN UTL_HTTP.END_OF_BODY THEN
38 UTL_HTTP.END_RESPONSE(V_RESPONSE);
39 END;
40
41 :RESPONSE_TEXT := V_RESPONSE_TEXT;
42 V_RESPONSE_XML := XMLTYPE(V_RESPONSE_TEXT);
43
44 select XMLQUERY
45 (
46 'declare namespace SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; (::)
47 declare namespace SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"; (::)
48 declare namespace xsi="http://www.w3.org/2001/XMLSchema-instance"; (::)
49 declare namespace xsd="http://www.w3.org/2001/XMLSchema"; (::)
50 declare namespace m="http://xmlns.oracle.com/orawsv/WSDLTEST/TESTPROC"; (::)
51 $resp/SOAP-ENV:Envelope/SOAP-ENV:Body/m:GETPURCHASEORDEROutput'
52 passing V_RESPONSE_XML as "resp" returning content
53 )
54 into V_RETURN_XML
55 from DUAL;
56
57 select V_RETURN_XML.getClobVal()
58 into :RETURN_TEXT
59 from dual;
60
61 DBMS_LOB.FREETEMPORARY(V_RESPONSE_TEXT);
62
63 END;
64 /
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.14
SQL> --
SQL> set pages 0 lines 160 long 10000
SQL> column RETURN format A160
SQL> --
SQL> select xmlserialize(document XMLTYPE(:RETURN_TEXT) as CLOB indent size=2) RETURN
2 from dual
3 /
<GETPURCHASEORDEROutput xmlns="http://xmlns.oracle.com/orawsv/WSDLTEST/TESTPROC">
<RETURN>
<PurchaseOrder xmlns="http://xmlns.example.com/xsd/purchaseOrder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.exa
mple.com/xsd/purchaseOrder /xsd/purchaseOrder.xsd" Reference="ABANDA-20030809194950222GMT" DateCreated="2004-01-01T12:00:00.000000-08:00">
<User>ABANDA</User>
<CostCenter>A80</CostCenter>
<ShippingInstructions>
<name>Elizabeth Bates</name>
<address>Magdalen Centre, The Oxford Science Park,Oxford,Oxford OX9 9ZBUnited Kingdom</address>
<telephone>123-759-1758</telephone>
</ShippingInstructions>
<SpecialInstructions>Courier</SpecialInstructions>
<LineItems>
<LineItem ItemNumber="1" Description="I Still Know What You Did Last Summer" UnitCost="19.99" PartNumber="43396397897">1</LineItem>
<LineItem ItemNumber="2" Description="Playing God" UnitCost="19.99" PartNumber="717951000422">5</LineItem>
<LineItem ItemNumber="3" Description="Twilight Zone 20" UnitCost="19.99" PartNumber="14381893724">3</LineItem>
</LineItems>
</PurchaseOrder>
</RETURN>
<XMLSCHEMA>
<!-- edited with XML Spy v4.0 U (http://www.xmlspy.com) by Mark (Drake) -->
<xs:schema targetNamespace="http://xmlns.example.com/xsd/purchaseOrder" xmlns="http://xmlns.example.com/xsd/purchaseOrder" xmlns:xs="http://www.w3.org/2001/
XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" version="1.0" xdb:storeVarrayAsTable="true" elementFormDefault="qualified" xdb:flags="8487" xdb:schemaURL="/x
sd/purchaseOrder.xsd" xdb:schemaOwner="WSDLTEST" xdb:numProps="17">
<xs:element name="PurchaseOrder" type="PurchaseOrderType" xdb:defaultTable="PURCHASEORDER" xdb:propNumber="35392" xdb:global="true" xdb:SQLName="PurchaseO
rder" xdb:SQLType="PURCHASEORDER_T" xdb:SQLSchema="WSDLTEST" xdb:memType="258" xdb:defaultTableSchema="WSDLTEST"/>
<xs:complexType name="PurchaseOrderType" xdb:SQLType="PURCHASEORDER_T" xdb:SQLSchema="WSDLTEST">
<xs:sequence>
<xs:element name="User" type="UserType" xdb:SQLName="USERID" xdb:propNumber="35395" xdb:global="false" xdb:SQLType="VARCHAR2" xdb:memType="1" xdb:MemI
nline="true" xdb:SQLInline="true" xdb:JavaInline="true"/>
<xs:element name="CostCenter" type="CostCenterType" xdb:SQLName="COST_CENTER" xdb:propNumber="35396" xdb:global="false" xdb:SQLType="VARCHAR2" xdb:mem
Type="1" xdb:MemInline="true" xdb:SQLInline="true" xdb:JavaInline="true"/>
<xs:element name="ShippingInstructions" type="ShippingInstructionsType" xdb:SQLName="SHIPPING_INSTRUCTIONS" xdb:propNumber="35397" xdb:global="false"
xdb:SQLType="SHIPPING_INSTRUCTIONS_T" xdb:SQLSchema="WSDLTEST" xdb:memType="258" xdb:MemInline="false" xdb:SQLInline="true" xdb:JavaInline="false"/>
<xs:element name="SpecialInstructions" type="SpecialInstructionsType" xdb:SQLName="SPECIAL_INSTRUCTIONS" xdb:propNumber="35398" xdb:global="false" xdb
:SQLType="VARCHAR2" xdb:memType="1" xdb:MemInline="true" xdb:SQLInline="true" xdb:JavaInline="true"/>
<xs:element name="LineItems" type="LineItemsType" xdb:SQLName="LINEITEMS" xdb:propNumber="35399" xdb:global="false" xdb:SQLType="LINEITEMS_T" xdb:SQLS
chema="WSDLTEST" xdb:memType="258" xdb:MemInline="false" xdb:SQLInline="true" xdb:JavaInline="false"/>
<xs:element name="Comments" type="CommentsType" minOccurs="0" xdb:propNumber="35400" xdb:global="false" xdb:SQLName="Comments" xdb:SQLType="CLOB" xdb:
memType="112" xdb:MemInline="true" xdb:SQLInline="true" xdb:JavaInline="true"/>
</xs:sequence>
<xs:attribute name="Reference" type="ReferenceType" xdb:SQLName="REFERENCE" xdb:propNumber="35393" xdb:global="false" xdb:SQLType="VARCHAR2" xdb:memType
="1"/>
<xs:attribute name="DateCreated" type="xs:dateTime" xdb:SQLType="TIMESTAMP WITH TIME ZONE" xdb:SQLName="DATE_CREATED" xdb:propNumber="35394" xdb:global=
"false" xdb:memType="181"/>
</xs:complexType>
<xs:complexType name="LineItemsType" xdb:SQLType="LINEITEMS_T" xdb:SQLSchema="WSDLTEST">
<xs:sequence>
<xs:element name="LineItem" type="LineItemType" maxOccurs="unbounded" xdb:SQLName="LINEITEM" xdb:SQLInline="false" xdb:defaultTable="LINEITEM_TABLE" x
db:propNumber="35401" xdb:global="false" xdb:SQLType="LINEITEM_T" xdb:SQLSchema="WSDLTEST" xdb:memType="258" xdb:MemInline="false" xdb:JavaInline="false" xdb:de
faultTableSchema="WSDLTEST" xdb:SQLCollType="XDB$XMLTYPE_REF_LIST_T" xdb:SQLCollSchema="XDB"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="LineItemType" xdb:SQLType="LINEITEM_T" xdb:SQLSchema="WSDLTEST">
<xs:simpleContent>
<xs:extension base="moneyType">
<xs:attribute name="ItemNumber" type="xs:integer" xdb:SQLName="ITEMNUMBER" xdb:SQLType="NUMBER" xdb:propNumber="35402" xdb:global="false" xdb:memTyp
e="2"/>
<xs:attribute name="PartNumber" type="UPCCodeType" xdb:SQLName="PART_NUMBER" xdb:propNumber="35403" xdb:global="false" xdb:SQLType="NUMBER" xdb:memT
ype="2"/>
<xs:attribute name="Description" type="DescriptionType" use="required" xdb:SQLName="DESCRIPTION" xdb:propNumber="35404" xdb:global="false" xdb:SQLTy
pe="VARCHAR2" xdb:memType="1"/>
<xs:attribute name="UnitCost" type="moneyType" use="required" xdb:propNumber="35405" xdb:global="false" xdb:SQLName="UnitCost" xdb:SQLType="NUMBER"
xdb:memType="2"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:simpleType name="ReferenceType">
<xs:restriction base="xs:string">
<xs:minLength value="18"/>
<xs:maxLength value="30"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="ShippingInstructionsType" xdb:SQLType="SHIPPING_INSTRUCTIONS_T" xdb:SQLSchema="WSDLTEST">
<xs:sequence>
<xs:element name="name" type="NameType" minOccurs="0" xdb:SQLName="SHIP_TO_NAME" xdb:propNumber="35406" xdb:global="false" xdb:SQLType="VARCHAR2" xdb:
memType="1" xdb:MemInline="true" xdb:SQLInline="true" xdb:JavaInline="true"/>
<xs:element name="address" type="AddressType" minOccurs="0" xdb:SQLName="SHIP_TO_ADDRESS" xdb:propNumber="35407" xdb:global="false" xdb:SQLType="VARCH
AR2" xdb:memType="1" xdb:MemInline="true" xdb:SQLInline="true" xdb:JavaInline="true"/>
<xs:element name="telephone" type="TelephoneType" minOccurs="0" xdb:SQLName="SHIP_TO_PHONE" xdb:propNumber="35408" xdb:global="false" xdb:SQLType="VAR
CHAR2" xdb:memType="1" xdb:MemInline="true" xdb:SQLInline="true" xdb:JavaInline="true"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="moneyType">
<xs:restriction base="xs:decimal">
<xs:fractionDigits value="2"/>
<xs:totalDigits value="12"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="quantityType">
<xs:restriction base="xs:decimal">
<xs:fractionDigits value="4"/>
<xs:totalDigits value="8"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="UserType">
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="10"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="CostCenterType">
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="4"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="SpecialInstructionsType">
<xs:restriction base="xs:string">
<xs:minLength value="0"/>
<xs:maxLength value="2048"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="NameType">
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="20"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="AddressType">
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="256"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="TelephoneType">
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="24"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="CommentsType" xdb:SQLType="CLOB">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<xs:simpleType name="DescriptionType">
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="256"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="UPCCodeType">
<xs:restriction base="xs:integer">
<xs:totalDigits value="14"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
</XMLSCHEMA>
</GETPURCHASEORDEROutput>
Elapsed: 00:00:00.14
SQL> exit -
AcroRead.mst settings not applied in installation
Hello,
I downloaded Adobe reader 11, dutch (AdbeRdr11000_nl_NL.exe) and extracted it:
AdbeRdr11000_nl_NL.exe -nos_oc:\temp\temp1\files\2 -nos_ne
Then I opened the .MSI file with the Adobe customization wizard and changed some settings (Eula, updates etc).
After that I saved it and AcroRead.mst was created.
Then on the client (logged in as Administrator) I copied all the files in c:\temp and entered:
msiexec.exe /i AcroRead.msi TRANSFORMS="AcroRead.mst" /quiet
Adobe reader gets installed and I can open it but the changes from the customization wizard are NOT applied.
When I start adobe, I get the EULA and the product updates are still configured as automatic.
I tried with other settings and full path names like these:
msiexec.exe /i "c:\temp\adobe\AcroRead.msi" TRANSFORMS="c:\temp\adobe\AcroRead.mst" /quiet
msiexec.exe /i AcroRead.msi TRANSFORMS=AcroRead.mst /quiet
msiexec.exe /i /qn AcroRead.msi TRANSFORMS=AcroRead.mst
msiexec.exe /i "AcroRead.msi" /q TRANSFORMS="AcroRead.mst"
msiexec.exe /i AcroRead.msi /q TRANSFORMS="AcroRead.mst"
But the result is the same, Adobe reader is installed but without the changed settings.
Could someone help with this please ?
I don't know anymore what to do.
thanks.Copy the examples from http://www.adobe.com/devnet-docs/acrobatetk/tools/AdminGuide/cmdline.html#command-line-exa mples so that you don't have to try random cmd lines. For example, quotes are only used around property params.
Enable logging, and if you still have problems, post you cmd line and log.
hth,
Ben -
Hi Can anyone explain why I'm getting the following error when I run the wsdeploytool?
error: RmiModeler error: java.lang.ClassNotFoundException: com$triple$dqcp$ws$DqcWebServicesInterface
Please note that I have the following end point definition in my jaxrpc-ri.xml file.
interface="com.triple.dqcp.ws.DqcWebServicesInterface"
implementation="com.triple.dqcp.ws.DqcWebServicesImpl"/>
Thanks, SaycatWe have modified the hello example to include a class that is not in the default directory/package but is in a seperate jarfile.
On running, the wsdeploy complains that it cannot find the class in the jar file. So to remedy this we added the "-classpath" option above, but this caused an error:
process-war:
[echo] Running wsdeploy....
[exec] info: created temporary directory: C:\jwsdp-1_0_01\docs\tutorial\exa
mples\jaxrpc\hello\build\wsdeploy-generated\jaxrpc-deploy-af2f55
[exec] info: processing endpoint: MyHello
[exec] error: generator error: generator error: can't create directory: C:\
jwsdp-1_0_01\docs\tutorial\examples\jaxrpc\hello\build\wsdeploy-generated\jaxrpc
-deploy-af2f55\WEB-INF\classes;c:\dev\common\lib\util\ecetutil.jar\hello
[exec] info: created output war file: C:\jwsdp-1_0_01\docs\tutorial\example
s\jaxrpc\hello\dist\hello-jaxrpc.war
[exec] info: removed temporary directory: C:\jwsdp-1_0_01\docs\tutorial\exa
mples\jaxrpc\hello\build\wsdeploy-generated\jaxrpc-deploy-af2f55
Not quite sure what it is trying to do here, but to me this "-classpath" option does not work.
One workaround is to copy the jar into the common\lib directory in the web services pack, but this is fairly extreme!
Surely there is a more practical solution?
T. -
Can I programmatically change a virtual channel's scaling?
I want to be able to read and write the scaling parameters for a virtual channel. Using NIDAQ 6.8 with MAX 2.0 and LV 6.0.2.
ThanksThis question actually belongs in one of the Measurement Devices categories. In the future, please post to the appropriate forum. You will find similar questions and get exposure to others with similar interests when you post directly into one of those categories.
In answer to your question, you can read the virtual channel properties, but you cannot programmatically change them. If there were a finite number of changes, you could have multiple config files that contained the same virtual channel names. Then, you could programmatically switch which config file MAX was using.
Alternatively, you can apply the scaling in your program if you read the raw value through the virtual channel (no scale) and then pass it into a scaling function.
You can find exa
mples for saving virtual channel properties to a text file and for changing config files in the NI Developer Zone. Start at the http://www.ni.com/support page and choose Example Programs from the Technical Resources pulldown menu. Then, type in keywords, such as "virtual channel" or "change NI-DAQ configuration".
Regards,
Geneva L.
Applications Engineer
National Instruments
http://www.ni.com/support -
Toplink 9.0.3 can't compile examples with Weblogic 7.0 SP4
Hi,
i want to test the Toplink Examples with Weblogic but i get compilation errors all over. Can somebody help me out ?
I use the Bea JDK 1.3.1_08 with a Weblogic 7.0 SP 4 Server. Here is the output of the compilation :
[jar] Building jar: C:\PVCS\Dimensions\ORANT\Devtools\toplink\examples\wls
70\examples\ejb\cmp20\singlebean\std_ejb20_cmp_account.jar
[java] C:\PVCS\Dimensions\ORANT\Devtools\toplink\examples\wls70\examples\ej
b\cmp20\singlebean\ejbcgen\examples\ejb\cmp20\singlebean\AccountBean_8259n1__Top
Link_CMP_2_0.java:16: examples.ejb.cmp20.singlebean.AccountBean_8259n1__TopLink_
CMP_2_0 should be declared abstract; it does not define __WL_getIsLocal() in exa
mples.ejb.cmp20.singlebean.AccountBean_8259n1__TopLink_CMP_2_0
[java] public class AccountBean_8259n1__TopLink_CMP_2_0 extends examples.ej
b.cmp20.singlebean.AccountBean implements Cloneable, TopLinkCmpEntity, WLEnterpr
iseBean {
[java] ^
[java] 1 error
[java] Exec failed .. exiting
BUILD FAILED
The jar files of the examples don't deploy either on the server.
thx,
DanielTopLink does not have anything specific to a particular JDBC driver or version built into the JAR.
TopLink 9.0.3 ships with a version of HSQL and places that version's JAR file on its classpath. If you wish to use another version you will need to edit the workbench.cmd or workbench.sh script to replace the existing HSQL JAR file with the one from the version you wish to use.
The entry that references the HSQL jar is "%TL_HOME%\HSQL\lib\hsqldb.jar".
Doug -
Mail.app reading HTML messages - status line?
Is there a status line or other field that displays the contents of an embedded link in HTML messages?
If so, where is it, and how does one enable it?
To be precise, what I am looking for is the equivalent to the status line that Safari displays at the bottom of a browser window where the user can view the contents of a link when the cursor is hovering over a picture or text which is a hyperlink to another document or website.
Why I'm looking for this, is so that when reading eMail with hypertext links (HTML eMail) the destination of the link would be visible, so if someone sends me phishing email with a link that says "https://safeharbor.ebay.com/" and the actual html (which can be seen by using "View => Message => Raw Source") says something like https://190.121.43.66/cgi-bin/steal-this-password.exe?user=myname&email=user@exa mple.com" it is obvious that I shouldn't click on the link. Likewise, when load-pictures is off, I can hover the cursor over the graphic and see whether the graphic is just an image (http://www.site.com/picture.jpg), or is an image with a tracker attached (http://www.site.com/cgi-bin/showpic?email=[email protected]&image=picture.jpg).
I was hoping this would be in the new Mail.app for leopard since creating HTML mail was available, at least in limited form, and Phishing is NOT a new problem. Also, since Mail.app uses the safari rendering engine to display HTML in eMail, it make sense that it could also display link info.
SO, does it exist? Is there some magic key combination or hidden (well hidden) menu or preference option to set to see this simple link information? I know I can do it by viewing the raw source, but that is a royal pain in the a** to read all the gobbletygook, html, css, javascript, etc. that shows up in html pages. And maybe a good percentage of Apple users don't know how to read HTML anyway, although most do know what a URL looks like.
-CarlHow does one go back and EDIT a post to fix a typo, or other grammatical or formatting error?
(My -- strike-through -- text was not supposed to be that way, and I see I'm missing the (") quote at the beginning. I likely put in a dash or two for offsetting it, but apparently that was a formatting hint to strike it out. Arrrgh!) -
Moving Time Machine between FW drives
I just bought a 1TB FireWire external drive to replace a 400GB drive used for media and backup partitions.
I've read that I need to use Disk Utility's "Restore" to move my Time Machine partition from the old drive to the new, but when I try to do this, I consistently fail with the following error about one minute into the process:
"Restore Failure
Could not restore - Operation not permitted"
Not a very useful error: doesn't really indicate what went wrong or how I can fix it. So what do I do? I've already reformatted the target partition (both source and target are the same format: OS X extended + case sensitive + journaled), and I've tried selecting the "erase" option during the copy, and I always fail the same way.
It seems like the media partition will copy (I started that, then cancelled because I saw that it would only take 2 hours and wanted to take on whatever job will run nicely overnight), so it seems like the problem is specific to Time Machine.
Thanks in advance for any suggestions.
--ChrisThanks for the quick followup. Both source and target drives are GUID. I have selected "Erase Destination" in the "Restore" tab. Failed again as before. Here's the new log, different only in the line "Erase Destination: Yes"
2009-07-26 22:57:51 -0400: Restore Disk
2009-07-26 22:57:51 -0400: Source: “Freya”
2009-07-26 22:57:51 -0400: Destination: “Freya1”
2009-07-26 22:57:51 -0400: Erase Destination: Yes
2009-07-26 22:57:51 -0400:
2009-07-26 22:57:51 -0400: Starting Restore…
2009-07-26 22:57:51 -0400: Validating target...
2009-07-26 22:57:57 -0400: done
2009-07-26 22:57:57 -0400: Validating source...
2009-07-26 22:57:57 -0400: done
2009-07-26 22:57:57 -0400: Erasing target device /dev/disk2s3...
2009-07-26 22:58:02 -0400: done
2009-07-26 22:58:07 -0400: Validating sizes...
2009-07-26 22:58:07 -0400: done
2009-07-26 22:58:07 -0400: Copying
2009-07-26 22:58:53 -0400: could not copy /Volumes/Freya 1/Backups.backupdb/Dagger/2009-06-21-003934/Dagger/Applications/AppleScript/Exa mple Scripts; Operation not permitted
2009-07-26 22:58:53 -0400: Bom copy exited with error 1
2009-07-26 22:58:53 -0400:
2009-07-26 22:58:53 -0400: Could not restore - Operation not permitted
2009-07-26 22:58:54 -0400: Could not restore - Operation not permitted
2009-07-26 22:58:54 -0400: -
[solved] Xorg freezing on wakeup with EXA enabled
I am having a weird issue. Whenever I put my laptop to sleep and then I wake it up, Xorg seems to freeze on me. I've noticed this only happens with EXA enabled and it does not happen when the laptop hibernates. I don't have any other issues with X (as far as I can tell) and I really want to use EXA acceleration because otherwise maximizing or restoring windows and also viewing the widget dashboard in KDE 4.4 is painfully slow ... ~2-3s. With EXA, it is instantaneous and since I really put my laptop to sleep a lot, I would like to figure out what is going on.
Here is some info, let me know if you need other information:
xf86-video-ati 6.12.4-3 (xorg-video-drivers)
libgl 7.7.1-0.1
ati-dri 7.7.1-0.1
xorg-server 1.7.5.902-1 (xorg)
xorg-server-utils 7.5-3 (xorg)
xorg-utils 7.6-1 (xorg)
xorg-xinit 1.2.1-1 (xorg)
01:00.0 VGA compatible controller: ATI Technologies Inc M66-P [Mobility Radeon X1700]
xorg.conf:
Section "Device"
Identifier "Card0"
Driver "radeon"
VendorName "ATI Technologies Inc"
BoardName "M66-P [Mobility Radeon X1700]"
Option "DRI" "on"
Option "DynamicPM" "on" # Dynamic powersaving.
Option "ClockGating" "on" # Assisting option for powersaving.
Option "AccelMethod" "EXA" # EXA should fit most cases.
Option "EXAVSync" "on" # EXAVSync is explained above.
Option "DMAForXv" "on" # Forced option in order to enable Xv overlay.
Option "ScalerWidth" "2048" # That should fix some very rare bugs.
Option "EnablePageFlip" "on" # It will not be enabled on R5xx cards.
Option "RenderAccel" "on" # Optional. It should be enabled by default.
Option "AccelDFS" "on" #Optional. See the man page.
Option "BusType" "PCIE"
BusID "PCI:1:0:0"
EndSection
If tried all kinds of combinations with xorg.conf ... even tried it without an xorg.conf and nothing seems to work. It either freezes on wake-up (with EXA) or KDE is slugish (anything else).
I also tried installing the ATI proprietary drivers as well, but I can't since they don't work with the updated versions of X/kernel that I have.
Does any1 have any suggestions or maybe know if it's possible to dynamically stop EXA just before suspending to RAM and enabling it on wake up?
Thanks!
[edit] forgot to mention that I am running x86_64 packages
Last edited by despotic (2010-04-18 17:09:35)Nevermind ... a system update fixed it
-
Intel driver KMS and exa = black screen
Hello, I just upgraded to xorg 1.6 today and have enabled KMS thanks to the howto thread in the fourms. Everything works great with UXA, It is when I try to enable EXA and try to startX I get a black screen and have to do a hard reboot. Does anyone else experiance this? My graphics chip is a Intel x4500HD.
Last edited by dakor (2009-04-12 00:45:03)KMS doesn't work with EXA. Newer drivers enable UXA automatically when KMS is used (but those "newer drivers" have other bugs), but the 2.6.3 version that moved to extra doesn't.
-
According to xorg.freedesktop.org, EXA now works with VIA Unichrome:
Supported:
* i128 (Solid and Copy only so far, incompatible with DGA, only tested on T2R4 cards)
* radeon (r100/r200 with Render accel, r300 and r400 core-only. DGA 2d acceleration unsupported).
* sis (sis/xgi; Solid and Copy only)
* trident cyberblade and xp4 (Solid and Copy only)
* via (Solid, Copy, Render)
However, when I add
Option "AccelMethod" "exa"
to the "Device" section in xorg.conf, EXA is not used, and I get this in Xorg.0.log:
(WW) VIA(0): Option "AccelMethod" is not used
This happens with both the xf86-video-via and xf86-video-unichrome drivers. Could someone please explain to me why this is happening, and how I can get EXA working with one or both of those drivers?JGC wrote:
What makes you think Xorg 7.1 will be better with compositing in the classic ways? EXA has been improved, but it's still experimental and slow. The only improvements I've seen is rendering glitches that got solved and a complete API change to make it more usable.
You will need an OpenGL compositor, like metacity or a patched up version of compiz, and then, you still won't be able to use compositing with AIGLX, since the required driver extensions are not implemented in all DRI drivers.
Also, rendering on a shitty VIA chipset with shared memory and experimental flaky drivers (what else would you call a chip where 3 driver projects exist for and where the developers don't like eachother) don't know what is faster, CPU or "GPU" rendering...
Wait, the required extensions haven't been implemented at all for Via hardware? I thought that it could do compositing if it could handle textures with OpenGL...
(FWIW GPU rendering is faster than CPU rendering on my machine. Unichrome is very low-powered hardware, but for most things it's good enough to get the job done.)
The only plus of the VIA chips are the documentation which are available unofficially. The only problem with it: it's taiwanese english, which means your VIA unichrome card has grammar correction instead of gamma correction on some pages of the specsheet.
LOL, that probably is a big problem. Might explain the crashes with BZFlag.
Maybe you are looking for
-
When is a secondary index used (in select or where)
HI All, We are confused (and new to ABAP) on the various postings on SDN concerning this topic. Replies seem to vary. We have the following select statement: SELECT date1 FROM table2 WHERE material (from a stored internal table) = material-table2 AN
-
Using Notes and Oracle Client in the same application on Linux crashes
This thread is copied from a thread of the same name under Database - General, since I cannot get any replies there. Could someone from Oracle PLEASE comment on this. Our application on Linux loads the Notes client libraries and then the Oracle clien
-
Why does my Macbook Pro crash almost immediately when I'm offline?
My Macbook Pro (late 2007 if i'm right) crashes randomly, whether I'm using a program or not. Suddenly the whole screen freezes (I see a black mouse and not the spinning ball of death). So I'm forced to use the hard restart. It started a while ago, w
-
Best practice configuration for SQL 2014 to achieve HA when hosted on Hyper-V 2012R2 cluster
Hi, I've had a hunt around but so far I've not found a conclusive answer to my question. I am currently moving from a SQL 2008R2 (physical tin) failover cluster to a virtual environment build on Hyper-V 2012R2. I am building everything with SQL 201
-
Since upgrading to Snow Leopard on my iMac, a number of my applications have ceased to work. I have done as many upgrades as I can but still some of them will not open - Adobe Photoshop, Dreamweaver and Cute FTP for instance (my most used application