You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Stefan Champailler <sc...@easynet.be> on 2004/09/27 18:09:51 UTC
Axis 1.2beta + JBoss 4.0.0 troubles (newbie)
Dear you all,
I'm quite a newbie here and I'm experiencing some problems.
I have installed JBoss 4.0.0. In the default server, I've deployed
axis-1.2Beta as a war (I made that "war" out of the webapps directory, with
no modifications, except I've put the StockQuote service.jws file in it)
I can see the "happy axis" page and it doesn't say anything alarming. Core and
optional components seem installed.
However, if I try to list the deployed web services, I got this in the JBoss
log:
17:46:14,279 ERROR [EngineConfigurationFactoryServlet] Unable to find config
file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd
17:46:14,306 FATAL [InternalException] Exception:
org.apache.axis.ConfigurationException:
org.apache.axis.ConfigurationException: No engine configuration file -
aborting!
org.apache.axis.ConfigurationException: No engine configuration file -
aborting!
at
org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:224)
at org.apache.axis.AxisEngine.init(AxisEngine.java:199)
Interestingly, if I take the very same "war" file and deploy it in a JBoss
3.2.5, everything work very well.
I think, I can also be positive with Axis 1.1.
After some googling, I guess that there's a conflict between the Axis in JBoss
and the Axis I install (which seems logical to me).
So here are the questions :
- Is it a good idea to deploy a web service with an Axis I install myself in
JBoss or is it better to wire everything with what JBoss provides ?
- Considering the second option, is there any place where I can find step by
step explanation of how to do so (I feel a bit overwhelmed with all of this
right now). On another hand, JBoss provides EJB to webservices functionality,
but it seems quite hard to maintain the necessary code (no XDoclet or other
to build the various descriptors automatically)
Thank you for your patience.
Stefan
Re: Axis 1.2beta + JBoss 4.0.0 troubles (newbie)
Posted by Stefan Champailler <sc...@easynet.be>.
I fixed it !
Here's the start.sh script I use to launch JBoss + Axis
#!/bin/sh
JAVA_HOME=/opt/java
export JAVA_HOME
JBOSS=/home/stef/Projects/server/jboss-4.0.0
# This is like the fix described in
# http://nagoya.apache.org/jira/browse/AXIS-1530
JBOSS_CLASSPATH=${JBOSS}/server/standard/lib/javax.servlet.jar
export JBOSS_CLASSPATH
# -c standard for Axis to work, check the axis-user mailing list
# on 27/9/2004 for that
bin/run.sh -c standard
Thank you to Matthew and Francisco for their help !
(please rememeber I'm newbie and that this fix might not be a "nice" one...)
Stefan
> Dear you all,
>
> I'm quite a newbie here and I'm experiencing some problems.
>
> I have installed JBoss 4.0.0. In the default server, I've deployed
> axis-1.2Beta as a war (I made that "war" out of the webapps directory, with
> no modifications, except I've put the StockQuote service.jws file in it)
>
> I can see the "happy axis" page and it doesn't say anything alarming. Core
> and optional components seem installed.
>
> However, if I try to list the deployed web services, I got this in the
> JBoss log:
>
> 17:46:14,279 ERROR [EngineConfigurationFactoryServlet] Unable to find
> config file. Creating new servlet engine config file:
> /WEB-INF/server-config.wsdd 17:46:14,306 FATAL [InternalException]
> Exception:
> org.apache.axis.ConfigurationException:
> org.apache.axis.ConfigurationException: No engine configuration file -
> aborting!
> org.apache.axis.ConfigurationException: No engine configuration file -
> aborting!
> at
> org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.jav
>a:224) at org.apache.axis.AxisEngine.init(AxisEngine.java:199)
>
> Interestingly, if I take the very same "war" file and deploy it in a JBoss
> 3.2.5, everything work very well.
> I think, I can also be positive with Axis 1.1.
>
> After some googling, I guess that there's a conflict between the Axis in
> JBoss and the Axis I install (which seems logical to me).
>
> So here are the questions :
>
> - Is it a good idea to deploy a web service with an Axis I install myself
> in JBoss or is it better to wire everything with what JBoss provides ? -
> Considering the second option, is there any place where I can find step by
> step explanation of how to do so (I feel a bit overwhelmed with all of this
> right now). On another hand, JBoss provides EJB to webservices
> functionality, but it seems quite hard to maintain the necessary code (no
> XDoclet or other to build the various descriptors automatically)
>
> Thank you for your patience.
>
> Stefan
Re: Axis 1.2beta + JBoss 4.0.0 troubles (newbie)
Posted by Stefan Champailler <sc...@easynet.be>.
It works a little better. Unfortunately, the EchoHeader.jws file fails to
compile. I'll try some more later...
thx for the answer anyway !
Stefan
> Stefan Champailler wrote:
> > Thank you for the answer, I'll look at that.
>
> Hi, did you try to use the standard configuration?
>
> jboss -c standard
>
> I don't know if this may be the root of problem, but class loader
> configuration changed a lot in the jboss 4.0 default configuration to
> become j2ee spec compliant and so maybe this is giving trouble to axis
> find the configuration file.
>
> The standard configuration is the jboss 4.0 with unified classloader as
> 3.2.x
>
> I hope it helps.
>
> Regards,
>
> Francisco Figueiredo Jr.
Re: Axis 1.2beta + JBoss 4.0.0 troubles (newbie)
Posted by "Francisco Figueiredo Jr." <fx...@yahoo.com.br>.
Stefan Champailler wrote:
> Thank you for the answer, I'll look at that.
>
>
Hi, did you try to use the standard configuration?
jboss -c standard
I don't know if this may be the root of problem, but class loader
configuration changed a lot in the jboss 4.0 default configuration to
become j2ee spec compliant and so maybe this is giving trouble to axis
find the configuration file.
The standard configuration is the jboss 4.0 with unified classloader as
3.2.x
I hope it helps.
Regards,
Francisco Figueiredo Jr.
Re: Axis 1.2beta + JBoss 4.0.0 troubles (newbie)
Posted by Stefan Champailler <sc...@easynet.be>.
Thank you for the answer, I'll look at that.
> Stefan Champailler wrote:
> > - Is it a good idea to deploy a web service with an Axis I install myself
> > in JBoss or is it better to wire everything with what JBoss provides ?
>
> I'm sure that either will work, so it's hard to say that one is a good
> idea and the other isn't. In JBoss 3.2.5, I chose to use my own Axis,
> just for confidence that I could deploy it to another app server with
> the same result.
>
> > - Considering the second option, is there any place where I can find step
> > by step explanation of how to do so (I feel a bit overwhelmed with all of
> > this right now).
>
> I'd imagine that you'd find something like this on JBoss' website.
> Hopefully this is a part of the free documentation and not the stuff
> that you would have to pay for.
>
> Another options would be to try posting to the JBoss mailing list?
>
> > On another hand, JBoss provides EJB to webservices functionality,
> > but it seems quite hard to maintain the necessary code (no XDoclet or
> > other to build the various descriptors automatically)
>
> Axis offers EJB to webservices functionality, and it requires no
> additional Java code, just a wsdd file. I believe that there is a
> sample of this in the Axis distribution (under samples/ejb or something
> similar).
Re: Axis 1.2beta + JBoss 4.0.0 troubles (newbie)
Posted by "matthew.hawthorne" <ma...@apache.org>.
Stefan Champailler wrote:
> - Is it a good idea to deploy a web service with an Axis I install myself in
> JBoss or is it better to wire everything with what JBoss provides ?
I'm sure that either will work, so it's hard to say that one is a good
idea and the other isn't. In JBoss 3.2.5, I chose to use my own Axis,
just for confidence that I could deploy it to another app server with
the same result.
> - Considering the second option, is there any place where I can find step by
> step explanation of how to do so (I feel a bit overwhelmed with all of this
> right now).
I'd imagine that you'd find something like this on JBoss' website.
Hopefully this is a part of the free documentation and not the stuff
that you would have to pay for.
Another options would be to try posting to the JBoss mailing list?
> On another hand, JBoss provides EJB to webservices functionality,
> but it seems quite hard to maintain the necessary code (no XDoclet or other
> to build the various descriptors automatically)
Axis offers EJB to webservices functionality, and it requires no
additional Java code, just a wsdd file. I believe that there is a
sample of this in the Axis distribution (under samples/ejb or something
similar).
No provider type matches QName
Posted by Stefan Champailler <sc...@easynet.be>.
Dear you all,
I continue to try to integrate Axis 1.2beta in JBoss 4.0.0.
I had some troubles, but they are fixed (check
http://marc.theaimsgroup.com/?l=axis-user&m=109635859926921&w=2).
Now, I've got something else.
I tried to tie a web serice to an EJB. I followed the sample given in the Axis
disitribution (in samples/ejb). With JBoss 3.2.5 everything work as expected
so far (I can see the service and it generates its WSDL fine). I deploy my
webservice as a war file containing all the libs axis needs as well as its
"original" web.xml (hte one that is given in the webapps directory of the
distribution).
However, in JBoss 4.0.0, Axis complains like this when I try to reach
http://localhost:8080/foundry/servlet/AxisServlet (after having deployed the
WSDD file of my service, without apparent trouble) :
org.apache.axis.deployment.wsdd.WSDDException: No provider type matches QName
'{http://xml.apache.org/axis/wsdd/providers/java}EJB'
It looks like Axis can't find the EJB provider, and I have not much clue where
to start to look... Another thing to note is that if I /don't/ deploy my WSDD
file, then the http://localhost.../AxisServlet page just displays fine... It
starts to fail as soon as I deploy the WSDD.
If you wonder, my WSDD is like this :
<?xml version="1.0"?>
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<service name="SimpleBean" provider="java:EJB">
<parameter name="beanJndiName" value="local/ProjectService"/>
<parameter name="homeInterfaceName"
value="foundryserver.beans.interfaces.ProjectServiceHome"/>
<parameter name="remoteInterfaceName"
value="foundryserver.beans.interfaces.ProjectService"/>
<parameter name="allowedMethods" value="getProject"/>
</service>
</deployment>
Maybe the namespace declaration is confusing ?
Thank you for your patience.
Stefan
Re: Axis 1.2beta + JBoss 4.0.0 troubles (newbie)
Posted by Bruce Scharlau <sc...@csd.abdn.ac.uk>.
Stefan Champailler wrote:
> Dear you all,
>
> I'm quite a newbie here and I'm experiencing some problems.
>
> I have installed JBoss 4.0.0. In the default server, I've deployed
> axis-1.2Beta as a war (I made that "war" out of the webapps directory, with
> no modifications, except I've put the StockQuote service.jws file in it)
>
> I can see the "happy axis" page and it doesn't say anything alarming. Core and
> optional components seem installed.
>
> However, if I try to list the deployed web services, I got this in the JBoss
> log:
>
> 17:46:14,279 ERROR [EngineConfigurationFactoryServlet] Unable to find config
> file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd
> 17:46:14,306 FATAL [InternalException] Exception:
> org.apache.axis.ConfigurationException:
> org.apache.axis.ConfigurationException: No engine configuration file -
> aborting!
> org.apache.axis.ConfigurationException: No engine configuration file -
> aborting!
> at
> org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:224)
> at org.apache.axis.AxisEngine.init(AxisEngine.java:199)
>
> Interestingly, if I take the very same "war" file and deploy it in a JBoss
> 3.2.5, everything work very well.
> I think, I can also be positive with Axis 1.1.
>
> After some googling, I guess that there's a conflict between the Axis in JBoss
> and the Axis I install (which seems logical to me).
>
> So here are the questions :
>
> - Is it a good idea to deploy a web service with an Axis I install myself in
> JBoss or is it better to wire everything with what JBoss provides ?
> - Considering the second option, is there any place where I can find step by
> step explanation of how to do so (I feel a bit overwhelmed with all of this
> right now). On another hand, JBoss provides EJB to webservices functionality,
> but it seems quite hard to maintain the necessary code (no XDoclet or other
> to build the various descriptors automatically)
See the jboss-ws wiki at http://www.jboss.org/wiki/Wiki.jsp?page=JBossWS
for details about web services in jboss-4.
You'll find a link to a tutorial there too.
>
> Thank you for your patience.
>
> Stefan
--
cheers,
Bruce
Dr. Bruce Scharlau
Dept. of Computing Science
University of Aberdeen
Aberdeen AB24 3UE
01224 272193
http://www.csd.abdn.ac.uk/~bscharla
mailto:scharlau@csd.abdn.ac.uk