Trouble with tomcat 4.0.3

i'm new to servlets and can't get tomcat 4.0.3 to work for the life of me.
i was wondering it someone out there would be able to give me a hand.
no matter how i've tried to add the JAVA_HOME variable, i keep getting this error when i try to run startup.bat out of the directory: E:\jakarta-tomcat-4.0.3-src\catalina\src\bin
the error i get is...
the JAVA_HOME environment variable is not defined
This environment variable is needed to run this program
Label not found
here's the startup.bat file....would someone be able to show me how and where i set the variable if all my .jar files are stored in the directory E:\
@echo off
if "%OS%" == "Windows_NT" setlocal
rem ---------------------------------------------------------------------------
rem Start script for the CATALINA Server
rem
rem $Id: startup.bat,v 1.3.4.2 2002/01/30 18:10:40 patrickl Exp $
rem ---------------------------------------------------------------------------
rem Guess CATALINA_HOME if not defined
if not "%CATALINA_HOME%" == "" goto gotHome
set CATALINA_HOME=.
if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
set CATALINA_HOME=..
:gotHome
if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
echo The CATALINA_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto end
:okHome
set EXECUTABLE=%CATALINA_HOME%\bin\catalina.bat
rem Check that target executable exists
if exist "%EXECUTABLE%" goto okExec
echo Cannot find %EXECUTABLE%
echo This file is needed to run this program
goto end
:okExec
rem Get remaining unshifted command line arguments and save them in the
set CMD_LINE_ARGS=
:setArgs
if ""%1""=="""" goto doneSetArgs
set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
shift
goto setArgs
:doneSetArgs
call "%EXECUTABLE%" start %CMD_LINE_ARGS%
:end
i'm using jbuilder3 to compile and i'm also using windows 98 SE
thanks a lot
Andy

i tried to add JAVA_HOME to the catalina.bat file (tomcat 4.0.3), but i get this exact error
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
Using CATALINA_BASE: ..
Using CATALINA_HOME: ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME: E:\jsdk2.1
Invalid switch - -DJAVA.ENDORSED.DIRS=
i don't know why i'm getting the first two lines or the last one....
i defined JAVA_HOME by putting the following near the top of the catalina.bat file
SET JAVA_HOME=E:\jsdk2.1
any ideas of what my problem is?
thanks
Andy

Similar Messages

  • Troubles with tomcat 4.0.3

    i'm new to servlets and can't get tomcat 4.0.3 to work for the life of me.
    i was wondering it someone out there would be able to give me a hand.
    no matter how i've tried to add the JAVA_HOME variable, i keep getting this error when i try to run startup.bat out of the directory: E:\jakarta-tomcat-4.0.3-src\catalina\src\bin
    the error i get is...
    the JAVA_HOME environment variable is not defined
    This environment variable is needed to run this program
    Label not found
    here's the startup.bat file....would someone be able to show me how and where i set the variable if all my .jar files are stored in the directory E:\
    @echo off
    if "%OS%" == "Windows_NT" setlocal
    rem ---------------------------------------------------------------------------
    rem Start script for the CATALINA Server
    rem
    rem $Id: startup.bat,v 1.3.4.2 2002/01/30 18:10:40 patrickl Exp $
    rem ---------------------------------------------------------------------------
    rem Guess CATALINA_HOME if not defined
    if not "%CATALINA_HOME%" == "" goto gotHome
    set CATALINA_HOME=.
    if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
    set CATALINA_HOME=..
    :gotHome
    if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
    echo The CATALINA_HOME environment variable is not defined correctly
    echo This environment variable is needed to run this program
    goto end
    :okHome
    set EXECUTABLE=%CATALINA_HOME%\bin\catalina.bat
    rem Check that target executable exists
    if exist "%EXECUTABLE%" goto okExec
    echo Cannot find %EXECUTABLE%
    echo This file is needed to run this program
    goto end
    :okExec
    rem Get remaining unshifted command line arguments and save them in the
    set CMD_LINE_ARGS=
    :setArgs
    if ""%1""=="""" goto doneSetArgs
    set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
    shift
    goto setArgs
    :doneSetArgs
    call "%EXECUTABLE%" start %CMD_LINE_ARGS%
    :end
    i'm using jbuilder3 to compile and i'm also using windows 98 SE
    thanks a lot
    Andy

    Hi,
    You will get this error, if tomcat could not find the JDK installation path at the time of startup. For that, you need to put your "JAVA_HOME" path in \bin\tomcat.bat file, which will point to your JDK installation path. Then, it should start without any problem.
    In Windows NT, right click mycomputer->Properties->Advance->Environment Variable and add the JAVA_HOME to user defined variable and point that variable to the path.
    To test if the servlet engine is working properly open a browser, and type http://localhost:8080
    Regards,
    Senthil Babu
    Developer Technical Support
    SUN Microsystems
    http://www.sun.com/developers/support/

  • Trouble with tomcat

    Hi every one
    i am making a servlet that manages html pages byitself rather than using jsp. i use out.println("") to send html commands. i run it in tomcat but every time i make some changes in my code and recompile it...i have to restart tomcat for the changes to show up. is there any way i can just click refresh and the changes will be shown?
    Thx
    bhaarat

    bablu105 wrote:
    you need the setting in Web.xml or some other file--
    located in conf folder.
    and make relodable=true for your context.The file is server.xml usually found in <TOMCAT_HOME>/conf. You need to find the context element for your app, and set readloable=true as an attribute.
    Setting reloadable=true causes the timestamps on your files to be monitored, reloading if anything changes.
    --Jon                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Log4j with tomcat

    Hi All,
    This is my first post here ..yeahh !! :)
    anyway..am on my way learning JSP / Servlet....and having trouble cofiguring log4j with tomcat
    I have a few conceptual questions...
    1. In our production environment, I see server.xml in Tomcat (Tomcat4) being contains the log4j entries. Is this the right way of doing it? Should the logging rather be in a config file with the Webapp folder for each app? Since loggin for each invidal web app should be its own business. also adding entries to server.xml would mean redeploying every other application. I know I could ask this question directly to my Boss but I thought asking it here would give me many more perspectives.
    2. How to I go about configuring log4j with tomcat4. I have the log4j.jar file in the lib folder..where do I put the xml (config file for log4j) ? Also is that all I have to do to get logging enables?
    I know my questions are a bit naive...but am just starting to learn this stuff...
    Pease comment
    Regards,
    V

    Hi there,
    These are really Log4J related questions.
    I think one way of setting up Log4J is to use a log4j XML file (equivalent of log4J properties file) , and place it under your project's
    WEB-INF\classes\folder
    Then place log4j.jar and probably Apache Commons Logging Jar file under your project's \WEB-INF\lib\ folder
    That's it.
    Read the docs here: http://logging.apache.org/log4j/docs/ or search them if you have additional question.
    If your questions are not answered on the docs or Google search then check with the Log4J User Mailing List here:
    http://logging.apache.org/site/mailing-lists.html
    Scroll down to log4j-user list

  • Trouble with java security manager

    I have set up a security manager for my webapp running on Tomcat. The application enables the user to write his own scripts using Javascript, that's why I need to set up a security manager.
    Using Rhino as script interpreter, it is possible to use the standard java security mechanisms, e.g. using the security manager to handle the scripts' rights.
    I've added the following lines to my policy file:
    // give server all rights
    grant codeBase "file:webapp/WEB-INF/-" {
         permission java.security.AllPermission;
    //rights granted to scripts
    grant codeBase "file:restrictedClient" {
         permission java.io.FilePermission "webapp/WEB-INF/lib/js.jar", "read";
    I've assigned the scripts to the "restrictedClient" code base. However, the script execution fails as the script does not have the permission to access or define classes of any package (even standard java packages like java.lang or java.math).
    In java.security, I have found the following comment:
    # List of comma-separated packages that start with or equal this string
    # will cause a security exception to be thrown when
    # passed to checkPackageDefinition unless the
    # corresponding RuntimePermission ("defineClassInPackage."+package) has
    # been granted.
    # by default, no packages are restricted for definition, and none of
    # the class loaders supplied with the JDK call checkPackageDefinition.
    #package.definition=
    I now wonder, why the checkPackageDefinition is checked though there's no entry for any package to be checked.
    Extending the policy file like
    grant codeBase "file:restrictedClient" {
         permission java.lang.RuntimePermission "accessClassInPackage.webapp/WEB-INF/classes/org/mozilla/javascript";
         permission java.io.FilePermission "webapp/WEB-INF/lib/js.jar", "read";
         permission java.lang.RuntimePermission "defineClassInPackage.java.io";
         permission java.lang.RuntimePermission "defineClassInPackage.java.util";
         permission java.lang.RuntimePermission "defineClassInPackage.java.net";
         permission java.lang.RuntimePermission "defineClassInPackage.java.sql";
         permission java.lang.RuntimePermission "defineClassInPackage.java.lang";
         permission java.lang.RuntimePermission "defineClassInPackage.java.math";
         permission java.lang.RuntimePermission "de.methodpark.pkit.facade.impl";
    works, but an unpleasant feeling remains :-).
    Rhino creates an own classloader for script execution. Could that be the source of the strange behaviour?
    Any help would be appreciated!
    Regards,
    Matthias

    David,
    I was glad to see your post regarding WLS 9.2 and the troubles with enabling Java Security Manager.
    Were you able to learn any more on things like - why doesn't the admin console work when the security manager is enabled with the default policy file. Also, why is it so difficult to add permissions for your own applications and get them to actually work.
    I'd be curious to see if you were able to get it to work or if you have any insights or resources that can help with this as we are really struggling to get a restrictive policy file that works.
    Thanks,
    D

  • Mysql jdbc drivers with tomcat?

    I am having trouble getting mySQL drivers to work on Tomcat. I have used the driver before with iPlanet Web Server, but I can't seem to get it to work with Tomcat. I am getting this error:
    org.apache.jasper.JasperException: In <driver>, invalid driver class name: "org.gjt.mm.mysql.Driver"
    The jar for the driver is in my WEB-INF/lib directory of my webapp. Seems like it isn't picking up the jar in the classpath. It was my understanding that jars in this dir were loaded automatically. Is there some way to log the classpath loaded in Tomcat?

    run this in one of your jsps and see whats in your classpath.
    System.getProperty("java.class.path",".");
    I've never a had a problem with it before, but I'm using
    mysql-connector-java-2.0.14

  • Trouble with installation of BO Edge 3.1

    Hi,
    Hope this is the right board.
    We have some trouble with our Installation of BO Edge 3.1, so at first we will tell you which software we have already installed on our System:
    1. Windows Server 2003 x64 Standard Edition on VMWare
    2. BO Edge 3.1 with Tomcat
    3. CrystalReports 2008
    4. Microsoft Office 2003 (Excel only)
    5. Xcelsius 2008
    6. LiveOffice
    7. Java Connector 2.1.8 (We did not find the %/Tomcat55/shared/lib% so we created the shared and lib folders and pasted the dll file)
    8. Integration Kit 3.0 with troubles...
    ...we get the error that the CrystalExtension.dll can't register. To solve the Problem we try to register it manual by regsvr32. But it did not work (Error: LoadLibrary (path...) failed - The specified module could not be found.) In the board we found a notice that we can't use Integration Kit 3.0 with BO Edge 3.1. So we will download Integration Kit 3.1 from sdn but we don't know how we can install a *.war file on our System...
    We can't open the CMC Site, we recieve the following error:
    HTTP Status 404 - /CmcApp/
    type Status report
    message /CmcApp/
    description The requested resource (/CmcApp/) is not available.
    Apache Tomcat/5.5.20
    Where is our mistake and how we can solve our problems?
    Thank you for your support.
    Regards
    Lars Goldhahn
    PS: Sorry for my english

    Hi,
    today I have uninstalled CrystalReports again and after this step I installed Integrataion Kit again.
    And now I can login to the CMC. So the problem ist solved.
    Regards

  • Trouble with fn:indexOf

    Hi,
    I'm using JSTL 1.2 with Tomcat 6.0.26. I'm having trouble figuring out why this line in my JSP ...
    <c:set name="doubleSlashIndex" value="${fn:indexOf(hotelDetail.url, '//') + 2}" />it is throwing this exception ...
    EVERE: Servlet.service() for servlet dispatcher threw exception
    org.apache.jasper.JasperException: /WEB-INF/views/accommodations/hotel-details.jsp(102,5) Attribute name invalid for tag set according to TLD
         at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
         at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
         at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:236)
         at org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1235)
         at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:846)
         at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530)
         at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
         at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)
         at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:865)
         at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530)
         at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
         at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)
         at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2417)
         at org.apache.jasper.compiler.Node$Root.accept(Node.java:495)
         at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
         at org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1763)
         at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:198)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:347)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:589)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)What obvious thing am I missing? Thanks, - Dave

    As the exception says, this is nothing to do with fn:indexOf(), it is to do with c:set, which doesn't have a 'name' attribute. Look it up.

  • Has anyone tested ResilientDemo with Tomcat 5.5.9?

    I have followed the Technical Note #007.htm to the letter and still could not get the demo working. Here is what I did:
    1. Start Tomcat
    2. Modify ant.cmd to configure AXIS_HOME and ANT_HOME. (I am using ant-1.6.5 and axis-1_2_1)
    3. Copy the class directory to TOMCAT_HOME/webapps/axis/WEB-INF (I create the axis/WEB-INF directory)
    4. run ant.cmd.
    Here is the error I got:
    Buildfile: build.xml
    deployRatingService:
    [axis-admin] - Unable to find required classes (javax.activation.DataHandler and
    javax.mail.internet.MimeMultipart). Attachment support is disabled.
    [axis-admin] Processing file C:\Oracle\BPM\10.1.2\integration\orabpel\samples\de
    mos\ResilientDemo\AxisServices\deployRatingService.wsdd
    [axis-admin] AxisFault
    [axis-admin] faultCode: {http://xml.apache.org/axis/}HTTP
    [axis-admin] faultSubcode:
    [axis-admin] faultString: (404)/axis/services/AdminService
    [axis-admin] faultActor:
    [axis-admin] faultNode:
    [axis-admin] faultDetail:
    [axis-admin] {}:return code: 404
    Has anyone tested the ResilientDemo with Tomcat 5.5.9? Where can I find the missing classes? Thanks.

    They haven't removed these classes (DataHandelr & MimeMultipart) bacause I have them inside activation.jar and mail.jar, which are located at ${tomcat.home}\webapps\axis\WEB-INF\lib, and I get the same error with another example. Where is the trouble? I extracted activation.jar from jaf-1_0_2-upd2.zip, mail.jar from the javamail-1_4.zip (I think both are the latest releases) and use Tomcat 5.5.12. Thanks.

  • Problems configuring XSQL with Tomcat

    Having a lot of trouble getting this to work with tomcat standalone, apache with tomcat, and even apache with resin. (I have successfully gotten this to work with resin as both web and appserver.)
    I have tried to be meticulous in following the directions, but one thing that is throwing me is that I can't find the web.xml file in my xdk distribution (neither in xdk8i nor xdk9i); I've attempted to create the .xsql extension-to-servlet mapping myself in Tomcat's web.xml file, but maybe I got this wrong.
    The main symptom is that my xsql pages are basically being returned to me in the browser. Any help would be appreciated.

    Bacically you need to create yourself, and here is an example:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
    <web-app>
    <servlet>
    <servlet-name>
    WebCounter
    </servlet-name>
    <servlet-class>
    FAQAnswerServlet
    </servlet-class>
    </servlet>
    <servlet>
    <servlet-name>
    oraclexsql
    </servlet-name>
    <servlet-class>
    oracle.xml.xsql.XSQLServlet
    </servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>
    oraclexsql
    </servlet-name>
    <url-pattern>
    *.xsql
    </url-pattern>
    </servlet-mapping>
    </web-app>
    null

  • I have been having a lot of trouble with the latest itunes update and my ipod classic 80Gb i.e. being unable to sync songs, but now i have no files at all on my ipod, it is completely blank when i view it from my computer. I need help, please, anybody.

    As it says above, i have been having a lot f trouble with my ipod classic and the latest itunes update, i was unable to sync songs or anything to it and have tried every conceivable 'fix' i could find. i have run an itunes diagnostic and the results are posted below. a major problem is that when i try and view my ipod through my computer it displays nothing at all on the ipod, no files or anything, this may be the problem but i have no idea how it has happened or how i could resolve it.
    This ipod holds huge sentimental value and i am loathe to buy a new one! If anybody can help it is greatly appreciated, than kyou in advanced.
    Microsoft Windows 7 x64 Home Premium Edition Service Pack 1 (Build 7601)
    ASUSTeK Computer Inc. K50IJ
    iTunes 11.1.5.5
    QuickTime not available
    FairPlay 2.5.16
    Apple Application Support 3.0.1
    iPod Updater Library 11.1f5
    CD Driver 2.2.3.0
    CD Driver DLL 2.1.3.1
    Apple Mobile Device 7.1.1.3
    Apple Mobile Device Driver 1.64.0.0
    Bonjour 3.0.0.10 (333.10)
    Gracenote SDK 1.9.6.502
    Gracenote MusicID 1.9.6.115
    Gracenote Submit 1.9.6.143
    Gracenote DSP 1.9.6.45
    iTunes Serial Number 0038B8600B98D1E0
    Current user is not an administrator.
    The current local date and time is 2014-03-21 16:52:39.
    iTunes is not running in safe mode.
    WebKit accelerated compositing is enabled.
    HDCP is not supported.
    Core Media is supported.
    Video Display Information
    Intel Corporation, Mobile Intel(R) 4 Series Express Chipset Family
    Intel Corporation, Mobile Intel(R) 4 Series Express Chipset Family
    **** External Plug-ins Information ****
    No external plug-ins installed.
    Genius ID: 2fd81a1f13cf3ff25a8b4f0e8e725116
    **** Device Connectivity Tests ****
    iPodService 11.1.5.5 (x64) is currently running.
    iTunesHelper 11.1.5.5 is currently running.
    Apple Mobile Device service 3.3.0.0 is currently running.
    Universal Serial Bus Controllers:
    Intel(R) ICH9 Family USB Universal Host Controller - 2934.  Device is working properly.
    Intel(R) ICH9 Family USB Universal Host Controller - 2935.  Device is working properly.
    Intel(R) ICH9 Family USB Universal Host Controller - 2936.  Device is working properly.
    Intel(R) ICH9 Family USB Universal Host Controller - 2937.  Device is working properly.
    Intel(R) ICH9 Family USB Universal Host Controller - 2938.  Device is working properly.
    Intel(R) ICH9 Family USB Universal Host Controller - 2939.  Device is working properly.
    Intel(R) ICH9 Family USB2 Enhanced Host Controller - 293A.  Device is working properly.
    Intel(R) ICH9 Family USB2 Enhanced Host Controller - 293C.  Device is working properly.
    No FireWire (IEEE 1394) Host Controller found.

    Here is what worked for me:
      My usb hub, being usb2, was too fast. I moved the wire to a usb port directory on my pc. That is a usb1 port which is slow enough to run your snyc.

  • Trouble with Toshiba built-in webcam: "unable to enumerate USB device"

    I am running archlinux on a Toshiba Satellite L70-B-12H laptop, and having troubles with the Webcam. *Once in a while*, everything goes well and I get
    # lsusb
    Bus 004 Device 002: ID 8087:8000 Intel Corp.
    Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 003 Device 004: ID 04f2:b448 Chicony Electronics Co., Ltd
    Bus 003 Device 003: ID 8087:07dc Intel Corp.
    Bus 003 Device 002: ID 8087:8008 Intel Corp.
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    # dmesg
    [ 3433.456115] usb 3-1.3: new high-speed USB device number 4 using ehci-pci
    [ 3433.781119] media: Linux media interface: v0.10
    [ 3433.809842] Linux video capture interface: v2.00
    [ 3433.826889] uvcvideo: Found UVC 1.00 device TOSHIBA Web Camera - HD (04f2:b448)
    [ 3433.835893] input: TOSHIBA Web Camera - HD as /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.0/input/input15
    [ 3433.835976] usbcore: registered new interface driver uvcvideo
    [ 3433.835977] USB Video Class driver (1.1.1)
    Unfortunately, *most of the time* the camera seems invisible to my system, and I get
    # lsusb
    Bus 004 Device 002: ID 8087:8000 Intel Corp.
    Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 003 Device 003: ID 8087:07dc Intel Corp.
    Bus 003 Device 002: ID 8087:8008 Intel Corp.
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    (note the missing "04f2:b448 Chicony Electronics Co., Ltd" device), and
    # dmesg
    [ 480.104252] usb 3-1.3: new full-speed USB device number 4 using ehci-pci
    [ 480.171097] usb 3-1.3: device descriptor read/64, error -32
    [ 480.341235] usb 3-1.3: device descriptor read/64, error -32
    [ 480.511375] usb 3-1.3: new full-speed USB device number 5 using ehci-pci
    [ 480.578007] usb 3-1.3: device descriptor read/64, error -32
    [ 480.748151] usb 3-1.3: device descriptor read/64, error -32
    [ 480.918282] usb 3-1.3: new full-speed USB device number 6 using ehci-pci
    [ 481.325196] usb 3-1.3: device not accepting address 6, error -32
    [ 481.392091] usb 3-1.3: new full-speed USB device number 7 using ehci-pci
    [ 481.798926] usb 3-1.3: device not accepting address 7, error -32
    [ 481.799166] hub 3-1:1.0: unable to enumerate USB device on port 3
    Searching on the web, most results I found lead to this page, where it is said that the problem is due to badly tuned overcurrent protection, and advocated that unplugging and switching off the computer for a little while gets things back into normal. This does not really work for me; the problem seems to occur more randomly, unfortunately with high probability (my camera is available after less than one boot out of ten).
    I tried to ensure that the ehci-hcd module is loaded at boot with the ignore-oc option (with a file in /etc/module-load.d/), to no avail.
    I also wrote a script which alternatively removes and reloads the ehci-pci driver until my device is found in lsusb. It is sometimes helpful, but usually not. And even when my device is found that way, it can only be used for a while before disappearing again.
    Anyway, such a hack is unacceptable... So, my questions are:
    is it indeed related to overcurrent protection ?
    is there anything else I can try ?
    should I file somewhere an other of the numerous bug reports about "unable to enumerate USB device" already existing ?
    If of any importance, I am running linux 3.15.7, because at the time I installed my system, I couldn't get the hybrid graphic card Intel/AMD working under 3.16.
    Last edited by $nake (2014-10-18 16:29:06)

    uname -a
    Linux libra 3.9.4-1-ARCH #1 SMP PREEMPT Sat May 25 16:14:55 CEST 2013 x86_64 GNU/Linux
    pacman -Qi linux
    Name : linux
    Version : 3.9.4-1
    Description : The linux kernel and modules
    Architecture : x86_64
    URL : http://www.kernel.org/
    Licences : GPL2
    Groups : base
    Provides : kernel26=3.9.4
    Depends On : coreutils linux-firmware kmod mkinitcpio>=0.7
    Optional Deps : crda: to set the correct wireless channels of your country
    Required By : nvidia
    Optional For : None
    Conflicts With : kernel26
    Replaces : kernel26
    Installed Size : 65562.00 KiB
    Packager : Tobias Powalowski <[email protected]>
    Build Date : Sat 25 May 2013 16:28:17 CEST
    Install Date : Sun 02 Jun 2013 15:30:35 CEST
    Install Reason : Explicitly installed
    Install Script : Yes
    Validated By : Signature

  • Hi, i am having trouble with my mac mail account, i cannot send or receive any emails because of the server connection problems. Message says it could not be connected to SMTP server. Thanks in advance for your help.

    Hi, i am having trouble with my mac mail account, i cannot send or receive any emails because of the server connection problems. Message says it could not be connected to SMTP server. Thanks in advance for your help.

    Hello Sue,
    I have an iPad 3, iPad Mini and iPhone 5S and they are all sluggish on capitalisation using shift keys. I hope that Apple will solve the problem because it is driving me crazy.
    I find using a Microsoft Surface and Windows 8 phone, which I also have, work as well as all the ios devices before the ios 7 upgrade.
    It has something to do with the length of time that you need to hold the shift key down. The shift key needs to be held longer than the letter key for the capitalisation to work. For some reason, this is a major change in the way we have learnt to touch type on computers. I am having to relearn how to type!
    Michael

  • Trouble with OR in where clause

    Hello,
    I'm having trouble with execution speed. The problem seems to be with using OR in my where clause.
    Here's the meat of the function where i_pledge_number is an input parm:
    BEGIN
    SELECT /*+ INDEX (pp) */ SUM(pp.prim_pledge_amount)
    INTO return_amount
    FROM
    primary_pledge pp
    WHERE
    -- Get total if multiple allocations
    pp.prim_pledge_number IN
    (SELECT pc.pledge_number
    FROM pledge_codes pc
    WHERE pc.pledge_code_type = 'M'
    AND pc.pledge_code = 'AC'
    AND lpad(pc.pledge_comment,10,'0') = i_pledge_number)
    -- Get total if single allocation
    OR pp.prim_pledge_number = i_pledge_number;
    RETURN return_amount;
    END;
    If I comment out either half of the OR statement (either the subquery or the pp.prim_pledge_number = i_pledge_number half) the function returns a value in .02 seconds. If I leave the OR in, it takes 2.764 seconds to execute?? Can someone please show me a better way (faster) to do this? I tried using nvl() around the subquery but couldn't get it to compile.
    Thanks

    These things are difficult to diagnose remotely, but here is something you can try....
    SELECT */ SUM(pp.prim_pledge_amount)
    INTO return_amount
    FROM   primary_pledge pp
    WHERE  pp.prim_pledge_number IN (SELECT pc.pledge_number
                                     FROM pledge_codes pc
                                     WHERE pc.pledge_code_type = 'M'
                                     AND pc.pledge_code = 'AC'
                                     AND lpad(pc.pledge_comment,10,'0') = i_pledge_number
    UNION ALL
    SELECT i_pledge_number FROM dual)
       RETURN return_amount;
    END;If that doesn't do anything (and it might well not) there are a large number of different ways we can recast this query. To save us further guessing please give us more details: execution plans, database version number, volumetrics.
    Cheers, APC

  • A trouble with "LIKE" in a select statement

    Hi!
    I'm having trouble with "LIKE" in a select statement...
    With Access I can make the following and everything works well:
    SELECT name, birthday
    FROM client
    WHERE birthday LIKE '*/02/*';
    but if try to do it in my application (it uses Access), it doesn't work - I just can't understand that!!!
    In my application the "month" is always the currently month taken from the "System". Look what I'm doing...
    String query1 = "SELECT name, birthday " +
              "FROM client " +
              "WHERE birthday " +
              "LIKE '*/" +
              pMonth +
              "/*' " +
              "ORDER BY birthday ASC ";
    ResultSet rs = statement1.executeQuery(consulta1);
    boolean moreRecords = rs.next();
    The variable "moreRecords" is always "false", the query returns nothing although the table "client" has records that attend the query.
    Please, anyone can help me?! It's a little bit urgent.
    Thanks,
    Katia.

    Hi Katia,
    I'll bet the problem lies with the characters you're using to escape the LIKE clause. You're using the ones that Access likes to see, but that's not necessarily what's built into the JDBC-ODBC driver class.
    You can find out what the correct escape wildcard characters are from the java.sql.DatabaseMetaData.getSearchStringEscape() method. It'll tell you what to use in the LIKE clause.
    I'm not 100% sure about your code. It doesn't use query1 anywhere. I'd do this:
    String query = "SELECT name, birthday FROM client WHERE birthday LIKE ? ORDER BY birthday ASC";
    PreparedStatement statement = connection.createStatement(query);
    String escape = connection.getMetaData().getSearchStringEscape();
    String test = escape + '/' + pMonth + '/' + escape;
    statement.setString(1, test);
    ResultSet rs = statement.executeQuery();
    while (rs.hasNext())
    // load your data into a data structure to pass back.
    rs.close();
    statement.close();Let me know if that works. - MOD

Maybe you are looking for