axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Valerio" <>
Subject RE: two axis-ized services in one servlet container
Date Mon, 27 Sep 2004 20:16:19 GMT
That did the trick...  Thanks.

-----Original Message-----
From: Brian H. Ward []
Sent: Monday, September 27, 2004 2:46 PM
Subject: Re: two axis-ized services in one servlet container

Try moving the axis common code up to the server level instead of
buring it into both WAR files.  Java can have issues when ClassLoaders
are used to insulate various "contexts" within a single JVM process.

We see [have seen] this a lot in WebSphere, though not explicitly with
Axis.  It can manifect itself as LinkageErrors, ClassCastExceptions,
and even IllegalAccessExceptions.

In general, when ClassLoaders are involved (in J2EE containers),
always keep one an only one copy of common code in a JAR that is
accessible to all clients (one level higher than where it is used). 
This means that EJB interfaces used by both the EJB bean and by
classes in a WAR file must be placed in a "shared" JAR file that is
mutually accessible -- and copies don't work.  Anything that spans
your ?AR file must be installed at the server level (common\lib in
Tomcat, I believe).

Hope this helps....

--- bhw

On Mon, 27 Sep 2004 14:34:26 -0400, Matt Valerio
<> wrote:
> Anyone have any ideas or suggestions with this???   Bueller????  Bueller????
> -----Original Message-----
> From: Matt Valerio
> Sent: Friday, September 24, 2004 11:02 AM
> To: Axis-User (E-mail)
> Subject: two axis-ized services in one servlet container
> I have configured two axis enabled webservices in one servlet container (tomcat 5.0)
and I'm having some problems.  I'm using Axis 1.1 and have created these two services as specified
in the "Advanced Installation" section of the Axis installation instructions.  For the sake
of explaining my problem say I have two services configured in on servlet container - Service1
and Service2.  I can browse to the services context of Service1 and it works but then I browse
the services context of Service2 and it doesn't work.  I then restart tomcat and browse to
Service2 first and it works but then Service 1 doesn't work.  I checked the tomcat logs and
found the error attached below.  I'm relatively new to axis so hopefully it is some bonehead
newby problem.  Any help with this issue would be greatly appreciated.
> 2004-09-24 08:46:08 StandardWrapperValve[AxisServlet]: Servlet.service() for servlet
AxisServlet threw exception
> java.lang.LinkageError: loader constraints violated when linking javax/xml/namespace/QName
>         at org.apache.axis.encoding.TypeMappingRegistryImpl.<init>(
>         at org.apache.axis.deployment.wsdd.WSDDDeployment.<init>(
>         at org.apache.axis.deployment.wsdd.WSDDDocument.<init>(
>         at org.apache.axis.configuration.FileProvider.configureEngine(
>         at org.apache.axis.AxisEngine.init(
>         at org.apache.axis.AxisEngine.<init>(
>         at org.apache.axis.server.AxisServer.<init>(
>         at org.apache.axis.server.DefaultAxisServerFactory.createServer(
>         at org.apache.axis.server.DefaultAxisServerFactory.getServer(
>         at org.apache.axis.server.AxisServer.getServer(
>         at org.apache.axis.transport.http.AxisServletBase.getEngine(
>         at org.apache.axis.transport.http.AxisServletBase.getEngine(
>         at org.apache.axis.transport.http.AxisServlet.doGet(
>         at javax.servlet.http.HttpServlet.service(
>         at org.apache.axis.transport.http.AxisServletBase.service(
>         at javax.servlet.http.HttpServlet.service(
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(
>         at org.apache.catalina.core.StandardWrapperValve.invoke(
>         at org.apache.catalina.core.StandardValveContext.invokeNext(
>         at org.apache.catalina.core.StandardPipeline.invoke(
>         at org.apache.catalina.core.StandardContextValve.invokeInternal(
>         at org.apache.catalina.core.StandardContextValve.invoke(
>         at org.apache.catalina.core.StandardValveContext.invokeNext(
>         at org.apache.catalina.core.StandardPipeline.invoke(
>         at org.apache.catalina.core.StandardHostValve.invoke(
>         at org.apache.catalina.core.StandardValveContext.invokeNext(
>         at org.apache.catalina.valves.ErrorReportValve.invoke(
>         at org.apache.catalina.core.StandardValveContext.invokeNext(
>         at org.apache.catalina.core.StandardPipeline.invoke(
>         at org.apache.catalina.core.StandardEngineValve.invoke(
>         at org.apache.catalina.core.StandardValveContext.invokeNext(
>         at org.apache.catalina.core.StandardPipeline.invoke(
>         at org.apache.catalina.core.ContainerBase.invoke(
>         at org.apache.coyote.tomcat5.CoyoteAdapter.service(
>         at org.apache.coyote.http11.Http11Processor.process(
>         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(
>         at
>         at org.apache.tomcat.util.threads.ThreadPool$
>         at

View raw message