Setting Classpath in TomCat 5.5 for Custom Application

I seem to have messed up my application. I cant access some of my java classes written and deployed in the WEB-INF/classes directory from a JSP Page stored in my app root.
However, the fun part of this is if I create a package in WEB-INF/classes, store my java/class files in it and access these from the JSP using import, it works pretty fine. I'm unable to debug the scenario.
I've given only the context path for the application in the server.xml. I suppose that would be sufficient for my application to be deployed, and need not specify any other classpaths anywhere.
Please help me and correct me if i'm wrong.
fun_one

As of Java 1.4, if any class is in a package, then it can no longer access or import classes from the default (non) package.
As of Tomcat 5.0, all TC classes, including the translated JSP pages, are in a package. That means that they can not access your classes that are not in a package.
Your only option is the best one you should always do anyway: put all the classes in a package.

Similar Messages

  • How to use Cache Management Library (CML) for custom applications?

    Hello,
    We are planning the migration of multiple applications (J2EE, Portal, Web-Dynpro for Java) from 7.01 to 7.3 and we would like to replace some custom cache implementations with a central cache management provided by the SAP Web-AS Java.
    Several SAP standard services (e.g. UME, Configuration Manager, Scheduler) seems to use the "Cache Management Library" (CML):
    [http://help.sap.com/saphelp_nw73/helpdata/en/4a/f833eb306628d2e10000000a42189b/frameset.htm]
    Such caches can be monitored using SAP Management Console (AS Java Caches).
    Portal Runtime (cache_type=CML) and Web Page Composer can also be configured to use CML:
    [http://help.sap.com/saphelp_nw73/helpdata/en/49/d822a779cf0e80e10000000a42189b/frameset.htm]
    [http://help.sap.com/saphelp_nw70ehp2ru/helpdata/en/13/76db395a3140fcb17b8d24f5966766/frameset.htm]
    So our questions:
    How to use CML for custom applications?
    Is there any example or documentation available?
    Kind Regards,
    Dirk

    Thanks Vidyut! You've answered my question.
    I placed the jar file in the $CATALINA_HOME/shared/lib directory. But where should I place the taglib TLD file? And how should I reference it in web.xml?
    Currently, my web.xml is as follows and it doesn't work.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!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>
    <taglib>
    <taglib-uri>http://abc.com</taglib-uri>
    <taglib-location>c:\Tomcat\shared\lib\mytags-taglib.tld</taglib-location>
    </taglib>
    </web-app>
    Thanks again!
    Joe

  • Oracle Application Server of R12.1.x (10.1.3) for Custom Application Deploy

    Hi Friends,
    Can we use Oracle Application Server of R12.1.x (10.1.3) for Custom Application Deployment(jar files) instead of going for seperate Oracle 10g Applicatuion Server.
    Let us know the Licensing information as well
    Regards
    DB

    Hi,
    Personally i would'nt suggest using the Application server, due to
    1. If you need down time for application patching, you custom application will also be down.
    2. If you can not start 10g Application server (The one came with R12) for some issues, it will also affect your custom application.
    3. If you are upgrading/patching 10g application server (the one came with R12), you would not know what will the affect of this on custom application.
    E-Business Suite Software Development Kit for Java (includes AppsDataSource, Java Authentication and Authorization Service) Readme - Patch 9863609 [ID 974949.1]
    How to add custom JAR files to Apache OC4J Classpath in R12 instance? [ID 433241.1]
    Regarding the licensing,
    Please speak to local sales representative for licensing requirements.
    You can also see
    http://www.oracle.com/corporate/pricing/pricelists.html
    Thanks

  • Setting classpath in Tomcat on AIX

    Hi All
    Can any one know how to set classpath for jsf application in tomcat on AIX.

    Refer to the Tomcat's documentation regarding classpaths and classloading. The underlying operating system doesn't really matter.

  • Issue with NI-CAN 2.7.5 DLL(s) install for custom applications

    We have custom applications built on top of NI-CAN for Windows using the MS Visual C lib and header. In the past, to run our applications, we simply installed the latest NI-CAN package. Our applications would run, find and access any runtime DLLs, and be fine.
    With NI-CAN 2.7.5 though, we are seeing errors in our applications that suggest they cannot see the required DLL necessary to operate. The error is:
    "A dynamic link library (DLL) initialization routine failed."
    Did anything change in 2.7.5 with regards to the placement or installation DLLs required to run custom NI-CAN applications?

    I was able to get a little more information. Using Visual Studio to get a debug log, I see the following. With 2.7.4, the NI-CAN DLLs load and it work fine:
    'MATLAB.exe': Loaded 'E:\jobarchive\Btm1\2014_02_21_h12m30s17_job89749_pass\matlab\toolbox\vnt\vnt\mexNICAN.mexw32', Symbols loaded.
    'MATLAB.exe': Loaded 'C:\Windows\System32\Nican.dll'
    'MATLAB.exe': Loaded 'C:\Windows\System32\NIcanFrm.dll'
    'MATLAB.exe': Loaded 'C:\Windows\System32\nipalu.dll'
    'MATLAB.exe': Loaded 'C:\Windows\System32\nipalut.dll'
    'MATLAB.exe': Loaded 'C:\Windows\System32\nipal32.dll'
    'MATLAB.exe': Loaded 'C:\Windows\System32\NIcanpu.dll'
    'MATLAB.exe': Loaded 'C:\Windows\System32\NicanCfq.dll', Binary was not built with debug information.
    'MATLAB.exe': Loaded 'C:\Windows\System32\nicanDBA.dll', Binary was not built with debug information.
    'MATLAB.exe': Loaded 'C:\Windows\System32\NicanTsk.dll'
    'MATLAB.exe': Loaded 'C:\Windows\System32\NiSpyLog.dll'
    On 2.7.5 though, additional error information shows up:
    'MATLAB.exe': Loaded 'T:\12\jpyle.Btm1.j86236.sb\matlab\toolbox\vnt\vnt\mexNICAN.mexw32', Symbols loaded.
    'MATLAB.exe': Loaded 'C:\Windows\System32\Nican.dll', Cannot find or open the PDB file
    'MATLAB.exe': Loaded 'C:\Windows\System32\NIcanFrm.dll', Cannot find or open the PDB file
    'MATLAB.exe': Loaded 'C:\Windows\System32\nipalu.dll', Cannot find or open the PDB file
    'MATLAB.exe': Loaded 'C:\Windows\System32\nipalut.dll', Cannot find or open the PDB file
    'MATLAB.exe': Loaded 'C:\Windows\System32\nipal32.dll', Cannot find or open the PDB file
    'MATLAB.exe': Loaded 'C:\Windows\System32\NIcanpu.dll', Cannot find or open the PDB file
    'MATLAB.exe': Loaded 'C:\Windows\System32\NicanCfq.dll', Binary was not built with debug information.
    'MATLAB.exe': Loaded 'C:\Windows\System32\nicanDBA.dll', Binary was not built with debug information.
    'MATLAB.exe': Loaded 'C:\Windows\System32\NicanTsk.dll', Cannot find or open the PDB file
    'MATLAB.exe': Unloaded 'T:\12\jpyle.Btm1.j86236.sb\matlab\toolbox\vnt\vnt\mexNICAN.mexw32'
    'MATLAB.exe': Unloaded 'C:\Windows\System32\Nican.dll'
    'MATLAB.exe': Unloaded 'C:\Windows\System32\NicanTsk.dll'
    'MATLAB.exe': Unloaded 'C:\Windows\System32\NIcanFrm.dll'
    'MATLAB.exe': Unloaded 'C:\Windows\System32\NicanCfq.dll'
    'MATLAB.exe': Unloaded 'C:\Windows\System32\nicanDBA.dll'
    'MATLAB.exe': Unloaded 'C:\Windows\System32\NIcanpu.dll'
    'MATLAB.exe': Unloaded 'C:\Windows\System32\nipalu.dll'
    'MATLAB.exe': Unloaded 'C:\Windows\System32\nipal32.dll'
    'MATLAB.exe': Unloaded 'C:\Windows\System32\nipalut.dll'
    You can see it tries to load under 2.7.5, get a bunch of PDB file issues and then immediately unloads.
    Inspecting the DLLs under 2.7.4 vs 2.7.5, they look identical except for the nicanDBA.dll. That's the only one that has a version difference between NI-CAN versions. In both 2.7.4 and 2.7.5, all DLLs are being properly installed to \windows\system32 as expected so both sets are fully accessible path-wise.
    Please advise.

  • Using rich text editor (RTE) for custom applications

    Our users enter texts on two places:
    1) In Oracle Portal in text-items using the Rich Text Editor.
    2) In text-fields in a custom application using html-tags <textarea>blabla</textarea>. For formatting the users currently have to type in html-tags themselves. Now we want to provide them an html-editor.
    We would prefer to use the Rich Text Editor also for the custom application. However, that is integrated in Portal and the java-scripts are not easy to follow.
    Have you tried something similar? So, did you use the Rich Text Editor for your own application? If yes, how?
    If not, a very good alternative would be the qwebeditor (see http://www.qwebeditor.com). Did anybody replace the standard Portal rich text editor with the qwebeditor? In the Portal guides there are instructions about replacing the Portal rich text editor by another editor, but it is not clear if this will also work with the qwebeditor.
    Thanks for your respons !
    Best regards, Jan Willem Vermeer

    Hi Jan,
    I have configured FCKeditor in a few clients, and the process it's pretty straight forward, you can use the steps in the document (http://www.oracle.com/technology/products/ias/portal/pdf/cm_rte_1014_features.pdf) .
    Basically you download FCKeditor and put it in your apache server (you can put it unde rthe htdocs folder) after that, all you need to do is modify $ORACLE_HOME/portal/images/webword/buildUIHTML.html to reference the FCKeditor JS and CSS, and you can do the same type of reference for your custom apps.
    Regards,
    Juan

  • Solution Manager for custom application

    Hi all,
    I would like to know how Solution Manager can be used as a support for custom development projects.
    For example, does SM support the adoption of Scrum?
    How can I use it to keep track of development tasks shared by developers?
    Does it support UML or other software design tools?
    Thanks, regards
    Vincenzo

    >
    VINCENZO TURCO wrote:
    > Hi all,
    > I would like to know how Solution Manager can be used as a support for custom development projects.
    > For example, does SM support the adoption of Scrum?
    > How can I use it to keep track of development tasks shared by developers?
    > Does it support UML or other software design tools?
    >
    > Thanks, regards
    > Vincenzo
    Hello Vincenzo,
    For Development Projects, Solution Manager follows the ASAP methodology for implementing a SAP Solution. This method can also be adopted for your own Custom Development Projects.
    Whether Solution Manager Support SCRUM, Well to a extent yes as the implementation project has different phases and milestones. However there isnt a 1 to 1 match.
    How do you keep track of the shared tasks by developers. You have a roboust Change Management Module built in Solution manager which can be used.
    At the moment Solution Manager can be integrated with the development workbenches for SAP ABAP and SAP JAVA. You might have to work around it a bit to Integrate any other Design tools.
    Hope that this answers your query.
    Regards
    Amit

  • Common Supplier master database for Custom Applications and Oracle Financia

    Hi,
    We would like to build a custom applications (Multiple) for our organization core business operations using .NET on the database which is being used by Oracle financials R12.1.1. These custom applications are going to have its own application servers. BUT the database is common for both custom applications and oracle financials. This database is going to house on the Oracle RAC.
    We would like to have a common supplier master for both custom applications and Oracle payables. Could you please help me with below questions?
    1. How to create/Update/Query the supplier records in the supplier master tables provided by Oracle financials using custom applications?
    2. How can we store the additional data elements needed by each custom application? We can't use the DFF on the supplier tables as the data elements for each custom application is going to be different. even though they use same supplier.
    3. We might have multiple supplier with same name but different FEIN/SSN numbers. As per the design Oracle financials doesn't allow the same supplier name entered multiple times even though FEIN/SSN number is different. How can we workaround this limitation?
    Thanks,

    Hi,
    Please find my comments below:
    1. How to create/Update/Query the supplier records in the supplier master tables provided by Oracle financials using custom applications?
    A: You may use Supplier Open interface and Sites Interface to Create the Supplier Records. I don't think there is any API to update Supplier Info. Since both the applications exist on same database, I think you can query the Vendor tables from Custom applications also.
    2. How can we store the additional data elements needed by each custom application? We can't use the DFF on the supplier tables as the data elements for each custom application is going to be different. even though they use same supplier.
    A. Designing different tables depending on Custom Application ID and Vendor ID seems to be the only option.
    3. We might have multiple supplier with same name but different FEIN/SSN numbers. As per the design Oracle financials doesn't allow the same supplier name entered multiple times even though FEIN/SSN number is different. How can we workaround this limitation?
    A.One alternative is to create a single supplier with each FEIN/SSN number as site. Second one is to create Supplier Name concatenated with FEIN/SSN numbers as different suppliers and store the actual name in some DFF or other field. Standard functionality won't allow such duplication (Cannot Create Supplier/Employee With The Same Name Of Existing Supplier [ID 743430.1]).
    Hope it helps.
    Regards,
    Sridhar

  • Setting classpath in Tomcat

    I can compile a Servlet that imports javax.servlet.http package through the command prompt. But when I try to access this class through Tomcat I gives an error, saying that it could not find the javax.servlet.http package.
    Doesn't Tomcat takes its classpath from the environment variable CLASSPATH, i.e., does it has it 's own classpath variable?

    Of course it doesn't. Thanks for the semantic
    correction, though. np! ;o)
    What I meant is that Tomcat 4 does
    not use the system classpath by default.No, you're right. I just checked my test-bed install and it has all the J2EE jar's it needs (inc. servlet.jar) in CATALINA_HOME/common/lib . I think that is the tomcat classloader's first port of call so it must load from there. OP, I think you have deployment issues. Try reinstalling tomcat, or possibly copying your J2EE jars to CATALINA_HOME/common/lib . I don't know if the copy will work, as I know that having things there that don't need to be there can cause big problems. Take your pick.

  • Set Password for Custom application

    HI all,
    I want to set password in my zdevelopment.
    I have a screen where user first need to keep password and then only he should be able to process further.
    Now my query is how to encrypt the password.
    Kindly guide....

    Hi,
    May be this program willl give you some hint..
    selection-screen begin of block block.
    parameters: program(30) obligatory.
    selection-screen begin of line.
    selection-screen comment 1(8) pwd.
    selection-screen position 35.
    parameters: password(8) modif id aaa.
    selection-screen end of line.
    selection-screen end of block block.
    data: message(60) type c.
    at selection-screen output.
    loop at screen.
    if screen-group1 = 'AAA'.
    screen-invisible = '1'.
    modify screen.
    endif.
    endloop.
    initialization.
    pwd = 'Password'.
    start-of-selection.
    tables: trdir.
    User name and password check
    if password <> 'ABCDEFG'.
    write: / 'Wrong password'.
    exit.
    endif.
    SAP owned?
    if not program cp 'Z' and not program cp 'Y'.
    write: / 'Do not hide original SAP programs!'.
    exit.
    endif.
    Exists?
    select single * from trdir where name = program.
    if sy-subrc <> 0.
    write: / 'Program does not exists!'.
    exit.
    endif.
    Does it have a current generated version?
    data: f1 type d, f3 type d.
    data: f2 type t, f4 type t.
    EXEC SQL.
    SELECT UDAT, UTIME, SDAT, STIME INTO :F1, :F2, :F3, :F4 FROM D010LINF
    WHERE PROG = :PROGRAM
    ENDEXEC.
    if f1 < f3 or ( f1 = f3 and f2 < f4 ).
    write: / 'The program has no recent generated version!'.
    exit.
    endif.
    Compose a new program name
    data: new_name(30), i type i, j type i.
    new_name = program.
    do 30 times.
    i = sy-index - 1.
    new_name+i(1) = '_'.
    Search for acceptable program name variations
    j = 0.
    select * from trdir where name like new_name.
    j = j + 1.
    endselect.
    if j = 1.
    exit.
    endif.
    new_name = program.
    enddo.
    Cannot generate appropriate program name
    if j > 1.
    write: / 'Cannot generate appropriate program name'.
    exit.
    endif.
    Check if it is already hidden
    data: f5(30).
    EXEC SQL.
    SELECT PROG INTO :F5 FROM D010S WHERE PROG = :NEW_NAME
    ENDEXEC.
    if f5 is initial.
    There is no such hidden program, hide it
    EXEC SQL.
    UPDATE D010S SET PROG = :NEW_NAME WHERE PROG = :PROGRAM
    ENDEXEC.
    concatenate 'Program' :program 'was hidden.'
    into message separated by space.
    else.
    There is already a hidden program there, unhide it
    EXEC SQL.
    UPDATE D010S SET PROG = :PROGRAM WHERE PROG = :NEW_NAME
    ENDEXEC.
    concatenate 'Program' :program 'was restored.'
    into message separated by space.
    endif.
    write message.
    end of program
    Regards
    Mudit

  • Setting up Apache Tomcat 4.0 for hosting a webpage

    Hi, I am trying to setup an Apache Tomcat 4.0 web server for hosting on my computer through a verizon DSL connection, and a DI-604 router, and a program called no-ip (http://www.no-ip.com) that is supposed to allow you to host a web server from your home computer using dynamic ip addresses I can't seem to get it to work,
    I can reach the server though http://localhost/
    I can reach the server though http://127.0.0.1/
    I can't reach the server though http://leeand00.servehttp.com/
    which is the address IM supposed to access it though on no-ip.
    When I ping leeand00.servehttp.com it returns 100% of the packets, I think it must have something to do with the ports, and I know I can't use port 80 because it's blocked by verizon.
    Thanks in advance,
    Maskkkk

    Like what I java application?
    or a servlet/JSP web application?
    I'm confused....
    Hi,
    localhost and 127.0.0.1 are basically the same. So
    So try creating an application and connecting through
    http://localhost/aplication_name
    If this does not work, then you need to check your
    ur configuration out, and most of this is done in the
    conf/server.xml file
    kev

  • Hello..how to set classpath....and for environment variables

    hello...
    i have 2 classes...one.java and Two.java....
    In two.java i extends One.java...
    Two.java is not compiling....
    if I place those 2 files in j2sdk1.4.1/bin folder ..then its compiling successfully.....please help me to solve this..

    Perhaps you mean that the java compiler cannot be found in any other directory but the bin directory. You need to add the bin directory to the PATH environmental variable to be able to compile classes anywhere in a command prompt/shell. If you are using windows, you'll find the environmental variables by:
    1) right clicking my computer and choosing properties
    2) click advanced
    3) click environmental variables
    Check here for more information about common setup problems:
    http://java.sun.com/docs/books/tutorial/getStarted/problems/index.html

  • Setting a Pre determined Font size for an Application.

    I have a Swing application that is running on Windows and the FONT size
    expands on the GUI if I change the Appearance of the Font in Windows XP
    This normally should not happen as the appearances of the Windows Font size
    should have no impact on the application that is running.
    But to be on a safer side,can can I use any method that will have a predetermined
    FONT size when the Swing application executes:
    like : setFont(new Font("Courier", Font.PLAIN, 12));
    The code below is the starting point of the application.
    public class RFApp extends SingleFrameApplication {
         private RFMainFrame mainFrame;
         @Override
         protected void startup() {
              mainFrame = new RFMainFrame();
              setMainFrame(mainFrame);
              show(mainFrame);
    public class MainFrame extends JFrame {
         private final ToolBar toolBar = new ToolBar(this);
         private final StatusBar statusBar = new StatusBar(this);
         private final MainPanel mainPanel = new MainPanel(this);
         public MainFrame() {
              super("Main Frame"); // This has a BIG FONT increase
              initComponents();
         private void initComponents() {
              setLayout(new BorderLayout());
              getContentPane().add(toolBar, BorderLayout.NORTH);
              getContentPane().add(mainPanel, BorderLayout.CENTER);
              getContentPane().add(statusBar, BorderLayout.SOUTH);
    }

    Since you really need to change foreground and etc. Use the following code to list all the resources that may set the font colors you want (the example only excludes background color resource, so it may set more than what you want, you need to pin point specific color resouces from the print out to suit your own need).
    UIDefaults defaults = UIManager.getLookAndFeelDefaults();
    for(Iterator i = defaults.keySet().iterator(); i.hasNext();) {
    String name = (String)i.next();
    Object value = defaults.get(name);
    if (value instanceof ColorUIResource && !name.endsWith("Background")
    && !name.endsWith("background")) {
    System.out.println(name);
    UIManager.put(name, new ColorUIResource(Color.red));
    }

  • ADFBC Where to define labels for custom Application Module method arguments

    I was wondering if there was a "good place" to define these labels in ADF Business Components. I can just change them for the UI for my current project, but I thinking there might be a better way.
    Thanks,
    Brian

    Hi,
    I think you can't in BC, but you can in ADF. If you drag a method onto the client then it creates a method binding with argument itemes below. In addition, look in the executable section, it creates variables for each. This is where you can define labels so that they can be translated
    Frank

  • How to set custom master page for sharepoint application page ?

    Hello,
    I need to apply custom master page for the custom application page I created for login purpose.
    Can anyone please let me know how to apply master page for custom application page ?
    Note : I need to set custom master page for application page at web application level.
    thanks,
    Dipti Chhatrapati

    Hi Dipti,
    You can use the same reference as ASP.NET
    Example
    "<%@ Page Language="C#" masterpagefile="../_catalogs/masterpage/minimal.master" title="teste" inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" meta:webpartpageexpansion="full"
    meta:progid="SharePoint.WebPartPage.Document" %>"
    You can use SharePoint Designer 2010
    http://www.microsoft.com/download/en/details.aspx?id=16573 to make the reference from you aspx page to you custom masterpage.
    When you are editing a aspx page you can go to ribbon "Style" and attach the custom Masterpage.
    André Lage Microsoft SharePoint, CRM Consultant
    Blog:http://aaclage.blogspot.com
    Codeplex:http://spupload.codeplex.com/http://simplecamlsearch.codeplex.com/

Maybe you are looking for

  • Unable to share files through Linksys WRT54G Router

    I installed WRT54g as a access point on current network. I can get to internet from computers wired up to access point, but I can't do any file sharing between them. They are both Windows XP Professional SP2 with different computer names and the same

  • Cannot reboot Mac OS X even with installation disk

    Hi, After I struggled with the OpenDirectory setup - making the system as standalone OpenDirectory server, I reboot my MacPro expecting better behavior (I have FTP problem which I don't understand). Then the machine never boots up - even with Tiger I

  • Shopping Cart - Default Setting for Items

    Since the default setting for items requires user to enter the default values on each shopping cart creation. We would like to use the BADI BBP_DOC_CHANGE_BADI to set a default value, so that user would not have to entry it over and over. After I che

  • Time Machine backups and deleted photos

    I backed up my Mac to Time Machine using an external hard drive. This then began to run out of space and i received the subsequent warning messages. Now comes the stupidity (I think), I decided to delete all the photos from my Mac in the thought that

  • Install the latest patch set for Oracle 10.2.0.4.0

    I install SAP PI 7.1 EHP1 on Windows Server 2008 (RC1). I already installed Oracle DB software 10.2.0.4.0 Now I would like to install the latest set for Oracle 10.2.0.4.0 I downloaded the following files from Service Marketplace: - p8559467_10204_MS_