Problem while running USB port detection

Hi,
Im having the sample program of USB detection using java.
it didn't show any compile error but it is showing run time exception.
That is
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/lo
gging/LogFactory
at com.mcreations.usb.windows.JavaxUsb.<clinit>(JavaxUsb.java:65)
at com.mcreations.usb.windows.WindowsUsbServices.<init>(WindowsUsbServic
es.java:46)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at javax.usb.UsbHostManager.createUsbServices(Unknown Source)
at javax.usb.UsbHostManager.getUsbServices(Unknown Source)
at SampleUSBTest.<init>(SampleUSBTest.java:23)
at SampleUSBTest.main(SampleUSBTest.java:16)
The program is:
import javax.usb.*;
import javax.usb.event.*;
public class HotplugListener implements UsbServicesListener
public void usbDeviceAttached(UsbServicesEvent event)
UsbDevice device = event.getUsbDevice();
System.out.println(getDeviceInfo(device) + " was added to the bus.");
public void usbDeviceDetached(UsbServicesEvent event)
UsbDevice device = event.getUsbDevice();
System.out.println(getDeviceInfo(device) + " was removed from the bus.");
private static String getDeviceInfo(UsbDevice device)
try
String product = device.getProductString();
String serial = device.getSerialNumberString();
if (product == null) return "Unknown USB device";
if (serial != null) return product + " " + serial;
else return product;
catch (Exception ex)
return "Unknown USB device";
pls help me to run this progam.
Thanks and Regards,
Selvi
Edited by: TamilSelviSubramani on Mar 11, 2008 8:54 AM

hi,
I added the commons-logging-1.1.jar file in classpath.But now itself it shows another run time Exception
That is,
javax.usb.UsbException: Error while loading shared library LibusbJNI.dll : no Li
busbJNI in java.library.path
at com.mcreations.usb.windows.JavaxUsb.loadLibrary(JavaxUsb.java:400)
at com.mcreations.usb.windows.JavaxUsb.initialise(JavaxUsb.java:329)
at com.mcreations.usb.windows.WindowsUsbServices.<init>(WindowsUsbServic
es.java:46)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at javax.usb.UsbHostManager.createUsbServices(Unknown Source)
at javax.usb.UsbHostManager.getUsbServices(Unknown Source)
at SampleUSBTest.<init>(SampleUSBTest.java:23)
at SampleUSBTest.main(SampleUSBTest.java:16)
Thanks and Regards,
Selvi

Similar Messages

  • Problems with the USB Ports

    Hi there,
    I writing this because I'm having some really big problems with my USB ports.
    A few days ago I plugged in an USB-Hub that was quite cheap. Suddenly a window popped up saying that a USB device was deactivated because it "needed" to much power. Since this happening, two of those windows keep popping up everytime I boot the MacBook. I called Apple and got some help: I had to delete some .plist files and clear some caches. The man who helped was able to find the error and deactivate the notification, he also told me to make a PRAM- and a SMC-reset. The man said that it's just a software problem and that I have to reinstall the system if we don't find a solution. So, one day later I reinstalled the system (Lion) and not only didn't it help, the two notification windows were popping up again...everytime I booted the Mac. So I decided to formate the whole hard drive and install Snow Leopard -> still the problem with the USB ports. After that I installed Lion  -> still the problem with the USB ports. I even tried to extract the .kext files that are important for the USB functionality from an earlier Combo Update, but it didn't help either. The point is, that the Mac doesn't recognize my external hard drive or any of my iDevices. Sometimes it recognizes USB sticks, but only after 20 seconds. The data transfer on both USB ports is also very slow. If I'm lucky and Mac recognizes one of my USB sticks, it takes like an hour for 1GB to be transfered on the USB stick or from the USB sticks to the Mac.
    I really don't know what to do and need help, especially because my backup data is on my external hard drive which I can't access because of this problem.
    I really hope that someone can help me, I'm very thankful for every answer that could help me!
    PS: Sorry for my bad English, I hope that everyone understands what I mean, please tell me if you don't get what I'm trying to explain in the text above.
    Sincerely,
    iLoud
    [UPDATE] I downloaded "USB Prober" and copied the Output file, maybe it helps:
    Timestamp Lvl            Message
        0.698 [3]          AppleUSBHub[0x5076c00]::DecrementOutstandingIO(7316), outstandingIO(0), _interruptReadPending(false) - rearming read
        0.698 [3]          AppleUSBUHCI[0x4f97000]::UIMCreateInterruptTransfer - root hub interrupt transfer - clearing unneeded memDesc (0x5073080) from dmaCommand (0x506a100)
        0.735 [3]          AppleUSBUHCI[0x4f97000]::UIMAbortEndpoint - endpoint 1:1,1
        0.735 [3]          AppleUSBUHCI[0x4f97000]::RHAbortEndpoint - Interrupt pipe -  noting status change
        0.735 [3]          AppleUSBHub[0x5076c00]::InterruptReadHandler error kIOReturnAborted (expected)
        0.739 [2]          AppleUSBUHCI[0x4f97000]::HandleInterrupt - Host controller resume detected - calling EnsureUsability
        0.739 [2]          AppleUSBUHCI[0x4f97000]::HandleInterrupt - deferring further processing until we are running again
        0.761 [3]          AppleUSBHub[0x5076c00]::DecrementOutstandingIO(7320), outstandingIO(0), _interruptReadPending(false) - rearming read
        0.761 [3]          AppleUSBUHCI[0x4f97000]::UIMCreateInterruptTransfer - root hub interrupt transfer - clearing unneeded memDesc (0x5073080) from dmaCommand (0x506a100)
        0.798 [3]          AppleUSBUHCI[0x4f97000]::UIMAbortEndpoint - endpoint 1:1,1
        0.798 [3]          AppleUSBUHCI[0x4f97000]::RHAbortEndpoint - Interrupt pipe -  noting status change
        0.798 [3]          AppleUSBHub[0x5076c00]::InterruptReadHandler error kIOReturnAborted (expected)
        0.801 [2]          AppleUSBUHCI[0x4f97000]::HandleInterrupt - Host controller resume detected - calling EnsureUsability
        0.801 [2]          AppleUSBUHCI[0x4f97000]::HandleInterrupt - deferring further processing until we are running again
        0.823 [3]          AppleUSBHub[0x5076c00]::DecrementOutstandingIO(7324), outstandingIO(0), _interruptReadPending(false) - rearming read
        0.823 [3]          AppleUSBUHCI[0x4f97000]::UIMCreateInterruptTransfer - root hub interrupt transfer - clearing unneeded memDesc (0x5073080) from dmaCommand (0x506a100)
        0.860 [3]          AppleUSBUHCI[0x4f97000]::UIMAbortEndpoint - endpoint 1:1,1
        0.860 [3]          AppleUSBUHCI[0x4f97000]::RHAbortEndpoint - Interrupt pipe -  noting status change
        0.860 [3]          AppleUSBHub[0x5076c00]::InterruptReadHandler error kIOReturnAborted (expected)
        0.863 [2]          AppleUSBUHCI[0x4f97000]::HandleInterrupt - Host controller resume detected - calling EnsureUsability
        0.863 [2]          AppleUSBUHCI[0x4f97000]::HandleInterrupt - deferring further processing until we are running again
        0.885 [3]          AppleUSBHub[0x5076c00]::DecrementOutstandingIO(7328), outstandingIO(0), _interruptReadPending(false) - rearming read
        0.885 [3]          AppleUSBUHCI[0x4f97000]::UIMCreateInterruptTransfer - root hub interrupt transfer - clearing unneeded memDesc (0x5073080) from dmaCommand (0x506a100)
        0.922 [3]          AppleUSBUHCI[0x4f97000]::UIMAbortEndpoint - endpoint 1:1,1
        0.922 [3]          AppleUSBUHCI[0x4f97000]::RHAbortEndpoint - Interrupt pipe -  noting status change
        0.922 [3]          AppleUSBHub[0x5076c00]::InterruptReadHandler error kIOReturnAborted (expected)
        0.926 [2]          AppleUSBUHCI[0x4f97000]::HandleInterrupt - Host controller resume detected - calling EnsureUsability
        0.926 [2]          AppleUSBUHCI[0x4f97000]::HandleInterrupt - deferring further processing until we are running again
        0.947 [3]          AppleUSBHub[0x5076c00]::DecrementOutstandingIO(7332), outstandingIO(0), _interruptReadPending(false) - rearming read
        0.947 [3]          AppleUSBUHCI[0x4f97000]::UIMCreateInterruptTransfer - root hub interrupt transfer - clearing unneeded memDesc (0x5073080) from dmaCommand (0x506a100)
        0.984 [3]          AppleUSBUHCI[0x4f97000]::UIMAbortEndpoint - endpoint 1:1,1
        0.984 [3]          AppleUSBUHCI[0x4f97000]::RHAbortEndpoint - Interrupt pipe -  noting status change
        0.984 [3]          AppleUSBHub[0x5076c00]::InterruptReadHandler error kIOReturnAborted (expected)
        0.987 [2]          AppleUSBUHCI[0x4f97000]::HandleInterrupt - Host controller resume detected - calling EnsureUsability
        0.987 [2]          AppleUSBUHCI[0x4f97000]::HandleInterrupt - deferring further processing until we are running again
        1.009 [3]          AppleUSBHub[0x5076c00]::DecrementOutstandingIO(7336), outstandingIO(0), _interruptReadPending(false) - rearming read
        1.009 [3]          AppleUSBUHCI[0x4f97000]::UIMCreateInterruptTransfer - root hub interrupt transfer - clearing unneeded memDesc (0x5073080) from dmaCommand (0x506a100)
        1.045 [3]          AppleUSBUHCI[0x4f97000]::UIMAbortEndpoint - endpoint 1:1,1
        1.045 [3]          AppleUSBUHCI[0x4f97000]::RHAbortEndpoint - Interrupt pipe -  noting status change
        1.045 [3]          AppleUSBHub[0x5076c00]::InterruptReadHandler error kIOReturnAborted (expected)
        1.049 [2]          AppleUSBUHCI[0x4f97000]::HandleInterrupt - Host controller resume detected - calling EnsureUsability
        1.049 [2]          AppleUSBUHCI[0x4f97000]::HandleInterrupt - deferring further processing until we are running again
        1.071 [3]          AppleUSBHub[0x5076c00]::DecrementOutstandingIO(7340), outstandingIO(0), _interruptReadPending(false) - rearming read

    Oh, sorry, I meant "I'm writing this...".

  • Problem while running client program in Netbeans4.0

    Hi,
    I am facing the following problem while running a client program in Nebeans4.0.
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x7C9012B4
    Function=RtlInitAnsiString+0x1B
    Library=C:\WINDOWS\system32\ntdll.dll
    Current Java thread:
    at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
    at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:770)
    at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1059)
    at java.net.InetAddress.getAllByName0(InetAddress.java:1009)
    at java.net.InetAddress.getAllByName0(InetAddress.java:981)
    at java.net.InetAddress.getAllByName(InetAddress.java:975)
    at weblogic.rjvm.RJVMFinder.getDnsEntries(RJVMFinder.java:370)
    at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:181)
    - locked <0x1007ff78> (a weblogic.rjvm.RJVMFinder)
    at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:125)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:291)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:234)
    at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:135)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
    at javax.naming.InitialContext.init(InitialContext.java:219)
    at javax.naming.InitialContext.<init>(InitialContext.java:195)
    at AcfClient.getHomeRef(AcfClient.java:73)
    at AcfClient.forceSession(AcfClient.java:43)
    at AcfClient.main(AcfClient.java:34)
    Dynamic libraries:
    0x00400000 - 0x00406000      C:\Data\j2sdk1.4.2_04\jre\bin\java.exe
    0x7C900000 - 0x7C9B0000      C:\WINDOWS\system32\ntdll.dll
    0x7C800000 - 0x7C8F4000      C:\WINDOWS\system32\kernel32.dll
    0x77DD0000 - 0x77E6B000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77E70000 - 0x77F01000      C:\WINDOWS\system32\RPCRT4.dll
    0x77C10000 - 0x77C68000      C:\WINDOWS\system32\MSVCRT.dll
    0x08000000 - 0x08138000      C:\Data\j2sdk1.4.2_04\jre\bin\client\jvm.dll
    0x77D40000 - 0x77DD0000      C:\WINDOWS\system32\USER32.dll
    0x77F10000 - 0x77F56000      C:\WINDOWS\system32\GDI32.dll
    0x76B40000 - 0x76B6D000      C:\WINDOWS\system32\WINMM.dll
    0x6BD00000 - 0x6BD0D000      C:\WINDOWS\system32\SYNCOR11.DLL
    0x10000000 - 0x10007000      C:\Data\j2sdk1.4.2_04\jre\bin\hpi.dll
    0x00390000 - 0x0039E000      C:\Data\j2sdk1.4.2_04\jre\bin\verify.dll
    0x003B0000 - 0x003C9000      C:\Data\j2sdk1.4.2_04\jre\bin\java.dll
    0x003D0000 - 0x003DD000      C:\Data\j2sdk1.4.2_04\jre\bin\zip.dll
    0x02DA0000 - 0x02DAF000      C:\Data\j2sdk1.4.2_04\jre\bin\net.dll
    0x71AB0000 - 0x71AC7000      C:\WINDOWS\system32\WS2_32.dll
    0x71AA0000 - 0x71AA8000      C:\WINDOWS\system32\WS2HELP.dll
    0x71A50000 - 0x71A8F000      C:\WINDOWS\System32\mswsock.dll
    0x76F20000 - 0x76F47000      C:\WINDOWS\system32\DNSAPI.dll
    0x76FB0000 - 0x76FB8000      C:\WINDOWS\System32\winrnr.dll
    0x76F60000 - 0x76F8C000      C:\WINDOWS\system32\WLDAP32.dll
    0x66210000 - 0x66219000      C:\WINDOWS\system32\netware\NWWS2NDS.DLL
    0x50D50000 - 0x50D95000      C:\WINDOWS\system32\NETWIN32.DLL
    0x50D00000 - 0x50D15000      C:\WINDOWS\system32\CLNWIN32.DLL
    0x50DF0000 - 0x50E10000      C:\WINDOWS\system32\LOCWIN32.DLL
    0x50DB0000 - 0x50DD9000      C:\WINDOWS\system32\NCPWIN32.dll
    0x71AD0000 - 0x71AD9000      C:\WINDOWS\system32\WSOCK32.dll
    0x66220000 - 0x6622C000      C:\WINDOWS\system32\netware\NWWS2SLP.DLL
    0x1C000000 - 0x1C007000      C:\WINDOWS\system32\NWSRVLOC.dll
    0x76C90000 - 0x76CB8000      C:\WINDOWS\system32\imagehlp.dll
    0x59A60000 - 0x59B01000      C:\WINDOWS\system32\DBGHELP.dll
    0x77C00000 - 0x77C08000      C:\WINDOWS\system32\VERSION.dll
    0x76BF0000 - 0x76BFB000      C:\WINDOWS\system32\PSAPI.DLL
    Heap at VM Abort:
    Heap
    def new generation total 576K, used 497K [0x10010000, 0x100b0000, 0x104f0000)
    eden space 512K, 89% used [0x10010000, 0x10083158, 0x10090000)
    from space 64K, 57% used [0x100a0000, 0x100a9478, 0x100b0000)
    to space 64K, 0% used [0x10090000, 0x10090000, 0x100a0000)
    tenured generation total 1408K, used 129K [0x104f0000, 0x10650000, 0x14010000)
    the space 1408K, 9% used [0x104f0000, 0x10510438, 0x10510600, 0x10650000)
    compacting perm gen total 4096K, used 2122K [0x14010000, 0x14410000, 0x18010000)
    the space 4096K, 51% used [0x14010000, 0x14222828, 0x14222a00, 0x14410000)
    Local Time = Fri Aug 26 10:26:03 2005
    Elapsed Time = 2
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.4.2_04-b05 mixed mode)
    # An error report file has been saved as hs_err_pid1280.log.
    # Please refer to the file for further information.
    Can anyone pls let me know what could be the problem.
    Thanks in adv.

    Hi,
    This type of error
    java.lang.NoClassDefFoundError: javax/naming/Context
    will occur when the client program could not able to locate lib/j2EE.jar file.
    So set the classpath correctly and make sure that you have correctly defined the JAVA_HOME environment variable in .bat script.
    Hope this will help you.
    Regards,
    Anil.
    Technical Support Engineer.

  • Hi Experts , I am currently facing problems while running restricted version copy .. The log says 0 location products copied and that the process has has timed out. the error message is /SAPAPO/MVM_INT_SVC_CO_VER_LCW reported exception in task DP00014, th

    Hi Experts , I am currently facing problems while running restricted version copy in sap apo .. The log says 0 location products copied and that the process has timed out. the error message is " /SAPAPO/MVM_INT_SVC_CO_VER_LCW reported exception in task DP00014 " , then ending in time limit exceeded. could anyone explain why this happens. please note even if the log says 0 location products copied , in reality they have have been partially copied.
    Regards
    Jerel

    Hi, thank you for your replies, I found out few things about my servlet, and its portability
    and i have few questions, although i marked this topic as answered i guess its ok to post
    I am using javax.servlet.context.tempdir to store my files in that servletcontext temporary directory. But i dont know how to give hyperlink
    of the modified files to the user for them to download the modified files.
    What i am using to get the tempdir i will paste
    File baseurl = (File)this.getServletContext().getAttribute("javax.servlet.context.tempdir");
    System.out.println(baseurl);
    baseurl = new File(baseurl.getAbsolutePath()+File.separator+"temp"+File.separator+"files");
    baseurl.mkdirs();so i am storing my files in that temp/files folder and the servlet processes them and modifies them, then how to present them as
    links to the user for download ?
    and as the servlet is multithreaded by nature, if my servlet gets 2 different requests with same file names, i guess one of them will be overwritten
    And i want to create unique directory for each request made to the servlet , so file names dont clash.
    one another thing is that i want my servlet to be executed by my <form action> only, I dont want the user to simply type url and trigger the servlet
    Reply A.S.A.P. please..
    Thanks and regards,
    Mihir Pandya

  • I have met problem while running script

    i have met problem while running script catalog.sql in oracle 10g r2 , while running it came out from the Database and then i can't get into the database please help ..
    ORA-01081: cannot start already-running ORACLE - shut it down first
    SQL> @C:\oracle\product\10.2.0\db_1\RDBMS\ADMIN\catproc.sql
    DOC>######################################################################
    DOC>######################################################################
    DOC> The following PL/SQL block will cause an ORA-20000 error and
    DOC> terminate the current SQLPLUS session if the user is not SYS.
    DOC> Disconnect and reconnect with AS SYSDBA.
    DOC>######################################################################
    DOC>######################################################################
    DOC>#
    DECLARE
    ERROR at line 1:
    ORA-01012: not logged on
    Disconnected

    You should post it to the Database forum.....
    Greetings...
    Sim

  • A web developer problem while running a web application

    Hi all,
    I'm novice to J2EE.
    I've encountered a problem while accessing the deployed module in weblogic 8.1 server.
    I'm sure that the webapplication module is deployed as i saw my module in administration console & also the status said that it is deployed.
    when i access my web application by specifying the proper server and port no and context root it is showing
    either 505 - resource not found error(http://localhost:7001/Suresh-2/Suresh) or 404 - not found error.( http://localhost:7001/Suresh-2/Suresh)
    Now let me elaborate what i've done till now.
    My webapplication folder structure is : C:\bea\user_projects\domains\mydomain\applications\Suresh\WEB-INF\classes\Sai\ServExamp.class
    My servlet is ServExamp.java
    I created a folder called "Suresh". In that folder created another folder called "WEB-INF". In WEB-INF created a folder called "Classes".
    Since my servlet is in package "Sai", the .class file reside in \Suresh\WEB-INF\Classes\Sai\ServExamp.class
    The source code is :
    package Sai;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class ServExamp extends HttpServlet
    public void doPost(HttpServletRequest req,HttpServletResponse res)throws IOException
    PrintWriter out=res.getWriter();
    java.util.Date today=new java.util.Date();
    out.println("<html>"+"<body>"+
    "<h1 align=center>HF\'s Chapter1 Servlet </h1>"
    +"<br>"+today+"</body>"+"</html>");
    Now i'm almost done creating a web application. Next, I constructed a simple web.xml descriptor that gives a web friendly name for my servlet, and points to the servlet. I constructed web.xml descriptor file in the WEB-INF folder (C:\bea\user_projects\domains\mydomain\applications\Suresh\WEB-INF\).
    The web.xml file source is :
    <!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>
    <display-name>Hello World Web Application</display-name>
    <description>Test Servlet</description>
    <servlet>
    <servlet-name>ServExamp</servlet-name>
    <servlet-class>Sai.ServExamp</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>ServExamp</servlet-name>
    <url-pattern>/Suresh</url-pattern>
    </servlet-mapping>
    </web-app>
    Now I have told Weblogic that the URI /Suresh corresponds to my servlet "Sai.ServExamp".
    My Web Application is ready to be deployed at this point. I logged onto Weblogic's admin console,
    1) clicked on deployments, then navigated to "Web Application Modules" .
    2) Clicked "Deploy new Web Application Module"
    3) Navigated to the location of your web application folder (Suresh). There was a radio button next to it indicating that I can select that folder as a valid web application.
    4) I Clicked that radio button and clicked "Target Module".
    5) It informed that my web application "Suresh" will be deployed to myServer.It asked a name for my web application deployment. By default it was "Suresh"
    I clicked Deploy.
    6) After deployment, my web application "Suresh" appeared in the "Web Application Modules" tree on the left.
    I Clicked on "Suresh"( my web application) then clicked the testing tab, then clicked the link shown there(http://localhost:7001/Suresh-2).
    It was not showing my servlet (showed a 403 error)
    Error - 403
    This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.
    I think so it came b'coz I don't have an index.html or index.jsp page.
    7)Instead,I added my servlet on to the URL it provided.
    http://localhost:7001/Suresh-2/Suresh
    It is showing these error code: Http: 505 resource not allowed
    The page cannot be displayed
    The page you are looking for cannot be displayed because the address is incorrect.
    Please try the following:
    If you typed the page address in the Address bar, check that it is entered correctly.
    Open the localhost:7001 home page and then look for links to the information you want.
    Click Search to look for information on the Internet.
    when i just type : http://localhost:7001/ -> Error 404 not found error
    it's showing
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
    I want to run my web application & any help would be appreciated.
    Thanks in advance.
    with regards,
    S.SayeeNarayanan.
    Note: I even deployed my war file, which i got by execution of (jar cv0f webapp.war . ) command from the root directory of my web application i.e. Suresh
    Then executed my webapplication it is showing
    error-505 resource not allowed.
    --------------------------------------------------------------------------------------------

    try a fully qualified path to the pem file

  • A small problem while running my webapplication

    Hi all,
    I'm novice to J2EE.
    I've encountered a problem while accessing the deployed module in weblogic 8.1 server.
    I'm sure that the webapplication module is deployed as i saw my module in administration console & also the status said that it is deployed.
    when i access my web application by specifying the proper server and port no and context root it is showing
    either 505 - resource not found error(http://localhost:7001/Suresh-2/Suresh) or 404 - not found error.( http://localhost:7001/Suresh-2/Suresh)
    Now let me elaborate what i've done till now.
    My webapplication folder structure is : C:\bea\user_projects\domains\mydomain\applications\Suresh\WEB-INF\classes\Sai\ServExamp.class
    My servlet is ServExamp.java
    I created a folder called "Suresh".  In that folder created another folder called "WEB-INF".  In WEB-INF created a folder called "Classes".
    Since my servlet is in package "Sai", the .class file reside in \Suresh\WEB-INF\Classes\Sai\ServExamp.class
    The source code is :
    package Sai;
    import javax.servlet.;*
    import javax.servlet.http.;*
    import java.io.;*
    public class ServExamp extends HttpServlet
    public void doPost(HttpServletRequest req,HttpServletResponse res)throws IOException
    PrintWriter out=res.getWriter();
    java.util.Date today=new java.util.Date();
    out.println("<html>"+"<body>"+
    *"<h1 align=center>HF\'s Chapter1 Servlet </h1>"*
    +"<br>"+today+"</body>"+"</html>");
    Now i'm almost done creating a web application.  Next, I constructed a simple web.xml descriptor that gives a web friendly name for my servlet, and points to
    the servlet. I constructed  web.xml descriptor file in the WEB-INF folder (C:\bea\user_projects\domains\mydomain\applications\Suresh\WEB-INF\).
    The web.xml file source is :
    *<!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>*
    *<display-name>Hello World Web Application</display-name>*
    *<description>Test Servlet</description>*
    *<servlet>*
    *<servlet-name>ServExamp</servlet-name>*
    *<servlet-class>Sai.ServExamp</servlet-class>*
    *</servlet>*
    *<servlet-mapping>*
    *<servlet-name>ServExamp</servlet-name>*
    *<url-pattern>/Suresh</url-pattern>*
    *</servlet-mapping>*
    *</web-app>*
    Now I have told Weblogic that the URI /Suresh corresponds to my servlet "Sai.ServExamp".
    My Web Application is ready to be deployed at this point. I logged onto Weblogic's admin console,
    *1) clicked on deployments, then navigated to "Web Application Modules" .*
    *2) Clicked "Deploy new Web Application Module"*
    *3) Navigated to the location of your web application folder (Suresh). There was a radio button next to it indicating that I can select that folder as a*
    valid web application.
    *4) I Clicked that radio button and clicked "Target Module".*
    *5) It informed that my web application "Suresh" will be deployed to myServer.It asked a name for my web application deployment. By default it was "Suresh"*
    I clicked Deploy.
    *6) After deployment, my web application "Suresh" appeared in the "Web Application Modules" tree on the left.*
    I Clicked on "Suresh"( my web application) then clicked the testing tab, then clicked the link shown there(http://localhost:7001/Suresh-2).
    It was not showing  my servlet (showed a 403 error)
    Error - 403
    This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.
    I think so it came b'coz I don't have an index.html or index.jsp page.
    *7)Instead,I added my servlet on to the URL it provided.*
    http://localhost:7001/Suresh-2/Suresh
    It is showing these error code: Http: 505 resource not allowed
    The page cannot be displayed
    The page you are looking for cannot be displayed because the address is incorrect.
    Please try the following:
    If you typed the page address in the Address bar, check that it is entered correctly.
    Open the localhost:7001 home page and then look for links to the information you want.
    Click  Search to look for information on the Internet.
    when i just type : http://localhost:7001/   -> Error 404 not found error
    it's showing
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    *10.4.5 404 Not Found*
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code
    SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding
    address.
    I want to run my web application & any help would be appreciated.
    Thanks in advance.
    with regards,
    S.SayeeNarayanan.
    Note: I even deployed my war file, which i got by execution of (jar cv0f webapp.war . ) command from the root directory of my web application i.e. Suresh
    Then executed my webapplication it is showing
    error-505 resource not allowed.
    --------------------------------------------------------------------------------------------

    cross posted (amazingly dukes offered in both)

  • Problem while running root.sh in RAC Node

    I am currently configuring RAC on linux using VMWARE Server using the following link .My host Operating System is Windows XP and guest O/S Cent OS.Shared disks have been configured on my C drive for ocr,voting disk,asm.
    http://www.oracle-base.com/articles/10g/OracleDB10gR2RACInstallationOnCentos4UsingVMware.php
    I have performed all the steps succesfully but during the installation of Clusterware Software from node RAC1 it asks for the execution of root.sh from both the nodes.
    Currently I am running root.sh from first node but it gets hanged at "Startup will be queued to init within 90 seconds" and doesn't move from there on..Also according to the link I am following I should be experiencing below output while running root.sh from Node RAC2 instead of RAC1 which I am experiencing....Please suggest on this ...
    # cd /u01/crs/oracle/product/10.2.0/crs
    # ./root.sh
    WARNING: directory '/u01/crs/oracle/product/10.2.0' is not owned by root
    WARNING: directory '/u01/crs/oracle/product' is not owned by root
    WARNING: directory '/u01/crs/oracle' is not owned by root
    WARNING: directory '/u01/crs' is not owned by root
    WARNING: directory '/u01' is not owned by root
    Checking to see if Oracle CRS stack is already configured
    /etc/oracle does not exist. Creating it now.
    Setting the permissions on OCR backup directory
    Setting up NS directories
    Oracle Cluster Registry configuration upgraded successfully
    WARNING: directory '/u01/crs/oracle/product/10.2.0' is not owned by root
    WARNING: directory '/u01/crs/oracle/product' is not owned by root
    WARNING: directory '/u01/crs/oracle' is not owned by root
    WARNING: directory '/u01/crs' is not owned by root
    WARNING: directory '/u01' is not owned by root
    clscfg: EXISTING configuration version 3 detected.
    clscfg: version 3 is 10G Release 2.
    assigning default hostname rac1 for node 1.
    assigning default hostname rac2 for node 2.
    Successfully accumulated necessary OCR keys.
    Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
    node <nodenumber>: <nodename> <private interconnect name> <hostname>
    node 1: rac1 rac1-priv rac1
    node 2: rac2 rac2-priv rac2
    clscfg: Arguments check out successfully.
    NO KEYS WERE WRITTEN. Supply -force parameter to override.
    -force is destructive and will destroy any previous cluster
    configuration.
    Oracle Cluster Registry for cluster has already been initialized
    Startup will be queued to init within 90 seconds.
    ---------------------------

    Will someone update on this?

  • Error while reading USB Port : using JSR80

    Hi Everybody
    Iam trying to read the data from a usb device [a fingerprint scanner] by using jsr80 with the help of following files which are in my classpath
    1) jsr80-1.0.1.jar
    2) jsr80_ri-1.0.1.jar
    3) jsr80_windows.jar
    4) commons-logging-api-1.1.1.jar
    5) javax.usb.properties
    6) LibusbJNI.dll
    7) LibusbJava.dll
    8) libusb0.dll
    I was trying the follwoing program
    import javax.usb.*;
    import java.util.List;
    public class TraverseUSB
            public static void main(String argv[])
              try
                  // Access the system USB services, and access to the root
                  // hub. Then traverse through the root hub.
                  UsbServices services = UsbHostManager.getUsbServices();
    System.out.println("Getting Available USB Services ");
                  UsbHub rootHub = services.getRootUsbHub();
    System.out.println(" Access to the USBrootHub ");
                  traverse(rootHub);
              } catch (Exception e) {
              System.out.println(e);
            public static void traverse(UsbDevice device)
              if (device.isUsbHub())
                 // This is a USB Hub, traverse through the hub.
                 List attachedDevices = ((UsbHub) device).getAttachedUsbDevices();
                 for (int i=0; i<attachedDevices.size(); i++)
                   traverse((UsbDevice) attachedDevices.get(i));
              else
         System.out.println("USB Device");
                 // This is a USB function, not a hub.
                 // Do something.
    }but when iam executing the program iam getting the exception
    The Ordinal 44 could not be located in the dynamic link library "libusb0.dll" , it is coming in a message box
    javax.usb.UsbException: Error while loading shared library LibusbJNI.dll : C:\WINDOWS\LibusbJNI.dll:
    The operating system cannot run %1
    Please help in this regards
    Thanks in adv
    Sulfikkar

    I am also facing the same problem with the code and getting errors while running my application in Eclipse is this some version problem or any other isues are afftecting my application to run successfully.
    I get following errors while running my application inspite of having all the jars and libusb for windows:
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
         at com.mcreations.usb.windows.JavaxUsb.<clinit>(JavaxUsb.java:65)
         at com.mcreations.usb.windows.WindowsUsbServices.<init>(WindowsUsbServices.java:46)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at java.lang.Class.newInstance0(Class.java:350)
         at java.lang.Class.newInstance(Class.java:303)
         at javax.usb.UsbHostManager.createUsbServices(Unknown Source)
         at javax.usb.UsbHostManager.getUsbServices(Unknown Source)
         at org.symphony.embedded.ShowTopology.getVirtualRootUsbHub(ShowTopology.java:56)
         at org.symphony.embedded.FindUsbDevice.main(FindUsbDevice.java:29)

  • Problem while running SOA Server

    Hi, i'm trying to starting SOA server. I started Admin Server successfully but I have problems while starting SOA server. When i'm trying to do that i get many errors, last three lines in console are following:
    12 mismatched character '<EOF>' expecting '"'
    tform is running and accepting requests
    12 mismatched character '<EOF>' expecting '"'
    When i'm trying to do start SOA server by administration console (settings of soa_server1 -> Control -> Start/Stop -> check soa_server1 and click Start) I get: Certificate chain received from localhost - 127.0.0.1 failed hostname verification check. Certificate contained Pawe?-Komputer but check expected localhost
    Could you help me? If it will be necessary I will write more info.
    Thanks in advance
    Edited by: 948093 on 2012-07-23 06:07

    Thank you for your post.
    I tried to set listen address of SOA server to localhost and then to *127.0.0.1*, i copied cacert and restart Admin server and then tried to start SOA server. Unfortunately still the same error. Does exist another way to solve this problem?
    If it might be helpful i paste end of log (i tried start SOA server also by command startManagedWebLogic soa_server1 "http://127.0.0.1:7001" )
    Caused By: java.net.ConnectException: connect: Address is invalid on local machi
    ne, or port is not valid on remote machine
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:529)
    at java.net.Socket.connect(Socket.java:478)
    at java.net.Socket.<init>(Socket.java:375)
    at java.net.Socket.<init>(Socket.java:189)
    at com.sun.jndi.ldap.Connection.createSocket(Connection.java:352)
    at com.sun.jndi.ldap.Connection.<init>(Connection.java:187)
    at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:118)
    at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1580)
    at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2652)
    at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:293)
    at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
    at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193
    +)+
    at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.ja
    va:136)
    at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.jav
    a:66)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
    +67)+
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288
    +)+
    at javax.naming.InitialContext.init(InitialContext.java:223)
    at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:1
    +34)+
    at oracle.security.idm.providers.stdldap.TestConnectionPool.run(LDIdenti
    tyStoreFactory.java:998)
    +>+
    line 3:12 mismatched character '<EOF>' expecting '"'
    SOA Platform is running and accepting requests

  • Problems with GE60 USB ports

    Hi everyone, a new issue with my GE60 Apache Pro's USB ports has come up, mind you this is a brand new laptop. If I plug in a USB device while in Windows 7 it will be recognized and installed, no problem. However, if I reboot into Windows with the same device already plugged in, the USB ports will stop functioning. Even though that device will appear to be recognized it won't be functional. In fact, no other devices I try to use afterwards are recognized and Windows will stall indefinitely if I try to shut down/reboot. I would have to manually power down the laptop, remove any devices, then boot up again and it would be fine.
    Any idea what's causing this? Any advice would be appreciated, thanks.

    Quote from: adrian5683 on 19-May-14, 00:27:31
    Hi everyone, a new issue with my GE60 Apache Pro's USB ports has come up, mind you this is a brand new laptop. If I plug in a USB device while in Windows 7 it will be recognized and installed, no problem. However, if I reboot into Windows with the same device already plugged in, the USB ports will stop functioning. Even though that device will appear to be recognized it won't be functional. In fact, no other devices I try to use afterwards are recognized and Windows will stall indefinitely if I try to shut down/reboot. I would have to manually power down the laptop, remove any devices, then boot up again and it would be fine.
    Any idea what's causing this? Any advice would be appreciated, thanks.
    What USB devices are you using for reboot and afterward? and does this happens on all USB ports?
    Quote from: adrian5683 on 20-May-14, 23:59:38
    Narrowed the issue down to Intel's HD 4600 graphics driver... no idea how it affects the USB ports but the driver itself is unstable, already caused two BSODs...
    Can you tell the BSOD messages or provide dump files for the crash downs?

  • Problem while running BEx Query

    Hi All,
    I had reqiurement of calculating the difference of the two dates.I calculated Date Difference but I am getting problem when I run the Query.
    The problem is " I am finding the difference between Schedule Line Date and Posting Date. There are some blank spaces in the cube over Schedule Line Date and also over Posting Date. While running the Query Blank Space is taken as # symbol and while calculating the differences it is giving the differences in Lakhs."
    Can anybody help me to solve the problem " To remove the # symbol and calculate the differences properly".
    Thanks in advance.
    With Regards
    Mahi

    Hi,
    Use the Boolean concept like below:
    I hope you are using formula varibles to get Dates into the formula.
    Lets assume fv1 is formulavarible on Schedule line date and FV2 is Formula varible on Posting date.
    (FV1 == '' OR FV2 == '') * 0 + (FV1 <> '' AND FV2 <> '') * (FV1-FV2).
    With rgds,
    Anil Kumar Sharma .P

  • Costing problem while running Process order

    Hi,
    This is a  problem relating to costing of HALB material.. While doing process order for a fert material (BOM of FERT material contains a HALB and two ROH materials) a window occurs while saving ' Error when calculating costs, see log'. Why is this happening? I have checked the BOM , all components are subjected to cost relevancy (X). For HALB material no values are manually maintained in planned price 1,2,3 fields in Costing 2 view of material master. Do we have to manually maintain or will it be taken from the ROH materials in HALB BOM. For ROH materials values are comin in planned price 1,2,3 fields in Costing 2 view . If this has to be done what is the configuration. The ultimate issue is while running process order for FERT material no costing is happening for HALB material.Pls share your suggestions. Rewards assured.
    regards
    Ashok

    Hi,
    when you have raw semifinish and finish material as in sequence then first order of semifinish has to be created and it will capture raw material cost and other expences if incurred after confirmation of semifinish material you will be able to create a finish material production order b' cause that semi- finish material yo have to consume for finsh order.
    if at all first sfg order has updated the price of sfg (after settlement of order) then it will take correct price for finish material
    reward points if you find it useful.

  • Problem while running the program in background

    hi SDNs,
    i have problem while i run report in background. in background, last three columns  are not appearing in the report. whereas it showing all columns in foreground.
    i have increased the line-size, even then it is giving truncating last some columns.
    could you any one pls help me out, what to do ?
    Thanking you,
    Ramakrishna S

    hi prakash ramu,
    even it is not working. it is directly talking me to spool request..
    i think it is not possible, while ur running the report in background.,
    any how if possible could u pls send me the code...
    thanks
    ramu

  • 10.5.2 No problems and Left USB Port Fixed

    I installed 10.5.2 (after making 2 verifiable clones) and so far everything works perfectly. Installed the Graphics update with no problems and, best of all, the left USB port works after the computer awakens from sleep (shutting the cover). This was an important fix for me...... Thanks Apple!!!
    Victor

    Sounds like a hosed installation. Restore the bootable backup/clone of your 10.5.1 installation (hard to tell since your profile info shows 10.4.7), download the 10.5.2 COMBO update, and install it.

Maybe you are looking for

  • Is it possible to run a java program without using the command prompt?

    Hi, I was wondering whether it is possible to run a Java program (not an applet) without using a command line in the command prompt? Basically I want to run a program that will be continually running in the background and hence I don't want to have a

  • I want to take snaps and pictures during chating

    how i can take pictures during video chating

  • Propagation of propeties

    Hi, I need propagate a property (Edicion) with the following characteristics: Maintable (check) Indexable (check) Default Value: E-1 Document Validity Patterns (csv): /documents/bla/** But when I run the report for the older Documents (uploaded to th

  • How to transfer from Nano to new computer when old computer isn't available

    My boyfriend has a Nano and used his uncle's computer in the beginning to add music to it. He no longer has access to that computer and wants to move what's on his Nano to his new computer. Itunes recognizes his nano but won't let him copy anything f

  • Automatic fill in of the profit center in CO07

    Hello Experts, in the transaction CO07 for creation of production order without reference to a material, I would like to know if it is possible to populate automatically the profit center field ? In the settlement rule of the production order, the re