Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / April 2007

Tip: Looking for answers? Try searching our database.

Jboss problems

Thread view: 
Il Solco Vinilico - 27 Apr 2007 09:57 GMT
Hello to everybody,

I have a problem:
I have create a web server with jboss e jax-rpc.
the server web is ok, and when I put this address in the browser

http://localhost:8080/MioWebServer/WebService?WSDL

I can see the xml page.

After I created an application client, with the file WSDL
http://localhost:8080/MioWebServer/WebService?WSDL and I wrote
this simple class:

-------------------------------------------------------------------------------
package javaapplication24;

import clientService.*;
import javax.xml.rpc.Stub;
/**
*
* @author admin
*/
public class Main {

   public static void main(String[] args) {
       try{
           Stub stub = creaProxy();
           stub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY,"http://localhost:8080/MioWebServer/WebService");
           WebServiceSEI classe = (WebServiceSEI)stub;
           String saluto = classe.saluta("Gino");
           System.out.println(saluto);
       }catch(Exception ex){
           ex.printStackTrace();
       }
   }

   private static Stub creaProxy(){
       return (Stub)(new WebService_Impl().getWebServiceSEIPort());
   }
}
------------------------------------------------------------------------------------

when I compiling that, is all ok, but if I esecute the program I have this
error:

**** errore ****

run-single:
java.rmi.ServerException: Endpoint cannot handle requests in state: CREATED
       at
com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:510)
       at
com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:307)
       at
clientService.WebServiceSEI_Stub.saluta(WebServiceSEI_Stub.java:69)
       at javaapplication24.Main.main(Main.java:26)
BUILD SUCCESSFUL (total time: 4 seconds)

***************

I'm working on that since two days, do you have soma idea for solving this
problem?
:-(
Philipp Taprogge - 27 Apr 2007 19:36 GMT
Hi!

> **** errore ****
>
> run-single:
<snip>
It would be more helpful to have a look at the jboss server log.
Your client just gives you the error it got from jboss. Why the
error occurred and the stacktrace can only be found in the server's
log. Maybe the service did not even deploy correctly...

Regards,

    Phil


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.