Only one type can be imported. package. Class resolves in one package

Hello

I did a class for the database connection named ConnectionClass.class.

JSPS in public_html directory works very well with import and the session variables.

but jsp in public_html/subdirectory is unable to import this class and also unable to access session variables.

I deploy this class under public_html/WEB-INF/classes/directory.

and also in a vidyabharti.jar of jar in the directory public_html/WEB-INF/lib file

I am importing into JSP pages as
< % @ page import = "vidyabharti. "ConnectionClass, java.sql. *" % >

but I am getting following error

An error occurred at line: 6 in the generated java file
Only one type can be imported. vidyabharti. ConnectionClass resolves in one package

An error occurred at line: 110 in the jsp file: welcome.jsp
ConnectionClass cannot be resolved to a type

109: < %
110: ConnectionClass cs = null;


An error occurred at line: 115 in the jsp file: welcome.jsp
ConnectionClass cannot be resolved to a type
CS = new ConnectionClass();



I use Tomcat 5.5.28.

Please help me.

Hello

It's a problem possible whith your distribution of tomcat JDT compiler version.
You know that jasper is the engine that transform the jsp to classes and to reach this goal using a jdt compiler or the Ant's javac compiler task.

First check that the JDT compiler class is present in the trace for the exception that you have.
If this is the case follow the steps in the tomcat documentation in in order to use the compiler to Ant.

http://Tomcat.Apache.org/Tomcat-5.5-doc/Jasper-HOWTO.html

Apache Ant, which was used in previous versions of Tomcat, can be used instead of the new compiler instead simply by deleting the common/lib/jasper-compiler-jdt.jar file, and place the last distribution of Ant's ant.jar file in common/lib folder. If you do this, you must also use the "javac" to catalina.sh argument.

If you check the code of the compilation tomcat context seems you can do the same thing, without removing any file, by setting the parameter of compilation of the JspServlet to a value arbitrary diferent of null value.

Try this alternative by editing the %TOMCAT_HOME%\conf\web.xml file
and set the attribute of the compiler as follows

    
        jsp
        org.apache.jasper.servlet.JspServlet
        
            fork
            false
        
        
            xpoweredBy
            false
        
        
            compiler
            Ant
        
        3
    

If it works for your problem, we can check the jdt code and maybe make a correction.

Best reggards,

Tags: Java

Similar Questions

  • Why can't import package twinkle in AS3 file

    It creates the error message saying cannot find the definition for spark.*... What am I doing wrong?

    In Flash builder, you can either create a Flex or AS3 project.

    If you create an AS3 project spark libraries will not be included in your build path

    If you create a Flex project, the libraries of the spark will be included, also you can write AS3 classes and use them in Flex.

    Can do anything AS3 Flex can do, but as a generalization you find more easily create application type projects in content in AS3 Flex and interactive games

    Learn Flex, I found Flex in a week video training | Adobe Developer Connection very useful to begin with, although the learning curve for Flex comes when you learn what is available for you to use and to use for which task components

    As for AS3, there is such a wealth of online resources, I suggest looking for an example/tutorial closely related to what you're trying to reach.

    If you try to create an iOS app in Flash builder I highly recommend to create a Flex project rather than an AS3 project.

    I have recently started creating my first android app and am doing in Flash builder.  And I started here Adobe Flex 4.6 * user interface and available however the video tutorial starts at halfway with no obvious way to find the first videos of some that must have been made

    found this link via Adobe Flex 4.6 * developing Mobile Applications with Adobe Flex and Adobe Flash Builder 4.6

  • My computer has Windows and Acrobat Reader DC.  When I open a PDF file sent there are several fonts instead of one.  The only difference I can find is properties - font - Arial - Type of real fonts: Type 1 instead of TrueType. If this is the problem how t

    My computer has Windows 7 and Acrobat Reader DC.  When I open a PDF sent there are several fonts instead of one.  The only difference I can find is 'Properties - font - Arial - Type of the actual is of Type 1 fonts' instead of 'TrueType '.  If this is the problem, how can I change the Type 1 for TrueType, and if not, what could be the problem and the fix?

    It cannot be resolved with Reader. Sounds like an issue that will be attached to the end of the creation of embedding fonts.

  • How can I keep only one instance of the javafx application at the same time?

    Hello
    How can I keep only one instance of the javafx application at the same time?
    Let not the user run the javafx application is running on your PC.

    Hello. This program does what you want. You can probably find a better solution.

    import javafx.application.Application;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.layout.StackPane;
    import javafx.stage.Stage;
    
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileReader;
    import java.io.FileNotFoundException;
    import java.io.*;
    import java.nio.channels.FileLock;
    import javafx.application.Platform;
    import javafx.stage.WindowEvent;
    
    public class Simpleapp extends Application {
    
        public static void main(String[] args) {
    
            launch(args);
        }
    
        @Override
        public void start(Stage primaryStage) throws Exception {
    
            final File file = new File("flag");
            final RandomAccessFile randomAccessFile = new RandomAccessFile(file, "rw");
            final FileLock fileLock = randomAccessFile.getChannel().tryLock();
    
            System.out.print(fileLock == null);
            if (fileLock == null) {
                Platform.exit();
            }
    
            primaryStage.setTitle("Hello World!");
            Button btn = new Button();
            btn.setText("Say 'Hello World'");
    
            StackPane root = new StackPane();
            root.getChildren().add(btn);
            primaryStage.setScene(new Scene(root, 300, 250));
    
            primaryStage.setOnCloseRequest(new EventHandler() {
    
                @Override
                public void handle(WindowEvent arg0) {
                    try {
                        fileLock.release();
                        randomAccessFile.close();
                        System.out.println("Closing");
                    } catch (Exception ex) {
                        System.out.print(ex.getMessage());
                    }
    
                }
            });
    
            primaryStage.show();
        }
    }
    
  • Why only a DBA can import?

    I export with normal user RAKESH, and when I import with RAKESH user I get * "only a DBA can import a file exported by another DBA."

    H:\ > exp file rakesh/rakesh@testapp = d: \rakesh.dmp log = D:\rakesh.log

    Export: Release 10.2.0.1.0 - Production on sea Mar 10 12:50:57 2010

    Copyright (c) 1982, 2005, Oracle. All rights reserved.


    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With partitioning, OLAP and Data Mining options
    Export performed WE8MSWIN1252 and AL16UTF16 NCHAR character set

    About to export specified users...
    . export of the actions and the patterns of objects procedures
    EXP-00008: ORACLE 4063 error encountered
    ORA-04063: package body 'SYS. DBMS_LOGREP_UTIL"contains errors
    ORA-06508: PL/SQL: called program unit is not found: 'SYS. DBMS_LOGREP_UTIL ".
    ORA-06512: at "SYS." DBMS_LOGREP_EXP', line 2700
    ORA-06512: at line 1
    EXP-00083: the previous problem has occurred during the call to SYS. DBMS_LOGREP_EXP.schema_info_exp
    . exporting foreign function library names of user RAKESH
    . export synonyms for PUBLIC types
    . export synonyms for private types
    . export definitions of object type for the user RAKESH
    About to export objects from RAKESH...
    . export the database links
    . export of sequence numbers
    . export cluster definitions
    . about to export tables of RAKESH by conventional means...
    . . export the rows in the table A 4 exported
    . . export the TSTLOCK 5 exported table rows
    . export synonyms
    . export of the views
    . export of stored procedures
    . export of operators
    . export of referential integrity constraints
    . export of triggers
    . export indextypes
    . image bitmap, functional and extensible index export
    . export of posttables actions
    . export of materialized views
    . export of the instant newspapers
    . export the work queues
    . export of groups of refreshment and children
    . export of dimensions
    . export actions and procedures of post-compilation schema objects
    EXP-00008: ORACLE 4063 error encountered
    ORA-04063: package body 'SYS. DBMS_LOGREP_UTIL"contains errors
    ORA-06508: PL/SQL: called program unit is not found: 'SYS. DBMS_LOGREP_UTIL ".
    ORA-06512: at "SYS." DBMS_LOGREP_EXP', line 2700
    ORA-06512: at line 1
    EXP-00083: the previous problem has occurred during the call to SYS. DBMS_LOGREP_EXP.schema_info_exp
    . export statistics
    Export completed successfully with warnings.

    H:\ >

    H:\ > imp rakesh/rakesh@testapp file = d: \rakesh.dmp log = D:\rakesh_imp.log

    Import: Release 10.2.0.1.0 - Production on sea Mar 10 12:51:32 2010

    Copyright (c) 1982, 2005, Oracle. All rights reserved.


    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With partitioning, OLAP and Data Mining options

    Export file created by EXPORT: V10.02.01 by conventional means
    IMP-00013: only a DBA can import a file exported by another DBA
    IMP-00000: Import terminated unsuccessfully

    H:\ >
    Why ONLY A DBA can import?

    You can perform an import operation, even though you did not create the export file. However, keep in mind that if the export file was created by a user with the role of the permission, you must have the role IMP_FULL_DATABASE to import it. Two of these roles are typically assigned to database administrators (DBA).

    http://Stanford.edu/dept/ITSS/docs/Oracle/10G/server.101/b10825/exp_imp.htm

    Concerning
    Asif Kabir

  • My last computer was stolen. The only one remaining of my iTunes is on my iPhone. How can I transfer to my new computer?

    My last computer was stolen. The only one remaining of my iTunes is on my iPhone. How can I transfer to my new computer?

    Follow the steps in this Article to Apple Support

    Import photos and videos from your iPhone, iPad or iPod touch - Apple Support

  • I need to create a table of contents in iPages but I want only one word for the title, not the line of holes. Or, how can I change the contents of the table? Thank you!

    I need to create a table of contents in iPages but I want only one word for the title, not the line of holes. Or, how can I change the contents of the table? Thank you!

    Yes, you can have a one word title, by assigning a paragraph style title to this one word. No, you cannot change the text in a Table of contents, but you can change paragraph style font attributes (line) and add for example, a head of points between the types of OCD paragraph and page numbers. No part of the table of contents will not provide hyperlinks in exported PDF documents.

    When you look up in the menu bar, you can see the word iPages, or simply Pages. There is no product of iPages.

  • HP pavilion 23-q012 all-in-one: can not import video from the camcorder to a lask of firewall do imput port

    I can't import video camcorder do a lask of the firewall port imput. Reserched replacement cable IEEE 1394 with a USB one and found it won't work for video. I tried a dvc 100, but the video editing progrm isn't pinnicle. How can I load the video into the computer, or can I charge my current camera videos? He uses the digital band map memeory for photos only.

    You kind of mutilated the terms, but if the camcorder needs a firewire IEEE 1394, your PC cable card cannot accommodate a.  There may be some devices that claim to USB conversions, but normally, they will not work with a camcorder.  It seems that another PC is going to be necessary or another camera.

  • How to password protect an MP3 file so that the intended recipient is the only one who can open

    original title: password protect files MP3

    How to password protect an MP3 file so that the intended recipient (who has the password) is the only one who can open it and listen?

    Hi WillL_1955,

    ·         What is the operating system installed on the computer?

    Try the following.

    Method 1: Put the MP3s in a zip file, set a password on the zip file and not to say that the friend the password.

    How to create and use compressed (zipped) folders in Windows XP

    Compress and uncompress files (zip files) in Windows 7

    Method 2: You can get a third-party program that can help you achieve this goal.

    See also:

    Compress or decompress a file - InfoPath - Office.com

    Important note: this response contains a reference to third party World Wide Web site. Microsoft provides this information as a convenience to you. Microsoft does not control these sites and no has not tested any software or information found on these sites; Therefore, Microsoft cannot make any approach to quality, security or the ability of a software or information that are there. There are the dangers inherent in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

  • Cannot install adobe get "only one instance of this application can run.

    A month ago, I had to replace my hard drive and had to start re install everything.  I need adobe for many reasons, but more important still to read & Create PDFs.

    I tried to install it but get this message "that only one instance of this application can run.

    I see all the Adobe apps, I tried to remove all of the adobe files and still nothing.

    I also went on the Adobe Web site and it says this error message was due to the flash application, but I deleted all the files in and still nothing.

    Help, please!

    Roxanne

    I can't install the file that comes from the download link.

    Instead I had to install the Enterprise version. This fixed my issue. I bookmarked this site, next time there is an update I'll link again.

    https://get.Adobe.com/reader/Enterprise/

  • Lightroom: How to import only certain types of files

    How to import only certain types of files like jpg only)

    So I have an S5 (not a S6) and I did not earn 8.1, I have Win 7 and what I do with photos taken by this phone is simply to use Windows to copy pictures on any desired folder on one of my hard drives, and then I import it from there. I don't really know if there is a way to import pictures directly from the phone. Maybe someone else has a better answer.

  • Elements 9 organizing imports only one folder at a time

    Well, I bought Elements 9 after is is not happy with the products included with my camera.

    The system is a processor i950, Windows 7 Ultimate 64 bit, 12 GB of RAM, 120 GB SSD and a 1 TB hard drive.  Basically a system that gives me no problem with any other software, most of the time, free crash.

    I have a server that is running on a gigabit network.

    Pictures folder has about 25000 photos.

    My biggest problem from the beginning has been importing my photos.

    I would like to do an import on the drive mapped to the Photos, and not all would be imported when I checked again later.

    Then the questions increased when I actually try to import several files at a time.  All that would happen would be that the first content of files would be imported, but the second folder might get ignored.

    If I pointed out 10 files, only the first would incorporate.

    Great great pain in the behind when you have things organized properly.

    Also, I must say that the part of the Organizer is bug.  Plant a lot and on a system like mine should not be slow to react to what is.

    Don't have not even gotten to the part of the editor yet.  Hope it's not worse.

    Merry Christmas everyone!

    Title of the message was edited by: Brett N

    Hi all

    First of all, I would like to thank RDNelson for his remarks very insightful on the importance of the parameters when working with networks. More than just the physical capabilities of the material must be taken into account. I'm not trying to say that you cannot use a network with PSE, just that it is not recommended. When you start having problems, it is best to return to the essential to know where the question arises. Taking a network out of the equation will help tremendously. As a grown up Greg14, KISS.

    Second, sometimes it is a good idea to turn off features such as the autoanalyzer. This does not mean that everyone should do, but for some people, it would be preferable. Libraries of images and videos is going to be unique. I will admit that a few images and video have a hard time being ranked by the algorithms and it can become stuck in a loop of reanalyzing the same assets over and over again, or just don't get past certain elements. Again, I thank RDNelson for his excellent suggestion. If you find that you are having problems with the autoanalyzer, try his workaround to manually analyse in groups (new import batches, by album, by keyword, file, etc.). Then, if a particular batch cannot be parsed, these assets can be considered below to determine if there is a problem on their part. These questions may arise from invisible sources, such as metadata in the file that has been added by the device that created the file (like the camera Exif data or a scanner).

    Brand 'Crash Conrad', John Rellis has a Batphone for our engineering team. He has provided very useful information to both our developers and our clients.

    A note on the question of the selection of several files but only one file is imported. This seems to be a problem with the Windows Explorer on Vista/7 computers. This problem will not occur on the Mac version of the Organizer. Or it comes up with the same exact version of the software on Windows XP.

    In order to get to the bottom of one of the issues raised on this forum, we need to get more explicit information on when and how the problem occurs. If a network is the source of the problem, we need to know everything about this network for a solution of the engineer. All software has problems, but some problems occur only in very special circumstances that are not so happened that in the "lab". To find a solution, we must be able to reproduce the environment to find the cause and deal. All the information you can provide, so that anyone who reads this forum could reproduce the same behavior, would be of the greatest help.

    -Brett

  • A function can receive from a keyboard event or a mouse event or there may be only one?

    I decided to add some keyboard functions to my program.  All my functions, I wrote require a mouse event to pass to them.  I wonder if there is a better way to perform these functions of mouse event rather than take the contents of these functions and create a function that is called in a mouse event function OR a function of keyboard events.

    What I mean is that I begin to change the functions of mouse event that I don't have only one line inside of them, which runs a separate function. This same separate function that I run using a keyboard to input as well.  It seems a little redundant to me. Any thoughts?  Thank you.

    In addition to other comments, since MouseEvent and KeyboardEvent extends event, you can type argument as event:

    function myHandler(e:Event):void {}

    code

    }

    The only problem with this is that if you write code within the listener based on a specific event parameter - you will need to mount e argument as such in any case.

    Another solution would be to make argument an object. In this case to the compilation and runtime it will be perceived as valid a data type:

    function myHandler(e:Object):void {}

    code

    }

    Typing is no argument at all (like e: *) can cause inconvenience more typing at least to the object.

  • you need to recover only one type of phone number

    Hello

    In the following example query, I need to recover only one phone number. The preference is if available Mobile - mobile phone number if this is house number (Type - H1), work a different number (W1).

    I've included the script and the sample output that I get from the SQL

    Thanks in advance

    Concerning
    Sriram
    select pp.ph_id
    ,papf.person_id
    ,pp.ph_type
    ,pp.ph_no
    ,pp.date_from
    ,pp.date_to
    from per_phones                      pp
    ,per_all_people_f                    papf
    ,per_contact_relationships           pcr
    where papf.person_id = pp.parent_id
    and pcr.person_id = papf.person_id
    and trunc(sysdate) between trunc(nvl(pcr.date_start, sysdate-1))
    and trunc(nvl(pcr.date_end, sysdate+1))
    and papf.person_id in (146564, 514)
    and pcr.primary_contact_flag  = 'Y'
    and trunc(sysdate) between papf.effective_start_date and papf.effective_end_date
    and trunc(sysdate) between nvl(pp.date_from, sysdate-1) and nvl(pp.date_to, sysdate+1);
    output
    PH_ID     PERSON_ID     PH_TYPE     PH_NO     DATE_FROM     DATE_TO
    3261     514          H1          987524879     13-Jun-04     
    117287     514          M          0403672797     11-May-05     
    141997     146564          H1          54789620     15-Feb-06     05-Mar-10
    311028     146564          H2          235469          5-Dec-09     
    311029     146564          W1          8300054          15-Dec-09     
    311108     146564          M          04126872     12-Feb-10

    You can also try

     select max(pp.ph_id) keep (dense_rank first order by decode(pp.ph_type, 'M',1,'H1',2, 'W1',3), ph_id,
           pp.person_id,
           max(pp.ph_type) keep (dense_rank first order by decode(pp.ph_type, 'M',1,'H1',2, 'W1',3), ph_type,
           max(pp.ph_no) keep (dense_rank first order by decode(pp.ph_type, 'M',1,'H1',2, 'W1',3), ph_no,
           max(pp.date_from) keep (dense_rank first order by decode(pp.ph_type, 'M',1,'H1',2, 'W1',3), date_from,
           max(pp.date_to) keep (dense_rank first order by decode(pp.ph_type, 'M',1,'H1',2, 'W1',3),date_to
      from per_phones pp, per_all_people_f papf, per_contact_relationships pcr
     where papf.person_id = pp.parent_id and pcr.person_id = papf.person_id
           and trunc (sysdate) between trunc (nvl (pcr.date_start, sysdate - 1)) and trunc (nvl (pcr.date_end, sysdate + 1))
           and papf.person_id in (146564, 514)
           and pcr.primary_contact_flag = 'Y'
           and trunc (sysdate) between papf.effective_start_date and papf.effective_end_date
           and trunc (sysdate) between nvl (pp.date_from, sysdate - 1) and nvl (pp.date_to, sysdate + 1)
    group by pp.person_id;
    

    Published by: michaels2 on February 25, 2010 08:50

    probably, you want to just group by person_id

  • I have 2 Mozilla Firefox on my desktop. They are both version 41.0.2 - in my installation and delete I find only one. How can I delete one of them?

    I tried to update to Mozilla Firefox and I had another icon on my desktop. Now, I have Mozilla Firefox 2 and they are both Version 41.0.2. They are both exactly the same thing when I open the. I see only one on my add/remove program location so I won't delete it because I could delete them both. Can you help me?

    You can remove one of the office shortcuts if both point to the same firefox.exe in the same Firefox program folder.
    You can keep the one with the correct version information where the other is an older version of Firefox.
    Note that Firefox 42 will come out next week (Tuesday).

Maybe you are looking for

  • Crystalstark.co.za has a response email facility which Mozilla does not use, but Internet Explorer will use to launch Outlook express. Help, please.

    The site includes a hyperlink for an e-mail response. When you open the site in Internet Explorer, the hyperlink is recognized, but Firefox does not recognize the hyperlink. Or Chrome!

  • TV Tuner while improving to XP Pro problem

    Hi all I bought a new Qosmio F10-101 who has pre - install XP Home... I switch to XP Pro... Now, I'm getting warning sign in Device Manager as a PCI device, which is supposed to be the TV Tuner is not recognized...I am looking for driver TV Tuner in

  • Analog output DNL value details

    I have an application where I use a card PCI-6221 to generate a sinusoidal signal over a wide range of amplitudes (> 1000: 1). Obviously at low amplitudes, the waveform becomes very pixelated, but the harmonics generated by it are not a problem in th

  • Creation of audit process

    I am running Windows server 2008 R2. Our local security policy requires that we allow the Audit process of creating success. I need to know if there is a way to exclude a particular audit process as it fills up my logs. I'm running a HP6000 EVA contr

  • How to use WVC54GCA webcam with Skype?

    I just installed the wirelesss WVC54GCA webcam. The wireless part works very well in the House, but I don't know how to use it on the internet. How can I make my default webcam for Skype? Do I need additional Windows drivers?