Import and recognize class error

The following is a simple welcome.jsp file that I am trying to run on a local J2EE sever. As you can see it tries to import classes one being the FaqCategories.class which is located in the folder Ch03 of the WEB-INF directory. When I call the page up on the browser It gives me that it does not recognize the FaqCategories faqs = new FaqCategories; class error. I am wondering why(Is the import statement wrong? Did I put the class in the wrong directory? Etc... I followed everything the book told me to a que and I still received an error.
<&@ page errorPage="/WEB-INF/errorPage.jsp"
         import="java.util.Iterator,Ch03.FaqCategories" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
     <title>Java FAQ Welcome Page</title>
   </head>
   <body>
     <h1>Java FAQ Welcome Page</h1>
     Welcome to the Java FAQ
  <%! FaqCategories faqs = new FaqCategories(); %>
  Click a link below for answers to the given topic.
  <%
    Iterator categories = faqs.getAllCategories();
    while(categories.hasNext()) {
       String category = (String) categories.next();
   %>
      <p><a href="<%= replaceUnderscore(category) %>.jsp"><%= category
   %></a></p>
   <%
    %>
   <%@ include file="/WEB-INF/footer.jspf" %>
      </body>
     </html>
      <%!
       public String replaceUnderscore(String s) {
         return s.replace(' ','_');
       %>

Originally posted by: nadeem.aboobaker.bea.com
"Walter Harley" <[email protected]> wrote in message
news:f2jet7$na1$[email protected]..
> "Nadeem Aboobaker" <[email protected]> wrote in message
> news:f2j2au$fi6$[email protected]..
>> Hello all,
>>
>> I am having issues creating a plugin as a JAR file, where the plugin
>> contains a nested JAR file.
>
>
> Hey, Nadeem.
>
> Yes, there are a lot of problems with trying to use nested jars in (and
> out of) Eclipse. You can look at
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=145001 as a sort of
> "umbrella" bug report that mentions some of the issues and refers to other
> bugs. There is more than one limitation at work, so describing the issues
> succinctly is difficult. As you noticed in the posting from a year ago,
> the only way to make it work really smoothly is to get rid of the nested
> jars by expanding them (and even then, there are issues with nested .class
> files!).
>
> If it is at all possible to convert the nested .jar into a separate
> plug-in (by adding an OSGi-compliant MANIFEST.MF) and make your primary
> plug-in depend on it, instead of trying to nest the jar within your
> primary plug-in, that will be your best and most "Eclipse-friendly"
> answer.
>
> Feel free to contact me offline or here on the newsgroup if needed.
>
> -walter
Walter, thanks for the reply. Converting the nested .jar into a sepearate
plug-in isn't possible for my case. I checked out the Bug report, and also
the referenced bugs and Wiki page, it was interesting to read all the
issues. :) In any case, I know that deploying the plugin as a directory
instead of a jar works, so I will just go with that approach.
- Nadeem

Similar Messages

  • Importing a custom class error

    In my testDB.jsp as follows,
    <body>
    <%@ page language="java" import="java.sql.*" %>
    <%@ page import="DBConn" %>
    <%
    DBConn DBConn1 = new DBConn();
    out.print("bean test:" + DBConn1.test_bean());
    %>
    </body >
    </html >
    I imported a custom class DBConn
    DBConn.java
    import java.sql.*;
    public class DBConn
    public DBConn()
    public static int test_bean()
    return 1;
    Running on AS side. Encountered an error:
    Request URI:/gis/class/testDB.jsp
    Exception:
    java.lang.NoSuchMethodError: DBConn: method test_bean()I not found
    at gis.class._testDB._jspService(_testDB.java:63)
    at oracle.jsp.runtime.HttpJsp.service(Compiled Code)
    at oracle.jsp.app.JspApplication.dispatchRequest(Compiled Code)
    at oracle.jsp.JspServlet.doDispatch(Compiled Code)
    at oracle.jsp.JspServlet.internalService(Compiled Code)
    at oracle.jsp.JspServlet.service(Compiled Code)
    at javax.servlet.http.HttpServlet.service(Compiled Code)
    at org.apache.jserv.JServConnection.processRequest(Compiled Code)
    at org.apache.jserv.JServConnection.run(Compiled Code)
    at java.lang.Thread.run(Compiled Code
    Knowing that DBConn.class was included in the CLASSPATH
    Thanks for any advice!

    HandleHintScale and HandleHintRotate are movie clips in the library of the .fla

  • Import and Export MDL error with OWB Release 2

    Getting the following error when importing and exporting MDL - any assist would be appreciated - never had this issue with previous releases - error as follows:
    Error occurred exporting metadata to file "C:\TEMP\MY_PROJECT-20061208_1058.mdl".
    java.lang.Exception: CNV0002-0038(ERROR): Cannot write to file ./../../reposasst/converter.properties. Please make sure that write privileges are enabled or that disk is not full.

    I got the solution. OWB writes some temporary xml files before importing/exporting mdl and these files are stored in OWB home directory. The problem is write privileges on the OWB Home directory. I am not local admin of my system. Admin installed the OWB client on my system through his userid. Now if i try to create a directory or file in OWB home directory it thorws an error "Access Denied". I got the Admin rights on my local system for my userid and now OWB is working fine.
    Thanks.

  • Flex SDK4 - import built in class error

    How are you?
    I am writing a very simple class, which I am trying to compile with ./mxmlc found in Flex SDK4. However I am getting the below errors, it seems like the built in classes cannot be found. I am not sure why the FLVPlayback or VideoPlayer or VideoElement components do not get included. I checked the SVN, and I cannot find any reference to these components.
    1) All I am trying to do is to get Video to display, using the Flex SDK4 compiler with AS3 files. Why the elements do not import? and What elements could I use for this to work?
    package {
         import flash.display.Sprite;
         import fl.video.FLVPlayback;
         public class Welcome extends Sprite {
              private var _video:FLVPlayback;
              private var _videoPath:String = "InsideJob.f4v";
              public function Welcome():void {
                   build();
         protected function build():void {
                   _video = new FLVPlayback();
                   _video.play(_videoPath);
                   var _place = new Position(200, 500);
                   _video.x = _place.xvalue();
                   _video.y = _place.yvalue();
                   stage.addChild(_video)
    ERRORS -----
    --FLVPlayback
    col: 22 Error: Type was not found or was not a compile-time constant: FLVPlayback.
    private var _video:FLVPlayback;
    col: 17 Error: Call to a possibly undefined method FLVPlayback.
    _video = new FLVPlayback();
    --Spark
    col: 25 Error: Definition spark.components:VideoElement could not be found.
    import spark.components.VideoElement;
    col: 22 Error: Type was not found or was not a compile-time constant: VideoElement.
    private var _video:VideoElement;

    How are you?
    I am writing a very simple class, which I am trying to compile with ./mxmlc found in Flex SDK4. However I am getting the below errors, it seems like the built in classes cannot be found. I am not sure why the FLVPlayback or VideoPlayer or VideoElement components do not get included. I checked the SVN, and I cannot find any reference to these components.
    1) All I am trying to do is to get Video to display, using the Flex SDK4 compiler with AS3 files. Why the elements do not import? and What elements could I use for this to work?
    package {
         import flash.display.Sprite;
         import fl.video.FLVPlayback;
         public class Welcome extends Sprite {
              private var _video:FLVPlayback;
              private var _videoPath:String = "InsideJob.f4v";
              public function Welcome():void {
                   build();
         protected function build():void {
                   _video = new FLVPlayback();
                   _video.play(_videoPath);
                   var _place = new Position(200, 500);
                   _video.x = _place.xvalue();
                   _video.y = _place.yvalue();
                   stage.addChild(_video)
    ERRORS -----
    --FLVPlayback
    col: 22 Error: Type was not found or was not a compile-time constant: FLVPlayback.
    private var _video:FLVPlayback;
    col: 17 Error: Call to a possibly undefined method FLVPlayback.
    _video = new FLVPlayback();
    --Spark
    col: 25 Error: Definition spark.components:VideoElement could not be found.
    import spark.components.VideoElement;
    col: 22 Error: Type was not found or was not a compile-time constant: VideoElement.
    private var _video:VideoElement;

  • Import and Method Execution Error (8)

    Hi,
    I having problem in BI 7. when I transport all objects in one transport number such as
    DOSTransformationDTPDSInfoPackage and transport in QA works fine
    but when I move in PRD no efect in there and get this messages:
    Method Execution with error (8)
    I check transport layer and other setting everying is ok... please advised me what should I do
    Thank in Advance
    Angeline

    Hi,
    Check the correct Error log in STMS_IMPORT and then select your error req and click on Log and expand teh message and see the exact error message and corretc it and re transport it.
    Don't mix all obejcts in single request.
    First Transport the Package then
    1. InfoObejcts.
    2. Cubes, DSO's
    3.DataSources from ECC Dev to ECC Qty
    4. DataSource Replication in BW Qty
    5. InfoSources.
    6.Transformations in between DataSource and InfoSource.
    7.Transformations in between InfoSource and InfoCube/DSO.
    8. DTP's & InfoPackages.
    9. Multiproviders/InfoSets.
    10. Reports.
    Thanks
    Reddy

  • Loadjava and System class error

    $ loadjava -user dev/dev ./tickets.jar
    Error while creating resource META-INF/MANIFEST.MF
    ORA-29547: Java system class not available: oracle/aurora/rdbms/Compiler
    help!
    [email protected]

    The java system classes may not be loaded in the SYS schema. Run the script INITJVM.SQL to initialize JServer.

  • Error message when importing data using Import and export wizard

    Getting below error message when importing data using IMPORT and EXPORT WIZARD
    Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    <dir>
    <dir>
    Messages
    Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Could not allocate a new page for database REPORTING' because of insufficient disk space in filegroup 'PRIMARY'.
    Create the necessary space by dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.".
    (SQL Server Import and Export Wizard)
    Error 0xc0209029: Data Flow Task 1: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "Destination - Buyer_.Inputs[Destination Input]" failed because error code 0xC020907B occurred, and the error row disposition on "Destination
    - Buyer_First_Qtr.Inputs[Destination Input]" specifies failure on error. An error occurred on the specified object of the specified component.  There may be error messages posted before this with more information about the failure.
    (SQL Server Import and Export Wizard)
    Error 0xc0047022: Data Flow Task 1: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "Destination - Buyer" (28) failed with error code 0xC0209029 while processing input "Destination Input" (41). The
    identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information
    about the failure.
    (SQL Server Import and Export Wizard)
    Error 0xc02020c4: Data Flow Task 1: The attempt to add a row to the Data Flow task buffer failed with error code 0xC0047020.
    (SQL Server Import and Export Wizard)
    </dir>
    </dir>
    Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on Source - Buyer_First_Qtr returned error code 0xC02020C4.  The component returned a failure code when the pipeline engine called PrimeOutput().
    The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.
    (SQL Server Import and Export Wizard)
    Smash126

    Hi Smash126,
    Based on the error message” Could not allocate a new page for database REPORTING' because of insufficient disk space in filegroup 'PRIMARY'. Create the necessary space by dropping objects in the filegroup, adding additional files to the filegroup, or setting
    autogrowth on for existing files in the filegroup”, we can know that the issue is caused by the there is no sufficient disk space in filegroup 'PRIMARY' for the ‘REPORTING’ database.
    To fix this issue, we can add additional files to the filegroup by add a new file to the PRIMARY filegroup on Files page, or setting Autogrowth on for existing files in the filegroup to increase the necessary space.
    The following document about Add Data or Log Files to a Database is for your reference:
    http://msdn.microsoft.com/en-us/library/ms189253.aspx
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • LR 2.1 - Importing catalog sees 'Unknown Error' and fails.

    Anybody else seen this dialog box?
    'Could not import catalog due to unknown error'
    This is happening in LR 2.1. First catalog import attempt. I've had no issues previously.
    Upon importing, LR will go through the whole process as though importing, and then at the end of the progress bar, I get the above dialog box. And nothing's there. The import failed.
    Anyone else seen this? Suggestions?
    -Sol
    (MacBook Pro intel 2.2)

    Hey Geoff,
    Great to hear from you, as always. :)
    Well, there were more un-cataloged images that may have been contributing to the situation. I had created web-rez images for my client within subfolders of the main client folder. Once I synchronized, the images were added. Unfortunately, I'm still getting the error message at the end of my import. Now, the weird thing is, if I import the LR catalog only, it disappears after the error message. But, if I tell the import to include the 'Digital Negatives', which includes all the session files (RAW,PSD, jpegs), after the import and then the error box, everything seems to be there and actually looks fine. At least as far as I can tell. I can see the all the files, the ratings, the keywords, etc. A little un-nerving though to say the least. I'm afraid to dump my original catalog and folders.
    FYI, what's going on is that I work on my current client sessions (including all related files) off of my MacBook Pro as my 'Current' catalog. I then have my main LR Catalog (all other images) on a back-up RAID drive. So I'm trying to export from the MBP, over to the back-up RAID LR Catalog.
    Again, the 'Export' seems to go fine. Not sure what's going on here.
    Thanks for your help and input.

  • SQL Server Import and Export Wizard Issue

    i am trying to export SQL data into excel to send out weekly reports.  I have created a view and a SQL account has access to this view; however, I am unable to successfully export the data.  In preview I see all of the data yet it fails on the
    Pre-execute with the below.  It creates the excel file with just the header.  I am using SQL 2014 and loaded the 64 bit AccessDatabaseengine.  I am selecting excel 2007.  Any ideas welcome.
    Messages
    Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E37.
     (SQL Server Import and Export Wizard)
    Error 0xc02020e8: Data Flow Task 1: Opening a rowset for "WeeklyList" failed. Check that the object exists in the database.
     (SQL Server Import and Export Wizard)
    Error 0xc004701a: Data Flow Task 1: Destination - WeeklyList failed the pre-execute phase and returned error code 0xC02020E8.
     (SQL Server Import and Export Wizard)

    Hi astro,
    Please ensure that you haven’t renamed or moved the destination excel file during the exporting process. Also make sure that “Create destination table” option is checked as below screenshot and the SQL statement is correct.
    For more details about using SQL Server Import/Export Wizard to export data from a SQL Server database to an Excel spreadsheet, please review the below blog.
    http://www.mssqltips.com/sqlservertutorial/202/simple-way-to-export-data-from-sql-server/
    Thanks,
    Lydia Zhang
    If you have any feedback on our support, please click
    here.
    Lydia Zhang
    TechNet Community Support

  • I get this error when I go to imovie, I have instalerat on via appstore, but it does not work. The QuickTime components necessary to view, edit, import and export various types of films are not installed. The components included in the iMovie installer. R

    I get this error when I go to imovie, I have instalerat on via appstore, but it does not work.
    The QuickTime components necessary to view, edit, import and export varioustypes of films are not installed. The components included in the iMovie installer.Reinstalling iMovie.

    I get this error when I go to imovie, I have instalerat on via appstore, but it does not work.
    The QuickTime components necessary to view, edit, import and export varioustypes of films are not installed. The components included in the iMovie installer.Reinstalling iMovie.

  • My compouter (PC) no longer recognizes my ipod (4th gen), it "sees" an unknowndevice and gives me error code 43.  Please help.

    My compouter (PC) no longer recognizes my ipod (4th gen), it "sees" an unknowndevice and gives me error code 43.  Please help.

    Check for hardware issues
    Try to restore your iOS device two more times while connected with a cable, computer, and network you know are good. Also, confirm your security software and settings are allowing communication between your device and update servers. If you still see the alert when you update or restore, contact Apple support.
    Common errors: 1, 10-47, 1002, 1011, 1012, 1014, 1000-1020.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar                                      

  • When starting iTunes I continually get an error message " The registry Settings used by the iTunes drivers for importing and burning CDs and DVDs are missing.  This can happen as a result of installing other CD burning software. Please reinstall iTunes."

    When starting iTunes I continually get an error message " The registry Settings used by the iTunes drivers for importing and burning CDs and DVDs are missing.  This can happen as a result of installing other CD burning software. Please reinstall iTunes."  I have unistalled and reinstalled iTunes several times and have cleaned up the registry using a 3rd party Windows utility.  Any tips on removing this error message for good?

    I'd start with the following document, with one modification. At step 12 after typing GEARAspiWDM press the Enter/Return key once prior to clicking OK. (Pressing Return adds a carriage return in the field and is important.)
    iTunes for Windows: "Registry settings" warning when opening iTunes

  • Received this error message when starting iTunes and reinstalling does not resolve it:  The registry settings used by iTunes drivers for importing and burning CDs and DVDs is missing.

    Received this error message when starting iTunes and reinstalling does not resolve it:  The registry settings used by iTunes drivers for importing and burning CDs and DVDs is missing...
    Can I uninstall existing iTunes without losing my media library?  and then install fresh to fix this problem?

    Hi there kweitkamp,
    You may find the troubleshooting steps in the article below helpful.
    iTunes for Windows: "Registry settings" warning when opening iTunes
    http://support.apple.com/kb/TS3299
    -Griff W. 

  • Using iPod shuffle 4th generation for first time and receiving the error : one of the USB devices attached to this computer has malfunctioned, and windows does not recognize it. For assistance in solving this problem, click this message

    Using iPod shuffle 4th generation for first time and receiving the error : one of the USB devices attached to this computer has malfunctioned, and windows does not recognize it. For assistance in solving this problem, click this message.
    Using win 7 and latest iTunes [10.6.3]. Have already gone through below links and did not find any solution.
    http://support.apple.com/kb/HT2292
    http://support.apple.com/kb/TS1369
    http://support.apple.com/kb/HT1923
    http://en.kioskea.net/forum/affich-17997-ipod-not-detected

    I was hoping it would be something like a USB device conflict, but now the shuffle is the only thing connected...
    This article was one of the ones you linked to above in your initial post
    http://support.apple.com/kb/TS1369
    Under Part 9. Verify that USB drivers are installed, did you try the steps in If only "Unknown Device" appears?  That appears to be your situation.
    Also, you said that the shuffle initially worked well enough to do a sync, then it had the same problem again.  If you can get it to work again initially, before doing anything else, try the following.  Select the shuffle in the iTunes sidebar, under DEVICES.  Over to the right, go to the Summary tab.  By default, the checkbox for Enable disk use should be unchecked.  If so, check it and Apply the change.  See if that makes any difference. 
    (If Enable disk use was already checked, try unchecking it and Apply the change.  Basically, set it the "other way" and see if there is any improvement.)
    NOTE:  When disk use is enabled, you have to eject the iPod in iTunes before disconnecting it physically.
    If the disk use change makes a difference, that may provide a clue about the actual cause.

  • What class should be imported to resolve the error

    Dear all,
    would you please tell me that what class should i import to resolve the error for PreparedStatement.
    plz mention the import statement
    Error(437,13): class PreparedStatement not found in class oracle.apps.ak.cacheoffice.server.CacheOfficeAMImpl

    import java.sql.PreparedStatement;

Maybe you are looking for

  • Error when i am assigning chart of dep to company code

    Hi all, when i am assigning chart of depreaction to company code it was geving the following error. NOTE: i copied chart of dep form USA and names as 999 and my company code is 1234 Inconsistency between FI company code 1234 and chart of deprec. 999

  • LT42 in RF

    Hi All, In order to streamline the two-step picking process, I'd like RF users to create the second step TOs with handheld. Is there any RF transaction doing it? Cheers

  • Site background

    I just loanched a site through godaddy after desigining it in Muse and testing it thourgh Business Catalyst. The background of the home page disappeared after I loaded it. All the other pages have the background. Any suggestions as to how to fix this

  • Photoshop not importing MOV doc- "The file could not be opened." error

    Hello! I have photoshop CC and I am trying to complete a video project. So far I have searched high and wide to figure out why my .mov doc is not opening on my timeline and gives me an error: "The file could not be opened". I took the video on my iPh

  • Slider for scaling finder icons doesn't work if...

    I enabled the statusbar in the Finder window which enables the slider to scale the icons. But it doesn't work if I switch from the column view to the icon view. But the slider works if I switch from the list view or the cover flow. You will find a sc