Build-impl.xml issue
Had a working project but now the app will not deploy.
I keep getting failures at the nbdeploy tag of the build-impl.xml file
below:
"<target name="run" depends="run-deploy,run-display-browser" description="Deploy to server and show in browser."/>
<target name="run-deploy" depends="jsCreatorDist">
<nbdeploy debugmode="false" clientUrlPart="${client.urlPart}" forceRedeploy="${forceRedeploy}"/>
</target>
it says "Application WebDemo is already deployed on other targets."
Anyone have any idea?
I had the same problem when building and deploying a project with NetBeans IDE. As I found it is a problem about web.xml ant context.xml files. I modified context.xml as i added antiJARLocoking ="true". And I found multiple declarations for some servlets in web.xml and removed them.
May be these help you.
Similar Messages
-
Two unexplained compile errors in build-impl.xml
Hi, I am encountering two errors when trying to run my programs from NetBeans 6.0 (Run Main Project F6):
...\Java\Generics_1_0_0\nbproject\build-impl.xml:412: The following error occurred while executing this line:
<!--
=================
EXECUTION SECTION
=================
-->
<target depends="init,compile" description="Run a main class." name="run">
<j2seproject1:java> <-------- HERE !!!
<customize>
<arg line="${application.args}"/>
</customize>
</j2seproject1:java>
</target>
<target name="-do-not-recompile">
<property name="javac.includes.binary" value=""/>
</target>...\Java\Generics_1_0_0\nbproject\build-impl.xml:279: java.lang.ThreadDeath
<target name="-init-macrodef-java">
<macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
<attribute default="${main.class}" name="classname"/>
<element name="customize" optional="true"/>
<sequential>
<java classname="@{classname}" dir="${work.dir}" fork="true"> <------------- HERE
<jvmarg line="${run.jvmargs}"/>
<classpath>
<path path="${run.classpath}"/>
</classpath>
<syspropertyset>
<propertyref prefix="run-sys-prop."/>
<mapper from="run-sys-prop.*" to="*" type="glob"/>
</syspropertyset>
<customize/>
</java>
</sequential>
</macrodef>
</target>Yet, when I Clean and Build Main Project (Shift+F11), I get no errors. I have been restructuring my application recently by creating several java library project and moving class files. Anybody knows what is happening? How can I solve this issue? Thanks !!The problem disappeared, I don't how and I don't know how...!!!
-
Error build-impl.xml:577:
i using netbeans 6.8 and while running my program an error "build-impl.xml:577: The module has not been deployed" occured . my web.xml file is shown below
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
<context-param>
<param-name>no</param-name>
<param-value>100203231982381</param-value>
</context-param>
<servlet>
<servlet-name>servlet1</servlet-name>
<servlet-class>servlet1</servlet-class>
</servlet>
<servlet>
<servlet-name>listener</servlet-name>
<servlet-class>listener</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>servlet1</servlet-name>
<url-pattern>/s1</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>listener</servlet-name>
<url-pattern>/l1</url-pattern>
</servlet-mapping>
<listener>
<listener-class>listener</listener-class>
</listener>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
</web-app>i m trying to use context parameter in my servlets there are two servlets one is listener.java which implements ServletContextListener another is servlet1.java i dont undertand the error everything is fine in both the files plz help meThe <servlet-class> tag should contain the fully qualified name of the Servlet eg "com.something.Servlet1"
If they are in the default package you may want to move them to avoid any unexpected behaviour - link explains:
http://faq.javaranch.com/java/PackageYourBeans
m -
Build-impl.xml Wscompile cannot be found
I have my webservice working fine when I run it thru Netbeans and the Sun server. When I try using tomcat I get the error:
build-impl.xml:281 taskdef class com.sun.xml.rpc.tools.ant.Wscompile cannot be found.
I tried including:
jaxrpc-impl.jar which is where the wscompile exists, but I still got the same error. What am I missing here?You'll need to add jaxrpc-impl.jar to your
classpath.
You can find it under %JWSDP_HOME%\jaxrpc\lib
If you haven't got JWSDP then try
http://java.sun.com/webservices/downloads/webservicesp
ack.htmlhello...
i want to add jaxepc-impl.jar to classpath.
i got the same problem.
i check the user variable c:\sun\jwsdp-1.6\jwsdp_shared\bin;c:\sun\jwsdp-1.6\jwsdp_shared\bin
have been there.
but still the same error appear in the netbeans.
i hope can't get the one-by-one steps guidelines from u.
thanks -
HowTo: Compilie JavaFX with Ant (without netbeans build-impl.xml)?
Howdy, see subject :)
Cheers!Here's a cleaner solution....
1. Download and install the SDK on your machine
2. Copy the SDK installation files into your project (I copied c:\Program Files\JavaFX\javafx-sdk-1.0 to ./Resources/JavaFX/. in my project) - this is used for compilation only and not packaged with distro.
You might want to now uninstall the SDK for accurate testing
3. Configure Ant (as below).....
Since I put my JavaFX SDK in my project under ./Resources/JavaFX/javafx-sdk1.0 you will see this occur in the config below.
<?xml version="1.0"?>
<project name="MyJavaFXProject" default="compile" basedir=".">
<path id="javafx.classpath">
<fileset dir="./Resources/JavaFX/javafx-sdk1.0/lib">
<include name="**/*.jar" />
</fileset>
</path>
<taskdef classname="com.sun.tools.javafx.ant.JavaFxAntTask" name="javafxc">
<classpath refid="javafx.classpath" />
</taskdef>
<target name="compile" depends="prepare" description="compile java and fx source">
<javac srcdir="./Source/Java" destdir="./build/classes" includes="**/*.java"/>
<javafxc srcdir="./Source/Java" destdir="./build/classes" includes="**/*.fx" executable="./Resources/JavaFX/javafx-sdk1.0/bin/javafxc.exe">
<classpath refid="javafx.classpath" />
</javafxc>
</target>
<target name="prepare" description="create build directory for compiler output">
<mkdir dir="./build"/>
<mkdir dir="./build/classes"/>
</target>
<target name="clean">
<delete includeemptydirs="true">
<fileset dir="build" includes="**/*"/>
</delete>
</target>
</project>Hope this helps someone, and p.s.... if you are a maven user.. perhaps you can repackage the JavaFX SDK and install it in a Maven repository. -
FlexUnit4SampleCIProject will not build for me with build.air.xml
I have I6 of Burrito. I downloaded the FlexUnit4SampleCIProject and followed set-up instrucitons on this page:
http://docs.flexunit.org/index.php?title=Ant_Task
When I leave in all the default source and run it using:
ant -v -f build.air.xml clean package
it goes for awhile and then fails with a:
BUILD FAILED
/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/build .air.xml:65: Could not create application descriptor
What am I doing wrong? Here is the full log from terminal on my Mac running Snow Leopard with ant 1.8:
admin-MacBookPro:FlexUnit4SampleCIProject brantner$ ant -v -f build.air.xml clean package
Apache Ant version 1.8.1 compiled on September 21 2010
Buildfile: /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/buil d.air.xml
Detected Java version: 1.6 in: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Detected OS: Mac OS X
parsing buildfile /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/buil d.air.xml with URI = file:/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject /build.air.xml
Project base dir set to: /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject
parsing buildfile jar:file:/usr/share/java/ant-1.8.1/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/usr/share/java/ant-1.8.1/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file
[property] Loading Environment env.
Build sequence for target(s) `clean' is [clean]
Complete build sequence is [clean, init, compile, test, package, ]
clean:
[delete] Deleting directory /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/targ et
[delete] Deleting directory /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/targ et/bin
[delete] Deleting directory /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/targ et/dist
[delete] Deleting directory /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/targ et/report
[delete] Deleting directory /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/targ et
Build sequence for target(s) `package' is [init, compile, test, package]
Complete build sequence is [init, compile, test, package, clean, ]
init:
[mkdir] Created dir: /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/targ et
[mkdir] Created dir: /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/targ et/bin
[mkdir] Created dir: /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/targ et/report
[mkdir] Created dir: /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/targ et/dist
compile:
[mxmlc] Loading configuration file /Applications/Adobe Flash Builder 4.5/sdks/4.5.0/frameworks/flex-config.xml
[mxmlc] Required RSLs:
[mxmlc] framework_4.5.0.20135.swf with 1 failover.
[mxmlc] textLayout_2.0.0.232.swf with 1 failover.
[mxmlc] spark_4.5.0.20135.swf with 1 failover.
[mxmlc] sparkskins_4.5.0.20135.swf with 1 failover.
[mxmlc] mx_4.5.0.20135.swf with 1 failover.
[mxmlc] /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/targ et/bin/Main.swf (63438 bytes)
test:
[flexunit] Validating task attributes ...
[flexunit] Generating default values ...
[flexunit] Using the following settings for compilation:
[flexunit] FLEX_HOME: [/Applications/Adobe Flash Builder 4.5/sdks/4.5.0]
[flexunit] player: [air]
[flexunit] sourceDirectories: ["/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/sr c/main/flex"]
[flexunit] testSourceDirectories: ["/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/sr c/test/flex"]
[flexunit] libraries: ["/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/li bs/flexunit-aircilistener-4.1.0.swc","/Users/brantner/Documents/burrito/flexunit-flexunit- d3a56a1/FlexUnit4SampleCIProject/libs/flexunit-cilistener-4.1.0.swc","/Users/brantner/Docu ments/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/libs/flexunit-core-flex-4 .1.0.swc","/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIPr oject/libs/flexunit-uilistener-4.1.0.swc"]
[null] Executing '/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java' with arguments:
[null] '-jar'
[null] '/Applications/Adobe Flash Builder 4.5/sdks/4.5.0/lib/mxmlc.jar'
[null] '--version'
[null]
[null] The ' characters around the executable and arguments are
[null] not part of the command.
[null] Output redirected to property: SDK_VERSION
[flexunit] Found SDK version: 4
[flexunit] Created test runner at [/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/tar get/bin/TestRunner.mxml]
[flexunit] Compiling test classes: [org.flexunit.demo.EchoPanelTest, org.flexunit.demo.SampleTest]
[flexunit] Executing '/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java' with arguments:
[flexunit] '-Xmx256M'
[flexunit] '-jar'
[flexunit] '/Applications/Adobe Flash Builder 4.5/sdks/4.5.0/lib/mxmlc.jar'
[flexunit] '+flexlib'
[flexunit] '/Applications/Adobe Flash Builder 4.5/sdks/4.5.0/frameworks'
[flexunit] '+configname=air'
[flexunit] '-output'
[flexunit] '/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/tar get/bin/TestRunner.swf'
[flexunit] '-source-path'
[flexunit] '/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/src /main/flex'
[flexunit] '/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/src /test/flex'
[flexunit] '-library-path+=/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4Samp leCIProject/libs/flexunit-aircilistener-4.1.0.swc'
[flexunit] '-library-path+=/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4Samp leCIProject/libs/flexunit-cilistener-4.1.0.swc'
[flexunit] '-library-path+=/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4Samp leCIProject/libs/flexunit-core-flex-4.1.0.swc'
[flexunit] '-library-path+=/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4Samp leCIProject/libs/flexunit-uilistener-4.1.0.swc'
[flexunit] '-headless-server=true'
[flexunit] '/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/tar get/bin/TestRunner.mxml'
[flexunit]
[flexunit] The ' characters around the executable and arguments are
[flexunit] not part of the command.
[flexunit]
[null] Error redirected to property: MXMLC_ERROR
[null] Loading configuration file /Applications/Adobe Flash Builder 4.5/sdks/4.5.0/frameworks/air-config.xml
[null] /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/targ et/bin/TestRunner.swf (491869 bytes)
[flexunit] Using the following settings for the test run:
[flexunit] FLEX_HOME: [/Applications/Adobe Flash Builder 4.5/sdks/4.5.0]
[flexunit] haltonfailure: [false]
[flexunit] headless: [false]
[flexunit] display: [99]
[flexunit] localTrusted: [true]
[flexunit] player: [air]
[flexunit] port: [1024]
[flexunit] swf: [/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/tar get/bin/TestRunner.swf]
[flexunit] timeout: [60000ms]
[flexunit] toDir: [/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/tar get/report]
[flexunit] Setting up server process ...
[flexunit] Starting server ...
[null] Executing '/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java' with arguments:
[null] '-jar'
[null] '/Applications/Adobe Flash Builder 4.5/sdks/4.5.0/lib/adt.jar'
[null] '-version'
[null]
[null] The ' characters around the executable and arguments are
[null] not part of the command.
[null] Output redirected to property: AIR_VERSION
[flexunit] Opening server socket on port [1024].
[flexunit] Waiting for client connection ...
BUILD FAILED
/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/build .air.xml:65: Could not create application descriptor
at org.flexunit.ant.launcher.commands.player.AdlCommand.createApplicationDescriptor(Unknown Source)
at org.flexunit.ant.launcher.commands.player.AdlCommand.prepare(Unknown Source)
at org.flexunit.ant.launcher.contexts.DefaultContext.start(Unknown Source)
at org.flexunit.ant.tasks.TestRun.run(Unknown Source)
at org.flexunit.ant.tasks.FlexUnitTask.execute(Unknown Source)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
at org.apache.tools.ant.Main.runBuild(Main.java:801)
at org.apache.tools.ant.Main.startAnt(Main.java:218)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Total time: 18 seconds
admin-MacBookPro:FlexUnit4SampleCIProject brantner$
Thanks,
BrianMean the one for i6.. we monitor that as well.
Or just reach out to me offline:
my last name at digitalprimates dot net
Mike -
Build a xml editor using swing
I would like to know a simple way to build a xml editor using swing. The editor should present the xml in a tree structure, THe user should be able to modify the xml in the editor and save it.
Try reading this from [The XML Tutorial|http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JAXPDOM4.html#wp64247] for discovering how to display the XML tree first, this is the first point to build a XMLNotepad like solution.
-
How to Build a XML Schema myself ?
I have a large xml document to be parsed
DTD just can tell me whether the file is well-construct .
I want to build a xml schema...but I have no resourse about this .
can sb tell me the way ? better give me a sample .
nullI'd recommend getting started with a tool like XML Spy 3.5 from Altova (www.altova.com) or XML Authority from Extensibility (www.extensibility.com). I've used both and both are very capable.
-
I'm trying to build an XML file in Java to persist data for an application between sessions. I'd like to build a structure like this
<Files>
<Entry>somefile.txt</Entry>
<Entry>otherfile.txt</Entry>
</Files>
How can I do this using JDK 1.4? I've figured out how to generate it with attributes:
<Files>
<Entry entry=somefile.txt/>
<Entry entry=otherfile.txt/>
</Files>
But that's not the way I need to do it. Can anyone make a suggestion?
Thanks.You need to create Text nodes and append them to your Entry nodes. Say you have a Document, doc:
Element files = doc.createElement("Files");
doc.appendChild(files);
Element Entry = doc.createElement("Entry");
files.appendChild(entry);
Text text = doc.createTextNode("somefile.txt");
entry.appendChild(text);Output:
<Files>
<Entry>somefile.txt</Entry>
</Files>
Hope that helps. -
Topology builder encountered an issue and cannot publish the topology.
Hi all,
Initially I have created a topology and with central management store in the domain controller.
DC\rtc
Then i deleted the existing topology and created a new one in the server where i'm running Lync deployment wizard.
memberserver\rtc.
But, now i'm getting some error while publishing the topology.Hi
Check this links to remove old sql
http://lyncme.co.uk/microsoft-lync-server-2013/lync-2013-topology-builder-encountered-an-issue-and-cannot-publish-this-topology/
http://uchub.wordpress.com/2012/06/19/topology-builder-encountered-an-issue-and-cannot-publish-this-topology/
Check this old Thread
http://social.technet.microsoft.com/Forums/lync/en-US/ef7ebd9b-9f50-4574-ba42-3f2dc6c1d1b6/lync-2013-error-publishing-the-topology?forum=lyncdeploy
http://social.technet.microsoft.com/Forums/lync/en-US/0365bb49-b448-479a-b46d-37d7fe8c965c/lync-2010-install-failing?forum=ocsplanningdeployment
Whenever you see a helpful reply, click on Vote As Helpful & click on Mark As Answer if a post answers your question. -
Building Oracle XML Application Book....
Has anyone purchased the 'Building Oracle XML Applications' book and do they have any opinions on it? Useful?
It it currently orderable, and is planned to ship by September 31st/October 1st, just in time for the Oracle OpenWorld conference.
The full table of contents (which eventually should be put also up on the O'Reilly Site) is:
Preface
Audience for This Book
Which Platform and Version?
Structure of This Book
Chapter Summaries
About the Examples
About the CD-ROM
Conventions Used in this Book
Comments and Questions
Acknowledgements
Part 1: XML Basics
Chapter 1: Introduction to XML
What Is XML?
What Can I Do With XML?
Why Should I Use It?
What XML Technology Does Oracle Provide?
Chapter 2: Working with XML
Creating and Validating XML
Modularizing XML
Searching XML with XPath
Part 2: Oracle XML Fundamentals
Chapter 3: Combining XML and Oracle
Hosting the XML FAQ System on Oracle
Serving XML in Any Format
Acquiring Web-Based XML Content
Chapter 4: Using JDeveloper for XML Development
Working with XML, XSQL, and JSP Files
Working with Database Objects
Using JDeveloper with Oracle XDK Components
Chapter 5: Processing XML with PL/SQL
Loading External XML Files
Parsing XML
Searching XML Documents with XPath
Working with XML Messages
Producing and Transforming XML Query Results
Chapter 6: Processing XML with Java
Introduction to Oracle8i JServer
Parsing and Programmatically Constructing XML
Searching XML Documents in Memory Using XPath
Working with XML Messages
Producing and Transforming XML Query Results
Chapter 7: Transforming XML with XSLT
XSLT Processing Mechanics
Single-Template Stylesheets
Understanding Input and Output Options
Improving Flexibility with Multiple Templates
Chapter 8: Publishing Data with XSQL Pages
Introduction to XSQL Pages
Transforming XSQL Page Results with XSLT
Troubleshooting Your XSQL Pages
Chapter 9: XSLT Beyond the Basics
Using XSLT Variables
The Talented Identity Transformation
Grouping Repeating Data Using SQL
Sorting and Grouping Repeating Data with XSLT
Chapter 10: Generating Datagrams with PL/SQL
Programmatically Generating XML Using PL/SQL
Automatic XML Generation with DBXML
Chapter 11: Generating Datagrams With Java
Generating XML Using Java
Serving XML Datagrams Over the Web
Automatic XML from SQL Queries
Chapter 12: Storing XML Datagrams
Overview of XML Storage Approaches
Loading Datagrams with the XML SQL Utility
Storing Posted XML Using XSQL Servlet
Inserting Datagrams Using Java
Chapter 13: Searching XML with interMedia
Why Use interMedia Text?
What is interMedia Text?
The interMedia Text Query Language
Handling Heterogeneous Doctypes
Handling Doctype Evolution
Advanced interMedia Text
Chapter 14: Advanced XML Loading Techniques
Storing Datagrams in Multiple Tables
Building an XMLLoader Utility
Creating Insert Transformations Automatically
Part 3: Oracle XML Applications
Chapter 15: Using XSQL as a Publishing Framework
Overview of All XSQL Pages Facilities
Additional XML Delivery Options
Chapter 16: Extending XSQL and XSLT with Java
Developing Custom XSQL Actions
Integrating Custom XML Sources
XSLT Extension Functions
Chapter 17: XSLT-Powered Portals and Applications
XSLT-Powered Web Store
Personalized News Portal
Online Discussion Forum
Part 4: Appendices
Appendix 1: XML Helper Packages
Installing the XML Helper Packages
Source Code for the XML Helper Packages
Appendix 2: Installing Oracle XSQL Servlet
Installing
Appendix 3: Conceptual Map to XML Family
Appendix 4: Quick References -
SAP MII Build Complex XML Structure
Hi All,
I have a requirement in which I have to fetch data from multiple queries and build a xml output.
I m able to execute queries, put repeater on them, and able to trace the results.
But now, I want to build an xml out of this and show it as transaction output. I used SAP MII XML Output Actions, but could not succeed.
Posting a sample xml as required in output.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xmii:pos xmlns:xmii="http://www.abc.com/test">
<po>
<ID>70001187</ID>
<PlantCode>3100</PlantCode>
<Code>Scheduled</Code>
<operations>
<operation>
<OperationID>0010</OperationID>
<Code>Completed</Code>
<PONum>70001187</PONum>
<SegmentID>86</SegmentID>
</operation>
</operations>
</po>
</xmii:pos>
Please help me as to how can I build this XML. I m using SAP MII 14.
Thanks
N GI recommend doing this with an xsl using the XSL transformation action.
XSL Transformation - SAP Manufacturing Integration and Intelligence - SAP Library
Regards,
Christian -
Having trouble with xml package in "Building Oracle Xml Applications"
I have modified the xml package found in Building Oracle XML Applications chapter 5 to exclude everything but the CLOB function, see Package below. When compiling the package body I am getting the following error.
SQL> @xml_body
35 /
Warning: Package Body created with compilation errors.
SQL> show errors
Errors for PACKAGE BODY XML:
LINE/COL ERROR
19/5 PL/SQL: Statement ignored
19/15 PLS-00382: expression is of wrong type
SQL>
The error occurs at this line in the xml_body package.
retDoc := xmlparser.getDocument(parser);
I am new to Oracle and any help would be appreciated.
CREATE OR REPLACE PACKAGE xml AS
-- Parse and return an XML document
FUNCTION parse(xml CLOB) RETURN xmldom.DOMDocument;
-- Free the memory used by an XML document
PROCEDURE freeDocument(doc xmldom.DOMDocument);
END;
CREATE OR REPLACE PACKAGE BODY xml AS
parse_error EXCEPTION;
PRAGMA EXCEPTION_INIT(parse_error,-20100);
-- Parse functions parse an XML document and return a handle to
-- the in-memory DOM Document representation of the parsed XML.
-- Call freeDocument() when you're done using the document returned
-- by the function.
FUNCTION parse(xml CLOB) RETURN xmldom.DOMDocument IS
retDoc xmldom.DOMDocument;
parser xmlparser.Parser;
BEGIN
IF xml IS NULL THEN RETURN NULL; END IF;
parser := xmlparser.newParser;
xmlparser.parseCLOB(parser,xml);
retDoc := xmlparser.getDocument(parser);
xmlparser.freeParser(parser);
RETURN retDoc;
EXCEPTION
WHEN parse_error THEN
xmlparser.freeParser(parser);
RETURN retDoc;
END;
-- Free the Java objects associated with an in-memory DOM tree
PROCEDURE freeDocument(doc xmldom.DOMDocument) IS
BEGIN
xmldom.freeDocument(doc);
END;
END;
nullI have modified the xml package found in Building Oracle XML Applications chapter 5 to exclude everything but the CLOB function, see Package below. When compiling the package body I am getting the following error.
SQL> @xml_body
35 /
Warning: Package Body created with compilation errors.
SQL> show errors
Errors for PACKAGE BODY XML:
LINE/COL ERROR
19/5 PL/SQL: Statement ignored
19/15 PLS-00382: expression is of wrong type
SQL>
The error occurs at this line in the xml_body package.
retDoc := xmlparser.getDocument(parser);
I am new to Oracle and any help would be appreciated.
CREATE OR REPLACE PACKAGE xml AS
-- Parse and return an XML document
FUNCTION parse(xml CLOB) RETURN xmldom.DOMDocument;
-- Free the memory used by an XML document
PROCEDURE freeDocument(doc xmldom.DOMDocument);
END;
CREATE OR REPLACE PACKAGE BODY xml AS
parse_error EXCEPTION;
PRAGMA EXCEPTION_INIT(parse_error,-20100);
-- Parse functions parse an XML document and return a handle to
-- the in-memory DOM Document representation of the parsed XML.
-- Call freeDocument() when you're done using the document returned
-- by the function.
FUNCTION parse(xml CLOB) RETURN xmldom.DOMDocument IS
retDoc xmldom.DOMDocument;
parser xmlparser.Parser;
BEGIN
IF xml IS NULL THEN RETURN NULL; END IF;
parser := xmlparser.newParser;
xmlparser.parseCLOB(parser,xml);
retDoc := xmlparser.getDocument(parser);
xmlparser.freeParser(parser);
RETURN retDoc;
EXCEPTION
WHEN parse_error THEN
xmlparser.freeParser(parser);
RETURN retDoc;
END;
-- Free the Java objects associated with an in-memory DOM tree
PROCEDURE freeDocument(doc xmldom.DOMDocument) IS
BEGIN
xmldom.freeDocument(doc);
END;
END;
null -
Build large XML Docs within PLSQL
Hi..
I wondered what will be the fastest way to make a XML Document from a selection resultset and put it in a CLOB.
I think XSU isn't suitable to retrieve large XML (?)
Maybe I should build the XML within PLSQL manually by adding all Tag- and Element-Strings to one CLOB.
Can you please give me some recommendations.
AlIf you are using 9iR2 you might want to look at the new SQL/XML operators that provide an industry standard mechanism for generating XML from a SQL Query. Using these operators allows significant optimizations to take place in the database kernel as the optimzier is aware that the result set will be presented as an XML Document. The typical output of these operators is an XMLType which can be stored as a column in the database. There is not need to use a CLOB as such, as for not Schema based XMLType, the underlying storage mechanism is CLOB
-
hi all
i am very new to java.
i query an entity bean which returns to me a collection.
now the problem is i need to build an xml out of this and pass it back to the client as a string. i also have the schema for this.
do u ppl out there have any idea.
thanks in advanceHello,
When you say you need to build an xml, do you mean you want to construct an xml DOM (Document Object Module)? If you have the schema then you pretty much have the format, if im not mistaken. Once you have the object can't you just pass that back, or pass the value in a string back to who ever?
Maybe you are looking for
-
Regarding text messaging, if I send a message from my iPhone, the reply goes to my ipad, or mini ipad. How can I stop this from happening?
-
I have an XP opporating system and a HP G85 Printer that we bought and have been using several systems ago. I have the "original" HP installation disk, but feel I need an updated HP disk/driver/software to myake the printer work properly with my cur
-
Acrobat 9.0 Pro Extended - importing an .avi
Not sure if this is the correct forum for my query. But anyway, I apologise in advance if it is... I am using the above with a PDF file open. I am trying to insert a video clip into the PDF file. After selecting 'video clip' and select the extent of
-
Hiding Navigation Pane in Adobe Acrobat/Reader 8.x
Is there some way to hide the navigation pane programmatically ? I know that you can set this as a PDF document property, but that doesn't do me any good. Why is there a way to hide the tool bar and a way to tell the PDF to be viewed without bookmark
-
Hi, My CCM 3.3(4) doesn'r generate the reports in PDF format, only Excel and no error log in the Event Viewer. Acrobat is installed on the CCM. Any Ideas, regards, samir