JWSDP-1.2 Tutorial chapter 9

Hi all,
Can anyone please show me the light?
Im following the tutorial in the above chapter - it is pretty simple and straightforward, however I am getting this error.
org.xml.sax.SAXParseException: XML declaration may only begin entities.
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3170)
at org.apache.crimson.parser.Parser2.maybePI(Parser2.java:966)
at org.apache.crimson.parser.Parser2.maybeMisc(Parser2.java:1092)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:487)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:185)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:151)
at Stylizer.main(Stylizer.java:62)
The XML file is this...
<?xml version="1.0"?>
<ARTICLE>
<TITLE>A Sample Article</TITLE>
<SECT>The First Major Section
<PARA>This section will introduce a subsection.</PARA>
<SECT>The Subsection Heading
<PARA>This is the text of the subsection.
</PARA>
</SECT>
</SECT>
</ARTICLE>
The XSL file is....
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
>
<xsl:output method="html"/>
<xsl:template match="/">
<html><body>
<xsl:apply-templates/>
</body></html>
</xsl:template>
<xsl:template match="/ARTICLE/TITLE">
<h1 align="center"> <xsl:apply-templates/> </h1>
</xsl:template>
<!-- Top Level Heading -->
<xsl:template match="/ARTICLE/SECT">
<h2> <xsl:apply-templates select="text()|B|I|U|DEF|LINK"/> </h2>
<xsl:apply-templates select="SECT|PARA|LIST|NOTE"/>
</xsl:template>
<!-- Second-Level Heading -->
<xsl:template match="/ARTICLE/SECT/SECT">
<h3> <xsl:apply-templates select="text()|B|I|U|DEF|LINK"/> </h3>
<xsl:apply-templates select="SECT|PARA|LIST|NOTE"/>
</xsl:template>
<!-- Third-Level Heading -->
<xsl:template match="/ARTICLE/SECT/SECT/SECT">
<xsl:message terminate="yes">Error: Sections can only be nested 2 deep.</xsl:message>
</xsl:template>
<!-- Paragraph -->
<xsl:template match="PARA">
<p><xsl:apply-templates/></p>
</xsl:template>
</xsl:stylesheet>
The Java code is...
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.FactoryConfigurationError;
import javax.xml.parsers.ParserConfigurationException;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
import org.w3c.dom.Document;
import org.w3c.dom.DOMException;
// For write operation
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.TransformerConfigurationException;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamSource;
import javax.xml.transform.stream.StreamResult;
import java.io.*;
public class Stylizer
// Global value so it can be ref'd by the tree-adapter
static Document document;
public static void main (String argv [])
if (argv.length != 2) {
System.err.println ("Usage: java Stylizer stylesheet xmlfile");
System.exit (1);
DocumentBuilderFactory factory =
DocumentBuilderFactory.newInstance();
//factory.setNamespaceAware(true);
//factory.setValidating(true);
try {
File stylesheet = new File(argv[0]);
File datafile = new File(argv[1]);
DocumentBuilder builder = factory.newDocumentBuilder();
document = builder.parse(datafile);
// Use a Transformer for output
TransformerFactory tFactory =
TransformerFactory.newInstance();
StreamSource stylesource = new StreamSource(stylesheet);
Transformer transformer = tFactory.newTransformer(stylesource);
DOMSource source = new DOMSource(document);
StreamResult result = new StreamResult(System.out);
transformer.transform(source, result);
} catch (TransformerConfigurationException tce) {
// Error generated by the parser
System.out.println ("\n** Transformer Factory error");
System.out.println(" " + tce.getMessage() );
// Use the contained exception, if any
Throwable x = tce;
if (tce.getException() != null)
x = tce.getException();
x.printStackTrace();
} catch (TransformerException te) {
// Error generated by the parser
System.out.println ("\n** Transformation error");
System.out.println(" " + te.getMessage() );
// Use the contained exception, if any
Throwable x = te;
if (te.getException() != null)
x = te.getException();
x.printStackTrace();
} catch (SAXException sxe) {
// Error generated by this application
// (or a parser-initialization error)
Exception x = sxe;
if (sxe.getException() != null)
x = sxe.getException();
x.printStackTrace();
} catch (ParserConfigurationException pce) {
// Parser with specified options can't be built
pce.printStackTrace();
} catch (IOException ioe) {
// I/O error
ioe.printStackTrace();
} // main
Apparently the above error is usually generated when the XML declaration is not the first thing in the XML file, however that is not the case in the above file.
Any one with any ideas, guidance, links etc..?
Any help will be greatly appreciated!!
Kind Regards.

The only thing I can think of is to check the encoding of the XML file. If it is encoded with UTF-16 or something like that it would give you that kind of error.

Similar Messages

  • JWSDP 2.0 Tutorial

    I read at the download page of Java Webservices Development Pack 2.0:
    JWSDP 2.0 Tutorial coming soon<< Does anyone know what is "soon"? A week, a month, ...?
    Best regards
    Hermann

    May be post the question to webservices forum:
    http://forum.java.sun.com/forum.jspa?forumID=331

  • Help using Dreamweaver cs3 tutorial, chapter 8, opening browser window dialog box

    Hello,
    I am using the adobe classroom in a book tutorial for cs3 and have run into a snafu on page 188 of chapter 8.   I have tried to select the + sign under the smaller top photo to create a pop-up window.  when I select the + sign I cannot access the open browser window dialog box to enter info.  I cannot seem to use the link field in the property inspector for this.  The link area under source will not come up, just the link over target, which in turn will not bring up the open browser dialog box.  Any solutions?  Thanks,  DesignChambers

    Hi David,
    I just had the same problem.  I cannot preview in Mozilla (or IE).  The program becomes unresponsive and I have to close it. Is there any chance that Adobe will update Dreamweaver CS3 so that we can preview in modern browsers?

  • Regarding Email notification of new assignments taken from tutorial chapter

    Hi,
    I am a newbie who wants to clarify about the HTMLDB_MAIL.SEND coding
    In the tutorials, i noticed that the guide mentioned if i plan on using this application, i should either disable this trigger or change the p_to and p_from to my own e-mail address so that i do not create e-mails with invalid addresses each time i assign or reassign an issue.
    Does this mean the following:
    p_to => c1.person_email,
    p_from => c1.person_email
    should be
    [email protected] => c1.person_email,
    [email protected] => c1.person_email
    or
    p_to => [email protected],
    p_from => [email protected]
    or
    p_to => [email protected]
    p_from => [email protected]
    ??????????????

    The last one will be fine for you.

  • My problem in deploy(j2ee tutorial,chapter 19)

    d:\ConverterAppClient.jar is not return
    deploy message is:
    distribute: D:\ConverterApp.ear
    Deploy action running...
    Completed
    --- Operation Completed Successfully ---
    start: ConverterApp
    Running...
    Completed
    --- Operation Completed Successfully ---
    com.sun.enterprise.admin.common.exception.AFException: D:\ConverterAppClient.jar     at com.sun.enterprise.deployapi.SunTarget.exportClientStubs(SunTarget.java:181)     at com.sun.enterprise.tools.deployment.ui.deploy.DeploymentPlatform.writeAppClientStubs(DeploymentPlatform.java:1024)     at com.sun.enterprise.tools.deployment.ui.deploy.DeploymentPlatform._deploy(DeploymentPlatform.java:1240)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)> Unable to create client stub jarfile: com.sun.enterprise.admin.common.exception.AFException: D:\ConverterAppClient.jar
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)     at java.lang.reflect.Method.invoke(Method.java:324)     at com.sun.enterprise.tools.deployment.ui.utils.UIActionDispatcher.invoke(UIActionDispatcher.java:371)     at com.sun.enterprise.tools.deployment.ui.utils.UIActionDispatcher.invoke(UIActionDispatcher.java:393)     at com.sun.enterprise.tools.deployment.ui.deploy.DeploymentPlatform$DeploymentProcess.run(DeploymentPlatform.java:1705)     at com.sun.enterprise.tools.deployment.ui.utils.ExecProcess$ThreadProcess.run(ExecProcess.java:585)     at java.lang.Thread.run(Thread.java:534)
    [Completed (time=28.0sec, status=0)]
    I am a beginner.And my English is very poor ! Could you help me?Thanks!!!

    when specifying the the path for returning the client jar, dont give the jar file name.
    just give "d:\"
    Try it out!!!!!!!!
    Thanks............

  • Run JWSDP tutorial JAXR  example problem

    Dear all:
    I'm running examples from JWSDP 2.0 tutorial
    I use sjsas-9_1
    my location is jwstutorial20/examples/jaxr/simple
    my registry server is http://localhost:8080/RegistryServer as default
    asant run-publish
    I got following errors:
    javaee-home-test:
    init:
    prepare:
    build:
    run-publish:
    [java] Created connection to registry
    [java] Got registry service, query manager, and life cycle manager
    [java] Sep 30, 2007 1:39:56 PM com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection post
    [java] SEVERE: SAAJ0008: Bad Response; Not Found
    [java] javax.xml.registry.JAXRException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Bad response: (404Not Found
    [java] at com.sun.xml.registry.uddi.RegistryServiceImpl.jaxmSend(Unknown Source)
    [java] at com.sun.xml.registry.uddi.RegistryServiceImpl.send(Unknown Source)
    [java] at com.sun.xml.registry.uddi.Processor.processRequestJAXB(Unknown Source)
    [java] at com.sun.xml.registry.uddi.UDDIMapper.getAuthorizationToken(Unknown Source)
    [java] at com.sun.xml.registry.uddi.ConnectionImpl.setCredentials(Unknown Source)
    [java] at JAXRPublish.executePublish(Unknown Source)
    [java] at JAXRPublish.main(Unknown Source)
    [java] Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Bad response: (404Not Found
    [java] at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:146)
    [java] ... 7 more
    [java] Caused by: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Bad response: (404Not Found
    [java] at java.security.AccessController.doPrivileged(Native Method)
    [java] at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:140)
    [java] ... 7 more
    [java] Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Bad response: (404Not Found
    [java] at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:323)
    [java] at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:169)
    [java] ... 9 more
    BUILD SUCCESSFUL
    can anyone help?
    thanks

    Hi Scott,
    Thank you any way.
    Last time, I met it and carried the tutorial on by compiling and copying manually. Then, I came back to set the ant.jar into path&classpath, and it worked.(ant build)
    Today, I'm trying on "hello1" example, but can't get though.
    Maybe it's still classpath and path issue, as I can't compile two servlet classes by javac from command line, but from Forte, it passed.
    Cheers!
    Zhan

  • JWSDP and J2EE Integration: Doesn't work. What's the point?

    My problems involve the integration of JWSDP and J2EE as described in these two documents:
    http://developer.java.sun.com/developer/technicalArticles/WebServices/wsj2ee/
    http://java.sun.com/j2ee/documentation/windows_guide.html
    It looks like a long one, but it�s really not that bad. All comments are appreciated.
    I�ve numbered each line-paragraph-section for easy reference later.
    (1) My ultimate goal is to setup a website that displays data from a database. I will use Java, Apache, Oracle, and whatever else I need to create a website that uses servlets, JavaServer Pages (JSP), and JDBC.
    (2) I�ve got four Pentium III computers:
    1. Windows 2000 Server to be the web server (MyWebServer, IP = 10.10.1.1).
    2. Windows 2000 Professional to be the database server (MyDatabaseServer, IP = 10.10.1.2).
    3. Windows 2000 Professional that I use to develop and test (MyDeveloperPC, IP = 10.10.1.3).
    4. Windows 2000 Professional that I use as a client to connect to the website (MyClientPC, IP = 10.10.1.4).
    (3) On MyWebServer I installed the following:
    Java 2 Standard Edition (J2SE)
    Java 2 Enterprise Edition (J2EE)
    Java Web Services Developer Pack (JWSDP)
    The JWSDP tutorial
    Apache HTTP Server
    (4) The files I downloaded and installed are as follows:
    j2sdk-1_4_0-rc-win.exe
    j2sdkee-1_3_1-win.exe
    jwsdp-1_0-ea1-win.exe
    jwsdp-1_0-ea1_01-tutorial.zip
    apache_1.3.23-win32-x86-no_src.exe
    (5) After installing these products, I set the environment variables as follows:
    JAVA_HOME = c:\j2se
    J2EE_HOME = c:\j2ee
    JWSDP_HOME = c:\jwsdp
    Path = c:\j2se\bin;c:\j2ee\bin;c:\jwsdp\bin; [and other previous statements]
    (6) I checked to see that Apache is running as a service. It is.
    On MyWebServer I start Tomcat and J2EE. Both start properly and are operating simultaneously.
    (7) From MyClientPC I open Internet Explorer and in the address box I type:
    http://10.10.1.1
    This displays the page c:\ApacheHTTP\apache\htdocs\index.html.en (The Apache default server installation page.)
    (8) I then enter this address in IE:
    http://10.10.1.1:8080
    This displays the page c:\jwsdp\webapps\root\index.html (The default JWSDP page).
    (9) I then enter this address in IE:
    http://10.10.1.1:8000
    This displays the page c:\j2ee\public_html\index.html (The J2EE 1.3 Default Home Page).
    (10) So far so good. Now I want to test JWSDP as a container for JSP pages.
    (11) I use ant to build the converter app found in the tutorial examples (in folder c:\jwsdp\�\tutorial\examples\gs). I then deploy the converter app to the c:\jwsdp\webapps\gs folder.
    (12) From MyClientPC I open Internet Explorer and in the address box I type:
    http://10.10.1.1:8080/gs
    The converter app works perfectly.
    (13) To eliminate the need to enter the port number, I create a link from the Apache default server installation page to the converter app. From MyClientPC and enter this address into IE:
    http://10.10.1.1
    I then click on the link to the converter app and it works perfectly.
    (14) Question: Is this the best way to display JSP pages without having to enter the port number?
    (15) Now it�s time to integrate JWSDP and J2EE as described in these two documents:
    http://developer.java.sun.com/developer/technicalArticles/WebServices/wsj2ee/
    http://java.sun.com/j2ee/documentation/windows_guide.html
    (16) After I complete this integration I cannot start both Tomcat and J2EE at the same time. This makes sense because they both share port 8080.
    I start Tomcat.
    (17) From MyClientPC and use Internet Explorer to test the various relevant addresses. Everything works the same as it did before except this one:
    http://10.10.1.1:8000
    The page cannot be displayed. The J2EE default home page is not displayed, which makes sense because the J2EE port is no longer 8000; it has been changed to 8080.
    (18) Now I shutdown Tomcat and start J2EE.
    From MyClientPC and use Internet Explorer to test the various relevant addresses:
    (19) http://10.10.1.1:8080
    Displays the JWSDP default home page.
    (20) http://10.10.1.1:8080/gs
    The page cannot be displayed. The converter app no longer works.
    (21) From MyWebServer and use Internet Explorer to test localhost:
    http://localhost:8080
    This displays the J2EE default home page.
    (22) Question: Why does localhost give me a different page than the IP address?
    (23) Question: What was the point of integrating JWSDP and J2EE?
    (24) I want to get the converter app working, so I create a .war file and attempt to add it to the J2EE deploytool (see the two integration documents listed above at section 15.) I create the .war file following the instructions in the JWSDP tutorial:
    http://java.sun.com/webservices/docs/ea1/tutorial/doc/WebApp3.html#64606
    (25) I change to the c:\jwsdp\�\tutorial\examples\gs\build folder.
    I then type:
    jar cvf converter.war .
    A .war file is created.
    (26) I open the deploytool: File, New, Application, and I name it �converter�.
    I attempt to add the .war file: File, Add to Application, Web WAR.
    (27) When I attempt to add the converter.war file I get this error:
    �converter.war does not appear to be a valid web JAR.�
    I tried a few different attempts, all with the same result. I�m stuck.
    (28) I ask again, What was the point of integrating JWSDP and J2EE?
    (29) If this is the preferred configuration, how do I display my JSP pages like the converter app?
    Please help!!!

    The JWSDP tutorial says to be in the �build� folder of the example when issuing the jar command to create the .war file. The build folder is created when I run the �ant build� command.
    Attempt 1 from the command prompt in folder c:\jwsdp\tutorial\examples\gs\build>
    I typed this command:
    jar cvf c:\jaxmservices\converter.war .
    In this case I directed the .war file to be placed in a different folder as you suggested. Here�s the output:
    added manifest
    adding: index.jsp(in = 921) (out= 525)(deflated 42%)
    adding: WEB-INF/(in = 0) (out= 0)(stored 0%)
    adding: WEB-INF/classes/(in = 0) (out= 0)(stored 0%)
    adding: WEB-INF/classes/Converter.class(in = 582) (out= 358)(deflated 38%)
    Didn�t work. Same error as before.
    Attempt 2 from the same folder:
    I typed this command as you suggested (I tried it with and without the final dot):
    jar tvf converter.war
    Here is the output:
    java.io.FileNotFoundException: converter.war (The system cannot find the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:103)
    at java.io.FileInputStream.<init>(FileInputStream.java:66)
    at sun.tools.jar.Main.run(Main.java:185)
    at sun.tools.jar.Main.main(Main.java:904)
    I tried a few other variations on these attempts with no luck. I�m stuck.
    I�m attempting to create a .war file out of two files: index.jsp and converter.class.
    Now that I�ve integrated JWSDP and J2EE, is there some other way that I can run the converter app instead of a .war file and the deploytool? In other words, if I go back to using ant to build and deploy converter, where would I deploy it so that it will work with J2EE?
    By the way, it doesn�t have to be converter. I�d be happy if I could get any JSP page to work in J2EE after the integration.
    Forever grateful,
    Logan

  • Unable to Create the Sample Web Module hello1.war of the J2EE 1.4 Tutorial

    I have followed procedures stated in the J2EE 1.4 Tutorial, Chapter 3, Getting Started with Web Applications, P92 to P95.
    I have successfully completed all Steps. At the end, when I try to save the war file, I receive an error message from the Error Dialog:
    "hello1.war is corrupt or cannot be read. Use the verifier to determine the cause. org.xml.sax.SAXParseExcaption: Premature end of file.
    Please help.

    Hello there
    I have just the same problem you had, but i�m not able to find the solution, Did you find a solution?

  • Advanced tutorial javascript

    Hi!
    I am a bit confused about the apex 3.0 Advanced Tutorial chapter 10 "How to Incorporate JavaScript into an Application". Here is an excerpt:
    -- start citation --
    Including JavaScript in a .js File Referenced by the Page Template
    In Oracle Application Express you can reference a .js file in the page template. This approach makes all the JavaScript in that file accessible to the application. This is the most efficient approach because a .js file loads on the first page view of your application, and is then cached by the browser.
    The following code demonstrates how to include a .js file in the header section of a page template. Note the line script src= that appears in bold.
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>#TITLE#</title>
    #HEAD#
    <script src="http://myserver.myport/my_images/custom.js" type="text/javascript"></script>
    </head>
    <body #ONLOAD#>#FORM_OPEN#
    -- end citation --
    The above seems to suggest that the "custom.js" lives on some server which should be hardcoded into a template. I can't believe it! What does incorporating mean here? For me it should mean an ability to add a javascript file to an application and then referencing it via a relative path so the script keeps staying with the application. I presume the tutorial is wrong about it. But what is the right way? I see there is an ability to add a static file to an application. Could it help here? I would appreciate an advice on how to add a javascript file.
    Sergey

    Hi Sergey,
    You could upload your JS file as static file and use the relative path #WORKSPACE_IMAGES#. This way the file is stored in the database. But the question here is:
    Should static files be placed in the database?
    "Application Express applications may reference additional external files such as cascading style sheets (CSS), images and Javascript libraries.
    These images can either be placed on the file system of the server that runs the web server or, when they are uploaded using Application Express’s application builder, can be stored inside the database.
    A benefit of managing files such as images and CSS in the database with the application builder is that they can be exported and imported into another Application Express environment or workspace using only a browser.
    However, storing related files in the database is recommended only when you have relatively few images and when the application is not expected to endure high request throughput.
    When images, CSS and Javascript libraries are stored in the database, a database connection is established each time the browser requests one of these files.
    In a high throughput application this may result in undue and unwanted strain on the database. "
    quoting http://www.ruleworks.co.uk/cgi-bin/TUfaq.exe?Guide=Apex
    If you have access to your server filesystem, then in my opinion you should place your JS file there. After that you could define a substituion string in shared components pointing to the folder you have palced your JS file. Your templates should reference this substituion string.
    Paulo

  • Problem with JAX-RPC tutorial

    I am studying "The JavaTM Web Services Tutorial"-Java API for XML-based RPC.
    When I read "Deploying the Service", I encounter some errors.
    I type "ant deploy".
    Here is error message:
    Buildfile: build.xml
    deploy:
    BUILD FAILED
    Total time: 3 seconds
    D:\jwsdp-1_0_01\docs\tutorial\examples\jaxrpc\hello\build.xml:14: java.io.FileNotFoundException: http://localhost:8080/manager/deploy?path=%2Fhello-jaxrpc
    I don't know what to do.I can't get any infomation from the tutorial.
    Please help me.Thanks.

    OK!
    I have solved this problem.
    I put build.properties in my home directory(On WinXP, C:\Documents and Settings\myProfile).
    The file looks like this:
    username=my_username
    password=my_password
    I think, when I deploy my web service to Tomcat, Tomcat need to verifiy my infomation. So, I must provide my authorization information to Tomcat.
    build.properties contains infomation which I provide.
    Read "Creating the Build Properties File" in JavaWSTutorial for more details

  • ERROR in OWB-Tutorial: Deployment MAP_MATCH_MERGE_CUSTOMERS_STG

    While I was trying the OWB Tutorial (Chapter "Ensuring Data Quality"), I got an error in the deployment of the MAP_MATCH_MERGE_CUSTOMERS_STG Mapping. Oracle generated the following wrong code in the MAP_MATCH_MERGE_CUSTOMERS_STG package:
    -- Function "m0_break_f"
    --   Determines if the match match break group is complete.
    --   Returns TRUE if break group is complete
    --   Returns FALSE if break group is not complete
    FUNCTION "m0_break_f"(is_buffer_done BOOLEAN) RETURN BOOLEAN IS
       BEGIN
         IF ( (NOT is_buffer_done) AND ("m0_br_tbl".COUNT = 0 OR
                  ( = )        AND 
                  ( = )        AND 
                  ( = )       
       THEN
         RETURN FALSE;
       ELSE
         RETURN TRUE;
       END IF;
    EXCEPTION 
       WHEN OTHERS THEN
         RETURN TRUE;
    END "m0_break_f";Is it a known bug?
    Bye,
    Rumburak

    This seems simply a syntax error...look at the line
    644 in your mapping code (package body) and it
    shudn't be difficult to rectify...if still get
    problems post the code here on the forum..I get the same error when I deploy any mapping with a match/merge operator. I have owb version 10.1.0.4.0 too.
    here is the function that causes the error:
    FUNCTION "m0_break_f"(is_buffer_done BOOLEAN) RETURN BOOLEAN IS
    BEGIN
    IF ( (NOT is_buffer_done) AND ("m0_br_tbl".COUNT = 0 OR
    ( = ) AND
    ( = ) AND
    ( = )
    THEN
    RETURN FALSE;
    ELSE
    RETURN TRUE;
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
    RETURN TRUE;
    END "m0_break_f";
    the problem is "( = )". i guess that there's something missing before and after "=", but I don't have any idea of what it should be.
    there must be something wrong in warehouse builder: it can't force me to correct the code it generates every time I deploy any mapping with match/merge!
    thank you for the advice you can give me!

  • Access denied Error when trying to run Tomcat that came with JWSDP

    Hi fellows,
    I went through the forums and found same error posted by someone but no soultion to that.
    So hope this time i get lucky.
    I am running this on win 98(it really sucks)
    After I try to run the startup.bat i get the error:
    Using CATALINA_BASE: C:\JWSDP-1_0-EA2
    Using CATALINA_HOME: C:\JWSDP-1_0-EA2
    Using CATALINA_TMPDIR: C:\JWSDP-1_0-EA2\temp
    Using JAVA_HOME: C:\JDK13~1.1_0
    Access is denied.
    I don't know where to put the build.properties. Any helpful comment will be greately appreciated.
    Regards,

    Folks
    Obviously the EA(Early Access) is just that! I've managed to get around the problem, and run a sample (ConverterBean) using JWSDP with Tomcat on Win98. Here's the workaround:
    1> In the startup.bat, replace "start" with "run". Type "startup" from cmd line. This will start Tomcat in the same window.
    2> Create the build.properties file in the same location as build.xml. For the Getting Started example, this will be in <jwsdp-home>\docs\tutorial\example\gs.
    3> Once you build the sample files, copy the classes directory and index.jsp to <jwsdp-home>\webapps\ROOT\WEB-INF
    4> Update setclasspath.bat in <jwsdp-home>\bin directory to include <jwsdp-home>\webapps\ROOT\WEB-INF\classes.
    5> In the browser, type http://localhost:8080/index.jsp
    BINGO!!!!
    Cheers!
    Pravin
    I hava the same problem
    Using CATALINA_BASE: C:\JWSDP-~1
    Using CATALINA_HOME: C:\JWSDP-~1
    Using CATALINA_TMPDIR: C:\JWSDP-~1\temp
    Using JAVA_HOME: C:\J2SDK_FORTE\JDK1.4.0
    Zugriff wurde verweigert. (access is denied)

  • Tomcat 4.0.4 Internal Server Error with JWSDP 1.0.01 examples

    Hi,
    I am trying to run the JWSDP 1.0.01 tutorial examples with
    Apache Tomcat 4.0.4. I have j2sdk 1.4.0.01 installed on
    Windows 2000.
    I have successfully built and installed the 'date' example
    jwsdp-1_0_01\docs\tutorial\examples\web\date. When I point my browser at http://localhost:8080/date/ I get the following:
    Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    error: An error has occurred in the compiler; please file a bug report (http://java.sun.com/cgi-bin/bugreport.cgi).
    1 error, 1 warning
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:536)
    Any ideas ?
    Thanks,
    Mike.

    Check if you've the latest servlet.jar file
    -Dieter

  • Problem in running example in web service tutorial

    Hi,
    I have installed jwsdp 1.1. When I followed the procedures stated in the tutorial and compiled the example in the dir
    {jwsdp home}\docs\tutorial\examples\cb\jaxm\, errors occur.
    Here are the errors occurs in the launcher.server.log.
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
         at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
         at org.apache.commons.digester.Digester.endElement(Digester.java:830)
         at org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:552)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1071)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1533)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:346)
         at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:529)
         at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:585)
         at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1142)
         at org.apache.commons.digester.Digester.parse(Digester.java:1302)
         at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:335)
         at org.apache.catalina.core.StandardHost.install(StandardHost.java:804)
         at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:452)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:409)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:882)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1198)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:739)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1190)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
         at org.apache.catalina.core.StandardService.start(StandardService.java:499)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:2187)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:504)
         at org.apache.catalina.startup.Catalina.execute(Catalina.java:399)
         at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
    Caused by: java.lang.IllegalStateException: Context path /RegistryServer is already in use
         at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:523)
         ... 42 more
    [ERROR] Digester - -End event threw exception <java.lang.reflect.InvocationTargetException>
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
         at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
         at org.apache.commons.digester.Digester.endElement(Digester.java:830)
         at org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:552)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1071)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1533)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:346)
         at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:529)
         at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:585)
         at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1142)
         at org.apache.commons.digester.Digester.parse(Digester.java:1302)
         at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:335)
         at org.apache.catalina.core.StandardHost.install(StandardHost.java:804)
         at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:452)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:409)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:882)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1198)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:739)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1190)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
         at org.apache.catalina.core.StandardService.start(StandardService.java:499)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:2187)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:504)
         at org.apache.catalina.startup.Catalina.execute(Catalina.java:399)
         at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
    Caused by: java.lang.IllegalStateException: Context path /Xindice is already in use
         at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:523)
         ... 42 more
    [ERROR] Digester - -End event threw exception <java.lang.reflect.InvocationTargetException>
    Sorry for posting such a long error capturing above.
    But I really don't know which part goes wrong. I have already copied the endorse dir to my java sdk 1.4.1 home.
    Any ideas?
    A million thanks in advance ^^
    Sherina

    I have this problem too. Please let me know if you have resolved it.

  • Jwsdp-1_0_01 JAXRPCContextListener failed

    I'm trying to deploy a web service created with the jwsdp-1_0_01 api. Weblogic 7.0 loads it up and trys to deploy but we get a ClassCastException:
    User defined listener com.sun.xml.rpc.server.http.JAXRPCContextListener failed: java.lang.ClassCastException: weblogic.utils.classloaders.ChangeAwareClassLoader.
    JAXRPCContextListener is a standard ServletContextListener used by sun's wsgen and it's listed in the generated web.xml file in the war. This error is preventing the war from being fully deployed.
    I'm using sun tutorial example \jwsdp-1_0_01\docs\tutorial\examples\jaxrpc\hello\* with the documentation/instructions at \jwsdp-1_0_01\docs\tutorial\doc\JAXRPC3.html
    We've been using webservices on 6.1 for the past year without problems. But I can't get this one to go on 7.0.
    Any thoughts?

    WLS 7.0 got its own implementation of JAX-RPC. I think, the exception is
    because the JAX-RPC factorys are mapped to the WLS impls. You could
    remove the mapping by deleting the following files from weblogic.jar or
    webservice.jar:
    META-INF\services\javax.xml.rpc.ServiceFactory
    META-INF\services\javax.xml.soap.MessageFactory
    META-INF\services\javax.xml.soap.SOAPConnectionFactory
    META-INF\services\javax.xml.soap.SOAPFactory
    HTHS,
    -manoj
    "kris young" <[email protected]> wrote in message
    news:3e4446f4$[email protected]..
    I'm trying to deploy a web service created with the jwsdp-1_0_01 api.Weblogic 7.0 loads it up and trys to deploy but we get a ClassCastException:
    >
    User defined listener com.sun.xml.rpc.server.http.JAXRPCContextListenerfailed: java.lang.ClassCastException:
    weblogic.utils.classloaders.ChangeAwareClassLoader.
    >
    JAXRPCContextListener is a standard ServletContextListener used by sun'swsgen and it's listed in the generated web.xml file in the war. This error
    is preventing the war from being fully deployed.
    >
    I'm using sun tutorial example\jwsdp-1_0_01\docs\tutorial\examples\jaxrpc\hello\* with the
    documentation/instructions at \jwsdp-1_0_01\docs\tutorial\doc\JAXRPC3.html
    >
    We've been using webservices on 6.1 for the past year without problems.But I can't get this one to go on 7.0.
    >
    Any thoughts?

Maybe you are looking for