Rick Roberts

Ranch Hand
+ Follow
since Apr 07, 2005
Rick likes ...
Hibernate Redhat Java
Merit badge: grant badges
For More
Tampa, Florida
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rick Roberts

Eclipse and JBoss.
JBoss even bundles it all together for you in their "Developer Studio" product.
12 years ago
It's impossible to say what the problem is without more info, but....

I always keep a copy of Apache Axis-1 and also Apache Axis-2 on hand because I often find older WSDLs that "wsimport" can't consume.

Try using Apache Axis-2 "wsdl2java", if that doesn't work then try Axis-1 "wsdl2java".
One of them will probably be able to consume it.
12 years ago

I'm not sure I'm posting in the best place, but...

Is SCWCD 6 (Sun exam CX-310-085) now available?
I have not seen any discussion about it here at the Ranch, but found this at Oracle Exams Voucher Page

Course Topics:

Java SE (Programmer)
Exam 1Z0-850: Java Standard Edition 5 and 6, Certified Associate Exam (formerly Sun exam CX-310-019)
Exam 1Z0-851: Java Standard Edition 6 Programmer Certified Professional Exam (formerly Sun exam CX-310-065)
Exam 1Z0-853: Java Standard Edition 5 Programmer Certified Professional Exam (formerly Sun exam CX-310-055)
Exam 1Z0-854: Java Standard Edition 5 Programmer Certified Professional Upgrade Exam (formerly Sun exam CX-310-056)

Java EE
Exam 1Z0-856: Java Standard Edition 6 Developer Certified Master Essay Exam (Step 2 of 2) (formerly Sun exam CX-310-027)
Exam 1Z0-855: Java Standard Edition 6 Developer Certified Master Assignment (Step 1 of 2) (formerly Sun exam CX-310-252A)
Exam 1Z0-857: Java Standard Edition 6 Developer Certified Master Assignment for Resubmission (formerly Sun exam CX-310-252R)

Web Component Developer
Exam 1Z0-858: Java Enterprise Edition 5 Web Component Developer Certified Professional Exam (formerly Sun exam CX-310-083)
Exam 1Z0-859: Java Enterprise Edition 5 Web Component Developer Certified Professional Upgrade Exam (formerly Sun exam CX-310-084)
Exam 1Z0-894: Java Platform, Enterprise Edition 6 JavaServer Pages and Servlet Developer Certified Professional Exam (formerly Sun exam CX-310-085)

Business Component Developer
Exam 1Z0-860: Java Enterprise Edition 5 Business Component Developer Certified Professional Exam (formerly Sun exam CX-310-091)
Exam 1Z0-861: Java Enterprise Edition 5 Business Component Developer Certified Professional Upgrade Exam (formerly Sun exam CX-310-092)
Exam 1Z0-895: Java Platform, Enterprise Edition 6 Enterprise JavaBeans Developer Certified Professional Exam (formerly Sun exam CX-310-093)
Exam 1Z0-898: Java Platform, Enterprise Edition 6 Java Persistence API Developer Certified Professional Exam (formerly Sun exam CX-310-094)

Developer for Java Web Services
Exam 1Z0-862: Java Enterprise Edition 5 Web Services Developer Certified Professional Exam (formerly Sun exam CX-310-230)
Exam 1Z0-863: Java Enterprise Edition 5 Web Services Developer Certified Professional Upgrade Exam (formerly Sun exam CX-310-231)
Exam 1Z0-897: Java Platform, Enterprise Edition 6 Web Services Developer Certified Professional Exam (formerly Sun exam CX-310-232)


If this is true, then Bryan, Kathy, Bert.... when can I buy your new book?? !!
See these lines in your build.xml?

Your error is saying that ${classname} has not been supplied.

Although, I'm not sure why your <echo> message didn't print its message.
Probably need a "depends=classname-check" somewhere, but I'm thinking that you can get past this error if you just:


Specify -Dclassname=<classname> where <classname> is a fully qualified classname


Which means that you just need to pass java an argument called "classname".
i.e java -Dclassname="myClassName"

Or tell NetBeans to do it.
12 years ago
Well... I see this about 3 weeks after you posted it, so you have probably moved on by now, but just for reference.

JBoss generally uses these ports for RMI (although they can be changed by configuration):
1098 - RMIActivation
1099 - RMIRegistry

You may also need these if your using JNDI to find the services endpoint:
3873 - JNDI
3843 - JNDI SSL
12 years ago
Try putting the war file in your context root (i.e. 1 directory up from WEB-INF, i.e. cd to WEB-INF then "cd ..")
Then put "UserInfo.class" AND IT'S COMPILED INNER CLASS "FirstLogin.class" in the "WEB-INF/classes/org/opengts/war/track/pages/" directory.

Question: Is it "track/page" OR is it "track/pages"?

Then jar -uf track.war WEB-INF/classes/org/opengts/war/track/pages/UserInfo.class

Check to see if all of your class files are in the right place by using "jar -tf track.war".
12 years ago
I can't think of many good reasons for implementing runnable for a servlet.

If it's just because you have a long running task?

dataGetter.sleep(1000*30);



Since your already using JBoss, you may want to look at using a Message Bean (MDB) to make the request for data, then have your client check back later to see if the request has completed.
12 years ago
This should work for updating your war file:

jar uf jar-file input-file(s)


I work mostly in Unix/Linux environments, so I always use jar instead of zip.
Take a look at this: Update Jar File

I did also notice this waring about using zip:


JAR files are built on the ZIP file format. Computer users can create or extract JAR files using the jar command that comes with a JDK. They can also use zip tools to do so; however, caution should be exercised as to the order of entries in the zip file headers as the manifest likely needs to be first.


Ref: Wikipedia - Jar File

Ant also has a Jar Task, but I have never used it for just doing a simple update.

Good Luck
12 years ago
Show us your build.properties file.
12 years ago
Hmmm.... where to begin?
Tomcat Context Reference

I also saw an interesting thread here:
ROOT Context Discussion

HTH,
Rick
12 years ago
Can you get the "compile" to complete?
Try this at the command line:


I have not worked with NetBeans in a long time, but there is a way to select a target using it, instead of just going with the default.
If you can't figure it out, then you can change the 1st line in your build.xml from:

to this:


Also, this looks suspicious at line 113:

Actually, this looks like it could be your problem. The error looks like a classpath related message.
That value is probably being set in your build.properties file.
Take a look at build.properties and double check your values.
12 years ago
Alright. Don't hate on me if this is not perfect. Wife has me Bar-B-Que'ing, so in a rush.

Assuming these 2 Interfaces, 1 Local and 1 Remote:

MyWebServiceLocal.java:


MyWebServiceRemote.java:



Also assuming this webservice:


This client code should work:




You may also need a jndi.properties file that has a line something like:
java.naming.provider.url=localhost:1099

Google it for details.


This may not be exactly complete, but it should get you on the right path.

Bar-B-Que is calling.
Good Luck.
O.K. I just re-read your question.
Now I interpret it to mean that you are trying to consume a Coldfusion Web Service.
My post was all about how to consume one using a Coldfusion client.

Give me a bit to collect my thoughts and I will follow up with some "Java client" related ramblings.

Apologies.
Coldfusion does it all for you.
All you need is something like:

Then just call your method with something like:
myResponse = myWS.someMethod(someRequestObject)

That's it.

The only tricky part is:
You need to make sure that you populate your request object "exactly" as described in the WSDL.
Or else you will get an error that says your method signature does not match.

The response object is automagically created for you by CF.

Coldfusion also has another way to create a webservice client also by using the <cfinvoke> tag.
Google it, but it goes something like:


Some other stuff that may be helpful:
CF7 uses Apache Axis-1.
CF8 & 9 use Apache Axis-2.

Just Google something like:

There are tons of examples.

Good Luck.
I think you will find what you seek, here:
WebServicesFAQ