• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Deploying Axis2 on JBoss

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Friends,


Here I want to deploying my axis2 web services in JBoss Server which is running successfully on Apache Tomcat server. So any one has to do steps how I can redeploy my web services on JBoss server.

Thanks
 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Once you are able to deploy Axis2 on Jboss (I think Axis2 can be deployed on any Servlet Container), then you will be able to deploy your webservices, same way as were doing earlier.
 
Raj Shri
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ravinderjit Singh wrote:Once you are able to deploy Axis2 on Jboss (I think Axis2 can be deployed on any Servlet Container), then you will be able to deploy your webservices, same way as were doing earlier.




Thanks!!!

For your reply.

But here I want know how will set my class files and server-config.wsdd. Because in tomcat I just run my script and that is creating server-config.wsdd file. And also where I can set the port for my web services in JBoss.

Thanks
 
Ranch Hand
Posts: 859
IBM DB2 Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What version of JBoss are you using?

Be aware that JBoss contains its own WS stack, and you could run into class loading issues.

We just replaced Xfire or 4.3 EAP with Apache CXF and it was not a pretty operation.

WP
 
Raj Shri
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

William P O'Sullivan wrote:What version of JBoss are you using?

Be aware that JBoss contains its own WS stack, and you could run into class loading issues.

We just replaced Xfire or 4.3 EAP with Apache CXF and it was not a pretty operation.

WP




Thanks!!! WP

I am using JBoss 1.5 ga. I am totally new in JBoss. I have already my program code and wsdd. I did below thing in my JBoss server.

1 - Upload Axis2.war in /jb../server/default/deploy/
2 - run.sh

And I can see Axis2 web server on my browser. Now I want know where I need to upload my web service code.


Thannks
 
William P O'Sullivan
Ranch Hand
Posts: 859
IBM DB2 Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I presume you mean JBoss 5.1 ?

You'll need to figure out how to deploy your wsdd and classes (under web-inf).

I'm more into CXF these days

WP
 
Raj Shri
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

William P O'Sullivan wrote:I presume you mean JBoss 5.1 ?

You'll need to figure out how to deploy your wsdd and classes (under web-inf).

I'm more into CXF these days

WP




Thanks!!!

Any one can guide me....
 
Raj Shri
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Raj Shri wrote:

William P O'Sullivan wrote:I presume you mean JBoss 5.1 ?

You'll need to figure out how to deploy your wsdd and classes (under web-inf).

I'm more into CXF these days

WP




Thanks!!!

Any one can guide me....




http://jaitechwriteups.blogspot.in/2006/12/simple-webservice-on-jboss-using-axis.html


I got above link it's guiding me what I want but not much... still I wanna know how I will deploy my wsdd and run my won webservice.
 
William P O'Sullivan
Ranch Hand
Posts: 859
IBM DB2 Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Search ...
http://technoracle.blogspot.com/2009/11/how-to-deploy-axis2war-to-jboss-5.html

and
https://community.jboss.org/wiki/Jbossws-userguide

JBoss 5+ does not appear to work well with Axis2.

WP
 
Raj Shri
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

William P O'Sullivan wrote:Search ...
http://technoracle.blogspot.com/2009/11/how-to-deploy-axis2war-to-jboss-5.html

and
https://community.jboss.org/wiki/Jbossws-userguide

JBoss 5+ does not appear to work well with Axis2.

WP





Any one can help me to resolve this problem.

I did some RND and create .war file and put this war file in jboss ../../deploy folder. When I m running jboss server I am getting





05:55:45,700 INFO [TomcatDeployment] deploy, ctxPath=/
05:55:45,738 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console
05:55:45,773 WARN [JAXWSDeployerHookPreJSE] Cannot load servlet class: org.apache.axis2.transport.http.AxisServlet
05:55:45,774 WARN [JAXWSDeployerHookPreJSE] Cannot load servlet class: org.apache.axis2.webapp.AxisAdminServlet
05:55:46,459 INFO [TomcatDeployment] deploy, ctxPath=/tekfts
05:55:46,503 ERROR [[/samplewebservice] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl incompatible with javax.xml.parsers.SAXParserFactory
at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
at com.sun.faces.config.ConfigureListener$WebXmlProcessor.getConfiguredFactory(ConfigureListener.java:702)
at com.sun.faces.config.ConfigureListener$WebXmlProcessor.scanForFacesServlet(ConfigureListener.java:674)
at com.sun.faces.config.ConfigureListener$WebXmlProcessor.<init>(ConfigureListener.java:648)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:156)
at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:60)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4389)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:321)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:145)
at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
 
Ravinderjit Singh
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there any specific requirement to use WSDD file? Its been used in Axis.
Axis2 uses services.xml as descriptor file.
Service deployment in Axis2 is straightforward, just create the service archive (.aar) and deploy it.
 
Raj Shri
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ravinderjit Singh wrote:Is there any specific requirement to use WSDD file? Its been used in Axis.
Axis2 uses services.xml as descriptor file.
Service deployment in Axis2 is straightforward, just create the service archive (.aar) and deploy it.



Thanks!!!

I did same, created .aar files with my class file and service.xml file. I can see my webservice when I type http://...:8080/axis2. But when I run EPR.

Any thing I m doing wrong? Below is the structure

META-INF
----services.xml
----MANIFEST.MF
mywebservice
----Service
----classfiles...


And create the mywebservice.aar file with above files. And I m putting this .aar file in to axis2 /WEB-INF/service/mywebservice.aar. And jut runing the jboss server. Should I need to do anything else?



 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic