[JBoss/Spring Integration] - Re: boot strapping spring inside Jboss
by hungtru
Hi there.
Yeah, I'm trying to use spring with a web app.
I have a collection of enties extending from AbstractMarshallingPayloadEndpoint and one particular from a ServletContextListener (which i am using to start up a bunch of stuff).
So, my web.xml contains:
<web-app
version="2.4"
id="WebApp_ID">
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener-class>
<display-name>MyServerListener</display-name>
<listener-class>com.my.MyServletContextListener</listener-class>
<!-- take especial notice of the name of this servlet -->
<servlet-name>spring-ws</servlet-name>
<servlet-class>
org.springframework.ws.transport.http.MessageDispatcherServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
<servlet-mapping>
<servlet-name>spring-ws</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>
I put a break point inside the class, but it never gets created.
All this is wrapped inside a war and deployed inside JBoss. The same war deployed inside WAS starts up properly.
Am I missing some configuration inside JBoss to start up spring? When i remove the Spring libraries, i do get errors from JBoss saying that it can't find the spring libraries.
Any ideas?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173360#4173360
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173360
17 years, 7 months
[JBossWS] - Re: Issues with WS-Eventing and JBoss-4.2.3
by riveradon
The following is an example of the code I am trying to execute using the JBoss-4.2.3 libraries. This is a simple main program and interface:
Client
| public class Test {
|
| private static Logger mLogger = Logger.getLogger(Test.class);
|
| public void registerService() {
| final String METHOD_NAME = "registerService";
| mLogger.debug(METHOD_NAME + " - ENTRY");
| boolean result = false;
| try {
| // Running the getCurrent function
| Service service = Service.create(
| new URL("http://ssdr_server:8080/ssdi-ssdr/ssdi-ssdr?wsdl"),
| new QName("http://ssdr.webservices.com/", "SsdrRegistryService"));
| ISsdr servicePort = service.getPort(ISsdr.class);
|
| String registerRDF = "payload";
|
| // Registering the ssdr via the SSDR Web Service
| result = servicePort.registerService(registerRDF);
| mLogger.info("Register results are:" + result);
|
| } catch (Exception e) {
| mLogger.error(METHOD_NAME + " : Exception: ", e);
| }
| mLogger.debug(METHOD_NAME + " - EXIT");
| }
|
| public static void main(String[] args) {
| Test test = new Test();
| test.registerService();
| }
| }
|
Interface
| @WebService
| @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL,
| parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
| public interface ISsdr {
| @WebMethod
| public boolean registerService(@WebParam(name = "serviceRDF") String serviceRDF);
|
| @WebMethod
| public boolean unregisterService(@WebParam(name = "serviceRDF") String serviceRDF);
|
| @WebMethod
| public ArrayList<String> serviceLookup(@WebParam(name="serviceRequestRDF")
| String serviceRequestRDF);
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173344#4173344
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173344
17 years, 7 months