NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Java Project with Web Service Reference Fails Outside Netbeans

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
Peazy



Joined: 27 Oct 2011
Posts: 1

PostPosted: Thu Oct 27, 2011 6:28 pm    Post subject: Java Project with Web Service Reference Fails Outside Netbeans Reply with quote

Hello, I'm having a problem running a Java project from outside Netbeans. It seems I'm not the only one:

Unable to run Java application outside of IDE
Application works fine on netbeans but not after exporting to jar
Project will not run from command line

Now I understand and very much appreciate that Netbeans is free, but the 'help' provided in these threads is...lacking. "Be sure you have done a Clean & Build"...??? If there is a simple fix, I would love to hear it, as this is blocking me at work here from deploying an application on time. The reason I came to NetBeans to begin with was the wonderful ability to simply right click->new->Web Service Client (as I can easily do in VisualStudio 2010), but this is rather frustrating--what use is it to me if I can only run everything from within Netbeans. I've posted some details below.

Any help greatly appreciated!

Details:
*Netbeans 7.0.1 (Build 201107282000)
*Java 1.6.0_26; Java HotSpot 64-Bit Server VM 20.1-b02
*Linux 2.6.32-5-amd64 (although the application failed from Win7 and Win2008 as well)
*I have one Web Service referenced (a.k.a a single WSDL url)
*Running from NetBeans is just fine--however, after following the instructions for deployment (copy whole 'dist'+'dist/lib' folder, run 'java -jar MY_JAR.jar') it fails on Linux and Windows
*The failure is from a null reference--the null reference is the port returned from the service (i.e. myService.getServicePort() returns a null object)--is this something dealing with METRO? METRO is added to my project as both a compile time & runtime jar, and all *.jars are in the lib folder

Basically I'm wondering if anyone has suggestions beyond 'clean + build' or 'check the encoding for OutputStreamWriter()'...
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo