Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
josemarcam opened this issue Apr 23, 2019 · 0 comments
Open

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

josemarcam opened this issue Apr 23, 2019 · 0 comments

Comments

@josemarcam
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant