Where do I put my beans?

With a default installation of IAS 1.1 and relative to Oracle_Home, where does one put .class files for Java beans? And what is plan B when that doesn't work?

Just to clarify, the CLASSPATH doesn't need to point there to run Tomcat.
Tomcat has its own idea of Classpath, seperate from the system one.
The ONLY reason I could think of to point the classpath at the directory here, is if you were compiling a class with dependencies on classes you have already compiled. Normally you don't need it.

Similar Messages

  • Where I should put the bean class?

    Hello,
    I am learning JSP. I want to know where I should put the bean class? Which directory should I put the bean class?
    note that I am using Tomcat 4.1
    johnwen
    24-12-2005

    I can't tell if you've got everything you need or not, but what you've shown looks right so far. Let me run down the necessities:
    In your JSP file:
    <%@ page import="aos.*" %>
    <%-- imports all of the classes in the "aos" package --%>
    In your Java file:
    package aos; // tells Java this is a package (you probably have this)
    Then, of course, you put the class file into the directories that you mentioned, ie, $CATALINA_HOME/ROOT/WEB-INF/classes/aos (forgive me if I use Unix-styled slashes; old habit, and shouldn't make any difference.)
    You may need to restart Tomcat. You have to restart it when you add certain directories, although I'm not sure exactly which ones. But it never hurts to just restart it anyway.

  • Where to put the Bean class in a html- Bean- JSP setup

    Hi,
    The setup is simple, the front end is a html form, there is a Java Bean with set/get methods and finally a jsp which accesses the bean and prints the result.
    The problem is that it cannot locate the Bean class. I have compiled the bean class and stored the .class file in webapps/ROOT/WEB-INF/classes dir. The jsp and html files are located in the webapps/ROOT dir. Iam using tomcat 5.0.28, with ROOT context enabled. Is this because I need to set the CLASSPATH for Tomcat? Any pointers?
    Thanks

    No you don't need to set CLASSPATH.
    You need to put your bean in a package.
    As of java1.4, JSPs can not access beans that are in the default/unnamed pacakge.
    package mypackage
    public class MyClass
    and then the class would compile to
    WEB-INF/classes/mypackage/MyClass.class

  • Where do i put external libraries?

    I have some oracle classes that I use for XML generation. Where do I put the jar file so that
    Weblogic can use them? Do I reference it in the CLASSPATH variable, or can I put the jar file in the
    weblogic directory structure?
    Thanks in advance,
    Josh Cimino
    Software Developer
    Mxi Technologies Ltd.
    1430 Blair Place, Suite 800
    Ottawa, ON, Canada
    K1J 9N2
    E: [email protected]
    T: 613.747.4698 ext 479
    F: 613.747.1909
    www.mxi.com
    "From the flight line to the bottom line"
    [att1.html]

    Thanks!
    "Dimitri Rakitine" <[email protected]> wrote in message
    news:[email protected]..
    http://www.onjava.com/pub/a/onjava/2001/06/26/ejb.html
    Josh Cimino <[email protected]> wrote:
    What if I have a session bean that uses external libraries? There is no
    web-inf/lib directory for an EJB.
    "Renaud Waldura" <[email protected]> wrote in message
    news:3bd348b5$[email protected]..
    If your application is packaged correctly it should be in WEB-INF/lib.
    If
    not, well, let's just say it's probably worth your time to package it
    correctly. I know it sounds harsh, but really it's worth it.
    --Renaud
    "Josh Cimino" <[email protected]> wrote in message
    news:3bcaf5f6$[email protected]..
    I have some oracle classes that I use for XML generation. Where do I
    put
    the jar file so that
    Weblogic can use them? Do I reference it in the CLASSPATH variable,
    or
    can
    I put the jar file in the
    weblogic directory structure?
    Thanks in advance,
    Josh Cimino
    Software Developer
    Mxi Technologies Ltd.
    1430 Blair Place, Suite 800
    Ottawa, ON, Canada
    K1J 9N2
    E: [email protected]
    T: 613.747.4698 ext 479
    F: 613.747.1909
    www.mxi.com
    "From the flight line to the bottom line"
    Dimitri

  • Where do I put all my service classes?

    I am new weblogic server environment. I want to know where do I put all my service classes? I am deploying all my servlet in WEB-INF/classes directory (under the context root) but donot know where to put the service classes. (The service classes have the jdbc and sql code in them. They are like simple java beans. I don't have any sql in the servlet classes).

    <p>Hello,</p>
    <p>If the only other classes that use your service classes are in your webapp then putting them under WEB-INF/classes is perfectly acceptable, you might want to wrap them up in their own jar file and stick them under WEB-INF/lib, it is up to you.</p>
    <p>
    Hussein Badakhchani</br>
    </p>

  • For WebLogic 5.1, where should I put my class files for my JavaBeans?

    With JBuilder4, I have built an application with JSP and a few Java Beans (Those JavaBeans are instantiated in those JSP files). There are no EJBs. The package name is called 'onlinetrade'. I have tested the application on JBuilder's web server, it works pretty well.
    Now I am moving this application to WegLogic 5.1. I have encountered a problem with WebLogic 5.1
    and do not know where I should place my JavaBean class files --
    Originally, the JSP files for my application are in package path-- ..onlinetrade\jsp
    and the class files for my beans are in the package path -- ..onlinetrade\jsp\bean\*.class
    Now, with WebLogic 5.1,
    1) I have put my JSP files in
    C:\weblogic\myserver\public_html\onlinetrade\jsp
    2) I have created subdirectory and put my bean class files in
    C:\weblogic\myserver\classfiles\onlinetrade\jsp\bean
    When I started weblogic and the first page - login.jsp page can be up and accessed. But when I login and forward to another JSP page called 'controller.jsp', where a bean is instantiated, I got the following error
    Compilation of 'C:\weblogic\myserver\classfiles\jsp_servlet\_onlinetrade\_jsp\__controller.java' failed:
    C:\weblogic\myserver\classfiles\jsp_servlet\_onlinetrade\_jsp\__controller.java:210: cannot access jsp_servlet._onlinetrade._jsp.registerBean
    probably occurred due to an error in /onlinetrade/jsp/controller.jsp line 53:
    registerBean registerBeanInstance = new registerBean();
    I know the javac is working, and a java file is created upon the JSP page, but the problem is -- the bean class files cannot be found!!!
    Where should I create the package path and put my bean class file so that my JSP pages can pick them up?
    Any help is greatly appreciated!
    Thanks.
    --Tim

    I have mine in WEB-INF/classes

  • TS1702 i have an issues everytime i put my apple id and password to face time and imessage he said verifying and he goes back to where u should put ur password and wont check mark the mail and i create a new apple id the same what should i do ?

    i have an issues everytime i put my apple id and password to face time and imessage he said verifying and he goes back to where u should put ur password and wont check mark the mail and i create a new apple id the same what should i do ?

    i have an issues everytime i put my apple id and password to face time and imessage he said verifying and he goes back to where u should put ur password and wont check mark the mail and i create a new apple id the same what should i do ?

  • When I receive appointments by email and accept them they go into the enourage "on my mac" ical calendar which is not synced with mobileme.  How do I change where appointments are put ?

    When I receive appointments by email and accept them they go into the enourage "on my mac" ical calendar which is not synced with mobileme.  How do I change where appointments are put ?
    Or how can I choose where the appointment is put ?
    I use the mobileme sync services so the ical calendars that are synced are those in the "[email protected]" group.
    Please help !
    Nick

    Actually you can't drag the appointment to ano calendar - its says "You can’t make changes to this invitation., Only the organiser can change this event"
    Also if you double click on the received appointment and open the window the only calendars shown that you can select are the 'on my mac" ones, and not the sync'd ones.
    Any ideas welcome !!
    Nick

  • I got a new laptop and I can't sync all my music onto iTunes without iTunes saying it will erase my songs on the phone, how do I fix this to where  I can put all my music on my laptop?

    I got a new laptop and I can't sync all my music onto iTunes without iTunes saying it will erase my songs on the phone, how do I fix this to where  I can put all my music on my laptop?

    If you do not have access to the iTunes Library on your Old computer... or its Backup...
    See these 2 Links...
    Syncing to a New Computer...
    https://discussions.apple.com/docs/DOC-3141
    Recovering your iTunes library from your iPod or iOS device
    https://discussions.apple.com/docs/DOC-3991
    If you do have access... See Here...
    iTunes: How to move your music to a new computer

  • Where do I put a workflow so that all users on the Mac can access?

    Where do I put a workflow so that all users on the Mac can access it from Automator?
    Also. why does the search pattern "users" AND "workflows" return results whitch math "and" (lowercase)? I thought "AND" (in caps) is for boolean searches.

    Hi, Mike.
    1. You wrote: "Where do I put a workflow so that all users on the Mac can access it from Automator?"Either:
    • Macintosh HD > Users > Shared
    • Macintosh HD > Applications (if you're the Admin user).
    All users (unless restricted by Parental Controls) have access to those folders.
    2. You wrote: "Also. why does the search pattern "users" AND "workflows" return results whitch math "and" (lowercase)? I thought "AND" (in caps) is for boolean searches."It's unclear as to what search facility you are referring, and a bit hard to follow given the spelling errors in your question.
    Do you mean Discussions search? If so, have you reviewed the Search Tips? They're also available from the search page, where one can click "Tips" under the Search Terms field.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • I want to create a "Play All" chapter marker that will play the video from start to finish in addition to the standard chapters I have-I guess I can auto start the DVD but would prefer a button-how and where would I put this "play all" marker??

    I want to create a "Play All" chapter marker that will play the video from start to finish in addition to the standard chapters I have…I guess I can auto start the DVD but would prefer a button…how and where would I put this "play all" marker?? Thanks..

    The start chapter button is a play the whole movie button regardless of how many other markers you have.
    Once a DVD starts playing it continues to the end.
    Chapters marker simply gives the viewer a place to start playback whether it be the start, middle or near the end.
    Al

  • My ipad was in recovery mode and it went back to the home screen and it found my info on itunes to the point where i can put music on it but it still says connect to itunes

    my ipad was in recovery mode and it went back to the home screen and it found my info on itunes to the point where i can put music on it but it still says connect to itunes

    sarahwood wrote:
    .. it said my iPod was in recovery mode and I needed to restore it?
    Once the Device is asking to be Restored with iTunes... it is too late to save anything...
    See Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...
    Be sure to Follow ALL the Steps...
    To minimise loss... after the successful Recovery... Restore from the most recent Backup...
    See Restore from Backup here
    http://support.apple.com/kb/ht1766

  • Where do I put the "autoplay" code in my photo gallery?

    I have a photo gallery on http://victorylcms.org/photos.html. I'm trying to add "autoplay" to it.
    I got the gallery from http://galleria.aino.se/ and here is what it says to add http://galleria.aino.se/docs/1.2/options/autoplay/, but I can't seem to figure out where exactly to put it in my code to make it work properly. Thanks for any help!
    autoplay
    type: Boolean or Number
    default: false
    If true, this will start playing the slideshow with 5 seconds interval (default). If you set this to any number, f.ex 4000, it will start playing with that interval (in milliseconds)
    Example:
    $("#gallery").galleria({
        autoplay: 7000 // will move forward every 7 seconds

    I got the gallery from http://galleria.aino.se/
    There's a support forum for that gallery
    http://getsatisfaction.com/galleria/
    here is what it says to add http://galleria.aino.se/docs/1.2/options/autoplay/, but I can't seem to figure out where exactly to put it in my code to make it work properly. Thanks for any help!
    autoplay
    type: Boolean or Number
    default: false
    If true, this will start playing the slideshow with 5 seconds interval (default). If you set this to any number, f.ex 4000, it will start playing with that interval (in milliseconds)
    Example:
    $("#gallery").galleria({
        autoplay: 7000 // will move forward every 7 seconds
    Look for similar code in your page
    e.g. line 182
    <!--begin init code for the galleria pics slideshow-->
    <script>
    $('#gallery').galleria({
      autoplay: 7000 // will move forward every 7 seconds
      width:640,
      height:480
    swfobject.registerObject("FlashID");
    </script>
    <!--end init code for the galleria pics slideshow-->

  • Where should I put trustedprincipal.conf in

    Hi experts,
    We have BOE XI 3.1 in our server.
    We configured trusted authentication in CMC of our server machine, and created a trustedprincipal.conf in D:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 of my client machine. I created a jsp file to access bo reports.
    I can not approach http://bfphp:8080/OpenDocument/opendoc/openDocument.jsp, just get alert after running the jsp file.
    However, we put trustedprincipal.conf in our server machine and remove the file from my client machine, I can approach openDocument.jsp after accessing the jsp file.
    Official document says trustedprincipal.conf should be put in client, but we tried it, logon fails. When I put it in server, logon succeeds.
    My question is, if trustedprincipal.conf is put in server, can anyone who knows a user of BO system access to bo system via the jsp file. So how can I control authentication of client who access to BO system, and where should I put trustedprincipal.conf in?

    HI,
    this sounds like a general BusinessObjects Enterprise configuration topic. this forum here is for the Integration Kit for SAP.
    Ingo

  • Where do I put my SD card in MacBook Pro

    Hi, 
    This may be a really stupid quesiton but I am stuck! 
    Where do I put my Scandisk memory card in the MacBook Pro? 
    I don't seem to have a slot anywhere. I am probably being very stupid!!!
    Please help.  Thanks

    You might have one of the 'micro' cards that needs a standard SD adapter - I have a 4GB of one of those in my phone, but it came with an adapter. My camera SD cards are standard size and they fit right into the card reader and show up on my desktop.
    Look for an adapter on Amazon.
    Good luck,
    Clinton

Maybe you are looking for

  • ALV CHECK CHANGED DATA WITH REUSE_ALV_GRID_DISPLAY

    HELLO  EVERY-ONE.     I have a question that how to check changed data in ALV. I know we can use CHECK_CHANGE_DATA Method in OO, and how to check it in REUSE_ALV_GRID_DISPLAY <b>without double click</b> ?

  • Office and Mac Mini Solo Core

    Hello. I am having problems with my Mac Mini 1.5Ghz solo core with 512MB, and have 10.4.7 on my system. Office has always been a bit slow, obviously cos its running under rosetta. But I am having problems now when I click the application to open it d

  • HT204088 I think I was billed twice for the "Sandbox Manna Pack." How to cancel the other one?

    There was no option to cancel or renew the purchase and "report a problem" was so complicated. By the time I report the problem the billing would have gone through anyway.

  • Jsf api to convert utf-8 to original text

    Hi guys, For instance, a user enter 路 in a text field then I convert this chinese character to utf-8 using javascript:encodeURIComponent to %E8%B7%AF and pass it as a parameter to the next page where the url will look like example : http://www.google

  • Converting NEF (Nikon RAW) to DNG results in error message

    I'm trying to convert the NEF (raw) images off my Nikon d90 to DNG to import and work with in PS CS2. Using the DNG Converter tool, having made my settings and pressing "Convert", I get an error for all the 54 files in the selected folder. "An error