Java 6 JBoss WebService - Fehlermeldung

friedak

Grünschnabel
Hallo,

ich habe einen WebService mit Java 6 und JBoss erstellen wollen und habe folgende Fehlermeldung bekommen. Kann mir jemand bei der Auswertung helfen?

Code:
Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/kernel/Kernel
	at org.jboss.ws.core.server.ServiceEndpointManagerFactory.getServiceEndpointManager(ServiceEndpointManagerFactory.java:52)
	at org.jboss.ws.core.jaxws.spi.EndpointImpl.publish(EndpointImpl.java:155)
	at org.jboss.ws.core.jaxws.spi.EndpointImpl.publish(EndpointImpl.java:129)
	at org.jboss.ws.core.jaxws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:82)
	at javax.xml.ws.Endpoint.publish(Unknown Source)
	at webservice.PublishWsOnServer.main(PublishWsOnServer.java:11)


dazu die Klassen:
Code:
package webservice;

import javax.jws.*;
import javax.jws.soap.SOAPBinding;

@WebService(name="ChrisWebServices")
@SOAPBinding(style = SOAPBinding.Style.RPC)
public class MyWebServices
{
@WebMethod
public String hello( String name )
{
return "Hello " + name + "!";
}

@WebMethod(operationName="body-mass-index")
@WebResult(name = "your-bmi")
public double bmi( @WebParam(name="height") double height,
@WebParam(name="weight") double weight )
{
return weight / (height * height) / 100 * 100;
}
}

Code:
package webservice;


import javax.swing.JOptionPane;
import javax.xml.ws.Endpoint;

public class PublishWsOnServer
{
public static void main( String[] args )
{
Endpoint endpoint = Endpoint.publish( "http://localhost:8080/services",
new MyWebServices() );
JOptionPane.showMessageDialog( null, "Server beenden" );
endpoint.stop();
}
}
Danke, friedak
 

Neue Beiträge

Zurück