Skip to content

Trying to use the web service for upload file. #1

@josemarcam

Description

@josemarcam

I don't know who to fix this error,I'm using Glassfish 5 and NetBeans 11. I'm using the exactly same code and getting this error :

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.http.impl.client.AbstractHttpClient.<init>(AbstractHttpClient.java:187) at org.apache.http.impl.client.DefaultHttpClient.<init>(DefaultHttpClient.java:141) at cobranca_varredura.UploadTest.main(UploadTest.java:36) Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 3 more /Users/josemartins/Library/Caches/NetBeans/11.0/executor-snippets/run.xml:111: The following error occurred while executing this line: /Users/josemartins/Library/Caches/NetBeans/11.0/executor-snippets/run.xml:94: Java returned: 1 BUILD FAILED (total time: 0 seconds)

All the libs I'm using are in 4.2.5 version and the web service code is the same, I've already checked the Url I'm trying to access but it's the same as the web service. I don't know what im looking for

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions