Relative URL in @ include file , parsing Exception

          Hello all
          I've a jsp file that includes another like
          <%@ include file="../common/common.jsp" %>
          It works fine on WL5.1 and on WL6.0sp1 as long as I don't package
          it in .war file. With the .war file I get the attached weblogic.utils.ParsingException
          exception.
          Is this a bug in WL6.0sp1? has anybody else encountered similar
          problem?
          TIA
          [parse.txt]
          

Ashish,
          We include all our jsp's using
          <%@ include file="/common/check_active_user.jsp" %>
          This works fine without any problem in open directory deployment and also when
          we deploy as war file.
          I checked the case you mentioned (changing /common to ../common) its fails for
          me too when I made war file.
          Thanks,
          Kumar.
          ashish gupta wrote:
          > Repost : hope this formats properly.
          >
          > Hello all
          > I've a jsp file that includes another like
          > < % @ include file="../common/check_active_user.jsp" % >
          > It works fine on WL5.1 and on WL6.0sp1 as long as I don't
          > packageit in .war file.
          > With the .war file I get the attached
          > Weblogic.utils.ParsingExceptionexception.
          > Is this a bug in WL6.0sp1? has anybody else encountered
          > similar problem?
          >
          > TIA
          >
          > ------------------------------------------------------------------------
          > Name: parse.txt
          > parse.txt Type: Plain Text (text/plain)
          > Encoding: base64
          

Similar Messages

  • Repost: relative URL in @ include file , parsing Exception

              Repost : hope this formats properly.
              Hello all
              I've a jsp file that includes another like
              < % @ include file="../common/check_active_user.jsp" % >
              It works fine on WL5.1 and on WL6.0sp1 as long as I don't
              packageit in .war file.
              With the .war file I get the attached
              Weblogic.utils.ParsingExceptionexception.
              Is this a bug in WL6.0sp1? has anybody else encountered
              similar problem?
              TIA
              [parse.txt]
              

    Ashish,
              We include all our jsp's using
              <%@ include file="/common/check_active_user.jsp" %>
              This works fine without any problem in open directory deployment and also when
              we deploy as war file.
              I checked the case you mentioned (changing /common to ../common) its fails for
              me too when I made war file.
              Thanks,
              Kumar.
              ashish gupta wrote:
              > Repost : hope this formats properly.
              >
              > Hello all
              > I've a jsp file that includes another like
              > < % @ include file="../common/check_active_user.jsp" % >
              > It works fine on WL5.1 and on WL6.0sp1 as long as I don't
              > packageit in .war file.
              > With the .war file I get the attached
              > Weblogic.utils.ParsingExceptionexception.
              > Is this a bug in WL6.0sp1? has anybody else encountered
              > similar problem?
              >
              > TIA
              >
              > ------------------------------------------------------------------------
              > Name: parse.txt
              > parse.txt Type: Plain Text (text/plain)
              > Encoding: base64
              

  • 'Import file parsing exception' while importing BIAR file

    Hi All,
    We use Java WebServices SDK for integrating our product with Business Objects. For installing the reports we use the InstallEntSDKWrapper jar to copy the BIAR file containing the reports on to the BO server. Till now we were using BO XI R2 and everything works fine.
    But now we have decided to upgrade to BO 3.0 and the reports install no longer works. Here is the error that we get -
    [InstallEntSdkWrapper.main] Connecting to CMS rwc-1950-120:6400 as administrator
    [InstallEntSdkWrapper.CmsImportFile] Exception: Import file parsing exception
    curred : 'Type info incomplete'
    [InstallEntSdkWrapper.main] BIAR File could not be imported
    Any idea what might be going wrong here? We are trying to import the same BIAR file that were created with the earlier BO version to the 3.0 version server. Couple of questions that I have is -
    1. Do we need to repackage the BIAR with 3.0 before attempting to install it? Are there any issues with trying to install a BIAR which is of older BO version?
    2. Do we need to add/modify any library (jar) in the runtime to get rid of the exception?
    Thanks for all the help.
    Regards
    Manas
    Edited by: Manas Mandlekar on Dec 23, 2009 1:34 AM

    Lucas,
    I have not seen this issue before. We'll investigate and contact you directly for more info. I'll post the resolution back to this forum once available.
    Doug

  • Firefox will not automatically convert local pdf URL to include file:// like it does for local html files

    I have some local PDFs sorted by navigating some local html files. Firefox recognizes that the html files need to be addressed file:///C:/SD_Online/datasc.html. When clicking the link for a PDF it remains c:/SD_Online/L-R4-106.pdf and I get an error saying "Firefox doesn't know how to open this address, because one of the following protocols (c) isn't associated with any program or is not allowed in this context."

    Press the '''Alt''' or '''F10''' key to bring up the tool bar.
    Followed by; '''File > Open File.'''

  • Relative URLs not working in JAR file once JAR is moved

    I've been loading images with the following:
    public static final ImageIcon anIcon = new ImageIcon("iconName.gif");
    This works fine when all the class files are in the same folder with the gifs. I then packaged the whole folder into a .jar file, moved the resulting .jar file to another directory, tried running it and none of the icons loaded. They are present in the .jar file, why doens't the relative URL still work? Is there simply another way to write the URL so that it knows to look in the .jar file?
    Thanks for help,
    Robert Douglass

    Is there simply another way to write the URL so that it knows to look in the .jar file?Once you put the class files along with your gif files in a jar, you have to access the gif file like this:
    import java.net.*;
    URL url=myClass.class.getResource("iconName.gif");
    ImageIcon anIcon = new ImageIcon(url);
    Where myClass is the name of your class file.
    V.V.

  • Can a include file exception crash an app server?

    Hi,
              Can somebody please help me with the answer to this question?
              Question is: I have an include file in a jsp page. But this include
              file is not present on the server and hence it is giving an
              exception.This exception is being caught and a message is thrown on
              the console.Now, will this exception 'crash' my app server anytime?
              Also will the exception be thrown everytime a user tries to access the
              jsp page? Please help.
              Thanks,
              

              "Shirin" <[email protected]> wrote in message
              news:[email protected]..
              > Hi,
              >
              > Can somebody please help me with the answer to this question?
              > Question is: I have an include file in a jsp page. But this include
              > file is not present on the server and hence it is giving an
              > exception.This exception is being caught and a message is thrown on
              > the console.Now, will this exception 'crash' my app server anytime?
              No. It shouldn't crash the app server.
              > Also will the exception be thrown everytime a user tries to access the
              > jsp page? Please help.
              Yes, until the file that is included exists or until the page handles the
              exception.
              Tom
              

  • Include File doesnt work with URLs

    Hi guys,
    Im using <jsp:include page="/topper.htm" flush="true"/> to include topper. Can i use the full URL ex <jsp:include page="http://www.hotelrooms2bid.com/topper.htm" flush="true"/>. Since the topper and footer will come from different Web Server, i have to use the full URL
    the Full URK path is not working in this case.
    pls help me.any inputs or ideas will be highly appreciated
    thanks,
    Sachin

    From http://java.sun.com/products/jsp/tags/12/syntaxref1214.html#8828 (emphasis mine):
    page="{ relativeURL | <%= expression %> }"
    The relative URL that locates the resource to be included, or an expression that evaluates to a String equivalent to the relative URL.
    The relative URL looks like a pathname--it cannot contain a protocol name, port number, or domain name. The URL can be absolute or relative to the current JSP page. If it is absolute (beginning with a /), the pathname is resolved by your web or application server.
    You could use a servlet in your "path" attribute and have that servlet read and return the page from a different server; there are ways to do what you want, but <jsp:include> isn't one of them.

  • Fx:include and fx:script - when is the included fxml file parsed?

    I'm curious to know when an included (via fx:include tag) fxml document is parsed and if a script defined in the main fxml document can reference elements from the included document. The example below results in the following error message: +"sun.org.mozilla.javascript.internal.EcmaError: ReferenceError: "loadOrdersButton" is not defined. (<Unknown source>#2) in <Unknown source> at line number 2"+
    Example:
    Main.fxml
    The script fails to find the loadOrdersButton defined in HeaderFields.fxml. (Yes the button's fx:id is set to loadOrdersButton)
    <?xml version="1.0" encoding="UTF-8"?>
    <BorderPane prefHeight="800.0" prefWidth="1200.0" xmlns:fx="http://javafx.com/fxml">
        <top>
                <fx:include source="HeaderFields.fxml">
                    <fx:script><![CDATA[
                        loadOrdersButton.setVisible( false );
                    ]]></fx:script>
                </fx:include>
        </top>
        <center>
        </center>
    </BorderPane>
    HeaderFields.fxml
    <?xml version="1.0" encoding="UTF-8"?>
    <AnchorPane xmlns:fx="http://javafx.com/fxml">
      <children>
        <Pane>
          <children>
            <Button fx:id="loadOrdersButton" />
          </children>
        </Pane>
      </children>
    </AnchorPane>

    I'm curious to know when an included (via fx:include tag) fxml document is parsed It is parsed as soon as it is encountered. In other words, the include is fully processed before the next element in the including file is processed.
    and if a script defined in the main fxml document can reference elements from the included document.It cannot. FXML IDs are considered "private" to the document and its associated controller (or any script code directly defined or referenced by that document). It is not possible to "inject" script code into an include as you appear to be attempting to do here.
    However, an include's controller is accessible to the including document. So if the controller for HeaderFields.fxml exposed a "loadOrdersButton" property via a getLoadOrdersButton() method, you could do something like this:
    <fx:include fx:id="headerFields" source="HeaderFields.fxml"/>
    <fx:script><![CDATA[
        headerFieldsController.loadOrdersButton.setVisible(false);
    ]]></fx:script>Of course, another option is to simply include the script in the HeaderFields.fxml file itself:
    <Button fx:id="loadOrdersButton" />
    <fx:script><![CDATA[
        loadOrdersButton.setVisible(false);
    ]]></fx:script>But I'm assuming there's some reason you don't want to do that.

  • Failure in Precompilation of JSPs  due to include file in WL6.1 SP2

    Hi
              We are getting the following error when we try to do precompilation of JSPs using
              precompile param to true in weblogic.xml
              We are deploying our application as war files.
              eagerly waiting for your help
              sincerely
              Ramesh
              Issue description and StackTrace:
              Issue:
              Precompilation of JSPs fail while using precompile param to true in weblogic.xml and deploy it as War file. It is througing "failure pre-compiling JSP's
              weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamE
              xception: Could not include index.jsp" exception.
              OS: Windows 2000
              Jdk: Sun Jdk1.3.1
              Weblogic: 6.1 SP2
              ***Stacktrace*************
              <Dec 17, 2002 1:05:51 PM CST> <Error> <HTTP> <[WebAppServletContext(3961036,AdvW
              eb,/AdvWeb)] failure pre-compiling JSP's
              weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamE
              xception: Could not include index.jsp
              at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1025)
              at weblogic.servlet.jsp.JspParser.doit(JspParser.java:80)
              at weblogic.servlet.jsp.JspParser.parse(JspParser.java:183)
              at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
              at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:255
              

    Ramesh,
              We experienced this sympton as well. In our JSPs, we converted
              <%@ include file="xyz.jsp"%> (static include, source time) to
              <jsp:include page="licensedQuote.jsp"/> (dynamic include, run time)
              and the problem went away.
              We still use static includes at the very start of the JSPs. It seems the problem only occurs when the static include is inside of a tag whose body does JSP evaluation.
              -Charlie
              "Ramesh Danala" <[email protected]> wrote in message news:[email protected]...
              > Hi
              > We are getting the following error when we try to do precompilation of JSPs using
              > precompile param to true in weblogic.xml
              > We are deploying our application as war files.
              > eagerly waiting for your help
              > sincerely
              > Ramesh
              >
              > Issue description and StackTrace:
              > Issue:
              >
              > Precompilation of JSPs fail while using precompile param to true in weblogic.xml and deploy it as War file. It is througing "failure pre-compiling JSP's
              > weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamE
              > xception: Could not include index.jsp" exception.
              >
              > OS: Windows 2000
              > Jdk: Sun Jdk1.3.1
              > Weblogic: 6.1 SP2
              >
              > ***Stacktrace*************
              >
              > <Dec 17, 2002 1:05:51 PM CST> <Error> <HTTP> <[WebAppServletContext(3961036,AdvW
              > eb,/AdvWeb)] failure pre-compiling JSP's
              > weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamE
              > xception: Could not include index.jsp
              > at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1025)
              > at weblogic.servlet.jsp.JspParser.doit(JspParser.java:80)
              > at weblogic.servlet.jsp.JspParser.parse(JspParser.java:183)
              > at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
              > at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:255
              > )
              

  • Jasper Parse Exception CRM HH Service

    I am getting a parse exception for the line in jsps that include this file -> "/include/HeadInclude.jsp".
    ated the following parse exception: org.apache.jasper.compiler.CompileException:
    C:\Documents and Settings\I806232\Documents\SAP\workspace\40SP08\cfg\service\tm
    p\app-root\include\HeadInclude.jsp(4,0) Bad file argument to include
    The file exists but still I get this error during pre-compilation.
    Any ideas?

    This is the standard HH Service war file. Almost every jsp in it uses the include tag so it won't be a good idea to change this in all the jsps.
    I checked the server.xml context path
    <Context path="" docBase="webapps/me" crossContext="true" debug="0" reloadable="false"
    />
    But this xml is not used during build time, is it? Is there anything missing from it. I dont see the HHService application context root in it..
    Thanks

  • JmsAdapter DOM Parsing Exception handling

    Hi,
    I'm currently facing a problem with the behaviour of the Jms Adapter.
    Whenever a JMS message is put in the queue and that message is not XML valid, the Jms Adapter (consumer) throw the exception "DOM Parsing Exception in translator Exception".
    That's fine, I understand that the message was not well formed. But what is not fine is that the underlying BPEL is not instanciated : meaning I can't handle the exception properly.
    Is there a way to force the Jms Adapter not to crash on the DOM Parsing for the BPEL to be instanciated (and then being able to handle the exception there) ?
    Or is there a way to handle the error thrown by the Jms Adapter itself ? How ?
    I think I do have a workaround to this if there is no better option (if both above questions cannot be answered) but I would rather not implement it since it will involve some extra steps / complexity.
    > It would be to check the "native format opaque schema" option and then use a java embedded to decode the base64 into a string for eventually parsing it.
    regards,
    mathieu

    Hi Mathieu,
    The messages that error out before being posted to the service infrastructure are referred to as rejected messages. For example, the Oracle File Adapter selects a file having data in CSV format and tries to translate it to XML format (using NXSD). If there is any error in the translation, this message is rejected and are not be posted to the target composite.
    You can create rejection handlers to handle message errors. Message errors include those that occur during translation, correlation ID mismatch and XML parsing after message reception.
    Docs on how to do that are here...
    http://docs.oracle.com/cd/E28280_01/integration.1111/e10231/life_cycle.htm#CIAIICJJ
    Cheers,
    Vlad

  • DOM Parsing Exception in translator

    Hi
    We are hitting one issue in B2B/SOA 11g.
    BPEL instance is not getting created in 11g. Messages are picked from B2B queue and BPEL is failing while dequeing.
    It says that
    DOM Parsing Exception in translator. DOM parsing exception in inbound XSD translator while parsing InputStream. Please make sure that the xml data is valid.
    Is it due to large size of the message. I have seen the message size and it is more than 3 MB.
    Pls help
    Thanks
    Simarjeet

    Hi Anuj
    I have analysed the issue in detail. B2B is not generating the payload for one of the message so dequeue is failing and message is rejected.
    Say in one EDI file, we have 6 messages then B2B is able to create 6 separate messages while debatching but one of the message payload is empty. Error in log is
    DOM parsing exception in inbound XSD translator while parsing InputStream.
    Please make sure that the xml data is valid.
    DOM Parsing Exception in translator.
    DOM parsing exception in inbound XSD translator while parsing InputStream.
    Please make sure that the xml data is valid.
         at oracle.tip.adapter.aq.v2.database.MessageConverter.translateMessageBytes(MessageConverter.java:510)
         at oracle.tip.adapter.aq.v2.database.MessageConverter.getSTRUCTPayload(MessageConverter.java:404)
         at oracle.tip.adapter.aq.v2.database.MessageConverter.getPayload(MessageConverter.java:139)
         at oracle.tip.adapter.aq.v2.database.XMLRecordMessageConverter.getRecord(XMLRecordMessageConverter.java:88)
         at oracle.tip.adapter.aq.v2.database.AbstractDequeueAgent.getInputRecord(AbstractDequeueAgent.java:236)
         at oracle.tip.adapter.aq.v2.database.AbstractDequeueAgent.run(AbstractDequeueAgent.java:101)
         at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:105)
         at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:183)
         at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
    Caused by: ORABPEL-11211
    DOM Parsing Exception in translator.
    DOM parsing exception in inbound XSD translator while parsing InputStream.
    Please make sure that the xml data is valid.
         at oracle.tip.pc.services.translation.xlators.xsd.XSDTranslator.translateFromNative(XSDTranslator.java:607)
         at oracle.tip.adapter.aq.v2.database.MessageConverter.translateMessageBytes(MessageConverter.java:506)
         ... 8 more
    Caused by: oracle.xml.parser.v2.XMLParseException: Start of root element expected.
         at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:323)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:380)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:321)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:226)
         at oracle.tip.pc.services.translation.xlators.xsd.XSDTranslator.translateFromNative(XSDTranslator.java:601)
         ... 9 more
    I have also tested the file using various modes unix/pc and ansi/utf-8 encoding. Is this issue related with performance tuning, tablespace etc?

  • How to use relative url

    I use xml file to save configuration and saved /WEB-INF/config.xml
    In my java class i can't use that file with relative url.
    document=builder.parse(new File("/WEB-INF/config.xml"));

    Try something like this:
    String thisPath = this.getClass().getResource("").getPath();
    document=builder.parse(new File(thisPath + "/WEB-INF/config.xml"));

  • FileNotFoundException Url /site_files/include/js/internet2_dcs_tag.js. How to find which page requested it, or locate the folder?

    Hi,
    I'm getting a frequently recurring error in the logs, as follows:
    GetFileFromUrl: FileNotFoundException when attempting get file Url /site_files/include/js/internet2_dcs_tag.js The system cannot find the file specified. (Exception from HRESULT: 0x80070002) at Microsoft.SharePoint.Library.SPRequestInternalClass.GetMetadataForUrl(String
    bstrUrl, Int32 METADATAFLAGS, Guid& pgListId, Int32& plItemId, Int32& plType, Object& pvarFileOrFolder) at Microsoft.SharePoint.Library.SPRequest.GetMetadataForUrl(String bstrUrl, Int32 METADATAFLAGS, Guid& pgListId, Int32& plItemId,
    Int32& plType, Object& pvarFileOrFolder) at Microsoft.SharePoint.SPWeb.GetListItem(String strUrl, Boolean bFields, String[] fields) at Microsoft.SharePoint.Publishing.CommonUtilities.GetCurrentFileVersionFromUrl(String url, SPWeb web)
    How can I find out what is requesting this file?
    Also, any ideas on where is this file supposed to be?  I can't find /site_files/include/js/ anywhere, so I'm guessing its virtual.
    Hoping someone can help!
    Thank you.

    This could happen if you have the BLOB cache enabled and this issue got resolved in Dec CU package. Please refer the below link .
    http://blogs.msdn.com/b/spses/archive/2013/10/23/sharepoint-2010-using-blob-caching-throws-many-errors-in-the-uls-and-event-logs-the-system-cannot-find-the-file-specified.aspx
    Aravind http://aravindrises.blogspot.com

  • Generating relative URLs in 12.1.3 menus

    Does anyone know if it is possible to get R12.1.3 to generate relative URL for all menu items?
    The new AJAX based menus are returning absolute URL for all menu item links.
    If this is the wrong forum please let me know
    thanks

    Hi,
    ERROR: I/O or zip error while attempting to read entry oracle/xdo/parser/schema/XSDIdConstraintTable$NodeTable.class in zip This error indicates one of the following:
    - Permission are not set correctly, so please verify the permissions -- See (Note: 339762.1)
    - The file is corrupted or missing, and you would need to find the file and copy it to the appropriate directory -- See (Note: 299723.1, 299964.1, 343639.1, 746167.1) for examples
    If none of the above helps, I would suggest you log a SR.
    Thanks,
    Hussein

Maybe you are looking for

  • HP Officejet Pro 8600 ( Language change on printer screen )

    I have recently purchased an HP officejet Pro 8600 printer during set up the wrong language was entered by one of my kids & I am unable to read instructions or correct the mistake The printer screen is currently in a foreign language & I am wanting t

  • Save data to array(dele​te two previous wrong threads, please )

    Sorry ,I have put two same threads in this board by wrong operation, please delete for me.Thanks. Hi, I want to save a series of data to an array in the following prosedure: The first data come (index of array = 0), save the data to a(0), then the se

  • Dep. run restart error

    we have  run depreciation run for asset 100020(useful live 3 years) for June. in July.10, we change asset useful live to 5 years, now we run AFAB for June and choose restart run, however, the output list is empty. we also try repeat run, but still no

  • Header information in text files

    I have a VI which logs information every ten minutes into a text file. I want to add a header to the beginning of the file only once, not every ten minutes as with the rest of the information. How can I accomplish this.

  • Server Object model Vs Search object model

    Hi , Is it preferred to use sharepoint sever object (powershell) model over Search object model for large data as search has dependency on crawling. Swati SP Page: http://www.facebook.com/SharePointQ SP Blog: http://swatipoint.blogspot.com