My prog's work fine. How to call from the file system?

Hi,
I currently have an application that works great. Its all javabeans and its called from a JSP page. My question is, I call like this:
<%= MyJavabean.DoIT()%>....Is there a way to call this from the command line on unix

OK...This is an example. If I can get this to work, Im good to go.
I call this via:
java BatchServlet
and I get
Exception in thread "main" java.lang.NoClassDefFoundError: BatchServlet (wrong n
ame: wch/util/BatchServlet)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
package wch.util;
import java.io.IOException;
import javax.servlet.*;
import javax.servlet.http.*;
public class BatchServlet extends HttpServlet implements Runnable{
static Thread t = null;
public void init(ServletConfig c) throws ServletException{
super.init(c);
if (t==null){
t = new Thread(this);
t.start();
public void run(){
while (true){
try{
Thread.sleep(5000);
}catch (InterruptedException ie){
ie.printStackTrace();
System.out.println("Wake up");

Similar Messages

  • All the links to download DREAMWEAVER CS3 Creative Suite are not working. How can I download the file ? I have a serial number of a purchased software.

    All the links to download DREAMWEAVER CS3 Creative Suite are not working. How can I download the file ? I have a serial number of a purchased software.

    They work just fine. whatever issues you have are specific, but without proper system info, browser info and other details nobody can even begin to guess.
    Mylenium

  • Strategy and Process on how to best enqueue from the file system

    I have a single database that must accept BFILES from one location via a directory folder, http text documents via proxy server, and unstructured XMLTYPE CLOB from another database.
    I have created an ANYDATA queue, and will try to transform the dequeued output to XMLTYPE payloads for a pl/sql callback.
    My problem is how to monitor both the file system BFILE folder, and the XMLTYPE CLOBS, to automatically begin then enqueue process. The queue would have to accept from (1) to anynumber of files, and given that requirement the use of an array batch is what I would like to use, but need to populate the array.
    Any help would be most appreciated.
    David

    Thank you for the quick reply.
    The database version is 10.2.0.3.
    There are three sources of documents coming into the system.
    Source 1: Outside entity (in-front of a secure firewall) who must place their XML (XSD compliant) files on a shared file system server (the BFILES).
    Source 2: Internal entity (behind firewall) who publishes their XML files to a defined database directory on the database server.
    Source 3: Enterprise Intranet contributors submitting their individual files via url.
    On entry for each file they must be validated for XSD compliance then if passed submitted to the main enqueue for propagation to 5 additional process queues with separate callback procedures.
    If reasonably possible, separate agents of some sort would "listen" at each folder location, then begin the enqueue process when either a batch of files or a single file is placed in the directory folder.
    AQ itself has no such mechanism to monitor locations, and a scheduled job makes sense - however the job would have to continuously run given the very short processing requirement. However, using DBMS_SCHEDULER may be the best solution given ALL rhe requirements.
    Thank you for your professionalism - I appreciate the assistance.

  • How to recover from readonly file system?

    hi
    we are using EBS R12 RUP 6.is it possible to recover one of our instance from read only file system partition?
    scenario is :
    Had a conference with customer and found the below :
    Unable to start/run any "AD" scripts under $ADMIN_SCRIPTS_HOME". For example : Unable to start the concurrent manager using adcmctl.sh script. Below error can be seen :
    Permission denied: Could write in "adcmctl.txt" : read only file system.
    We have tried to change the permission but the same "read only file system was coming". To confirm the issue we tried to create a directory or file using "mkdir" and "touch" command respectively but got the same error. Customer has confirmed that it was 15 days back they found it working after that its not working.
    Explained to customer that the issue is not with EBS but with some other operating system related. Please check with your OS administrator and make sure that this read only file system error will not come.
    Action Plan
    ================
    1.) Check with your OS administrator and resolve the "Read only file system error". It is a OS permission error. Update the SR once it got resolved.rgrds

    new2appsdba wrote:
    what do you suggest certain and immediate disaster recovery option (till date work and setup + data) in EBS R12 ??
    bsically asking it for future planing ....Working, well-tested, and frequently-tested backups. :-)
    Sorry to be glib, but there's a lot we don't know about the architecture of your system, which makes it difficult to provide specific advice. You haven't indicated how much of your system is hosted on the filesystem that has been set readonly. Is it just the INST_TOP? Full applications techstack? Database? I'm guessing not the database, or you wouldn't be asking about starting apps tier components, you'd be asking about database recovery, and the problem wouldn't have gone unnoticed for 15 days. If you're just looking at the apps tier filesystem, or a portion of it (such as INST_TOP, which is sometimes separated from the rest of the apps install), you need to decide if you want to:
    1) Roll back your entire system to the point when the filesystem was set readonly, or
    2) Accept the loss of log files, etc. on the apps tier side, decide that what's in the database is more valuable, and move on from there. Assuming the fsck and subsequent filesystem repair is successful, of course. ;-)
    These posts from Steven Chan might help you to plan DR and availability for EBS:
    Maximum Availability Architecture: Oracle E-Business Suite Release 12
    Maximum Availability Architectures and the E-Business Suite
    Regards,
    John P.
    http://only4left.jpiwowar.com

  • How to retrieve images from the file system in Portal Forms?

    Portal 3.0.9.8.0
    In a Portal form , there is a field named ID wherein a value is entered. Say the value entered is 5 , how can we get the image named 5.jpg
    from C:/images/ folder and get it displayed in the form ? The images are not stored in the database . Depending on the ID field value , we
    have to retrieve the image.
    Thanks .
    Neeti.

    Hi Neeti,
    This is what I did :-
    Steps:-
    1> I created a procedure named get_image in the application schema as :-
    create or replace procedure get_image
    p_id in integer default 1
    is
    begin
    htp.p('Image Id='||nvl(to_char(p_id),'No Image Id'));
    htp.br;
    if p_id is not null then
    htp.p('<img src="C:\images\'||p_id||'.jpg">');
    end if;
    end get_image;
    2> Created a form on the procedure get_image.
    3> Run the form and for p_id field, enter the image id, and click on Submit - the image will be displayed.
    Hope this helps.

  • Urgent : everything works fine, but cannot find a .jpg file

    This is my first attemp at creating a jar file and running the running the program
    i created a jar file ran it, everything works fine but when i click the about menuitem, it throws a java nullpointer exception,
    it says it cannot find the .jpg file that is used for the about box,
    the code works fine if i run as a normal program i.e
    java <somepackage>/<classname>
    javax.swing.ImageIcon aboutimage;//in the constructor
    try{
    aboutimage = new javax.swing.ImageIcon(getClass().getResource("resources/image/"+"About.jpg")); //-- exception at this line
                   }catch(Exception e){
                        e.printStackTrace();               
                   }

    i post a bit more details in case sm1 might want to refer,
    Thanks in advance ..it's a bit long sorry for the inconv.
    I created a jar file this way,
    - first created the Manifest.txt file and added the the main class,
    follwed steps from the tutorial at sun:
    http://java.sun.com/docs/books/tutorial/deployment/jar/appman.html
    then this at command prompt
    jar cfm Aid.jar Manifest.txt IDTT/
    Now when i run the jar file every thing runs fine except for the About.jpg,
    that file doesn't show up when i click the about button in the application
    Everything works fine when i directly run the file from command prompt as java IDTT/Aid
    Error recieved:
    Exception in thread "AWT-EventQueue-0"
    java.lang.NullPointerException
    at javax.swing.ImageIcon.<init>(Unknown Source)
    at IDTT.Aid$AboutPanel.<init>(Aid.java:336)
    at IDTT.Aid.menuItem_AboutActionPerformed
    (Aid.java:304)
    this is line 336 in Aid.java:
    javax.swing.ImageIcon aboutimage = new javax.swing.ImageIcon(getClass().getResource("resources/"+"About.jpg"));
    Aid.java has package as
    package IDTT,
    the files in folder graph
    have package as
    package IDTT.graph
    "resources" is a normal folder that has a image file called About.jpg
    and another folder called "html" that contains many html files.
    there's no error for html files
    This is the package/folder tree structure
    IDTT
    |
    |- Aid.java (has main)
    |
    |- graph (a package that Aid.java uses)
    |
    |_ resources
        |
        |- image
        |      |--- About.jpg
        |
        |- html

  • How do I get the file name?

    I'm kind of new to javascript -- working with a colleague who has Adobe Acrobat Professional -- I've got an *old* version of Adobe Acrobat and most of the functions don't work -- but how do we get the file name -- we're trying to develop an application -- so if the user opens c:\something.pdf, we'd like to know the file name (something.pdf).
    If we get a fully qualified path, that's fine -- I think I can parse it.
    Thank you in advance.

    The 'paty' property of the 'doc' object has been available since version 3.01.
    Using the following in the JavaScript console when the Acobat JS API Refenece is open:
    this.path;
    returns:
    this.path;
    /C/Program Files/Adobe/Acrobat 8.0/Help/ENU/JS_api_reference.pdf

  • How to extend the file system?

    hello experts,
                             how to check wether file system is full?and how to extend the file system?

    Hi,
    You can check whether your file system occupancy using Unix level command df -k.
    how to extend the file system?
    Whats the OS platform you working upon and need to extend the file system. Based on individual OS platform commands may vary.
    Regards,
    Deepak Kori

  • How to skip one field from the file by using sqlldr

    Hi ,
    i'm using DB 10g R2 on Redhat ,
    my control file hereunder ,
    LOAD DATA
    INTO TABLE reber.AAA_BILL
    APPEND
    REENABLE DISABLED_CONSTRAINTS
    EXCEPTIONS reber.AAA_BILL
    FIELDS TERMINATED BY '|'
    (Streamnumber ,
    MDN ,
    USERNAME ,
    DOMAIN ,
    USERIP ,
    CORRELATION_ID ,
    ACCOUNTREASON ,
    STARTTIME ,
    PRIORTIME ,
    CURTIME ,
    SESSIONTIME  ,
    SESSIONVOLUME ,
    RATEPOLICYIDX ,
    FEE ,
    GROUPID ,
    SERVICEID)and this is one records of the file ,
    222|1|0664363446|12D0DC90||10.15.6.45|007b8aa5|3|20111029204824|20111029204824|20111029211504|1600|0|147|0|4000|10154|really i want to skip the first field in the file which is (222|) and starting from the second field ,
    any help please

    Thank you for you reply ,
    really i know the Filler to skip colomn from the table , is the Filler working also to skip field from the File . i'll read the link to check this

  • I use a two button mouse with my Mac Book Pro.  It works fine, but after installing Lion, the mouse wheel goes in reverse of what it did (rolling the wheel towards your palm goes up not down the page).  Anyone know how to fix this?

    I use a two button mouse with my Mac Book Pro.  It works fine, but after installing Lion, the mouse wheel goes in reverse of what it did (rolling the wheel towards your palm goes up not down the page).  Anyone know how to fix this?

    First sentence in OPs question:
    I use a two button mouse with my Mac Book Pro
    I guess the track pad settings would look similar to my screen shot?
    Regards,
    Colin R.

  • I have iWork on my new MacBookPro and it works fine.  But I had the Beta iWorks in iCloud on my older desktop.  How do I get the Beta iWorks off my iCloud because it is different (and better) when I use it on my MacBookPro?

    I have iWork on my new MacBookPro and it works fine.  But I had the Beta iWorks in iCloud on my older desktop.  How do I get the Beta iWorks off my iCloud because it is different (and better) when I use it on my MacBookPro?  Shouldn't the iCloud be the same as the MacBookPro iWorks

    billjudy wrote:
      Shouldn't the iCloud be the same as the MacBookPro iWorks
    No, they are different apps.  The beta one in icloud is for use by PC's as well as Mac's via a web browser and lets users collaborate on documents.  It can't removed.  Just ignore it if you have no use for it.

  • Note 3 won't answer a call by using the "answer" voice command. Other voice commands work fine (ie 'volume up') and speech to text works fine. Tried it in the car and in a quiet room at home. What am I missing?

    Note 3 won't answer a call by using the "answer" voice command. Other voice commands work fine (ie 'volume up') and speech to text works fine. Tried it in the car and in a quiet room at home. What am I missing?

        Rodilator,
    We'll figure this out together! Can you please walk us through the exact steps you're taking to answer a call when it comes in?
    SarahO_VZW
    Follow us on Twitter @VZWSupport

  • I am a proud owner of iphone5, iOS6.1.4, recently I am facing prob to connect it with Ford Figo. Its not that iphone is not connecting, its getting disconnecting immediately after connected. I hv tired other ph with car, its working fine, how 2 resolve ?

    I am a proud owner of iphone5, iOS6.1.4, recently I am facing prob to connect it with Ford Figo. Its not that iphone is not connecting, its getting disconnecting immediately after connected. I hv tired other ph with same car, its working fine, how 2 resolve ?

    Morning Indrajit Chatterjee,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at this article:
    iOS: Troubleshooting car stereo connections
    http://support.apple.com/kb/TS3581
    Best of luck,
    Mario

  • Just broke my laptop that had CS6 (also have on my desktop and working fine)  how can I get CS6 back onto my new laptop?

    just broke my laptop that had CS6 (also have on my desktop and working fine)  how can I get CS6 back onto my new laptop?

    Hi tydormi,
    Please follow the thread: how can I install PS cc on a new mac? In the creative cloud app it says it is installed where this issue is already discussed.
    Let us know for further query.
    Regards,
    Ratandeep Arora

  • How to call a jar file from oracle forms (6i)

    Hi,
    I'm working with oracle 6i. I want to know that how to call a .jar file from forms menu. when I use HOST('<path>\test.jar') it is working in 'Client Server' any way. but the problem is I use application server in order to run my form. so my form is in the server and I run the form via clients web browser. in that case above solution will not work. if any body knows how to overcome this problem please reply.
    thanks.
    duminda

    I created a bean area and set the class name as implementation class. within that java bean class I called to a bat file which consists of the execution command of the jar file ( because i don't know how to call .jar file from my bean class directly).
    then i tried to run it in application server. its still not running.
    can you tell me what i have to do within my bean class? or can you suggest any solution?
    thank you.

Maybe you are looking for

  • Goods issue print out

    Hi I have completed stock transport order purchase order.then i do in t.code mb11 351 movement type goods issue.i want to take print out on that 351 goods issue,i try to give output type in mb02 t.code that time showing error,plz help Output WA02 for

  • When I try to connect my Apple Magic Mouse to my Windows 8 pc it says enter the Pass code?

    I have a Windows 8 pc and I want to connect my Magic Mouse to it. So I search for bluetooth devices and it picks up. I click connect then it asks for my pass code and I don't know what it's talking about. I got this mouse for my birthday and it's ref

  • Adobe Acrobat / Reader 11.0.07 no longer renders dynamic pdf

    We have a number of dynamic XFA (PDF) forms we have sent out to end users. Those end users are in the process of upgrading to Adobe Acrobat or Reader 11.0.07 (Windows, Released 5/13). However upon upgrading, the users when opening the forms get a num

  • How do I close apps in IOS 8.02

    I just upgraded from IOS 6 to 8.02 and cannot close out the apps I have opened for the day.  Before the upgrade, all I had to do was double click on the bottom button, then hold my finger over the open apps.  When a minus sign appeared, I was able to

  • Final Cut Pro HD and P2 card

    http://www.dvxuser.com/V6/showthread.php?t=92281 Why ? Can Panasonic and Apple work on this ?