?
Solved

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

Posted on 2010-09-07
8
Medium Priority
?
594 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 2
8 Comments
 
LVL 40

Expert Comment

by:Gurvinder Pal Singh
ID: 33617171
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
ID: 33617254
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:
Gurvinder Pal Singh earned 2000 total points
ID: 33617324
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:dennisk1718
ID: 33617368
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
 

Author Comment

by:dennisk1718
ID: 33617475
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
ID: 33617649
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
ID: 33638947
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
ID: 33695177
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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.
Suggested Courses
Course of the Month9 days, 15 hours left to enroll

762 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