Bug in WL9.1 JSP Engine?

Hello,
          I am working with JSP 2.0 documents (JSPX) and am trying to use the include directive to include another JSPX. However, if the included JSPX has <jsp:root> as its root element, the JSP compiler fails with the following message:
                    Compilation of JSP File '/index.jspx' failed:
          index.jspx:11:37: Error in "C:\programs\bea\user_projects\domains\v9_domain\autodeploy\testjsp\include.jspx" at line 1: This element may only appear as the root element in the document
                  <jsp:directive.include file="include.jspx"/>
                              Here are my 2 JSPs:
          index.jspx:
                    <html xmlns:jsp="http://java.sun.com/JSP/Page">
              <jsp:directive.page  contentType="text/html"/>
              <jsp:output xmlns:jsp="http://java.sun.com/JSP/Page"
                          doctype-root-element="html"
                          doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
                          doctype-system="http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
              <head>
                  <title>Hello World</title>
                  <jsp:directive.include file="include.jspx"/>
              </head>
              <body>
                  Hello World
              </body>
          </html>
                              include.jspx:
                    <jsp:root version="2.0" xmlns:jsp="http://java.sun.com/JSP/Page">
              <meta name="description" content="foobar"/>
          </jsp:root>
                              This works fine in Tomcat 5.5, and it appears to be a valid JSP include according to the spec.
          Is this a known issue?
          Thanks,
          Scott Rankin

I'm stupid, by following the tutorial without thinking. It says "click on the Link element on the palette". If I'd clicked on the link button on the formatting toolbar (between background color and bold) everything would have worked fine.
Sorry to have bothered you.

Similar Messages

  • How to configure Oracle jsp engine on OAS4.0.8.1

    1. How to configure Oracle jsp engine on OAS4.0.8.1 for linux
    2. How to set the parameter on OAS. The Ojsp document only give examples depict the syntax used when running in an Apache/JServ 1.0 environment

    Anyone?

  • Oracle JSP engine on Apache

    Hi,
    We have Apache Web server 1.3.9 and Jserv 1.1b3. On top of this, we have installed Oracle JSP engine. We have put the names of all the required jar files and directories in jserv.properties file. But, when we try to access any jsp files from a browser we are getting following error:
    Request URI: /test.jsp
    Exception:
    oracle.jsp.provider.JspCompileException:
    Errors compiling: d:\demos\apache\htdocs\_pages\test.java
    Package javax.servlet.jsp not found in import. import javax.servlet.jsp.*;
    Any idea why this error is happening.
    Thanks in advance,
    null

    Apache JServ implements Servlet 2.0 -- this class library doesn't contain the JSP interface classes. The JSP interface classes are contained in the JSWDK 1.0 (or greater) available from Sun. Download and configure Apache to use this class library AFTER the reference to the servlet 2.0 class library. For more information please check out the Documentation section for JSPs on technet. It contains specific information on configuring/installing for Apache.

  • Is JSP Engine compatible and up to date?

    I've been looking for a way to compile jsps from the command line so they can be verified during our automated ant builds rather than producing compile errors during testing.
    I noticed the jsp engine on the downloads page and it seems to do what I want. However, it seems pretty old. Is it compatible with the lastest versions of tomcat and oc4j?

    If you want a media server you're proably better of buying a Mac that doesn't have a screen like the Mac mini.

  • JDeveloper 3.1 JSP Engine Run-Time error - "NLSFormat undefined"

    hi,
    I have a JSP/Bean page running through JDeveloper 3.1
    It has the "EditForm" bean with (among other fields) a date field in it.
    <jsp:useBean class="....EditForm" id = "f1">
    <%
    f1.initialize(.....);
    f1.setFormAction(.....);
    f1.addHiddenField("executeQuery","true");
    f1.addDateField("List Docs failed on","ReportDate1",null,null,null,null);
    f1.addSubmitButton("submit","Submit");
    f1.render();
    %>
    Scenario:
    When the JSP page is generated and i enter a date value like (08-SEP-00) and click on the "Submit" button, i get the following error.
    Error Name: "Run-Time Error: NLSformat is undefined"
    The relevant generated HTML line in the page which has the NLSformat in itis as follows:
    <INPUT TYPE="TEXT" NAME="ReportDate1" onchange="this.value = datecheck(this.value,NLSformat);checkForError(this,distribute)"
    Is NLSformat something to do with the datefield ? - I was reading thru the OTN docs, does NLSformat need to set up as a startup parameter in the 8i instance? - is that the way the JSP engine picks up the value/definition of the NLSformat variable? - I would really appreciate some replies on this issue.
    Thanks,
    Balaji
    null

    Hello,
    Even I am facing the same problem on windows 98. When I try to run my database servlet from Jdeveloper3.0 nothing happens.
    In browser .../.../webapprunner.html url gives similar error like the one Flavio is getting. Which version of Jdeveloper can I use on Win 98?
    Thanks
    null

  • Webserver/jsp engine call into weblogic ejb container

    Which one of these architectures would give the best performance.
              First architecture:
              3 boxes -
              1st box - webserver(IIS or IPlaner) with a JSP engine. (The JSP's
              produce dynamic content.)
              2nd box - weblogic 5.1 hosting EJB's
              3rd box - Oracle or DB2
              The 1st box is used to server up dynamic contect. The JSP's make dynamic
              contect from calls into the EJB container in the 2nd box. The EJB's then
              calls the DB in the 3rd box.
              2nd architecture:
              3 boxes-
              1st box - webserver with weblogic plug-ins for IIS or IPlanet
              2nd box - weblogic 5.1 - hosting JSP pages and EJBs
              3rd box - Oracle or DB2
              The 1st box's webserver just receives the request to JSPs and lets the
              plug-in find the appropriate weblogic instance. The JSPs that are processed
              on the 2nd box make calls into the EJB container on the 2nd box. The EJBs
              then make calls to the DB on the 3rd box.
              thanks
              -cb
              

    thanks you both for you input
              "Cameron Purdy" <[email protected]> wrote in message
              news:[email protected]...
              > It is certainly more efficient in terms of JSP/Servlet to EJB invocations
              if
              > you use WebLogic to do all three (JSP/Servlet/EJB) due to the
              well-designed
              > client stubs for EJBs that do pass-by-reference. If you have lots of
              small
              > invocations to EJBs, that is a good reason to consider WL for all three
              > (JSP/Servlet/EJB).
              >
              > OTOH there are a good number of developers that I have spoken with that
              > prefer other Servlet engines. These developers have had excellent
              > experiences with WL EJB handling, but some issues with JSP/Servlets, or
              > simply needed features offered by other servers. A few may have decided
              on
              > a price basis. Some of the technical issues were related to WL class
              > loading issues that are scheduled to be completely improved in the fall WL
              > release.
              >
              > All of that said, I personally would probably stick with WL to do all
              three
              > (JSP/Servlet/EJB). I believe that I have found most of the problems that
              WL
              > has ;-) and I have come through the other side still really liking the
              > product -- so even it's worst points (like the linkage error that had me
              > pulling out my hair and even searching through the Sun JVM sources ;-)
              > aren't that bad because it is a strong enough product that there are
              always
              > ways to work through or around just about anything. If I had to look at a
              > different JSP/Servlet engine, I would start with Caucho Resin, simply
              > because I like their approach and I know it works well with WL.
              >
              > Lastly remember that in the J2EE world, "no one ever got fired for buying
              > BEA WebLogic!"
              >
              > --
              >
              > Cameron Purdy
              > http://www.tangosol.com
              >
              >
              > "Chris Bick" <[email protected]> wrote in message
              > news:[email protected]...
              > > So you would not support/advise an architecture that has the JSP/Servlet
              > > engine on a different box then weblogic? If this is the case, could you
              > > give some reasons why?
              > >
              > > thanks,
              > > -cb
              > > "Cameron Purdy" <[email protected]> wrote in message
              > > news:[email protected]...
              > > > 1. Your bottleneck will probably be the third box (database server)
              in
              > > > either scenario. That's probably your biggest up-front cost -- making
              > > sure
              > > > the db server is up to the task.
              > > > 2. The second architecture is suggested by WL. The reason is that if
              > box
              > > > #2 (WL) is a cluster, you can theoretically add more boxes easily to
              get
              > > > pseudo-linear scaling for JSP and EJB processing. Of course, that
              only
              > > > helps if your database is not a bottleneck ;-) WL cluster is $17k per
              > > CPU.
              > > > 3. The real answer is that it depends on your application and the
              > number
              > > of
              > > > users that you are expecting. You want to make sure that when your
              site
              > > is
              > > > loaded that there is no significant queueing of requests on the WL
              side.
              > > I
              > > > believe you can see that information in the WL monitor.
              > > >
              > > > --
              > > >
              > > > Cameron Purdy
              > > > http://www.tangosol.com
              > > >
              > > >
              > > > "Chris Bick" <[email protected]> wrote in message
              > > > news:[email protected]...
              > > > > Which one of these architectures would give the best performance.
              > > > >
              > > > > First architecture:
              > > > >
              > > > > 3 boxes -
              > > > >
              > > > > 1st box - webserver(IIS or IPlaner) with a JSP engine. (The
              > > JSP's
              > > > > produce dynamic content.)
              > > > > 2nd box - weblogic 5.1 hosting EJB's
              > > > > 3rd box - Oracle or DB2
              > > > >
              > > > > The 1st box is used to server up dynamic contect. The JSP's make
              > > dynamic
              > > > > contect from calls into the EJB container in the 2nd box. The
              EJB's
              > > then
              > > > > calls the DB in the 3rd box.
              > > > >
              > > > > 2nd architecture:
              > > > >
              > > > > 3 boxes-
              > > > >
              > > > > 1st box - webserver with weblogic plug-ins for IIS or IPlanet
              > > > > 2nd box - weblogic 5.1 - hosting JSP pages and EJBs
              > > > > 3rd box - Oracle or DB2
              > > > >
              > > > > The 1st box's webserver just receives the request to JSPs and lets
              the
              > > > > plug-in find the appropriate weblogic instance. The JSPs that are
              > > > processed
              > > > > on the 2nd box make calls into the EJB container on the 2nd box.
              The
              > > EJBs
              > > > > then make calls to the DB on the 3rd box.
              > > > >
              > > > > thanks
              > > > > -cb
              >
              >
              >
              

  • Upgrading Oracle JSP Engine to 1.1.2

    I'm trying to upgrade Oracle JSP Engine from 1.1.0.0.0 (which comes with Oracle 8.1.7) to 1.1.2.
    I've downloaded new version from OTN and I used loadjava to update classes in the database. Now I'm trying to use ncomp to natively compile classes (like I've read in the Releases Notes) but I'm getting:
    error in: FindClassesToNcomp :java.sql.SQLException: ORA-29532: Java call terminated by uncaught Java exception: java.sql.SQLException: java.sql.SQLException: failed to produce status report because of: java.sql.SQLException: got error at insert into jaccelerator$status oracle.jdbc.driver.OracleSQLException: ORA-01401: inserted value too large for column
    ORA-06512: at "SYS.JACCELERATOR___FIND_CLASS_LIST", line 0
    ORA-06512: at "SYS.JACCELERATOR_FIND_CLASS_LIST", line 1
    ORA-06512: at line 1
    Any idea??
    Thanks in advance.
    MJ.
    null

    Welcome to the discussions!
    Adding RAM is the quickest and cheapest way to get a performance boost. As mentioned, the apps you use are not universal and will run through the Rosetta translator which is a rather RAM intensive operation.
    My suggestion is to get at least 1GB and if it is not too much of a stretch to get 2GB. RAM is relatively inexpensive now and the benefits will be seen immediately.

  • My JSP engine won't load the new source from my page

    My JSP engine won't load the new source from my page, even know I saved it, and I restarted apache, and resaved the files again, no dice! It must be running off of cash, it's not in my browser cash I cleared it out too, what else can I do?

    Tomcat checks to see if the JSP has changed since it was last compiled with you request that page... So, if the file is updated, it should recompile it. Are you sure that when you update the page, you're updating the same copy of the page? (the location defined in the server.xml file)

  • Bug in viewCDZDocument.jsp?

    When the 'refresh on open' option is clicked on, viewCDZDocument.jsp calls getPrompts.jsp. We modified getPrompts.jsp to access the document's data providers. This puts the system in some weird state where it doesn't think there is any data returned by the query, and it displays the "No Data Retreived" message. But when I change viewCDZDocument.jsp to call refreshDocument.jsp in the case where the 'refresh on open' option is clicked on, I don't get the message - everything works great. Makes sense too - why would it call anything other than refreshDocument.jsp in this situation. Therefore, I think there is a bug in viewCDZDocument.jsp.
    Any opinions?

    When the 'refresh on open' option is clicked on, viewCDZDocument.jsp calls getPrompts.jsp. We modified getPrompts.jsp to access the document's data providers. This puts the system in some weird state where it doesn't think there is any data returned by the query, and it displays the "No Data Retreived" message. But when I change viewCDZDocument.jsp to call refreshDocument.jsp in the case where the 'refresh on open' option is clicked on, I don't get the message - everything works great. Makes sense too - why would it call anything other than refreshDocument.jsp in this situation. Therefore, I think there is a bug in viewCDZDocument.jsp.
    Any opinions?

  • How to keep the servlet java code the JSP engine generated?

    Hello there!
              I am using some JSP in a web application, and would like to take a llok
              at the servlet java files th weblogic JSP engine generated.
              In my weblogic.properties file I have the following line:
              "# Set up WebLogic JSP properties
              weblogic.httpd.register.*.jsp=weblogic.servlet.JSPServlet
              weblogic.httpd.initArgs.*.jsp=\
              pageCheckSeconds=1,\
              compileCommand=F:/VisualCafeEE/bin/sj.exe,\
              workingDir=F:/weblogic/myserver/classfiles,\
              verbose=true,\
              keepgenerated=true"
              However, the only things I can find are the class files compiled from
              the servlet java files.
              Any suggestions?
              Thanks.
              Jeff.
              

    Moerover, if you follow the example web.xml Weblogic provides
              (http://www.weblogic.com/docs51/classdocs/sample_web_xml.html), the parser
              would complaint big time.
              The <servlet> and <context-param> tags have to be switched.
              Jeff
              "John J. Feigal" wrote:
              > I'm not sure why, but specifying keepgenerated=true in weblogic.properties
              > did not do the job for us.
              >
              > We had to add the following to our application's web.xml file:
              >
              > <!-- keepgenerated initArg to JSPServlet -->
              > <context-param>
              > <param-name>weblogic.jsp.keepgenerated</param-name>
              > <param-value>true</param-value>
              > </context-param>
              >
              > --
              > John J. Feigal Voice (651)766-8787 (main)
              > Sr. Technical Consultant (651)766-7249 (direct)
              > Ensodex, Inc. Fax (651)766-8792
              > 4105 N. Lexington Ave., Suite 150 email [email protected]
              > Arden Hills, MN 55126 WebSite http://www.ensodex.com
              >
              > "Jong Lee" <[email protected]> wrote in message
              > news:[email protected]...
              > >
              > > You have the init arg "keepgenerated" tunred on in weblogic.properties.
              > > The java file should be kept in the same directory of your jsp file.
              > >
              > > You can also use "jspc" to generate the java source.
              > > i.e:
              > > "java weblogic.jspc -keepgenerated yourjspfile"
              > >
              > >
              > >
              > >
              > >
              > > Jeff Wang <[email protected]> wrote:
              > > >Hello there!
              > > >
              > > >I am using some JSP in a web application, and would like to take a llok
              > > >at the servlet java files th weblogic JSP engine generated.
              > > >
              > > >In my weblogic.properties file I have the following line:
              > > >
              > > >"# Set up WebLogic JSP properties
              > > >weblogic.httpd.register.*.jsp=weblogic.servlet.JSPServlet
              > > >weblogic.httpd.initArgs.*.jsp=\
              > > > pageCheckSeconds=1,\
              > > > compileCommand=F:/VisualCafeEE/bin/sj.exe,\
              > > > workingDir=F:/weblogic/myserver/classfiles,\
              > > > verbose=true,\
              > > > keepgenerated=true"
              > > >
              > > >However, the only things I can find are the class files compiled from
              > > >the servlet java files.
              > > >
              > > >Any suggestions?
              > > >
              > > >Thanks.
              > > >
              > > >Jeff.
              > > >
              > >
              

  • Through the JSP Engine twice

    I have XML file and XSL-file, the XSL files returns almost the same XML as before but with JSP-statements added. So when I write
    transformer.transform(new StreamSource(�formO.xml�), new StreamResult(out));
    the output is indeed an XML-file with <% ... %> statements in between. How do I parse this file again by the JSP-engine to replace the JSP-statements. Is it possible without using temporary files or something?
    Greetings,
    Raf

    Well, I have a JSP-page that looks like this:
    <%@ page contentType="text/xml" %>
    <%@ page import="javax.xml.transform.TransformerFactory" %>
    <%@ page import="javax.xml.transform.Transformer" %>
    <%@ page import="javax.xml.transform.stream.StreamSource" %>
    <%@ page import="javax.xml.transform.stream.StreamResult" %>
    <%@ page import="javax.xml.transform.TransformerException" %>
    <%@ page import="javax.xml.transform.TransformerConfigurationException" %>
    <%@ page import="java.io.FileOutputStream" %>
    <%
    TransformerFactory tFactory = TransformerFactory.newInstance();
    Transformer transformer = tFactory.newTransformer(new StreamSource("DbToXml.xsl"));
    transformer.transform(new StreamSource("formO.xml"), new StreamResult(out));
    %>
    And it returns the next code:
    <?xml version="1.0" encoding="iso-8859-1" ?>
    - <formO>
    <titel>Subsidie aanvraag voor een sociaal woonproject</titel>
    - <rubriek>
    <titel>Rubriek 1: Algemene gegevens</titel>
    - <punt>
    <titel>1.1. Naam van het project</titel>
    <tekstvak />
    </punt>
    - <punt>
    <titel>1.2. Ligging</titel>
    - <tekstvak>
    <titel>straat en huisnummers <%= example.getSomething() %></titel>
    </tekstvak>
    - <tekstvak>
    <titel>wijk <%= example.getSomething() %></titel>
    </tekstvak>
    Now how should I replace the example.getSomething??
    Greetings,
    Raf

  • Can the servlet/jsp engine be brought down

    Hello,
              Can the servlet/jsp engine be scheduled for a "in-house patch" not affecting
              the EJB Container? That means the jsp/servlet engine is brought down.
              (HotDeploy is a development feature). Does any version of WebLogic provide
              any way to do this?
              It is a single VM and I suppose that this is not possible. Just thinking out
              loud!!
              Thanks
              Gaurav
              

    Sorry, but there's no way to apply a hot-patch to the server. Good idea, but
              very tricky to implement!
              If you were using a cluster with session-replication, you can cycle the
              servers one at a time. The other servers will pick up where the
              downed-server was working. You can then apply the patch, and bring up the
              server again. Give it a few minutes (an hour to be safe!) to replicate from
              the running server, then cycle the other server safely.
              Alex
              "Gaurav Khanna" <[email protected]> wrote in message
              news:3c7c1256$[email protected]..
              > Hello,
              >
              > Can the servlet/jsp engine be scheduled for a "in-house patch" not
              affecting
              > the EJB Container? That means the jsp/servlet engine is brought down.
              > (HotDeploy is a development feature). Does any version of WebLogic provide
              > any way to do this?
              > It is a single VM and I suppose that this is not possible. Just thinking
              out
              > loud!!
              >
              > Thanks
              > Gaurav
              >
              >
              >
              >
              

  • Replacing WL6.1 JSP Engine with someone elses

              Hello:
              I was wondering if anyone has tried to run a different JSP implementation on top
              of the WL servlet container. Has anyone tried this. Is it possible? I'm really
              curious. The reason I as is that WL6.1 currently breaks reponse post processing
              with a filter when a request is made to a jsp page.
              Scott
              

    Hi,
              you can do this. Check e.g. Resin (www.caucho.com), I think they have an
              integration guide available.
              Daniel
              > -----Original Message-----
              > From: Scott Resnik [mailto:[email protected]]
              > Posted At: Thursday, January 03, 2002 7:08 PM
              > Posted To: jsp
              > Conversation: Replacing WL6.1 JSP Engine with someone elses
              > Subject: Replacing WL6.1 JSP Engine with someone elses
              >
              >
              >
              > Hello:
              >
              > I was wondering if anyone has tried to run a different JSP
              > implementation on top
              > of the WL servlet container. Has anyone tried this. Is it
              > possible? I'm really
              > curious. The reason I as is that WL6.1 currently breaks
              > reponse post processing
              > with a filter when a request is made to a jsp page.
              >
              > Scott
              >
              

  • Is PTG a JSP Engine ??

    I would like to know whether Portal To Go is a JSP engine like Tomcat/gnujsp & jswdk ??
    Thanks in advance.

    Oracle Applications use BC4J, UIX, and JDeveloper.
    The UIX framework implements the Oracle "Browser Look And Feel" (BLAF) that our Oracle Applications self-service applications use.
    The UIX JSP tag library lets JSP developers do the same.

  • How Does the Jsp Engine sense a changed jsp page

    Hi All,
    I would like to know how the jsp engine senses the change in .jsp page.Does it look thru the datetime stamp of the jsp page..
    can somebody plz help me on this.
    regards
    Karthik

    As long as the contents of the original JSP page remain unchanged, there is no need to generate a new servlet, since the Java code corresponding to those contents remains the same. For this reason, the very first step taken by the JSP page compiler when it receives a request for a JSP is to check the time stamp for the JSP file corresponding to the requested URL, to determine when that file was modified or created. The page compiler will also check the time stamp on the compiled servlet for this JSP page. If no compiled servlet is found, or if the time stamp on the JSP file is more recent than the one on the compiled page servlet, then a new servlet must be generated. This means that the (new or modified) JSP file must be parsed and translated into source code, and this new source code must be compiled. If the compiled servlet is newer than the JSP file, however, no new compilation is required and control can be transferred directly to the servlet to finish processing the request, saving considerable time. So while the first request for a new or recently modified JSP page will be slow, all later requests go straight to the compiled servlet for response generation.
    regards
    Vishnu

  • JSP engine comparison

    Hi,
    I would like to compare the JSP implementations we have, How is OJSP engine better than the any other JSP engine? Do we have any advantages if we choose OJSP engine compared to GNU JSP engine.
    thanks in advance!
    Anupama
    null

    fdsfsfdfds
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by agajavad ():
    Hi,
    I would like to compare the JSP implementations we have, How is OJSP engine better than the any other JSP engine? Do we have any advantages if we choose OJSP engine compared to GNU JSP engine.
    thanks in advance!
    Anupama<HR></BLOCKQUOTE>
    null

Maybe you are looking for

  • Does the Tech Comm Suite work differently/better then adding separate components?

    I use CS4 everyday which includes Illustrator,  Photoshop extended, InDesign, Dreamwearver and Flash. I now have a need to convert FrameMaker files into HTML and to create Help files using RoboHelp and Captivate. Do I need to get the Tech Comm Suite

  • Table as input and result - is that possible ?

    Hi, just wanted to know if it's possible to have a table (with multiple entries) as input and result in a function in brfplus ? if so how to assign a table in the signature tab for function as an input parameter thank you, Regards, Michal Krawczyk

  • Duplication of songs on my iPad

    I have one album on my iPad that all the songs are duplicated. They are NOT duplicated in my iTunes library. If I go to my playlist they are NOT duplicated but if I look it up by album they are duplicated and if I look up the album by artist they are

  • Copy, Cut, Paste

    Hi, How can I implement cupy, cut and paste in actionscript. Basically, I have 3 buttons that I want to use to trigger those actions. Thanks in advance.

  • The enhanced picture uploaded for ebay is not visible in Firefox but is in IE

    I sell on ebay and like using the enhanced picture uploader. I still able to use this uploader on IE but Firefox does not even allow ebay to show it as an option. I am very new to Firefox so I am certain it is a setting I need to change. Any and all