Jakarta TLD in sun 1.3 ?

i'm trying to experiment with tld's. But i can't get jakarta (EA3) stuff running in sun's 1.3 container, there is an AccessControlException. I don't find any information in the jakarta docs.

actually there is some info, they say: use tomcat 4, because you need jsp 1.2 (draft). I guess that solves my problem...

Similar Messages

  • Error parsing TLD?!

    Hi everyone:
    I test my taglib file use JRun.I place the .tld and the .class in correct dir.But when I compile my jsp file testtag.jsp and JRun report the under error:
    ////////////////////////testtag.jsp/////////////
    Error parsing TLD '/WEB-INF/taglib/mytag.tld': com.sun.xml.parser/P-082 http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd.
    org.xml.sax.SAXParseException: com.sun.xml.parser/P-082 http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd
         at com.sun.xml.parser.Parser.fatal(Parser.java:2817)
         at com.sun.xml.parser.Parser.externalParameterEntity(Parser.java:2506)
         at com.sun.xml.parser.Parser.maybeDoctypeDecl(Parser.java:1137)
         at com.sun.xml.parser.Parser.parseInternal(Parser.java:481)
         at com.sun.xml.parser.Parser.parse(Parser.java:284)
         at com.sun.xml.parser.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:95)
         at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:78)
         at allaire.jrun.jsp.JRunTagLibraryInfo.<init>(../jsp/JRunTagLibraryInfo.java:198)
         at allaire.jrun.jsp.JRunTagLibraryInfo.lookupTLI(../jsp/JRunTagLibraryInfo.java:109)
         at allaire.jrun.jsp.JSPParser.taglibDirective(../jsp/JSPParser.java:842)
         at allaire.jrun.jsp.JSPParser.directive(../jsp/JSPParser.java:973)
         at allaire.jrun.jsp.JSPParser.parse(../jsp/JSPParser.java:921)
    It seems the .dtd problem.But I download the .dtd1.2 for my JRun and the problem remain happen! What does it mean?Could anyone explanation for me?

    Hi tolmank:
    Thank you to reply.I open it with xmlwriter.It report error when I run it.It says:
    DTD can't have DTD declare in external DTD��handle source: 'file:///E:/JRun/lib/web-jsptaglibrary_1_2.dtd' a error happen��nineteen range��location: 12
    <!NOTATION WEB-JSPTAGLIB.1_2 PUBLIC "-//Sun Microsystems, Inc.//DTD JSP T... .
    -----------^
    But I download the DTD file from sun's homepage!Why?

  • Someone knows this - help!

    Does anybody know when Java Regular Expressions will be available in J2EE? They are currently in the latest release of J2SE in the java.util.regex package.

    I am curious to know
    if this is the same package that Apache/Jakarta has,
    or SUN actually wrote their own. All three are quite different (jakarta hosts two different regex packages).
    The key is that development needs to start now, so a
    direction is going to have to be chosen and stuck to. Make your own (project-wide) interface to regexes. This will allow to switch between any particular implementations without affecting the rest code.
    And, btw, sun's regular expressions are inherently low-performant and still very buggy.

  • Printing to java console from servlets

    Hi
    i would like to use the java console on the browser to display some debugging output from my servlets.
    using "System.out.println" would output to the server logs.
    is there any way to do this??
    -Eli-

    I know that there is a Jakarta TLD that does this, it's one of the Tomcat4.0.1 examples.
    <%@ taglib uri="http://java.apache.org/tomcat/examples-taglib" prefix="eg" %>
    <eg:log>
    Did you see me on the stderr window?
    </eg:log>
    <eg:log toBrowser="true">
    Did you see me on the browser window as well?
    </eg:log>Any visitor hitting the web site will not see the <eg:log> tags, however with the toBrowser="true" they will as well as you should see them on the console. Double check the TLDs on jakarta.apache.org to see what you can find. If you are using another Java Servlet container it's probably just a matter of changing a class file for the same functionality.

  • Help! JDev will not validate JSTL 1.1 c.tld from Jakarta

    What schema or DTD does JDev use to validate tlds (or any XML, for that matter)? I am using JDev Version 10.1.2.0.0 (Build 1811). Following is a list of the first 10 (of 101) errors produced when trying to run a project using the JSTL 1.1 c.tld from Jakarta.
    Project: C:\J2EE_Proj\jDev\CodeView\CodeView.jpr
    C:\J2EE_Proj\jDev\CodeView\public_html\index.jsp
    Error(3,48): FIXED type Attribute value not equal to the default value 'http://java.sun.com/xml/ns/j2ee'.
    Error(4,58): Attribute 'xmlns:xsi' used but not declared.
    Error(5,115): Attribute 'xsi:schemaLocation' used but not declared.
    Error(6,18): Attribute 'version' used but not declared.
    Error(8,15): Invalid element 'description' in content of 'taglib', expected elements '[tlibversion]'.
    Error(8,15): Element 'description' used but not declared.
    Error(9,16): Invalid element 'display-name' in content of 'taglib', expected elements '[tlibversion]'.
    Error(9,16): Element 'display-name' used but not declared.
    Error(10,16): Invalid element 'tlib-version' in content of 'taglib', expected elements '[tlibversion]'.
    Error(10,16): Element 'tlib-version' used but not declared.
    And then, finally:
         Error(2): Unable to load taghandler class: http://java.sun.com/jsp/jstl/core
    How do I fix this?
    Mark

    HI and welcome to Apple Discussions...
    You have the CTLoader/Conduit toolbar installed. It's not compatible with the current version of Safari.
    Open a Finder window. Select MacintoshHD in the Sidebar on the left. Now open the Library folder then the Input Managers folder. Move these files to the Trash: CTLoader/ctloader.bundle/Contents/MacOS/ctloader
    From that same Library folder open the ScriptingAdditions folder. Move these files to the Trash: ctscripting.osax/Contents/MacOS/ctscripting
    And the same Library folder, open the Application Support folder and move these files to the Trash:
    Conduit/Plugins/cttoolbar.bundle/Contents/MacOS/ct_plugins
    Relaunch Safari.
    Carolyn

  • Where (on the Sun site) are the TLD files?

    Could someone tell me where I can find the c.tld tag library descriptor file for jstl.jar ?
    I am unable to find the *.tld files for jstl.jar and other jsp libraries.
    Not here:
    http://java.sun.com/products/jsp/jstl/
    Not here:
    http://java.sun.com/webservices/jwsdp/index.jsp
    Not here:
    http://java.sun.com/j2ee/1.4/download.html
    I downloaded the j2eesdk1.4.1 , and the files were not in there. I installed the entire app server.
    I already have 5 app servers installed on my machine. This is very annoying.
    Generally, it takes me too long to find what I'm looking for on the Sun site. In this case, I can't find it at all!

    Do you have the jstl.jar and standard.jar? If you rename standard.jar to standard.zip, open it up, look under META-INF, the tlds are there.

  • Compare Sun Blueprints vs Jakarta Struts

    I currently use Sun Blueprints for my projects, following the Petstore application.
    But I never use Struts.
    So, I'd like to know what is the different between them?
    Which is the mostly use in the market?

    I would answer this question by asking another question. What is the difference between plain and spicy food?
    The answer lies in the taste and some improvements to your palate. I can and am trying to realte the same to the Sun Blue Prints and Struts.
    Sun Blue Prints are the base for developing and nurturing your applications using the best practices and industry standards being developed/suggested by the Gurus working at SUN.
    Struts on the other hand is the next step to MVC architecture(another blue print from SUN) eveloved over time with some new features added to it to make the development easier with a differnt paradigm all together.
    As for the question, what is used more in the industry, SUN blueprints are used invariably everywhere whether you use Struts or not. I have come across many companies and friends using Struts as the new framework for developing J2EE applications.
    I guess this is the next step in evolution of J2EE applications. But all said and done, the business needs, budgets, time and resources are some of the factors to keep in mind before jumping on to the bandwagon of using struts for applications which can be developed easily and at a relatively lower cost by using plain Blue Prints from SUN without any gizmos on to it.
    Hope i was able to answer some of the queries and concerns.
    Thanks

  • Invalid body-content value in TLD: NONE.

    Hi,
    I'm using JDeveloper 10.1.3.3.0 and is an AppFuse 2.0 project.
    I built the .jws file by using Maven2.0 JDeveloper plug-in.
    But when I tried to compile the Web, it gave me the following error. Please adivse.
    Error(4): Invalid body-content value in TLD: NONE.
    Below is the taglib I used and I added the jar files to the library accordingly.
    <%@ taglib uri="http://acegisecurity.org/authz" prefix="authz" %>
    <%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
    <%@ taglib uri="http://struts-menu.sf.net/tag-el" prefix="menu" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %>
    <%@ taglib uri="http://www.opensymphony.com/oscache" prefix="cache" %>
    <%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator"%>
    <%@ taglib uri="http://www.opensymphony.com/sitemesh/page" prefix="page"%>
    <%@ taglib uri="http://www.appfuse.org/tags/spring" prefix="appfuse" %>
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic"%>
    <%@ taglib uri="http://xmlns.oracle.com/portal/pdk/struts/tags-html" prefix="html"%>
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="shtml"%>
    Can someone please help?
    Thanks,
    Wong

    Your template contains an IE Conditional Comment that is adding 30px of top padding to  #sidebar1.  This padding may required in older versions of IE but not IE9.
    &lt;!--[if IE]>
    &lt;style type="text/css">
    /* place css fixes for all versions of IE in this conditional comment */
    .twoColFixRtHdr #sidebar1 { padding-top: 30px; }
    .twoColFixRtHdr #mainContent { zoom: 1; }
    /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
    </style>
    &lt;![endif]-->
    To fix it, change [if IE]  to [if lt IE 9]
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • HELP !  unable to read TLD

    Hi
    I've tried to run a jsp page that uses the following taglib attribute:
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    but it comes up with the error message :
    Unable to read TLD "META-INF/c-1_0.tld" from JAR file "file:/C:/jakarta/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/lib/standard.jar": java.lang.IllegalStateException: zip file closed
    I've unzipped the standard.jar file to make sure that the c-1_0.tld file is there and it is actually there, I've also downloaded the latest version of the taglib but both actions have not solved my problem.
    The same error message comes up when i use the taglib
    <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
    it says
    Unable to read TLD "META-INF/sql-1_0.tld" from JAR file "file:/C:/jakarta/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/lib/standard.jar": java.lang.IllegalStateException: zip file closed.
    This is really slowing things down as I cant get to use any of the standard taglib
    please I need help
    abiose

    the problem has been solved after i deleted the
    web.xml in the web-inf folder??
    could somebody please tell me why??
    could it be that there were some wrong settings in
    the web.xml?Possibly. If your web.xml had any taglib definitions in it related to JSTL, then yes, it was set upt incorrectly.
    Another possibility was that there was something wrong someplace else that had been fixed but the context not restarted and so the fix wasn't seen. Then the removal of the web.xml forced the context to be reloaded which showed the firx from earlier.
    As a side note, you should put back a web.xml, even if it is an empty <web-app ...></web-app>.

  • Where can I find the fn.tld libraries for download?

    I cannot find this tag library anywhere?
    Although Sun posts the functions as part of the api documentation, it doesn't seem to be available for download anywhere... It's not included in the jstl.jar, or the standard.jar files...
    Any insight would be appreciated...

    JSTL 1.1 : requires a JSP container that supports the Java Servlet 2.4 and JavaServer Pages 2.0 specifications.
    JSTL 1.0 : requires a JSP container that supports the Java Servlet 2.3 and JavaServer Pages 1.2 specifications.
    fn.tld is a part of JSTL 1.1 !
    you're server supports JavaServer Pages 2.0 ?
    hava a look at this : http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html

  • Newbie Jakarta JSTL not working.

    Hi all,
    I think this is the right place for asking questions on Jakarta JSTL Standard 1.0 tag libraries. I downloaded this file from Jakarta site - jakarta-taglibs-20030908.zip. Deployed the standard-doc.war in Tomcat 4.1.27. Run the demo standard-examples/elsupport/Out.jsp -General-Purpose Tags Examples - and it is giving the error message in browser window.
    This absolute uri (http://java.sun.com/jsp/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application
    Is it necessary to add the tld declaration in web.xml ?.
    Then I added the tld declaration in web.xml
    <taglib>
    <taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
    <taglib-location>/WEB-INF/c.tld</taglib-location>
    </taglib>
    JSP page refers to it as
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    restarted Tomcat and it gives the same error message.
    What is wrong. I looked at the c.tld. It have the following uri at the top
    <uri>http://java.sun.com/jstl/core</uri>
    So I changed the uri in web.xml and JSP to this.
    It still gives the error message.
    This absolute uri (http://java.sun.com/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application
    On looking at the WEB-INF directory I found that there is one c-rt.tld. Do I have to add this in web.xml ?.
    Why the sample application not containing the taglib declaration in web.xml ?
    rgds
    Antony Paul

    First, you don't need to put anything in web.xml. Nothing, not a single change. DON'T CHANGE web.xml. OK?
    Compare those two URIs
    http://java.sun.com/jsp/jstl/core
    http://java.sun.com/jstl/core
    see the difference?
    The URI including "jsp" is the "new" one for version 1.1 (which shifts JSTL under the jsp spec)
    I think you may have picked up one of the nightly builds. Probably they have modified their examples to work with the new version of JSTL.
    Anyway, try this page:
    http://jakarta.apache.org/site/binindex.cgi#Release%20Builds
    Go down to taglibs, and then click on the link for standard-1.0
    The file should be something like jakarta-taglibs-standard-current.zip
    Oh yeah - and the c-rt.tld is an alternative tag library that uses standard JSP runtime expressions rather than the EL. They recommend to use the EL versions.
    Good luck,
    evnafets

  • Help Me what is the "Parse Error: com.sun.xml.parser/P-067"?

    OS: Window 2000 (it will be changed HP-UX 11)
    Web Server: iPlanet 4.1 SP14
    DB Server : Oracle 8i
    JDK: 1.2.2_017
    Tag Library : jakarta-taglibs-dbtags-1.0.0 (http://jakarta.apache.org/taglibs/doc/dbtags-doc/intro.html)
    DTD file: web-jsptaglib_1_1.dtd ( actually, jakarta used http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd, but that dosen't work in iPlanet 4.1 SP 14. so i changed the path of dtd location to web-jsptaglib_1_1.dtd like the following tld file.)
    How should I use Jakarta DB Tag Library in iPlanet 4.1 SP? I'm very tired to set all of thses stupid things!
    I can't use Tag Library in iPlanet 4.1 SP 14
    Any comments make me happy~!
    Please, help me~!
    &#9632; Error Message
    [15/3/2005:20:21:41] info ( 4552): Internal Info: loading servlet /test/jdbc5.jsp
    [15/3/2005:20:21:42] info ( 4552): JSP: JSP1x compiler threw exception
    org.apache.jasper.JasperException: Unable to open taglibrary http://localhost/tlds/dbtags5.jar : Parse Error in the tag library descriptor: com.sun.xml.parser/P-067
         at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java, Compiled Code)
         at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:119)
         at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java, Compiled Code)
         at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1022)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1018)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled Code)
         at com.netscape.server.http.servlet.NSServletEntity.load(NSServletEntity.java:231)
         at com.netscape.server.http.servlet.NSServletEntity.update(NSServletEntity.java:149)
         at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:453)
    &#9632; TLD File
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib
    PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
         "http://localhost/dtd/web-jsptaglib_1_1.dtd">
    <!-- a tab library descriptor -->
    <!-- "http://java.sun.com/j2ee/dtds/jsptaglibrary_1_2.dtd" -->
    <taglib>
         <tlibversion>1.0</tlibversion>
    <jspversion>1.1</jspversion>
    <prefix>DBTag</prefix>
    <urn></urn>
    <info>
              A simple db tab library for the examples
    </info>
    <tag>
    <name>connection</name>
    <tagclass>org.apache.taglibs.dbtags.connection.ConnectionTag</tagclass>
    <teiclass>org.apache.taglibs.dbtags.connection.ConnectionTEI</teiclass>
    <bodycontent>JSP</bodycontent>
    <attribute>
    <name>id</name>
    <required>yes</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>dataSource</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>jndiName</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>url</name>
    <tagclass>org.apache.taglibs.dbtags.connection.DatabaseURLTag</tagclass>
    <bodycontent>JSP</bodycontent>
    <attribute>
    <name>initParameter</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>jndiName</name>
    <tagclass>org.apache.taglibs.dbtags.connection.JndiNameTag</tagclass>
    <bodycontent>JSP</bodycontent>
    <attribute>
    <name>initParameter</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>driver</name>
    <tagclass>org.apache.taglibs.dbtags.connection.DriverTag</tagclass>
    <bodycontent>JSP</bodycontent>
    <attribute>
    <name>initParameter</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>userId</name>
    <tagclass>org.apache.taglibs.dbtags.connection.UserIdTag</tagclass>
    <bodycontent>JSP</bodycontent>
    <attribute>
    <name>initParameter</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>password</name>
    <tagclass>org.apache.taglibs.dbtags.connection.PasswordTag</tagclass>
    <bodycontent>JSP</bodycontent>
    <attribute>
    <name>initParameter</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>closeConnection</name>
    <tagclass>org.apache.taglibs.dbtags.connection.CloseConnectionTag</tagclass>
    <bodycontent>empty</bodycontent>
    <attribute>
    <name>conn</name>
    <required>yes</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>statement</name>
    <tagclass>org.apache.taglibs.dbtags.statement.StatementImplTag</tagclass>
    <teiclass>org.apache.taglibs.dbtags.statement.StatementTEI</teiclass>
    <bodycontent>JSP</bodycontent>
    <attribute>
    <name>id</name>
    <required>yes</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>conn</name>
    <required>yes</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>escapeSql</name>
    <tagclass>org.apache.taglibs.dbtags.statement.EscapeSQLTag</tagclass>
    <bodycontent>JSP</bodycontent>
    </tag>
    <tag>
    <name>query</name>
    <tagclass>org.apache.taglibs.dbtags.statement.QueryTag</tagclass>
    <bodycontent>JSP</bodycontent>
    </tag>
    <tag>
    <name>execute</name>
    <tagclass>org.apache.taglibs.dbtags.statement.ExecuteTag</tagclass>
    <bodycontent>JSP</bodycontent>
    <attribute>
    <name>ignoreErrors</name>
    <required>no</required>
    <rtexprvalue>yes</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>preparedStatement</name>
    <tagclass>org.apache.taglibs.dbtags.preparedstatement.PreparedStatementImplTag</tagclass>
    <teiclass>org.apache.taglibs.dbtags.preparedstatement.PreparedStatementTEI</teiclass>
    <bodycontent>JSP</bodycontent>
    <attribute>
    <name>id</name>
    <required>yes</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>conn</name>
    <required>yes</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>setColumn</name>
    <tagclass>org.apache.taglibs.dbtags.preparedstatement.SetColumnTag</tagclass>
    <bodycontent>JSP</bodycontent>
    <attribute>
    <name>position</name>
    <required>yes</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>resultSet</name>
    <tagclass>org.apache.taglibs.dbtags.resultset.ResultSetTag</tagclass>
    <teiclass>org.apache.taglibs.dbtags.resultset.ResultSetTEI</teiclass>
    <bodycontent>JSP</bodycontent>
    <attribute>
    <name>id</name>
    <required>yes</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>loop</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>name</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>scope</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>wasNull</name>
    <tagclass>org.apache.taglibs.dbtags.resultset.WasNullTag</tagclass>
    <bodycontent>JSP</bodycontent>
    </tag>
    <tag>
    <name>wasNotNull</name>
    <tagclass>org.apache.taglibs.dbtags.resultset.WasNotNullTag</tagclass>
    <bodycontent>JSP</bodycontent>
    </tag>
    <tag>
    <name>getColumn</name>
    <tagclass>org.apache.taglibs.dbtags.resultset.GetColumnTag</tagclass>
    <teiclass>org.apache.taglibs.dbtags.resultset.BaseGetterTEI</teiclass>
    <bodycontent>empty</bodycontent>
    <attribute>
    <name>position</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>colName</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>to</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>scope</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>getNumber</name>
    <tagclass>org.apache.taglibs.dbtags.resultset.GetNumberTag</tagclass>
    <teiclass>org.apache.taglibs.dbtags.resultset.BaseGetterTEI</teiclass>
    <bodycontent>empty</bodycontent>
    <attribute>
    <name>position</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>colName</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>to</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>scope</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>locale</name>
    <required>no</required>
    <rtexprvalue>yes</rtexprvalue>
    </attribute>
    <attribute>
    <name>format</name>
    <required>no</required>
    <rtexprvalue>yes</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>getTime</name>
    <tagclass>org.apache.taglibs.dbtags.resultset.GetTimeTag</tagclass>
    <teiclass>org.apache.taglibs.dbtags.resultset.BaseGetterTEI</teiclass>
    <bodycontent>empty</bodycontent>
    <attribute>
    <name>position</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>colName</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>to</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>scope</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>locale</name>
    <required>no</required>
    <rtexprvalue>yes</rtexprvalue>
    </attribute>
    <attribute>
    <name>format</name>
    <required>no</required>
    <rtexprvalue>yes</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>getTimestamp</name>
    <tagclass>org.apache.taglibs.dbtags.resultset.GetTimestampTag</tagclass>
    <teiclass>org.apache.taglibs.dbtags.resultset.BaseGetterTEI</teiclass>
    <bodycontent>empty</bodycontent>
    <attribute>
    <name>position</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>colName</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>to</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>scope</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>locale</name>
    <required>no</required>
    <rtexprvalue>yes</rtexprvalue>
    </attribute>
    <attribute>
    <name>format</name>
    <required>no</required>
    <rtexprvalue>yes</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>getDate</name>
    <tagclass>org.apache.taglibs.dbtags.resultset.GetDateTag</tagclass>
    <teiclass>org.apache.taglibs.dbtags.resultset.BaseGetterTEI</teiclass>
    <bodycontent>empty</bodycontent>
    <attribute>
    <name>position</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>colName</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>to</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>scope</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>locale</name>
    <required>no</required>
    <rtexprvalue>yes</rtexprvalue>
    </attribute>
    <attribute>
    <name>format</name>
    <required>no</required>
    <rtexprvalue>yes</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>wasEmpty</name>
    <tagclass>org.apache.taglibs.dbtags.resultset.WasEmptyTag</tagclass>
    <bodycontent>JSP</bodycontent>
    </tag>
    <tag>
    <name>wasNotEmpty</name>
    <tagclass>org.apache.taglibs.dbtags.resultset.WasNotEmptyTag</tagclass>
    <bodycontent>JSP</bodycontent>
    </tag>
    <tag>
    <name>rowCount</name>
    <tagclass>org.apache.taglibs.dbtags.resultset.RowCountTag</tagclass>
    <bodycontent>empty</bodycontent>
    </tag>
    </taglib>

    Googling I get this....
    P-067 = Document root element is missing.

  • Crystal Reports XI and Sun One 6.1 web server SP 5 Error finding JNDI name

    I am trying to create a Crystal Reports XI report in a JSP using Sun One 6.1 Web server sp 5.
    At this point I am getting the error �Error finding JNDI name� on Sun One
    The application will run on Netbeans/Tomcat
    I have done the following:
    I edited CRConfig.xml
    <?xml version="1.0" encoding="utf-8"?>
    <CrystalReportEngine-configuration>

    <DataDriverCommon>
         <JavaDir>C:\Program Files\Java\j2re1.4.2_10\bin</JavaDir>
    <Classpath>C:\oracle\product\10.2.0\client_1\jdbc\lib\ojdbc14.jar;�</Classpath>

    <JDBC>
         <CacheRowSetSize>100</CacheRowSetSize>
         <JDBCURL>jdbc:oracle:thin:@10.10.10.10:1521:dev</JDBCURL>
         <JDBCClassName>oracle.jdbc.driver.OracleDriver</JDBCClassName>
         <JDBCUserName>lab_ro</JDBCUserName>
         <JNDIURL></JNDIURL>

    </JDBC>
    I created a report using JDBC (JNDI) connection and have the JNDI Connection set to the name of DATA.
    The report works just fine in Crystal Reports.
    Then in Netbeans I created an application and it runs in the Tomcat part of Netbeans
    In context.xml I have:
    <Context path="/BOEnterpriseTest3">
    <Resource name="jdbc/dev" auth="Container" type="javax.sql.DataSource"
    driverClassName="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@10.10.10.10:1521:dev"
    username="theuserid" password="thepassword" maxActive="20" maxIdle="10" maxWait="-1"/>
    </Context>
    In web.xml I have
    <web-app>
    <context-param>
    <param-name>crystal_image_uri</param-name>
    <param-value>crystalreportviewers11</param-value>
    </context-param>

    <taglib>
    <taglib-uri>/crystal-tags-reportviewer.tld</taglib-uri>
    <taglib-location>/WEB-INF/crystal-tags-reportviewer.tld</taglib-location>
    </taglib>
    <resource-ref>
    <description>jdbc:oracle:thin:@10.10.10.10:1521:dev</description>
    <res-ref-name>jdbc/dev10g</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Application</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    <resource-ref>
    <description>jdbc:oracle:thin:@10.10.10.10:1521:dev</description>
    <res-ref-name>Data</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Application</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    </web-app>
    in web-inf\sun-web.xml I have
    <sun-web-app>
    <resource-ref>
    <res-ref-name>jdbc/dev10g</res-ref-name>
    <jndi-name>Data</jndi-name>
    </resource-ref>
    </sun-web-app>
    I have copied all of Common Files\Business Objects\3.0\java\lib and Common Files\Business Objects\3.0\java\lib\external to the lib folder
    I have copied crystalreportviewers11 to the root of my web application
    I have tried to load the JNDI information and display the report
    <%@page pageEncoding="UTF-8"
    import="com.crystaldecisions.reports.reportengineinterface.*,
    com.crystaldecisions.report.web.viewer.*,
    javax.naming.*,
    javax.sql.*,
    java.sql.*"%>
    <%
    InitialContext initContext = new InitialContext();
    DataSource source = (DataSource) initContext.lookup("java:comp/env/jdbc/dev10g");
    Context initCtx = new InitialContext();
    Context envCtx = (Context) initCtx.lookup("java:comp/env");
    try{
         // Look up our data source
    DataSource ds = (DataSource)initCtx.lookup("Data");
    out.println("found ds under jdbc/Data");
    catch ( NamingException e ){
    // Look up our data source
    DataSource ds = (DataSource) initContext.lookup("java:comp/env/jdbc/dev10g");
    initCtx.bind("Data", ds);     
    out.println("found ds under java:com/env:jdbc/Data - bound into root initial context for Crystal to find");
    %>
    <%
    //Use the relative path to the report; the physical or full qualified URL cannot be used.
    String reportName = "useridincluded.rpt";
    //Database username and password
    String userName = "theuserid";
    String password = "thepassword";
    //check to see if the Report Source Session Variable already exist
    Object reportSource = session.getAttribute("Report1");
    // Create a new ConnectionInfos and ConnectionInfo object
    com.crystaldecisions.sdk.occa.report.data.ConnectionInfos connectionInfos = new com.crystaldecisions.sdk.occa.report.data.ConnectionInfos();
    com.crystaldecisions.sdk.occa.report.data.ConnectionInfo connectionInfo = new com.crystaldecisions.sdk.occa.report.data.ConnectionInfo();
    //Set username and password for the report's database
    connectionInfo.setUserName(userName);
    connectionInfo.setPassword(password);
    //Add object to collection
    connectionInfos.add(connectionInfo);
    //---------- Create a ReportClientDocument -------------
    com.crystaldecisions.reports.sdk.ReportClientDocument reportClientDocument = new com.crystaldecisions.reports.sdk.ReportClientDocument();
    //---------- Set the path to the location of the report soruce -------------
    //Open report.
    reportClientDocument.open(reportName, 0);
    //Get the report source
    reportSource = reportClientDocument.getReportSource();
    //---------- Create the viewer and render the report -------------
    //create the CrystalReportViewer object
    com.crystaldecisions.report.web.viewer.CrystalReportViewer crystalReportViewer = new com.crystaldecisions.report.web.viewer.CrystalReportViewer();
    //set the reportsource property of the viewer
    crystalReportViewer.setReportSource(reportSource);
    //set the DB logon into the viewer
    crystalReportViewer.setDatabaseLogonInfos(connectionInfos);
    //set viewer attributes
    crystalReportViewer.setOwnPage(true);
    crystalReportViewer.setOwnForm(true);
    crystalReportViewer.refresh();
    //set the CrystalReportViewer print mode
    //crystalReportViewer.setPrintMode(com.crystaldecisions.report.web.viewer.CrPrintMode.ACTIVEX);
    crystalReportViewer.setPrintMode(com.crystaldecisions.report.web.viewer.CrPrintMode.PDF);
    //process the report
    crystalReportViewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
    %>
    On the Sun One Web server
    On the Java Tab
    JDBC Connection Pools
    Pool Name = dev10g
    Class name = oracle.jdbc.pool.OracleDataSource
    User id = theuserid
    url = 10.10.10.10
    password=thepassword
    JDBC Resources
    JNDI Name=dev10g
    Pool = dev10g
    I get the error finding JNDI name � how do I tell Sun One where the JNDI is to make Crystal Reports work?

    I tried the following to test the JNDI
    I am trying to do JNDI in Sun One Web server 6.1 sp 5 but I seem to be missing an important part. I get two different errors based on the JSP code, �Cannot retrieve data source: javax.naming.NamingException: Cannot create resource instance� or �Cannot retrieve data source: javax.naming.NamingException: Cannot create resource instance�.
    Context.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <Context path="/BOTest">
      <Resource name="jdbc/dev10g" auth="Container" type="javax.sql.DataSource"
    driverClassName="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@10.10.10.10:1521:dev10g"
    username="userid" password="password" maxActive="20" maxIdle="10" maxWait="-1"/>
      <Resource name="Data" auth="Container" type="javax.sql.DataSource"
    driverClassName="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@10.10.10.10:1521:dev10g"
    username="userid" password="password" maxActive="20" maxIdle="10" maxWait="-1"/>
    </Context>Sun-one.xml:
    <sun-web-app>
    <context-root>BOTest</context-root>
    <resource-ref>
    <res-ref-name>jdbc/dev10g</res-ref-name>
    <jndi-name>jdbc/dev10g</jndi-name>
    </resource-ref>
    </sun-web-app>web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
        <session-config>
            <session-timeout>
                30
            </session-timeout>
        </session-config>
        <welcome-file-list>
         <welcome-file>
                index.jsp
            </welcome-file>
        </welcome-file-list>
        <resource-ref>
            <description>jdbc:oracle:thin:@10.10.10.10:1521:dev10g</description>
            <res-ref-name>jdbc/dev10g</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <res-auth>Application</res-auth>
            <res-sharing-scope>Shareable</res-sharing-scope>
        </resource-ref>
        <resource-ref>
            <description>jdbc:oracle:thin:@10.10.10.10:1521:dev10g</description>
            <res-ref-name>Data</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <res-auth>Application</res-auth>
            <res-sharing-scope>Shareable</res-sharing-scope>
        </resource-ref>
    </web-app>server.xml has:
    <RESOURCES>
    - <JDBCCONNECTIONPOOL name="dev10g" datasourceclassname="oracle.jdbc.pool.OracleDataSource" steadypoolsize="8" maxpoolsize="32" poolresizequantity="2" idletimeout="300" maxwaittime="60000" connectionvalidationrequired="off" connectionvalidationmethod="auto-commit" validationtablename="" failallconnections="off" transactionisolationlevel="read-uncommitted" isolationlevelguaranteed="off">
      <PROPERTY name="URL" value="jdbc:oracle:thin:@10.45.3.197:1521:dev10g" />
      <PROPERTY name="User" value="lab_ro" />
      <PROPERTY name="Password" value="0asphalt1" />
      </JDBCCONNECTIONPOOL>
      <JDBCRESOURCE jndiname="jdbc/dev10g" poolname="dev10g" enabled="on" />
      <JDBCRESOURCE jndiname="Data" poolname="dev10g" enabled="on" />
    - <JDBCCONNECTIONPOOL name="Data" datasourceclassname="oracle.jdbc.pool.OracleDataSource" steadypoolsize="8" maxpoolsize="32" poolresizequantity="2" idletimeout="300" maxwaittime="60000" connectionvalidationrequired="off" connectionvalidationmethod="auto-commit" validationtablename="" failallconnections="off" transactionisolationlevel="read-uncommitted" isolationlevelguaranteed="off">
      <PROPERTY name="User" value="lab_ro" />
      <PROPERTY name="URL" value="jdbc:oracle:thin:@10.45.3.197:1521:dev10g" />
      <PROPERTY name="Password" value="0asphalt1" />
      </JDBCCONNECTIONPOOL>
      <JDBCRESOURCE jndiname="jdbc/Data" poolname="Data" enabled="on" />
      <JDBCRESOURCE jndiname="dev10g" poolname="dev10g" enabled="on" />
      </RESOURCES>I am getting the following error: �Cannot retrieve data source: javax.naming.NamingException: Cannot create resource instance�
    With the following code:
    <%@page
       import="java.io.*,
               javax.sql.*,
               javax.naming.*,
               java.sql.*,
               java.util.*"%>
    <%
    Context init;
    Context ctx;
    DataSource datasource;
    Connection con;
    try
    init = new InitialContext();
    Context envCtx = (Context) init.lookup("java:comp/env");
    datasource = (DataSource)  envCtx.lookup("jdbc/dev10g");
    catch(NamingException ex)
        out.print("Cannot retrieve data source: " + ex.toString(true));
        return;
    try
        con = datasource.getConnection();
    catch (Exception e)
      out.print("Cannot retrieve connection: " + e.toString());
      return;
    try
        PreparedStatement pstmt = con.prepareStatement("SELECT PROJNO FROM MATERIALSLAB.VW_ASPHALTHEADERINFO");
        ResultSet results = pstmt.executeQuery();
        while (results.next())
        out.println(results.getString(1));
    catch(Exception ex)
    out.print("Got connection, can't execute query: " + ex.toString());
    return;
    %>I get the following error: Cannot retrieve data source: javax.naming.NamingException: Cannot create resource instance
    With the following code:
    <%@page
       import="java.io.*,
               javax.sql.*,
               javax.naming.*,
               java.sql.*,
               java.util.*"%>
    <%
    Context init;
    Context ctx;
    DataSource datasource;
    Connection con;
    try
        init = new InitialContext();
        ctx = (Context) init.lookup("java:comp/env");
        datasource = (DataSource) ctx.lookup("jdbc/dev10g");
    catch(NamingException ex)
        out.print("Cannot retrieve data source: " + ex.toString(true));
        return;
    try
        con = datasource.getConnection();
    catch (Exception e)
      out.print("Cannot retrieve connection: " + e.toString());
      return;
    try
        PreparedStatement pstmt = con.prepareStatement("SELECT PROJNO FROM MATERIALSLAB.VW_ASPHALTHEADERINFO");
        ResultSet results = pstmt.executeQuery();
        while (results.next())
        out.println(results.getString(1));
    catch(Exception ex)
    out.print("Got connection, can't execute query: " + ex.toString());
    return;
    %>

  • Problem with adding Sun JSF RI v1.2 as a new library in JDeveloper 10.1.3.1

    Hi,
    I have a problem with adding a latest JSF 1.2 RI from Sun (https://javaserverfaces.dev.java.net/files/documents/1866/44998/jsf-1_2_03.zip) to JDeveloper as a new library.
    I created a new User library and added into it jsf-impl.jar and jsf-api.jar from JSF 1.2 RI.
    Then I try to create two new JSP Tag libraries based from .tld files.
    When a .tld file is placed in "TLD File:" field there is no information below about Library Version and Required JSP Version. If I check "Execute Tags in JSP Visual Editor" and click "Customize" button - list of tags in "Customize Tag Library" window is empty.
    I have errors when I try to use JSF Tags from this new library in JSP page like :
    "Can't create tag instance: f:view (class: null). Make sure, that the tag class or a library contained this class is available in this application"
    (free translation to English)
    Is this possible to add JSF RI v1.2 as another library in Jdeveloper 10.1.3.1 ?
    thanks for help
    koli

    Hi,
    This solution is not exactly for Jdeveloper 10.1.3.x I think.
    - "Create a JSF system library." section, point 2. - there is not possible to add library in folder other than User I see, so I added it in User folder.
    - "Register the JSF JSP tag libraries." section, point 5. - in JD 10.1.3 there is no dialog box, I checked checkbox "Show Tag Library in Palette". A new library was added to User folder but there is no new libraries in component Palette.
    Even as I use "Edit tag libraries .." from Component Palette context menu and add manually new tag libraries to selected, there is no libraries in Component Palette after it.
    I feel so problem is with different .tld files format, not with adding libraries method.
    Sun RI tld file (from version 1.2_03) fragment:
    <taglib 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-jsptaglibrary_2_1.xsd"
    version="2.1">
    <!-- ========== Tag Library Description Elements ========================= -->
    <description>
    The core JavaServer Faces custom actions that are independent of
    any particular RenderKit.
    </description>
    <tlib-version>1.2</tlib-version>
    <short-name>f</short-name>
    <uri>http://java.sun.com/jsf/core</uri>
    tld included in JD:
    <!DOCTYPE taglib
    PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
    "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <taglib>
    <!-- ========== Tag Library Description Elements ========================= -->
    <tlib-version>1.0</tlib-version>
    <jsp-version>1.2</jsp-version>
    <short-name>f</short-name>
    <uri>http://java.sun.com/jsf/core</uri>
    <description>
    The core JavaServer Faces custom actions that are independent of
    any particular RenderKit.
    </description>
    Did JDeveloper 10.1.3.x maintain with taglib version 1.2 ?
    Regards
    koli

  • Error in tld file

    Hi,
    I'm getting the below mentioned error in my tld file
    cvc-complex-type.2.4.b: The content of element 'tag' is not complete. One of '{"http://java.sun.com/xml/ns/javaee":tei-class, "http://java.sun.com/
    xml/ns/javaee":body-content}' is expected.
    tld file :
    <taglib 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-jsptaglibrary_2_1.xsd"
    version="2.1">
         <tlib-version>1.0</tlib-version>
         <short-name>privilager</short-name>
         <uri>http://tags/privilager</uri>
         <tag>
         <name>check</name>
         <tag-class>com.boss.jstl.Privilager</tag-class>
         </tag>
    </taglib>
    Kindly help me to solve this issue.
    Thanks in advance

    Hi,
    I'm getting the below mentioned error in my tld file
    cvc-complex-type.2.4.b: The content of element 'tag' is not complete. One of '{"http://java.sun.com/xml/ns/javaee":tei-class, "http://java.sun.com/
    xml/ns/javaee":body-content}' is expected.
    tld file :
    <taglib 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-jsptaglibrary_2_1.xsd"
    version="2.1">
         <tlib-version>1.0</tlib-version>
         <short-name>privilager</short-name>
         <uri>http://tags/privilager</uri>
         <tag>
         <name>check</name>
         <tag-class>com.boss.jstl.Privilager</tag-class>
         </tag>
    </taglib>
    Kindly help me to solve this issue.
    Thanks in advance

Maybe you are looking for