Problem with commons-fileupload library.

Hello,
I'm using the following code to try and upload files to my Tomcat server from HTTP clients. The code is inside a JSP page. When I submit the form to this jsp page, I get no errors but the file is not being uploaded and the only out.println statement that is printing is the first one that tests if the form is multi-part. It prints true.
     boolean isMultipart = FileUpload.isMultipartContent(request);
     out.println("" + isMultipart);
     if (isMultipart) {
          DiskFileUpload upload = new DiskFileUpload();
          upload.setSizeThreshold(2000000);
          upload.setSizeMax(5000000);
          int sizeThresh = 2000000, sizeMax = 5000000;
          String dir = "c:/temp";
          List items = upload.parseRequest(request, sizeThresh, sizeMax, dir);
          Iterator iter = items.iterator();
          while (iter.hasNext()) {
               FileItem item = (FileItem) iter.next();
               out.println(item.getFieldName());
               if (item.isFormField()) {
                    continue;
               else {
                    String fieldName = item.getFieldName();
                    String fileName = item.getName();
                    String contentType = item.getContentType();
                    boolean isInMemory = item.isInMemory();
                    long sizeInBytes = item.getSize();
                    out.println("Info: " + sizeInBytes + " " + contentType + " " + fileName + " " + fieldName);
                    File uploadedFile = new File("test.txt");
                    item.write(uploadedFile);
     } Any idea what my problem is?
Thanks.

Sorry to keep posting but this gets more complex. Here's the deal.
The UploadBean works on both Tomcat 4 and Tomcat 5 as long as the code below has not been called yet for the user's session. It is code that asks the browser for authentication. Once this code has been called for the current session, the Upload Bean no longer works.
Any idea what would cause this?
package com.biscuit.servlets;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
* NTLM authorization (Challenge-Response) test servlet.
* Requires IE on the client side.
* In order to avoid browser log on dialog box User Authentication/Logon
* settings should be set to:
* <ol>
* <li>Automatic logon in Intranet zone or</li>
* <li>Automatic logon with current username and password</li>
* </ol>
* Based on information found on jGuru WEB site:
* http://www.jguru.com/faq/viewquestion.jsp?EID=393110
* @author Leonidius
* @version 1.0 2002/06/17
public class NTLMTest extends HttpServlet{
     // Step 2: Challenge message
     final private static byte[] CHALLENGE_MESSAGE =
          {(byte)'N', (byte)'T', (byte)'L', (byte)'M', (byte)'S', (byte)'S', (byte)'P', 0,
          2, 0, 0, 0, 0, 0, 0, 0,
          40, 0, 0, 0, 1, (byte)130, 0, 0,
          0, 2, 2, 2, 0, 0, 0, 0, // nonce
          0, 0, 0, 0, 0, 0, 0, 0};
     * HTTP request processing
     protected synchronized void service(HttpServletRequest request,
          HttpServletResponse response)
          throws IOException, ServletException{
          PrintWriter out = response.getWriter();
          try{
               String auth = request.getHeader("Authorization");
               if (auth == null) {
                    response.setContentLength(0);
                    response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
                    response.setHeader("WWW-Authenticate", "NTLM");
                    response.flushBuffer();
                    return;
               if (!auth.startsWith("NTLM ")) return;
               byte[] msg = new sun.misc.BASE64Decoder().decodeBuffer(auth.substring(5));
               // Step 1: Negotiation message received
               if (msg[8] == 1) {
                    // Send challenge message (Step 2)
                    response.setContentLength(2);
                    response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
                    response.setHeader("WWW-Authenticate",
                    "NTLM " + new sun.misc.BASE64Encoder().encodeBuffer(CHALLENGE_MESSAGE));
                    out.println(" ");
                    response.flushBuffer();
                    return;
               // Step 3: Authentication message received
               if (msg[8] == 3) {
                    int off = 30;
                    int length, offset;
                    length = (msg[off+1]<<8) + msg[off];
                    offset = (msg[off+3]<<8) + msg[off+2];
                    String domain = new String(msg, offset, length);
                    domain = removeBlanks(domain).toUpperCase();
                    length = (msg[off+9]<<8) + msg[off+8];
                    offset = (msg[off+11]<<8) + msg[off+10];
                    String user = new String(msg, offset, length);
                    user = domain + "\\" + removeBlanks(user).toUpperCase();
                    HttpSession session = request.getSession(true);                    
                    session.setAttribute("userID", user);                    
                    String forwardAddress = "home";     
                    RequestDispatcher dispatcher = request.getRequestDispatcher(forwardAddress);
                    dispatcher.forward(request, response);
//                    length = (msg[off+17]<<8) + msg[off+16];
//                    offset = (msg[off+19]<<8) + msg[off+18];
//                    String ws = new String(msg, offset, length);
//                    ws = removeBlanks(ws);
//                    response.setContentType("text/html");
//                    out.println("<html>");
//                    out.println("<head>");
//                    out.println("<title>NT User Login Info</title>");
//                    out.println("</head>");
//                    out.println("<body>");
//                    out.println(new java.util.Date() + "<br>");
//                    out.println("Server: " + request.getServerName() + "<br><br>");
//                    out.println("Domain: " + removeBlanks(domain) + "<br>");
//                    out.println("Username: " + removeBlanks(user) + "<br>");
//                    out.println("Workstation: " + removeBlanks(ws) + "<br>");
//                    out.println("</body>");
//                    out.println("</html>");
          catch (Throwable ex){
               ex.printStackTrace();
     }//service
     * Removes non-printable characters from a string
     private synchronized String removeBlanks(String s){
          StringBuffer sb = new StringBuffer();
          for (int i = 0; i < s.length(); i++) {
               char c = s.charAt(i);
               if (c > ' ')
               sb.append(c);
          return sb.toString();
}//class NTLMTest

Similar Messages

  • Problem with Commons FileUpload and ssl

    Hi,
    i want to send to servlet mulipart form data using ssl:
    this is my html page:
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>simple form page</title>
        </head>
        <body>
            <form method="POST" enctype="multipart/form-data" action="SimpleResponseServlet">
                <br><input type=file name=upfile></input></br>
                <br><input type=text name=note></input></br>
                <br><input type=submit value=Press></input></br>
             </form>
         </body>
    </html>This is code from SimpleResponseServlet:
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
       response.setContentType("text/plain;");
       PrintWriter out = response.getWriter();
       boolean isMultipart = ServletFileUpload.isMultipartContent(request);
       System.err.println(isMultipart);
       try{
                FileItemFactory factory = new DiskFileItemFactory();
                ServletFileUpload upload = new ServletFileUpload(factory);
                List items = upload.parseRequest(request);
             Iterator iter = items.iterator();
                while(iter.hasNext())
                     FileItem item = (FileItem) iter.next();
                     System.out.println(item.getContentType());
                     System.out.println(item.getFieldName());
                     System.out.println(item.getName());
                     System.out.println(item.isFormField());
           out.println("ok");
      catch(Exception ex){
       System.out.println(ex.toString());
      finally{ 
        out.close();
            this is what Tomcat 6.0 console show using https to call servlet:
    false
    org.apache.commons.fileupload.FileUploadBase$InvalidContentTypeException:the request doesn't contain a multipart/form-data or multipart/mixed-stream, content type header is null.if i use normal http servlet works fine.
    Help me, please.
    Thank you,
    David.

    I have replaced in html page this attribute:
    action="SimpleResponseServlet"with this:
    action="https://localhost:8443/ProvaImageReaderServlet/SimpleResponseServlet"and servlet can read items because there's not redirecting.
    But is it a clear way call directly servlet with https???
    Thank you....

  • Problem with commons.fileupload

    I'm using Tomcat 4.1 and before I couldn't get the compiler to find the package until I put it in my %JAVA-HOME%\jre\lib\ext folder. After I did that I could compile just fine. Now when I try uploading a file I get 'NoClassDefFoundError'. I read that this is because I have the jar file in both the %JAVA-HOME% and WEB-INF\lib . I tried running it without having it in %JAVA-HOME% and it made no difference. If anyone can help I would really appreciate it. Thanks.

    I suggest taking a look at the user guide, they do some things differently than you do:
    http://jakarta.apache.org/commons/fileupload/using.html

  • Problems with loading native library/missing methods: no ttJdbcCS1121

    Hi guys,
    Im getting this problem in glassfish 2.1, but in glassfish 3 or in tomcat, i dont get this problem. (Windows)
    Any thoughts?
    java.sql.SQLException: Problems with loading native library/missing methods: no ttJdbcCS1121 in java.library.path
    at com.timesten.jdbc.JdbcOdbcConnection.connect(JdbcOdbcConnection.java:1750)
    at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java:305)
    at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java:161)
    at java.sql.DriverManager.getConnection(DriverManager.java:525)
    at java.sql.DriverManager.getConnection(DriverManager.java:193)
    at com.summitinvt.mdaq.db.handler.DBConnector.getConnection(DBConnector.java:108)
    at com.summitinvt.mdaq.db.handler.DBConnector.initiateConnection(DBConnector.java:101)
    at com.summitinvt.mdaq.db.handler.DBConnector.<init>(DBConnector.java:34)
    at com.summitinvt.mdaq.db.handler.DBConnector.<init>(DBConnector.java:14)
    at com.summitinvt.mdaq.db.handler.DBConnector$DBConnectorUtil.<clinit>(DBConnector.java:24)
    at com.summitinvt.mdaq.db.handler.DBConnector.getInstance(DBConnector.java:28)
    at com.summitinvt.mdaq.rats.server.CommunicatorImpl.getPnLByCurrency(CommunicatorImpl.java:1074)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:592)
    at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:562)
    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:207)
    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:243)
    at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:315)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
    at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
    at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:382)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)
    at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
    regards
    John

    A similar problem was reported before on this Forum - see
    Re: not able create connection to timesten
    checking the Release Notes I can see 11.2.1.8.0 has been tested against Glassfish 3 but I
    can't see any mention about Glassfish 2 in the v7 or v11 Release Notes (albeit only on a quick
    search).
    In my full install on XP, ttJdbcCS1121.dll is in C:\TimesTen\tt1121_32\bin

  • Problems with loading native library/missing methods:no ttJdbcCS in java.li

    Iam facing one problem while connecting the timesten client to the server The SQL Exception which Iam getting is pasted below:-
    Problems with loading native library/missing methods: no ttJdbcCS in java.library.path
    I am working with MAC OS X 10.7.2 and my timesten client version is 11.2.1.0
    I have also changed the Java Preferences from 64-bit to 32-bit but still whenever i tried to connect with the SQL Developer it gives me the above error.

    I just tried this out. My environment is OS X 10.7.4, Timesten (32-bit) client 11.2.1.9.0, SQL Developer 3.1.07, Oracle Java 1.7.0_04.
    The key things you need to be sure to do (in a terminal window) are:
    1. Be sure to . in the TimesTen environment script <tt_install_dir>/bin/ttenv.sh to set the full TT environment.
    2. Change directory to SQLDeveloper.app/Contents/Resources/sqldeveloper
    3. Run 'sh sqldeveloper.sh -J-d32'
    and all should be fine.
    Note that if you are using Java7 as I am then there is a step 1a. Change the CLASSPATH environment variable to specify ttjdbc6.jar not ttjdbc5.jar. For some reason running the app directly from Finder does not work even if you add -J-d32 into the sqldeveloper launch script. I'm still looking into that.
    Chris

  • Problems with loading native library missing methods ttJdbc1122.dll

    Problems with loading native library/missing methods: C:\TimesTen\tt1122_64\bin\ttJdbc1122.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform
    Hi,
    I have installed TimesTen 11.2.2 64-bit version on 64-bit windows 7.
    I have TimesTen 7 64-bit as well installed on my machice
    When trying to connect to TimesTen (Direct connection) using jdbc from eclipse, I get the following error "Problems with loading native library/missing methods: C:\TimesTen\tt1122_64\bin\ttJdbc1122.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform".
    The JDK version is 1.6.25 - 64 bit version.
    Please help me resolving this error.
    Thanks in Advance,
    Balamurugan

    Are you using SQL Developer?
    There is or used to be a restriction of only being able to using 32 bit. A suggestion might be to try the 32 bit client.

  • Problem with reusing saved library file due to iTunes version differences

    I was running iTunes on my Windows PC with Vista 64-Bit since March 17, 2009. Everything was fine until some operating system file got corrupted two days back, and Microsoft had to wipe out my hard drive and reinstall the Operating System to the factory settings.
    I did back up everything, including the iTunes Music files and the Library files to my external hard drive. But, I forgot to note the exact version of my Itunes, except I do remmebr that I had refused all attempts by iTunes over last month or so to install Ver. 8.2 becasue of some bad things I had read in this forum about some of the problems with 8.2. I had a record of the last version I had installed and it was 8.1.0.52.
    So, after the operatng system reinstaled, I downloaded iTunes 8.1.1 and installed it. I then copied the iTunes Music files and the libary file to the exatly same folder structure as before.
    I hold down the SHIFT key and start up iTunes. And, when I point to the Library file, iTunes says that the libray file can not be accessed because it was made by a newer version of iTunes! I just don't understand how that can be!
    In any case, I can use your advice as to what do I do next to be able to use my saved library and start using my iTunes and my iPod!
    Thank you.

    I downloaded and installed iTunes ver. 8.2.0.23 x64, and now, am very happy to say, that iTunes was able to read my library, and it did recognize my iPod just fine. That's the very good news.
    Now, the slight bad news. May be 100 or so, out of some 9000 tracks of music, appear with a '!' to the left of the track listing. It si becasue it does not find it? Why?
    Now, I do have to go back to my Album files and identify each of these. Can some one please help me out as to why this problem occured? I certainly did not move any songs to any place and the folder structure is identical to what they were before!
    Thank you.

  • Problem with loading native library in java version "1.5.0_05"

    My application uses a native coded drawing. With java version 1.4.xx it was working just fine but with java 1.5.xx it gives the following error at the time of loading native library:
    java.lang.UnsatisfiedLinkError: /home/abyzov/tmp/friend32-1.6.02/libfriend.so:
    /home/abyzov/tmp/friend32-1.6.02/libfriend.so: undefined symbol: XtWindowToWidget
    I assumed that java loads all necessary X-libraries at start up but it seems to be not true for version 1.5.xx. Does anybody now about this kind of problems? Should I report it as a bug?

    I have this exact same problem. I developed an application all along using 1.4.2_08 to be exact no problems. I was forced to switch to 1.5.0_06, now when I try to run the app I get:
    java.lang.UnsatisfiedLinkError: <path to library>/libcomlib.so: <path to library>/libcomlib.so: undefined symbol: yp_get_default_domain
    I have tried compiling it in both 1.4.2_8 and 1.5.0_06 and it compiles perfectly but when I run with 1.5.0_06 it messes up.
    If you found the problem with this or anyone else has any advice please let me know.

  • Problem with the math library functions

    Hi,
    I encountered a problem related to some functions provided by math library on sun. I narrowed it down to the following test program:
    ========================================================
    #include<stdio.h>
    #include<math.h>
    void pow_res()
    double x = 10.0;
    double y = 2.5;
    printf("pow(%.2e, %.2e):%.20e\n", x, y, pow(10.0, 2.5));
    void cos_res()
    double x = -6.433230338433114370e-02;
    printf("x:%.20e cos(x):%.20e\n", x, cos(x));
    int main()
    pow_res();
    cos_res();
    return 0;
    ========================================================
    The above test program has to be linked with any math library. It is �libm� for amd64/linux, but for sparc we have choice between �libm� and �libmopt�. I am compiling above program with "cc <test_program.c> <-lm/-lmopt>" command.
    On sparc, if the above test program is getting linked with �-lm" then it gives same results for the �cos� on both amd64 and sparc, but gives different results (16th decimal digit onward) for �pow�. If it is getting linked with �-lmopt� then it gives same result for the �pow� on both the platforms, but gives different results for �cos�. Linux results match with the amd64 results.
    The �Numerical Computation Guide� provided by SUN (ftp://docs-pdf.sun.com/802-5692/802-5692.pdf page 40, table 2.10 ) says that you can trust only 15-17 decimal digits for double calculation. But here the requirement is to match the sparc results exactly with the amd64/linux or at least match the result till 20th decimal digit. I guess it is something to do with the FPU setting either through compiler options or code. I tried many different compiler options, like -fast, different combinations of compiler options provided by -fast macro, but nothing helped.
    Following is the system configuration:
    Amd64:
    gcc version: 3.3.6
    OS: RedHat Enterprise Linux 3.0 U7 (Linux 2.4.21-40.ELsmp x86_64)
    Sparc:
    cc version: Sun C 5.8 Patch 121015-01
    OS: SunOS 5.9 Generic_118558-21 sun4u sparc SUNW,Sun-Fire-280R
    It will be great if somebody can explain the problem and the solution to get rid of it.
    Many thanks,
    Sunil

    Transcendental functions are not specified to be correctly rounded in the same
    sense as +-*/.     So it's entirely possible, and often observed, that libraries of equal
    quality deliver slightly different results.
    To simplify, suppose one wanted to compute x = 4*atan(1.0)
    which happens to be the
    transcendental number pi which is roughly, in hex and in decimali:
    .C90F DAA2 2168 C234 C... * 2^4 or 3.141592653589793239...
    But binary floating-point arithmetic can only represent certain rational numbers of
    the form of an integer of at most 53 significant bits times a power of two. The
    nearest double-precision number to pi is
    .C90F DAA2 2168 C * 2^4 or roughly 3.141592653589793116...
    This particular number has a large but finite decimal expansion. And if you
    do printf with %e.20 you will get the 20 decimal digits of that double-precision
    number's expansion, not the 20 decimal digits of pi, which only agrees to the
    15 significant decimals 3.141592653589793 and differs afterward.
    In the case of pow(10.0,2.5), (which happens to be sqrt(1.0e5))
    the correct result in hex looks something like
    .9E1D 276F D4BA C410 C... * 2^9 or roughly 3.162277660168379332...E+2
    in hex notation, while the closest double precision number is
    .9E1D 276F D4BA C8 * 2^9 or roughly 3.162277660168379612...E+2
    but it's only slightly closer than the next closest double precision number
    .9E1D 276F D4BA c0 *2^9 or roughly 3.162277660168379043...E+2
    Either answer is a good answer, and math libraries might that only aspire to
    deliver results that are close to correctly rounded might deliver either, depending
    on which approximation algorithm is used, which might depend on what's fastest
    on a particular processor.
    So why don't math libraries deliver correctly rounded results instead of almost?
    Because the slight extra increase in accuracy doesn't do much good for most
    people, and the major decrease in performance is noticeable by lots of people.
    The main payoff of correctly rounded transcendental functions is that they
    promote uniform numerical results across platforms, which is worth something
    to some people but not much to many people.
    So for those who find it worthwhile, there are correctly rounded transcendental
    function libraries available. Sun's development version is available at
    http://www.sun.com/download/products.xml?id=41797765
    Another solution for some people is to change double variables and functions
    to long double, using powl and cosl in the examples. That increases the
    accuracy to almost 20 digits on x86 and over 30 digits on SPARC, and while
    the same issues eventually arise, most users would never encounter them.
    The SPARC long double implementation is in software rather than hardware,
    and so entails a major performance reduction compared to double.
    The Numerical Computation Guide at docs.sun.com discusses many of these
    issues at greater length.

  • Problems with transferring iTunes Library to new iMac

    I am having a problem with transferring my iTunes library to my new iMac. I have read many of the suggestions posted in this forum along with numerous articles on other sites. I have not seen anyone describe my exact problem.
    When I got my new iMac, I used Migration Assistant to transfer everything (files, applications, settings, etc.) from my old iMac to the new iMac. On my old iMac, the iTunes music folder (i.e., the actual mp3s) are on an external HD, while the iTunes Library file (the database and xml files) were in the /user/Music/ folder on the old iMac.
    After the Migration Assistant was done, the /user/music/ folder and the library files were copied to the new iMac, but the iTunes music folder was not. It is still on the external HD.
    If I open iTunes on the new iMac, iTunes shows me all of my songs, but if I play one, I get the "song can't be found; do you want to find it" error. In iTunes preferences on the new iMac, the "iTunes music folder location" is the new iMac.
    I have the 2 iMacs connected by a firewire cable, but neither iMac recognizes the other computer as being on the same network. That is, in Finder on the new iMac, I cannot see the external HD of the old iMac.
    I can't change the library location on the old iMac, because the new iMac does not appear in Finder or in the "Change Music Folder Location" dialog box.
    I want to move the music folder (the actual mp3s) from the external HD of the old iMac to the INTERNAL HD of the new iMac. I don't need to keep them on the old IMac, as I will be selling that computer. Of course, I want to keep all my playlists, artwork, etc from the old library.
    Does anyone have a suggestion?
    Thanks.

    Never mind. Figured it out. I attached external HD to new iMac and consolidated. Duh.

  • J2ee.jar causes problems with commons-logging.jar

    Hi All -
    (JDK 1.5.0_03, commons-logging 1.0.4, latest j2ee.jar, Eclipse 3.1.0 RC3 )
    I am developing some components that are to be used within j2ee containers and in standalone mode as well. When I run the software under Tomcat, it works correctly (Tomcat is not using the j2ee.jar that comes with Sun's App server obviously), but when I develop with the j2ee.jar file that comes with Sun's App server, I can't use commons-logging. For example, the code supplied below (a class with only this line in the main method, not using any j2ee features) will fail JUST by having j2ee.jar in my path, but if I take it out of the path, it works fine. I am also on the commons-logging mail list and no one there has been able to solve this issue for me. Again, if I deploy my application to Tomcat, I don't have this problem.
    The isolated line that is giving me the issue (and will give the issue even in a non j2ee application that just has this one line) is this:
    log= LogFactory.getLog(CommonsLoggingTest.class);
    When I run this without j2ee.jar in the path, it works fine. When I run it with j2ee.jar in the path, I get this:
    Exception in thread "main" org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException) (Caused by org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException))
         at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
         at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
         at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
         at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
         at com.redhawk.testing.CommonsLoggingTest.doTest(CommonsLoggingTest.java:27)
         at com.redhawk.testing.CommonsLoggingTest.main(CommonsLoggingTest.java:45)
    Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException)
         at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)
         at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
         ... 5 more
    Caused by: java.lang.NullPointerException
         at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:374)
         ... 6 more
    Anyone have any ideas? Its really annoying to have to take this jar file out of my path every time I want to run a test. I could just start developing against other implementations of the j2ee classes I need (for example, Tomcat's jar files do not give this error) but for various reasons that is also undesirable.
    Thanks!
    Jason

    This problem does not arise with commons-logging 1.0.3.
    Any idea what is different in 1.0.4 that would introduce problems when Sun's j2ee.jar is in the path?

  • Problems with loading native library/missing methods: no ttJdbc1121 in java

    Hi,
    Can anyone help me? I keep getting this error when trying to start my jboss server. I have no problem with this when i run my standalone java application. My jboss version is 4.2 and my timesten version is 11.2.1.6.1 . My oracle version is 10G express edition. Any ideas?
    Thank you very much.

    The TimesTen JDBC driver is not a pure Java driver. It requires to load several native code libraries. Most appservers have to be told what directories to search for those libraries (a bit like the O/S LD_LIBRARY_PATH variable). This error occures when you have not told the appserver where to look to find hte native code libraries (<tt_install_dir>/lib).
    I'm not a JBOSS expert so I can't advise you on this; you need to consult the JBOSS documentation to find out what parameter/setting you need to modify to fix this.
    Chris

  • Sync problem with the audio library

    Hi,
    I'm having problems with iMovie. The libraries of sound effects and itunes are always blank. I have several songs on itunes, but they are not found by imovie.
    When I browse the directories of the application, I see several files sound effects, but they are not displayed within the program.
    The problem started after I upgrade from version 9 to version 10.
    I already excluded and reinstalled the app, but the problem continues.
    Any idea to solve this problem?
    thank you

    'onglet' - great, my favorite when visiting restaurants in France!
    Anyway, I think you have to activate Advanced tools first:
    http://help.apple.com/logicpro/mac/10/#lgcp5cbf192f
    Have a nice day!

  • Serious problem with iTunes: Entire library lost!!!!!!!!!!!!!!!

    I recently de-installed Norton System works from my PC and installed Kaspersky Anti-Virus 6.0. It took a while to remove Norton so I left it over night. Well last night when I opened my iTunes, I noticed my entire library is now missing and I can't seem to find it on my PC. I also want to try to connect my iPod to my PC and maybe recover at least some of my songs and re-create a new library. If someone has any info on that, it would be appreciated as well. It almost seems as though Norton removed it during the de-installation process. I am very upset about this since I had over 500 songs on the library including my over 200 songs downloaded from iTunes. Please let me know what has happened here. Also to note, I do not leave my PC connected to the internet when I'm not using it so I do not believe someone came past the firewall and erased the lirary over night.

    Hi, dgmunch.
    Although your iTunes Library display is blank, your song files may still on your hard drive.
    Have a look at this article in the Apple Knowledge Base for some ideas on how to find them, changing file extensions in the search as is necessary (i.e. .mp3 or .m4a.)
    If you find the files,then something is most likely amiss with your iTunes Library files which are needed for iTunes to know the contents of your Music Library and where the files that make it up are located.
    If you don't have a back-up copy of the iTunes library files, you will have to make use of this article in the Apple Knowledge Base.
    But if there is no sign of the files on your hard drive, then you will want to have a look at Zevoneer's post.

  • Various problems with Itunes and library

    Please can someone help I purchased an album off of Itunes the other day (I am using a a mac osX Leopard and the latest version of Itunes) while downloading I had to close programme. The next day I started the downloads again via check for purchases. As downloading every track came up with a -50 error then itunes locked up.
    When I reopened Itunes and checked for purchased items the tracks that had not yet been downloaded have disappeared and it cam up with an error library file is not recognised will be name it damaged.
    Today I have downloaded another album but apart from 1 song it only plays about 30 - 60 seconds dependent on which track you select also now with I drag movie files to itunes they do not appear, however this always worked for me previously.
    Do I have to remove Itunes from my mac and re-install and can I get my purchased tracks back if I do this?

    Have you restored the iPod to ensure it is completely empty before reloading your music from iTunes?
    See: How to restore the iPod to factory settings.

Maybe you are looking for

  • Schedule background job using system variant

    Dear gurus, We're planning to schedule background job using system variant, for example, current fiscal year and current posting period (transaction AFAB). Is it possible? So for example, for this month, "Posting Period" value will be 6, and then nex

  • How to execute unix command from ODI Procedure

    Hi, I am trying to execute below unix command from ODI Procedure (Command on Target tab) but I am getting the error "java.io.IOException: Cannot run program "cd": error=2, No such file or directory" but when I try to execute the same command using Od

  • Error creating database

    Hi friends, I was creating a database (8.1.7) with the Database Configuration Assistant (Windows XP) and it generated an error in step 2 (creation of DB). The error: ORA-12560: TNS error in protocol adapter I tried to save in a script the creation pr

  • Lumia 930 won't detect LTE

    Hello I'm on Rogers network in Canada. It says they use the 2600 mhz range or band 7. Do all Lumia 930 support this range. Currently my phone only shows the 4g symbol, not LTE. Any suggestions? Thanks V Nokia 3395 Nokia 6600 Nokia N95 8GB Nokia N8 (A

  • Oracle Reports server 10g shutting down and starting automatically

    Hi , My 10g Reports server runs on Redhat v4.0 . From few days reports server log show that Reports Server is shut down and starts up automatically. ------- log ------- *** 2007/8/28 7:26:21:353 -- Shutting down engine rwEng-0 *** 2007/8/28 7:26:21:3