Sun One cannot find package ?

hi to all,
i am trying to run my web application from sun one studio 5 SE, to utilise the debugging functionality that i cant get working in intellij or jbuilder :( (intellij wont iinstall on 2003 server and jbuilder crashes when in debug mode )
anyways my app works fine by all accounts but when i mounted the filesystem inside SOS and i try and compile i get the following
login$jsp.java [6:1] package org.apache.jasper.runtime does not exist
import org.apache.jasper.runtime.*;
^
login$jsp.java [9:1] cannot resolve symbol
symbol  : class HttpJspBase
location: class org.apache.jsp.login$jsp
public class login$jsp extends HttpJspBase {
                               ^
login$jsp.java [35:1] package org.apache.jasper.runtime does not exist
    public final void _jspx_init() throws org.apache.jasper.runtime.JspException {
                                                                   ^
login$jsp.java [86:1] cannot resolve symbol
symbol  : method getClass ()
location: class org.apache.jsp.login$jsp
                            auth = (xns.beans.Authenticator) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "xns.beans.Authenticator");
                                                                                          ^
login$jsp.java [105:1] cannot resolve symbol
symbol  : variable JspRuntimeLibrary
location: class org.apache.jsp.login$jsp
                JspRuntimeLibrary.introspect(pageContext.findAttribute("auth"), request);
                ^
login$jsp.java [145:1] cannot resolve symbol
symbol  : variable JspRuntimeLibrary
location: class org.apache.jsp.login$jsp
                out.print(JspRuntimeLibrary.toString((((xns.beans.Authenticator)pageContext.findAttribute("auth")).getUsername())));
                          ^
login$jsp.java [170:1] cannot resolve symbol
symbol  : variable JspRuntimeLibrary
location: class org.apache.jsp.login$jsp
                out.print(JspRuntimeLibrary.toString((((xns.beans.Authenticator)pageContext.findAttribute("auth")).getError())));
                          ^
7 errors
Errors compiling login.this happens with both the default internal SOS server and a tomcat 4.1 installation i have on same machine.
i also mounted the jars that are in the server/lib dir of the tomcat install (i thought the server would have already mounted them) but this didnt help either
any ideas pls, i need to extend this application and cant do it without debugging
kind regards
g00fy

Hi Guys
I found the answer already...
u have to put jsse.jar , jnet.jar , jcert.jar in jdk1.31./jre/lib/ext folder
And set some provider in java.security
while it was done automatically in jdk1.4.1

Similar Messages

  • Cannot find package/class symbol

    hello. i'm using netveans for the first time. i have a java application with 2 classes... pb.java with public class pb int package svr and cl.java with public class cl in package cli
    that is..
    file class package
    pb pb svr
    cl cl cli
    pb.java compiles properly cl.java gioves error.
    the error is in the following lines of code...
    pb obj1 = new pb();
            pb obj2 = new pb();i'm trying to make an object fo type pb from cl.java. the error i get is...
    cannot find symbol
    class pb
    location cli.cl
    i alse tried puttin svr.pb instead of pb but no use.
    the entire cose is as follows...
    pb.java
    * pb.java
    * Created on December 4, 2006, 8:56 AM
    package svr;
    public class pb
        private double balance;
        private double []lt = new double [10];
        private int i=9;
        public void deposit(double amt)
            if(amt<=0)
                System.out.println("Enter amount greater than 0");
            else
                balance=balance+amt;
                if(i>=0)
                    lt=amt;
    else
    for(int j=9;j>=0;j--)
    lt[i]=lt[i-1];
    lt[0]=amt;
    public void withdraw(double amt)
    if(amt<=0)
    System.out.println("Enter amount greater than 0");
    else
    if(amt>balance)
    System.out.println("Balance lower than amount entered");
    else
    balance=balance-amt;
    if(i>=0)
    lt[i]=-amt;
    else
    for(int j=9;j>=0;j--)
    lt[i]=lt[i-1];
    lt[0]=-amt;
    public void bal()
    System.out.println("Balance: "+balance);
    public void lts()
    System.out.println("Last 10 Transactions");
    for(int j=i;j>10;j++)
    System.out.println(lt[j]);
    public void statement()
    lts();
    bal();
    cl.java
    * cl.java
    * Created on December 4, 2006, 8:58 AM
    package cli;
    class cl
        public static void main(String[] args)
            pb obj1 = new pb();
            pb obj2 = new pb();
            obj1.deposit(100.50);
            obj1.statement();
            obj2.deposit(200.75);
            obj2.statement();
            obj1.withdraw(25.50);
            obj1.statement();
            obj2.withdraw(100.25);
            obj2.statement();

    For a beginner these tools are worst, because they
    hide all the stuff a programmer needs to know to find
    his way around Java. They should spend a few weeks
    with the command line and a good text editor before
    switching.
    Just because an IDE does something for you, it
    doesn't mean you don't need to kno wwhat it does.
    Unless you volunteer to handle all "how do I do X in
    Netbeans/Eclipse/Whatever", JAR and classpath
    questions posted here by newbies yourself.I suppose I can agree with that to some extent. I wouldn't suggest to anyone that they just blindly trust whatever code the IDE inserts automatically.
    But there's nothing wrong about learning by example. The IDE is willing to teach proper syntax, and eclipse will give suggestions about capitalizing class names and making constants all-caps.
    There are things that frustrate new programmers where an IDE will be helpful, especially if the entire API is uncharted territory.

  • [SOLVED] Cannot find package "flashplugin" or "archey".

    [EDIT - yaourt and archey now installed, thanks]
    I am running Arch 2.6.34 with GNOME desktop. When I type the command sudo pacman -S flashplugin or sudo pacman -S archey it tells me that it cannot find the package.
    I had this problem previously when I was trying arch in a VM, and I couldn't figure out what I had missed. I have everything else properly installed and working fine, it's just these two packages I've come across that I cannot locate. I'm guessing there's probably more packages that I just haven't run into yet that wouldn't work either.
    Last edited by Socialsymbol (2010-06-29 23:00:00)

    Shazzam6999 wrote:
    That's because archey is in the AUR. You can use yaourt to install packages from the aur similar to how you're trying, read the wikis and check it out.
    http://wiki.archlinux.org/index.php/Arc … Repository
    http://wiki.archlinux.org/index.php/Yaourt
    Ok, thanks, I had forgotten about that.
    When do they suspect they'll fix the flashplugin bug/vulnerability? And what is recommended to do until then as far as flash playback goes?
    Last edited by Socialsymbol (2010-06-29 22:51:14)

  • OWB11r2 data chunking: cannot find package DBMS_APPLY

    Hi,
    I'm trying the new data chunking feature of owb11r2. I got it running with serial strategy. But when I switch to parallel strategy, the mapping does not compile. It tries to call the package DBMS_APPLY, but that cannot be found:
    DBMS_APPLY.INITIALIZE(..);
    DBMS_APPLY.CHUNK_TABLE_BY_ROWID(..);
    Target db is 11r2.
    Any idea?
    Regards,
    Carsten.

    Hi Carsten
    There is a bug (9057172) logged for this. I have tried to workaround but couldn't find any mechanism.
    Cheers
    David

  • Cannot Find Package

    I am migrating from a single server, database and http server on one machine, to a two server approach, app server (http server) and database. I have a page in Apex that displays a stored PDF file using an iframe. For example:
    select
    '<iframe src="web_admin_pkg.display_action_pdf?p_doc_id='||:P104_DOC_ID||'" height="600" width="900"></iframe>' pdf
    from dual
    This works great on my single server environment, but when I try to run this from my app server, I get an error stating:
    The requested URL /pls/apex/web_admin_pkg.display_action_pdf was not found on this server.
    Oracle-Application-Server-10g/10.1.3.1.0 Oracle-HTTP-Server Server at my_host03 Port 7777
    my_host03 is the Application Server
    my_host01 is my database server
    I have the same permissions on the package in both environments, so I don't think that is the issue.
    Any ideas?
    Tony

    Tony,
    Here's a shot in the dark.
    Are the Database Access Descriptors defined with 2 different database users? I noticed that the reference to web_admin_pkg.display_action_pdf is not qualified with a package owner, so either it's being accessed:
    1) through a public synonym
    or
    2) it's contained in the schema configured in your DAD
    Ensure you have either granted execute to PUBLIC on this procedure, and/or try and fully qualify the package reference, e.g., joedbuser.web_admin_pkg.display_action_pdf.
    Joel

  • Help JDeveloper cannot find package

    Hi,
    I am using JDeveloper 9.0.3.4.
    In the project settings -->Configurations -->Development --> Libraries, I add JSP Runtime, J2EE, Servlet Runtime. But When I tried to rebuild my project, I got errors like:
    (1) package javax.servlet.jsp does not exist;
    (2) cannot resolve symbol on import javax.servlet.http.HttpServletRequest;
    (3)javax.servlet.http.HttpServletRequest is not public in javax.servlet.http; cannot be accessed from outside package.
    Can you help?
    Many thanks,

    Add lib/j2ee.jar from the J2sdkee installation in the project Classpath with Paths>Additional Paths in the project properties frame.

  • Cannot find package error and cannot resolve symbol error

    Hi
    I have a file Assignment.java in C:\TIJCode\c03 folder. But this file belongs to the default package. This file imports a package com.bruceeckel.simpletest which is in C:\TIJCode\ folder. Now this package has a file named Test.java which accesses a few more files fromt he same package.
    I set the classpath to C:\TIJCode. When i try to run the Assignment file I get an error saying package com.bruceeckel.simpletest cannot be found and cannot resolve symbol error. symbol: Test Class: Assignment.
    The files in com.bruceeckel.simpletest package were not compiled. So I first tried to do that. But I get a cannot resolve symbol error while trying to compile a file NumOfLinesException which inherits SImpleTestException file. The exact error message is
    NumOfLinesException.java : 7 : cannot resolve symbol
    symbol : class SimpleTestException
    location : class com.bruceeckel.simpletest.NumOfLinesException extends SimpleTestException
    The exact code in each of above mentioned files is
    //: c03:Assignment.java
    // Assignment with objects is a bit tricky.
    // From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002
    // www.BruceEckel.com. See copyright notice in CopyRight.txt.
    import com.bruceeckel.simpletest.*;
    class Number {
    int i;
    public class Assignment {
    static Test monitor = new Test();
    public static void main(String[] args) {
    Number n1 = new Number();
    Number n2 = new Number();
    n1.i = 9;
    n2.i = 47;
    System.out.println("1: n1.i: " + n1.i +
    ", n2.i: " + n2.i);
    n1 = n2;
    System.out.println("2: n1.i: " + n1.i +
    ", n2.i: " + n2.i);
    n1.i = 27;
    System.out.println("3: n1.i: " + n1.i +
    ", n2.i: " + n2.i);
    monitor.expect(new String[] {
    "1: n1.i: 9, n2.i: 47",
    "2: n1.i: 47, n2.i: 47",
    "3: n1.i: 27, n2.i: 27"
    } ///:~
    //: com:bruceeckel:simpletest:SimpleTestException.java
    // From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002
    // www.BruceEckel.com. See copyright notice in CopyRight.txt.
    package com.bruceeckel.simpletest;
    public class SimpleTestException extends RuntimeException {
    public SimpleTestException(String msg) {
    super(msg);
    } ///:~
    //: com:bruceeckel:simpletest:NumOfLinesException.java
    // From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002
    // www.BruceEckel.com. See copyright notice in CopyRight.txt.
    package com.bruceeckel.simpletest;
    public class NumOfLinesException extends SimpleTestException {
    public NumOfLinesException(int exp, int out) {
    super("Number of lines of output and "
    + "expected output did not match.\n" +
    "expected: <" + exp + ">\n" +
    "output: <" + out + "> lines)");
    } ///:~
    //: com:bruceeckel:simpletest:Test.java
    // Simple utility for testing program output. Intercepts
    // System.out to print both to the console and a buffer.
    // From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002
    // www.BruceEckel.com. See copyright notice in CopyRight.txt.
    package com.bruceeckel.simpletest;
    import java.io.*;
    import java.util.*;
    import java.util.regex.*;
    public class Test {
    // Bit-shifted so they can be added together:
    public static final int
    EXACT = 1 << 0, // Lines must match exactly
    AT_LEAST = 1 << 1, // Must be at least these lines
    IGNORE_ORDER = 1 << 2, // Ignore line order
    WAIT = 1 << 3; // Delay until all lines are output
    private String className;
    private TestStream testStream;
    public Test() {
    // Discover the name of the class this
    // object was created within:
    className =
    new Throwable().getStackTrace()[1].getClassName();
    testStream = new TestStream(className);
    public static List fileToList(String fname) {
    ArrayList list = new ArrayList();
    try {
    BufferedReader in =
    new BufferedReader(new FileReader(fname));
    try {
    String line;
    while((line = in.readLine()) != null) {
    if(fname.endsWith(".txt"))
    list.add(line);
    else
    list.add(new TestExpression(line));
    } finally {
    in.close();
    } catch (IOException e) {
    throw new RuntimeException(e);
    return list;
    public static List arrayToList(Object[] array) {
    List l = new ArrayList();
    for(int i = 0; i < array.length; i++) {
    if(array[i] instanceof TestExpression) {
    TestExpression re = (TestExpression)array;
    for(int j = 0; j < re.getNumber(); j++)
    l.add(re);
    } else {
    l.add(new TestExpression(array[i].toString()));
    return l;
    public void expect(Object[] exp, int flags) {
    if((flags & WAIT) != 0)
    while(testStream.numOfLines < exp.length) {
    try {
    Thread.sleep(1000);
    } catch (InterruptedException e) {
    throw new RuntimeException(e);
    List output = fileToList(className + "Output.txt");
    if((flags & IGNORE_ORDER) == IGNORE_ORDER)
    OutputVerifier.verifyIgnoreOrder(output, exp);
    else if((flags & AT_LEAST) == AT_LEAST)
    OutputVerifier.verifyAtLeast(output,
    arrayToList(exp));
    else
    OutputVerifier.verify(output, arrayToList(exp));
    // Clean up the output file - see c06:Detergent.java
    testStream.openOutputFile();
    public void expect(Object[] expected) {
    expect(expected, EXACT);
    public void expect(Object[] expectFirst,
    String fname, int flags) {
    List expected = fileToList(fname);
    for(int i = 0; i < expectFirst.length; i++)
    expected.add(i, expectFirst[i]);
    expect(expected.toArray(), flags);
    public void expect(Object[] expectFirst, String fname) {
    expect(expectFirst, fname, EXACT);
    public void expect(String fname) {
    expect(new Object[] {}, fname, EXACT);
    } ///:~

    What do you have in the C:\TIJCode\ directory? Does the directory structure mimic the package structure for the stuff you're importing?

  • Cannot find package javax.servlet.*

    Hi All,
    I'm trying to run the "make all" in the Wrox J2ee bea book and am running in to errors that all seem to stem from the fact that the javax.servlet.* packages do not exist. After looking around it seems that this package should be in the weblogicaux.jar file. I do not have that jar file in my install. Anyone know where i can either get that weblogicaux.jar file or any file which has the javax.servlet packages. Any help would be much appreciated.
    Hoony
    weblogic 5.1.0

    That jar file should be located in %WebLogichome%\lib.
    Michael Girdley
    BEA Systems
    Learning WebLogic? http://learnweblogic.com
    "Hoony Youn" <[email protected]> wrote in message
    news:3a70280f$[email protected]..
    >
    Hi All,
    I'm trying to run the "make all" in the Wrox J2ee bea book and am runningin to errors that all seem to stem from the fact that the javax.servlet.*
    packages do not exist. After looking around it seems that this package
    should be in the weblogicaux.jar file. I do not have that jar file in my
    install. Anyone know where i can either get that weblogicaux.jar file or
    any file which has the javax.servlet packages. Any help would be much
    appreciated.
    >
    Hoony
    weblogic 5.1.0

  • Asant   cannot find package, javac can??

    Hi All,
    I am working through the J2EE training disc CDJ-310A. I am trying to build the bankproject with asant and build.xml.
    Compiling with asant.
    Classpath set and works (javac finds it and set looks okay).
    Javac finds junit fine.
    Is there some other setting that asant uses other than the class path? Why would javac find junit and not asant??
    details:
    Imports:
    import junit.framework.*;
    import junit.extensions.*;
    import junit.runner.*;
    ClassPath ; JUNIT_HOME is c:\Junit4.1
    %JUNIT_HOME%\junit-4.1.jar
    Thanks, Ed.

    Hi,
    Thanks for the pointer, unfortunately, I read the manual and it is still not working.
    Thanks, though, Ed.

  • Cannot find package java.awt

    hi,
    i am trying to compile my project code and i keep on getting the following two errors " package java.awt does not exist " and " package java.awt.events does not exist " why is this happening? Is there any special classpath that needs to be set? Or any other thing? please help....

    Are you importing using import java.awt.*; or import java.awt;
    java.awt.events does not exist. Try java.awt.event instead.
    Please post your import statements.

  • "Cannot find FacesContext" deploying to Sun ONE Web Server 6.1

    I got this when trying to
    deploy to Sun ONE Web Server 6.1:
    [29/Sep/2004:15:16:15] failure ( 1512): for host 127.0.0.1 trying to GET /test/Page1.jsp, service-j2ee reports: StandardWrapperValve[jsp]: WEB2792: Servlet.service() for servlet jsp threw exception
    javax.servlet.ServletException: Cannot find FacesContext
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536)
         at jsps.Page1_jsp._jspService(_Page1_jsp.java:1131)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
         at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:667)
         at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:447)
         at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:363)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
         at com.iplanet.ias.web.WebContainer.service(WebContainer.java:586)
    ----- Root Cause -----
    javax.servlet.jsp.JspException: Cannot find FacesContext
         at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:399)
         at com.sun.faces.taglib.jsf_core.ViewTag.doStartTag(ViewTag.java:105)
         at jsps.Page1_jsp._jspService(_Page1_jsp.java:63)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
         at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:667)
         at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:447)
         at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:363)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
         at com.iplanet.ias.web.WebContainer.service(WebContainer.java:586)
    I already deploy successfully to Tomcat 5 and (of course) PE 8. The common denominator with the same problem on OC4J is that both servers are j2ee 1.3 (even if Sun One runs with JVM 1.4).
    I copy the jstl 1.0 jars to some directory and enter such directory in the classpath suffix of JVM.
    Do Im missing something?
    TIA

    Hello,
    Try the following:
    After deploying the WAR file, by hand, add a sun-web.xml file to
    the deployed path in WEB-INF and make sure classloader delegate is set to false.
    <class-loader delegate="false"/>
    Now the bundled libs will be considered first.
    (After building the project, see a sample sun-web.xml
    in the build/WEB-INF folder - change Project view to Filesystem
    view, by right-click on the Project top-level node in the Project
    Navigator)
    You may need to include JSF jars in the WAR file by
    modifying the JSF Support library reference (mounted
    by default in the Project Navigator) by enabling all
    libraries for deployment)
    John
    JSC QA

  • 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;
    %>

  • 'Cannot find symbol' error after putting class into package

    I'm sure this is probably just a stupid mistake that I am making somewhere, but I can't figure it out.
    I have written a Java program, "LineConsole.java" and an interface, "LineConsoleKeyListener.java". LineConsole.java uses the interface (it does not implement it... it uses LineConsoleKeyListener objects in the program). If I put the two .java files into the same directory and compile them, everything works.
    So now I want to put them in a package called "LineConsole". I thought all I had to do was move the two files into a folder called "LineConsole" and add "package LineConsole;" to the top of each file. I did that, but now LineConsole.java does not compile. It complains that it cannot find the LineConsoleKeyListener interface, even though it's right there in the same directory.
    What am I doing wrong? Do members of a package have to import themselves or something?
    Thanks!
    Message was edited by:
    L4E_WakaMol-King

    Thanks guys :)
    It's working now.
    One more question...
    Right now I have 3 files in a folder names "LineCon":
    - LineConsole.class
    - LineConsoleKeyListener.class
    - wincbreak.dll
    If I copy that directory into the same directory as some other program I am writing, I can use those classes just like they are in a package. But is there any way to zip that package into a jar file? I know how to create jar files, but is there a way to make them behave like packages?
    I have tried creating a jar file with the individual files and also with all three files in a directory. The jar file is created successfully, but I cannot copy that jar file into the directory of a program and use the classes within it as if they were a package.
    I guess my ultimate question here is... how do I import a .class file that is in a jar file?

  • ERRORsymbol:class UserTransaction(cannot find symbol)/package javax.mail.in

    Hi people, I am trying to compile a web proyect in MyEclipse with Ant 1.6.2, but now it appears an error that says :
    [javac] F:\...\Doc1.java:13: cannot find symbol
    [javac] symbol : class UserTransaction
    [javac] location: package javax.transaction
    [javac] import javax.transaction.UserTransaction;
    [javac] ^
    and another one:
    [javac] F:\...\Doc2.java:19: package javax.mail.internet does not exist
    [javac] import javax.mail.i nternet.MimeMultipart;
    [javac] ^
    I'm using tomcat 5.5.23
    Could anyone say to me why could this happen???I think that I am using all the libraries I need and so on..
    Thank you very much!!

    You're not using all the libraries you need. :-)
    UserTransaction is part of Java EE. You'll need Java EE support in your compilation
    environment, and your program won't run on Tomcat. (Java EE support will also
    include JavaMail, which you can use separately with Tomcat as well.)

  • Preverification error: Cannot find class com/sun/perseus/model/Viewport

    Hi all,
    I have a (previously) working Midlet to which I have added one line as follows:
    SVGImage image = (SVGImage)SVGImage.createEmptyImage(null);
    - and imported the necessary from javax.microedition.m2g. (I am using the library that comes with the WTK, jsr226.jar).
    This builds, jars, obfuscates fine. But when I try to preverify (using Antenna's wtkpreverify) on the jar, it gives up in disgust very swiftly as follows:
    [wtkpreverify] Error preverifying class javax.microedition.m2g.ScalableGraphics
    [wtkpreverify] VERIFIER ERROR javax/microedition/m2g/ScalableGraphics.render(IILjavax/microedition/m2g/ScalableImage;)V:
    [wtkpreverify] Cannot find class com/sun/perseus/model/Viewport
    I'm using the WTK2.5.1ea and antenna 0.9.14, CLDC1.1, MIDP2.0...
    Many thanks for any ideas.

    Problem resolved simply by replacing jsr226.jar (as distributed with WTK2.5.1ea) with m2g.jar (as distributed with J2MEPolish).

Maybe you are looking for

  • Runtime error in Dreamweaver CS4

    When trying to start to work with Dreamweaver CS4 I get a runtime error Afther building a website in in div's and css and saving it I had no problems. Afther closing the computer and starting to work the next morning I got the error. I've restarted m

  • Report 11g RUN_REPORT_OBJECT is not working FRM-41214

    Dear all, We are not able to run the reports using RUN_REPORT_OBJECT from forms 11g, we have tried our maximum to resolve this issue, unfortunately no proper documentation. Forms working without any issue are able to see the report out puts if I try

  • BSP Tree View - how to create checkboxes on each node?

    Hello all, On my (non-MVC) BSP page I'd like to have a tree in which each node has a checkbox that the use can select, e.g. node 1.1: X, node 1.2: space; node 1.3: X It doesn't seem like the standard <htmlb:tree> can do this. Is there any quick way I

  • What is te best way to copy a table from a database to another?

    Hello friends: I have two databases: an Access database and an Oracle database. I must copy the data from al tables from the Access database to the oracle database. The tables in the both databases are equal (number of columns, type, etc). I read an

  • Event "asynch descriptor resize" on windows

    Hi, I already found some information about the event "asynch descriptor resize" in google, but all of them were related to linux. I am using Windows Server 2008 and have the problem, that when I execute a statement (create materialized view), the eve