Solved

JBoss 4.2.3 War file deployed but error of "No WSDL"

Posted on 2010-09-07
8
579 Views
Last Modified: 2012-06-27
Hello,

As the title suggest I have made my war file in eclipse and I am trying to get it to work on JBoss.
This is an experiment.
I have moved the war file to the correct deploy folder and in fact the war file shows up in
JBoss view. When I try to use the contained service via browser I get "No WSDL found error".
This is curious...

Thank You
0
Comment
Question by:dennisk1718
  • 6
  • 2
8 Comments
 
LVL 40

Expert Comment

by:gurvinder372
Comment Utility
what is your technology stack? Using EJB or axis2?
Wondering how did you managed to deploy services inside a war.
0
 

Author Comment

by:dennisk1718
Comment Utility
hello,

I am just using JBoss as an App server. I just copy'ed war file over to dir.
and it show up in "Full tomcat Status' entry from JBoss screen. I am running on Windows XP

Thanks
0
 
LVL 40

Accepted Solution

by:
gurvinder372 earned 500 total points
Comment Utility
are you using jax-rpc based services in that war file?
something like this?
http://www.artima.com/lejava/articles/threeminutes.html
http://download.oracle.com/javaee/1.4/tutorial/doc/JAXRPC3.html

are you able to access the wsdl file when you put the end-point on the browser?
0
 

Author Comment

by:dennisk1718
Comment Utility
here is code...
--------------------------------------------------
import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.jws.soap.SOAPBinding.Style;

/**
 * Interface TimeServer specifies the interface for a time server as a web
 * service.
 * <P>
 * From Martin Kalin, <I>Java Web Services: Up and Running</I> (O'Reilly, 2009),
 * page 5.
 */
@WebService
@SOAPBinding (style = Style.RPC)
public interface TimeServer
      {
      /**
       * Return the current time as a string.
       */
      @WebMethod public String getTimeAsString();

      /**
       * Return the current time as the number of milliseconds since midnight
       * 01-Jan-1970 UTC.
       */
      @WebMethod public long getTimeAsElapsed();
      }
--------------------------------------

This would indicte that JAX-RPC is being used, I believe....

Thank You
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:dennisk1718
Comment Utility
Hello,

I have this coded example runnning from the command line. I want to get it working from JBoss now...

Thank you
0
 

Author Comment

by:dennisk1718
Comment Utility
Hello,

I am working on Ch 12 of JBoss 4.0 book examnple nad I see some modifications I nee dto make.

Let me put this question on hold for a few.....

Thank You
0
 

Author Comment

by:dennisk1718
Comment Utility
Hello,

I see now that there are new developments in JBoss land.

There are 3 JAX-WS implementations:

Native, Apache CXF and Glassfish.

I now iknbow that my Project is using Apache CXF.
 Now, my question is properly framed....

Any ideas on changes to above code?

0
 

Author Comment

by:dennisk1718
Comment Utility
Hello,
I have found the best example so far on writing a new Web Servcei in Java:

http://www.ibm.com/developerworks/webservices/tutorials/ws-jse/ws-jse-pdf.pdf

and it works..Now the problem is to move the application from eclipse Internal Server, probably tomcat, to JBoss 4.2.3.

Any hints?

Thank You
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now