XML DOM working in Java, not working in Tomcat

This is a really strange one (to me anyway) !
We have some XML parsing classes tested in Eclipse that run just fine as Java code. When we try to use them in Tomcat, though, we get an error with getDocumentElement() - it always truncates at the beginning of the XML. This is the XML string we are using for testing in Eclipse:
"<rft><pollcfg><tmo>200</tmo><retry>5</retry>"
+ "<mapping>"
+ "<name>Simulation</name>"
+ "<subnet>0</subnet>"
+ "<comm>com8</comm>"
+ "</mapping>"
+ "<comm>com11</comm>"
+ "<comm>com12</comm>"
+ "<subnet>1</subnet>"
+ "<subnet>2</subnet>"
+ "<subnet>3</subnet>"
+ "<subnet>4</subnet>"
+ "</rft>";
And we load this string into a DOM as follows
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setValidating(false);
dbf.setNamespaceAware(true);
dbf.setIgnoringElementContentWhitespace(true);
DocumentBuilder builder = dbf.newDocumentBuilder();
ByteArrayInputStream bais = new ByteArrayInputStream(XMLRetrievedData.getBytes());
doc = builder.parse(bais);
ANd then we can say :
System.out.println( "getDocumentElement() was " + doc.getDocumentElement() );
and we get the XML.
If we run this in Tomcat the line
System.out.println( "getDocumentElement() was " + doc.getDocumentElement() );
produces
[rft: null]
instead of the XML we get when we run the same code in Eclipse !!
We want to parse the DOM, delete some elements and add some new elements. Then we want to return the altered DOM as a String .. for whatever client needs it.
Any ideas about this ? What could be wrong ?
Thanks !!

Beg pardon - I should have said we are loading the XML string shown into the String XMLRetrievedData. That's how the 'rft' part of the [rft: null] gets into Tomcat's output.
Strange ...

Similar Messages

  • How to typecast string to xml DOM element in java

    hai
          i need a string to be converted to xml DOM element in java, can any help me
          i have done in this way
         NodeList children = lParentRule.getElementsByTagName("parentruledetails").item(0).getChildNodes();
    for  
    (int i = 0; i < children.getLength(); i++) {Node nod = children.item(i);
    if  
    (nod.getNodeName().contains("parentcustomdetails")){Element parentcustom = (Element)nod.getNodeName();   // i get typecast error at this line}
    i need to convert the string to element
    can any one help me
    Thanks in Advance

    Hello. You can't cast a string to an element, you need to create that element.
    Maybe this can help up: http://www.genedavis.com/library/xml/java_dom_xml_creation.jsp

  • Tomcat 3.2.3 web.xml doesnot work in Tomcat 4.0

    I have put a web.xml for my web app in wEB-INF directory. It works in Tomcat 3.2.3 but doesnot work in Tomcat 4.0. Tomcat is showing some ParsingException.
    Is this true & anyone of u r facing the same problem?
    Thanks in Advance
    [email protected]

    Hi
    If you see the Specification the order in which the tags appear is important. In Tomcat 3.2.3 the order is not stressed upon but in Tomcat 4.0 any discrepancy in the order of Tags is immediately noted. See specification for the order of Tags and change the web.xml . Your application should work fine then.
    Keep me posted on your progress.
    Good Luck!
    Eshwar Rao
    Developer Technical Support
    Sun mcirosystems inc
    http://www.sun.com/developers/support

  • Jbuilder compiler problem with xml DOM - please help.

    my problem is that I am using jbuilder 4 professional to compile/run my code.
    However I want to use the XML DOM but jbuilder does not appear to support the necessary packages for use with XML.
    How can I get round this.
    Can I compile instead from the command line - I am using JDK1.4 which supports the java xml packages necessary. Or is there a way of adding the necessary files to my project?
    thanks, B

    Add the required jar files to your project properties->classpath in JBuilder
    The only problem is that. I have been using JBuilder without any problems.

  • How to SAVE a updated XML DOM Data to the file?

    Hi
    I am able to load an XML file into a XML DOM object using JAVA (xerces). I have update the required data in the DOM.
    But I am NOT able to save back the data to the physical file.
    Will appreciate if you can help me ASAP.

    Hi Krishar,
    Check out the jaxp new release on java.sun.com. This api has classes and methods to help you do the same.
    sample code:
         try
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              java.net.URL url = this.getClass().getResource(XML_FILE);
              java.io.File thsFile = new java.io.File(url.getFile());
              DocumentBuilder builder = factory.newDocumentBuilder();
              TransformerFactory tFactory = TransformerFactory.newInstance();
              Transformer transformer = tFactory.newTransformer();
              document = builder.parse(thsFile);
    //You can do any modification to the document here
              DOMSource source = new DOMSource(document);
              StreamResult result = new StreamResult(thsFile);
              transformer.transform(source, result);
         catch (TransformerConfigurationException tce)
              System.out.println("\n** Transformer Factory error");
              System.out.println(" " + tce.getMessage());
              Throwable x = tce;
              if (tce.getException() != null)
                   x = tce.getException();
              x.printStackTrace();
         catch (TransformerException te)
              System.out.println("\n** Transformation error in add:");
              System.out.println(" " + te.getMessage());
              Throwable x = te;
              if (te.getException() != null)
                   x = te.getException();
              x.printStackTrace();
         catch (SAXException sxe)
              System.out.println("sax exp" + sxe.getMessage());
         catch (Exception ex)
              System.out.println("exc exp" + ex);
              ex.printStackTrace();
    Hope this will help you XML_FILE is constant representing the path of the file. It should be in classpath. The program essentially parsing a xml file and creating dom document and then writing it back to the same file. you can do any modifications/write to other file etc...
    Think this will suffice your requirement
    bye
    take care
    Hi
    I am able to load an XML file into a XML DOM object
    using JAVA (xerces). I have update the required data
    in the DOM.
    But I am NOT able to save back the data to the
    physical file.
    Will appreciate if you can help me ASAP.

  • XML Dom example

    I am trying to parse an XML file in Java. I use the same XML file and am able to parse it easily in C# (hehehe I love mentioning that here ;) & VB. However, I am unable to find a decent tutorial for parsing XML DOM on the Java website. The example I have ties it into a Swing app and makes it needlessly complicated. Is there another tutorial for XML DOM? Can someone post some source code illustrating DOM?
    Thanks!

    That's the horrible example that I was referring to. It takes the reading of an XML document, using DOM, and creates a GUI app from it, making the example needlessly complicated.
    However, through experimentation and the java docs for JDK 1.4 I have figured out how to do what I need.

  • Page Break In XML Publisher RTF Templates Are Not Working

    Please refer to the Metalink Doc below:
    Subject:      Page Break In XML Publisher RTF Templates Are Not Working.
    Doc ID:      559111.1      
    Type:      PROBLEM
    Modified Date:      24-MAR-2008      
    Status:      MODERATED
    In this Document
    Symptoms
    Cause
    Solution
    References
    This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process, and therefore has not been subject to an independent technical review.
    Applies to:
    Oracle XML Publisher - Version: 5.6.3
    This problem can occur on any platform.
    Symptoms
    Using XML Publisher version 5.6.3 in 11.5.10.
    Find <?split-by-page-break:?> syntax is ignored.
    EXPECTED BEHAVIOR
    Expect page breaks to occur at point set by "split-by-page-break:" code.
    STEPS
    The issue can be reproduced at will with the following steps:
    1. Create a template.
    2. Call split-by-page-break: inside a loop.
    3. Output is not formatted correctly, page break call is ignored,
    Cause
    Unpublished BUG 5011628 SPLIT-BY-PAGE-BREAK NOT WORKING IF ADDED SORT WITHIN DYNAMIC GROUP
    Unpublished BUG 5011628 matches the client issue as it is a call to split-by-page-break inside a loop.
    Fix is in ScalableStringList.java version 115.4.
    This is delivered in <Bug 6165466> XDOFX:CHR(N) FUNCTION FAILING.
    Solution
    To implement the solution, please execute the following steps:
    1. Apply Patch 6165466 when it is released.
    2. Test your report.
    References
    Bug 6165466 - XDOFX:CHR(N) FUNCTION FAILING
    Keywords
    XML~PUBLISHER; LOOP; DYNAMIC~GROUP; PAGE~BREAK;
    Help us improve our service. Please email us your comments for this document. .

    Hi JDev,
    Check this out:
    http://oracle.anilpassi.com/xml-publisher-developing-reports-printed-on-pre-printed-stationary-2.html
    Hope this might help.
    Thanks

  • Java Crystal Reports client working on Tomcat 5.0 not on Sun 8.1, AxisFault

    Hi Experts,
    I am given this task of integrating Crystal Reports in our Sun 8.1 applications. I am using the jars that come with the Business Objects cd (like dsws-session.jar, dsws-publish.jar, axis 1.1.jar etc). I am able to run this on Tomcat 5.0 but not on Sun java Application Server 8.1. The exception I am getting is as follows:
    Cause Detail --->>>AxisFault
    faultCode: Server.userException
    faultSubcode:
    faultString: java.lang.NullPointerException
    faultActor:
    faultNode:
    faultDetail:
         stackTrace: java.lang.NullPointerException
         at java.util.Hashtable.put(Hashtable.java:396)
         at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXParserImpl.java:395)
         at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:246)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
         at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
         at org.apache.axis.client.Call.invoke(Call.java:2553)
         at org.apache.axis.client.Call.invoke(Call.java:2248)
         at org.apache.axis.client.Call.invoke(Call.java:2171)
         at org.apache.axis.client.Call.invoke(Call.java:1691)
         at com.businessobjects.dsws.session.SessionSoapStub.login(Unknown Source)
         at com.businessobjects.dsws.session.Session.login(Unknown Source)
    I tried to replace axis 1.1 with axis 1.4, but then I get another exception
    Cause Detail --->>>java.lang.NoSuchFieldError: WRAPPED
         at com.businessobjects.dsws.session.SessionSoapStub.<clinit>(Unknown Source)
         at com.businessobjects.dsws.session.SessionLocator.getSessionSoap(Unknown Source)
         at com.businessobjects.dsws.session.Session.createStub(Unknown Source)
         at com.businessobjects.dsws.Consumer.<init>(Unknown Source)
         at com.businessobjects.dsws.session.Session.<init>(Unknown Source)
    I guess this is because the dsws-session.jar is not compatible with any axis other than 1.1. How should I proceed? Should I be continuing with axis 1.1 and apply some fix or should I go with axis 1.4 and get the dsws jars that work with axis 1.4? Why is it working with Tomcat 5.0/JDK 1.5? PLEASE HELP ASAP!!!!
    Thanks,
    Zahid.

    Hi Zahid,
    Crystal Reports does not support Sun application server, however since tomcat 5.0 is supported it seems to be working fine with it.
    To find supported platforms list navigate through: -
    https://websmp204.sap-ag.de/bosap-support
    Go to Documnetation > Supported Platforms > and select the product you want from the list.
    Regards,
    Jitin Vyas

  • HELP--Java not working on web sites

    Unable to view any Java based graphic on web sites via Safari, Explorer Netscape or Firefox. Bootcamp/Windows Explorer same problem.
    Computer will not install Java 131 or 141 release2 or J25E5O release4 updates.
    Installation of JavaEmbeddingPlugin 0.9.6.2 2 does not solve problem
    Safari says Java not installed, misc. messages in other browsers
    Machine Name: iMac
    Machine Model: iMac4,1
    Processor Name: Intel Core Duo
    Processor Speed: 1.83 GHz
    Number Of Processors: 1
    Total Number Of Cores: 2
    L2 Cache (per processor): 2 MB
    Memory: 1 GB
    Bus Speed: 667 MHz
    Java Info:
    Kind: Universal
    Get Info String: 11.5.0 (for JDK 1.4.2),
    Location:/Applications/Utilities/Java/Java Web Start.app
    Kind: Universal
    Get Info String: 11.5.0 (for Java 1.4.2),
    Location:/Applications/Utilities/Java/Java 1.4.2 Plugin Settings.app
    Please advise any solutions or my errors??
    Aloha,
    Islandgirl

    Hi to both!
    Assuming your issues arose following recent Software Updates, info in this recently (4/19/07) updated Apple Support article may be useful:
    Mac OS X: Troubleshooting installation and software updates.
    Most of the info and suggestions will be worthwhile even if the issues arose prior to the latest Software Updates. Best of luck with it:)

  • Xml parser for pl/sql - not working w/DTD

    I need to parse xml documents from withing pl/sql. Almost all of the returned xml documents from the specific urls contain DTDs which seem to cause the parser to hang! Also, if there is an element with no value I get the Null values not allowed. Please, please someone help!

    LoadJava is giving following error while loading xmlplsql.jar
    resolving : Oracle/xml/parser/plsql/xmlnotationcover :
    ORA-29534: referenced object scott.oracle/xml/parser/plsql/XMLNodeCover could not be resolved.
    I think, it is refereing to a class XMLNotationCover, which should be already installed in database (scott/tiger).
    I am getting above error for several other classes. So there must be some jar file which include these classes.
    pls. send me name of this file and if problem is somewhere else give me soln to it.
    Thanking you.
    Mrinal
    null

  • Working on Tomcat Server but same code is not working on oc4j server of E-B

    Hello,
    I have a jsp page that is working properly in tomcat 6 server but when i deployed it on oc4j server 10.1.3.1.0 than it is not working. I am confuse.
    ERROR MESSAGE:
    500 Internal Server Error
    Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
    CODE JSP:
    <%@ page import="java.sql.*" %>
    <%@ page import="java.io.*" %>
    <!DOCTYPE html PUBLIC
         "-//W3C//DTD HTML 4.01 Transitional//EN"
         "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta
         http-equiv="Content-Type"
         content="text/html; charset=ISO-8859-1" />
    <meta
         name="author"
         content="MAX" />
    <title>Test Register Page</title>
    <link
         rel="stylesheet"
         href="css/style.css"
         type="text/css"
         media="screen" />
    </head>
    <body>
    <div id="content">
    <form name="demo" onsubmit="return validate_form()" action="RegisterServlet" method="post">
    <fieldset>
         <legend>VIEW USER</legend>
         <table border=1>
              <tr>
                   <td width="200px" align="center"><b>Bank Name</b></td>
                   <td width="200px" align="center"><b>User Name</b></td>
              </tr>
              <%
                        Connection connection = null;
                        String connectionURL = "jdbc:oracle:thin:@10.38.60.55:1521:edwdevdb";
                        ResultSet rs = null;
                   Statement statement = null;
                   try
                        // Get a Connection to the database
                        Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
                        connection = DriverManager.getConnection(connectionURL,
    "scott", "tiger");
                        statement = connection.createStatement();
                        rs = statement.executeQuery(" SELECT user_info.USER_KEY,user_info.FI_ID,d_fi.fi_nm, user_info.User_Name from user_info INNER join d_fi on user_info.fi_id = d_fi.fi_id order by fi_nm ");
                        //Set 'authentication' flag
                        while (rs.next())
         %>
                        <tr>
                                  <td width="200px"><a href="SearchUser?bankname=<%=rs.getString("USER_KEY")%">> <%= rs.getString("FI_NM")%></a> </td>
                                  <td width="200px"><%= rs.getString("User_Name")%></td>
                        </tr>
         <%                    
                   catch(SQLException e)
                   finally
                                            rs.close();
    statement.close();
    connection.close();
         %>
         </table>
         <label> </label>
    </fieldset>
    </form>
    </div>
    </body>
    </html>
    WEB xml:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app     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_2_5.xsd"
    version="2.5">
    <description>Register</description>
    <display-name>Register</display-name>
    <!-- Declare Servlets -->
    <servlet>
         <servlet-name>BaseServlet</servlet-name>
         <servlet-class>BaseServlet</servlet-class>
    </servlet>
    <servlet-mapping>
         <servlet-name>CategoryServlet</servlet-name>
         <url-pattern>/Category</url-pattern>
    </servlet-mapping>
    <!-- Welcome File List -->
    <welcome-file-list>
         <welcome-file>login.jsp</welcome-file>
    </welcome-file-list>
    </web-app>
    Edited by: bappy007 on Oct 10, 2010 1:57 AM
    Edited by: bappy007 on Oct 10, 2010 1:58 AM

    ERROR IN LOG FILE:
    10/10/10 15:18:55.843 edwportal: Servlet error
    java.lang.NullPointerException
         at test.jspService(_test.java:93)
         at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.1.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
         at java.lang.Thread.run(Thread.java:619)

  • Payload XML DOM Object Update using Java Embedding

    Hi,
    I have a Java Embedding activity which updates the payload after making
    a call to a local EJB. The EJB sends back updated information. In my Java
    Embedding activity i try to update the payload nodes with the new information.
    It get's really cumbersome to do this sort of thing in BPEL. Basically i am trying
    to remove an existing node in the payload and replace it with a new node.
    I did so may things that i really don't remember what are they. Finally i managed to
    update the payload with the following code.
    org.w3c.dom.Element payload = (org.w3c.dom.Element)getVariableData("inputVariable","payload","/MSG");
    org.w3c.dom.Element oldNode = (org.w3c.dom.Element)getVariableData("inputVariable","payload","/MSG/TSLData");
    org.collaxa.thirdparty.dom4j.Element tslElem = com.collaxa.cube.xml.dom.DOMFactory.convertToCollaxaElement(oldNode);
    oldNode = (org.w3c.dom.Element)getVariableData("inputVariable","payload","/MSG/REC");
    payload.removeChild(oldNode);
    msgElem = com.collaxa.cube.xml.dom.DOMFactory.convertToCollaxaElement(payload);
    msgElem.add(recElem);
    I feel that there no proper interface to update the data in the payload values with
    nodes, string etc. It would be nice if we don't have to work with
    com.collaxa.cube.xml.dom.DOMFactory
    org.collaxa.thirdparty.dom4j.Element
    the collaxa classes.
    We need to have more than setVariableData, bascally good payload manipulation API's.
    Let me know if there are any alternatives to do this.
    Thanks,
    Senthil L

    I have been having the same difficulties. Were you able to find any documentation or javadocs for the Collaxa libraries? If so, I would greatly appreciate locating them.

  • JDBC not working with Tomcat

    Please help,
    I have tried all the database example and they work great locally, until I deploy to my Tomcat server. Tomcat is display Java Studio Creator 2 pages without issue not binding to data.
    all I am trying to do is a basic sql connection to see how Java Studio Creator 2 connects.
    Dev enviroment:
    1. sql server: localhost
    2. user: tester
    3. password: Stealth1
    4. SQL table: doc
    I would really apreaciate if someone could walk me thru a simple table databind ~ now remember the local databind and run works without issues - export to a war and implement to Tomcat 5.5.15
    Here is what I have
    <tomcat_install>\common\lib ~ dropped in: msbase.jar,mssqlserver.jar, msutil.jar, jstl.jar, standard.jar
    Exported war name:simple
    <tomcat_install>\webapps\simple ~ Page1.jsp
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
        <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
        <f:view>
            <ui:page binding="#{Page1.page1}" id="page1">
                <ui:html binding="#{Page1.html1}" id="html1">
                    <ui:head binding="#{Page1.head1}" id="head1">
                        <ui:link binding="#{Page1.link1}" id="link1" url="/resources/stylesheet.css"/>
                    </ui:head>
                    <ui:body binding="#{Page1.body1}" id="body1" style="-rave-layout: grid">
                        <ui:form binding="#{Page1.form1}" id="form1">
                            <ui:staticText binding="#{Page1.staticText1}" id="staticText1" style="position: absolute; left: 72px; top: 72px" text="Testing label"/>
                            <ui:table augmentTitle="false" binding="#{Page1.table1}" id="table1" style="left: 72px; top: 96px; position: absolute; width: 360px"
                                title="Table" width="240">
                                <script><![CDATA[
    /* ----- Functions for Table Preferences Panel ----- */
    * Toggle the table preferences panel open or closed
    function togglePreferencesPanel() {
      var table = document.getElementById("form1:table1");
      table.toggleTblePreferencesPanel();
    /* ----- Functions for Filter Panel ----- */
    * Return true if the filter menu has actually changed,
    * so the corresponding event should be allowed to continue.
    function filterMenuChanged() {
      var table = document.getElementById("form1:table1");
      return table.filterMenuChanged();
    * Toggle the custom filter panel (if any) open or closed.
    function toggleFilterPanel() {
      var table = document.getElementById("form1:table1");
      return table.toggleTableFilterPanel();
    /* ----- Functions for Table Actions ----- */
    * Initialize all rows of the table when the state
    * of selected rows changes.
    function initAllRows() {
      var table = document.getElementById("form1:table1");
      table.initAllRows();
    * Set the selected state for the given row groups
    * displayed in the table.  This functionality requires
    * the 'selectId' of the tableColumn to be set.
    * @param rowGroupId HTML element id of the tableRowGroup component
    * @param selected Flag indicating whether components should be selected
    function selectGroupRows(rowGroupId, selected) {
      var table = document.getElementById("form1:table1");
      table.selectGroupRows(rowGroupId, selected);
    * Disable all table actions if no rows have been selected.
    function disableActions() {
      // Determine whether any rows are currently selected
      var table = document.getElementById("form1:table1");
      var disabled = (table.getAllSelectedRowsCount() > 0) ? false : true;
      // Set disabled state for top actions
      document.getElementById("form1:table1:tableActionsTop:deleteTop").setDisabled(disabled);
      // Set disabled state for bottom actions
      document.getElementById("form1:table1:tableActionsBottom:deleteBottom").setDisabled(disabled);
    }]]></script>
                                <ui:tableRowGroup binding="#{Page1.tableRowGroup1}" id="tableRowGroup1" rows="5" sourceData="#{Page1.docsDataProvider}" sourceVar="currentRow">
                                    <ui:tableColumn binding="#{Page1.tableColumn1}" headerText="LeafName" id="tableColumn1" sort="LeafName">
                                        <ui:staticText binding="#{Page1.staticText2}" id="staticText2" text="#{currentRow.value['LeafName']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{Page1.tableColumn2}" headerText="DirName" id="tableColumn2" sort="DirName">
                                        <ui:staticText binding="#{Page1.staticText3}" id="staticText3" text="#{currentRow.value['DirName']}"/>
                                    </ui:tableColumn>
                                </ui:tableRowGroup>
                            </ui:table>
                        </ui:form>
                    </ui:body>
                </ui:html>
            </ui:page>
        </f:view>
    </jsp:root>Folders <tomcat_install>\webapps\simple\
    Tree listing
    | Page1.jsp
    |
    +---META-INF
    | MANIFEST.MF
    |
    +---resources
    | stylesheet.css
    |
    \---WEB-INF
    | faces-config.xml
    | managed-beans.xml
    | navigation.xml
    | web.xml
    |
    +---classes
    | \---simple
    | ApplicationBean1.class
    | Bundle.properties
    | Page1.class
    | RequestBean1.class
    | SessionBean1.class
    |
    \---lib
    appbase.jar
    commons-beanutils.jar
    commons-collections.jar
    commons-digester.jar
    commons-fileupload-1.0.jar
    commons-logging-1.0.4.jar
    dataprovider.jar
    defaulttheme.jar
    errorhandler.jar
    jsf-api.jar
    jsf-impl.jar
    jsfcl.jar
    jstl.jar
    msbase.jar
    mssqlserver.jar
    msutil.jar
    portlet.jar
    rowset.jar
    sqlx.jar
    standard.jar
    webui.jar

    Help ~
    I will summarize what I have done
    SQL query written from scratch works in Tomcat.
    When using Java studio creator 2 it works in its native server environment ~ until exported, restart Tomcat, access page getting face value errors.
    Please note any work that is done at the company I work for, has to work in Tomcat as the finally product. Please don�t explain how to make this work in the Java Studio Creator 2 ~ I have already can do that.
    Two other developers are using this product for testing and are having similar issues.
    The way Java Studio Creator 2 registers the drives is the hang up
    Here is my paths so that no one inserts put files here or there ~ they can see if a file is missing.
    Folder PATH listing
    C:.
    | LICENSE
    | list.txt
    | NOTICE
    | ratrobot.war
    | RELEASE-NOTES
    | RUNNING.txt
    | SESSIONS.ser
    | tomcat.ico
    | Uninstall.exe
    |
    +---bin
    | bootstrap.jar
    | catalina.bat
    | catalina.sh
    | commons-daemon.jar
    | commons-logging-api.jar
    | cpappend.bat
    | digest.bat
    | digest.sh
    | jmx.jar
    | jsvc.tar.gz
    | service.bat
    | SESSIONS.ser
    | setclasspath.bat
    | setclasspath.sh
    | shutdown.bat
    | shutdown.sh
    | startup.bat
    | startup.sh
    | tcnative-1.dll
    | tomcat-juli.jar
    | tomcat5.exe
    | tomcat5w.exe
    | tool-wrapper.bat
    | tool-wrapper.sh
    | version.bat
    | version.sh
    |
    +---common
    | +---classes
    | | logging.properties
    | |
    | +---endorsed
    | | xercesImpl.jar
    | | xml-apis.jar
    | |
    | +---i18n
    | | tomcat-i18n-en.jar
    | | tomcat-i18n-es.jar
    | | tomcat-i18n-fr.jar
    | | tomcat-i18n-ja.jar
    | |
    | \---lib
    | commons-el.jar
    | jasper-compiler-jdt.jar
    | jasper-compiler.jar
    | jasper-runtime.jar
    | jsp-api.jar
    | jstl.jar
    | msbase.jar
    | mssqlserver.jar
    | msutil.jar
    | naming-factory-dbcp.jar
    | naming-factory.jar
    | naming-resources.jar
    | servlet-api.jar
    | standard.jar
    |
    +---conf
    | | catalina.policy
    | | catalina.properties
    | | context.xml
    | | context.xml.orig
    | | jk2.manifest
    | | jk2.properties
    | | jkconf.ant.xml
    | | jkconfig.manifest
    | | logging.properties
    | | server-minimal.xml
    | | server.xml
    | | server.xml.orig
    | | shm.manifest
    | | tomcat-jk2.manifest
    | | tomcat-users.xml
    | | uriworkermap.properties
    | | web.xml
    | | web.xml.orig
    | | workers.properties
    | | workers.properties.minimal
    | | workers2.properties
    | | workers2.properties.minimal
    | |
    | \---Catalina
    | \---localhost
    | host-manager.xml
    | manager.xml
    +---logs
    | admin.2005-05-30.log
    | admin.2006-03-11.log
    | admin.2006-03-17.log
    | catalina.2005-05-30.log
    | catalina.2006-03-11.log
    | catalina.2006-03-17.log
    | host-manager.2005-05-30.log
    | host-manager.2006-03-11.log
    | host-manager.2006-03-17.log
    | jakarta_service_20060311.log
    | jakarta_service_20060317.log
    | localhost.2005-05-30.log
    | localhost.2006-03-11.log
    | localhost.2006-03-17.log
    | manager.2005-05-30.log
    | manager.2006-03-11.log
    | manager.2006-03-17.log
    | stderr_20060311.log
    | stderr_20060317.log
    | stdout_20060311.log
    | stdout_20060317.log
    |
    +---server
    | +---classes
    | +---lib
    | | catalina-ant-jmx.jar
    | | catalina-ant.jar
    | | catalina-cluster.jar
    | | catalina-optional.jar
    | | catalina-storeconfig.jar
    | | catalina.jar
    | | commons-modeler.jar
    | | ratrobot.jar
    | | servlets-cgi.renametojar
    | | servlets-default.jar
    | | servlets-invoker.jar
    | | servlets-ssi.renametojar
    | | servlets-webdav.jar
    | | tomcat-ajp.jar
    | | tomcat-apr.jar
    | | tomcat-coyote.jar
    | | tomcat-http.jar
    | | tomcat-jkstatus-ant.jar
    | \-- tomcat-util.jar
    |
    +---shared
    | +---classes
    | \---lib
    | appbase.jar
    | commons-beanutils.jar
    | commons-collections.jar
    | commons-digester.jar
    | commons-fileupload-1.0.jar
    | commons-logging-1.0.4.jar
    | dataprovider.jar
    | defaulttheme.jar
    | errorhandler.jar
    | jsf-api.jar
    | jsf-impl.jar
    | jsfcl.jar
    | portlet.jar
    | ratrobot.jar
    | rowset.jar
    | sqlx.jar
    | webui.jar
    |
    +---sites
    | | Webapp Setup.htm
    | |
    | \---Webapp Setup_files
    | homecow.gif
    | java.css
    | javaphonebook.gif
    | pollhandler.css
    | site.js
    | website.css
    |
    +---temp
    | bugzilla37035-safeToDelete.tmp
    |
    +---webapps
    | | blankTest.war
    | | ratrobot.war
    | | simple.war
    | |
    | +---balancer
    | | +---images
    | | +---META-INF
    | | | context.xml
    | | |
    | | \---WEB-INF
    | | | web.xml
    | | |
    | | +---config
    | | | rules.xml
    | | |
    | | \---lib
    | | catalina-balancer.jar
    | |
    | +---blankTest
    | | | myApp.jsp
    | | | Page1.jsp
    | | |
    | | \---WEB-INF
    | | | faces-config.xml
    | | | managed-beans.xml
    | | | myApp.xml
    | | | navigation.xml
    | | | sun-web.xml
    | | | web.old
    | | | web.xml
    | | |
    | | \---lib
    | | appbase.jar
    | | bootstrap.jar
    | | commons-beanutils.jar
    | | commons-collections.jar
    | | commons-digester.jar
    | | commons-fileupload-1.0.jar
    | | commons-logging-1.0.4.jar
    | | commons-logging-api.jar
    | | dataprovider.jar
    | | defaulttheme.jar
    | | errorhandler.jar
    | | jsf-api.jar
    | | jsf-impl.jar
    | | msbase.jar
    | | mssqlserver.jar
    | \-- msutil.jar
    |
    | +---jsp-examples
    | | | index.html
    | | | source.jsp
    | | |
    | | +---cal
    | | | cal1.jsp
    | | | cal1.jsp.html
    | | | cal2.jsp
    | | | cal2.jsp.html
    | | | calendar.html
    | | | Entries.java.html
    | | | Entry.java.html
    | | | JspCalendar.java.html
    | | | login.html
    | | | TableBean.java.html
    | | |
    | | +---checkbox
    | | | check.html
    | | | checkresult.jsp
    | | | checkresult.jsp.html
    | | | CheckTest.html
    | | | cresult.html
    | | |
    | | +---colors
    | | | clr.html
    | | | ColorGameBean.html
    | | | colors.html
    | | | colrs.jsp
    | | | colrs.jsp.html
    | | |
    | | +---dates
    | | | date.html
    | | | date.jsp
    | | | date.jsp.html
    | | |
    | | +---error
    | | | er.html
    | | | err.jsp
    | | | err.jsp.html
    | | | error.html
    | | | errorpge.jsp
    | | |
    | | +---forward
    | | | forward.jsp
    | | | forward.jsp.html
    | | | fwd.html
    | | | one.jsp
    | | | two.html
    | | |
    | | +---images
    | | | code.gif
    | | | execute.gif
    | | | read.gif
    | | | return.gif
    | | |
    | | +---include
    | | | foo.html
    | | | foo.jsp
    | | | inc.html
    | | | include.jsp
    | | | include.jsp.html
    | | |
    | | +---jsp2
    | | | +---el
    | | | | basic-arithmetic.html
    | | | | basic-arithmetic.jsp
    | | | | basic-arithmetic.jsp.html
    | | | | basic-comparisons.html
    | | | | basic-comparisons.jsp
    | | | | basic-comparisons.jsp.html
    | | | | functions.html
    | | | | Functions.java.html
    | | | | functions.jsp
    | | | | functions.jsp.html
    | | | | implicit-objects.html
    | | | | implicit-objects.jsp
    | | | | implicit-objects.jsp.html
    | | | |
    | | | +---jspattribute
    | | | | FooBean.java.html
    | | | | HelloWorldSimpleTag.java.html
    | | | | jspattribute.html
    | | | | jspattribute.jsp
    | | | | jspattribute.jsp.html
    | | | | shuffle.html
    | | | | shuffle.jsp
    | | | | shuffle.jsp.html
    | | | | ShuffleSimpleTag.java.html
    | | | | TileSimpleTag.java.html
    | | | |
    | | | +---jspx
    | | | | basic.html
    | | | | basic.jspx
    | | | | basic.jspx.html
    | | | | svgexample.html
    | | | | textRotate.html
    | | | | textRotate.jpg
    | | | | textRotate.jspx
    | | | | textRotate.jspx.html
    | | | |
    | | | +---misc
    | | | | coda.jspf
    | | | | coda.jspf.html
    | | | | config.html
    | | | | config.jsp
    | | | | config.jsp.html
    | | | | dynamicattrs.html
    | | | | dynamicattrs.jsp
    | | | | dynamicattrs.jsp.html
    | | | | EchoAttributesTag.java.html
    | | | | prelude.jspf
    | | | | prelude.jspf.html
    | | | |
    | | | +---simpletag
    | | | | book.html
    | | | | book.jsp
    | | | | book.jsp.html
    | | | | BookBean.java.html
    | | | | FindBookSimpleTag.java.html
    | | | | Functions.java.html
    | | | | hello.html
    | | | | hello.jsp
    | | | | hello.jsp.html
    | | | | HelloWorldSimpleTag.java.html
    | | | | repeat.html
    | | | | repeat.jsp
    | | | | repeat.jsp.html
    | | | | RepeatSimpleTag.java.html
    | | | |
    | | | \---tagfiles
    | | | displayProducts.tag.html
    | | | hello.html
    | | | hello.jsp
    | | | hello.jsp.html
    | | | helloWorld.tag.html
    | | | panel.html
    | | | panel.jsp
    | | | panel.jsp.html
    | | | panel.tag.html
    | | | products.html
    | | | products.jsp
    | | | products.jsp.html
    | | | xhtmlbasic.tag.html
    | | |
    | | +---jsptoserv
    | | | hello.jsp
    | | | jsptoservlet.jsp
    | | | jsptoservlet.jsp.html
    | | | jts.html
    | | | servletToJsp.java.html
    | | |
    | | +---num
    | | | numguess.html
    | | | numguess.jsp
    | | | numguess.jsp.html
    | | |
    | | +---plugin
    | | | | plugin.html
    | | | | plugin.jsp
    | | | | plugin.jsp.html
    | | | |
    | | | \---applet
    | | | Clock2.class
    | | | Clock2.java
    | | |
    | | +---security
    | | | \---protected
    | | | error.jsp
    | | | index.jsp
    | | | login.jsp
    | | |
    | | +---sessions
    | | | carts.html
    | | | carts.jsp
    | | | carts.jsp.html
    | | | crt.html
    | | | DummyCart.html
    | | |
    | | +---simpletag
    | | | foo.html
    | | | foo.jsp
    | | | foo.jsp.html
    | | |
    | | +---snp
    | | | snoop.html
    | | | snoop.jsp
    | | | snoop.jsp.html
    | | |
    | | +---tagplugin
    | | | choose.html
    | | | choose.jsp
    | | | choose.jsp.html
    | | | foreach.html
    | | | foreach.jsp
    | | | foreach.jsp.html
    | | | howto.html
    | | | if.html
    | | | if.jsp
    | | | if.jsp.html
    | | | notes.html
    | | |
    | | +---WEB-INF
    | | | | tagPlugins.xml
    | | | | web.xml
    | | | |
    | | | +---classes
    | | | | | servletToJsp.class
    | | | | | servletToJsp.java
    | | | | |
    | | | | +---cal
    | | | | | Entries.class
    | | | | | Entries.java
    | | | | | Entry.class
    | | | | | Entry.java
    | | | | | JspCalendar.class
    | | | | | JspCalendar.java
    | | | | | TableBean.class
    | | | | | TableBean.java
    | | | | |
    | | | | +---checkbox
    | | | | | CheckTest.class
    | | | | | CheckTest.java
    | | | | |
    | | | | +---colors
    | | | | | ColorGameBean.class
    | | | | | ColorGameBean.java
    | | | | |
    | | | | +---compressionFilters
    | | | | | CompressionFilter.class
    | | | | | CompressionFilter.java
    | | | | | CompressionFilterTestServlet.class
    | | | | | CompressionFilterTestServlet.java
    | | | | | CompressionResponseStream.class
    | | | | | CompressionResponseStream.java
    | | | | | CompressionServletResponseWrapper.class
    | | | | | CompressionServletResponseWrapper.java
    | | | | |
    | | | | +---dates
    | | | | | JspCalendar.class
    | | | | | JspCalendar.java
    | | | | |
    | | | | +---error
    | | | | | Smart.class
    | | | | | Smart.java
    | | | | |
    | | | | +---examples
    | | | | | ExampleTagBase.class
    | | | | | ExampleTagBase.java
    | | | | | FooTag.class
    | | | | | FooTag.java
    | | | | | FooTagExtraInfo.class
    | | | | | FooTagExtraInfo.java
    | | | | | LogTag.class
    | | | | | LogTag.java
    | | | | | ShowSource.class
    | | | | | ShowSource.java
    | | | | |
    | | | | +---filters
    | | | | | ExampleFilter.class
    | | | | | ExampleFilter.java
    | | | | | RequestDumperFilter.class
    | | | | | RequestDumperFilter.java
    | | | | | SetCharacterEncodingFilter.class
    | | | | | SetCharacterEncodingFilter.java
    | | | | |
    | | | | +---jsp2
    | | | | | \---examples
    | | | | | | BookBean.class
    | | | | | | BookBean.java
    | | | | | | FooBean.class
    | | | | | | FooBean.java
    | | | | | |
    | | | | | +---el
    | | | | | | Functions.class
    | | | | | | Functions.java
    | | | | | |
    | | | | | \---simpletag
    | | | | | EchoAttributesTag.class
    | | | | | EchoAttributesTag.java
    | | | | | FindBookSimpleTag.class
    | | | | | FindBookSimpleTag.java
    | | | | | HelloWorldSimpleTag.class
    | | | | | HelloWorldSimpleTag.java
    | | | | | RepeatSimpleTag.class
    | | | | | RepeatSimpleTag.java
    | | | | | ShuffleSimpleTag.class
    | | | | | ShuffleSimpleTag.java
    | | | | | TileSimpleTag.class
    | | | | | TileSimpleTag.java
    | | | | |
    | | | | +---listeners
    | | | | | ContextListener.class
    | | | | | ContextListener.java
    | | | | | SessionListener.class
    | | | | | SessionListener.java
    | | | | |
    | | | | +---num
    | | | | | NumberGuessBean.class
    | | | | | NumberGuessBean.java
    | | | | |
    | | | | +---org
    | | | | | \---apache
    | | | | | \---jsp
    | | | | | | source_jsp.class
    | | | | | |
    | | | | | +---cal
    | | | | | | cal1_jsp.class
    | | | | | | cal2_jsp.class
    | | | | | |
    | | | | | +---checkbox
    | | | | | | checkresult_jsp.class
    | | | | | |
    | | | | | +---colors
    | | | | | | colrs_jsp.class
    | | | | | |
    | | | | | +---dates
    | | | | | | date_jsp.class
    | | | | | |
    | | | | | +---error
    | | | | | | errorpge_jsp.class
    | | | | | | err_jsp.class
    | | | | | |
    | | | | | +---forward
    | | | | | | forward_jsp.class
    | | | | | | one_jsp.class
    | | | | | |
    | | | | | +---include
    | | | | | | foo_jsp.class
    | | | | | | include_jsp.class
    | | | | | |
    | | | | | +---jsp2
    | | | | | | +---el
    | | | | | | | basic_002darithmetic_jsp.class
    | | | | | | | basic_002dcomparisons_jsp.class
    | | | | | | | functions_jsp.class
    | | | | | | | implicit_002dobjects_jsp.class
    | | | | | | |
    | | | | | | +---jspattribute
    | | | | | | | jspattribute_jsp.class
    | | | | | | | shuffle_jsp$shuffle_jspHelper.class
    | | | | | | | shuffle_jsp.class
    | | | | | | |
    | | | | | | +---jspx
    | | | | | | | basic_jspx$basic_jspxHelper.class
    | | | | | | | basic_jspx.class
    | | | | | | | textRotate_jspx.class
    | | | | | | |
    | | | | | | +---misc
    | | | | | | | config_jsp.class
    | | | | | | | dynamicattrs_jsp.class
    | | | | | | |
    | | | | | | +---simpletag
    | | | | | | | book_jsp.class
    | | | | | | | hello_jsp.class
    | | | | | | | repeat_jsp$repeat_jspHelper.class
    | | | | | | | repeat_jsp.class
    | | | | | | |
    | | | | | | \---tagfiles
    | | | | | | hello_jsp.class
    | | | | | | panel_jsp$panel_jspHelper.class
    | | | | | | panel_jsp.class
    | | | | | | products_jsp$products_jspHelper.class
    | | | | | | products_jsp.class
    | | | | | |
    | | | | | +---jsptoserv
    | | | | | | hello_jsp.class
    | | | | | | jsptoservlet_jsp.class
    | | | | | |
    | | | | | +---num
    | | | | | | numguess_jsp.class
    | | | | | |
    | | | | | +---plugin
    | | | | | | plugin_jsp.class
    | | | | | |
    | | | | | +---security
    | | | | | | \---protected_
    | | | | | | error_jsp.class
    | | | | | | index_jsp.class
    | | | | | | login_jsp.class
    | | | | | |
    | | | | | +---sessions
    | | | | | | carts_jsp.class
    | | | | | |
    | | | | | +---simpletag
    | | | | | | foo_jsp.class
    | | | | | |
    | | | | | +---snp
    | | | | | | snoop_jsp.class
    | | | | | |
    | | | | | +---tag
    | | | | | | \---web
    | | | | | | displayProducts_tag.class
    | | | | | | helloWorld_tag.class
    | | | | | | panel_tag.class
    | | | | | | xhtmlbasic_tag.class
    | | | | | |
    | | | | | +---tagplugin
    | | | | | | choose_jsp.class
    | | | | | | foreach_jsp$1.class
    | | | | | | foreach_jsp$10.class
    | | | | | | foreach_jsp$2.class
    | | | | | | foreach_jsp$3.class
    | | | | | | foreach_jsp$4.class
    | | | | | | foreach_jsp$5.class
    | | | | | | foreach_jsp$6.class
    | | | | | | foreach_jsp$7.class
    | | | | | | foreach_jsp$8.class
    | | | | | | foreach_jsp$9.class
    | | | | | | foreach_jsp.class
    | | | | | | if_jsp.class
    | | | | | |
    | | | | | \---xml
    | | | | | xml_jsp.class
    | | | | |
    | | | | +---sessions
    | | | | | DummyCart.class
    | | | | | DummyCart.java
    | | | | |
    | | | | +---util
    | | | | | HTMLFilter.class
    | | | | | HTMLFilter.java
    | | | | |
    | | | | \---validators
    | | | | DebugValidator.class
    | | | | DebugValidator.java
    | | | |
    | | | +---jsp
    | | | | | debug-taglib.tld
    | | | | | example-taglib.tld
    | | | | |
    | | | | \---applet
    | | | | Clock2.java
    | | | |
    | | | +---jsp2
    | | | | jsp2-example-taglib.tld
    | | | |
    | | | +---lib
    | | | | jstl.jar
    | | | | standard.jar
    | | | |
    | | | \---tags
    | | | displayProducts.tag
    | | | helloWorld.tag
    | | | panel.tag
    | | | xhtmlbasic.tag
    | | |
    | | \---xml
    | | xml.html
    | | xml.jsp
    | | xml.jsp.html
    | |
    | +---mydev
    | | | blankTest.war
    | | | ratrobot.war
    | | |
    | | +---balancer
    | | | +---images
    | | | +---META-INF
    | | | | context.xml
    | | | |
    | | | \---WEB-INF
    | | | | web.xml
    | | | |
    | | | +---config
    | | | | rules.xml
    | | | |
    | | | \---lib
    | | | catalina-balancer.jar
    | | |
    | | +---blankTest
    | | | | Page1.jsp
    | | | |
    | | | \---WEB-INF
    | | | | faces-config.xml
    | | | | managed-beans.xml
    | | | | navigation.xml
    | | | | sun-web.xml
    | | | | web.xml
    | | | |
    | | | \---lib
    | | | appbase.jar
    | | | bootstrap.jar
    | | | commons-beanutils.jar
    | | | commons-collections.jar
    | | | commons-digester.jar
    | | | commons-fileupload-1.0.jar
    | | | commons-logging-1.0.4.jar
    | | | commons-logging-api.jar
    | | | dataprovider.jar
    | | | defaulttheme.jar
    | | | errorhandler.jar
    | | | jsf-api.jar
    | | | jsf-impl.jar
    | | |
    | | +---jsp-examples
    | | | | index.html
    | | | | source.jsp
    | | | |
    | | | +---cal
    | | | | cal1.jsp
    | | | | cal1.jsp.html
    | | | | cal2.jsp
    | | | | cal2.jsp.html
    | | | | calendar.html
    | | | | Entries.java.html
    | | | | Entry.java.html
    | | | | JspCalendar.java.html
    | | | | login.html
    | | | | TableBean.java.html
    | | | |
    | | | +---checkbox
    | | | | check.html
    | | | | checkresult.jsp
    | | | | checkresult.jsp.html
    | | | | CheckTest.html
    | | | | cresult.html
    | | | |
    | | | +---colors
    | | | | clr.html
    | | | | ColorGameBean.html
    | | | | colors.html
    | | | | colrs.jsp
    | | | | colrs.jsp.html
    | | | |
    | | | +---dates
    | | | | date.html
    | | | | date.jsp
    | | | | date.jsp.html
    | | | |
    | | | +---error
    | | | | er.html
    | | | | err.jsp
    | | | | err.jsp.html
    | | | | error.html
    | | | | errorpge.jsp
    | | | |
    | | | +---forward
    | | | | forward.jsp
    | | | | forward.jsp.html
    | | | | fwd.html
    | | | | one.jsp
    | | | | two.html
    | | | |
    | | | +---images
    | | | | code.gif
    | | | | execute.gif
    | | | | read.gif
    | | | | return.gif
    | | | |
    | | | +---include
    | | | | foo.html
    | | | | foo.jsp
    | | | | inc.html
    | | | | include.jsp
    | | | | include.jsp.html
    | | | |
    | | | +---jsp2
    | | | | +---el
    | | | | | basic-arithmetic.html
    | | | | | basic-arithmetic.jsp
    | | | | | basic-arithmetic.jsp.html
    | | | | | basic-comparisons.html
    | | | | | basic-comparisons.jsp
    | | | | | basic-comparisons.jsp.html
    | | | | | functions.html
    | | | | | Functions.java.html
    | | | | | functions.jsp
    | | | | | functions.jsp.html
    | | | | | implicit-objects.html
    | | | | | implicit-objects.jsp
    | | | | | implicit-objects.jsp.html
    | | | | |
    | | | | +---jspattribute
    | | | | | FooBean.java.html
    | | | | | HelloWorldSimpleTag.java.html
    | | | | | jspattribute.html
    | | | | | jspattribute.jsp
    | | | | | jspattribute.jsp.html
    | | | | | shuffle.html
    | | | | | shuffle.jsp
    | | | | | shuffle.jsp.html
    | | | | | ShuffleSimpleTag.java.html
    | | | | | TileSimpleTag.java.html
    | | | | |
    | | | | +---jspx
    | | | | | basic.html
    | | | | | basic.jspx
    | | | | | basic.jspx.html
    | | | | | svgexample.html
    | | | | | textRotate.html
    | | | | | textRotate.jpg
    | | | | | textRotate.jspx
    | | | | | textRotate.jspx.html
    | | | | |
    | | | | +---misc
    | | | | | coda.jspf
    | | | | | coda.jspf.html
    | | | | | config.html
    | | | | | config.jsp
    | | | | | config.jsp.html
    | | | | | dynamicattrs.html
    | | | | | dynamicattrs.jsp
    | | | | | dynamicattrs.jsp.html
    | | | | | EchoAttributesTag.java.html
    | | | | | prelude.jspf
    | | | | | prelude.jspf.html
    | | | | |
    | | | | +---simpletag
    | | | | | book.html
    | | | | | book.jsp
    | | | | | book.jsp.html
    | | | | | BookBean.java.html
    | | | | | FindBookSimpleTag.java.html
    | | | | | Functions.java.html
    | | | | | hello.html
    | | | | | hello.jsp
    | | | | | hello.jsp.html
    | | | | | HelloWorldSimpleTag.java.html
    | | | | | repeat.html
    | | | | | repeat.jsp
    | | | | | repeat.jsp.html
    | | | | | RepeatSimpleTag.java.html
    | | | | |
    | | | | \---tagfiles
    | | | | displayProducts.tag.html
    | | | | hello.html
    | | | | hello.jsp
    | | | | hello.jsp.html
    | | | | helloWorld.tag.html
    | | | | panel.html
    | | | | panel.jsp
    | | | | panel.jsp.html
    | | | | panel.tag.html
    | | | | products.html
    | | | | products.jsp
    | | | | products.jsp.html
    | | | | xhtmlbasic.tag.html
    | | | |
    | | | +---jsptoserv
    | | | | hello.jsp
    | | | | jsptoservlet.jsp
    | | | | jsptoservlet.jsp.html
    | | | | jts.html
    | | | | servletToJsp.java.html
    | | | |
    | | | +---num
    | | | | numguess.html
    | | | | numguess.jsp
    | | | | numguess.jsp.html
    | | | |
    | | | +---plugin
    | | | | | plugin.html
    | | | | | plugin.jsp
    | | | | | plugin.jsp.html
    | | | | |
    | | | | \---applet
    | | | | Clock2.class
    | | | | Clock2.java
    | | | |
    | | | +---security
    | | | | \---protected
    | | | | error.jsp
    | | | | index.jsp
    | | | |

  • JSP: work with TomCat 5.5.9 and NOT work with TomCat 6.0.16

    Hi all,
    I'm Antony and I have a problem with a .JSP page of my server.
    In my server there are 2 users: "u1" and "u2"; there are 2 TomCat, version 5.5.9 and version 6.0.16. There is Apache WebServer version 2. The 2 TomCat servers have the same configuration files: server.xml and web.xml (in the dir /conf of the main server's root). They not work simultaneously.
    When the user "root" launch the TomCat 5.5.9 all work fine: the server will show correctly the JSP pages of "u1" and the pages of "u2".
    When the user "root" launch the TomCat 6.0.16 the JSP pages of "u1" work fine but the JSP pages of "u2" not work: it seems that there are problems with the path where the server want to search the pages of u2.
    In the server.xml there is this code (for the handle of u2's site):
    <Host name="u2site.com" appBase="/home/u2/public_html/">
      <Alias>www.u2site.com</Alias>
      <Context path="" reloadable="false" docBase="/home/u2/public_html/" debug="0"/>
              <Context path="/manager" debug="0" privileged="true"
                  docBase="/usr/local/jakarta/tomcat/server/webapps/manager">
              </Context>
    </Host>and this code (for the u1's site)
    <Host name="u1site.com" appBase="/home/u1/public_html/">
      <Context path="" reloadable="false" docBase="/home/u1/public_html" debug="1"/>
              <Context path="/manager" debug="0" privileged="true"
                  docBase="/usr/local/jakarta/tomcat/server/webapps/manager">
              </Context>
    </Host>The problems with the JSP pages of u2 are one of the following:
    org.apache.jasper.JasperException: /login2.jsp(4,0) The value for the useBean class attribute com.u2.beans.access.Autenticator is invalid.and this one that appear with the pages that have the inclusion of another JSP page
    /u2page.jsp(3,0) File "/../support/_formatting.jsp" not foundI think that the TomCat know how to find the page that the browser request to Apache WebServer (and that the webserver request to Tomcat by the connector) 'cause for pages that haven't inclusion or call to method in packages all work fine...but the TomCat have problems to locate the pages included or the method located in a JAR (the jars are located in WEB-INF/lib/ of the u2's site).
    How I can resolve this problem with TomCat 6.0.16? I repeat that with TomCat 5.5.9 all work fine...same configuration!
    Any ideas?
    Thank you very much,
    Antony.

    Hi stevejluke, 'cause in the page "/supporto/_formatting.jsp" there are only the definition of some variables it's normal that the output at the browser it's a blank page.
    The problem it's that Tomcat 6.0.16 cannot know how "navigate" the pages beginning from one...it know where is the "x.jsp" page requested directly by Apache WebServer, where is "y.jsp" request directly by Apache, where is "z.jsp" requested directly by Apache but if "x.jsp" request, includes, "y.jsp" Tomcat cannot know where "y.jsp" is located. There is some file where I can "say" this to Tomcat?
    The page "/mostre/elenco_mostre.jsp" includes directly the "/supporto/_formatting.jsp".
    Another thing: in /mostre/elenco_mostre.jsp there is an inclusion directive for /supporto/_formatting.jsp that is so:
    <%@ include file="../supporto/_formatting.jsp"%>you can see that the included file is "../supporto/_formatting.jsp" and NOT "/../supporto/_formatting.jsp"...the "/" at the begin of the path is included by Tomcat!
    In the catalina.out there are this lines, when the page is called:
    Jul 6, 2008 3:15:00 AM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: /elenco_mostre.jsp(3,0) File "/../supporto/_formatting.jsp" not found
      In catalina.out before server start there are this lines:
    Jul 6, 2008 1:43:49 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '1' did not find a matching property.
    Jul 6, 2008 1:43:49 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.
    Jul 6, 2008 1:43:49 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '1' did not find a matching property.
    Jul 6, 2008 1:43:49 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.
    Jul 6, 2008 1:43:49 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '1' did not find a matching property.
    Jul 6, 2008 1:43:49 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.
    Jul 6, 2008 1:43:49 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '1' did not find a matching property.
    Jul 6, 2008 1:43:49 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.
    Jul 6, 2008 1:43:49 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '1' did not find a matching property.
    Jul 6, 2008 1:43:49 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.
    Jul 6, 2008 1:43:49 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '1' did not find a matching property.
    Jul 6, 2008 1:43:49 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.
    Jul 6, 2008 1:43:49 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.
    Jul 6, 2008 1:43:49 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.
    Jul 6, 2008 1:43:49 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 358 ms
    Jul 6, 2008 1:43:49 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Jul 6, 2008 1:43:49 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.16
    Jul 6, 2008 1:43:52 AM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/23  config=null
    Jul 6, 2008 1:43:52 AM org.apache.catalina.connector.MapperListener registerEngine
    WARNING: Unknown default host: localhost
    Jul 6, 2008 1:43:52 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 2512 msThe file "web.xml" is located in "$Tomcat_home/conf" and it's:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
        http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
      <servlet>
        <servlet-name>jsp</servlet-name>
        <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
        <init-param>
          <param-name>fork</param-name>
          <param-value>false</param-value>
        </init-param>
        <init-param>
          <param-name>xpoweredBy</param-name>
          <param-value>false</param-value>
        </init-param>
        <load-on-startup>3</load-on-startup>
      </servlet>
      <servlet-mapping>
        <servlet-name>jsp</servlet-name>
        <url-pattern>*.jsp</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>jsp</servlet-name>
        <url-pattern>*.jspx</url-pattern>
      </servlet-mapping>
      <session-config>
        <session-timeout>30</session-timeout>
      </session-config>
      <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.jsp</welcome-file>
      </welcome-file-list>
    </web-app>there are not web.xml file in /WEB-INF/ of the web application.
    Maybe the problem it's that Tomcat want the conf file in "Server/Service/Engine/Host/Context" ? I must move the block HOST of the server.xml file in this path?
    Good Sunday and thank you!
    Antony.

  • Works with tomcat not with bea

    hai i am madav
    when i was working with tomcate it was fine but when i deploy in bea portal server with proper additions i am gettin java.io.FileNotFoundException: Response: '401:
    Unauthorized xxx' for url: 'http://feedsind3.cricinfo.com/live/index.xml'
    for below code
    Authenticator.setDefault(new MyAuthenticator());
    URL url = new URL"http://feedsind3.cricinfo.com/live/index.xml");
                   is=url.openStream();
    File f1=new File("c:\\hai2.xml");
              br = new BufferedReader(new InputStreamReader(is));
              bw1 = new BufferedWriter(new FileWriter(f1),5000);
              while((scoresFileUrl=br.readLine())!=null)
                   System.out.println(scoresFileUrl);
                   bw1.write(scoresFileUrl);
                   bw1.flush();
                   bw1.newLine();
                   bw1.close();
                   br.close();
                   is.close();
                   }catch(Exception e){
                   System.out.println(" exception raised in writeToFile "+e);
         RequestDispatcher rd=req.getRequestDispatcher("/livecric.jsp");
    rd.forward(req,res);     
    exception raised in writeToFile java.io.FileNotFoundException: Response: '401:
    Unauthorized xxx' for url: 'http://feedsind3.cricinfo.com/live/index.xml'

    Exactly my problem too. I read somewhere that JDK 1.5 has modified its Authenticator class but I am not able to find an example of how to handle a website that prompts you for userid/password.
    But I scaled back from JDK 1.5 to JDK 1.4 on Weblogic 8.1.5 but that does not work still. So I sense some issues with Weblogic server.
    Can someone help please? Moderators?

Maybe you are looking for

  • HT1918 How do I remove a credit card from my apple account?

    I am trying to remove my credit card from my account because I have a gift card and it is not letting me remove it? Can someone please help me.

  • Is there a way to force a View Object to query the database always?

    Dear All, Is there a way to force a view object to always scan the database table to read the latest data? Here's my use case. I have a page that loads data then I have a button which executes the following code. viewObject.setApplyViewCriteriaName("

  • GPS in Lightroom were are store information

    Hi! In lightroom 4.1, I'm using the Map to place images for my RAW images and get the GPS information. My question is : Were are store the GPS informations in the xmp file? If I'm looking the CR2 image in Photoshop in the File Info I cannot see any G

  • Restoring iTunes from a backup hard drive

    OK so my hard drive crashed. The good news is that the backup drive has all of my music on it. I got a new hard drive and installed iTunes. But now I do not understand how to get the music and playlists off of my backup drive and on to my new drive?

  • How can I change size rect in JPanel from another JPanel?

    I have code: import java.awt.*; import javax.swing.*; public class ProgramD { public static void main(String[] arg) { JFrame f=new JFrame(); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.setSize(840,440); f.setLayout(null); PanelLeft p1=new Pan